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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var rl,gcL,wJB,BJ,UD,SDA,RX,nL,fL,$c,OLL,Uoo,bB,qDA,uYB,eV,ocV,HLD,pJS,B6,ncl,sXD,$oL,bLA,Jtl,zD,H6,nw,fw,ePo,$b,WAS,jU,P6,Kw,KAo,Nz,mn,aQA,moX,ctJ,dA,LAJ,gg,VVY,BF,iLB,wg,hPl,vcA,rDJ,ev,Ebc,BAV,w6L,SwY,Owl,F$,doS,A8,Tlt,gbV,obB,QmP,z4D,NM,kDo,HwS,p6P,Ywo,nbB,smB,jmY,y5,JDV,tUY,e4D,xzl,aIJ,dg,wk,X6P,iwA,Ol,VUA,vbt,ZwS,Ms,yDL,Ul,R4o,uA,o8,G_,qs,ku,gtl,dzt,TAQ,sl,r8L,Etl,Bgl,SMA,wFJ,JB,ODB,UMD,R8,qMP,u$l,ez,DMl,zzt,Kt,RzD,otL,ntc,sAQ,f4c,PmV,A8V,Ns,mp,F6Y,W6L,Cmo,XFL,iDA,dML,EuL,UsA,OU,qlY,laA,D2,Gh,
Qv,kU,YU,Aa,Ja,Pu,HtV,NO,pHl,nuQ,Z2,yv,fat,ds,Th,gh,rh,j8c,ABS,btA,JBL,PAP,tzL,FpY,eKP,WpB,Kpt,Om,SW,xsY,aaB,XHD,Iac,NkA,msJ,z2,itB,kf,Hb,p$,Yf,f$,VzA,$f,ZtJ,gUl,A_,raV,EUA,BsL,J_,wuB,SUX,Pb,t_,MyB,eW,l2l,DOo,Wb,Gho,oUl,QCo,zjQ,khA,HIA,aF,pul,YUl,Xz,RjV,nUD,NN,IF,mr,iY,sCY,$OJ,f2l,L$,Aac,bIV,Jat,h_,y3,vb,dh,T2,gF,rF,PiQ,tyc,FgS,ejD,Wgc,CiS,KgB,xOt,a2c,Xul,NsS,B$,I2J,mOL,OY,caL,M0,q0,iIL,hjL,ZIJ,yal,dOl,TsL,gfJ,wbA,SmP,O$o,UNY,MWD,qml,uzB,G2Q,Db,QFD,zTl,k2D,H$Y,pbP,YmX,nfB,WrY,CYt,KrS,aDV,XbY,RQ,NhQ,
nN,LrQ,VWB,hTA,Z$t,y_l,vfL,dNY,Tht,AL,rLD,c_J,EYQ,BFL,w$S,SYD,ONV,U0J,MnY,qYA,umL,oYP,D0l,zES,GML,QQt,p$V,YYl,REt,kMP,sQP,HNJ,$0S,IQ,jQS,m_,iO,ALX,JLD,POL,eEo,cLo,COl,W_X,x0X,X$c,K_c,hEA,L_o,ZNV,yLQ,vYl,d0S,TFl,ryX,grX,Ert,BYo,wTB,SRL,UdX,qRl,url,lqL,orl,DdA,$dc,dF,jOt,b5L,Jyo,PDo,tLB,FKX,WKD,CDl,KKL,OR,UR,xdY,cyJ,uD,lD,hFl,yyB,OlP,Qr,u2J,lkc,QBl,oBl,GWS,RO,zoV,kWQ,KDQ,xDJ,akl,XpY,NBY,Ikc,mDY,ilt,LDJ,hoS,V1V,vBc,PT,eL,TBB,gFQ,rkl,EFS,BWl,w0S,OaL,MSP,UXJ,hy,yr,vT,R7V,nFA,gB,fnl,$XQ,rB,AkP,jaQ,KRX,
xXX,ano,NWY,ial,VSY,h7c,Zal,ykl,dXP,gAo,rsD,S1,SrA,MgP,qrD,u1l,lxl,DeS,Uel,wNc,BMJ,Ux,EAX,oAL,QjJ,pNL,kZl,uQ,RfX,sjA,fxY,$eV,jjB,Q6,AsV,Jsl,b3P,Pcl,F0P,Hp,XNt,Ixc,csl,L0t,nl,hfX,$B,A5,j1,deB,Vgo,TMX,Pp,B2l,e1,Wp,O9l,qeo,lHY,D_D,oRL,xB,GjQ,QTY,zIo,H9X,p8D,Yet,RIP,sTS,X2,fHS,$_P,IB,iQ,b9c,JpV,PdJ,V6,eIL,WSX,KSQ,TW,cpL,i9B,N2A,VEc,hIB,Z9A,SS,U6,MX,rnD,qX,EKX,Bul,wfc,SqP,UbA,MlY,OCP,qqJ,Dn,l8L,oKo,oa,Dbl,GxL,uRl,QIA,Qg,kxY,HCc,pfX,Yql,nKo,RRl,sIP,jIl,f8X,bCo,WHA,KHA,xbl,XfA,mbP,I8l,NuX,cnc,LHl,hRl,VlV,
ynl,dbA,TuQ,g5Y,rxc,UHP,OkV,M8D,qbX,P0,tk,u3B,DHL,G5Y,k5J,p3P,HkX,v0,Ybc,o5D,AxV,bkt,JxS,BN,PpQ,F8V,CpP,asJ,xHP,mHQ,cxP,ikJ,L8c,hUo,THQ,ZkS,v5o,dHl,gyQ,rFL,BUl,Eyc,SQP,wEP,QX,OMl,MGA,qQl,oyY,sr,f3,GrQ,QyV,$A,pEX,Js,PN,ts,syl,F1,jyS,C3,AFJ,bMl,JFJ,PGB,aj,tGL,e6o,WxY,KxV,aYB,IYt,cFJ,yX,iMB,Lxo,VGY,h6B,ZMl,yFJ,vyP,duB,TZ,rgV,EgS,BXL,wkL,SSY,Oul,U2o,MhX,qSD,u4S,l$V,D2J,ogc,Oe,$2t,j6B,Ue,M_,q_,AgX,bul,JgD,PqY,thP,FZQ,ewL,a$o,XkS,NXY,I$D,m2o,oT,Q2,zj,kR,YR,RT,n9,iuS,jE,VhV,Ap,hwD,ZuL,bd,ygD,vgD,d2Y,UrD,
q9Q,GCc,HfB,kCB,M9S,psl,nDl,Kul,bfB,IzS,P1B,Nzl,mrl,K9,ifX,aT,V9t,h9c,yjl,vDQ,drP,gac,IT,EaL,BbY,wol,SPP,OyJ,U8J,MNo,rOY,l1c,D8c,oaL,c8,poo,YPP,HyV,nal,sJY,$8B,jJJ,f1A,e8D,CFJ,x8l,XoS,gu,L$c,iyo,vac,Tbo,gkP,rCA,EkL,BGP,wic,qb,okc,QbD,lol,u7L,Gbt,ORV,kbL,bRD,YNJ,RNS,nkl,aoV,NGD,x1V,V3l,KGL,SNB,LGQ,piJ,ACV,Xit,zNS,M3B,U1o,qNJ,D1L,CaV,An,M_D,uIY,lhl,Dyt,oPl,nPV,bWJ,JMc,xK,t_Y,Wcl,ahc,xyX,NLL,IhA,cMQ,LcL,iWA,V_c,Z8,hhS,ZWA,vPl,yMA,yI,Bto,E3L,rRt,Uhl,wKl,MkP,Ohl,qBt,du,uAL,GwV,DhB,o3S,zcP,pKl,Eb,n3c,YBo,
slc,ARP,bhQ,tkQ,ecl,Ob,Ub,xhS,ayJ,MH,qH,XKc,up,lp,NtP,Ds,IyD,ov,mhD,cRS,Qs,ihX,LJP,VkD,hcS,ZhL,v3t,yRQ,Ttt,Eoo,rfB,BrY,wXP,dhJ,Sgc,MTB,UQo,goY,qgD,uXS,Y5,lBl,ooB,DQP,GaV,Q$c,kat,z1L,HmA,nk,Ygl,R1J,pXl,s$c,fBV,$QB,JfS,e1X,aBA,mQA,sb,Lzo,VTX,fk,h1B,bp,Jx,gjQ,j8,F3,rlc,EjJ,wml,S0D,Uqt,q0S,uuS,lpc,DqX,QzQ,Y0V,H0t,GuJ,RiV,njQ,Kk,pmY,szA,X3,fpt,$qV,jzJ,AlJ,t7A,b0B,PPQ,CPD,K7o,IpX,N0A,i0S,vjD,dqL,gIc,EID,BxV,S8o,OZl,USY,q8X,uaV,lPX,GGB,HZY,pvo,QxP,RHt,sxl,nIV,Y8c,fPP,jxA,AQt,bZD,JQQ,PjV,T5,gU,BE,SG,eHY,
WeQ,KeX,XvP,OQ,UQ,NxB,Mu,cQY,iZB,LeV,uG,vIS,rXX,BcQ,wLV,SzP,OxS,UED,uil,DY,ltS,GEc,oy,QUJ,Hxl,pLl,Yzo,kEt,jUV,JXA,AXB,PRS,e$B,CRt,xED,Ito,NcP,LqX,HE,VIl,h$A,pM,Zxl,Yy,yXP,v2X,dEc,g4l,Tct,rqJ,E4S,B5A,wgP,lwJ,o4A,QoP,Gko,M5o,OVB,kkD,pgX,fwl,$ft,bVo,WFA,KFl,fM,xfA,XgY,N5X,mfA,V5Y,yqQ,T5l,g$A,reA,E$P,UnY,B9S,lfc,DnP,Gec,AF,zgc,keB,HcL,p2l,YGc,RgV,n$P,ffV,$nS,tF,jwl,AeL,JeQ,eG,bcA,twP,C8S,KM,KCQ,xnl,afL,IfV,mnY,X2l,icl,Zcl,yet,v$Y,mx,dnA,E0Y,BjV,hF,OUY,wSV,SLl,MYP,u8S,lXl,DcQ,zqD,pSA,HUt,kgS,YLl,n0B,s2D,
bUV,fXc,J1J,tYt,PZY,xcS,NjL,mcl,iUL,ZUl,E7X,wjP,SZD,qZL,lCV,Jg,a6,kol,RXl,YZQ,sMc,fCD,jMY,$4o,Ahl,bdl,X4,QcS,HdB,n7A,pjJ,Ku,tsP,Fho,eXJ,WhJ,CvB,Khc,x4l,aCl,vk,XjB,dX,N8J,ICY,m4J,cht,rz,idL,hXD,yht,v7V,wUP,OiB,UPJ,MBD,uPl,l0Y,l1,oCc,GAA,Q4l,zMc,kAl,HiD,YTV,nCD,f0P,$Pl,tBl,J2D,F4S,CzJ,K4t,Hs,xPc,a0D,XUA,mPc,iiB,c2V,VBl,ZiB,nf,vCA,dPB,y2S,T3Y,gvD,FMD,WMJ,eOl,ClQ,rAS,KMD,xat,aED,XAP,Nnt,IEP,maV,cAV,i7X,hOL,VPV,Z7V,vvt,yAQ,s9,daL,r9A,S7l,Tno,Mfo,q7S,udJ,lcl,Y7o,R0o,s1l,fcL,Kf,bYl,F5t,CwV,xD,XyV,acX,NyQ,
Nr,Ict,mCo,c9P,L5A,Vft,h0J,ZYX,vTJ,dCX,MpX,waA,OnL,uLc,qkl,liJ,DJD,Gml,ztB,Hnl,YkA,PTB,etc,CTD,KYB,xJS,aiP,XaA,IiS,mJS,LYc,VpX,htt,Zno,y6J,vQX,dJV,TTl,Elt,OBP,gb,rb,Bo,wb,U9A,UP,qCl,HBD,fll,nlQ,NVQ,Ill,m9B,lll,kRA,GRX,iBA,LtD,V2B,YCD,ZBl,vll,TVY,E8S,BNS,RJ,fy,$a,uoJ,q5Q,GpS,QYP,fWP,jYQ,boY,J0X,FXc,WXY,eLY,xVt,XYY,Vto,ioP,IWQ,LXl,mVA,hLJ,dVA,N8,UFY,wdQ,q_c,u0L,DFB,oiB,m$,GYQ,kYl,pdD,Y_l,niL,Rxl,Ly,b4L,db,PeP,tbJ,gG,F1D,exB,W1t,CeV,K1V,xFB,auV,Xdc,NDA,IuX,mFl,ciV,i4V,L1S,VbY,rG,hxD,Z4B,yiL,vil,dFl,
TDQ,gnJ,rHt,Enc,BIl,whV,Snl,Bi,URJ,qnt,lKl,G4A,k4c,Hjt,phL,Rnt,shJ,fKo,$Rt,la,PoY,bjl,t6X,FLV,ent,KLJ,xRA,aKV,NIl,sN,mRl,Rb,ijX,LLc,fR,V6l,hnV,ZjY,yHl,AC,g1Q,E1l,UZX,OOL,qVJ,u9V,Wi,lLY,DZX,GVo,zCD,kVY,p4t,YVA,QZY,n1J,sZB,bOX,FoB,eCV,CR,WoY,CIJ,N$D,KoV,aLA,X4J,VKl,mZS,hCB,yKX,dZQ,T$S,gpD,rIQ,EpP,BRo,Sdl,OHD,Uvc,MOo,qdX,ljY,opV,z5c,YdD,sRV,$vQ,bHt,mG,JIS,P9V,tOJ,FbS,e5X,C9B,KbD,xvV,ajP,XVQ,NRQ,Ijt,mvl,cIl,iHt,LbD,h5l,VOl,vpl,TRL,LR,gVY,B4V,EVS,OqB,U7A,MRL,qul,D7o,Q0A,GQS,ldS,HqY,kQD,s0l,pcl,Tb,RbB,
Phl,j0B,A3l,bqV,J3t,tRS,ebl,FIQ,gL,rL,N4Y,ChQ,XcP,adQ,KIQ,x7L,c3Y,LIX,hbl,VRl,d7B,vVc,rTl,EwS,wOJ,SHo,BdL,OKL,M0Q,UBS,uWl,owl,qy,GOS,QrY,HKt,src,JTB,lV,t0A,CJt,XOS,aVP,KQc,xBY,z$,cTc,NdA,IVD,iKV,V0V,LQc,yTc,vwP,Tdl,gmc,r7Y,EmB,BSQ,S3Q,O2L,JM,Mdl,tM,q3J,omP,G6c,CW,QVY,k6D,jVQ,Ny,Rrt,$6Y,nmY,sVJ,P$X,tdl,J7o,F3S,erQ,x6D,W3J,aJD,X5Y,mc,IJV,m6D,c7l,NSP,LW,i2Y,cw,Z2D,EhP,Bml,wrA,SvJ,Ovl,UUS,l7l,qvX,ufP,MMl,ohS,zkV,prV,YvL,nhV,$UP,skD,f7B,jkY,bvl,JGB,P_t,tMY,FwV,ekL,C_Q,gt,xUl,NmL,XrX,mUD,I7c,cGP,ivQ,LwJ,
rt,hkc,Spl,BCQ,MJo,qpX,QdA,zBL,kso,Hrl,pDl,YpD,sdt,fGA,$jJ,jdB,JES,P4P,tJA,F2J,eBL,W2D,C4D,K2V,xjl,aGQ,NCL,IGD,mjL,irV,VJo,vJX,yEc,ZrA,hBA,r$B,TCl,B_X,SaP,OTS,UtP,ph,Mro,qaV,uKt,G3X,lUl,Qeo,DtX,zSc,sB,k3l,HTJ,pMB,oLX,YaV,$tP,A$o,AR,bTD,PKc,J$V,trX,FvB,eSl,Wvl,CKV,xtP,aUP,XMt,N_Y,c$L,mtB,ZTV,IUD,JR,y$l,iTB,hSQ,T_X,rwX,Oeo,w_P,StP,BpL,EOY,Kh,UYY,qtS,uwP,lAL,DYl,oOB,HeV,QNX,GJo,zpt,Jwo,AwV,kJo,jNl,KmQ,xYS,aAD,X_A,Npl,IAY,mYD,cwJ,VQJ,ZeD,vOc,TpS,gWL,rNB,SiY,wCt,OXc,M$J,BX,lmV,DiB,oWc,G0l,ST,Og,k0l,Yil,
jSJ,P7D,t$S,FfX,eZL,WfA,C7P,xiP,XCA,aml,NqX,miQ,cNS,iXA,LfB,V$l,hZl,lL,ZXY,EHY,BES,TqJ,diV,rol,gHL,l6X,MCS,Ga,DgX,oHJ,GIX,QqP,z2P,kIL,p1o,R2D,sqV,$gX,AoL,tCY,FlB,e2B,Klt,CXY,WlL,xgJ,a6D,NEl,I6J,mgY,coJ,Yo,Llc,VCc,h2A,yoL,ZgP,vHS,TEc,E9S,BJL,wQl,SED,OPc,qEB,u_L,UpJ,Mio,klS,HPS,YEl,R_P,n9D,s_c,frX,$pB,bPA,JZl,FdJ,Wdt,e_D,CHY,FX,Kdc,xpD,arB,XQB,cZA,mpl,ViS,h_B,v9c,TJS,gxL,rzD,Ext,BQD,wWl,SIJ,OGB,Uxl,MZQ,uJl,qID,lFl,DxA,oxY,GTA,QDA,zll,kTS,pWP,YIQ,HGL,XX,nxo,sDt,fFo,$xY,AzA,JzX,Prt,tZP,Fkl,ell,WkL,Kkt,
xxl,XWl,IFD,czB,hlt,LkX,iGl,VZt,ZGJ,yzS,vxB,gsA,rbo,EsJ,BPA,wlP,SJJ,ObQ,MXA,ULc,qJc,uqL,lvD,DLS,GcX,Qgo,zeB,kcY,HbA,plo,YJS,ReY,sgD,fvt,$LX,jgY,bbJ,JbB,PxA,eeX,WVl,tXV,FVV,xLL,avJ,XlD,mLc,cbJ,r0,ZbY,ybD,dLt,rJS,gZl,EZl,B6Y,E0,w0,SFQ,OQX,U0,Mq,uCA,UKB,M4A,oZY,k9t,pRL,YFV,Ryt,nZY,sPc,$Kc,jPX,AJt,bQo,JJQ,PSc,t4P,Gu,FPJ,eyl,zu,WPX,CSl,KPD,xKQ,a5l,XRA,p0,Yj,N6D,I5c,Rz,mKP,cJJ,iQc,LPJ,hyt,ZQL,vZP,Eet,rrJ,geY,BoL,w9l,uDB,UwS,MqP,OJc,q$c,s0,oeL,GdJ,QsA,zml,kdV,p9B,Rml,neA,jsJ,fOc,f0,ssX,tqL,emA,WUJ,CbL,KUX,
xwc,X9V,NoX,IOD,mwl,iJX,LUl,VqP,ZJo,yrY,dwL,Tot,w7l,O1t,S4X,MDl,oXY,GNY,Q7c,zVo,H1X,RVA,tl,nXX,s7l,f3D,$AL,AcJ,b1S,JcS,P0L,FNB,WNV,C0B,KNL,Fu,xAt,a3D,I3l,mAA,e7,Wm,LNX,ccJ,Z1l,VDP,ycc,xj,dAY,TaB,E6t,wIQ,az,OFX,U5J,MFB,qsV,uUo,lMV,D5V,Qul,pIc,YsP,suX,RAA,n6Y,fMQ,bFl,$5l,AdV,JdS,PtA,tFB,WOP,Ctl,KOJ,x5l,aMV,iFV,cdB,v6A,gGl,hl,rUB,AyJ,EGX,BZY,S1P,MAP,q1V,zYt,kHl,H6L,pnB,Y1V,nGA,sGt,$IP,AUc,fTL,jGJ,JUP,b6J,eYo,tAX,WBl,CEP,KBP,xIJ,aTc,NZt,XnX,i6Y,hYJ,LBV,Z6l,yUS,vGV,E8,dIB,TZl,wx,rSY,gzP,Ezt,BwX,SWY,Ost,
MHJ,qWV,uHP,leA,D3Q,Q5l,HsY,RWl,YWX,nzS,s5V,j5o,Kac,PUt,aeY,XzY,IeD,m3D,VHB,ySY,d3l,Two,gNl,ENB,BvL,wtS,Syl,OAl,Ukl,MeV,utc,oNo,GyL,QED,zvc,kyV,HAL,ptc,nNc,RvJ,jEL,AWY,bAX,JWo,Pfc,FWJ,teJ,WWl,XtV,LWc,cWl,VeD,hvl,ZAY,vNL,Rx,TvB,$I,rYl,B7S,weV,qAL,l9o,QLt,kvP,H8l,YAQ,RDl,nqP,f9t,jLl,AYB,JYS,FsY,txl,PCc,Pv,WsA,eDS,CCP,KsS,xTl,a9l,Xel,N7A,I9c,cYo,i8V,LsY,VxS,hDQ,Z8Q,yYQ,vqL,dTB,gSD,rPY,qfA,ugP,l_J,oSY,GfV,QKB,HSX,ax,f_B,$$c,jKQ,APc,bSA,Xa,NS,Zq,Ix,cv,Kil,NKB,m$A,I_D,ij,cPS,iSt,cBo;
_.gl=function(g,r){if(Error.captureStackTrace)Error.captureStackTrace(this,_.gl);else{var E=Error().stack;E&&(this.stack=E)}g&&(this.message=String(g));r!==void 0&&(this.cause=r)};
rl=function(){throw Error("B");};
gcL=function(g,r){r=String.fromCharCode.apply(null,r);return g==null?r:g+r};
wJB=function(g){var r=!1;r=r===void 0?!1:r;if(rtV){if(r&&(EcP?!g.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(g)))throw Error("C");g=(BlQ||(BlQ=new TextEncoder)).encode(g)}else{for(var E=0,B=new Uint8Array(3*g.length),w=0;w<g.length;w++){var O=g.charCodeAt(w);if(O<128)B[E++]=O;else{if(O<2048)B[E++]=O>>6|192;else{if(O>=55296&&O<=57343){if(O<=56319&&w<g.length){var M=g.charCodeAt(++w);if(M>=56320&&M<=57343){O=(O-55296)*1024+M-56320+65536;B[E++]=O>>18|
240;B[E++]=O>>12&63|128;B[E++]=O>>6&63|128;B[E++]=O&63|128;continue}else w--}if(r)throw Error("C");O=65533}B[E++]=O>>12|224;B[E++]=O>>6&63|128}B[E++]=O&63|128}}g=E===B.length?B:B.subarray(0,E)}return g};
BJ=function(g){_.ED.setTimeout(function(){throw g;},0)};
_.wl=function(g,r){return g.lastIndexOf(r,0)==0};
UD=function(g,r){var E=g.length-r.length;return E>=0&&g.indexOf(r,E)==E};
_.qo=function(g){return/^[\s\xa0]*$/.test(g)};
_.lB=function(g,r){return g.indexOf(r)!=-1};
_.DQ=function(g,r){return _.lB(g.toLowerCase(),r.toLowerCase())};
_.Ql=function(g,r){var E=0;g=oX(String(g)).split(".");r=oX(String(r)).split(".");for(var B=Math.max(g.length,r.length),w=0;E==0&&w<B;w++){var O=g[w]||"",M=r[w]||"";do{O=/(\d*)(\D*)(.*)/.exec(O)||["","","",""];M=/(\d*)(\D*)(.*)/.exec(M)||["","","",""];if(O[0].length==0&&M[0].length==0)break;E=SDA(O[1].length==0?0:parseInt(O[1],10),M[1].length==0?0:parseInt(M[1],10))||SDA(O[2].length==0,M[2].length==0)||SDA(O[2],M[2]);O=O[3];M=M[3]}while(E==0)}return E};
SDA=function(g,r){return g<r?-1:g>r?1:0};
_.kc=function(){var g=_.ED.navigator;return g&&(g=g.userAgent)?g:""};
RX=function(g){if(!HJ||!pL)return!1;for(var r=0;r<pL.brands.length;r++){var E=pL.brands[r].brand;if(E&&_.lB(E,g))return!0}return!1};
nL=function(g){return _.lB(_.kc(),g)};
fL=function(){return HJ?!!pL&&pL.brands.length>0:!1};
$c=function(){return fL()?!1:nL("Opera")};
OLL=function(){return fL()?!1:nL("Trident")||nL("MSIE")};
Uoo=function(){return fL()?RX("Microsoft Edge"):nL("Edg/")};
bB=function(){return nL("Firefox")||nL("FxiOS")};
_.FY=function(){return nL("Safari")&&!(_.tt()||(fL()?0:nL("Coast"))||$c()||(fL()?0:nL("Edge"))||Uoo()||(fL()?RX("Opera"):nL("OPR"))||bB()||nL("Silk")||nL("Android"))};
_.tt=function(){return fL()?RX("Chromium"):(nL("Chrome")||nL("CriOS"))&&!(fL()?0:nL("Edge"))||nL("Silk")};
_.MVY=function(){return nL("Android")&&!(_.tt()||bB()||$c()||nL("Silk"))};
qDA=function(g){var r={};g.forEach(function(E){r[E[0]]=E[1]});
return function(E){return r[E.find(function(B){return B in r})]||""}};
uYB=function(g){var r=_.kc();if(g==="Internet Explorer"){if(OLL())if((g=/rv: *([\d\.]*)/.exec(r))&&g[1])r=g[1];else{g="";var E=/MSIE +([\d\.]+)/.exec(r);if(E&&E[1])if(r=/Trident\/(\d.\d)/.exec(r),E[1]=="7.0")if(r&&r[1])switch(r[1]){case "4.0":g="8.0";break;case "5.0":g="9.0";break;case "6.0":g="10.0";break;case "7.0":g="11.0"}else g="7.0";else g=E[1];r=g}else r="";return r}var B=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");E=[];for(var w;w=B.exec(r);)E.push([w[1],w[2],w[3]||void 0]);
r=qDA(E);switch(g){case "Opera":if($c())return r(["Version","Opera"]);if(fL()?RX("Opera"):nL("OPR"))return r(["OPR"]);break;case "Microsoft Edge":if(fL()?0:nL("Edge"))return r(["Edge"]);if(Uoo())return r(["Edg"]);break;case "Chromium":if(_.tt())return r(["Chrome","CriOS","HeadlessChrome"])}return g==="Firefox"&&bB()||g==="Safari"&&_.FY()||g==="Android Browser"&&_.MVY()||g==="Silk"&&nL("Silk")?(r=E[2])&&r[1]||"":""};
_.lQY=function(g){if(fL()&&g!=="Silk"){var r=pL.brands.find(function(E){return E.brand===g});
if(!r||!r.version)return NaN;r=r.version.split(".")}else{r=uYB(g);if(r==="")return NaN;r=r.split(".")}return r.length===0?NaN:Number(r[0])};
eV=function(){return HJ?!!pL&&!!pL.platform:!1};
_.Doc=function(){return eV()?pL.platform==="Android":nL("Android")};
ocV=function(){return nL("iPhone")&&!nL("iPod")&&!nL("iPad")};
_.WJ=function(){return ocV()||nL("iPad")||nL("iPod")};
_.GSD=function(){return eV()?pL.platform==="macOS":nL("Macintosh")};
_.QXA=function(){return eV()?pL.platform==="Windows":nL("Windows")};
_.zPV=function(){return eV()?pL.platform==="Chrome OS":nL("CrOS")};
_.KL=function(g){return g[g.length-1]};
_.aX=function(g,r,E){r=_.kSl(g,r,E);return r<0?null:typeof g==="string"?g.charAt(r):g[r]};
_.kSl=function(g,r,E){for(var B=g.length,w=typeof g==="string"?g.split(""):g,O=0;O<B;O++)if(O in w&&r.call(E,w[O],O,g))return O;return-1};
HLD=function(g){for(var r=_.No,E=typeof g==="string"?g.split(""):g,B=g.length-1;B>=0;B--)if(B in E&&r.call(void 0,E[B],B,g))return B;return-1};
_.mA=function(g,r){return _.IX(g,r)>=0};
_.LL=function(g,r){_.mA(g,r)||g.push(r)};
_.ht=function(g,r){r=_.IX(g,r);var E;(E=r>=0)&&_.Vl(g,r);return E};
_.Vl=function(g,r){Array.prototype.splice.call(g,r,1)};
_.ZQ=function(g){var r=g.length;if(r>0){for(var E=Array(r),B=0;B<r;B++)E[B]=g[B];return E}return[]};
_.dl=function(g,r){for(var E=1;E<arguments.length;E++){var B=arguments[E];if(_.vJ(B)){var w=g.length||0,O=B.length||0;g.length=w+O;for(var M=0;M<O;M++)g[w+M]=B[M]}else g.push(B)}};
_.YDJ=function(g,r,E,B){Array.prototype.splice.apply(g,pJS(arguments,1))};
pJS=function(g,r,E){return arguments.length<=2?Array.prototype.slice.call(g,r):Array.prototype.slice.call(g,r,E)};
B6=function(g,r){r=r||g;for(var E=0,B=0,w={};B<g.length;){var O=g[B++],M=_.gA(O)?"o"+_.Ew(O):(typeof O).charAt(0)+O;Object.prototype.hasOwnProperty.call(w,M)||(w[M]=!0,r[E++]=O)}r.length=E};
_.RPt=function(g,r,E){E=E||_.wA;for(var B=0,w=g.length,O;B<w;){var M=B+(w-B>>>1);var u=E(r,g[M]);u>0?B=M+1:(w=M,O=!u)}return O?B:-B-1};
_.SU=function(g,r,E){if(!_.vJ(g)||!_.vJ(r)||g.length!=r.length)return!1;var B=g.length;E=E||ncl;for(var w=0;w<B;w++)if(!E(g[w],r[w]))return!1;return!0};
_.wA=function(g,r){return g>r?1:g<r?-1:0};
ncl=function(g,r){return g===r};
sXD=function(g,r,E){r=Array.prototype.splice.call(g,r,1);Array.prototype.splice.call(g,E,0,r[0])};
$oL=function(g){return fQY[g]||""};
bLA=function(g){if(!jXX)return _.Mz(g);g=AtP.test(g)?g.replace(AtP,$oL):g;g=atob(g);for(var r=new Uint8Array(g.length),E=0;E<g.length;E++)r[E]=g.charCodeAt(E);return r};
Jtl=function(g,r){g.__closure__error__context__984382||(g.__closure__error__context__984382={});g.__closure__error__context__984382.severity=r};
_.om=function(g){g=Error(g);Jtl(g,"warning");return g};
zD=function(g,r){if(g!=null){var E;var B=(E=PBA)!=null?E:PBA={};E=B[g]||0;E>=r||(B[g]=E+1,g=Error(),Jtl(g,"incident"),BJ(g))}};
H6=function(g,r,E){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(E===void 0?0:E)&&Symbol.for&&g?Symbol.for(g):g!=null?Symbol(g):Symbol():r};
nw=function(g,r){pw||_.Yb in g||tVP(g,FAD);g[_.Yb]|=r};
fw=function(g,r){pw||_.Yb in g||tVP(g,FAD);g[_.Yb]=r};
ePo=function(g){if(4&g)return 512&g?512:1024&g?1024:0};
$b=function(g){nw(g,34);return g};
WAS=function(g){nw(g,32);return g};
jU=function(){return typeof BigInt==="function"};
P6=function(g,r){return r===void 0?g.copyOnWrite!==JD&&!!(2&(g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Yb]|0)):!!(2&r)&&g.copyOnWrite!==JD};
_.Cw=function(g,r){if(g!=null)if(typeof g==="string")g=g?new FZ(g,eU):_.W6();else if(g.constructor!==FZ)if(CBA&&g!=null&&g instanceof Uint8Array)g=g.length?new FZ(new Uint8Array(g),eU):_.W6();else{if(!r)throw Error();g=void 0}return g};
Kw=function(g,r){if(typeof r!=="number"||r<0||r>=g.length)throw Error();};
KAo=function(g,r,E){var B=r&128?0:-1,w=g.length,O;if(O=!!w)O=g[w-1],O=O!=null&&typeof O==="object"&&O.constructor===Object;var M=w+(O?-1:0);for(r=r&128?1:0;r<M;r++)E(r-B,g[r]);if(O){g=g[w-1];for(var u in g)!isNaN(u)&&E(+u,g[u])}};
Nz=function(g){return g&128?am:void 0};
mn=function(g){g.isGuard_doNotManuallySetPrettyPlease=!0;return g};
aQA=function(){var g=xoA;return mn(function(r){for(var E in g)if(r===g[E]&&!/^[0-9]+$/.test(E))return!0;return!1})};
_.hD=function(g){var r=g;if(XJt(r)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(r))throw Error(String(r));}else if(NlY(r)&&!Number.isSafeInteger(r))throw Error(String(r));return VT?BigInt(g):g=IQQ(g)?g?"1":"0":XJt(g)?g.trim()||"0":String(g)};
moX=function(g,r){if(g.length>r.length)return!1;if(g.length<r.length||g===r)return!0;for(var E=0;E<g.length;E++){var B=g[E],w=r[E];if(B>w)return!1;if(B<w)return!0}};
ctJ=function(g){var r=g>>>0;yT=r;v6=(g-r)/4294967296>>>0};
dA=function(g){if(g<0){ctJ(-g);var r=_.U(iLB(yT,v6));g=r.next().value;r=r.next().value;yT=g>>>0;v6=r>>>0}else ctJ(g)};
LAJ=function(g,r){var E=r*4294967296+(g>>>0);return Number.isSafeInteger(E)?E:_.TD(g,r)};
gg=function(g,r){var E=r&2147483648;E&&(g=~g+1>>>0,r=~r>>>0,g==0&&(r=r+1>>>0));g=LAJ(g,r);return typeof g==="number"?E?-g:g:E?"-"+g:g};
_.TD=function(g,r){r>>>=0;g>>>=0;if(r<=2097151)var E=""+(4294967296*r+g);else jU()?E=""+(BigInt(r)<<BigInt(32)|BigInt(g)):(E=(g>>>24|r<<8)&16777215,r=r>>16&65535,g=(g&16777215)+E*6777216+r*6710656,E+=r*8147497,r*=2,g>=1E7&&(E+=g/1E7>>>0,g%=1E7),E>=1E7&&(r+=E/1E7>>>0,E%=1E7),E=r+VVY(E)+VVY(g));return E};
VVY=function(g){g=String(g);return"0000000".slice(g.length)+g};
_.EM=function(g,r){r&2147483648?jU()?g=""+(BigInt(r|0)<<BigInt(32)|BigInt(g>>>0)):(r=_.U(iLB(g,r)),g=r.next().value,r=r.next().value,g="-"+_.TD(g,r)):g=_.TD(g,r);return g};
BF=function(g){if(g.length<16)dA(Number(g));else if(jU())g=BigInt(g),yT=Number(g&BigInt(4294967295))>>>0,v6=Number(g>>BigInt(32)&BigInt(4294967295));else{var r=+(g[0]==="-");v6=yT=0;for(var E=g.length,B=r,w=(E-r)%6+r;w<=E;B=w,w+=6)B=Number(g.slice(B,w)),v6*=1E6,yT=yT*1E6+B,yT>=4294967296&&(v6+=Math.trunc(yT/4294967296),v6>>>=0,yT>>>=0);r&&(r=_.U(iLB(yT,v6)),g=r.next().value,r=r.next().value,yT=g,v6=r)}};
iLB=function(g,r){r=~r;g?g=~g+1:r+=1;return[g,r]};
wg=function(g){return Array.prototype.slice.call(g)};
_.MM=function(g,r){throw Error(r===void 0?"unexpected value "+g+"!":r);};
_.qM=function(g){if(g!=null&&typeof g!=="number")throw Error("I`"+typeof g+"`"+g);return g};
_.um=function(g){if(g==null||typeof g==="number")return g;if(g==="NaN"||g==="Infinity"||g==="-Infinity")return Number(g)};
hPl=function(g){if(g!=null&&typeof g!=="boolean")throw Error("J`"+_.lm(g)+"`"+g);return g};
_.ZLl=function(g){if(g==null||typeof g==="boolean")return g;if(typeof g==="number")return!!g};
_.kt=function(g){switch(typeof g){case "bigint":return!0;case "number":return GL(g);case "string":return ytY.test(g);default:return!1}};
_.HF=function(g){if(!GL(g))throw _.om("enum");return g|0};
_.Yt=function(g){return g==null?g:GL(g)?g|0:void 0};
vcA=function(g){if(typeof g!=="number")throw _.om("int32");if(!GL(g))throw _.om("int32");return g|0};
_.sM=function(g){return g==null?g:vcA(g)};
_.fD=function(g){if(g==null)return g;if(typeof g==="string"&&g)g=+g;else if(typeof g!=="number")return;return GL(g)?g|0:void 0};
_.jv=function(g){if(g==null)return g;if(typeof g==="string"&&g)g=+g;else if(typeof g!=="number")return;return GL(g)?g>>>0:void 0};
rDJ=function(g){var r=0;r=r===void 0?0:r;if(!_.kt(g))throw _.om("int64");var E=typeof g;switch(r){case 512:switch(E){case "string":return A8(g);case "bigint":return String(bm(64,g));default:return doS(g)}case 1024:switch(E){case "string":return Tlt(g);case "bigint":return _.hD(bm(64,g));default:return gbV(g)}case 0:switch(E){case "string":return A8(g);case "bigint":return _.hD(bm(64,g));default:return F$(g)}default:return _.MM(r,"Unknown format requested type for int64")}};
ev=function(g){return g==null?g:rDJ(g)};
Ebc=function(g){if(g[0]==="-")return!1;var r=g.length;return r<20?!0:r===20&&Number(g.substring(0,6))<184467};
BAV=function(g){var r=g.length;return g[0]==="-"?r<20?!0:r===20&&Number(g.substring(0,7))>-922337:r<19?!0:r===19&&Number(g.substring(0,6))<922337};
w6L=function(g){if(g<0){dA(g);var r=_.TD(yT,v6);g=Number(r);return WF(g)?g:r}r=String(g);if(Ebc(r))return r;dA(g);return LAJ(yT,v6)};
SwY=function(g){if(BAV(g))return g;BF(g);return _.EM(yT,v6)};
Owl=function(g){if(Ebc(g))return g;BF(g);return _.TD(yT,v6)};
F$=function(g){g=CD(g);WF(g)||(dA(g),g=gg(yT,v6));return g};
_.UzB=function(g){g=CD(g);return g>=0&&WF(g)?g:w6L(g)};
doS=function(g){g=CD(g);if(WF(g))g=String(g);else{var r=String(g);BAV(r)?g=r:(dA(g),g=_.EM(yT,v6))}return g};
_.MUo=function(g){g=CD(g);if(g>=0&&WF(g))g=String(g);else{var r=String(g);Ebc(r)?g=r:(dA(g),g=_.TD(yT,v6))}return g};
A8=function(g){var r=CD(Number(g));if(WF(r))return String(r);r=g.indexOf(".");r!==-1&&(g=g.substring(0,r));return SwY(g)};
Tlt=function(g){var r=CD(Number(g));if(WF(r))return _.hD(r);r=g.indexOf(".");r!==-1&&(g=g.substring(0,r));return jU()?_.hD(bm(64,BigInt(g))):_.hD(SwY(g))};
gbV=function(g){return WF(g)?_.hD(F$(g)):_.hD(doS(g))};
_.qwL=function(g){return WF(g)?_.hD(_.UzB(g)):_.hD(_.MUo(g))};
_.uZS=function(g){var r=CD(Number(g));if(WF(r)&&r>=0)return String(r);r=g.indexOf(".");r!==-1&&(g=g.substring(0,r));return Owl(g)};
_.lIS=function(g){var r=CD(Number(g));if(WF(r)&&r>=0)return _.hD(r);r=g.indexOf(".");r!==-1&&(g=g.substring(0,r));return jU()?_.hD((0,_.KD)(64,BigInt(g))):_.hD(Owl(g))};
_.DzQ=function(g){if(g==null)return g;if(typeof g==="bigint")return xt(g)?g=Number(g):(g=bm(64,g),g=xt(g)?Number(g):String(g)),g;if(_.kt(g))return typeof g==="number"?F$(g):A8(g)};
obB=function(g,r){r=r===void 0?!1:r;var E=typeof g;if(g==null)return g;if(E==="bigint")return String(bm(64,g));if(_.kt(g))return E==="string"?A8(g):r?doS(g):F$(g)};
_.GDS=function(g){var r=typeof g;if(g==null)return g;if(r==="bigint")return _.hD(bm(64,g));if(_.kt(g))return r==="string"?Tlt(g):gbV(g)};
QmP=function(g){if(g==null)return g;var r=typeof g;if(r==="bigint")return String(bm(64,g));if(_.kt(g)){if(r==="string")return A8(g);if(r==="number")return F$(g)}};
z4D=function(g){if(g==null)return g;var r=typeof g;if(r==="bigint")return String((0,_.KD)(64,g));if(_.kt(g)){if(r==="string")return _.uZS(g);if(r==="number")return _.UzB(g)}};
_.aA=function(g){if(typeof g!=="string")throw Error();return g};
NM=function(g){if(g!=null&&typeof g!=="string")throw Error();return g};
_.IA=function(g){return g==null||typeof g==="string"?g:void 0};
kDo=function(g,r,E,B){if(g!=null&&g[m6]===cF)return g;if(!Array.isArray(g))return E?B&2?((g=r[im])||(g=new r,$b(g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),g=r[im]=g),r=g):r=new r:r=void 0,r;E=g[_.Yb]|0;B=E|B&32|B&2;B!==E&&fw(g,B);return new r(g)};
HwS=function(g,r,E){g=r?vcA(g):_.fD(g);return g==null?E?0:void 0:g|0};
p6P=function(g){return g};
Ywo=function(g){return g};
nbB=function(g,r,E,B,w,O){g=kDo(g,B,E,O);w&&(g=R4o(g));return g};
smB=function(g){return[g,this.get(g)]};
jmY=function(){return fIL||(fIL=new LD($b([]),void 0,void 0,void 0,$zc))};
y5=function(g){var r=V5(Z4);return r?g[r]:void 0};
JDV=function(g,r){var E=E===void 0?!1:E;if(V5(ADX)&&V5(Z4)&&void 0===ADX){var B=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=B[Z4];if(!w)return;if(w=w.reviveUnknownFields)try{w(B,r,bwX);return}catch(O){BJ(O)}}E&&(g=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(E=V5(Z4))&&E in g&&(g=g[E])&&delete g[r])};
tUY=function(g,r){var E=V5(Z4),B;pw&&E&&((B=g[E])==null?void 0:B[r])!=null&&zD(PnQ,3)};
e4D=function(g,r){r<100||zD(FnJ,1)};
xzl=function(g,r,E,B){var w=B!==void 0;B=!!B;var O=V5(Z4),M;!w&&pw&&O&&(M=g[O])&&vF(M,e4D);O=[];var u=g.length;M=4294967295;var l=!1,Q=!!(r&64),z=Q?r&128?0:-1:void 0;if(!(r&1)){var k=u&&g[u-1];k!=null&&typeof k==="object"&&k.constructor===Object?(u--,M=u):k=void 0;if(Q&&!(r&128)&&!w){l=!0;var H;M=((H=WnD)!=null?H:p6P)(M-z,z,g,k,void 0)+z}}r=void 0;for(H=0;H<u;H++){var R=g[H];if(R!=null&&(R=E(R,B))!=null)if(Q&&H>=M){var A=H-z,J=void 0;((J=r)!=null?J:r={})[A]=R}else O[H]=R}if(k)for(var e in k)u=k[e],
u!=null&&(u=E(u,B))!=null&&(H=+e,R=void 0,Q&&!Number.isNaN(H)&&(R=H+z)<M?O[R]=u:(H=void 0,((H=r)!=null?H:r={})[e]=u));r&&(l?O.push(r):O[M]=r);w&&V5(Z4)&&(g=y5(g))&&g instanceof Cno&&(O[Z4]=KnL(g));return O};
aIJ=function(g){g[0]=dg(g[0]);g[1]=dg(g[1]);return g};
dg=function(g){switch(typeof g){case "number":return Number.isFinite(g)?g:""+g;case "bigint":return xt(g)?Number(g):""+g;case "boolean":return g?1:0;case "object":if(Array.isArray(g)){var r=g[_.Yb]|0;return g.length===0&&r&1?void 0:xzl(g,r,dg)}if(g!=null&&g[m6]===cF)return X6P(g);if(g instanceof FZ){r=g.JSC$6907_value_;if(r==null)g="";else if(typeof r==="string")g=r;else{if(jXX){for(var E="",B=0,w=r.length-10240;B<w;)E+=String.fromCharCode.apply(null,r.subarray(B,B+=10240));E+=String.fromCharCode.apply(null,
B?r.subarray(B):r);r=btoa(E)}else r=_.gk(r);g=g.JSC$6907_value_=r}return g}if(g instanceof LD)return g=g.size!==0?Array.from(rk.prototype.entries.call(g),aIJ):void 0,g;return}return g};
wk=function(g,r){if(r){WnD=r==null||r===p6P||r[NAc]!==IIS?p6P:r;try{return X6P(g)}finally{WnD=void 0}}return X6P(g)};
X6P=function(g){g=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return xzl(g,g[_.Yb]|0,dg)};
iwA=function(g){switch(typeof g){case "boolean":return mzS||(mzS=[0,void 0,!0]);case "number":return g>0?void 0:g===0?cDD||(cDD=[0,void 0]):[-g,void 0];case "string":return[0,g];case "object":return g}};
Ol=function(g,r,E){return g=_.Sz(g,r[0],r[1],E?1:2)};
_.Sz=function(g,r,E,B){B=B===void 0?0:B;if(g==null){var w=32;E?(g=[E],w|=128):g=[];r&&(w=w&-8380417|(r&1023)<<13)}else{if(!Array.isArray(g))throw Error("L");w=g[_.Yb]|0;if(Lno&&1&w)throw Error("M");2048&w&&!(2&w)&&VUA();if(w&256)throw Error("N");if(w&64)return B!==0||w&2048||fw(g,w|2048),g;if(E&&(w|=128,E!==g[0]))throw Error("O");a:{E=g;w|=64;var O=E.length;if(O){var M=O-1,u=E[M];if(u!=null&&typeof u==="object"&&u.constructor===Object){r=w&128?0:-1;M-=r;if(M>=1024)throw Error("Q");for(var l in u)O=
+l,O<M&&(E[O+r]=u[l],delete u[l]);w=w&-8380417|(M&1023)<<13;break a}}if(r){l=Math.max(r,O-(w&128?0:-1));if(l>1024)throw Error("R");w=w&-8380417|(l&1023)<<13}}}w|=64;B===0&&(w|=2048);fw(g,w);return g};
VUA=function(){if(Lno)throw Error("P");zD(h4l,5)};
vbt=function(g,r){if(typeof g!=="object")return g;if(Array.isArray(g)){var E=g[_.Yb]|0;return g.length===0&&E&1?void 0:ZwS(g,E,r)}if(g!=null&&g[m6]===cF)return yDL(g);if(g instanceof LD){r=g.arrayState;if(r&2)return g;if(!g.size)return;E=$b(Array.from(rk.prototype.entries.call(g)));if(g.valueCtor)for(g=0;g<E.length;g++){var B=E[g],w=B[1];w==null||typeof w!=="object"?w=void 0:w!=null&&w[m6]===cF?w=yDL(w):Array.isArray(w)?w=ZwS(w,w[_.Yb]|0,!!(r&32)):w=void 0;B[1]=w}return E}if(g instanceof FZ)return g};
ZwS=function(g,r,E){if(r&2)return g;!E||4096&r||16&r?g=Ul(g,r,!1,E&&!(r&16)):(nw(g,34),r&4&&Object.freeze(g));return g};
Ms=function(g,r,E){g=new g.constructor(r);E&&(g.copyOnWrite=JD);g.noLegacyNull=JD;return g};
yDL=function(g){var r=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=r[_.Yb]|0;return P6(g,E)?g:qs(g,r,E)?Ms(g,r):Ul(r,E)};
Ul=function(g,r,E,B){B!=null||(B=!!(34&r));g=xzl(g,r,vbt,B);B=32;E&&(B|=2);r=r&8380609|B;fw(g,r);return g};
R4o=function(g){var r=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=r[_.Yb]|0;return P6(g,E)?qs(g,r,E)?Ms(g,r,!0):new g.constructor(Ul(r,E,!1)):g};
uA=function(g){if(g.copyOnWrite!==JD)return!1;var r=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;r=Ul(r,r[_.Yb]|0);nw(r,2048);g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=r;g.copyOnWrite=void 0;g.noLegacyNull=void 0;return!0};
o8=function(g){if(!uA(g)&&P6(g,g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Yb]|0))throw Error();};
G_=function(g,r){r===void 0&&(r=g[_.Yb]|0);r&32&&!(r&4096)&&fw(g,r|4096)};
qs=function(g,r,E){return E&2?!0:E&32&&!(E&4096)?(fw(r,E|2),g.copyOnWrite=JD,!0):!1};
ku=function(g,r,E,B,w){var O=E+(w?0:-1),M=g.length-1;if(M>=1+(w?0:-1)&&O>=M){var u=g[M];if(u!=null&&typeof u==="object"&&u.constructor===Object)return u[E]=B,r}if(O<=M)return g[O]=B,r;if(B!==void 0){var l;M=((l=r)!=null?l:r=g[_.Yb]|0)>>13&1023||536870912;E>=M?B!=null&&(O={},g[M+(w?0:-1)]=(O[E]=B,O)):g[O]=B}return r};
_.nt=function(g,r,E,B,w){var O=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=O[_.Yb]|0;B=P6(g,M)?1:B;w=!!w||B===3;B===2&&uA(g)&&(O=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=O[_.Yb]|0);g=dzt(O,r);var u=g===Yu?7:g[_.Yb]|0,l=TAQ(u,M);var Q=4&l?!1:!0;if(Q){4&l&&(g=wg(g),u=0,l=R8(l,M),M=ku(O,M,r,g));for(var z=0,k=0;z<g.length;z++){var H=E(g[z]);H!=null&&(g[k++]=H)}k<z&&(g.length=k);E=(l|4)&-513;l=E&=-1025;l&=-4097}l!==u&&(fw(g,l),2&l&&Object.freeze(g));return g=gtl(g,l,O,
M,r,B,Q,w)};
gtl=function(g,r,E,B,w,O,M,u){var l=r;O===1||(O!==4?0:2&r||!(16&r)&&32&B)?sl(r)||(r|=!g.length||M&&!(4096&r)||32&B&&!(4096&r||16&r)?2:256,r!==l&&fw(g,r),Object.freeze(g)):(O===2&&sl(r)&&(g=wg(g),l=0,r=R8(r,B),B=ku(E,B,w,g)),sl(r)||(u||(r|=16),r!==l&&fw(g,r)));2&r||!(4096&r||16&r)||G_(E,B);return g};
dzt=function(g,r,E){g=ft(g,r,E);return Array.isArray(g)?g:Yu};
TAQ=function(g,r){2&r&&(g|=2);return g|1};
sl=function(g){return!!(2&g)&&!!(4&g)||!!(256&g)};
r8L=function(g){return _.Cw(g,!0)};
Etl=function(g,r){var E=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B=E[_.Yb]|0;a:{var w=B;B=P6(g,B);!B&&uA(g)&&(E=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=E[_.Yb]|0);var O=ft(E,r);g=!1;if(O==null){if(B){r=jmY();break a}O=[]}else if(O.constructor===LD)if(O.arrayState&2&&!B)O=Array.from(rk.prototype.entries.call(O));else{r=O;break a}else Array.isArray(O)?g=!!((O[_.Yb]|0)&2):O=[];if(B){if(!O.length){r=jmY();break a}g||(g=!0,$b(O))}else if(g){g=!1;B=O;B=wg(B);for(O=0;O<
B.length;O++){var M=B[O]=wg(B[O]);Array.isArray(M[1])&&(M[1]=$b(M[1]))}O=B}!g&&w&32&&WAS(O);B=new LD(O,void 0,HwS,HwS);w=ku(E,w,r,B);g||G_(E,w);r=B}return r};
_.$u=function(g,r,E,B){o8(g);var w=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=w[_.Yb]|0;if(E==null)return ku(w,O,r),g;var M=E===Yu?7:E[_.Yb]|0,u=M,l=sl(M),Q=l||Object.isFrozen(E);l||(M=0);Q||(E=wg(E),u=0,M=R8(M,O),Q=!1);M|=5;var z;l=(z=ePo(M))!=null?z:0;for(z=0;z<E.length;z++){var k=E[z],H=B(k,l);Object.is(k,H)||(Q&&(E=wg(E),u=0,M=R8(M,O),Q=!1),E[z]=H)}M!==u&&(Q&&(E=wg(E),M=R8(M,O)),fw(E,M));ku(w,O,r,E);return g};
_.jz=function(g,r,E,B,w){o8(g);var O=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;ku(O,O[_.Yb]|0,r,(B==="0"?Number(E)===0:E===B)?void 0:E,w);return g};
_.AB=function(g,r,E){if(r&2)throw Error();var B=Nz(r),w=dzt(g,E,B),O=w===Yu?7:w[_.Yb]|0,M=TAQ(O,r);if(2&M||sl(M)||16&M)w=wg(w),O=0,M=R8(M,r),ku(g,r,E,w,B);M&=-13;M!==O&&fw(w,M);return w};
Bgl=function(g){if(pw){var r;return(r=g[bA])!=null?r:g[bA]=new Map}if(bA in g)return g[bA];r=new Map;Object.defineProperty(g,bA,{value:r});return r};
SMA=function(g,r,E,B,w){var O=Bgl(g),M=wFJ(O,g,r,E,w);M!==B&&(M&&(r=ku(g,r,M,void 0,w)),O.set(E,B));return r};
wFJ=function(g,r,E,B,w){var O=g.get(B);if(O!=null)return O;for(var M=O=0;M<B.length;M++){var u=B[M];ft(r,u,w)!=null&&(O!==0&&(E=ku(r,E,O,void 0,w)),O=u)}g.set(B,O);return O};
JB=function(g,r,E,B,w){var O=!1;B=ft(g,B,w,function(M){var u=kDo(M,E,!1,r);O=u!==M&&u!=null;return u});
if(B!=null)return O&&!P6(B)&&G_(g,r),B};
ODB=function(g,r,E,B,w,O,M,u){var l=P6(g,E);O=l?1:O;M=!!M||O===3;l=u&&!l;(O===2||l)&&uA(g)&&(r=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=r[_.Yb]|0);g=dzt(r,w);var Q=g===Yu?7:g[_.Yb]|0,z=TAQ(Q,E);if(u=!(4&z)){var k=g,H=E,R=!!(2&z);R&&(H|=2);for(var A=!R,J=!0,e=0,C=0;e<k.length;e++){var X=kDo(k[e],B,!1,H);if(X instanceof B){if(!R){var Z=P6(X);A&&(A=!Z);J&&(J=Z)}k[C++]=X}}C<e&&(k.length=C);z|=4;z=J?z&-4097:z|4096;z=A?z|8:z&-9}z!==Q&&(fw(g,z),2&z&&Object.freeze(g));if(l&&!(8&z||!g.length&&
(O===1||(O!==4?0:2&z||!(16&z)&&32&E)))){sl(z)&&(g=wg(g),z=R8(z,E),E=ku(r,E,w,g));B=g;l=z;for(Q=0;Q<B.length;Q++)k=B[Q],z=R4o(k),k!==z&&(B[Q]=z);l|=8;z=l=B.length?l|4096:l&-4097;fw(g,z)}return g=gtl(g,z,r,E,w,O,u,M)};
UMD=function(g){g==null&&(g=void 0);return g};
R8=function(g,r){return g=(2&r?g|2:g&-3)&-273};
_.MvA=function(g,r,E,B,w){o8(g);r=_.nt(g,r,w,2,!0);var O;w=(O=ePo(r===Yu?7:r[_.Yb]|0))!=null?O:0;r.push(E(B,w));return g};
qMP=function(g,r,E,B,w,O,M){o8(g);var u=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;g=ODB(g,u,u[_.Yb]|0,E,r,2,!0);if(O&&M)w!=null||(w=g.length-1),Kw(g,w),g.splice(w,O),g.length||(g[_.Yb]&=-4097);else{if(O){if(typeof w!=="number"||w<0||w>g.length)throw Error();}else B=B!=null?B:new E;w!=void 0?g.splice(w,O,B):g.push(B);w=E=g===Yu?7:g[_.Yb]|0;(B=P6(B))?(E&=-9,g.length===1&&(E&=-4097)):E|=4096;E!==w&&fw(g,E);B||G_(u)}};
u$l=function(g,r){if(typeof g==="string")return new tB(bLA(g),r);if(Array.isArray(g))return new tB(new Uint8Array(g),r);if(g.constructor===Uint8Array)return new tB(g,!1);if(g.constructor===ArrayBuffer)return g=new Uint8Array(g),new tB(g,!1);if(g.constructor===FZ)return r=Fj(g)||new Uint8Array(0),new tB(r,!0,g);if(g instanceof Uint8Array)return g=g.constructor===Uint8Array?g:new Uint8Array(g.buffer,g.byteOffset,g.byteLength),new tB(g,!1);throw Error();};
ez=function(){var g=function(){throw Error();};
Object.setPrototypeOf(g,g.prototype);return g};
DMl=function(g,r){var E=E===void 0?l4l:E;return new WH(g,r,E)};
zzt=function(g,r,E,B,w){r=otL(r,B);r!=null&&(E=_.GLL(g,E),w(r,g),_.QAV(g,E))};
Kt=function(g,r,E,B){var w=B[g];if(w)return w;w={};w.binaryFields=B;w.messageMetadata=iwA(B[0]);var O=B[1],M=1;O&&O.constructor===Object&&(w.extensions=O,O=B[++M],typeof O==="function"&&(w.isMessageSet=!0,kLX!=null||(kLX=O),HDY!=null||(HDY=B[M+1]),O=B[M+=2]));for(var u={};O&&Array.isArray(O)&&O.length&&typeof O[0]==="number"&&O[0]>0;){for(var l=0;l<O.length;l++)u[O[l]]=O;O=B[++M]}for(l=1;O!==void 0;){typeof O==="number"&&(l+=O,O=B[++M]);var Q=void 0;if(O instanceof WH)var z=O;else z=pFt,M--;O=void 0;
if((O=z)==null?0:O.$$isMsg){O=B[++M];Q=B;var k=M;typeof O==="function"&&(O=O(),Q[k]=O);Q=O}O=B[++M];k=l+1;typeof O==="number"&&O<0&&(k-=O,O=B[++M]);for(;l<k;l++){var H=u[l];Q?E(w,l,z,Q,H):r(w,l,z,H)}}return B[g]=w};
RzD=function(g){return Array.isArray(g)?g[0]instanceof WH?g:[YMB,g]:[g,void 0]};
otL=function(g,r){if(g instanceof _.xu)return g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(g))return Ol(g,r,!1)};
ntc=function(g,r,E,B){var w=E.$$binaryReaderFn;g[r]=B?function(O,M,u){return w(O,M,u,B)}:w};
sAQ=function(g,r,E,B,w){var O=E.$$binaryReaderFn,M,u;g[r]=function(l,Q,z){return O(l,Q,z,u||(u=Kt(a8,ntc,sAQ,B).messageMetadata),M||(M=f4c(B)),w)}};
f4c=function(g){var r=g[$MS];if(r!=null)return r;var E=Kt(a8,ntc,sAQ,g);r=E.isMessageSet?function(B,w){return kLX(B,w,E)}:function(B,w){for(;jAA(w)&&w.nextWireType_!=4;){var O=w.nextField_,M=E[O];
if(M==null){var u=E.extensions;u&&(u=u[O])&&(u=A8V(u),u!=null&&(M=E[O]=u))}if(M==null||!M(w,B,O)){u=w;M=u.fieldCursor_;Xj(u);if(u.discardUnknownFields)var l=void 0;else{var Q=u.decoder_.cursor_-M;u.decoder_.cursor_=M;l=bDX(u.decoder_,Q)}Q=u=M=void 0;var z=B;l&&((M=(u=(Q=z[Z4])!=null?Q:z[Z4]=new Cno)[O])!=null?M:u[O]=[]).push(l)}}if(B=y5(B))B.reviveUnknownFields=E.binaryFields[J8l];return!0};
g[$MS]=r;g[J8l]=PmV.bind(g);return r};
PmV=function(g,r,E,B){var w=this[a8],O=this[$MS],M=Ol(void 0,w.messageMetadata,!1),u=y5(g);if(u){var l=!1,Q=w.extensions;if(Q){w=function(A,J,e){if(e.length!==0)if(Q[J])for(A=_.U(e),J=A.next();!J.done;J=A.next()){J=tvt(J.value);try{l=!0,O(M,J)}finally{J.free()}}else B==null||B(g,J,e)};
if(r==null)vF(u,w);else if(u!=null){var z=u[r];z&&w(u,r,z)}if(l){var k=g[_.Yb]|0;if(k&2&&k&2048&&(E==null||!E.reviveIntoImmutable))throw Error();var H=Nz(k),R=function(A,J){if(ft(g,A,H)!=null)switch(E==null?void 0:E.resolutionBehavior){case 1:return;default:throw Error();}J!=null&&(k=ku(g,k,A,J,H));delete u[A]};
r==null?KAo(M,M[_.Yb]|0,function(A,J){R(A,J)}):R(r,ft(M,r,H))}}}};
A8V=function(g){g=RzD(g);var r=g[0].$$binaryReaderFn;if(g=g[1]){var E=f4c(g),B=Kt(a8,ntc,sAQ,g).messageMetadata;return function(w,O,M){return r(w,O,M,B,E)}}return r};
Ns=function(g,r,E){g[r]=E.$$binaryWriterFn};
mp=function(g,r,E,B){var w,O,M=E.$$binaryWriterFn;g[r]=function(u,l,Q){return M(u,l,Q,O||(O=Kt(I8,Ns,mp,B).messageMetadata),w||(w=F6Y(B)))}};
F6Y=function(g){var r=g[ezD];if(!r){var E=Kt(I8,Ns,mp,g);r=function(B,w){return W6L(B,w,E)};
g[ezD]=r}return r};
W6L=function(g,r,E){KAo(g,g[_.Yb]|0,function(B,w){if(w!=null){var O=Cmo(E,B);O?O(r,w,B):B<500||zD(K6Y,3)}});
(g=y5(g))&&vF(g,function(B,w,O){cH(r,r.encoder_.end());for(B=0;B<O.length;B++)cH(r,Fj(O[B])||new Uint8Array(0))})};
Cmo=function(g,r){var E=g[r];if(E)return E;if(E=g.extensions)if(E=E[r]){E=RzD(E);var B=E[0].$$binaryWriterFn;if(E=E[1]){var w=F6Y(E),O=Kt(I8,Ns,mp,E).messageMetadata;E=g.isMessageSet?HDY(O,w):function(M,u,l){return B(M,u,l,O,w)}}else E=B;
return g[r]=E}};
_.xMV=function(g,r,E){if(Array.isArray(r)){var B=r[_.Yb]|0;if(B&4)return r;for(var w=0,O=0;w<r.length;w++){var M=g(r[w]);M!=null&&(r[O++]=M)}O<w&&(r.length=O);E&&(fw(r,(B|5)&-1537),B&2&&Object.freeze(r));return r}};
_.iA=function(g,r,E){return new WH(g,r,E)};
_.a4l=function(g,r,E){return new WH(g,r,E)};
_.Lt=function(g,r,E){ku(g,g[_.Yb]|0,r,E,Nz(g[_.Yb]|0))};
XFL=function(g,r,E){r=_.um(r);r!=null&&(_.hB(g,E,1),g=g.encoder_,E=Za||(Za=new DataView(new ArrayBuffer(8))),E.setFloat64(0,+r,!0),yT=E.getUint32(0,!0),v6=E.getUint32(4,!0),_.yB(g,yT),_.yB(g,v6))};
_.vH=function(g,r,E){r=QmP(r);if(r!=null){switch(typeof r){case "string":NgD(r)}if(r!=null)switch(_.hB(g,E,0),typeof r){case "number":g=g.encoder_;dA(r);I4A(g,yT,v6);break;case "bigint":E=BigInt.asUintN(64,r);E=new mMt(Number(E&BigInt(4294967295)),Number(E>>BigInt(32)));I4A(g.encoder_,E.JSC$6951_lo,E.JSC$6951_hi);break;default:E=NgD(r),I4A(g.encoder_,E.JSC$6951_lo,E.JSC$6951_hi)}}};
iDA=function(g,r,E){r=_.fD(r);r!=null&&r!=null&&(_.hB(g,E,0),_.c8A(g.encoder_,r))};
_.VvL=function(g,r,E){L6P(g,E,z4D(r))};
_.hzl=function(g,r,E){r=_.ZLl(r);r!=null&&(_.hB(g,E,0),g.encoder_.JSC$6953_buffer_.push(r?1:0))};
_.y8D=function(g,r,E){r=_.IA(r);r!=null&&ZDP(g,E,wJB(r))};
dML=function(g,r,E,B,w){r=otL(r,B);r!=null&&(E=_.GLL(g,E),w(r,g),_.QAV(g,E))};
_.Tgt=function(g,r,E){r=r==null||typeof r=="string"||r instanceof FZ?r:void 0;r!=null&&ZDP(g,E,u$l(r,!0).buffer)};
_.guX=function(g,r,E){r=_.fD(r);r!=null&&(r=parseInt(r,10),_.hB(g,E,0),_.c8A(g.encoder_,r))};
_.dk=function(g,r){return function(E,B){var w={treatNewDataAsImmutable:!0};B&&Object.assign(w,B);E=tvt(E,void 0,void 0,w);try{var O=new g,M=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;f4c(r)(M,E);var u=O}finally{E.free()}return u}};
_.T_=function(g){return function(r){return rBl(r,g)}};
EuL=function(g){return function(){return rBl(this,g)}};
_.gs=function(g){return mn(function(r){return r instanceof g&&!P6(r)})};
_.rs=function(g){return function(r){return BkD(g,r)}};
UsA=function(g,r){return wHX({child:g,origin:r||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:SlP,getPayloadCase:function(E){return E.getPayloadCase()},
createInitMessage:function(E){var B=new EU,w=new Oto;E=_.Bu(w,1,E);return _.ws(B,5,Sy,E)}})};
OU=function(g){return{valueOf:g}.valueOf()};
qlY=function(){var g=null;if(!Mzt)return g;try{var r=function(E){return E};
g=Mzt.createPolicy("goog#html",{createHTML:r,createScript:r,createScriptURL:r})}catch(E){}return g};
laA=function(){ujB===void 0&&(ujB=qlY());return ujB};
_.qO=function(g){var r=laA();g=r?r.createScriptURL(g):g;return new MO(g)};
_.ui=function(g){if(g instanceof MO)return g.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
_.li=function(g){return Object.isFrozen(g)&&Object.isFrozen(g.raw)};
D2=function(g){return g.toString().indexOf("`")===-1};
Gh=function(g){return new _.oC(Dsl,g)};
Qv=function(g){return g instanceof _.oC};
_.zh=function(g){if(Qv(g))return g.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
kU=function(g){return new ouc(function(r){return r.substr(0,g.length+1).toLowerCase()===g+":"})};
YU=function(g,r){r=r===void 0?G_l:r;if(Qv(g))return g;for(var E=0;E<r.length;++E){var B=r[E];if(B instanceof ouc&&B.isValid(g))return Gh(g)}};
_.nI=function(g,r){r=r===void 0?G_l:r;return YU(g,r)||RC};
_.sU=function(g){var r=window;if(typeof MediaSource!=="undefined"&&g instanceof MediaSource||typeof r.ManagedMediaSource!=="undefined"&&g instanceof r.ManagedMediaSource)return Gh(URL.createObjectURL(g));r=g.type;r.toLowerCase()==="application/octet-stream"?r=!0:(r=r.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),r=(r==null?void 0:r.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(r[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(r[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(r[1])||/^font\/[\w-]+$/i.test(r[1])));if(!r)throw Error("da");return Gh(URL.createObjectURL(g))};
_.$U=function(g){for(var r=_.fI.apply(1,arguments),E=[g[0]],B=0;B<r.length;B++)E.push(String(r[B])),E.push(g[B+1]);return Gh(E.join(""))};
_.zKS=function(g){if(!Q8B){a:{var r=document.createElement("a");try{r.href=g}catch(E){g=void 0;break a}g=r.protocol;g=g===":"||g===""?"https:":g}return g}try{r=new URL(g)}catch(E){return"https:"}return r.protocol};
_.jy=function(g){g instanceof _.oC?g=_.zh(g):g=k_t.test(g)?g:void 0;return g};
Aa=function(g,r){r=_.jy(r);r!==void 0&&(g.href=r)};
Ja=function(g){var r=laA();g=r?r.createHTML(g):g;return new bi(g)};
Pu=function(g){if(g instanceof bi)return g.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.ta=function(g,r){g.src=_.ui(r).toString()};
HtV=function(g,r){g.setAttribute("sandbox","");for(var E=0;E<r.length;E++)g.sandbox.supports&&!g.sandbox.supports(r[E])||g.sandbox.add(r[E])};
_.ey=function(g,r,E){g.removeAttribute("srcdoc");switch(r){case 0:if(E instanceof MO)throw new FE("TrustedResourceUrl",0);HtV(g,[]);r=_.jy(E);r!==void 0&&(g.src=r);break;case 1:if(!(E instanceof MO))throw new FE(typeof E,1);HtV(g,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.ta(g,E);break;case 2:if(E instanceof MO)throw new FE("TrustedResourceUrl",2);HtV(g,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
r=_.jy(E);r!==void 0&&(g.src=r);break;default:_.MM(r)}};
_.Wu=function(g,r,E,B){r=_.jy(r);return r!==void 0?g.open(r,E,B):null};
_.xU=function(g){g=g===void 0?document:g;var r,E;g=(E=(r=g).querySelector)==null?void 0:E.call(r,"script[nonce]");return g==null?"":g.nonce||g.getAttribute("nonce")||""};
_.XE=function(g){var r=laA();g=r?r.createScript(g):g;return new _.aC(g)};
NO=function(g){if(g instanceof _.aC)return g.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
pHl=function(g){var r=_.xU(g.ownerDocument);r&&g.setAttribute("nonce",r)};
_.IC=function(g,r){g.textContent=NO(r);pHl(g)};
_.mg=function(g,r){g.src=_.ui(r);pHl(g)};
_.cu=function(g,r){if(g.nodeType===1&&/^(script|style)$/i.test(g.tagName))throw Error("da");g.innerHTML=Pu(r)};
_.ii=function(g,r,E,B){if(g.length===0)throw Error("da");g=g.map(function(O){if(O instanceof YlD)O=O.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return O});
var w=E.toLowerCase();if(g.every(function(O){return w.indexOf(O)!==0}))throw Error("fa`"+E);
r.setAttribute(E,B)};
_.LI=function(g,r,E){if(r instanceof MO)g.href=_.ui(r).toString(),g.rel=E;else{if(RKD.indexOf(E)===-1)throw Error("ga`"+E);r=_.jy(r);r!==void 0&&(g.href=r,g.rel=E)}};
nuQ=function(g){return"function"==typeof _.Vv&&g instanceof _.Vv};
_.s8l=function(g){if(nuQ(g))return g.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.ha=function(g,r){r=_.jy(r);r!==void 0&&(g.href=r)};
Z2=function(g,r){g&&(r=g.indexOf(r),0<=r&&g.splice(r,1))};
yv=function(g){return typeof g==="function"};
fat=function(g){return g instanceof vu||g&&"closed"in g&&yv(g.remove)&&yv(g.add)&&yv(g.unsubscribe)};
ds=function(){};
Th=function(g){$sX(function(){throw g;})};
gh=function(g){return g};
rh=function(){return j8c(_.fI.apply(0,arguments))};
j8c=function(g){return g.length===0?gh:g.length===1?g[0]:function(r){return g.reduce(function(E,B){return B(E)},r)}};
ABS=function(g){var r;return(r=g!=null?g:void 0)!=null?r:Promise};
btA=function(g,r){return new Em(function(E){var B=0;return r.schedule(function(){B===g.length?E.complete():(E.next(g[B++]),E.closed||this.schedule())})})};
JBL=function(g,r){if(!g)throw Error("ha");return new Em(function(E){var B=new vu;B.add(r.schedule(function(){var w=g[Symbol.asyncIterator]();B.add(r.schedule(function(){var O=this;w.next().then(function(M){M.done?E.complete():(E.next(M.value),O.schedule())})}))}));
return B})};
PAP=function(g,r,E){r=r.schedule(function(){try{E.call(this)}catch(B){g.error(B)}},0);
g.add(r)};
tzL=function(g,r){return new Em(function(E){var B;E.add(r.schedule(function(){B=g[Bb]();PAP(E,r,function(){var w=B.next(),O=w.value;w.done?E.complete():(E.next(O),this.schedule())})}));
return function(){var w;return yv((w=B)==null?void 0:w.return)&&B.return()}})};
FpY=function(g,r){return new Em(function(E){var B=new vu;B.add(r.schedule(function(){var w=g[wh]();B.add(w.subscribe({next:function(O){B.add(r.schedule(function(){return E.next(O)}))},
error:function(O){B.add(r.schedule(function(){return E.error(O)}))},
complete:function(){B.add(r.schedule(function(){return E.complete()}))}}))}));
return B})};
eKP=function(g,r){return new Em(function(E){return r.schedule(function(){return g.then(function(B){E.add(r.schedule(function(){E.next(B);E.add(r.schedule(function(){return E.complete()}))}))},function(B){E.add(r.schedule(function(){return E.error(B)}))})})})};
WpB=function(g){return new TypeError("ia`"+(g!==null&&typeof g==="object"?"an invalid object":"'"+g+"'"))};
Kpt=function(g,r){if(g!=null){if(yv(g[wh]))return FpY(g,r);if(CAS(g))return btA(g,r);if(yv(g==null?void 0:g.then))return eKP(g,r);if(Symbol.asyncIterator&&yv(g==null?void 0:g[Symbol.asyncIterator]))return JBL(g,r);if(yv(g==null?void 0:g[Bb]))return tzL(g,r)}throw WpB(g);};
Om=function(g,r){return r?Kpt(g,r):SW(g)};
SW=function(g){if(g instanceof Em)return g;if(g!=null){if(yv(g[wh]))return xsY(g);if(CAS(g))return aaB(g);if(yv(g==null?void 0:g.then))return XHD(g);if(Symbol.asyncIterator&&yv(g==null?void 0:g[Symbol.asyncIterator]))return NkA(g);if(yv(g==null?void 0:g[Bb]))return Iac(g)}throw WpB(g);};
xsY=function(g){return new Em(function(r){var E=g[wh]();if(yv(E.subscribe))return E.subscribe(r);throw new TypeError("ja");})};
aaB=function(g){return new Em(function(r){for(var E=0;E<g.length&&!r.closed;E++)r.next(g[E]);r.complete()})};
XHD=function(g){return new Em(function(r){g.then(function(E){r.closed||(r.next(E),r.complete())},function(E){return r.error(E)}).then(null,Th)})};
Iac=function(g){return new Em(function(r){for(var E=g[Bb]();!r.closed;){var B=E.next(),w=B.value;B.done?r.complete():r.next(w)}return function(){return yv(E==null?void 0:E.return)&&E.return()}})};
NkA=function(g){return new Em(function(r){msJ(g,r).catch(function(E){return r.error(E)})})};
msJ=function(g,r){var E,B,w,O,M,u;return _.q(function(l){switch(l.nextAddress){case 1:_.qN(l,2,3);var Q=g[Symbol.asyncIterator];O=Q!==void 0?Q.call(g):new cBo(_.U(g));case 5:return _.D(l,O.next(),8);case 8:B=l.yieldResult;if(B.done){l.jumpTo(3);break}M=B.value;r.next(M);l.jumpTo(5);break;case 3:_.uY(l);_.DD(l,9);if(!B||B.done||!(w=O.return)){l.jumpTo(9);break}return _.D(l,w.call(O),9);case 9:_.uY(l,0,0,1);if(E)throw E.error;_.oF(l,10,1);break;case 10:_.oF(l,4);break;case 2:u=_.G2(l);E={error:u};l.jumpTo(3);
break;case 4:r.complete(),_.Q3(l)}})};
z2=function(g,r){return r?btA(g,r):aaB(g)};
itB=function(g){return yv(g[g.length-1])?g.pop():void 0};
kf=function(g){var r=g[g.length-1];return r&&yv(r.schedule)?g.pop():void 0};
Hb=function(){var g=_.fI.apply(0,arguments),r=kf(g);return r?btA(g,r):z2(g)};
p$=function(g){var r=yv(g)?g:function(){return g};
return new Em(function(E){return E.error(r())})};
Yf=function(g){return function(r){if(yv(r==null?void 0:r.lift))return r.lift(function(E){try{return g(E,this)}catch(B){this.error(B)}});
throw new TypeError("ka");}};
f$=function(){return Yf(function(g,r){var E=null;g._refCount++;var B=new sm(r,void 0,void 0,void 0,function(){if(!g||g._refCount<=0||0<--g._refCount)E=null;else{var w=g._connection,O=E;E=null;!w||O&&w!==O||w.unsubscribe();r.unsubscribe()}});
g.subscribe(B);B.closed||(E=g.connect())})};
VzA=function(){var g=Lpl;var r=r===void 0?0:r;return Yf(function(E,B){B.add(g.schedule(function(){return E.subscribe(B)},r))})};
$f=function(g){return Yf(function(r,E){var B=0;r.subscribe(new sm(E,function(w){E.next(g.call(void 0,w,B++))}))})};
ZtJ=function(g){return $f(function(r){return hKl(r)?g.apply(null,_.jW(r)):g(r)})};
gUl=function(g){if(g.length===1){var r=g[0];if(yBl(r))return{args:r,keys:null};if(r&&typeof r==="object"&&vuP(r)===dsl)return g=TkD(r),{args:g.map(function(E){return r[E]}),
keys:g}}return{args:g,keys:null}};
A_=function(){var g=_.fI.apply(0,arguments),r=kf(g),E=itB(g);g=gUl(g);var B=g.args,w=g.keys;if(B.length===0)return Om([],r);r=new Em(raV(B,r,w?function(O){for(var M={},u=0;u<O.length;u++)M[w[u]]=O[u];return M}:gh));
return E?r.pipe(ZtJ(E)):r};
raV=function(g,r,E){E=E===void 0?gh:E;return function(B){EUA(r,function(){for(var w=g.length,O=Array(w),M=w,u=g.map(function(){return!1}),l=!0,Q={i$jscomp$216:0};Q.i$jscomp$216<w;Q={i$jscomp$216:Q.i$jscomp$216},Q.i$jscomp$216++)EUA(r,function(z){return function(){Om(g[z.i$jscomp$216],r).subscribe(new bY(B,function(k){O[z.i$jscomp$216]=k;
l&&(u[z.i$jscomp$216]=!0,l=!u.every(gh));l||B.next(E(O.slice()))},function(){return--M===0}))}}(Q),B)},B)}};
EUA=function(g,r,E){g?E.add(g.schedule(r)):r()};
BsL=function(g,r,E,B){var w=[],O=0,M=0,u=!1,l=function(Q){O++;SW(E(Q,M++)).subscribe(new sm(r,function(z){r.next(z)},void 0,function(){O--;
for(var z={};w.length&&O<B;z={bufferedValue:void 0})z.bufferedValue=w.shift(),l(z.bufferedValue);!u||w.length||O||r.complete()}))};
g.subscribe(new sm(r,function(Q){return O<B?l(Q):w.push(Q)},void 0,function(){u=!0;
!u||w.length||O||r.complete()}));
return function(){w=null}};
J_=function(g,r){var E=E===void 0?Infinity:E;if(yv(r))return J_(function(B,w){return $f(function(O,M){return r(B,O,w,M)})(SW(g(B,w)))},E);
typeof r==="number"&&(E=r);return Yf(function(B,w){return BsL(B,w,g,E)})};
wuB=function(g){g=g===void 0?Infinity:g;return J_(gh,g)};
SUX=function(){var g=_.fI.apply(0,arguments);return wuB(1)(z2(g,kf(g)))};
Pb=function(g){return new Em(function(r){SW(g()).subscribe(r)})};
t_=function(g,r,E){if(yv(E)){var B=E;E=void 0}if(B)return t_(g,r,E).pipe(ZtJ(B));B=_.U(yv(g.addEventListener)&&yv(g.removeEventListener)?OIl.map(function(M){return function(u){return g[M](r,u,E)}}):yv(g.addListener)&&yv(g.removeListener)?UOt.map(MyB(g,r)):yv(g.on)&&yv(g.off)?qUB.map(MyB(g,r)):[]);
var w=B.next().value,O=B.next().value;return!w&&CAS(g)?J_(function(M){return t_(M,r,E)})(z2(g)):new Em(function(M){if(!w)throw new TypeError("la");
var u=function(){var l=_.fI.apply(0,arguments);return M.next(1<l.length?l:l[0])};
w(u);return function(){return O(u)}})};
MyB=function(g,r){return function(E){return function(B){return g[E](r,B)}}};
eW=function(){var g=_.fI.apply(0,arguments),r=kf(g);var E=typeof g[g.length-1]==="number"?g.pop():Infinity;return g.length?g.length===1?SW(g[0]):wuB(E)(z2(g,r)):Fz};
l2l=function(g){return g.length===1&&uED(g[0])?g[0]:g};
DOo=function(){var g=l2l(_.fI.apply(0,arguments));return Yf(function(r,E){var B=[r].concat(_.jW(g)),w=function(){if(!E.closed)if(B.length>0){try{var O=SW(B.shift())}catch(u){w();return}var M=new sm(E,void 0,ds,ds);E.add(O.subscribe(M));M.add(w)}else E.complete()};
w()})};
Wb=function(g){return Yf(function(r,E){var B=0;r.subscribe(new sm(E,function(w){return g.call(void 0,w,B++)&&E.next(w)}))})};
Gho=function(){var g=_.fI.apply(0,arguments);g=l2l(g);return g.length===1?SW(g[0]):new Em(oUl(g))};
oUl=function(g){return function(r){for(var E=[],B={i$jscomp$219:0};E&&!r.closed&&B.i$jscomp$219<g.length;B={i$jscomp$219:B.i$jscomp$219},B.i$jscomp$219++)E.push(SW(g[B.i$jscomp$219]).subscribe(new sm(r,function(w){return function(O){if(E){for(var M=0;M<E.length;M++)M!==w.i$jscomp$219&&E[M].unsubscribe();E=null}r.next(O)}}(B))))}};
QCo=function(){var g=_.fI.apply(0,arguments),r=itB(g),E=l2l(g);return E.length?new Em(function(B){var w=E.map(function(){return[]}),O=E.map(function(){return!1});
B.add(function(){w=O=null});
for(var M={sourceIndex$jscomp$1:0};!B.closed&&M.sourceIndex$jscomp$1<E.length;M={sourceIndex$jscomp$1:M.sourceIndex$jscomp$1},M.sourceIndex$jscomp$1++)SW(E[M.sourceIndex$jscomp$1]).subscribe(new sm(B,function(u){return function(l){w[u.sourceIndex$jscomp$1].push(l);w.every(function(Q){return Q.length})&&(l=w.map(function(Q){return Q.shift()}),B.next(r?r.apply(null,_.jW(l)):l),w.some(function(Q,z){return!Q.length&&O[z]})&&B.complete())}}(M),void 0,function(u){return function(){O[u.sourceIndex$jscomp$1]=
!0;
!w[u.sourceIndex$jscomp$1].length&&B.complete()}}(M)));
return function(){w=O=null}}):Fz};
zjQ=function(g){var r,E,B;return!!g&&typeof g.active==="boolean"&&typeof((r=g.clock)==null?void 0:r.now)==="function"&&((E=g.clock)==null?void 0:E.timeline)!==void 0&&!((B=g.lastMeasurement)==null||!B.timestamp)&&typeof g.equivalentTo==="function"&&typeof g.extrapolateToNow==="function"&&typeof g.extrapolateToTime==="function"&&typeof g.map==="function"&&typeof g.joinWith==="function"};
khA=function(g){function r(E){return typeof E==="boolean"||typeof E==="string"||typeof E==="number"||E===void 0||E===null}
return r(g)?!0:Array.isArray(g)?g.every(r):typeof g==="object"?Object.keys(g).every(function(E){return typeof E==="string"})&&Object.values(g).every(function(E){return Array.isArray(E)?E.every(r):r(E)}):!1};
HIA=function(g){if(khA(g))return g;if(zjQ(g))return{lastMeasurement:{value:HIA(g.lastMeasurement.value),timestamp:C$(g.lastMeasurement.timestamp,new xf(0,g.lastMeasurement.timestamp.timeline))},active:g.active};try{return JSON.parse(JSON.stringify(g))}catch(r){}return String(g)};
aF=function(g,r){return function(E){return new Em(function(B){return E.subscribe(function(w){g.timeExecution(r,function(){B.next(w)})()},function(w){g.timeExecution(r,function(){B.error(w)})()},function(){g.timeExecution(r,function(){B.complete()})()})})}};
pul=function(g,r){var E=!1;return new Em(function(B){var w=g.setTimeout(function(){E=!0;B.next(!0);B.complete()},r);
return function(){E||g.clearTimeout(w)}})};
YUl=function(g){g=g.global;if(g.fetchLater)return g.fetchLater.bind(g)};
Xz=function(g){return Yf(function(r,E){var B=null,w=!1,O;B=r.subscribe(new sm(E,void 0,function(M){O=SW(g(M,Xz(g)(r)));B?(B.unsubscribe(),B=null,O.subscribe(E)):w=!0}));
w&&(B.unsubscribe(),B=null,O.subscribe(E))})};
RjV=function(g,r,E){return function(B,w){var O=E,M=r,u=0;B.subscribe(new sm(w,function(l){var Q=u++;M=O?g(M,l,Q):(O=!0,l);w.next(M)},void 0,void 0))}};
nUD=function(g){g=g===void 0?null:g;return Yf(function(r,E){var B=!1;r.subscribe(new sm(E,function(w){B=!0;E.next(w)},void 0,function(){B||E.next(g);
E.complete()}))})};
NN=function(){return Yf(function(g,r){g.subscribe(new sm(r,ds))})};
IF=function(g){return Yf(function(r,E){r.subscribe(new sm(E,function(){return E.next(g)}))})};
mr=function(g){return g<=0?function(){return Fz}:Yf(function(r,E){var B=0;
r.subscribe(new sm(E,function(w){++B<=g&&(E.next(w),g<=B&&E.complete())}))})};
iY=function(g){var r=r===void 0?gh:r;var E;g=(E=g)!=null?E:sCY;return Yf(function(B,w){var O,M=!0;B.subscribe(new sm(w,function(u){var l=r(u);if(M||!g(O,l))M=!1,O=l,w.next(u)}))})};
sCY=function(g,r){return g===r};
$OJ=function(g){g=g===void 0?f2l:g;return Yf(function(r,E){var B=!1;r.subscribe(new sm(E,function(w){B=!0;E.next(w)},void 0,function(){return B?E.complete():E.error(g())}))})};
f2l=function(){return new jCY};
L$=function(){var g=_.fI.apply(0,arguments);return function(r){return SUX(r,Hb.apply(null,_.jW(g)))}};
Aac=function(g){return Yf(function(r,E){var B=0;r.subscribe(new sm(E,function(w){g.call(void 0,w,B++,r)||(E.next(!1),E.complete())},void 0,function(){E.next(!0);
E.complete()}))})};
bIV=function(){return Yf(function(g,r){var E=[];g.subscribe(new sm(r,function(B){E.push(B);1<E.length&&E.shift()},void 0,function(){for(var B=_.U(E),w=B.next();!w.done;w=B.next())r.next(w.value);
r.complete()},function(){E=null}))})};
Jat=function(g,r){var E=arguments.length>=2;return function(B){return B.pipe(g?Wb(function(w,O){return g(w,O,B)}):gh,bIV(),E?nUD(r):$OJ(function(){return new jCY}))}};
h_=function(g){var r=yv(g)?g:function(){return g};
return yv()?Yf(function(E,B){var w=r();(void 0)(w).subscribe(B).add(E.subscribe(w))}):function(E){var B=new V3(E,r);
yv(E==null?void 0:E.lift)&&(B.lift=E.lift);B.source=E;B.subjectFactory=r;return B}};
y3=function(g){var r=new ZD(g,void 0,void 0);return function(E){return h_(function(){return r})(E)}};
vb=function(g,r){return Yf(RjV(g,r,arguments.length>=2))};
dh=function(){var g=_.fI.apply(0,arguments),r=kf(g);return Yf(function(E,B){(r?SUX(g,E,r):SUX(g,E)).subscribe(B)})};
T2=function(g){return Yf(function(r,E){var B=null,w=0,O=!1;r.subscribe(new sm(E,function(M){var u;(u=B)==null||u.unsubscribe();u=w++;SW(g(M,u)).subscribe(B=new sm(E,function(l){return E.next(l)},void 0,function(){B=null;
O&&!B&&E.complete()}))},void 0,function(){(O=!0,!B)&&E.complete()}))})};
gF=function(g,r){r=r===void 0?!1:r;return Yf(function(E,B){var w=0;E.subscribe(new sm(B,function(O){var M=g(O,w++);(M||r)&&B.next(O);!M&&B.complete()}))})};
rF=function(g,r,E){var B=yv(g)||r||E?{next:g,error:r,complete:E}:g;return B?Yf(function(w,O){w.subscribe(new sm(O,function(M){var u;(u=B.next)==null||u.call(B,M);O.next(M)},function(M){var u;
(u=B.error)==null||u.call(B,M);O.error(M)},function(){var M;
(M=B.complete)==null||M.call(B);O.complete()}))}):gh};
PiQ=function(){var g=_.fI.apply(0,arguments),r=itB(g);return Yf(function(E,B){for(var w=g.length,O=Array(w),M=g.map(function(){return!1}),u=!1,l={i$jscomp$229:0};l.i$jscomp$229<w;l={i$jscomp$229:l.i$jscomp$229},l.i$jscomp$229++)SW(g[l.i$jscomp$229]).subscribe(new sm(B,function(Q){return function(z){O[Q.i$jscomp$229]=z;
u||M[Q.i$jscomp$229]||(M[Q.i$jscomp$229]=!0,(u=M.every(gh))&&(M=null))}}(l),void 0,ds));
E.subscribe(new sm(B,function(Q){u&&(Q=[Q].concat(_.jW(O)),B.next(r?r.apply(null,_.jW(Q)):Q))}))})};
tyc=function(g){var r=[],E=0,B;for(B in g)r[E++]=B;return r};
FgS=function(g,r){for(var E in g)if(g[E]==r)return!0;return!1};
ejD=function(g,r,E){for(var B in g)if(r.call(E,g[B],B,g))return B};
Wgc=function(g){if(!g||typeof g!=="object")return g;if(typeof g.clone==="function")return g.clone();if(typeof Map!=="undefined"&&g instanceof Map)return new Map(g);if(typeof Set!=="undefined"&&g instanceof Set)return new Set(g);if(g instanceof Date)return new Date(g.getTime());var r=Array.isArray(g)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(g)||g instanceof DataView?{}:new g.constructor(g.length),E;for(E in g)r[E]=Wgc(g[E]);return r};
CiS=function(g){var r=arguments.length;if(r==1&&Array.isArray(arguments[0]))return CiS.apply(null,arguments[0]);if(r%2)throw Error("pa");for(var E={},B=0;B<r;B+=2)E[arguments[B]]=arguments[B+1];return E};
KgB=function(g){var r=arguments.length;if(r==1&&Array.isArray(arguments[0]))return KgB.apply(null,arguments[0]);for(var E={},B=0;B<r;B++)E[arguments[B]]=!0;return E};
_.EY=function(g){return new YlD(g[0].toLowerCase())};
xOt=function(g){try{return new URL(g,window.document.baseURI)}catch(r){return new URL("about:invalid")}};
a2c=function(g,r){var E=r.createRange();E.selectNode(r.body);g=Ja(g);return E.createContextualFragment(Pu(g))};
Xul=function(g){g=g.nodeName;return typeof g==="string"?g:"FORM"};
NsS=function(g){g=g.nodeType;return g===1||typeof g!=="number"};
B$=function(g,r,E){g.setAttribute(r,E)};
I2J=function(g){return g.parts.map(function(r){var E=r.descriptor;return""+r.url+(E?" "+E:"")}).join(" , ")};
_.wF=function(g){var r=_.fI.apply(1,arguments);if(r.length===0)return _.qO(g[0]);for(var E=g[0],B=0;B<r.length;B++)E+=encodeURIComponent(r[B])+g[B+1];return _.qO(E)};
_.Sn=function(g,r){g=_.ui(g).toString();var E=g.split(/[?#]/),B=/[?]/.test(g)?"?"+E[1]:"";return mOL(E[0],B,/[#]/.test(g)?"#"+(B?E[2]:E[1]):"",r)};
mOL=function(g,r,E,B){function w(M,u){M!=null&&(Array.isArray(M)?M.forEach(function(l){return w(l,u)}):(r+=O+encodeURIComponent(u)+"="+encodeURIComponent(M),O="&"))}
var O=r.length?"&":"?";B.constructor===Object&&(B=Object.entries(B));Array.isArray(B)?B.forEach(function(M){return w(M[1],M[0])}):B.forEach(w);
return _.qO(g+r+E)};
OY=function(g,r,E,B){this.top=g;this.right=r;this.bottom=E;this.left=B};
caL=function(g){g=g.global;if(g.PendingGetBeacon)return g.PendingGetBeacon};
M0=function(g){return function(r){return r.pipe(iIL(g,h_(new UY)))}};
q0=function(g){return function(r){return r.pipe(iIL(g,y3(1)))}};
iIL=function(g,r){function E(B){return new Em(function(w){return B.subscribe(function(O){uO(g,function(){return void w.next(O)},3)},function(O){uO(g,function(){return void w.error(O)},3)},function(){uO(g,function(){return void w.complete()},3)})})}
return rh(E,VzA(),r,f$(),E)};
hjL=function(g){var r=LgD(g);return r===null?new lO(null):r.pipe($f(function(E){E=E.serialize();if(VyV)E=_.ED.btoa(E);else{for(var B=[],w=0,O=0;O<E.length;O++){var M=E.charCodeAt(O);M>255&&(B[w++]=M&255,M>>=8);B[w++]=M}E=_.gk(B)}return E}),mr(1),q0(g.queue))};
ZIJ=function(g){var r=r===void 0?{}:r;if(typeof Event==="function")return new Event(g,r);if(typeof document!=="undefined"){var E=document.createEvent("CustomEvent");E.initCustomEvent(g,r.bubbles||!1,r.cancelable||!1,r.detail);return E}throw Error();};
yal=function(g){return typeof g==="string"?document.getElementById(g):g};
dOl=function(g){var r=!1;r=r===void 0?!1:r;if(g.tagName==="IMG"){if(g.complete&&(!g.naturalWidth||!g.naturalHeight))return!0;var E;if(r&&((E=g.style)==null?void 0:E.display)==="none")return!0}var B,w;return vUQ.test((B=g.getAttribute("width"))!=null?B:"")&&vUQ.test((w=g.getAttribute("height"))!=null?w:"")};
TsL=function(g,r){if(g.tagName==="IMG")return g.naturalWidth&&g.naturalHeight?!0:!1;try{if(g.readyState)var E=g.readyState;else{var B,w;E=(B=g.contentWindow)==null?void 0:(w=B.document)==null?void 0:w.readyState}return E==="complete"}catch(O){return r===void 0?!1:r}};
gfJ=function(g){g||(g=function(r,E,B){r.addEventListener(E,B)});
return g};
wbA=function(g,r){var E=r_l();E=E===void 0?new EfD:E;if(g=yal(g)){var B=gfJ(B);for(var w=!1,O=function(e){w||(w=!0,r(e))},M,u=2,l=0;l<BhY.length;++l)if(BhY[l]===g.tagName){u=3;
M=[g];break}M||(M=g.querySelectorAll(BhY.join(",")));var Q=0,z=0,k=!0,H=g=!1;l={};for(var R=0;R<M.length;l={isImg:void 0},R++){var A=M[R];if(!dOl(A))if(l.isImg=A.tagName==="IMG",TsL(A,E.crossDomainLoadedDefault))g=!0,l.isImg&&(k=!0);else{Q++;var J=function(e){return function(C){Q--;!Q&&k&&O(u);e.isImg&&(C=C&&C.type==="error",z--,C||(k=!0),!z&&H&&k&&O(u))}}(l);
B(A,"load",J);l.isImg&&(z++,B(A,"error",J))}}z===0&&(k=!0);M=null;M=_.ED.document.readyState==="complete";if(Q===0&&!g&&M)u=5;else if(Q||!g){B(_.ED,"load",function(){!E.pendingImagesBlockLoad||!z&&k?O(4):H=!0});
return}O(u)}};
SmP=function(g,r,E){if(g)for(var B=0;g!=null&&B<500&&!E(g);++B)g=r(g)};
O$o=function(g,r){SmP(g,function(E){try{return E===E.parent?null:E.parent}catch(B){}return null},r)};
UNY=function(g,r){if(g.tagName=="IFRAME")r(g);else{g=g.querySelectorAll("IFRAME");for(var E=0;E<g.length&&!r(g[E]);++E);}};
MWD=function(g){return(g=g.ownerDocument)&&(g.parentWindow||g.defaultView)||null};
qml=function(g,r,E){try{var B=JSON.parse(E.data)}catch(M){}if(typeof B==="object"&&B&&B.type==="creativeLoad"){var w=MWD(g);if(E.source&&w){var O;O$o(E.source,function(M){try{if(M.parent===w)return O=M,!0}catch(u){}});
O&&UNY(g,function(M){if(M.contentWindow===O)return r(B),!0})}}};
uzB=function(g){return typeof g==="string"?document.getElementById(g):g};
G2Q=function(){var g={};return g[0]=_.wF(lDB,"current"),g[1]=_.wF(DNQ),g[2]=_.wF(ofA),g};
Db=function(g,r){return g.left===r.left&&g.top===r.top&&g.width===r.width&&g.height===r.height};
QFD=function(g,r){return{left:Math.max(g.left,r.left),top:Math.max(g.top,r.top),width:Math.max(0,Math.min(g.left+g.width,r.left+r.width)-Math.max(g.left,r.left)),height:Math.max(0,Math.min(g.top+g.height,r.top+r.height)-Math.max(g.top,r.top))}};
zTl=function(g,r){return{left:Math.round(g.left+r.x),top:Math.round(g.top+r.y),width:g.width,height:g.height}};
k2D=function(g,r,E){if(g&&r!==null&&r!=r.top){if(!r.top)return new _.oQ(-12245933,-12245933);r=r.top}try{return(E===void 0?0:E)?(new _.oQ(r.innerWidth,r.innerHeight)).round():_.GM(r).round()}catch(B){return new _.oQ(-12245933,-12245933)}};
H$Y=function(g,r,E){try{if(g){if(!r.top)return new OY(-12245933,-12245933,-12245933,-12245933);r=r.top}var B=k2D(g,r,E),w=B.height,O=B.width;if(O===-12245933)return new OY(O,O,O,O);var M=zM(kY(r.document)),u=M.x,l=M.y;return new OY(l,u+O,l+w,u)}catch(Q){return new OY(-12245933,-12245933,-12245933,-12245933)}};
pbP=function(g){var r;return(r=g.google_tag_data)!=null?r:g.google_tag_data={}};
YmX=function(g){var r,E;return typeof((r=g.navigator)==null?void 0:(E=r.userAgentData)==null?void 0:E.getHighEntropyValues)==="function"};
nfB=function(g){if(!YmX(g))return null;var r=pbP(g);if(r.uach_promise)return r.uach_promise;g=g.navigator.userAgentData.getHighEntropyValues(RTY).then(function(E){r.uach!=null||(r.uach=E);return E});
return r.uach_promise=g};
WrY=function(g){var r;return sFP(fDD($Nl(jFP(A_l(b$X(J_c(PYV(tWD(new FrP,g.architecture||""),g.bitness||""),g.mobile||!1),g.model||""),g.platform||""),g.platformVersion||""),g.uaFullVersion||""),((r=g.fullVersionList)==null?void 0:r.map(function(E){var B=new eTY;B=_.H$(B,1,E.brand);return _.H$(B,2,E.version)}))||[]),g.wow64||!1)};
CYt=function(g){var r,E;return(E=(r=nfB(g))==null?void 0:r.then(function(B){return WrY(B)}))!=null?E:null};
KrS=function(g,r){return new Em(function(E){var B=!1,w=Array(r.length);w.fill(void 0);var O=new Set,M=new Set,u=function(k,H){g.running?(w[H]=k,O.add(H),B||(B=!0,uO(g,function(){B=!1;E.next(_.ZQ(w))},1))):E.error(new pN(H))},l=function(k,H){M.add(H);
O.add(H);uO(g,function(){E.error(k)},1)},Q=function(k){M.add(k);
uO(g,function(){M.size===r.length&&E.complete()},1)},z=r.map(function(k,H){return k.subscribe(function(R){return void u(R,H)},function(R){return void l(R,H)},function(){return void Q(H)})});
return function(){z.forEach(function(k){return void k.unsubscribe()})}})};
aDV=function(g,r,E){function B(){if(r.debugChannel){var e=r.debugChannel,C=e.next;var X={creativeId:r.debugNames.getName(E),requiredSignals:w,signals:Object.assign({},O),hasPrematurelyCompleted:M,errorMessage:u,erroredSignalKey:l};X={specMajor:2,specMinor:0,specPatch:0,timestamp:C$(r.timeProvider.now(),new xf(0,r.timeProvider.timeline)),instanceId:r.debugNames.getName(r.symbol),creativeState:X};C.call(e,X)}}
for(var w=Object.keys(g),O={},M=!1,u=null,l=null,Q={},z=new Set,k=[],H=[],R=_.U(w),A=R.next(),J={};!A.done;J={key$jscomp$375:void 0},A=R.next())J.key$jscomp$375=A.value,A=g[J.key$jscomp$375],A instanceof lO?(Q[J.key$jscomp$375]=A.value,z.add(J.key$jscomp$375),r.debugChannel&&(O[String(J.key$jscomp$375)]=HIA(A.value))):(A=A.pipe(iY(function(e,C){return zjQ(e)||zjQ(C)?!1:e===C}),$f(function(e){return function(C){r.debugChannel&&(O[String(e.key$jscomp$375)]=HIA(C),B());
var X={};return X[e.key$jscomp$375]=C,X}}(J)),Xz(function(e){return function(C){if(C instanceof pN)throw new xNL(String(e.key$jscomp$375));
throw C;}}(J)),rF(function(e){return function(){z.add(e.key$jscomp$375)}}(J),function(e){return function(C){l=String(e.key$jscomp$375);
u=String(C);B()}}(J),function(e){return function(){z.has(e.key$jscomp$375)||(M=!0,B())}}(J))),H.push(J.key$jscomp$375),k.push(A));
(g=Object.keys(O).length>0)&&B();R=KrS(r.queue,k).pipe(Xz(function(e){if(e instanceof pN)throw new YY(String(H[e.inputObservableIndex]));throw e;}),$f(function(e){return Object.freeze(Object.assign.apply(Object,[{},
Q].concat(_.jW(e))))}));
return(k=k.length>0)&&g?eW(Hb(Object.freeze(Q)),R):k?R:Hb(Object.freeze(Q))};
XbY=function(g,r,E,B,w){return g.performanceMonitor.timeExecution.bind(g.performanceMonitor)(733,function(){var O={};try{return r.pipe(Xz(function(M){B(Object.assign({},O,{error:M}));return Fz}),J_(function(M){try{var u=E(g,M)}catch(Q){return B(Object.assign({},O,{error:Q instanceof Error?Q:String(Q)})),Fz}var l={};
return aDV(u,g,M.symbol).pipe(rF(function(Q){l=Q}),y3(1),f$()).pipe(w,Xz(function(Q){B(Object.assign({},l,{error:Q}));
return Fz}),L$(void 0),$f(function(){return!0}))})).pipe(vb(function(M){return M+1},0),Xz(function(M){B(Object.assign({},O,{error:M}));
return Fz}))}catch(M){return B(Object.assign({},O,{error:M})),Fz}})()};
RQ=function(g){var r=new Map;if(typeof g!=="object"||g===null)return r;Object.values(g).forEach(function(E){E&&typeof E.extrapolateToNow==="function"&&(r.has(E.clock.timeline)||r.set(E.clock.timeline,E.clock.now()))});
return r};
NhQ=function(g,r){return typeof g==="string"?encodeURIComponent(g):typeof g==="number"?String(g):Array.isArray(g)?g.map(function(E){return NhQ(E,r)}).join(","):g instanceof xf?g.toString():g&&typeof g.extrapolateToNow==="function"?NhQ(g.extrapolateUsingTimestampMap(r).value,r):g===!0?"1":g===!1?"0":g===void 0||g===null?null:g instanceof IDY?mNl(g):[g.top,
g.left,g.top+g.height,g.left+g.width].join()};
nN=function(g,r){g=Object.entries(g).map(function(E){var B=_.U(E);E=B.next().value;B=B.next().value;B=NhQ(B,r);return B===null?"":E+"="+B}).filter(function(E){return E!==""});
return g.length?g.join("&"):""};
LrQ=function(g,r){var E=c_J,B=i$A;r=r===void 0?.01:r;return function(w){r>0&&Math.random()<=r&&(g.global.HTMLFencedFrameElement&&g.global.fence&&typeof g.global.fence.reportEvent==="function"&&g.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),w=Object.assign({},w,{errorMessage:w.error instanceof Error&&w.error.message?w.error.message:String(w.error),errorStack:w.error instanceof Error&&w.error.stack?String(w.error.stack):null,errorName:w.error instanceof
Error&&w.error.name?String(w.error.name):null,errorContext:String(g.performanceMonitor.timedFunctionContext),errorEscapedQueryId:w.escapedQueryId}),E(Object.assign({},w,{payloadMapper:function(){return function(O){try{return B(Object.assign({},O))}catch(M){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),RQ(w)).forEach(function(O){g.beaconFactory.makeBeacon(O).sendNow()}))}};
VWB=function(){var g=_.fI.apply(0,arguments);return function(r){var E=r.pipe(y3(1),f$());r=g.map(function(B){return E.pipe(B,L$(!0))});
return A_(r).pipe(mr(1),NN())}};
hTA=function(){var g=_.fI.apply(0,arguments);return function(r){var E=r.pipe(y3(1),f$());r=g.map(function(B){return E.pipe(B,L$(!0))});
return eW.apply(null,_.jW(r)).pipe(mr(1),NN())}};
Z$t=function(g,r){return function(E){var B=E.pipe(y3(1),f$());E=B.pipe(g,L$(!0));B=B.pipe(rh(r,y3(),f$()),L$(!0));E=A_([E,B]);return Gho(E,B).pipe(mr(1),NN())}};
y_l=function(g,r,E){E(!0)};
vfL=function(g,r){return rh(T2(function(E){var B=g(E),w=r(E),O={};return B&&w&&O?new Em(function(M){w(B,O,function(u){M.next(Object.assign({},E,{canEmit:u}));M.complete()});
return function(){}}):sY}),Wb(function(E){return E.canEmit}))};
dNY=function(g){var r={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(E){return E.pipe(T2(function(B){return new Em(function(w){function O(){u.disconnect();l.unsubscribe()}
var M=g.MutationObserver;if(M&&B.ref!==void 0){var u=new M(function(Q){w.next(Q)});
u.observe(B.ref,r);var l=B.JSC$7448_released.subscribe(O);return O}})}))}};
Tht=function(g){if(g.measurementDeferralState===3)return null;if(g.timeOnScreenReason!==void 0){var r=g.creativeFound===!1?"n":null;if(r!==null)return r}return g.geometricMeasurementErrors instanceof fN?"msf":g.contextValidationErrors instanceof $Y?"c":g.contextVisibilityKnown===!1?"pv":g.geometricMeasurementErrors||g.contextValidationErrors?"x":null};
AL=function(g,r){return g.replace(gYJ,function(E,B){try{var w=_.jn.get(r,B);if(w==null||w.toString()==null)return E;w=w.toString();if(w==""||!_.qo(w==null?"":String(w)))return encodeURIComponent(w).replace(/%2C/g,",")}catch(O){}return E})};
rLD=function(g,r){var E=Object.assign({},g),B=g.userAgentClientHints;E=(delete E.userAgentClientHints,E);E=g.payloadMapper(E);var w=nN(E,r);return _.bO(g.urlPrefixes,function(O){var M="";typeof B==="string"&&(M="&"+nN({uach:B},r));var u={};return AL(O,(u.VIEWABILITY=w,u))+M})};
c_J=function(g,r){var E=g.payloadMapper(g),B=nN(E,r);return B?_.bO(g.urlPrefixes,function(w){w=w.indexOf("?")>=0?w:w+"?";w="?&".indexOf(w.slice(-1))>=0?w:w+"&";return w+B}):g.urlPrefixes};
EYQ=function(){return rh(Wb(function(g){return g!==void 0}),$f(function(g){return g}))};
BFL=function(g){return rh($f(function(){return!0}),dh(!1),q0(g))};
w$S=function(g){return g.length<=0?Fz:A_(g.map(function(r){var E=0;return r.pipe($f(function(B){return{index:E++,value:B}}))})).pipe(Wb(function(r){return r.every(function(E){return E.index===r[0].index})}),$f(function(r){return r.map(function(E){return E.value})}))};
SYD=function(g,r){g.currentState&&(g.previousState=g.currentState);g.currentState=r;g.previousState&&g.previousState.value?(r=Math.max(0,C$(r.timestamp,g.previousState.timestamp)),g.totalTime+=r,g.consecutiveTime+=r):g.consecutiveTime=0;return g};
ONV=function(){return rh(vb(SYD,{totalTime:0,consecutiveTime:0}),$f(function(g){return g.totalTime}))};
U0J=function(){return rh(vb(SYD,{totalTime:0,consecutiveTime:0}),$f(function(g){return g.consecutiveTime}))};
MnY=function(g,r){return function(E){return w$S(r.map(function(B){return E.pipe(g(B))}))}};
qYA=function(){var g;return rh(rF(function(r){return void(g=r.timestamp)}),U0J(),$f(function(r){return{timestamp:g,
value:Math.round(r)}}))};
umL=function(g,r){return Db(g.topWindowViewportExternalGeometry,r.topWindowViewportExternalGeometry)&&Db(g.elementGeometry,r.elementGeometry)&&Db(g.exposedViewportLocalGeometry,r.exposedViewportLocalGeometry)&&Db(g.intersectionGeometry,r.intersectionGeometry)&&g.elementGeometrySourceName===r.elementGeometrySourceName&&g.measurementRequests===r.measurementRequests&&g.viewportGeometrySourceName===r.viewportGeometrySourceName&&g.viewportLocalAppOffset.x===r.viewportLocalAppOffset.x&&g.viewportLocalAppOffset.y===
r.viewportLocalAppOffset.y};
oYP=function(g,r){return function(E){return function(B){var w=B.pipe(h_(new UY),f$());B=E.element.pipe(iY());w=w.pipe($f(function(O){return O.value}));
return A_([B,w,r]).pipe($f(function(O){var M=_.U(O);O=M.next().value;var u=M.next().value;M=M.next().value;if(O.ref===void 0)var l={top:0,left:0,width:0,height:0};else{l=O.ref.getBoundingClientRect();var Q=O.ref,z=g.global,k=new _.JL(0,0),H=P$(_.tL(Q));if(Fm(H,"parent")){do{if(H==z)var R=_.en(Q);else R=lbA(Q),R=new _.JL(R.left,R.top);k.x+=R.x;k.y+=R.y}while(H&&H!=z&&H!=H.parent&&(Q=H.frameElement)&&(H=H.parent))}l={top:k.y,left:k.x,width:l.width,height:l.height}}l=zTl(l,u.viewportLocalAppOffset);
z=QFD(l,u.exposedViewportLocalGeometry);k=g.timeProvider.now();H=Object;Q=H.assign;if(M!==2||g.inCrossDomainIframe||z.width<=0||z.height<=0)var A=!1;else try{var J=g.document.elementFromPoint(z.left+z.width/2,z.top+z.height/2);A=J?!D0l(J,O):!1}catch(e){A=!1}return{timestamp:k,value:Q.call(H,{},u,{elementGeometrySourceName:"geo",intersectionGeometry:A?W$.intersectionGeometry:z,elementGeometry:l})}}),M0(g.queue))}}};
D0l=function(g,r,E){E=E===void 0?0:E;return g.ref===void 0||r.ref===void 0?!1:g.ref===r.ref||_.CN(r.ref,function(B){return B===g.ref})?!0:r.ref.ownerDocument&&r.ref.ownerDocument.defaultView&&r.ref.ownerDocument.defaultView===r.ref.ownerDocument.defaultView.top?!1:E<10&&r.ref.ownerDocument&&r.ref.ownerDocument.defaultView&&r.ref.ownerDocument.defaultView.frameElement?D0l(g,new KN(r.ref.ownerDocument.defaultView.frameElement),E+1):!0};
zES=function(g){return function(r){return r.pipe(g.ResizeObserver?GML(g):QQt(g),y3(1),f$())}};
GML=function(g){return function(r){return r.pipe(T2(function(E){var B=g.ResizeObserver;if(!B||E.ref===void 0)return Hb(W$.elementGeometry);var w=(new Em(function(O){function M(){E.ref!==void 0&&u.unobserve(E.ref);u.disconnect();l.unsubscribe()}
if(E.ref===void 0)return O.complete(),function(){};
var u=new B(function(Q){Q.forEach(function(z){O.next(z)})});
u.observe(E.ref);var l=E.JSC$7448_released.subscribe(M);return M})).pipe(aF(g.performanceMonitor,736),$f(function(O){return O.contentRect}));
return eW(Hb(E.ref.getBoundingClientRect()),w)}),iY(Db))}};
QQt=function(g){return function(r){var E=r.pipe(dNY(g)),B=g.onResize;E=eW(r.pipe($f(function(){return ZIJ("resize")})),E,B);
return A_(r,E).pipe(aF(g.performanceMonitor,737),$f(function(w){w=_.U(w).next().value;return w.ref===void 0?void 0:w.ref.getBoundingClientRect()}),EYQ(),iY(Db))}};
p$V=function(g,r){var E=kMP(g,r).pipe(y3(1),f$());return function(B){return function(w){w=w.pipe(T2(function(O){return O.element}),iY());
return A_([E,w]).pipe(T2(function(O){var M=_.U(O);O=M.next().value;M=M.next().value;return HNJ(g,O.intersectionObserver,zES(g),O.observations,B,O.flushRecords,M)}),M0(g.queue))}}};
YYl=function(g){return $f(function(r){return r.value.viewportGeometrySourceName!=="nio"?r:Object.assign({},r,{value:Object.assign({},r.value,{exposedViewportLocalGeometry:xY(g,!0),topWindowViewportExternalGeometry:xY(g,!0)})})})};
REt=function(g,r){return Hb(r).pipe(g,$f(function(){return r}))};
kMP=function(g,r){return g.timeProvider.timeline!==nYX?p$(new fN(2)):g.MutationObserver?typeof IntersectionObserver==="undefined"?p$(new fN(0)):(new Em(function(E){var B=new UY,w=new aQ(B.next.bind(B),{threshold:[].concat(_.jW(r))});E.next({observations:B.pipe(aF(g.performanceMonitor,735)),intersectionObserver:w,flushRecords:function(O){O=w.takeRecords(O);O.length>0&&B.next(O)}})})).pipe(mr(1),y3(1),f$()):p$(new fN(1))};
sQP=function(g){return Kpt(g.sort(function(r,E){return r.time-E.time}),Lpl)};
HNJ=function(g,r,E,B,w,O,M){return new Em(function(u){function l(){A||(A=!0,M.ref!==void 0&&r.unobserve(w,M.ref),z.unsubscribe(),R.unsubscribe(),H.unsubscribe(),J.unsubscribe())}
if(M.ref!==void 0){fbD(r,w);r.observe(w,M.ref);var Q=new Xm({timestamp:g.timeProvider.now(),value:Object.assign({},W$,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),z=B.pipe(J_(function(e){return sQP(e)}),Wb(function(e){return e.target===M.ref}),$f(function(e){return{timestamp:new xf(e.time,nYX),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:e.rootBounds||N0,topWindowViewportExternalGeometry:e.rootBounds||xY(g,!0),measurementRequests:k,elementGeometrySourceName:"nio",intersectionGeometry:e.intersectionRect,elementGeometry:e.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:e.isIntersecting,isV2Visible:e.isVisible}}}),h_(Q),f$()).subscribe(u),k=new UY,H=k.subscribe(function(){O(w);
u.next({timestamp:g.timeProvider.now(),value:Q.value.value});M.ref!==void 0&&(r.unobserve(w,M.ref),r.observe(w,M.ref))}),R=REt(E,M).subscribe(function(){k.next()}),A=!1,J=M.JSC$7448_released.subscribe(function(){return l()});
return l}})};
$0S=function(g,r){var E=g.getOnBackgrounded().pipe($f(function(){return"b"}));
return Gho(r,E).pipe(mr(1),q0(g.queue))};
IQ=function(g){return function(r){var E;return r.pipe(rF(function(B){return void(E=B.timestamp)}),$f(function(B){return B.value}),g,$f(function(B){return{timestamp:E,
value:B}}))}};
jQS=function(g){return g.intersectionGeometry.width*g.intersectionGeometry.height/(g.elementGeometry.width*g.elementGeometry.height)};
m_=function(g,r,E){E=E===void 0?function(B,w){return B===w}:E;
return g.timestamp.equals(r.timestamp)&&E(g.value,r.value)};
iO=function(g,r){return r.pipe($f(function(E){return new c$(g.timeProvider,{timestamp:g.timeProvider.now(),value:E})}))};
ALX=function(g){return function(r){return r.pipe(PiQ(g),$f(function(E){var B=_.U(E);E=B.next().value;B=B.next().value;var w=E.value;return{timestamp:E.timestamp,value:w>=1?!0:w<=0?!1:w>=B}}))}};
JLD=function(){return rh(Wb(function(g,r){return r>0}),bNV,dh(-1),iY())};
POL=function(g,r,E){return g?A_([r,E]).pipe(Wb(function(B){var w=_.U(B);B=w.next().value;w=w.next().value;return B.timestamp.equals(w.timestamp)}),$f(function(B){var w=_.U(B);
B=w.next().value;w=w.next().value;return B.value>w.value?B:w})):r};
eEo=function(g){return function(r){var E=r.pipe(tnl),B=r.pipe(F_V);return g instanceof Em?g.pipe(T2(function(w){return POL(w,E,B)})):POL(g.value,E,B)}};
cLo=function(g,r,E,B){var w=B.geometryIsOccluded,O=B.exposureThreshold,M=B.wasLargeAdAtRender,u=B.allowLargeAdThreshold,l=B.largeAdExposureThreshold,Q=B.mayUseViewportShareExposure,z=B.hasMeasurementStarted;B=B.useIntersectionObserverV2;r=W_X(g,E,r);E=COl(g,E);B=K_c(r,B);var k=x0X(g,w,Q,r),H=k.pipe($f(function(h){return h.value}),iY(),q0(g),vb(function(h,y){return Math.max(h,y)},0)),R=k.pipe($f(function(h){return h.value}),JLD(),q0(g)),A=r.pipe(abA,$f(function(h){return h.value}),mr(2),iY(),q0(g));
M=X$c(g,r,M,u);var J=M.pipe(dh(!1),iY(),$f(function(h){return h?l:O}));
u=k.pipe(ALX(J),iY(),q0(g));var e=A_([u,r]).pipe(Wb(function(h){var y=_.U(h);h=y.next().value;y=y.next().value;return h.timestamp.equals(y.timestamp)}),$f(function(h){var y=_.U(h);
h=y.next().value;y=y.next().value;return{visible:h.value,geometry:y.value.elementGeometry}}),vb(function(h,y){return!y.visible&&h.visible?h:y},{visible:!1,
geometry:N0}),$f(function(h){return h.geometry}),dh(N0),q0(g),iY(Db));
Q=Q instanceof Em?Q.pipe(iY(),IF()):sY;J=A_([Q,J]).pipe(IF());var C=r.pipe(Wb(function(h){return h.value.viewportGeometrySourceName!=="ns"&&h.value.elementGeometrySourceName!=="ns"}),vb(function(h){return h+1},0),dh(0),q0(g)),X=E.pipe(IF(!0),dh(!1),q0(g));
X=A_([z,X]).pipe($f(function(h){var y=_.U(h);h=y.next().value;y=y.next().value;return h&&!y}),q0(g));
var Z=r.pipe(NFV,iY()),c=Z.pipe($f(function(h){return h.value}),vb(function(h,y){return Math.max(h,y)},0),iY(),q0(g));
g=Z.pipe($f(function(h){return h.value}),JLD(),q0(g));
return{shouldResetExposureSignals:Q,shouldResetViewabilitySignals:J,geometrySignals:{readyGeometryWithDefault:r,measurementStrategy:r.pipe(IbL),creativePosition:e.pipe(iY(Db)),visible:u.pipe(iY(m_)),timestampedExposure:k.pipe(iY(m_)),maximumExposure:H,minimumExposure:R,browserSize:r.pipe(m0P,iY(_.SU)),timestampedScreenShare:Z,maxScreenShare:c,minScreenShare:g,geometricMeasurementErrors:E,measurementRequests:r.pipe($f(function(h){return h.value.measurementRequests})),
isLargeAd:M,geometryIsOccluded:w,hasMeasurementStarted:z,geometryMeasurable:X,validMeasurementCount:C,loadTimeExposure:A,v2VisibilityBitVector:B}}};
COl=function(g,r){return r.pipe(Wb(function(){return!1}),$f(function(E){return E}),Xz(function(E){return LN(new lO(E),g)}))};
W_X=function(g,r,E){return r.pipe(DOo(sY),q0(g)).pipe(iY(function(B,w){return m_(B,w,umL)}),dh({timestamp:E.now(),
value:W$}),q0(g))};
x0X=function(g,r,E,B){E=B.pipe(eEo(E),IQ($f(function(w){return Math.round(w*100)/100})),q0(g));
return r instanceof lO?E:A_([E,r]).pipe($f(function(w){var O=_.U(w);w=O.next().value;O=O.next().value;return{timestamp:O.timestamp.maximum(w.timestamp),value:O.value?0:w.value}}),iY(m_),q0(g))};
X$c=function(g,r,E,B){r=[r.pipe($f(function(w){return w.value.elementGeometry.width*w.value.elementGeometry.height>=242500}))];
E instanceof Em&&r.push(E.pipe($f(function(w){return!!w})));
E=A_(r);return B?E.pipe($f(function(w){return w.some(function(O){return O})}),dh(!1),iY(),q0(g)):LN(new lO(!1),g)};
K_c=function(g,r){g=A_([g,r]).pipe($f(function(w){var O=_.U(w);w=O.next().value;if(O.next().value&&w.value.isIntersecting)return w.value.isV2Visible}),iY());
var E=g.pipe($f(function(w){return w===void 0?!0:w}),vb(function(w,O){return w||!O},!1)),B=g.pipe(vb(function(w,O){return O===void 0?w:O?!1:w!=null?w:!0},void 0),$f(function(w){return!!w}));
return A_([r,QCo(g,E,B)]).pipe($f(function(w){var O=_.U(w);w=O.next().value;var M=_.U(O.next().value);O=M.next().value;var u=M.next().value;M=M.next().value;var l=0;if(!w)return 0;if(O===void 0)return 16;O&&(l|=1);O||(l|=2);u&&(l|=4);M&&(l|=8);return l}))};
hEA=function(g,r,E,B,w){var O=Vw.timeThresholdMs;var M=M===void 0?new iNB(r,B):M;return(new Em(function(u){var l=E.pipe(dh(void 0),T2(function(){return L_o(w)})).pipe($f(function(Q){var z=Q.value;
Q=Q.timestamp;var k=z.visible;z=z.consecutiveViewTime;var H=z>=O;H||!k?hL(M):(Q=Math.max(0,C$(r.now(),Q)),Vno(M,Math.max(0,O-z-Q)));return H}),vb(function(Q,z){return z||Q},!1),iY()).subscribe(u);
return function(){M.dispose();l.unsubscribe()}})).pipe(gF(function(u){return!u},!0),q0(g))};
L_o=function(g){return w$S([g,g.pipe(qYA())]).pipe($f(function(r){var E=_.U(r);r=E.next().value;E=E.next().value;return{timestamp:r.timestamp,value:{visible:r.value,consecutiveViewTime:E.value}}}),iY(function(r,E){return m_(r,E,function(B,w){return B.consecutiveViewTime===w.consecutiveViewTime&&B.visible===w.visible})}))};
ZNV=function(){return rh(U0J(),vb(function(g,r){return Math.max(g,r)},0),$f(function(g){return Math.round(g)}))};
yLQ=function(g){return rh(ALX(Hb(g)),ZNV())};
vYl=function(g,r){return r instanceof Em?r.pipe(T2(function(E){return(E=E?15:null)?p$(new fN(E)):g})):(r=r.value?15:null)?p$(new fN(r)):g};
d0S=function(g){var r=new fN(13);if(g.length<1)return{chain:Fz,capturedErrors:Fz};var E=new UY,B=g[0];return{chain:g.slice(1).reduce(function(w,O){return w.pipe(Xz(function(M){E.next(M);return O}))},B).pipe(Xz(function(w){E.next(w);
return p$(r)}),h_(new UY),f$()),
capturedErrors:E}};
TFl=function(g,r){var E=g.pipe(h_(new UY),f$());return T2(function(B){return E.pipe(r(B))})};
ryX=function(g,r){if(g.inCrossDomainIframe)return p$(new fN(6));var E=new UY;return eW(Hb({}),r,E).pipe($f(function(){return{timestamp:g.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:grX(g),topWindowViewportExternalGeometry:xY(g,!0),measurementRequests:E,viewportLocalAppOffset:{x:0,y:0}}}}),M0(g.queue))};
grX=function(g){var r=xY(g,!1);if(!g.inIframe||!Zb(g.global.parent)||g.global.parent===g.global)return r;var E=new yw(g.global.parent,g.debugChannel);E.beaconFactory=g.beaconFactory;E=grX(E);g=g.global.frameElement.getBoundingClientRect();return QFD(zTl(QFD(E,g),{x:r.left-g.left,y:r.top-g.top}),r)};
Ert=function(g){if(g.prerendering)return 3;var r;return(r={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[g.visibilityState||g.webkitVisibilityState||g.mozVisibilityState||""])!=null?r:0};
BYo=function(g){return g.document.JSC$7459_onVisibilityChange.pipe($f(function(r){return r==="visible"}),iY(),q0(g.queue))};
wTB=function(g,r,E){var B;return r.pipe(iY(),T2(function(w){return E.pipe($f(function(){if(!B){B=!0;try{w.next()}finally{B=!1}}return!0}))}),dh(!1),q0(g.queue))};
SRL=function(g){return rh(IQ($f(function(r){return r>=1?!0:r<=0?!1:r>=g})),ONV(),$f(function(r){return Math.round(r)}))};
UdX=function(g,r,E,B,w){var O=O5L;if(O.length>1)for(var M=0;M<O.length-1;M++)if(O[M]<O[M+1])throw Error();M=w.pipe(dh(void 0),T2(function(){return E.pipe(qYA())}),iY(),q0(g));
w=w.pipe(dh(void 0),T2(function(){return E.pipe(ZNV())}),iY(),q0(g));
return{totalMeasurementTime:B.pipe(dh(void 0),T2(function(){return r.pipe($f(function(u){return{timestamp:u.timestamp,value:!0}}),ONV())}),iY(),q0(g)),
totalUnviewedTime:B.pipe(dh(void 0),T2(function(){return r.pipe($f(function(u){return{timestamp:u.timestamp,value:u.value===0}}),ONV())}),iY(),q0(g)),
maxTimeOnScreen:B.pipe(dh(void 0),T2(function(){return r.pipe(MnY(yLQ,O))}),iY(_.SU),q0(g)),
timeOnScreen:B.pipe(dh(void 0),T2(function(){return r.pipe(MnY(SRL,O),$f(function(u){return u.map(function(l,Q){return Q>0?l-u[Q-1]:l})}))}),iY(_.SU),q0(g)),
maxConsecutiveViewTime:w,consecutiveViewTime:M.pipe(iY(m_),q0(g))}};
qRl=function(g){var r=!0;r=r===void 0?!1:r;return rh(T2(function(E){return MLS(g.document,E,r)}),q0(g.queue))};
url=function(g,r,E){var B=E.pipe($f(function(w){return{value:w,timestamp:g.timeProvider.now()}}),iY(m_));
return r instanceof Em?r.pipe(iY(),T2(function(w){return w?LN(new lO({value:!1,timestamp:g.timeProvider.now()}),g.queue):B})):r.value===!1?B:new lO(!1)};
lqL=function(g,r,E,B,w,O,M){var u=Vw;r=r instanceof Em?r.pipe(dh(!1),iY()):r;var l=!g.isMobile();E=url(g,E,B);g=M.measurableCreative.pipe(BFL(g.queue));return Object.assign({},u,{geometryIsOccluded:E,wasLargeAdAtRender:w,allowLargeAdThreshold:l,mayUseViewportShareExposure:r,hasMeasurementStarted:g,useIntersectionObserverV2:O})};
orl=function(g,r,E,B,w,O){var M=1;O=O===void 0?!0:O;M=M===void 0?.01:M;var u=u===void 0?g.timeProvider.intervalObservable(100).pipe(q0(g.queue)):u;return g.performanceMonitor.timeExecution(916,function(){return DdA(g,r.pipe(M0(g.queue)),E.pipe(M0(g.queue)),B,w,O,M,u)})()};
DdA=function(g,r,E,B,w,O,M,u){var l=BYo(g).pipe($f(function(z){return!z})),Q=new GPP(g,[new QOB(g,O5L),
new zFt(g,u)]);u=VWB(kPl,H5B);return XbY(g,r,function(z,k){var H=LN(new lO(k.element),z.queue).pipe(qRl(z),q0(z.queue)),R={loadedElement:H,shouldMeasure:H.pipe(IF(!0)),measurableCreative:H.pipe($f(function(h){var y=y===void 0?Symbol():y;return Object.freeze({symbol:y,element:LN(new lO(h),z.queue)})})),
creativeSearchResult:LN(new lO("mue"),z.queue)},A=new lO(!1),J=new lO(!1),e=new lO(17),C=new lO(!1),X=new lO(!1),Z=LN(v$,z.queue);A=Q.buildGeometrySource(R,{inApp:A,useV2:!1,requestSource:LN(e,z.queue)}).geometrySource;R=lqL(z,C,J,l,X,Z,R);J=cLo(z.queue,z.timeProvider,A,R);R=J.geometrySignals;C=J.shouldResetViewabilitySignals;J=UdX(z.queue,R.timestampedExposure,R.visible,J.shouldResetExposureSignals,C);C=hEA(z.queue,z.timeProvider,C,R.measurementRequests,R.visible);X=E.pipe(Wb(function(h){return h===
k.element.ref}),$f(function(){return"ur"}));
Z=pul(z.timeProvider,w).pipe(IF("t"));X=$0S(z,eW(X,Z));Z=wTB(z,R.measurementRequests,X.pipe(Wb(function(h){return h!==null})));
A=X.pipe(Wb(function(h){return h!==null}),$f(function(){return Ert(z.global.document)===1}));
var c=pTY(z.document);return Object.assign({},{beaconFactory:new lO(z.beaconFactory),context:new lO(z),inferredPingId:new lO("lidar2"),timeOnScreenPingId:new lO("lidartos"),binaryContext:new lO(17),binaryVersion:new lO(B),requestSource:e,contextValidationErrors:new lO(z.validate()?null:new $Y),contextVisibilityKnown:new lO(c),payloadMapper:new lO(i$A),endOfSessionReason:X,timeOnScreenReason:X,requestMeasurementOnEndOfSession:Z,hasImpressionFired:YRD,crossDomainIframeState:new lO(z.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:v$,inFetchLaterBeaconExperiment:v$,isTurtlex:v$,turtlexReportEventData:new lO(""),reportFencedFrameEvent:sY,isViewableAttributionEnabled:v$,inViewableAttributionExperiment:new lO(0),fetchBeaconFactory:sY,supportsPendingBeacon:v$,supportsFetchLater:v$,emit:new lO(y_l),beginToRenderEvent:new lO(Symbol()),activeViewUnmeasurableEvent:new lO(Symbol()),activeViewViewableEvent:new lO(Symbol()),creativeFound:YRD,immediateUrlPrefixes:new lO(k.immediateUrls),timeOnScreenUrlPrefixes:new lO(k.timeOnScreenUrls),
cpmavUrls:sY,viewableRelayUrls:sY,measurementDeferralState:new lO(2),urlSerializer:new lO(rLD),viewUrlSerializer:new lO(RFP),isCreativeLoaded:H.pipe(BFL(z.queue)),pageVisible:l.pipe($f(function(h){return!h})),
eosPageVisible:A,timestampedExposureHistory:R.timestampedExposure.pipe(vb(function(h,y){h.push(y);return h},[]))},R,{viewable:iO(z,C),
maxTimeOnScreen:iO(z,J.maxTimeOnScreen),timeOnScreen:iO(z,J.timeOnScreen),maxConsecutiveViewTime:iO(z,J.maxConsecutiveViewTime),consecutiveViewTime:J.consecutiveViewTime.pipe($f(function(h){return new c$(z.timeProvider,h)})),
totalMeasurementTime:iO(z,J.totalMeasurementTime),totalUnviewedTime:iO(z,J.totalUnviewedTime),userAgentClientHints:hjL(z),clientOrderPingCounter:new lO(new IDY)})},LrQ(g,M),hTA(O?Z$t(u,nrX):Z$t(u,sOP),fqD))};
$dc=function(g){var r=_.fI.apply(1,arguments).filter(Boolean).join("&");if(!r)return g;var E=g.match(/[?&]adurl=/);return E?g.slice(0,E.index+1)+r+"&"+g.slice(E.index+1):g+(g.indexOf("?")<0?"?":"&")+r};
dF=function(g,r){return r?"&"+g+"="+encodeURIComponent(r):""};
jOt=function(){try{var g,r;return!!((g=window)==null?0:(r=g.top)==null?0:r.location.href)&&!1}catch(E){return!0}};
_.TM=function(g){g&&typeof g.dispose=="function"&&g.dispose()};
_.gY=function(g){for(var r=0,E=arguments.length;r<E;++r){var B=arguments[r];_.vJ(B)?_.gY.apply(null,B):_.TM(B)}};
b5L=function(){var g=AyJ();g=g===void 0?"bevasrsg":g;return new Promise(function(r){var E=window===window.top?window:jOt()?window:window.top,B=E[g],w;((w=B)==null?0:w.bevasrs)?r(new rY(B.bevasrs)):(B||(B={},B=(B.nqfbel=[],B),E[g]=B),B.nqfbel.push(function(O){r(new rY(O))}))})};
Jyo=function(g){var r={c:g.zp,e:g.m4Y,mc:g.nmx,me:g.mGi};g.mb&&(r.co={c:g.mb.r0g,a:g.mb.rxy,s:g.mb.lsJ});return r};
PDo=function(g){var r,E,B={zp:g.c,m4Y:g.e,nmx:(r=g.mc)!=null?r:!1,mGi:(E=g.me)!=null?E:!1};g.co&&(B.mb={r0g:g.co.c,rxy:g.co.a,lsJ:g.co.s});return B};
tLB=function(g){return function(){var r;return _.q(function(E){if(E.nextAddress==1)return _.D(E,g(),2);r=E.yieldResult;return E.return({f:function(){return r.qyT()},
c:function(B){return r.o4i(B)},
m:function(B){return r.mM(PDo(B))},
mws:function(B){return r.fqy(PDo(B))}})})}};
FKX=function(g,r){var E=AyJ();E=E===void 0?"bevasrsg":E;r={s:function(O){var M;return g.snapshot(Object.assign({},O.c&&{zp:O.c},O.s&&{ykm:O.s},{cit:(M=O.p)!=null?M:!0}))},
e:function(O){var M;return void((M=g.sAq)==null?void 0:M.call(g,O))},
c:function(O,M){return g.ynm(O,M)},
p:g.nrh,l:function(){return g.kpf()},
wpc:r?tLB(r):void 0};var B=window===window.top?window:jOt()?window:window.top,w=B[E];if(w){w.bevasrs=r;if(w.nqfbel!==void 0)for(E=_.U(w.nqfbel),B=E.next();!B.done;B=E.next())B=B.value,B(r);w.nqfbel=void 0}else w={},w=(w.bevasrs=r,w.nqfbel=void 0,w),B[E]=w};
WKD=function(g){var r=r===void 0?50:r;var E=[];_.ER(g,eFV,6,_.BT()).forEach(function(B){_.wY(B,2)<=r&&E.push(_.wY(B,1))});
return E};
CDl=function(g){var r=r===void 0?50:r;var E=[];_.ER(g,eFV,6,_.BT()).forEach(function(B){_.wY(B,2)>r&&E.push(_.wY(B,1))});
return E};
KKL=function(g){g.then(function(){},function(){})};
OR=function(g){return{fieldType:1,fieldName:g}};
UR=function(g){return{fieldType:2,fieldName:g}};
_.Md=function(g){return{fieldType:3,fieldName:g}};
xdY=function(){function g(){w[0]=1732584193;w[1]=4023233417;w[2]=2562383102;w[3]=271733878;w[4]=3285377520;z=Q=0}
function r(k){for(var H=M,R=0;R<64;R+=4)H[R/4]=k[R]<<24|k[R+1]<<16|k[R+2]<<8|k[R+3];for(R=16;R<80;R++)k=H[R-3]^H[R-8]^H[R-14]^H[R-16],H[R]=(k<<1|k>>>31)&4294967295;k=w[0];var A=w[1],J=w[2],e=w[3],C=w[4];for(R=0;R<80;R++){if(R<40)if(R<20){var X=e^A&(J^e);var Z=1518500249}else X=A^J^e,Z=1859775393;else R<60?(X=A&J|e&(A|J),Z=2400959708):(X=A^J^e,Z=3395469782);X=((k<<5|k>>>27)&4294967295)+X+C+Z+H[R]&4294967295;C=e;e=J;J=(A<<30|A>>>2)&4294967295;A=k;k=X}w[0]=w[0]+k&4294967295;w[1]=w[1]+A&4294967295;w[2]=
w[2]+J&4294967295;w[3]=w[3]+e&4294967295;w[4]=w[4]+C&4294967295}
function E(k,H){if(typeof k==="string"){k=unescape(encodeURIComponent(k));for(var R=[],A=0,J=k.length;A<J;++A)R.push(k.charCodeAt(A));k=R}H||(H=k.length);R=0;if(Q==0)for(;R+64<H;)r(k.slice(R,R+64)),R+=64,z+=64;for(;R<H;)if(O[Q++]=k[R++],z++,Q==64)for(Q=0,r(O);R+64<H;)r(k.slice(R,R+64)),R+=64,z+=64}
function B(){var k=[],H=z*8;Q<56?E(u,56-Q):E(u,64-(Q-56));for(var R=63;R>=56;R--)O[R]=H&255,H>>>=8;r(O);for(R=H=0;R<5;R++)for(var A=24;A>=0;A-=8)k[H++]=w[R]>>A&255;return k}
for(var w=[],O=[],M=[],u=[128],l=1;l<64;++l)u[l]=0;var Q,z;g();return{reset:g,update:E,digest:B,digestString:function(){for(var k=B(),H="",R=0;R<k.length;R++)H+="0123456789ABCDEF".charAt(Math.floor(k[R]/16))+"0123456789ABCDEF".charAt(k[R]%16);return H}}};
cyJ=function(g,r){r=r===void 0?aqc:r;if(!XTc){var E;g=(E=g.navigator)==null?void 0:E.userAgentData;if(!g||typeof g.getHighEntropyValues!=="function"||g.brands&&typeof g.brands.map!=="function")return Promise.reject(Error("za"));NYc((g.brands||[]).map(function(w){var O=new Iql;O=_.H$(O,1,w.brand);return _.H$(O,2,w.version)}));
typeof g.mobile==="boolean"&&_.qd(mdD,2,g.mobile);XTc=g.getHighEntropyValues(r)}var B=new Set(r);return XTc.then(function(w){var O=mdD.clone();B.has("platform")&&_.H$(O,3,w.platform);B.has("platformVersion")&&_.H$(O,4,w.platformVersion);B.has("architecture")&&_.H$(O,5,w.architecture);B.has("model")&&_.H$(O,6,w.model);B.has("uaFullVersion")&&_.H$(O,7,w.uaFullVersion);return O.serialize()}).catch(function(){return mdD.serialize()})};
uD=function(g,r,E,B){this.initialValue_=g;this.maxValue_=r;this.currBaseValue_=this.currValue_=g;this.randomFactor_=E||0;this.backoffFactor_=B||2};
lD=function(g){this.src=g;this.listeners={};this.typeCount_=0};
hFl=function(){for(var g;g=i5Y.remove();){try{g.fn.call(g.scope)}catch(r){BJ(r)}LKV.put(g)}VLP=!1};
_.Z5X=function(g){switch(g){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}};
yyB=function(g){switch(g){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""}};
_.vrA=function(){};
OlP=function(g,r,E,B,w){g=ddA(TYt(gBl(new _.Dq(1828,"0"),g),new r5B));r.length&&EBX(g,BBL(new wpQ,r));B!==void 0&&(g.destinationUrl=B);w&&g.disableWithCredentials();var O=new Sxo(1828,"","",!1,"",g.build());_.oO(O,g);var M=new GP({flush:function(u){try{O.flush(u)}catch(l){E(l)}}});
M.addOnDisposeCallback(function(){setTimeout(function(){try{M.snapshotAndFlush()}finally{O.dispose()}})});
M.invocationLimit=1E5;M.flushInterval=3E4;M.JSC$7876_flushTimer.setInterval(3E4);return M};
Qr=function(){var g,r,E;return(E=(g=globalThis.performance)==null?void 0:(r=g.now)==null?void 0:r.call(g))!=null?E:Date.now()};
u2J=function(g,r){if(g.disable)return new UDc;var E=r?WKD(r):[],B=g.hL,w=g.wp6,O=g.cem,M=g.destinationUrl,u=g.xDY;g=g.zmm;r=r==null?void 0:_.zP(r,M1S,11);var l=l===void 0?50:l;r=(r==null?void 0:_.wY(r,1))||0;B={hL:B,j5f:w,b01:O,destinationUrl:M,xDY:u,zmm:g,disableClearcutCredentialBinding:r>0&&l>=r};E=E===void 0?[]:E;return new qxY(B,E)};
lkc=function(g){if(!g)return null;g=_.kr(g,2);return g===null||g===void 0?null:Ja(g)};
_.DDJ=function(g){if(!g)return null;g=_.kr(g,4);return g===null||g===void 0?null:_.qO(g)};
QBl=function(g,r){return r?oBl(r):g?GWS(g):Promise.resolve()};
oBl=function(g){return new Promise(function(r,E){var B=_.HT("SCRIPT"),w=_.DDJ(g);_.mg(B,w);B.onload=function(){_.p5(B);r()};
B.onerror=function(){_.p5(B);E(Error("Ka"))};
(Yr("HEAD")[0]||document.documentElement).appendChild(B)})};
GWS=function(g){return new Promise(function(r){var E=_.HT("SCRIPT");if(g){var B=_.kr(g,6);B=B===null||B===void 0?null:_.XE(B)}else B=null;_.IC(E,B);(Yr("HEAD")[0]||document.documentElement).appendChild(E);_.p5(E);r()})};
RO=function(g,r,E){var B,w=new Promise(function(O){B=setTimeout(O,r)});
return Promise.race([g.finally(function(){return void clearTimeout(B)}),
w.then(E)])};
zoV=function(g,r){try{return globalThis.sessionStorage.setItem(g,r),!0}catch(E){return!1}};
kWQ=function(g,r,E,B){r=r===void 0?0:r;E=E===void 0?g.length:E;var w=0;for(B&&(w=kWQ(B));r<E;r++)B=typeof g==="string"?g.charCodeAt(r):g[r],w=HlX(31,w)+B|0;return w};
KDQ=function(g,r){return[kWQ(g,0,g.length>>1,r),kWQ(g,g.length>>1)]};
xDJ=function(g){var r=_.U(KDQ(g,n5));g=r.next().value;r=r.next().value;return g.toString(16)+r.toString(16)};
akl=function(g,r){var E=KDQ(r);g=new Uint32Array(g.buffer);r=g[0];var B=_.U(E);E=B.next().value;B=B.next().value;for(var w=1;w<g.length;w+=2){for(var O=r,M=w,u=E,l=B,Q=0;Q<22;Q++)M=M>>>8|M<<24,M+=O|0,M^=u+38293,O=O<<3|O>>>29,O^=M,l=l>>>8|l<<24,l+=u|0,l^=Q+38293,u=u<<3|u>>>29,u^=l;O=[O,M];g[w]^=O[0];w+1<g.length&&(g[w+1]^=O[1])}};
XpY=function(g,r,E,B,w){var O=(4-(n5.length+E.length)%4)%4,M=new Uint8Array(4+O+n5.length+4+E.length),u=new DataView(M.buffer),l=0;u.setUint32(l,Math.random()*4294967295);l=l+4+O;M.set(n5,l);l+=n5.length;u.setUint32(l,w);M.set(E,l+4);akl(M,B);return g.insert(r,function(Q){return void globalThis.sessionStorage.removeItem(Q)})?zoV(r,_.gk(M))?"s":"t":"i"};
NBY=function(g,r){var E=globalThis.sessionStorage.getItem(g);if(!E)return["m"];try{var B=_.Mz(E);akl(B,r)}catch(w){return globalThis.sessionStorage.removeItem(g),["c"]}for(r=4;r<7&&B[r]===0;)r++;for(E=0;E<n5.length;E++)if(B[r++]!==n5[E])return globalThis.sessionStorage.removeItem(g),["d"];E=(new DataView(B.buffer)).getUint32(r);return Math.floor(Date.now()/1E3)>=E?(globalThis.sessionStorage.removeItem(g),["e"]):["a",new Uint8Array(B.buffer,r+4)]};
Ikc=function(g){return globalThis.TextEncoder?(new TextEncoder).encode(g):_.sR(g)};
mDY=function(g){var r=g,E;return function(){if(r){var B=r;r=void 0;E=B.apply(this,arguments)}return E}};
ilt=function(g){return mn(function(r){if(r instanceof g)return!0;var E,B,w=r==null?void 0:(E=r.ownerDocument)==null?void 0:(B=E.defaultView)==null?void 0:B[g.name];return c5J(w)&&r instanceof w})};
_.jL=function(g,r,E){_.f5.call(this);this.JSC$8091_listener_=g;this.JSC$8091_interval_=r||0;this.handler_=E;this.callback_=(0,_.$r)(this.JSC$8093_doAction_,this)};
_.Ay=function(g){g=LDJ(g);return _.qO(g)};
LDJ=function(g){return g===null?"null":g===void 0?"undefined":g};
hoS=function(g){if(g&&g.focus)if(g!==document.activeElement)g.focus();else return V1V(function(){return _.q(function(r){document.activeElement&&document.activeElement.blur();return r.return(V1V(function(){g.focus()}))})})};
_.Zlt=function(g){var r=r===void 0?5:r;setTimeout(function(){var E;return _.q(function(B){B.nextAddress==1&&(E=document.activeElement);if(B.nextAddress!=5)return(document.activeElement===E||document.activeElement===document.body)&&r>=0&&g?_.D(B,hoS(g),5):B.jumpTo(0);if(document.activeElement===g)return B.return();g=g.parentElement;--r;return B.jumpTo(2)})},15)};
V1V=function(g){return new Promise(function(r){requestAnimationFrame(function(){r(g())})})};
vBc=function(g){if(_.bD)g(_.bD);else{var r;((r=y5L)!=null?r:y5L=[]).push(g)}};
PT=function(){!_.bD&&_.Jy&&_.dDS(_.Jy());return _.bD};
_.dDS=function(g){_.bD=g;var r;(r=y5L)==null||r.forEach(vBc);y5L=void 0};
_.ty=function(g){_.bD&&_.bD.beforeLoadModuleCode(g)};
_.Fr=function(){_.bD&&_.bD.JSC$9079_setLoaded()};
eL=function(g){return xt(g)?Number(g):String(g)};
TBB=function(g){this.action=g;this.wfv=!1};
gFQ=function(g,r){TBB.call(this,"set-drive-options");this.appId=g;this.appOrigin=r};
rkl=function(g){TBB.call(this,"visibility");this.visible=g};
EFS=function(g,r,E){WT.call(this,g,r,E)};
BWl=function(g){xr.call(this,g)};
w0S=function(g){g=g&&g.getWindow()||window;return g.gadgets&&g.gadgets.rpc};
OaL=function(g,r){var E=r&&r.getWindow()||window;if(w0S(r))g();else if(S6V)S6V.push(g);else var B=S6V=[g],w=E.setInterval(function(){if(w0S(r)){E.clearInterval(w);for(var O=0;O<B.length;O++)B[O]();S6V=null}},100)};
MSP=function(g,r){var E=new aO(g);_.oO(r,E);var B={passive:!1};r.listen(E,"mousewheel",function(w){return void UXJ(g,w)},B).listen(g,"scroll",function(w){return void UXJ(g,w)},B)};
UXJ=function(g,r){var E;a:{for(E=r.target;E;){if(E.nodeType==1){var B=_.Xr(E,"overflowY");if(B=="auto"||B=="scroll")break a}E=E.parentNode}E=null}if(!E||!_.Nd(g,E)||E.scrollHeight==E.clientHeight||r.deltaY>0&&Math.abs(E.scrollTop-(E.scrollHeight-E.clientHeight))<=1||r.deltaY<0&&E.scrollTop==0)r.preventDefault(),r.stopPropagation()};
hy=function(g,r,E,B,w,O,M,u,l){u=u===void 0?!1:u;l=l===void 0?!1:l;WT.call(this,void 0,void 0,void 0);WT.call(this,O?O+" picker modal-dialog":"picker modal-dialog",!0,E);_.IO(g,"protocol");this.iframeManager_=new q6B;this.targetId_=mK();this.rpcToken_=mK();g=_.cT(g);_.iD(g,"hostId");E=_.iD(g,"parent");this.useGapi_=!l&&!0||(E==null?void 0:E.includes("onepick.corp.google.com"));u&&_.L5(g,"fv2","true");this.setUrl(g.toString());this.preferredDialogWidth_=B;this.preferredDialogHeight_=w;B!==void 0||
w!==void 0?B=!0:(B=_.iD(_.cT(g.toString()),"hostId"),uSL||(uSL=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),B=!uSL.has(B));this.autoSizeDialog_=B;this.JSC$8281_gadgetsDomHelper_=M||this.JSC$8232_dom_;r&&(M=this.JSC$8281_gadgetsDomHelper_,r=_.iD(_.cT(this.JSC$8283_url_),"grugl")=="true"?lnL:DXc,w0S(M)||(M=M||kY(document),B=M.createElement("SCRIPT"),_.mg(B,r),B.type="text/javascript",M.JSC$7414_document_.body.appendChild(B)));
g=g.toString();r=null;M=g.indexOf("/picker?");M>-1?r=g.substring(0,M+8-1):UD(g,"/picker")&&(r=g);r&&this.setRelayUrl(r+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(g=this.buttons_,g.JSC$8266_element_=this.buttonEl_,g.render()):_.cu(this.buttonEl_,oFJ),_.Vr(this.buttonEl_,!!this.buttons_))};
_.kUt=function(g){var r=r===void 0?GUQ:r;var E=_.Ew(g),B=function(O){O=_.U(O);O.next();O=Zq(O);return r(E,O)},w=function(O){var M=_.U(O);
O=M.next().value;M=Zq(M);return g.apply(O,M)};
return function(){var O=_.fI.apply(0,arguments),M=this||_.ED,u=QaB.get(M);u||(u={},QaB.set(M,u));return z7V(u,[this].concat(_.jW(O)),w,B)}};
yr=function(g){var r={};g=g.replace(/\r/g,"").split("\n");for(var E=0;E<g.length;E++){var B=g[E],w=B.indexOf(":");w<0||(r[B.substring(0,w)]=B.substring(w+2,B.length))}return r};
vT=function(g,r,E){E=E===void 0?function(){}:E;
return g?r():E()};
_.p0S=function(g){var r;return((r=HaB.documentOverride)!=null?r:g).__wizdispatcher};
_.TP=function(g){var r=dY;dY=g;return r};
R7V=function(g){return g===Y6c||(g==null?void 0:g.name)==="\u0275NotFound"};
nFA=function(g,r){var E;if((E=g)==null?0:E.isDisposed)throw Error("ob`"+String(g.debugName));for(;g!==void 0;){E=g;if(E.retrieve)return E.retrieve(r,{optional:!0});g=g.parent}return Y6c};
gB=function(g){return{"\u0275prov":{providedIn:"root",token:Symbol(g),factory:void 0,value:void 0}}};
_.sat=function(g){var r=dY;if(!r){switch(g===void 0?3:g){case 0:g=Error("nb");break;case 1:g=Error("pb");break;case 2:g=Error("qb");break;default:g=Error("rb")}throw g;}return r};
fnl=function(g){var r=_.TP(g);g={};return g[Symbol.dispose]=function(){_.TP(r)},g};
$XQ=function(g,r){g.disposables||(g.disposables=[]);g.disposables.push(r)};
rB=function(g){var r=dY;r&&!r.isDisposed&&($XQ(r,g),g.parent=r)};
AkP=function(g){if(g.disposables){for(var r=_.U(g.disposables),E=r.next();!E.done;E=r.next())E=E.value,typeof E==="function"?E():jaQ(E);g.disposables.length=0}};
jaQ=function(g){if(!g.isDisposed){g.isDisposed=!0;var r;(r=g[Symbol.dispose])==null||r.call(g);delete g.parent;AkP(g)}};
KRX=function(g){var r={retrieve:function(E){switch(E.\u0275prov.token){case baA.\u0275prov.token:var B=g.asyncDeps;break;case JkX.\u0275prov.token:B=g.rootElement;break;case PuX.\u0275prov.token:B=g.modelRootElement;break;case tSc.\u0275prov.token:B=g.appContext;break;case FRo.\u0275prov.token:B=g.rendererData;break;case e7S.\u0275prov.token:B=g.injectingConstructor;break;case WRB.\u0275prov.token:B=g.dispatcher}if(B)E=B;else a:{for(B=r.parent;B;){var w=B;if(w.retrieve){E=w.retrieve(E);break a}B=
B.parent}B=E.\u0275prov.token;w=CuD[B];w!==void 0?E=w:(w=E.\u0275prov.providedIn,E.\u0275prov.factory?(E=E.\u0275prov.factory(),B&&w==="root"&&(CuD[B]=E)):E=Y6c)}return E}};
rB(r);return r};
xXX=function(){var g=_.sat(1),r=nFA(g,tSc);R7V(r)&&(g=nFA(g,WRB),R7V(g)||g.getOptionalAppContext())};
ano=function(g){if(typeof document!=="undefined"&&document&&document.getElementById&&(g=document.getElementById(g))){var r=g.tagName.toUpperCase();if(r=="SCRIPT"||r=="LINK")return g}return null};
NWY=function(g,r){if((g=g===void 0?"":g)&&r)throw Error("xb");var E="";var B=_.ED._F_jsUrl;(g=r||ano(g))&&(E=g.src?g.src:g.getAttribute("href"));if(B&&E){if(B!=E)throw Error("yb`"+B+"`"+E);E=B}else E=B||E;if(!X0L(E))throw Error("zb");return E};
ial=function(){if(!InX){InX=!0;try{var g=NWY(_.ED._F_jsUrl?"":"base-js")}catch(B){return}var r=mXS(ckl(g)),E=Object.keys(r);E.length!==0&&vBc(function(B){for(var w=_.U(E),O=w.next();!O.done;O=w.next()){O=O.value;for(var M=_.U(Object.keys(r[O])),u=M.next();!u.done;u=M.next())B.addExtraEdge(O,u.value)}})}};
VSY=function(){var g=Object.assign({},LRc);Object.getOwnPropertyNames(LRc).forEach(function(r){Ex[r]!==void 0&&(g[r]=Ex[r])});
return g};
h7c=function(g,r){if(Ex.enablePerformanceTiming){var E,B;(B=(E=performance).mark)==null||B.call(E,g+"Start__"+r)}};
Zal=function(g,r){if(Ex.enablePerformanceTiming){var E,B;(B=(E=performance).measure)==null||B.call(E,g+"__"+r,g+"Start__"+r)}};
ykl=function(g,r,E){var B;return g&&r?g+"__"+r:(B=g!=null?g:r)!=null?B:E};
dXP=function(g,r){var E=Object.create(vFP);E.debugName=r;!dY||rB(E);r=_.TP(E);try{g(E)}finally{_.TP(r)}return function(){return void jaQ(E)}};
gAo=function(g){return Bp(g)&&TWc in g};
rsD=function(g,r){return Object.is(g,r)};
S1=function(g){var r=wB;wB=g;return r};
SrA=function(g){if(Ox)throw Error("da");if(wB!==null){var r=wB.nextProducerIndex++;EAX(wB);r<wB.producerNode.length&&wB.producerNode[r]!==g&&Ux(wB)&&BMJ(wB.producerNode[r],wB.producerIndexOfThis[r]);wB.producerNode[r]!==g&&(wB.producerNode[r]=g,wB.producerIndexOfThis[r]=Ux(wB)?wNc(g,wB,r):0);wB.producerLastReadVersion[r]=g.version}};
MgP=function(g){if(!Ux(g)||g.dirty)if(g.dirty||g.lastCleanEpoch!==O3P)(g.producerMustRecompute(g)||Uel(g))&&g.producerRecomputeValue(g),g.dirty=!1,g.lastCleanEpoch=O3P};
qrD=function(g){if(g.liveConsumerNode!==void 0){var r=Ox;Ox=!0;try{for(var E=_.U(g.liveConsumerNode),B=E.next();!B.done;B=E.next()){var w=B.value;w.dirty||(g=void 0,w.dirty=!0,qrD(w),(g=w.consumerMarkedDirty)==null||g.call(w,w))}}finally{Ox=r}}};
u1l=function(){var g;return((g=wB)==null?void 0:g.consumerAllowSignalWrites)!==!1};
lxl=function(g){g&&(g.nextProducerIndex=0);return S1(g)};
DeS=function(g,r){S1(r);if(g&&g.producerNode!==void 0&&g.producerIndexOfThis!==void 0&&g.producerLastReadVersion!==void 0){if(Ux(g))for(r=g.nextProducerIndex;r<g.producerNode.length;r++)BMJ(g.producerNode[r],g.producerIndexOfThis[r]);for(;g.producerNode.length>g.nextProducerIndex;)g.producerNode.pop(),g.producerLastReadVersion.pop(),g.producerIndexOfThis.pop()}};
Uel=function(g){EAX(g);for(var r=0;r<g.producerNode.length;r++){var E=g.producerNode[r],B=g.producerLastReadVersion[r];if(B!==E.version)return!0;MgP(E);if(B!==E.version)return!0}return!1};
wNc=function(g,r,E){oAL(g);if(g.liveConsumerNode.length===0&&g.producerNode!==void 0)for(var B=0;B<g.producerNode.length;B++)g.producerIndexOfThis[B]=wNc(g.producerNode[B],g,B);g.liveConsumerIndexOfThis.push(E);return g.liveConsumerNode.push(r)-1};
BMJ=function(g,r){oAL(g);if(g.liveConsumerNode.length===1&&g.producerNode!==void 0)for(var E=0;E<g.producerNode.length;E++)BMJ(g.producerNode[E],g.producerIndexOfThis[E]);E=g.liveConsumerNode.length-1;g.liveConsumerNode[r]=g.liveConsumerNode[E];g.liveConsumerIndexOfThis[r]=g.liveConsumerIndexOfThis[E];g.liveConsumerNode.length--;g.liveConsumerIndexOfThis.length--;r<g.liveConsumerNode.length&&(E=g.liveConsumerIndexOfThis[r],g=g.liveConsumerNode[r],EAX(g),g.producerIndexOfThis[E]=r)};
Ux=function(g){var r,E;return g.consumerIsAlwaysLive||((E=g==null?void 0:(r=g.liveConsumerNode)==null?void 0:r.length)!=null?E:0)>0};
EAX=function(g){g.producerNode!=null||(g.producerNode=[]);g.producerIndexOfThis!=null||(g.producerIndexOfThis=[]);g.producerLastReadVersion!=null||(g.producerLastReadVersion=[])};
oAL=function(g){g.liveConsumerNode!=null||(g.liveConsumerNode=[]);g.liveConsumerIndexOfThis!=null||(g.liveConsumerIndexOfThis=[])};
QjJ=function(g){var r=Object.create(GZB);r.computation=g;g=function(){MgP(r);SrA(r);if(r.value===MD)throw r.error;return r.value};
g[qD]=r;return g};
pNL=function(g,r){var E=Object.create(zft);E.value=g;r!==void 0&&(E.equal=r);g=function(){SrA(E);return E.value};
g[qD]=E;return[g,function(B){return kZl(E,B)},
function(B){u1l()||H3X(E);kZl(E,B(E.value))}]};
kZl=function(g,r){u1l()||H3X(g);if(!g.equal(g.value,r)){g.value=r;g.version++;O3P++;qrD(g);var E;(E=Yrl)==null||E(g)}};
uQ=function(g){var r=S1(null);try{return g()}finally{S1(r)}};
_.Dk=function(g,r,E){E=E===void 0?"":E;g=pNL(g,r==null?void 0:r.equals);var B=g[0],w=B[qD];w.debugName=ykl(r==null?void 0:r.debugName,E,"[signal]");if(!Ex.enablePerformanceTiming)return g;var O=g[1],M=g[2];return[B,function(u){RfX(function(){return void O(u)},w)},
function(u){RfX(function(){return void M(u)},w)}]};
RfX=function(g,r){h7c("signalSet",r.debugName);try{g()}finally{Zal("signalSet",r.debugName)}};
sjA=function(g,r){var E=_.U(_.Dk(g,void 0,"cPpJzc"));g=E.next().value;E=E.next().value;g[nAB]=E;g[oB]=r;return g};
fxY=function(g){return!!g&&typeof g==="object"&&Object.getPrototypeOf(g)===Object.prototype};
$eV=function(g){return typeof g==="function"&&nAB in g&&typeof g[nAB]==="function"};
jjB=function(g,r){Object.defineProperty(g,oB,{get:function(){return r}})};
Q6=function(g,r){if(GW(g)){var E=g.map(function(O){return Q6(O,r)});
jjB(E,r);return E}if(fxY(g)){E={};g=_.U(Object.entries(g));for(var B=g.next();!B.done;B=g.next()){var w=_.U(B.value);B=w.next().value;w=w.next().value;E[B]=Q6(w,r)}jjB(E,r);return E}return sjA(g,r)};
AsV=function(g){if(GW(g))return g.map(function(w){return AsV(w)});
if(fxY(g)){var r={};g=_.U(Object.entries(g));for(var E=g.next();!E.done;E=g.next()){var B=_.U(E.value);E=B.next().value;B=B.next().value;r[E]=AsV(B)}return r}return $eV(g)?g():g};
Jsl=function(){var g={height:0,width:0};if(!fxY(g))throw Error("Lb");var r=Symbol("Mb");return[Q6(g,r),function(E,B){if(E[oB]===r)if(typeof B==="function"){var w=[].concat(_.jW(AsV(E)));B=B(w)||w;b3P(E,[].concat(_.jW(B)))}else b3P(E,B);else throw Error("Nb");}]};
b3P=function(g,r){if($eV(g))g[nAB](r);else if(GW(g)&&GW(r))r=Q6(r,g[oB]),g.length=0,g.push.apply(g,_.jW(r));else if((fxY(g)||GW(g))&&(GW(r)||typeof r==="object"&&r!==null)){r=_.U(Object.entries(r));for(var E=r.next();!E.done;E=r.next()){var B=_.U(E.value);E=B.next().value;B=B.next().value;var w=g,O=w[E];Object.hasOwn(g,E)?b3P(O,B):w[E]=Q6(B,g[oB])}}else throw Error("Ob");};
Pcl=function(g){return Object.create(Object.assign({},zW,g))};
F0P=function(){var g;return(g=tgY)!=null?g:tgY=Pcl({consumerAllowSignalWrites:!0})};
_.kB=function(g,r,E){E=E===void 0?"":E;g=QjJ(g);var B=g[qD];B.debugName=ykl(r==null?void 0:r.debugName,E,"[computed]");(r==null?void 0:r.equals)!=null&&(B.equal=r.equals);return g};
Hp=function(g){var r=S1(eft);try{g()}finally{S1(r)}};
XNt=function(g){if(!g.isDisposed)switch(g.effectType){case pl:W0Q.schedule(g);break;case CcY:K0l.schedule(g);break;case xel:axl.schedule(g);break;default:_.MM(g.effectType)}};
Ixc=function(g){NMV.push(g);return function(){var r=NMV.indexOf(g);r!==-1&&NMV.splice(r,1)}};
csl=function(){if(YB>0)Ex.flushRenderEffectsDuringRender&&W0Q.flush();else for(var g=_.U(meV),r=g.next();!r.done;r=g.next())r.value.flush()};
L0t=function(g){RB=!0;try{for(var r=_.U(g),E=r.next();!E.done;E=r.next()){for(var B=E.value,w=[B],O=B;O.parent!==void 0;)O=O.parent,i3J(O)&&g.has(O)&&w.push(O);for(;w.length>0;){var M=w.pop();g.delete(M);M.run()}}}finally{RB=!1}};
nl=function(g){YB--;if(g){g=_.U(meV);for(var r=g.next();!r.done;r=g.next())r.value.clear()}else YB>0||RB&&!Ex.flushRenderEffectsDuringRender||csl()};
hfX=function(g,r,E){var B=Vgo(g);sx={name:E?B+" ("+E+")":B,isReactive:g.componentType!==fl,parent:sx};g=r();sx=sx.parent;return g};
$B=function(){var g=sx;return g?g.isReactive:!1};
A5=function(g,r){var E=sx;r&&(sx=r);try{return g()}catch(O){g=O;j1(g,sx);if(g!==Z3t){ysB=sx;r=[];for(var B=dY;B;){var w=void 0;r.push((w=B.debugName)!=null?w:"[context]");w=void 0;B=(w=B.parent)!=null?w:null}vAl=r.reverse()}Z3t=g;throw g;}finally{sx=E}};
j1=function(g,r){try{var E=deB(r);if(E&&!g.componentStack&&(g.componentStack=E,Ex.enableComponentStacksInErrorMessages)){var B=g.message+"\n\nComponent stack: "+E;g.stack&&(g.stack=g.stack.replace(g.message,B));g.message=B}}catch(w){}};
deB=function(g){if(Bp(g)&&g.name!==void 0&&g.isReactive!==void 0&&g.parent!==void 0||g===null){for(var r=0,E="";r<20&&g;)E+=g.name+" > ",g=g.parent,r++;g=E.slice(0,-3)}else if(Ex.enableContextBasedComponentStacks){a:{for(g=g===void 0?dY:g;g;){if(gAo(g))break a;r=void 0;g=(r=g.parent)!=null?r:null}g=null}g=g.getComponentStack().slice(0,20).join(" > ")}else g="";return g};
Vgo=function(g){return g.debugName||g.name||"[component]"};
TMX=function(g,r,E){r=Object.create(r);r.effectFn=g;E&&(r.debugName=E);rB(r);r.componentStack=sx;return r};
_.bQ=function(g,r){g=TMX(g,gRS,r);XNt(g)};
_.J5=function(g){var r=dY;if(r){var E=sx;$XQ(r,function(){var B=S1(F0P());try{A5(function(){return void g()},E)}catch(w){throw Ex.enableContextBasedComponentStacks&&j1(w),w;
}finally{S1(B)}})}};
Pp=function(g,r){var E={};(r===void 0||r)&&rB(E);r=_.TP(E);try{g(E)}finally{_.TP(r)}return function(){return void jaQ(E)}};
_.t5=function(g){return typeof g==="function"?g():(g==null?0:g[rpL])?g.get():g};
_.F2=function(g,r){g=TMX(g,ERA,r);XNt(g)};
B2l=function(g){if(dY)throw Error("sb");Pp(g,!1)};
e1=function(g,r){g=_.TP(g);try{return uQ(r)}finally{_.TP(g)}};
Wp=function(g,r){var E=deB(ysB),B,w;var O=(w=(B=vAl)==null?void 0:B.slice())!=null?w:[];r={componentStack:E,contextTrace:O,errorSeverity:3,featureFlags:VSY(),tagName:r};return[g,r]};
O9l=function(g,r,E){if(Object.hasOwnProperty.call(w8X,g)&&(g=w8X[g],Object.hasOwnProperty.call(g,r)&&(g=g[r],g instanceof Array))){for(var B=null,w=!1,O=0,M=g.length;O<M;++O){var u=g[O],l=u.contingentAttribute;if(!l)return u.contract;B===null&&(B={});l=Object.hasOwnProperty.call(B,l)?B[l]:B[l]=E(l);if(l===u.requiredValue)return u.contract;l==null&&(w=!0)}if(w)return null}r=SeQ[r];return typeof r==="number"?r:null};
qeo=function(g,r,E){var B=null;(g=U_B[g])&&(B=g[r]);return typeof B!=="number"&&((g=U_B["*"])&&(B=g[r]),typeof B!=="number")?!1:!0===MED[B][String(E).toLowerCase()]};
lHY=function(g,r){r=O9l(g.toLowerCase(),r,function(){var B;(B=Ex.handleError)==null||B.call.apply(B,[Ex].concat(_.jW(Wp(Error("Tb"),g.toLowerCase()))))});
if(r===null)return null;var E;return(E=u6A[r])!=null?E:null};
D_D=function(g,r,E){if(E===null||E===void 0)return E;r=r.toLowerCase();g=lHY(g,r);return g===null?E:g(r,E)};
oRL=function(){};
xB=function(g,r){for(;g.length>r;)g.pop()};
GjQ=function(g){g=Array(g);xB(g,0);return g};
QTY=function(g,r,E){if(E==null)g.removeAttribute(r);else{var B;(B=r.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":r.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?g.setAttributeNS(B,r,E):g.setAttribute(r,E)}};
zIo=function(g,r,E){g[r]=E};
H9X=function(g,r,E){g=g.style;if(typeof E==="string")g.cssText=E;else{g.cssText="";for(var B in E)if(kjP.call(E,B)){r=g;var w=B,O=E[B];w.indexOf("-")>=0?r.setProperty(w,O):r[w]=O}}};
p8D=function(g,r,E){var B=typeof E;B==="object"||B==="function"?g[r]=E:QTY(g,r,E)};
Yet=function(){var g=new oRL;g[aB.default]=p8D;g.style=H9X;return g};
RIP=function(g,r,E,B){(B[r]||B[aB.default])(g,r,E)};
sTS=function(g,r,E){r=new nRL(r,E);return g.__incrementalDOMData=r};
X2=function(g,r){if(g.__incrementalDOMData)return g.__incrementalDOMData;var E=g.nodeType===1?g.localName:g.nodeName,B=g.nodeType===1?g.getAttribute("key"):null;r=sTS(g,E,g.nodeType===1?B||r:null);if(g.nodeType===1&&(g=g.attributes,E=g.length)){B=r._attrsArr||(r._attrsArr=GjQ(E*2));for(var w=0,O=0;w<E;w+=1,O+=2){var M=g[w],u=M.value;B[O]=M.name;B[O+1]=u}}return r};
fHS=function(g,r,E,B,w){return r==E&&B==w};
$_P=function(g){for(var r=ND,E=IB();E!==g;){var B=E.nextSibling;r.removeChild(E);mD.deleted.push(E);E=B}};
IB=function(){return cp?cp.nextSibling:ND.firstChild};
iQ=function(){cp=IB()};
b9c=function(g,r,E){iQ();var B;a:{if(B=cp){do{var w=B,O=g,M=r,u=X2(w,M);if(jTA(w,O,u.nameOrCtor,M,u.key))break a}while(r&&(B=B.nextSibling))}B=null}B||(g==="#text"?(E=Ll.createTextNode(""),sTS(E,"#text",null),g=E):(B=Ll,w=ND,typeof g==="function"?B=new g:B=(w=g==="svg"?"http://www.w3.org/2000/svg":g==="math"?"http://www.w3.org/1998/Math/MathML":w==null||X2(w).nameOrCtor==="foreignObject"?null:w.namespaceURI)?B.createElementNS(w,g):B.createElement(g),sTS(B,g,r),g=B,E&&g.setAttribute("nonce",E)),mD.created.push(g),
B=g);E=B;if(E!==cp){if(Apl.indexOf(E)>=0)for(g=ND,r=E.nextSibling,B=cp;B!==null&&B!==E;)w=B.nextSibling,g.insertBefore(B,r),B=w;else ND.insertBefore(E,cp);cp=E}};
JpV=function(g,r,E){b9c(g,r,E);ND=cp;cp=null;return ND};
PdJ=function(){$_P(null);cp=ND;ND=ND.parentNode};
V6=function(){cp=ND.lastChild};
eIL=function(g,r){r=r===void 0?{}:r;var E=r.matches===void 0?fHS:r.matches;return function(B,w,O){var M=mD,u=Ll,l=Apl,Q=h5,z=Zk,k=cp,H=ND,R=jTA;Ll=B.ownerDocument;mD=new tEB(B);jTA=E;h5=[];Zk=[];cp=null;var A=ND=B.parentNode,J,e=FSc.call(B);if((J=e.nodeType===11||e.nodeType===9?e.activeElement:null)&&B.contains(J)){for(e=[];J!==A;)e.push(J),J=J.parentNode||(A?J.host:null);A=e}else A=[];Apl=A;try{return g(B,w,O)}finally{B=mD,y6&&B.deleted.length>0&&y6(B.deleted),Ll=u,mD=M,jTA=R,h5=Q,Zk=z,cp=k,ND=H,
Apl=l}}};
WSX=function(g,r,E,B){vp.push(RIP);vp.push(g);vp.push(r);vp.push(E);vp.push(B)};
KSQ=function(g,r,E){var B=Zk;r=r._attrsArr||(r._attrsArr=GjQ(B.length));for(var w=!r.length||!1,O=0;O<B.length;O+=2){var M=B[O];if(w)r[O]=M;else if(r[O]!==M)break;var u=B[O+1];if(w||r[O+1]!==u)r[O+1]=u,WSX(g,M,u,E)}if(O<B.length||O<r.length){for(O=w=O;O<r.length;O+=2)dB[r[O]]=r[O+1];for(O=w;O<B.length;O+=2)w=B[O],M=B[O+1],dB[w]!==M&&WSX(g,w,M,E),r[O]=w,r[O+1]=M,delete dB[w];xB(r,B.length);for(var l in dB)WSX(g,l,void 0,E),delete dB[l]}g=Cdl;Cdl=E=vp.length;for(l=g;l<E;l+=5)(0,vp[l])(vp[l+1],vp[l+
2],vp[l+3],vp[l+4]);Cdl=g;xB(vp,g);xB(B,0)};
TW=function(g){b9c("#text",null);var r=cp;var E=X2(r);if(E.text!==g){E=E.text=g;for(var B=1;B<arguments.length;B+=1)E=(0,arguments[B])(E);r.data!==E&&(r.data=E)}};
cpL=function(g,r,E){if(E===!1&&x_X.has(r))QTY(g,r,null);else if(r!=="idomKey"&&r!=="skip"&&r!=="skipchildren"&&r!=="children"&&r!=="el")if(r.startsWith("on")){if(r[2]!==":")throw Error("Sb`"+r);if(E===void 0||E===null){var B;(B=Ex.handleError)==null||B.call.apply(B,[Ex].concat(_.jW(Wp(Error("Xb`"+r),g.tagName))));g[r]=void 0}else{var w=r.slice(3);B=$B();if(w==="jsaction"){E=_.U(Array.isArray(E)?E:[E]);for(var O=E.next();!O.done;O=E.next()){O=O.value;if(typeof O!=="object"||O===null||typeof O.selfReg!==
"function")throw Error("$b`"+r);O.selfReg(0,g,B?_.J5:function(){})}}else{if(typeof E!=="object"||E===null)throw Error("Yb`"+r+"`"+typeof E);
if(typeof E.getFn!=="function")throw Error("Zb`"+r+"`"+Object.keys(E));if(E.selfReg)E.selfReg(0,g,w,B?_.J5:function(){});
else if(B&&g["on"+w]===void 0){var M=E.getFn(0);g.addEventListener(w,M);_.J5(function(){return void g.removeEventListener(w,M)})}else if(B||!aHV.includes(w))g["on"+w]=E.getFn(0)}}}else{if(r.startsWith("data-")&&typeof E==="string")try{E=X8c(E)}catch(u){E="zSoyz"}typeof E!=="function"||g._disposeEffects!=null?((B=r.startsWith("prop:"))&&(r=r.slice(5)),Ex.enableAttributeSanitization&&(B&&N2A(g.tagName)||(E=D_D(g.tagName,r,E))),r==="style"?("function"==typeof _.gW&&E instanceof _.gW&&(E=E.toString()),
IHt(g,r,E)):B?g[r]=E:m_t(g,r,E)):(g._signalProps||(g._signalProps=[]),g._signalValues||(g._signalValues=[]),g._signalProps.push(r))}};
i9B=function(g,r,E){E=(E===void 0?{}:E).isReactive;if(r==null?0:r.el){var B=r.el;if(typeof B==="function")B(g);else{var w;(w=B.onRender)==null||w.call(B,g);g._disposeRef||(g._disposeRef=function(){var O;(O=B.onUnmount)==null||O.call(B);delete g._disposeRef},E&&_.J5(function(){var O;
(O=g._disposeRef)==null||O.call(g)}))}}};
N2A=function(g){return g.length>0&&g.includes("-")&&!LSQ.includes(g.toLowerCase())};
VEc=function(g){return Bp(g)&&E6 in g};
hIB=function(g){return VEc(g)?g[E6].flattened:g};
Z9A=function(g,r){var E=_.fI.apply(2,arguments),B;r=(B=r)!=null?B:{};B={};return B.type=g,B.props=r,B.children=E,B[B0]=!0,B};
_.wW=function(g){return g.children};
SS=function(g){var r=ypS!==Z9A;ypS=g?vRD:Z9A;return r};
_.O6=function(g){return _.gA(g)?"nodeType"in g:!1};
U6=function(){return document.createTextNode("")};
MX=function(g){g=document.createTextNode(String(g));g._isSignalTextNode=!0;return g};
rnD=function(g){var r=document.createElement("div");if(d_P(g)&&lkc(g))_.cu(r,lkc(g));else if(g instanceof bi)_.cu(r,g);else if(T2l(g)){if(g.contentKind!==gKL)throw Error("Wb");g=Ja(g.toString());_.cu(r,g)}g=_.U(r.childNodes);for(var E=g.next();!E.done;E=g.next())E.value._isSafeOrSanitizedHtmlNode=!0;return r};
qX=function(g){g=typeof g;return g==="string"||g==="number"||g==="boolean"};
EKX=function(g){return g instanceof MO||Qv(g)||"function"==typeof _.Vv&&g instanceof _.Vv||"function"==typeof _.gW&&g instanceof _.gW};
Bul=function(g,r){var E=g.parentElement;if(!E)return r;E.replaceChild(r,g);return r};
wfc=function(g,r){var E=g[0].parentElement;if(E)if(g[0].previousSibling||g[g.length-1].nextSibling){E.insertBefore(r,g[0]);for(var B=g.length-1;B>=0;B--)E.removeChild(g[B])}else E.textContent="",E.appendChild(r);return r};
SqP=function(g,r){if(g[0].parentElement)for(var E=g[0].parentElement,B=r.length,w=g.length,O=B,M=0,u=0,l=g[w-1].nextSibling,Q=null;M<w||u<O;)if(g[M]===r[u])M++,u++;else{for(;g[w-1]===r[O-1];)w--,O--;if(w===M)for(var z=O<B?u?r[u-1].nextSibling:r[O-u]:l;u<O;){var k=r[u++];E.insertBefore(k,z)}else if(O===u)for(;M<w;)z=g[M],Q&&Q.has(z)||E.removeChild(z),M++;else if(g[M]===r[O-1]&&r[u]===g[w-1])z=g[--w].nextSibling,E.insertBefore(r[u++],g[M++].nextSibling),E.insertBefore(r[--O],z),g[w]=r[O];else{if(!Q)for(Q=
new Map,z=u;z<O;)Q.set(r[z],z++);z=Q.get(g[M]);if(z==null)E.removeChild(g[M]),M++;else if(u<z&&z<O){k=M;for(var H=1,R=void 0;++k<w&&k<O&&(R=Q.get(g[k]))!=null&&R===z+H;)H++;if(H>z-u)for(k=g[M];u<z;)E.insertBefore(r[u++],k);else E.replaceChild(r[u++],g[M++])}else M++}}return r};
UbA=function(g){if(Array.isArray(g)){if(g.length>1)throw Error("ic`"+g.length+"`"+g.map(OCP).join(", "));g=g[0]}if(g==null)return null;if(!(g instanceof _.aC)){var r,E;if((r=window)==null?0:(E=r.trustedTypes)==null?0:E.isScript(g))throw Error("hc");if(String(g).trim().length===0)return null;throw Error("jc`"+OCP(g));}return g};
MlY=function(g){if(Array.isArray(g)){if(g.length>1)throw Error("kc`"+g.length+"`"+g.map(OCP).join(", "));g=g[0]}if(g==null)return null;if(!nuQ(g)){if(String(g).trim().length===0)return null;throw Error("lc`"+OCP(g));}return g};
OCP=function(g){return"("+typeof g+") "+(g!=null&&typeof g==="object"?g.constructor.name:typeof g)+" "+g};
qqJ=function(){};
Dn=function(g,r){r=r===void 0?{}:r;var E=uRl();Ex.legacyTriggerSoyRendererEvents&&xXX();_.F2(function(){uu.setUp();r.isControlFlowComponent&&YB++;var B=E[0],w=E[E6].flattened,O=SS(!0);try{var M=g(),u=l8L(B,M,E);Array.isArray(u)||(E[E6].flattened=[u]);var l=E[E6].flattened;if(w&&(!Array.isArray(w)||w.length!==0)){var Q=Array.isArray(w)?w[0]:w,z=Q[lu],k=Q._disposeEffects;Q._disposeEffects=void 0;Q=Array.isArray(l)?l[0]:l;Q[lu]=z;Q[lu]&&(Q[lu].numNodes=Q===l?1:l.length);Q._disposeEffects=k}E[0]=u;r.isControlFlowComponent&&
nl(!1)}catch(H){throw r.isControlFlowComponent&&nl(!0),H;}finally{SS(O),uu.tearDown()}},r.debugName);
return E};
l8L=function(g,r,E){for(;typeof r==="function";)r=r();if(r!=null&&r[B0]){var B,w,O;(O=Ex.handleError)==null||O.call.apply(O,[Ex].concat(_.jW(Wp(Error("mc`"+((B=r.type)==null?void 0:B.TAG_NAME)),(w=r.type)==null?void 0:w.TAG_NAME))))}if(g==null)return r==null?U6():qX(r)?MX(r):EKX(r)?MX(r.toString()):_.O6(r)?r:r.length===0?U6():Dbl(r,E);if(_.O6(g)){if(r==null)return Bul(g,U6());if(qX(r))return oKo(g,r);if(EKX(r))return oKo(g,r.toString());if(_.O6(r))return Bul(g,r);if(r.length===0)return Bul(g,U6());
r=Dbl(r,E);SqP([g],E[E6].flattened);return r}g=oa(g);if(r==null)return wfc(g,U6());if(qX(r))return wfc(g,MX(r));if(EKX(r))return wfc(g,MX(r.toString()));if(_.O6(r))return SqP(g,[r])[0];if(r.length===0)return wfc(g,U6());r=Dbl(r,E);SqP(g,E[E6].flattened);return r};
oKo=function(g,r){g.nodeType===Node.TEXT_NODE?g.textContent!==String(r)&&(g.textContent=String(r)):g=Bul(g,MX(r));return g};
oa=function(g,r,E){return GxL(g,r!=null?r:[],E===void 0?!1:E)};
Dbl=function(g,r){var E=oa(g,void 0,!0);if(E.length===0)return U6();r[E6].flattened=E;return g};
GxL=function(g,r,E,B,w){r=r===void 0?[]:r;E=E===void 0?!1:E;w=w===void 0?-1:w;if(g==null)return r;if(g instanceof GU)return g=g.render(),GxL(g,r,E,B,w);if(_.O6(r)&&r.nodeType===Node.ELEMENT_NODE)switch(r.tagName){case "SCRIPT":E=UbA(g);E!==null&&_.IC(r,E);return;case "STYLE":E=MlY(g);E!==null&&(r.textContent=_.s8l(E));return}qX(g)&&(g=MX(g),B&&E&&(B[w]=g));if(T2l(g)||g instanceof bi||d_P(g)){E=rnD(g);E=Array.from(E.childNodes);E=_.U(E);for(g=E.next();!g.done;g=E.next())QIA(r,g.value);return r}EKX(g)&&
(g=MX(g.toString()),B&&E&&(B[w]=g));if(_.O6(g))return QIA(r,g);if(Array.isArray(g)){for(var O=0;O<g.length;O++)GxL(g[O],r,E,g,O);return r}if(typeof g==="function"){g=Dn(g,{debugName:"qmF2ne"})[0];if(Array.isArray(g)){E=_.U(g);for(g=E.next();!g.done;g=E.next())QIA(r,g.value);return r}B&&E&&(B[w]=g);return QIA(r,g)}if(g!=null&&g[B0]){B=SS(!0);w=ypS;try{O=w.apply(null,[g.type,g.props].concat(_.jW(g.children)))}finally{SS(B)}return GxL(O,r,E)}var M;(M=Ex.handleError)==null||M.call.apply(M,[Ex].concat(_.jW(Wp(Error("nc")))));
return r};
uRl=function(g){var r={};r=Object.assign([],(r[E6]={flattened:[]},r));if(!g)return r;r[0]=Dbl(g,r);return r};
QIA=function(g,r){Array.isArray(g)?g.push(r):g.appendChild(r);return g};
Qg=function(g){if(!Ex.enableLazyTsx)return g;if(Array.isArray(g)){for(var r=0;r<g.length;r++)g[r]=Qg(g[r]);return g}return g instanceof GU?(g=g.render(),Qg(g)):g};
kxY=function(g,r){var E,B,w=Vgo(g),O=function(R){B=R;R=SS(!0);var A=S1(zU);h7c("render",w);try{E=Qg(g(r))}finally{Zal("render",w),S1(A),SS(R)}};
O=Ex.enableContextPerComponent?dXP(O,w):Pp(O,Ex.alwaysTrackContexts||!!dY);gAo(B);if(!r.renderedFromIdom){var M=_.TP(B);try{return zRc(g,r,E),E}finally{_.TP(M)}}!VEc(E)&&Array.isArray(E)&&(E=uRl(E));var u=hIB(E);M=Array.isArray(u)?u[0]:u;var l=!1;if(M){var Q,z=(Q=r==null?void 0:r.idomKey)!=null?Q:g;Q=u!==M;M._disposeEffects=O;var k=M[lu]||{},H=VEc(E)?E:k.sourceDynamicRange;Object.assign(k,{key:z,numNodes:Q?u.length:1,context:B,higherOrder:!!M[lu],sourceDynamicRange:H});M[lu]=k}else l=!0;(function(){var R=
_.TP(B);try{zRc(g,r,u)}finally{_.TP(R)}})();
l&&O();return E};
HCc=function(g){var r={},E;for(E in g)r={prev$jscomp$23:void 0,next$jscomp$32:void 0},r.prev$jscomp$23=kF[E],r.next$jscomp$32=g[E],kF[E]=function(B){return function(){var w=_.fI.apply(0,arguments);B.prev$jscomp$23.apply(null,_.jW(w));B.next$jscomp$32.apply(null,_.jW(w))}}(r)};
pfX=function(){if($B())throw Error("oc");return H0};
Yql=function(g,r){if(!g.__unmounted&&r){g.__unmounted=!0;try{g.didUnmount()}catch(w){var E,B;(B=Ex.handleError)==null||B.call.apply(B,[Ex].concat(_.jW(Wp(w,(E=g.JSC$8307___type)==null?void 0:E.TAG_NAME))))}kF.didUnmount(g);g.el=null;r.__instance&&delete r.__instance}};
nKo=function(g,r,E){g._signalProps!=null&&g._disposeEffects==null&&((E===void 0?0:E)?g._disposeEffects=Pp(function(){return void RRl(g,r)},Ex.alwaysTrackContexts||!!dY):RRl(g,r))};
RRl=function(g,r){_.F2(function(){for(var E=g._signalProps,B=g._signalValues,w=0;w<E.length;w++){var O=E[w],M=r[O]();B[w]!==M&&(B[w]=M,cpL(g,O,M))}},"e3YVbb")};
sIP=function(g,r,E){var B,w=[];g._disposeEffects=Pp(function(){_.F2(function(){var O=E();if(O===null||O===void 0)O="";if(qX(O)||O===null)B!=null||(B=document.createTextNode("")),B.parentNode!==g&&(B._isSignalTextNode=!0,g.insertBefore(B,r)),B.textContent=String(O);else if(T2l(O)||O instanceof bi||d_P(O)){for(var M=w.length>0?w[w.length-1].nextSibling:r,u=_.U(w),l=u.next();!l.done;l=u.next())g.removeChild(l.value);O=rnD(O);w=Array.from(O.childNodes);O=_.U(w);for(u=O.next();!u.done;u=O.next())g.insertBefore(u.value,
M)}else throw l=(u=(M=sx)==null?void 0:M.name)!=null?u:"unknown",Error("dc`"+l+"`"+typeof O);},"VvDgC")},Ex.alwaysTrackContexts||!!dY)};
jIl=function(g,r){var E=_.fI.apply(2,arguments);r!=null||(r={});return!Ex.enableLazyTsx||sx!=null&&!$B()?f8X(g,r,E):new $bJ(g,r,E)};
f8X=function(g,r,E){if(g===_.wW)return E;if(typeof g==="function")return sx&&!$B()&&(r.renderedFromIdom=!0),hfX(g,function(){var O=Anl(g,r,E);if(O)return O;E.length>0&&(r.children=E.length===1?E[0]:E);if(g.componentType===fl){var M;dXP(function(){var u=r;if(g.componentType!==fl)M=!1;else{u||(u={});var l=new pa(u,g),Q=S1(zU);try{var z=l.render(u)}finally{S1(Q)}z instanceof HTMLElement?(z.__instance=l,l.el=z,l.JSC$8307___type=g,g.TAG_NAME=z.tagName.toLowerCase(),kF.didPatch(l),M=z):M=z}},g.name);
if(M)return M}return kxY(g,r)},r.debugInstance);
var B=bCo(g,r),w;for(w in r)cpL(B,w,r[w]);nKo(B,r);oa(E,B);i9B(B,r,{isReactive:!0});JnA(B,r);return B};
bCo=function(g,r){g=(P2L.has(g.toLowerCase())?0:tlQ.has(g.startsWith("svg:")?g.replace("svg:",""):g))?document.createElementNS("http://www.w3.org/2000/svg",g.startsWith("svg:")?g.replace("svg:",""):g):FHD(g,r)||document.createElement(g);g[eRJ]=!0;return g};
WHA=function(g){if(g){var r;(r=g._disposeRef)==null||r.call(g);var E;(E=g._disposeEffects)==null||E.call(g);g.__instance&&g.__instance instanceof YF&&(r=g.__instance,Yql(r,g),r instanceof pa&&r.disposeEffects());for(r=0;r<g.childNodes.length;r++)WHA(g.childNodes[r])}};
KHA=function(g){C2Q.push(g)===1&&requestAnimationFrame(function(){setTimeout(function(){var r=[].concat(_.jW(C2Q));C2Q=[];r=_.U(r);for(var E=r.next();!E.done;E=r.next()){E=E.value;try{for(var B=0;B<E.length;B++)WHA(E[B])}catch(w){B=E=void 0,(B=(E=Ex).handleError)==null||B.call.apply(B,[E].concat(_.jW(Wp(w))))}}})})};
_.G=function(g,r){return ypS.apply(null,[g,r].concat(_.jW(_.fI.apply(2,arguments))))};
xbl=function(g,r){r=r===void 0?new Map:r;g=_.U(g);for(var E=g.next();!E.done;E=g.next())if(E=E.value,!r.has(E)){var B=void 0,w=(B=E.producerNode)!=null?B:[];r.set(E,w);xbl(w,r)}return r};
_.p=function(g){var r=g.cond;if(r===void 0)return g.else&&g.else();var E=_.kB(function(){return!!r()},void 0,"JHVi8"),B=function(){var w=r();
if(!w){var O;(O=Ex.handleError)==null||O.call.apply(O,[Ex].concat(_.jW(Wp(a8c.nonNullableCondIsNull()))))}return w};
return Dn(function(){var w=E(),O;Pp(function(){var M=S1(zU);try{O=Qg(w?g.then(B):g.else&&g.else())}finally{S1(M)}},!0);
return O},{debugName:g.debugInstance,
isControlFlowComponent:!0})};
XfA=function(g){return _.p(g)};
_.Ra=function(g){return g.keyBy==="INDEX"?NuX(g):I8l(g)};
mbP=function(g){g=_.U(g);for(var r=g.next();!r.done;r=g.next()){var E=void 0;(E=r.value)==null||E()}};
I8l=function(g){var r=g.keyBy===void 0||g.keyBy==="REFERENCE",E=r?function(z){return z}:g.keyBy,B=[],w=[],O=[],M=[],u=[],l=[],Q=!0;
_.J5(function(){mbP(M)});
return Dn(function(){var z=g.each(),k=z.length;if(k===0){if(B.length===0&&!Q)return O;mbP(M);B=z;w=[];for(z=0;z<B.length;z++)w.push(E(B[z]));O=[];M=[];u=[];l=[];g.fallback&&(M[0]=cnc(function(){O[0]=Qg(g.fallback())}));
Q=!1;return O}for(var H=new iCl,R=B.length-1;R>=0;R--)H.push(w[R],R);R=Array(k);for(var A=Array(k),J=Array(k),e=Array(k),C=Array(r?0:k),X={i$jscomp$449:0};X.i$jscomp$449<k;X={i$jscomp$449:X.i$jscomp$449,item$jscomp$103:void 0,key$jscomp$529:void 0},X.i$jscomp$449++){X.item$jscomp$103=z[X.i$jscomp$449];X.key$jscomp$529=E(X.item$jscomp$103);var Z=H.pop(X.key$jscomp$529);Z!=null?(J[X.i$jscomp$449]=O[Z],A[X.i$jscomp$449]=w[Z],R[X.i$jscomp$449]=M[Z],e[X.i$jscomp$449]=u[Z],r||(C[X.i$jscomp$449]=l[Z]),Hp(function(c){return function(){e[c.i$jscomp$449](c.i$jscomp$449);
if(!r)C[c.i$jscomp$449](c.item$jscomp$103)}}(X)),delete M[Z]):R[X.i$jscomp$449]=cnc(function(c){return function(){var h=_.U(_.Dk(c.i$jscomp$449,void 0,"Fqk1zd")),y=h.next().value;
h=h.next().value;e[c.i$jscomp$449]=h;A[c.i$jscomp$449]=c.key$jscomp$529;if(r)J[c.i$jscomp$449]=Qg(g.children(c.item$jscomp$103,y));else{var OD=_.U(_.Dk(c.item$jscomp$103,void 0,"GBj5de"));h=OD.next().value;OD=OD.next().value;C[c.i$jscomp$449]=OD;J[c.i$jscomp$449]=Qg(g.children(h,y))}}}(X))}mbP(M);
B=z;w=A;O=J;M=R;u=e;l=C;Q=!1;return J},{debugName:g.debugInstance,
isControlFlowComponent:!0})};
NuX=function(g){var r=[],E=[],B=[],w=[],O=!1;_.J5(function(){for(var M=_.U(w),u=M.next();!u.done;u=M.next())u=u.value,u()});
return Dn(function(){var M=g.each();O&&M.length>0&&(w.pop()(),r.pop(),O=!1);for(var u=Array(M.length),l={i$jscomp$450:0};l.i$jscomp$450<M.length;l={i$jscomp$450:l.i$jscomp$450},l.i$jscomp$450++)if(l.i$jscomp$450<r.length)r[l.i$jscomp$450]!==M[l.i$jscomp$450]&&(Hp(function(z){return function(){return void E[z.i$jscomp$450](M[z.i$jscomp$450])}}(l)),r[l.i$jscomp$450]=M[l.i$jscomp$450]),u[l.i$jscomp$450]=B[l.i$jscomp$450];
else{var Q=cnc(function(z){return function(){r[z.i$jscomp$450]=M[z.i$jscomp$450];var k=_.U(_.Dk(M[z.i$jscomp$450],void 0,"kGMqJe")),H=k.next().value;k=k.next().value;E[z.i$jscomp$450]=k;u[z.i$jscomp$450]=Qg(g.children(H,z.i$jscomp$450))}}(l));
w[l.i$jscomp$450]=Q}for(;r.length>M.length;)r.pop(),w.pop()(),E.pop();M.length===0&&!O&&g.fallback&&(l=cnc(function(){u[0]=Qg(g.fallback())}),w[0]=l,O=!0);
return B=u},{debugName:g.debugInstance,
isControlFlowComponent:!0})};
cnc=function(g){var r=dY;return Pp(function(E){var B=S1(zU);try{E.parent=r,g(E)}finally{S1(B)}},!1)};
_.na=function(g){return g};
_.s6=function(g){return{isDefault:!0,children:g.children}};
_.fa=function(g){var r=LHl(g),E=_.kB(function(){return VlV(r)},void 0,"F1PF4");
return Dn(function(){var B=E(),w;Pp(function(){var O=S1(zU);try{w=Qg(B())}finally{S1(O)}});
return w},{debugName:g.debugInstance,
isControlFlowComponent:!0})};
LHl=function(g){g=g.children;return Array.isArray(g)?g:[g]};
hRl=function(g){var r=g.props;g=g.getChildren()[0];return r.when?{when:r.when,children:g}:{isDefault:!0,children:g}};
VlV=function(g){var r=function(){return null};
g=_.U(g);for(var E=g.next();!E.done;E=g.next())if(E=E.value,E!=null&&E[B0]&&(E=E.type===_.s6?{isDefault:!0,children:E.children[0]}:{when:E.props.when,children:E.children[0]}),E instanceof GU&&(E=hRl(E)),E.isDefault)r=E.children;else if(E.when())return E.children;return r};
ynl=function(g){var r=null,E,B={get value(){var O,M;(M=(O=w).validateGetValue)==null||M.call(O);return w.__value},set value(O){var M,u;(u=(M=w).validateSetValue)==null||u.call(M,O);w.__value=O;w.__hasBeenSet=!0}},w=(B.__value=null,B.__hasBeenSet=!1,B.__hasErrored=!1,B.onRender=function(O){if(E&&O!==E){E._disposeRef=void 0;var M;(M=r)==null||M()}E=O;r=g(O)||null},B.onUnmount=function(){var O;
(O=r)==null||O();r=w.value=null},B[ZCD]=!0,B);
return w};
dbA=function(g){var r=pfX();if(r==null)throw _.vKS.PRIMITIVE_INVALID_HOOK_CALL();var E=r.hookCounter++;r.hooks||(r.hooks=[]);var B=r.hooks;B[E]||(B[E]={key:g,host:r});if(g!==B[E].key){if(r.JSC$8307___type){var w;g=(w=r.JSC$8307___type)==null?void 0:w.name}else g=r instanceof pa?Vgo(r.functionComponent):"<"+r.el.tagName.toLowerCase()+">";throw _.vKS.OUT_OF_ORDER_HOOK_CALL(g);}return B[E]};
TuQ=function(g,r){return!g||g.length!==(r==null?void 0:r.length)||g.some(function(E,B){return E!==r[B]})};
g5Y=function(g,r){var E=dbA("onChange"),B=pfX();TuQ(E.deps,r)&&(E.deps=r,E.pendingEffect=g,B.__syncEffects||(B.__syncEffects=[]),B.__syncEffects.push(E))};
_.$F=function(g,r){var E=E===void 0?{}:E;E=E.appContext;var B=!!Ex.legacyTriggerSoyRendererEvents;uu.setUp();try{var w=rxc(g,r,E);B&&(r=E,r==null&&(r=_.p0S(document).getAppContext()),r.get(E5V).JSC$25721_getEventTarget().dispatchEvent(new BHY(w3o,g,gKL)));uu.log(g);return w}finally{uu.tearDown()}};
rxc=function(g,r,E){var B=A5(function(){var w=S1(zU);try{return Pp(function(){var O=_.p0S(_.tL(g)),M;var u=KRX({rootElement:{value:g},appContext:E||(O==null?void 0:(M=O.getOptionalAppContext)==null?void 0:M.call(O)),dispatcher:O});O=_.TP(u);u=SS(!0);YB++;try{oa(r(),g),nl(!1)}catch(l){throw nl(!0),l;}finally{SS(u),_.TP(O)}},!1)}catch(O){throw Ex.enableContextBasedComponentStacks&&j1(O),O;
}finally{S1(w)}});
g[SbQ]=!0;return function(){g.textContent="";B();g[SbQ]=!1}};
_.jS=function(g){if(i3J(wB)){var r;(r=Ex.handleError)==null||r.call.apply(r,[Ex].concat(_.jW(Wp(Error("cc")))))}var E=dY,B=sx;Promise.resolve().then(function(){if(E&&!E.isDisposed){var w=_.TP(E);try{A5(function(){return void g()},B)}catch(O){throw Ex.enableContextBasedComponentStacks&&j1(O),O;
}finally{_.TP(w)}}})};
_.bu=function(g,r){g5Y(function(){return uQ(g)},r)};
_.Jk=function(g){$B()?_.jS(function(){uQ(g)}):g5Y(function(){return uQ(g)},[])};
UHP=function(g){var r=[].concat(_.jW(g));g.length=0;g=_.U(r);for(r=g.next();!r.done;r=g.next()){r=r.value;OkV(r);var E=r.pendingEffect;r.pendingEffect=null;if(E=E==null?void 0:E())r.pendingCleanup=E}};
OkV=function(g){var r=g.pendingCleanup;g.pendingCleanup=null;r==null||r()};
M8D=function(g,r){if($B())return g();var E=dbA("useMemoInternal");TuQ(E.deps,r)&&(E.deps=r,E.value=g());return E.value};
qbX=function(g,r){return M8D(g,r)};
P0=function(g){return M8D(g,[])};
tk=function(g){return P0(function(){return{value:g}})};
_.FS=function(g,r){if(!g)return null;g=Object.keys(g);g=_.U(g);for(var E=g.next();!E.done;E=g.next()){E=E.value;var B=E.toLowerCase();if(B.indexOf(r,B.length-r.length)>-1)return E}return null};
_.W0=function(){var g=arguments,r=_.eS;g.length>1?r[g[0]]=g[1]:g.length===1&&Object.assign(r,g[0])};
_.Ca=function(g,r){return g in _.eS?_.eS[g]:r};
_.Ka=function(g,r){return!!_.Ca(g,r)};
u3B=function(g){var r=_.eS.EXPERIMENT_FLAGS;return r?r[g]:void 0};
DHL=function(g){lsL.forEach(function(r){return r(g)})};
_.aa=function(g){return g&&window.yterr?function(){try{return g.apply(this,arguments)}catch(r){_.xF(r)}}:g};
_.xF=function(g){var r=_.XS("yt.logging.errors.log");r?r(g,"ERROR",void 0,void 0,void 0,void 0,void 0):(r=_.Ca("ERRORS",[]),r.push([g,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.W0("ERRORS",r));DHL(g)};
_.NX=function(g,r,E,B,w){var O=_.XS("yt.logging.errors.log");O?O(g,"WARNING",r,E,B,void 0,w):(O=_.Ca("ERRORS",[]),O.push([g,"WARNING",r,E,B,void 0,w]),_.W0("ERRORS",O))};
G5Y=function(g,r){r=g.split(r);for(var E={},B=0,w=r.length;B<w;B++){var O=r[B].split("=");if(O.length===1&&O[0]||O.length===2)try{var M=o5D(O[0]||""),u=o5D(O[1]||"");if(M in E){var l=E[M];Array.isArray(l)?_.dl(l,u):E[M]=[l,u]}else E[M]=u}catch(H){var Q=H,z=O[0],k=String(G5Y);Q.args=[{key:z,value:O[1],query:g,method:Qvt===k?"unchanged":k}];zUY.hasOwnProperty(z)||_.NX(Q)}}return E};
k5J=function(g){var r=[];_.jn.forEach(g,function(E,B){var w=_.Ia(B);_.mR(Array.isArray(E)?E:[E],function(O){O==""?r.push(w):r.push(w+"="+_.Ia(O))})});
return r.join("&")};
_.c0=function(g){g.charAt(0)==="?"&&(g=g.substring(1));return G5Y(g,"&")};
_.iu=function(g){return g.indexOf("?")!==-1?(g=(g||"").split("#")[0],g=g.split("?",2),_.c0(g.length>1?g[1]:g[0])):{}};
_.La=function(g,r){return HkX(g,r||{},!0)};
p3P=function(g,r){return HkX(g,r||{},!1)};
HkX=function(g,r,E){var B=g.split("#",2);g=B[0];B=B.length>1?"#"+B[1]:"";var w=g.split("?",2);g=w[0];w=_.c0(w[1]||"");for(var O in r)if(E||!_.jn.containsKey(w,O))w[O]=r[O];return _.Vg(g,w)+B};
v0=function(g){if(!r)var r=window.location.href;var E=_.hk(g)[1]||null,B=_.Zn(g);return E&&B?yg(g,r):B?_.Zn(r)===B&&(Number(_.hk(r)[4]||null)||null)===(Number(_.hk(g)[4]||null)||null):!0};
_.RUt=function(g){g=Ybc(g);return g===null?!1:g[0]==="com"&&g[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Ybc=function(g){g=_.Zn(g);return g!==null?g.split(".").reverse():null};
o5D=function(g){return g&&g.match(n5l)?g:dW(g)};
_.gM=function(g){return new svc(g)};
_.rM=function(){fsD||(fsD=new $HL);return fsD};
AxV=function(g){var r=_.Er,E,B;_.q(function(w){E=_.rM();return(B=E.resolve(_.gM(r)))?(g(B),w.return(Promise.resolve(B))):w.return(E.resolve(new jvP(r)).then(function(O){g(O);return O}))})};
_.Y=function(g){g=BN(g);return typeof g==="string"&&g==="false"?!1:!!g};
_.wM=function(g,r){g=BN(g);return g===void 0&&r!==void 0?r:Number(g||0)};
bkt=function(g){g=BN(g);return Array.isArray(g)?_.bO(g,function(r){return Number(r||0)}):[Number(g||0)]};
_.Sg=function(g){g=BN(g);return g!==void 0?String(g):""};
_.Or=function(g){g=BN(g);return Array.isArray(g)?_.bO(g,function(r){return String(r||"")}):[String(g||"")]};
JxS=function(){return _.Ca("EXPERIMENTS_TOKEN","")};
BN=function(g){return _.Ca("EXPERIMENT_FLAGS",{})[g]};
PpQ=function(){for(var g=[],r=_.Ca("EXPERIMENTS_FORCED_FLAGS",{}),E=_.U(Object.keys(r)),B=E.next();!B.done;B=E.next())B=B.value,g.push({key:B,value:String(r[B])});E=_.Ca("EXPERIMENT_FLAGS",{});B=_.U(Object.keys(E));for(var w=B.next();!w.done;w=B.next())w=w.value,w.startsWith("force_")&&r[w]===void 0&&g.push({key:w,value:String(E[w])});return g};
F8V=function(){if(!t8Y)return null;var g=t8Y();return"open"in g?g:null};
_.eUV=function(g){switch(_.Ur(g)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.Ur=function(g){return g&&"status"in g?g.status:-1};
_.Me=function(g,r){typeof g==="function"&&(g=_.aa(g));return window.setTimeout(g,r)};
_.qe=function(g,r){typeof g==="function"&&(g=_.aa(g));return window.setInterval(g,r)};
_.uc=function(g){window.clearTimeout(g)};
CpP=function(g){g=_.iu(g);for(var r=_.U(W8l),E=r.next();!E.done;E=r.next())if(g[E.value]!==void 0)return!0;return!1};
asJ=function(g,r,E,B,w,O,M,u){E=E===void 0?"GET":E;B=B===void 0?"":B;u=u===void 0?!1:u;var l=F8V();if(!l)return null;var Q=function(){(l&&"readyState"in l?l.readyState:0)===4&&r&&_.aa(r)(l)};
"onloadend"in l?l.addEventListener("loadend",Q,!1):l.onreadystatechange=Q;_.Y("debug_forward_web_query_parameters")&&(g=K8D(g,window.location.search));l.open(E,g,!0);O&&(l.responseType=O);M&&(l.withCredentials=!0);E=E==="POST"&&(window.FormData===void 0||!(B instanceof FormData));if(w=xHP(g,w))for(var z in w)l.setRequestHeader(z,w[z]),"content-type"===z.toLowerCase()&&(E=!1);E&&l.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(u&&"setAttributionReporting"in XMLHttpRequest.prototype){g=
{eventSourceEligible:!0,triggerEligible:!1};try{l.setAttributionReporting(g)}catch(k){_.NX(k)}}l.send(B);return l};
xHP=function(g,r){r=r===void 0?{}:r;var E=v0(g),B=_.Ca("INNERTUBE_CLIENT_NAME"),w=_.Y("web_ajax_ignore_global_headers_if_set"),O;for(O in X3A){var M=_.Ca(X3A[O]),u=O==="X-Goog-AuthUser"||O==="X-Goog-PageId";O!=="X-Goog-Visitor-Id"||M||(M=_.Ca("VISITOR_DATA"));var l;if(!(l=!M)){if(!(l=E||(_.Zn(g)?!1:!0))){l=g;var Q;if(Q=_.Y("add_auth_headers_to_remarketing_google_dot_com_ping")&&O==="Authorization"&&(B==="TVHTML5"||B==="TVHTML5_UNPLUGGED"||B==="TVHTML5_SIMPLY"))Q=Ybc(l),Q=Q===null?!1:Q[1]==="google"?
!0:Q[2]==="google"?Q[0]==="au"&&Q[1]==="com"?!0:Q[0]==="uk"&&Q[1]==="co"?!0:!1:!1;Q&&(l=_.lc(l)||"",l=l.split("/"),l="/"+(l.length>1?l[1]:""),Q=l==="/pagead");l=Q?!0:!1}l=!l}l||w&&r[O]!==void 0||B==="TVHTML5_UNPLUGGED"&&u||(r[O]=M)}"X-Goog-EOM-Visitor-Id"in r&&"X-Goog-Visitor-Id"in r&&delete r["X-Goog-Visitor-Id"];if(E||!_.Zn(g))r["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(E||!_.Zn(g)){try{var z=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(k){}z&&(r["X-YouTube-Time-Zone"]=
z)}document.location.hostname.endsWith("youtubeeducation.com")||!E&&_.Zn(g)||(r["X-YouTube-Ad-Signals"]=k5J(NHX()));return r};
_.Isl=function(g,r){var E=_.Zn(g);_.Y("debug_handle_relative_url_for_query_forward_killswitch")||!E&&v0(g)&&(E=document.location.hostname);var B=_.lc(g);B=(E=E&&(E.endsWith("youtube.com")||E.endsWith("youtube-nocookie.com")))&&B&&B.startsWith("/api/");if(!E||B)return g;var w=_.c0(r),O={};_.mR(W8l,function(M){w[M]&&(O[M]=w[M])});
return p3P(g,O)};
mHQ=function(g,r){r.method="POST";r.postParams||(r.postParams={});return _.Dx(g,r)};
cxP=function(g,r){var E=_.Ca("XSRF_FIELD_NAME"),B;r.headers&&(B=r.headers["Content-Type"]);return!r.excludeXsrf&&(!_.Zn(g)||r.withCredentials||_.Zn(g)===document.location.hostname)&&r.method==="POST"&&(!B||B==="application/x-www-form-urlencoded")&&!(r.postParams&&r.postParams[E])};
_.Dx=function(g,r){var E=r.format||"JSON";g=ikJ(g,r);var B=L8c(g,r),w=!1,O=V8A(g,function(l){if(!w){w=!0;u&&_.uc(u);var Q=_.eUV(l),z=null,k=400<=l.status&&l.status<500,H=500<=l.status&&l.status<600;if(Q||k||H)z=hUo(g,E,l,r.convertToSafeHtml);Q&&(Q=ZkS(E,l,z));z=z||{};k=r.context||_.ED;Q?r.onSuccess&&r.onSuccess.call(k,l,z):r.onError&&r.onError.call(k,l,z);r.onFinish&&r.onFinish.call(k,l,z)}},r.method,B,r.headers,r.responseType,r.withCredentials);
B=r.timeout||0;if(r.onTimeout&&B>0){var M=r.onTimeout;var u=_.Me(function(){w||(w=!0,O.abort(),_.uc(u),M.call(r.context||_.ED,O))},B)}return O};
ikJ=function(g,r){r.includeDomain&&(g=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+g);var E=_.Ca("XSRF_FIELD_NAME");if(r=r.urlParams)r[E]&&delete r[E],g=_.La(g,r);return g};
L8c=function(g,r){var E=_.Ca("XSRF_FIELD_NAME"),B=_.Ca("XSRF_TOKEN"),w=r.postBody||"",O=r.postParams;cxP(g,r)&&(O||(O={}),O[E]=B);(_.Y("ajax_parse_query_data_only_when_filled")&&O&&Object.keys(O).length>0||O)&&typeof w==="string"&&(w=_.c0(w),_.jn.extend(w,O),w=r.postBodyFormat&&r.postBodyFormat==="JSON"?JSON.stringify(w):_.oj(w));O=w||O&&!_.jn.isEmpty(O);!yxY&&O&&r.method!=="POST"&&(yxY=!0,_.xF(Error("Lc")));return w};
hUo=function(g,r,E,B){var w=null;switch(r){case "JSON":try{var O=E.responseText}catch(M){throw B=Error("Mc"),B.params=g,_.NX(B),M;}g=E.getResponseHeader("Content-Type")||"";O&&g.indexOf("json")>=0&&(O.substring(0,5)===")]}'\n"&&(O=O.substring(5)),w=JSON.parse(O));break;case "XML":if(g=(g=E.responseXML)?v5o(g):null)w={},_.mR(g.getElementsByTagName("*"),function(M){w[M.tagName]=dHl(M)})}B&&THQ(w);
return w};
THQ=function(g){if(_.gA(g))for(var r in g)r==="html_content"||UD(r,"_html")?g[r]=Ja(g[r]):THQ(g[r])};
ZkS=function(g,r,E){if(r&&r.status===204)return!0;switch(g){case "JSON":return!!E;case "XML":return Number(E&&E.return_code)===0;case "RAW":return!0;default:return!!E}};
v5o=function(g){return g?(g=("responseXML"in g?g.responseXML:g).getElementsByTagName("root"))&&g.length>0?g[0]:null:null};
dHl=function(g){var r="";_.mR(g.childNodes,function(E){r+=E.nodeValue});
return r};
gyQ=function(g){if(g.name==="JavaException")return!0;g=g.stack;return g.includes("chrome://")||g.includes("-extension://")||g.includes("webkit-masked-url://")};
rFL=function(g){if(!g.stack)return!0;var r=!g.stack.includes("\n");return r&&g.stack.includes("ErrorType: ")||r&&g.stack.includes("Anonymous function (Unknown script")||g.stack.toLowerCase()==="not available"||g.fileName==="user-script"||g.fileName.startsWith("user-script:")?!0:!1};
_.GZ=function(g){_.f5.call(this);this.JSC$8570_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!g};
BUl=function(g,r){var E=g.length,B=0,w=function(){return g.charCodeAt(B++)};
do{var O=Eyc(w);if(O===Infinity)break;var M=O>>3;switch(O&7){case 0:O=Eyc(w);if(M===r)return O;break;case 1:if(M===r)return;B+=8;break;case 2:O=Eyc(w);if(M===r)return g.substr(B,O);B+=O;break;case 5:if(M===r)return;B+=4;break;default:return}}while(B<E)};
Eyc=function(g){var r=g(),E=r&127;if(r<128)return E;r=g();E|=(r&127)<<7;if(r<128)return E;r=g();E|=(r&127)<<14;if(r<128)return E;r=g();return r<128?E|(r&127)<<21:Infinity};
SQP=function(g,r,E,B){if(g)if(Array.isArray(g)){var w=B;for(B=0;B<g.length&&!(g[B]&&(w+=wEP(B,g[B],r,E),w>500));B++);B=w}else if(typeof g==="object")for(w in g){if(g[w]){var O=w;var M=g[w],u=r,l=E;O=typeof M!=="string"||O!=="clickTrackingParams"&&O!=="trackingParams"?0:(M=BUl(atob(M.replace(/-/g,"+").replace(/_/g,"/")),2))?wEP(O+".ve",M,u,l):0;B+=O;B+=wEP(w,g[w],r,E);if(B>500)break}}else E[r]=QX(g),B+=E[r].length;else E[r]=QX(g),B+=E[r].length;return B};
wEP=function(g,r,E,B){E+="."+g;g=QX(r);B[E]=g;return E.length+g.length};
QX=function(g){try{return(typeof g==="string"?g:String(JSON.stringify(g))).substr(0,500)}catch(r){return"unable to serialize "+typeof g+" ("+r.message+")"}};
OMl=function(g){switch(g){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}};
_.kA=function(g,r,E,B,w){_.zZ.set(g,r,{maxAge:E,path:"/",domain:B===void 0?"youtube.com":B,secure:w===void 0?!1:w})};
_.UuY=function(g,r,E){_.zZ.remove(g,r===void 0?"/":r,E===void 0?"youtube.com":E)};
_.HN=function(){if(_.Y("embeds_web_enable_cookie_detection_fix")){if(!_.ED.navigator.cookieEnabled)return!1}else if(!_.zZ.isEnabled())return!1;if(!_.zZ.isEmpty())return!0;_.Y("embeds_web_enable_cookie_detection_fix")?_.zZ.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.zZ.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.zZ.get("TESTCOOKIESENABLED")!=="1")return!1;_.zZ.remove("TESTCOOKIESENABLED");return!0};
MGA=function(){var g=_.ED.navigator;return g?g.connection:void 0};
qQl=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(g){}};
_.lYY=function(){var g=MGA();if(g){var r=upc[g.type||"unknown"]||"CONN_UNKNOWN";g=upc[g.effectiveType||"unknown"]||"CONN_UNKNOWN";r==="CONN_CELLULAR_UNKNOWN"&&g!=="CONN_UNKNOWN"&&(r=g);if(r!=="CONN_UNKNOWN")return r;if(g!=="CONN_UNKNOWN")return g}};
oyY=function(){var g=MGA();if(g!=null&&g.effectiveType)return DuY.hasOwnProperty(g.effectiveType)?DuY[g.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.YA=function(){try{return _.p3(),!0}catch(g){return!1}};
_.p3=function(g){if(_.Ca("DATASYNC_ID")!==void 0)return _.Ca("DATASYNC_ID");throw new _.Rj("Datasync ID not set",g===void 0?"unknown":g);};
_.n3=function(g){this.mechanism=g};
sr=function(g){this.mechanism=g};
f3=function(g){this.storage_=g;this.cachedIsStorageAvailable_=null};
GrQ=function(){var g=null;try{g=_.ED.localStorage||null}catch(r){}f3.call(this,g)};
QyV=function(){var g=null;try{g=_.ED.sessionStorage||null}catch(r){}f3.call(this,g)};
$A=function(g,r){this.mechanism_=g;this.JSC$8672_prefix_=r+"::"};
_.z6D=function(g){var r=new GrQ;return r.isAvailable()?g?new $A(r,g):r:null};
_.krJ=function(g){var r=new QyV;return r.isAvailable()?g?new $A(r,g):r:null};
pEX=function(){var g;return(g=HML())==null?void 0:g.get("LAST_RESULT_ENTRY_KEY",!0)};
_.bc=function(g){YQl||(_.jg?_.jg.logError(g):(_.As.push({type:"ERROR",payload:g}),_.As.length>10&&_.As.shift()))};
Js=function(g,r){YQl||(_.jg?_.jg.logEvent(g,r):(_.As.push({type:"EVENT",eventType:g,payload:r}),_.As.length>10&&_.As.shift()))};
PN=function(g){if(g.indexOf(":")>=0)throw Error("Tc");};
ts=function(g){return g.substr(0,g.indexOf(":"))||g};
syl=function(){return(R6B||nyD)&&F1("applewebkit")&&!F1("version")&&(!F1("safari")||F1("gsa/"))};
F1=function(g){var r=_.kc();return r?r.toLowerCase().indexOf(g)>=0:!1};
jyS=function(g,r,E,B){r=ts(r);var w=g instanceof Error?g:Error("Uc`"+g);if(w instanceof eg)return w;g={objectStoreNames:E,dbName:r,dbVersion:B};if(w.name==="QuotaExceededError")return new eg("QUOTA_EXCEEDED",g);if(_.WN&&w.name==="UnknownError")return new eg("QUOTA_MAYBE_EXCEEDED",g);if(w instanceof fYY)return new eg("MISSING_INDEX",Object.assign({},g,{objectStore:w.objectStore,index:w.index}));if(w.name==="InvalidStateError"&&$uY.some(function(O){return w.message.includes(O)}))return new eg("EXECUTE_TRANSACTION_ON_CLOSED_DB",
g);
if(w.name==="AbortError")return new eg("UNKNOWN_ABORT",g,w.message);w.args=[Object.assign({},g,{name:"IdbError",originalName:w.name})];w.level="WARNING";return w};
C3=function(g,r,E){var B=pEX();return new eg("IDB_NOT_SUPPORTED",{context:{caller:g,publicName:r,version:E,hasSucceededOnce:B==null?void 0:B.hasSucceededOnce}})};
AFJ=function(g){if(!g)throw Error();throw g;};
bMl=function(g){return g};
JFJ=function(g,r,E){var B=function(){try{g.removeEventListener("success",w),g.removeEventListener("error",O)}catch(M){}},w=function(){r(g.result);
B()},O=function(){E(g.error);
B()};
g.addEventListener("success",w);g.addEventListener("error",O)};
PGB=function(g){return new Promise(function(r,E){JFJ(g,r,E)})};
aj=function(g){return new K3(new xA(function(r,E){JFJ(g,r,E)}))};
tGL=function(g,r){return new K3(new xA(function(E,B){var w=function(){var O=g?r(g):null;O?O.then(function(M){g=M;w()},B):E()};
w()}))};
e6o=function(g,r,E){return new Promise(function(B,w){var O=r!==void 0?self.indexedDB.open(g,r):self.indexedDB.open(g);var M=E.blocked,u=E.blocking,l=E.terminated,Q=E.upgrade,z=E.closed,k,H=function(){k||(k=new X1(O.result,{closed:z}));return k};
O.addEventListener("upgradeneeded",function(R){try{if(R.newVersion===null)throw Error("Zc");if(O.transaction===null)throw Error("$c");R.dataLoss&&R.dataLoss!=="none"&&Js("IDB_DATA_CORRUPTED",{reason:R.dataLossMessage||"unknown reason",dbName:ts(g)});var A=H(),J=new FxQ(O.transaction);Q&&Q(A,function(e){return R.oldVersion<e&&R.newVersion>=e},J);
J.done.catch(function(e){w(e)})}catch(e){w(e)}});
O.addEventListener("success",function(){var R=O.result;u&&R.addEventListener("versionchange",function(){u(H())});
R.addEventListener("close",function(){Js("IDB_UNEXPECTEDLY_CLOSED",{dbName:ts(g),dbVersion:R.version});l&&l()});
B(H())});
O.addEventListener("error",function(){w(O.error)});
M&&O.addEventListener("blocked",function(){M()})})};
WxY=function(g,r,E){E=E===void 0?{}:E;return e6o(g,r,E)};
_.Ij=function(g,r){r=r===void 0?{}:r;var E,B,w,O;return _.q(function(M){if(M.nextAddress==1)return _.qN(M,2),E=self.indexedDB.deleteDatabase(g),B=r,(w=B.blocked)&&E.addEventListener("blocked",function(){w()}),_.D(M,PGB(E),4);
if(M.nextAddress!=2)return _.Ne(M,0);O=_.G2(M);throw jyS(O,g,"",-1);})};
KxV=function(g,r){var E;return _.q(function(B){if(B.nextAddress==1)return _.D(B,_.m0(CGS,r),2);E=B.yieldResult;return B.return(_.cN(E,["databases"],{enableRetries:!0,mode:"readwrite"},function(w){var O=w.objectStore("databases");return O.get(g.actualName).then(function(M){if(M?g.actualName!==M.actualName||g.publicName!==M.publicName||g.userIdentifier!==M.userIdentifier:1)return O.put(g).then(function(){})})}))})};
_.L3=function(g,r){var E;return _.q(function(B){if(B.nextAddress==1)return g?_.D(B,_.m0(CGS,r),2):B.return();E=B.yieldResult;return B.return(E.delete("databases",g))})};
_.xuo=function(g,r){var E,B;return _.q(function(w){return w.nextAddress==1?(E=[],_.D(w,_.m0(CGS,r),2)):w.nextAddress!=3?(B=w.yieldResult,_.D(w,_.cN(B,["databases"],{enableRetries:!0,mode:"readonly"},function(O){E.length=0;return hs(O.objectStore("databases"),{},function(M){g(M.getValue())&&E.push(M.getValue());return M.continue()})}),3)):w.return(E)})};
aYB=function(g,r){return _.xuo(function(E){return E.publicName===g&&E.userIdentifier!==void 0},r)};
IYt=function(){var g,r,E,B;return _.q(function(w){switch(w.nextAddress){case 1:g=pEX();if((r=g)==null?0:r.hasSucceededOnce)return w.return(!0);var O;if(O=XES)O=/WebKit\/([0-9]+)/.exec(_.kc()),O=!!(O&&parseInt(O[1],10)>=600);O&&(O=/WebKit\/([0-9]+)/.exec(_.kc()),O=!(O&&parseInt(O[1],10)>=602));if(O||Zx)return w.return(!1);try{if(E=self,!(E.indexedDB&&E.IDBIndex&&E.IDBKeyRange&&E.IDBObjectStore))return w.return(!1)}catch(M){return w.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return w.return(!1);
_.qN(w,2);B={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.D(w,KxV(B,NUV),4);case 4:return _.D(w,_.L3("yt-idb-test-do-not-use",NUV),5);case 5:return w.return(!0);case 2:return _.G2(w),w.return(!1)}})};
cFJ=function(){if(muX!==void 0)return muX;YQl=!0;return muX=IYt().then(function(g){YQl=!1;var r;if((r=HML())!=null&&r.expiringStorage_){var E;r={hasSucceededOnce:((E=pEX())==null?void 0:E.hasSucceededOnce)||g};var B;(B=HML())==null||B.set("LAST_RESULT_ENTRY_KEY",r,2592E3,!0)}return g})};
yX=function(){return _.XS("ytglobal.idbToken_")||void 0};
_.dM=function(){var g=yX();return g?Promise.resolve(g):cFJ().then(function(r){(r=r?NUV:void 0)&&_.vN("ytglobal.idbToken_",r);return r})};
iMB=function(g){if(!_.YA())throw g=new eg("AUTH_INVALID",{dbName:g}),_.bc(g),g;var r=_.p3();return{actualName:g+":"+r,publicName:g,userIdentifier:r}};
Lxo=function(g,r,E,B){var w,O,M,u,l,Q;return _.q(function(z){switch(z.nextAddress){case 1:return O=(w=Error().stack)!=null?w:"",_.D(z,_.dM(),2);case 2:M=z.yieldResult;if(!M)throw u=C3("openDbImpl",g,r),_.Y("ytidb_async_stack_killswitch")||(u.stack=u.stack+"\n"+O.substring(O.indexOf("\n")+1)),_.bc(u),u;PN(g);l=E?{actualName:g,publicName:g,userIdentifier:void 0}:iMB(g);_.qN(z,3);return _.D(z,KxV(l,M),5);case 5:return _.D(z,WxY(l.actualName,r,B),6);case 6:return z.return(z.yieldResult);case 3:return Q=
_.G2(z),_.qN(z,7),_.D(z,_.L3(l.actualName,M),9);case 9:_.Ne(z,8);break;case 7:_.G2(z);case 8:throw Q;}})};
VGY=function(g,r,E){E=E===void 0?{}:E;return Lxo(g,r,!1,E)};
h6B=function(g,r,E){E=E===void 0?{}:E;return Lxo(g,r,!0,E)};
ZMl=function(g,r){r=r===void 0?{}:r;var E,B;return _.q(function(w){if(w.nextAddress==1)return _.D(w,_.dM(),2);if(w.nextAddress!=3){E=w.yieldResult;if(!E)return w.return();PN(g);B=iMB(g);return _.D(w,_.Ij(B.actualName,r),3)}return _.D(w,_.L3(B.actualName,E),0)})};
yFJ=function(g,r,E){g=g.map(function(B){return _.q(function(w){return w.nextAddress==1?_.D(w,_.Ij(B.actualName,r),2):_.D(w,_.L3(B.actualName,E),0)})});
return Promise.all(g).then(function(){})};
vyP=function(g){var r=r===void 0?{}:r;var E,B;return _.q(function(w){if(w.nextAddress==1)return _.D(w,_.dM(),2);if(w.nextAddress!=3){E=w.yieldResult;if(!E)return w.return();PN(g);return _.D(w,aYB(g,E),3)}B=w.yieldResult;return _.D(w,yFJ(B,r,E),0)})};
duB=function(g,r){r=r===void 0?{}:r;var E;return _.q(function(B){if(B.nextAddress==1)return _.D(B,_.dM(),2);if(B.nextAddress!=3){E=B.yieldResult;if(!E)return B.return();PN(g);return _.D(B,_.Ij(g,r),3)}return _.D(B,_.L3(g,E),0)})};
TZ=function(g,r){return TUV(g,r)};
rgV=function(g){return _.m0(ggQ(),g)};
EgS=function(g,r,E,B){var w,O,M;return _.q(function(u){switch(u.nextAddress){case 1:return w={config:g,hashData:r,timestamp:B!==void 0?B:(0,_.g2)()},_.D(u,rgV(E),2);case 2:return O=u.yieldResult,_.D(u,O.clear("hotConfigStore"),3);case 3:return _.D(u,O.put("hotConfigStore",w),4);case 4:return M=u.yieldResult,u.return(M)}})};
BXL=function(g,r,E,B,w){var O,M,u;return _.q(function(l){switch(l.nextAddress){case 1:return O={config:g,hashData:r,configData:E,timestamp:w!==void 0?w:(0,_.g2)()},_.D(l,rgV(B),2);case 2:return M=l.yieldResult,_.D(l,M.clear("coldConfigStore"),3);case 3:return _.D(l,M.put("coldConfigStore",O),4);case 4:return u=l.yieldResult,l.return(u)}})};
wkL=function(g){var r,E;return _.q(function(B){return B.nextAddress==1?_.D(B,rgV(g),2):B.nextAddress!=3?(r=B.yieldResult,E=void 0,_.D(B,_.cN(r,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(w){return _.r2(w.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(O){E=O.getValue()})}),3)):B.return(E)})};
SSY=function(g){var r,E;return _.q(function(B){return B.nextAddress==1?_.D(B,rgV(g),2):B.nextAddress!=3?(r=B.yieldResult,E=void 0,_.D(B,_.cN(r,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(w){return _.r2(w.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(O){E=O.getValue()})}),3)):B.return(E)})};
Oul=function(){return _.q(function(g){return _.D(g,vyP("ytGcfConfig"),0)})};
U2o=function(){return"INNERTUBE_API_KEY"in _.eS&&"INNERTUBE_API_VERSION"in _.eS};
_.Ee=function(){return{innertubeApiKey:_.Ca("INNERTUBE_API_KEY"),innertubeApiVersion:_.Ca("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.Ca("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.Ca("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.Ca("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.Ca("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.Ca("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.Ca("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.Ca("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.Ka("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.Ka("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.Ca("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.GnD=function(g){var r={client:{hl:g.innertubeContextHostLanguage,gl:g.innertubeContextGeoLocation,clientName:g.innertubeContextClientName,clientVersion:g.innertubeContextClientVersion,configInfo:g.innertubeContextClientConfigInfo}};navigator.userAgent&&(r.client.userAgent=String(navigator.userAgent));var E=_.ED.devicePixelRatio;E&&E!=1&&(r.client.screenDensityFloat=String(E));E=JxS();E!==""&&(r.client.experimentsToken=E);E=PpQ();E.length>0&&(r.request={internalExperimentFlags:E});MhX(g,void 0,r);
qSD(void 0,r);u4S(void 0,r);l$V(g,void 0,r);D2J(void 0,r);_.Y("start_client_gcf")&&ogc(void 0,r);_.Ca("DELEGATED_SESSION_ID")&&!_.Y("pageid_as_header_web")&&(r.user={onBehalfOfUser:_.Ca("DELEGATED_SESSION_ID")});!_.Y("fill_delegate_context_in_gel_killswitch")&&(g=_.Ca("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(r.user=Object.assign({},r.user,{serializedDelegationContext:g}));g=_.Ca("INNERTUBE_CONTEXT");var B;if(_.Y("enable_persistent_device_token")&&(g==null?0:(B=g.client)==null?0:B.rolloutToken)){var w;
r.client.rolloutToken=g==null?void 0:(w=g.client)==null?void 0:w.rolloutToken}B=Object;w=B.assign;g=r.client;E={};for(var O=_.U(Object.entries(_.c0(_.Ca("DEVICE","")))),M=O.next();!M.done;M=O.next()){var u=_.U(M.value);M=u.next().value;u=u.next().value;M==="cbrand"?E.deviceMake=u:M==="cmodel"?E.deviceModel=u:M==="cbr"?E.browserName=u:M==="cbrver"?E.browserVersion=u:M==="cos"?E.osName=u:M==="cosver"?E.osVersion=u:M==="cplatform"&&(E.platform=u)}r.client=w.call(B,g,E);return r};
MhX=function(g,r,E){g=g.innertubeContextClientName;if(g==="WEB"||g==="MWEB"||g===1||g===2)if(r){E=_.zP(r,Q6A,96)||new Q6A;var B=zwP();B=Object.keys(knl).indexOf(B);B=B===-1?null:B;B!==null&&_.B8(E,3,B);_.Bu(r,96,E)}else E&&(E.client.mainAppWebInfo=(B=E.client.mainAppWebInfo)!=null?B:{},E.client.mainAppWebInfo.webDisplayMode=zwP())};
qSD=function(g,r){var E=_.XS("yt.embedded_player.embed_url");E&&(g?(r=_.zP(g,HuS,7)||new HuS,_.H$(r,4,E),_.Bu(g,7,r)):r&&(r.thirdParty={embedUrl:E}))};
u4S=function(g,r){var E;if(_.Y("web_log_memory_total_kbytes")&&((E=_.ED.navigator)==null?0:E.deviceMemory)){var B;E=(B=_.ED.navigator)==null?void 0:B.deviceMemory;g?_.w2(g,95,ev(E*1E6)):r&&(r.client.memoryTotalKbytes=""+E*1E6)}};
l$V=function(g,r,E){if(g.appInstallData)if(r){var B;E=(B=_.zP(r,SE,62))!=null?B:new SE;_.H$(E,6,g.appInstallData);_.Bu(r,62,E)}else E&&(E.client.configInfo=E.client.configInfo||{},E.client.configInfo.appInstallData=g.appInstallData)};
D2J=function(g,r){var E=_.lYY();E&&(g?_.B8(g,61,pkY[E]):r&&(r.client.connectionType=E));_.Y("web_log_effective_connection_type")&&(E=oyY())&&(g?_.B8(g,94,YSS[E]):r&&(r.client.effectiveConnectionType=E))};
_.s6c=function(g,r,E){E=E===void 0?{}:E;var B={};_.Ca("EOM_VISITOR_DATA")?B={"X-Goog-EOM-Visitor-Id":_.Ca("EOM_VISITOR_DATA")}:B={"X-Goog-Visitor-Id":E.visitorData||_.Ca("VISITOR_DATA","")};if(r&&r.includes("www.youtube-nocookie.com"))return B;r=E.authorization||_.Ca("AUTHORIZATION");r||(g?r="Bearer "+_.XS("gapi.auth.getToken")().access_token:(Rwo.instance||(Rwo.instance=new Rwo),g=ngY(),_.Y("pageid_as_header_web")||delete g["X-Goog-PageId"],B=Object.assign({},B,g)));r&&(B.Authorization=r);return B};
ogc=function(g,r){var E=f$l();if(E){var B=E.coldConfigData,w=E.coldHashData;E=E.hotHashData;if(g){var O;r=(O=_.zP(g,SE,62))!=null?O:new SE;B=_.H$(r,1,B);_.H$(B,3,w).setHotHashData(E);_.Bu(g,62,r)}else r&&(r.client.configInfo=r.client.configInfo||{},B&&(r.client.configInfo.coldConfigData=B),w&&(r.client.configInfo.coldHashData=w),E&&(r.client.configInfo.hotHashData=E))}};
Oe=function(g){for(var r=g.length;--r>=0;)g[r]=0};
$2t=function(g,r,E,B,w){this.static_tree=g;this.extra_bits=r;this.extra_base=E;this.elems=B;this.max_length=w;this.has_stree=g&&g.length};
j6B=function(g,r){this.dyn_tree=g;this.max_code=0;this.stat_desc=r};
Ue=function(g,r){g.pending_buf[g.pending++]=r&255;g.pending_buf[g.pending++]=r>>>8&255};
M_=function(g,r,E){g.bi_valid>16-E?(g.bi_buf|=r<<g.bi_valid&65535,Ue(g,g.bi_buf),g.bi_buf=r>>16-g.bi_valid,g.bi_valid+=E-16):(g.bi_buf|=r<<g.bi_valid&65535,g.bi_valid+=E)};
q_=function(g,r,E){M_(g,E[r*2],E[r*2+1])};
AgX=function(g,r){var E=0;do E|=g&1,g>>>=1,E<<=1;while(--r>0);return E>>>1};
bul=function(g,r,E){var B=Array(16),w=0,O;for(O=1;O<=15;O++)B[O]=w=w+E[O-1]<<1;for(E=0;E<=r;E++)w=g[E*2+1],w!==0&&(g[E*2]=AgX(B[w]++,w))};
JgD=function(g){var r;for(r=0;r<286;r++)g.dyn_ltree[r*2]=0;for(r=0;r<30;r++)g.dyn_dtree[r*2]=0;for(r=0;r<19;r++)g.bl_tree[r*2]=0;g.dyn_ltree[512]=1;g.opt_len=g.static_len=0;g.last_lit=g.matches=0};
PqY=function(g){g.bi_valid>8?Ue(g,g.bi_buf):g.bi_valid>0&&(g.pending_buf[g.pending++]=g.bi_buf);g.bi_buf=0;g.bi_valid=0};
thP=function(g,r,E){PqY(g);Ue(g,E);Ue(g,~E);ud.arraySet(g.pending_buf,g.window,r,E,g.pending);g.pending+=E};
FZQ=function(g,r,E,B){var w=r*2,O=E*2;return g[w]<g[O]||g[w]===g[O]&&B[r]<=B[E]};
ewL=function(g,r,E){for(var B=g.heap[E],w=E<<1;w<=g.heap_len;){w<g.heap_len&&FZQ(r,g.heap[w+1],g.heap[w],g.depth)&&w++;if(FZQ(r,B,g.heap[w],g.depth))break;g.heap[E]=g.heap[w];E=w;w<<=1}g.heap[E]=B};
a$o=function(g,r,E){var B=0;if(g.last_lit!==0){do{var w=g.pending_buf[g.d_buf+B*2]<<8|g.pending_buf[g.d_buf+B*2+1];var O=g.pending_buf[g.l_buf+B];B++;if(w===0)q_(g,O,r);else{var M=ld[O];q_(g,M+256+1,r);var u=WZP[M];u!==0&&(O-=CqY[M],M_(g,O,u));w--;M=w<256?DH[w]:DH[256+(w>>>7)];q_(g,M,E);u=KZD[M];u!==0&&(w-=x2D[M],M_(g,w,u))}}while(B<g.last_lit)}q_(g,256,r)};
XkS=function(g,r){var E=r.dyn_tree,B=r.stat_desc.static_tree,w=r.stat_desc.has_stree,O=r.stat_desc.elems,M,u=-1;g.heap_len=0;g.heap_max=573;for(M=0;M<O;M++)E[M*2]!==0?(g.heap[++g.heap_len]=u=M,g.depth[M]=0):E[M*2+1]=0;for(;g.heap_len<2;){var l=g.heap[++g.heap_len]=u<2?++u:0;E[l*2]=1;g.depth[l]=0;g.opt_len--;w&&(g.static_len-=B[l*2+1])}r.max_code=u;for(M=g.heap_len>>1;M>=1;M--)ewL(g,E,M);l=O;do M=g.heap[1],g.heap[1]=g.heap[g.heap_len--],ewL(g,E,1),B=g.heap[1],g.heap[--g.heap_max]=M,g.heap[--g.heap_max]=
B,E[l*2]=E[M*2]+E[B*2],g.depth[l]=(g.depth[M]>=g.depth[B]?g.depth[M]:g.depth[B])+1,E[M*2+1]=E[B*2+1]=l,g.heap[1]=l++,ewL(g,E,1);while(g.heap_len>=2);g.heap[--g.heap_max]=g.heap[1];M=r.dyn_tree;l=r.max_code;B=r.stat_desc.static_tree;w=r.stat_desc.has_stree;O=r.stat_desc.extra_bits;var Q=r.stat_desc.extra_base,z=r.stat_desc.max_length,k,H=0;for(k=0;k<=15;k++)g.bl_count[k]=0;M[g.heap[g.heap_max]*2+1]=0;for(r=g.heap_max+1;r<573;r++){var R=g.heap[r];k=M[M[R*2+1]*2+1]+1;k>z&&(k=z,H++);M[R*2+1]=k;if(!(R>
l)){g.bl_count[k]++;var A=0;R>=Q&&(A=O[R-Q]);var J=M[R*2];g.opt_len+=J*(k+A);w&&(g.static_len+=J*(B[R*2+1]+A))}}if(H!==0){do{for(k=z-1;g.bl_count[k]===0;)k--;g.bl_count[k]--;g.bl_count[k+1]+=2;g.bl_count[z]--;H-=2}while(H>0);for(k=z;k!==0;k--)for(R=g.bl_count[k];R!==0;)B=g.heap[--r],B>l||(M[B*2+1]!==k&&(g.opt_len+=(k-M[B*2+1])*M[B*2],M[B*2+1]=k),R--)}bul(E,u,g.bl_count)};
NXY=function(g,r,E){var B,w=-1,O=r[1],M=0,u=7,l=4;O===0&&(u=138,l=3);r[(E+1)*2+1]=65535;for(B=0;B<=E;B++){var Q=O;O=r[(B+1)*2+1];++M<u&&Q===O||(M<l?g.bl_tree[Q*2]+=M:Q!==0?(Q!==w&&g.bl_tree[Q*2]++,g.bl_tree[32]++):M<=10?g.bl_tree[34]++:g.bl_tree[36]++,M=0,w=Q,O===0?(u=138,l=3):Q===O?(u=6,l=3):(u=7,l=4))}};
I$D=function(g,r,E){var B,w=-1,O=r[1],M=0,u=7,l=4;O===0&&(u=138,l=3);for(B=0;B<=E;B++){var Q=O;O=r[(B+1)*2+1];if(!(++M<u&&Q===O)){if(M<l){do q_(g,Q,g.bl_tree);while(--M!==0)}else Q!==0?(Q!==w&&(q_(g,Q,g.bl_tree),M--),q_(g,16,g.bl_tree),M_(g,M-3,2)):M<=10?(q_(g,17,g.bl_tree),M_(g,M-3,3)):(q_(g,18,g.bl_tree),M_(g,M-11,7));M=0;w=Q;O===0?(u=138,l=3):Q===O?(u=6,l=3):(u=7,l=4)}}};
m2o=function(g){var r=4093624447,E;for(E=0;E<=31;E++,r>>>=1)if(r&1&&g.dyn_ltree[E*2]!==0)return 0;if(g.dyn_ltree[18]!==0||g.dyn_ltree[20]!==0||g.dyn_ltree[26]!==0)return 1;for(E=32;E<256;E++)if(g.dyn_ltree[E*2]!==0)return 1;return 0};
oT=function(g,r,E){g.pending_buf[g.d_buf+g.last_lit*2]=r>>>8&255;g.pending_buf[g.d_buf+g.last_lit*2+1]=r&255;g.pending_buf[g.l_buf+g.last_lit]=E&255;g.last_lit++;r===0?g.dyn_ltree[E*2]++:(g.matches++,r--,g.dyn_ltree[(ld[E]+256+1)*2]++,g.dyn_dtree[(r<256?DH[r]:DH[256+(r>>>7)])*2]++);return g.last_lit===g.lit_bufsize-1};
Q2=function(g,r){g.msg=Gj[r];return r};
zj=function(g){for(var r=g.length;--r>=0;)g[r]=0};
kR=function(g){var r=g.state,E=r.pending;E>g.avail_out&&(E=g.avail_out);E!==0&&(ud.arraySet(g.output,r.pending_buf,r.pending_out,E,g.next_out),g.next_out+=E,r.pending_out+=E,g.total_out+=E,g.avail_out-=E,r.pending-=E,r.pending===0&&(r.pending_out=0))};
YR=function(g,r){var E=g.block_start>=0?g.block_start:-1,B=g.strstart-g.block_start,w=0;if(g.level>0){g.strm.data_type===2&&(g.strm.data_type=m2o(g));XkS(g,g.l_desc);XkS(g,g.d_desc);NXY(g,g.dyn_ltree,g.l_desc.max_code);NXY(g,g.dyn_dtree,g.d_desc.max_code);XkS(g,g.bl_desc);for(w=18;w>=3&&g.bl_tree[cgY[w]*2+1]===0;w--);g.opt_len+=3*(w+1)+5+5+4;var O=g.opt_len+3+7>>>3;var M=g.static_len+3+7>>>3;M<=O&&(O=M)}else O=M=B+5;if(B+4<=O&&E!==-1)M_(g,r?1:0,3),thP(g,E,B);else if(g.strategy===4||M===O)M_(g,2+(r?
1:0),3),a$o(g,H8,p9);else{M_(g,4+(r?1:0),3);E=g.l_desc.max_code+1;B=g.d_desc.max_code+1;w+=1;M_(g,E-257,5);M_(g,B-1,5);M_(g,w-4,4);for(O=0;O<w;O++)M_(g,g.bl_tree[cgY[O]*2+1],3);I$D(g,g.dyn_ltree,E-1);I$D(g,g.dyn_dtree,B-1);a$o(g,g.dyn_ltree,g.dyn_dtree)}JgD(g);r&&PqY(g);g.block_start=g.strstart;kR(g.strm)};
RT=function(g,r){g.pending_buf[g.pending++]=r};
n9=function(g,r){g.pending_buf[g.pending++]=r>>>8&255;g.pending_buf[g.pending++]=r&255};
iuS=function(g,r){var E=g.max_chain_length,B=g.strstart,w=g.prev_length,O=g.nice_match,M=g.strstart>g.w_size-262?g.strstart-(g.w_size-262):0,u=g.window,l=g.w_mask,Q=g.prev,z=g.strstart+258,k=u[B+w-1],H=u[B+w];g.prev_length>=g.good_match&&(E>>=2);O>g.lookahead&&(O=g.lookahead);do{var R=r;if(u[R+w]===H&&u[R+w-1]===k&&u[R]===u[B]&&u[++R]===u[B+1]){B+=2;for(R++;u[++B]===u[++R]&&u[++B]===u[++R]&&u[++B]===u[++R]&&u[++B]===u[++R]&&u[++B]===u[++R]&&u[++B]===u[++R]&&u[++B]===u[++R]&&u[++B]===u[++R]&&B<z;);
R=258-(z-B);B=z-258;if(R>w){g.match_start=r;w=R;if(R>=O)break;k=u[B+w-1];H=u[B+w]}}}while((r=Q[r&l])>M&&--E!==0);return w<=g.lookahead?w:g.lookahead};
jE=function(g){var r=g.w_size,E;do{var B=g.window_size-g.lookahead-g.strstart;if(g.strstart>=r+(r-262)){ud.arraySet(g.window,g.window,r,r,0);g.match_start-=r;g.strstart-=r;g.block_start-=r;var w=E=g.hash_size;do{var O=g.head[--w];g.head[w]=O>=r?O-r:0}while(--E);w=E=r;do O=g.prev[--w],g.prev[w]=O>=r?O-r:0;while(--E);B+=r}if(g.strm.avail_in===0)break;w=g.strm;E=g.window;O=g.strstart+g.lookahead;var M=w.avail_in;M>B&&(M=B);M===0?E=0:(w.avail_in-=M,ud.arraySet(E,w.input,w.next_in,M,O),w.state.wrap===
1?w.adler=LZS(w.adler,E,M,O):w.state.wrap===2&&(w.adler=se(w.adler,E,M,O)),w.next_in+=M,w.total_in+=M,E=M);g.lookahead+=E;if(g.lookahead+g.insert>=3)for(B=g.strstart-g.insert,g.ins_h=g.window[B],g.ins_h=(g.ins_h<<g.hash_shift^g.window[B+1])&g.hash_mask;g.insert&&!(g.ins_h=(g.ins_h<<g.hash_shift^g.window[B+3-1])&g.hash_mask,g.prev[B&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=B,B++,g.insert--,g.lookahead+g.insert<3););}while(g.lookahead<262&&g.strm.avail_in!==0)};
VhV=function(g,r){for(var E;;){if(g.lookahead<262){jE(g);if(g.lookahead<262&&r===0)return 1;if(g.lookahead===0)break}E=0;g.lookahead>=3&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+3-1])&g.hash_mask,E=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart);E!==0&&g.strstart-E<=g.w_size-262&&(g.match_length=iuS(g,E));if(g.match_length>=3)if(E=oT(g,g.strstart-g.match_start,g.match_length-3),g.lookahead-=g.match_length,g.match_length<=g.max_lazy_match&&g.lookahead>=3){g.match_length--;
do g.strstart++,g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+3-1])&g.hash_mask,g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart;while(--g.match_length!==0);g.strstart++}else g.strstart+=g.match_length,g.match_length=0,g.ins_h=g.window[g.strstart],g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+1])&g.hash_mask;else E=oT(g,0,g.window[g.strstart]),g.lookahead--,g.strstart++;if(E&&(YR(g,!1),g.strm.avail_out===0))return 1}g.insert=g.strstart<2?g.strstart:2;return r===4?(YR(g,
!0),g.strm.avail_out===0?3:4):g.last_lit&&(YR(g,!1),g.strm.avail_out===0)?1:2};
Ap=function(g,r){for(var E,B;;){if(g.lookahead<262){jE(g);if(g.lookahead<262&&r===0)return 1;if(g.lookahead===0)break}E=0;g.lookahead>=3&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+3-1])&g.hash_mask,E=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart);g.prev_length=g.match_length;g.prev_match=g.match_start;g.match_length=2;E!==0&&g.prev_length<g.max_lazy_match&&g.strstart-E<=g.w_size-262&&(g.match_length=iuS(g,E),g.match_length<=5&&(g.strategy===1||g.match_length===3&&
g.strstart-g.match_start>4096)&&(g.match_length=2));if(g.prev_length>=3&&g.match_length<=g.prev_length){B=g.strstart+g.lookahead-3;E=oT(g,g.strstart-1-g.prev_match,g.prev_length-3);g.lookahead-=g.prev_length-1;g.prev_length-=2;do++g.strstart<=B&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+3-1])&g.hash_mask,g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart);while(--g.prev_length!==0);g.match_available=0;g.match_length=2;g.strstart++;if(E&&(YR(g,!1),g.strm.avail_out===0))return 1}else if(g.match_available){if((E=
oT(g,0,g.window[g.strstart-1]))&&YR(g,!1),g.strstart++,g.lookahead--,g.strm.avail_out===0)return 1}else g.match_available=1,g.strstart++,g.lookahead--}g.match_available&&(oT(g,0,g.window[g.strstart-1]),g.match_available=0);g.insert=g.strstart<2?g.strstart:2;return r===4?(YR(g,!0),g.strm.avail_out===0?3:4):g.last_lit&&(YR(g,!1),g.strm.avail_out===0)?1:2};
hwD=function(g,r){for(var E,B,w,O=g.window;;){if(g.lookahead<=258){jE(g);if(g.lookahead<=258&&r===0)return 1;if(g.lookahead===0)break}g.match_length=0;if(g.lookahead>=3&&g.strstart>0&&(B=g.strstart-1,E=O[B],E===O[++B]&&E===O[++B]&&E===O[++B])){for(w=g.strstart+258;E===O[++B]&&E===O[++B]&&E===O[++B]&&E===O[++B]&&E===O[++B]&&E===O[++B]&&E===O[++B]&&E===O[++B]&&B<w;);g.match_length=258-(w-B);g.match_length>g.lookahead&&(g.match_length=g.lookahead)}g.match_length>=3?(E=oT(g,1,g.match_length-3),g.lookahead-=
g.match_length,g.strstart+=g.match_length,g.match_length=0):(E=oT(g,0,g.window[g.strstart]),g.lookahead--,g.strstart++);if(E&&(YR(g,!1),g.strm.avail_out===0))return 1}g.insert=0;return r===4?(YR(g,!0),g.strm.avail_out===0?3:4):g.last_lit&&(YR(g,!1),g.strm.avail_out===0)?1:2};
ZuL=function(g,r){for(var E;;){if(g.lookahead===0&&(jE(g),g.lookahead===0)){if(r===0)return 1;break}g.match_length=0;E=oT(g,0,g.window[g.strstart]);g.lookahead--;g.strstart++;if(E&&(YR(g,!1),g.strm.avail_out===0))return 1}g.insert=0;return r===4?(YR(g,!0),g.strm.avail_out===0?3:4):g.last_lit&&(YR(g,!1),g.strm.avail_out===0)?1:2};
bd=function(g,r,E,B,w){this.good_length=g;this.max_lazy=r;this.nice_length=E;this.max_chain=B;this.func=w};
ygD=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 ud.Buf16(1146);this.dyn_dtree=new ud.Buf16(122);this.bl_tree=new ud.Buf16(78);zj(this.dyn_ltree);zj(this.dyn_dtree);zj(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new ud.Buf16(16);this.heap=new ud.Buf16(573);zj(this.heap);this.heap_max=this.heap_len=0;this.depth=new ud.Buf16(573);zj(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};
vgD=function(g,r){if(!g||!g.state||r>5||r<0)return g?Q2(g,-2):-2;var E=g.state;if(!g.output||!g.input&&g.avail_in!==0||E.status===666&&r!==4)return Q2(g,g.avail_out===0?-5:-2);E.strm=g;var B=E.last_flush;E.last_flush=r;if(E.status===42)if(E.wrap===2)g.adler=0,RT(E,31),RT(E,139),RT(E,8),E.gzhead?(RT(E,(E.gzhead.text?1:0)+(E.gzhead.hcrc?2:0)+(E.gzhead.extra?4:0)+(E.gzhead.name?8:0)+(E.gzhead.comment?16:0)),RT(E,E.gzhead.time&255),RT(E,E.gzhead.time>>8&255),RT(E,E.gzhead.time>>16&255),RT(E,E.gzhead.time>>
24&255),RT(E,E.level===9?2:E.strategy>=2||E.level<2?4:0),RT(E,E.gzhead.os&255),E.gzhead.extra&&E.gzhead.extra.length&&(RT(E,E.gzhead.extra.length&255),RT(E,E.gzhead.extra.length>>8&255)),E.gzhead.hcrc&&(g.adler=se(g.adler,E.pending_buf,E.pending,0)),E.gzindex=0,E.status=69):(RT(E,0),RT(E,0),RT(E,0),RT(E,0),RT(E,0),RT(E,E.level===9?2:E.strategy>=2||E.level<2?4:0),RT(E,3),E.status=113);else{var w=8+(E.w_bits-8<<4)<<8;w|=(E.strategy>=2||E.level<2?0:E.level<6?1:E.level===6?2:3)<<6;E.strstart!==0&&(w|=
32);E.status=113;n9(E,w+(31-w%31));E.strstart!==0&&(n9(E,g.adler>>>16),n9(E,g.adler&65535));g.adler=1}if(E.status===69)if(E.gzhead.extra){for(w=E.pending;E.gzindex<(E.gzhead.extra.length&65535)&&(E.pending!==E.pending_buf_size||(E.gzhead.hcrc&&E.pending>w&&(g.adler=se(g.adler,E.pending_buf,E.pending-w,w)),kR(g),w=E.pending,E.pending!==E.pending_buf_size));)RT(E,E.gzhead.extra[E.gzindex]&255),E.gzindex++;E.gzhead.hcrc&&E.pending>w&&(g.adler=se(g.adler,E.pending_buf,E.pending-w,w));E.gzindex===E.gzhead.extra.length&&
(E.gzindex=0,E.status=73)}else E.status=73;if(E.status===73)if(E.gzhead.name){w=E.pending;do{if(E.pending===E.pending_buf_size&&(E.gzhead.hcrc&&E.pending>w&&(g.adler=se(g.adler,E.pending_buf,E.pending-w,w)),kR(g),w=E.pending,E.pending===E.pending_buf_size)){var O=1;break}O=E.gzindex<E.gzhead.name.length?E.gzhead.name.charCodeAt(E.gzindex++)&255:0;RT(E,O)}while(O!==0);E.gzhead.hcrc&&E.pending>w&&(g.adler=se(g.adler,E.pending_buf,E.pending-w,w));O===0&&(E.gzindex=0,E.status=91)}else E.status=91;if(E.status===
91)if(E.gzhead.comment){w=E.pending;do{if(E.pending===E.pending_buf_size&&(E.gzhead.hcrc&&E.pending>w&&(g.adler=se(g.adler,E.pending_buf,E.pending-w,w)),kR(g),w=E.pending,E.pending===E.pending_buf_size)){O=1;break}O=E.gzindex<E.gzhead.comment.length?E.gzhead.comment.charCodeAt(E.gzindex++)&255:0;RT(E,O)}while(O!==0);E.gzhead.hcrc&&E.pending>w&&(g.adler=se(g.adler,E.pending_buf,E.pending-w,w));O===0&&(E.status=103)}else E.status=103;E.status===103&&(E.gzhead.hcrc?(E.pending+2>E.pending_buf_size&&kR(g),
E.pending+2<=E.pending_buf_size&&(RT(E,g.adler&255),RT(E,g.adler>>8&255),g.adler=0,E.status=113)):E.status=113);if(E.pending!==0){if(kR(g),g.avail_out===0)return E.last_flush=-1,0}else if(g.avail_in===0&&(r<<1)-(r>4?9:0)<=(B<<1)-(B>4?9:0)&&r!==4)return Q2(g,-5);if(E.status===666&&g.avail_in!==0)return Q2(g,-5);if(g.avail_in!==0||E.lookahead!==0||r!==0&&E.status!==666){B=E.strategy===2?ZuL(E,r):E.strategy===3?hwD(E,r):Jp[E.level].func(E,r);if(B===3||B===4)E.status=666;if(B===1||B===3)return g.avail_out===
0&&(E.last_flush=-1),0;if(B===2&&(r===1?(M_(E,2,3),q_(E,256,H8),E.bi_valid===16?(Ue(E,E.bi_buf),E.bi_buf=0,E.bi_valid=0):E.bi_valid>=8&&(E.pending_buf[E.pending++]=E.bi_buf&255,E.bi_buf>>=8,E.bi_valid-=8)):r!==5&&(M_(E,0,3),thP(E,0,0),r===3&&(zj(E.head),E.lookahead===0&&(E.strstart=0,E.block_start=0,E.insert=0))),kR(g),g.avail_out===0))return E.last_flush=-1,0}if(r!==4)return 0;if(E.wrap<=0)return 1;E.wrap===2?(RT(E,g.adler&255),RT(E,g.adler>>8&255),RT(E,g.adler>>16&255),RT(E,g.adler>>24&255),RT(E,
g.total_in&255),RT(E,g.total_in>>8&255),RT(E,g.total_in>>16&255),RT(E,g.total_in>>24&255)):(n9(E,g.adler>>>16),n9(E,g.adler&65535));kR(g);E.wrap>0&&(E.wrap=-E.wrap);return E.pending!==0?0:1};
d2Y=function(g){if(!(this instanceof d2Y))return new d2Y(g);g=this.options=ud.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},g||{});g.raw&&g.windowBits>0?g.windowBits=-g.windowBits:g.gzip&&g.windowBits>0&&g.windowBits<16&&(g.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new TXP;this.strm.avail_out=0;var r=this.strm;var E=g.level,B=g.method,w=g.windowBits,O=g.memLevel,M=g.strategy;if(r){var u=1;E===-1&&(E=6);w<0?(u=0,w=-w):w>15&&
(u=2,w-=16);if(O<1||O>9||B!==8||w<8||w>15||E<0||E>9||M<0||M>4)r=Q2(r,-2);else{w===8&&(w=9);var l=new ygD;r.state=l;l.strm=r;l.wrap=u;l.gzhead=null;l.w_bits=w;l.w_size=1<<l.w_bits;l.w_mask=l.w_size-1;l.hash_bits=O+7;l.hash_size=1<<l.hash_bits;l.hash_mask=l.hash_size-1;l.hash_shift=~~((l.hash_bits+3-1)/3);l.window=new ud.Buf8(l.w_size*2);l.head=new ud.Buf16(l.hash_size);l.prev=new ud.Buf16(l.w_size);l.lit_bufsize=1<<O+6;l.pending_buf_size=l.lit_bufsize*4;l.pending_buf=new ud.Buf8(l.pending_buf_size);
l.d_buf=l.lit_bufsize;l.l_buf=3*l.lit_bufsize;l.level=E;l.strategy=M;l.method=B;if(r&&r.state){r.total_in=r.total_out=0;r.data_type=2;E=r.state;E.pending=0;E.pending_out=0;E.wrap<0&&(E.wrap=-E.wrap);E.status=E.wrap?42:113;r.adler=E.wrap===2?0:1;E.last_flush=0;if(!gDB){B=Array(16);for(O=M=0;O<28;O++)for(CqY[O]=M,w=0;w<1<<WZP[O];w++)ld[M++]=O;ld[M-1]=O;for(O=M=0;O<16;O++)for(x2D[O]=M,w=0;w<1<<KZD[O];w++)DH[M++]=O;for(M>>=7;O<30;O++)for(x2D[O]=M<<7,w=0;w<1<<KZD[O]-7;w++)DH[256+M++]=O;for(w=0;w<=15;w++)B[w]=
0;for(w=0;w<=143;)H8[w*2+1]=8,w++,B[8]++;for(;w<=255;)H8[w*2+1]=9,w++,B[9]++;for(;w<=279;)H8[w*2+1]=7,w++,B[7]++;for(;w<=287;)H8[w*2+1]=8,w++,B[8]++;bul(H8,287,B);for(w=0;w<30;w++)p9[w*2+1]=5,p9[w*2]=AgX(w,5);rjl=new $2t(H8,WZP,257,286,15);EDl=new $2t(p9,KZD,0,30,15);Bzt=new $2t([],wst,0,19,7);gDB=!0}E.l_desc=new j6B(E.dyn_ltree,rjl);E.d_desc=new j6B(E.dyn_dtree,EDl);E.bl_desc=new j6B(E.bl_tree,Bzt);E.bi_buf=0;E.bi_valid=0;JgD(E);E=0}else E=Q2(r,-2);E===0&&(r=r.state,r.window_size=2*r.w_size,zj(r.head),
r.max_lazy_match=Jp[r.level].max_lazy,r.good_match=Jp[r.level].good_length,r.nice_match=Jp[r.level].nice_length,r.max_chain_length=Jp[r.level].max_chain,r.strstart=0,r.block_start=0,r.lookahead=0,r.insert=0,r.match_length=r.prev_length=2,r.match_available=0,r.ins_h=0);r=E}}else r=-2;if(r!==0)throw Error(Gj[r]);g.header&&(r=this.strm)&&r.state&&r.state.wrap===2&&(r.state.gzhead=g.header);if(g.dictionary){var Q;typeof g.dictionary==="string"?Q=S9S(g.dictionary):OfL.call(g.dictionary)==="[object ArrayBuffer]"?
Q=new Uint8Array(g.dictionary):Q=g.dictionary;g=this.strm;O=Q;M=O.length;if(g&&g.state)if(Q=g.state,r=Q.wrap,r===2||r===1&&Q.status!==42||Q.lookahead)r=-2;else{r===1&&(g.adler=LZS(g.adler,O,M,0));Q.wrap=0;M>=Q.w_size&&(r===0&&(zj(Q.head),Q.strstart=0,Q.block_start=0,Q.insert=0),E=new ud.Buf8(Q.w_size),ud.arraySet(E,O,M-Q.w_size,Q.w_size,0),O=E,M=Q.w_size);E=g.avail_in;B=g.next_in;w=g.input;g.avail_in=M;g.next_in=0;g.input=O;for(jE(Q);Q.lookahead>=3;){O=Q.strstart;M=Q.lookahead-2;do Q.ins_h=(Q.ins_h<<
Q.hash_shift^Q.window[O+3-1])&Q.hash_mask,Q.prev[O&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=O,O++;while(--M);Q.strstart=O;Q.lookahead=2;jE(Q)}Q.strstart+=Q.lookahead;Q.block_start=Q.strstart;Q.insert=Q.lookahead;Q.lookahead=0;Q.match_length=Q.prev_length=2;Q.match_available=0;g.next_in=B;g.input=w;g.avail_in=E;Q.wrap=r;r=0}else r=-2;if(r!==0)throw Error(Gj[r]);this._dict_set=!0}};
UrD=function(g,r){r=r||{};r.gzip=!0;r=new d2Y(r);r.push(g,!0);if(r.err)throw r.msg||Gj[r.err];return r.result};
q9Q=function(g,r){var E=M9S();E&&E.publish.call(E,g.toString(),g,r)};
GCc=function(g,r,E){var B=M9S();if(!B)return 0;var w=B.subscribe(g.toString(),function(O,M){var u=_.XS("ytPubsub2Pubsub2SkipSubKey");u&&u==w||(u=function(){if(ucX[w])try{if(M&&g instanceof lzS&&g!=O)try{var l=g.dataClass,Q=M;if(!Q.args||!Q.version)throw Error("bd");try{if(!l.version_){var z=new l;l.version_=z.version}var k=l.version_}catch(H){}if(!k||Q.version!=k)throw Error("cd");try{M=Reflect.construct(l,_.ZQ(Q.args))}catch(H){throw H.message="yt.pubsub2.Data.deserialize(): "+H.message,H;}}catch(H){throw H.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+g.toString()+": "+H.message,H;}r.call(E||window,M)}catch(H){_.xF(H)}},DrJ[g.toString()]?_.XS("yt.scheduler.instance")?_.F6.addLowPriorityJob(u):_.Me(u,0):u())});
ucX[w]=!0;oDS[g.toString()]||(oDS[g.toString()]=[]);oDS[g.toString()].push(w);return w};
HfB=function(){var g=QcS,r=GCc(z9Y,function(E){g.apply(void 0,arguments);kCB(r)});
return r};
kCB=function(g){var r=M9S();r&&(typeof g==="number"&&(g=[g]),_.mR(g,function(E){r.unsubscribeByKey(E);delete ucX[E]}))};
M9S=function(){return _.XS("ytPubsub2Pubsub2Instance")};
psl=function(g,r,E){E=E===void 0?{sampleRate:.1}:E;Math.random()<Math.min(.02,E.sampleRate/100)&&q9Q("meta_logging_csi_event",{timerName:g,timelineData:r})};
_.Y9A=function(g){return g?(g=g.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.XE(g):null:null};
_.eE=function(g){return g?(g=g.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.qO(g):null:null};
nDl=function(){R9L||(R9L=_.eE(_.Ca("WORKER_SERIALIZATION_URL")));return R9L||void 0};
_.fzX=function(){var g=nDl();scl||g===void 0||(scl=new Worker(_.ui(g),void 0));return scl};
_.$rP=function(){return typeof Worker==="function"&&nDl()?!0:!1};
_.Jjc=function(){if(_.$rP()&&!jct){var g=function(E){E=E.data;if(E.op==="gzippedGelBatch"){var B=AjP.get(E.key);B&&(bfB(E.gzippedBatch,B.latencyPayload,B.url,B.options,B.sendFn),AjP.delete(E.key))}},r=_.fzX();
r&&(r.addEventListener("message",g),r.onerror=function(){AjP.clear()},jct=!0)}};
Kul=function(g,r,E,B,w){w=w===void 0?!1:w;var O={startTime:(0,_.g2)(),ticks:{},infos:{}};if(W8)try{var M=P1B(r);if(M!=null&&(M>t9Y||M<FuP))B(g,E);else{if(_.Y("gzip_gel_with_worker")&&(_.Y("initial_gzip_use_main_thread")&&!e9L||!_.Y("initial_gzip_use_main_thread"))){jct||_.Jjc();var u=_.fzX();if(u&&!w){AjP.set(WuJ,{latencyPayload:O,url:g,options:E,sendFn:B});u.postMessage({op:"gelBatchToGzip",serializedBatch:r,key:WuJ});WuJ++;return}}var l=UrD(C1J(r));bfB(l,O,g,E,B)}}catch(Q){_.NX(Q),B(g,E)}else B(g,
E)};
bfB=function(g,r,E,B,w){e9L=!1;var O=(0,_.g2)();r.ticks.gelc=O;C9++;_.Y("disable_compression_due_to_performance_degredation")&&O-r.startTime>=xrL&&(azX++,_.Y("abandon_compression_after_N_slow_zips")?C9===_.wM("compression_disable_point")&&azX>Xso&&(W8=!1):W8=!1);Nzl(r);B.headers||(B.headers={});B.headers["Content-Encoding"]="gzip";B.postBody=g;B.postParams=void 0;w(E,B)};
IzS=function(g){var r=r===void 0?!1:r;var E=E===void 0?!1:E;var B=(0,_.g2)(),w={startTime:B,ticks:{},infos:{}},O=r?_.XS("yt.logging.gzipForFetch",!1):!0;if(W8&&O){if(!g.body)return g;try{var M=E?g.body:typeof g.body==="string"?g.body:JSON.stringify(g.body);O=M;if(!E&&typeof M==="string"){var u=P1B(M);if(u!=null&&(u>t9Y||u<FuP))return g;E=r?{level:1}:void 0;O=UrD(C1J(M),E);var l=(0,_.g2)();w.ticks.gelc=l;if(r){C9++;if((_.Y("disable_compression_due_to_performance_degredation")||_.Y("disable_compression_due_to_performance_degradation_lr"))&&
l-B>=xrL)if(azX++,_.Y("abandon_compression_after_N_slow_zips")||_.Y("abandon_compression_after_N_slow_zips_lr")){r=azX/C9;var Q=Xso/_.wM("compression_disable_point");C9>0&&C9%_.wM("compression_disable_point")===0&&r>=Q&&(W8=!1)}else W8=!1;Nzl(w)}}g.headers=Object.assign({},{"Content-Encoding":"gzip"},g.headers||{});g.body=O;return g}catch(z){return _.NX(z),g}}else return g};
P1B=function(g){try{return(new Blob(g.split(""))).size}catch(r){return _.NX(r),null}};
Nzl=function(g){_.Y("gel_compression_csi_killswitch")||!_.Y("log_gel_compression_latency")&&!_.Y("log_gel_compression_latency_lr")||psl("gel_compression",g,{sampleRate:.1})};
mrl=function(){this.blockSize=-1};
K9=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var g=1;g<this.blockSize;++g)this.pad_[g]=0;this.total_=this.inbuf_=0;this.reset()};
ifX=function(g){g=Object.assign({},g);delete g.Authorization;var r=_.cjB();if(r){var E=new K9;E.update(_.Ca("INNERTUBE_API_KEY"));E.update(r);g.hash=_.gk(E.digest(),3)}return g};
aT=function(){LuQ||(LuQ=new _.xR("yt.innertube"));return LuQ};
V9t=function(g,r,E,B){if(B)return null;B=aT().get("nextId",!0)||1;var w=aT().get("requests",!0)||{};w[B]={method:g,request:r,authState:ifX(E),requestTime:Math.round((0,_.g2)())};aT().set("nextId",B+1,86400,!0);aT().set("requests",w,86400,!0);return B};
h9c=function(g){var r=aT().get("requests",!0)||{};delete r[g];aT().set("requests",r,86400,!0)};
yjl=function(g){var r=aT().get("requests",!0);if(r){for(var E in r){var B=r[E];if(!(Math.round((0,_.g2)())-B.requestTime<6E4)){var w=B.authState,O=ifX(_.s6c(!1));_.jn.equals(w,O)&&(w=B.request,"requestTimeMs"in w&&(w.requestTimeMs=Math.round((0,_.g2)())),ZfD(g,B.method,w,{}));delete r[E]}}aT().set("requests",r,86400,!0)}};
vDQ=function(g){var r;return(g=g==null?void 0:(r=g.error)==null?void 0:r.code)&&g>=400&&g<=599?!1:!0};
drP=function(g){var r;g=g==null?void 0:(r=g.error)==null?void 0:r.code;return!(g!==400&&g!==415)};
gac=function(){if(Tzl)return Tzl();var g={};Tzl=TZ("LogsDatabaseV2",{objectStores:(g.LogsRequestsStore={addedAtVersion:2},g),shared:!1,upgrade:function(r,E,B){E(2)&&X6(r,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});E(3);E(5)&&(B=B.objectStore("LogsRequestsStore"),B.JSC$8731_wrapped.indexNames.contains("newRequest")&&B.JSC$8731_wrapped.deleteIndex("newRequest"),N_(B,"newRequestV2",["status","interface","timestamp"]));E(7)&&r.JSC$8716_wrapped.objectStoreNames.contains("sapisid")&&r.JSC$8716_wrapped.deleteObjectStore("sapisid");
E(9)&&r.JSC$8716_wrapped.objectStoreNames.contains("SWHealthLog")&&r.JSC$8716_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return Tzl()};
IT=function(g){return _.m0(gac(),g)};
EaL=function(g,r){var E,B,w,O;return _.q(function(M){if(M.nextAddress==1)return E={startTime:(0,_.g2)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.D(M,IT(r),2);if(M.nextAddress!=3)return B=M.yieldResult,w=Object.assign({},g,{options:JSON.parse(JSON.stringify(g.options)),interface:_.Ca("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.D(M,B.put("LogsRequestsStore",w),3);O=M.yieldResult;E.ticks.tc=(0,_.g2)();rOY(E);return M.return(O)})};
BbY=function(g,r){var E,B,w,O,M,u,l,Q;return _.q(function(z){if(z.nextAddress==1)return E={startTime:(0,_.g2)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.D(z,IT(r),2);if(z.nextAddress!=3)return B=z.yieldResult,w=_.Ca("INNERTUBE_CONTEXT_CLIENT_NAME",0),O=[g,w,0],M=[g,w,(0,_.g2)()],u=IDBKeyRange.bound(O,M),l="prev",_.Y("use_fifo_for_networkless")&&(l="next"),Q=void 0,_.D(z,_.cN(B,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(k){return _.r2(k.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:u,direction:l},function(H){H.getValue()&&(Q=H.getValue(),g==="NEW"&&(Q.status="QUEUED",H.update(Q)))})}),3);
E.ticks.tc=(0,_.g2)();rOY(E);return z.return(Q)})};
wol=function(g,r){var E;return _.q(function(B){if(B.nextAddress==1)return _.D(B,IT(r),2);E=B.yieldResult;return B.return(_.cN(E,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(w){var O=w.objectStore("LogsRequestsStore");return O.get(g).then(function(M){if(M)return M.status="QUEUED",O.put(M).then(function(){return M})})}))})};
SPP=function(g,r,E,B){E=E===void 0?!0:E;var w;return _.q(function(O){if(O.nextAddress==1)return _.D(O,IT(r),2);w=O.yieldResult;return O.return(_.cN(w,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(M){var u=M.objectStore("LogsRequestsStore");return u.get(g).then(function(l){return l?(l.status="NEW",E&&(l.sendCount+=1),B!==void 0&&(l.options.compress=B),u.put(l).then(function(){return l})):K3.resolve(void 0)})}))})};
OyJ=function(g,r){var E;return _.q(function(B){if(B.nextAddress==1)return _.D(B,IT(r),2);E=B.yieldResult;return B.return(E.delete("LogsRequestsStore",g))})};
U8J=function(g){var r,E;return _.q(function(B){if(B.nextAddress==1)return _.D(B,IT(g),2);r=B.yieldResult;E=(0,_.g2)()-2592E6;return _.D(B,_.cN(r,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(w){return hs(w.objectStore("LogsRequestsStore"),{},function(O){if(O.getValue().timestamp<=E)return O.delete().then(function(){return O.continue()})})}),0)})};
MNo=function(){_.q(function(g){return _.D(g,vyP("LogsDatabaseV2"),0)})};
rOY=function(g){_.Y("nwl_csi_killswitch")||psl("networkless_performance",g,{sampleRate:1})};
_.uTt=function(g){return _.m0(qPo(),g)};
l1c=function(g){var r,E;_.q(function(B){if(B.nextAddress==1)return _.D(B,_.uTt(g),2);r=B.yieldResult;E=(0,_.g2)()-2592E6;return _.D(B,_.cN(r,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(w){return hs(w.objectStore("SWHealthLog"),{},function(O){if(O.getValue().timestamp<=E)return O.delete().then(function(){return O.continue()})})}),0)})};
D8c=function(g){var r;return _.q(function(E){if(E.nextAddress==1)return _.D(E,_.uTt(g),2);r=E.yieldResult;return _.D(E,r.clear("SWHealthLog"),0)})};
_.mS=function(g,r,E,B,w,O,M){w=w===void 0?"":w;O=O===void 0?!1:O;M=M===void 0?!1:M;if(g)if(E&&!F1("cobalt"))_.NX(new _.Rj("Legacy referrer-scrubbed ping detected")),g&&oaL(g,void 0,{scrubReferrer:!0});else if(w)asJ(g,r,"POST",w,B);else if(_.Ca("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||B||M)asJ(g,r,"GET","",B,void 0,O,M);else{b:{try{c:{var u=new GFX({url:g});if(u.urlParamValues_.dsh==="1")var l=null;else{var Q=u.urlParamValues_.ae;if(Q==="1"){var z=u.urlParamValues_.adurl;if(z)try{l={version:3,directUrl:decodeURIComponent(z),
asyncUrl:$dc(u.JSC$7564_url_,"act=1","ri=1",QJD(u))};break c}catch(A){}}l=Q==="2"?{version:4,directUrl:$dc(u.JSC$7564_url_,"dct=1","suid="+u.suid_,""),asyncUrl:$dc(u.JSC$7564_url_,"act=1","ri=1","suid="+u.suid_)}:null}}if(l){var k=_.lc(g);var H=!(!k||!k.endsWith("/aclk")||_.IO(g,"ri")!=="1");break b}}catch(A){}H=!1}if(H){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(g,"")){var R=!0;break b}}catch(A){}R=!1}R?(r&&r(),E=!0):E=!1}else E=!1;E||oaL(g,r)}};
oaL=function(g,r,E){E=E===void 0?{}:E;var B=new Image,w=""+z8c++;kFD[w]=B;B.onload=B.onerror=function(){r&&kFD[w]&&r();delete kFD[w]};
E.scrubReferrer&&(B.referrerPolicy="no-referrer");B.src=g};
c8=function(g,r){HyV(g,r==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
poo=function(g){var r;return((r=document.featurePolicy)==null?0:r.allowedFeatures().includes("attribution-reporting"))?g+"&nis=6":g+"&nis=5"};
YPP=function(g){if(!g)return!1;try{var r;if(((r=_.c0(g))==null?void 0:r.asm)==="4")return!0}catch(E){_.xF(E)}return!1};
HyV=function(g,r){r?(g=poo(g),_.mS(g,void 0,void 0,void 0,"",!0,!0)):_.mS(g)};
nal=function(){R8X||(R8X=new _.xR("yt.offline"));return R8X};
sJY=function(g){if(_.Y("offline_error_handling")){var r=nal().get("errors",!0)||{};r[g.message]={name:g.name,stack:g.stack};g.level&&(r[g.message].level=g.level);nal().set("errors",r,2592E3,!0)}};
$8B=function(g,r,E,B){B=B===void 0?!1:B;r=_.Y("web_fp_via_jspb")?Object.assign({},r):r;_.Y("use_cfr_monitor")&&f1A(g,r);if(_.Y("use_request_time_ms_header"))r.headers&&v0(g)&&(r.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.g2)())));else{var w;if((w=r.postParams)==null?0:w.requestTimeMs)r.postParams.requestTimeMs=Math.round((0,_.g2)())}E&&Object.keys(r).length===0?_.mS(g):r.compress?r.postBody?(typeof r.postBody!=="string"&&(r.postBody=JSON.stringify(r.postBody)),Kul(g,r.postBody,
r,_.Dx,B)):Kul(g,JSON.stringify(r.postParams),r,mHQ,B):_.Dx(g,r)};
jJJ=function(g,r){_.Y("use_event_time_ms_header")&&v0(g)&&(r.headers||(r.headers={}),r.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.g2)())));return r};
_.byJ=function(){AOP||(AOP=new _.id({logOfflineErrors:!0,enablePolling:!0}));return AOP};
f1A=function(g,r){var E=r.onError?r.onError:function(){};
r.onError=function(w,O){L9().requestComplete(g,!1);E(w,O)};
var B=r.onSuccess?r.onSuccess:function(){};
r.onSuccess=function(w,O){L9().requestComplete(g,!0);B(w,O)}};
_.JOD=function(){return _.Zn(document.location.toString())!=="www.youtube-nocookie.com"};
_.F$B=function(){return _.XS("ytNetworklessLoggingInitializationOptions")?_.PFY.isNwlInitialized:_.tNl};
e8D=function(g,r){if(_.Y("polymer_on_demand_shady_dom")){var E;var B=(E=g.__shady_native_firstElementChild)!=null?E:g.firstElementChild}else B=g.firstElementChild;for(;B;){if(g=r(B)?B:e8D(B,r))return g;B=B.nextElementSibling}return null};
CFJ=function(){var g=document;if("visibilityState"in g)return g.visibilityState;var r=W$l+"VisibilityState";if(r in g)return g[r]};
_.K$l=function(g,r){var E;V2(g,function(B){E=r[B];return!!E});
return E};
_.ZH=function(g){var r=x8l(g);r?r.focus(void 0):_.hp(g)};
x8l=function(g){return(g=e8D(g,function(r){return _.y2(r)?a1V(r)&&!!r.offsetParent:!1}))?g:null};
_.hp=function(g,r){g.hasAttribute("tabindex")||g.setAttribute("tabindex","-1");g.focus(r)};
XoS=function(g,r,E,B){B=B===void 0?{}:B;g.addEventListener&&(r!="mouseenter"||"onmouseenter"in document?r!="mouseleave"||"onmouseenter"in document?r=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(r="MozMousePixelScroll"):r="mouseout":r="mouseover");return _.jn.findKey(v8,function(w){var O=typeof w[4]==="boolean"&&w[4]==!!B,M=_.gA(w[4])&&_.gA(B)&&_.jn.equals(w[4],B);return!!w.length&&w[0]==g&&w[1]==r&&w[2]==E&&(O||M)})};
_.Tj=function(g,r,E,B){B=B===void 0?{}:B;if(!g||!g.addEventListener&&!g.attachEvent)return"";var w=XoS(g,r,E,B);if(w)return w;w=++NbS.count+"";var O=!(r!="mouseenter"&&r!="mouseleave"||!g.addEventListener||"onmouseenter"in document);var M=O?function(u){u=new d2(u);if(!_.CN(u.relatedTarget,function(l){return l==g},!0))return u.currentTarget=g,u.type=r,E.call(g,u)}:function(u){u=new d2(u);
u.currentTarget=g;return E.call(g,u)};
M=_.aa(M);g.addEventListener?(r=="mouseenter"&&O?r="mouseover":r=="mouseleave"&&O?r="mouseout":r=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(r="MozMousePixelScroll"),I1t()||typeof B==="boolean"?g.addEventListener(r,M,B):g.addEventListener(r,M,!!B.capture)):g.attachEvent("on"+r,M);v8[w]=[g,r,E,M,B];return w};
_.cOD=function(g,r,E){var B=B===void 0?{}:B;var w=_.Tj(g,r,function(){_.m8L(w);E.apply(g,arguments)},B)};
_.m8L=function(g){g&&(typeof g=="string"&&(g=[g]),_.mR(g,function(r){if(r in v8){var E=v8[r],B=E[0],w=E[1],O=E[3];E=E[4];B.removeEventListener?I1t()||typeof E==="boolean"?B.removeEventListener(w,O,E):B.removeEventListener(w,O,!!E.capture):B.detachEvent&&B.detachEvent("on"+w,O);delete v8[r]}}))};
gu=function(g){this.callback_=g;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(g=0;g<4;g++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.Tj(window,"mousemove",(0,_.$r)(this.onMouseMove_,this));this.timerId_=_.qe((0,_.$r)(this.checkPosition_,this),25)};
L$c=function(){var g={};var r=g.preferMobileEvents===void 0?!1:g.preferMobileEvents;g=g.enableScrollEventListener===void 0?!0:g.enableScrollEventListener;if(_.XS("_lact",window)==null){var E=parseInt(_.Ca("LACT"),10);E=isFinite(E)?Date.now()-Math.max(E,0):-1;_.vN("_lact",E,window);_.vN("_fact",E,window);E==-1&&_.ru();_.Tj(document,"keydown",_.ru);_.Tj(document,"keyup",_.ru);_.Tj(document,"mousedown",_.ru);_.Tj(document,"mouseup",_.ru);r?_.Tj(window,"touchmove",function(){iyo("touchmove",200)},{passive:!0}):
(_.Tj(window,"resize",function(){iyo("resize",200)}),g&&_.Tj(window,"scroll",function(){iyo("scroll",200)}));
new gu(function(){iyo("mouse",100)});
_.Tj(document,"touchstart",_.ru,{passive:!0});_.Tj(document,"touchend",_.ru,{passive:!0})}};
iyo=function(g,r){VNJ[g]||(VNJ[g]=!0,_.F6.addLowPriorityJob(function(){_.ru();VNJ[g]=!1},r))};
_.ru=function(){_.XS("_lact",window)==null&&L$c();var g=Date.now();_.vN("_lact",g,window);_.XS("_fact",window)==-1&&_.vN("_fact",g,window);(g=_.XS("ytglobal.ytUtilActivityCallback_"))&&g()};
_.Eq=function(){var g=_.XS("_lact",window);return g==null?-1:Math.max(Date.now()-g,0)};
_.Oq=function(g,r,E){var B=_.Bf();if(B&&r){var w=B.subscribe(g,function(){var O=arguments,M=function(){wu[w]&&r.apply&&typeof r.apply=="function"&&r.apply(E||window,O)};
try{_.h8P[g]?M():_.Me(M,0)}catch(u){_.xF(u)}},E);
wu[w]=!0;Sl[g]||(Sl[g]=[]);Sl[g].push(w);return w}return 0};
_.ZyA=function(g){var r=_.Bf();r&&(typeof g==="number"?g=[g]:typeof g==="string"&&(g=[parseInt(g,10)]),_.mR(g,function(E){r.unsubscribeByKey(E);delete wu[E]}))};
_.yOJ=function(g,r){var E=_.Bf();E&&E.publish.apply(E,arguments)};
_.d8t=function(g){var r=_.Bf();if(r)if(r.clear(g),g)vac(g);else for(var E in Sl)vac(E)};
_.Bf=function(){return _.ED.ytPubsubPubsubInstance};
vac=function(g){Sl[g]&&(g=Sl[g],_.mR(g,function(r){wu[r]&&delete wu[r]}),g.length=0)};
Tbo=function(){var g,r;return"h5vcc"in Uq&&((g=Uq.h5vcc.traceEvent)==null?0:g.traceBegin)&&((r=Uq.h5vcc.traceEvent)==null?0:r.traceEnd)?1:"performance"in Uq&&Uq.performance.mark&&Uq.performance.measure?2:0};
gkP=function(g){var r=Tbo();switch(r){case 1:Uq.h5vcc.traceEvent.traceBegin("YTLR",g);break;case 2:Uq.performance.mark(g+"-start");break;case 0:break;default:_.MM(r,"unknown trace type")}};
rCA=function(g){var r=Tbo();switch(r){case 1:Uq.h5vcc.traceEvent.traceEnd("YTLR",g);break;case 2:r=g+"-start";var E=g+"-end";Uq.performance.mark(E);Uq.performance.measure(g,r,E);break;case 0:break;default:_.MM(r,"unknown trace type")}};
EkL=function(g){var r,E;(E=(r=window).onerror)==null||E.call(r,g.message,"",0,0,g)};
BGP=function(g){if(_.Y("web_lifecycle_error_handling_killswitch"))return g();try{return g()}catch(r){EkL(r)}};
wic=function(g){return[g.auth===void 0?"undefined":g.auth,g.isJspb===void 0?"undefined":g.isJspb,g.cttAuthInfo===void 0?"undefined":g.cttAuthInfo,g.tier===void 0?"undefined":g.tier].join("/")};
_.n=function(g,r){if(g)return g[r.name]};
qb=function(){var g=_.XS("yt.logging.ims");g||(g=new Mb,_.vN("yt.logging.ims",g));return g};
okc=function(g,r){if(g.endpoint==="log_event"){SNB(g);var E=ORV(g),B=U1o(g.payload)||"",w=M3B(B),O=200;if(w){if(w.enabled===!1&&!_.Y("web_payload_policy_disabled_killswitch"))return;O=qNJ(w.tier);if(O===400){u7L(g,r);return}}u2[E]=!0;E={cttAuthInfo:E,isJspb:!1,tier:O};qb().storePayload(E,g.payload);lol(r,!1,E,D1L(B))}};
QbD=function(g,r,E){if(r.endpoint==="log_event"){SNB(void 0,r);var B=ORV(r,!0),w=M3B(g),O=200;if(w){if(w.enabled===!1&&!_.Y("web_payload_policy_disabled_killswitch"))return;O=qNJ(w.tier);if(O===400){Gbt(g,r,E);return}}u2[B]=!0;B={cttAuthInfo:B,isJspb:!0,tier:O};qb().storePayload(B,wk(r.payload));lol(E,!0,B,D1L(g))}};
lol=function(g,r,E,B){r=r===void 0?!1:r;B=B===void 0?!1:B;g&&(l2=new g);g=_.wM("tvhtml5_logging_max_batch_ads_fork")||_.wM("tvhtml5_logging_max_batch")||_.wM("web_logging_max_batch")||100;var w=(0,_.g2)(),O=zNS(r,E.tier),M=O.lastDebounceQueueFromLogTimeMs;B&&(O.useVideoStatsEndPoint=!0);B=0;E&&(B=qb().getSequenceCount(E));var u=function(){kbL({writeThenSend:!0},r,E.tier)};
B>=1E3?u():B>=g?HRl||(HRl=piJ(function(){u();HRl=void 0},0)):w-M>=10&&(YNJ(r,E.tier),O.lastDebounceQueueFromLogTimeMs=w)};
u7L=function(g,r){if(g.endpoint==="log_event"){_.Y("more_accurate_gel_parser")&&qb().storePayload({isJspb:!1},g.payload);SNB(g);var E=ORV(g),B=new Map;B.set(E,[g.payload]);var w=U1o(g.payload)||"";r&&(l2=new r);return new _.D8(function(O,M){l2&&l2.isReady()?RNS(B,l2,O,M,{bypassNetworkless:!0},!0,D1L(w)):O()})}};
Gbt=function(g,r,E){if(r.endpoint==="log_event"){SNB(void 0,r);var B=ORV(r,!0),w=new Map;w.set(B,[wk(r.payload)]);E&&(l2=new E);return new _.D8(function(O){l2&&l2.isReady()?nkl(w,l2,O,{bypassNetworkless:!0},!0,D1L(g)):O()})}};
ORV=function(g,r){var E="";if(g.dangerousLogToVisitorSession)E="visitorOnlyApprovedKey";else if(g.cttAuthInfo){if(r===void 0?0:r){r=g.cttAuthInfo.token;E=g.cttAuthInfo;var B=new sbl;E.videoId?B.setVideoId(E.videoId):E.playlistId&&oI(B,2,fot,NM(E.playlistId));$1X[r]=B}else r=g.cttAuthInfo,E={},r.videoId?E.videoId=r.videoId:r.playlistId&&(E.playlistId=r.playlistId),jbc[g.cttAuthInfo.token]=E;E=g.cttAuthInfo.token}return E};
kbL=function(g,r,E){g=g===void 0?{}:g;r=r===void 0?!1:r;new _.D8(function(B,w){var O=zNS(r,E),M=O.useVideoStatsEndPoint;O.useVideoStatsEndPoint=!1;ACV(O.queueTimer);ACV(O.queueMaxTimer);O.queueMaxTimer=0;l2&&l2.isReady()?E===void 0&&_.Y("enable_web_tiered_gel")?bRD(B,w,g,r,300,M):bRD(B,w,g,r,E,M):(YNJ(r,E),B())})};
bRD=function(g,r,E,B,w,O){var M=l2;E=E===void 0?{}:E;B=B===void 0?!1:B;w=w===void 0?200:w;O=O===void 0?!1:O;var u=new Map,l=new Map,Q={isJspb:B,cttAuthInfo:void 0,tier:w},z={isJspb:B,cttAuthInfo:void 0};if(B){r=_.U(Object.keys(u2));for(w=r.next();!w.done;w=r.next())w=w.value,l=_.Y("enable_web_tiered_gel")?qb().smartExtractMatchingEntries({keys:[Q,z],sizeLimit:1E3}):qb().extractMatchingEntries({isJspb:!0,cttAuthInfo:w}),l.length>0&&u.set(w,l),(_.Y("web_fp_via_jspb_and_json")&&E.writeThenSend||!_.Y("web_fp_via_jspb_and_json"))&&
delete u2[w];nkl(u,M,g,E,!1,O)}else{u=_.U(Object.keys(u2));for(Q=u.next();!Q.done;Q=u.next())Q=Q.value,z=_.Y("enable_web_tiered_gel")?qb().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:Q,tier:w},{isJspb:!1,cttAuthInfo:Q}],sizeLimit:1E3}):qb().extractMatchingEntries({isJspb:!1,cttAuthInfo:Q}),z.length>0&&l.set(Q,z),(_.Y("web_fp_via_jspb_and_json")&&E.writeThenSend||!_.Y("web_fp_via_jspb_and_json"))&&delete u2[Q];RNS(l,M,g,r,E,!1,O)}};
YNJ=function(g,r){g=g===void 0?!1:g;r=r===void 0?200:r;var E=function(){kbL({writeThenSend:!0},g,r)},B=zNS(g,r),w=B===JCY||B===PaB?5E3:t3X;
_.Y("web_gel_timeout_cap")&&!B.queueMaxTimer&&(w=piJ(function(){E()},w),B.queueMaxTimer=w);
ACV(B.queueTimer);w=_.Ca("LOGGING_BATCH_TIMEOUT",_.wM("web_gel_debounce_ms",1E4));_.Y("shorten_initial_gel_batch_timeout")&&FGB&&(w=eNL);w=piJ(function(){_.wM("gel_min_batch_size")>0?qb().getSequenceCount({cttAuthInfo:void 0,isJspb:g,tier:r})>=WGt&&E():E()},w);
B.queueTimer=w};
RNS=function(g,r,E,B,w,O,M){w=w===void 0?{}:w;var u=Math.round((0,_.g2)()),l=g.size,Q=CaV(M);g=_.U(g);var z=g.next();for(M={};!z.done;M={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},z=g.next()){var k=_.U(z.value);z=k.next().value;k=k.next().value;M.batchRequest=_.jn.unsafeClone({context:_.GnD(r.config_||_.Ee())});if(!_.vJ(k)&&!_.Y("throw_err_when_logevent_malformed_killswitch")){B();break}M.batchRequest.events=k;
(k=jbc[z])&&KGL(M.batchRequest,z,k);delete jbc[z];M.dangerousLogToVisitorSession=z==="visitorOnlyApprovedKey";x1V(M.batchRequest,u,M.dangerousLogToVisitorSession);aoV(w);M.onSuccess$jscomp$3=function(H){_.Y("start_client_gcf")&&_.F6.addLowPriorityJob(function(){return _.q(function(R){return _.D(R,Xit(H),0)})});
l--;l||E()};
M.networkFailures=0;M.onError$jscomp$5=function(H){return function(){H.networkFailures++;if(w.bypassNetworkless&&H.networkFailures===1)try{ZfD(r,Q,H.batchRequest,NGD({writeThenSend:!0},H.dangerousLogToVisitorSession,H.onSuccess$jscomp$3,H.onError$jscomp$5,O)),FGB=!1}catch(R){_.xF(R),B()}l--;l||E()}}(M);
try{ZfD(r,Q,M.batchRequest,NGD(w,M.dangerousLogToVisitorSession,M.onSuccess$jscomp$3,M.onError$jscomp$5,O)),FGB=!1}catch(H){_.xF(H),B()}}};
nkl=function(g,r,E,B,w,O){B=B===void 0?{}:B;var M=Math.round((0,_.g2)()),u={value:g.size},l=new Map([].concat(_.jW(g)));l=_.U(l);for(var Q=l.next();!Q.done;Q=l.next()){var z=_.U(Q.value).next().value,k=g.get(z);Q=new IoS;var H=r.config_||_.Ee(),R=new Gx,A=new m1V;_.H$(A,1,H.innertubeContextHostLanguage);_.H$(A,2,H.innertubeContextGeoLocation);_.B8(A,16,H.innertubeContextClientNameFieldNumber);_.H$(A,17,H.innertubeContextClientVersion);if(H.innertubeContextClientConfigInfo){var J=H.innertubeContextClientConfigInfo,
e=new SE;J.coldConfigData&&_.H$(e,1,J.coldConfigData);J.appInstallData&&_.H$(e,6,J.appInstallData);J.coldHashData&&_.H$(e,3,J.coldHashData);J.hotHashData&&e.setHotHashData(J.hotHashData);_.Bu(A,62,e)}(J=_.ED.devicePixelRatio)&&J!=1&&_.w2(A,65,_.qM(J));J=JxS();J!==""&&_.H$(A,54,J);J=PpQ();if(J.length>0){e=new cCA;for(var C=0;C<J.length;C++){var X=new QI;X.setKey(J[C].key);oI(X,2,iRJ,NM(J[C].value));Hf(e,15,QI,X)}_.Bu(R,5,e)}MhX(H,A);qSD(R);u4S(A);l$V(H,A);D2J(A);_.Y("start_client_gcf")&&ogc(A);_.Ca("DELEGATED_SESSION_ID")&&
!_.Y("pageid_as_header_web")&&(H=new pC,_.H$(H,3,_.Ca("DELEGATED_SESSION_ID")));!_.Y("fill_delegate_context_in_gel_killswitch")&&(J=_.Ca("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(e=_.zP(R,pC,3)||new pC,H=R,J=_.H$(e,18,J),_.Bu(H,3,J));H=A;J=_.U(Object.entries(_.c0(_.Ca("DEVICE",""))));for(e=J.next();!e.done;e=J.next())C=_.U(e.value),e=C.next().value,C=C.next().value,e==="cbrand"?_.H$(H,12,C):e==="cmodel"?_.H$(H,13,C):e==="cbr"?_.H$(H,87,C):e==="cbrver"?_.H$(H,88,C):e==="cos"?_.H$(H,18,
C):e==="cosver"?_.H$(H,19,C):e==="cplatform"&&_.B8(H,42,OMl(C));R.setClient(A);_.Bu(Q,1,R);if(A=$1X[z])a:{if(_.kr(A,YK(A,fot,1)))R=1;else if(A.getPlaylistId())R=2;else break a;_.Bu(Q,4,A);A=Q.getContext()||new Gx;H=_.zP(A,pC,3)||new pC;J=new RI;J.setToken(z);_.B8(J,1,R);Hf(H,12,RI,J);_.Bu(A,3,H)}delete $1X[z];z=z==="visitorOnlyApprovedKey";LGQ()||_.nC(Q,2,M);!z&&(R=_.Ca("EVENT_ID"))&&(A=V3l(),H=new hNL,_.H$(H,1,R),_.nC(H,2,A),_.Bu(Q,5,H));aoV(B);if(_.Y("jspb_serialize_with_worker")&&(R=_.fzX())&&
B.writeThenSend){_.ZRB.set(yCY,{client:r,resolve:E,networklessOptions:B,isIsolated:w,useVSSEndpoint:O,dangerousLogToVisitorSession:z,requestsOutstanding:u});R.postMessage({op:"gelBatchToSerialize",batchRequest:wk(Q),clientEvents:k,key:yCY});yCY++;break}if(k){R=[];for(A=0;A<k.length;A++)try{R.push(new sq(k[A]))}catch(Z){_.xF(new _.Rj("Transport failed to deserialize "+String(k[A])))}k=R}else k=[];k=_.U(k);for(R=k.next();!R.done;R=k.next())Hf(Q,3,sq,R.value);k={startTime:(0,_.g2)(),ticks:{},infos:{}};
Q=Q.serialize();k.ticks.geljspc=(0,_.g2)();_.Y("log_jspb_serialize_latency")&&psl("gel_jspb_serialize",k,{sampleRate:.1});_.vkD(Q,r,E,B,w,O,z,u)}};
_.vkD=function(g,r,E,B,w,O,M,u){B=B===void 0?{}:B;u=u===void 0?{value:0}:u;O=CaV(O);B=NGD(B,M,function(l){_.Y("start_client_gcf")&&_.F6.addLowPriorityJob(function(){return _.q(function(Q){return _.D(Q,Xit(l),0)})});
u.value--;u.value||E()},function(){u.value--;
u.value||E()},w);
B.headers["Content-Type"]="application/json+protobuf";B.postBodyFormat="JSPB";B.postBody=g;ZfD(r,O,"",B);FGB=!1};
aoV=function(g){_.Y("always_send_and_write")&&(g.writeThenSend=!1)};
NGD=function(g,r,E,B,w){g={retry:!0,onSuccess:E,onError:B,networklessOptions:g,dangerousLogToVisitorSession:r,bypassMonitoring:!!w,headers:{},postBodyFormat:"",postBody:"",compress:_.Y("compress_gel")||_.Y("compress_gel_lr")};LGQ()&&(g.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.g2)())));return g};
x1V=function(g,r,E){LGQ()||(g.requestTimeMs=String(r));_.Y("unsplit_gel_payloads_in_logs")&&(g.unsplitGelPayloadsInLogs=!0);!E&&(r=_.Ca("EVENT_ID"))&&(E=V3l(),g.serializedClientEventId={serializedEventId:r,clientCounter:String(E)})};
V3l=function(){var g=_.Ca("BATCH_CLIENT_COUNTER")||0;g||(g=Math.floor(Math.random()*65535/2));g++;g>65535&&(g=1);_.W0("BATCH_CLIENT_COUNTER",g);return g};
KGL=function(g,r,E){if(E.videoId)var B="VIDEO";else if(E.playlistId)B="PLAYLIST";else return;g.credentialTransferTokenTargetId=E;g.context=g.context||{};g.context.user=g.context.user||{};g.context.user.credentialTransferTokens=[{token:r,scope:B}]};
SNB=function(g,r){var E=_.Sg("il_payload_scraping")==="enable_il_payload_scraping";if(!_.XS("yt.logging.transport.enableScrapingForTest"))if(E)d1c=[],_.vN("yt.logging.transport.enableScrapingForTest",!0),_.vN("yt.logging.transport.scrapedPayloadsForTesting",d1c),_.vN("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.vN("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.vN("yt.logging.transport.scrapeClientEvent",!0);else return;E=_.XS("yt.logging.transport.scrapedPayloadsForTesting");var B=_.XS("yt.logging.transport.payloadToScrape");r&&(r=_.XS("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(r.payload)())&&E.push(r);r=_.XS("yt.logging.transport.scrapeClientEvent");if(B&&B.length>=1)for(var w=0;w<B.length;w++)if(g&&g.payload[B[w]])if(r)E.push(g.payload);else{var O=void 0;E.push(((O=g)==null?void 0:O.payload)[B[w]])}_.vN("yt.logging.transport.scrapedPayloadsForTesting",
E)};
LGQ=function(){return _.Y("use_request_time_ms_header")||_.Y("lr_use_request_time_ms_header")};
piJ=function(g,r){return _.Y("transport_use_scheduler")===!1?_.Me(g,r):_.Y("logging_avoid_blocking_during_navigation")||_.Y("lr_logging_avoid_blocking_during_navigation")?_.fC(_.F6,function(){if(_.TGY().currentState==="none")g();else{var E={};_.TGY().install((E.none={callback:g},E))}},r):_.fC(_.F6,g,r)};
ACV=function(g){_.Y("transport_use_scheduler")?_.F6.cancelJob(g):_.uc(g)};
Xit=function(g){var r,E,B,w,O,M,u,l,Q,z;return _.q(function(k){return k.nextAddress==1?(B=(r=g)==null?void 0:(E=r.responseContext)==null?void 0:E.globalConfigGroup,w=_.n(B,gPB),M=(O=B)==null?void 0:O.hotHashData,u=_.n(B,rMQ),Q=(l=B)==null?void 0:l.coldHashData,(z=_.rM().resolve(_.gM($K)))?M?w?_.D(k,EPX(z,M,w),2):_.D(k,EPX(z,M),2):k.jumpTo(2):k.return()):Q?u?_.D(k,BLJ(z,Q,u),0):_.D(k,BLJ(z,Q),0):k.jumpTo(0)})};
zNS=function(g,r){r=r===void 0?200:r;return g?r===300?JCY:wwA:r===300?PaB:S2S};
M3B=function(g){if(_.Y("enable_web_tiered_gel")){g=OWL[g||""];var r,E,B,w=_.rM().resolve(_.gM($K))==null?void 0:(r=UyS())==null?void 0:(E=r.loggingHotConfig)==null?void 0:(B=E.eventLoggingConfig)==null?void 0:B.payloadPolicies;if(w)for(r=0;r<w.length;r++)if(w[r].payloadNumber===g)return w[r]}};
U1o=function(g){g=Object.keys(g);g=_.U(g);for(var r=g.next();!r.done;r=g.next())if(r=r.value,OWL[r])return r};
qNJ=function(g){switch(g){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}};
D1L=function(g){return g==="gelDebuggingEvent"};
CaV=function(g){return(g===void 0?0:g)&&_.Y("vss_through_gel_video_stats")?"video_stats":"log_event"};
An=function(g,r,E,B){B=B===void 0?{}:B;var w={},O=Math.round(B.timestamp||(0,_.g2)());w.eventTimeMs=O<Number.MAX_SAFE_INTEGER?O:0;w[g]=r;g=_.Eq();w.context={lastActivityMs:String(B.timestamp||!isFinite(g)?-1:g)};B.sequenceGroup&&!_.Y("web_gel_sequence_info_killswitch")&&(g=w.context,r=B.sequenceGroup,r={index:M_D(r),groupKey:r},g.sequence=r,B.endOfSequence&&delete jl[B.sequenceGroup]);_.Y("web_tag_automated_log_events")&&(w.context.automatedLogEventSource=B.automatedLogEventSource);(B.sendIsolatedPayload?
u7L:okc)({endpoint:"log_event",payload:w,cttAuthInfo:B.cttAuthInfo,dangerousLogToVisitorSession:B.dangerousLogToVisitorSession},E)};
M_D=function(g){jl[g]=g in jl?jl[g]+1:0;return jl[g]};
_.Jn=function(g,r,E){E=E===void 0?{}:E;var B=b2;_.Ka("ytLoggingEventsDefaultDisabled",!1)&&b2===b2&&(B=null);An(g,r,B,E)};
_.Pf=function(){if(_.Y("web_fp_via_jspb")){var g=!0;g=g===void 0?!1:g;var r=q2X;q2X=[];if(r){r=_.U(r);for(var E=r.next();!E.done;E=r.next())E=E.value,g?An(E.payloadName,E.payload,b2,E.options):_.Jn(E.payloadName,E.payload,E.options)}kbL(void 0,!0);if(!_.Y("web_fp_via_jspb_and_json"))return}kbL(void 0,!1)};
uIY=function(g,r){var E;if((E=r)==null?0:E.componentStack)return r;if(g=g.componentStack)r||(r={}),r.componentStack=g;return r};
lhl=function(){_.mR(_.Ca("ERRORS")||[],function(g){_.tn.apply(null,g)});
_.W0("ERRORS",[])};
_.FR=function(g){_.tn(g)};
_.el=function(g){_.tn(g,"WARNING")};
Dyt=function(g){g instanceof Error?_.tn(g):(g=_.gA(g)?JSON.stringify(g):String(g),g=new _.Rj(g),g.name="RejectedPromiseError",_.el(g))};
oPl=function(g,r,E,B,w,O){r=r===void 0?"Unknown file":r;E=E===void 0?0:E;var M=!1,u=u3B("log_window_onerror_fraction");if(u&&Math.random()<u)M=!0;else{u=document.getElementsByTagName("script");for(var l=0,Q=u.length;l<Q;l++)if(u[l].src.indexOf("/debug-")>0){M=!0;break}}M&&(M=!1,w?M=!0:(typeof g==="string"?u=g:ErrorEvent&&g instanceof ErrorEvent?(M=!0,u=g.message,r=g.filename,E=g.lineno,B=g.colno):(u="Unknown error",r="Unknown file",E=0),w=new _.Rj(u),w.name="UnhandledWindowError",w.message=u,w.fileName=
r,w.lineNumber=E,isNaN(B)?delete w.columnNumber:w.columnNumber=B),_.Y("wiz_enable_component_stack_propagation_killswitch")||(O=uIY(w,O)),O&&_.Wf(w,O),M?_.tn(w):_.el(w))};
_.tn=function(g,r,E,B,w,O,M,u){O=O===void 0?{}:O;O.name=E||_.Ca("INNERTUBE_CONTEXT_CLIENT_NAME",1);O.version=B||_.Ca("INNERTUBE_CONTEXT_CLIENT_VERSION");E=O;r=r===void 0?"ERROR":r;M=M===void 0?!1:M;r=r===void 0?"ERROR":r;M=M===void 0?!1:M;if(g&&(g.hasOwnProperty("level")&&g.level&&(r=g.level),_.Y("console_log_js_exceptions")&&(B=[],B.push("Name: "+g.name),B.push("Message: "+g.message),g.hasOwnProperty("params")&&B.push("Error Params: "+JSON.stringify(g.params)),g.hasOwnProperty("args")&&B.push("Error args: "+
JSON.stringify(g.args)),B.push("File name: "+g.fileName),B.push("Stacktrace: "+g.stack),B=B.join("\n"),window.console.log(B,g)),!(G$l>=5))){B=[];w=_.U(Q3Q);for(O=w.next();!O.done;O=w.next()){O=O.value;try{O()&&B.push(O())}catch(e){}}B=[].concat(_.jW(zht),_.jW(B));var l=k$S(g);w=l.message||"Unknown Error";O=l.name||"UnknownError";var Q=l.stack||g.stacktrace||"Not available";if(Q.startsWith(O+": "+w)){var z=Q.split("\n");z.shift();Q=z.join("\n")}z=l.lineNumber||"Not available";l=l.fileName||"Not available";
var k=0;if(g.hasOwnProperty("args")&&g.args&&g.args.length)for(var H=0;H<g.args.length&&!(k=SQP(g.args[H],"params."+H,E,k),k>=500);H++);else if(g.hasOwnProperty("params")&&g.params){var R=g.params;if(typeof g.params==="object")for(H in R){if(R[H]){var A="params."+H,J=QX(R[H]);E[A]=J;k+=A.length+J.length;if(k>500)break}}else E.params=QX(R)}if(B.length)for(H=0;H<B.length&&!(k=SQP(B[H],"params.context."+H,E,k),k>=500);H++);navigator.vendor&&!E.hasOwnProperty("vendor")&&(E["device.vendor"]=navigator.vendor);
H={message:w,name:O,lineNumber:z,fileName:l,stack:Q,params:E,sampleWeight:1};E=Number(g.columnNumber);isNaN(E)||(H.lineNumber=H.lineNumber+":"+E);if(g.level==="IGNORED")g=0;else a:{g=HWL();E=_.U(g.messageWeights);for(B=E.next();!B.done;B=E.next())if(B=B.value,H.message&&H.message.match(B.messageRegExp)){g=B.weight;break a}g=_.U(g.callbackWeights);for(E=g.next();!E.done;E=g.next())if(E=E.value,E.callback(H)){g=E.weight;break a}g=1}H.sampleWeight=g;g=_.U(pwX);for(E=g.next();!E.done;E=g.next())if(E=
E.value,E.patternsForType[H.name])for(w=_.U(E.patternsForType[H.name]),B=w.next();!B.done;B=w.next())if(O=B.value,B=H.message.match(O.regexp)){H.params["params.error.original"]=B[0];w=O.groups;O={};for(z=0;z<w.length;z++)O[w[z]]=B[z+1],H.params["params.error."+w[z]]=B[z+1];H.message=E.messageFn(O);break}H.params||(H.params={});g=HWL();H.params["params.errorServiceSignature"]="msg="+g.messageWeights.length+"&cb="+g.callbackWeights.length;H.params["params.serviceWorker"]="false";_.ED.document&&_.ED.document.querySelectorAll&&
(H.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new CC(Y2A,"sample")).constructor!==CC&&(H.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(H);if(H.sampleWeight!==0&&!RhP.has(H.message)){if(M&&_.Y("web_enable_error_204"))nPV(r===void 0?"ERROR":r,H);else{r=r===void 0?"ERROR":r;r==="ERROR"?(s3L.publish("handleError",H),_.Y("record_app_crashed_web")&&fhJ===0&&H.sampleWeight===1&&(fhJ++,M={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.Y("report_client_error_with_app_crash_ks")||(M.systemHealth={crashData:{clientError:{logMessage:{message:H.message}}}}),_.Jn("appCrashed",M)),$yA++):r==="WARNING"&&s3L.publish("handleWarning",H);if(_.Y("kevlar_gel_error_routing")){M=r;u=u===void 0?{}:u;b:{g=_.U(j3l);for(E=g.next();!E.done;E=g.next())if(F1(E.value.toLowerCase())){g=!0;break b}g=!1}if(g)u=void 0;else{E={stackTrace:H.stack};H.fileName&&(E.filename=H.fileName);g=H.lineNumber&&H.lineNumber.split?H.lineNumber.split(":"):[];g.length!==
0&&(g.length!==1||isNaN(Number(g[0]))?g.length!==2||isNaN(Number(g[0]))||isNaN(Number(g[1]))||(E.lineNumber=Number(g[0]),E.columnNumber=Number(g[1])):E.lineNumber=Number(g[0]));g={level:"ERROR_LEVEL_UNKNOWN",message:H.message,errorClassName:H.name,sampleWeight:H.sampleWeight};M==="ERROR"?g.level="ERROR_LEVEL_ERROR":M==="WARNING"&&(g.level="ERROR_LEVEL_WARNNING");E={isObfuscated:!0,browserStackInfo:E};u.pageUrl=window.location.href;u.kvPairs=[];_.Ca("FEXP_EXPERIMENTS")&&(u.experimentIds=_.Ca("FEXP_EXPERIMENTS"));
B=_.Ca("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!u3B("web_disable_gel_stp_ecatcher_killswitch")&&B)for(w=_.U(Object.keys(B)),O=w.next();!O.done;O=w.next())O=O.value,u.kvPairs.push({key:O,value:String(B[O])});if(B=H.params)for(w=_.U(Object.keys(B)),O=w.next();!O.done;O=w.next())O=O.value,u.kvPairs.push({key:"client."+O,value:String(B[O])});B=_.Ca("SERVER_NAME");w=_.Ca("SERVER_VERSION");B&&w&&(u.kvPairs.push({key:"server.name",value:B}),u.kvPairs.push({key:"server.version",value:w}));u={errorMetadata:u,
stackTrace:E,logMessage:g}}u&&(_.Jn("clientError",u),(M==="ERROR"||_.Y("errors_flush_gel_always_killswitch"))&&_.Pf())}_.Y("suppress_error_204_logging")||nPV(r,H)}try{RhP.add(H.message)}catch(e){}G$l++}}};
nPV=function(g,r){var E=r.params||{};g={urlParams:{a:"logerror",t:"jserror",type:r.name,msg:r.message.substr(0,250),line:r.lineNumber,level:g,"client.name":E.name},postParams:{url:_.Ca("PAGE_NAME",window.location.href),file:r.fileName},method:"POST"};E.version&&(g["client.version"]=E.version);if(g.postParams){r.stack&&(g.postParams.stack=r.stack);r=_.U(Object.keys(E));for(var B=r.next();!B.done;B=r.next())B=B.value,g.postParams["client."+B]=E[B];if(E=_.Ca("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(r=
_.U(Object.keys(E)),B=r.next();!B.done;B=r.next())B=B.value,g.postParams[B]=E[B];(E=_.Ca("LAVA_VERSION"))&&(g.postParams["lava.version"]=E);E=_.Ca("SERVER_NAME");r=_.Ca("SERVER_VERSION");E&&r&&(g.postParams["server.name"]=E,g.postParams["server.version"]=r)}_.Dx(_.Ca("ECATCHER_REPORT_HOST","")+"/error_204",g)};
_.AMB=function(g,r){r=r===void 0?"ERROR":r;var E=E===void 0?{}:E;var B=_.XS("ytbin.polymer.shared.lib.tampering.info");B&&(B=B())&&(E["params.tamperingInfo"]=B.sort().join(","));_.tn(g,r,void 0,void 0,!0,E)};
_.Wf=function(g){var r=_.fI.apply(1,arguments);g.args||(g.args=[]);Array.isArray(g.args)&&g.args.push.apply(g.args,_.jW(r))};
bWJ=function(g){g.level="IGNORED"};
JMc=function(g,r){zht.push(g);r();zht.pop()};
xK=function(g,r){for(var E in r)r.hasOwnProperty(E)&&(g=_.KC(g,E,r[E]));return g};
_.PVD=function(g,r,E){E=E===void 0?!1:E;if(!g)return null;if(g.adInfoDialogEndpoint||g.backstageImageUploadEndpoint||g.confirmDialogEndpoint||g.clientActionEndpoint||g.createBackstagePostDialogEndpoint||g.createCommentReplyDialogEndpoint||g.flowEndpoint||g.guideBuilderEndpoint||g.liveChatDialogEndpoint||g.modalEndpoint||g.openPopupAction||g.shareEndpoint||g.shareEntityEndpoint||g.showLiveChatItemEndpoint||g.subscriptionManagerEndpoint||g.unlimitedCreateFamilyEndpoint||g.unlimitedFamilyFlowEndpoint||
g.updateCommentDialogEndpoint||g.updateCommentReplyDialogEndpoint||g.userFeedbackEndpoint||g.videoEditorEndpoint||g.ypcCancelSurveyEndpoint)return r=_.wM("polymer_report_client_url_requested_rate"),!E&&Math.random()<r&&_.el(new _.Rj("urlForEndpoint used on client endpoint",g)),null;var B=_.wM("polymer_report_missing_web_navigation_endpoint_rate");if(g.liveChatEndpoint||g.liveChatReplayEndpoint)B=0;if(!g.commandMetadata&&!g.clickTrackingParams&&Math.random()<B){var w={},O;for(O in g)w[O]="1";_.el(new _.Rj("Missing navigation data",
w))}w="";if(g.commandMetadata&&g.commandMetadata.webCommandMetadata&&g.commandMetadata.webCommandMetadata.url)w=g.commandMetadata.webCommandMetadata.url;else if(g.searchEndpoint)Math.random()<B&&_.el(new _.Rj("Should not manually handle search",g)),w="/results?search_query="+encodeURIComponent(g.searchEndpoint.query).replace(/%20/g,"+"),g.searchEndpoint.params&&(w+="&sp="+g.searchEndpoint.params);else if(g.watchEndpoint)Math.random()<B&&_.el(new _.Rj("Should not manually handle watch",g)),w="/watch?v="+
g.watchEndpoint.videoId,g.watchEndpoint.playlistId&&(w+="&list="+g.watchEndpoint.playlistId),g.watchEndpoint.index&&(w+="&index="+g.watchEndpoint.index),g.watchEndpoint.startTimeSeconds&&(w+="&t="+g.watchEndpoint.startTimeSeconds);else if(g.browseEndpoint)B=g.browseEndpoint.browseId,(O=g.browseEndpoint.canonicalBaseUrl)?w=O:B&&(w=B.substr(0,2),w=w==="FE"?B==="FEwhat_to_watch"?"/":B==="FEmy_videos"?"/my_videos":"/feed/"+B.substr(2):w==="VL"?"/playlist?list="+B.substr(2):"/channel/"+B),w&&g.browseEndpoint.query&&
(w=xK(w+"/search",{query:g.browseEndpoint.query})),w&&g.browseEndpoint.params&&(w=xK(w,{params:g.browseEndpoint.params}));else{if(g.urlEndpoint)return g.urlEndpoint.url;g.signInEndpoint?(w="https://accounts.google.com/ServiceLogin",B={},_.jn.extend(B,r||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),r=B):g.uploadEndpoint?w="//www.youtube.com/upload":g.liveChatEndpoint?(w=g.liveChatEndpoint,B=_.jn.clone(w),_.gA(w.continuation)&&(O=Object.keys(w.continuation)[0],
B.continuation=w.continuation[O].continuation),w=xK("/youtubei/v1/live_chat/get_live_chat",B)):g.liveChatReplayEndpoint?(w=_.jn.clone(g.liveChatReplayEndpoint),w.currentPlayerState&&(_.jn.extend(w,w.currentPlayerState),delete w.currentPlayerState),w=xK("/youtubei/v1/live_chat/get_live_chat_replay",w)):g.liveChatItemContextMenuEndpoint?w=xK("/youtubei/v1/live_chat/get_item_context_menu",g.liveChatItemContextMenuEndpoint):g.liveChatPurchaseMessageEndpoint?w=xK("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
g.liveChatPurchaseMessageEndpoint):g.openSuperStickerBuyFlowCommand?w=xK("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",g.openSuperStickerBuyFlowCommand):g.videoEditEndpoint?w=xK("/edit",{video_id:g.videoEditEndpoint.videoId}):g.liveDashboardEndpoint?w=g.liveDashboardEndpoint.videoId?xK("/live_dashboard",{v:g.liveDashboardEndpoint.videoId}):"/live_dashboard":g.signalNavigationEndpoint&&g.signalNavigationEndpoint.signal&&g.signalNavigationEndpoint.signal==="WEBCAM"?w="/webcam":g.getPdgBuyFlowCommand&&
(w=xK(g.getPdgBuyFlowCommand.buyflowApiPath,{params:g.getPdgBuyFlowCommand.params}))}return w||E?xK(w,r||{}):(_.el(new _.Rj("Error: Can't construct url for endpoint","keys:"+Object.keys(g).sort().join(","),g)),null)};
t_Y=function(g){if(g){if(g.browseEndpoint)return!!g.browseEndpoint.nofollow;if(g.watchEndpoint)return!!g.watchEndpoint.nofollow;if(g.urlEndpoint)return!!g.urlEndpoint.nofollow}return!1};
_.eho=function(g,r){var E=r+g,B=FcS.get(E);if(B)return B;g=r+"-"+g.replace(/([A-Z])/g,"-$1").toLowerCase();FcS.set(E,g);return g};
Wcl=function(g){var r=_.FS(g,"action")||_.FS(g,"command")||_.FS(g,"endpoint");if(!r)return null;r=_.eho(r,"yt");_.n(g,_.aI)&&(r+="-"+_.n(g,_.aI).signal.toLowerCase().replace(/_/g,"-"));return r};
ahc=function(g){try{var r=Object.keys(g)}catch(w){return[]}for(var E=0;E<r.length;E++){var B=r[E];if(CVJ.test(B)||KcY.test(B))return xyX(g[B])}return[]};
xyX=function(g){return g.command?[g.command]:g.onExecutionAction?[g.onExecutionAction]:g.onResponseReceivedCommand?[g.onResponseReceivedCommand]:g.updateFlowCommand?[g.updateFlowCommand]:g.clientActions?g.clientActions:g.action?[g.action]:g.actions||g.commands||g.onResponseReceivedActions||g.onResponseReceivedCommands||g.onResponseReceivedEndpoints||[]};
NLL=function(g,r){r=r===void 0?!1:r;var E=_.rM().resolve(_.gM(Nb));E||(E=new XwV,_.rM().addProvider({provide:Nb,useValue:E}));return E&&g&&!_.jn.isEmpty(g)?E.getUrl(g,r):""};
IhA=function(g,r,E){E=E===void 0?"":E;if(r){g.data=r;var B=NLL(r);B?(Aa(g,B),t_Y(r)||!v0(B)?g.rel="nofollow":g.removeAttribute("rel"),_.n(r,_.II)&&_.n(r,_.II).target==="TARGET_NEW_WINDOW"?g.target="_blank":E?g.target=E:g.removeAttribute("target")):(g.removeAttribute("href"),g.removeAttribute("rel"),g.removeAttribute("target"))}};
_.LC=function(g,r){var E=dY;if($B())myP(g,function(){var O=_.fI.apply(0,arguments);e1(E,function(){r.apply(null,_.jW(O))})});
else{var B=_.mH.getInstance(),w=tk(r);g5Y(function(){w.value=r});
_.Jk(function(){var O={},M=_.cf(B,(O[g]=function(){var u=_.fI.apply(0,arguments);e1(E,function(){w.value.apply(w,_.jW(u))})},O));
return function(){var u={};_.i2(B,(u[g]="",u),M)}})}};
_.VI=function(g,r){return cMQ(g,!1,r)};
_.hn=function(g,r){return cMQ(g,!0,r)};
cMQ=function(g,r,E){return $B()?iWA(g,r,E):LcL(g,r,E)};
LcL=function(g,r,E){return P0(function(){return iWA(g,r,E)})};
iWA=function(g,r,E){var B=ynl(function(w){B.value=w;var O=function(){var M=S1(null);try{return E==null?void 0:E(w)}finally{S1(M)}}();
return function(){O==null||O()}});
B.__expectedTagName=g;B.__optional=r;B.isIdom=!$B();return B};
V_c=function(g){var r=dY,E=sx;return{getFn:function(){return function(B){r.isDisposed||A5(function(){return uQ(function(){return g(B)})},E)!==!0&&B.stopPropagation()}}}};
Z8=function(g){if(typeof g.children==="function")return g.children(),null;g=_.U(g.children);for(var r=g.next();!r.done;r=g.next())r=r.value,r();return null};
hhS=function(g){var r;return((r=g.prototype)==null?void 0:r.render)===void 0};
ZWA=function(g){g=g.items.map(g.children);return g.length>0&&typeof g[0]==="string"?g.join(""):g};
vPl=function(g,r,E){E=E===void 0?!1:E;A5(function(){return yMA(g,r,E)})};
yMA=function(g,r,E){var B=null;YB++;E=(E===void 0?0:E)?dyo:TLD;try{B=E(g,function(){yI(r)}),nl(!1)}catch(w){throw nl(!0),w;
}return B===null?g:B};
yI=function(g){if(g!==void 0&&g!==null)if(g instanceof GU)for(var r=ND;IB()!=null&&eRJ in IB()&&r.contains(IB());)iQ();else if(Array.isArray(g))for(r=_.U(g),g=r.next();!g.done;g=r.next())yI(g.value);else if(g instanceof MO||"function"==typeof _.Vv&&g instanceof _.Vv||"function"==typeof _.gW&&g instanceof _.gW)TW(g.toString());else if(_.O6(g)){if(IB()!==g){var E,B;r=(B=(E=sx)==null?void 0:E.name)!=null?B:"unknown";throw Error("gc`"+g.tagName+"`"+r);}iQ()}else if(T2l(g)||g instanceof bi||d_P(g))for(r=
rnD(g),r=Array.from(r.childNodes),r=_.U(r),g=r.next();!g.done;g=r.next())ND.appendChild(g.value),iQ();else if(Qv(g)&&(g=g.toString()),E=typeof g,E==="boolean"||E==="number"||E==="string")TW(g);else if(typeof g==="function"){r=ND;var w=IB();w&&(w._isSignalTextNode||w._isSafeOrSanitizedHtmlNode)||sIP(r,w,g);iQ()}else if(g.type===ZWA)yI(g.type(Object.assign({},g.props,{children:g.children[0]})));else{kF.beforeVisit(g);if(typeof g.type==="string"){a:{g.__open||JpV(g.type,g.props.idomKey);w=ND;for(r in g.props)if(g.props[r]!==
g3V){var O=g.props[r];E=Zk;E.push(r);E.push(O)}r=Ex.attributes;r=r===void 0?vf:r;O=ND;E=X2(O);KSQ(O,E,r);nKo(w,g.props,!0);if((g.props.skip||g.props.skipchildren)&&ND.hasChildNodes())V6();else{if(g.type==="style"&&MlY(g.children)===null){V6();r=void 0;break a}yI(g.children)}PdJ();g.__open&&(g.__open=!1);i9B(w,g.props);r=w}return r}if(g.type===_.wW)yI(g.children);else if(!rRt(g)){r=g;try{E3L(r)}catch(M){g=M,(O=Ex.handleError)==null||O.call.apply(O,[Ex].concat(_.jW(Wp(g,(w=r.type)==null?void 0:w.TAG_NAME))))}r.__open&&
(PdJ(),r.__open=!1)}}};
Bto=function(g,r){var E;hhS(g)?E=new pa(r,g):E=new g(r);E.JSC$8307___type=g;E.__updateContext={nextState:E.state,isForced:!1};return E};
E3L=function(g){var r=g.type,E=r.TAG_NAME;if(r===Z8)g.props.children=g.children,r(g.props);else{g.children.length>0&&(g.props.children=g.children);var B;(B=g.props).idomKey||(B.idomKey=r);if(E){var w=JpV(E,g.props.idomKey);g.__open=!0;var O=w.__instance}O||(O=Bto(r,g.props),O.props=null,w&&(w.__instance=O,O.el=w));var M;E=((M=O.__updateContext)!=null?M:{nextState:O.state,isForced:!1}).nextState;O.__updateContext=void 0;r.getDerivedStateFromProps&&(E=r.getDerivedStateFromProps(g.props,E));O.props=
g.props;O.state=E;M=function(){var u=O;kF.beforeRender(u);var l=u.render(u.props);kF.afterRender(u,l);l?(u.props.idomKey&&(l.props.idomKey=u.props.idomKey),u=l):u=void 0;if(l=u)if(l.__open=g.__open,u=yI(l),g.__open=l.__open,!r.TAG_NAME)if(u)r.TAG_NAME=u.tagName.toLowerCase(),u.__instance=O,O.el=u;else{var Q;if((Q=O.hooks)==null?0:Q.length){var z;(z=Ex.handleError)==null||z.call.apply(z,[Ex].concat(_.jW(Wp(Error("pd")))))}}O.didPatch();kF.didPatch(O)};
(E=O.functionComponent)?hfX(E,M,O.props.debugInstance):M()}};
rRt=function(g){var r=g.type;if(!hhS(r)||r===Z8||r.componentType===fl)return!1;g.props.children=g.children.length>1?g.children:g.children[0];var E,B=(E=g.props.idomKey)!=null?E:g.type,w;if(IB()&&((w=IB()[lu])==null?void 0:w.key)===B){var O=IB(),M=O[lu];if(!M)throw Error("fc`"+O.tagName);var u;(u=M.updateSignalsFromIdomProps)==null||u.call(M,g.props);wKl(M);return!0}if(SBc.has(r.name))throw u=r.name,r=(M=(O=sx)==null?void 0:O.name)!=null?M:"unknown",Error("ec`"+u+"`"+r);Anl(g.type,g.props,g.children);
g.props.renderedFromIdom=!0;(u=hfX(g.type,function(){return kxY(g.type,g.props)},g.props.debugInstance))&&Ohl(u);
return!0};
Uhl=function(g){for(var r=0;r<oa(g).length;r++)iQ()};
wKl=function(g){var r=MkP();if(r)Uhl(r);else for(var E=0;E<g.numNodes;E++)(r=MkP())?Uhl(r):iQ()};
MkP=function(){var g;return(g=IB()[lu])==null?void 0:g.sourceDynamicRange};
Ohl=function(g){g=hIB(g);g=Array.isArray(g)?g:[g];g=_.U(g);for(var r=g.next();!r.done;r=g.next())ND.insertBefore(r.value,IB()),iQ()};
qBt=function(g){var r=pfX(),E=P0(function(){return{value:typeof g==="function"?g():g}});
return[E.value,function(B){if(H0!==null){var w;(w=Ex.handleError)==null||w.call.apply(w,[Ex].concat(_.jW(Wp(Error("qd")))))}E.value=typeof B==="function"?B(E.value):B;r.__updateContext={nextState:r.state,isForced:!0};B=_.TP(r.effectContext);w=SS(!1);try{if(r.el){var O,M={},u=(M.props=r.props,M.type=r.JSC$8307___type,M.children=(O=r.props.children)!=null?O:[],M[B0]=!0,M);try{vPl(r.el,u,!0)}catch(z){var l,Q;(Q=Ex.handleError)==null||Q.call.apply(Q,[Ex].concat(_.jW(Wp(z,(l=r.JSC$8307___type)==null?void 0:
l.TAG_NAME))))}}}finally{SS(w),_.TP(B)}}]};
du=function(g,r){var E=dY,B=function(w){e1(E,function(){r(w)})};
window.addEventListener(g,B,void 0);_.J5(function(){window.removeEventListener(g,B,void 0)})};
_.gH=function(g,r){var E=dY;_.Jk(function(){var B,w=(B=r.observer)!=null?B:_.rM().resolve(Tx);if(B=g.value){var O=uAL(B),M=[];r.showOption&&M.push(w.observe(B,function(){e1(E,function(){r.visibilityCallback(!0)})},r.showOption));
r.hideOption&&M.push(w.observe(B,function(){e1(E,function(){r.visibilityCallback(!1)})},r.hideOption));
r.prescanOption&&r.prescanCallback&&M.push(w.observe(B,function(){e1(E,function(){r.prescanCallback()})},r.prescanOption));
var u;O.visibilityMonitorKeys=((u=O.visibilityMonitorKeys)!=null?u:[]).concat(M)}})};
uAL=function(g){var r;return(r=g.polymerController)!=null?r:g};
_.rH=function(g){g.componentType=fl};
GwV=function(g,r){var E=lyc;return _.G(_.wW,null,vT(Ex.enableLazyTsx,function(){return _.G(DhB,{id:E,value:g,children:r})},function(){var B=o3S(E,g);
rB(B);B=_.TP(B);try{return r()}finally{_.TP(B)}}))};
DhB=function(g){var r=g.children;g=o3S(g.id,g.value);rB(g);g=_.TP(g);try{return _.G(_.wW,null,Qg(r()))}finally{_.TP(g)}};
o3S=function(g,r){return Object.assign(Object.create(QlD),{id:g,contextValue:r})};
zcP=function(g){var r,E=dY;_.F2(function(){var B=_.TP(E),w=SS(!r);try{if(r)vPl(r,g.children(),!0);else if(r=Qg(g.children()),!(r instanceof Element))throw Error("rd");}finally{SS(w),_.TP(B)}});
return r};
_.kwD=function(g,r){var E;r=Pp(function(){var B=SS(!0);try{E=oa(g())}finally{SS(B)}},r===void 0?!1:r);
return[E,r]};
pKl=function(g){g=g.buf.charCodeAt(g.pos++);return HhD[g]};
Eb=function(g){var r=0,E=0;do{var B=pKl(g);r|=(B&31)<<E;E+=5}while(B&32);return r<0?r+4294967296:r};
n3c=function(g,r,E){YBo(g,r);g[r][Rct].unshift(E)};
YBo=function(g,r){if(!g[r]||!g[r][Rct]){var E=g[r],B=E?[E]:[];g[r]=function(){for(var w=_.U(B),O=w.next();!O.done;O=w.next())O.value.apply(this,arguments)};
g[r][Rct]=B}};
slc=function(g){if(!g)return[];var r=[];g=_.U(g);for(var E=g.next();!E.done;E=g.next())E=E.value,Array.isArray(E)?r.push.apply(r,_.jW(slc(E))):r.push(E);return r};
_.wH=function(g,r){if(g&&fyV.test(g)||g==="//")return g;if($hY===void 0){$hY=!1;try{var E=new URL("b","http://a");E.pathname="c%20d";$hY=E.href==="http://a/c%20d"}catch(B){}}r||(r=document.baseURI||window.location.href);if($hY)try{return(new URL(g,r)).href}catch(B){return g}B3||(B3=document.implementation.createHTMLDocument("temp"),B3.base=B3.createElement("base"),B3.head.appendChild(B3.base),B3.anchor=B3.createElement("a"),B3.body.appendChild(B3.anchor));B3.base.href=r;B3.anchor.href=g;return B3.anchor.href||
g};
ARP=function(g,r){return g.replace(jlL,function(E,B,w,O){return B+"'"+_.wH(w.replace(/["']/g,""),r)+"'"+O})};
bhQ=function(g){return g.substring(0,g.lastIndexOf("/")+1)};
tkQ=function(){JRQ=!1;for(var g=S8.length,r=0;r<g;r++){var E=S8[r];if(E)try{E()}catch(B){setTimeout(function(){throw B;})}}S8.splice(0,g);
PWQ+=g};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(g){console.log("["+g.is+"]: registered")};
ecl=function(g){FJD.push(g)};
Ob=function(g){return WJA[g]||(WJA[g]=g.indexOf("-")<0?g:g.replace(CWt,function(r){return r[1].toUpperCase()}))};
Ub=function(g){return WJA[g]||(WJA[g]=g.replace(KJB,"-$1").toLowerCase())};
xhS=function(g,r){var E=r.parentInfo&&xhS(g,r.parentInfo);if(E)for(g=E.firstChild,E=0;g;g=g.nextSibling){if(r.parentIndex===E++)return g}else return g};
ayJ=function(g,r){g=g._methodHost||g;return function(E){if(g[r])g[r](E,E.detail);else console.warn("listener method `"+r+"` not defined")}};
MH=function(g){return g.indexOf(".")>=0};
qH=function(g){var r=g.indexOf(".");return r===-1?g:g.slice(0,r)};
XKc=function(g,r){return g.indexOf(r+".")===0};
up=function(g,r){return r.indexOf(g+".")===0};
lp=function(g,r,E){return r+E.slice(g.length)};
NtP=function(g,r){return g===r||XKc(g,r)||up(g,r)};
Ds=function(g){if(Array.isArray(g)){for(var r=[],E=0;E<g.length;E++)for(var B=g[E].toString().split("."),w=0;w<B.length;w++)r.push(B[w]);return r.join(".")}return g};
IyD=function(g){return Array.isArray(g)?Ds(g).split("."):g.toString().split(".")};
ov=function(g,r,E){r=IyD(r);for(var B=0;B<r.length;B++){if(!g)return;g=g[r[B]]}E&&(E.path=r.join("."));return g};
mhD=function(g,r,E){var B=IyD(r),w=B[B.length-1];if(B.length>1){for(r=0;r<B.length-1;r++)if(g=g[B[r]],!g)return;g[w]=E}else g[r]=E;return B.join(".")};
cRS=function(g,r,E){var B=g[r];if(!B)B=g[r]={};else if(!g.hasOwnProperty(r)&&(B=g[r]=Object.create(g[r]),E))for(var w in B)for(g=B[w],r=B[w]=Array(g.length),E=0;E<g.length;E++)r[E]=g[E];return B};
Qs=function(g,r,E,B,w,O){if(r){var M=!1,u=G5++,l;for(l in E){var Q=w?qH(l):l;if(Q=r[Q])for(var z=0,k=Q.length,H=void 0;z<k&&(H=Q[z]);z++)H.info&&H.info.lastRun===u||w&&!ihX(l,H.trigger)||(H.info&&(H.info.lastRun=u),H.fn(g,l,E,B,H.info,w,O),M=!0)}return M}return!1};
ihX=function(g,r){if(r){var E=r.name;return E==g||!(!r.structured||!XKc(E,g))||!(!r.wildcard||!up(E,g))}return!0};
LJP=function(g,r,E,B,w){r=typeof w.method==="string"?g[w.method]:w.method;E=w.property;r?r.call(g,g.__data[E],B[E]):w.dynamicFn||console.warn("observer method `"+w.method+"` not defined")};
VkD=function(g,r,E,B){E={value:E,queueProperty:!0};B&&(E.path=B);(0,_.z5)(g).dispatchEvent(new CustomEvent(r,{detail:E}))};
hcS=function(g,r,E,B,w,O){O=(B=(O?qH(r):r)!=r?r:null)?ov(g,B):g.__data[r];B&&O===void 0&&(O=E[r]);VkD(g,w.eventName,O,B)};
ZhL=function(g,r,E,B,w){E=g.__data[r];k5&&(E=k5(E,w.attrName,"attribute",g));g._propertyToAttribute(r,w.attrName,E)};
v3t=function(g){var r=g.constructor.__orderedComputedDeps;if(!r){r=new Map;for(var E=g.__computeEffects,B=yRQ(g),w=B.counts,O=B.ready,M=B.total;B=O.shift();)r.set(B,r.size),(B=E[B])&&B.forEach(function(u){u=u.info.methodInfo;--M;--w[u]===0&&O.push(u)});
M!==0&&console.warn("Computed graph for "+g.localName+" incomplete; circular?");g.constructor.__orderedComputedDeps=r}return r};
yRQ=function(g){var r=g.__computeInfo,E={};g=g.__computeEffects;var B=[],w=0,O;for(O in r){var M=r[O];w+=E[O]=M.args.filter(function(l){return!l.literal}).length+(M.dynamicFn?1:0)}for(var u in g)r[u]||B.push(u);
return{counts:E,ready:B,total:w}};
Ttt=function(g,r,E,B,w){r=dhJ(g,r,E,B,w);if(r===H3)return!1;w=w.methodInfo;if(g.__dataHasAccessor&&g.__dataHasAccessor[w])return g._setPendingProperty(w,r,!0);g[w]=r;return!1};
Eoo=function(g,r,E,B,w,O,M){E.bindings=E.bindings||[];B={kind:B,target:w,parts:O,literal:M,isCompound:O.length!==1};E.bindings.push(B);B.target&&B.kind!="attribute"&&B.kind!="text"&&!B.isCompound&&B.parts[0].mode==="{"&&(E=B.parts[0],O=E.negate,B.listenerEvent=E.event||Ub(w)+"-changed",B.listenerNegate=O);w=r.nodeInfoList.length;for(E=0;E<B.parts.length;E++){var u=B.parts[E];u.compoundIndex=E;O=g;M=r;var l=B,Q=u,z=w;if(!Q.literal)if(l.kind==="attribute"&&l.target[0]==="-")console.warn("Cannot set attribute "+
l.target+' because "-" is not a valid attribute starting character');else for(u=Q.dependencies,l={index:z,binding:l,part:Q,evaluator:O},Q=0;Q<u.length;Q++)z=u[Q],typeof z=="string"&&(z=goY(z),z.wildcard=!0),O._addTemplatePropertyEffect(M,z.rootProperty,{fn:rfB,info:l,trigger:z})}};
rfB=function(g,r,E,B,w,O,M){M=M[w.index];var u=w.binding,l=w.part;O&&l.source&&r.length>l.source.length&&u.kind=="property"&&!u.isCompound&&M.__isPropertyEffectsClient&&M.__dataHasAccessor&&M.__dataHasAccessor[u.target]?(E=E[r],r=lp(l.source,u.target,r),M._setPendingPropertyOrPath(r,E,!1,!0)&&g._enqueueClient(M)):(r=w.evaluator._evaluateBinding(g,l,r,E,B,O),r!==H3&&(u.isCompound&&(E=M.__dataCompoundStorage[u.target],E[l.compoundIndex]=r,r=E.join("")),u.kind==="attribute"||u.target!=="textContent"&&
(u.target!=="value"||M.localName!=="input"&&M.localName!=="textarea")||(r=r==void 0?"":r),l=r,k5&&(l=k5(l,u.target,u.kind,M)),u.kind=="attribute"?g._valueToNodeAttribute(M,l,u.target):(u=u.target,M.__isPropertyEffectsClient&&M.__dataHasAccessor&&M.__dataHasAccessor[u]?M.__readOnly&&M.__readOnly[u]||M._setPendingProperty(u,l)&&g._enqueueClient(M):g._setUnmanagedPropertyToNode(M,u,l))))};
BrY=function(g,r,E){if(E.listenerEvent){var B=E.parts[0];g.addEventListener(E.listenerEvent,function(w){var O=E.target,M=B.source,u=B.negate,l=w.detail,Q=l&&l.path;Q?(M=lp(O,M,Q),w=l&&l.value):w=w.currentTarget[O];r.__readOnly&&r.__readOnly[M]||!r._setPendingPropertyOrPath(M,u?!w:w,!0,!!Q)||l&&l.queueProperty||r._invalidateProperties()})}};
wXP=function(g,r,E,B,w,O){O=r.static||O&&(typeof O!=="object"||O[r.methodName]);w={methodName:r.methodName,args:r.args,methodInfo:w,dynamicFn:O};for(var M=0,u=void 0;M<r.args.length&&(u=r.args[M]);M++)u.literal||g._addPropertyEffect(u.rootProperty,E,{fn:B,info:w,trigger:u});O&&g._addPropertyEffect(r.methodName,E,{fn:B,info:w});return w};
dhJ=function(g,r,E,B,w){B=g._methodHost||g;var O=B[w.methodName];if(O)return g=g._marshalArgs(w.args,r,E),g===H3?H3:O.apply(B,g);w.dynamicFn||console.warn("method `"+w.methodName+"` not defined")};
Sgc=function(g){for(var r="",E=0;E<g.length;E++)r+=g[E].literal||"";return r};
MTB=function(g){if(g=g.match(/([^\s]+?)\(([\s\S]*)\)/)){var r={methodName:g[1],static:!0,args:Omc};return g[2].trim()?UQo(g[2].replace(/\\,/g,"&comma;").split(","),r):r}return null};
UQo=function(g,r){r.args=g.map(function(E){E=goY(E);E.literal||(r.static=!1);return E},this);
return r};
goY=function(g){g=g.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var r={name:g,value:"",literal:!1},E=g[0];E==="-"&&(E=g[1]);E>="0"&&E<="9"&&(E="#");switch(E){case "'":case '"':r.value=g.slice(1,-1);r.literal=!0;break;case "#":r.value=Number(g),r.literal=!0}r.literal||(r.rootProperty=qH(g),r.structured=MH(g),r.structured&&(r.wildcard=g.slice(-2)==".*",r.wildcard&&(r.name=g.slice(0,-2))));return r};
qgD=function(g,r,E){g=ov(g,E);g===void 0&&(g=r[E]);return g};
uXS=function(g,r,E,B){B={indexSplices:B};pk&&!g._overrideLegacyUndefined&&(r.splices=B);g.notifyPath(E+".splices",B);g.notifyPath(E+".length",r.length);pk&&!g._overrideLegacyUndefined&&(B.indexSplices=[])};
Y5=function(g,r,E,B,w,O){uXS(g,r,E,[{index:B,addedCount:w,removed:O,object:r,type:"splice"}])};
lBl=function(g){g=ARP((g.body?g.body:g).textContent,g.baseURI);var r=document.createElement("style");r.textContent=g;return r};
ooB=function(g){g=g.trim().split(/\s+/);for(var r=[],E=0;E<g.length;E++)r.push.apply(r,_.jW(DQP(g[E])));return r};
DQP=function(g){var r=Rv.import(g);if(!r)return console.warn("Could not find style data in module named",g),[];if(r._styles===void 0){g=[];g.push.apply(g,_.jW(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(r)));var E=r.querySelector("template");E&&g.push.apply(g,_.jW(GaV(E,r.assetpath)));r._styles=g}return r._styles};
GaV=function(g,r){if(!g._styles){for(var E=[],B=g.content.querySelectorAll("style"),w=0;w<B.length;w++){var O=B[w],M=O.getAttribute("include");M&&E.push.apply(E,_.jW(ooB(M).filter(function(u,l,Q){return Q.indexOf(u)===l})));
r&&(O.textContent=ARP(O.textContent,r));E.push(O)}g._styles=E}return g._styles};
Q$c=function(g){return(g=Rv.import(g))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(g):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(g){var r=[];g=g.querySelectorAll("link[rel=import][type~=css]");for(var E=0;E<g.length;E++){var B=g[E];if(B.import){var w=B.import;if((B=B.hasAttribute("shady-unscoped"))&&!w._unscopedStyle){var O=lBl(w);O.setAttribute("shady-unscoped","");w._unscopedStyle=O}else w._style||(w._style=lBl(w));r.push(B?w._unscopedStyle:w._style)}}return r};
kat=function(g){g=g.trim().split(/\s+/);for(var r="",E=0;E<g.length;E++)r+=z1L(g[E]);return r};
z1L=function(g){var r=Rv.import(g);if(r&&r._cssText===void 0){var E=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(r),B=r.querySelector("template");B&&(E+=HmA(B,r.assetpath));r._cssText=E||null}r||console.warn("Could not find style data in module named",g);return r&&r._cssText||""};
HmA=function(g,r){var E="";g=GaV(g,r);for(r=0;r<g.length;r++){var B=g[r];B.parentNode&&B.parentNode.removeChild(B);E+=B.textContent}return E};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(g){var r="";g=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(g);for(var E=0;E<g.length;E++)r+=g[E].textContent;return r};
nk=function(g,r){return{index:g,removed:[],addedCount:r}};
Ygl=function(g,r,E,B){var w=0,O=0,M=0,u=0,l=Math.min(r-w,B-O);if(w==0&&O==0)a:{for(M=0;M<l;M++)if(g[M]!==E[M])break a;M=l}if(r==g.length&&B==E.length){u=g.length;for(var Q=E.length,z=0;z<l-M&&pXl(g[--u],E[--Q]);)z++;u=z}w+=M;O+=M;r-=u;B-=u;if(r-w==0&&B-O==0)return[];if(w==r){for(r=nk(w,0);O<B;)r.removed.push(E[O++]);return[r]}if(O==B)return[nk(w,r-w)];l=w;M=O;B=B-M+1;u=r-l+1;r=Array(B);for(Q=0;Q<B;Q++)r[Q]=Array(u),r[Q][0]=Q;for(Q=0;Q<u;Q++)r[0][Q]=Q;for(Q=1;Q<B;Q++)for(z=1;z<u;z++)if(g[l+z-1]===
E[M+Q-1])r[Q][z]=r[Q-1][z-1];else{var k=r[Q-1][z]+1,H=r[Q][z-1]+1;r[Q][z]=k<H?k:H}l=r.length-1;M=r[0].length-1;B=r[l][M];for(g=[];l>0||M>0;)l==0?(g.push(2),M--):M==0?(g.push(3),l--):(u=r[l-1][M-1],Q=r[l-1][M],z=r[l][M-1],k=Q<z?Q<u?Q:u:z<u?z:u,k==u?(u==B?g.push(0):(g.push(1),B=u),l--,M--):k==Q?(g.push(3),l--,B=Q):(g.push(2),M--,B=z));g.reverse();r=void 0;l=[];for(M=0;M<g.length;M++)switch(g[M]){case 0:r&&(l.push(r),r=void 0);w++;O++;break;case 1:r||(r=nk(w,0));r.addedCount++;w++;r.removed.push(E[O]);
O++;break;case 2:r||(r=nk(w,0));r.addedCount++;w++;break;case 3:r||(r=nk(w,0)),r.removed.push(E[O]),O++}r&&l.push(r);return l};
R1J=function(g,r){return Ygl(g,g.length,r,r.length)};
pXl=function(g,r){return g===r};
s$c=function(g){if(g instanceof nol)return g.value;throw Error("Id`"+g);};
fBV=function(g,r){for(var E in r)E===null?g.style.removeProperty(E):g.style.setProperty(E,r[E])};
$QB=function(g,r){return(g=window.getComputedStyle(g).getPropertyValue(r))?g.trim():""};
JfS=function(g){requestAnimationFrame(function(){j$B?j$B(g):(AfA||(AfA=new Promise(function(r){bmY=r}),document.readyState==="complete"?bmY():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&bmY()})),AfA.then(function(){g&&g()}))})};
e1X=function(g){PLl=g&&g.shimcssproperties?!1:Fzl||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
aBA=function(g){if(!(WzS.indexOf(g)>-1)&&g!=="touchend"&&CLo&&KzX&&xQD)return{passive:!0}};
mQA=function(g){for(var r=XXY?["click"]:WzS,E=0,B;E<r.length;E++)B=r[E],g?(NrY.length=0,document.addEventListener(B,IBo,!0)):document.removeEventListener(B,IBo,!0)};
sb=function(g){var r=g.type;return WzS.indexOf(r)>-1?r==="mousemove"?(r=g.buttons===void 0?1:g.buttons,g instanceof window.MouseEvent&&!cfX&&(r=iml[g.which]||0),!!(r&1)):(g.button===void 0?0:g.button)===0:!1};
Lzo=function(g){if(g.type==="click"){if(g.detail===0)return!0;var r=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g);if(!r.nodeType||r.nodeType!==Node.ELEMENT_NODE)return!0;r=r.getBoundingClientRect();var E=g.pageX;g=g.pageY;return!(E>=r.left&&E<=r.right&&g>=r.top&&g<=r.bottom)}return!1};
VTX=function(g,r,E){g.movefn=r;g.upfn=E;document.addEventListener("mousemove",r);document.addEventListener("mouseup",E)};
fk=function(g){document.removeEventListener("mousemove",g.movefn);document.removeEventListener("mouseup",g.upfn);g.movefn=null;g.upfn=null};
h1B=function(g,r){for(var E=document.elementFromPoint(g,r),B=E;B&&B.shadowRoot&&!window.ShadyDOM;){var w=B;B=B.shadowRoot.elementFromPoint(g,r);if(w===B)break;B&&(E=B)}return E};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(g){var r=ZmY(g);return r.length>0?r[0]:g.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(g){var r=g.type,E=g.currentTarget.__polymerGestures;if(E&&(E=E[r])){if(!g.__polymerGesturesHandled&&(g.__polymerGesturesHandled={},r.slice(0,5)==="touch")){var B=g.changedTouches[0];r==="touchstart"&&g.touches.length===1&&(yfL=B.identifier);if(yfL!==B.identifier)return;CLo||(r==="touchstart"||r==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g)}B=
g.__polymerGesturesHandled;if(!B.skip){for(var w=0,O;w<$5.length;w++)O=$5[w],E[O.name]&&!B[O.name]&&O.flow&&O.flow.start.indexOf(g.type)>-1&&O.reset&&O.reset();for(w=0;w<$5.length;w++)O=$5[w],E[O.name]&&!B[O.name]&&(B[O.name]=!0,O[r](g))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(g){var r=g.changedTouches[0],E=g.type;if(E==="touchstart")vol=r.clientX,dQJ=r.clientY,TrD=!1;else if(E==="touchmove"&&!TrD){TrD=!0;E="auto";for(var B=ZmY(g),w=0,O;w<B.length;w++)if(O=B[w],O.__polymerGesturesTouchAction){E=O.__polymerGesturesTouchAction;break}B=!1;w=Math.abs(vol-r.clientX);r=Math.abs(dQJ-r.clientY);g.cancelable&&(E==="none"?B=!0:E==="pan-x"?B=r>w:E==="pan-y"&&(B=w>r));B?g.preventDefault():
j8("track")}};
bp=function(g,r,E){return Ax[r]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g,r,E),!0):!1};
Jx=function(g,r,E){return Ax[r]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g,r,E),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(g,r,E){var B=Ax[r],w=B.deps,O=B.name,M=g.__polymerGestures;M||(g.__polymerGestures=M={});for(var u=0,l,Q;u<w.length;u++)l=w[u],XXY&&WzS.indexOf(l)>-1&&l!=="click"||((Q=M[l])||(M[l]=Q={_count:0}),Q._count===0&&g.addEventListener(l,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,aBA(l)),Q[O]=(Q[O]||0)+1,Q._count=(Q._count||0)+1);g.addEventListener(r,E);B.touchAction&&_.P3(g,B.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(g,r,E){var B=Ax[r],w=B.deps;B=B.name;var O=g.__polymerGestures;if(O)for(var M=0,u,l;M<w.length;M++)u=w[M],(l=O[u])&&l[B]&&(l[B]=(l[B]||1)-1,l._count=(l._count||1)-1,l._count===0&&g.removeEventListener(u,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,aBA(u)));g.removeEventListener(r,E)};
gjQ=function(g){$5.push(g);for(var r=0;r<g.emits.length;r++)Ax[g.emits[r]]=g};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(g){for(var r=0,E;r<$5.length;r++){E=$5[r];for(var B=0,w;B<E.emits.length;B++)if(w=E.emits[B],w===g)return E}return null};
_.P3=function(g,r){CLo&&g instanceof HTMLElement&&tx.run(function(){g.style.touchAction=r});
g.__polymerGesturesTouchAction=r};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(g,r,E){r=new Event(r,{bubbles:!0,cancelable:!0,composed:!0});r.detail=E;(0,_.z5)(g).dispatchEvent(r);r.defaultPrevented&&(g=E.preventer||E.sourceEvent)&&g.preventDefault&&g.preventDefault()};
j8=function(g){g=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g);g.info&&(g.info.prevent=!0)};
F3=function(g,r,E,B){r&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(r,g,{x:E.clientX,y:E.clientY,sourceEvent:E,preventer:B,prevent:function(w){return j8(w)}})};
rlc=function(g,r,E){if(g.prevent)return!1;if(g.started)return!0;E=Math.abs(g.y-E);return Math.abs(g.x-r)>=5||E>=5};
EjJ=function(g,r,E){if(r){var B=g.moves[g.moves.length-2],w=g.moves[g.moves.length-1],O=w.x-g.x,M=w.y-g.y,u=0;if(B){var l=w.x-B.x;u=w.y-B.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(r,"track",{state:g.state,x:E.clientX,y:E.clientY,dx:O,dy:M,ddx:l,ddy:u,sourceEvent:E,hover:function(){return h1B(E.clientX,E.clientY)}})}};
wml=function(g,r,E){var B=Math.abs(r.clientX-g.x),w=Math.abs(r.clientY-g.y),O=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(E||r);!O||B0l[O.localName]&&O.hasAttribute("disabled")||!(isNaN(B)||isNaN(w)||B<=25&&w<=25||Lzo(r))||g.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O,"tap",{x:r.clientX,y:r.clientY,sourceEvent:r,preventer:E})};
S0D=function(g,r,E,B,w){var O;w&&(O=typeof E==="object"&&E!==null)&&(B=g.__dataTemp[r]);B=B!==E&&(B===B||E===E);O&&B&&(g.__dataTemp[r]=E);return B};
Uqt=function(){if(e8&&!W3){if(!O0t){O0t=!0;var g=document.createElement("style");g.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(g)}return!0}return!1};
q0S=function(){return M7L};
uuS=function(g,r){M7L=g;Object.setPrototypeOf(g,r.prototype);new r;M7L=null};
lpc=function(g,r){for(var E=0;E<r.length;E++){var B=r[E];if(!!g!=!!B.__hideTemplateChildren__)if(B.nodeType===Node.TEXT_NODE)g?(B.__polymerTextContent__=B.textContent,B.textContent=""):B.textContent=B.__polymerTextContent__;else if(B.localName==="slot")if(g)B.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.z5)((0,_.z5)(B).parentNode).replaceChild(B.__polymerReplaced__,B);else{var w=B.__polymerReplaced__;w&&(0,_.z5)((0,_.z5)(w).parentNode).replaceChild(B,w)}else B.style&&(g?(B.__polymerDisplay__=
B.style.display,B.style.display="none"):B.style.display=B.__polymerDisplay__);B.__hideTemplateChildren__=g;B._showHideChildren&&B._showHideChildren(g)}};
DqX=function(g){return(g=g.__dataHost)&&g._methodHost||g};
QzQ=function(g,r,E){var B=E.mutableData?ojD:Ck;Kk.mixin&&(B=Kk.mixin(B));var w=function(){return B.apply(this,arguments)||this};
_.f(w,B);w.prototype.__templatizeOptions=E;w.prototype._bindTemplate(g);GuJ(w,g,r,E);return w};
Y0V=function(g,r,E,B){var w=E.forwardHostProp;if(w&&r.hasHostProps){var O=g.localName=="template",M=r.templatizeTemplateClass;if(!M){if(O){var u=E.mutableData?ziX:kuB;M=function(){return u.apply(this,arguments)||this};
_.f(M,u);M=r.templatizeTemplateClass=M}else{var l=g.constructor;M=function(){return l.apply(this,arguments)||this};
_.f(M,l);M=r.templatizeTemplateClass=M}var Q=r.hostProps,z;for(z in Q)M.prototype._addPropertyEffect("_host_"+z,M.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:H0t(w)}),M.prototype._createNotifyingProperty("_host_"+z);x5&&B&&pmY(r,E,B)}g.__dataProto&&Object.assign(g.__data,g.__dataProto);if(O)uuS(g,M),g.__dataTemp={},g.__dataPending=null,g.__dataOld=null,g._enableProperties();else{Object.setPrototypeOf(g,M.prototype);r=r.hostProps;for(var k in r)k="_host_"+k,k in g&&(r=g[k],delete g[k],g.__data[k]=
r)}}};
H0t=function(g){return function(r,E,B){g.call(r.__templatizeOwner,E.substring(6),B[E])}};
GuJ=function(g,r,E,B){var w=E.hostProps||{},O;for(O in B.instanceProps){delete w[O];var M=B.notifyInstanceProp;M&&g.prototype._addPropertyEffect(O,g.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:RiV(M)})}if(B.forwardHostProp&&r.__dataHost)for(var u in w)E.hasHostProps||(E.hasHostProps=!0),g.prototype._addPropertyEffect(u,g.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:njQ()})};
RiV=function(g){return function(r,E,B){g.call(r.__templatizeOwner,r,E,B[E])}};
njQ=function(){return function(g,r,E){g.__dataHost._setPendingPropertyOrPath("_host_"+r,E[r],!0,!0)}};
Kk=function(g,r,E){if(av&&!DqX(g))throw Error("Od");E=E||{};if(g.__templatizeOwner)throw Error("Pd");g.__templatizeOwner=r;var B=(r?r.constructor:Ck)._parseTemplate(g),w=B.templatizeInstanceClass;w||(w=QzQ(g,B,E),B.templatizeInstanceClass=w);var O=DqX(g);Y0V(g,B,E,O);E=function(){return w.apply(this,arguments)||this};
_.f(E,w);E.prototype._methodHost=O;E.prototype.__dataHost=g;E.prototype.__templatizeOwner=r;E.prototype.__hostProps=B.hostProps;return E};
pmY=function(g,r,E){E=E.constructor._properties;g=g.propertyEffects;r=r.instanceProps;for(var B in g)if(!(E[B]||r&&r[B]))for(var w=g[B],O=0;O<w.length;O++){var M=w[O].info.part;if(!M.signature||!M.signature.static){console.warn("Property '"+B+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
szA=function(g,r){for(var E;r;)if(E=r.__dataHost?r:r.__templatizeInstance)if(E.__dataHost!=g)r=E.__dataHost;else return E;else r=(0,_.z5)(r).parentNode;return null};
X3=function(g){return g.localName==="slot"};
fpt=function(){for(var g=NH.prototype,r="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),E={},B=0;B<r.length;E={method$jscomp$30:void 0},B++)E.method$jscomp$30=r[B],g[E.method$jscomp$30]=function(w){return function(){return this.node[w.method$jscomp$30].apply(this.node,arguments)}}(E)};
$qV=function(g,r){for(var E={},B=0;B<r.length;E={name$jscomp$383:void 0},B++)E.name$jscomp$383=r[B],Object.defineProperty(g,E.name$jscomp$383,{get:function(w){return function(){return this.node[w.name$jscomp$383]}}(E),
configurable:!0})};
jzJ=function(){for(var g=NH.prototype,r=["textContent","innerHTML","className"],E={},B=0;B<r.length;E={name$jscomp$384:void 0},B++)E.name$jscomp$384=r[B],Object.defineProperty(g,E.name$jscomp$384,{get:function(w){return function(){return this.node[w.name$jscomp$384]}}(E),
set:function(w){return function(O){this.node[w.name$jscomp$384]=O}}(E),
configurable:!0})};
AlJ=function(){Iv=document.documentElement.getAttribute("dir");Iv=document.documentElement.getAttribute("dir");for(var g=0;g<m8.length;g++){var r=m8[g];r.__autoDirOptOut||r.setAttribute("dir",Iv)}};
t7A=function(){c3=!0;requestAnimationFrame(function(){c3=!1;b0B(JlX);setTimeout(function(){for(var g=0,r=ip.length;g<r;g++)PPQ(ip.shift())})})};
b0B=function(g){for(;g.length;)PPQ(g.shift())};
PPQ=function(g){var r=g[0],E=g[1];g=g[2];try{E.apply(r,g)}catch(B){setTimeout(function(){throw B;})}};
_.F7o=function(g,r,E){c3||t7A();JlX.push([g,r,E])};
_.Lk=function(g,r,E){c3||t7A();ip.push([g,r,E])};
CPD=function(g,r){r=r===void 0?!1:r;if(!eiL||!W7V||!eiL.handlesDynamicScoping)return null;var E=W7V.ScopingShim;if(!E)return null;var B=E.scopeForNode(g),w=(0,_.z5)(g).getRootNode(),O=function(M){if((0,_.z5)(M).getRootNode()===w){var u=Array.from(eiL.nativeMethods.querySelectorAll.call(M,"*"));u.push(M);for(M=0;M<u.length;M++){var l=u[M];if((0,_.z5)(l).getRootNode()===w){var Q=E.currentScopeForNode(l);Q!==B&&(Q!==""&&E.unscopeNode(l,Q),E.scopeNode(l,B))}}}};
O(g);return r?(r=new MutationObserver(function(M){for(var u=0;u<M.length;u++)for(var l=M[u],Q=0;Q<l.addedNodes.length;Q++){var z=l.addedNodes[Q];z.nodeType===Node.ELEMENT_NODE&&O(z)}}),r.observe(g,{childList:!0,
subtree:!0}),r):null};
K7o=function(){document.body.removeAttribute("unresolved")};
IpX=function(g){var r=g=g.replace(xqt,"").replace(apB,""),E=new XmL;E.start=0;E.end=r.length;for(var B=E,w=0,O=r.length;w<O;w++)if(r[w]==="{"){B.rules||(B.rules=[]);var M=B,u=M.rules[M.rules.length-1]||null;B=new XmL;B.start=w+1;B.parent=M;B.previous=u;M.rules.push(B)}else r[w]==="}"&&(B.end=w+1,B=B.parent||E);return N0A(E,g)};
N0A=function(g,r){var E=r.substring(g.start,g.end-1);g.parsedCssText=g.cssText=E.trim();g.parent&&(E=r.substring(g.previous?g.previous.end:g.parent.start,g.start-1),E=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(E),E=E.replace(mqc," "),E=E.substring(E.lastIndexOf(";")+1),E=g.parsedSelector=g.selector=E.trim(),g.atRule=E.indexOf("@")===0,g.atRule?E.indexOf("@media")===0?g.type=4:E.match(cll)&&(g.type=7,g.keyframesName=g.selector.split(mqc).pop()):E.indexOf("--")===
0?g.type=1E3:g.type=1);if(E=g.rules)for(var B=0,w=E.length,O=void 0;B<w&&(O=E[B]);B++)N0A(O,r);return g};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(g){return g.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var r=arguments[1],E=6-r.length;E--;)r="0"+r;return"\\"+r})};
i0S=function(g,r,E){E=E===void 0?"":E;var B="";if(g.cssText||g.rules){var w=g.rules;if(w&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(w))for(var O=0,M=w.length,u=void 0;O<M&&(u=w[O]);O++)B=i0S(u,r,B);else r?r=g.cssText:(r=g.cssText,r=r.replace(L7t,"").replace(V7A,""),r=r.replace(hil,"").replace(Z0D,"")),(B=r.trim())&&(B="  "+B+"\n")}B&&(g.selector&&(E+=g.selector+" {\n"),E+=B,g.selector&&(E+="}\n\n"));return E};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(g){g=g[0];return!!g&&!!g.selector&&g.selector.indexOf("--")===0};
vjD=function(g){if(g=ylt[g])g._applyShimCurrentVersion=g._applyShimCurrentVersion||0,g._applyShimValidatingVersion=g._applyShimValidatingVersion||0,g._applyShimNextVersion=(g._applyShimNextVersion||0)+1};
dqL=function(g){return g._applyShimCurrentVersion===g._applyShimNextVersion};
gIc=function(g){g._applyShimValidatingVersion=g._applyShimNextVersion;g._validating||(g._validating=!0,T0V.then(function(){g._applyShimCurrentVersion=g._applyShimNextVersion;g._validating=!1}))};
EID=function(g){if(!g)return"";typeof g==="string"&&(g=IpX(g));return i0S(g,rQV)};
BxV=function(g){!g.__cssRules&&g.textContent&&(g.__cssRules=IpX(g.textContent));return g.__cssRules||null};
S8o=function(g,r,E,B){if(g){var w=!1,O=g.type;if(B&&O===4){var M=g.selector.match(wvY);M&&(window.matchMedia(M[1]).matches||(w=!0))}O===1?r(g):E&&O===7?E(g):O===1E3&&(w=!0);if((g=g.rules)&&!w)for(w=0,O=g.length,M=void 0;w<O&&(M=g[w]);w++)S8o(M,r,E,B)}};
OZl=function(g,r){var E=g.indexOf("var(");if(E===-1)return r(g,"","","");a:{var B=0;var w=E+3;for(var O=g.length;w<O;w++)if(g[w]==="(")B++;else if(g[w]===")"&&--B===0)break a;w=-1}B=g.substring(E+4,w);E=g.substring(0,E);g=OZl(g.substring(w+1),r);O=B.indexOf(",");if(O===-1)return r(E,B.trim(),"",g);w=B.substring(0,O).trim();B=B.substring(O+1).trim();return r(E,w,B,g)};
USY=function(g){if(Vs!==void 0)return Vs;if(g.__cssBuild===void 0){var r=g.getAttribute("css-build");if(r)g.__cssBuild=r;else{a:{r=g.localName==="template"?g.content.firstChild:g.firstChild;if(r instanceof Comment&&(r=r.textContent.trim().split(":"),r[0]==="css-build")){r=r[1];break a}r=""}if(r!==""){var E=g.localName==="template"?g.content.firstChild:g.firstChild;E.parentNode.removeChild(E)}g.__cssBuild=r}}return g.__cssBuild||""};
q8X=function(g,r,E,B){for(var w=r._noAccessors,O=Object.getOwnPropertyNames(r),M=0;M<O.length;M++){var u=O[M];if(!(u in B))if(w)g[u]=r[u];else{var l=Object.getOwnPropertyDescriptor(r,u);l&&(l.configurable=!0,Object.defineProperty(g,u,l))}}for(var Q in MaD)r[Q]&&(E[Q]=E[Q]||[],E[Q].push(r[Q]))};
uaV=function(g,r,E){r=r||[];for(var B=g.length-1;B>=0;B--){var w=g[B];w?Array.isArray(w)?uaV(w,r):r.indexOf(w)<0&&(!E||E.indexOf(w)<0)&&r.unshift(w):console.warn("behavior is null, check for missing or 404 import")}return r};
lPX=function(g,r){for(var E in r){var B=g[E],w=r[E];g[E]=!("value"in w)&&B&&"value"in B?Object.assign({value:B.value},w):w}};
GGB=function(g,r,E){var B={},w=function(){return r.apply(this,arguments)||this};
_.f(w,r);w._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(M)for(var l=0,Q;l<M.length;l++)Q=M[l],Q.properties&&this.createProperties(Q.properties),Q.observers&&this.createObservers(Q.observers,Q.properties);g.properties&&this.createProperties(g.properties);g.observers&&this.createObservers(g.observers,g.properties);this._prepareTemplate()}else r._finalizeClass.call(this)};
w.prototype.created=function(){r.prototype.created.call(this);var l=B.created;if(l)for(var Q=0;Q<l.length;Q++)l[Q].call(this)};
w.prototype._registered=function(){var l=w.prototype;if(!l.hasOwnProperty("__hasRegisterFinished")){l.__hasRegisterFinished=!0;r.prototype._registered.call(this);e8&&u(l);l=Object.getPrototypeOf(this);var Q=B.beforeRegister;if(Q)for(var z=0;z<Q.length;z++)Q[z].call(l);if(Q=B.registered)for(z=0;z<Q.length;z++)Q[z].call(l)}};
w.prototype._applyListeners=function(){r.prototype._applyListeners.call(this);var l=B.listeners;if(l)for(var Q=0;Q<l.length;Q++){var z=l[Q];if(z)for(var k in z)this._addMethodEventListenerToNode(this,k,z[k])}};
w.prototype._ensureAttributes=function(){var l=B.hostAttributes;if(l)for(var Q=l.length-1;Q>=0;Q--){var z=l[Q],k;for(k in z)this._ensureAttribute(k,z[k])}r.prototype._ensureAttributes.call(this)};
w.prototype.ready=function(){r.prototype.ready.call(this);var l=B.ready;if(l)for(var Q=0;Q<l.length;Q++)l[Q].call(this)};
w.prototype.attached=function(){r.prototype.attached.call(this);var l=B.attached;if(l)for(var Q=0;Q<l.length;Q++)l[Q].call(this)};
w.prototype.detached=function(){r.prototype.detached.call(this);var l=B.detached;if(l)for(var Q=0;Q<l.length;Q++)l[Q].call(this)};
w.prototype.attributeChanged=function(l,Q,z){r.prototype.attributeChanged.call(this);var k=B.attributeChanged;if(k)for(var H=0;H<k.length;H++)k[H].call(this,l,Q,z)};
_.hx.Object.defineProperties(w,{properties:{configurable:!0,enumerable:!0,get:function(){var l={};if(M)for(var Q=0;Q<M.length;Q++)lPX(l,M[Q].properties);lPX(l,g.properties);return l}},
observers:{configurable:!0,enumerable:!0,get:function(){var l=[];if(M)for(var Q=0,z;Q<M.length;Q++)z=M[Q],z.observers&&(l=l.concat(z.observers));g.observers&&(l=l.concat(g.observers));return l}}});
if(E){Array.isArray(E)||(E=[E]);var O=r.prototype.behaviors;var M=uaV(E,null,O);w.prototype.behaviors=O?O.concat(E):M}var u=function(l){if(M)for(var Q=M,z=0;z<Q.length;z++)q8X(l,Q[z],B,DSo);q8X(l,g,B,oIB)};
e8||u(w.prototype);w.generatedFrom=g;return w};
HZY=function(g){var r=typeof g!=="string"?g:{is:g,notifyObserversOnUndefined:!0};r.fastInit===void 0&&(r.fastInit=!0);return function(E){if(!r.disableInheritanceCheck&&Object.getPrototypeOf(E.prototype).constructor!==_.ys)throw Error("Td");var B=E.prototype;B.is=r.is;n3c(B,"created",function(){this.hostElement=this;this.polymerController=this});
QxP(B,E,r.fastInit);r.notifyObserversOnUndefined&&(B._overrideLegacyUndefined=!0);if(zHt)for(var w=_.U(Object.getOwnPropertyNames(B)),O=w.next();!O.done;O=w.next()){O=O.value;var M=Object.getOwnPropertyDescriptor(B,O);M.enumerable===!1&&(M.enumerable=!0,Object.defineProperty(B,O,M))}if("template"in E)var u=function(){return E.template};
else r.template!==void 0&&(u=r.template);if(u!==void 0){var l;Object.defineProperty(B,"_template",{get:function(){l===void 0&&(l=u());return l},
set:function(Q){l=Q},
configurable:!0,enumerable:!0})}Polymer(B);E[kGY]=B}};
pvo=function(g){g=g===void 0?{}:g;g.fastInit===void 0&&(g.fastInit=!0);return function(r){if(!g.disableInheritanceCheck&&Object.getPrototypeOf(r.prototype).constructor!==v3)throw Error("Ud");QxP(r.prototype,r,g.fastInit)}};
QxP=function(g,r,E){E=E===void 0?!1:E;Y8c(r);E?n3c(g,"created",function(){this.disableEnforceFastDefaultValuesCheck||RHt(r,this)}):n3c(g,"ready",function(){for(var B={},w=_.U(slc(this.behaviors)),O=w.next();!O.done;O=w.next())O=O.value,O.properties&&Object.assign(B,nIV(this,O.properties));
Object.assign(B,nIV(this,this.properties));RHt(r,this);w=_.U(Object.keys(B));for(O=w.next();!O.done;O=w.next())O=O.value,this[O]=B[O]})};
RHt=function(g,r){if(zHt){g=new g;for(var E=_.U(Object.getOwnPropertyNames(g)),B=E.next();!B.done;B=E.next())B=B.value,r[B]=g[B];for(E=r;E&&E!==Object.prototype;E=Object.getPrototypeOf(E)){B=_.U(Object.getOwnPropertyNames(E));for(var w=B.next();!w.done;w=B.next())w=w.value,g.hasOwnProperty(w)||Object.defineProperty(g,w,sxl(r,w))}}else g.apply(r)};
sxl=function(g,r){return{get:function(){var E=g[r];return E instanceof Function?E.bind(g):E},
set:function(E){g[r]=E}}};
nIV=function(g,r){if(!r)return{};for(var E={},B=_.U(Object.keys(r)),w=B.next();!w.done;w=B.next())if(w=w.value,!r[w].readOnly){var O=g[w];O!==void 0&&(E[w]=O)}return E};
Y8c=function(g){var r=new g;g=g.prototype.properties||{};for(var E=_.U(Object.keys(g)),B=E.next();!B.done;B=E.next())if(B=B.value,r.hasOwnProperty(B)){var w=g[B];typeof w==="function"&&(g[B]=w={type:w});r[B]!=null&&w.type===Object&&(w.type=fPP(r[B].constructor))}};
fPP=function(g){for(var r=_.U($SX),E=r.next();!E.done;E=r.next())if(E=E.value,g===E)return E;return Object};
jxA=function(g){return function(r,E){r.behaviors=r.behaviors||[];r.behaviors.push(g||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",r,E).prototype:void 0));Object.defineProperty(r,E,{get:function(){return this},
enumerable:!0,configurable:!0})}};
AQt=function(g){g=g===void 0?{}:g;return function(r,E){r.properties=r.properties||{};g.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?g.type=fPP(Reflect.getMetadata("design:type",r,E)):g.type=String);var B=g,w=r.properties[E];r.properties[E]=w?Object.assign({},w,B):B}};
bZD=function(g){return function(r,E){r.listeners=r.listeners||{};r.listeners[g]=E}};
JQQ=function(){var g=_.fI.apply(0,arguments);if(g.length===0)throw Error("Vd");return function(r,E){r.observers=r.observers||[];r.observers.push(E+"("+g.join(",")+")")}};
PjV=function(){var g=_.fI.apply(0,arguments);return function(r,E,B){var w=Object.getOwnPropertyDescriptor(r,E).get,O="__compute__"+E;Object.defineProperty(r,O,{value:w,enumerable:!0});r.properties=r.properties||{};w=r.properties[E];w||(w={},r.properties[E]=w);w.computed=O+"("+g.join(",")+")";B.get=void 0}};
_.dH=function(g,r,E){_.f5.call(this);this.JSC$9351_id_=null;this.usingListeners_=!1;this.JSC$9351_listener_=g;this.handler_=E;this.JSC$9351_win_=r||window;this.callback_=(0,_.$r)(this.JSC$9353_doAction_,this)};
T5=function(g){this.range_=g};
gU=function(g){this.range_=g};
BE=function(g,r,E){_.f5.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=g;this.scrollTimer_=new _.rU(50);this.JSC$9430_eventHandler_=new _.EQ(this);this.scrollDelta_=new _.JL;this.containerIsActuallyContent_=g.tagName==="BODY"||g.tagName==="HTML";this.containerBounds_=taX(g);this.containerIsActuallyContent_&&(g=_.GM(),this.containerBounds_.height=g.height,this.containerBounds_.width=g.width);this.margin_=r||0;if(r){if(r=this.containerBounds_.clone(),g=this.margin_){var B=
Math.min(g,r.height*.25);r.top+=B;r.height-=2*B;g=Math.min(g,r.width*.25);r.left+=g;r.width-=2*g}}else r=this.containerBounds_;this.scrollBounds_=r;E||this.JSC$9430_eventHandler_.listen(_.tL(this.containerNode_),"mousemove",this.JSC$9432_onMouseMove);this.JSC$9430_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9432_onTick_)};
_.wU=function(g){this.mechanism=g};
SG=function(g,r){this.JSC$9528_key_=g;this.JSC$9528_value_=r};
eHY=function(g){if(g>=55296&&g<=57343||g>1114111)return"\ufffd";g in FeB&&(g=FeB[g]);var r="";g>65535&&(g-=65536,r+=String.fromCharCode(g>>>10&1023|55296),g=56320|g&1023);return r+=String.fromCharCode(g)};
WeQ=function(g,r){return g<r?1:-1};
KeX=function(){return function(g){return g.charAt(1)==="#"?g.charAt(2)==="X"||g.charAt(2)==="x"?eHY(parseInt(g.substr(3),16)):eHY(parseInt(g.substr(2),10)):Cjc[g.slice(1,-1)]}};
XvP=function(g){return g.slice(1,g.length-1).trim().replace(xSV,function(r){return aPt[r]||" "})};
OQ=function(g){return g===32||g===9};
UQ=function(g,r){return r<g.length?g.charCodeAt(r):-1};
NxB=function(g){for(;g;){if(g._lastLineBlank)return!0;var r=g.type;if(r==="list"||r==="item")g=g._lastChild;else break}return!1};
Mu=function(g){if(IPc.test(g)){var r=1,E=0,B=0;for(g[E]=="|"&&E++;E<g.length;){switch(g[E]){case "|":B=1;break;case " ":break;case "\t":break;default:B&&(B=0,r++)}E++}return mSo.test(g)?-r:r}return 0};
cQY=function(g){return g=="table"||g=="row"||g=="cell"};
iZB=function(){return new qu("document",[[1,1],[0,0]])};
LeV=function(){};
uG=function(){var g={safe:!1};g=g||{};g.softbreak=g.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=g};
vIS=function(g,r){var E="";if(g)if(g=g.toLowerCase(),g===" "||VaB.test(g))E="space";else if(hHA.test(g))E="esc";else if(g.length==1){if(!r||ZZl.test(g))E=g}else E=yQQ.test(g)?g.replace("arrow",""):g=="multiply"?"*":g;return E};
rXX=function(g,r){var E=g.hasModifiers;if(r.key)E=vIS(r.key,E);else if(r.detail&&r.detail.key)E=vIS(r.detail.key,E);else{E=r.keyIdentifier;var B="";E&&(E in dSL?B=dSL[E]:TxL.test(E)?(E=parseInt(E.replace("U+","0x"),16),B=String.fromCharCode(E).toLowerCase()):B=E.toLowerCase());(E=B)||(E=r.keyCode,B="",Number(E)&&(E>=65&&E<=90?B=String.fromCharCode(32+E):E>=112&&E<=123?B="f"+(E-112+1):E>=48&&E<=57?B=String(E-48):E>=96&&E<=105?B=String(E-96):B=g2l[E]),E=B);E=E||""}return E===g.key&&(!g.hasModifiers||
!!r.shiftKey===!!g.shiftKey&&!!r.ctrlKey===!!g.ctrlKey&&!!r.altKey===!!g.altKey&&!!r.metaKey===!!g.metaKey)};
BcQ=function(g){return g.length===1?{combo:g,key:g,event:"keydown"}:g.split("+").reduce(function(r,E){var B=E.split(":");E=B[0];B=B[1];E in E2V?(r[E2V[E]]=!0,r.hasModifiers=!0):(r.key=E,r.event=B||"keydown");return r},{combo:g.split(":").shift()})};
wLV=function(g){return g.trim().split(" ").map(function(r){return BcQ(r)})};
SzP=function(g,r){if(g&&g.fn){var E=g.fn;g.fn=function(){try{E.apply(this,arguments)}catch(B){if(B instanceof lG)console.warn("Argument '"+B.arg+"'"+(r?" for method '"+r+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw B;}}}return g};
OxS=function(){var g=_.fI.apply(0,arguments);return g.length===0?function(r){return r}:g.length===1?g[0]:g.reduce(function(r,E){return function(){return r(E.apply(null,_.jW(_.fI.apply(0,arguments))))}})};
UED=function(){var g=_.fI.apply(0,arguments);return function(r){return function(E,B){E=r(E,B);var w=function(){throw Error("Fe");},O={getState:E.getState,
dispatch:function(M){return w.apply(null,[M].concat(_.jW(_.fI.apply(1,arguments))))}};
B=g.map(function(M){return M(O)});
w=OxS.apply(null,_.jW(B))(E.dispatch);return Object.assign({},E,{dispatch:w})}}};
uil=function(g){Object.keys(g).forEach(function(r){var E=g[r];if(typeof E(void 0,{type:MIB})==="undefined")throw Error("Ge`"+r);if(typeof E(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+qzY()})==="undefined")throw Error("He`"+r+"`"+MIB);})};
DY=function(g){for(var r=Object.keys(g),E={},B=0;B<r.length;B++){var w=r[B];typeof g[w]==="function"&&(E[w]=g[w])}var O=Object.keys(E);try{uil(E)}catch(u){var M=u}return function(u,l){u=u===void 0?{}:u;if(M)throw M;for(var Q=!1,z={},k=0;k<O.length;k++){var H=O[k],R=u[H],A=(0,E[H])(R,l);if(typeof A==="undefined")throw u=l&&l.type,Error("Ie`"+(u?'"'+String(u)+'"':"(unknown type)")+"`"+H);z[H]=A;Q=Q||A!==R}return(Q=Q||O.length!==Object.keys(u).length)?z:u}};
ltS=function(g,r,E){function B(){if(z)throw Error("Je");return u}
function w(R){if(typeof R!=="function")throw Error("Ke`"+typeof R);if(z)throw Error("Le");var A=!0;Q===l&&(Q=l.slice());Q.push(R);return function(){if(A){if(z)throw Error("Me");A=!1;Q===l&&(Q=l.slice());var J=Q.indexOf(R);Q.splice(J,1);l=null}}}
function O(R){if(typeof R!=="object"||R===null)var A=!1;else{for(A=R;Object.getPrototypeOf(A)!==null;)A=Object.getPrototypeOf(A);A=Object.getPrototypeOf(R)===A}if(!A)throw Error("Ne`"+typeof R);if(typeof R.type==="undefined")throw Error("Oe");if(z)throw Error("Pe");try{z=!0,u=M(u,R)}finally{z=!1}A=l=Q;for(var J=0;J<A.length;J++)(0,A[J])();return R}
if(typeof r==="function"&&typeof E==="function"||typeof E==="function"&&typeof arguments[3]==="function")throw Error("Qe");typeof r==="function"&&typeof E==="undefined"&&(E=r,r=void 0);if(typeof E!=="undefined"){if(typeof E!=="function")throw Error("Re`"+typeof E);return E(ltS)(g,r)}if(typeof g!=="function")throw Error("Se`"+typeof g);var M=g,u=r,l=[],Q=l,z=!1;O({type:MIB});var k={},H=(k.dispatch=O,k.subscribe=w,k.getState=B,k.replaceReducer=function(R){if(typeof R!=="function")throw Error("Te`"+
typeof R);M=R;O({type:DEB});return H},k[o2l]=function(){var R={};
return R.subscribe=function(A){function J(){A.next&&A.next(B())}
if(typeof A!=="object"||A===null)throw new TypeError("Ue`"+typeof A);J();return{unsubscribe:w(J)}},R[o2l]=function(){return this},R},k);
return H};
GEc=function(g){function r(){w&&(w=!1,g());O&&B()}
function E(){requestAnimationFrame(r)}
function B(){var u=Date.now();if(w){if(u-M<2)return;O=!0}else w=!0,O=!1,setTimeout(E,20);M=u}
var w=!1,O=!1,M=0;return B};
oy=function(g){return typeof g==="number"?g:parseFloat(g)||0};
QUJ=function(g){return _.fI.apply(1,arguments).reduce(function(r,E){return r+oy(g["border-"+E+"-width"])},0)};
_.b=function(g,r){r=Pu(Ja(r));g.innerHTML=r};
Hxl=function(g){var r=z$A;r||(r=kEt(),r=z$A=_.jn.transpose(r));r=r[g];return typeof r==="string"?r:_.Gr(g)};
pLl=function(g){g=String(g).toLowerCase();var r=kEt()[g];return typeof r==="string"?r:_.Qk(g)};
Yzo=function(g){g=g.toLowerCase();g=kEt()[g];return typeof g==="string"?g:null};
kEt=function(){if(!R$X){for(var g=Object.assign({},n2D),r=_.U(sUA),E=r.next();!E.done;E=r.next())E=E.value,g[E.toLowerCase()]=E;R$X=g}return R$X};
jUV=function(g,r){var E=window.customElements;return E&&E.get(g)||ftJ[g]===!0?2:r.name==="HTMLUnknownElement"?1:r.name==="HTMLElement"&&$EL.test(g)?3:0};
JXA=function(g,r){switch(r){case "innerHTML":return AXB(g)===1?2:null;case "textContent":return g=AXB(g),g===1||g===6?1:null;default:var E,B;return(B=(E=bxA[g.localName])==null?void 0:E[r])!=null?B:null}};
AXB=function(g){var r=g.localName,E=jUV(r,g.constructor);switch(E){case 0:case 1:return PRS(r,g);case 3:case 2:return 1;default:_.MM(E,"got an unknown element classification")}};
PRS=function(g,r){var E=Object.hasOwnProperty.call(tIL,g)?tIL[g]:null;return E!==null?E:Object.hasOwnProperty.call(FqP,g)&&r instanceof SVGElement?FqP[g]:null};
e$B=function(g,r){return r};
CRt=function(g){return(g=g.split(WqB,2))?{url:g[0],metadata:g[1]}:null};
xED=function(g){var r=String(g.url).replace(Kql,encodeURIComponent);if(g=g.metadata){Kql.lastIndex=0;if(Kql.test(g))return null;r+=" "+g}return r};
Ito=function(g){function r(Q){var z=Q.localName;if(!Q.getAttribute("is")&&jUV(z,Q.constructor)===2){var k;return(k=l)!=null?k:l=document.createElement("polyresinuncustomized")}(Q=u[z])||(Q=u[z]=document.createElement(z));return Q}
var E=g.reportHandler||void 0,B=g.safeTypesBridge||atL,w=/^$/;if(g=g.allowedIdentifierPrefixes){g=_.U(g);for(var O=g.next();!O.done;O=g.next())w=new RegExp(w.source+"|^"+_.XLA(O.value))}E&&E(!1,"initResin",null);var M=NcP(w,B,E),u={},l=null;return function(Q,z,k){var H=Q.nodeType;if(H!==Node.ELEMENT_NODE){if(H===Node.TEXT_NODE){z=Q.parentElement;k=!z;if(z&&z.nodeType===Node.ELEMENT_NODE){H=z.localName;var R=jUV(H,z.constructor);switch(R){case 0:case 1:z=PRS(H,z);k=z===1||z===6;break;case 3:case 2:k=
!0;break;default:_.MM(R,"got an unknown element classification")}}if(k)return function(C){return""+B(C,"STRING",C)}}return function(C){if(!C&&C!==document.all)return C;
E&&E(!0,"Failed to sanitize "+(Q.parentElement&&Q.parentElement.nodeName)+" #text node to value "+C,Q.parentElement);return zr}}var A=Q.localName;
H=r(Q);var J=null;switch(k){case "attribute":if(pLl(z)in H)break;return function(C){return C};
case "property":if(z in H){J=JXA(H,z);break}if((R=Yzo(z))&&R in H)break;return function(C){return C};
default:_.MM(k,"got an unknown resin type, expected either 'property' or 'attribute'")}var e=k==="attribute"?z.toLowerCase():Hxl(z);J||(J=O9l(A,e,function(C){var X=Q.getAttribute(C);return!X||/[\[\{]/.test(C)?null:X}));
return function(C){var X=ky,Z=null;if(!C&&C!==document.all)return C;if(J!=null){var c=M[J],h=c.safeType;Z=c.safeReplacement;h&&(X=B(C,h,ky));X===ky&&(c.filterString?(X=String(B(C,"STRING",C)),X=c.filterString(A,e,X)):c.filterRaw&&(X=c.filterRaw(A,e,C,Q)),X===Z&&(X=ky))}X===ky&&(X=Z||zr,E&&E(!0,"Failed to sanitize attribute of <"+A+">: <"+A+" "+e+'="'+C+'">',Q));return X}}};
NcP=function(g,r,E){return[,{filterRaw:function(B,w,O){return O},
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:mED,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:mED,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:zr,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:cXX,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(B,w,O){O=
String(O).toLowerCase();return qeo(B,w,O)?O:zr},
safeReplacement:zr,safeType:void 0},,{filterRaw:void 0,filterString:function(B,w,O){return g.test(O)?O:zr},
safeReplacement:zr,safeType:"CONSTANT"},{filterRaw:function(B,w,O,M){if(typeof O==="string")var u=(u=O.match(ixl))?u.map(CRt).filter(Boolean):[];else if(Array.isArray(O))u=O;else return mED;var l=u;u=[];var Q=[],z={};if(Array.isArray(l))for(var k=0,H=l.length;k<H;++k){var R=l[k],A=R&&R.url;if(A){var J=r(A,"URL",z);if(J){var e=J!==z;(e?u:Q).push({url:e?J:A,metadata:R.metadata})}}}else Q.push(l);l=Q.length?JSON.stringify(Q):null;Q=ky;if(u.length){if(!Array.isArray(u))throw Error();Q=u.map(xED).filter(Boolean).join(" , ")||
ky}l&&E&&E(!0,"Failed to sanitize attribute value of <"+B+">: <"+B+" "+w+'="'+O+'">: '+l,M);return Q===ky?mED:Q},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
LqX=function(g){var r=Ito(g);return function(E,B,w,O){return O||O===document.all?r(E,B,w)(O):O}};
HE=function(g,r){function E(){function w(u,l,Q){for(l=Reflect.getMetadata("parameters",u)||[];l.length<=Q;)l.push(null);l[Q]=l[Q]||[];l[Q].push(M);Reflect.defineMetadata(l,u);return u}
var O=_.fI.apply(0,arguments);if(this instanceof E)return B.apply(this,O),this;var M=new (Function.prototype.bind.apply(E,[null].concat(_.jW(O))));w.annotation=M;return w}
var B=VIl(r);E.prototype.toString=function(){return"@"+g};
return E.annotationCls=E};
VIl=function(g){return function(){var r=_.fI.apply(0,arguments),E=this;g.forEach(function(B,w){w=r[w];if(Array.isArray(B))E[B[0]]=w&&w!==void 0?w:B[1];else for(var O in B)E[O]=w&&w[O]!==void 0?w[O]:B[O]})}};
h$A=function(g){return g!==void 0&&g!==null};
pM=function(g){if(typeof g==="string")return g;if(g===void 0||g===null)return""+g;if(g.overriddenName)return g.overriddenName;if(g.name)return g.name;g=g.toString();var r=g.indexOf("\n");return r===-1?g:g.substring(0,r)};
Zxl=function(g){g.__forward_ref__=Zxl;g.toString=function(){return pM(this())};
return g};
Yy=function(g){return typeof g==="function"&&g.hasOwnProperty("__forward_ref__")&&g.__forward_ref__===Zxl?g():g};
yXP=function(g){return g?g.map(function(r){return new (Function.prototype.bind.apply(r.type.annotationCls,[null].concat(_.jW(r.args?r.args:[]))))}):[]};
v2X=function(g){for(var r=[],E=0;E<g.length;++E){if(r.indexOf(g[E])>-1){r.push(g[E]);break}r.push(g[E])}return r};
dEc=function(g){return g.length>1?" ("+v2X(g.slice().reverse()).map(function(r){return pM(r.token)}).join(" -> ")+")":""};
g4l=function(g,r,E,B){if(B){var w=Error("af``"+(B instanceof Error?B.message:B));w.ngOriginalError=B}else w=Error();w.addKey=Tct;w.keys=[r];w.injectors=[g];w.constructResolvingMessage=E;w.message=w.constructResolvingMessage();w.ngOriginalError=B;return w};
Tct=function(g,r){this.injectors.push(g);this.keys.push(r);this.message=this.constructResolvingMessage()};
rqJ=function(g,r){return g4l(g,r,function(){return"No provider for "+pM(this.keys[0].token)+"!"+dEc(this.keys)})};
E4S=function(g,r){return g4l(g,r,function(){return"Cannot instantiate cyclic dependency!"+dEc(this.keys)})};
B5A=function(g,r,E){return g4l(g,E,function(){var B=pM(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+B+"!"+dEc(this.keys)+"."},r)};
wgP=function(g,r){for(var E=[],B=0,w=r.length;B<w;B++){var O=r[B];O&&O.length!=0?E.push(O.map(pM).join(" ")):E.push("?")}return Error("ef`"+pM(g)+"`"+E.join(", ")+"`"+pM(g))};
lwJ=function(g){var r=void 0,E=void 0;if(g&&g.useClass!==void 0){r=g.useClass;var B=Yy(g.useClass);var w=ShV.factory(B);B=OVB(B)}else g&&g.useExisting!==void 0?(w=function(O){return O},B=[UfJ(Ry.get(Yy(g.useExisting)))]):g&&g.useFactory!==void 0?(w=g.useFactory,B=M5o(g.useFactory,g.deps)):(E=g.useValue,w=function(){return g.useValue},B=qhA);
return new uxX(w,B,r,E)};
o4A=function(g){return new DfA(Ry.get(Yy(g.provide)),[lwJ(g)],g.multi)};
QoP=function(g){g=Gko(g,[]).map(o4A);for(var r=new Map,E=0;E<g.length;E++){var B=g[E],w=r.get(B.key.id);if(w){if(B.multiProvider!==w.multiProvider)throw Error("gf`"+w+"`"+B);if(B.multiProvider)for(var O=0;O<B.resolvedFactories.length;O++)w.resolvedFactories.push(B.resolvedFactories[O]);else r.set(B.key.id,B)}else w=void 0,B.multiProvider?w=new DfA(B.key,B.resolvedFactories.slice(),B.multiProvider):w=B,r.set(B.key.id,w)}return Array.from(r.values())};
Gko=function(g,r){g.forEach(function(E){if(E instanceof zat)r.push({provide:E,useClass:E});else if(E&&typeof E=="object"&&E.provide!==void 0)r.push(E);else if(E instanceof Array)Gko(E,r);else throw Error("df`"+E);});
return r};
M5o=function(g,r){if(r){var E=r.map(function(B){return[B]});
return r.map(function(B){return kkD(g,B,E)})}return OVB(g)};
OVB=function(g){var r=ShV.parameters(g);if(!r)return[];if(r.some(function(E){return E==null}))throw wgP(g,r);
return r.map(function(E){return kkD(g,E,r)})};
kkD=function(g,r,E){var B=null,w=!1;if(!Array.isArray(r))return r instanceof HVB?pgX(r.token,w,null):pgX(r,w,null);for(var O=null,M=0;M<r.length;++M){var u=r[M];if(u instanceof zat)B=u;else if(u instanceof HVB)B=u.token;else if(u instanceof Yho)w=!0;else if(u instanceof RaA||u instanceof n4L)O=u}B=Yy(B);if(B!=null)return pgX(B,w,O);throw wgP(g,E);};
pgX=function(g,r,E){return new soS(Ry.get(Yy(g)),r,E)};
fwl=function(g,r){for(var E=Array(g.providers.length),B=0;B<g.providers.length;++B){var w=B;if(B<0||B>=g.providers.length)throw Error("ff`"+B);E[w]=r(g.providers[B])}return E};
$ft=function(g){return typeof g==="function"&&ShV.parameters(g).every(function(r){return!!r})};
bVo=function(g){var r=jot;AqQ.get(g)||AqQ.set(g,new r);return AqQ.get(g)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(g){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(g)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(g){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(g)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(g,r){var E,B;if(g.contains(r))return!0;g=_.nM(g).querySelectorAll("content,slot");for(E=0;E<g.length;++E){var w=_.nM(g[E]).getDistributedNodes();for(B=0;B<w.length;++B)if(w[B].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(w[B],r))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(g){g.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(g)&&g.preventDefault();g.targetTouches&&(g=g.targetTouches[0],JqJ=g.pageX,P6A=g.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 g=0,r=sQ.length;g<r;g++)document.addEventListener(sQ[g],_._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 g=0,r=sQ.length;g<r;g++)document.removeEventListener(sQ[g],_._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(g){var r=_.nM(g).rootTarget;g.type!=="touchmove"&&t5o!==r&&(t5o=r,FFo=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.nM(g).path));if(!FFo.length)return!0;if(g.type==="touchstart")return!1;g=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(g);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(FFo,g.deltaX,g.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(g){for(var r=[],E=g.indexOf(eaV),B=0;B<=E;B++)if(g[B].nodeType===Node.ELEMENT_NODE){var w=g[B],O=w.style;O.overflow!=="scroll"&&O.overflow!=="auto"&&(O=window.getComputedStyle(w));O.overflow!=="scroll"&&O.overflow!=="auto"||r.push(w)}return r};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(g,r,E){if(r||E)for(var B=Math.abs(E)>=Math.abs(r),w=0;w<g.length;w++){var O=g[w];if(B?E<0?O.scrollTop>0:O.scrollTop<O.scrollHeight-O.clientHeight:r<0?O.scrollLeft>0:O.scrollLeft<O.scrollWidth-O.clientWidth)return O}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(g){var r={deltaX:g.deltaX,deltaY:g.deltaY};"deltaX"in g||("wheelDeltaX"in g&&"wheelDeltaY"in g?(r.deltaX=-g.wheelDeltaX,r.deltaY=-g.wheelDeltaY):"wheelDelta"in g?(r.deltaX=0,r.deltaY=-g.wheelDelta):"axis"in g?(r.deltaX=g.axis===1?g.detail:0,r.deltaY=g.axis===2?g.detail:0):g.targetTouches&&(g=g.targetTouches[0],r.deltaX=JqJ-g.pageX,r.deltaY=P6A-g.pageY));return r};
WFA=function(g){this.element=g;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
KFl=function(g){this.element=g;this.color=window.getComputedStyle(g).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");_.nM(this.waveContainer).appendChild(this.wave);C6V(this)};
fM=function(g,r){for(var E in g)if(E.toLowerCase()===r.toLowerCase())return g[E]};
xfA=function(g,r){for(var E in g)if(E.toLowerCase()===r.toLowerCase()){delete g[E];break}};
XgY=function(g){g=_.jn.clone(g);for(var r=0;r<awA.length;++r){var E=awA[r],B=fM(g,E);B&&(g["X-Goog-Upload-Header-"+E]=B,xfA(g,E))}return g};
N5X=function(g){g=_.jn.clone(g);xfA(g,"X-Goog-Upload-Status")};
mfA=function(g){return IwB.some(function(r){return r.test(g)})};
V5Y=function(g,r){var E;var B=(E=g.formContent)==null?void 0:E.locale;E=B==null?void 0:B.split("-")[0];B=B&&cqB.includes(B)?B:E&&cqB.includes(E)?E:void 0;B=(B!=null?B:"en").replaceAll("-","_").toLowerCase();var w;g=((w=g.initializationData)==null?0:w.useNightlyRelease)?"nightly":"live";var O;return(r==null?0:(O=r.getEnableAlohaBinarySplit)==null?0:O.call(r))?_.wF(iVc,g):_.wF(LFo,g,B)};
yqQ=function(g,r,E,B){if(haD&&ZVt===r)return haD;ZVt=r;var w=V5Y(g,B);return haD=r.feedbackV2GlobalObject?Promise.resolve(r.feedbackV2GlobalObject):new Promise(function(O,M){var u=_.HT("SCRIPT");_.mg(u,w);u.onload=function(){r.feedbackV2GlobalObject?O(r.feedbackV2GlobalObject):M(Error("kf"))};
u.onerror=function(){M(Error("lf`"+w.toString()))};
E.body.appendChild(u)})};
T5l=function(g,r,E,B){if(v4B&&dfc===r)return v4B;dfc=r;var w=V5Y(g,B);return v4B=r.feedbackV2GlobalObject?Promise.resolve(r.feedbackV2GlobalObject):new Promise(function(O,M){var u=_.HT("SCRIPT");_.mg(u,w);u.onload=function(){r.feedbackV2GlobalObject?O(r.feedbackV2GlobalObject):M(Error("kf"))};
u.onerror=function(){M(Error("lf`"+w.toString()))};
E.body.appendChild(u)})};
g$A=function(g,r,E,B,w){w=w===void 0?!0:w;var O,M,u,l,Q;return _.q(function(z){switch(z.nextAddress){case 1:return O=Date.now(),_.D(z,yqQ(g,E,B,r),2);case 2:M=z.yieldResult;if(!(w||((l=g.initializationData)==null?0:l.useNightlyRelease)||((Q=g.initializationData)==null?0:Q.isLocalServer))){u=M.initializeFeedbackClient(g,O,r);z.jumpTo(3);break}return _.D(z,M.initializeFeedbackClientAsync(g,O,r),4);case 4:u=z.yieldResult;case 3:return u.initiateAloha(),z.return(u)}})};
reA=function(g,r,E,B){var w,O,M;return _.q(function(u){if(u.nextAddress==1)return w=Date.now(),_.D(u,T5l(g,E,B.document,r),2);if(u.nextAddress!=3)return O=u.yieldResult,_.D(u,O.initializeFeedbackClientAsync(g,w,r,B),3);M=u.yieldResult;M.initiateAloha();return u.return(M)})};
E$P=function(g,r,E){var B=!0;B=B===void 0?!0:B;var w,O,M,u,l,Q,z,k,H,R;return _.q(function(A){w=E||_.ED;if((O=r)==null?0:(u=(M=O).getEnableAlohaBinarySplit)==null?0:u.call(M)){l=w;if(l.isFormOpened)throw Q=Error("mf"),Q.name="DuplicateFormError",Q;l.isFormOpened=!0;g.callbacks=g.callbacks||{};z=g.callbacks.onClose||function(){};
g.callbacks.onClose=function(J){l.isFormOpened=!1;z(J)};
try{return A.return(reA(g,r,l,w))}catch(J){throw l.isFormOpened=!1,J;}}else{k=w;if(k.isFormOpened)throw H=Error("mf"),H.name="DuplicateFormError",H;k.isFormOpened=!0;g.callbacks=g.callbacks||{};R=g.callbacks.onClose||function(){};
g.callbacks.onClose=function(J){k.isFormOpened=!1;R(J)};
try{return A.return(g$A(g,r,k,w.document,B))}catch(J){throw k.isFormOpened=!1,J;}}_.Q3(A)})};
UnY=function(g,r){return _.q(function(E){return E.return(new Promise(function(B){var w=B9S(r!=null?r:"")+"/aloha_form_properties?productId="+g;w2c(w,function(O){O=O.target;var M=null;try{var u=JSON,l=u.stringify;if(O.JSC$7885_xhr_){var Q=O.JSC$7885_xhr_.responseText;Q.indexOf(")]}'\n")==0&&(Q=Q.substring(5));var z=(0,_.$y)(Q)}else z=void 0;M=BkD(SGQ,l.call(u,z))}catch(k){l=new SGQ,z=OcS(),z=_.jG(z,13,!1),z=_.jG(z,14,!0),z=_.jG(z,15,!0),z=_.jG(z,20,!1),M=_.Bu(l,1,z)}B(M)},"GET","",{},2E3,!0)}))})};
B9S=function(g){return mfA(g)?g:"https://www.google.com/tools/feedback"};
lfc=function(g){g=g.match(new RegExp(MwY,"gi"))||[];g=_.U(g);for(var r=g.next();!r.done;r=g.next()){r=r.value;a:{var E=_.U(qGV);for(var B=E.next();!B.done;B=E.next())if(B.value.test(r)){E=!1;break a}E=!0}if(!E)a:{E=_.U(u5L);for(B=E.next();!B.done;B=E.next())if(B.value.test(r)){E=!0;break a}E=!1}if(E)return!0}return!1};
DnP=function(g){switch(g){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"}};
Gec=function(g){if(window.crypto&&window.crypto.getRandomValues)try{var r=Array(g),E=new Uint8Array(g);window.crypto.getRandomValues(E);for(var B=0;B<r.length;B++)r[B]=E[B];return r}catch(O){}r=Array(g);for(E=0;E<g;E++){B=Date.now();for(var w=0;w<B%23;w++)r[E]=Math.random();r[E]=Math.floor(Math.random()*256)}if(o$V)for(E=1,B=0;B<o$V.length;B++)r[E%g]^=r[(E-1)%g]/4^o$V.charCodeAt(B),E++;return r};
AF=function(g){g=Gec(g);for(var r=[],E=0;E<g.length;E++)r.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(g[E]&63));return r.join("")};
zgc=function(g){g&&_.Jn("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Qwo,clientScreenNonce:g})};
keB=function(g){return _.Ca("client-screen-nonce-store",{})[g===void 0?0:g]};
HcL=function(g,r){r=r===void 0?0:r;var E=_.Ca("client-screen-nonce-store");E||(E={},_.W0("client-screen-nonce-store",E));E[r]=g};
p2l=function(g){g=g===void 0?0:g;return g===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+g};
YGc=function(g){return _.Ca(p2l(g===void 0?0:g))};
_.JF=function(g){return(g=YGc(g===void 0?0:g))?new _.bG({veType:g,youtubeData:void 0,jspbYoutubeData:void 0}):null};
RgV=function(){var g=_.Ca("csn-to-ctt-auth-info");g||(g={},_.W0("csn-to-ctt-auth-info",g));return g};
n$P=function(){return Object.values(_.Ca("client-screen-nonce-store",{})).filter(function(g){return g!==void 0})};
_.PE=function(g){g=keB(g===void 0?0:g);if(!g&&!_.Ka("USE_CSN_FALLBACK",!0))return null;g||(g="UNDEFINED_CSN");return g?g:null};
ffV=function(g){for(var r=_.U(Object.values(swo)),E=r.next();!E.done;E=r.next())if(_.PE(E.value)===g)return!0;return!1};
$nS=function(g,r,E){var B=RgV();(E=_.PE(E))&&delete B[E];r&&(B[g]=r)};
tF=function(g){return RgV()[g]};
_.Fp=function(g,r,E,B){E=E===void 0?0:E;if(g!==keB(E)||r!==_.Ca(p2l(E)))if($nS(g,B,E),HcL(g,E),_.W0(p2l(E),r),r=function(){setTimeout(function(){zgc(g)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(r)}catch(w){r()}else r()};
jwl=function(g,r){r=r===void 0?"":r;var E=[],B;for(B in g)if(g.hasOwnProperty(B)){var w=r!==""?r+"."+B:B;typeof g[B]==="object"?E.push.apply(E,_.jW(jwl(g[B],w))):E.push([w,g[B]])}E.sort();return E};
_.WE=function(g){var r=_.fI.apply(1,arguments);if(!eG(g)||r.some(function(B){return!eG(B)}))throw Error("nf");
r=_.U(r);for(var E=r.next();!E.done;E=r.next())AeL(g,E.value)};
AeL=function(g,r){for(var E in r)if(eG(r[E])){if(E in g&&!eG(g[E]))throw Error("of");E in g||(g[E]={});AeL(g[E],r[E])}else if(bcA(r[E])){if(E in g&&!bcA(g[E]))throw Error("pf");E in g||(g[E]=[]);JeQ(g[E],r[E])}else g[E]=r[E];return g};
JeQ=function(g,r){r=_.U(r);for(var E=r.next();!E.done;E=r.next())E=E.value,eG(E)?g.push(AeL({},E)):bcA(E)?g.push(JeQ([],E)):g.push(E);return g};
eG=function(g){return typeof g==="object"&&!Array.isArray(g)};
bcA=function(g){return typeof g==="object"&&Array.isArray(g)};
twP=function(g){for(var r=_.U(Object.entries(P8D)),E=r.next();!E.done;E=r.next())if(E=_.U(E.value),E.next(),E=E.next().value,E==="SLI_STATUS_"+g)return E;return"SLI_STATUS_UNKNOWN"};
_.CM=function(g,r,E,B){return FCo(g,r,function(){return new _.egQ(g,r,E,B)})};
_.WCQ=function(){return _.CM("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
C8S=function(){return _.CM("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
KM=function(){return _.CM("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
KCQ=function(){return _.CM("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
xnl=function(){return _.CM("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
afL=function(){return _.CM("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
IfV=function(g){g&&(g.dataset?g.dataset[X2l()]="true":_.ii([_.EY(N9X)],g,"data-loaded","true".toString()))};
mnY=function(g){return g?g.dataset?g.dataset[X2l()]:g.getAttribute("data-loaded"):null};
X2l=function(){return ceS.loaded||(ceS.loaded="loaded".replace(/\-([a-z])/g,function(g,r){return r.toUpperCase()}))};
_.xy=function(g,r,E){icl(g,r,E===void 0?null:E)};
_.VwP=function(g,r){g&&r&&(g=""+_.Ew(r),(g=LCD[g])&&_.ZyA(g))};
icl=function(g,r,E){E=E===void 0?null:E;var B=_.hgA(g),w=document.getElementById(B),O=w&&mnY(w),M=w&&!O;O?r&&r():(r&&(O=_.Oq(B,r),r=""+_.Ew(r),LCD[r]=O),M||(w=Zcl(g,B,function(){mnY(w)||(IfV(w),_.yOJ(B),_.Me(function(){_.d8t(B)},0))},E)))};
Zcl=function(g,r,E,B){B=B===void 0?null:B;var w=_.HT("SCRIPT");w.id=r;w.onload=function(){E&&setTimeout(E,0)};
w.onreadystatechange=function(){switch(w.readyState){case "loaded":case "complete":w.onload()}};
B&&w.setAttribute("nonce",B);_.mg(w,_.Ay(g));g=document.getElementsByTagName("head")[0]||document.body;g.insertBefore(w,g.firstChild);return w};
_.hgA=function(g){var r=document.createElement("a");Aa(r,g);return"js-"+ay(r.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
yet=function(g){var r=_.Ca("INNERTUBE_HOST_OVERRIDE");r&&(g=String(r)+String(_.Xp(g)));return g};
v$Y=function(g){var r={};_.Y("json_condensed_response")&&(r.prettyPrint="false");return g=p3P(g,r)};
_.Nu=function(g){return v0(g)?"same-origin":"include"};
_.Iy=function(g){return v0(g)?"same-origin":"cors"};
mx=function(g,r,E){E=E===void 0?{}:E;g={method:r===void 0?"POST":r,mode:_.Iy(g),credentials:_.Nu(g)};r={};for(var B=_.U(Object.keys(E)),w=B.next();!w.done;w=B.next())w=w.value,E[w]&&(r[w]=E[w]);Object.keys(r).length>0&&(g.headers=r);return g};
_.iG=function(g,r){r=r===void 0?{}:r;return"service:"+g+"/"+Object.keys(r).sort().map(function(E){return E+":"+r[E]}).join("/")};
dnA=function(g){var r,E,B,w;g=(r=_.n(g,_.LM))==null?void 0:(E=r.watchEndpointSupportedOnesieConfig)==null?void 0:(B=E.html5PlaybackOnesieConfig)==null?void 0:(w=B.commonConfig)==null?void 0:w.url;if(!g)return[];r=new _.Vk(g);return r.JSC$8122_domain_?["https://"+r.JSC$8122_domain_+"/generate_204"]:[]};
_.r1l=function(){return T9D()||syl()||g0Y&&F1("version/")?!0:_.Ca("EOM_VISITOR_DATA")?!1:!0};
E0Y=function(g){var r=g.docid||g.video_id||g.videoId||g.id;if(r)return r;r=g.raw_player_response;r||(g=g.player_response)&&(r=JSON.parse(g));return r&&r.videoDetails&&r.videoDetails.videoId||null};
BjV=function(g){return g.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
hF=function(g){return!isNaN(Number(g))&&!_.qo(g)};
_.yk=function(g,r,E,B){B=B===void 0?!0:B;var w=_.Ca("VALID_SESSION_TEMPDATA_DOMAINS",[]),O=_.Zn(window.location.href);O&&w.push(O);O=_.Zn(g);if(_.mA(w,O)||!O&&_.wl(g,"/"))if(w=document.createElement("a"),Aa(w,g),g=w.href)if(g=_.Xp(g),g=_.ZY(g))B&&!r.csn&&(r.itct||r.ved)&&(r=Object.assign({csn:_.PE()},r)),E?(E=parseInt(E,10),isFinite(E)&&E>0&&wSV(g,r,E)):wSV(g,r)};
OUY=function(g){var r=_.Ca("VALID_SESSION_TEMPDATA_DOMAINS",[]),E=_.Zn(window.location.href);E&&r.push(E);E=_.Zn(g);if(!(_.mA(r,E)||!E&&_.wl(g,"/")))return null;g=_.Xp(g);(g=_.ZY(g))?(g=SLl(g),g=(g=_.zZ.get(g,void 0)||null)?_.c0(g):{}):g=null;return g};
wSV=function(g,r,E){g=SLl(g);r=r?_.oj(r):"";E=E||5;_.r1l()&&_.kA(g,r,E)};
SLl=function(g){for(var r=_.U(Uct),E=r.next();!E.done;E=r.next())g=_.vE(g,E.value);return"ST-"+ay(g).toString(36)};
MYP=function(g,r){g.commandMetadata&&_.n(g.commandMetadata,_.dU)&&_.n(g.commandMetadata,_.dU).url&&(g=_.iu(_.n(g.commandMetadata,_.dU).url).adurl)&&_.RUt(g)&&_.yk(_.Xp(g),{encoded_ad_playback_context:r})};
_.qLD=function(g){if(g.requestFullscreen)g=g.requestFullscreen(void 0);else if(g.webkitRequestFullscreen)g=g.webkitRequestFullscreen();else if(g.mozRequestFullScreen)g=g.mozRequestFullScreen();else if(g.msRequestFullscreen)g=g.msRequestFullscreen();else if(g.webkitEnterFullscreen)g=g.webkitEnterFullscreen();else return Promise.reject(Error("yf"));return g instanceof Promise?g:Promise.resolve()};
_.gX=function(g){var r;_.K$l(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.Tr()==g&&(r=document):r=g;if(r&&(g=_.K$l(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],r))){g.call(r)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.Tr=function(){var g=g===void 0?!1:g;var r=_.K$l(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(g)for(;r&&r.shadowRoot;)r=r.shadowRoot.fullscreenElement;return r?r:null};
_.rX=function(g,r){r=r===void 0?!0:r;g.addEventListener("wheel",u8S);g.overscrollConfig={cooldown:r}};
_.ES=function(g){g.overscrollConfig=void 0;g.removeEventListener("wheel",u8S)};
u8S=function(g){var r=g.deltaY,E=g.target,B=null;if(window.Polymer&&window.Polymer.Element){if(E=g.path||g.composedPath&&g.composedPath()){E=_.U(E);for(var w=E.next();!w.done&&(w=w.value,!lXl(w,r));w=E.next())if(w.overscrollConfig){B=w;break}}}else for(;E&&!lXl(E,r);){if(E.overscrollConfig){B=E;break}E=E.parentElement}B&&(r=B.overscrollConfig,r.cooldown?(B=g.deltaY,E=r.lastDeltaY||0,r.lastDeltaY=B,w=r.lastStopped||0,E&&w&&E>0==B>0?Math.abs(E)>=Math.abs(B)?(B=w+1200,E=!1):(B=w+600,E=!0):(B=Date.now()+
600,E=!0),B>Date.now()&&(g.preventDefault(),E&&(r.lastStopped=Date.now()))):g.preventDefault())};
lXl=function(g,r){return r<0&&g.scrollTop>0||r>0&&g.scrollTop<g.scrollHeight-g.clientHeight-1?(g=getComputedStyle(g).overflowY,g=="auto"||g=="scroll"):!1};
_.Sh=function(g,r,E,B){B||(B={bubbles:!0,cancelable:!1,composed:!0});E!==null&&E!==void 0&&(B.detail=E);var w=new CustomEvent(r,B);_.Y("untrack_fire_custom_event_killswitch")?g.dispatchEvent(w):uQ(function(){return void g.dispatchEvent(w)});
return w};
DcQ=function(g){var r=window,E=function(B){r.removeEventListener("yt-navigate-start",E);return g.call(r,B)};
r.addEventListener("yt-navigate-start",E,void 0)};
_.OS=function(g,r,E,B){r=new o0t(r,!(B===void 0||!B),E);_.Sh(g,"yt-action",r);return r.returnValue};
_.US=function(g,r,E){return _.OS(g,r,E,!0)};
_.M2=function(g,r,E){return _.OS(g,r,E)[0]};
_.uq=function(g,r,E,B){r&&r.length&&r.forEach(function(w){var O=Wcl(w);O&&(_.Y("handle_service_request_actions")&&w.commandMetadata&&w.commandMetadata.webCommandMetadata&&w.commandMetadata.webCommandMetadata.sendPost?_.q2(E?E:g,[w]):_.US(g,O,[w,E,B]))})};
_.q2=function(g,r){var E=[g];r&&E.push.apply(E,r);r=_.OS(g,"yt-service-request",E);return r.length>0&&(r=r[0],_.Sh(g,"yt-service-request-sent",r),r&&r.ajaxPromise)?(r.ajaxPromise.then(function(B){_.Sh(g,"yt-service-request-completed",B)},function(B){_.Sh(g,"yt-service-request-error",{error:B,
params:E})},g),r.ajaxPromise):_.lq()};
_.o6=function(g,r){if(_.Y("handle_service_request_actions"))_.uq(r,g,r);else{g=_.U(g);for(var E=g.next();!E.done;E=g.next()){E=E.value;var B=void 0;((B=_.n(E,_.D$))==null?0:B.commands)?_.o6(_.n(E,_.D$).commands,r):(B=void 0,((B=_.n(E,_.Gn))==null?0:B.actions)?_.o6(_.n(E,_.Gn).actions,r):(B=void 0,((B=_.n(E.commandMetadata,_.dU))==null?0:B.sendPost)?_.q2(r,[E]):_.uq(r,[E],r)))}}};
_.Q2t=function(g,r,E){r=r===void 0?{}:r;typeof r==="function"&&(r={callback:r});E||r._c&&r._c.jsl&&r._c.jsl.h||_.jn.extend(r,{_c:{jsl:{h:_.Ca("GAPI_HINT_PARAMS")}}});(r.gapiHintOverride||_.Ca("GAPI_HINT_OVERRIDE"))&&(E=_.iu(document.location.href).gapi_jsh)&&_.jn.extend(r,{_c:{jsl:{h:E}}});GgP(g,r)};
_.zn=function(g,r,E){r=r===void 0?{}:r;g=(g=g in Q_?Q_[g]:E)||"";E={};for(var B in r){E={key$jscomp$794:E.key$jscomp$794};E.key$jscomp$794=B;var w=function(O){return function(){return String(r[O.key$jscomp$794])}}(E);
g=g.replace(new RegExp("\\$\\{"+E.key$jscomp$794+"\\}","gi"),w);g=g.replace(new RegExp("\\$"+E.key$jscomp$794,"gi"),w)}return g};
_.kg=function(g,r){return zqD(g in Q_?Q_[g]:{},r)};
zqD=function(g,r){var E=_.Ca("I18N_PLURAL_RULES");E||(E=function(B){return B==1?"one":"other"});
return(g=g["case"+r]||g[E(r)])?g.replace("#",r.toString()):r+""};
pSA=function(g){var r=kgS(g),E=document.getElementById(r),B=E&&mnY(E);B||E&&!B||(E=HUt(g,r,function(){if(!mnY(E)){IfV(E);_.yOJ(r);var w=_.Hk(_.d8t,r);_.Me(w,0)}}))};
HUt=function(g,r,E){var B=document.createElement("link");B.id=r;B.onload=function(){E&&setTimeout(E,0)};
g=_.Ay(g);_.LI(B,g,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(B);return B};
kgS=function(g){var r=_.HT("A");Aa(r,Gh(g));return"css-"+ay(r.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.Rqc=function(g){var r=YLl();g!==r&&(r=_.pu(),!_.Y("web_autonav_allow_off_by_default")&&g||_.Yg(0,141,!0),_.Yg(0,140,!g),r.save())};
YLl=function(){var g=_.pu();return _.Y("web_autonav_allow_off_by_default")&&!g.getFlag(141)&&_.Ca("AUTONAV_OFF_BY_DEFAULT")?!1:!g.getFlag(140)};
n0B=function(g,r){var E,B;g=((E=g.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(B=E.videoAuthorizationToken)==null?void 0:B.credentialTransferTokens)||[];for(E=0;E<g.length;++E)if(g[E].scope===r)return g[E].token||void 0};
s2D=function(g){for(var r=0,E=0;E<g.length;E++)r=r*31+g.charCodeAt(E),E<g.length-1&&(r%=0x800000000000);return r%1E5};
_.R6=function(g){return _.XS("ytcsi."+(g||"")+"data_")||fXc(g)};
_.$cB=function(g){g=_.R6(g);g.metadata||(g.metadata={});return g.metadata};
_.j2J=function(g){g=_.R6(g);g.tick||(g.tick={});return g.tick};
_.nu=function(g){g=_.R6(g);if(g.gel){var r=g.gel;r.gelInfos||(r.gelInfos={});r.gelTicks||(r.gelTicks={})}else g.gel={gelTicks:{},gelInfos:{}};return g.gel};
_.A1Q=function(g){g=_.nu(g);g.gelInfos||(g.gelInfos={});return g.gelInfos};
bUV=function(g){var r=_.R6(g).nonce;r||(r=AF(16),_.R6(g).nonce=r);return r};
fXc=function(g){var r={tick:{},info:{}};_.vN("ytcsi."+(g||"")+"data_",r);return r};
J1J=function(){var g=_.XS("ytcsi.debug");g||(g=[],_.vN("ytcsi.debug",g),_.vN("ytcsi.reference",{}));return g};
_.sS=function(g){g=g||"";var r=PZY();if(r[g])return r[g];var E=J1J(),B={timerName:g,info:{},tick:{},span:{},jspbInfo:[]};E.push(B);return r[g]=B};
tYt=function(g){g=g||"";var r=PZY();r[g]&&delete r[g];var E=J1J(),B={timerName:g,info:{},tick:{},span:{},jspbInfo:[]};E.push(B);r[g]=B};
PZY=function(){var g=_.XS("ytcsi.reference");if(g)return g;J1J();return _.XS("ytcsi.reference")};
_.eqQ=function(g){return FTL[g]||"LATENCY_ACTION_UNKNOWN"};
xcS=function(g,r,E){E=E===void 0?{}:E;var B=!1;_.Ka("ytLoggingEventsDefaultDisabled",!1)&&(B=!0);B=B?null:b2;E=E===void 0?{}:E;var w=Math.round(E.timestamp||(0,_.g2)());_.nC(r,1,w<Number.MAX_SAFE_INTEGER?w:0);w=new WTY;if(E.lact)_.nC(w,1,isFinite(E.lact)?E.lact:-1);else if(E.timestamp)_.nC(w,1,-1);else{var O=_.Eq();_.nC(w,1,isFinite(O)?O:-1)}if(E.sequenceGroup&&!_.Y("web_gel_sequence_info_killswitch")){O=E.sequenceGroup;var M=M_D(O),u=new CZY;_.nC(u,2,M);_.H$(u,1,O);_.Bu(w,3,u);E.endOfSequence&&delete KTo[E.sequenceGroup]}_.Bu(r,
33,w);(E.sendIsolatedPayload?Gbt:QbD)(g,{endpoint:"log_event",payload:r,cttAuthInfo:E.cttAuthInfo,dangerousLogToVisitorSession:E.dangerousLogToVisitorSession},B)};
_.$g=function(){return(_.Y("csi_use_time_origin")||_.Y("csi_use_time_origin_tvhtml5"))&&_.fu.timeOrigin?Math.floor(_.fu.timeOrigin):_.fu.timing.navigationStart};
_.aXX=function(g,r){_.jh("_start",g,r)};
_.Ag=function(g,r){if(!_.Y("web_csi_action_sampling_enabled")||!_.R6(r).actionDisabled){var E=_.sS(r||"");_.WE(E.info,g);g.loadType&&(E=g.loadType,_.$cB(r).loadType=E);_.WE(_.A1Q(r),g);E=bUV(r);r=_.R6(r).cttAuthInfo;XSY().info(g,E,r)}};
NjL=function(){var g,r,E,B;return((B=_.rM().resolve(_.gM($K))==null?void 0:(g=UyS())==null?void 0:(r=g.loggingHotConfig)==null?void 0:(E=r.csiConfig)==null?void 0:E.debugTicks)!=null?B:[]).map(function(w){return Object.values(w)[0]})};
_.jh=function(g,r,E){if(!_.Y("web_csi_action_sampling_enabled")||!_.R6(E).actionDisabled){var B=bUV(E),w;if(w=_.Y("web_csi_debug_sample_enabled")&&B){(_.rM().resolve(_.gM($K))==null?0:UyS())&&!IXQ&&(IXQ=!0,_.jh("gcfl",(0,_.g2)(),E));var O,M,u;w=(_.rM().resolve(_.gM($K))==null?void 0:(O=UyS())==null?void 0:(M=O.loggingHotConfig)==null?void 0:(u=M.csiConfig)==null?void 0:u.debugSampleWeight)||0;if(O=w!==0)b:{O=NjL();if(O.length>0)for(M=0;M<O.length;M++)if(g===O[M]){O=!0;break b}O=!1}O?(w=s2D(B)%w!==
0,_.R6(E).debugTicksExcludedLogged||(O={},O.debugTicksExcluded=w,_.Ag(O,E)),_.R6(E).debugTicksExcludedLogged=!0):w=!1}if(!w){g[0]!=="_"&&mcl(g,E,r);w=_.sS(E||"");w.tick[g]=r||(0,_.g2)();if(w.callback&&w.callback[g])for(w=_.U(w.callback[g]),O=w.next();!O.done;O=w.next())O=O.value,O();w=_.nu(E);w.gelTicks&&(w.gelTicks[g]=!0);O=_.j2J(E);w=r||(0,_.g2)();_.Y("log_repeated_ytcsi_ticks")?g in O||(O[g]=w):O[g]=w;O=_.R6(E).cttAuthInfo;g==="_start"?XSY().baseline(B,r,O):XSY().tick(g,B,r,O);_.c1X(E);return w}}};
mcl=function(g,r,E){if(_.fu.mark)if(g.startsWith("mark_")||(g="mark_"+g),r&&(g+=" ("+r+")"),E===void 0||_.Y("web_csi_disable_alt_time_performance_mark"))_.fu.mark(g);else{E=_.Y("csi_use_performance_navigation_timing")?E-_.fu.timeOrigin:E-(_.fu.timeOrigin||_.fu.timing.navigationStart);try{_.fu.mark(g,{startTime:E})}catch(B){}}};
iUL=function(){var g,r=(g=_.fu.getEntriesByType)==null?void 0:g.call(_.fu,"mark");r&&r.forEach(function(E){if(E.name.startsWith("mark_")){var B;(B=_.fu.clearMarks)==null||B.call(_.fu,E.name)}})};
_.LTS=function(){switch(CFJ()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.VYB=function(g){var r={},E=function(O,M,u){M=M.match("_rid")?M.split("_rid")[0]:M;typeof u==="number"&&(u=JSON.stringify(u));O.requestIds?O.requestIds.push({endpoint:M,id:u}):O.requestIds=[{endpoint:M,id:u}]};
g=_.U(Object.entries(g));for(var B=g.next();!B.done;B=g.next()){var w=_.U(B.value);B=w.next().value;w=w.next().value;switch(B){case "GetBrowse_rid":E(r,B,w);break;case "GetGuide_rid":E(r,B,w);break;case "GetHome_rid":E(r,B,w);break;case "GetPlayer_rid":E(r,B,w);break;case "GetSearch_rid":E(r,B,w);break;case "GetSettings_rid":E(r,B,w);break;case "GetTrending_rid":E(r,B,w);break;case "GetWatchNext_rid":E(r,B,w);break;case "yt_red":r.isRedSubscriber=!!w;break;case "yt_ad":r.isMonetized=!!w}}return r};
ZUl=function(g,r,E,B,w,O){if(!_.Y("web_csi_action_sampling_enabled")||!_.R6(O).actionDisabled){var M=_.nu(O);if(M.gelSpans)M.gelSpans[g]=!0;else{var u={};M.gelSpans=(u[g]=!0,u)}hqY++;g={spanName:g,spanLengthUsec:String(Math.round(r*1E3)),spanNonce:hqY};B&&(g.spanInfo=B);w&&(g.parentSpanNonce=w);E&&(g.spanStartTimeUsec=String(Math.round(E*1E3)));_.sS(O||"").span[String(g.spanName)]=g;E=_.nu(O);E.gelSpans||(E.gelSpans={});_.WE(E.gelSpans,g);E=bUV(O);O=_.R6(O).cttAuthInfo;XSY().span(g,E,O);return g.spanNonce}};
_.y1Y=function(g){var r=_.bq("aft",g);if(r)return r;r=_.Ca((g||"")+"TIMING_AFT_KEYS",["ol"]);for(var E=r.length,B=0;B<E;B++){var w=_.bq(r[B],g);if(w)return w}return NaN};
_.v0Q=function(g,r){_.vN("ytglobal.timing"+(r||"")+"ready_",g)};
_.bq=function(g,r){if(g=_.j2J(r)[g])return typeof g==="number"?g:g[g.length-1]};
_.c1X=function(g){var r=_.bq("_start",g),E=_.y1Y(g),B=!dcL;r&&E&&B&&(q9Q(TjX,new g7B(Math.round(E-r),g)),dcL=!0)};
E7X=function(g){fXc(g);rhP();iUL();g||(_.Ca("TIMING_ACTION")&&_.W0("PREVIOUS_ACTION",_.Ca("TIMING_ACTION")),_.W0("TIMING_ACTION",""))};
_.B8o=function(g){g=g===void 0?{}:g;_.aa(function(){Jg();tYt();E7X();_.v0Q(!1);g.cttAuthInfo&&(_.R6().cttAuthInfo=g.cttAuthInfo);_.W0("TIMING_AFT_KEYS",[]);g.isHot?_.Pk({loadType:"hot"}):_.Pk({loadType:"warm"});_.W0("TIMING_ACTION","");delete _.Ca("TIMING_INFO",{}).yt_lt;_.aa(_.aXX)(g.startTime,void 0)})()};
_.tg=function(g,r,E,B){r=r===void 0?{}:r;_.aa(function(){var w=E?E:g;wjP(w);var O=r.sampleRate;if(!_.Y("web_csi_action_sampling_enabled")||O===void 0||O<=1)O=!1;else{var M=bUV(w);O=s2D(M)%O!==0}O&&(_.R6(w).actionDisabled=!0);_.sS(w||"").info.actionType=g;r.cttAuthInfo&&(_.R6(w).cttAuthInfo=r.cttAuthInfo);_.W0(w+"TIMING_ACTION",g);_.aa(_.aXX)(r.startTime,w);O={actionType:B||_.eqQ(g)};r.logPreviousAction&&(O.previousAction=_.eqQ(_.Ca("TIMING_ACTION")));(M=_.PE())&&M!=="UNDEFINED_CSN"&&(O.clientScreenNonce=
M);_.Pk(O,w);_.v0Q(!0,w)})()};
wjP=function(g){_.aa(function(){Jg(g);tYt(g);E7X(g)})()};
SZD=function(){_.aa(function(){var g=[],r;for(r in _.XS("ytcsi.".slice(0,-1)))r.endsWith("data_")&&g.push(r.slice(0,-5));g=_.U(g);for(r=g.next();!r.done;r=g.next())wjP(r.value);Jg()})()};
_.U4B=function(g){return _.aa(function(){return _.OdQ("_start",g)})()};
_.Pk=function(g,r,E){_.aa(_.Ag)(g,r,E===void 0?!1:E)};
_.F4=function(g,r,E){return _.aa(_.jh)(g,r,E)};
_.OdQ=function(g,r){return _.aa(function(){var E=_.j2J(r);return g in E})()};
qZL=function(g){if(!_.Y("universal_csi_network_ticks"))return"";g=_.lc(g)||"";for(var r=Object.keys(MsX),E=0;E<r.length;E++){var B=r[E];if(g.includes(B))return B}return""};
lCV=function(g){if(!_.Y("universal_csi_network_ticks"))return function(){};
var r=MsX[g];return r?(_.eh(r),function(){var E=_.Y("universal_csi_network_ticks")?(E=uNS[g])?_.eh(E):!1:!1;return E}):function(){}};
_.eh=function(g,r,E){return _.aa(function(){if(_.OdQ(g,E))return!1;_.F4(g,r,E);return!0})()};
_.Wk=function(g,r,E){_.aa(function(){if(!_.U4B(E)||_.OdQ(g,E))return!1;_.F4(g,r,E);return!0})()};
_.Cu=function(g){return _.aa(_.bq)(g,void 0)};
Jg=function(g){_.U4B(g)&&_.F4("aa",void 0,g)};
_.zXY=function(g,r,E,B,w,O,M,u,l){var Q=D4t();u=new _.bG({veType:r,youtubeData:O,jspbYoutubeData:u});O=Ku({},Q);w&&(O.cttAuthInfo=w);w={csn:Q,pageVe:u.getAsJson()};_.Y("expectation_logging")&&l&&l.screenCreatedLoggingExpectations&&(w.screenCreatedLoggingExpectations=l.screenCreatedLoggingExpectations);E&&E.visualElement?(w.implicitGesture={parentCsn:E.clientScreenNonce,gesturedVe:E.visualElement.getAsJson()},M&&(w.implicitGesture.gestureType=M)):E&&_.el(new _.Rj("newScreen() parent element does not have a VE - rootVe",
r));B&&(w.cloneCsn=B);g?An("screenCreated",w,g,O):_.Jn("screenCreated",w,O);q9Q(z9Y,new o7Y(Q));xg.clear();GoP.clear();QMV.clear();return Q};
a6=function(g,r,E,B,w,O){O=O===void 0?{}:O;kol(g,r,E,[B],w===void 0?!1:w,O)};
kol=function(g,r,E,B,w,O){w=w===void 0?!1:w;O=O===void 0?{}:O;Object.assign(O,Ku({cttAuthInfo:tF(r)||void 0},r));for(var M=_.U(B),u=M.next();!u.done;u=M.next()){u=u.value;var l=u.getAsJson();(_.jn.isEmpty(l)||!l.trackingParams&&!l.veType)&&_.el(Error("zf"));if(_.Y("no_client_ve_attach_unless_shown")){var Q=HdB(u,r);if(l.veType&&!GoP.has(Q)&&!QMV.has(Q)&&!w){if(!_.Y("il_attach_cache_limit")||xg.size<1E3){xg.set(Q,[g,r,E,u]);return}_.Y("il_attach_cache_limit")&&xg.size>1E3&&_.el(new _.Rj("IL Attach cache exceeded limit"))}u=
HdB(E,r);xg.has(u)?pjJ(E,r):QMV.set(u,!0)}}B=B.filter(function(z){z.csn!==r?(z.csn=r,z=!0):z=!1;return z});
E={csn:r,parentVe:E.getAsJson(),childVes:_.bO(B,function(z){return z.getAsJson()})};
r==="UNDEFINED_CSN"?X4("visualElementAttached",O,E):g?An("visualElementAttached",E,g,O):_.Jn("visualElementAttached",E,O)};
RXl=function(g,r,E,B,w){YZQ(g,r,E,w)};
YZQ=function(g,r,E,B){n7A(E,r);var w=Ku({cttAuthInfo:tF(r)||void 0},r);E={csn:r,ve:E.getAsJson(),eventType:1};B&&(E.clientData=B);r==="UNDEFINED_CSN"?X4("visualElementShown",w,E):g?An("visualElementShown",E,g,w):_.Jn("visualElementShown",E,w)};
sMc=function(g,r,E,B){n7A(E,r);var w=Ku({cttAuthInfo:tF(r)||void 0},r);E={csn:r,ve:E.getAsJson(),eventType:4};B&&(E.clientData=B);r==="UNDEFINED_CSN"?X4("visualElementShown",w,E):g?An("visualElementShown",E,g,w):_.Jn("visualElementShown",E,w)};
fCD=function(g,r,E,B,w){var O=(B=B===void 0?!1:B)?16:8;B=Ku({cttAuthInfo:tF(r)||void 0,endOfSequence:B},r);E={csn:r,ve:E.getAsJson(),eventType:O};w&&(E.clientData=w);r==="UNDEFINED_CSN"?X4("visualElementHidden",B,E):g?An("visualElementHidden",E,g,B):_.Jn("visualElementHidden",E,B)};
jMY=function(g,r,E,B,w){$4o(g,r,E,void 0,B,w)};
$4o=function(g,r,E,B,w){n7A(E,r);B=B||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var O=Ku({cttAuthInfo:tF(r)||void 0},r);E={csn:r,ve:E.getAsJson(),gestureType:B};w&&(E.clientData=w);r==="UNDEFINED_CSN"?X4("visualElementGestured",O,E):g?An("visualElementGestured",E,g,O):_.Jn("visualElementGestured",E,O)};
Ahl=function(g,r,E,B){var w=Ku({cttAuthInfo:tF(r)||void 0},r);E={csn:r,ve:E.getAsJson(),clientData:B};r==="UNDEFINED_CSN"?X4("visualElementStateChanged",w,E):g?An("visualElementStateChanged",E,g,w):_.Jn("visualElementStateChanged",E,w)};
bdl=function(){var g=Gec(16);for(var r=[],E=0;E<g.length;E++)r.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(g[E]&63));return r.join("")};
X4=function(g,r,E){Jhl.push({payloadName:g,payload:E,jspbPayload:void 0,options:r});PvP||(PvP=HfB())};
QcS=function(g){if(Jhl){for(var r=_.U(Jhl),E=r.next();!E.done;E=r.next())E=E.value,E.payload&&(E.payload.csn=g.csn,_.Jn(E.payloadName,E.payload,E.options));Jhl.length=0}PvP=0};
HdB=function(g,r){return""+g.getAsJson().veType+g.getAsJson().veCounter+r};
n7A=function(g,r){if(_.Y("no_client_ve_attach_unless_shown")){var E=HdB(g,r);GoP.set(E,!0);pjJ(g,r)}};
pjJ=function(g,r){g=HdB(g,r);xg.has(g)&&(r=xg.get(g)||[],a6(r[0],r[1],r[2],r[3],!0),xg.delete(g))};
Ku=function(g,r){_.Y("log_sequence_info_on_gel_web")&&(g.sequenceGroup=r);return g};
_.N2=function(g,r,E){_.aa(a6)(void 0,g,r,E)};
_.I6=function(g,r,E){_.aa(kol)(void 0,g,r,E)};
_.mZ=function(g,r){_.aa(RXl)(void 0,g,r,void 0,void 0,void 0)};
_.ck=function(g,r,E){_.aa(function(){_.mR(r,function(B){sMc(void 0,g,B,E)})})()};
_.iq=function(g,r,E,B){_.aa(function(){_.mR(r,function(w){fCD(void 0,g,w,E,B)})})()};
_.Lu=function(g,r,E){_.aa(jMY)(void 0,g,r,E,void 0)};
_.V_=function(g,r,E,B){_.aa($4o)(void 0,g,r,E,B,void 0)};
_.hg=function(g,r,E){_.aa(Ahl)(void 0,g,r,E,void 0)};
tsP=function(g,r){Z$.set(g,r)};
Fho=function(g){return y_?y_.enabledSpans?!!y_.enabledSpans[g]:!0:!1};
eXJ=function(g){if(!y_)throw Error("Cf");y_.processors.push(g)};
WhJ=function(g,r){if(g){r=r===void 0?1:r;if(g&&(g.endTime=performance.now(),r&&(g.status=r),r=y_)){r=_.U(r.processors);for(var E=r.next();!E.done;E=r.next()){var B=void 0,w=void 0;(w=(B=E.value).onSpanEnd)==null||w.call(B,g)}}if(r=y_){if(g!==r.activeSpan)throw Error("Df");var O;r.activeSpan=(O=r.activeSpan)==null?void 0:O.parent}}};
CvB=function(g,r,E){var B;if((B=y_)&&Fho(g)){var w=B.nextSpanId++,O=B.activeSpan;g={id:w,parent:O,name:g,attributes:r,traceId:O?O.traceId:w,sessionId:B.sessionId,startTime:performance.now(),status:0};if(B.activeSpan){var M;(M=B.activeSpan).children||(M.children=[]);B.activeSpan.children.push(g)}B=_.U(B.processors);for(M=B.next();!M.done;M=B.next())w=r=void 0,(w=(r=M.value).onSpanStart)==null||w.call(r,g);B=g}else B=void 0;g=y_;B=B&&g?g.activeSpan=B:void 0;if(!B)return E();try{var u=E(B);WhJ(B);return u}catch(l){throw WhJ(B,
2),l;}};
Khc=function(g,r){var E=Object.keys(g);g=new _.Rj("[Command Handler] "+r,{filteredCommandNames:E,originalCommand:g});_.tn(g)};
x4l=function(g,r){Khc(g,r+" was called but not set")};
aCl=function(g){return function(){return new g}};
vk=function(g){return function(){return _.rM().resolve(g)}};
XjB=function(g,r){var E=_.n(g,_.aI);if(E&&(E=r[E.signal]))return E();g=_.U(Object.keys(g));for(E=g.next();!E.done;E=g.next())if(E=E.value,r[E]&&(E=r[E]))return E()};
dX=function(g,r,E,B){return{browseEndpoint:{browseId:g},commandMetadata:{webCommandMetadata:{url:r,rootVe:E,webPageType:B===void 0?"WEB_PAGE_TYPE_BROWSE":B}}}};
N8J=function(g,r,E){var B=r=r===void 0?0:r;E=E===void 0?0:E;var w=E-B;return _.Tn(g,"PPSV",void 0,void 0,(w>600?0:w<60||E<=0||B/E>.9)?0:r)};
_.Tn=function(g,r,E,B,w){var O="/watch?v="+g;g={videoId:g};r&&(g.playlistId=r,O+="&list="+r);B&&(O+="&pp="+B);w&&(g.startTimeSeconds=w,O+="&t="+w+"s");r={watchEndpoint:g,commandMetadata:{webCommandMetadata:{url:O,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};E&&(r.clickTrackingParams=E);B&&(_.n(r,_.LM).playerParams=B);return r};
ICY=function(g){return{browseEndpoint:{browseId:"VL"+g},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+g,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
m4J=function(g){if(g){var r;if(g){var E=(r=_.n(g.commandMetadata,_.dU))==null?void 0:r.url;r=!(!E||E==="/service_ajax")}else r=!1;if(r)return g;var B;if(g=(B=_.n(g,_.D$))==null?void 0:B.commands)for(B=_.U(g),g=B.next();!g.done;g=B.next())if(g=m4J(g.value))return g}};
_.gz=function(g){return{runs:[{text:g}]}};
cht=function(g,r){return g&&r?{runs:[{text:g,navigationEndpoint:r}]}:void 0};
rz=function(g){return g?_.gz(g):void 0};
_.E9=function(g){return g?{simpleText:g}:void 0};
_.Bs=function(g){var r=g.type;g=g.payload;r={type:r};g!==void 0&&(r.payload=g);return r};
idL=function(g,r,E){for(var B=Object.assign({},g),w=_.U(Object.keys(r)),O=w.next();!O.done;O=w.next()){O=O.value;var M=g[O],u=r[O];if(u===void 0)delete B[O];else if(M===void 0)B[O]=u;else if(Array.isArray(u)&&Array.isArray(M))B[O]=E?[].concat(_.jW(M),_.jW(u)):u;else if(!Array.isArray(u)&&_.gA(u)&&!Array.isArray(M)&&_.gA(M))B[O]=idL(M,u,E);else if(typeof u===typeof M)B[O]=u;else return r=new _.Rj("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:O,originalValue:M,updateValue:u}),
_.tn(r),g}return B};
hXD=function(g){if(!g.length)return"";try{if(LhL)return LhL.decode(g);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(g)}catch(M){}for(var r=0,E=[],B=g.length;r<B;){for(var w=0;w<1024&&r<B;){var O=g[r++];if(O<128)VsX[w++]=O;else{if(O<224)O=(O&31)<<6|g[r++]&63;else if(O<240)O=(O&15)<<12|(g[r++]&63)<<6|g[r++]&63;else{if(w+1===1024){--r;break}O=(O&7)<<18|(g[r++]&63)<<12|(g[r++]&63)<<6|g[r++]&63;O-=65536;VsX[w++]=55296|O>>10;O=56320|O&1023}VsX[w++]=O}}O=String.fromCharCode.apply(String,
VsX);w<1024&&(O=O.substring(0,w));E.push(O)}return E.join("")};
yht=function(g,r){var E;if((E=Zdl)==null?0:E.encodeInto)return r=Zdl.encodeInto(g,r),r.read<g.length?g.length*4:r.written;for(var B=E=0;B<g.length;B++){var w=g.charCodeAt(B);w<128?r[E++]=w:(w<2048?r[E++]=w>>6|192:((w&64512)===55296&&B+1<g.length&&(g.charCodeAt(B+1)&64512)===56320?(w=65536+((w&1023)<<10)+(g.charCodeAt(++B)&1023),r[E++]=w>>18|240,r[E++]=w>>12&63|128):r[E++]=w>>12|224,r[E++]=w>>6&63|128),r[E++]=w&63|128)}return E};
v7V=function(g,r){g=new Uint8Array(g);r&&g.set(r);return g};
_.S9=function(g){g=new d4Y(new T8Y([_.Mz(decodeURIComponent(g))]));if(gCt(g,2)){var r=wz(g);var E=g.pos;var B=g.arrayView;E=E===void 0?0:E;var w=r===void 0?-1:r;E=E===void 0?0:E;w=w===void 0?-1:w;if(B.totalLength&&w){w<0&&(w=B.totalLength-E);B.focus(E);if(!(E-B.arrayPos+w<=B.arrays[B.arrayIdx].length)){var O=B.arrayIdx,M=B.arrayPos;B.focus(E+w-1);M=new Uint8Array(B.arrayPos+B.arrays[B.arrayIdx].length-M);for(var u=0,l=O;l<=B.arrayIdx;l++)M.set(B.arrays[l],u),u+=B.arrays[l].length;B.arrays.splice(O,
B.arrayIdx-O+1,M);B.arrayIdx=0;B.arrayPos=0;B.focus(E)}O=B.arrays[B.arrayIdx];B=new DataView(O.buffer,O.byteOffset+E-B.arrayPos,w)}else B=new DataView(new ArrayBuffer(0));B=new Uint8Array(B.buffer,B.byteOffset,B.byteLength);g.pos+=r;r=B}else r=void 0;r=r?hXD(r):void 0;g=gCt(g,4)?wz(g):void 0;B=r2B[g];if(typeof B==="undefined")throw g=new _.Rj("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:g}),_.tn(g),g;return{entityTypeFieldNumber:g,entityType:B,entityId:r}};
_.qr=function(g,r,E){E=E===void 0?0:E;var B=new ECB;if(Zdl)g=Zdl.encode(g);else{var w=new Uint8Array(Math.ceil(g.length*1.2)),O=yht(g,w);w.length<O&&(w=new Uint8Array(O),O=yht(g,w));w.length>O&&(w=w.subarray(0,O));g=w}g!==void 0&&(U9(B,18),w=g.length,U9(B,w),Mr(B,w),B.buf.set(g,B.pos),B.pos+=w);g=B3B[r];if(typeof g==="undefined")throw E=new _.Rj("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:r}),_.tn(E),E;g!==void 0&&(U9(B,32),U9(B,g));U9(B,40);U9(B,1);r=new Uint8Array(B.buf.buffer,
B.buf.byteOffset,B.pos);return encodeURIComponent(_.gk(r,E))};
wUP=function(g){g=g.key||g.id;if(!g)throw Error("Ef");return g};
OiB=function(g,r){g=g===void 0?{}:g;return STl(g,r)};
UPJ=function(g,r,E,B){if(B===void 0)return B=Object.assign({},g[r]||{}),E=(delete B[E],B),B={},Object.assign({},g,(B[r]=E,B));var w={},O={};return Object.assign({},g,(O[r]=Object.assign({},g[r],(w[E]=B,w)),O))};
MBD=function(g,r,E,B,w){var O=g[r];if(O==null||!O[E])return g;B=idL(O[E],B,w==="REPEATED_FIELDS_MERGE_OPTION_APPEND");w={};O={};return Object.assign({},g,(O[r]=Object.assign({},g[r],(w[E]=B,w)),O))};
_.u1=function(g,r,E){return g[r]?g[r][E]||null:null};
uPl=function(){if(qTA)return qTA();var g={};qTA=TZ("PersistentEntityStoreDb",{objectStores:(g.EntityStore={addedAtVersion:1},g.EntityAssociationStore={addedAtVersion:2},g),shared:!1,upgrade:function(r,E){E(1)&&N_(X6(r,"EntityStore",{keyPath:"key"}),"entityType","entityType");E(2)&&(r=X6(r,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),N_(r,"byParentEntityKey","parentEntityKey"),N_(r,"byChildEntityKey","childEntityKey"))},
version:3});return qTA()};
l0Y=function(g){return _.m0(uPl(),g)};
l1=function(g){return window.Int32Array?new Int32Array(g):Array(g)};
oCc=function(g){return _.m0(DPQ(),g)};
GAA=function(g){return new Dz("WRONG_DATA_TYPE",{encoderVersion:g})};
Q4l=function(g){return g instanceof Error?new Dz("UNKNOWN_ENCODE_ERROR",{originalMessage:g.message}):new Dz("UNKNOWN_ENCODE_ERROR")};
zMc=function(g){return g instanceof Error?new Dz("UNKNOWN_DECODE_ERROR",{originalMessage:g.message}):new Dz("UNKNOWN_DECODE_ERROR")};
kAl=function(g,r){g=g instanceof Dz?g:r(g);_.tn(g);throw g;};
HiD=function(g){g=(new TextEncoder).encode(g).subarray(0,16);var r=new Uint8Array(16);r.set(g);return r};
YTV=function(g){var r=pUl[g];if(r)return r;_.el(new _.Rj("Entity model not found.",{entityType:g}))};
_.oc=function(){RMS||(RMS=nCD());return RMS};
nCD=function(){var g,r,E;return _.q(function(B){if(B.nextAddress==1)return _.qN(B,2),_.D(B,_.dM(),4);if(B.nextAddress!=2){g=B.yieldResult;if(!g||!_.YA()||typeof _.ED.BroadcastChannel==="undefined")return B.return();r=new s4L;return B.return(new GC(g,r))}E=_.G2(B);E instanceof Error&&_.tn(E);return B.return()})};
_.Qp=function(g,r){var E;return _.q(function(B){if(B.nextAddress==1){E=g.mutations;if(!E||E.length<=0)return B.return();r&&r.dispatch(_.Bs({type:"ENTITY_LOADED",payload:E}));return _.D(B,f0P(E),2)}E.length=0;_.Q3(B)})};
f0P=function(g){var r;return _.q(function(E){return E.nextAddress==1?_.D(E,_.oc(),2):(r=E.yieldResult)?_.D(E,_.zC(r,"readwrite",function(B){for(var w={},O=_.U(g),M=O.next(),u={};!M.done;u={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},M=O.next())u.mutation$jscomp$4=M.value,u.mutation$jscomp$4.entityKey&&$Pl(u.mutation$jscomp$4)&&(u.mutationEntityType$jscomp$3=(0,_.jn.getAnyKey)(u.mutation$jscomp$4.payload),M=void 0,u.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(M=function(l){return function(){return _.j4J(B,
l.mutation$jscomp$4.payload[l.mutationEntityType$jscomp$3],l.mutationEntityType$jscomp$3)}}(u)),u.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(M=function(l){return function(){return A2l(B,l.mutation$jscomp$4.entityKey)}}(u)),u.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(M=function(l){return function(){return biV(B,l.mutation$jscomp$4.entityKey,l.mutation$jscomp$4.payload[l.mutationEntityType$jscomp$3],l.mutationEntityType$jscomp$3)}}(u)),M&&(w[u.mutation$jscomp$4.entityKey]=
w[u.mutation$jscomp$4.entityKey]?w[u.mutation$jscomp$4.entityKey].then(M):M()));
return K3.all(Object.values(w))}),0):E.return()})};
$Pl=function(g){var r;g=(r=g.options)==null?void 0:r.persistenceOption;return g==="ENTITY_PERSISTENCE_OPTION_PERSIST"||g==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
tBl=function(g,r){var E,B;_.q(function(w){if(w.nextAddress==1)return _.D(w,_.oc(),2);if(w.nextAddress!=3)return(E=w.yieldResult)?_.D(w,_.zC(E,"readonly",function(O){var M={},u=Object.keys(r).map(function(l){var Q=r[l]?[].concat(_.jW(r[l])):[];return J2D(O,l,Q,M)});
return K3.all(u).then(function(){return M})}),3):w.return();
B=w.yieldResult;Object.keys(B).length>0&&g.dispatch(PzA(B));_.Q3(w)})};
J2D=function(g,r,E,B){return kD(g,r,E).then(function(w){B[r]=F4S(E,w)})};
F4S=function(g,r){if(r.length!==g.length)throw Error("Hf");return r.reduce(function(E,B,w){E[g[w]]=B;return E},{})};
CzJ=function(g){var r=g.filter(function(w){var O;return(w==null?void 0:(O=w.transferEntity)==null?void 0:O.transferState)==="TRANSFER_STATE_COMPLETE"}).length,E=g.filter(function(w){var O;
return(w==null?void 0:(O=w.transferEntity)==null?void 0:O.transferState)==="TRANSFER_STATE_FAILED"}).length,B=g.filter(function(w){var O;
return(w==null?void 0:(O=w.transferEntity)==null?void 0:O.transferState)&&eMl.includes(w.transferEntity.transferState)});
if(!(r||B!=null&&B.length))return 0;r=_.W4V(B)+r;g=g.length-E;return g===0?0:Math.round(r*100/g)/100};
_.W4V=function(g){var r=[];r=r.concat.apply(r,_.jW(g.filter(function(O){return O.streamEntity}).map(function(O){var M=Object.assign({},O.streamEntity),u,l=(u=O.transferEntity)==null?void 0:u.transferState;
M.streamsProgress=M.streamsProgress||[];M.streamsProgress=M.streamsProgress.map(function(Q){var z=Object.assign({},Q);z.numBytesDownloaded=l==="TRANSFER_STATE_COMPLETE"?Q.numTotalBytes:Q.numBytesDownloaded;return z});
return M}).map(function(O){return O.streamsProgress})));
var E=g=0;r=_.U(r);for(var B=r.next();!B.done;B=r.next()){var w=B.value;B=Number(w.numBytesDownloaded);w=Number(w.numTotalBytes);E+=isNaN(B)?0:B;g+=isNaN(w)?0:w}return g===0?0:Math.round(E*100/g)/100};
K4t=function(g){if(!g||!g.expirationTimestamp||!g.action)return!1;var r=(0,_.g2)()/1E3;return Number(g.expirationTimestamp)>=r};
Hs=function(g){return g&&g.expirationTimestamp&&g.action?K4t(g)&&g.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.pf=function(g){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(g||"TRANSFER_STATE_UNKNOWN")};
xPc=function(g){var r=new ECB;if(g!==void 0){var E=Math.ceil(Math.log2(g.length*4+2)/7);E=E===void 0?2:E;U9(r,10);r.submessagePosStack.push(r.pos);r.submessagePosStack.push(E);r.pos+=E;Mr(r,g.length*1.2);E=yht(g,r.buf.subarray(r.pos));r.pos+E>r.buf.length&&(Mr(r,E),E=yht(g,r.buf.subarray(r.pos)));r.pos+=E;g=r.submessagePosStack.pop();E=r.submessagePosStack.pop();for(var B=r.pos-E-g;g--;){var w=g?128:0;r.view.setUint8(E++,B&127|w);B>>=7}}r=new Uint8Array(r.buf.buffer,r.buf.byteOffset,r.pos);return(new TextDecoder("utf-8")).decode(r)};
_.YD=function(g){var r=0;g=_.U(g);for(var E=g.next(),B={};!E.done;B={transferState$jscomp$3:void 0},E=g.next()){var w=E.value,O=void 0;E=(O=w.streamEntity)!=null?O:{};O=void 0;B.transferState$jscomp$3=(O=w.transferEntity)==null?void 0:O.transferState;O=w=void 0;((w=E)==null?0:(O=w.streamsProgress)==null?0:O.length)&&E.streamsProgress.forEach(function(M){return function(u){u=Number(M.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?u.numTotalBytes:u.numBytesDownloaded);isFinite(u)&&(r+=u)}}(B))}return r};
a0D=function(g){return g.some(function(r){var E;if(!(r==null?0:(E=r.transferEntity)==null?0:E.transferState)){var B;return!(r==null?0:(B=r.policyEntity)==null?0:B.action)||r.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return eMl.includes(r.transferEntity.transferState)})};
XUA=function(g,r){if(!r)return!1;if(_.Y("of_pb_en_po_ks"))return!0;var E;g=(E=_.u1(g,"offlineVideoPolicy",_.qr(r,"offlineVideoPolicy")))!=null?E:void 0;return!!g&&Hs(g)};
_.I0V=function(g){var r=["TRANSFER_STATE_COMPLETE"];r=r===void 0?N3X:r;return g.filter(function(E){var B,w;return r.includes((w=(B=E.transferEntity)==null?void 0:B.transferState)!=null?w:"TRANSFER_STATE_UNKNOWN")})};
mPc=function(g,r){if(r){var E,B=(E=_.u1(g,"playbackData",_.qr(r,"playbackData")))!=null?E:null,w;E=(w=_.u1(g,"transfer",_.qr(r,"transfer")))!=null?w:null;var O;w=(O=_.u1(g,"offlineVideoStreams",_.qr(r,"offlineVideoStreams")))!=null?O:null;var M;g=(M=_.u1(g,"offlineVideoPolicy",_.qr(r,"offlineVideoPolicy")))!=null?M:null;if(B||E||w||g)return{playbackDataEntity:B,transferEntity:E,streamEntity:w,policyEntity:g}}};
_.Rc=function(g){var r=g.playbackData;if(!r)return[];var E=[];r=_.U(Object.keys(r));for(var B=r.next();!B.done;B=r.next()){var w=B.value;if(!c2V(g,_.S9(w).entityId)&&(B=mPc(g,_.S9(w).entityId))){var O=void 0,M=void 0;w=(M=Number((O=_.u1(g,"playbackData",w))==null?void 0:O.streamDownloadTimestampSeconds))!=null?M:(0,_.g2)();E.push({entity:B,streamDownloadTimestamp:w})}}return E.sort(function(u,l){var Q=u.streamDownloadTimestamp,z=l.streamDownloadTimestamp;return z===Q?u.entity.streamEntity&&!l.entity.streamEntity?
1:-1:z-Q}).map(function(u){return u.entity})};
iiB=function(g){return _.I0V(_.Rc(g))};
_.L4J=function(g){return _.Rc(g).filter(function(r){var E;if(((E=r.policyEntity)==null?0:E.action)&&r.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var B;if((B=r.transferEntity)==null?0:B.transferState){var w;return eMl.includes((w=r.transferEntity)==null?void 0:w.transferState)}return!0})};
c2V=function(g,r){var E;return((E=_.u1(g,"downloadStatusEntity",_.qr(r,"downloadStatusEntity")))==null?void 0:E.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
VBl=function(g){var r;if(g==null?0:(r=g.playbackDataEntity)==null?0:r.key)return _.S9(g.playbackDataEntity.key).entityId;var E;if(g==null?0:(E=g.transferEntity)==null?0:E.key)return _.S9(g.transferEntity.key).entityId;var B;if(g==null?0:(B=g.streamEntity)==null?0:B.key)return _.S9(g.streamEntity.key).entityId;var w;if(g==null?0:(w=g.policyEntity)==null?0:w.key)return _.S9(g.policyEntity.key).entityId};
ZiB=function(g){var r=new Set,E;g=(E=g.mainDownloadsListEntity)==null?void 0:E[hMo];var B;if(!(g==null?0:(B=g.downloads)==null?0:B.length))return r;var w;g==null||(w=g.downloads)==null||w.forEach(function(O){(O==null?0:O.videoItem)&&r.add(O.videoItem)});
return r};
nf=function(g,r){if(r){var E=_.u1(g,"mainVideoEntity",_.qr(r,"mainVideoEntity")),B=_.u1(g,"downloadStatusEntity",_.qr(r,"downloadStatusEntity")),w=_.u1(g,"ytMainChannelEntity",_.qr(r,"ytMainChannelEntity")),O={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};g=mPc(g,r);B=(B==null?void 0:B.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.Y("woffle_render_failed_download_state_ks")&&(B==null?void 0:B.downloadState)==="DOWNLOAD_STATE_FAILED";!g&&B&&(g=O);if(g&&E&&
w)return Object.assign({},{videoEntity:E,channelEntity:w},g)}};
vCA=function(g,r){return y2S(g,r)==="TRANSFER_STATE_COMPLETE"&&XUA(g,r)};
dPB=function(g,r){if(!r)return!1;var E;g=(E=_.u1(g,"playbackData",_.qr(r,"playbackData")))!=null?E:void 0;return!!g&&!!g.playerResponseJson};
y2S=function(g,r){if(!r)return"TRANSFER_STATE_UNKNOWN";var E=_.u1(g,"transfer",_.qr(r,"transfer"));if(E){var B;return(B=E.transferState)!=null?B:"TRANSFER_STATE_UNKNOWN"}E=_.u1(g,"offlineOrchestrationActionWrapperEntity",_.qr(r,"offlineOrchestrationActionWrapperEntity"));g=_.u1(g,"mainVideoEntity",_.qr(r,"mainVideoEntity"));return E||g?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
T3Y=function(g,r){if(!r)return"TRANSFER_STATE_UNKNOWN";if(g=_.u1(g,"transfer",_.qr(r,"transfer"))){var E;return(E=g.transferState)!=null?E:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
gvD=function(g,r){return r&&(g=_.u1(g,"videoPlaybackPositionEntity",_.qr(r,"videoPlaybackPositionEntity")),g==null?0:g.lastPlaybackPositionSeconds)?Number(g.lastPlaybackPositionSeconds):0};
FMD=function(g,r){return rAS(g).some(function(E){var B;return(E==null?void 0:(B=E.mainPlaylistEntity)==null?void 0:B.playlistId)===r})};
WMJ=function(g,r,E){var B=eOl(g,r);if(!B.length)return[];r=[];B=_.U(B);for(var w=B.next();!w.done;w=B.next()){w=w.value;var O=nf(g,w);E&&y2S(g,w)!=="TRANSFER_STATE_COMPLETE"||O&&r.push(O)}return r};
eOl=function(g,r){if(!r)return[];var E=_.qr(r,"mainPlaylistEntity"),B;r=(B=g.mainPlaylistEntity)==null?void 0:B[E];B=[];if(r==null||!r.videos)return B;r=_.U(r.videos);for(E=r.next();!E.done;E=r.next()){E=E.value;var w=void 0,O=void 0,M=void 0,u=(w=g)==null?void 0:(O=w.mainPlaylistVideoEntity)==null?void 0:(M=O[E])==null?void 0:M.video;u&&(E=_.S9(u).entityId)&&B.push(E)}return B};
ClQ=function(g,r){if(r){var E=_.u1(g,"mainPlaylistEntity",_.qr(r,"mainPlaylistEntity")),B=_.u1(g,"mainPlaylistDownloadStateEntity",_.qr(r,"mainPlaylistDownloadStateEntity"));g=_.u1(g,"ytMainChannelEntity",_.qr(r,"ytMainChannelEntity"));if(B&&E)return Object.assign({},{mainPlaylistEntity:E,mainPlaylistDownloadStateEntity:B},!!g&&{channelEntity:g})}};
rAS=function(g){return KMD(g).sort(function(r,E){return E.addedTimestampMillis-r.addedTimestampMillis}).map(function(r){return r.downloadedPlaylistEntities})};
KMD=function(g){var r=g.mainPlaylistDownloadStateEntity,E=[];if(!r)return E;for(var B=_.U(Object.keys(r)),w=B.next();!w.done;w=B.next()){var O=w.value;w=ClQ(g,_.S9(O).entityId);var M=void 0;O=Number((M=r[O])==null?void 0:M.addedTimestampMillis);M=isNaN(O)?(0,_.g2)():O;w!==void 0&&E.push({downloadedPlaylistEntities:w,addedTimestampMillis:M})}return E};
xat=function(g){var r,E=(r=g.mainPlaylistVideoEntity)!=null?r:{};return new Set(rAS(g).reduce(function(B,w){B=B===void 0?[]:B;var O,M;w==null||(O=w.mainPlaylistEntity)==null||(M=O.videos)==null||M.forEach(function(u){var l;(u=(l=E[u])==null?void 0:l.video)&&B.push(u)});
return B},[]))};
aED=function(g){return"downloadedMusicPlaylistEntities"in g};
XAP=function(g){return"mainPlaylistEntity"in g&&"mainPlaylistDownloadStateEntity"in g};
Nnt=function(g){return"videoEntity"in g&&"channelEntity"in g};
IEP=function(g){var r=g.musicPlaylistDownloadMetadataEntity,E=[];if(!r)return E;for(var B=_.U(Object.keys(r)),w=B.next();!w.done;w=B.next()){w=w.value;a:{var O=g,M=_.S9(w).entityId;if(M){var u=_.u1(O,"musicPlaylist",_.qr(M,"musicPlaylist"));O=_.u1(O,"musicPlaylistDownloadMetadataEntity",_.qr(M,"musicPlaylistDownloadMetadataEntity"));if(u&&O){u={musicPlaylistEntity:u,musicPlaylistDownloadStateEntity:O};break a}}u=void 0}O=void 0;w=Number((O=r[w])==null?void 0:O.addedTimestampMillis);w=isNaN(w)?(0,_.g2)():
w;u!==void 0&&E.push({downloadedMusicPlaylistEntities:u,addedTimestampMillis:w})}return E};
maV=function(g){var r=new Set;g=_.U(g);for(var E=g.next();!E.done;E=g.next())if(E=E.value,"musicPlaylistEntity"in E&&"musicPlaylistDownloadStateEntity"in E){E=_.U(E.musicPlaylistEntity.tracks);for(var B=E.next();!B.done;B=E.next())r.add(B.value)}return r};
cAV=function(g,r){if(r){var E=_.u1(g,"musicTrack",_.qr(r,"musicTrack")),B=_.u1(g,"musicArtist",_.qr(r,"musicArtist"))||{};if((g=mPc(g,r))&&E&&B)return Object.assign({},{musicTrackEntity:E,musicArtistEntity:B},g)}};
i7X=function(g){var r=g.musicTrackDownloadMetadataEntity,E=[];if(!r)return[];r=_.U(Object.keys(r));for(var B=r.next();!B.done;B=r.next()){var w=B.value;B=cAV(g,_.S9(w).entityId);var O=void 0;w=Number((O=_.u1(g,"musicTrackDownloadMetadataEntity",w))==null?void 0:O.addedTimestampMillis);O=isNaN(w)?(0,_.g2)():w;B!==void 0&&E.push({downloadedMusicEntities:B,addedTimestampMillis:O})}return E};
hOL=function(g,r){if(!r)return[];if(Object.values(LMD).includes(r))return VPV(g,r);r=_.qr(r,"musicPlaylist");var E;g=(E=g.musicPlaylist)==null?void 0:E[r];E=[];if(g==null||!g.tracks)return E;g=_.U(g.tracks);for(r=g.next();!r.done;r=g.next())(r=_.S9(r.value).entityId)&&E.push(r);return E};
VPV=function(g,r){var E=new Set,B=IEP(g).map(function(O){return O.downloadedMusicPlaylistEntities});
B=maV(B);B=_.U(B);for(var w=B.next();!w.done;w=B.next())(w=_.S9(w.value).entityId)&&E.add(w);return Z7V(g).downloadedMusicEntities.filter(function(O){var M;if((M=O.musicTrackEntity)!=null&&M.videoId){O=O.musicTrackEntity;if(M=r==="PPOM"?!0:!E.has(O.videoId))b:switch(O=O.musicVideoType,r){case "PPSE":M=O==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:M=O!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}O=M}else O=!1;return O}).map(function(O){var M;
return(M=O.musicTrackEntity)==null?void 0:M.videoId})};
Z7V=function(g){var r=i7X(g).sort(function(E,B){return B.addedTimestampMillis-E.addedTimestampMillis}).map(function(E){return"downloadedMusicEntities"in E?E.downloadedMusicEntities:aED(E)?E.downloadedMusicPlaylistEntities:{}});
g=IEP(g).sort(function(E,B){return B.addedTimestampMillis-E.addedTimestampMillis}).map(function(E){return"downloadedMusicEntities"in E?E.downloadedMusicEntities:aED(E)?E.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:r,downloadedMusicPlaylistEntities:g}};
vvt=function(g,r){r=_.Ca("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?hOL(g,r):eOl(g,r);if(!r.length)return"TRANSFER_STATE_UNKNOWN";r=r.map(function(E){return T3Y(g,E)});
return yAQ(r)};
yAQ=function(g){var r=new Set(g);if(r.has("TRANSFER_STATE_FAILED")&&r.size===1)return"TRANSFER_STATE_FAILED";r.delete("TRANSFER_STATE_FAILED");if(r.has("TRANSFER_STATE_UNKNOWN")&&r.size===1)return"TRANSFER_STATE_PRE_TRANSFER";r.delete("TRANSFER_STATE_UNKNOWN");if(r.has("TRANSFER_STATE_PRE_TRANSFER")&&r.size===1||r.size===0)return"TRANSFER_STATE_PRE_TRANSFER";g=r.has("TRANSFER_STATE_TRANSFERRING");r=r.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return g||r?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
s9=function(g){var r=g.mainVideoDownloadStateEntity,E=[];if(!r)return[];r=_.U(Object.keys(r));for(var B=r.next();!B.done;B=r.next()){var w=B.value;if(!c2V(g,_.S9(w).entityId)){B=nf(g,_.S9(w).entityId);var O=void 0,M=void 0;w=(M=Number((O=_.u1(g,"mainVideoDownloadStateEntity",w))==null?void 0:O.addedTimestampMillis))!=null?M:(0,_.g2)();B!==void 0&&E.push({downloadedVideoEntities:B,addedTimestampMillis:w})}}return E};
daL=function(g){return s9(g).sort(function(r,E){return E.addedTimestampMillis-r.addedTimestampMillis}).map(function(r){return r.downloadedVideoEntities})};
_.gTX=function(g){var r=xat(g),E=_.ff(g),B=ZiB(g),w=s9(g).filter(function(M){var u,l;if((M==null?void 0:(u=M.downloadedVideoEntities)==null?void 0:(l=u.transferEntity)==null?void 0:l.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var Q,z;M=M==null?void 0:(Q=M.downloadedVideoEntities)==null?void 0:(z=Q.videoEntity)==null?void 0:z.key;return _.Y("kevlar_use_library_entity")?M&&(B.has(M)||E[M]):M&&!r.has(M)}),O=KMD(g).filter(function(M){return vvt(g,M.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.jW(w),_.jW(O)).sort(function(M,u){return u.addedTimestampMillis-M.addedTimestampMillis}).map(function(M){return Tno(M)})};
r9A=function(g,r){if(r&&XUA(g,r)){var E,B,w=(B=(E=_.u1(g,"playbackData",_.qr(r,"playbackData")))!=null?E:void 0)==null?void 0:B.playerResponseJson;if(w){try{var O=JSON.parse(w);var M=_.u1(g,"transfer",_.qr(r,"transfer")),u=gvD(g,r);u&&(O=Object.assign({},O,{playerConfig:Object.assign({},O.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+u*1E3}}})}));O.cotn=M==null?void 0:M.cotn}catch(l){}return O}}};
_.Byt=function(g){var r,E,B;g=(B=(E=((r=g.downloadsPageViewConfigurationEntity)!=null?r:{})[_.$D])==null?void 0:E.smartDownloadsOptInBannerVisibility)!=null?B:{};var w;return(w=_.n(g,ETl))!=null?w:{}};
_.ff=function(g){var r,E,B;g=(B=(E=((r=g.mainDownloadsListEntity)!=null?r:{})[_.wyY])==null?void 0:E.downloads)!=null?B:[];r={};E=_.U(g);for(B=E.next();!B.done;B=E.next())g=void 0,r[(g=B.value.videoItem)!=null?g:""]=!0;return r};
S7l=function(g){var r=_.ff(g);if(Object.keys(r).length===0)return!1;var E=g.mainVideoEntity;if(!E)return!0;E=_.U(Object.keys(E));for(var B=E.next();!B.done;B=E.next()){B=B.value;var w=_.S9(B).entityId;if(r[B]&&!c2V(g,w))return!1}return!0};
_.j9=function(g){var r=_.ff(g);return s9(g).sort(function(E,B){return E.addedTimestampMillis-B.addedTimestampMillis}).map(function(E){return E.downloadedVideoEntities}).filter(function(E){var B;
return(E=E==null?void 0:(B=E.videoEntity)==null?void 0:B.key)&&!!r[E]})};
_.UCL=function(g){var r,E,B;g=(B=(E=((r=g.downloadsPageViewConfigurationEntity)!=null?r:{})[_.$D])==null?void 0:E.downloadsUpsellBannerVisibility)!=null?B:{};var w;return(w=_.n(g,OYl))!=null?w:{}};
Tno=function(g){return"downloadedVideoEntities"in g?g.downloadedVideoEntities:"downloadedPlaylistEntities"in g?g.downloadedPlaylistEntities:{}};
Mfo=function(g){var r=_.ff(g),E=xat(g),B=s9(g).filter(function(w){var O,M;return(w=w==null?void 0:(O=w.downloadedVideoEntities)==null?void 0:(M=O.videoEntity)==null?void 0:M.key)&&!r[w]&&!E.has(w)});
g=KMD(g);return[].concat(_.jW(B),_.jW(g)).sort(function(w,O){return O.addedTimestampMillis-w.addedTimestampMillis}).map(function(w){return Tno(w)})};
_.Aj=function(g){if(!_.Y("kevlar_use_library_entity"))return Mfo(g);var r=s9(g).filter(function(B){var w,O;if(w=B=B==null?void 0:(w=B.downloadedVideoEntities)==null?void 0:(O=w.videoEntity)==null?void 0:O.key){var M,u,l;w=((u=(M=g.mainDownloadsListEntity)==null?void 0:M[hMo])==null?0:(l=u.downloads)==null?0:l.length)?ZiB(g).has(B):!1}return w}),E=KMD(g);
return[].concat(_.jW(r),_.jW(E)).sort(function(B,w){return w.addedTimestampMillis-B.addedTimestampMillis}).map(function(B){return Tno(B)})};
q7S=function(g){var r=_.ff(g),E=xat(g);return daL(g).filter(function(B){var w;return(B=B==null?void 0:(w=B.videoEntity)==null?void 0:w.key)&&!r[B]&&!E.has(B)})};
udJ=function(g){if(!_.Y("kevlar_use_library_entity"))return q7S(g);var r=_.ff(g),E=ZiB(g);return daL(g).filter(function(B){var w;return(B=B==null?void 0:(w=B.videoEntity)==null?void 0:w.key)&&!r[B]&&E.has(B)})};
lcl=function(g,r){r=_.qr(r,"settingEntity");var E,B,w;return!!((w=(B=((E=g.settingEntity)!=null?E:{})[r])==null?void 0:B.settingOptionValue)!=null?w:{}).boolValue};
_.b1=function(g){var r=_.j9(g);if(a0D(r))return 0;var E=[];r=_.U(r);for(var B=r.next();!B.done;B=r.next()){B=B.value;var w=void 0,O=void 0;if((w=B)==null?0:(O=w.videoEntity)==null?0:O.key)w=_.S9(B.videoEntity.key).entityId,B=g,w=_.qr(w,"mainVideoDownloadStateEntity"),B=_.u1(B,"mainVideoDownloadStateEntity",w),(B=Number(B==null?void 0:B.addedTimestampMillis))&&E.push(B)}return Math.max.apply(Math,_.jW(E))};
_.Jj=function(g){return g.ui.richGridMiniMode};
_.Ps=function(g){return g.ui.richGridItemsPerRow};
_.DCY=function(g){return g.ui.richGridSlimItemsPerRow};
_.oTl=function(g){return g.ui.guideIsExpanded};
_.tj=function(g){return g.ui.miniplayerIsActive};
_.GiP=function(g){return g.ui.singleOptionSurveyIsActive};
_.Fc=function(g){return g.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.Q1D=function(g){return g.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.z0o=function(g){return g.ui.inlinePreviewIsActive};
_.kiD=function(g){return g.ui.inlinePreviewIsEnabled};
_.HYB=function(g){return g.ui.miniplayerPlaybackState};
_.e9=function(g){return g.ui.isOnline};
_.pyL=function(g){return g.ui.frostedGlassMode};
_.Ws=function(g,r){return y2S(g.entities,r)};
_.Cf=function(g,r){return vvt(g.entities,r)};
Y7o=function(g,r){var E;if(r){var B;g=(B=_.u1(g.entities,"offlineVideoPolicy",_.qr(r,"offlineVideoPolicy")))==null?void 0:B.action}else g=void 0;return(E=g)!=null?E:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
R0o=function(g,r){var E;r?(g=_.u1(g.entities,"offlineVideoPolicy",_.qr(r,"offlineVideoPolicy")),g=Number(g==null?void 0:g.expirationTimestamp)):g=void 0;return(E=g)!=null?E:0};
_.nTD=function(g){return _.Rc(g.entities).length};
s1l=function(g,r){return nf(g.entities,r)};
fcL=function(g,r){return ClQ(g.entities,r)};
Kf=function(g,r){return(g=nf(g.entities,r))?_.W4V([g]):0};
_.$Ct=function(g,r){var E=_.Ca("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(E){var B=g.entities;var w=hOL(B,r);if(w.length){var O=[];w=_.U(w);for(var M=w.next();!M.done;M=w.next())(M=cAV(B,M.value))&&O.push(M);B=O}else B=[]}else B=WMJ(g.entities,r);var u;if(E){var l=g.entities;r?(r=_.qr(r,"musicPlaylist"),l=(u=l.musicPlaylist)==null?void 0:u[r],u=l!=null&&l.tracks?l.tracks.length:0):u=0}else u=g.entities,r?(r=_.qr(r,"mainPlaylistEntity"),u=(l=u.mainPlaylistEntity)==null?void 0:l[r],u=u!=null&&u.videos?
u.videos.length:0):u=0;return B.length!==u?0:B?CzJ(B):0};
_.j1t=function(g){return g.download.isLeaderTab};
_.A9A=function(g,r,E){if(!r&&E){var B=g.entities;if(E){var w=xPc(E),O,M;r=(M=(O=_.u1(B,"offlineabilityEntity",_.qr(w,"offlineabilityEntity")))==null?void 0:O.addToOfflineButtonState)!=null?M:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else r="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else O=g.entities,r?(M=xPc(r),r=(w=(B=_.u1(O,"offlineabilityEntity",_.qr(M,"offlineabilityEntity")))==null?void 0:B.addToOfflineButtonState)!=null?w:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):r="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return r};
bYl=function(g,r){g=g.entities;if(r){r=xPc(r);var E,B;r=(B=(E=_.u1(g,"offlineabilityEntity",_.qr(r,"offlineabilityEntity")))==null?void 0:E.addToOfflineButtonState)!=null?B:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else r="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return r};
_.J9S=function(g){var r=g.entities;g=_.e9(g);var E=lcl(r,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.Y("kevlar_modern_downloads_page")&&E)var B=!1;else{var w,O;r=(O=(w=((B=r.downloadsPageViewConfigurationEntity)!=null?B:{})[_.$D])==null?void 0:w.smartDownloadsOptInBannerVisibility)!=null?O:{};B=g?!!r.visibleWithConnection:!!r.visibleWithoutConnection}return B};
_.PwB=function(g){return lcl(g.entities,"SMART_DOWNLOADS_ENABLED")};
_.tfo=function(g){return S7l(g.entities)};
F5t=function(g){return _.j9(g.entities).every(function(r){var E;return(r==null?void 0:(E=r.transferEntity)==null?void 0:E.transferState)&&!eMl.includes(r.transferEntity.transferState)})};
_.e0X=function(g){var r,E,B,w=(B=(E=((r=g.entities.downloadsPageViewConfigurationEntity)!=null?r:{})[_.$D])==null?void 0:E.downloadsUpsellBannerVisibility)!=null?B:{};return _.e9(g)?!!w.visibleWithConnection:!!w.visibleWithoutConnection};
_.W5Q=function(g,r){return c2V(g.entities,r)};
CwV=function(g,r){if(r){var E,B;g=(B=(E=_.u1(g.entities,"downloadStatusEntity",_.qr(r,"downloadStatusEntity")))==null?void 0:E.downloadState)!=null?B:"DOWNLOAD_STATE_UNKNOWN"}else g="DOWNLOAD_STATE_UNKNOWN";return g};
xD=function(g,r){return gvD(g.entities,r)};
XyV=function(g){g=_.K5V(g);var r=g.hours===void 0?0:g.hours,E=g.minutes===void 0?0:g.minutes,B=g.seconds===void 0?0:g.seconds,w=r>0;g=[];w&&(r=_.xCB(r),g.push(r));r=w;r=r===void 0?!1:r;E=(["af","be","lt"].includes(_.ac)||r)&&E<10?acX().format(E):(new Intl.NumberFormat("en-u-nu-latn")).format(E);g.push(E);E=acX().format(B);g.push(E);E=":";"da fi id si sr sr-Latn".split(" ").includes(_.ac)&&(E=".");return g.join(E)};
_.K5V=function(g){var r=g.hours||0,E=g.minutes||0,B=g.seconds||0;r=B+E*60+r*3600+(g.days||0)*86400+(g.weeks||0)*604800+(g.months||0)*2629800+(g.years||0)*31557600;if(r<=0)return{hours:0,minutes:0,seconds:0};g=r;r=Math.floor(g/3600);g%=3600;E=Math.floor(g/60);B=Math.floor(g%60);return{hours:r,minutes:E,seconds:B}};
_.xCB=function(g){g=(new Intl.NumberFormat("en-u-nu-latn")).format(g);var r=["fr"],E="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(_.ac)?g.replace(",","\u00a0"):r.includes(_.ac)?g.replace(",","\u202f"):E.includes(_.ac)?g.replace(",","."):g};
acX=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
NyQ=function(g){try{return(new _.Xc(5)).format(g)}catch(r){}};
Nr=function(g){return{thumbnailOverlayDownloadingRenderer:{state:g}}};
Ict=function(g){if(g=NyQ(g))return{thumbnailOverlaySidePanelRenderer:{text:_.gz(g),icon:{iconType:"PLAYLISTS"}}}};
mCo=function(){var g=_.zn("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.gz(g),icon:{iconType:"PLAY_ALL"}}}};
c9P=function(g){g=_.Ic(g,2);return _.ac!=="ru"&&_.ac!=="es_419"&&_.ac!=="es-419"&&_.ac!=="es"&&_.ac!=="es_US"&&_.ac!=="es-US"&&_.ac!=="fr"&&_.ac!=="pl"&&_.ac!=="it"&&_.ac!=="nl"&&_.ac!=="uk"&&_.ac!=="fr_CA"&&_.ac!=="fr-CA"||g===""?g:g[0].toLocaleUpperCase()+g.substring(1)};
L5A=function(g){return function(r){var E=g(),B=_.Ic(r,E.dateFormat);r=_.Ic(r,E.timeFormat);var w=iYJ.DATETIMEFORMATS[E.joinerStyle];w=w.replace(/'(?!')/g,"");w=w.replace("{0}",r);w=w.replace("{1}",B);return E.capitalize(w)}};
Vft=function(g){return g?typeof g.seconds==="string"&&(g.nanos===void 0||typeof g.nanos==="number"):!1};
h0J=function(g){return new Date(Number(g.seconds)*1E3+(g.nanos||0)*1E-6)};
_.Ic=function(g,r){if(typeof g.getTime==="function")g={date:g};else if(Vft(g))g={date:h0J(g)};else if(typeof Vft(g.timestamp)&&typeof g.i18nInternalSecondsEastOfUtc==="number")g={date:h0J(g.timestamp),timeZone:mu(-g.i18nInternalSecondsEastOfUtc/60)};else throw Error("If`"+JSON.stringify(g));var E=g;g=E.date;E=E.timeZone;r=ZYX(r).format(g,E);_.ac==="zh-TW"&&(g=E?Number(ZYX("H").format(g,E)):g.getHours(),r=g<5?r.replace("\u4e0a\u5348","\u51cc\u6668"):g<8?r.replace("\u4e0a\u5348","\u65e9\u4e0a"):g<12?
r.replace("\u4e0a\u5348","\u4e0a\u5348"):g<13?r.replace("\u4e0b\u5348","\u4e2d\u5348"):g<19?r.replace("\u4e0b\u5348","\u4e0b\u5348"):r.replace("\u4e0b\u5348","\u665a\u4e0a"));return r};
ZYX=function(g){if(y9L.has(g))return y9L.get(g);var r=vTJ(g);r=dCX(r);TyD!==!0&&(TyD=!0);gQD=!0;gQD=!1;r=new cs(r,iYJ);y9L.set(g,r);return r};
vTJ=function(g){return(new cs(g,iYJ)).patternParts_.map(function(r){return r.type===0?"'"+r.text+"'":r.text}).join("")};
dCX=function(g){return _.ac==="en"||_.ac==="es_US"||_.ac==="es-US"?g:g.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(r,E,B){return"H".repeat(E.length)+B})};
MpX=function(g,r){r6D||(_.i1=_.EQP,r6D=new BTL);var E=r6D;a:if(g=waA(g),r=waA(r||new Date),g>r)E=g.getTime()-r.getTime()>6048E5?_.Ic(g,1):SkL(g);else{for(var B=0;OnL(g,12*(B+1))<r;)++B;if(B>0)E=E.format(-B,0);else{for(B=0;OnL(g,B+1)<r;)++B;if(B>0)E=E.format(-B,2);else{g=r.getTime()-g.getTime();r=_.U(UJo);for(B=r.next();!B.done;B=r.next()){B=B.value;var w=B.unit,O=Math.floor(g/B.unitDuration);if(O>=(B.threshold===void 0?1:B.threshold)){E=E.format(-O,w);break a}}E=E.format(-0,7)}}}return E};
waA=function(g){if(typeof g.getTime==="function")return g;if(Vft(g))return h0J(g);throw Error("Jf`"+JSON.stringify(g));};
OnL=function(g,r){for(var E=0,B;;++E)if(B=new Date(g.getFullYear(),g.getMonth()+r,g.getDate()-E,g.getHours(),g.getMinutes(),g.getSeconds()),B.getMonth()===(g.getMonth()+r)%12)return B};
_.Lf=function(g){return{runs:[{text:g}]}};
_.Vp=function(g){if(g&&g.simpleText)return g.simpleText;var r="";if(g&&g.runs)for(var E=0;E<g.runs.length;E++)g.runs[E].text&&(r+=g.runs[E].text);return r};
uLc=function(g,r,E,B){return g.videoEntity&&!g.policyEntity&&E!=="DOWNLOAD_STATE_FAILED"?[Nr("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:Hs(g.policyEntity)&&r!=="TRANSFER_STATE_FAILED"&&r!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?r==="TRANSFER_STATE_PAUSED_BY_USER"?[Nr("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.pf(r)?[Nr("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:g.videoEntity.lengthSeconds?qkl(g.videoEntity.lengthSeconds,B):[]:
[Nr("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
qkl=function(g,r){var E=[{thumbnailOverlayTimeStatusRenderer:{text:_.gz(XyV({seconds:g})),style:"DEFAULT"}}];r&&(g=r<=0||g<=0?0:r>=g?100:Math.ceil(r*100/g),g>0&&E.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:g}}));return E};
liJ=function(g,r,E,B,w){if(r==="TRANSFER_STATE_UNKNOWN"||!g)return{};if(_.pf(r)||r==="TRANSFER_STATE_PRE_TRANSFER")var O=[Nr("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var M,u;if(r==="TRANSFER_STATE_COMPLETE"&&((M=g.mainPlaylistEntity)==null?0:(u=M.videos)==null?0:u.length)){if(_.Y("web_modern_collections_v2")){var l;var Q=(O=g.mainPlaylistEntity)==null?void 0:(l=O.videos)==null?void 0:l.length;O=(O=NyQ(Q))?{thumbnailOverlayBottomPanelRenderer:{text:_.gz(O),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var z;O=Ict((Q=g.mainPlaylistEntity)==null?void 0:(z=Q.videos)==null?void 0:z.length)}var k;O=[mCo(),Object.assign({},(k=O)!=null?k:{})]}else O=[]}k=O;a:if(r==="TRANSFER_STATE_PRE_TRANSFER")E=rz(_.zn("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(r==="TRANSFER_STATE_TRANSFER_IN_QUEUE")E=rz(_.zn("WAITING_TO_DOWNLOAD"));else if(_.pf(r))E=Math.floor(E*100).toString(),E=rz(_.zn("DOWNLOADING_PERCENT",{percent:E},"Downloading... "+E+"%"));else{if(B&&(_.Y("playlist_is_offline_selector_killswitch")&&
(w=_.rM().resolve(_.id).isNetworkAvailable()),w)){E=cht(_.zn("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),ICY(B));break a}E=void 0}r=r==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.zn("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},k.length?{thumbnailOverlays:k}:{},E?{viewPlaylistText:E}:{viewPlaylistText:_.Lf("")},r.length?{badges:r}:{})};
DJD=function(g,r,E,B,w,O){if(r==="TRANSFER_STATE_UNKNOWN"||!g)return{};if(B==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var M=uLc(g,r,B);if(g.videoEntity&&!g.policyEntity&&B!=="DOWNLOAD_STATE_FAILED"){var u=_.zn("WAITING_TO_DOWNLOAD");if(u)return{shortViewCountText:_.Lf(u),publishedTimeText:void 0,thumbnailOverlays:M}}if(!Hs(g.policyEntity)){O=g.policyEntity&&!K4t(g.policyEntity)?_.zn("DOWNLOAD_EXPIRED",{},"Download expired"):
_.zn("TRANSFER_FAILED",{},"Download failed");var l;if((l=g.policyEntity)==null?0:l.shortMessageForDisabledAction)O=g.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:rz(O),publishedTimeText:void 0,thumbnailOverlays:M}}if(r==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.Lf(_.zn("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:M};if(r==="TRANSFER_STATE_FAILED"||r==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.Lf(_.zn("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:M};if(r==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(l=_.zn("WAITING_TO_DOWNLOAD"),B==="DOWNLOAD_STATE_PAUSED"&&(l=_.zn("DOWNLOAD_PAUSED",{},"Download paused")),l))return{shortViewCountText:_.Lf(l),publishedTimeText:void 0,thumbnailOverlays:M};if(_.pf(r))return g=Math.floor(E*100).toString(),{shortViewCountText:_.Lf(_.zn("DOWNLOADING_PERCENT",{percent:g},"Downloading... "+g+"%")),publishedTimeText:void 0,thumbnailOverlays:M};r=void 0;g.videoEntity.publishedTimestampMillis&&
(r=new Date,w&&(r=new Date(w)),r=rz(MpX(new Date(Number(g.videoEntity.publishedTimestampMillis)),r)));w=[];_.Y("kevlar_woffle_badge_killswitch")||(w=[{metadataBadgeRenderer:{label:_.zn("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var Q;g=rz((Q=g.videoEntity.localizedStrings)==null?void 0:Q.viewCount);return Object.assign({},O?{shortViewCountText:void 0}:{shortViewCountText:g},O?{}:{publishedTimeText:r},{badges:w,thumbnailOverlays:M})};
Gml=function(g,r){g=g===void 0?oQc:g;switch(r.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:r.payload.playlistId,inviteLinkURL:r.payload.inviteLinkUrl};default:return g}};
ztB=function(g,r){g=g===void 0?QHY:g;switch(r.type){case "SET_CURRENT_FORM_ID":return r=r.payload.formId,g.currentFormId===r?g:{currentFormId:r,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var E=r.payload;r=E.groupId;E=E.command;if(g.currentFormId){var B=Object.assign({},g.commandsMap);B[r]=E;g=Object.assign({},g,{commandsMap:B})}return g;case "RESET_COMMAND_MAP":return Object.assign({},g,{commandsMap:{}});default:return g}};
Hnl=function(g,r){g=g===void 0?kml:g;switch(r.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},g,{guideIsExpanded:r.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},g,{scrollAtTop:r.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},g,{guideIsVisibleButNotPersistent:r.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},g,{miniplayerIsActive:r.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},g,{singleOptionSurveyIsActive:r.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},g,{slimlineSurveyRatingSelectedIndex:r.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},g,{richGridMiniMode:r.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},g,{richGridItemsPerRow:r.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},g,{richGridSlimItemsPerRow:r.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},g,{richGridContainerWidth:r.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},g,{richGridStyle:r.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},g,{currentPageType:r.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},g,{inlinePreviewIsActive:r.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},g,{inlinePreviewIsEnabled:r.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},g,{darkModeIsEnabled:r.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
g,{miniplayerPlaybackState:r.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},g,{tabGesturesIsActive:r.payload});case "SET_ONLINE_STATUS":return Object.assign({},g,{isOnline:r.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},g,{chipBarIsSticky:r.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},g,{frostedGlassMode:r.payload});default:return g}};
YkA=function(g,r){g=g===void 0?paP:g;switch(r.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},g,{transcription:r.payload});case "SET_OVERLAY_STATE":return Object.assign({},g,{overlay:r.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return g}};
PTB=function(){return DY(Object.assign({},{continuation:RtY,entities:OiB,download:nQD,reportChannelAbuse:sHY,share:fiB,talkToRecs:$Jt,ui:Hnl,voiceSearch:YkA,watch:jHt,ypc:A6l,shorts:bnc,radioButtonGroup:ztB,collabInviteLink:Gml},J6l))};
etc=function(){return _.Y("web_player_entities_middleware")?new hj(PTB(),[tpS,FYX]):new hj(PTB(),[tpS])};
_.Zz=function(){WYY||(WYY=etc());return WYY};
CTD=function(g,r,E){if(g.length)return{titleText:_.gz(r!=null?r:_.zn("DOWNLOADS",void 0,"Downloads")),contents:g.map(function(B){var w=B.videoEntity;B={videoId:w.videoId,title:rz(w.title),shortBylineText:rz(B.channelEntity.title),thumbnail:w.thumbnail};var O=w.videoId?xD(_.Zz().getState(),w.videoId):0;w.videoId&&E?B.navigationEndpoint=_.Tn(w.videoId,E,void 0,void 0,O):w.videoId&&(B.navigationEndpoint=N8J(w.videoId,O,w.lengthSeconds));w.lengthSeconds&&(B.thumbnailOverlays=qkl(w.lengthSeconds,O));return{playlistPanelVideoRenderer:B}}),
totalVideos:g.length}};
KYB=function(g){return(g=(0,_.jn.getValueByKeys)(g,"playlistId"))?{playlistId:g}:null};
xJS=function(){return{}};
aiP=function(g,r){return new _.D8(function(E,B){g.then(function(w){if(w){if(w=r(w))return E(w);B()}},B)})};
XaA=function(g){var r,E,B,w=(r=g.contents)==null?void 0:(E=r.twoColumnWatchNextResults)==null?void 0:(B=E.autoplay)==null?void 0:B.autoplay,O,M,u;r=(O=g.contents)==null?void 0:(M=O.twoColumnWatchNextResults)==null?void 0:(u=M.playlist)==null?void 0:u.playlist;return w&&r&&r.playlistId?{rawResponse:g,autoplayRenderer:w,playlistPanelRenderer:r,playlistId:r.playlistId}:null};
IiS=function(g){var r=r===void 0?"UNKNOWN_INTERFACE":r;if(g.length===1)return g[0];var E=NTL[r];if(E){E=new RegExp(E);for(var B=_.U(g),w=B.next();!w.done;w=B.next())if(w=w.value,E.exec(w))return w}var O=[];Object.entries(NTL).forEach(function(M){var u=_.U(M);M=u.next().value;u=u.next().value;r!==M&&O.push(u)});
E=new RegExp(O.join("|"));g.sort(function(M,u){return M.length-u.length});
B=_.U(g);for(w=B.next();!w.done;w=B.next())if(w=w.value,!E.exec(w))return w;return g[0]};
_.yp=function(g){return"/youtubei/v1/"+IiS(g)};
_.vs=function(g){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:g}}}}};
_.dz=function(g){return _.vs(_.Lf(g))};
mJS=function(g,r){var E={mode:"NORMAL"};g&&(E.autoplayVideo=g.navigationEndpoint,E.nextButtonVideo=g.navigationEndpoint);r&&(E.previousButtonVideo=r.navigationEndpoint);return E};
LYc=function(g,r,E){if(!E||!E.sets)return{sets:[mJS(g,r)]};var B=E.sets.find(function(M){return M.mode==="NORMAL"}),w=(0,_.jn.unsafeClone)(E);
if(!B)return w.sets.push(mJS(g,r)),w;if(!g)return E;B=_.jn.getValueByKeys.apply(null,[B].concat(_.jW(c6J)));var O=_.jn.getValueByKeys.apply(null,[g].concat(_.jW(inD)));if(B===O)return E;w.sets=w.sets.filter(function(M){return M.mode!=="NORMAL"});
w.sets.push(mJS(g,r));return w};
VpX=function(g){return!!g.playlistPanelVideoRenderer&&!g.playlistPanelVideoRenderer.unplayableText};
htt=function(g){return!!g.playlistPanelVideoRenderer&&!!g.playlistPanelVideoRenderer.title};
Zno=function(g,r){if(r.contents&&!(g>=r.contents.length)&&(g=r.contents.slice(g).find(VpX)))return g.playlistPanelVideoRenderer};
y6J=function(g,r){if(r.contents)return(r=r.contents.find(function(E){return!!E.playlistPanelVideoRenderer&&E.playlistPanelVideoRenderer.videoId===g}))?r.playlistPanelVideoRenderer:void 0};
vQX=function(g,r){return r.contents?r.contents.findIndex(function(E){return!!E.playlistPanelVideoRenderer&&E.playlistPanelVideoRenderer.videoId===g}):-1};
dJV=function(g,r){return r.contents?r.contents.findIndex(function(E){return!!E.playlistPanelVideoRenderer&&E.playlistPanelVideoRenderer.playlistSetVideoId===g}):-1};
TTl=function(g,r){g.contents&&r!==-1&&g.contents.splice(r,1).length===1&&g.totalVideos!==void 0&&(--g.totalVideos,delete g.videoCountText)};
_.glY=function(g){var r=[];if(!g||!g.contents)return r;g=_.U(g.contents);for(var E=g.next();!E.done;E=g.next())E=E.value,E.playlistPanelVideoRenderer&&E.playlistPanelVideoRenderer.videoId&&r.push(E.playlistPanelVideoRenderer.videoId);return r};
_.rmP=function(g){if(g&&g.contents)return(g=g.contents.find(function(r){return!!r.playlistPanelVideoRenderer&&!!r.playlistPanelVideoRenderer.selected})||g.contents[g.currentIndex])?g.playlistPanelVideoRenderer:void 0};
Elt=function(g,r,E,B,w,O,M){w=w===void 0?!1:w;O=O===void 0?!1:O;M=M===void 0?!1:M;if(g.contents&&g.contents.length!==0){B&&(g.contents=g.contents.filter(B));B=g.contents.length;for(var u=0;u<B;u++){var l=g.contents[u].playlistPanelVideoRenderer;l&&(u===r?(O&&delete l.menu,l.indexText=_.Lf("\u25b6")):w||g.isInfinite||l.indexText===void 0?delete l.indexText:l.indexText=_.Lf((u+1+E).toString()))}g.currentIndex=r+E;M&&(delete g.videoCountText,g.totalVideos=B)}};
_.TC=function(g){g=BVV(g);if(g){var r=g.length;var E=-7%r;E<0&&(E=r+E);g=g.slice(r-E)+g.slice(0,r-E)}else g="";E="";for(r=0;r<g.length&&g[r]!==wPQ;r++)E+=g[r];return E};
_.SCV=function(g,r){var E=document.body;r=r===void 0?function(u){return u}:r;
var B,w=null;g=_.U(g);for(B=g.next();!B.done;B=g.next()){var O=B.value;B="div";O[2]&&(B=r(O[2]));B=document.createElement(B);w||(w=B);var M=O[0];O=O[1];M&&(B.id=r(M));if(O)for(O=_.U(O),M=O.next();!M.done;M=O.next())B.classList.add(r(M.value));E.appendChild(B);E=B}return[w,E]};
OBP=function(g,r){for(var E="",B=0;B<r;B++)E+=g.charAt(Math.floor(Math.random()*g.length));return E};
gb=function(g){return OBP("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",g)};
rb=function(g){return OBP("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",g)};
Bo=function(g){return OBP("0123456789",g)};
wb=function(){var g=performance.now(),r=new Date;var E="2."+r.getFullYear()+String(r.getMonth()+1).padStart(2,"0")+String(r.getDate()).padStart(2,"0");for(var B,w=Math.floor(Math.random()*11)+15,O=[],M=0;M<w;M++)O.push(Math.floor(Math.random()*26476865)+24547720);B=O.join(",");var u=gb(10),l=gb(100),Q=gb(102),z=gb(106),k=gb(108),H=gb(11),R=gb(1140),A=gb(123),J=gb(14),e=gb(16),C=gb(1900),X=gb(23),Z=gb(26),c=gb(34),h=gb(397),y=gb(44),OD=gb(5),uB=gb(72),zS=gb(74),jV=gb(75),PJ=gb(88),At=gb(91),XY="rr3---sn-q4fl6n66 rr2---sn-4g5ednz7 rr2---sn-hgn7rn7y rr5---sn-q4flrnsl rr1---sn-q4flrn7r rr4---sn-ntqe6nee rr1---sn-aigzrnld rr4---sn-5hne6nsz rr5---sn-t0a7lnee rr5---sn-t0a7ln7d rr2---sn-q4fl6nd6 rr3---sn-q4fl6nsl rr4---sn-5hne6nsy rr4---sn-q4flrnel rr1---sn-ntqe6nes rr3---sn-q4fl6nsk rr2---sn-q4flrney rr1---sn-q4fl6nd6 rr1---sn-q4flrnle rr2---sn-q4fzenee".split(" ");
var xc=XY[Math.floor(Math.random()*XY.length)];var rg=(new Date("2010-01-01")).getTime();var $t=(new Date(rg+Math.random()*((new Date).getTime()-rg))).toISOString().split("T")[0];for(var tD,GD=[],xb=0;xb<4;xb++)GD.push(Math.floor(Math.random()*100));tD=GD.join(".");var zL=Number(Bo(5)),AD=Number(Bo(6)),lA=Number(Bo(7)),pt=Number(Bo(9)),Mo=Bo(1),un=Bo(10),sw=Bo(16),J8=Bo(19),Rm=Bo(2),Lw=Bo(20),cb=Bo(21),ZI=Bo(3),Ow=Bo(4),XZ=Bo(5),RA=Bo(6),kb=Bo(7),bn=Bo(8),D4=Bo(9);var UU=OBP("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var OM=[rb(5),rb(5),rb(5)].join("%2C"),RF=[Bo(3),Bo(5),Bo(5)].join("%2C"),cE=rb(0),Im=rb(1),PF=rb(10),TL=rb(108),El=rb(11),f9=rb(12),K$=rb(13),SL=rb(14),TU=rb(15),CI=rb(16),$R=rb(17),sD=rb(18),CL=rb(19),cJ=rb(2),ln=rb(20),Sv=rb(22),PH=rb(23),oA=rb(24),QT=rb(266),DI=rb(3),nD=rb(30),QB=rb(34),Uw=rb(35),Hu=rb(36),Ak=rb(4),Ct=rb(40),n$=rb(43),ic=rb(47),j3=rb(5),iB=rb(6),UM=rb(7),X$=rb(75),h8=rb(8),Um=rb(80),lY=rb(9),z_="https://www."+rb(12)+".com",EP={},Fa={},Cj={},vtX={},Kj={},o7={},GN={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:B}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:E},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+rb(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:E},{key:"client.name",value:"WEB"},{key:"client.fexp",value:B}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:cb+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+rb(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:Ct,ypcGetOfflineUpsellEndpoint:{params:Um}},trackingParams:Uw+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+xc+".googlevideo.com/videoplayback?expire="+un+"&ei="+X+"&ip="+tD+"&id=o-AF"+n$+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+RF+"&mn="+OM+"&ms="+OM+"&mv="+Im+"&mvi="+Mo+"&pl="+Rm+"&initcwndbps="+kb+"&siu="+Mo+"&spc="+y+"&vprv="+Mo+"&svpuc="+Mo+"&mime=video%2Fmp4&ns="+oA+"&cnr="+Rm+"&ratebypass=yes&dur="+bn+"&lmt="+sw+"&mt="+un+"&fvip=3&c=WEB&txp="+kb+"&n="+e+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:AD,width:640,height:360,lastModified:sw,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:kb,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+xc+".googlevideo.com/videoplayback?expire="+un+"&ei="+X+"&ip="+tD+"&id=o-AF"+n$+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+RF+"&mn="+
OM+"&ms="+OM+"&mv="+Im+"&mvi="+Mo+"&pl="+Rm+"&initcwndbps="+kb+"&siu="+Mo+"&spc="+y+"&vprv="+Mo+"&svpuc="+Mo+"&mime=video%2Fmp4&ns="+oA+"&cnr="+Rm+"&ratebypass=yes&dur="+bn+"&lmt="+sw+"&mt="+un+"&fvip=3&c=WEB&txp="+kb+"&n="+e+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+TL+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:AD,width:1280,
height:720,lastModified:sw,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:kb,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+xc+".googlevideo.com/videoplayback?expire="+un+"&ei="+X+"&ip="+tD+"&id=o-AF"+n$+"&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="+RF+"&mn="+OM+"&ms="+
OM+"&mv="+Im+"&mvi="+Mo+"&pl="+Rm+"&initcwndbps="+kb+"&siu="+Mo+"&spc="+y+"&vprv="+Mo+"&svpuc="+Mo+"&mime=video%2Fmp4&ns="+oA+"&gir="+DI+"&clen="+D4+"&dur="+bn+"&lmt="+sw+"&mt="+un+"&fvip=3&keepalive="+DI+"&c=WEB&txp="+kb+"&n="+CI+"&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="+k,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:lA,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:ZI,end:Ow},lastModified:sw,contentLength:D4,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:lA,approxDurationMs:kb},{itag:248,url:"https://"+xc+".googlevideo.com/videoplayback?expire="+un+"&ei="+X+"&ip="+tD+"&id=o-AF"+n$+"&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="+RF+"&mn="+OM+"&ms="+OM+"&mv="+
Im+"&mvi="+Mo+"&pl="+Rm+"&initcwndbps="+kb+"&siu="+Mo+"&spc="+y+"&vprv="+Mo+"&svpuc="+Mo+"&mime=video%2Fwebm&ns="+oA+"&gir="+DI+"&clen="+D4+"&dur="+bn+"&lmt="+sw+"&mt="+un+"&fvip=3&keepalive="+DI+"&c=WEB&txp="+kb+"&n="+CI+"&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="+k,mimeType:'video/webm; codecs="vp9"',bitrate:lA,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:ZI,end:Ow},lastModified:sw,contentLength:D4,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:lA,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:kb},{itag:399,url:"https://"+xc+".googlevideo.com/videoplayback?expire="+un+"&ei="+X+"&ip="+tD+"&id=o-AF"+n$+"&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="+
RF+"&mn="+OM+"&ms="+OM+"&mv="+Im+"&mvi="+Mo+"&pl="+Rm+"&initcwndbps="+kb+"&siu="+Mo+"&spc="+y+"&vprv="+Mo+"&svpuc="+Mo+"&mime=video%2Fmp4&ns="+oA+"&gir="+DI+"&clen="+D4+"&dur="+bn+"&lmt="+sw+"&mt="+un+"&fvip=3&keepalive="+DI+"&c=WEB&txp="+kb+"&n="+CI+"&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="+k,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:lA,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:ZI,end:Ow},lastModified:sw,contentLength:D4,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:lA,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:kb},{itag:136,url:"https://"+xc+".googlevideo.com/videoplayback?expire="+un+"&ei="+X+"&ip="+tD+"&id=o-AF"+n$+"&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="+
RF+"&mn="+OM+"&ms="+OM+"&mv="+Im+"&mvi="+Mo+"&pl="+Rm+"&initcwndbps="+kb+"&siu="+Mo+"&spc="+y+"&vprv="+Mo+"&svpuc="+Mo+"&mime=video%2Fmp4&ns="+oA+"&gir="+DI+"&clen="+D4+"&dur="+bn+"&lmt="+sw+"&mt="+un+"&fvip=3&keepalive="+DI+"&c=WEB&txp="+kb+"&n="+CI+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:lA,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:ZI,end:Ow},lastModified:sw,contentLength:D4,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:AD,approxDurationMs:kb},{itag:247,url:"https://"+xc+".googlevideo.com/videoplayback?expire="+un+"&ei="+X+"&ip="+tD+"&id=o-AF"+n$+"&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="+RF+"&mn="+
OM+"&ms="+OM+"&mv="+Im+"&mvi="+Mo+"&pl="+Rm+"&initcwndbps="+kb+"&siu="+Mo+"&spc="+y+"&vprv="+Mo+"&svpuc="+Mo+"&mime=video%2Fwebm&ns="+oA+"&gir="+DI+"&clen="+D4+"&dur="+bn+"&lmt="+sw+"&mt="+un+"&fvip=3&keepalive="+DI+"&c=WEB&txp="+kb+"&n="+CI+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/webm; codecs="vp9"',bitrate:lA,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:ZI,end:Ow},lastModified:sw,contentLength:D4,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:AD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:kb},{itag:398,url:"https://"+xc+".googlevideo.com/videoplayback?expire="+un+"&ei="+X+"&ip="+tD+"&id=o-AF"+n$+"&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="+
RF+"&mn="+OM+"&ms="+OM+"&mv="+Im+"&mvi="+Mo+"&pl="+Rm+"&initcwndbps="+kb+"&siu="+Mo+"&spc="+y+"&vprv="+Mo+"&svpuc="+Mo+"&mime=video%2Fmp4&ns="+oA+"&gir="+DI+"&clen="+D4+"&dur="+bn+"&lmt="+sw+"&mt="+un+"&fvip=3&keepalive="+DI+"&c=WEB&txp="+kb+"&n="+CI+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:lA,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:ZI,end:Ow},lastModified:sw,contentLength:D4,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:AD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:kb},{itag:135,url:"https://"+xc+".googlevideo.com/videoplayback?expire="+un+"&ei="+X+"&ip="+tD+"&id=o-AF"+n$+"&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="+
RF+"&mn="+OM+"&ms="+OM+"&mv="+Im+"&mvi="+Mo+"&pl="+Rm+"&initcwndbps="+kb+"&siu="+Mo+"&spc="+y+"&vprv="+Mo+"&svpuc="+Mo+"&mime=video%2Fmp4&ns="+oA+"&gir="+DI+"&clen="+bn+"&dur="+bn+"&lmt="+sw+"&mt="+un+"&fvip=3&keepalive="+DI+"&c=WEB&txp="+kb+"&n="+CI+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:AD,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:ZI,end:Ow},lastModified:sw,contentLength:bn,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:AD,approxDurationMs:kb},{itag:244,url:"https://"+xc+".googlevideo.com/videoplayback?expire="+un+"&ei="+X+"&ip="+tD+"&id=o-AF"+n$+"&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="+RF+"&mn="+
OM+"&ms="+OM+"&mv="+Im+"&mvi="+Mo+"&pl="+Rm+"&initcwndbps="+kb+"&siu="+Mo+"&spc="+y+"&vprv="+Mo+"&svpuc="+Mo+"&mime=video%2Fwebm&ns="+oA+"&gir="+DI+"&clen="+bn+"&dur="+bn+"&lmt="+sw+"&mt="+un+"&fvip=3&keepalive="+DI+"&c=WEB&txp="+kb+"&n="+CI+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+TL+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/webm; codecs="vp9"',bitrate:AD,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:ZI,end:Ow},lastModified:sw,contentLength:bn,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:AD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:kb},{itag:397,url:"https://"+xc+".googlevideo.com/videoplayback?expire="+un+"&ei="+X+"&ip="+tD+"&id=o-AF"+n$+"&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="+
RF+"&mn="+OM+"&ms="+OM+"&mv="+Im+"&mvi="+Mo+"&pl="+Rm+"&initcwndbps="+kb+"&siu="+Mo+"&spc="+y+"&vprv="+Mo+"&svpuc="+Mo+"&mime=video%2Fmp4&ns="+oA+"&gir="+DI+"&clen="+bn+"&dur="+bn+"&lmt="+sw+"&mt="+un+"&fvip=3&keepalive="+DI+"&c=WEB&txp="+kb+"&n="+CI+"&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="+k,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:AD,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:ZI,end:Ow},lastModified:sw,contentLength:bn,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:AD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:kb},{itag:134,url:"https://"+xc+".googlevideo.com/videoplayback?expire="+un+"&ei="+X+"&ip="+tD+"&id=o-AF"+n$+"&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="+
RF+"&mn="+OM+"&ms="+OM+"&mv="+Im+"&mvi="+Mo+"&pl="+Rm+"&initcwndbps="+kb+"&siu="+Mo+"&spc="+y+"&vprv="+Mo+"&svpuc="+Mo+"&mime=video%2Fmp4&ns="+oA+"&gir="+DI+"&clen="+bn+"&dur="+bn+"&lmt="+sw+"&mt="+un+"&fvip=3&keepalive="+DI+"&c=WEB&txp="+kb+"&n="+CI+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:AD,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:ZI,end:Ow},lastModified:sw,contentLength:bn,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:AD,highReplication:!0,approxDurationMs:kb},{itag:243,url:"https://"+xc+".googlevideo.com/videoplayback?expire="+un+"&ei="+X+"&ip="+tD+"&id=o-AF"+n$+"&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="+
RF+"&mn="+OM+"&ms="+OM+"&mv="+Im+"&mvi="+Mo+"&pl="+Rm+"&initcwndbps="+kb+"&siu="+Mo+"&spc="+y+"&vprv="+Mo+"&svpuc="+Mo+"&mime=video%2Fwebm&ns="+oA+"&gir="+DI+"&clen="+bn+"&dur="+bn+"&lmt="+sw+"&mt="+un+"&fvip=3&keepalive="+DI+"&c=WEB&txp="+kb+"&n="+CI+"&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="+k,mimeType:'video/webm; codecs="vp9"',bitrate:AD,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:ZI,end:Ow},lastModified:sw,contentLength:bn,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:AD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:kb},{itag:396,url:"https://"+xc+".googlevideo.com/videoplayback?expire="+un+"&ei="+X+"&ip="+tD+"&id=o-AF"+n$+"&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="+
RF+"&mn="+OM+"&ms="+OM+"&mv="+Im+"&mvi="+Mo+"&pl="+Rm+"&initcwndbps="+kb+"&siu="+Mo+"&spc="+y+"&vprv="+Mo+"&svpuc="+Mo+"&mime=video%2Fmp4&ns="+oA+"&gir="+DI+"&clen="+bn+"&dur="+bn+"&lmt="+sw+"&mt="+un+"&fvip=3&keepalive="+DI+"&c=WEB&txp="+kb+"&n="+CI+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:AD,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:ZI,end:Ow},lastModified:sw,contentLength:bn,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:AD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:kb},{itag:133,url:"https://"+xc+".googlevideo.com/videoplayback?expire="+un+"&ei="+X+"&ip="+tD+"&id=o-AF"+n$+"&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="+
RF+"&mn="+OM+"&ms="+OM+"&mv="+Im+"&mvi="+Mo+"&pl="+Rm+"&initcwndbps="+kb+"&siu="+Mo+"&spc="+y+"&vprv="+Mo+"&svpuc="+Mo+"&mime=video%2Fmp4&ns="+oA+"&gir="+DI+"&clen="+bn+"&dur="+bn+"&lmt="+sw+"&mt="+un+"&fvip=3&keepalive="+DI+"&c=WEB&txp="+kb+"&n="+CI+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:AD,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:ZI,end:Ow},lastModified:sw,contentLength:bn,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:AD,approxDurationMs:kb},{itag:242,url:"https://"+xc+".googlevideo.com/videoplayback?expire="+un+"&ei="+X+"&ip="+tD+"&id=o-AF"+n$+"&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="+RF+"&mn="+
OM+"&ms="+OM+"&mv="+Im+"&mvi="+Mo+"&pl="+Rm+"&initcwndbps="+kb+"&siu="+Mo+"&spc="+y+"&vprv="+Mo+"&svpuc="+Mo+"&mime=video%2Fwebm&ns="+oA+"&gir="+DI+"&clen="+bn+"&dur="+bn+"&lmt="+sw+"&mt="+un+"&fvip=3&keepalive="+DI+"&c=WEB&txp="+kb+"&n="+CI+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/webm; codecs="vp9"',bitrate:AD,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:ZI,end:Ow},lastModified:sw,contentLength:bn,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:AD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:kb},{itag:395,url:"https://"+xc+".googlevideo.com/videoplayback?expire="+un+"&ei="+X+"&ip="+tD+"&id=o-AF"+n$+"&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="+
RF+"&mn="+OM+"&ms="+OM+"&mv="+Im+"&mvi="+Mo+"&pl="+Rm+"&initcwndbps="+kb+"&siu="+Mo+"&spc="+y+"&vprv="+Mo+"&svpuc="+Mo+"&mime=video%2Fmp4&ns="+oA+"&gir="+DI+"&clen="+bn+"&dur="+bn+"&lmt="+sw+"&mt="+un+"&fvip=3&keepalive="+DI+"&c=WEB&txp="+kb+"&n="+CI+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:AD,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:ZI,end:Ow},lastModified:sw,contentLength:bn,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:AD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:kb},{itag:160,url:"https://"+xc+".googlevideo.com/videoplayback?expire="+un+"&ei="+X+"&ip="+tD+"&id=o-AF"+n$+"&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="+
RF+"&mn="+OM+"&ms="+OM+"&mv="+Im+"&mvi="+Mo+"&pl="+Rm+"&initcwndbps="+kb+"&siu="+Mo+"&spc="+y+"&vprv="+Mo+"&svpuc="+Mo+"&mime=video%2Fmp4&ns="+oA+"&gir="+DI+"&clen="+bn+"&dur="+bn+"&lmt="+sw+"&mt="+un+"&fvip=3&keepalive="+DI+"&c=WEB&txp="+kb+"&n="+CI+"&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="+k,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:AD,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:ZI,end:Ow},lastModified:sw,contentLength:bn,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:zL,approxDurationMs:kb},{itag:278,url:"https://"+xc+".googlevideo.com/videoplayback?expire="+un+"&ei="+X+"&ip="+tD+"&id=o-AF"+n$+"&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="+RF+"&mn="+
OM+"&ms="+OM+"&mv="+Im+"&mvi="+Mo+"&pl="+Rm+"&initcwndbps="+kb+"&siu="+Mo+"&spc="+y+"&vprv="+Mo+"&svpuc="+Mo+"&mime=video%2Fwebm&ns="+oA+"&gir="+DI+"&clen="+bn+"&dur="+bn+"&lmt="+sw+"&mt="+un+"&fvip=3&keepalive="+DI+"&c=WEB&txp="+kb+"&n="+CI+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/webm; codecs="vp9"',bitrate:AD,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:ZI,end:Ow},lastModified:sw,contentLength:bn,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:zL,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:kb},{itag:394,url:"https://"+xc+".googlevideo.com/videoplayback?expire="+un+"&ei="+X+"&ip="+tD+"&id=o-AF"+n$+"&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="+
RF+"&mn="+OM+"&ms="+OM+"&mv="+Im+"&mvi="+Mo+"&pl="+Rm+"&initcwndbps="+kb+"&siu="+Mo+"&spc="+y+"&vprv="+Mo+"&svpuc="+Mo+"&mime=video%2Fmp4&ns="+oA+"&gir="+DI+"&clen="+bn+"&dur="+bn+"&lmt="+sw+"&mt="+un+"&fvip=3&keepalive="+DI+"&c=WEB&txp="+kb+"&n="+CI+"&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="+k,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:zL,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:ZI,end:Ow},lastModified:sw,contentLength:bn,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:zL,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:kb},{itag:140,url:"https://"+xc+".googlevideo.com/videoplayback?expire="+un+"&ei="+X+"&ip="+tD+"&id=o-AF"+n$+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
RF+"&mn="+OM+"&ms="+OM+"&mv="+Im+"&mvi="+Mo+"&pl="+Rm+"&initcwndbps="+kb+"&siu="+Mo+"&spc="+y+"&vprv="+Mo+"&svpuc="+Mo+"&mime=audio%2Fmp4&ns="+oA+"&gir="+DI+"&clen="+bn+"&dur="+bn+"&lmt="+sw+"&mt="+un+"&fvip=3&keepalive="+DI+"&c=WEB&txp="+kb+"&n="+CI+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:AD,
initRange:{start:"0",end:"631"},indexRange:{start:ZI,end:Ow},lastModified:sw,contentLength:bn,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:AD,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:kb,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+xc+".googlevideo.com/videoplayback?expire="+un+"&ei="+X+"&ip="+tD+"&id=o-AF"+n$+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+RF+"&mn="+OM+"&ms="+OM+"&mv="+Im+"&mvi="+Mo+"&pl="+
Rm+"&initcwndbps="+kb+"&siu="+Mo+"&spc="+y+"&vprv="+Mo+"&svpuc="+Mo+"&mime=audio%2Fwebm&ns="+oA+"&gir="+DI+"&clen="+kb+"&dur="+bn+"&lmt="+sw+"&mt="+un+"&fvip=3&keepalive="+DI+"&c=WEB&txp="+kb+"&n="+CI+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'audio/webm; codecs="opus"',bitrate:zL,initRange:{start:"0",end:"265"},indexRange:{start:ZI,
end:Ow},lastModified:sw,contentLength:kb,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:zL,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:kb,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+xc+".googlevideo.com/videoplayback?expire="+un+"&ei="+X+"&ip="+tD+"&id=o-AF"+n$+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+RF+"&mn="+OM+"&ms="+OM+"&mv="+Im+"&mvi="+Mo+"&pl="+Rm+"&initcwndbps="+kb+"&siu="+Mo+"&spc="+y+"&vprv="+Mo+"&svpuc="+Mo+"&mime=audio%2Fwebm&ns="+
oA+"&gir="+DI+"&clen="+kb+"&dur="+bn+"&lmt="+sw+"&mt="+un+"&fvip=3&keepalive="+DI+"&c=WEB&txp="+kb+"&n="+CI+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'audio/webm; codecs="opus"',bitrate:zL,initRange:{start:"0",end:"265"},indexRange:{start:ZI,end:Ow},lastModified:sw,contentLength:kb,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:zL,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:kb,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+xc+".googlevideo.com/videoplayback?expire="+un+"&ei="+X+"&ip="+tD+"&id=o-AF"+n$+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+RF+"&mn="+OM+"&ms="+OM+"&mv="+Im+"&mvi="+Mo+"&pl="+Rm+"&initcwndbps="+kb+"&siu="+Mo+"&spc="+y+"&vprv="+Mo+"&svpuc="+Mo+"&mime=audio%2Fwebm&ns="+oA+"&gir="+DI+"&clen="+bn+"&dur="+bn+"&lmt="+sw+"&mt="+un+"&fvip=3&keepalive="+DI+"&c=WEB&txp="+
kb+"&n="+CI+"&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="+k,mimeType:'audio/webm; codecs="opus"',bitrate:AD,initRange:{start:"0",end:"265"},indexRange:{start:ZI,end:Ow},lastModified:sw,contentLength:bn,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:AD,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:kb,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="+D4+"&docid="+H+"&ei="+X+"&feature="+u+"&fexp="+cE+"&ns="+cJ+"&plid="+e+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Im+"&el="+PF+"&len="+Ow+"&of="+Sv+
"&uga="+Rm+"&vm="+QT},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+D4+"&docid="+H+"&ei="+X+"&feature="+u+"&fexp="+cE+"&ns="+cJ+"&plid="+e+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Im+"&el="+PF+"&len="+Ow+"&of="+Sv+"&uga="+Rm+"&vm="+QT},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+D4+"&docid="+H+"&ei="+X+"&feature="+u+"&fexp="+cE+"&ns="+cJ+"&plid="+e+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
Im+"&el="+PF+"&len="+Ow+"&of="+Sv+"&uga="+Rm+"&vm="+QT},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+X+"&m="+PJ+"&oid="+Sv+"&plid="+e+"&pltype="+UM+"&ptchn="+Sv+"&ptk="+J+"&video_id="+H},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+D4+"&docid="+H+"&ei="+X+"&event="+SL+"&feature="+u+"&fexp="+cE+"&ns="+cJ+"&plid="+e+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Im},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+H+"&ei="+X+"&feature="+
u+"&len="+Ow+"&ns="+cJ+"&plid="+e+"&ver="+Mo,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+H+"&caps="+DI+"&opi="+D4+"&xoaf="+Mo+"&hl="+cJ+"&ip="+tD+"&ipbits="+Mo+"&expire="+un+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+tD+"&key="+DI+"&lang="+OD,name:{simpleText:K$},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+H+"&caps="+DI+"&opi="+D4+"&xoaf="+Mo+"&hl="+cJ+"&ip="+tD+"&ipbits="+Mo+"&expire="+un+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+tD+"&key="+DI+"&kind="+DI+"&lang="+cJ,name:{simpleText:CL},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:El,title:lY,lengthSeconds:"1155",keywords:[CL,UM,TU,$R],
channelId:oA,isOwnerViewing:!1,shortDescription:ln,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+H+"/hqdefault.jpg?sqp=-oaymwE"+Hu+"G&rs="+QB,width:168,height:94},{url:"https://i.ytimg.com/vi/"+H+"/hqdefault.jpg?sqp=-oaymwE"+Hu+"G&rs="+QB,width:196,height:110},{url:"https://i.ytimg.com/vi/"+H+"/hqdefault.jpg?sqp=-oaymwE"+Hu+"G&rs="+c,width:246,height:138},{url:"https://i.ytimg.com/vi/"+H+"/hqdefault.jpg?sqp=-oaymwE"+Hu+"G&rs="+c,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
H+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:kb,author:K$,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:kb,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+Sv+"/featured_channel.jpg?v="+h8,width:40,height:40}]},trackingParams:Uw+"=",navigationEndpoint:{clickTrackingParams:Ct,commandMetadata:{webCommandMetadata:{url:"/channel/"+oA,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:oA}},channelName:K$,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:sD}]},subscribed:!1,enabled:!0,type:"FREE",channelId:oA,showPreferences:!1,subscribedButtonText:{runs:[{text:iB}]},unsubscribedButtonText:{runs:[{text:CL}]},trackingParams:Uw+"=",unsubscribeButtonText:{runs:[{text:PF}]},serviceEndpoints:[{clickTrackingParams:Ct,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[oA],params:h8}},{clickTrackingParams:Ct,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Ct,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Uw+"=",dialogMessages:[{runs:[{text:TU},{text:El},{text:lY}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:SL}]},serviceEndpoint:{clickTrackingParams:Ct,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[oA],params:h8}},accessibility:{label:CL},trackingParams:Uw+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:K$}]},accessibility:{label:ln},trackingParams:Uw+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Ak}},unsubscribeAccessibility:{accessibilityData:{label:CL}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:bn},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:Ct,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:Ct,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[oA],params:h8}},unsubscribeCommand:{clickTrackingParams:Ct,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[oA],params:h8}},addToWatchLaterCommand:{clickTrackingParams:Ct,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:El,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:Ct,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:El}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+H+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+Hu+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
H+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+El,width:1280,height:720},title:{simpleText:PF},description:{simpleText:sD},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+K$,externalChannelId:oA,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:kb,category:"Travel & Events",publishDate:$t,ownerChannelName:K$,uploadDate:$t}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:SL},trackingParams:Uw+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:Ct,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:Uw+"="}}],headerText:{simpleText:El},icon:{infoCardIconRenderer:{trackingParams:Uw+"="}},closeButton:{infoCardIconRenderer:{trackingParams:Uw+"="}},trackingParams:Uw+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:Uw+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+El+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:UU,interpreterSafeUrl:(EP.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+nD+".js",EP),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:SL},{text:SL,bold:!0}]},endpoint:{clickTrackingParams:Ct,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:Uw+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:Ak}]},actionButton:{buttonRenderer:{text:{runs:[{text:j3}]},navigationEndpoint:{clickTrackingParams:Ct,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+H,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
H,target:"TARGET_NEW_WINDOW"}},trackingParams:Uw+"="}},trackingParams:Uw+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+uB+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+uB+"=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:kb,endMs:kb,title:{accessibility:{accessibilityData:{label:iB}},simpleText:$R},metadata:{simpleText:K$},callToAction:{simpleText:PF},dismiss:{simpleText:TU},endpoint:{clickTrackingParams:Ct,commandMetadata:{webCommandMetadata:{url:"/channel/"+oA,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:oA}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:SL}]},subscribed:!1,enabled:!0,type:"FREE",channelId:oA,showPreferences:!1,
subscribedButtonText:{runs:[{text:El}]},unsubscribedButtonText:{runs:[{text:K$}]},trackingParams:Uw+"=",unsubscribeButtonText:{runs:[{text:$R}]},serviceEndpoints:[{clickTrackingParams:Ct,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[oA],params:h8}},{clickTrackingParams:Ct,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Ct,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Uw+
"=",dialogMessages:[{runs:[{text:j3},{text:SL},{text:El}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:CI}]},serviceEndpoint:{clickTrackingParams:Ct,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[oA],params:h8}},accessibility:{label:SL},trackingParams:Uw+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:El}]},
accessibility:{label:PF},trackingParams:Uw+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:PF}},unsubscribeAccessibility:{accessibilityData:{label:lY}}}},trackingParams:Uw+"=",isSubscribe:!0,id:Lw}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+H+"/hqdefault.jpg?sqp=-oaymwE"+Hu+"G&rs="+c,width:168,height:94},{url:"https://i.ytimg.com/vi/"+H+"/hqdefault.jpg?sqp=-oaymwE"+Hu+"G&rs="+QB,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+H+"/hqdefault.jpg?sqp=-oaymwE"+Hu+"G&rs="+c,width:246,height:138},{url:"https://i.ytimg.com/vi/"+H+"/hqdefault.jpg?sqp=-oaymwE"+Hu+"G&rs="+c,width:336,height:188},{url:"https://i.ytimg.com/vi/"+H+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:kb,endMs:kb,title:{accessibility:{accessibilityData:{label:$R}},simpleText:$R},metadata:{simpleText:$R},endpoint:{clickTrackingParams:Ct,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
El,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:El,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+xc+".googlevideo.com/videoplayback?source=youtube&oeis="+Mo+"&c=WEB&oad="+Ow+"&ovd="+Ow+"&oaad="+XZ+"&oavd="+XZ+"&ocs="+ZI+"&oewis="+Mo+"&oputc="+Mo+"&ofpcc="+Mo+"&siu="+Mo+"&msp="+Mo+"&odepv="+Mo+
"&id=o-AF"+n$+"&ip="+tD+"&initcwndbps="+kb+"&mt="+un+"&oweuc="+cE}}}}},trackingParams:Uw+"=",id:Lw,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:h8}},simpleText:CL},style:"DEFAULT"}}]}}],startMs:kb,trackingParams:Uw+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:Mo,offsetEndMilliseconds:XZ},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+D4+";dc_trk_cid="+D4+";dc_dbm_token="+k+";ord="+un+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Mo+";dc_rui="+Mo+";dc_exteid="+Lw+";dc_av="+ZI+";dc_sk="+Mo+";dc_ctype="+Rm+";dc_ref=http://www.youtube.com/video/"+El+";dc_pubid="+Mo+";dc_btype=23?gclid="+At+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
R+"____________"+A+"AxAA&sigh="+El+"&cid="+Z+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Mo+"&ns="+Mo+"&event="+Mo+"&device="+Mo+"&content_v="+H+"&el="+PF+"&ei="+X+"&devicever="+E+"&bti="+kb+"&format="+RA+"&break_type="+Mo+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Mo+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+tD+"&slot_pos="+Mo+"&slot_len="+Mo+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+RF+"&ad_len="+XZ+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
El+"&aqi="+X+"&ad_rmp="+Mo+"&sli="+Mo}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+H+"&cid="+Z+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+H+"&cid="+Z+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+
";etm1="+Mo+";eid1="+Rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+H+"&cid="+Z+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+RA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
R+"____________"+A+"AxAA&sigh="+H+"&cid="+Z+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+Rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+H+"&cid="+Z+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+H+"&cid="+Z+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+Rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+H+"&cid="+Z+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+kb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+H+"&cid="+Z+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
R+"____________"+A+"AxAA&sigh="+H+"&cid="+Z+"&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"+R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&ctype="+ZI+"&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"+
R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_engaged_view&ctype="+ZI+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+RA+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
D4+";dc_trk_cid="+D4+";dc_dbm_token="+k+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Mo+";ord="+D4+";dc_rui="+Mo+";dc_exteid="+J8+";dc_av="+Mo+";dc_sk="+Mo+";dc_ctype="+Rm+";dc_pubid="+Mo+";dc_btype=3?gclid="+At+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+H+"&cid="+Z+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+Rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+Q+"&sig="+PH+"&ad_cpn=[AD_CPN]&id="+iB+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+iB+"&dc_pubid="+Mo+"&dc_exteid="+Lw+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+H+"&cid="+Z+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+Q+"&sig="+PH+"&ad_cpn=[AD_CPN]&id="+iB+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Mo},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+iB+"&avm="+Mo+"&dc_pubid="+Mo+"&dc_exteid="+
Lw+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+H+"&cid="+Z+"&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="+Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+Rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
Q+"&sig="+PH+"&ad_cpn=[AD_CPN]&id="+iB+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Mo},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+iB+"&dc_pubid="+Mo+"&dc_exteid="+Lw+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+Rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+RA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+Rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+RA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+H+"&cid="+Z+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+Rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Ct,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+
ZI+"&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/"+H+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Uw+"="},trackingParams:Uw+
"=",templatedCountdown:{templatedAdText:{text:CI,isTemplated:!0,trackingParams:Uw+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:h8,isTemplated:!1,trackingParams:Uw+"="},trackingParams:Uw+"="}},trackingParams:Uw+"=",skipOffsetMilliseconds:5E3}},trackingParams:Uw+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:SL},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Ct,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Uw+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:j3,isTemplated:!1,trackingParams:Uw+"="},trackingParams:Uw+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:ln,isTemplated:!0,trackingParams:Uw+"="}},trackingParams:Uw+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Ct,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Fa.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+C+"&hl="+cJ+"&origin=www.youtube.com&ata_theme="+Ak,Fa),trackingParams:Uw+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:Uw+"="}},hoverText:{runs:[{text:SL}]},trackingParams:Uw+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+ic+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Uw+"="},headline:{text:CI,isTemplated:!1,trackingParams:Uw+"="},description:{text:f9,
trackingParams:Uw+"="},actionButton:{buttonRenderer:{text:{simpleText:CL},navigationEndpoint:{clickTrackingParams:Ct,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+D4+";dc_trk_cid="+D4+";dc_dbm_token="+k+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Mo+";ord="+D4+";dc_rui="+Mo+";dc_exteid="+Lw+";dc_av="+Mo+";dc_sk="+Mo+";dc_ctype="+Rm+";dc_pubid="+Mo+";dc_btype=3?gclid="+At+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Uw+"="}},startMs:Mo,trackingParams:Uw+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:UM},elementId:CI}},elementId:iB,trackingParams:Uw+"=",legacyInfoCardVastExtension:$R,sodarExtensionData:{siub:UM,bgub:f9,scs:UM,bgp:CI},externalVideoId:El,adLayoutLoggingData:{serializedAdServingDataEntry:CI},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+ic+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Uw+"="},
headline:{text:CL,isTemplated:!1,trackingParams:Uw+"="},description:{text:SL,isTemplated:!1,trackingParams:Uw+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:ln},navigationEndpoint:{clickTrackingParams:Ct,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+D4+";dc_trk_cid="+D4+";dc_dbm_token="+k+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Mo+";ord="+D4+";dc_rui="+Mo+";dc_exteid="+
Lw+";dc_av="+Mo+";dc_sk="+Mo+";dc_ctype="+Rm+";dc_pubid="+Mo+";dc_btype=3?gclid="+At+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+A+"AxAA&ase=2&num="+
Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Uw+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Uw+"="}},navigationEndpoint:{clickTrackingParams:Ct,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+D4+";dc_trk_cid="+
D4+";dc_dbm_token="+k+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Mo+";ord="+D4+";dc_rui="+Mo+";dc_exteid="+Lw+";dc_av="+Mo+";dc_sk="+Mo+";dc_ctype="+Rm+";dc_pubid="+Mo+";dc_btype=3?gclid="+At+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+H+"&cid="+Z+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+
A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Uw+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Uw+"="},abandonCommands:{commands:[{clickTrackingParams:Ct,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+H+"&cid="+Z+"&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="+Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+
Mo+"="+Mo+";etm1="+Mo+";eid1="+Rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Ct,commandExecutorCommand:{commands:[{clickTrackingParams:Ct,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+H+"&cid="+Z+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:CL,isTemplated:!1,trackingParams:Uw+
"="},trackingParams:Uw+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:h8},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+H+"&cid="+Z+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+kb+";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="+D4+";dc_trk_cid="+D4+";ord="+un+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Mo+";dc_rui="+Mo+";dc_exteid="+Lw+";dc_av="+ZI+";dc_sk="+Mo+";dc_ctype="+Rm+";dc_ref=http://www.youtube.com/video/"+El+";dc_pubid="+Mo+";dc_btype=23?gclid="+At+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+R+"____________"+A+"AxAA&sigh="+El+"&cid="+Z+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Mo+"&ns="+Mo+"&event="+Mo+"&device="+Mo+"&content_v="+H+"&el="+PF+"&ei="+X+"&devicever="+E+"&bti="+kb+"&format="+RA+"&break_type="+Mo+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Mo+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+tD+"&slot_pos="+Mo+"&slot_len="+Mo+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
RF+"&ad_len="+XZ+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+El+"&aqi="+X+"&ad_rmp="+Mo+"&sli="+Mo}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+El+"&cid="+Z+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+El+"&cid="+Z+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+Rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+El+"&cid="+Z+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+RA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+El+"&cid="+Z+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+Rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+El+"&cid="+
Z+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+El+"&cid="+Z+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+Rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
R+"____________"+A+"AxAA&sigh="+El+"&cid="+Z+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+kb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+El+"&cid="+Z+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+El+"&cid="+Z+"&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"+R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&ctype="+ZI+"&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"+R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_engaged_view&ctype="+ZI+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+RA+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+El+"&cid="+Z+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+Rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+Q+"&sig="+PH+"&ad_cpn=[AD_CPN]&id="+
iB+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+iB+"&dc_pubid="+Mo+"&dc_exteid="+Lw+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+El+"&cid="+Z+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+Q+
"&sig="+PH+"&ad_cpn=[AD_CPN]&id="+iB+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Mo},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+iB+"&avm="+Mo+"&dc_pubid="+Mo+"&dc_exteid="+Lw+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+El+"&cid="+Z+"&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="+Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+Rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+Q+"&sig="+PH+"&ad_cpn=[AD_CPN]&id="+iB+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Mo},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+iB+"&dc_pubid="+Mo+"&dc_exteid="+Lw+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+Rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+RA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+Rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+RA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+El+"&cid="+Z+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+Rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Ct,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+
ZI+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&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/"+H+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Uw+"="},trackingParams:Uw+"=",templatedCountdown:{templatedAdText:{text:TU,isTemplated:!0,trackingParams:Uw+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:PF,isTemplated:!1,trackingParams:Uw+"="},trackingParams:Uw+"="}},
trackingParams:Uw+"=",skipOffsetMilliseconds:5E3}},trackingParams:Uw+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:j3},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Ct,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Uw+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:CI,isTemplated:!1,trackingParams:Uw+"="},trackingParams:Uw+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:h8,
isTemplated:!0,trackingParams:Uw+"="}},trackingParams:Uw+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Ct,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Cj.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+C+"&hl="+cJ+"&origin=www.youtube.com&ata_theme="+Ak,Cj),trackingParams:Uw+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:Uw+"="}},hoverText:{runs:[{text:ln}]},trackingParams:Uw+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+zS+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Uw+"="},headline:{text:K$,isTemplated:!1,trackingParams:Uw+"="},description:{text:j3,trackingParams:Uw+"="},actionButton:{buttonRenderer:{text:{simpleText:$R},navigationEndpoint:{clickTrackingParams:Ct,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Uw+"="}},startMs:Mo,trackingParams:Uw+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:j3},elementId:$R}},elementId:h8,trackingParams:Uw+"=",legacyInfoCardVastExtension:j3,sodarExtensionData:{siub:sD,bgub:ln,scs:ln,bgp:El},externalVideoId:El,adLayoutLoggingData:{serializedAdServingDataEntry:K$},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+zS+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Uw+"="},headline:{text:iB,
isTemplated:!1,trackingParams:Uw+"="},description:{text:CI,isTemplated:!1,trackingParams:Uw+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:sD},navigationEndpoint:{clickTrackingParams:Ct,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Uw+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Uw+"="}},navigationEndpoint:{clickTrackingParams:Ct,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
R+"____________"+A+"AxAA&sigh="+El+"&cid="+Z+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+A+"AxAA&ase=2&num="+
Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Uw+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Uw+"="},abandonCommands:{commands:[{clickTrackingParams:Ct,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+El+"&cid="+Z+"&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="+Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+Rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Ct,commandExecutorCommand:{commands:[{clickTrackingParams:Ct,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+El+"&cid="+Z+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:ln,isTemplated:!1,trackingParams:Uw+"="},trackingParams:Uw+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:El},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+El+"&cid="+Z+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Mo+";dc_exteid="+Lw+";met="+Mo+";ecn"+Mo+"="+Mo+";etm1="+Mo+";eid1="+
kb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:Ak}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:UM}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:XZ,offsetEndMilliseconds:RA},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+X+"&m_pos="+Rm+"&token=ALHj"+h+"&index="+Mo+"&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="+E+"&m_pos_ms="+XZ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:$R}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:RA,offsetEndMilliseconds:RA},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+X+"&m_pos="+ZI+"&token=ALHj"+h+"&index="+Mo+"&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="+
E+"&m_pos_ms="+RA}},adSlotLoggingData:{serializedSlotAdServingDataEntry:h8}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:RA,offsetEndMilliseconds:RA},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+X+"&m_pos="+ZI+"&token=ALHj"+h+"&index="+Mo+"&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="+
E+"&m_pos_ms="+RA}},adSlotLoggingData:{serializedSlotAdServingDataEntry:SL}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:RA,offsetEndMilliseconds:RA},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+X+"&m_pos="+ZI+"&token=ALHj"+h+"&index="+Mo+"&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="+
E+"&m_pos_ms="+RA}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Ak}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:RA,offsetEndMilliseconds:Rm},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+X+"&m_pos="+ZI+"&token=ALHj"+h+"&index="+Mo+"&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="+
E+"&m_pos_ms="+RA}},adSlotLoggingData:{serializedSlotAdServingDataEntry:El}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:Rm,offsetEndMilliseconds:Rm},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+X+"&m_pos="+Rm+"&token=ALHj"+h+"&index="+Mo+"&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="+
E+"&m_pos_ms="+Rm}},adSlotLoggingData:{serializedSlotAdServingDataEntry:TU}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:h8,isTemplated:!1,trackingParams:Uw+"="},description:{text:lY,isTemplated:!1,trackingParams:Uw+"="},actionButton:{buttonRenderer:{text:{simpleText:j3},navigationEndpoint:{clickTrackingParams:Ct,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
D4+";dc_trk_cid="+D4+";dc_dbm_token="+k+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Mo+";ord="+D4+";dc_rui="+Mo+";dc_exteid="+Lw+";dc_av="+Mo+";dc_sk="+Mo+";dc_ctype="+Rm+";dc_pubid="+Mo+";dc_btype=3?gclid="+At+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Uw+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+ic+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:Uw+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+jV+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Uw+"="},navigationEndpoint:{clickTrackingParams:Ct,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+D4+";dc_trk_cid="+D4+";dc_dbm_token="+k+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Mo+";ord="+D4+
";dc_rui="+Mo+";dc_exteid="+Lw+";dc_av="+Mo+";dc_sk="+Mo+";dc_ctype="+Rm+";dc_pubid="+Mo+";dc_btype=3?gclid="+At+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Uw+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Ct,openPopupAction:{popup:{aboutThisAdRenderer:{url:(vtX.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+C+"&hl="+cJ+"&origin=www.youtube.com&ata_theme="+Ak,vtX),trackingParams:Uw+"="}},popupType:"DIALOG"}},trackingParams:Uw+"="}},hoverText:{runs:[{text:CL}]},trackingParams:Uw+"="}},adVideoId:El,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+H+"&cid="+Z+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:lY},associatedCompositePlayerBytesLayoutId:CI}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:SL}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:CI,isTemplated:!1,trackingParams:Uw+"="},description:{text:UM,isTemplated:!1,trackingParams:Uw+"="},actionButton:{buttonRenderer:{text:{simpleText:lY},navigationEndpoint:{clickTrackingParams:Ct,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+
A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Uw+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+zS+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Uw+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+X$+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Uw+"="},navigationEndpoint:{clickTrackingParams:Ct,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+A+"AxAA&ase=2&num="+
Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Uw+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Ct,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Kj.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+C+"&hl="+cJ+"&origin=www.youtube.com&ata_theme="+Ak,Kj),trackingParams:Uw+"="}},popupType:"DIALOG"}},trackingParams:Uw+"="}},
hoverText:{runs:[{text:ln}]},trackingParams:Uw+"="}},adVideoId:El,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+El+"&cid="+Z+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:TU},associatedCompositePlayerBytesLayoutId:CI}},adSlotLoggingData:{serializedSlotAdServingDataEntry:CL}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:K$,
isTemplated:!1,trackingParams:Uw+"="},description:{text:ln,isTemplated:!1,trackingParams:Uw+"="},actionButton:{buttonRenderer:{text:{simpleText:ln},navigationEndpoint:{clickTrackingParams:Ct,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+D4+";dc_trk_cid="+D4+";dc_dbm_token="+k+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Mo+";ord="+D4+";dc_rui="+Mo+";dc_exteid="+Lw+";dc_av="+Mo+";dc_sk="+Mo+";dc_ctype="+
Rm+";dc_pubid="+Mo+";dc_btype=3?gclid="+At+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+
c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Uw+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+ic+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Uw+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+jV+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Uw+
"="},navigationEndpoint:{clickTrackingParams:Ct,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+D4+";dc_trk_cid="+D4+";dc_dbm_token="+k+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Mo+";ord="+D4+";dc_rui="+Mo+";dc_exteid="+Lw+";dc_av="+Mo+";dc_sk="+Mo+";dc_ctype="+Rm+";dc_pubid="+Mo+";dc_btype=3?gclid="+At+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+A+"AxAA&ase=2&num="+Mo+"&cid="+Z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+z_+"&label=video_click_to_advertiser_site&ctype="+ZI+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Uw+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Ct,openPopupAction:{popup:{aboutThisAdRenderer:{url:(o7.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+C+"&hl="+cJ+"&origin=www.youtube.com&ata_theme="+Ak,o7),trackingParams:Uw+"="}},popupType:"DIALOG"}},trackingParams:Uw+
"="}},hoverText:{runs:[{text:CL}]},trackingParams:Uw+"="}},adVideoId:El,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+A+"AxAA&sigh="+H+"&cid="+Z+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:SL},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:CI}},adSlotLoggingData:{serializedSlotAdServingDataEntry:SL}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:nD,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:nD,command:{innertubeCommand:{clickTrackingParams:Ct,ypcGetOfflineUpsellEndpoint:{params:Um}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:Uw+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:un,nanos:pt}}}},tTD=JSON.stringify(GN),QN=performance.now()-g;return{objectRepresentation:GN,jsonRepresentation:tTD,generationTime:QN}};
U9A=function(g,r){if(g===r)return!0;if(!g||!r||typeof g!==typeof r)return!1;if(g instanceof Array&&r instanceof Array){if(g.length!==r.length)return!1;for(var E=0;E<g.length;E++)if(!U9A(g[E],r[E]))return!1;return!0}if(typeof g==="object"&&typeof r==="object"&&g&&r){for(E in g)if(!(E in r&&U9A(g[E],r[E])))return!1;for(var B in r)if(!(B in g))return!1;return!0}return!1};
_.OP=function(){if(!SN){SN=new GP(new M2A);var g=_.wM("client_streamz_web_flush_count",-1);g!==-1&&(SN.invocationLimit=g)}return SN};
UP=function(g,r,E,B){if(g===r)return!0;if(Array.isArray(g)&&Array.isArray(r)){if(g.length!==r.length)return!1;for(var w=0;w<g.length;w++)if(!UP(g[w],r[w],E,B))return!1;return!0}if(g instanceof Set||r instanceof Set){if(g instanceof Set&&r instanceof Set){if(g.size!==r.size)return!1;B=_.U(g.values());for(w=B.next();!w.done;w=B.next())if(!r.has(w.value))return!1;return!0}return!1}if(g instanceof Function){if(B)return!0;g.name===""&&_.tn(Error("Nf"),"ERROR");return!1}if(g instanceof Date&&r instanceof
Date)return g.getTime()===r.getTime();if(g instanceof Object&&r instanceof Object){if(qCl(g)&&qCl(r))try{return g.equals(r)}catch(M){_.tn(Error("Of`"+M),"ERROR")}w=Object.getOwnPropertyNames(g).filter(function(M){return E?g[M]!==void 0:!0});
var O=Object.getOwnPropertyNames(r).filter(function(M){return E?r[M]!==void 0:!0});
if(w.length!==O.length)return!1;w=_.U(w);for(O=w.next();!O.done;O=w.next())if(O=O.value,!UP(g[O],r[O],E,B))return!1;return!0}return!1};
qCl=function(g){g=Object.getPrototypeOf(g).equals;return g instanceof Function&&g.length===1};
_.D9D=function(){return _.q(function(g){if(g.nextAddress==1)return uQY!==2?g.jumpTo(2):_.D(g,lll(),3);g.nextAddress!=2&&(uQY=g.yieldResult);return g.return(uQY)})};
_.QfQ=function(){return _.q(function(g){if(g.nextAddress==1)return _.Y("ab_pl_man")?olD!==2?g.jumpTo(2):_.D(g,GRX(),3):g.return(1);g.nextAddress!=2&&(olD=g.yieldResult);return g.return(olD)})};
HBD=function(){return _.q(function(g){if(g.nextAddress==1)return _.Y("ab_fk_sk_cl")?zGJ!==2?g.jumpTo(2):_.D(g,kRA(),3):g.return(1);g.nextAddress!=2&&(zGJ=g.yieldResult);return g.return(zGJ)})};
_.RGV=function(){return _.q(function(g){if(g.nextAddress==1)return _.Y("ab_det_apb_b")?pPl!==2?g.jumpTo(2):_.D(g,YCD(),3):g.return(1);g.nextAddress!=2&&(pPl=g.yieldResult);return g.return(pPl)})};
fll=function(){var g;return _.q(function(r){if(r.nextAddress==1)return _.D(r,Promise.all([_.D9D(),_.RGV(),_.QfQ(),HBD()]),2);if(r.nextAddress!=3)return nlQ()?r.return(!0):_.D(r,_.sfc(),3);g=r.yieldResult;return r.return(g===0)})};
nlQ=function(){var g=!1,r=function(E,B){$9l.increment(B,E);E===0&&(g=!0)};
r(_.jfD(),"j.s_");r(uQY,"f.i_");r(pPl,"a.b_");r(olD,"p.m_");r(zGJ,"i.f_");AmL===2&&(AmL=_.bBB(JmB));r(AmL,"e.h_");_.Y("ks_det_gpbl")||r(_.PNV(),"p.i_");_.Y("ks_get_o_pp")||r(_.t2Y(),"g.o_");_.Y("ab_deg_unex_thr")||r(_.FtY(),"a.o_");r(eGB,"s.t_");_.Y("ab_det_sc_inj_enf")&&r(_.Wtl(),"s.i_");r(CNB,"d.p_");r(_.KtB(_.M8),"o.p_");r(_.x9l()===0?0:_.alB(),"o.a_");return _.Y("debug_sk_em_precheck")?!0:g};
NVQ=function(){var g=[].concat(_.jW(XPt));try{var r=wb();g.push({jsonRepresentation:r.jsonRepresentation,objectRepresentation:r.objectRepresentation})}catch(E){g=[].concat(_.jW(XPt))}return g};
Ill=function(){var g=["adPlacements","adSlots"];try{return g.filter(function(){return!0}).length!==g.length?0:1}catch(r){return 0}};
_.t2Y=function(){if(Ill()===0)return 0;var g=wb(),r=g.objectRepresentation,E=(0,_.jn.unsafeClone)(r),B=[];if(r&&typeof r==="object")for(var w in r)B.push(w);else return 4;g=g.objectRepresentation.adPlacements;if(!(g&&g.length>0))return 4;try{if(!U9A(B,Object.getOwnPropertyNames(r)))return 0}catch(O){return 0}return U9A(E,r)?1:0};
_.KtB=function(g){if(!g||!g.length||typeof g==="string")return 0;for(var r=Object.getOwnPropertyNames(Object.prototype),E=0;E<g.length;E++)for(var B=_.TC(g[E]),w=_.U(r),O=w.next();!O.done;O=w.next())if(B===O.value)return 0;return 1};
m9B=function(g){var r=_.TC(g[1]);if(g[0]===null)return r;g=g[0];for(var E={},B=0;B<g.length;B++){var w=_.TC(g[B]);if(B===0)E[w]=r;else{var O={};O[w]=E;E=O}}return E};
_.x9l=function(){for(var g=_.q8,r=0;r<g.length;r++){var E=m9B(g[r]),B=[];B.push(E);if(B.length===0)return 0}return 1};
_.alB=function(){for(var g=_.q8,r={},E=0;E<g.length;r={tRH:void 0},E++){var B=[m9B(g[E])];r.tRH=[];B.forEach(function(w){return function(O){w.tRH[w.tRH.length]=O}}(r));
if(r.tRH.length===0)return 0}return 1};
_.jfD=function(){for(var g=_.U(NVQ()),r=g.next();!r.done;r=g.next()){var E=r.value;r=E.jsonRepresentation;E=E.objectRepresentation;try{var B=JSON.parse(r);if(!UP(B,E,!1,!1))return 0}catch(w){return 0}}return 1};
_.Wtl=function(){try{var g=_.Or("ab_det_sc_inj_val");g.length===1&&g[0]===""&&(g=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var r=document.querySelectorAll("script"),E=_.U(r),B=E.next();!B.done;B=E.next())for(var w=B.value,O=_.U(g),M=O.next();!M.done;M=O.next()){var u=M.value;r=void 0;if((r=w.textContent)==null?0:r.includes(u))return 0}}catch(l){return 4}return 1};
_.sfc=function(){var g,r,E,B,w,O,M;return _.q(function(u){switch(u.nextAddress){case 1:_.qN(u,2),g=_.U(XPt),r=g.next();case 4:if(r.done)return u.return(1);B=E=r.value;w=B.jsonRepresentation;O=B.objectRepresentation;return _.D(u,(new Response(w,{status:200})).json(),7);case 7:M=u.yieldResult;if(!UP(M,O,!1,!1))return u.return(0);r=g.next();u.jumpTo(4);break;case 2:return _.G2(u),u.return(4)}})};
_.FtY=function(){try{btoa("abc")}catch(g){return 0}return 1};
lll=function(){var g,r,E,B,w,O,M,u,l,Q,z;return _.q(function(k){switch(k.nextAddress){case 1:_.qN(k,2),g=_.U(NVQ()),r=g.next();case 4:if(r.done)return k.return(1);B=E=r.value;w=B.jsonRepresentation;O=B.objectRepresentation;M=btoa(w);u="data:application/json;base64,"+M;l=new Request(u);Object.defineProperty(l,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(l,"method",{get:function(){return"POST"}});
Object.defineProperty(l,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(l,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(l,"body",{get:function(){return new ReadableStream}});
return _.D(k,fetch(l),7);case 7:return Q=k.yieldResult,_.D(k,Q.json(),8);case 8:z=k.yieldResult;if(!UP(z,O,!1,!1))return k.return(0);r=g.next();k.jumpTo(4);break;case 2:return _.G2(k),k.return(4)}})};
_.bBB=function(g){if(!g||!g.length||typeof g==="string")return 0;for(var r=function(w){return _.TC(w)},E=2,B=0;B<g.length&&(E=_.cmS(_.SCV(g[B],r)),E!==0);B++);
return E};
_.cmS=function(g){var r=_.U(g);g=r.next().value;r=r.next().value;try{var E=document.createElement("div");document.body.appendChild(E);var B=getComputedStyle(E).display;document.body.removeChild(E);if(B==="none")return 4;var w=getComputedStyle(r).display==="none"?0:1;document.body.removeChild(g);return w}catch(O){return 4}};
kRA=function(){var g,r,E;return _.q(function(B){g=new _.uF;r=document.createElement("button");r.classList.add("ytp-ad-skip-button");r.style.opacity="0";r.style.height="0px";r.style.width="0px";r.style.padding="0px";r.style.border="none";E=function(){r.parentElement&&r.parentElement.removeChild(r)};
r.onclick=function(){g.resolve(0);E()};
document.body.appendChild(r);setTimeout(function(){E();g.resolve(1)},50);
return B.return(g.promise)})};
GRX=function(){var g,r,E,B,w,O,M;return _.q(function(u){g=new _.uF;r=document.createElement("ytd-player");try{document.body.prepend(r)}catch(l){return u.return(4)}E=function(){r.parentElement&&r.parentElement.removeChild(r)};
r.getElementsByTagName("div").length>0?B=r.getElementsByTagName("div")[0]:(B=document.createElement("div"),r.appendChild(B));w=document.createElement("div");B.appendChild(w);O=document.createElement("video");M=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"});O.src=_.zh(_.sU(M));O.ontimeupdate=function(){E();g.resolve(0)};
w.appendChild(O);O.classList.add("html5-main-video");setTimeout(function(){w.classList.add("ad-interrupting")},200);
setTimeout(function(){E();g.resolve(1)},5E3);
return u.return(g.promise)})};
iBA=function(g,r){var E,B;return _.q(function(w){switch(w.nextAddress){case 1:E=[],B=0;case 2:if(!(B<3)){w.jumpTo(4);break}return _.D(w,fetch(g,{cache:"no-store",method:r}).then(function(O){E.push(O.status)}).catch(function(){E.push(-1)}),3);
case 3:B++;w.jumpTo(2);break;case 4:return w.return(E)}})};
LtD=function(g){return g.domainLookupStart===0&&g.domainLookupEnd===0&&g.connectStart===0&&g.connectEnd===0};
V2B=function(g,r,E){E=E===void 0?"GET":E;var B,w,O,M,u,l,Q,z,k,H;return _.q(function(R){if(R.nextAddress==1)return _.D(R,Promise.all([iBA(g,E),iBA(r,E)]),2);B=R.yieldResult;w=_.U(B);O=w.next().value;M=w.next().value;u=O;l=M;if(Math.min.apply(Math,_.jW(l))!==Math.max.apply(Math,_.jW(l))||Math.min.apply(Math,_.jW(u))!==Math.max.apply(Math,_.jW(u)))return R.return(2);if(Math.min.apply(Math,_.jW(l))===Math.min.apply(Math,_.jW(u)))return R.return(1);z=(Q=performance.getEntriesByName(g))==null?void 0:Q[0];
H=(k=performance.getEntriesByName(r))==null?void 0:k[0];return z&&H?LtD(H)?R.return(1):LtD(z)?R.return(0):R.return(1):R.return(2)})};
YCD=function(){var g;return _.q(function(r){var E=[];var B;var w,O,M;(w=B=(w=wb().objectRepresentation.streamingData)==null?void 0:(O=w.formats)==null?void 0:(M=O[0])==null?void 0:M.url)&&w&&!B.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(w=w.replace("initcwndbps","ctier=L&initcwndbps"),w=w.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),B={testUrl:w,baseUrl:B,method:"GET"}):B=void 0;B&&E.push(B);_.Y("ab_net_tp_e")&&E.push({testUrl:_.ED.location.origin+"/ad_companion",baseUrl:_.ED.location.origin+
"/generate_204",method:"OPTIONS"});if(_.Y("ad_net_pb_ab")){var u;b:{B=/api\/stats\/ads/;var l,Q,z,k;w=(u=wb().objectRepresentation.adPlacements)==null?void 0:(l=u[0])==null?void 0:(Q=l.adPlacementRenderer)==null?void 0:(z=Q.renderer)==null?void 0:(k=z.linearAdSequenceRenderer)==null?void 0:k.linearAds;if(w!=null&&w.length&&(u=_.n(w[0],hGD))&&(u=u.pings,u!=null&&u.impressionPings))for(l=[].concat(_.jW(u.impressionPings)),u.progressPings&&(l=[].concat(_.jW(l),_.jW(u.progressPings))),u=_.U(l),l=u.next();!l.done;l=
u.next())if(l=l.value,l.baseUrl&&B.test(l.baseUrl)){u=l.baseUrl.replace("https://www.youtube.com","");break b}u=void 0}u&&E.push({testUrl:_.ED.location.origin+u,baseUrl:_.ED.location.origin+"/feed/download",method:"GET"})}if(_.Y("ad_net_pb_pbp")){var H;b:{u=/api\/stats\/qoe/;if(l=wb().objectRepresentation.playbackTracking){Q=[];Q.push(l==null?void 0:(H=l.videostatsPlaybackUrl)==null?void 0:H.baseUrl);var R;Q.push(l==null?void 0:(R=l.videostatsDelayplayUrl)==null?void 0:R.baseUrl);var A;Q.push(l==
null?void 0:(A=l.videostatsWatchtimeUrl)==null?void 0:A.baseUrl);var J;Q.push(l==null?void 0:(J=l.ptrackingUrl)==null?void 0:J.baseUrl);var e;Q.push(l==null?void 0:(e=l.qoeUrl)==null?void 0:e.baseUrl);var C;Q.push(l==null?void 0:(C=l.atrUrl)==null?void 0:C.baseUrl);H=_.U(Q);for(R=H.next();!R.done;R=H.next())if((R=R.value)&&u.test(R)){H=R.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}H=void 0}H&&E.push({testUrl:_.ED.location.origin+H,baseUrl:_.ED.location.origin+
"/feed/download",method:"GET"})}E=E.length!==0?E[Math.floor(Math.random()*E.length)]:void 0;return(g=E)?r.return(V2B(g.testUrl,g.baseUrl,g.method)):r.return(4)})};
_.PNV=function(){if(_.ED.bf1===void 0||_.ED.bf1===null||typeof _.ED.bf1!=="function")return 2;try{return _.ED.bf1()===!0?0:1}catch(g){return 0}};
ZBl=function(g){switch(g){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.MM(g,"unknown result type")}};
_.ymo=function(g,r){var E=Number(_.Ca("CATSTAT",0));if(r.qWF===void 0)return E;r=r.qWF;g=ZBl(g);return E&~(3<<r)|g<<r};
vll=function(g){var r,E;if((g=(r=g.auxiliaryUi)==null?void 0:(E=r.messageRenderers)==null?void 0:E.bkaEnforcementMessageViewModel)&&g.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return g};
TVY=function(){for(var g=_.U(Object.values(_.d9L)),r=g.next();!r.done;r=g.next())r=r.value,r.isAsync&&r.qWF&&_.W0("CATSTAT",_.ymo(2,r))};
_.GF=function(g,r){g=_.lF("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",g);(r===void 0?0:r)?_.g8V(g,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.D1(_.oJ(),g,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
E8S=function(){if(!r0c){if(Polymer.Base){var g=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{g.apply(this,arguments)}catch(k){_.xF(k)}};
var r=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{r.apply(this,arguments)}catch(k){_.xF(k)}};
var E=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{E.apply(this,arguments)}catch(k){_.xF(k)}};
var B=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{B.apply(this,arguments)}catch(k){_.xF(k)}};
var w=Polymer.Base._listen,O=new WeakMap;Polymer.Base._listen=function(k,H,R){var A=function(){try{R.apply(this,arguments)}catch(J){_.xF(J)}};
O.set(R,A);w.call(this,k,H,A)};
var M=Polymer.Base._unlisten;Polymer.Base._unlisten=function(k,H,R){M.call(this,k,H,O.get(R))}}if(Polymer.Async){var u=Polymer.Async,l=u._atEndOfMicrotask;
u._atEndOfMicrotask=function(){try{l.apply(u,arguments)}catch(k){_.xF(k)}}}if(Polymer.RenderStatus){var Q=Polymer.RenderStatus,z=Q.afterNextRender;
Q.afterNextRender=function(k,H,R){z.call(Q,k,function(){try{H.apply(this,arguments)}catch(A){_.xF(A)}},R)}}r0c=!0}};
_.QP=function(g){var r=g?_.lc(g):"";if(r){if(r.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(r.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(r.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(r.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(r.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.Y("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(r.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";r=r.toLowerCase();if(r==="/")return"home";if(r==="/channel_memberships")return"channel-memberships-shopfront";if(r.indexOf("/feed/trending")===0)return"trending";if(r.indexOf("/feed/explore")===0)return"explore";if(r.indexOf("/live")===0)return"live";if(r.indexOf("/results")===0)return"search";if(r.indexOf("/sports")===0)return"sports";if(r.indexOf("/fashion")===0||r.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(r))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(r))return _.Y("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(r.indexOf("/channel/")===0||r.indexOf("/user/")===0||r.indexOf("/gaming")===0||r.indexOf("/post/")===0)return"channel";if(BNS(g))return"show";if(r==="/playlist"||r.indexOf("/playlist/")===0||r==="/view_play_list"||r.indexOf("/view_play_list/")===0||r.indexOf("/show/")===0)return"playlist";if(r==="/feed/history"||r.indexOf("/feed/history/")===0)return"history";if(r===
"/new")return"labs";if(r==="/feed/subscriptions")return"subscriptions";if(r.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(r==="/history_controls")return"standalone";if(r.indexOf("/account")===0||r==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(r.indexOf("/paid_memberships")===0||r.indexOf("/refund")===0||r.indexOf("/purchases")===0||r.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(r.indexOf("/product")===0)return"yts-products";if(r.indexOf("/premium")===
0||r.indexOf("/musicpremium")===0)return r.indexOf("/premium/offers")===0||r.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(r==="/cart/checkout"||r==="/cart")return"ypc-checkout";if(r.indexOf("/feed/downloads")===0||r.indexOf("/redeem")===0||r.indexOf("/reporthistory")===0)return"browse";if(r.indexOf("/hashtag")===0)return"hashtag-landing-page";if(r.indexOf("/handle")===0)return"handle";if(r.indexOf("/source")===0)return"audio-pivot";if(r.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";
if(r.indexOf("/playables")===0)return"playables";if(r.indexOf("/create/live/join")===0)return"open-in-app";if(r.indexOf("/shorts")===0)return"shorts";if(r.indexOf("/feed/channels")===0)return"subscriptions-channels";(r=g?_.lc(g):"")&&r.indexOf("/watch")===0&&_.Y("web_watch_enable_learning_journey")?(g=_.iu(g),g=!!g.list&&g.list.indexOf("LJPP")===0):g=!1;if(g)return"learning_journey_watch"}};
_.zF=function(g){var r,E;(g=(E=_.n(g==null?void 0:g.commandMetadata,_.dU))==null?void 0:E.url)&&(r=_.QP(g));return r};
BNS=function(g){var r=g?_.lc(g):"";if(!r)return!1;r=r.toLowerCase();return r.indexOf("/show/")===0||r.indexOf("/playlist")===0&&(g=_.iu(g),g.list&&g.list.indexOf("EL")===0)?!0:!1};
RJ=function(g){var r="unknown",E;var B=((E=_.n(g==null?void 0:g.commandMetadata,_.dU))==null?void 0:E.webPageType)||"";B?(E=B.toLowerCase(),E.startsWith("web_page_type_")&&(E=E.slice(14))):E=B;E&&wYJ[E.toUpperCase()]?r=wYJ[E.toUpperCase()]:_.n(g,_.ka)||_.n(g,S5c)?r="browse":_.n(g,_.Ya)?r="search":_.n(g,_.LM)&&(r="watch");r==="watch"&&_.zF(g||null)==="learning_journey_watch"&&(r="learning_journey_watch");r==="unknown"&&_.el(Error("Qf`"+JSON.stringify({clickTrackingParams:g==null?void 0:g.clickTrackingParams,
commandMetadata:g==null?void 0:g.commandMetadata,allEndpointKeys:Object.keys(g||[])})));return r};
_.ny=function(g){if(!_.OoX||g)_.OoX=_.GM();return _.OoX};
_.UVX=function(g){return!!_.n(g,_.LM)||!!_.n(g,_.sP)&&_.Y("kevlar_enable_shorts_prefetch")};
_.MtQ=function(g,r){g=_.n(g,_.LM)||_.n(g,_.sP);return"v"+g.videoId+(g.playlistId?"-pl"+g.playlistId:"")+(r?"-an1":"")+(g.params?"-pr"+g.params:"")};
fy=function(g){return function(){return new g}};
$a=function(g){var r=_.rM();return function(){return r.resolve(g)}};
uoJ=function(g){var r=_.wM("web_pbj_log_warning_rate",0);r=r>0&&Math.random()<r;if(!_.n(g,_.sP))return r&&_.el(Error("Tf")),!1;var E;return _.Y("shorts_controller_retrieve_seedless_sequence_v2")&&((E=_.n(g,_.sP))==null?void 0:E.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:q5Q(g)?!0:(r&&_.el(Error("Uf")),!1)};
q5Q=function(g){var r=(_.n(g,_.LM)||_.n(g,_.sP)).videoId;if(!r||!lWL.test(r))return!1;var E;return(g=(E=_.n(g.commandMetadata,_.dU))==null?void 0:E.url)&&(g.includes(r)||g.startsWith("/clip"))?!0:!1};
_.o8B=function(){var g=_.pu();return g.getFlag(192)?g.getFlag(190):!(_.Y("web_watch_cinematics_disabled_by_default")||_.Y("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&DVo())};
_.jN=function(g,r,E){var B={};B.currentUrl=r;B.vis=g.vis!==void 0?g.vis:0;B.splay=!1;r=_.pu();B.autoCaptionsDefaultOn=r.getFlag(66);r.getFlag(141)?r.getFlag(140)?B.autonavState="STATE_OFF":B.autonavState="STATE_ON":B.autonavState="STATE_NONE";B.html5Preference="HTML5_PREF_WANTS";isNaN(_.Ca("STS"))||(B.signatureTimestamp=_.Ca("STS"));g.autonav&&(B.autoplay=!0,B.autonav=!0);g.mutedAutoplay&&(B.autoplay=!0,B.mutedAutoplay=!0);g.inlinePlayback&&(B.autoplay=!0,B.autonav=!1,B.isInlineUnmutedPlayback=!!g.inlineUnmuted);
B.referer=E;B.lactMilliseconds=g.lact!==void 0?g.lact.toString():"-1";_.Y("enable_unknown_lact_fix_on_html5")&&B.lactMilliseconds==="-1"&&_.el(new _.Rj("Unknown LACT is set in playbackContext.",{"lact in tempData":g.lact||"undefined",autonav:g.autonav||"undefined"}));g={};r.getFlag(194)&&(g.hasShownAmbientMode=!0);r.getFlag(192)&&(g.hasToggledOffAmbientMode=!0);_.o8B()&&(g.watchAmbientModeEnabled=!0);B.watchAmbientModeContext=g;return B};
GpS=function(g){var r={},E=g.pbis||0;E&&(r.playbackBeginsInSeconds=E);g.prefetch_reason&&g.prefetch_reason==="hc_pbis"&&(r.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return r};
_.bF=function(g){g=g===void 0?!1:g;var r=_.pu(),E="USER_INTERFACE_THEME_LIGHT";r.getFlag(165)?E="USER_INTERFACE_THEME_DARK":r.getFlag(174)?E="USER_INTERFACE_THEME_LIGHT":_.AO()&&(E="USER_INTERFACE_THEME_DARK");return g?E:QYP()||E};
_.zLJ=function(){return!_.Y("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.AO=function(){return _.zLJ()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.JO=function(){var g=_.pu();return _.zLJ()&&!g.getFlag(165)&&!g.getFlag(174)};
QYP=function(){var g=g===void 0?window.location.href:g;if(_.Y("kevlar_disable_theme_param"))return null;var r=_.lc(g);if(_.kpo(r))return"USER_INTERFACE_THEME_DARK";try{var E=_.iu(g).theme;return HoA.get(E)||null}catch(B){}return null};
_.kpo=function(g){return _.Y("enable_dark_theme_only_on_shorts")?!(g==null||!g.startsWith("/shorts/")):!1};
_.RLL=function(g,r,E,B,w){r=r===void 0?!1:r;E=E===void 0?!1:E;var O=_.Ca("INNERTUBE_CONTEXT");if(!O)return _.tn(Error("Xf")),{};O=(0,_.jn.unsafeClone)(O);_.Y("web_no_tracking_params_in_shell_killswitch")||delete O.clickTracking;O.client||(O.client={});var M=O.client;M.clientName==="MWEB"&&M.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(M.clientFormFactor=_.Ca("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");M.screenWidthPoints=window.innerWidth;M.screenHeightPoints=window.innerHeight;M.screenPixelDensity=
Math.round(window.devicePixelRatio||1);M.screenDensityFloat=window.devicePixelRatio||1;M.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());M.userInterfaceTheme=_.bF();if(!r){var u=_.lYY();u&&(M.connectionType=u);_.Y("web_log_effective_connection_type")&&(u=oyY())&&(O.client.effectiveConnectionType=u)}var l;if(_.Y("web_log_memory_total_kbytes")&&((l=_.ED.navigator)==null?0:l.deviceMemory)){var Q;l=(Q=_.ED.navigator)==null?void 0:Q.deviceMemory;O.client.memoryTotalKbytes=""+l*1E6}r&&B&&!_.Y("web_it_context_set_original_url_ks")&&
(M.originalUrl=pYJ(_.ED.location.href,B).toString());_.Y("web_gcf_hashes_innertube")&&(u=f$l())&&(Q=u.coldConfigData,l=u.coldHashData,u=u.hotHashData,O.client.configInfo=O.client.configInfo||{},Q&&(O.client.configInfo.coldConfigData=Q),l&&(O.client.configInfo.coldHashData=l),u&&(O.client.configInfo.hotHashData=u));Q=_.iu(_.ED.location.href);!_.Y("web_populate_internal_geo_killswitch")&&Q.internalcountrycode&&(M.internalGeo=Q.internalcountrycode);!_.Y("web_populate_client_screen_killswitch")&&w&&(M.clientScreen=
w);M.clientName==="MWEB"||M.clientName==="WEB"?(M.mainAppWebInfo||(M.mainAppWebInfo={}),M.mainAppWebInfo.graftUrl=B||_.ED.location.href,_.Y("kevlar_woffle")&&_.Po.instance&&(B=_.Po.instance,M.mainAppWebInfo.pwaInstallabilityStatus=!B.appInstalledEventFired&&B.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),M.mainAppWebInfo.webDisplayMode=zwP(),M.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):M.clientName==="TVHTML5"&&
(!_.Y("web_lr_app_quality_killswitch")&&(B=_.Ca("LIVING_ROOM_APP_QUALITY"))&&(M.tvAppInfo=Object.assign(M.tvAppInfo||{},{appQuality:B})),B=_.Ca("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(M.tvAppInfo=Object.assign(M.tvAppInfo||{},{certificationScope:B}));!_.Y("web_populate_time_zone_itc_killswitch")&&(B=qQl())&&(M.timeZone=B);(B=JxS())?M.experimentsToken=B:delete M.experimentsToken;M=PpQ();B=_.Y5J();B=(0,_.jn.getValues)(B.tokenJars);O.request=Object.assign({},O.request,{internalExperimentFlags:M,consistencyTokenJars:B});
!_.Y("web_prequest_context_killswitch")&&(M=_.Ca("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(O.request.externalPrequestContext=M);B=_.pu();M=B.getFlag(58);B=B.get("gsml","");O.user=Object.assign({},O.user);M&&(O.user.enableSafetyMode=M);B&&(O.user.lockedSafetyMode=!0);_.Y("warm_op_csn_cleanup")?E&&(r=_.PE())&&(O.clientScreenNonce=r):!r&&(r=_.PE())&&(O.clientScreenNonce=r);g&&(O.clickTracking={clickTrackingParams:g});if(g=_.XS("yt.mdx.remote.remoteClient_"))O.remoteClient=g;_.tO.getInstance().setLocationOnInnerTubeContext(O);
try{var z=NHX(),k=z.bid;delete z.bid;O.adSignalsInfo={params:[],bid:k};for(var H=_.U(Object.entries(z)),R=H.next();!R.done;R=H.next()){var A=_.U(R.value),J=A.next().value,e=A.next().value;z=J;k=e;g=void 0;(g=O.adSignalsInfo.params)==null||g.push({key:z,value:""+k})}var C,X;if(((C=O.client)==null?void 0:C.clientName)==="TVHTML5"||((X=O.client)==null?void 0:X.clientName)==="TVHTML5_UNPLUGGED"){var Z=_.Ca("INNERTUBE_CONTEXT");Z.adSignalsInfo&&(O.adSignalsInfo.advertisingId=Z.adSignalsInfo.advertisingId,
O.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",O.adSignalsInfo.limitAdTracking=Z.adSignalsInfo.limitAdTracking)}}catch(c){_.tn(c)}return O};
_.n8c=function(g){var r=new FT(_.Ca("ONE_PICK_URL",""));r.urlParamMap_.set("hostId",g);(g=_.Ca("GAPI_LOCALE"))&&r.urlParamMap_.set("hl",g);(g=_.Ca("SESSION_INDEX"))&&r.urlParamMap_.set("authuser",g);(g=_.Ca("DELEGATED_SESSION_ID"))&&r.urlParamMap_.set("groupId",g);return r};
fWP=function(){var g=_.rM(),r=g.resolve(_.eN);g=g.resolve(_.Wo);return new sYV(r,g)};
jYQ=function(g){if(window.IntersectionObserver)return new $VP(g,400);throw new TypeError("dg");};
boY=function(){var g=Hammer.TouchAction,r=g.prototype.preventDefaults;g.prototype.preventDefaults=function(E){var B=this.actions.indexOf("pan-down")>-1;if(!B)return r.call(this,E);if(!A0l){var w=E.srcEvent;E=E.direction;var O;if((O=this.manager)==null?0:O.session.prevented)w.preventDefault();else if(B&&E&Hammer.DIRECTION_DOWN)return this.preventSrc(w)}}};
J0X=function(g){if(!g||g.size===0)return Hammer.DIRECTION_ALL;if(g.size===2){if(g.has("up")&&g.has("down"))return Hammer.DIRECTION_VERTICAL;if(g.has("right")&&g.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(g.size===1){if(g.has("up"))return Hammer.DIRECTION_UP;if(g.has("down"))return Hammer.DIRECTION_DOWN;if(g.has("right"))return Hammer.DIRECTION_RIGHT;if(g.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.ttD=function(){return PsP?Promise.resolve(PsP):new Promise(function(g,r){var E=self.indexedDB.open("swpushnotificationsdb");E.onerror=r;E.onsuccess=function(){var B=E.result;if(B.objectStoreNames.contains("swpushnotificationsstore"))PsP=B,g(PsP);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.ttD()};
E.onupgradeneeded=FXc})};
FXc=function(g){g=g.target.result;g.objectStoreNames.contains("swpushnotificationsstore")&&g.deleteObjectStore("swpushnotificationsstore");g.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
WXY=function(g){var r=eLY(),E;return _.q(function(B){switch(B.nextAddress){case 1:return _.qN(B,2),_.D(B,g.match(r,{cacheName:"yt-appshell-assets"}),4);case 4:E=B.yieldResult;_.Ne(B,3);break;case 2:_.G2(B);case 3:return B.return(E)}})};
eLY=function(){var g=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?CsX.registration.scope:KXJ;g.endsWith("/")&&(g=g.slice(0,-1));return g+"/app_shell_home"};
xVt=function(g){g.map(function(r){return r.source}).join("|")};
_.aWl=function(g){return _.q(function(r){return r.return(WXY(g))})};
XYY=function(){var g=window.caches,r;return _.q(function(E){if(E.nextAddress==1)return _.D(E,_.aWl(g),2);r=E.yieldResult;return E.return(!!r)})};
Vto=function(){_.q(function(g){if(g.nextAddress==1){if(NND)return g.jumpTo(0);NND=!0;if(_.Y("enable_system_health_primes_monitoring"))return _.qe(IWQ,3E4),mVA(),g.return();if(!(Math.random()<_.wM("web_system_health_fraction")))return g.jumpTo(0);c0S={heightPixels:screen.height,widthPixels:screen.width};Cy&&!isNaN(Cy.jsHeapSizeLimit)&&(c0S.memoryTotalKbytes=String(Math.round(Cy.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(c0S.devicePixelRatio=window.devicePixelRatio);return _.D(g,ioP(),4)}_.qe(IWQ,
3E4);return _.D(g,LXl(),0)})};
ioP=function(){return _.q(function(g){if(g.nextAddress==1)return Ky.intersectionObserverPresent="IntersectionObserver"in window,Ky.serviceWorkerPresent="serviceWorker"in navigator,Ky.webSharePresent="share"in navigator,Ky.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,Ky.cacheStoragePresent="caches"in window,Ky.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,Ky.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
Ky.webkitTemporaryStoragePresent="webkitTemporaryStorage"in xa&&xa.webkitTemporaryStorage&&"queryUsageAndQuota"in xa.webkitTemporaryStorage,Ky.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.D(g,cFJ(),2);Ky.indexedDbPresent=g.yieldResult;Ky.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;Ky.broadcastChannelPresent="BroadcastChannel"in window;Ky.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(Ky.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,Ky.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.Q3(g)})};
IWQ=function(){var g=9E4+Math.random()*2E3;_.Eq()>g||(_.Y("enable_system_health_primes_monitoring")?mVA():LXl())};
LXl=function(){var g;return _.q(function(r){if(r.nextAddress==1)return _.D(r,hLJ(),2);g=r.yieldResult;_.Jn("systemHealthCaptured",g);_.Q3(r)})};
mVA=function(){var g={metric:{}},r=ZoY();r.networkEvents.length&&(g.metric.networkEvents=y0Y(r));_.Jn("systemHealthCaptured",g)};
hLJ=function(){var g,r,E,B,w,O,M,u,l,Q;return _.q(function(z){switch(z.nextAddress){case 1:g={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)};r=window.screen;_.Y("enable_is_extended_monitoring")&&r&&"isExtended"in r&&(g.isExtended=!!r.isExtended);E={metric:{staticContext:c0S,dynamicContext:g,webMetric:v8J,webApiSupport:Ky}};
if(B=_.PE())E.csn=B;Cy&&(E.metric.webMetric.currentHeapKbytes=Math.round(Cy.usedJSHeapSize/1E3));window.matchMedia&&(E.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,E.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,E.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in xa&&typeof xa.getBattery==="function")){z.jumpTo(2);break}return _.D(z,xa.getBattery(),3);case 3:if(w=
z.yieldResult)E.metric.dynamicContext.chargingStatus=w.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(E.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(Ky.storageEstimatePresent)return _.D(z,navigator.storage.estimate(),8);if(!Ky.webkitTemporaryStoragePresent){z.jumpTo(5);break}return _.D(z,dVA(),7);case 7:O=z.yieldResult;z.jumpTo(5);break;case 8:O=z.yieldResult;case 5:return E.metric.dynamicContext.deviceStorageQuotaMbytes=((M=O)==null?0:M.quota)?String(Math.round(O.quota/
1048576/10)*10):"-1",E.metric.dynamicContext.deviceStorageUsageMbytes=((u=O)==null?0:u.usage)?String(Math.round(O.usage/1048576/10)*10):"-1",l=E.metric.dynamicContext,_.D(z,XYY(),9);case 9:return l.hasAppShell=z.yieldResult,Q=ZoY(),Q.networkEvents.length&&(E.metric.networkEvents=y0Y(Q)),z.return(E)}})};
dVA=function(){return new Promise(function(g){var r;Ky.webkitTemporaryStoragePresent&&(r=xa.webkitTemporaryStorage)!=null&&r.queryUsageAndQuota?xa.webkitTemporaryStorage.queryUsageAndQuota(function(E,B){g({usage:E,quota:B})}):g(void 0)})};
_.aJ=function(g){g&=16777215;g=[(g&16711680)>>16,(g&65280)>>8,g&255];return TNX(g[0],g[1],g[2])};
_.XT=function(g){g=[(g&16711680)>>>16,(g&65280)>>>8,g&255,(g&4278190080)>>>24];var r=_.giL(g,function(E){return E==(E&255)});
g[3]=(g[3]/255).toFixed(3);if(!r)throw Error("eg`"+g.join(","));return"rgba("+g.join(",")+")"};
_.riS=function(g){return[(g&16711680)>>>16,(g&65280)>>>8,g&255]};
_.EiJ=function(g){g=g.map(function(r){r/=255;return r<=.03928?r/12.92:Math.pow((r+.05)/1.05,2.4)});
return g[0]*.2126+g[1]*.7152+g[2]*.0722};
N8=function(g,r){g=_.riS(g);return"rgba("+g[0]+", "+g[1]+", "+g[2]+", "+r+")"};
_.BDl=function(){try{return!!self.localStorage}catch(g){return!1}};
UFY=function(){if(wdQ())_.el(Error("fg"));else{var g=document.createElement("iframe");g.style.display="none";var r=r===void 0?window.location.href:r;var E=_.eE(_.Ca("PERSIST_IDENTITY_IFRAME_URL"));r=E?E:(new URL(r)).host.indexOf("studio")===0?_.wF(S_J,"persist_identity"):_.wF(O4X,"persist_identity");_.ey(g,1,r);g.id="persist_identity";var B;(B=document.body)==null||B.appendChild(g)}};
wdQ=function(){var g=MbV;g||(g=document.querySelector("#persist_identity"));return g};
q_c=function(){var g=!1;try{g=!!window.sessionStorage.getItem("session_logininfo")}catch(r){g=!0}return(_.Ca("INNERTUBE_CLIENT_NAME")==="WEB"||_.Ca("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&g};
u0L=function(g,r){if(!q_c())return!1;r||(r=_.Ca("LOGIN_INFO"));return r?(g.session_logininfo=r,!0):!1};
DFB=function(g,r){g=g===void 0?!1:g;if((r===void 0||!r)&&luQ!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.Ka("LOG_STICKINESS",!1)){r=_.PE();var E=_.JF(),B={identityStickinessData:{initialState:luQ}};r&&E&&_.hg(r,E,B)}if(r=wdQ())if(E=r.src?(new URL(r.src)).origin:"*",g){var w;(w=r.contentWindow)==null||w.postMessage({action:"clear"},E)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(g=window.sessionStorage.getItem("session_logininfo"))){var O;(O=r.contentWindow)==null||O.postMessage({loginInfo:g},E)}};
_.IJ=function(g){g=g===void 0?!0:g;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.W0("LOGIN_INFO",""),g&&window.sessionStorage.setItem("from_switch_account","1"),DFB(!0,g)}catch(r){}};
oiB=function(g){g&&(g.startsWith("https://accounts.google.com/AddSession")?_.IJ():g.startsWith("https://accounts.google.com/ServiceLogin")?_.IJ():g.startsWith("https://myaccount.google.com")&&_.cT(g).getPath().endsWith("/youtubeoptions")&&_.IJ())};
m$=function(g,r){oiB(g);if(_.Ka("LOGGED_IN",!0)&&q_c()){var E=OUY(g);E==null&&(E={});u0L(E,r)&&_.yk(g,E)}};
GYQ=function(){function g(r){for(r=r.target;r&&r.nodeName!=="A";)if(r=r.parentNode,!(r&&r instanceof HTMLElement))return;if(r&&!r.hasAttribute("download")&&r.getAttribute("rel")!=="external"&&r.href)return r.href}
document.addEventListener("mousedown",function(r){r.button!==0&&(r=g(r))&&m$(r)});
document.addEventListener("click",function(r){(r=g(r))&&m$(r)})};
kYl=function(){var g=new Q9S;try{if(_.Ka("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(u){g.increment(5,!1);return}if(_.Ca("LOGIN_INFO")){var r=zxA?zxA:window.location;_.Ca("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&UFY();var E=OUY(r.href);E==null&&(E={});var B=E.session_logininfo,w=Number(window.sessionStorage.getItem("stickiness_reload")),O=B===_.Ca("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
w>=2||O)w>=2?g.increment(2,O):O?g.increment(7,O):window.sessionStorage.getItem("session_logininfo")||(g.increment(3,O),luQ="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.Ca("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.Ca("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))g.increment(4,O),window.sessionStorage.removeItem("stickiness_reload");
else if(w<2){window.sessionStorage.setItem("stickiness_reload",String(w+1));var M=r.href;M=_.vE(M,"sttick");m$(M,window.sessionStorage.getItem("session_logininfo"));M=_.La(M,{sttick:w});g.increment(w,O);_.ha(r,M)}}else g.increment(6,!1)}else _.IJ(!1)}catch(u){}};
_.co=function(g,r,E,B,w){r=r===void 0?{}:r;E=E===void 0?"":E;B=B===void 0?window:B;g=_.Vg(g,r);m$(g);E=_.nI(g+E,w);_.ha(B.location,E)};
_.H4L=function(g,r,E,B,w){w=w===void 0?!1:w;E&&_.yk(g,E);E=_.nI(g);var O=_.zh(E);g!=O&&_.NX(Error("gg`"+g));g=O;r=r||ay(g).toString(36);try{if(w)return w=g,w=poo(w),m$(w),_.Wu(window,w,r,"attributionsrc")}catch(M){_.xF(M)}m$(g);return _.Wu(window,E,r,B)};
pdD=function(g){if(g.urlEndpoint){if(g=_.iu(g.urlEndpoint.url),g.adurl)return dW(g.adurl)}else if(g.watchEndpoint)return"//www.youtube.com/watch?v="+g.watchEndpoint.videoId;return null};
Y_l=function(g){if(!g||!g.reportingPings)return null;var r={};g.reportingPings.forEach(function(E){E.pingType in r?r[E.pingType].push(E.url):r[E.pingType]=[E.url]});
return{adpings:k5J(r)}};
_.iF=function(){return{isShellLoad:_.Ka("IS_SHELL_LOAD",!1)}};
niL=function(){navigator.serviceWorker.getRegistrations().then(function(g){g.forEach(Rxl)})};
Rxl=function(g){g&&_.s9X(fuc,g.scope)};
_.s9X=function(g,r){r={scope:r||_.Sg("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.ui(g),r)};
Ly=function(g,r,E,B){if(r&&r.serializedYpcCujLoggingParams){if(E){var w={};w.transactionErrorType=E;B&&(w.errorMessage=B);r.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:w}}}E={};E.ypcCujContext=r;g=_.lF("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",g,E);_.D1(_.oJ(),g,"FLOW_TYPE_YPC_ACQUISITION")}};
_.$Fc=function(g,r,E,B){var w={};w.serializedTransactionFlowLoggingParams=r;E&&(w.errorType=E);B&&(w.errorMessage=B);_.Jn(g,w);_.Pf()};
_.j9X=function(g){g&&_.$Fc("transactionFlowStarted",g)};
_.Ail=function(g){g&&_.$Fc("transactionFlowCancelled",g)};
_.VP=function(g,r,E){r&&_.$Fc("transactionFlowFailed",r,g,E)};
b4L=function(g){var r=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");r&&(r.inert=g)};
_.hO=function(){this.megabloxUrl_=null};
_.Z1=function(g){try{var r=JiJ==null?void 0:JiJ.composedPath(g)}catch(E){r=g.composedPath?g.composedPath():[]}return r&&r.length>0?r:g.composedPath?g.composedPath():[]};
_.yP=function(g){return _.Z1(g)[0]};
_.vo=function(g){if(!(g instanceof Element))return null;g=g.classList?Array.from(g.classList):void 0;if(!g)return null;var r=g.indexOf("style-scope");return r>-1&&r+1<g.length?g[r+1]:null};
db=function(g){if(!(g instanceof HTMLElement))return null;var r=g&&(g.$$||g.polymerController)?g.tagName.toLowerCase():null;return r?r:_.vo(g)};
PeP=function(g,r){return g.replace(/[^a-z]*[^\s]+/g,function(E){return E+".style-scope."+r})};
tbJ=function(g,r){return r?g.split(",").map(function(E){return PeP(E.trim(),r)}).join(", "):g};
_.TF=function(g){var r,E,B,w;return(w=(B=(E=(r=g.root)!=null?r:g.shadowRoot)!=null?E:g.__shady_native_shadowRoot)!=null?B:g.__shady_shadowRoot)!=null?w:g};
gG=function(g){return g instanceof ShadowRoot?ShadowRoot:g instanceof DocumentFragment?DocumentFragment:g instanceof Document?Document:HTMLElement};
F1D=function(g){var r,E,B;return(B=(E=(r=g.parentElement)!=null?r:g.__shady_native_parentElement)!=null?E:g.__shady_parentElement)!=null?B:null};
exB=function(g){var r,E,B;return(B=(E=(r=g.parentNode)!=null?r:g.__shady_native_parentNode)!=null?E:g.__shady_parentNode)!=null?B:null};
W1t=function(g){var r,E,B;return(B=(E=(r=g.__shady_parentNode)!=null?r:g.__shady_native_parentNode)!=null?E:g.parentNode)!=null?B:null};
CeV=function(g){var r,E;return(E=(r=exB(g))!=null?r:g.host)!=null?E:null};
K1V=function(g){var r,E,B;return(B=(E=(r=g.nextSibling)!=null?r:g.__shady_native_nextSibling)!=null?E:g.__shady_nextSibling)!=null?B:null};
xFB=function(g){var r,E,B;return(B=(E=(r=g.previousSibling)!=null?r:g.__shady_native_previousSibling)!=null?E:g.__shady_previousSibling)!=null?B:null};
auV=function(g){var r,E,B;return(B=(E=(r=g.nextElementSibling)!=null?r:g.__shady_native_nextElementSibling)!=null?E:g.__shady_nextElementSibling)!=null?B:null};
Xdc=function(g){var r,E,B;return(B=(E=(r=g.previousElementSibling)!=null?r:g.__shady_native_previousElementSibling)!=null?E:g.__shady_previousElementSibling)!=null?B:null};
NDA=function(g){var r,E,B;return new Set([].concat(_.jW((r=g.children)!=null?r:[]),_.jW((E=g.__shady_native_children)!=null?E:[]),_.jW((B=g.__shady_children)!=null?B:[])))};
IuX=function(g){var r,E,B;return new Set([].concat(_.jW((r=g.childNodes)!=null?r:[]),_.jW((E=g.__shady_native_childNodes)!=null?E:[]),_.jW((B=g.__shady_childNodes)!=null?B:[])))};
mFl=function(g){if(!g)return null;var r=_.vo(g);if(!r){var E;return(E=Node.prototype.getRootNode)==null?void 0:E.call(g)}r=r.toUpperCase();for(g=F1D(g);g&&g.tagName!==r;)g=F1D(g);return g?_.TF(g):null};
ciV=function(g){for(;g&&!(g instanceof HTMLElement);)g=CeV(g);return g};
i4V=function(g){var r=ciV(g);return g===r?_.vo(g):r?db(r):null};
L1S=function(g){return(g=ciV(g))?db(g):null};
VbY=function(g){if(g instanceof Comment)return!1;if(g instanceof Text){var r,E;if(((E=(r=g.textContent)==null?void 0:r.trim())!=null?E:"")==="")return!1}return!0};
rG=function(g,r,E){var B=r(g);for(E=E===void 0?L1S(g):E;B&&(i4V(B)!==E||!VbY(B));)g=B,B=r(g);return B};
hxD=function(g,r,E){if(!r)return null;g=L1S(g);return i4V(r)===g&&VbY(r)?r:rG(r,E,g)};
Z4B=function(g){return rG(g,W1t,_.vo(g))};
yiL=function(g){return rG(g,auV)};
vil=function(g){return rG(g,K1V)};
dFl=function(g){return rG(g,Xdc)};
TDQ=function(g){return rG(g,xFB)};
gnJ=function(g){return hxD(g,g.firstChild||g.__shady_native_firstChild||g.__shady_firstChild||null,K1V)};
rHt=function(g){var r,E,B;var w=(B=(E=(r=g.firstElementChild)!=null?r:g.__shady_native_firstElementChild)!=null?E:g.__shady_firstElementChild)!=null?B:null;return hxD(g,w,auV)};
Enc=function(g){var r,E,B;var w=(B=(E=(r=g.lastChild)!=null?r:g.__shady_native_lastChild)!=null?E:g.__shady_lastChild)!=null?B:null;return hxD(g,w,xFB)};
BIl=function(g){var r,E,B;var w=(B=(E=(r=g.lastElementChild)!=null?r:g.__shady_native_lastElementChild)!=null?E:g.__shady_lastElementChild)!=null?B:null;return hxD(g,w,Xdc)};
whV=function(g){var r=L1S(g);return Array.from(IuX(g)).filter(function(E){return i4V(E)===r})};
Snl=function(g){var r=db(g);return Array.from(NDA(g)).filter(function(E){return _.vo(E)===r})};
_.EN=function(g,r,E){if(g instanceof HTMLElement&&_.vo(g)===E){var B=Array.from(g.classList).indexOf("style-scope");if(B===-1)g.classList.add("style-scope"),g.classList.add(r);else if(!(B+1>=g.classList.length)){B=g.classList[B+1];var w,O;g==null||(w=g.classList)==null||(O=w.replace)==null||O.call(w,B,r)}}if(g instanceof HTMLElement||g instanceof DocumentFragment)for(w=_.U(NDA(g)),O=w.next();!O.done;O=w.next())_.EN(O.value,r,E);return g};
Bi=function(g,r){if(g instanceof HTMLElement&&_.vo(g)===r){var E=Array.from(g.classList).indexOf("style-scope");E===-1||E+1>=g.classList.length||g.classList.remove("style-scope",g.classList[E+1])}if(g instanceof HTMLElement||g instanceof DocumentFragment){E=_.U(g.children);for(var B=E.next();!B.done;B=E.next())Bi(B.value,r)}return g};
_.Ojt=function(g,r){return gG(g).prototype.appendChild.call(g,r)};
URJ=function(g,r){if(g===r)return!0;g=IuX(g);return Array.from(g).some(function(E){return URJ(E,r)})};
_.S3=function(g,r){if(g instanceof wG)return g;(r==null?0:r.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(g,"ownerDocument")&&Object.defineProperty(g,"ownerDocument",{get:function(){return window.document}});
return new wG(g)};
qnt=function(){var g=wG.prototype,r=[].concat(_.jW(M6V?[]:["getRootNode"]),["setAttribute","removeAttribute"]);r=_.U(r);for(var E=r.next(),B={};!E.done;B={method$jscomp$48:void 0},E=r.next())B.method$jscomp$48=E.value,g[B.method$jscomp$48]=function(w){return function(){return this.host[w.method$jscomp$48].apply(this.host,arguments)}}(B)};
lKl=function(){var g=wG.prototype,r=[].concat(_.jW(M6V?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.jW(uGS?[]:["querySelector","querySelectorAll"]));r=_.U(r);for(var E=r.next(),B={};!E.done;B={method$jscomp$49:void 0},E=r.next())B.method$jscomp$49=E.value,g[B.method$jscomp$49]=function(w){return function(){return this.root[w.method$jscomp$49].apply(this.root,arguments)}}(B)};
G4A=function(){var g=wG.prototype,r=[].concat(_.jW(DRJ?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.jW(onl?[]:["parentNode"]));r=_.U(r);for(var E=r.next(),B={};!E.done;B={prop$jscomp$62:void 0},E=r.next())B.prop$jscomp$62=E.value,Object.defineProperty(g,B.prop$jscomp$62,{get:function(w){return function(){return this.host[w.prop$jscomp$62]}}(B),
configurable:!0})};
k4c=function(){var g=wG.prototype,r=["activeElement"].concat(_.jW(DRJ?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.jW(QhD?[]:["children"]),_.jW(znL?[]:["lastChild"]));r=_.U(r);for(var E=r.next(),B={};!E.done;B={prop$jscomp$63:void 0},E=r.next())B.prop$jscomp$63=E.value,Object.defineProperty(g,B.prop$jscomp$63,{get:function(w){return function(){return this.root[w.prop$jscomp$63]}}(B),
configurable:!0})};
Hjt=function(){for(var g=wG.prototype,r=_.U(["innerHTML","textContent"]),E=r.next(),B={};!E.done;B={prop$jscomp$64:void 0},E=r.next())B.prop$jscomp$64=E.value,Object.defineProperty(g,B.prop$jscomp$64,{get:function(w){return function(){return this.root[w.prop$jscomp$64]}}(B),
set:function(w){return function(O){this.root[w.prop$jscomp$64]=O}}(B),
configurable:!0})};
phL=function(g){var r=wG.prototype;g=_.U(Object.entries(g));for(var E=g.next(),B={};!E.done;B={fn$jscomp$363:void 0},E=g.next()){var w=_.U(E.value);E=w.next().value;w=w.next().value;B.fn$jscomp$363=w;r[E]=function(O){return function(){return O.fn$jscomp$363.apply(null,[this.host.node||this.host].concat(_.jW(arguments)))}}(B)}};
Rnt=function(){for(var g=wG.prototype,r=_.U(Object.entries(YnP)),E=r.next(),B={};!E.done;B={fn$jscomp$364:void 0},E=r.next()){var w=_.U(E.value);E=w.next().value;w=w.next().value;B.fn$jscomp$364=w;Object.defineProperty(g,E,{get:function(O){return function(){return O.fn$jscomp$364.apply(null,[this.host.node||this.host].concat(_.jW(arguments)))}}(B),
configurable:!0})}};
_.ON=function(g){return g instanceof nnQ||g instanceof Document?g:new nnQ(g)};
shJ=function(){for(var g=nnQ.prototype,r=_.U("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),E=r.next(),B={};!E.done;B={method$jscomp$50:void 0},E=r.next())B.method$jscomp$50=E.value,g[B.method$jscomp$50]=function(w){return function(){return HTMLElement.prototype[w.method$jscomp$50].call.apply(HTMLElement.prototype[w.method$jscomp$50],[this.node].concat(_.jW(arguments)))}}(B)};
fKo=function(){for(var g=nnQ.prototype,r=_.U("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),E=r.next(),B={};!E.done;B={prop$jscomp$65:void 0},E=r.next())B.prop$jscomp$65=E.value,Object.defineProperty(g,B.prop$jscomp$65,{get:function(w){return function(){var O;return(O=this.node["__shady_native_"+w.prop$jscomp$65])!=null?O:this.node[w.prop$jscomp$65]}}(B),
configurable:!0})};
_.UN=function(g,r,E){E===void 0&&(E=!g.classList.contains(r));E?g.classList.add(r):g.classList.remove(r)};
_.M1=function(g,r,E){E===void 0&&(E=!g.hasAttribute(r));if(r==="class")throw Error("kg");E?_.ON(g).setAttribute(r,""):_.ON(g).removeAttribute(r)};
$Rt=function(g){return(g.localName!=="slot"?[]:(0,_.q1)(g).assignedNodes({flatten:!0})).filter(function(r){return r.nodeType===Node.ELEMENT_NODE})};
_.jhP=function(g){return(g=_.S3(g).querySelector("slot"))&&g.localName==="slot"?$Rt(g):[]};
_.ua=function(g,r){window.ShadyCSS&&window.ShadyCSS.styleSubtree(g,r)};
la=function(g,r){var E=r.bind(g);return function(B){E(B,B.detail)}};
_.Do=function(g,r){var E=AHA.get(g);E||(E=new WeakMap,AHA.set(g,E));if(E.has(r))return E.get(r);if(_.Y("web_fi_listen_disable_bound_fn_helper")){var B=r.bind(g);g=function(w){B(w,w==null?void 0:w.detail)}}else g=la(g,r);
E.set(r,g);return g};
PoY=function(g,r){bjl(g);g.created[JHl].push(r)};
bjl=function(g){if(!g.created||!g.created[JHl]){var r=g.created,E=r?[r]:[];g.created=function(){for(var B=_.U(E),w=B.next();!w.done;w=B.next())w.value.apply(this)};
g.created[JHl]=E}};
t6X=function(g){return function(){var r=_.fI.apply(0,arguments);return function(E,B,w){g.apply(null,_.jW(r))(E,B,w)}}};
FLV=function(){return function(){var g=_.fI.apply(0,arguments);return function(r,E,B){jxA.apply(null,_.jW(g))(r,E,B)}}};
_.P=function(g){return FLV()(g)};
_.W=function(){return t6X(PjV).apply(null,_.jW(_.fI.apply(0,arguments)))};
_.ob=function(g){return _.Y("pbcm_fi_listen_decorators")?ent(g):t6X(bZD)(g)};
ent=function(g){return function(r,E){PoY(r,function(){var B=this[E],w=_.Y("web_fi_listen_disable_bound_fn_helper")?function(O){B(O,O.detail)}.bind(this):la(this,B);
WLl.has(g)?bp(this.hostElement,g,w):this.hostElement.addEventListener(g,w)})}};
_.Gb=function(){return t6X(JQQ).apply(null,_.jW(_.fI.apply(0,arguments)))};
_.K=function(g){g=g===void 0?{}:g;return t6X(AQt)(g)};
_.Q7=function(g){if(g.hostElement&&g!==g.hostElement){var r=_.nM(g.hostElement);r=g.renderIdom?r:r.shadowRoot}r||(g=g.root,r=g instanceof Node?_.nM(g):null);return r};
_.zb=function(g){return Cot?KLJ(g):function(r,E){Object.defineProperty(r,E,{get:function(){var B;return(B=_.Q7(this))==null?void 0:B.querySelector(g)},
enumerable:!0,configurable:!0})}};
KLJ=function(g){return function(r,E){Object.defineProperty(r,E,{get:function(){var B,w=(B=_.S3(this.hostElement))==null?void 0:B.querySelector(g);if(w)return w;var O;return(O=_.Q7(this))==null?void 0:O.querySelector(g)},
enumerable:!0,configurable:!0})}};
_.kk=function(g){return Cot?xRA(g):function(r,E){Object.defineProperty(r,E,{get:function(){var B;return(B=_.Q7(this))==null?void 0:B.querySelectorAll(g)},
enumerable:!0,configurable:!0})}};
xRA=function(g){return function(r,E){Object.defineProperty(r,E,{get:function(){var B,w=(B=_.S3(this.hostElement))==null?void 0:B.querySelectorAll(g);if(w==null?0:w.length)return w;var O;return(O=_.Q7(this))==null?void 0:O.querySelectorAll(g)},
enumerable:!0,configurable:!0})}};
aKV=function(g){return function(r){if(![_.ys,_.a].includes(Object.getPrototypeOf(r.prototype).constructor))throw Error("lg");HZY(Object.assign({},typeof g!=="string"?g:{is:g,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(r)}};
_.pR=function(){var g=g===void 0?{}:g;return function(r){if(![v3,_.Hi].includes(Object.getPrototypeOf(r.prototype).constructor))throw Error("mg");pvo(Object.assign({},g,{disableInheritanceCheck:!0}))(r)}};
NIl=function(g,r){XhA[g]!=null||(XhA[g]=new Set);XhA[g].add(r)};
_.Yk=function(){var g=_.Gb.apply(null,_.jW(_.fI.apply(0,arguments)));return function(r,E){NIl(r.is,E);g(r,E)}};
sN=function(g,r,E){if(Rb(g)&&!IKc.has(r)){r=r.replace(/^JSC\$[\d]+_/,"");r=r.replace(/\.\d+(\.|$)/g,function(O,M){return".#"+M});
nR[g]!=null||(nR[g]={});var B,w;(B=nR[g])[w=r]!=null||(B[w]=new Set);nR[g][r].has(E)||(nR[g][r].add(E),_.Jn("polymerPropertyAccessEvent",{componentName:g,propertyName:r,accessType:E}))}};
mRl=function(){return _.Y("polymer_property_access_logging_debug")||_.Y("polymer_enable_property_access_logging")};
Rb=function(g){if(_.Y("polymer_property_access_logging_debug"))return!0;if(!_.Y("polymer_enable_property_access_logging"))return!1;cHl||(cHl=Date.now());return(ay(g)+cHl)%100<_.wM("polymer_property_access_logging_percent")};
ijX=function(g,r){return Rb(r)&&g.hostElement.loggingStatus?new Proxy(g,{get:function(E,B,w){if(E.hostElement.loggingStatus.bypassProxyController)return E[B];E.hostElement.loggingStatus.isExternalGet=!0;var O=E[B];E.hostElement.loggingStatus.isExternalGet=!1;if(O instanceof Function)return function(){var M=_.fI.apply(0,arguments);try{return E.hostElement.loggingStatus.currentExternalCall=B,sN(r,B,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),O.apply(this===w?E:this,M)}finally{E.hostElement.loggingStatus.currentExternalCall=
void 0}};
sN(r,B,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return O},
set:function(E,B,w){if(E.hostElement.loggingStatus.bypassProxyController)return E[B]=w,!0;E.hostElement.loggingStatus.isRendererStamper?sN(r,B,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):E.hostElement.loggingStatus.isDeclarativeExternal||sN(r,B,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{E.hostElement.loggingStatus.currentExternalSet=B,E[B]=w}finally{E.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):g};
LLc=function(g,r){g&&g.loggingStatus&&!g.loggingStatus.isDeclarativeExternal&&!g.loggingStatus.isExternalGet&&g.loggingStatus.currentExternalSet!==r&&sN(g.tagName.toLowerCase(),r,"PROPERTY_ACCESS_GET_INTERNAL")};
fR=function(g,r,E){g&&(E||g.loggingStatus&&!g.loggingStatus.isInitializing&&!g.loggingStatus.isDefiningPropertyAccessor&&g.loggingStatus.currentExternalSet!==r)&&sN(g.tagName.toLowerCase(),r,"PROPERTY_ACCESS_SET_INTERNAL")};
V6l=function(){return{_definePropertyAccessor:function(g,r){var E=this,B=E.hostElement.loggingStatus;B&&(B.isDefiningPropertyAccessor=!0);var w=E[g];w!==void 0&&(E.__data?E._setPendingProperty(g,w):(E.__dataProto!=null||(E.__dataProto={}),E.__dataProto[g]=w));B&&(B.isDefiningPropertyAccessor=!1);Object.defineProperty(this,g,{get:function(){LLc(E.hostElement,g);return this.__data[g]},
set:function(O){r||this._setPendingProperty(g,O,!0)&&this._invalidateProperties()}})},
created:function(){var g=this._setPendingProperty.bind(this);this._setPendingProperty=function(r,E,B){fR(this.hostElement,r);return g.apply(this,[r,E,B])}}}};
hnV=function(g){mRl()&&_.P($k.prototype)(g.prototype,"__templateBindingLoggingBehavior")};
ZjY=function(g,r){if(r.resolvedFactories.length!==g.resolvedFactories.length)return!0;r=_.U(r.resolvedFactories.entries());for(var E=r.next();!E.done;E=r.next()){var B=_.U(E.value);E=B.next().value;B=B.next().value;if(B.providerClass){if(B.providerClass!==g.resolvedFactories[E].providerClass)return!0}else if(B.providerValue){if(B.providerValue!==g.resolvedFactories[E].providerValue)return!0}else if(B.factory!==g.resolvedFactories[E].factory)return!0}return!1};
yHl=function(g,r){g=_.U(g);for(var E=g.next();!E.done;E=g.next())if(E=E.value,E.constructor===Array)yHl(E,r);else{var B=r;B.has(E)||(E.inject&&B.add(E),E.behaviors&&yHl(E.behaviors,B))}};
AC=function(g,r){var E=g[r];g[r]=function(){var B=_.fI.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(E)return E.apply(this,B)}};
g1Q=function(){_.ba.Class=function(E,B){E=vnP(E,B);AC(E.prototype,"created");return E};
AC(JC.prototype,"_initializeProperties");AC(_.Pi.prototype,"_initializeProperties");if(dRl)AC(TIY,"created");else{var g=function(){AC(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))g();else{var r=customElements.define;customElements.define=function(E,B,w){r.call(customElements,E,B,w);E==="tp-yt-iron-list"&&(g(),customElements.define=r)}}}};
E1l=function(g,r){g.prototype.behaviors=g.prototype.behaviors||[];g.prototype.behaviors.unshift(rKl.InjectBehavior);g.prototype.provide=r};
_.e3=function(g){return function(r){if(!g.disableElementRegistration){g.noInjection||E1l(r,g.providers);var E=r.prototype;E.__templateHelpers||jxA(tC.prototype)(E,"__templateHelpers");E=g.is;B$B||(B$B=Date.now());(ay(E)+B$B)%100<_.wM("polymer_log_prop_change_observer_percent")&&jxA(F7.prototype)(r.prototype,"__propertyObserverObserver");r.prototype.behaviors=r.prototype.behaviors||[];r.prototype.behaviors.unshift(_.w4l.YtHostElementBehavior);hnV(r);aKV({is:g.is,notifyObserversOnUndefined:g.notifyObserversOnUndefined!==
!1,fastInit:g.fastInit,template:g.template,disableEnforceFastDefaultValuesCheck:!0})(r)}}};
_.N=function(g){return _.e3({is:g.is,template:g.template,disableElementRegistration:g.disableElementRegistration,cssBuildOptOut:g.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
UZX=function(g,r){if(SVQ){g=new g;for(var E=_.U(Object.getOwnPropertyNames(g)),B=E.next();!B.done;B=E.next())B=B.value,r[B]=g[B];for(E=r;E&&E!==Object.prototype;E=Object.getPrototypeOf(E)){B=_.U(Object.getOwnPropertyNames(E));for(var w=B.next();!w.done;w=B.next())w=w.value,g.hasOwnProperty(w)||Object.defineProperty(g,w,OOL(r,w))}}else g.apply(r)};
OOL=function(g,r){return{get:function(){var E=g[r];return E instanceof Function?E.bind(g):E},
set:function(E){g[r]=E}}};
qVJ=function(g,r){for(var E=g._noAccessors,B=_.U(Object.getOwnPropertyNames(g)),w=B.next();!w.done;w=B.next())if(w=w.value,!MKl.has(w))if(E)r[w]=g[w];else{var O=Object.getOwnPropertyDescriptor(g,w);O&&(O.configurable=!0,Object.defineProperty(r,w,O))}};
u9V=function(g,r,E){return function(B){if(E){var w=E();B.model=w}if(g[r])g[r](B,B.detail)}};
Wi=function(g){var r=[];if(typeof g==="string")g.length>0&&r.push.apply(r,_.jW(g.split(".")));else{g=_.U(g);for(var E=g.next();!E.done;E=g.next())E=E.value,typeof E==="string"?r.push.apply(r,_.jW(E.split("."))):r.push(E)}return r};
lLY=function(g,r){if(r[r.length-1]!=="*"&&r[r.length-1]!=="splices"){for(var E=0;E<r.length;E++){if(!g)return;g=g[r[E]]}return g}};
DZX=function(g,r){if(g.length>r.length)return!1;for(var E=0;E<g.length;E++)if(g[E]!==r[E])return!1;return!0};
GVo=function(g,r,E){if(r.type==="compute"){var B=r.getter.bind(E);var w=r.args}else B=function(){return E[r.method.methodName].apply(E,_.jW(_.fI.apply(0,arguments)))},w=r.method.args;
o1l(g,r.propertyKey,B,w,r.value)};
zCD=function(g,r){if(r.readOnly){var E=Object.getOwnPropertyDescriptor(g.model,r.propertyKey);Object.defineProperty(g.model,r.propertyKey,{get:E.get,set:function(){}});
g.model[QZY(r.propertyKey)]=E.set}};
kVY=function(g,r,E){if(E){var B=r.propertyKey,w=r.selector;r=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.jW(r.selectorArgs.map(function(O){return{type:"path",path:O}})));
o1l(g,B,function(O){var M=_.fI.apply(1,arguments);return w.apply(null,[E.getState()].concat(_.jW(M)))},r)}};
p4t=function(g,r,E){var B=_.Gr(r.propertyKey)+"-changed";HOl(g,function(w){var O={value:w.value,queueProperty:!0};w.path.split(".").length>1&&(O.path=w.path);E.dispatchEvent(new CustomEvent(B,{detail:O}))},[{type:"wildcard",
path:r.propertyKey}])};
YVA=function(g,r,E){HOl(g,function(){E[r.method.methodName].apply(E,_.jW(_.fI.apply(0,arguments)))},r.method.args)};
QZY=function(g){return"_set"+(g.charAt(0).toUpperCase()+g.slice(1))};
n1J=function(){return _.Y("enable_track_defined_via_mutable_signal")||RCV};
sZB=function(){var g,r=Pp(function(E){g=E},!1);
return[g,r]};
bOX=function(g){g=g.trim().replace(fLP,",").replace($ZP,"$1");var r=g[0];r==="-"&&(r=g[1]);if(r>="0"&&r<="9")return{type:"literal",value:Number(g)};if(r==="'"||r==='"')return{type:"literal",value:g.slice(1,-1)};if(r=g.match(jZl)){r=r[1];var E=AKl[r];if(E)return{type:E,path:g.slice(0,-(r.length+1))}}return{type:"path",path:g}};
FoB=function(g){var r=g.match(JKl);if(r)return g={methodName:r[1],args:PIX},r[2].trim()&&(r=r[2].replace(tKP,"&comma;").split(","),g.args=r.map(bOX)),g};
eCV=function(g,r,E,B){B=B===void 0?!1:B;r=_.Gr(r);var w=k5;w&&(E=w(E,r,"attribute",g));CR(g,E,r,B)};
CR=function(g,r,E,B){r=WoY(r,B===void 0?!1:B);r===void 0?g.removeAttribute(E):g.setAttribute(E,r)};
WoY=function(g,r){switch(typeof g){case "object":case "function":if(g instanceof Date)return g.toString();if(g){if((r===void 0?0:r)&&!_.Y("polymer_reflect_objects_as_boolean_killswitch"))return g?"":void 0;r=window.trustedTypes?window.trustedTypes.isHTML(g)||window.trustedTypes.isScript(g)||window.trustedTypes.isScriptURL(g):void 0;if(r)return g;try{return JSON.stringify(g)}catch(E){_.el(Error("Ig`"+g))}}break;case "boolean":return g?"":void 0;default:return g!==null&&g!==void 0?g.toString():void 0}};
CIJ=function(g){if(g===void 0)throw Error("Jg");return g};
N$D=function(g,r,E,B){var w=KoV(B);if(w.length){B=E;var O="property";xZl.test(E)?O="attribute":E[E.length-1]==="$"&&(E=E.slice(0,-1),O="attribute");var M=aLA(w);M&&O==="attribute"&&(E==="class"&&g.hasAttribute("class")&&(M+=" "+g.getAttribute(E)),CR(g,M,E));O==="attribute"&&B==="disable-upgrade$"&&g.setAttribute("disable-upgrade","");g.localName==="input"&&B==="value"&&g.setAttribute("value","");g.removeAttribute(B);O==="property"&&(E=_.Qk(E));r=CIJ(r);X4J(r,O,E,w);return!0}return E.slice(0,3)===
"on-"?(g.removeAttribute(E),(O=r).events!=null||(O.events=[]),r.events.push({name:E.slice(3),value:B}),!0):E==="id"?(r.id=B,!0):!1};
KoV=function(g){for(var r=[],E=0,B;(B=ILo.exec(g))!==null;){B.index>E&&r.push({type:"literal",value:g.slice(E,B.index)});var w=B[1][0];E=!!B[2];B=B[3].trim();if(w==="{")throw Error("Kg");(w=FoB(B))?r.push({type:"method",negate:E,signature:w}):r.push({type:"path",negate:E,path:B});E=ILo.lastIndex}E&&E<g.length&&(g=g.substring(E))&&r.push({type:"literal",value:g});return r};
aLA=function(g){for(var r="",E=0;E<g.length;E++){var B=g[E];B.type==="literal"&&(r+=B.value)}return r};
X4J=function(g,r,E,B){g.bindings!=null||(g.bindings=[]);g.bindings.push({kind:r,target:E,parts:B})};
VKl=function(g,r,E){var B=!1;if(g.localName==="template"){B=E;var w=r.stripWhitespace;w=mZS(g,w===void 0?!1:w);var O=g.content.ownerDocument.createDocumentFragment();w.content=O;O.appendChild(g.content);B&&(B.templateInfo=w);B=!0}else g.localName==="slot"&&(r.hasInsertionPoint=!0);if(g.firstChild&&(w=E,g.localName!=="script"&&g.localName!=="style")){O=0;for(var M=g.firstChild;M;){var u=M;if(u.localName==="template"){var l=u.getAttribute("is");if((M=l==="dom-if")||l==="dom-repeat"){u.removeAttribute("is");
l=u.ownerDocument.createElement("ps-"+l);u.parentNode.replaceChild(l,u);l.appendChild(u);var Q=Array.from(u.attributes);Q=_.U(Q);for(var z=Q.next();!z.done;z=Q.next())z=z.value,M?cKP.has(z.name)&&CR(l,z.value,z.name):iOQ.has(z.name)?CR(l,z.value,z.name):LoA.has(z.name),u.removeAttribute(z.name);M=l}else M=u}if(M.nodeType===Node.TEXT_NODE){u=void 0;l=g;for(Q=M;((u=Q.nextSibling)==null?void 0:u.nodeType)===Node.TEXT_NODE;)z=void 0,(z=Q).textContent!=null||(z.textContent=""),Q.nextSibling.textContent&&
(Q.textContent+=Q.nextSibling.textContent),l.removeChild(Q.nextSibling);if(r.stripWhitespace&&M.textContent&&!M.textContent.trim()){g.removeChild(M);M=M.nextSibling;continue}}VKl(M,r,{parentIndex:O,parentInfo:w});M.parentNode&&O++;M=M.nextSibling}}var k;if((k=g.hasAttributes)==null?0:k.call(g)){k=E=CIJ(E);w=!1;O=Array.from(g.attributes);O=_.U(O);for(u=O.next();!u.done;u=O.next())u=u.value,w=N$D(g,k,u.name,u.value)||w;B=w||B}g.nodeType===Node.TEXT_NODE&&(k=KoV(g.textContent),k.length&&(g.textContent=
aLA(k)||" ",E=CIJ(E),X4J(E,"text","textContent",k),B=!0));E&&B&&(E.infoIndex=r.nodeInfoList.push(E)-1)};
mZS=function(g,r){r={nodeInfoList:[],stripWhitespace:(r===void 0?!1:r)||g.hasAttribute("strip-whitespace")};VKl(g.content,r);return r};
hCB=function(g){Object.assign(g,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
yKX=function(g,r,E){r.signalCache!=null||(r.signalCache={});var B=r.signalCache[E];if(!B){var w=E.split(".");B=!ZOQ(g,w[0]);if(w.length>1&&B){var O=g.getPathMutationSignal(w);B=function(){var M=e1(g.owner,function(){return g.getWithPath([w[0]])}),u,l=(u=O())==null?void 0:u.value;
return{rootWasDefined:M!==void 0,value:l}}}else B=function(){var M=g.getWithPath(w);
return{rootWasDefined:M!==void 0,value:M}};
r.signalCache[E]=B}return B()};
dZQ=function(g,r,E,B,w){r=r.parts.map(function(M,u){if(M.type==="literal"){E.partWasDefined!=null||(E.partWasDefined=[]);var l;(l=E.partWasDefined)[u]||(l[u]=M.value!==void 0);return M.value}var Q;if(M.type==="method"){var z,k=(z=(Q=E.partWasDefined)==null?void 0:Q[u])!=null?z:!1;k||(k=M.signature.args.every(function(A){return A.type==="literal"}));
var H=!1,R=!0;Q=M.signature.args.map(function(A){if(A.type==="literal")return A.value;if(A.type!=="path")throw Error("Lg`"+A.type);var J=yKX(g,E,A.path);A=J.value;J=J.rootWasDefined;H||(H=J);R&&(R=J);return A});
k||(k=w===1?R:H);E.partWasDefined!=null||(E.partWasDefined={});E.partWasDefined[u]=k;if(!k)return;Q=(u=yKX(g,E,M.signature.methodName).value)&&typeof u==="function"?u.apply(B,Q):void 0}else z=yKX(g,E,M.path),Q=z.value,E.partWasDefined!=null||(E.partWasDefined={}),(k=E.partWasDefined)[u]||(k[u]=Q!==void 0||z.rootWasDefined);M.negate&&(Q=!Q);return Q});
if(r.length===1){var O;return((O=E.partWasDefined)==null?0:O[0])?r[0]:v1A}return r.join("")};
T$S=function(g){return typeof g==="object"&&!!g&&"notifyPath"in g&&"canNotifyPath"in g};
gpD=function(g){return typeof g==="object"&&!!g&&"notifyPath"in g};
rIQ=function(g){return"polymerController"in g};
EpP=function(g,r){r=""+Wi(r)[0];if(T$S(g))return g.canNotifyPath(r);if(rIQ(g)&&T$S(g.polymerController))return g.polymerController.canNotifyPath(r);if(gpD(g)){var E;return!((E=g.properties)==null||!E[r])}if(rIQ(g)&&gpD(g.polymerController)){var B;return!((B=g.polymerController.properties)==null||!B[r])}return!1};
BRo=function(g,r,E){T$S(g)||gpD(g)?g.notifyPath(r,E):rIQ(g)&&(T$S(g.polymerController)||gpD(g.polymerController))&&g.polymerController.notifyPath(r,E)};
Sdl=function(g,r,E){if(E!==v1A){g.kind==="attribute"||g.target!=="textContent"&&(g.target!=="value"||r.localName!=="input"&&r.localName!=="textarea")||(E=E===void 0?"":E);var B,w=(B=wVJ.Polymer)==null?void 0:B.sanitizeDOMValue;w&&(E=w(E,g.target,g.kind,r));if(g.kind==="attribute"){g=g.target;if(g==="class"||g==="name"||g==="slot")r=(0,_.q1)(r);CR(r,E,g)}else if(g=g.target,E!==r[g]||typeof E==="object")r.loggingStatus&&(r.loggingStatus.isDeclarativeExternal=!0,sN(r.localName,g,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
r[g]=E,r.loggingStatus&&(r.loggingStatus.isDeclarativeExternal=!1)}};
OHD=function(g,r,E,B){var w=r.parts[0];if(r.parts.length!==1||w.type!=="path"||!EpP(E,r.target))return!1;var O=_.U(w.path.split(".")),M=O.next().value,u=Zq(O);if(ZOQ(g,M))return!1;B.signalCache!=null||(B.signalCache={});O=B.signalCache[w.path];var l;O=(l=O)==null?void 0:l().value;if((O==null?void 0:O.path)!==void 0){B=Wi(O.path);var Q=Wi(w.path);B=[r.target].concat(_.jW(B.slice(Q.length-1)));BRo(E,B,w.negate?!O.value:O.value);return!0}var z=KR(g,M);var k=z.getChangeRecordSignal(u),H=!1;O=function(){if(!H){var A=
e1(g.owner,function(){return z.getWithPath([])});
H||(H=A!==void 0)}return{value:k(),rootWasDefined:H}};
B.signalCache[w.path]=O;B.partWasDefined!=null||(B.partWasDefined={});O=O();(Q=B.partWasDefined)[0]||(Q[0]=O.rootWasDefined);var R=e1(g.owner,function(){return z.getWithPath(u)});
B.partWasDefined[0]&&e1(g.owner,function(){return void Sdl(r,E,w.negate?!R:R)});
return!0};
Uvc=function(g,r,E,B,w,O){if(!OHD(g,r,E,B)){var M=dZQ(g,r,B,w,O);e1(g.owner,function(){return void Sdl(r,E,M)})}};
MOo=function(g,r,E,B,w,O){E=_.U(E);for(var M=E.next(),u={};!M.done;u={infoIndex:void 0},M=E.next()){M=M.value;var l=M.bindings;u.infoIndex=M.infoIndex;M=M.parentInfo;if(l){l=_.U(l);for(var Q=l.next(),z={};!Q.done;z={b$jscomp$252:void 0,bindingCtx$jscomp$4:void 0},Q=l.next()){z.b$jscomp$252=Q.value;if(u.infoIndex===void 0)throw Error("Mg");z.bindingCtx$jscomp$4={};g.effect(function(k,H){return function(){w&&!w()||Uvc(g,k.b$jscomp$252,r[H.infoIndex],k.bindingCtx$jscomp$4,B,O)}}(z,u))}}M&&MOo(g,r,[M],
B,w,O)}};
qdX=function(g,r){g=(r.parentInfo?qdX(g,r.parentInfo):g).firstChild;for(var E=0;g;g=g.nextSibling)if(r.parentIndex===E++)return g;throw Error("Ng");};
ljY=function(g,r,E,B){g=document.importNode(g.content,!0);g.__noInsertionPoint=!(B==null?0:B.hasInsertionPoint);for(var w=Array(r.length),O={},M=0;M<r.length;M++){var u=r[M],l=qdX(g,u);w[M]=l;u.id&&(O[u.id]=l);if(u.templateInfo){var Q=l.parentElement;Q&&(Q.templateInfo=u.templateInfo,Q.parentSignalProxy=E,Q.eventListenerHost=B.eventListenerHost,Q.stampingEnabled=B.enabledSignal)}Q=void 0;if((Q=u.events)==null?0:Q.length)for(Q=0;Q<u.events.length;Q++){var z=u.events[Q];ueX(B.eventListenerHost,l,z.name,
z.value,B.getModel)}}MOo(E,w,r,B.thisCtx,B.enabledSignal,B.methodInvocationRequirement);return{root:g,nodes:w,nodesById:O}};
opV=function(g,r){g=g();var E;(E=Dvt.ShadyCSS)==null||E.prepareTemplate(g,r);r=mZS(g);return{template:g,nodeInfoList:r.nodeInfoList,hasInsertionPoint:r.hasInsertionPoint}};
z5c=function(){G8Y=!1;for(var g=xk.length,r=0;r<g;r++){var E=xk[r];if(E)try{E()}catch(B){Promise.resolve().then(function(){throw B;})}}xk.splice(0,g);
QRP+=g};
YdD=function(g){G8Y||(G8Y=!0,k8o.textContent=(HHS++).toString());xk.push(g);return pVP++};
_.N1=function(g,r,E){ab++;g=r?new R5l(ab,g,r,E):new npc(ab,g);X7.set(ab,g);return ab};
sRV=function(g){(g=X7.get(g))&&g.cancel()};
$vQ=function(g,r){g=fjY.get(g);return g?(r=g.get(r))?r:null:null};
_.Ib=function(g,r,E,B){var w=$vQ(g,r);if(!w){w=new jRJ;var O=fjY.get(g);O||(O=new Map,fjY.set(g,O));O.set(r,w)}g=E.bind(g);w.run(g,B,void 0)};
_.AIP=function(g,r){var E;(E=$vQ(g,r))==null||E.cancel()};
bHt=function(g){var r;(r=$vQ(g,"doRender"))==null||r.flush()};
mG=function(g){var r;return(r=g.hostElement)!=null?r:g};
JIS=function(g){var r=g.indexOf(".");return r===-1?g:g.slice(0,r)};
P9V=function(g,r,E,B,w,O){O=(w=(B=O?JIS(r):r)?r:null)?g.get(w):g.__data[r];w&&O===void 0&&(O=E[r]);_.Sh(g.hostElement,BjV(B)+"-changed",{value:O,queueProperty:!0,path:w!=null?w:void 0},{bubbles:!1,composed:!1})};
tOJ=function(g,r){g.__isReflecting=!0;eCV(g.hostElement,r,g.__data[r]);g.__isReflecting=!1};
FbS=function(g){if(g._onIronRequestResizeNotifications){var r=g._onIronRequestResizeNotifications.bind(g);g._onIronRequestResizeNotifications=function(E){_.yP(E)!==g.hostElement&&r(E)}}g._ariaActiveAttributeChanged&&(g._ariaActiveAttributeChanged=g._ariaActiveAttributeChanged.bind(g.hostElement));
g._activeChanged&&(g._activeChanged=function(E){g.toggles?CR(g.hostElement,E?"true":"false",g.ariaActiveAttribute):g.hostElement.removeAttribute(g.ariaActiveAttribute);g._changedButtonState()});
g._asyncClick&&(g._asyncClick=function(){_.N1(function(){g.hostElement.click()},1)});
!g.keyEventTarget||g.keyEventTarget instanceof EventTarget||(g.keyEventTarget=mG(g.keyEventTarget));g._disabledChanged&&(g._disabledChanged=g._disabledChanged.bind(g.hostElement));g._observeItems&&(g._observeItems=function(E){var B=mG(E);return _.nM(B).observeNodes(function(w){g._updateItems();g._updateSelected();_.Sh(B,"iron-items-changed",w,{bubbles:!1,cancelable:!1})})});
g._updateItems&&g._updateItems===_.ci._updateItems&&(g._updateItems=function(){var E=_.nM(g.hostElement).queryDistributedElements(g.selectable||"*");E=Array.prototype.filter.call(E,g._bindFilterItem);g._setItems(E)});
g._computeKeyboardClass&&(g._computeKeyboardClass=function(E){_.UN(g.hostElement,"keyboard-focus",E)});
g.ensureRipple&&(g.ensureRipple=function(E){if(g.hasRipple&&!g.hasRipple()){if(!g._createRipple)return;g._ripple=g._createRipple();g._ripple.noink=g.noink;var B=g._rippleContainer||g.hostElement;B&&_.S3(B).appendChild(g._ripple)}var w;if(E&&((w=g._ripple)==null?0:w.uiDownAction)){B=_.S3(g._rippleContainer||g.hostElement);var O;w=(O=E.composedPath())==null?void 0:O[0];B.contains(w)&&g._ripple.uiDownAction(E)}});
g._updateMultiselectable&&(g._updateMultiselectable=function(E){E?g.hostElement.setAttribute("aria-multiselectable","true"):g.hostElement.removeAttribute("aria-multiselectable")})};
e5X=function(g,r,E){E=_.U(E);for(var B=E.next();!B.done;B=E.next())UZX(B.value.constructor,g);UZX(r.constructor,g)};
C9B=function(g,r){g=_.U(g);for(var E=g.next();!E.done;E=g.next())if(E=E.value,E.type==="signal"){var B=E.propertyKey;if(r.hasOwnProperty(B)&&r[B]!=null&&E.attributeType===Object){a:{B=r[B].constructor;for(var w=_.U(WbP),O=w.next();!O.done;O=w.next())if(O=O.value,B===O){B=O;break a}B=Object}E.attributeType=B}}};
KbD=function(){};
xvV=function(g){var r;return(r=g.hostElement)!=null?r:g};
ajP=function(){throw Error("Rg");};
XVQ=function(g,r){g.constructor.prototype.useSignals=!0;var E=new g.constructor;e5X(E,g,r.behaviors);C9B(r.reactiveSchemas,E);E={};for(var B=_.U(r.reactiveSchemas),w=B.next();!w.done;w=B.next())w=w.value,w.type==="signal"&&(E[w.propertyKey]=w.attributeType);var O={copyPropertiesToProto:ajP,didRegister:!1,typesForSignals:E},M=["disable-upgrade"].concat(_.jW(r.observedAttributes)),u=function(l){ia.call(this,g,r,O,l)};
_.f(u,ia);_.hx.Object.defineProperties(u,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return M}}});
O.copyPropertiesToProto=function(){for(var l=0;l<r.behaviors.length;l++)qVJ(r.behaviors[l],u.prototype);qVJ(g,u.prototype)};
r.legacyOptimizations||O.copyPropertiesToProto();u.prototype.is=g.is;return u};
NRQ=function(g,r){if(Object.getPrototypeOf(r.prototype).constructor!==_.a)throw Error("Sg");r.prototype.is=g.is;return XVQ(r.prototype,g)};
Ijt=function(g){return g.type==="compute"||g.type==="computeWithMethod"};
mvl=function(g){for(var r=g.reactiveSchemas.filter(Ijt),E=new Map,B=new Map,w=new Map,O=_.U(r),M=O.next();!M.done;M=O.next())M=M.value,E.set(M.propertyKey,M),B.set(M.propertyKey,[]),w.set(M.propertyKey,0);O=0;r=_.U(r);for(M=r.next();!M.done;M=r.next()){M=M.value;for(var u=_.U(M.type==="computeWithMethod"?M.method.args:M.args),l=u.next();!l.done;l=u.next())l=l.value,l.type!=="literal"&&(l=l.path.split(".")[0],B.has(l)&&(B.get(l).push(M.propertyKey),w.set(M.propertyKey,w.get(M.propertyKey)+1),O++))}M=
[].concat(_.jW(B.keys())).filter(function(Q){return w.get(Q)===0});
for(r=[];M.length;)for(u=M.shift(),r.push(E.get(u)),u=_.U(B.get(u)),l=u.next();!l.done;l=u.next())l=l.value,w.set(l,w.get(l)-1),O--,w.get(l)===0&&M.push(l);E=g.reactiveSchemas.filter(function(Q){return!Ijt(Q)});
g.reactiveSchemas=[].concat(_.jW(E),_.jW(r))};
cIl=function(g,r){if(r.properties)for(var E=_.U(Object.entries(r.properties)),B=E.next();!B.done;B=E.next()){var w=_.U(B.value);B=w.next().value;w=w.next().value;g.properties[B]=typeof w==="function"?{type:w}:w}r.observers&&g.observers.push.apply(g.observers,_.jW(r.observers));r.disabledPolySiReactions&&g.disabledPolySiReactions.push.apply(g.disabledPolySiReactions,_.jW(r.disabledPolySiReactions))};
iHt=function(g,r){for(var E=r.length-1;E>=0;E--){var B=r[E];Array.isArray(B)?iHt(g,B):g.indexOf(B)<0&&g.unshift(B)}};
LbD=function(g,r){g.reactiveSchemas=g.reactiveSchemas.filter(function(E){return E.type==="observe"&&r.includes(E.method.methodName)||Ijt(E)&&r.includes(E.propertyKey)?!1:!0})};
h5l=function(g,r){var E=r.prototype,B,w,O={is:g.is,reactiveSchemas:[],observedAttributes:[],behaviors:[rKl.InjectBehavior,tC.prototype],disableElementRegistration:g.disableElementRegistration,provide:(B=g.providers)!=null?B:[],reactivityMode:g.reactivityMode,signalProperties:(w=E.signalProperties)!=null?w:[]};"template"in r?O.templateGetter=function(){return r.template}:g.getTemplate&&(O.templateGetter=g.getTemplate);
E.behaviors&&iHt(O.behaviors,E.behaviors);VOl(O,r);return O};
VOl=function(g,r){for(var E=r.prototype,B={properties:{},observers:[],disabledPolySiReactions:[]},w=_.U(g.behaviors),O=w.next();!O.done;O=w.next())cIl(B,O.value);cIl(B,E);if(g.signalProperties)for(E=_.U(g.signalProperties),w=E.next();!w.done;w=E.next())delete B.properties[w.value];E=_.U(Object.entries(B.properties));for(w=E.next();!w.done;w=E.next()){O=_.U(w.value);w=O.next().value;O=O.next().value;var M=void 0;if((M=g.signalProperties)==null||!M.includes(w)){M=void 0;var u=g,l=O.type;if(!l)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{l=Reflect.getMetadata("design:type",r,w);for(var Q=_.U(ZHS),z=Q.next();!z.done;z=Q.next())if(z=z.value,l===z){l=z;break a}l=Object}else l=String;O.computed||O.selector||(u.reactiveSchemas.push({type:"signal",propertyKey:w,value:O.value,attributeType:l,readOnly:O.readOnly}),u.observedAttributes.push(_.Gr(w)));O.reflectToAttribute&&u.reactiveSchemas.push({type:"reflect",propertyKey:w});if(O.computed){l=FoB(O.computed);if(!l)throw Error("Tg");u.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:w,method:l,value:O.value})}O.observer&&u.reactiveSchemas.push({type:"observe",method:{methodName:O.observer,args:[{type:"path",path:w}]}});O.notify&&u.reactiveSchemas.push({type:"notify",propertyKey:w});O.selector&&u.reactiveSchemas.push({type:"redux",propertyKey:w,selector:O.selector,selectorArgs:(M=O.selectorArgs)!=null?M:[]})}}yIl&&mvl(g);r=_.U(B.observers);for(w=r.next();!w.done;w=r.next())E=g,w=w.value,(O=FoB(w))?E.reactiveSchemas.push({type:"observe",method:O}):console.log('Warning: unable to parse observe declaration: "'+
w+'"');LbD(g,B.disabledPolySiReactions)};
vpl=function(g,r){for(var E=0;E<r.length;E++){var B=r[E],w=void 0;(w=B).showHideApi!=null||(w.showHideApi={});w=void 0;!!g!==!((w=B.showHideApi)==null||!w.hideTemplateChildren)&&(B.nodeType===Node.TEXT_NODE?g?(B.showHideApi.polymerTextContent=B.textContent,B.textContent=""):(w=void 0,B.textContent=(w=B.showHideApi.polymerTextContent)!=null?w:null):B instanceof Element&&B.localName==="slot"?g?(B.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.q1)((0,_.q1)(B).parentNode).replaceChild(B.showHideApi.polymerReplaced,
B)):(w=B.showHideApi.polymerReplaced)&&(0,_.q1)((0,_.q1)(w).parentNode).replaceChild(B,w):B instanceof HTMLElement&&B.style&&(g?(B.showHideApi.polymerDisplay=B.style.display,B.style.display="none"):B.style.display=B.showHideApi.polymerDisplay));B.showHideApi.hideTemplateChildren=g;B.showHideChildren&&B.showHideChildren(g)}};
TRL=function(){if(!dvo){var g=document.createElement("style");g.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(g);dvo=!0}};
LR=function(){return _.Y("disable_hidden_dom_if_using_stamper")};
gVY=function(g,r){var E=_.V7().getState();return r?g.apply(null,[E].concat(_.jW(r))):g(E)};
B4V=function(){if(r3J)return r3J;var g=_.U(_.Dk(0,void 0,"Nl6eIe")),r=g.next().value;g.next();var E=g.next().value;_.V7().subscribe(function(){EVS(E)});
return r3J=r};
EVS=function(g){_.Y("delay_redux_signal_update_killswitch")?g(function(r){return r+1}):wcX||(wcX=!0,Promise.resolve().then(function(){g(function(r){return r+1});
wcX=!1}))};
_.V7=function(){return SuB.getAppStore()};
OqB=function(g,r){return SuB.getSelectFn()(g,r)};
_.hC=function(g){SuB.getDispatchFn()(g)};
U7A=function(g,r){var E={},B;for(B in g)E[B]=r(g[B],B);return E};
_.Zo=function(g,r){return function(){var E;return(E=_.t5(g))!=null?E:r}};
_.y7=function(g,r){var E=Object.assign({},g),B;for(B in r)r.hasOwnProperty(B)&&(E[B]=_.Zo(g[B],r[B]));return E};
MRL=function(g,r,E){g instanceof Element&&(E.debugName||(E.debugName="<"+g.tagName.toLowerCase()+(g.tagName.includes("-")?">":"."+g.className+">")),_.Y("ytwiz_enable_debug_component_props")&&(g.debugProps||(g.debugProps=U7A(r,function(B){return function(){return B()}}))))};
qul=function(g){var r;if(!(r=vi.traceAllComponents)){var E;r=(E=y_)==null?void 0:E.activeSpan;r=(r==null?void 0:r.name)!=="ytComponent"}return r?CvB("ytComponent",{},g):g()};
_.dG=function(g,r){var E=function(B){return qul(function(w){var O=ubt={};var M;if(((M=E)==null?0:M.idomCompat)&&B.renderedFromIdom){var u;M=typeof E.idomCompat==="object"?(u=E)==null?void 0:u.idomCompat.callbacks:{};M=_.U(ldS(B,M,E.debugName));u=M.next().value;M.next();M=M.next().value;var l=D7o(g,u);O.privateValue=l;ubt=void 0;MRL(l,u,E);O={debugName:E.debugName};w&&O&&Object.assign(w.attributes,O);w=hIB(l);w=Array.isArray(w)?w[0]:w;w[lu]||(w[lu]={});w[lu].updateSignalsFromIdomProps=M;oVc(u,l);return l}M=
U7A(B,GQS);u=D7o(g,M);O.privateValue=u;ubt=void 0;MRL(u,M,E);O={debugName:E.debugName};w&&O&&Object.assign(w.attributes,O);oVc(M,u);return u})};
E.debugName=r===void 0?"":r;return E};
D7o=function(g,r){g=g(r);return Qg(g)};
Q0A=function(g,r){g[r]||(g=new _.Rj("IDOM interop setter undefined. Key:",r),_.tn(g))};
GQS=function(g,r){return r==="children"||r==="ref"||typeof g==="function"||g===void 0?g:function(){return _.t5(g)}};
ldS=function(g,r,E){var B={},w={},O={},M={},u;for(u in g){M={key$jscomp$899:M.key$jscomp$899};M.key$jscomp$899=u;var l=g[M.key$jscomp$899];if(M.key$jscomp$899==="children"||M.key$jscomp$899==="ref")B[M.key$jscomp$899]=l;else if(typeof l==="function")M.key$jscomp$899 in r||l.length>0?(O[M.key$jscomp$899]=l,B[M.key$jscomp$899]=function(z){return function(){return O[z.key$jscomp$899].apply(O,_.jW(_.fI.apply(0,arguments)))}}(M)):B[M.key$jscomp$899]=l;
else if(!(g[M.key$jscomp$899]===void 0&&M.key$jscomp$899 in r)){var Q=_.U(_.Dk(g[M.key$jscomp$899],{debugName:"__cwis:"+E+":"+M.key$jscomp$899},"orv71b"));l=Q.next().value;Q=Q.next().value;B[M.key$jscomp$899]=l;w[M.key$jscomp$899]=Q}}return[B,w,function(z){var k={},H;for(H in z)k={key$jscomp$900:k.key$jscomp$900,val$jscomp$116:void 0},k.key$jscomp$900=H,k.val$jscomp$116=z[k.key$jscomp$900],k.key$jscomp$900!=="children"&&k.key$jscomp$900!=="ref"&&(typeof k.val$jscomp$116==="function"?k.key$jscomp$900 in
r?O[k.key$jscomp$900]=k.val$jscomp$116:k.val$jscomp$116.length>0&&(O[k.key$jscomp$900]=k.val$jscomp$116,_.el(new _.Rj("Callback detected that was not set in the idomCompat callbacks map. Key:",k.key$jscomp$900))):k.key$jscomp$900 in r&&k.val$jscomp$116===void 0||(Q0A(w,k.key$jscomp$900),Hp(function(R){return function(){w[R.key$jscomp$900](R.val$jscomp$116)}}(k))))}]};
HqY=function(g,r,E){var B=GGB(g.prototype,zbl,g.prototype.behaviors);B.prototype.is=r;B.prototype.localName=r;E&&kQD(B,E);return function(w){w&&(B.prototype.hostElement=w);var O=new B;O.root=O;O.hostElement=w;return O}};
kQD=function(g,r){var E;Object.defineProperty(g.prototype,"_template",{get:function(){E===void 0&&(E=r());return E},
set:function(B){E=B},
configurable:!0,enumerable:!0})};
s0l=function(g,r,E,B){function w(){if(!R){for(var A=new Set,J=_.U(z),e=J.next();!e.done;e=J.next()){e=e.value;for(var C=_.U(Object.getOwnPropertyNames(e)),X=C.next();!X.done;X=C.next()){X=X.value;var Z=void 0,c=(Z=Object.getOwnPropertyDescriptor(e,X))==null?void 0:Z.value;c&&c instanceof Function&&!Tb(X)&&(!u[X]||_.Y("polymer_forward_method_killswitch"))&&A.add(X)}}J=_.U(Object.entries(Object.getOwnPropertyDescriptors(g.prototype)));for(e=J.next();!e.done;e=J.next())C=_.U(e.value),e=C.next().value,
C=C.next().value,C.value instanceof Function&&!Tb(e)&&A.add(e);R=A}return R}
pcl(g,r,B==null?void 0:B.providers);QxP(g.prototype,g,!0);var O=HqY(g,r,E),M,u=(M=g.prototype.properties)!=null?M:{},l,Q,z=(Q=(l=g.prototype.behaviors)==null?void 0:l.flat(Infinity))!=null?Q:[];E=_.U(z);for(M=E.next();!M.done;M=E.next())u=Object.assign({},M.value.properties,u);var k=[].concat(_.jW(YuY),_.jW(Object.keys(u).map(function(A){return _.Gr(A)}))),H=!1,R;
return{ctor:function(A,J){var e=O(A),C,X;A=[].concat(_.jW((C=B==null?void 0:B.allowedProps)!=null?C:[]),_.jW((X=B==null?void 0:B.allowedPropsFromBehaviors)!=null?X:[]));e.allowedProps=A.length>0?A:void 0;C={};X=_.U(k);for(A=X.next();!A.done;A=X.next())A=A.value,C[A]=_.Qk(A);e.__dataAttributes=C;var Z=e.ready.bind(e);e.ready=function(){J.beforeReady();Z();if(Rb(r)&&!H){var c=e.__templateInfo;if(c==null?0:c.hostProps){c=_.U(Object.keys(c.hostProps));for(var h=c.next();!h.done;h=c.next())sN(r,h.value,
"PROPERTY_ACCESS_GET_INTERNAL")}H=!0}};
e._overrideLegacyUndefined=!0;return e},
props:u,observedAttributes:k,getInitialMethods:w,getPropsToForwardBeforeRegister:function(){for(var A=[],J=new Set,e=_.U(Object.keys(u)),C=e.next();!C.done;C=e.next())C=C.value,A.push([C,u[C].readOnly]),J.add(C);e=w();C=_.U(Object.keys(Object.getOwnPropertyDescriptors(g.prototype)));for(var X=C.next();!X.done;X=C.next())X=X.value,!RbB(X)||e.has(X)||J.has(X)||(A.push([X,!1]),J.add(X));J=_.U(nVl);for(e=J.next();!e.done;e=J.next())A.push([e.value,!0]);return A},
getPropsToForwardBeforeReady:function(A){for(var J=[],e=_.U(Object.entries(A)),C=e.next();!C.done;C=e.next()){var X=_.U(C.value);C=X.next().value;X=X.next().value;if(RbB(C)&&!(X instanceof Function)&&(J.push([C,!1]),Rb(r))){var Z=X=void 0;(Z=(X=A)._createPropertyAccessor)==null||Z.call(X,C)}}return J},
shouldForwardProp:RbB,shouldLog:Rb}};
pcl=function(g,r,E){E1l(g,E);g.prototype.behaviors.unshift(fdS);if(mRl()){if(Rb(r)){var B;(B=g.prototype).behaviors!=null||(B.behaviors=[]);g.prototype.behaviors.unshift(V6l())}hnV(g)}_.P(tC.prototype)(g.prototype,"__templateHelpers")};
Tb=function(g){return $7o.has(g)||g.startsWith("__compute__")};
RbB=function(g){return!Tb(g)&&!g.startsWith("_")&&!g.endsWith("_")};
Phl=function(g,r){function E(){var H=l();H=_.U(H);for(var R=H.next();!R.done;R=H.next()){var A=_.U(R.value);R=A.next().value;A=A.next().value;j0B(k.prototype,R,A)}B=!0}
var B=!1,w=g.ctor,O=g.getInitialMethods,M=g.observedAttributes,u=g.getPropsToForwardBeforeReady,l=g.getPropsToForwardBeforeRegister,Q=g.shouldForwardProp,z=g.shouldLog,k=function(){var H=HTMLElement.call(this)||this;H.didForwardDynamicProps=!1;H.loggingStatus={};B||E();H.inst=w(H,{beforeReady:function(){H.didForwardDynamicProps||(H.forwardDynamicProps(),H.didForwardDynamicProps=!0)}});
H.controllerProxy=ijX(H.inst,r);H.forwardMethods();return H};
_.f(k,HTMLElement);k.prototype.forwardMethods=function(){for(var H=this,R=_.U(this.inst.getExtraMethodsToForward()),A=R.next(),J={};!A.done;J={method$jscomp$60:void 0},A=R.next()){var e=_.U(A.value);A=e.next().value;e=e.next().value;J.method$jscomp$60=e;this[A]=function(C){return function(){return C.method$jscomp$60.call.apply(C.method$jscomp$60,[H.inst].concat(_.jW(_.fI.apply(0,arguments))))}}(J)}R=_.U(O());
for(J=R.next();!J.done;J=R.next())J=J.value,Q(J)&&A3l(this,J),z(r)&&!Tb(J)&&bqV(this.inst,J)};
k.prototype.forwardDynamicProps=function(){var H=u(this.inst);H=_.U(H);for(var R=H.next();!R.done;R=H.next()){var A=_.U(R.value);R=A.next().value;A=A.next().value;j0B(this,R,A);z(r)&&!Tb(R)&&J3t(this.inst,R)}};
k.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
k.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
k.prototype.attributeChangedCallback=function(H,R,A){this.inst.attributeChangedCallbackWrapper(H,R,A)};
_.hx.Object.defineProperties(k.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return r}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.hx.Object.defineProperties(k,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return M}}});
customElements.define(r,k)};
j0B=function(g,r,E){g.hasOwnProperty(r)||Object.defineProperty(g,r,{get:function(){var B,w=((B=g.is)!=null?B:g.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||sN(w,r,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,B=this.polymerController[r],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,B},
set:function(B){if(!E){var w,O=((w=g.is)!=null?w:g.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||sN(O,r,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=r,this.loggingStatus.bypassProxyController=!0,this.polymerController[r]!==B&&(w={},this.polymerController.setProperties((w[r]=B,w)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
A3l=function(g,r,E){var B=g.polymerController;g[r]=function(){var w=_.fI.apply(0,arguments);g.loggingStatus.currentExternalCall=r;g.loggingStatus.bypassProxyController=!0;var O,M=((O=g.is)!=null?O:g.tagName).toLowerCase();sN(M,r,"PROPERTY_ACCESS_CALL_EXTERNAL");var u;O=(u=E!=null?E:B[r])==null?void 0:u.call.apply(u,[B].concat(_.jW(w)));g.loggingStatus.currentExternalCall=void 0;g.loggingStatus.bypassProxyController=!1;return O}};
bqV=function(g,r){var E=g.hostElement,B=g[r];g[r]=function(){var w=_.fI.apply(0,arguments);if(E.loggingStatus.currentExternalCall!==r){var O,M=((O=E.is)!=null?O:E.tagName).toLowerCase();sN(M,r,"PROPERTY_ACCESS_CALL_INTERNAL")}return B==null?void 0:B.apply(g,w)}};
J3t=function(g,r){var E=Object.getOwnPropertyDescriptor(g,r);E&&!E.get&&Object.defineProperty(g,r,{get:function(){LLc(g.hostElement,r);return E.value},
set:function(B){fR(g.hostElement,r);E.value=B}})};
tRS=function(g){return _.Y("poly_si_dom_repeat_detached_fix_killswitch")||g.tagName!=="PS-DOM-REPEAT"?g.tagName==="DOM-REPEAT":!0};
ebl=function(g,r){var E=FIQ(g);g instanceof Element&&E.unshift(g);g=_.U(E.filter(tRS));for(var B=g.next();!B.done;B=g.next()){var w=void 0;B=_.U((w=B.value.__instances)!=null?w:[]);for(w=B.next();!w.done;w=B.next())if(w=w.value,w.root){w=Array.from(w.root.children);w=_.U(w);for(var O=w.next();!O.done;O=w.next())E.push.apply(E,_.jW(ebl(O.value,r)))}}return E.filter(function(M){return M.usePatchedLifecycles&&M.lifecycleIsConnected===r})};
FIQ=function(g){var r=null;g instanceof Element?r=Element.prototype.querySelectorAll:g instanceof DocumentFragment&&(r=DocumentFragment.prototype.querySelectorAll);return r?Array.from(r.call(g,"*")):[]};
gL=function(g){uQ(function(){for(var r=_.U(ebl(g,!1)),E=r.next();!E.done;E=r.next()){E=E.value;E.lifecycleIsConnected=!0;try{var B=void 0,w=void 0,O=void 0,M=void 0;(B=(M=E.polymerController)!=null?M:E)==null||(O=(w=B).connectedCallback)==null||O.call(w)}catch(u){_.tn(u)}}})};
rL=function(g){uQ(function(){for(var r=_.U(ebl(g,!0)),E=r.next();!E.done;E=r.next()){E=E.value;E.lifecycleIsConnected=!1;try{var B=void 0,w=void 0,O=void 0,M=void 0;(B=(M=E.polymerController)!=null?M:E)==null||(O=(w=B).disconnectedCallback)==null||O.call(w)}catch(u){_.tn(u)}}})};
N4Y=function(){if(!WIP){WIP=!0;var g=[Node];E2&&g.push(E2.Wrapper);var r=Node.prototype.insertBefore,E=Node.prototype.removeChild;g=_.U(g);for(var B=g.next(),w={};!B.done;w={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},B=g.next())B=B.value,w.nativeInsertBefore=B.prototype.insertBefore,B.prototype.insertBefore=function(M){return function(u,l){if(u instanceof DocumentFragment){var Q=Array.from(u.children);u=M.nativeInsertBefore.call(this,u,l);
if(this.isConnected&&M.nativeInsertBefore===r)for(l=_.U(Q),Q=l.next();!Q.done;Q=l.next())gL(Q.value);return u}Q=u instanceof Element&&u.isConnected;l=M.nativeInsertBefore.call(this,u,l);Q&&rL(u);this.isConnected&&gL(u);return l}}(w),w.nativeAppendChild=B.prototype.appendChild,B.prototype.appendChild=function(M){return function(u){if(u instanceof DocumentFragment){var l=Array.from(u.children);
u=M.nativeAppendChild.call(this,u);if(this.isConnected){l=_.U(l);for(var Q=l.next();!Q.done;Q=l.next())gL(Q.value)}return u}l=u instanceof Element&&u.isConnected;Q=M.nativeAppendChild.call(this,u);l&&rL(u);this.isConnected&&gL(u);return Q}}(w),w.nativeRemoveChild=B.prototype.removeChild,B.prototype.removeChild=function(M){return function(u){var l=u instanceof Element&&u.isConnected,Q=M.nativeRemoveChild.call(this,u);
l&&E===M.nativeRemoveChild&&rL(u);return Q}}(w),w.nativeReplaceChild=B.prototype.replaceChild,B.prototype.replaceChild=function(M){return function(u,l){if(u instanceof DocumentFragment){var Q=Array.from(u.children);
u=M.nativeReplaceChild.call(this,u,l);if(this.isConnected)for(rL(l),l=_.U(Q),Q=l.next();!Q.done;Q=l.next())gL(Q.value);return u}Q=u instanceof Element&&u.isConnected;var z=this.isConnected,k=M.nativeReplaceChild.call(this,u,l);z&&rL(l);Q&&rL(u);z&&gL(u);return k}}(w);
g=[Element];E2&&g.push(E2.Wrapper);g=_.U(g);B=g.next();for(w={};!B.done;w={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},B=g.next())B=B.value,B.prototype.before=ChQ(B.prototype.before),B.prototype.after=ChQ(B.prototype.after),w.nativeReplaceWith=B.prototype.replaceWith,B.prototype.replaceWith=function(M){return function(){var u=_.fI.apply(0,arguments),l=_.U(KIQ(u)),Q=l.next().value,
z=l.next().value;l=this.isConnected;M.nativeReplaceWith.apply(this,u);u=_.U(z);for(z=u.next();!z.done;z=u.next())rL(z.value);if(l)for(rL(this),Q=_.U(Q),l=Q.next();!l.done;l=Q.next())l=l.value,l instanceof Element&&gL(l)}}(w),w.nativeRemove=B.prototype.remove,B.prototype.remove=function(M){return function(){var u=this.isConnected;
M.nativeRemove.call(this);u&&rL(this)}}(w),w.nativeInsertAdjacentElement=B.prototype.insertAdjacentElement,B.prototype.insertAdjacentElement=function(M){return function(u,l){var Q=l.isConnected;
u=M.nativeInsertAdjacentElement.call(this,u,l);Q&&rL(l);u.isConnected&&gL(u);return u}}(w),w.nativeSetAttribute=B.prototype.setAttribute,B.prototype.setAttribute=function(M){return function(u,l){var Q=x7L(this);
if(!Q.usePatchedLifecycles)return M.nativeSetAttribute.call(this,u,l);var z=this.getAttribute(u);M.nativeSetAttribute.call(this,u,l);l=this.getAttribute(u);adQ(Q,u,z,l)}}(w),w.nativeRemoveAttribute=B.prototype.removeAttribute,B.prototype.removeAttribute=function(M){return function(u){var l=x7L(this);
if(!l.usePatchedLifecycles)return M.nativeRemoveAttribute.call(this,u);var Q=this.getAttribute(u);M.nativeRemoveAttribute.call(this,u);Q!==null&&adQ(l,u,Q,null)}}(w),w.nativeToggleAttribute=B.prototype.toggleAttribute,B.prototype.toggleAttribute=function(M){return function(u,l){var Q=x7L(this);
if(!this.usePatchedLifecycles)return M.nativeToggleAttribute.call(this,u,l);var z=this.getAttribute(u),k=z!==null;l=M.nativeToggleAttribute.call(this,u,l);l!==k&&adQ(Q,u,z,l?"":null);return l}}(w);
g=[Document,DocumentFragment,Element,ShadowRoot];E2&&g.push(E2.Wrapper);g=_.U(g);for(w=g.next();!w.done;w=g.next())w=w.value,w.prototype.prepend=ChQ(w.prototype.prepend),w.prototype.append=ChQ(w.prototype.append);(E2==null?void 0:E2.noPatch)===!0&&XcP();document.readyState==="complete"?gL(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&gL(document.body)});
var O=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");O&&O.get&&O.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:O.enumerable,configurable:!0,get:O.get,set:function(M){M||rL(this);O.set.call(this,M);return M}})}};
ChQ=function(g){return function(){var r=_.fI.apply(0,arguments),E=_.U(KIQ(r)),B=E.next().value;E=E.next().value;g.apply(this,r);r=_.U(E);for(E=r.next();!E.done;E=r.next())rL(E.value);if(this.isConnected)for(B=_.U(B),r=B.next();!r.done;r=B.next())r=r.value,r instanceof Element&&gL(r)}};
XcP=function(){for(var g=_.U(Idc),r=g.next();!r.done;r=g.next()){r=r.value.prototype;for(var E=_.U(m7X),B=E.next();!B.done;B=E.next()){B=B.value;var w=Object.getOwnPropertyDescriptor(r,B);w&&Object.defineProperty(r,"__shady_native_"+B,w)}}};
adQ=function(g,r,E,B){var w,O;if((w=g.polymerController)==null?0:(O=w.observedAttributes)==null?0:O.includes(r))if(g=g.polymerController,g.attributeChangedCallbackWrapper)g.attributeChangedCallbackWrapper.call(g,r,E,B);else{var M;(M=g.attributeChangedCallback)==null||M.call(g,r,E,B)}};
KIQ=function(g){var r=[],E=[];g=_.U(g);for(var B=g.next();!B.done;B=g.next())B=B.value,B instanceof Element&&B.isConnected&&E.push(B),B instanceof DocumentFragment?r.push.apply(r,_.jW(Array.from(B.children))):r.push(B);return[r,E]};
x7L=function(g){return!(g instanceof Element)&&g.node instanceof Element?g.node:g};
c3Y=function(g,r){var E=r?["children"].concat(_.jW(r)):["children"];r=[];E=_.U(E);for(var B=E.next();!B.done;B=E.next()){var w=B.value;if(g.hasOwnProperty(w)){B=g[w];B=typeof B==="function"?B():B;B=Qg(Array.isArray(B)?B:[B]).flat();if(w!=="children"){w=BjV(w);for(var O=_.U(B),M=O.next();!M.done;M=O.next())M=M.value,M instanceof Element&&M.setAttribute("slot",w)}r.push(B)}}r.length===0?g=[]:(g=Qg(_.G("div",null,r)),g=Array.from(g.childNodes));return g};
LIX=function(g,r,E){var B={};_.F2(function(){var w={},O;for(O in r)if(r.hasOwnProperty(O)){var M=void 0,u=void 0;if(!(((M=E.slotProps)==null?0:M.includes(O))||O==="children"||((u=E.callbackProps)==null?0:u.includes(O))||O==="ref")&&(M=_.t5(r[O]),B[O]!==M)){B[O]=M;u=void 0;var l=(u=g.hostElement)!=null?u:g;iqL.has(O)&&(l[O]=M);w[O]=M}}Hp(function(){if(g.setProperties)g.setProperties(w);else for(var Q=_.U(Object.entries(w)),z=Q.next();!z.done;z=Q.next()){var k=_.U(z.value);z=k.next().value;k=k.next().value;
g[z]=k}})})};
hbl=function(g,r,E,B){var w=c3Y(E,B.slotProps),O=(0,_.q1)(g);w=_.U(w);for(var M=w.next();!M.done;M=w.next())O.appendChild(M.value);LIX(r,E,B);B=_.U(B.callbackProps||[]);w=B.next();for(O={};!w.done;O={kebabEventName:void 0,eventListener:void 0},w=B.next())M=w=w.value,String(w).substring(0,2)==="on"&&E[M]?(O.kebabEventName=BjV(String(w).substring(2)),O.eventListener=E[M],g.addEventListener(O.kebabEventName,O.eventListener),_.J5(function(z){return function(){g.removeEventListener(z.kebabEventName,z.eventListener)}}(O))):
r[M]=E[M];
if(E.ref){E=_.U(VRl(E.ref));var u=E.next().value,l=E.next().value,Q=r.attached.bind(r);r.attached=function(){u(g);Q()};
_.J5(function(){l()})}};
VRl=function(g){if(typeof g==="function"){var r;return[function(E){r=g(E)},
function(){var E;(E=r)==null||E()}]}if(!g.onRender||!g.onUnmount)throw Error("Xg");
return[g.onRender,g.onUnmount]};
d7B=function(g,r,E,B,w){B=B===void 0?{}:B;var O=ZqA,M=!1;O?(M=!0,ZqA=void 0):(y3l=r,O=document.createElement(r),y3l=void 0);var u=O;u.usePatchedLifecycles=!0;u.lifecycleIsConnected=!1;O.loggingStatus={};var l=vVc(g,r,O,B,w);_.J5(function(){u.lifecycleIsConnected&&(u.lifecycleIsConnected=!1,l.disconnectedCallback())});
M||hbl(O,l,E,B);return O};
vVc=function(g,r,E,B,w){w=w===void 0?s0l:w;T4c[r]!=null||(T4c[r]=w(g,r,B==null?void 0:B.getTemplate,B));var O=T4c[r],M=O.ctor;w=O.getInitialMethods;var u=O.getPropsToForwardBeforeReady;g=O.getPropsToForwardBeforeRegister;B=O.shouldForwardProp;var l=O.observedAttributes,Q=O.shouldLog,z=M(E,{beforeReady:function(){var k=z;k._takeAttributes?k._takeAttributes():k.setPropertiesFromInitialAttributeValues&&k.setPropertiesFromInitialAttributeValues();k=_.U(u(E.polymerController));for(var H=k.next();!H.done;H=
k.next()){var R=_.U(H.value);H=R.next().value;R=R.next().value;j0B(E,H,R);Q(r)&&!Tb(H)&&J3t(E.polymerController,H)}E.polymerController=ijX(z,r)}});
E.polymerController=z;E.polymerController.observedAttributes=l;O=_.U(z.getExtraMethodsToForward());for(M=O.next();!M.done;M=O.next())l=_.U(M.value),M=l.next().value,l=l.next().value,A3l(E,M,l);w=_.U(w());for(O=w.next();!O.done;O=w.next())O=O.value,B(O)&&A3l(E,O),Q(r)&&!Tb(O)&&bqV(z,O);g=_.U(g());for(B=g.next();!B.done;B=g.next())w=_.U(B.value),B=w.next().value,w=w.next().value,j0B(E,B,w);return z};
rTl=function(g,r){return Bw===r?(g.isInert=!0,Bw="",!0):gwV===r?(g.isInert=!0,gwV="",!0):!1};
EwS=function(g){var r=wL;wL=g;return r};
wOJ=function(g){if(S_.has(g))gwV=g;else if(O2.has(g)&&wL&&BdL(wL)===g){var r;(r=wL)._numRenders!=null||(r._numRenders=0);wL._numRenders++;if(wL._numRenders>1)throw Error("Yg");return wL}};
SHo=function(g){S_.has(BdL(g))?gwV=BdL(g):O2.has(BdL(g))&&wL!==g&&(g._isInert=!0)};
BdL=function(g){var r;return(r=g==null?void 0:g.tagName.toLowerCase())!=null?r:""};
OKL=function(g,r){if(g.componentType===fl)throw Error("Zg");O2.add(r);var E=function(){var B=HTMLElement.call(this)||this;B.is=r;if(y3l===r)return B.isInert=!0,B;B.createElement();return B};
_.f(E,HTMLElement);E.prototype.createElement=function(){if(!this.isInert){ZqA=this;var B=_.U(_.kwD(function(){return _.G(g,null)})).next().value;
ZqA=void 0;hCB(this);return B}};
customElements.define(r,E)};
M0Q=function(g,r,E,B,w){g.prototype.is=r;(B==null?0:B.useSink)?UBS(g,r,E,B,w):(E=s0l(g,r,E,B),Phl(E,r));return g};
UBS=function(g,r,E,B,w){N4Y();var O=_.dG(function(M){return d7B(g,r,M,Object.assign({},B,{getTemplate:E}),w)},"a");
O.debugName=r+" (CoW wrapped)";OKL(O,r);return O};
uWl=function(g){return!qHQ.has(g)};
owl=function(g,r,E,B){function w(){if(!k){for(var H=new Set(lVD),R=_.U(O.behaviors),A=R.next();!A.done;A=R.next()){A=A.value;for(var J=_.U(Object.getOwnPropertyNames(A)),e=J.next();!e.done;e=J.next()){e=e.value;var C=void 0,X=(C=Object.getOwnPropertyDescriptor(A,e))==null?void 0:C.value;X&&X instanceof Function&&(!Q[e]||_.Y("polymer_forward_method_killswitch"))&&H.add(e)}}R=_.U(Object.entries(Object.getOwnPropertyDescriptors(g.prototype)));for(A=R.next();!A.done;A=R.next())J=_.U(A.value),A=J.next().value,
J=J.next().value,J.value instanceof Function&&H.add(A);k=H}return k}
var O=h5l({is:r,disableElementRegistration:!1,getTemplate:E,providers:B==null?void 0:B.providers,reactivityMode:B==null?void 0:B.reactivityMode},g);if((B==null?0:B.allowedProps)||(B==null?0:B.allowedPropsFromBehaviors)){var M,u;O.allowedProps=[].concat(_.jW((M=B.allowedProps)!=null?M:[]),_.jW((u=B.allowedPropsFromBehaviors)!=null?u:[]))}var l=NRQ(O,g);r=l.observedAttributes;var Q={};E=_.U(O.reactiveSchemas);for(B=E.next();!B.done;B=E.next())if(B=B.value,B.type==="signal")Q[B.propertyKey]={readOnly:B.readOnly},
B.readOnly&&(Q[QZY(B.propertyKey)]={readOnly:!0});else if(B.type==="compute"||B.type==="computeWithMethod"||B.type==="redux")Q[B.propertyKey]={readOnly:!0};var z=O.reactiveSchemas.length,k;return{ctor:function(H,R){H=new l(H);H.beforeReady=R.beforeReady;return H},
props:Q,observedAttributes:r,getInitialMethods:w,getPropsToForwardBeforeRegister:function(){for(var H=[],R=new Set,A=_.U(DBo),J=A.next();!J.done;J=A.next())J=J.value,H.push([J,J!=="observers"&&J!=="properties"]),R.add(J);A=_.U(Object.keys(Q));for(J=A.next();!J.done;J=A.next())J=J.value,H.push([J,Q[J].readOnly]),R.add(J);A=w();J=_.U(Object.keys(Object.getOwnPropertyDescriptors(g.prototype)));for(var e=J.next();!e.done;e=J.next())e=e.value,!uWl(e)||A.has(e)||R.has(e)||(H.push([e,!1]),R.add(e));H.push(["allowedProps",
!0]);return H},
getPropsToForwardBeforeReady:function(H){var R=[];H=_.U(Object.keys(H));for(var A=H.next();!A.done;A=H.next()){A=A.value;var J=w();uWl(A)&&!J.has(A)&&R.push([A,!1])}H=_.U(O.reactiveSchemas.slice(z));for(A=H.next();!A.done;A=H.next())A=A.value,A.type!=="compute"&&A.type!=="computeWithMethod"&&A.type!=="redux"&&A.type!=="signal"||R.push([A.propertyKey,A.type==="signal"?A.readOnly:!0]);return R},
shouldForwardProp:uWl,shouldLog:Rb}};
_.I=function(g,r,E,B){var w,O,M=(O=(w=B)==null?void 0:w.mode)!=null?O:0;B!=null||(B={});var u;(u=B).reactivityMode!=null||(u.reactivityMode=0);M===1&&_.Or("creator_poly_si_disable_list").includes(r)&&(M=2);return M===1?M0Q(g,r,E,Object.assign({},B,{useSink:!0}),owl):M0Q(g,r,E,Object.assign({},B,{useSink:M===2}))};
_.U2=function(){return function(g,r,E,B){var w,O,M=(O=(w=B)==null?void 0:w.mode)!=null?O:2;B!=null||(B={});var u;(u=B).reactivityMode!=null||(u.reactivityMode=0);if(M===0)throw Error("$g`"+M);return UBS(g,r,E,B,M===1?owl:void 0)}};
_.My=function(g){return _.Y("creator_poly_si_killswitch")?!1:_.Y("force_all_poly_si_batches")&&(g==="poly_si_all_on_test_check"||g==="creator_poly_si_batch_050"?0:g)||document.documentElement.hasAttribute("use-signals")?!0:!g||_.Y(g+"_holdback_enabled")&&_.Y("kevlar_polysi_holdback")?!1:_.Y(g)};
qy=function(g){return g?g.icon?g.icon.iconType.toLowerCase():g.customThumbnail?"member":"":""};
GOS=function(g){if(!g)return"";g=_.U(g);for(var r=g.next();!r.done;r=g.next())if((r=r.value)&&r.liveChatAuthorBadgeRenderer&&(r=qy(r.liveChatAuthorBadgeRenderer))&&r!=="verified")return r;return""};
QrY=function(g,r){if(!g)return null;var E;return((E=g.find(function(B){return B&&B.liveChatAuthorBadgeRenderer?qy(B.liveChatAuthorBadgeRenderer)===r:!1}))==null?void 0:E.liveChatAuthorBadgeRenderer)||null};
_.R3S=function(g){var r=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;g=z3L(g);r=z3L(r);var E=kOo(g.hex);r=kOo(r.hex);var B=r[0]/255;var w=r[1]/255,O=r[2]/255,M=Math.max(B,w,O),u=Math.min(B,w,O),l=0,Q=0,z=.5*(M+u);M!=u&&(M==B?l=60*(w-O)/(M-u):M==w?l=60*(O-B)/(M-u)+120:M==O&&(l=60*(B-w)/(M-u)+240),Q=0<z&&z<=.5?(M-u)/(2*z):(M-u)/(2-2*z));B=[Math.round(l+360)%360,Q,z];E=HKt(E,r);for(g=pOo(g.hex);E<4.5;){g=B[2]>=.5?g.darker((4.5-E)/2):g.brighter((4.5-E)/2);E=g.toString();
w=YHo(E);if(!w.length)throw Error("Xd`"+E);E=w;E=HKt(E,r)}return g.hex()};
HKt=function(g,r){g=_.EiJ(g);r=_.EiJ(r);return(Math.max(g,r)+.05)/(Math.min(g,r)+.05)};
_.uV=function(g){return"#"+("000000"+(g&16777215).toString(16)).slice(-6)};
_.nwl=function(g){for(var r=0,E=0;E<g.length;E++)r=g.charCodeAt(E)+((r<<5)-r);g="#";for(E=0;E<3;E++)g+=("00"+(r>>E*8&255).toString(16)).slice(-2);return g};
src=function(g){g=(g||"").split(":");g.length===1&&g.unshift("yt-icons");g[1]=g[1].toLowerCase();return g};
JTB=function(g,r){var E=(r=r===void 0?!1:r)?fVP:$Bt,B=r?jrc:ATJ;g.getIconNames().forEach(function(w){w=r?w:w.substring(w.indexOf(":")+1);g.name==="yt-icons"?bKJ.add(w):w.includes("-filled")?E.add(w):B.add(w)})};
lV=function(g,r,E,B){E=E===void 0?!1:E;B=B===void 0?!1:B;var w,O,M;return _.q(function(u){if(u.nextAddress==1)return _.D(u,PJP,2);if(B)return u.return(bKJ.has(g));w=E?fVP:$Bt;O=E?jrc:ATJ;return r?(M=g.includes("-filled")?g:g.concat("-filled"),u.return(w.has(M))):u.return(O.has(g))})};
_.e3l=function(g){if(t0A(g))return g;var r=g=g.toLowerCase();(g=FQS.get(g))&&(r=g);return r};
_.Dh=function(g){if(t0A(g))return g.toString();var r=WQQ.get(g);if(r)return r;r=g.toLowerCase();var E="yt-icons",B=r.replace(/_/g,"-");switch(g){case "MY_CHANNEL":r="account_circle";break;case "ADD_TO_LIBRARY":r="add";break;case "ALERT_WARN_RED":r="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":r="person_music";break;case "BLOCK_USER":r="block";break;case "CAPTIONS":r="closed_caption";break;case "CLOSED_CAPTION":E="av";r="closed-caption";break;case "COLLECTION":E="maps";r="layers";break;case "CONTACT":E=
"icons";r="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":E="ytcp-icons";r=B.split("creator-studio-")[1];break;case "DISMISSAL":r="close";break;case "DO_NOT_DISTURB":r="block";break;case "DOGFOOD":E="icons";r="pets";break;case "DRAFT":r="paper_corner_folded";break;
case "EMPTY_LIKE":r="like_outline";break;case "EXIT_APP":r="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":r=B;break;case "GAMES":E="ytg";r="my-games";break;case "GO_TO_PAGE":r="arrow-forward";break;case "GROUP":E="social";break;case "HIDE":r="not_interested";break;case "INPUT_COMPONENT":E="icons";r="settings-input-component";break;case "KIDS_BLOCK":r="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":E="ytg";r="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":E=
"ytg";r="membership-post-purchase";break;case "MULTIVIEW":r="screen_multi_view";break;case "MY_LOCATION":E="maps";r=B;break;case "NOTIFICATIONS_INBOX":r="NOTIFICATIONS";break;case "NEXT":r="chevron_right";break;case "OFFLINE":r="power-settings-new";break;case "PAUSE":E="miniplayer";break;case "PAYMENT":E="icons";break;case "PHONE_DOWNLOAD":r="phone_download";break;case "PREMIUM_STANDALONE":E="yt-logos";r="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":E="yt-logos";r="premium_standalone_cairo";
break;case "QUESTION_ANSWER":r="question_answer";break;case "REDEEM":E="icons";r="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":r="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":r="library_add";break;case "SCHOOL":E="yt-sys-icons";r="creator_academy";break;case "SETTINGS_LIGHT":r="settings_applications";break;case "SETTINGS_MATERIAL":r="settings";break;case "SEARCH_HISTORY":r="watch_history";break;case "SHOPPING_BAG":r="bag";break;case "SOCIAL":case "PEOPLE":E=
"yt-icons";r="people";break;case "STAFF_PICK":E="ytg";r="spotlight";break;case "START_DVR":r="add";break;case "STOP_DVR":E="av";r="stop";break;case "TAB_LIKED":r="like";break;case "TAB_INBOX":r="mail";break;case "TERMS_OF_SERVICE":E="icons";r="description";break;case "TRENDING":r="fire";break;case "UNBLOCK_USER":r="remove";break;case "UNPLUGGED_DARK_THEME":E="image";r="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":r="live";break;case "UNPLUGGED_SPORTS":E="ytu";r="visibility-off";break;
case "VIDEOS":E="av";r="play-circle-filled";break;case "YOUTUBE":E="yt-logos";r="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":E="yt-logos-ext";r="yt-logo-red-updated";break;case "YOUTUBE_LOGO":E="yt-logos-ext";r="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":E="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":E="shorts";r=B;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":E="yt-sys-icons";r="youtube_improve_tv";break;case "OUTLINE_BAG":E=
"yt-sys-icons";r="bag";break;case "QUEUE_PLAY_LAST":E="yt-sys-icons";r="list_queue_last";break;case "SLASH_CIRCLE_LEFT":r="slash_circle_left";break;case "SPEED_1_POINT_2X":r="1_point_2x";break;case "SPEED_1_POINT_5X":r="1_point_5x";break;case "SPEED_1_POINT_8X":r="1_point_8x";break;case "SPEED_POINT_2X":r="point_2x";break;case "SPEED_POINT_5X":r="point_5x";break;case "SPEED_POINT_8X":r="point_8x";break;case "SPEED_1X":r="1x";break;case "SPEED_2X":r="2x";break;case "TAB_BOOKMARK":r="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":E="yt-sys-icons";r="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":E="yt-sys-icons";r="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":E="yt-sys-icons",r="tic_tac_toe"}r=E+":"+r;WQQ.set(g,r);return r};
t0A=function(g){var r;_.Y("kevlar_use_wil_icons")?r=!!_.rM().resolve(_.o3).resolveIcon({iconName:g.toString()}):r=!1;return r};
_.Qy=function(g,r,E,B){E=E===void 0?{}:E;B=B===void 0?!1:B;E===null&&(E={});var w=_.Or("kevlar_command_handler_command_banlist");w=_.U(w);for(var O=w.next();!O.done;O=w.next())if(O=g?g.hasOwnProperty(O.value):void 0,O)return!1;w=_.n(g.commandMetadata,_.dU);return B&&w!=null&&w.url?!1:!r.disableCommandHandlerOverride&&_.G$.instance?(B=_.G$.instance,E.form||(E.form={element:r}),E.form.element||(E.form.element=r),!E.clickedVisualElement&&r.visualElement&&(E.clickedVisualElement=r.visualElement),B.resolveCommand(g,
E),!0):!1};
CJt=function(g,r){g=z$(g);for(var E=_.U(g.visibilityMonitorKeys||[]),B=E.next();!B.done;B=E.next())r.unobserveByKey(B.value);g.visibilityMonitorKeys=void 0};
XOS=function(g,r){if(_.PE()){if(_.Y("kevlar_vimio_use_shared_monitor"))KQc(g,r.data);else if(!KQc(g,r.data))return;var E=r.data,B=xBY(E);if(_.Y("enable_client_ve_spec_logging"))CJt(g,r.observer);else{var w=z$(g);w.trackedParams&&w.trackedParams!==B&&CJt(g,r.observer)}w=z$(g);!E||w.data&&w.data===E||(w.data=E);aVP(g,r);w.trackedParams=B}};
aVP=function(g,r){var E=r.observer;if(!E&&_.Y("web_skip_missing_vimio_observer")){var B,w;_.el(new _.Rj("VisibilityObserver is not defined.",g.tagName,g.trackedParams,(B=r.data)==null?void 0:B.trackingParams,(w=r.data)==null?void 0:w.loggingDirectives))}else{var O=r.layer,M=r.visibilityCallback||function(){},u=r.prescanCallback,l=z$(g);
B=[];r.showOption&&B.push(E.observe(g,function(){r.skipLogging&&r.skipLogging()||_.kP().reportShown(l,void 0,O);M(!0)},r.showOption));
r.hideOption&&B.push(E.observe(g,function(){_.kP().reportHidden(l,void 0,O);M(!1)},r.hideOption));
r.prescanOption&&u&&B.push(E.observe(g,function(){u()},r.prescanOption));
l.visibilityMonitorKeys=B}};
KQc=function(g,r){g=z$(g);if(g.visualElement&&!r)return!0;if(!r)return!1;var E=!1;if(_.Y("enable_client_ve_spec_logging")){var B,w;E=!!((B=r.loggingDirectives)==null?0:(w=B.clientVeSpec)==null?0:w.uiType)}B=xBY(r);if(!B&&!E)return!1;_.Y("mweb_component_visibility_logging")&&(g.veContainer||(g.veContainer={}),g.veContainer.trackingParams=B);if(g.trackedParams&&g.trackedParams===B)return!1;var O;if(_.Y("enable_client_ve_spec_logging")&&((O=g.visualElement)==null?0:O.isClientVe())){var M;O=(M=g.visualElement)==
null?void 0:M.getAsJspb();var u,l,Q,z;if(_.wY(O,2)===((u=r.loggingDirectives)==null?void 0:(l=u.clientVeSpec)==null?void 0:l.uiType)&&_.wY(O,3,-1)===((Q=r.loggingDirectives)==null?void 0:(z=Q.clientVeSpec)==null?void 0:z.elementIndex))return!1}if(_.Y("enable_client_ve_spec_logging")){var k,H;!g.visualElement&&((k=r.loggingDirectives)==null?0:(H=k.clientVeSpec)==null?0:H.uiType)&&(u=r.loggingDirectives.clientVeSpec,r=u.uiType,M=u.elementIndex,u=u.clientYoutubeData,g.visualElement=_.Hw(_.pW(),{veType:r,
elementIndex:M,clientYouTubeData:u}))}return!0};
xBY=function(g){if(g==null?0:g.rendererContext){var r=_.n(g.rendererContext,_.YP);if(r==null?0:r.loggingDirectives)return r.loggingDirectives.trackingParams}return(g==null?0:g.loggingDirectives)?g.loggingDirectives.trackingParams:g==null?void 0:g.trackingParams};
z$=function(g){var r;return(r=g.polymerController)!=null?r:g};
cTc=function(g){_.kP();if(_.aa(R3().JSC$10603_elementShouldLogGesture).bind(R3())(g,4)){NdA(g);var r=IVD(g);mBS.set(g,r)}};
NdA=function(g){mBS.has(g)&&(mBS.get(g).cancel("untrack hover element"),mBS.delete(g))};
IVD=function(g){var r,E=[],B=!1,w=new _.D8(function(O,M){nW(g,"mouseenter",_.aa(function(){var u,l,Q;return _.q(function(z){if(z.nextAddress==1)return r=(0,_.g2)(),u=iKV(g),E.push(u),l=LQc(g,function(){B=!0;M(Error("ah"))}),_.D(z,u,2);
if(z.nextAddress!=3)return l&&s2(l),Q=V0V(g),E.push(Q),_.D(z,Q,3);O();_.Q3(z)})}))});
w.then(function(){var O=(0,_.g2)()-r;O=Math.round(O);if(!(500>O||6E5<=O)){var M=g.getScreenLayer?g.getScreenLayer():void 0;M=_.PE(M)||"";var u=h3l(_.kP(),g);_.V_(M,g.visualElement?g.visualElement:_.fW(u),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:O}})}cTc(g)},function(){$P&&($P(),$P=null);
B&&(NdA(g),cTc(g))});
return w};
iKV=function(g){var r;return(new _.D8(function(E,B){$P=function(){B(Error("bh"))};
r=_.F6.debounce(_.aa(function(){s2(w);E()}),1,100);
var w=_.j_(g,"mousemove",r)})).thenCatch(function(){var E=_.F6.cancelDebouncedJobMap.get(r);
E&&_.F6.cancelJob(E)})};
V0V=function(g){var r;return(new _.D8(function(E,B){$P=function(){B(Error("ch"))};
r=nW(g,"mouseleave",_.aa(function(){E()}))})).thenCatch(function(){s2(r)})};
LQc=function(g,r){return nW(g,"mouseleave",_.aa(r))};
yTc=function(g){ZKJ&&_.AM.cancel(ZKJ);ZKJ=_.AM.run(function(){_.Sh(g,"yt-visibility-refresh");ZKJ=0})};
vwP=function(g){g=Number(g);return"rgba("+[g>>16&255,g>>8&255,g&255,(g>>24&255)/255].join()+")"};
Tdl=function(g){if(!g)return!1;if(_.n(g,_.dBY))return!0;var r;if(g=(r=_.n(g,_.D$))==null?void 0:r.commands)for(r=_.U(g),g=r.next();!g.done;g=r.next())if(_.n(g.value,_.dBY))return!0;return!1};
gmc=function(g){var r=!0;r=r===void 0?!0:r;if(!g.useSignals&&!g.experimentalPropertiesChanged||_.Y("experimental_templating_behavior_nopatch_killswitch")){var E=g._propertiesChanged;g._propertiesChanged=function(B,w,O){r?g.debounceRender():g.doRender();E&&E.call(g,B,w,O)}}};
r7Y=function(g,r){if(g.useSignals||g.experimentalPropertiesChanged)if(_.Y("experimental_templating_behavior_nopatch_killswitch"))g.experimentalPropertiesChanged=function(){};
else return;var E=new Set,B=[g].concat(_.jW(g.behaviors));B=_.U(B);for(var w=B.next();!w.done;w=B.next()){w=w.value;for(var O in w.properties)E.has(O)||(g._addPropertyEffect(O,"function",r),E.add(O))}};
EmB=function(){var g=Polymer.Element,r=g._prepareTemplate;g._prepareTemplate=function(){r.call(this);var E=this.prototype;if(E.experimentalTemplatingInUse&&E.experimentalTemplatingInUse()&&E.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.tn(Error("dh"));else{E=this.template.content.childNodes;for(var B=E.length-1;B>=0;B--){var w=E[B];w.nodeName!=="STYLE"&&w.nodeName!=="LINK"&&w.nodeName!=="SCRIPT"&&w.nodeName!=="#comment"&&w.remove()}}}};
BSQ=function(g){var r=!0;r=r===void 0?!0:r;EmB();var E=g.ready;g.ready=function(){this._template=null;E.call(this)};
r7Y(g,r?g.debounceRender:g.doRender)};
S3Q=function(g,r,E){if(E===null||E===void 0)return E;var B=O9l(g.tagName.toLowerCase(),r,function(){throw Error("Tb");});
if(B===null)return E;B=w5A[B];var w;if((w=B.isUnwrappable)==null?0:w.call(B,E)){if(B.unwrap)return B.unwrap(E);throw Error("gh");}return B.filterString?B.filterString(g.tagName,r,String(E)):E};
O2L=function(g,r,E){var B=r[r.length-1]!=="$",w=S3Q(g,r,E);if(B)if(typeof w==="function"&&r.startsWith("reactiveon")&&r===r.toLowerCase()){var O=dY;zIo(g,r.slice(8),function(M){e1(O,function(){w(M)})})}else g[r]=w;
else E=w==null?null:String(w),QTY(g,r.slice(0,-1),E)};
JM=function(g){U6X.length===0&&requestAnimationFrame(function(){setTimeout(function(){var r=U6X.slice();U6X.length=0;r=_.U(r);for(var E=r.next();!E.done;E=r.next()){E=E.value;try{E()}catch(B){_.bV(B)}}})});
U6X.push(g)};
Mdl=function(g){if(g){var r=g.component;if(r){var E;r==null||(E=r.events)==null||E.publish("DISCONNECTED");var B;r==null||(B=r.onDisconnected)==null||B.call(r)}var w,O;(w=g.__spec)==null||(O=w.didUnmount)==null||O.call(w);for(r=0;r<g.childNodes.length;r++)Mdl(g.childNodes[r])}};
tM=function(g,r,E){var B=r&&r.key,w=h5;w[0]=g;w[1]=B;w[2]=void 0;for(var O in r)r.hasOwnProperty(O)&&(g=r[O],B=Zk,B.push(O),B.push(g));r=h5;a:{if(O=h5[2])for(g=0;g<O.length;g+=2)if(O[g]==="nonce"){O=O[g+1];break a}O=""}O=JpV(r[0],r[1],O);g=X2(O);B=r[2];if(!g.staticsApplied&&(g.staticsApplied=!0,B&&B.length))if((w=g._attrsArr)&&w.length){for(w=0;w<B.length;w+=2)Pw[B[w]]=w+1;w=g._attrsArr||(g._attrsArr=GjQ(0));for(var M=0,u=0;u<w.length;u+=2){var l=w[u],Q=w[u+1],z=Pw[l];z?B[z]===Q&&delete Pw[l]:(w[M]=
l,w[M+1]=Q,M+=2)}xB(w,M);for(var k in Pw)RIP(O,k,B[Pw[k]],vf),delete Pw[k]}else for(k=0;k<B.length;k+=2)RIP(O,B[k],B[k+1],vf);KSQ(O,g,vf);xB(r,0);E&&E(ND);PdJ()};
q3J=function(g){var r=g.toString().toLowerCase();return function(E,B){tM(r,E,B)}};
_.FI=function(g,r,E){E===void 0?delete g[r.name]:g[r.name]=E};
_.e_=function(g){var r={androidIncludeFontPadding:!1},E=0,B=[],w=[],O=[];if(g.simpleText)return r.content=g.simpleText,r;if(g.runs===void 0)return r.content="",r;g=_.U(g.runs);for(var M=g.next();!M.done;M=g.next()){M=M.value;var u=M.text,l=void 0,Q=(l=u)==null?void 0:l.length;if(u&&Q){B.push(u);if(M.bold||M.italics||M.strikethrough||M.underline||M.textColor!=null&&M.textColor!==0||M.deemphasize){u=w;l=u.push;var z={startIndex:E,length:Q};M.bold&&(z.weightLabel="FONT_WEIGHT_MEDIUM");M.italics&&(z.italic=
!0);M.strikethrough&&(z.strikethrough="LINE_STYLE_SINGLE");M.underline&&(z.underline="LINE_STYLE_SINGLE");M.textColor!=null&&M.textColor!==0?document.documentElement.hasAttribute("dark")?z.fontColor=M.darkModeTextColor||M.textColor:z.fontColor=M.textColor:M.deemphasize&&(document.documentElement.hasAttribute("dark")?z.fontColor=parseInt("ff"+uhY("#aaa").substring(1),16):z.fontColor=parseInt("ff"+uhY("#606060").substring(1),16));l.call(u,z)}M.navigationEndpoint&&(u=O,l=u.push,z={startIndex:E,length:Q,
onTap:{innertubeCommand:M.navigationEndpoint}},M.loggingDirectives&&_.FI(z,lJc,M.loggingDirectives),l.call(u,z));E+=Q}}r.content=B.join("");r.styleRuns=w.length?w:void 0;r.commandRuns=O.length?O:void 0;return r};
omP=function(g){if(g==null||!g.runs)return!0;g=_.U(g.runs);for(var r=g.next();!r.done;r=g.next())if(r=r.value,r.bracket||r.errorUnderline||r.deemphasize||_.n(r,Ww)||_.n(r,D6B))return!1;return!0};
G6c=function(g,r){return function(E){var B=r.unit;if(B!==E)throw Error("jh`"+g+"`"+B+"`"+E);return r}};
CW=function(g){if(!((g==null?0:g.value)&&(g==null?0:g.unit)))return"";switch(g.unit){case "DIMENSION_UNIT_FRACTION":var r="%";break;default:r="px"}g=g.value;r==="%"&&(g*=100);return""+g+r};
QVY=function(g){try{return g()}catch(r){_.el(r)}};
_.xP=function(g){var r=_.n(g,_.KW);if(r)return r;if((r=_.n(g,zrY))&&r.commands)return k6D(r.commands);if((r=_.n(g,H2l))&&r.commands)return k6D(r.commands);if((g=_.n(g,p5D))&&g.identifier&&g.command&&(Y3X||(Y3X=[]),!Y3X.includes(g.identifier)))return Y3X.push(g.identifier),_.n(g.command,_.KW)};
k6D=function(g){if(g.length!==0){var r=[];g=_.U(g);for(var E=g.next();!E.done;E=g.next())(E=_.xP(E.value))&&r.push(E);return{commandExecutorCommand:{commands:r}}}};
_.XI=function(g){var r=g.defaultTarget,E=g.elementConfig,B=g.elementsCommand,w=g.skipOnClick,O=g.forceNewState,M=g.additionalCommandArgs,u=g.innertubeCommand||_.xP(B);if(u){g={};var l=Rrt(u);B=l.navigatingCommand;l=l.href;B&&l?(g.href$=l,nmY(g,B,l,r),_.Y("web_atagconfig_pointerdown")&&sVJ(g,B),O&&(g["force-new-state$"]=!0)):(g.role$="button",g.href$="javascript:void(0);");_.n(u,fJV)&&(g["aria-haspopup$"]=!0);w||(g.onclick=function(Q){var z={};if($6Y(Q)){if(M==null?0:M.clickedVisualElement)z={clickedVisualElement:M.clickedVisualElement};
z=Object.assign({},{form:{element:Q.target,event:Q,createScreenConfig:z}},M);Q.preventDefault();_.a3(u,z)}});
return Object.assign({},E,g)}};
jVQ=function(g){if(g.length){if(g.length===1)return g[0];var r={};_.FI(r,_.D$,{commands:g});return r}};
Ny=function(g){return g&&g.href$!=="javascript:void(0);"};
Rrt=function(g){var r,E=((r=_.n(g,_.D$))==null?void 0:r.commands)||[g];g=_.U(E);for(r=g.next();!r.done;r=g.next()){r=r.value;var B=void 0,w=void 0;E=(w=_.n((B=r)==null?void 0:B.commandMetadata,_.dU))==null?void 0:w.url;_.Y("web_remove_web_navigation_endpoint_data")||(B=void 0,E=E||((B=_.n(r,A7B))==null?void 0:B.url));if(E&&E!=="/service_ajax"){if(B=YU(E,b2t))return g=_.zh(B),{navigatingCommand:r,href:g};_.el(new _.Rj("AttributedString URL could not be sanitized",E))}}return{}};
$6Y=function(g){return g.button!==void 0?g.button===0&&!(g.shiftKey||g.altKey||g.metaKey||g.ctrlKey):!(g.shiftKey||g.altKey||g.metaKey||g.ctrlKey)};
nmY=function(g,r,E,B){E=!v0(E);var w,O,M;if((w=_.n(r,_.ka))!=null&&w.nofollow||(O=_.n(r,_.LM))!=null&&O.nofollow||(M=_.n(r,_.II))!=null&&M.nofollow||E)g.rel$="nofollow";var u;r=((u=_.n(r,_.II))==null?void 0:u.target)==="TARGET_NEW_WINDOW"?"_blank":B===void 0?"":B;g.target$=r};
sVJ=function(g,r){r.clickTrackingParams&&(g.params={itct:r.clickTrackingParams});g.onpointerdown=function(E){J7o(E)};
g._data=r};
P$X=function(g){(g.loggingUrls||[]).forEach(function(r){c8(r.baseUrl,r.attributionSrcMode)})};
tdl=function(g){g.currentTarget._data&&P$X(g.currentTarget._data)};
J7o=function(g){var r=g.currentTarget;g=QVY(function(){return r.href});
var E=r.params;g&&_.yk(g,E||{},8,!0)};
F3S=function(g,r){if(r=_.n(r,_.II))(r==null?void 0:r.target)==="TARGET_NEW_WINDOW"&&(g.target="_blank"),r.nofollow&&(g.rel="nofollow")};
erQ=function(g){g=_.n(g==null?void 0:g.commandMetadata,_.dU);return(g==null?0:g.url)?g.url:null};
_.I3=function(g,r){(g=_.xP(g))&&_.a3(g,r)};
_.a3=function(g,r){AxV(function(E){r?E.resolveCommand(g,r):E.resolveCommand(g)})};
x6D=function(g,r){var E=["yt-core-attributed-string__link"];r!=null&&r.noLinkColor||((r==null?0:r.isOverlay)?E.push("yt-core-attributed-string__link--overlay-call-to-action-color"):E.push("yt-core-attributed-string__link--call-to-action-color"),(r==null?0:r.linkInheritColor)&&E.push("yt-core-attributed-string--link-inherit-color"));E={className:E.join(" "),tabindex$:"0"};var B=g.onTap||g.onLongPress;if(!B)return E;var w=W3J(g);w&&(E["aria-label$"]=w);r=_.XI({elementsCommand:B,elementConfig:E,skipOnClick:!(r==
null||!r.skipOnClick),forceNewState:!0});g.onLongPress&&(B=new C$D(function(){var O=_.xP(g.onLongPress);O&&_.rM().resolve(_.Er).resolveCommand(O)}),r&&K3V(B,r));
return r||E};
W3J=function(g){var r,E;return(r=g.onTapOptions)==null?void 0:(E=r.accessibilityInfo)==null?void 0:E.accessibilityLabel};
aJD=function(g){var r=g;g<=16777215&&(r+=parseInt("ff000000",16));return _.XT(r)};
X5Y=function(g){var r=g.isDarkTheme;var E=g.extension;g=g.runColor;var B=void 0;if(E=E==null?void 0:E.colorMap){r=r?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";E=_.U(E);for(var w=E.next();!w.done;w=E.next())if(w=w.value,r===w.key){B=w.value;break}}B==null&&g&&(B=g);if(B)return aJD(B)};
mc=function(g){var r=g.config;var E=g.image;var B=g.imageConfig;var w=g.imageWrapperConfig;var O=g.run;var M=g.tag;var u=g.textLength;var l=g.startIndex===void 0?0:g.startIndex;g=g.length;l===void 0&&(l=0);O={run:O,startIndex:l,endIndex:g!==void 0?l+g:u,tag:M};E&&(O.image=E);B&&(O.imageConfig=B);w&&(O.imageWrapperConfig=w);r&&(O.config=r);return O};
IJV=function(g,r){var E=[];E.push("yt-core-attributed-string");(r==null?0:r.className)&&E.push(r==null?void 0:r.className);(r==null?0:r.ellipsisTruncate)?E.push("yt-core-attributed-string--ellipsis-truncate"):(r==null?0:r.noWrap)?E.push("yt-core-attributed-string--white-space-no-wrap"):(r==null?0:r.noPreWrap)||E.push("yt-core-attributed-string--white-space-pre-wrap");(r==null?0:r.linkInheritColor)&&E.push("yt-core-attributed-string--link-inherit-color");g.alignment&&E.push(NSP(g.alignment));g.lineBreakMode&&
E.push("yt-core-attributed-string--word-wrapping");return E.join(" ")};
m6D=function(g){if(g.weight)return g.weight;switch(g.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return 700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
c7l=function(g){switch(g){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"}};
NSP=function(g){switch(g){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"}};
LW=function(g,r,E){var B=r;g.content&&E&&(E=g.content.indexOf("\n"),E!==-1&&(B=Math.min(r,E)));if(!g.content||g.content.length<=B)r=g;else if(g.attachmentRuns||g.commandRuns||g.decorationRuns||g.styleRuns||g.paragraphStyleRuns){r=cw(g.content,B);E=B;var w=g.attachmentRuns;if(w){var O=[];w=_.U(w);for(var M=w.next();!M.done;M=w.next())M=Object.assign({},M.value),M.startIndex===void 0||M.startIndex>=E||(M.length||(M.length=0),M.length+M.startIndex>E&&(M.length=E-M.startIndex),O.push(M));E=O}else E=void 0;
O=i2Y(B,g.commandRuns);w=B;var u=g.decorationRuns;if(u){M=[];u=_.U(u);for(var l=u.next();!l.done;l=u.next()){l=l.value;var Q=_.n(l.textDecorator,iV);if(Q&&Q.startIndex!==void 0&&!(Q.startIndex>=w)){l=Object.assign({},l,{textDecorator:{highlightTextDecorator:Object.assign({},Q)}});Q=_.n(l.textDecorator,iV);if(!Q.length||Q.length+Q.startIndex>w)Q.length=w-Q.startIndex;M.push(l)}}w=M}else w=void 0;M=i2Y(B,g.styleRuns);if(u=g.paragraphStyleRuns)for(g=[],u=_.U(u),l=u.next();!l.done;l=u.next()){var z=l.value;
l=Object.assign({},z);if(!(l.startIndex===void 0||l.startIndex>=B)){if(!l.length||l.length+l.startIndex>B)l.length=B-l.startIndex;Q=[];var k=void 0,H=void 0;if((k=z)==null?0:(H=k.listGroup)==null?0:H.listItems)for(z=_.U(z.listGroup.listItems),k=z.next();!k.done;k=z.next())if(k=Object.assign({},k.value),!(k.startIndex===void 0||k.startIndex>=B)){if(!k.length||k.length+k.startIndex>B)k.length=B-k.startIndex;Q.push(k)}Q.length>0&&(l.listGroup||(l.listGroup={}),l.listGroup=Object.assign({},l.listGroup,
{listItems:Q}));g.push(l)}}else g=void 0;r={content:r,attachmentRuns:E,commandRuns:O,decorationRuns:w,styleRuns:M,paragraphStyleRuns:g}}else r=Object.assign({},g,{content:cw(g.content,B)});return r};
i2Y=function(g,r){if(r){var E=[];r=_.U(r);for(var B=r.next();!B.done;B=r.next())if(B=Object.assign({},B.value),!(B.startIndex===void 0||B.startIndex>=g)){if(!B.length||B.length+B.startIndex>g)B.length=g-B.startIndex;E.push(B)}return E}};
cw=function(g,r){var E=r,B;if(B=E>0)B=g.charCodeAt(E-1),B=B>=55296&&B<=56319;B&&(E=g.charCodeAt(E),B=E>=56320&&E<=57343);B&&--r;return g.substring(0,r)};
Z2D=function(g,r,E){E=E===void 0?L3B:E;if(g){var B=_.rM().resolve(Tx);B||_.Y("mweb_no_observer_killswitch")?XOS(g,{data:r,observer:B,visibilityCallback:E,hideOption:VdL,showOption:hrc,layer:g.layer}):_.el(new _.Rj("Warning: monitorVisibility called with null observer",g.tagName,r==null?void 0:r.loggingDirectives,r==null?void 0:r.trackingParams))}else _.el(new _.Rj("Warning: monitorVisibility called with null element",r==null?void 0:r.loggingDirectives,r==null?void 0:r.trackingParams,r==null?void 0:
r.rendererContext))};
EhP=function(g,r){var E=[],B=g.content.length,w,O=(w=_.rM().resolve(_.gM(_.Vy)))==null?void 0:w();if(g.paragraphStyleRuns){w=_.U(g.paragraphStyleRuns);for(var M=w.next();!M.done;M=w.next()){var u=E.push,l=u.apply;var Q=void 0;M=M.value;if((Q=M.listGroup)!=null&&Q.listItems){Q=[];b:switch(M.listGroup.listType){case "LIST_TYPE_BULLET":var z="ul";break b;default:z="span"}Q.push(mc({run:M,textLength:B,tag:z,config:{className:"yt-core-attributed-string__list-group"},startIndex:M.startIndex,length:M.length}));
z=_.U(M.listGroup.listItems);for(var k=z.next();!k.done;k=z.next()){k=k.value;b:switch(M.listGroup.listType){case "LIST_TYPE_BULLET":var H="li";break b;default:H="span"}Q.push(mc({run:M,textLength:B,tag:H,startIndex:k.startIndex,length:k.length}))}M=Q}else M=[];l.call(u,E,_.jW(M))}}if(g.styleRuns&&(r==null||!r.noStyleRuns))for(w=_.U(g.styleRuns),u=w.next();!u.done;u=w.next()){u=u.value;l=X5Y({extension:_.n(u.styleRunExtensions,y7t),isDarkTheme:O===void 0?!1:O,runColor:u.fontColor});Q=[];l&&Q.push("yt-core-attributed-string--link-inherit-color");
u.italic&&Q.push("yt-core-attributed-string--italicized");u.underline&&u.strikethrough?Q.push("yt-core-attributed-string--underline-strikethrough",c7l(u.underline)):u.underline?Q.push("yt-core-attributed-string--underlined",c7l(u.underline)):u.strikethrough&&Q.push("yt-core-attributed-string--strikethrough",c7l(u.strikethrough));if(u.baselineOffset){a:switch(u.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":M="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":M=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:M="yt-core-attributed-string--baseline-offset-unknown"}Q.push(M)}M=Q.join(" ");Q=u;z={};if(Q.weight||Q.weightLabel)z.fontWeight=m6D(Q).toString();l&&(z.color=l);E.push(mc({run:u,textLength:B,tag:"span",config:{className:M,style:z},startIndex:u.startIndex,length:u.length}))}if(g.decorationRuns)for(w=_.U(g.decorationRuns),u=w.next();!u.done;u=w.next())u=u.value,l={},u.textDecorator&&(z=u.textDecorator,M=O===void 0?!1:O,k=[],Q=
_.n(z,iV),z=_.n(z,vmt),Q?(z=k,k=z.concat,H=[],(M=X5Y({extension:_.n(Q.highlightTextDecoratorExtensions,d6l),isDarkTheme:M,runColor:Q.backgroundColor}))&&H.push("background-color: "+M+";"),Q.backgroundCornerRadius!==void 0&&H.push("border-radius: "+Q.backgroundCornerRadius+"px;"),Q.leftPadding!==void 0&&H.push("padding-left: "+Q.leftPadding+"px;"),Q.rightPadding!==void 0&&H.push("padding-right: "+Q.rightPadding+"px;"),Q.topPadding!==void 0&&H.push("padding-top: "+Q.topPadding+"px;"),Q.bottomPadding!==
void 0&&H.push("padding-bottom: "+Q.bottomPadding+"px;"),k=k.call(z,H)):z&&(Q=k,k=Q.concat,M=M?"#2ba640":"#107516",M=z.color?aJD(z.color):M,M=["padding: 2px;","border-top: solid "+M+" 2px;","border-bottom: solid "+M+" 2px;","background: linear-gradient(135deg, "+M+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+M+" 3px, rgba(0, 0, 0, 0) 3px);"],k=k.call(Q,M)),M=k.join(" "),l.style$=M,M=u.textDecorator,Q=[],z=_.n(M,vmt),_.n(M,iV)?Q.push("yt-core-attributed-string--highlight-text-decorator"):
z&&Q.push("yt-core-attributed-string--bracket-text-decorator"),M=Q.join(" "),l.className=M,l.dir="auto"),M=_.n(u.textDecorator,iV),Q=_.n(u.textDecorator,vmt),z=_.n(u.textDecorator,iV),k=_.n(u.textDecorator,vmt),E.push(mc({run:u,textLength:B,tag:"span",config:l,startIndex:(M==null?void 0:M.startIndex)||(Q==null?void 0:Q.startIndex)||0,length:(z==null?void 0:z.length)||(k==null?void 0:k.length)||0}));if(g.commandRuns&&(r==null||!r.noEndpoints))for(O=_.U(g.commandRuns),w=O.next();!w.done;w=O.next())w=
w.value,u=x6D(w,r),E.push(mc({run:w,textLength:B,tag:"a",config:u,startIndex:w.startIndex,length:w.length}));if(g.attachmentRuns)for(g=_.U(g.attachmentRuns),O=g.next();!O.done;O=g.next()){O=O.value;l=u=void 0;w={className:"yt-core-attributed-string--inline-block-mod"};if((l=O.element)==null?0:l.properties){l=(u=O.element)==null?void 0:u.properties;u=[];l=_.n(l,TSD);if(l==null?0:l.margin)l=l.margin,l.left&&u.push("margin-left: "+CW(l.left)+";"),l.right&&u.push("margin-right: "+CW(l.right)+";"),l.top&&
u.push("margin-top: "+CW(l.top)+";"),l.bottom&&u.push("margin-bottom: "+CW(l.bottom)+";");u=u.length!==0?u.join(" "):void 0;w.style$=u}M=void 0;u={alt:"",preserveHeight:!0,preserveWidth:!0};l=["yt-core-attributed-string__image-element"];if(O.alignment){a:switch(O.alignment){case "ALIGNMENT_BASELINE":Q="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":Q="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:Q=
"yt-core-attributed-string__image-element--image-alignment-bottom"}l.push(Q)}if((M=O.element)==null?0:M.properties)M=[],Q=_.n(O.element.properties,TSD),(Q==null?0:Q.height)&&M.push("height: "+CW(Q.height)+";"),(Q==null?0:Q.width)&&M.push("width: "+CW(Q.width)+";"),M=M.length!==0?M.join(" "):void 0,u.style$=M,Q=void 0,M=((Q=_.n(O.element.properties,ghJ))==null?void 0:Q.label)||"",u.alt=M;u.className=l.join(" ");l=void 0;z=Q=void 0;M=((z=O.element)==null?0:z.type)?(Q=_.n(O.element.type,rGc))==null?
void 0:Q.image:void 0;E.push(mc({run:O,textLength:B,tag:"img",image:M,imageConfig:u,imageWrapperConfig:w,startIndex:O.startIndex,length:(l=O.length)!=null?l:0}))}if(r==null?0:r.headerRuns)for(r=_.U(r.headerRuns),g=r.next();!g.done;g=r.next())if(g=g.value,g.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(g.headerMapping)){a:{switch(g.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":O=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":O="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":O="yt-core-attributed-string--heading-3";break a}O=void 0}E.push(mc({run:g,textLength:B,tag:"span",config:O?{className:O}:void 0,startIndex:g.startIndex,length:g.length}))}return E};
_.hM=function(g){return(g==null?void 0:g.content)!==void 0};
Bml=function(g){return _.hM(g)?g:_.e_(g)};
wrA=function(g){return g.image!==void 0&&g.imageConfig!==void 0};
SvJ=function(g,r){if(r==null?0:r.userInput)for(g=_.U(g),r=g.next();!r.done;r=g.next())if(r=r.value,r.tag!=="a"&&r.tag!=="li"){var E=void 0;(E=r).config||(E.config={});r.config.dir=r.tag==="ul"?_.rM().resolve(_.Zh):"auto"}};
Ovl=function(g){return function(r){var E=g.run;(E.onTap!==void 0||E.onLongPress!==void 0)&&_.n(E,lJc)&&Z2D(r,{loggingDirectives:_.n(E,lJc)})}};
UUS=function(g){return function(r){for(var E in g)(vf[E]||vf[aB["default"]])(r,E,g[E])}};
l7l=function(g,r){MMl(r);var E={data:null,start:0,end:g.length,parts:[]};r=_.U(r);for(var B=r.next();!B.done;B=r.next())B=B.value,qvX(E,B.startIndex,B.endIndex,B);ufP(g,E);return E};
qvX=function(g,r,E,B){for(var w=_.U(g.parts),O=w.next();!O.done;O=w.next()){O=O.value;if(typeof O==="string")throw Error("lh");if(O.start<=r&&E<=O.end){qvX(O,r,E,B);return}}g.parts.push({data:B,parts:[],start:r,end:E})};
ufP=function(g,r){for(var E=r.parts.length;E>=0;E--){var B=r.parts[E],w=r.parts[E-1],O=E===r.parts.length?r.end:B.start;w=E===0?r.start:w.end;O!==w&&r.parts.splice(E,0,g.slice(w,O));B&&ufP(g,B)}};
MMl=function(g){g.sort(function(r,E){if(r.startIndex<E.startIndex)return-1;if(E.startIndex<r.startIndex)return 1;r=r.endIndex-r.startIndex;E=E.endIndex-E.startIndex;return r>E?-1:E>r?1:0})};
_.DUt=function(g){var r=g.thumbnails;if(r){g={sources:[]};r=_.U(r);for(var E=r.next();!E.done;E=r.next()){E=E.value;var B={};B.url=E.url;B.width=E.width;B.height=E.height;g.sources.push(B)}return g}};
ohS=function(g,r,E,B){if(!r)return g.length>=1?g[g.length-1]:null;if(B)for(var w=_.U(g),O=w.next();!O.done;O=w.next()){O=O.value;var M=void 0,u=(M=O.url)==null?void 0:M.indexOf(B);if(u!==void 0&&u>=0)return O}B=_.U(g);for(w=B.next();!w.done;w=B.next())if(w=w.value,w.width&&w.height&&(E&&w.width>=r||!E&&w.height>=r))return w;for(r=g.length-1;r>=0;r--)if(E&&g[r].width||!E&&g[r].height)return g[r];return g[0]};
_.GqP=function(g){var r;return(g=(r=g.sources)==null?void 0:r[0])?g.width/g.height:0};
_.QkS=function(g){if(g.sources){g=_.U(g.sources);for(var r=g.next();!r.done;r=g.next()){r=r.value;var E=void 0;if((E=r.clientResource)==null?0:E.imageName)return r}}};
zkV=function(g){var r;if((r=g.clientResource)!=null&&r.imageColor)return _.XT(g.clientResource.imageColor)};
_.HvQ=function(g,r,E,B,w,O,M){if(!r||r.length===0||r[0].clientResource)return null;if(E&&r[0].url)return r[0].url;B===void 0&&(B=!0);if(B){var u;g=kqP*(w||(g==null?void 0:(u=g.getBoundingClientRect())==null?void 0:u.width)||0)}else{var l;g=kqP*(O||(g==null?void 0:(l=g.getBoundingClientRect())==null?void 0:l.height)||0)}r=ohS(r,g,B,M);return(r==null?0:r.url)?r.url:(r==null?0:r.imageData)?r.imageData:null};
prV=function(g,r,E){E=E?[E]:[];g.opacity&&E.push("opacity: "+g.opacity+";");r&&g.placeholderColor?(g=_.XT(g.placeholderColor),E.push("background-color: "+g+";")):E.push("background-color: transparent;");return E.join(" ")};
YvL=function(g,r,E,B,w){var O=["yt-core-image"];r&&O.push(r);E||O.push("yt-core-image--fill-parent-height");B||O.push("yt-core-image--fill-parent-width");switch(g.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":O.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":O.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":O.push("yt-core-image--content-mode-center");break;default:O.push("yt-core-image--content-mode-scale-to-fill")}g.flipForRtlLayout&&
O.push("yt-core-image--flip-rtl");switch(w){case "TOP_START":var M;O.push(((M=document.body)==null?void 0:M.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return O.join(" ")};
nhV=function(g){var r;if(g==null?0:(r=g.clientResource)==null?0:r.imageName){var E;g=(E=g.clientResource)==null?void 0:E.imageName;a:{switch(g){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":E="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":E="yt-logos-ext:yt-logo-updated";break a}E=void 0}return E||RkJ.get(g)||g}};
$UP=function(g){return _.Y("mweb_wiz_skip_render")?skD(g):f7B(g)};
skD=function(g){return function(r){var E=JpV("wink-root");V6();PdJ();vPl(E,_.G(g,r))}};
f7B=function(g){var r=r===void 0?!1:r;return function(E){if(!r||!_.Y("mweb_skip_keto_to_c3_if_no_data")||E.data!==void 0){var B=SS(!1);try{var w=E.children;_.Y("mweb_render_outside_patch_killswitch")||ND?w?yI(_.G(g,E,w)):yI(_.G(g,E)):_.el(new _.Rj("ketoToC3 called outside of a patch",{tagName:g.TAG_NAME}))}finally{SS(B)}}}};
jkY=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
bvl=function(g,r){g.onViewportEntered=r;AGY.observe(g)};
JGB=function(){var g={rootMargin:"10%",threshold:.01};_.Y("mweb_enable_set_io_root_to_null_safari")?g.root=null:_.Y("mweb_enable_set_io_root_to_body_safari")&&(g.root=document.body);return new IntersectionObserver(function(r,E){r.filter(function(B){return B.intersectionRect.height>0}).forEach(function(B){B=B.target;
if(!_.Y("mweb_enable_only_update_image_when_connected")||B.isConnected!==!1){var w;(w=B.onViewportEntered)==null||w.call(B);E.unobserve(B)}})},g)};
P_t=function(g,r,E,B,w){function O(){if(B){var u=B.loadedClass,l=B.notifyOnUnloaded;u&&_.yy(g,u);l&&g.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function M(){var u=E(r,g);u&&g.getAttribute("src")!==u&&(_.Y("mweb_enable_only_update_image_when_connected")&&g.isConnected===!1||u===g.src||(g.src=u),O())}
w=w===void 0?!0:w;g.removeAttribute("src");O();r&&(w?bvl(g,M):M())};
tMY=function(g,r,E){if(!r)return!1;r=E(r,g);E=g.getAttribute("src");return r&&r===E&&g.complete};
FwV=function(g,r){for(var E in r)E==="className"?g.className=r[E]:(vf[E]||vf[aB.default])(g,E,r[E])};
ekL=function(g,r,E,B){$UP(_.vw)({contentMode:r.contentMode,loadedClass:r.loadedClass,isPreloaded:r.isPreloaded,notifyOnLoaded:r.notifyOnLoaded,notifyOnUnloaded:r.notifyOnUnloaded,preferredThumbnail:r.preferredThumbnail,preserveHeight:r.preserveHeight,preserveWidth:r.preserveWidth,objectPosition:r.objectPosition,targetWidth:r.targetWidth,targetHeight:r.targetHeight,shouldShowPlaceholder:r.shouldShowPlaceholder,useWidth:r.useWidth,isToggled:r.isToggled,alt:r.alt,className:r.className,onerror:r.onerror,
onload:r.onload,style$:r.style$,color:r.color,width:r.width,height:r.height,"aria-hidden$":r["aria-hidden$"],draggable:r.draggable,"data-disabled$":r["data-disabled$"],data:g,callback:E,renderLazy:B===void 0?!0:B,hideOn404:!1})};
C_Q=function(g,r,E){E=E===void 0?!1:E;var B=g.sources!==void 0?g:_.DUt(g);if(B){var w=r.onload;r.onload=function(l){var Q=l.target;E&&Q.naturalWidth===120||_.dL(Q,"yt-core-image--loaded");r.notifyOnLoaded&&Q.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));w==null||w(l)};
r.targetWidth&&r.preserveWidth&&(r.width=r.targetWidth);r.targetHeight&&r.preserveHeight&&(r.height=r.targetHeight);var O=_.QkS(B),M=O&&nhV(O);if(M)return(g=zkV(O))&&(r.color=g),{type:"icon",iconName:M,config:Object.assign({},r,r.alt?{}:{"aria-hidden$":"true"},{"aria-label$":r.alt,role:"img"})};if(g.sources===void 0){r.alt=g.accessibility&&g.accessibility.accessibilityData&&g.accessibility.accessibilityData.label||r.alt;r.style$=prV(g,r.shouldShowPlaceholder,r.style$);var u;r.isPreloaded=!((u=_.n(g,
WwQ))==null||!u.isPreloaded)}r.contentMode&&!B.contentMode&&(B.contentMode=r.contentMode);r.className=YvL(B,r.className,r.preserveHeight,r.preserveWidth,r.objectPosition);r.loadedClass="yt-core-image--loaded";return{type:"image",image:B,config:r}}};
_.T$=function(){var g=_.fI.apply(0,arguments);return _.hn(KwD,function(r){var E=g.map(function(B){return B==null?void 0:B(r)});
return function(){return void E.forEach(function(B){return void(B==null?void 0:B())})}})};
gt=function(g,r){var E=r==null?void 0:r.initial;return _.kB(function(){_.t5(!0);return E=g(E)},{equals:r==null?void 0:r.isEqual},"rSlKsc")};
xUl=function(g,r){if(g===r)return!0;if(g===void 0||r===void 0)return!1;var E,B,w,O,M,u,l,Q;return g.content===r.content&&((E=g.styleRuns)==null?void 0:E.length)===((B=r.styleRuns)==null?void 0:B.length)&&((w=g.commandRuns)==null?void 0:w.length)===((O=r.commandRuns)==null?void 0:O.length)&&((M=g.attachmentRuns)==null?void 0:M.length)===((u=r.attachmentRuns)==null?void 0:u.length)&&((l=g.decorationRuns)==null?void 0:l.length)===((Q=r.decorationRuns)==null?void 0:Q.length)};
NmL=function(g,r){if(g){var E=Bml(g);if(E!=null&&E.content)if(_.Y("attr_string_reactive"))$UP(a7L)({text:g,config:r});else{var B=!(r==null||!r.ariaLabel)||!(E.commandRuns&&E.commandRuns.length!==0||E.paragraphStyleRuns&&E.paragraphStyleRuns.length!==0);g=B?r==null?void 0:r.ariaLabel:null;B=B?"text":null;tM("span",{className:IJV(E,r),dir$:(r==null?0:r.userInput)?"auto":void 0,"aria-label$":g,role$:B},function(){if(E.styleRuns||E.commandRuns||E.attachmentRuns||E.decorationRuns){var w=EhP(E,r);SvJ(w,
r);w=l7l(E.content,w);w=_.U(w.parts);for(var O=w.next();!O.done;O=w.next())XrX(O.value)}else TW(E.content)})}}};
XrX=function(g){typeof g==="string"?TW(g):wrA(g.data)?tM("span",g.data.imageWrapperConfig,function(){ekL(g.data.image,g.data.imageConfig)}):tM(g.data.tag,g.data.config,function(r){Ovl(g.data)(r);
r=_.U(g.parts);for(var E=r.next();!E.done;E=r.next())XrX(E.value)})};
mUD=function(g){return g.parts.map(I7c)};
I7c=function(g){if(typeof g==="string")return g;g=wrA(g.data)?_.G("span",{el:_.T$(UUS(g.data.imageWrapperConfig))},_.G(_.vw,Object.assign({},{data:g.data.image},g.data.imageConfig))):_.G(g.data.tag,{el:_.T$(Ovl(g.data),UUS(g.data.config))},g.parts.map(I7c));return Qg(g)};
cGP=function(g,r){return g===r?!0:g===void 0||r===void 0?!1:g.noStyleRuns===r.noStyleRuns&&g.noLinkColor===r.noLinkColor&&g.noEndpoints===r.noEndpoints&&g.headerRuns===r.headerRuns&&g.isOverlay===r.isOverlay&&g.linkInheritColor===r.linkInheritColor&&g.userInput===r.userInput};
ivQ=function(g){return function(){var r,E,B,w,O,M,u,l,Q,z,k,H,R,A;return{ariaLabel:(r=g.ariaLabel)==null?void 0:r.call(g),className:(E=g.className)==null?void 0:E.call(g),ellipsisTruncate:(B=g.ellipsisTruncate)==null?void 0:B.call(g),isOverlay:(w=g.isOverlay)==null?void 0:w.call(g),linkInheritColor:(O=g.linkInheritColor)==null?void 0:O.call(g),noEndpoints:(M=g.noEndpoints)==null?void 0:M.call(g),noStyleRuns:(u=g.noStyleRuns)==null?void 0:u.call(g),noLinkColor:(l=g.noLinkColor)==null?void 0:l.call(g),
noPreWrap:(Q=g.noPreWrap)==null?void 0:Q.call(g),noWrap:(z=g.noWrap)==null?void 0:z.call(g),skipOnClick:(k=g.skipOnClick)==null?void 0:k.call(g),stopPropagation:(H=g.stopPropagation)==null?void 0:H.call(g),userInput:(R=g.userInput)==null?void 0:R.call(g),headerRuns:(A=g.headerRuns)==null?void 0:A.call(g)}}};
LwJ=function(g){return g.value===""||g.value==="true"?!0:g.value==="false"?!1:isNaN(Number(g.value))?g.value:Number(g.value)};
rt=function(g,r){g=new VMB(g,r);_.tn(g);throw g;};
hkc=function(g,r,E){var B=EwS(g);g._numRenders=0;try{var w=_.kwD(function(){return _.G(r,Object.assign({},E))})}catch(M){var O=function(u){u.args||(u.args=[]);
u.args.push("Error in web component wrapper");u.args.push(g.tagName.toLowerCase());return u};
_.FR(M instanceof Error?O(M):new VMB("Wiz rendering error",g.tagName.toLowerCase()));throw M;}finally{EwS(B)}return w};
_.BK=function(g,r,E){function B(z){var k={};z=_.U(z);for(var H=z.next();!H.done;H=z.next()){H=H.value;var R=void 0,A=void 0,J=void 0,e=_.Qk((J=(A=(R=H).getAttribute)==null?void 0:A.call(R,"slot"))!=null?J:"children");if(R=k[e])R.push(H);else if(e in O||e==="children")k[e]=[H]}z=_.U(Object.keys(k));e=z.next();for(H={};!e.done;H={content$jscomp$56:void 0},e=z.next())e=e.value,e!=="children"&&(H.content$jscomp$56=k[e],k[e]=function(C){return function(){return C.content$jscomp$56}}(H));
return k}
E=E===void 0?{}:E;g.componentType!==fl||rt("Components must be marked reactive to be used from web component wrapper.",r);S_.has(r)&&rt("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",r);var w,O=(w=E.props)!=null?w:{};O2.add(r);var M=ZvY();w=function(){var z=M.apply(this,arguments)||this;z.rawProps={};z.queuingRender=!1;z.dispose=function(){};
z.isWebComponentWrapper=!0;z.isReparenting=!1;z.hasRendered=!1;return z};
_.f(w,M);w.prototype.render=function(){this.hasRendered=!0;for(var z=_.U([].concat(_.jW(this.attributes))),k=z.next();!k.done;k=z.next())k=k.value,k.name!=="slot"&&this.removeAttribute(k.name);z=Object.assign({},this.componentProps,this.slotProps);k=_.U(hkc(this,g,z));z=k.next().value;k=k.next().value;!(z[0]instanceof Element)||z.length>1?rt("Wrapped Wiz components must return a single root element.",r):(z=z[0].tagName.toLowerCase(),z!==r&&rt("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(z+" !== '"+r),r),this.dispose=k)};
w.prototype.setUpProps=function(){for(var z=this.rawProps,k=this.attributes,H=_.U(Object.keys(O)),R=H.next();!R.done;R=H.next()){R=R.value;var A=void 0;((A=this)==null?0:A[R])&&this[R]!==yGX&&z[R]===void 0&&(z[R]=this[R],(A=Object.getOwnPropertyDescriptor(this.constructor.prototype,R))&&Object.defineProperty(this,R,A))}H=_.U(k);for(R=H.next();!R.done;R=H.next()){A=R.value;R=_.Qk(A.name);var J=R==="class"&&!k.getNamedItem("class-name");if(R in O||J)A=LwJ(A),R!=="class"||z.className?z[R]=A:z.className=
A}k={};for(var e in O)O[e]!==_.EB&&O[e]!==vhS&&(z[e]instanceof Function&&rt("Function props must be configured as STATIC, not SIGNAL.",r),R=_.U(_.Dk(z[e],void 0,"Ri8MSe")),H=R.next().value,R=R.next().value,k[e]=R,z[e]=H);z=_.U([z,k]);this.componentProps=z.next().value;this.setters=z.next().value;this.slotProps=B(this.childNodes)};
w.prototype.connectedCallback=function(){Bw===r&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in O&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
w.prototype.disconnectedCallback=function(){if(!this._isInert){var z;a:{if(_.dUl)for(z=this;z;){if(_.Tml.has(z)){z=!0;break a}z=z.parentElement}z=!1}if(z)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){z=_.U([].concat(_.jW(this.attributes)));for(var k=z.next();!k.done;k=z.next())k=k.value,k.name!=="slot"&&this.removeAttribute(k.name)}this.innerText="";hCB(this)}}};
w.prototype._setPendingPropertyOrPath=function(){};
w.prototype.notifyPath=function(){};
_.hx.Object.defineProperties(w.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var u=_.U(Object.keys(O)),l=u.next(),Q={};!l.done;Q={prop$jscomp$104:void 0},l=u.next())Q.prop$jscomp$104=l.value,l=void 0,((l=E.legacyPolymer)==null?0:l.forwardHostProps)&&iqL.has(Q.prop$jscomp$104)||Object.defineProperty(w.prototype,Q.prop$jscomp$104,{set:function(z){return function(k){var H=this;this._isInert||(this.setters?Hp(function(){var R,A;return void((A=(R=H.setters)[z.prop$jscomp$104])==null?void 0:A.call(R,k))}):(this.rawProps[z.prop$jscomp$104]=k,this.queuingRender&&z.prop$jscomp$104===
"data"&&k!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(Q),
get:gJQ.has(Q.prop$jscomp$104)?void 0:function(){return yGX}});
customElements.define(r,w)};
_.rEA=function(g,r){return(g=_.wt(g,r))?_.zh(_.nI(g)):null};
_.Sk=function(g){if(g=_.wt(g,Number.MAX_VALUE,void 0,"width"))return _.nI(g)};
_.wt=function(g,r,E,B){B=B===void 0?"width":B;if(!g||!g.length)return null;if(_.Y("kevlar_tuner_should_always_use_device_pixel_ratio")){var w=window.devicePixelRatio;_.Y("kevlar_tuner_should_clamp_device_pixel_ratio")?w=Math.min(w,_.wM("kevlar_tuner_clamp_device_pixel_ratio")):_.Y("kevlar_tuner_should_use_thumbnail_factor")&&(w=_.wM("kevlar_tuner_thumbnail_factor"));EJP=w}else EJP||(EJP=window.devicePixelRatio);w=EJP;_.Y("kevlar_tuner_should_always_use_device_pixel_ratio")?r*=w:w>1&&(r*=w);if(_.Y("kevlar_tuner_min_thumbnail_quality"))return g[0].url||
null;w=g.length;if(_.Y("kevlar_tuner_max_thumbnail_quality"))return g[w-1].url||null;if(E)for(var O=0;O<w;O++)if(g[O].url.indexOf(E)>=0)return g[O].url||null;for(E=0;E<w;E++)if(g[E][B]>=r)return g[E].url||null;for(r=w-1;r>0;r--)if(g[r][B])return g[r].url||null;return g[0].url||null};
Spl=function(){OB.size?setTimeout(function(){UB(BCQ)},0):wDo=0};
BCQ=function(){var g=(0,_.g2)(),r=null,E=!1;OB.forEach(function(w){w.loaded=!0;w.loadTime=g;w.pendingPaint=!1;var O=OrB.get(w);O&&O.resolve(g);r=w;E||!w.ftlEligible&&w.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(E=!0)});
var B;((B=r)==null?0:B.markDirty)&&r.markDirty();OB.clear();wDo=0;E&&UjD(g)};
MJo=function(g){OB.add(g);g.pendingPaint=!0;wDo||(wDo=_.Mh(_.F6,Spl))};
qpX=function(g){g.loaded=!1;g.loadTime=Infinity;var r=OrB.get(g);r&&(r.reject(Error("rh")),OrB.delete(g));g.pendingPaint&&(OB.delete(g),g.pendingPaint=!1)};
_.uyo=function(g){var r=g.indexOf(":");return r===-1?{originalName:g}:{originalName:g.substring(0,r),datasyncId:g.substring(r+1)}};
_.Djc=function(){return _.q(function(g){if(lGD!==void 0)return g.return(lGD);lGD=new Promise(function(r){var E;return _.q(function(B){switch(B.nextAddress){case 1:return _.qN(B,2),_.D(B,_.qh.open("test-only"),4);case 4:return _.D(B,_.qh.delete("test-only"),5);case 5:_.Ne(B,3);break;case 2:if(E=_.G2(B),E instanceof Error&&E.name==="SecurityError")return r(!1),B.return();case 3:r("caches"in window),_.Q3(B)}})});
return g.return(lGD)})};
QdA=function(){return _.q(function(g){if(g.nextAddress==1)return _.D(g,_.Djc(),2);if(!g.yieldResult)return g.return(void 0);oJV||(oJV=new GsV);return g.return(oJV)})};
zBL=function(g){var r,E,B,w;return _.q(function(O){switch(O.nextAddress){case 1:return _.D(O,QdA(),2);case 2:r=O.yieldResult;if(!r)throw Error("th");return _.D(O,r.open("yt-player-local-img"),3);case 3:return E=O.yieldResult,_.D(O,E.match(g),4);case 4:B=O.yieldResult;if(!B)throw Error("uh");return _.D(O,B.blob(),5);case 5:return w=O.yieldResult,O.return(w)}})};
kso=function(g,r){for(var E in g)if(g.hasOwnProperty(E)&&r[E])return E;return null};
Hrl=function(g){return"stamp"+g.replace("-","_")+"_"};
pDl=function(g){var r=g.match(/\[\[([\w\.]+)\]\]/);if(r&&r.length>1)return r[1];_.tn(Error("wh`"+g));return null};
YpD=function(g){return g===void 0?_.Ka("REUSE_COMPONENTS",!1):g||!1};
sdt=function(g,r,E){E&&(r.is?(RBS.has(r)&&(g=RBS.get(r),E=g.listener,delete r[g.property],E.type==="element"&&r.removeEventListener(E.eventName,E.handler),RBS.delete(r)),nJt(r)):r.__proto__==HTMLElement.prototype&&(r=new _.Rj("Rendererstamper removed a non custom element","Stamper: "+g+" element: "+(r&&r.nodeName)),_.el(r)))};
fGA=function(g,r,E,B){var w=r.node?r.node:r;_.S3(E).parentNode===w&&(r.removeChild(E),sdt(g,E,B));if(g=uW.get(E))uW.delete(E),_.F6.cancelJob(g);E.hidden=!1};
$jJ=function(g,r,E,B){if(r&&r.children&&(E=r.children[E]))if(_.Ka("DEFERRED_DETACH"))for(;E&&!uW.has(E);){var w=g,O=r,M=E,u=B;M.hidden=!0;w=_.fC(_.F6,fGA.bind(null,w,O,M,u),0);uW.set(M,w);E=E.nextElementSibling}else for(;(M=r.lastElementChild)&&(r.removeChild(M),sdt(g,M,B),M!=E););};
jdB=function(g){var r=_.VI("__slot-el");_.Jk(function(){for(var E=_.U(g.slotContent),B=E.next();!B.done;B=E.next())r.value.appendChild(B.value)});
return _.G("__slot-el",{el:r,skip:!0})};
_.lW=function(g,r,E){E=E===void 0?AEo:E;S_.add(r);var B;(B=E).propNames!=null||(B.propNames=[]);var w=new Set(E.propNames),O=ZvY();B=function(){var Q=O.call(this)||this;Q.props={};Q.isUpdating=!1;Q.hasAttached=!1;Q.isInert=!1;Q.updateQueued=!1;Q.initialClasses=[];rTl(Q,r);return Q};
_.f(B,O);B.prototype.forwardKebabCaseProp=function(Q,z){Q=_.Qk(Q);if(w.has(Q)||Q==="children")this.props[Q]=z};
B.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var Q=_.U(this.initialClasses),z=Q.next();!z.done;z=Q.next())(z=z.value)&&this.classList.add(z);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
B.prototype.handleSlottedContent=function(){for(var Q=new Map,z=_.U(this.children),k=z.next();!k.done;k=z.next()){k=k.value;var H=void 0,R=(H=k.getAttribute("slot"))!=null?H:"children";(H=Q.get(R))?H.push(k):Q.set(R,[k]);if(!k.getAttribute("key")){var A=void 0,J=void 0;k.setAttribute("key",R+"_"+((J=(A=H)==null?void 0:A.length)!=null?J:0))}}Q=_.U(Q);for(z=Q.next();!z.done;z=Q.next())k=_.U(z.value),z=k.next().value,k=k.next().value,this.forwardKebabCaseProp(z,_.G(jdB,{slotContent:k}))};
B.prototype.connectedCallback=function(){var Q=this;if(!rTl(this,r)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var z=_.U(this.attributes),k=z.next();!k.done;k=z.next())k=k.value,this.forwardKebabCaseProp(k.name,LwJ(k));this.handleSlottedContent();E.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){Q.afterFirstPatch()});
this.hasAttached=!0}};
B.prototype.attributeChangedCallback=function(Q,z,k){this.isInert||this.isUpdating||this.isConnected||Q!=="class"||this.initialClasses.push.apply(this.initialClasses,_.jW(k.split(" ")))};
B.prototype.disconnectedCallback=function(){WHA(this)};
B.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var Q,z;vPl(this,_.G(g,Object.assign({},this.props,{idomKey:(z=(Q=this.__incrementalDOMData)==null?void 0:Q.key)!=null?z:r})),!0)}catch(H){var k=H instanceof Error?H:new _.Rj("Wiz rendering error");k.args||(k.args=[]);k.args.push("Error in deprecated web component wrapper");k.args.push(r.toLowerCase());_.tn(k);throw H;}finally{this.updateQueued=this.isUpdating=!1}}};
B.prototype.enqueueUpdate=function(){var Q=this;return _.q(function(z){if(E.synchronous)return Q.update(),z.return();if(Q.updateQueued)return z.return();Q.updateQueued=!0;return z.return(Promise.resolve().then(function(){Q.update()}))})};
B.prototype.notifyPath=function(){E.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.hx.Object.defineProperties(B,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var M=_.U(E.propNames),u=M.next(),l={};!u.done;l={prop$jscomp$106:void 0},u=M.next())l.prop$jscomp$106=u.value,Object.defineProperty(B.prototype,l.prop$jscomp$106,{set:function(Q){return function(z){this.isInert||z===this.props[Q.prop$jscomp$106]||(this.props[Q.prop$jscomp$106]=z,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(l)});
customElements.define(r,B)};
_.brP=function(g,r){return _.u1(g.entities,"markersEngagementPanelSyncEntity",r)};
JES=function(g,r){return _.u1(g.entities,"fantasyWinProbabilityEntity",r)};
P4P=function(g,r){return _.u1(g.entities,"fantasyTeamEntity",r)};
tJA=function(g,r){return _.u1(g.entities,"fantasyPlayerEntity",r)};
F2J=function(g,r){return _.u1(g.entities,"booleanEntity",r)};
eBL=function(g,r){return _.u1(g.entities,"qrCodeEntity",r)};
W2D=function(g){return _.u1(g.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
C4D=function(){if(Dy)return Dy;if(window.lottie)return Dy=Promise.resolve(window.lottie);var g=_.eE(_.Ca("LOTTIE_URL"));return g?Dy=new Promise(function(r,E){var B=document.createElement("script");B.addEventListener("load",function(){r(lottie)});
B.addEventListener("error",function(w){var O="Lottie library failed to load.";w?w.message&&(O+=" Original description: "+w.message,_.Wf(w,O)):w=Error(O);_.el(w);E(w)});
B.setAttribute("async","");_.mg(B,g);document.head.appendChild(B)}):Promise.reject(Error("xh"))};
K2V=function(){return Dy?Dy:C4D()};
xjl=function(g){if(g)switch(g){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.Y("kevlar_use_wil_icons"))return g=(g=W2D(_.Zz().getState()))&&g.animationLightUrl&&g.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:g.animationLightUrl,pathDarkTheme:g.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,g?g:ol.get("LIKE")}};
aGQ=function(g){var r=xjl(g);if(r)return r;switch(g){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return ol.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return ol.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return ol.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return ol.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return ol.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return ol.get("NOTIFICATION_BELL")}};
NCL=function(g,r){if(!g||XDo)r=!1;else{if(g.closest){var E=!!xjl(r);E=_.Ca("ID_TOKEN")&&E?!!g.closest("segmented-like-dislike-button-view-model"):!1}else E=!1;if(!E)if(g.closest)if(E=!_.Ca("ID_TOKEN"),g=g.closest("ytd-subscription-notification-toggle-button-renderer-next"),E||!g)E=!1;else{var B;E=((B=g.data)==null?void 0:B.targetId)==="notification-bell"&&r!=="EXPAND_MORE"}else E=!1;r=E}return r};
IGD=function(g){var r,E;return _.q(function(B){switch(B.nextAddress){case 1:return _.qN(B,2),_.D(B,fetch(g),4);case 4:return r=B.yieldResult,_.D(B,r.json(),5);case 5:return B.return(B.yieldResult);case 2:E=_.G2(B),_.el(E),_.Q3(B)}})};
mjL=function(g,r){var E,B,w;return _.q(function(O){if(O.nextAddress==1)return(E=r?g.pathDarkTheme:g.path)?_.D(O,Promise.all([IGD(E),C4D()]),2):O.return();B=O.yieldResult;w=B[0];Gw.set(E,w);_.Q3(O)})};
_.QY=function(){for(var g=_.fI.apply(0,arguments),r=!0,E=_.U(g),B=E.next();!B.done;B=E.next())if(typeof B.value!=="string"){r=!1;break}return r?g.join(" ").trim()||void 0:function(){for(var w="",O=_.U(g),M=O.next();!M.done;M=O.next())if(M=M.value,typeof M==="function"&&(M=M()),M)if(typeof M==="string")w+=" "+M;else for(var u in M)if(M.hasOwnProperty(u)){var l=M[u];typeof l==="function"&&(l=l());l&&(w+=" "+u)}w=w.trim()||void 0;return _.t5(w)}};
irV=function(g,r,E,B){function w(M,u){if(r.value===u&&g!=null&&g.value){for(;g.value.firstChild;)g.value.removeChild(g.value.firstChild);g.value.classList.add("yt-spec-icon-shape");M(g.value,B)}}
E=_.cEl(_.rM().resolve(_.o3),E);if(typeof E==="function")r.value=null,w(E,null);else{var O=new _.D8(E.then,E);r.value=O;O.then(function(M){w(M,O)})}};
VJo=function(g,r){var E=document.createElement("div"),B=_.$F(E,function(){return _.G(_.p,{cond:g,then:function(w){return _.G(L2P,{data:w,options:r})}})});
return[E,B]};
_.zw=function(){for(var g=[],r=_.U(_.fI.apply(0,arguments)),E=r.next();!E.done;E=r.next())if(E=E.value)if(typeof E==="string")g.push(E);else{E=_.U(Object.entries(E));for(var B=E.next();!B.done;B=E.next()){var w=_.U(B.value);B=w.next().value;(w=w.next().value)&&g.push(B)}}return g.join(" ")};
vJX=function(g){var r=_.VI("animated-rolling-character"),E=tk(),B=hF(g.character)||hF(g.previousCharacter);g5Y(function(){if(g.marginMultiplier){var w;(w=E.value)==null||w.cancel();B?(w=g.previousCharacter?Number(g.previousCharacter)+10:g.rollUp?0:30,g.shouldAnimate||(w-=hBA(g,w))):(w=g.rollUp?0:2,g.shouldAnimate||(w-=g.rollUp?-1:1));r.value.style.marginTop="-"+w*g.marginMultiplier+"px";g.shouldAnimate?E.value=ZrA(r.value,g,w,B):r.value.style.display=g.character?"":"none"}});
return _.G("animated-rolling-character",{el:r,class:"animated-rolling-character-wiz"},vT(B,function(){for(var w=[],O=1;O<30;O++)w.push(_.G("div",null,O%10));return _.G(_.wW,null,_.G("div",null,"\u00a0"),w,_.G("div",null,"\u00a0"))},function(){return yEc(g.character)}))};
yEc=function(g){return _.G(_.wW,null,_.G("div",null,"\u00a0"),_.G(_.wW,null,vT(!g||_.qo(g),function(){return _.G("div",null,"\u00a0")},function(){return _.G("div",null,g)})),_.G("div",null,"\u00a0"))};
ZrA=function(g,r,E,B){E=new Animation(new KeyframeEffect(g,[{transform:"translateY(0px)"},{transform:"translateY("+(B?hBA(r,E):r.rollUp?-1:1)*r.marginMultiplier+"px)"}],djl),document.timeline);r.character?(g.style.display="",E.onfinish=null):E.onfinish=function(){g.style.display="none"};
E.play();return E};
hBA=function(g,r){var E=Number(g.character)+10;if(g.previousCharacter)if(g.character){var B=Number(g.character),w=Number(g.previousCharacter);g=g.rollUp?w<B?E:E+10:w<B?E-10:E}else g=g.rollUp?30:0;else g=g.character==="0"?E:g.rollUp?E-10:E+10;return r-g};
_.k3=function(g,r){return function(E){var B={},w;for(w in E){var O=void 0,M=void 0;((O=r)==null?0:(M=O.callbacks)==null?0:M[w])||(B[w]=E[w])}return _.G(zcP,null,function(){for(var u in B)E[u]=_.t5(B[u]);E.disableReactiveLogging=!0;return _.G(g,Object.assign({},E))})}};
r$B=function(g,r,E,B,w,O,M){E=new Animation(new KeyframeEffect(g,[{transform:"translateY(0px)"},{transform:"translateY("+(O?TCl(r,E,B,w):B?-1:1)*M+"px)"}],gLJ),document.timeline);r?(g.style.display="",E.onfinish=null):E.onfinish=function(){g.style.display="none"};
E.play();return E};
TCl=function(g,r,E,B){var w=Number(g)+10;r?g?(g=Number(g),r=Number(r),E=E?r<g?w:w+10:r<g?w-10:w):E=E?30:0:E=g==="0"?w:E?w-10:w+10;return B-E};
B_X=function(g){var r=tk(),E=tk();_.bu(function(){r.value=g.numberText;E.value=g.numberValue},[g.numberText]);
var B=g.fontSizeMultiplier?g.heightPx*g.fontSizeMultiplier:g.heightPx,w=qbX(function(){if(g.numberText){var M=g.numberText;var u=g.forceRollUp||!E.value||!g.numberValue||E.value<g.numberValue;var l=!!g.shouldAnimate,Q=r.value,z=[],k=0,H=0,R=(Q?Q.replace(/\D/g,"").length:0)-(M?M.replace(/\D/g,"").length:0);Q=Q?Q.split(/(\d)/).filter(Boolean):[];for(M=M.split(/(\d)/).filter(Boolean);R<0;){var A=M[H];z.push({character:A,rollUp:u,marginMultiplier:B,shouldAnimate:l});H++;hF(A)&&R++}for(;k<R;)A=Q[k],z.push({previousCharacter:A,
rollUp:u,marginMultiplier:B,shouldAnimate:l}),k++,hF(A)||R++;for(;H<M.length;)R=M[H],A=Q[k],hF(R)===hF(A)?(H++,k++):hF(R)?(k++,R=void 0):hF(A)&&(H++,A=void 0),z.push({character:R,previousCharacter:A,rollUp:u,marginMultiplier:B,shouldAnimate:l});u=z}else u=[];return u},[g.numberText]),O=g.numberText?["height: "+B+"px;",
"line-height: "+g.heightPx+"px;"].join(" "):"";return _.G("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:O,dir:"ltr","aria-hidden":"true"},w.map(function(M){return _.G(ELY,Object.assign({},M))}))};
SaP=function(g){var r;return(r=wMA[g])!=null?r:"EVENT_SPAN_TYPE_UNKNOWN"};
OTS=function(g){var r=g.nodeName;if(g.id)return r+="#"+g.id;if(g.classList)for(var E=_.U(g.classList),B=E.next();!B.done;B=E.next())r+="."+B.value;g.parentElement&&(r=OTS(g.parentElement)+" > "+r);return r};
UtP=function(g){return function(r){var E=SaP(r.type);return E==="EVENT_SPAN_TYPE_UNKNOWN"?g(r):CvB("event",{type:E,nodepath:r.target instanceof Element?OTS(r.target):void 0},function(){return g(r)})}};
_.HK=function(g){g&&Fho("event")&&(g=UtP(g));return V_c(function(r){var E,B=(E=g)==null?void 0:E(r);return typeof B==="boolean"?B:!0})};
ph=function(g){return function(){return g()?g():void 0}};
Mro=function(g){return new KeyframeEffect(g,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
qaV=function(g){return new KeyframeEffect(g,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.Y3=function(g){var r=gt(function(E){E=E?uQ(E[0]):void 0;return _.Dk(g(E),void 0,"AwTxXe")},{isEqual:function(E,B){return uQ(E[0])===uQ(B[0])}});
return[function(){return r()[0]()},
function(E){return void r()[1](E)}]};
_.Rl=function(g){return function(){var r="",E;for(E in g){for(var B=g[E];typeof B==="function";)B=B();B!==void 0&&B!==null&&(r+="; "+E+": "+B)}return r.length>0?_.t5(r.slice(2)):_.t5()}};
uKt=function(g){switch(g){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"}};
G3X=function(g,r,E,B,w,O){var M=lUl(g),u=M.disabled,l=M.iconPosition,Q=M.style,z=M.focused,k=function(){return!!A()&&l()==="icon-only"},H=function(){return!!A()&&l()==="icon-only-40"},R=function(){return!!A()&&l()==="icon-with-label"},A=function(){return!!r||!(B==null||!B())};
return{type:function(){return Q()==="call-to-action-inverse"?"text":Q()==="overlay-dark"&&g().type!=="filled"&&g().type!=="tonal"?"tonal":g().type},
shouldFocus:function(){return(z()||(O==null?void 0:O()))&&!u()},
hasIconLeading:function(){return!!A()&&l()==="leading"},
hasIconTrailing:function(){return!!A()&&l()==="trailing"},
hasIconLeadingTrailing:function(){return!!A()&&!!(E||w!=null&&w())&&l()==="leading-trailing"},
hasIconOnly:k,hasIconOnly40:H,hasIconWithLabel:R,iconButton:function(){return k()||H()||R()},
visiblyDisabled:function(){return(u()?"disabled":g().state)==="disabled"||u()},
overrideSmallSizeIcon:function(){return!g().ignoreIconSizeOverride&&DtX(g(),A())},
iconToRender:r?r:function(){return _.G(_.nh,{icon:B,size:function(){return sB(g(),!0,g().ignoreIconSizeOverride)},
active:function(){return g().toggled},
iconFilter:function(){return oLX(g())}})},
secondaryIconToRender:E?E:function(){return _.G(_.nh,{icon:w,size:function(){return sB(g(),!0,g().ignoreIconSizeOverride)},
active:function(){return g().toggled},
iconFilter:function(){return oLX(g())}})}}};
lUl=function(g){return{size:function(){return g().size},
style:function(){return g().style},
focused:function(){return g().focused},
disabled:function(){return g().disabled},
onTap:function(r){var E,B;return(B=(E=g()).onTap)==null?void 0:B.call(E,r)},
alignByText:function(){return g().alignByText},
aTagConfig:function(){return g().aTagConfig},
customColors:function(){return g().customColors},
segmentedPosition:function(){return g().segmentedPosition},
toggled:function(){return g().toggled},
toggleable:function(){return g().toggleable},
accessibilityLabel:function(){return g().accessibilityLabel},
onToggle:function(r){var E,B;return(B=(E=g()).onToggle)==null?void 0:B.call(E,r)},
iconPosition:function(){return g().iconPosition},
oneOffCustomTextWrap:function(){return g().oneOffCustomTextWrap},
disableTextEllipsis:function(){return g().disableTextEllipsis},
disableBackdropFilter:function(){return g().disableBackdropFilter},
tooltipText:function(){return g().tooltipText},
ariaHidden:function(){return g().ariaHidden},
tabIndex:function(){return g().tabIndex},
buttonText:function(){return g().buttonText},
formattedButtonText:function(){return g().formattedButtonText},
animatedTextProps:function(){return g().animatedTextProps}}};
Qeo=function(g){return g.style==="overlay-dark"?4:g.style==="overlay"?g.type==="filled"?4:3:g.type==="filled"||g.style==="call-to-action-inverse"||g.style==="mono-inverse"?2:1};
DtX=function(g,r){r=(g.iconPosition==="icon-only"||g.iconPosition==="icon-only-40"||g.iconPosition==="icon-with-label")&&r;return!g.segmentedPosition&&r&&g.size==="S"};
zSc=function(){return!_.Y("web_disable_backdrop_filter")};
sB=function(g,r,E){switch(g.size){case "XS":return 16;case "S":return!E&&DtX(g,r)?24:16;default:return 24}};
k3l=function(g){switch(g){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"}};
HTJ=function(g){switch(g){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"}};
pMB=function(g){switch(g){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"}};
oLX=function(g){if(g.style==="overlay-dark"&&g.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
YaV=function(g){if(!g)return{};var r=g.color,E=g.backgroundColor;g=g.borderColor;var B="";r&&(B+="color: "+r+";");E&&(B+="background-color: "+E+";");g&&(B+="border-color: "+g+";");return{style:B}};
$tP=function(g,r,E){var B=g.buttonText,w=g.formattedButtonText,O=g.formattedButtonTextLegacy,M=g.animatedTextProps,u=g.style,l=g.size,Q=g.focused,z=g.disabled,k=g.onTap,H=g.alignByText,R=g.aTagConfig,A=g.customColors,J=g.segmentedPosition,e=g.toggled,C=g.toggleable,X=g.accessibilityLabel,Z=g.onToggle,c=g.iconPosition,h=g.oneOffCustomTextWrap,y=g.disableTextEllipsis,OD=g.disableBackdropFilter,uB=g.tooltipText,zS=g.ariaHidden,jV=g.tabIndex,PJ=g.ignoreIconSizeOverride,At=g.state,XY=g.type;u==="call-to-action-inverse"&&
(XY="text");u==="overlay-dark"&&XY!=="filled"&&XY!=="tonal"&&(XY="tonal");var xc=!!r&&c==="leading",rg=!!r&&c==="trailing",$t=!!r&&!!E&&c==="leading-trailing",tD=!!r&&c==="icon-only",GD=!!r&&c==="icon-only-40",xb=!!r&&c==="icon-with-label",zL=tD||GD||xb;z&&(At="disabled");var AD=At==="disabled"||z;PJ=!PJ&&DtX(g,!!r);At={};var lA=(At["yt-spec-button-shape-next"]=!0,At[k3l(XY)]=!0,At[HTJ(u)]=!AD,At["yt-spec-button-shape-next--disabled"]=!!AD,At[pMB(l)]=!0,At["yt-spec-button-shape-next--focused"]=!!Q&&
!z,At["yt-spec-button-shape-next--icon-trailing"]=rg,At["yt-spec-button-shape-next--icon-leading"]=xc,At["yt-spec-button-shape-next--icon-leading-trailing"]=$t,At["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=$t&&!(B||w),At["yt-spec-button-shape-next--icon-button"]=tD||xb,At["yt-spec-button-shape-next--icon-only-default"]=GD,At["yt-spec-button-shape-next--align-by-text"]=!!H,At["yt-spec-button-shape-next--segmented-start"]=J==="start",At["yt-spec-button-shape-next--segmented-end"]=J===
"end",At["yt-spec-button-shape-next--override-small-size-icon"]=PJ,At["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!h,At["yt-spec-button-shape-next--disable-text-ellipsis"]=!!y,At["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!OD&&zSc(),At),pt=function(){if(M)$UP(_.RSX)(M);else if(O)O(c==="icon-with-label"||h?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(w){var Lw=c==="icon-with-label"||h;NmL(Object.assign({},
w,Lw?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),{noLinkColor:!0,noWrap:!Lw})}else B&&TW(B)},Mo=function(Lw){k==null||k(Lw);
C&&(Z==null||Z(Lw))},un=R?nLt:seQ,sw=R?"aria-current$":"aria-pressed$",J8=function(){r&&(xc||$t||zL)&&function(){fh({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){r()})}();
(B||w||O||M)&&!zL&&function(){fh({className:"yt-spec-button-shape-next__button-text-content"},function(){pt()})}();
rg&&function(){fh({className:"yt-spec-button-shape-next__icon"},function(){r()})}();
$t&&function(){fh({className:"yt-spec-button-shape-next__secondary-icon"},function(){E()})}();
z||$UP(_.jk)({model:{color:Qeo(g)}})},Rm=function(){var Lw={};
un(Object.assign({},(Lw.className=_.zw(lA),Lw.onclick=R?void 0:Mo,Lw.disabled=z,Lw["aria-disabled$"]=AD,Lw.style=z&&R?"pointer-events:none":void 0,Lw[sw]=C?!!e:void 0,Lw["aria-label$"]=X,Lw.title$=uB!=null?uB:"",Lw["aria-hidden$"]=zS,Lw.tabindex$=jV,Lw),R,YaV(A)),function(){J8()})};
xb?(l={},u=(l["yt-spec-button-shape-with-label"]=!0,l["yt-spec-button-shape-with-label--is-overlay"]=u==="overlay"||u==="overlay-dark",l),fUS({className:_.zw(u)},function(){Rm();fh({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},pt)})):Rm()};
A$o=function(g,r){if(!dY){var E;B2l(function(){return E=GwV(g,r)});
return E}g.parent=_.jeB();return GwV(g,r)};
_.jeB=function(){var g=nFA(dY||void 0,lyc);return R7V(g)?void 0:g};
AR=function(g,r){_.a3(g,Object.assign({},r,{forceClickLogging:!0}))};
bTD=function(g,r,E,B){AR(g,Object.assign({},{form:{element:r,event:E}},B))};
PKc=function(g,r,E,B,w){var O=void 0;return function(M){var u=_.xP(E?g==null?void 0:g.onDisabledTap:g==null?void 0:g.onTap);if(u){var l;O=(l=O)!=null?l:r==null?void 0:r.value;if(u)if(_.Y("web_button_vm_click_client_ve_killswitch"))bTD(u,O,M);else{l=J$V(g,u);if(w){bTD(u,w,M,{clickedVisualElement:l,form:{element:w}});return}bTD(u,O,M,{clickedVisualElement:l})}}B&&B(M)}};
J$V=function(g,r){r=r==null?void 0:r.clickTrackingParams;var E,B;if((g=g==null?void 0:(E=g.loggingDirectives)==null?void 0:(B=E.clientVeSpec)==null?void 0:B.uiType)&&!r)return _.bW(g)};
trX=function(g){switch(g){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"}};
FvB=function(g){switch(g){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"}};
eSl=function(g){switch(g){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"}};
Wvl=function(g){switch(g){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"}};
CKV=function(g,r){return _.u1(g.entities,"engagementToolbarStateEntityPayload",r)};
xtP=function(g){(g=_.fW(g))&&_.KvB(g)};
_.KvB=function(g){var r=_.PE();r&&_.mZ(r,g)};
aUP=function(g,r,E){_.OS(g,"yt-open-popup-action",[r,E||g])};
XMt=function(g,r){var E=_.FS(g,"endpoint"),B=_.FS(g,"action");return(E=B?B:E)&&r&&(E=r.navigationEndpointPopupMap[E])&&(g=_.XS(E,g),(E=_.FS(g,"renderer"))&&r.supportedPopups.hasOwnProperty(E))?{openPopupAction:{popupType:r.popupTypeMap[E],popup:g}}:null};
N_Y=function(g,r,E,B){if(B){var w;E=E==null?void 0:(w=E.data)==null?void 0:w.contents;(w=E instanceof Array&&E.length?E[0]:E)&&(E=_.FS(w,"renderer"))&&B.supportedPopups.hasOwnProperty(E)&&(r.stopPropagation(),aUP(g,{openPopupAction:{popupType:B.popupTypeMap[E],popup:w}}))}};
c$L=function(g,r,E,B){B=B===void 0?!1:B;var w=IUD(r);if(w){w.href&&m$(w.href);var O=r.button;O=O!==void 0?O===0&&!JR(r):!JR(r);w.data&&O&&mtB(g,w,r,E,B)}};
mtB=function(g,r,E,B,w){w=w===void 0?!1:w;var O=_.wM("pbj_navigate_limit",-1)===0;iTB(r);_.rM().resolve(_.gM(Nb));var M=r.data;if(Object.keys(M).length!==0)if(!_.Y("unplugged_web_disable_actions_for_cec_endpoint")&&_.n(M,_.D$))_.Y("endpoint_behavior_command_executor_fix_killswitch")||(E.preventDefault(),E.stopPropagation()),_.uq(g,[M],g);else if(B=XMt(M,B))M.loggingUrls&&M.loggingUrls.forEach(function(l){l.baseUrl&&_.mS(l.baseUrl)}),E.preventDefault(),E.stopPropagation(),aUP(g,B,r);
else{var u=LvP(0,r.data,E);if(g=r.getForm)g=g(),u.tempData=u.tempData||{},u.tempData=Object.assign({},u.tempData,g);g=_.Z1(E);if(B=g.find(function(l){return!!l.visualElement}))u.createScreenConfig=u.createScreenConfig||{},u.createScreenConfig.clickedVisualElement=B.visualElement;
if(!O)if(E.preventDefault(),E.stopPropagation(),_.n(M,_.VrA)&&!w&&_.G$.instance)_.G$.instance.resolveCommand(M,u);else if(_.Y("kevlar_command_handler_formatted_string")&&!w&&_.G$.instance&&hSQ(M))w=g.find(function(l){return!!l.is})||E.target,E={form:Object.assign({},u,{event:E,
element:w,originatingNode:r})},_.G$.instance.resolveCommand(M,E);else{M=_.Z1(E);E=[];for(w=0;w<M.length;w++)(O=M[w].is)&&E.push(O);JMc({parents:E.join(","),text:r.innerText},function(){_.Sh(r,"yt-navigate",u)})}}};
ZTV=function(g){if(g=IUD(g))iTB(g),oiB(g.href)};
IUD=function(g){g=_.Z1(g);for(var r,E=0;E<g.length;E++)if(r=g[E],r.tagName==="A"&&r.classList.contains("yt-simple-endpoint")){if(!r.data)break;return r}return null};
JR=function(g){return g.shiftKey||g.altKey||g.metaKey||g.ctrlKey};
y$l=function(g,r){var E={itct:r.clickTrackingParams};_.Y("kevlar_client_side_screens")&&(!_.n(r,_.sP)||_.Y("kevlar_exclude_endpoint_killswitch"))&&(E.endpoint=JSON.stringify(r));_.Y("enable_unknown_lact_fix_on_html5")&&_.rM().resolve(_.gM(_.PK))&&(E.lact=_.Eq());u0L(E);_.yk(g,E)};
iTB=function(g){g.href&&Object.keys(g.data).length!==0&&y$l(g.href,g.data)};
hSQ=function(g){for(var r=_.U(vLA),E=r.next();!E.done;E=r.next())if(g[E.value])return!1;return!0};
_.tR=function(g,r){if(r){var E={};dtQ.forEach(function(B){B=T_X(r,B,"--yt-lightsource-");Object.assign(E,B)});
gOX.forEach(function(B){B=T_X(r,B,"--yt-basic-");Object.assign(E,B)});
_.ua(g,E)}};
T_X=function(g,r,E){var B={};B[E+_.Gr(r)]=g&&g[r]?_.XT(g[r]):"";return B};
_.ek=function(g,r,E){FA[g]||(FA[g]={});FA[g][r]=E};
_.WK=function(g){FA[g]||(FA[g]={});return FA[g]};
rwX=function(g){if(!g)return{};var r=g.foregroundTitleColor,E=g.backgroundColor;g=g.borderColor;var B="text";g?B="outline":E&&(B="filled");return{type:B,customColors:{color:r?_.XT(r):void 0,backgroundColor:E?_.XT(E):void 0,borderColor:g?_.XT(g):void 0}}};
Oeo=function(g){var r=g.renderer;var E=g.element;var B=g.commandController;var w=g.onTapCallback;var O=g.skipCommandHandling;var M=g.overrides;var u=g.forceIcon;var l=g.forceModernIconButton;var Q=g.forceDisabled;var z=g.isSubscribe===void 0?!1:g.isSubscribe;var k=g.isPressed===void 0?!1:g.isPressed;var H=g.useButtonSize===void 0?!1:g.useButtonSize;g=EOY(r);z&&(g.style="mono",g.type="filled");u=!r.icon||!u&&r.text?r.icon?r.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:l?"icon-only":"icon-only-40";u==="icon-only-40"&&(g.type="text");var R;l=Object;z=l.assign;H=BpL(r,H);k=!!r.isSelected||!_.Y("web_propagate_is_pressed_killswitch")&&!!k;var A=r.isSelected!==void 0;Q=Q===void 0?r.isDisabled:Q;var J=r.text?_.e_(r.text):void 0;var e,C,X,Z=((e=r.accessibilityData)==null?void 0:(C=e.accessibilityData)==null?void 0:C.label)||((X=r.accessibility)==null?void 0:X.label);e=Z?Z:_.Vp(r.text);E=w_P(r,E,B,w,O);B=StP(r);B!=null&&B.length?(B=_.XI({innertubeCommand:jVQ(B),
forceNewState:!0}),B=Ny(B)?B:void 0):B=void 0;return z.call(l,{},g,H,{iconPosition:u},M,{focused:!1,toggled:k,toggleable:A,disabled:Q,formattedButtonText:J,accessibilityLabel:e,onTap:E,aTagConfig:B},rwX((R=r.colorData)==null?void 0:R.basicColorPaletteData),{oneOffCustomTextWrap:r.oneOffCustomTextWrap})};
w_P=function(g,r,E,B,w){return function(O){var M=StP(g);B(M,O);if(!w){M=_.U(M);for(var u=M.next();!u.done;u=M.next())AR(u.value,{form:{element:r,event:O},commandController:E})}}};
StP=function(g){var r=[];g.command&&r.push(g.command);g.serviceEndpoint&&r.push(g.serviceEndpoint);g.navigationEndpoint&&r.push(g.navigationEndpoint);return r};
BpL=function(g,r){if(r)switch(g.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(g.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
EOY=function(g){switch(g.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",
type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",
type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
_.Ch=function(g){return _.kB(function(){B4V()();return OqB(g)},void 0,"Icv7j")};
Kh=function(g,r){return _.u1(g.entities,"likeStatusEntity",r)};
UYY=function(g,r){return _.u1(g.entities,"likeCountEntity",r)};
_.MQD=function(g,r){return _.u1(g.entities,"stringEntity",r)};
qtS=function(g,r){if(!g)return!1;var E,B=(E=_.n(g,_.Gn))==null?void 0:E.signal;if(B&&r.signalEndpointMap)return!!r.signalEndpointMap[B];var w;if((E=(w=_.n(g,_.x3))==null?void 0:w.request)&&r.continuationEndpointMap)return!!r.continuationEndpointMap[E];for(var O in g)if(r.commandEndpointMap[O])return!0;return!1};
uwP=function(g,r){if(r.streamingEndpointMap)for(var E in g)if(r.streamingEndpointMap[E]&&(g=r.streamingEndpointMap[E]))return g()};
lAL=function(g,r){var E,B=(E=_.n(g,_.Gn))==null?void 0:E.signal;if(B&&r.signalEndpointMap&&(E=r.signalEndpointMap[B]))return E();var w;if((E=(w=_.n(g,_.x3))==null?void 0:w.request)&&r.continuationEndpointMap&&(w=r.continuationEndpointMap[E]))return w();for(var O in g)if(r.commandEndpointMap[O]&&(g=r.commandEndpointMap[O]))return g()};
DYl=function(g){var r={"Content-Type":"application/json"};_.Ca("EOM_VISITOR_DATA")?r["X-Goog-EOM-Visitor-Id"]=_.Ca("EOM_VISITOR_DATA"):_.Ca("VISITOR_DATA")&&(r["X-Goog-Visitor-Id"]=_.Ca("VISITOR_DATA"));r["X-Youtube-Bootstrap-Logged-In"]=_.Ca("LOGGED_IN",!1);_.Ca("DEBUG_SETTINGS_METADATA")&&(r["X-Debug-Settings-Metadata"]=_.Ca("DEBUG_SETTINGS_METADATA"));g!=="cors"&&((g=_.Ca("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(r["X-Youtube-Client-Name"]=g),(g=_.Ca("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(r["X-Youtube-Client-Version"]=
g),(g=_.Ca("CHROME_CONNECTED_HEADER"))&&(r["X-Youtube-Chrome-Connected"]=g),(g=_.Ca("DOMAIN_ADMIN_STATE"))&&(r["X-Youtube-Domain-Admin-State"]=g),_.Ka("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(g=_.Ca("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(r["X-YouTube-Lava-Device-Context"]=g));return r};
oOB=function(g,r){r.watchNextResponse||r.reelItemWatchResponse?r.watchNextResponse?g.content=r.watchNextResponse:g.content=r.reelItemWatchResponse:r.playerResponse?g.player=r.playerResponse:r.reelWatchSequenceResponse&&(g.reelSequence=r.reelWatchSequenceResponse)};
_.al=function(g){if(!g)return null;for(var r=[],E=0;E<g.textSegments.length;E++){var B=g.textSegments[E];B.text?r.push(B):B.emojiId&&r.push({emoji_id:B.emojiId})}return{text_segments:r}};
HeV=function(g,r,E,B,w,O,M){O=O===void 0?[]:O;var u=new _.XA;u.endpoint=E;if(!E)return _.FR(new _.Rj("handle undefined endpoint",r.tagName)),u;var l=ahc(E);l.length&&(_.uq(g,l,r,B),u.actions=l);E.loggingUrls&&E.loggingUrls.forEach(function(z){z.baseUrl&&c8(z.baseUrl,z.attributionSrcMode)});
l=!_.Y("web_skip_impression_click_killswitch")&&B&&B.impression;if(E.clickTrackingParams&&!GJo(E)&&!QNX(r)&&!l&&(l=_.pW(),!_.Nh(l,r))){var Q=r.getScreenLayer&&r.getScreenLayer();Q?l.clickCommand(E,null,Q):l.clickCommand(E,null)}l=!1;for(Q=0;Q<O.length;Q++)if((0,O[Q])(r,E,B)){l=!0;break}!l&&zpt(E)&&(u.ajaxPromise=kJo(g,r,E,B,w,M));return u};
QNX=function(g){var r;return(g=(r=g.data)==null?void 0:r.navigationEndpoint)&&!!g.clickTrackingParams};
GJo=function(g){var r=_.n(g,_.Gn);if(r&&(r=r.signal)&&p_l.indexOf(r)>=0)return!0;for(var E in g)if(Ytl.indexOf(E)>=0)return!0;return!1};
zpt=function(g){var r;if(((r=_.n(g,_.Gn))==null?void 0:r.signal)==="CLIENT_SIGNAL")return!1;for(var E in g)if(RpV.indexOf(E)>=0)return!1;g=Object.keys(g);return g.length===1&&g[0]==="loggingUrls"?!1:!0};
Jwo=function(g,r,E,B,w,O,M){var u=_.Il.instance;if(u&&_.mJ(u,B))var l=_.cK(u,B,w).then(function(z){return(z==null?0:z.data)?z:{data:z}});
else l=g.requestDataForServiceEndpoint(B,w),_.n(B,nOP)||_.n(B,sNJ)||_.n(B,_.fAL)||_.n(B,$Yl)||_.el(new _.Rj("No RequestBuilder for endpoint",B));var Q=_.iW();Q.promise.thenCatch(function(){var z=_.FS(B,"action")||_.FS(B,"command")||_.FS(B,"endpoint");z&&(z=B[z],z.hasOwnProperty("onFailureAction")?_.uq(r,[z.onFailureAction],E):z.hasOwnProperty("onFailureCommand")&&_.uq(r,z.onFailureCommand,E));l.cancel("Resolver promise rejected")});
l.then(function(z){if(z){var k=z.error;if(k){if(O&&O.onServerError)O.onServerError(B,z);Q.reject(new _.Rj("Response error",B,k))}else if(z=z.data)if(k=z.error){if(O&&O.onServerError)O.onServerError(B,z);Q.reject(new _.Rj("Returned error",B,k))}else{jNl(r,E,z,B);AwV(z);if(k=xyX(z))for(var H=_.U(k),R=H.next();!R.done;R=H.next()){R=R.value;var A=_.rM().resolve(_.gM(bel))||Lh;if(!_.Il.instance||!A.some(function(e){return!!_.n(B,e)})||_.Y("kevlar_response_processor_allowlist_killswitch")){var J=A=void 0;
((J=_.n((A=R)==null?void 0:A.commandMetadata,_.dU))==null?0:J.sendPost)?_.q2(r,[R]):_.uq(r,[R],E)}}(H=_.n(z==null?void 0:z.frameworkUpdates,VY))&&M&&M(H);if(O&&O.onSuccess)O.onSuccess(B,z);Q.resolve(new _.hR(z,k))}}else Q.reject(new _.Rj("Invalid service endpoint provided",B))},function(z){Q.reject(z)});
return Q.promise};
AwV=function(g){var r;(g=(r=_.n(g==null?void 0:g.onResponseReceivedCommand,_.PMl))==null?void 0:r.continuationItems)&&(g==null?void 0:g.length)===1&&_.n(g[0],tQt)&&_.F4("so_r",void 0,"search_overview_answer")};
kJo=function(g,r,E,B,w,O){var M;return(M=r.getNetworkManager&&r.getNetworkManager()?r.getNetworkManager():_.rM().resolve(_.gM(_.eN)))?Jwo(M,g,r,E,B,w,O):_.bV("No network manager.")};
jNl=function(g,r,E,B){if(E=E.trackingParams||E.loggingDirectives&&E.loggingDirectives.trackingParams){var w;(_.n(B,FmA)||_.n(B,epJ)||_.n(B,WmA))&&B.clickTrackingParams?w=_.fW(B.clickTrackingParams):_.Y("web_graft_to_parent_command")&&B.clickTrackingParams&&(w=_.fW(B.clickTrackingParams));var O;B=(O=r.getScreenLayer)==null?void 0:O.call(r);r=_.pW().graftServerVe(E,w,B);_.US(g,"yt-store-grafted-ve-action",[r])}};
_.CMB=function(g){var r=new Image;return new _.D8(function(E,B){r.addEventListener("load",function(){E()});
r.addEventListener("error",function(){B()});
r.src=g})};
KmQ=function(g){return!!g};
xYS=function(g){return!!g};
aAD=function(g,r,E){var B=g.rowIndex;B!==void 0&&_.US(g.hostElement,"yt-section-reactive-dismissal",[B,r,E])};
_.Zy=function(g,r,E){g=_.U(g);for(var B=g.next();!B.done;B=g.next()){B=B.value;if(B===r)break;for(var w=_.U(E),O=w.next();!O.done;O=w.next())if(O=O.value,B.tagName===O||!_.Y("web_event_button_role_check_killswitch")&&B.role==="button"&&O==="BUTTON")return!0}return!1};
_.yY=function(g,r,E){g=_.U(g);for(var B=g.next();!B.done;B=g.next()){B=B.value;if(B===r)break;for(var w=_.U(E),O=w.next();!O.done;O=w.next())if(B.id===O.value)return!0}return!1};
X_A=function(g){switch(g){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}};
Npl=function(g,r){if(!g&&!r)return"medium";g=Math.max(g||0,r||0);return g>=256?"large":g>=96?"medium":"small"};
IAY=function(g){switch(g){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.Tw=function(){var g=_.rM().resolve(_.gM(_.vK));return g?(g=g.getCurrentPage())?_.dt(g):null:null};
_.gr=function(){var g=_.Tw();if(!g){var r=_.rM().resolve(_.gM(_.vK)),E=r?typeof r:"no page manager";r=r?r.getCurrentPage():null;E=new _.Rj("Player is missing when requested.",E,r?r.tagName:"no page");_.tn(E)}return g};
_.dt=function(g){return g&&g.getPlayer?g.getPlayer():null};
mYD=function(g,r){g={args:{raw_player_response:g}};r&&(g.args=Object.assign({},g.args,r));return g};
cwJ=function(g){if(g.args){if(g.args.raw_player_response)return g.args.raw_player_response;if(g.args.player_response)return JSON.parse(g.args.player_response)}};
_.ieo=function(g,r){var E={url:"/watch?v="+g.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};g.playlistId&&(E.url+="&list="+g.playlistId);g.playerParams&&(E.url+="&pp="+g.playerParams);g={watchEndpoint:g,commandMetadata:{webCommandMetadata:E}};r&&(g.clickTrackingParams=r);return g};
VQJ=function(){return LmP||!!_.XS("yt.player.Application")};
ZeD=function(){return hpA||!!document.querySelector("link#player-css")};
vOc=function(){function g(){LmP=!0;ywA.resolve()}
var r,E;return _.q(function(B){ywA||(ywA=new _.uF,VQJ()?g():(r=document.createElement("script"),r.addEventListener("load",g),E=_.Ay(_.Ca("PLAYER_JS_URL")),_.mg(r,E),document.head.appendChild(r)));return B.return(ywA.promise)})};
TpS=function(){function g(){hpA=!0;dYP.resolve()}
if(!dYP)if(dYP=new _.uF,ZeD())g();else{var r=document.createElement("link");r.id="player-css";r.addEventListener("load",g);var E=_.Ay(_.Ca("PLAYER_CSS_URL"));_.LI(r,E,"stylesheet");document.head.appendChild(r)}return dYP.promise};
gWL=function(){return VQJ()&&ZeD()?Promise.resolve([]):Promise.all([vOc(),TpS()])};
rNB=function(g,r,E){var B={args:{}};g&&(B.args.raw_player_response=g);r&&(B.args.raw_watch_next_response=r);E&&(B.args=Object.assign({},B.args,E));return B};
SiY=function(g,r,E){var B=!1;B=B===void 0?!0:B;g=typeof g==="string"?_.rr(document,g):g;var w=EWJ+"_"+_.Ew(g),O=Bql[w];if(O&&B)return wCt(r,E)?O.api.loadVideoByPlayerVars(r.args||null):O.loadNewVideoConfig(r),O.api;O=new Eg(g,w,r,E,void 0);Bql[w]=O;O.addOnDisposeCallback(function(){delete Bql[O.getId()]});
return O.api};
wCt=function(g,r){return r&&r.serializedExperimentFlags?r.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):g&&g.args&&g.args.fflags?g.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
OXc=function(){var g=new _.uF;g.resolved=!1;var r=g.resolve;g.resolve=function(E){g.resolved=!0;r(E)};
return g};
M$J=function(g){var r={};UiD().install((r.document_disposed={callback:g},r))};
BX=function(g,r){if(!g&&Math.random()<=_.wM("kevlar_unified_player_logging_threshold")){g=Error("zh`"+(r?r:"Unspecified error"));if(_.Y("kevlar_unified_player_throw_errors"))throw g;_.el(g)}};
_.qiB=function(){var g=_.XS("ytDebugData.callbacks");g||(g={},_.vN("ytDebugData.callbacks",g));return g};
lmV=function(g,r){var E=_.qiB();if(_.Y("web_dd_iu")||uBt.includes(g))E[g]=r};
DiB=function(){return _.q(function(g){return g.return({isLeader:_.j1t(_.Zz().getState()),c:_.Ca("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.Ca("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
oWc=function(){var g;_.q(function(r){if(r.nextAddress==1)return lmV("APP_STATE",DiB),_.D(r,_.rM().resolve(_.wr),2);g=r.yieldResult;lmV("PI",function(){return _.q(function(E){return E.return(g.getVideoStats())})});
_.Q3(r)})};
G0l=function(g){var r=_.ZY(_.Xp(_.ED.location.href));g=_.ZY(_.Xp(g));return _.Y("kevlar_clear_non_displayable_url_params")?r==ST(g):ST(r)==ST(g)};
ST=function(g){var r=_.QSB(g);g=g.slice(0);var E=["frags"];_.Y("kevlar_hide_pp_url_param")&&E.push("pp");_.Y("kevlar_hide_time_continue_url_param")&&E.push("time_continue");E=_.U(E);for(var B=E.next();!B.done;B=E.next())B=B.value,g=_.vE(_.ZY(g),B);return _.ZY(g)+(r?"#"+r:"")};
Og=function(g,r){r=Number(r)*1E3;var E=Math.round((0,_.g2)()),B=E.toString();g={innertubeResponse:g,serverDateTimestampMs:B,lastModifiedTimestampMs:B,expireTimestampMs:(E+r).toString()};if(r=_.Ca("INNERTUBE_CONTEXT_CLIENT_NAME"))g.clientName=r;return g};
k0l=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++zZl};
_.HXc=function(){var g=_.JF(),r=_.PE();r&&g&&_.iq(r,[g],!0)};
Yil=function(g){return g&&pCS.some(function(r){return g.includes(r)})};
jSJ=function(g){var r=_.n(g,_.II);if(!r)return!1;var E=r.url,B=r.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!E)return _.tn(Error("Eh")),!1;if(r.target==="TARGET_NEW_WINDOW"){var w={};_.Y("resolve_url_parent_tracking_params")&&(!_.Zn(E)||yg(window.location.href,E))&&(w={endpoint:g,itct:g.clickTrackingParams});u0L(w);g=null;try{if(B)return g=_.H4L(E,"_blank",w,void 0,B),RZY(_.rM().resolve(nWc),g,E),!0}catch(H){_.tn(H)}_.yk(E,w);r={target:"_blank",noopener:_.Y("set_window_noopener_ks")&&
!r.allowOpener};g=window;B=Qv(E)?E:_.nI(typeof E.href!="undefined"?E.href:String(E));w=self.crossOriginIsolated!==void 0;var O="strict-origin-when-cross-origin";window.Request&&(O=(new Request("/")).referrerPolicy);var M=r.noreferrer;if(w&&M&&O==="unsafe-url")throw Error("ve");O=M&&!w;M=r.target||E.target;var u=[],l=[],Q=!1;for(k in r){var z=r[k];switch(k){case "width":case "height":case "top":case "left":u.push(k+"="+z);break;case "target":break;case "noopener":case "noreferrer":z?l.push(k):(Q=!0,
l.push(k+"=false"));break;case "attributionsrc":u.push(k+(z?"="+z:""));break;default:u.push(k+"="+(z?1:0))}}var k=M!==void 0&&!["_blank","_self","_top","_parent",""].includes(M);k=bB()&&k;sSD&&w&&u.length===0&&l.length>0&&!k&&!Q?(l.length===2&&(l=["noreferrer"]),_.Wu(g,B,M,l[0]),g=fmB()):(k=u.join(","),_.WJ()&&g.navigator&&g.navigator.standalone&&M&&M!="_self"?(k=_.HT("A"),Aa(k,B),k.target=M,O&&(k.rel="noreferrer"),((r=r.attributionsrc)||r==="")&&k.setAttribute("attributionsrc",r),r=document.createEvent("MouseEvent"),
r.initMouseEvent("click",!0,!0,g,1),k.dispatchEvent(r),g=fmB()):O?(g=_.Wu(g,"",M,k),r=_.zh(B),g&&(g.opener=null,r===""&&(r="javascript:''"),r='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Ug(r)+'">',r=Ja(r),(B=g.document)&&B.write&&(B.write(Pu(r)),B.close()))):((g=_.Wu(g,B,M,k))&&r.noopener&&(g.opener=null),g&&r.noreferrer&&(g.opener=null)));RZY(_.rM().resolve(nWc),g,E);return!0}r=_.lc(E);r=Yil(r)||E==="https://studio.youtube.com/";B=!(!_.Zn(E)||yg(window.location.href,
E));k=E.indexOf("disable_polymer=1")>=0;if(B||k||r)m$(E),Jg(),_.co(E,void 0,void 0,window.top,$iB);else return _.el(new _.Rj("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",g)),!1;return!0};
_.JNB=function(g,r){r=r===void 0?0:r;if(!(_.n(g,ANX)||_.n(g,bXL)||_.n(g,_.II)&&_.n(g,_.II).url))return!1;var E,B=(E=_.n(g,_.II))==null?void 0:E.url;E=B?{externalLinkData:{url:B}}:null;return _.pW().clickCommand(g,E,r)};
P7D=function(g,r){return _.u1(g.entities,"subscriptionStateEntity",r)};
t$S=function(g,r){return _.u1(g.entities,"subscriptionNotificationStateEntity",r)};
FfX=function(g,r){return _.u1(g.entities,"upcomingEventReminderStateEntity",r)};
eZL=function(g,r){return _.u1(g.entities,"engagementToolbarSurfaceEntityPayload",r)};
WfA=function(g,r){return _.u1(g.entities,"triStateButtonStateEntityPayload",r)};
C7P=function(g,r){return _.u1(g.entities,"commerceCartCheckoutButtonEntity",r)};
_.KfP=function(g,r){return _.u1(g.entities,"playlistLoopStateEntity",r)};
xiP=function(g,r){return _.u1(g.entities,"commandEntity",r)};
XCA=function(g,r,E,B,w){w=w===void 0?{}:w;return function(O){var M,u;var l=((M=g.loggingDirectives)==null?0:(u=M.clientVeSpec)==null?0:u.uiType)?_.bW(g.loggingDirectives.clientVeSpec.uiType):void 0;w.clickedVisualElement||(w.clickedVisualElement=l);l=aml(g,r);E(l,O);l=_.U(l);for(M=l.next();!M.done;M=l.next()){M=M.value;u=B;var Q=O,z=w;z.form?z.form.event=Q:z.form={element:u,event:Q};AR(M,z)}}};
aml=function(g,r){var E=[];r?(g.toggledCommand&&E.push(g.toggledCommand),g.toggledServiceEndpoint&&E.push(g.toggledServiceEndpoint)):(g.defaultCommand&&E.push(g.defaultCommand),g.defaultServiceEndpoint&&E.push(g.defaultServiceEndpoint),g.defaultNavigationEndpoint&&E.push(g.defaultNavigationEndpoint));return E};
NqX=function(g,r){var E=g.toggledStyle||g.style,B;switch((B=r?E:g.style)==null?void 0:B.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"}}};
_.MQ=function(){return _.q(function(g){return g.nextAddress==1?_.D(g,_.rM().resolve(_.wr),2):g.return(_.rM().resolve(Imo)())})};
_.qQ=function(){return _.rM().resolve(Imo)()};
_.uL=function(){return P0(function(){return{lottieEl:void 0}})};
miQ=function(g,r){return g.startsWith(r.uniqueId)};
cNS=function(g){var r,E;_.q(function(B){if(B.nextAddress==1)return _.D(B,_.MQ(),2);r=B.yieldResult;if((E=r)==null||!E.addEventListener)return lL(),B.return();r.addEventListener("onCueRangeEnter",g);_.Q3(B)})};
iXA=function(g){var r,E;_.q(function(B){if(B.nextAddress==1)return _.D(B,_.MQ(),2);r=B.yieldResult;if((E=r)==null||!E.removeEventListener)return lL(),B.return();r.removeEventListener("onCueRangeEnter",g);_.Q3(B)})};
LfB=function(g){var r,E,B,w,O;_.q(function(M){if(M.nextAddress==1)return _.D(M,_.MQ(),2);r=M.yieldResult;if((E=r)==null||!E.addCueRange)return lL(),M.return();B=_.U(g.timings);for(w=B.next();!w.done;w=B.next())O=w.value,r.addCueRange(g.uniqueId+"-"+O,O/1E3,(O+100)/1E3);_.Q3(M)})};
V$l=function(g){var r,E,B,w,O;_.q(function(M){if(M.nextAddress==1)return _.D(M,_.MQ(),2);r=M.yieldResult;if((E=r)==null||!E.removeCueRange)return lL(),M.return();B=_.U(g.timings);for(w=B.next();!w.done;w=B.next())O=w.value,r.removeCueRange(g.uniqueId+"-"+O);_.Q3(M)})};
hZl=function(){var g,r,E;return _.q(function(B){if(B.nextAddress==1)return _.D(B,_.MQ(),2);g=B.yieldResult;if((r=g)==null||!r.getPlayerState)return lL(),B.return();E=g.getPlayerState();return B.return(E===2)})};
lL=function(){_.el(new _.Rj("Smartimation player does not exist or is corrupted"))};
ZXY=function(){try{var g;return(g=window.CSS)!=null&&g.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(r){return _.el(new _.Rj("Smartimation CSS.supports threw an error")),!1}};
EHY=function(g,r,E,B,w){var O=g.playlistId?yNV:vWQ;r=r();E=E();w=!!g.videoId&&w()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.pf(r))return diV({data:g,actionType:O,disabled:w},E);if(g.videoId&&B())return TqJ({data:g,actionType:O,disabled:w});switch(r){case "TRANSFER_STATE_UNKNOWN":return TqJ({data:g,actionType:O,disabled:w});case "TRANSFER_STATE_FAILED":return g.videoId?gHL({data:g,actionType:O,disabled:w}):rol({data:g,actionType:O,disabled:w});case "TRANSFER_STATE_COMPLETE":return rol({data:g,
actionType:O,disabled:w});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return diV({data:g,actionType:O,disabled:w},E);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return g.videoId?gHL({data:g,actionType:O,disabled:w}):TqJ({data:g,actionType:O,disabled:w});default:return TqJ({data:g,actionType:O,disabled:w})}};
BES=function(g,r){var E=g.onTapCommand,B=_.xP(E);if(g.videoId&&_.n(B,_.DB))return _.n(B,_.DB).action=r,E;g.playlistId&&_.n(B,_.o$)&&(_.n(B,_.o$).action=r);return E};
TqJ=function(g){var r=g.data;var E=g.actionType;g=g.disabled;return{text:w1A,iconType:"OFFLINE_DOWNLOAD",onTap:BES(r,E.ACTION_ADD),disabled:g}};
diV=function(g,r){var E=g.data;var B=g.actionType;g=g.disabled;var w="OFFLINE_DOWNLOAD";r>=0&&r<=.1?w="OFFLINE_DOWNLOADING_ZERO":r>.1&&r<=.3?w="OFFLINE_DOWNLOADING_TWENTY":r>.3&&r<=.5?w="OFFLINE_DOWNLOADING_FORTY":r>.5&&r<=.7?w="OFFLINE_DOWNLOADING_SIXTY":r>.7&&r<1?w="OFFLINE_DOWNLOADING_EIGHTY":r===1&&(w="OFFLINE_PIN");return{text:ScL,iconType:w,onTap:BES(E,B.ACTION_REMOVE_WITH_PROMPT),disabled:g}};
rol=function(g){var r=g.data;var E=g.actionType;g=g.disabled;return{text:Ogc,iconType:"OFFLINE_PIN",onTap:BES(r,E.ACTION_REMOVE_WITH_PROMPT),disabled:g}};
gHL=function(g){var r=g.data;var E=g.actionType;g=g.disabled;return{text:Ugc,iconType:"OFFLINE_DOWNLOAD",onTap:BES(r,E.ACTION_RETRY),disabled:g}};
l6X=function(g){var r=MCS;qcV.push(g);uFc||(r(function(){for(var E=_.U(qcV),B=E.next();!B.done;B=E.next())B=B.value,B();qcV.length=0;uFc=!1}),uFc=!0)};
MCS=function(g){Promise.resolve().then(g)};
Ga=function(g){g=_.U(qBt(g));var r=g.next().value,E=g.next().value,B=!1;_.Jk(function(){return function(){B=!0}});
return[r,function(w){l6X(function(){B&&!_.Y("cow_prevent_state_setter_after_cleanup_killswitch")||E(w)})}]};
_.QU=function(g,r){var E=B4V();return _.kB(function(){E();return OqB(g,[_.t5(r)||""])},void 0,"HaeHEc")};
DgX=function(g){var r=_.QU(_.Ws,function(){return g().videoId}),E=_.QU(_.Cf,function(){return g().playlistId});
return function(){return g().videoId?r:g().playlistId?E:_.U(_.Dk("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
oHJ=function(g){var r=_.QU(Kf,function(){return g().videoId}),E=_.QU(_.$Ct,function(){return g().playlistId});
return function(){return g().videoId?r:g().playlistId?E:_.U(_.Dk(0,void 0,"K4tgOc")).next().value}};
GIX=function(g){var r=_.QU(_.W5Q,function(){return g().videoId});
return function(){return g().videoId?r:_.U(_.Dk(!1,void 0,"Oaxwcf")).next().value}};
QqP=function(g){var r=_.QU(bYl,function(){return g().videoId});
return function(){return g().videoId?r:_.U(_.Dk("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
z2P=function(){return{}};
kIL=function(){var g,r;return(r=(g=_.rM().resolve(_.gM(_.Vy)))==null?void 0:g())!=null?r:!1};
p1o=function(g,r){g=g===void 0?HgJ:g;switch(r.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},g,{isOpen:r.payload});default:return g}};
R2D=function(g,r){g=g===void 0?YcQ:g;switch(r.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},g,{isAllowed:r.payload});default:return g}};
sqV=function(g,r){g=g===void 0?nHB:g;switch(r.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},g,{errorMessage:r.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},g,{title:r.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},g,{privacy:r.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},g,{isDisabled:r.payload});default:return g}};
$gX=function(g,r){g=g===void 0?f6Y:g;switch(r.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},g,{isOpen:r.payload});default:return g}};
AoL=function(g,r){g=g===void 0?jqJ:g;switch(r.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},g,{isFullscreen:r.payload});case "SET_NAVIGATION_BUTTON":var E=r.payload.targetId,B=Object.assign({},g.navigationButtons);B[E]=r.payload.button;return Object.assign({},g,{navigationButtons:B});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},g,{topPanelId:r.payload});case "SET_SECONDARY_HEADER":return E=r.payload.panelId,B=Object.assign({},g.secondaryHeader),B[E]=r.payload.secondaryHeader,
Object.assign({},g,{secondaryHeader:B});default:return g}};
tCY=function(){return DY(Object.assign({},{entities:OiB,voiceSearch:YkA,engagementPanel:AoL,bottomSheet:p1o,cinematicSetting:R2D,shorts:bnc,drawerLayout:$gX,createPlaylist:sqV,locationCollection:bgo,reportChannel:JoQ,reportForm:PXD},J6l))};
FlB=function(g,r){_.F6.addLowPriorityJob(function(){var E,B,w;return _.q(function(O){switch(O.nextAddress){case 1:return _.qN(O,2),_.D(O,C4D(),4);case 4:return _.D(O,fetch(g),5);case 5:return E=O.yieldResult,_.D(O,E.json(),6);case 6:B=O.yieldResult;Gw.set(g,B);requestAnimationFrame(function(){r(B)});
_.Ne(O,0);break;case 2:w=_.G2(O),_.el(w),_.Q3(O)}})})};
e2B=function(g){var r={animationConfig:{},listeners:{}},E=function(){g(!0)};
r.listeners.data_failed=E;r.listeners.error=E;r.listeners.data_ready=function(){g(!1)};
return r};
Klt=function(g){var r=g.model;var E=g.subscribed;var B=g.isOverlay;var w=g.element;var O=g.commandController;var M=g.notificationState;if(E){var u,l;var Q=(r==null?void 0:(u=r.buttonStyle)==null?void 0:u.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:r==null?void 0:(l=r.unsubscribeButtonContent)==null?void 0:l.buttonText}else{var z;Q=r==null?void 0:(z=r.subscribeButtonContent)==null?void 0:z.buttonText}a:{var k;switch(r==null?void 0:(k=r.buttonStyle)==
null?void 0:k.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":u="S";break a;default:u="M"}}a:if(B)B="overlay";else switch(r.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":B="overlay";break a;default:B="mono"}a:if(E)var H="tonal";else switch((H=r.buttonStyle)==
null?void 0:H.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":H="tonal";break a;default:H="filled"}return{style:B,type:H,state:r.disableSubscribeButton?"disabled":"active",size:u,focused:g.focused,toggled:E,accessibilityLabel:WlL(r,E,M),buttonText:Q,iconPosition:r.disableNotificationBell?"none":"leading-trailing",onTap:CXY(r,E,w,O),disableTextEllipsis:!!g.disableTextEllipsis}};
CXY=function(g,r,E,B){return function(w){if(r){var O;var M=g.disableNotificationBell?_.xP(g==null?void 0:(O=g.unsubscribeButtonContent)==null?void 0:O.onTapCommand):_.xP(g==null?void 0:g.onShowSubscriptionOptions)}else{var u;M=_.xP(g==null?void 0:(u=g.subscribeButtonContent)==null?void 0:u.onTapCommand)}M&&AR(M,{form:{element:E==null?void 0:E.value},commandController:B});w.stopPropagation()}};
WlL=function(g,r,E){if(r){if(g==null?0:g.disableNotificationBell){var B;return g==null?void 0:(B=g.unsubscribeButtonContent)==null?void 0:B.accessibilityText}switch(E){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var w;return g==null?void 0:(w=g.bellAccessibilityData)==null?void 0:w.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var O;return g==null?void 0:(O=g.bellAccessibilityData)==null?void 0:O.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var M;return g==null?void 0:(M=
g.bellAccessibilityData)==null?void 0:M.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var u;return g==null?void 0:(u=g.bellAccessibilityData)==null?void 0:u.disabledLabel;default:var l;return g==null?void 0:(l=g.unsubscribeButtonContent)==null?void 0:l.accessibilityText}}else{var Q;return g==null?void 0:(Q=g.subscribeButtonContent)==null?void 0:Q.accessibilityText}};
xgJ=function(g){if(g){switch(g){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":g="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":g="NOTIFICATIONS_OFF";break;default:g="NOTIFICATIONS_NONE"}return g}};
a6D=function(g,r,E){E.subscribed!==r&&((E=E.key)&&_.hC(_.za("subscriptionStateEntity",E,{key:E,subscribed:r})),g.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:r})),r||_.OS(g,"yt-unsubscribe-action"))};
NEl=function(g){g=_.n(_.xP(g),_.ko);var r,E,B,w;return(w=_.n(g==null?void 0:(r=g.panelLoadingStrategy)==null?void 0:(E=r.inlineContent)==null?void 0:(B=E.sheetViewModel)==null?void 0:B.content,X1o))==null?void 0:w.listItems};
I6J=function(g,r){if(g.onShowSubscriptionOptions&&r&&(g=NEl(g.onShowSubscriptionOptions),g!=null&&g.length)){var E=xgJ(r);g.forEach(function(B){B=_.n(B,_.HX);var w,O,M,u,l=B==null?void 0:(w=B.leadingImage)==null?void 0:(O=w.sources)==null?void 0:(M=O[0])==null?void 0:(u=M.clientResource)==null?void 0:u.imageName;B&&l&&(B.isSelected=l===E)})}};
mgY=function(g,r,E,B){r&&E?g.style.width=E+"px":!r&&B&&(g.style.width=B+"px")};
coJ=function(g,r,E){var B;(B=g.lottieEl)==null||B.goToAndPlay(0);var w;(w=r.lottieEl)==null||w.goToAndPlay(0);_.pm(_.F6,function(){var O;(O=E.lottieEl)==null||O.goToAndPlay(0)},300)};
Yo=function(){return _.rM().resolve(_.gM(igL))||{}};
Llc=function(g){return typeof g==="function"};
_.R$=function(g){Object.keys(g);var r=function(E,B){var w=r.mapping||g;if(!E)return _.G(_.wW,null);if(Array.isArray(E)&&(E=VCc(w,r,E),Array.isArray(E))){if(!E.length)return _.G(_.wW,null);if(E.length>1){for(var O=!1,M=!1,u=[],l={},Q=0;Q<E.length;l={data$jscomp$1865:void 0},Q++)if(l.data$jscomp$1865=E[Q],l.data$jscomp$1865){var z=h2A(l.data$jscomp$1865,w),k=z.mappingEntry;z=z.rendererName;k&&z&&(k&&(!Llc(k)&&ZgP(k)&&(M=!0),!Llc(k)&&k.asyncId||(O=!0)),u.push(yoL(l.data$jscomp$1865,k,z,r,B)))}return M&&
!O?_.G(_.wW,null,vHS()):_.G(_.wW,null,u)}E=E[0]}if(!E)return _.G(_.wW,null);E=VCc(w,r,[E])[0];if(!E)return _.G(_.wW,null);O=h2A(E,w);w=O.mappingEntry;O=O.rendererName;return w&&O?_.G(_.wW,null,yoL(E,w,O,r,B)):_.G(_.wW,null)};
r.mapping=g;return r};
_.dgD=function(g){var r=void 0,E;for(E in g)if(g.hasOwnProperty(E)){r=E;break}return r};
VCc=function(g,r,E){var B,w=(B=Yo().preProcessOptions)==null?void 0:B.idomOptions;if(!w)return E;Yo();return w.preProcessPropsIdom(g,E,r.triggerRerender)};
h2A=function(g,r){return(g=_.dgD(g))?{mappingEntry:r[g],rendererName:g}:{mappingEntry:void 0,rendererName:void 0}};
yoL=function(g,r,E,B,w){if(!r)return _.G(_.wW,null);var O={};w&&w[E]&&(O=Object.assign({},w[E]));g[E]!==void 0&&(O.data=g[E]);if(Llc(r))return r.debugName||(r.debugName=E),_.G(r,O);r.asyncId&&(B.pendingIdsMap=B.pendingIdsMap||{},B.pendingIdsMap[E]=r.asyncId);return r.templateFn?r.templateFn(O):ZgP(r)?vHS():_.G(_.wW,null)};
ZgP=function(g){var r;return(r=g.showPlaceholder)!=null?r:Yo().defaultShowPlaceholder};
vHS=function(){var g=Yo().placeholder;return g()};
TEc=function(g){g=_.n(g,_.nm);return(g==null?void 0:g.iconName)&&!(g==null?0:g.title)};
E9S=function(g,r,E){var B;return _.G(_.wW,null,g==null?void 0:(B=g.actions)==null?void 0:B.map(function(w){return _.G("div",{class:function(){var O={"yt-flexible-actions-view-model-wiz__action":!0};O["yt-flexible-actions-view-model-wiz__action--row-action"]=r;O["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(TEc(w))var M=!0;else if(M=_.n(w,_.sg),(M==null?0:M.isToggled)&&TEc(M==null?void 0:M.toggledButtonViewModel)||(M==null||!M.isToggled)&&TEc(M==null?void 0:M.defaultButtonViewModel))M=
!0;else{var u;M=((u=_.n(w,g9t))==null?0:u.playlistId)?!0:!1}O=(O["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=M,O["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=E,O);return _.zw(O)}},rZY([w],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!r}}))}))};
BJL=function(g){var r=g.layout===1,E,B=((E=g.data)==null?void 0:E.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";E={};B=(E["yt-flexible-actions-view-model-wiz"]=!0,E["yt-flexible-actions-view-model-wiz--inline"]=!r,E["yt-flexible-actions-view-model-wiz--scrollable"]=B,E);var w,O;return _.G("yt-flexible-actions-view-model",{class:_.zw(g.className,B)},(w=g.data)==null?void 0:(O=w.actionsRows)==null?void 0:O.map(function(M){if(r){var u;return _.G("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
E9S(M,r,!((u=g.data)==null||!u.respectActionIntrinsicWidth)))}return E9S(M,r,!1)}))};
wQl=function(g,r){r=r===void 0?{shouldPersist:!0}:r;return{useUpdatableData:function(E,B){var w=[],O=_.U(_.Y3(function(){var Q=E();if(B!=null&&B.length&&w){var z=w.length>0;for(var k=!1,H=0;H<B.length;H++){var R=B[H]();z&&R!==w[H]&&(k=!0);w[H]=R}z=k}else z=!1;if(z)_.fm.remove(l());else if(z=_.fm.get(l()))return z;return Q})),M=O.next().value,u=O.next().value,l=_.kB(function(){return g(E())},void 0,"VFraLb");
_.bQ(function(){if(l()!=null){$o.set(l(),[M,u,!1]);var Q=l();_.J5(function(){$o.delete(Q)})}},"Fdafud");
return[M,function(Q){u(Q);r.shouldPersist&&_.fm.set(l(),Q)}]},
getData:function(E){var B;return(B=$o.get(g(E)))==null?void 0:B[0]()},
updateData:function(E,B){E=g(E);var w=$o.get(E);if(!w)return!1;var O=_.U(w);w=O.next().value;O=O.next().value;B=B(w());O(B);r.shouldPersist&&_.fm.set(E,B);return!0},
useUpdatableDataIdom:function(E,B){var w=g(E),O=_.fm.get(w),M=_.U(Ga(O!=null?O:E)),u=M.next().value,l=M.next().value,Q=tk(O!=null?O:E);_.bu(function(){if(w!=null)return $o.set(w,[function(){return Q.value},
function(z){l(z);Q.value=z},
$o.has(w)]),_.F6.addJob(function(){_.jT(_.F6,function(){var z=$o.get(w);z&&(z[2]=!1)},0)},8),function(){var z;
((z=$o.get(w))==null?0:z[2])||$o.delete(w)}},[w]);
_.bu(function(){u!==E&&(l(E),Q.value=E)},B?[].concat(_.jW(B),[w]):[w]);
return[u,l]}}};
SED=function(g){var r=_.U(_.Dk(!0,void 0,"bKtO6d")),E=r.next().value;r.next();return function(){var B=Qg(g.children());return _.G(_.p,{cond:E,then:function(){return B},
else:g.fallback})}()};
_.Af=function(g){var r=OPc(g),E=r.data,B=r.mapping,w=r.wrapper;r=r.pendingFallback;var O=function(){return UpJ(_.t5(E))},M=function(){var u=O(),l=[];
u=_.U(u);for(var Q=u.next();!Q.done;Q=u.next()){var z=void 0;Q=Q.value;var k=void 0;for(z in Q)if(!(!Q).hasOwnProperty(z)){k=z;break}(z=k)&&l.push(z)}return l};
return g.data?_.G(SED,{fallback:r},function(){return _.G(_.Ra,{each:M},function(u,l){var Q=w?function(k){return w(function(){return B[u](k,l)},z,l)}:function(k){return B[u](k,l)};
Q.debugName||(Q.debugName=String(u));if(!B[String(u)])return document.createComment("");Q.componentType!==fl&&Mio(String(u));var z=qEB(O,u,l);return _.G(Q,{data:z})})}):_.G(_.wW,null)};
OPc=function(g){var r=g.targetId||u_L(g.children);if(!g.data||!r||_.Y("mweb_new_replaceables_killswitch"))return Object.assign({},g,{mapping:g.children,wrapper:void 0});var E="stamper-"+lrc++,B=function(){var u;return(u=typeof g.targetId==="function"?g.targetId(E):g.targetId)!=null?u:E};
r=_.U(DpS(function(){var u=UpJ(g.data());u.targetId=B;return u})).next().value;
var w=Object.assign({},Yo().replaceableMapping,g.children);if(g.replacementWrapper){var O=w.notificationTextRenderer,M=w.notificationMultiActionRenderer;O&&(w.notificationTextRenderer=function(u,l){return g.replacementWrapper(O({data:u.data},l))});
M&&(w.notificationMultiActionRenderer=function(u,l){return g.replacementWrapper(M({data:u.data},l))})}return Object.assign({},g,{data:r,
mapping:w,wrapper:function(u,l,Q){return A$o({targetId:B,stamperIndex:Q},u)}})};
qEB=function(g,r,E){var B;return _.kB(function(){var w=g()[E()];if(w)B=w[r];else return _.el(new _.Rj("Stamper failed to find "+String(r)+" at index "+E()+" of data array of length "+(g().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),B;return w[r]},void 0,"wgRPHd")};
u_L=function(g){g=_.U(Object.keys(g));for(var r=g.next();!r.done;r=g.next())if(r=r.value,o9l.includes(r)||GlL.includes(r)||Q_Q.includes(r))return!0;return!1};
UpJ=function(g){return g?Array.isArray(g)?g:[g]:[]};
Mio=function(g){if(_.Y("web_enable_renderer_logger")){var r;(r=_.rM().resolve(_.gM(z_L)))!=null&&r.loggingEnabled&&!r.ids.has(g)&&r.ids.add(g)}};
klS=function(g){return!(g==null||!g.iconName||(g==null?0:g.title))};
HPS=function(g,r,E,B){E&&_.F6.cancelJob(E);E=_.F6.addLowPriorityJob(function(){B(void 0)},5E3);
B(E);r&&g!==(r.likeStatus==="LIKE")&&r.key&&_.hC(_.za("likeStatusEntity",r.key,{key:r.key,likeStatus:g?"LIKE":"INDIFFERENT",hadUserInteraction:g}))};
_.pQl=function(g,r){return _.u1(g.entities,"accountLinkStatusEntity",r)};
YEl=function(g,r){return _.u1(g.entities,"hatsSurveyEntity",r)};
R_P=function(g,r){return _.u1(g.entities,"hatsSurveyStateEntity",r)};
n9D=function(g,r){return _.u1(g.entities,"quantityIncrementerEntity",r)};
s_c=function(g){switch(g){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 7;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;case "BADGE_STYLE_TYPE_YPC":return 8;case "BADGE_STYLE_TYPE_FEATURED":return 4;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 18;default:return 0}};
frX=function(g){switch(g){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}};
$pB=function(g){switch(g){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.AZJ=function(g){var r=_.wM("web_generic_client_event_wait_period ",0);r||(r=3E5);var E=j_V.get(g);!_.Y("enable_web_client_experiment_event_timeout_killswitch")&&E&&(0,_.g2)()-E<r||(j_V.set(g,(0,_.g2)()),_.Jn("genericClientExperimentEvent",{eventType:g}))};
bPA=function(g){switch(g){case "small":return"collections-stack-wiz__collection-stack1--small";case "medium":return"collections-stack-wiz__collection-stack1--medium";case "large":return"collections-stack-wiz__collection-stack1--large";default:return""}};
JZl=function(g){if(!g)return"";var r,E=(r=_.rM().resolve(_.gM(_.Vy)))==null?void 0:r(),B;if(!E&&((B=g.vibrantColorPalette)==null?0:B.iconInactiveColor))return N8(g.vibrantColorPalette.iconInactiveColor,"1");var w;return E&&((w=g.darkColorPalette)==null?0:w.iconInactiveColor)?N8(g.darkColorPalette.iconInactiveColor,"1"):g.color?N8(g.color,"1"):g.sampledThumbnailColor?(g=g.sampledThumbnailColor,"rgba("+g.red+","+g.green+","+g.blue+");"):""};
_.bL=function(g,r){if(!g.includes("DATE_PLACEHOLDER"))return g;var E=new Date(0);E.setUTCSeconds(r);return g.replace("DATE_PLACEHOLDER",PHl(E))};
_.Jf=function(g){return g!=null&&g.watch?g.watch.isTheaterMode:!1};
_.PX=function(g){return g!=null&&g.watch?g.watch.isWatchFullscreen:!1};
_.tf=function(g){g=_.tiA(g);return _.Y("web_watch_enable_single_column_grid_view")?g:!1};
_.tiA=function(g){return g.watch.isWatchNarrowWidth};
FdJ=function(g,r,E){return function(B){var w=g.command;w&&(AR(w,{form:{element:E}}),r([w],B))}};
Wdt=function(g,r,E,B,w){return function(O){var M=e_D(g,r);M&&AR(M,{form:{element:E},commandController:B});w&&O.stopPropagation()}};
e_D=function(g,r){if(g.signInEndpoint&&!_.Y("web_subscribe_sign_in_endpoint_killswitch"))return g.signInEndpoint;if(r){if(g.serviceEndpoints)return g.serviceEndpoints[1];if(g.onUnsubscribeEndpoints)return g.onUnsubscribeEndpoints[0]}else{if(g.serviceEndpoints)return g.serviceEndpoints[0];if(g.onSubscribeEndpoints)return g.onSubscribeEndpoints[0]}};
CHY=function(g,r){var E,B,w,O;r=r&&((E=g.unsubscribeAccessibility)==null?void 0:(B=E.accessibilityData)==null?void 0:B.label)||((w=g.subscribeAccessibility)==null?void 0:(O=w.accessibilityData)==null?void 0:O.label);return g.longSubscriberCountText?[r,_.Vp(g.longSubscriberCountText)].filter(function(M){return M}).join(" "):r};
FX=function(g,r){return r||(g==null?0:g.isChannelDelegate)?"disabled":"active"};
Kdc=function(g,r){var E;switch((E=g.style)==null?void 0:E.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:FX(g)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:FX(g)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:FX(g,!0)};case "OVERLAY":return r?{style:"overlay",type:"tonal",state:FX(g)}:{style:"overlay",type:"filled",state:FX(g)};default:return r?{style:"mono",type:"tonal",state:FX(g)}:{style:"mono",type:"filled",state:FX(g)}}};
xpD=function(g){switch(g){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
arB=function(g){switch(g){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
XQB=function(g,r){var E=g.map(function(B){return B.toString()});
return _.HK(function(B){if(E.includes(B.key)){r&&B.preventDefault();var w;(w=B.currentTarget)==null||w.click()}})};
_.NJt=function(){return XQB(["Enter"])};
_.IrS=function(){return XQB(["Enter"," "],!0)};
_.eT=function(g){if(g.composedPath)return g.composedPath();if(!g.__composedPath){for(var r=[],E=g.target;E;)r.push(E),E=E.parentNode;r.push(window);g.__composedPath=r}return g.__composedPath};
_.WX=function(g,r,E){g=_.U(g);for(var B=g.next();!B.done;B=g.next()){B=B.value;if(B===r)break;for(var w=_.U(E),O=w.next();!O.done;O=w.next())if(O=O.value,B.tagName===O||B.role==="button"&&O==="BUTTON")return!0}return!1};
cZA=function(g,r){var E,B=(E=r.observer)!=null?E:_.rM().resolve(Tx);if(g){E=mpl(g);var w=[];r.showOption&&w.push(B.observe(g,function(){r.visibilityCallback(!0)},r.showOption));
r.hideOption&&w.push(B.observe(g,function(){r.visibilityCallback(!1)},r.hideOption));
r.prescanOption&&r.prescanCallback&&w.push(B.observe(g,function(){r.prescanCallback()},r.prescanOption));
var O;E.visibilityMonitorKeys=((O=E.visibilityMonitorKeys)!=null?O:[]).concat(w)}};
mpl=function(g){var r;return(r=g.polymerController)!=null?r:g};
_.Km=function(g){return!!_.Cm(g)};
_.xo=function(g,r,E,B,w){return function(O){var M=_.jeB();_.bQ(function(){if(O){_.iPA(O,g(),w);var u=_.LdB(O,g(),r,E,B,M);_.J5(u)}},"Pbbz3c")}};
_.iPA=function(g,r,E){var B=ViS(r),w=h_B(r);r=B&&ZPl;var O=w&&yZY;(B||w)&&cZA(g,{visibilityCallback:function(M){var u=_.rM().resolve(_.Er);M&&B?u.resolveCommand(B,{form:{element:E?g:void 0},disableClickTracking:!0}):!M&&w&&u.resolveCommand(w,{form:{element:E?g:void 0},disableClickTracking:!0})},
showOption:r,hideOption:O})};
_.LdB=function(g,r,E,B,w,O){var M=new Map;if(r=_.Cm(r)){var u;g=(B==null?void 0:(u=B.onTap)==null?void 0:u.value)||g;E=v9c(r,g,E==null?void 0:E.onTap,w,O);g.addEventListener("click",E);M.set("click",E)}return function(){for(var l=_.U(M),Q=l.next();!Q.done;Q=l.next()){var z=_.U(Q.value);Q=z.next().value;z=z.next().value;g.removeEventListener(Q,z)}}};
_.Cm=function(g){var r;return(g=(r=_.n(g,dpl))==null?void 0:r.onTap)&&_.xP(g)};
ViS=function(g){var r;return(g=(r=_.n(g,dpl))==null?void 0:r.onVisible)&&_.xP(g)};
h_B=function(g){var r;return(g=(r=_.n(g,dpl))==null?void 0:r.onHidden)&&_.xP(g)};
v9c=function(g,r,E,B,w){var O=function(u){_.rM().resolve(_.Er).resolveCommand(g,u)},M=function(u){B&&_.WX(_.eT(u),r,B)||O(u.target?{form:{element:u.target,
sourceData:g,mutationContext:w}}:void 0)};
E&&(M=function(u){E(u,O)});
return M};
TJS=function(g){switch(g){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}};
gxL=function(g){var r=g.numAvatarsInCluster;switch(g.clusterSize){case "small":return r===2?22:18;case "40":return r===2?24:22;default:return r===2?24:20}};
rzD=function(g,r){return function(E){var B=Object.keys(r);_.bQ(function(){if(g!=null&&g()){for(var w=_.U(B),O=w.next();!O.done;O=w.next())O=O.value,E.addEventListener(O,r[O]);_.J5(function(){for(var M=_.U(B),u=M.next();!u.done;u=M.next())u=u.value,E.removeEventListener(u,r[u])})}},"bXZGfe")}};
Ext=function(g){switch(gxL(g)){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""}};
BQD=function(g){switch(g){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""}};
wWl=function(g){switch(gxL(g)){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""}};
SIJ=function(g){switch(g){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""}};
OGB=function(g){switch(g){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}};
Uxl=function(g){return g==="medium"||g==="48"||g==="large"||g==="extra-large"||g==="extra-extra-large"||g==="giant"};
MZQ=function(g){return!!((g==null?0:g.includes(3))||(g==null?0:g.includes(5)))};
uJl=function(g){return{size:qID(g.data.avatarImageSize),onTap:g.onTap,decorations:g.decorations||[],badgeText:g.badgeText,accessibilityText:g.accessibilityText,avatarButtonCustomClassName:g.avatarButtonCustomClassName,clusterLayoutConfig:g.clusterLayoutConfig}};
qID=function(g){switch(g){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"}};
lFl=function(g){switch(g){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}};
DxA=function(g){switch(g){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
oxY=function(g){var r=g.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",E,B=g.avatars&&g.avatars.length>0?(E=_.n(g.avatars[0],_.a$))==null?void 0:E.avatarImageSize:"AVATAR_SIZE_UNKNOWN";E=lFl(B)||0;if(r){var w,O=(w=g.avatarClusterSize)!=null?w:"AVATAR_SIZE_M";r=lFl(O);var M,u,l=Math.min((u=(M=g.avatars)==null?void 0:M.length)!=null?u:0,4),Q;return{avatars:((Q=g.avatars)==null?void 0:Q.slice(0,4))||[],avatarSizeInPx:E,avatarStackStyle:{width:r+"px",height:r+"px",position:"relative"},avatarStyle:function(k){var H=
gxL({clusterSize:qID(O),numAvatarsInCluster:l,avatarIndex:k});var R=lFl(O);l===3&&k===2?(R=(R-H)/2,R=(_.Ca("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*R):R=void 0;return{position:"absolute",top:l===2&&k===1||l===3&&k===2||l===4&&k>=2?"0":void 0,bottom:l===2&&k===0||l>2&&k<2?"0":void 0,left:l===2&&k===1||l>2&&(k===1||k===3)?"0":void 0,right:l<=3&&k===0||l===4&&(k===0||k===2)?"0":void 0,transform:R?"translateX("+R+"px)":void 0,width:H+"px",height:H+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(k){return{clusterSize:qID(g.avatarClusterSize),numAvatarsInCluster:l,avatarIndex:k}},
avatarButtonCustomClassName:void 0}}var z;return{avatars:((z=g.avatars)==null?void 0:z.slice())||[],avatarSizeInPx:E,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:DxA(B),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
GTA=function(g,r,E){return function(){AR(g,{form:{element:r},commandController:E})}};
QDA=function(g){switch(g){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
zll=function(g){switch(g){case "small":return"yt-thumbnail-overlay-badge-view-model-wiz--small";case "medium":return"yt-thumbnail-overlay-badge-view-model-wiz--medium";case "large":return"yt-thumbnail-overlay-badge-view-model-wiz--large";default:return"yt-thumbnail-overlay-badge-view-model-wiz--medium"}};
kTS=function(g){var r=g.data;g=g.hidden===void 0?!1:g.hidden;var E={};g={class:_.zw("yt-page-indicator-view-model",(E["yt-page-indicator-view-model__indicator--hidden"]=!r.indicatorCount,E)),hidden:g};if(r.indicatorCount){E=[];for(var B=0;B<r.indicatorCount;B++){var w={};w=_.zw("yt-page-indicator-view-model__indicator",(w["yt-page-indicator-view-model__indicator--selected"]=r.selectedIndex===B,w));E.push(_.G("div",{class:w}))}r=_.G(_.wW,null,E)}else r=_.G(_.wW,null);return _.G("yt-page-indicator-view-model",
g,r)};
pWP=function(g){g&&(HGL(g)?delete g.inlinePlayerData:"inlinePlaybackEndpoint"in g&&delete g.inlinePlaybackEndpoint)};
YIQ=function(g){if("accessibilityText"in g)return g.accessibilityText||"";if("title"in g){var r,E,B;return((r=g.title)==null?void 0:(E=r.accessibility)==null?void 0:(B=E.accessibilityData)==null?void 0:B.label)||""}if("accessibility"in g){var w,O;return((w=g.accessibility)==null?void 0:(O=w.accessibilityData)==null?void 0:O.label)||""}return""};
HGL=function(g){return"inlinePlayerData"in g};
XX=function(g){return new Rlt(g)};
nxo=function(g){var r=g.data;g=_.HK(function(){var w=_.n(r.onTap,_.KW);w&&_.rM().resolve(_.Er).resolveCommand(w);return!1});
var E={sources:[{url:r.thumbnailUrl,width:120,height:90}]},B=r.rating&&r.ratingA11yLabel&&r.reviewsCount&&r.reviewsCountA11yLabel;return _.G("place-data-view-model",null,r.placeName&&r.placeCategory?_.G("div",{class:"yt-spec-place-data-view-model-shape","on:click":g},_.G(_.vw,{data:E,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.G(_.NQ,{className:"yt-spec-place-data-view-model-shape__place-link",command:r.onTap},_.G("h3",{class:"yt-spec-place-data-view-model-shape__name",
title:r.placeName},r.placeName)),_.G("div",{class:"yt-spec-place-data-view-model-shape__metadata"},B?_.G("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.G("span",{class:"score",title:r.ratingA11yLabel},r.rating),_.G("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.G(_.nh,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.G("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",
title:r.reviewsCountA11yLabel},r.reviewsCount)):_.G("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.G("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.G("span",{class:"category",title:r.placeCategory},r.placeCategory)))):null)};
sDt=function(g){return function(r){g&&(g.thumbnailElRef=r.thumbnailElRef,g.thumbnail=r.thumbnail,g.thumbnailOverlays=r.thumbnailOverlays,g.thumbnailSize=r.thumbnailSize)}};
fFo=function(g){var r;return(r=g.sharedUi)==null?void 0:r.animatedThumbnailEnabled};
$xY=function(g){var r;return(r=g.sharedUi)==null?void 0:r.inlinePreviewEnabled};
_.jDc=function(g){var r;return(r=g.sharedUi)==null?void 0:r.currentPageSubType};
AzA=function(g){switch(g){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
JzX=function(g){var r=_.U(_.Dk(!1,void 0,"RIOonf")),E=r.next().value,B=r.next().value;_.Jk(function(){var w=g==null?void 0:g();if(w){var O=_.rM().resolve(_.gM(bGX));if(O){var M={triggeringElement:w,onDwellTriggeredFn:function(){B(!0)},
onDwellEndFn:function(){B(!1)}};
O.registerElement(M);_.J5(function(){_.I$(O,M)})}}});
return E};
Prt=function(g,r,E){E?E(r):_.I3(r,g.target?{form:{element:g.target}}:void 0)};
_.mz=function(g,r,E,B){_.bQ(function(){var w=g.value;if(w){var O=new Map,M,u=(M=r())==null?void 0:M.onTap;u&&(M=function(l){a:{var Q=l.composedPath();Q=_.U(Q);for(var z=Q.next();!z.done;z=Q.next()){z=z.value;if(z===w)break;if(z.className.indexOf("HostIsClickableAdComponent")>=0||z.tagName==="A".toString()||z.tagName==="BUTTON".toString()){Q=!0;break a}}Q=!1}Q||Prt(l,u,E)},(B==null?0:B())||_.Y("enable_web_home_top_landscape_image_layout_level_click")?(w.addEventListener("tap",M),O.set("tap",M)):(w.addEventListener("click",
M),O.set("click",M)));
_.J5(function(){for(var l=_.U(O),Q=l.next();!Q.done;Q=l.next()){var z=_.U(Q.value);Q=z.next().value;z=z.next().value;w.removeEventListener(Q,z)}})}},"g9MHN")};
tZP=function(g,r){var E,B=(E=g.interaction)==null?void 0:E.onTap;if(g=_.XI({elementsCommand:B,forceNewState:!0,skipOnClick:!0}))return g.onclick=function(w){$6Y(w)&&(w.preventDefault(),B&&Prt(w,B,r))},Ny(g)?g:void 0};
Fkl=function(g){switch(g){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
ell=function(g){switch(g){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"}};
WkL=function(g){switch(g){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"}};
_.CrS=function(g){return _.Y("rich_grid_enable_dynamic_offset")&&g?Math.max(Math.round((g-_.wM("rich_grid_dynamic_offset_anchor_width",1300))/100*_.wM("rich_grid_dynamic_offset_offset_per_100",10)),_.wM("rich_grid_dynamic_offset_lower_bound",-60)):0};
Kkt=function(g,r){switch(r){case 4:return 16;case 1:return g<528?16:g<1024?32:48;case 2:return(g>=528?16:8)/2;case 3:return(g<528?16:g<1024?32:48)+(g>=528?16:8)/2;default:return 0}};
xxl=function(g){var r=g.originalContainerWidth;var E=g.sizing;var B=g.standardUnit;if(g.isCompactList&&r<528)return 1;switch(E){case "STANDARD":return B;case "COMPACT":return B+1;case "EXTRA_COMPACT":return _.Y("web_responsive_extra_compact_2x")?B*2:_.Y("web_responsive_current")?B===1?2:B%2===0?B/2*3:B+2:B<4?B*2:Math.ceil(B*3/2);case "MINI":return B>1?B*2:3;default:return B}};
XWl=function(g){var r=g.containerWidth;var E=g.peek;var B=g.gutter;var w=g.numItems;g=g.ignoreMaxWidthLimit;r=E?Math.max((r-E-B*w)/w,0):Math.max((r-B*(w-1))/w,0);return g?r:Math.min(r,aFS)};
_.cX=function(g){var r=g.containerWidth;var E=g.hasPeek;var B=g.sizing;var w=g.marginSettings;var O=g.isCompactList;var M=g.enableFullBleedForSingleCol;var u=g.standardUnitMinWidth;B=B||"STANDARD";E=!!E;g=r>=528?16:8;var l=E?r>=528?48:24:0;w=Kkt(r,w);var Q=Math.max(r-w*2,0);u=_.Y("kevlar_disable_min_width_override")?void 0:u;u=Math.min(Math.max(Math.floor((Q-l+g)/((u!=null?u:NQt)+_.CrS(r)+g)),1),6);var z=(M=!!M&&u===1)||u===1&&B!=="STANDARD";E=E||z?Q:Math.min(Q,(aFS+g)*u-g);B=xxl({originalContainerWidth:r,
sizing:B,standardUnit:u,isCompactList:O});return{itemWidth:XWl({containerWidth:E,peek:l,gutter:g,numItems:B,ignoreMaxWidthLimit:z}),gutter:g,maxContainerWidth:E,numItems:B,margin:M?0:w,contentMargin:Kkt(r,1),typographyBump:XWl({containerWidth:E,peek:l,gutter:g,numItems:u,ignoreMaxWidthLimit:z})>400&&!(O&&r<528),standardUnit:u}};
IFD=function(g){switch(g){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.mxl=function(g){if(g){var r;if((r=g.responsiveContainerConfiguration)==null?0:r.responsiveSize)return IFD(g.responsiveContainerConfiguration.responsiveSize);if(g.layoutSizing)switch(g.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"}}};
czB=function(g){if(g.fullbleed)return 1;switch(g.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
hlt=function(g,r,E,B,w,O,M,u){a:if(g===4&&B==="LOCKUP_CONTENT_TYPE_SOURCE")var l=1;else switch(g){case 3:l=1;break a;default:l=0}a:switch(g){case 4:O=!!(O&&O<100);break a;default:O=!1}a:switch(g){case 3:case 4:var Q=B==="LOCKUP_CONTENT_TYPE_CHANNEL"||B==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:Q=!1}a:switch(g){case 5:var z=!0;break a;case 4:z=!1;break a;default:z=!1}return{isOverlay:z,isCard:iGl(B,M),sizing:r!=null?r:"STANDARD",typographyBump:E!=null?E:!1,isTiny:O,isCentered:Q,isCollection:LkX(B),
arrangement:l,addMarginForFullbleed:g===1&&B!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:g===1&&B==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:VZt(B,w,u),disableRounding:g===5||iGl(B,M)||g===1&&B==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:LkX(B)?2:0,useLegacyTypography:!(u==null||!u.useLegacyTypography),useRichGridLegacyTypography:!(u==null||!u.useRichGridLegacyTypography)&&!_.Y("web_enable_typography_bump"),compactMetadata:l===0&&B==="LOCKUP_CONTENT_TYPE_VIDEO"}};
LkX=function(g){switch(g){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}};
iGl=function(g,r){if(r&&g==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(g){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
VZt=function(g,r,E){if(r&&(E==null||!E.alwaysRespectPodcastShowAspectRatio||g!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(g){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}};
ZGJ=function(g){switch(g){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"}};
yzS=function(g){switch(g){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
vxB=function(g){switch(g){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}};
_.iL=function(g){if(g){var r;return((r=_.rM().resolve(_.gM(_.Vy)))==null?0:r())?g.darkThemeImage:g.image}};
gsA=function(g,r,E,B,w,O){if(w&&O&&r==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:w,height:O};if(!E)return{};w=E.size;E=E.allowFullWidth;if(r==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&E)return{fullWidth:!0};if(w===void 0)return{};switch(g){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:w,height:w};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:w,height:1/dxo*w};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:w*
TQP,height:w};default:return(B==null?0:B.height)&&(B==null?0:B.width)?B.width/B.height>1?{maxWidth:w*TQP}:{maxWidth:w}:{maxWidth:w}}};
rbo=function(g){var r;return g&&((r=_.iL(g.themedImage))!=null?r:g.image)};
EsJ=function(g){var r;return g==null?void 0:(r=g.sources)==null?void 0:r[0]};
BPA=function(g){switch(g){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
wlP=function(g){switch(g.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"}}};
SJJ=function(g){var r=_.jDc(_.V7().getState())||"";return g?g+r:""};
ObQ=function(g){switch(g){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
MXA=function(g){var r=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],E=_.U(_.Dk(void 0,void 0,"JrqNsb")),B=E.next().value,w=E.next().value,O=_.U(_.Dk(void 0,void 0,"rWytse"));E=O.next().value;var M=O.next().value;O=_.U(_.Dk(void 0,void 0,"DHRqxe"));var u=O.next().value,l=O.next().value;return{touchFeedbackEvents:{pointerUpEvent:B,pointerDownEvent:E,pointerLeaveEvent:u},touchFeedbackOnPointerUp:_.HK(function(Q){ULc(_.eT(Q),r)||(w(Q),M(void 0),l(void 0))}),
touchFeedbackOnPointerDown:_.HK(function(Q){g==null||g(Q);ULc(_.eT(Q),r)||(M(Q),w(void 0),l(void 0))}),
touchFeedbackOnPointerLeave:_.HK(function(Q){ULc(_.eT(Q),r)||(l(Q),M(void 0),w(void 0))})}};
ULc=function(g,r){r=r===void 0?[]:r;r=[].concat(_.jW(r),["BUTTON".toString()]);g=_.U(g);for(var E=g.next();!E.done;E=g.next()){E=E.value;for(var B=_.U(r),w=B.next();!w.done;w=B.next())if(E.tagName===w.value)return!0}return!1};
qJc=function(g){switch(g){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"}};
uqL=function(g){return g.scrollHeight-g.offsetHeight>1};
lvD=function(g,r){var E;return LW(g,((E=g.content)==null?void 0:E.length)||0,!r)};
DLS=function(g,r){r=lvD(g,r);var E,B;return(((E=g.content)==null?void 0:E.length)||0)>(((B=r.content)==null?void 0:B.length)||0)};
GcX=function(g,r,E,B,w,O){if(!r||Lm){var M;return LW(g,((M=g.content)==null?void 0:M.length)||0,!0)}r=B.value;if(!E.value||!r||!g.content)return g;E=0;B=g.content.length;M=0;ost||(ost=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var u=ost;for(w=w*O*u;E<=B;)O=Math.floor(E+(B-E)/2),u=LW(g,O)||g,r.firstChild&&(r.firstChild.textContent=u.content),r.scrollHeight>w?B=O-1:(M=O,E=O+1);return LW(g,M)};
Qgo=function(g,r){var E,B;return(((E=g.content)==null?void 0:E.length)||0)>(((B=r.content)==null?void 0:B.length)||0)};
zeB=function(g){var r=g.isTruncated;var E=g.isAbsoluteButton;var B=g.lineHeight;var w=g.contentRef.value,O=g.placeholderTruncationTextRef.value,M=g.truncationTextRef.value;g=g.appDirection==="rtl";if(w&&O){var u=O.offsetLeft;g&&(u=w.offsetWidth-O.offsetWidth-O.offsetLeft);if(r){r=O.offsetWidth;O=w.offsetWidth;var l=E?O-r-70:u-70;B="linear-gradient(\n      to top, transparent 0%,\n      transparent "+B+"rem,\n      #000 "+B+"rem,\n      #000 100%), linear-gradient(\n      to "+((g?"left":"right")+
",\n      #000 0px,\n      #000 "+l+"px,\n      transparent "+(E?O-r:l+70)+"px)");w.style.setProperty("-webkit-mask-image",B);w.style.setProperty("mask-image",B)}else w.style.setProperty("-webkit-mask-image",""),w.style.setProperty("mask-image","");E?g?(M.style.setProperty("left","0"),M.style.setProperty("right","unset")):(M.style.setProperty("left",""),M.style.setProperty("right","0")):g?(M.style.setProperty("left","unset"),M.style.setProperty("right",u+"px")):(M.style.setProperty("left",u+"px"),
M.style.setProperty("right","unset"))}};
kcY=function(g,r,E,B,w){var O=_.VI("truncated-text-content"),M=_.VI("truncated-text-content"),u=_.VI("button"),l=_.VI("button"),Q=_.VI("button"),z=_.rM().resolve(_.Zh),k=_.U(Ga(lvD(g,w))),H=k.next().value,R=k.next().value;k=_.U(Ga(_.Y("enable_truncated_text_max_lines")?Qgo(g,H):DLS(g,w)));var A=k.next().value,J=k.next().value,e=tk(null);_.bu(function(){function C(){if(O.value&&u.value&&Q.value)if(_.Y("enable_truncated_text_max_lines")){var c=GcX(g,w,O,M,r,E);R(c);B||requestAnimationFrame(function(){if(O.value&&
u.value&&Q.value){var h=uqL(O.value)||Qgo(g,c);J(h);zeB({isTruncated:h,isAbsoluteButton:uqL(O.value),lineHeight:E,contentRef:O,placeholderTruncationTextRef:u,truncationTextRef:Q,appDirection:z})}})}else R(lvD(g,w)),requestAnimationFrame(function(){if(O.value&&u.value&&Q.value)if(uqL(O.value))J(!0),B||zeB({isTruncated:!0,
isAbsoluteButton:!0,lineHeight:E,contentRef:O,placeholderTruncationTextRef:u,truncationTextRef:Q,appDirection:z});else{var h=DLS(g,w);J(h);B||zeB({isTruncated:h,isAbsoluteButton:!1,lineHeight:E,contentRef:O,placeholderTruncationTextRef:u,truncationTextRef:Q,appDirection:z})}})}
var X,Z;(X=e.value)==null||(Z=X.stop)==null||Z.call(X);X=new _.VU(C,17);C();e.value=X},[g.content,
r,E,z,B,w]);_.Jk(function(){var C=function(){ost=void 0;var Z,c;(Z=e.value)==null||(c=Z.fire)==null||c.call(Z)};
if(window.ResizeObserver){var X=new ResizeObserver(C);X.observe(O.value);return function(){var Z,c;(Z=e.value)==null||(c=Z.stop)==null||c.call(Z);X.disconnect()}}window.addEventListener("resize",C);
return function(){var Z,c;(Z=e.value)==null||(c=Z.stop)==null||c.call(Z);window.removeEventListener("resize",C)}});
return{isTruncated:A,displayText:H,contentRef:O,hiddenRef:M,placeholderTruncationTextRef:u,hiddenTruncationTextRef:l,truncationTextRef:Q}};
HbA=function(g){var r=g.text;var E=g.alwaysShowTruncationText;var B=g.truncationText;var w=g.onTextClick;var O=g.maxLines===void 0?2:g.maxLines;var M=g.disableTextMask===void 0?!1:g.disableTextMask;var u=g.textStyle===void 0?"default":g.textStyle;var l=g.accessibilityLabel===void 0?"":g.accessibilityLabel;var Q=g.textSize===void 0?"small":g.textSize;var z=g.alwaysTruncateAtMaxLines===void 0?!1:g.alwaysTruncateAtMaxLines;var k=g.expandOnClick===void 0?!1:g.expandOnClick;g=_.U(Ga(!1));var H=g.next().value,
R=g.next().value;g=_.HK(function(){k&&R(!H);w==null||w()});
a:switch(Q){case "medium":var A=2;break a;case "large":A=2.2;break a;default:A=1.8}var J=kcY(r,H?Infinity:O,A,M,z),e=J.isTruncated;r=J.displayText;z=J.contentRef;var C=J.hiddenRef,X=J.placeholderTruncationTextRef,Z=J.hiddenTruncationTextRef;J=J.truncationTextRef;var c={};E=_.zw((c["truncated-text-wiz__absolute-button"]=!M,c["truncated-text-wiz__bottom-button"]=M,c["truncated-text-wiz--hidden"]=!(!H&&(E||e)),c));M={};u=_.zw((M["truncated-text-wiz"]=!0,M["truncated-text-wiz--overlay"]=u==="overlay",
M["truncated-text-wiz--medium-text"]=Q==="medium",M["truncated-text-wiz--large-text"]=Q==="large",M["truncated-text-wiz--primary-text"]=u==="primary-text",M));Q={};Q=_.zw((Q["truncated-text-wiz__truncated-text-content"]=!0,Q["truncated-text-wiz__truncated-text-content--hidden-text-content"]=!0,Q));return _.G("truncated-text",{class:u,"on:click":g,style:"line-height: "+A+"rem;"},_.G("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",el:z,style:H?"":"max-height: "+O*A+"rem;"},
_.G(_.hf,{text:r}),_.G("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:X,style:"line-height: "+A+"rem;"},_.G(_.hf,{text:B}))),_.G("truncated-text-content",{class:Q,el:C,style:H?"":"max-height: "+O*A+"rem;","aria-hidden":"true"},_.G(_.hf,{text:r}),_.G("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:Z,style:"line-height: "+A+"rem;"},_.G(_.hf,{text:B}))),_.G("button",{"aria-label":l,class:E,el:J,style:"line-height: "+A+"rem;"},
_.G(_.hf,{text:B})))};
plo=function(g){return g.scrollHeight-g.offsetHeight>1};
YJS=function(g,r){var E;return LW(g,((E=g.content)==null?void 0:E.length)||0,!r)};
ReY=function(g,r){r=YJS(g,r);var E,B;return(((E=g.content)==null?void 0:E.length)||0)>(((B=r.content)==null?void 0:B.length)||0)};
sgD=function(g,r,E,B,w,O){if(!r||Lm){var M;return LW(g,((M=g.content)==null?void 0:M.length)||0,!0)}r=B.value;if(!E.value||!r||!g.content)return g;E=0;B=g.content.length;M=0;nsS||(nsS=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var u=nsS;for(w=w*O*u;E<=B;)O=Math.floor(E+(B-E)/2),u=LW(g,O)||g,r.firstChild&&(r.firstChild.textContent=u.content),r.scrollHeight>w?B=O-1:(M=O,E=O+1);return LW(g,M)};
fvt=function(g,r){var E,B;return(((E=g.content)==null?void 0:E.length)||0)>(((B=r.content)==null?void 0:B.length)||0)};
$LX=function(g){var r=g.isTruncated;var E=g.isAbsoluteButton;var B=g.lineHeight;var w=g.contentRef.value,O=g.placeholderTruncationTextRef.value,M=g.truncationTextRef.value;g=g.appDirection==="rtl";if(w&&O){var u=O.offsetLeft;g&&(u=w.offsetWidth-O.offsetWidth-O.offsetLeft);if(r){r=O.offsetWidth;O=w.offsetWidth;var l=E?O-r-70:u-70;B="linear-gradient(\n      to top, transparent 0%,\n      transparent "+B+"rem,\n      #000 "+B+"rem,\n      #000 100%), linear-gradient(\n      to "+((g?"left":"right")+
",\n      #000 0px,\n      #000 "+l+"px,\n      transparent "+(E?O-r:l+70)+"px)");w.style.setProperty("-webkit-mask-image",B);w.style.setProperty("mask-image",B)}else w.style.setProperty("-webkit-mask-image",""),w.style.setProperty("mask-image","");E?g?(M.style.setProperty("left","0"),M.style.setProperty("right","unset")):(M.style.setProperty("left",""),M.style.setProperty("right","0")):g?(M.style.setProperty("left","unset"),M.style.setProperty("right",u+"px")):(M.style.setProperty("left",u+"px"),
M.style.setProperty("right","unset"))}};
jgY=function(g,r,E,B,w){var O=_.VI("truncated-text-content"),M=_.VI("truncated-text-content"),u=_.VI("button"),l=_.VI("button"),Q=_.VI("button"),z=_.rM().resolve(_.Zh),k=_.U(_.Y3(function(){return YJS(g(),w())})),H=k.next().value,R=k.next().value;
k=_.U(_.Y3(function(){return _.Y("enable_truncated_text_max_lines")?fvt(g(),H()):ReY(g(),w())}));
var A=k.next().value,J=k.next().value,e=null;_.bQ(function(){function C(){if(O.value&&u.value&&Q.value)if(_.Y("enable_truncated_text_max_lines")){var c=sgD(g(),w(),O,M,r(),E());R(c);B()||requestAnimationFrame(function(){if(O.value&&u.value&&Q.value){var h=plo(O.value)||fvt(g(),c);J(h);$LX({isTruncated:h,isAbsoluteButton:plo(O.value),lineHeight:E(),contentRef:O,placeholderTruncationTextRef:u,truncationTextRef:Q,appDirection:z})}})}else R(YJS(g(),w())),requestAnimationFrame(function(){if(O.value&&u.value&&
Q.value){var h=g();
r();var y=E(),OD=B(),uB=w();plo(O.value)?(J(!0),OD||$LX({isTruncated:!0,isAbsoluteButton:!0,lineHeight:y,contentRef:O,placeholderTruncationTextRef:u,truncationTextRef:Q,appDirection:z})):(h=ReY(h,uB),J(h),OD||$LX({isTruncated:h,isAbsoluteButton:!1,lineHeight:y,contentRef:O,placeholderTruncationTextRef:u,truncationTextRef:Q,appDirection:z}))}})}
var X,Z;(X=e)==null||(Z=X.stop)==null||Z.call(X);X=new _.VU(C,17);C();e=X},"EujZId");
_.Jk(function(){R(YJS(g(),w()));J(_.Y("enable_truncated_text_max_lines")?fvt(g(),H()):ReY(g(),w()));var C=function(){nsS=void 0;var Z,c;(Z=e)==null||(c=Z.fire)==null||c.call(Z)};
if(window.ResizeObserver){var X=new ResizeObserver(C);X.observe(O.value);_.J5(function(){var Z,c;(Z=e)==null||(c=Z.stop)==null||c.call(Z);X.disconnect()})}else window.addEventListener("resize",C),_.J5(function(){var Z,c;
(Z=e)==null||(c=Z.stop)==null||c.call(Z);window.removeEventListener("resize",C)})});
return{isTruncated:A,displayText:H,contentRef:O,hiddenRef:M,placeholderTruncationTextRef:u,hiddenTruncationTextRef:l,truncationTextRef:Q}};
_.AbA=function(g,r,E,B,w,O){var M=function(Q){Q.preventDefault()},u=function(){var Q=g.value;
if(Q)return(Q._data=r)?(Q.addEventListener("touchstart",J7o,{passive:!0}),Q.addEventListener("click",tdl),r.clickTrackingParams&&(Q.params={itct:r.clickTrackingParams}),F3S(Q,r),Aa(Q,erQ(r)||"")):Q.addEventListener("click",M),function(){r?(Q.removeEventListener("touchstart",J7o,{passive:!0}),Q.removeEventListener("click",tdl)):Q.removeEventListener("click",M)}},l=function(){var Q=g.value;
if(Q){var z=_.XI({innertubeCommand:r,elementsCommand:E,forceNewState:B,stopPropagation:O});if(z)return Q._data=z._data,z["aria-haspopup$"]&&Q.setAttribute("aria-haspopup",z["aria-haspopup$"].toString()),z["force-new-state$"]&&Q.setAttribute("force-new-state",z["force-new-state$"].toString()),z.href$&&Aa(Q,z.href$),z.rel$&&(Q.rel=z.rel$),z.role$&&Q.setAttribute("role",z.role$),z.target$&&(Q.target=z.target$),Q.params=z.params,z.onclick&&Q.addEventListener("click",z.onclick),z.onpointerdown&&Q.addEventListener("onpointerdown",
z.onpointerdown),function(){z.onclick&&Q.removeEventListener("click",z.onclick);z.onpointerdown&&Q.removeEventListener("onpointerdown",z.onpointerdown)}}};
_.bu(w?l:u,[r,E])};
bbJ=function(g){var r=g.children;var E=g.className;var B=g.dir;var w=g.style;var O=g.role;var M=g.ariaSelected;var u=g.ariaLabel;var l=g.ariaHidden;var Q=g.ariaLabelledby;var z=g.ariaDescribedby;var k=g.command;var H=g.elementsCommand;var R=g.forceNewState;var A=g.isPlaceholder;var J=g.tabIdentifier;var e=g.target;var C=g.tabIndex;var X=g.useATagConfig;var Z=g.stopPropagation;g=_.VI("a");_.AbA(g,k,H,R,X,Z);return _.G("a",{el:g,"on:click":_.HK(function(){return Z===!1}),
class:E,style:w,dir:B,role:O?O:k?void 0:"group","aria-hidden":l?!0:void 0,"aria-label":u,"aria-labelledby":Q,"aria-describedby":z,"aria-selected":M,tabindex:C!==void 0?C:void 0,target:e,"tab-identifier":J,"force-new-state":R?!0:void 0,"is-placeholder":A?!0:void 0},r)};
JbB=function(g){return{content:g!=null?g:""}};
PxA=function(g){return _.xP(g.onTap)||_.Cm(g.rendererContext)};
eeX=function(g){var r=g.data;g={class:g.className};a:switch(r.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var E="yt-video-attribute-view-model--vertical";break a;default:E="yt-video-attribute-view-model--horizontal"}a:switch(r.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var B="yt-video-attribute-view-model--image-small";break a;default:B="yt-video-attribute-view-model--image-large"}a:switch(r.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var w="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":w="yt-video-attribute-view-model--image-avatar";break a;default:w=""}a:switch(r.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var O="yt-video-attribute-view-model--metadata-header";break a;default:O=""}a:switch(r.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var M="yt-video-attribute-view-model--container-card";break a;default:M=""}E=["yt-video-attribute-view-model",E,B,w,O,M,PxA(r)?"yt-video-attribute-view-model--clickable":
""].join(" ");if(r.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var u="";else B=r.lightColorPalette,w=r.darkColorPalette,O=((u=_.rM().resolve(_.gM(_.Vy)))==null?0:u())&&w?w:B,u=(u=O==null?void 0:O.section2Color)?_.XT(u):"";return _.G("yt-video-attribute-view-model",g,_.G("div",{class:E,style:_.Rl({"background-color":u})},PxA(r)||!_.Y("web_video_attribute_view_model_a11y_fix")?_.G(bbJ,{className:"yt-video-attribute-view-model__content-container",useATagConfig:!0,stopPropagation:!1,command:PxA(r),
role:"group",ariaLabel:r.title,forceNewState:!0},r.heroText||r.image?_.G(tXV,{data:r}):null,_.G(FVV,{data:r,sizeSmall:r.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"})):_.G("div",{class:"yt-video-attribute-view-model__content-container"},r.heroText||r.image?_.G(tXV,{data:r}):null,_.G(FVV,{data:r,sizeSmall:r.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
WVl=function(g){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:g.overflowMenuA11yLabel,onTap:function(r){r.preventDefault();r.stopPropagation();if(g.overflowMenuOnTap){var E=_.XI({elementsCommand:g.overflowMenuOnTap,forceNewState:!0});if(E==null?0:E.onclick)E.onclick(r)}}}};
tXV=function(g){g=g.data;var r,E=((r=_.rM().resolve(_.gM(_.Vy)))==null?0:r())&&g.darkThemeImage?g.darkThemeImage:g.image;r=WVl(g);return _.G("div",{class:"yt-video-attribute-view-model__hero-section"},E?_.G(_.vw,{data:E,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):g.heroText?_.G("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.G("span",{class:"yt-video-attribute-view-model__hero-text"},g.heroText)):null,g.overflowMenuOnTap?
_.G("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.G(ZB,{data:r,iconName:"MORE_VERT"})):null)};
FVV=function(g){var r=g.data;g=g.sizeSmall;var E=r.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",B=PxA(r);B=_.XI({innertubeCommand:B});B=Ny(B);var w={};g={class:_.zw("yt-video-attribute-view-model__metadata",(w["yt-video-attribute-view-model--small-font"]=g,w)),role:B?"link":"group"};B=_.G("h1",{class:"yt-video-attribute-view-model__title"},r.title);E=r.subtitle?_.G("h4",{class:"yt-video-attribute-view-model__subtitle"},E?_.G(CxP,{text:JbB(r.subtitle),truncationText:JbB(r.subtitleTruncationText),
maxLines:2}):_.G("span",null,r.subtitle)):null;if(r.secondarySubtitle){w=r.secondarySubtitle;if(w!=null&&w.attachmentRuns){for(var O=[],M=_.U(w.attachmentRuns),u=M.next();!u.done;u=M.next())u=u.value,u.element&&O.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}}}})}));w=Object.assign({},w,{attachmentRuns:O})}w=_.G("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.G(_.hf,{text:w}))}else w=null;return _.G("div",g,B,E,w,r.buttonViewModel?KVl(r.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
xLL=function(g){return{content:g!=null?g:""}};
avJ=function(g){return _.xP(g.onTap)||_.Cm(g.rendererContext)};
XlD=function(g){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:g.overflowMenuA11yLabel,onTap:function(r){r.preventDefault();r.stopPropagation();if(g.overflowMenuOnTap){var E=_.XI({elementsCommand:g.overflowMenuOnTap,forceNewState:!0});if(E==null?0:E.onclick)E.onclick(r)}}}};
_.yU=function(g,r,E,B,w){B=B===void 0?{}:B;if(!w||Math.random()<5E-4){r=r||null;E=E||null;g=g instanceof Error?g:new _.Rj(g);if(g.args)for(var O=_.U(g.args),M=O.next();!M.done;M=O.next())M=M.value,M instanceof Object&&(B=Object.assign({},M,B));B.category="H5 Ads Control Flow";r&&(B.slot=r?"slot:  "+r.slotType:"");E&&(B.layout=E?"layout:  "+E.layoutType:"",B.layoutId=E.layoutId);w&&(B.known_error_aggressively_sampled=!0);g.args=[B];_.el(g)}};
_.NPc=function(g,r){_.OS(g,"yt-open-popup-action",[_.vs(r),g])};
_.vX=function(g,r){_.NPc(g,_.Lf(r))};
mLc=function(g){if(!g)return"";if(IvY[g])return IvY[g];dr||(dr=_.HT("A"));dr.href!==g&&Aa(dr,g);var r=dr.pathname;IvY[g]=r.startsWith("/")?r:"/"+r;return IvY[g]};
cbJ=function(){var g=mLc(window.location.href);if(g==="/")return"home";if(g.startsWith("/results"))return"search";if(g.startsWith("/watch"))return"watch";if(g.startsWith("/shorts"))return"shorts";if(g.startsWith("/hashtag"))return"hashtag";if(g.startsWith("/create_channel"))return"create_channel";if(g.startsWith("/@")||g.startsWith("/user/")||g.startsWith("/channel/"))return"channel";if(g.startsWith("/experiments"))return"experiments";if(g.startsWith("/sponsor_channel"))return"sponsorship";if(g.startsWith("/select_site"))return"settings";
if(g.startsWith("/locate"))return"locate";if(g.startsWith("/redeem"))return"redeem";if(g.startsWith("/musicpremium")||g.startsWith("/premium")||g.startsWith("/red"))return"premium";if(g.startsWith("/paid_memberships"))return"paid_memberships";if(g.startsWith("/oops"))return"oops";if(g.startsWith("/clip"))return"clip";var r;return(Ta==null?void 0:(r=Ta.response)==null?void 0:r.page)==="404"?"404":g.startsWith("/feed/history")?"history":g.startsWith("/feed/library")?"library":g.startsWith("/feed/subscriptions")?
"subscriptions":g.startsWith("/feed/trending")?"trending":g.startsWith("/feed/news_destination")?"news":g.startsWith("/playlist")?"playlist":g.startsWith("/minor_moment")?"minor_moment":g.startsWith("/playable/")||g.match("^/playables/(?!saved).")?"mini_app":g.startsWith("/playables")?"playables":g.startsWith("/create/live/join")?"open_in_app":g.startsWith("/feed/explore")?"explore":"browse"};
_.heX=function(){var g=Ta==null?void 0:Ta.response,r=g==null?void 0:g.endpoint;if(!r)return(g==null?void 0:g.page)==="watch"?"watch":cbJ();var E;g=(E=_.n(r==null?void 0:r.commandMetadata,_.dU))==null?void 0:E.webPageType;E=!1;if(g&&!ibV.includes(g))switch(g){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 B;return((B=_.n(r==null?void 0:r.commandMetadata,_.dU))==null?0:B.url)&&mLc(_.n(r.commandMetadata,_.dU).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var w;return(r=(w=_.n(r,_.ka))==null?void 0:w.browseId)?LVY[r]||"browse":"browse";default:E=!0}if(_.n(r,_.g0)||_.n(r,VXc))return"sponsorship";w=mLc(window.location.href);if(w.startsWith("/experiments"))return"experiments";if(w.startsWith("/create_channel"))return"create_channel";
if(_.n(r,_.II)&&w.startsWith("/shorts"))return"shorts";if(_.n(r,_.II)&&w.startsWith("/watch"))return"watch";E&&(r=new _.Rj("Unsupported mWeb page type",{pathname:w,webPageType:g}),_.tn(r));return"browse"};
r0=function(g,r,E,B){return g&&r?g!==E||r!==B?(_.yU(Error("Mh"),void 0,void 0,{"stored-slot":g,"stored-layout":r,"latest-slot":E,"latest-layout":B}),!1):!0:!1};
ZbY=function(g,r,E){return g({targetId:r},function(B){return E.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},B,{header:E.continuationItems?E.continuationItems[0]:void 0}):Object.assign({},B,{contents:E.continuationItems?E.continuationItems:[]})})};
ybD=function(g,r,E,B){if(r=r.trackingParams){var w,O=(w=E.getScreenLayer)==null?void 0:w.call(E);E=_.PE(O);w=_.JF(O);if(E&&w){var M=_.fW(r);_.Y("combine_ve_grafts")?g.graftServerVe(r,w,O):_.N2(E,w,M);B==null||B(M)}}};
dLt=function(g){var r;return((r=vsl.get(g))==null?void 0:r.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
rJS=function(g,r){var E={type:r.slotType,controlFlowManagerLayer:TPV.get(r.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};r.slotEntryTrigger&&(E.entryTriggerType=r.slotEntryTrigger.triggerType);r.slotPhysicalPosition!==1&&(E.slotPhysicalPosition=r.slotPhysicalPosition);if(g){E.debugData={slotId:r.slotId};if(g=r.slotEntryTrigger)E.debugData.slotEntryTriggerData=gZl(g);g=r.slotFulfillmentTriggers;E.debugData.fulfillmentTriggerData=[];g=_.U(g);for(var B=g.next();!B.done;B=g.next())E.debugData.fulfillmentTriggerData.push(gZl(B.value));
r=r.slotExpirationTriggers;E.debugData.expirationTriggerData=[];r=_.U(r);for(g=r.next();!g.done;g=r.next())E.debugData.expirationTriggerData.push(gZl(g.value))}return E};
gZl=function(g,r){var E={type:g.triggerType};r!=null&&(E.category=r);g.triggeringSlotId!=null&&(E.triggerSourceData||(E.triggerSourceData={}),E.triggerSourceData.associatedSlotId=g.triggeringSlotId);g.triggeringLayoutId!=null&&(E.triggerSourceData||(E.triggerSourceData={}),E.triggerSourceData.associatedLayoutId=g.triggeringLayoutId);return E};
EZl=function(g,r,E,B){r={opportunityType:r};g&&(B||E)&&(B=_.bO(B||[],function(w){return rJS(g,w)}),r.debugData=Object.assign({},E&&E.length>0?{associatedSlotId:E}:{},B.length>0?{slots:B}:{}));
return r};
B6Y=function(g){return E0(g.opportunityAdapterMap).concat(E0(g.triggerAdapterMap)).concat(E0(g.fulfillmentAdapterFactoryMap)).concat(E0(g.slotAdapterFactoryMap)).concat(E0(g.layoutRenderingAdapterFactoryMap))};
E0=function(g){var r=[];g=_.U(g.values());for(var E=g.next();!E.done;E=g.next())E=E.value,E.isAdsControlFlowEventListener&&r.push(E);return r};
w0=function(g){var r=g.slotId,E=g.slotType,B=g.slotPhysicalPosition;return r===void 0?new Bm("Cannot construct a slot due to the missing id.",{adSlotMetadata:g}):E===void 0?new Bm("Cannot construct a slot due to the missing type.",{adSlotMetadata:g}):B===void 0?new Bm("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:g}):{slotId:r,slotType:E,slotPhysicalPosition:B,managerLayer:"external",adSlotLoggingData:g.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new wRP}};
SFQ=function(g){var r=g.layoutId,E=g.layoutType;return r===void 0?new S7("Cannot construct a layout due to the missing id.",{adLayoutMetadata:g}):E===void 0?new S7("Cannot construct a layout due to the missing type.",{adLayoutMetadata:g}):{layoutId:r,layoutType:E,managerLayer:"external",adLayoutLoggingData:g.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new wRP,interactionLoggingAdsClientData:{}}};
OQX=function(g){if((g=g.value)&&g.querySelector("img")){var r=g.querySelector("img");r.addEventListener("error",function(){zBL(r.src).then(function(E){(E=_.sU(E).toString())?r.src=E:r.removeAttribute("src")}).catch(function(){r.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
U0=function(g,r){if(r&&(UKB(r.viewableCommand)||UKB(r.endOfSessionCommand))){g=g.value;var E=M4A(r==null?void 0:r.viewableCommand);r=M4A(r==null?void 0:r.endOfSessionCommand);if(!O0){var B=_.wM("custom_active_view_tos_timeout_ms");O0=B>0&&B!==36E5?new qFo(uCA(),B):new qFo(uCA())}l5V(O0,g);DKl(O0,g,E,r)}};
Mq=function(g){O0&&l5V(O0,g.value)};
uCA=function(){var g=_.Ca("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(g==null?void 0:g.length)===2?g[1]:null};
UKB=function(g){g=_.xP(g);return!(g==null||!g.loggingUrls)&&g.loggingUrls.length>0};
M4A=function(g){if(!g)return[];var r=[],E,B;((B=(E=_.xP(g))==null?void 0:E.loggingUrls)!=null?B:[]).forEach(function(w){w.baseUrl&&r.push(w.baseUrl)});
return r};
oZY=function(g){return g.shorts.isDesktopSmallWidth};
_.G9D=function(g){return g.shorts.isShortsActive};
_.QPA=function(g){return g.shorts.isWatchWhileMode};
_.qq=function(g){return g.shorts.isFullscreen};
_.oz=function(g){return g.shorts.isShortsPipActive};
k9t=function(g){var r,E;if(g=(r=_.n(g.reelsAdCardButtoned,zyQ))==null?void 0:(E=r.animatedRenderingConfig)==null?void 0:E.easeOutSeconds)return g+"s"};
pRL=function(g,r,E){return _.q(function(B){return B.return(new Promise(function(w){var O=new Image;O.onload=function(){w(new HQD(g,r,E,O.naturalWidth,O.naturalHeight))};
O.src=E.toString()}))})};
YFV=function(g,r){return Math.round(g/1E-5)===Math.round(r/1E-5)};
Ryt=function(g,r){return Math.round(g/1E-5)===Math.round(r/1E-5)};
nZY=function(g,r){return g.year===r.year&&g.month===r.month&&g.day===r.day};
sPc=function(g,r){return g.year!==r.year?g.year<r.year:g.month!==r.month?g.month<r.month:g.day<r.day};
$Kc=function(g){return g.day===f5B(g.year,g.month)?g.month===11?{year:g.year+1,month:0,day:1}:{year:g.year,month:g.month+1,day:1}:{year:g.year,month:g.month,day:g.day+1}};
jPX=function(){var g=new Date,r={year:g.getFullYear(),month:g.getMonth(),day:g.getDate()};return{start:r,end:{year:g.getFullYear()+2,month:g.getMonth(),day:g.getDate()},selectedDate:$Kc(r)}};
AJt=function(g){return(new cs(2)).format(new Date(g.year,g.month,g.day))};
bQo=function(g){return{year:g.getFullYear(),month:g.getMonth(),day:g.getDate()}};
JJQ=function(g,r){g=(g+(Number(r.utcOffsetSec)+(new Date(g*1E3)).getTimezoneOffset()*60))*1E3;r=bQo(new Date(g));return{date:r,secondsSinceMidnight:Math.floor((g-(new Date(r.year,r.month,r.day)).getTime())/1E3)}};
PSc=function(g,r){r=r.months.findIndex(function(E){return E.year===g.year&&E.month===g.month});
return r>=0?r:void 0};
t4P=function(g){if(!g)return!1;try{if(g.host&&g.host.tagName==="YT-FORMATTED-STRING"&&g.host.id==="contenteditable-textarea"||g.nodeType===Node.ELEMENT_NODE&&g.tagName==="YTD-COMMENTBOX")return!0}catch(r){return!1}return t4P(g.parentNode)};
Gu=function(g){return g?!(g.tagName!=="A"||!g.href||!g.classList.contains("yt-simple-endpoint")):!1};
FPJ=function(g){return g?g.tagName==="IMG"&&g.classList.contains("emoji"):!1};
eyl=function(g,r,E){if(!g)return null;var B=Gu(g);if(B&&E)return r=g.pathname.substring(g.pathname.indexOf("/channel/")+9),document.createTextNode("@"+r);if(B&&!E)return document.createTextNode("");if(FPJ(g))return E=g.alt,g=g.dataset.emojiId,!g&&r&&(r=_.Qj(r,E))&&r.isCustomEmoji&&(g=r.emojiId),g?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+g+">"):document.createTextNode(E);B=g.cloneNode(!1);for(var w=0;w<g.childNodes.length;++w){var O=eyl(g.childNodes[w],r,E);O&&B.appendChild(O)}return B};
zu=function(g){return g?Gu(g)?g:zu(g.lastChild):null};
WPX=function(g){return g?Gu(g)?g:WPX(g.firstChild):null};
CSl=function(g){if(!g)return null;for(var r=g.previousSibling;r;)if(r.nodeType===Node.ELEMENT_NODE&&r.nodeName==="BR")r=r.previousSibling;else if(r.nodeType===Node.TEXT_NODE&&/\s+/.test(r.textContent))r=r.previousSibling;else break;(r=zu(r))?g=r:g=(g=g.parentNode)?zu(g.previousElementSibling):null;return g};
KPD=function(g){if(!g)return null;for(var r=g.nextSibling;r;)if(r.nodeType===Node.ELEMENT_NODE&&r.nodeName==="BR")r=r.nextSibling;else if(r.nodeType===Node.TEXT_NODE&&/\s+/.test(r.textContent))r=r.nextSibling;else break;return(r=WPX(r))?r:KPD(g.parentNode)};
xKQ=function(g){var r=_.kj(),E=r.JSC$9384_getStartNode();if(!t4P(E.parentNode))return null;r=r.JSC$9384_getStartOffset();if(E.nodeType===Node.TEXT_NODE){var B=_.CN(E,Gu);if(B){if(g&&r===0||!g&&r===E.length)return B}else{if(g&&r===E.length)return!E||E.nodeName==="BR"||E.nextElementSibling&&_.Hm(E.nextElementSibling,"display")==="block"?null:WPX(E.nextElementSibling);if(!g&&r===0)return E?zu(E.previousElementSibling):null}}if(E.nodeType===Node.ELEMENT_NODE)if(g){if(0<=r&&r<E.childNodes.length)return WPX(E.childNodes[r])}else if(0<
r&&r<=E.childNodes.length)return zu(E.childNodes[r-1]);return null};
a5l=function(g,r,E){if(!g)return null;if(g.nodeType===Node.TEXT_NODE)if(E){var B=CSl(g);if(B&&!/^\s+\S/.test(g.wholeText.substr(0,r)))return B}else if((B=KPD(g))&&!/\S\s+/.test(g.wholeText.substr(r,g.wholeText.length)))return B;return g.nodeType===Node.ELEMENT_NODE?E?CSl(g.childNodes[r]):KPD(g.childNodes[r]):a5l(g.parentNode,r,E)};
XRA=function(g){if(g.hasChildNodes())switch(g.tagName){case "DIV":case "A":case "SPAN":var r="";for(g=g.firstChild;g;g=g.nextSibling)r+=XRA(g);return r;default:return""}else switch(g.nodeType){case 3:return g.textContent;default:return""}};
p0=function(g,r){return g.year===r.year&&g.month===r.month&&g.day===r.day};
Yj=function(g,r){return g.year!==r.year?g.year<r.year:g.month!==r.month?g.month<r.month:g.day<r.day};
N6D=function(g){return{year:g.getFullYear(),month:g.getMonth(),day:g.getDate()}};
I5c=function(g){var r=c9P;r=r===void 0?c9P:r;r(new Date(g.year,g.month,g.day))};
Rz=function(g){return N6D(new Date(Number(g.seconds)*1E3))};
mKP=function(g){return g.year!==void 0&&g.month!==void 0&&g.day!==void 0};
cJJ=function(g){return g.start!==void 0&&g.end!==void 0};
iQc=function(g){return cJJ(g)?g.start:g};
LPJ=function(g){return cJJ(g)?g.end:void 0};
hyt=function(g,r){for(var E=[],B=new Date(g.start.year,g.start.month);B.getFullYear()<g.end.year||B.getFullYear()===g.end.year&&B.getMonth()<=g.end.month;){var w=E,O=w.push,M=B.getFullYear(),u=B.getMonth(),l=g,Q=r,z=void 0,k=[],H=Object.freeze({extraCssClass:"invisible"}),R=new Date(M,u),A=N6D(R);R=R.getDay();for(var J=N6D(new Date);A.month===u;){R!==V4o&&z||(z=Array.from({length:7}).fill(H),k.push(z));var e={date:{year:M,month:u,day:A.day},extraCssClass:"",debugClass:""};e.extraCssClass=Q(e.date,
A,J,l).trim();z[(R-V4o+7)%7]=e;A=A.day===f5B(A.year,A.month)?A.month===11?{year:A.year+1,month:0,day:1}:{year:A.year,month:A.month+1,day:1}:{year:A.year,month:A.month,day:A.day+1};R=(R+1)%7}O.call(w,{weeks:k,monthLabel:n0.SHORTMONTHS[u]+" "+M,year:M,month:u,monthLabelExtraCssClass:k[0][2]===H?"shift-down-label":""});B.setMonth(B.getMonth()+1)}return E};
ZQL=function(g,r){r=r.months.findIndex(function(E){return E.year===g.year&&E.month===g.month});
return r>=0?r:void 0};
vZP=function(g,r){a:{var E=E===void 0?[2,3]:E;E=_.U(E);for(var B=E.next();!B.done;B=E.next()){var w=new Date;if((new yJA(B.value)).parse(r,w,{validate:!0})){w.setHours(0,0,0,0);r=w;break a}}r=null}if(!r)return{isValid:!1,value:void 0};r=N6D(r);E=g.end;return Yj(r,g.start)||Yj(E,r)?{isValid:!1,value:void 0}:{isValid:!0,value:r}};
Eet=function(g){var r=dKS;r=r===void 0?T6Q:r;var E=g.columnsToShow||[],B=geY(g.columnDimensions,g.columnsToShow,g.leftFloatingColumns,r);return E.map(function(w,O){var M=g.columns[w];if(M===void 0)throw Error("Sh");var u=B?B[O]:"";var l=g.getCustomTooltip?g.getCustomTooltip(w,M.headerTooltipParagraphs):M.headerTooltipParagraphs;var Q=rrJ(g,w);return{type:w,index:O,style:u,classes:Q,headerName:M.headerName||"",headerIcon:M.headerIcon,headerTooltipParagraphs:l||[],headerTooltipHelpContext:M.headerTooltipHelpContext,
sortOrders:M.sortOrders||[],selectionState:M.isSelectionCheckbox?g.selectionState:void 0}})};
rrJ=function(g,r){var E=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],B=g.columns[r];if(B===void 0)return"";var w=E.includes("DEFAULTS")&&B.cssClass?[B.cssClass]:[];if(E.includes("SORTING")){B.sortOrders&&B.sortOrders.length&&w.push("sortable");if(g.sorting&&g.sorting.columnType===r)a:switch(g.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var O="column-sorted";break a;default:O=""}else O="";O&&w.push(O)}E.includes("FLOATING")&&(r=g.columnsToShow.indexOf(r),g.leftFloatingColumns&&r<g.leftFloatingColumns&&
w.push("floating-column"),g.leftFloatingColumns&&r===g.leftFloatingColumns-1&&w.push("last-floating-column"));E.includes("RIGHT_ALIGN")&&B.rightAlignHeader&&w.push("right-align");return w.filter(function(M){return M}).join(" ")};
geY=function(g,r,E,B){E=E===void 0?0:E;B=B===void 0?T6Q:B;if(g){var w=[],O=0;BoL(g,r,B).forEach(function(M,u){var l="min-width:"+M.minWidth+"px;padding-left:"+M.paddingLeft+"px;padding-right:"+M.paddingRight+"px;flex:"+M.flexGrow+" 0 "+M.minWidth+"px;";M.maxWidth!==Infinity&&(l=[l,"max-width:"+M.maxWidth+"px;"].join(""));O>0&&u<E&&(l=[l,"left:"+O+"px;"].join(""));w.push(l);O+=M.minWidth+M.paddingLeft+M.paddingRight});
return w}};
BoL=function(g,r,E){E=E===void 0?T6Q:E;return r.map(function(B,w){B=g&&g[B]||{};var O=w===0?E.paddingLeftFirstColumn:E.padding;B.paddingLeft!==void 0&&(O=B.paddingLeft);w=w===r.length-1?E.paddingRightLastColumn:E.padding;B.paddingRight!==void 0&&(w=B.paddingRight);return{paddingLeft:O,paddingRight:w,minWidth:B.minWidth!==void 0?B.minWidth:E.minWidth,maxWidth:B.maxWidth!==void 0?B.maxWidth:E.maxWidth,flexGrow:B.flexGrow!==void 0?B.flexGrow:E.flexGrow}})};
w9l=function(g){var r=g.reduce(function(B,w){var O=w.columnId,M={};w.headerText&&(M.headerName=_.Vp(w.headerText));w.rightAlignHeader&&(M.rightAlignHeader=w.rightAlignHeader);var u;if((u=w.headerIcon)==null?0:u.iconType)M.headerIcon=_.Dh(w.headerIcon.iconType);B[O]=M;return B},{}),E=g.filter(function(B){return!B.hideColumn}).map(function(B){return B.columnId});
g=g.filter(function(B){return!!B.dimensions}).reduce(function(B,w){B[w.columnId]=w.dimensions;
return B},{});
return{columns:r,columnsToShow:E,columnDimensions:g}};
_.S$Y=function(g){return g?g.simpleText?g.simpleText:g.runs?g.runs.map(function(r){return r.text}).join(""):"":""};
uDB=function(g){var r=g.data;var E=g.onTap;var B=g.isSelected;var w=g.onFocusIn;if(!r)return{};g=OJc(r);B===void 0&&(B=r==null?void 0:r.isSelected);var O;return{text:UwS(r,g),startIcon:(O=r.icon)==null?void 0:O.iconType,state:B?0:2,type:0,onTap:MqP(r,E),accessibilityLabel:q$c(r,g),onFocusIn:function(){return w==null?void 0:w()}}};
UwS=function(g,r){if(!r)return g.text?_.S$Y(g.text):void 0};
MqP=function(g,r){return function(E){r==null||r(E,g)}};
OJc=function(g){g=g.style&&g.style.styleType;return!Lm&&g==="STYLE_EXPLORE_LAUNCHER_CHIP"};
q$c=function(g,r){if(r){var E,B,w;return(w=(E=g.accessibilityData)==null?void 0:(B=E.accessibilityData)==null?void 0:B.label)!=null?w:UwS(g,!1)}};
s0=function(g){return{signalAction:{signal:g}}};
oeL=function(){return _.Ca("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?lOP:_.DwV};
GdJ=function(g,r){g=g===void 0?"SOFT_RELOAD_PAGE":g;r=r===void 0?49504:r;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.gz(_.zn("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:r}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:g}}]}}}};
QsA=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.gz(_.zn("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:oeL()}};
zml=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.gz(_.zn("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:oeL()}};
kdV=function(g,r){var E=_.gz(_.zn("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),B=_.gz(_.zn("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),w={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.gz(_.zn("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};w.serviceEndpoint=g?g:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[s0("SOFT_RELOAD_PAGE")]}};return{title:E,bodyText:B,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:w},
style:{value:r!=null?r:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
p9B=function(g){g=g===void 0?{}:g;return{title:_.gz(g.localizedZeroStateTitleText===void 0?"":g.localizedZeroStateTitleText),bodyText:_.gz(g.localizedZeroStateMessage===void 0?"":g.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.gz(g.localizedZeroStateButtonText===void 0?"":g.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[HJJ]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
Rml=function(g){g=g===void 0?{}:g;return{title:_.gz(g.localizedOptInBannerTitleText===void 0?"":g.localizedOptInBannerTitleText),titleLength:19,subtitle:_.gz(g.localizedOptInMessage===void 0?"":g.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.gz(_.zn("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:_.gz(_.zn("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:[Y$X]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
neA=function(g,r){var E=r=r===void 0?{}:r;r=E.offlineTitleText===void 0?"":E.offlineTitleText;var B=E.offlineDescriptionText===void 0?"":E.offlineDescriptionText,w=E.formattedSupplementalText,O=E.actionButtonText===void 0?"":E.actionButtonText,M=E.titleText===void 0?"":E.titleText;E=E.descriptionText===void 0?"":E.descriptionText;var u={style:"STYLE_PRIMARY",size:"SIZE_DEFAULT",text:_.gz(O),isDisabled:!1,navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://www.youtube.com/premium",
webPageType:"WEB_PAGE_TYPE_PROMO"}},urlEndpoint:{url:"https://www.youtube.com/premium"}},loggingDirectives:{clientVeSpec:{uiType:266213}}};g||(M=r,E=B,u={style:"STYLE_MONO_TONAL",size:"SIZE_DEFAULT",text:_.gz(O),isDisabled:!0,loggingDirectives:{clientVeSpec:{uiType:266213}}});return{title:_.gz(M),titleLength:M.length,subtitle:_.gz(E),supplementalText:w,primaryButton:{buttonRenderer:u},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[Y$X]},
loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.$wl=function(g,r,E,B,w,O,M,u,l,Q,z){w=w===void 0?!1:w;O=O===void 0?!1:O;M=M===void 0?0:M;u=u===void 0?-Infinity:u;l=l===void 0?!1:l;Q=Q===void 0?!1:Q;z=z===void 0?!1:z;var k=[],H=_.gz(_.zn("SMART_DOWNLOADS",void 0,"Smart downloads")),R=_.gz(ssX(M,u,g.length));u=M=void 0;Q?M={statementBannerRenderer:neA(z,B)}:w?g.length>0?u=fOc(g,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.Y("kevlar_manual_downloads_above"),H,R):l?u={alertBannerViewModel:{heading:{content:E.localizedOptInBannerTitleText===
void 0?"":E.localizedOptInBannerTitleText},body:{content:E.localizedPromptMessage===void 0?"":E.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.zn("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.zn("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:_.wyY}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:O&&(u={backgroundPromoRenderer:{bodyText:_.gz(_.zn("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/grey_loading_spinner.gif"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"}}}):
O&&(u={alertBannerViewModel:{heading:{content:E.localizedOptInBannerTitleText===void 0?"":E.localizedOptInBannerTitleText},body:{content:E.localizedOptInMessage===void 0?"":E.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.zn("TURN_ON",void 0,"Turn on"),accessibilityText:_.zn("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}}}}}});E=_.gz(_.zn("YOUR_DOWNLOADS",void 0,"Your downloads"));B=void 0;r.length>0?(B=void 0,_.Y("kevlar_display_downloads_numbers")&&(B=_.gz(_.kg("VIDEO_COUNT",r.length))),B=fOc(r,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,E,B)):w||g.length||
Q||(B={backgroundPromoRenderer:{bodyText:_.gz(_.zn("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}}}});M?k.push({richSectionRenderer:{content:M}}):u&&!_.Y("kevlar_manual_downloads_above")&&k.push({richSectionRenderer:{content:u,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
B&&k.push({richSectionRenderer:{content:B,loggingDirectives:{clientVeSpec:{uiType:51721}}}});u&&_.Y("kevlar_manual_downloads_above")&&k.push({richSectionRenderer:{content:u,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(r.length>0||w&&g.length>0&&!Q)&&k.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.gz(_.zn("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:k}};
_.ArS=function(g){return jsJ(g,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.bJl=function(g){return jsJ(g,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
jsJ=function(g,r){var E=[];g=fOc(g,r,!0);E.push({richSectionRenderer:{content:g}});return{contents:E}};
fOc=function(g,r,E,B,w){E=E===void 0?!1:E;var O="RESPONSIVE_SIZE_STANDARD";_.Y("kevlar_modern_downloads_compact")?O="RESPONSIVE_SIZE_COMPACT":_.Y("kevlar_modern_downloads_extra_compact")&&(O="RESPONSIVE_SIZE_EXTRA_COMPACT");g={isExpanded:E,contents:f0(g),entitySelectorType:r,responsiveContainerConfiguration:{responsiveSize:O}};B&&(g.title=B);w&&(g.subtitle=w);E||(_.Y("kevlar_smart_downloads_show_more_button")?(g.showMoreButton={buttonRenderer:{accessibility:{label:_.zn("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.gz(_.zn("SHOW_MORE",void 0,"Show more"))}},g.showLessButton={buttonRenderer:{accessibility:{label:_.zn("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.gz(_.zn("SHOW_LESS",void 0,"Show less"))}}):(g.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.zn("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}}}},g.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.zn("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}}}},g.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.zn("VIEW_ALL",void 0,"View all"),accessibilityText:_.zn("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:dX("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:g}};
f0=function(g){var r=[];g=_.U(g);for(var E=g.next();!E.done;E=g.next())if(E=E.value,Nnt(E)){var B=r,w=B.push;var O=void 0;if(E==null?0:(O=E.videoEntity)==null?0:O.videoId){O=xD(_.Zz().getState(),E.videoEntity.videoId);var M=_.Zz().getState();var u=_.qr(E.videoEntity.videoId,"mainVideoEntity");M=!!_.ff(M.entities)[u];M={videoId:E.videoEntity.videoId,title:rz(E.videoEntity.title),shortBylineText:rz(E.channelEntity.title),thumbnail:E.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:M&&_.Y("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:N8J(E.videoEntity.videoId,O,E.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.zn("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};E.videoEntity.lengthSeconds&&(M.thumbnailOverlays=qkl(E.videoEntity.lengthSeconds,O));M.isWatched=O>0;_.Y("kevlar_modern_downloads_page")&&(M.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:E.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.zn("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},M.badges=void 0);E=M}else E={};w.call(B,{richItemRenderer:{content:{videoRenderer:E},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(XAP(E)){B=r;w=B.push;var l=u=O=void 0,Q=void 0,z=void 0,k=void 0,H=void 0,R=void 0,A=void 0,J=void 0,e=void 0,C=void 0;M=E.mainPlaylistEntity.playlistId;var X=E==null?void 0:(C=E.mainPlaylistEntity)==null?void 0:(e=C.thumbnailStyleData)==null?void 0:(J=e[0])==null?void 0:(A=J.value)==null?void 0:(R=A.collageThumbnail)==
null?void 0:R.coverThumbnail;if(M&&X){R=ICY(M);!_.Y("enable_offline_playlist_page")&&(E==null?0:(H=E.mainPlaylistEntity)==null?0:H.videos)&&(H=E==null?void 0:(k=E.mainPlaylistEntity)==null?void 0:(z=k.videos)==null?void 0:z[0],z=_.S9(H).entityId,z=JSON.parse(z).videoId,z!==void 0&&(k=xD(_.Zz().getState(),z),R=_.Tn(z,M,void 0,void 0,k)));z=[];if(E==null?0:(Q=E.mainPlaylistEntity)==null?0:(l=Q.videos)==null?0:l.length)z=[mCo(),Object.assign({},(u=Ict(E==null?void 0:E.mainPlaylistEntity.videos.length))!=
null?u:{})];E={playlistId:M,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:X}},navigationEndpoint:R,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:z,title:rz(E.mainPlaylistEntity.title),shortBylineText:rz(E==null?void 0:(O=E.channelEntity)==null?void 0:O.title),badges:[{metadataBadgeRenderer:{label:_.zn("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.Y("kevlar_modern_downloads_page")&&(E.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:JrD,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:M,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.zn("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},E.badges=void 0)}else E=void 0;w.call(B,{richItemRenderer:{content:{playlistRenderer:E},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return r};
ssX=function(g,r,E){g=g?PbV(g):"";r!==void 0&&isFinite(r)?r===0?r=_.zn("UPDATING",void 0,"Updating..."):(r=MpX(new Date(r),new Date),r=_.zn("UPDATED_TIME",{relative_time:r},"Updated "+r)):r="";var B="";g&&r&&(B=" \u2022 ");if(E&&_.Y("kevlar_display_downloads_numbers")){E=_.kg("VIDEO_COUNT",E);if(g||r)B=" \u2022 ";return E+B+g+B+r}return g+B+r};
tqL=function(g){return rAS(g.entities).length};
_.FUl=function(g,r){var E=IFD(g.responsiveSize),B;g=!((B=g.responsiveMap)==null||!B.some(function(w){return w.containerSize==="CONTAINER_SIZE_NARROW"&&w.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:r,sizing:E,enableFullBleedForSingleCol:!1,isCompactList:E==="COMPACT"&&g}};
emA=function(g,r){return _.u1(g.entities,"votingEntity",r)};
WUJ=function(g){if(g){var r;return((r=_.rM().resolve(_.gM(_.Vy)))==null?0:r())?g.darkTheme:g.lightTheme}};
CbL=function(g,r){if(g.simpleText)return Object.assign({},g,{simpleText:cw(g.simpleText,r)});if(!g.runs)return g;for(var E=Object.assign({},g,{runs:[]}),B=0,w=_.U(g.runs),O=w.next();!O.done;O=w.next())if(O=O.value,O.text)if(B+O.text.length<=r)E.runs.push(O),B+=O.text.length;else return E.runs.push(Object.assign({},O,{text:cw(O.text,r-B)})),E;return g};
KUX=function(g,r){return _.u1(g.entities,"chipBarStateEntity",r)};
xwc=function(g,r){return _.u1(g.entities,"chipEntity",r)};
X9V=function(g,r,E,B){return function(){var w=aOQ.has(g.displayType)&&g.selected,O=w&&g.deselectCommand?g.deselectCommand:g.tapCommand;!O||w&&B||_.I3(O,{form:{element:r==null?void 0:r.value}});E==null||E()}};
NoX=function(g){switch(g){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
IOD=function(g,r){return{triggeringElement:g,onDwellTriggeredFn:function(){var E={triggeringElement:g,loadVideoPreviewEventData:r},B=document.querySelector(".video-preview");B&&B.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:E}))},
onDwellEndFn:function(){var E=document.querySelector(".video-preview");E&&E.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
mwl=function(g,r){var E=_.rM().resolve(_.gM(bGX)),B=function(){var w=r();return E&&w?IOD(g.value,w):null};
_.bQ(function(){var w=B();E&&w&&Promise.resolve().then(function(){E.registerElement(w)});
_.J5(function(){E&&w&&Promise.resolve().then(function(){_.I$(E,w)})})},"csPUge")};
iJX=function(g){var r=g.dataset.resizeObserverId;if(r)return r;r=""+crY++;return g.dataset.resizeObserverId=r};
LUl=function(g,r){var E=iJX(g);j7.has(E)||j7.set(E,new Set);j7.get(E).add(r);Al.has(E)&&r(Object.assign({},{target:g},Al.get(E)))};
VqP=function(g){g=_.U(g);for(var r=g.next();!r.done;r=g.next()){r=r.value;var E=iJX(r.target),B=Object.assign({},{target:r.target},Al.get(E));if(B!=null&&B.contentRect?B.contentRect.width!==r.contentRect.width||B.contentRect.height!==r.contentRect.height:1)for(Al.set(E,{borderBoxSize:r.borderBoxSize,contentBoxSize:r.contentBoxSize,contentRect:r.contentRect,devicePixelContentBoxSize:r.devicePixelContentBoxSize}),E=_.U(j7.get(E)||[]),B=E.next();!B.done;B=E.next())B=B.value,B(r)}};
ZJo=function(){return bP?bP:bP=new hmA(VqP)};
yrY=function(g,r){var E=iJX(g);j7.has(E)&&(j7.get(E).delete(r),j7.get(E).size===0&&(j7.delete(E),Al.delete(E),bP.unobserve(g),delete g.dataset.resizeObserverId));j7.size===0&&bP&&(bP.disconnect(),bP=void 0)};
dwL=function(g,r){var E=_.rM().resolve(Tx);return veo.map(function(B){return E.observe(g,r,B)})};
Tot=function(g){var r=_.rM().resolve(Tx);g.forEach(function(E){r.unobserveByKey(E)})};
_.EXY=function(g,r){var E=Object.assign({},gXV,r);r=_.U(Jsl());var B=r.next().value,w=r.next().value,O=function(M){var u=M.contentRect.height;if((M=M.contentRect.width)||u||E.canHaveZeroSize)B.width()===M&&B.height()===u||w(B,{height:u,width:M})};
_.Jk(function(){var M=g instanceof HTMLElement?g:g.value,u=rcc(O,E.throttleMs),l=[];E.useVisibilityObserver&&(l=dwL(M,function(Q,z){requestAnimationFrame(function(){z==="visible"?(LUl(M,u),ZJo().observe(M)):yrY(M,u)})}));
l.length||(LUl(M,u),ZJo().observe(M));_.J5(function(){l.length&&(Tot(l),l.length=0);yrY(M,u)})});
return B};
w7l=function(g){var r=g.data;var E=g.callback;var B=g.enableSingleChipSelection;var w=g.disableChipsScrollAnimation;var O=_.hn("div"),M=tk(!1),u=tk(0);g={};g=_.U(Ga(r.autoselectedChipIndex!=null?(g[r.autoselectedChipIndex]=!0,g):{}));var l=g.next().value,Q=g.next().value,z=function(){var uB=O.value;return uB==null||uB.scrollLeft-1<=0},k=function(){var uB=O.value;
return uB==null?!1:uB.scrollLeft+1>=(uB==null?NaN:uB.scrollWidth)-(uB==null?NaN:uB.clientWidth)};
g=_.U(Ga(z()));var H=g.next().value,R=g.next().value;g=_.U(Ga(k()));var A=g.next().value,J=g.next().value;g=r.isHorizontallyScrollable;var e=function(uB){O.value!=null&&(_.Ca("HTML_DIR")==="rtl"&&(uB=-uB),O.value.scrollBy({left:uB,behavior:w?"instant":"smooth"}))},C=function(){e(-320)},X=function(){e(320)},Z=_.HK(function(uB){M.value=!0;
u.value=uB.clientX}),c=_.HK(function(uB){if(M.value){uB=uB.clientX;
var zS=uB-u.value;u.value=uB;var jV;(jV=O.value)==null||jV.scrollBy({left:-zS})}}),h=_.HK(function(){var uB=z(),zS=k();
uB!==H&&R(uB);zS!==A&&J(zS)});
du("pointerup",function(){M.value&&(M.value=!1)});
var y={},OD={};return _.G("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},vT(r.title,function(){return _.G("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.G("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},r.title),Bao(r.overflowButton))}),_.G("div",{class:"ytChipsShelfViewModelChipsShelfContent"},vT(r.previousButton!=null,function(){var uB={};
return _.G("div",{class:_.zw("ytChipsShelfViewModelLeftArrowContainer",(uB.ytChipsShelfViewModelLeftArrowContainerIsHidden=H,uB))},Bao(r.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:C}}))}),_.G("div",{el:O,
"on:pointerdown":Z,"on:pointermove":c,"on:scroll":h,class:_.zw("ytChipsShelfViewModelChipsScrollContainer",(y.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!g,y))},_.G("div",{class:_.zw("ytChipsShelfViewModelChipsContainer",(OD.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!g,OD.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!g&&!1,OD)),role:"tablist"},(r.contents||[]).map(function(uB,zS){return _.G("div",{class:"ytChipsShelfViewModelChipWrapper"},
Bao(uB,{chipViewModel:{callback:function(jV,PJ){if(B){var At={};Q((At[zS]=PJ,At))}else At={},Q(Object.assign({},l,(At[zS]=PJ,At)));E==null||E(jV,PJ,zS)},
disableDeselection:B,selected:!!l[zS]}}))}))),vT(r.nextButton!=null,function(){var uB={};
return _.G("div",{class:_.zw("ytChipsShelfViewModelRightArrowContainer",(uB.ytChipsShelfViewModelRightArrowContainerIsHidden=A,uB))},Bao(r.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:X}}))})))};
O1t=function(g,r,E,B,w){g=r?g.switchOffCommand:g.switchOnCommand;if(B&&w)S4X(g,E,w);else{var O,M;(O=_.XI({elementsCommand:g}))==null||(M=O.onclick)==null||M.call(O,E)}};
S4X=function(g,r,E){g=_.XI({elementsCommand:g,additionalCommandArgs:{commandController:{onSuccess:function(){E(!1)},
onServerError:function(){E(!1)}}}});
if(g==null?0:g.onclick)g.onclick(r),E(!0)};
MDl=function(g){if(g)return _.n(g,UAY)};
oXY=function(g,r,E){if(r)return[q4l];switch(g){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[Jl];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return E?[Jl]:[uvP,Jl];case "TRANSFER_STATE_PAUSED_BY_USER":return[l3c,Jl];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[DAQ,Jl];default:return[q4l]}};
GNY=function(g,r,E,B){return oXY(g,r,B).map(function(w){var O=w.text,M=w.iconType,u=w.videoAction;w=w.playlistAction;O=O?{content:O}:void 0;M=M&&{sources:[{clientResource:{imageName:M}}]};var l=(0,_.jn.unsafeClone)(E);if(l){var Q=_.n(l,_.DB),z=_.n(l,_.o$);Q&&u?Q.action=u:z&&w&&(z.action=w)}return{title:O,leadingImage:M,rendererContext:l&&{commandContext:{onTap:{innertubeCommand:l}}}}})};
Q7c=function(g){g=_.Cm(g.rendererContext);var r;return(r=_.n(g,_.o$))==null?void 0:r.playlistId};
zVo=function(g){var r;return(r=g.listItems)==null?void 0:r.some(function(E){var B;return _.Km((B=_.n(E,_.HX))==null?void 0:B.rendererContext)})};
H1X=function(g){var r;return(r=g.listItems)==null?void 0:r.some(function(E){E=_.n(E,_.HX);return!!_.n(E==null?void 0:E.leadingAccessory,kNl)})};
RVA=function(g){var r=g.element;var E=g.veType;var B=g.storedVisualElement===void 0?null:g.storedVisualElement;var w=g.elementIndex===void 0?0:g.elementIndex;g=g.clientYouTubeData;var O=_.PE();O!==p7c&&(Y4X.clear(),p7c=O);if(r.visualElement&&Y4X.has(r.visualElement))return null;if(B&&Y4X.has(B))return r.visualElement=B,null;E=_.Hw(_.pW(),{veType:E,elementIndex:w,clientYouTubeData:g});if(!E)return null;r.visualElement=E;Y4X.add(E);return E};
_.Pm=function(g,r,E,B){E=E===void 0?null:E;B=B===void 0?L3B:B;var w=w===void 0?null:w;JM(function(){if(r){E instanceof Function&&(E=E());var O=RVA({element:r,veType:g,storedVisualElement:E,clientYouTubeData:void 0});O&&(Z2D(r,w),B(O))}})};
tl=function(g,r){if(g){switch(r){case 0:g=g.primaryTitleColor;break;case 1:g=g.secondaryTitleColor;break;case 2:g=g.surgeColor;break;case 3:g=g.section2Color;break;case 4:g=g.section3Color;break;default:return}if(g)return _.aJ(g)}};
nXX=function(g){return g?_.XT(g):""};
s7l=function(g){return(g==null?void 0:g.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
f3D=function(g,r){var E;return"linear-gradient(to bottom, "+((E=r==null?void 0:r.map(function(B){var w=g?B.darkThemeColor:B.lightThemeColor;return w?_.XT(w)+" "+((B==null?void 0:B.startLocation)||0)*100+"%":"transparent"}))==null?void 0:E.join(", "))+")"};
$AL=function(g,r,E,B,w){if(!((B==null?0:B.height)&&(B==null?0:B.width)))return{size:0};var O=B.width;B=B.height;if(w)return r==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||r==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&O>B?{size:312/TQP}:r==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(E!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||g!==1&&g!==2||r!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&r!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&r!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(r==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||r==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||B===O)switch(g){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(r==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||B>O)switch(g){case 1:case 3:return{size:240*dxo};default:return{size:360*dxo}}switch(g){case 1:case 2:return{size:1/TQP*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.j7l=function(g){if(!("matchMedia"in window))return _.NX(Error("Th")),function(){return!1};
var r=window.matchMedia(g);g=_.U(_.Dk(r.matches,void 0,"jLJc8e"));var E=g.next().value,B=g.next().value,w=function(O){B(O.matches)};
r.addEventListener?(r.addEventListener("change",w),_.J5(function(){r.removeEventListener("change",w)})):r.addListener&&(r.addListener(w),_.J5(function(){r.removeListener(w)}));
return E};
AcJ=function(g){return g==="IMAGE_BANNER_STYLE_INSET"||g==="IMAGE_BANNER_STYLE_UNKNOWN"};
b1S=function(){if(!("matchMedia"in window))return _.NX(Error("Th")),function(){return 0};
var g=P0(function(){return window.matchMedia("(max-width: 527.9px)")}),r=P0(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),E=P0(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),B=P0(function(){return window.matchMedia("(min-width: 1024px)")}),w=_.U(_.Dk(g.matches,void 0,"og9kEc")),O=w.next().value,M=w.next().value;
w=_.U(_.Dk(r.matches,void 0,"ybDWCb"));var u=w.next().value,l=w.next().value;w=_.U(_.Dk(E.matches,void 0,"o0Gfh"));var Q=w.next().value,z=w.next().value;w=_.U(_.Dk(B.matches,void 0,"yqUUgd"));var k=w.next().value,H=w.next().value,R=P0(function(){return function(C){M(C.matches)}}),A=P0(function(){return function(C){l(C.matches)}}),J=P0(function(){return function(C){z(C.matches)}}),e=P0(function(){return function(C){H(C.matches)}});
_.Jk(function(){g.addEventListener?(g.addEventListener("change",R),r.addEventListener("change",A),E.addEventListener("change",J),B.addEventListener("change",e)):g.addListener&&(g.addListener(R),r.addListener(A),E.addListener(J),B.addListener(e));_.J5(function(){g.removeEventListener?(g.removeEventListener("change",R),r.removeEventListener("change",A),E.removeEventListener("change",J),B.removeEventListener("change",e)):g.removeListener&&(g.removeListener(R),r.removeListener(A),E.removeListener(J),
B.removeListener(e))})});
return function(){return O()?1:u()?2:Q()?3:k()?4:0}};
JcS=function(g){var r=0;g=_.U([g.title,g.metadata,g.actions,g.description,g.attribution]);for(var E=g.next();!E.done;E=g.next())E.value&&r++;return r};
P0L=function(g){return g===1||g===2?1:0};
FNB=function(g){var r,E=((r=_.rM().resolve(_.gM(_.Vy)))==null?0:r())&&g.data.darkThemeImage?g.data.darkThemeImage:g.data.image;r=_.G("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.G("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},E?_.G(_.vw,{data:E,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),tDP(g.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));E=_.G(_.hf,{text:g.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var B=g.data;if(B.bodyText){var w=[];B=_.U(B.bodyText);for(var O=B.next();!O.done;O=B.next())w.push(_.G(_.hf,{text:O.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else w=_.G(_.wW,null);return _.G("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},r,E,w,tDP(g.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.G(_.hf,{text:g.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.G(_.hf,{text:g.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
WNV=function(g){g=(new eVV).parse(g);return(new uG).render(g).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(r){var E=r.split(":").map(Number),B=0,w=0;if(E.length===3)E=_.U(E),B=E.next().value,w=E.next().value,E=E.next().value;else if(E.length===2)E=_.U(E),w=E.next().value,E=E.next().value;else if(E.length===1)E=_.U(E).next().value;else throw Error("Uh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(B*3600+w*60+E)+'" role="button">'+r+"</span>"})};
C0B=function(g){g=_.U(g.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var r=g.next(),E={};!r.done;E={clickHandler$jscomp$4:void 0},r=g.next()){r=r.value;E.clickHandler$jscomp$4=function(w){w=Number(w.target.getAttribute("data-time"));if(isNaN(w))throw Error("Vh");var O;(O=_.qQ())==null||O.seekTo(w,!0)};
var B=function(w){return function(O){O.key!=="Enter"&&O.key!=="Space"||(0,w.clickHandler$jscomp$4)(O)}}(E);
r.setAttribute("tabindex","0");r.removeEventListener("click",E.clickHandler$jscomp$4);r.removeEventListener("keydown",B);r.addEventListener("click",E.clickHandler$jscomp$4);r.addEventListener("keydown",B)}};
KNL=function(){return _.G("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.G(Fu,{percentWidth:100}),_.G(Fu,{animationDelay:200}),_.G(Fu,{animationDelay:400}),_.G(Fu,{animationDelay:600}),_.G(Fu,{animationDelay:800,percentWidth:60}),_.G("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.G(Fu,{percentWidth:100}),_.G(Fu,{animationDelay:200}),_.G(Fu,{animationDelay:400}),_.G(Fu,{animationDelay:600,percentWidth:50}))};
Fu=function(g){return _.G("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(g.percentWidth===void 0?100:g.percentWidth)+"%"},_.G("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(g.animationDelay===void 0?0:g.animationDelay)+"ms"}))};
xAt=function(){var g=_.U(_.Dk(function(){return""},void 0,"v2wS5e")),r=g.next().value;
return[function(){return r()()},
g.next().value]};
a3D=function(g,r){g=g?PbV(g):"";r!==void 0&&isFinite(r)?r===0?r=_.zn("UPDATING",void 0,"Updating..."):(r=MpX(new Date(r),new Date),r=_.zn("UPDATED_TIME",{relative_time:r},"Updated "+r)):r="";var E="";g&&r&&(E=" \u2022 ");return _.gz(g+E+r)};
I3l=function(g,r,E,B,w,O){r=r===void 0?0:r;var M=X7A[r],u=M.title,l=M.iconType,Q=M.topButtonRenderer,z=M.sectionClientVE;M=M.videoClientVE;var k;if(r!==1||g.length){E=[];g=_.U(g);for(B=g.next();!B.done;B=g.next()){var H=B.value;if(Nnt(H))E.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:H.videoEntity.videoId,title:rz(H.videoEntity.title),shortBylineText:rz(H.channelEntity.title),thumbnail:H.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:H.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.zn("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:M}}}}}});else if(XAP(H)){B=E;var R=B.push;var A=void 0,J=void 0,e=void 0,C=void 0,X=void 0,Z=void 0,c=void 0,h=void 0,y=H.mainPlaylistEntity.playlistId,OD=H==null?void 0:(h=H.mainPlaylistEntity)==null?void 0:(c=h.thumbnailStyleData)==null?void 0:(Z=c[0])==null?void 0:(X=Z.value)==null?void 0:(C=X.collageThumbnail)==null?void 0:C.coverThumbnail;C=ICY(y);if(!_.Y("enable_offline_playlist_page")&&
(H==null?0:(e=H.mainPlaylistEntity)==null?0:e.videos)){b:{e=H==null?void 0:(J=H.mainPlaylistEntity)==null?void 0:J.videos;J=_.Zz().getState().entities;if(e!=null&&e.length&&J)for(e=_.U(e),X=e.next();!X.done;X=e.next())if(X=_.S9(X.value).entityId,(X=JSON.parse(X).videoId)&&T3Y(J,X)==="TRANSFER_STATE_COMPLETE"){J=X;break b}J=""}J!==void 0&&(C=xD(_.Zz().getState(),J),C=_.Tn(J,y,void 0,void 0,C))}J=cht(_.zn("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),ICY(y));H=y&&OD&&J?{playlistId:y,navigationEndpoint:C,
viewPlaylistText:J,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:OD}},title:rz(H.mainPlaylistEntity.title),shortBylineText:rz(H==null?void 0:(A=H.channelEntity)==null?void 0:A.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:NaS,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:y,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.zn("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:M}}}:
void 0;R.call(B,{gridPlaylistRenderer:H})}}M={gridRenderer:{items:E}};r===1&&(k=a3D(w,O))}else if(B){var uB=_.gz((R=E==null?void 0:E.localizedPromptMessage)!=null?R:"");M={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.gz(_.zn("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.wyY}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.gz(_.zn("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};k=a3D(w,O)}else uB=_.gz(_.zn("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
M={};return{contents:[{shelfRenderer:{title:u,titleAnnotation:k,icon:{iconType:l},subtitle:uB,content:M,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:Q}]}}}}],loggingDirectives:{clientVeSpec:{uiType:z}}}};
mAA=function(g,r,E,B,w,O,M,u,l,Q,z){E=E===void 0?{}:E;B=B===void 0?{}:B;w=w===void 0?!1:w;O=O===void 0?!1:O;M=M===void 0?!1:M;u=u===void 0?!1:u;l=l===void 0?!1:l;Q=Q===void 0?0:Q;z=z===void 0?-Infinity:z;if(!(r.length||g.length||w||u))return O?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:p9B(E)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.gz(_.zn("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 k=[];g.length&&k.push(I3l(g,0));u?k.push({contents:[{statementBannerRenderer:neA(l,B)}]}):w?k.push(I3l(r,1,E,M,Q,z)):O&&k.push({contents:[{statementBannerRenderer:Rml(E)}]});(w&&r.length||g.length)&&k.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.gz(_.zn("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 k.map(function(H){return{itemSectionRenderer:H}})};
e7=function(g,r){if(typeof g!=="object")return null;g=_.U(Object.entries(g));for(var E=g.next();!E.done;E=g.next()){var B=_.U(E.value);E=B.next().value;B=B.next().value;if(E===r)return E;if(B=e7(B,r))return E+"."+B}return null};
Wm=function(g){var r=g.content;return(g=g.styleRuns)&&r?{runs:g.map(function(E){var B={text:r.slice(E.startIndex,E.startIndex+E.length)};E.fontColor&&(B.textColor=E.fontColor);return B})}:{simpleText:r}};
LNX=function(g,r,E,B){var w=ccJ;B&&(g.quantity=B);if(!g.quantity||!g.maxQuantity)return{};B=g.minusButton;var O=g.plusButton,M,u,l,Q;return{value:g.quantity,maxValue:g.maxQuantity,onChangeCallback:function(z){w(g,z)},
minusLabel:(M=_.n(B,i1t))==null?void 0:M.label,minimumReachedLabel:(u=_.n(B,i1t))==null?void 0:u.limitReachedLabel,plusLabel:(l=_.n(O,i1t))==null?void 0:l.label,maximumReachedLabel:(Q=_.n(O,i1t))==null?void 0:Q.limitReachedLabel,disabled:r,onRemoveCommand:E}};
ccJ=function(g,r){var E=g.quantityIncrementerEntityKey;if(E){var B={};B.quantity=r;_.hC(_.C0("quantityIncrementerEntity",E,B));g.onChangeCommand&&_.I3(g.onChangeCommand)}};
Z1l=function(g,r){(g=VDP(g))&&(r?hVX.push({command:g,sourceData:{},commandContext:void 0}):_.rM().resolve(_.Er).resolveCommand(g))};
VDP=function(g){return _.n(g,_.KW)};
ycc=function(){var g=window.performance.timeOrigin+window.performance.now(),r=(new _.K0).setSeconds(g/1E9);return _.jz(r,2,_.sM(g%1E9),0)};
xj=function(g,r){var E=_.n(_.n(g,_.KW),vXl);E&&(r&&(E.serializedAdditionalMetadata=_.gk(r)),Z1l(g,!0))};
dAY=function(g){switch(g){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"}};
TaB=function(){return!!_.Ca("ID_TOKEN")};
E6t=function(g){return g instanceof Error&&g.cause instanceof g6V&&g.cause.rpcErrorCode!==void 0?!rdl.includes(g.cause.rpcErrorCode):!0};
wIQ=function(){return _.Vg(Bfc,{authuser:""+(_.Ca("SESSION_INDEX")||0)})};
az=function(g,r,E,B){E=E===void 0?"MINI_APP_SDK_API_UNSPECIFIED":E;B=B===void 0?"":B;var w=new _.Rj;E={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:B,sdkApi:E};g instanceof Error&&(w.message=g.message,w.name=g.name,g.cause instanceof g6V&&g.cause.rpcErrorCode!==void 0&&(E.rpcErrorCode=g.cause.rpcErrorCode));var O;(O=r.onError)==null||O.call(r,{loggingError:w,metadata:E})};
OFX=function(g,r,E,B){switch(g){case "MINI_APP_SOURCE_GAMESNACKS":return new Xu(r,E,B);default:return new SsJ(r,E,B)}};
U5J=function(g){switch(g){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"}};
MFB=function(g){switch(g){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"}};
qsV=function(g){switch(g){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"}};
uUo=function(){return Math.floor(Math.random()*4)+1};
lMV=function(g,r,E,B){g=_.U(Object.entries(g));for(var w=g.next(),O={};!w.done;O={message$jscomp$957:void 0},w=g.next()){var M=_.U(w.value);w=M.next().value;M=M.next().value;O.message$jscomp$957=M;r.push(setTimeout(function(u){return function(){B(!1);E(u.message$jscomp$957.text)}}(O),O.message$jscomp$957.delayMs));
Number(w)>0&&r.push(setTimeout(function(){B(!0)},O.message$jscomp$957.delayMs-400))}};
D5V=function(g,r){var E=E===void 0?L3B:E;_.Y("mweb_fix_monitor_visibility_after_render")?g&&JM(function(){Z2D(g,r,E)}):JM(function(){Z2D(g,r,E)})};
Qul=function(g){var r=g.data;var E=g.uniqueId;g=g.overrides;var B,w=((B=r.timedAnimationData)==null?void 0:B.animationTiming)||[];return _.G("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.G(o6D,{settings:{uniqueId:E,timings:w,experimentEnabled:w.length>0,enabled:w.length>0}},GXV(r.buttonRenderer,{buttonRenderer:{buttonOverrides:g}})))};
pIc=function(g){zAc||(zAc=kXJ(new _.Xc(1,void 0,void 0,HFJ),0));var r=zAc.format(Math.floor(g));r=_.ac==="be"||_.ac==="bg"||_.ac==="es"||_.ac==="et"||_.ac==="hu"||_.ac==="ka"||_.ac==="lv"||_.ac==="pl"||_.ac==="pt-PT"||_.ac==="sq"?r.replace(new RegExp("^(\\d)"+HFJ.GROUP_SEP.replace(".","\\.")+"(\\d+("+HFJ.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):r;return g>=1E3&&g<=9999&&r[1]==="."&&(_.ac==="sl"||_.ac==="it")?r.replace(".",""):r};
YsP=function(g,r){tM("ytd-button-renderer",{data:g,className:r?r.className:"",overrides:r==null?void 0:r.buttonOverrides},V6)};
suX=function(g,r,E,B){if(g)return B=B||g.likeStatus,r?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:B==="LIKE",isDisabled:!g.likesAllowed,defaultIcon:{iconType:E},defaultText:B==="LIKE"?g.likeCountWithUnlikeText:g.likeCountText,toggledText:B==="LIKE"?g.likeCountText:g.likeCountWithLikeText,defaultNavigationEndpoint:RAA(g,"LIKE"),defaultServiceEndpoint:n6Y(g,"LIKE"),toggledServiceEndpoint:n6Y(g,"INDIFFERENT"),defaultTooltip:_.Vp(g.likeCountTooltipText),toggledTooltip:_.Vp(g.likeCountTooltipText),
targetId:g.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:B==="DISLIKE",isDisabled:!g.likesAllowed,defaultIcon:{iconType:E},defaultText:B==="DISLIKE"?g.dislikeCountWithUndislikeText:g.dislikeCountText,toggledText:B==="DISLIKE"?g.dislikeCountText:g.dislikeCountWithDislikeText,defaultNavigationEndpoint:RAA(g,"DISLIKE"),defaultServiceEndpoint:n6Y(g,"DISLIKE"),toggledServiceEndpoint:n6Y(g,"INDIFFERENT"),defaultTooltip:_.Vp(g.dislikeCountTooltipText),
toggledTooltip:_.Vp(g.dislikeCountTooltipText)}};
RAA=function(g,r){if(r==="LIKE")return g.likeCommand;if(r==="DISLIKE")return g.dislikeNavigationEndpoint};
n6Y=function(g,r){var E;return(E=g.serviceEndpoints)==null?void 0:E.find(function(B){var w;return((w=_.n(B,_.Nq))==null?void 0:w.status)===r})};
_.juA=function(g,r,E){return window.spf&&!_.Y("web_disable_spfjs_client")?fMQ(g,r,E):$5l(g,r)};
fMQ=function(g,r,E){var B=null,w=(new _.D8(function(O,M){var u={};if(r){u.method=r.method;var l=r.postParams||{};cxP(g,r)&&(l[_.Ca("XSRF_FIELD_NAME")]=_.Ca("XSRF_TOKEN"));u.postData=_.oj(l);r.type&&(u.type=r.type);l=r.headers}u.headers=xHP(g,l);_.Y("debug_forward_web_query_parameters")&&(g=_.Isl(g,window.location.search));u.experimental_headers=u.headers;u.onError=function(Q){Q.err&&Q.xhr&&(Q.err.params={url:Q.xhr.responseURL,response:Q.xhr.responseText.substr(0,64)});M(Q.err)};
u.onPartDone=function(Q){E&&E.call(null,Q.part)};
u.onDone=function(Q){var z=AdV(Q.response,"xsrf_token");yg(window.location.href,g)&&z&&_.W0("XSRF_TOKEN",z);if(z=AdV(Q.response,"service_worker_killswitch"))_.W0("SERVICE_WORKER_KILLSWITCH",z),niL();O(Q.response)};
B=spf.request(g,u)})).then(bFl);
w.thenCatch(function(O){var M=O instanceof _.Iz,u=O&&O.hasOwnProperty("params")&&O.params.response?O.params.response:"";O instanceof Error&&(u?M?bWJ(O):u===')]}\'\n{"reload":"now"}'?bWJ(O):(JdS(O,g,u),PtA(O,u)?_.el(O):_.tn(O)):bWJ(O));B&&B.abort()});
return w};
bFl=function(g){if(g.type==="multipart"){var r=g.timing;g=g.parts.reduce(function(E,B){Object.assign(E,B);return E},{});
g.timing=g.timing||{};Object.assign(g.timing,r);g.type="reduced"}return g};
$5l=function(g,r){r=r===void 0?{}:r;var E=null,B=new _.D8(function(w,O){r.onFinish=function(M){if(M.readyState===XMLHttpRequest.DONE)if(M.status===200){if(M.responseType!=="json"){var u=M.response;u.substring(0,5)===")]}'\n"&&(u=u.substring(5));try{var l=JSON.parse(u)}catch(Q){l=Q}}else l=M.response;l instanceof Error?O(l):(u=AdV(l,"xsrf_token"),yg(window.location.href,g)&&u&&_.W0("XSRF_TOKEN",u),M=M.responseURL,window.performance&&window.performance.getEntriesByName?(u=window.performance.getEntriesByName(M).pop())?
M={responseStart:(0,_.g2)()-(u.responseEnd-u.responseStart)}:(Math.random()<.01&&(u=Error("gi"),u.params=M,_.el(u)),M={responseStart:-1}):M={responseStart:0},l.timing=l.timing||{},Object.assign(l.timing,M),w(l))}else O(Error("fi`"+M.status))};
(E=_.Dx(g,r))||O(Error("fi`"+E.status))});
B.thenCatch(function(w){w instanceof Error&&(JdS(w,g),PtA(w)&&(w.level="WARNING"))});
_.Y("cancel_pending_navs")&&B.thenCatch(function(){E.abort()});
return B};
AdV=function(g,r){var E=g[r],B=g.parts;g.type==="multipart"&&B&&(E=(g=B.find(function(w){return r in w}))&&g[r]);
return E};
JdS=function(g,r,E){var B=g.message||"";r={original:B,url:r};if(E)if(B=B.match(/position:?\s*(\d+)/)){B=B&&Number(B[1])?Number(B[1]):0;var w=Math.max(B-25,0);r.position=B;r.response=E.substring(w,B+25)}else r.response=E.substring(0,50);_.Wf(g,r);try{g.message="JSON parse error"}catch(O){}};
PtA=function(g,r){g=g.message||"";g=!!(g.indexOf("<")>=0||g.indexOf("end of ")>=0||g.indexOf("Unterminated string")>=0||g.indexOf("Unexpected EOF"));if(!g&&r)for(var E=r.length,B=!1,w=0;w<E;w++)if(B&&r[w]==="\\")w++;else if(r[w]==='"')B=!B;else if(r[w]==="<"&&!B){g=!0;break}return g};
tFB=function(){return document.documentElement.hasAttribute("dark")};
_.FOL=function(g,r){if(g!=="GFEEDBACK"&&g!=="GUIDED_HELP")_.xF(Error("hi`"+g));else{var E=_.rM().resolve(_.gM(_.vK));if(E&&(E=E.getCurrentPage())&&E.getServiceTrackingParams&&(E=E.getServiceTrackingParams()))for(var B=0,w;w=E[B++];)if(w.service===g){if(g=w.params)for(E=0;B=g[E++];)r[B.key]=B.value;break}}};
_.eAJ=function(g){var r=_.Tw();r&&(r=r.getPlayer())&&(r.pauseVideo(),g.playback_id=r.getVideoData().cpn,g.eid=r.getVideoData().eventId,Object.assign(g,r.getFeedbackProductData()))};
WOP=function(){var g={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.Ca("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(g.enableAnonymousFeedback=!0);_.Ca("SESSION_INDEX")&&(g.authuser=String(_.Ca("SESSION_INDEX")));_.Y("enable_pageid_for_feedback")&&_.Ca("DELEGATED_SESSION_ID")&&(g.pageId=String(_.Ca("DELEGATED_SESSION_ID")));return g};
_.m7=function(g){_.Y("enable_ypc_spinners")&&_.OS(g,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},g])};
_.cm=function(g){_.Y("enable_ypc_spinners")&&_.OS(g,"yt-close-popup-action",["yt-loading-renderer"])};
Ctl=function(g){return new Promise(function(r,E){_.a3({verifyCommand:{recaptchaToken:g.recaptchaResponse}},{commandController:{onSuccess:function(B,w){w||E("ChallengeService did not return a response.");var O;r({challengeCompleted:(O=w.verified)!=null?O:!1})},
onServerError:function(B,w){E(w)}}})})};
KOJ=function(g,r,E,B){r({recaptchaResponse:B}).then(function(w){w.challengeCompleted?_.HN()?(E(3),_.rM().resolve(_.Er).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:g}})):E(2):E(4)},function(){E(4)})};
x5l=function(g,r,E){_.xy("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.Ca("HL"),function(){var B;(B=window.grecaptcha)==null||B.ready(function(){var w=window.grecaptcha;w?(E(w.render(g,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:KOJ.bind(null,g,Ctl,r)})),r(1)):r(4)})})};
aMV=function(g,r){return function(){switch(r()){case 0:return g().captchaLoadingMessage;case 1:return g().challengeReason;case 3:return g().captchaSuccessfulMessage;case 2:return g().captchaCookieSetFailureMessage;case 4:return g().captchaFailedMessage;default:return g().challengeReason}}()};
_.iP=function(){if(!XIJ){var g=document.querySelector("#player.skeleton");g&&(_.p5(g),XIJ=!0)}};
_.IMc=function(){return Nft=nlQ()};
iFV=function(){return _.q(function(g){return m5l!==void 0?g.return():_.D(g,cdB(),0)})};
cdB=function(){return _.q(function(g){if(g.nextAddress==1)return _.D(g,fll(),2);Nft=g.yieldResult;m5l=_.F6.addLowPriorityJob(cdB,5E3);_.Q3(g)})};
v6A=function(g){var r=r===void 0?LOV:r;var E,B,w=(E=g.responseContext)==null?void 0:(B=E.mainAppWebResponseContext)==null?void 0:B.trackingParam;if(!w){r.increment("MISSING");var O,M,u,l,Q,z;_.el(new _.Rj("282054944_a",{l3Y:!!((O=g.responseContext)==null?0:(M=O.mainAppWebResponseContext)==null?0:M.loggedOut),qFt:((u=g.responseContext)==null?void 0:u.mainAppWebResponseContext)===void 0,iSd:g.responseContext===void 0,liu:(l=g.playabilityStatus)==null?void 0:l.contextParams,gt1:(((Q=g.streamingData)==
null?void 0:Q.formats)||[]).length>0,ccu:(((z=g.streamingData)==null?void 0:z.adaptiveFormats)||[]).length>0,os:!!g.offlineState,cotn:g.cotn}));return 2}E="";try{E=VFA(w)}catch(R){return r.increment("C_ERROR"),_.tn(R),2}try{var k=_.hAo(E);var H=ZFL(k)}catch(R){return r.increment("P_ERROR"),_.tn(R),2}H=_.ER(H,ydS,1,_.BT());w=[];H=_.U(H);for(k=H.next();!k.done;k=H.next())B=k.value,k=B.getPath(),E=(0,_.jn.getValueByKeys)(g,k.split(".")),E=String(E===void 0||E===null?"":E),B=B.getValue()||"",O=/[+\-\/_]/g,
E.replace(O,"")!==B.replace(O,"")&&(r.increment("MISMATCH"),_.Y("ab_mis_log_err")&&(E=new _.Rj("282054944_p",{afe:k,g:String(E),e:String(B)}),_.tn(E)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(k)||(k.match(/enforcementMessageViewModel/i)?w.push(3):w.push(2)));if(w.length>0)return Math.max.apply(Math,_.jW(w));r.increment("SUCCESS");return 1};
gGl=function(g){var r=new L0;if(g.interpreterJavascript){var E=_.Y9A(g.interpreterJavascript);E=NO(E).toString();var B=new d5D;_.H$(B,6,E);_.Bu(r,1,B,am)}else g.interpreterUrl&&(E=_.eE(g.interpreterUrl),E=_.ui(E).toString(),B=new _.TfX,_.H$(B,4,E),_.Bu(r,2,B,am));g.interpreterHash&&_.Vj(r,3,g.interpreterHash,am);g.program&&_.Vj(r,4,g.program,am);g.globalName&&_.Vj(r,5,g.globalName,am);g.clientExperimentsStateBlob&&_.Vj(r,7,g.clientExperimentsStateBlob,am);return r};
hl=function(g){var r={};g=_.U(g.split("&"));for(var E=g.next();!E.done;E=g.next())E=E.value.split("="),E.length===2&&(r[E[0]]=E[1]);return r};
rUB=function(g){return Number(g.t)||7200};
AyJ=function(){if(_.Y("bg_st_hr"))return"havuokmhhs-0";var g,r=((g=performance)==null?void 0:g.timeOrigin)||0;return"havuokmhhs-"+Math.floor(r)};
EGX=function(){return new Promise(function(g){var r=window.top;r.ntpevasrs!==void 0?g(new Zp(r.ntpevasrs)):(r.ntpqfbel===void 0&&(r.ntpqfbel=[]),r.ntpqfbel.push(function(E){g(new Zp(E))}))})};
BZY=function(g){var r=g.lRh.bind(g);_.vN("yt.aba.att",r);g=g.ad6.bind(g);_.vN("yt.aba.att2",g)};
S1P=function(g){switch(_.lc(g.input)){case _.yp(wnc):var r={};return r.encryptedVideoId=g.innerTubeRequest.externalVideoId,r}return{}};
MAP=function(g){switch(_.lc(g.input)){case _.yp(wnc):if(_.Y("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.yp(O6B):if(_.Y("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.yp(yj):if(_.Y("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&g.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.yp(UIJ):var r,E;if(_.Y("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((E=_.n((r=g.config)==null?void 0:r.command,FmA))==null?0:E.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.unV=function(g){var r;if(g.playlistVideoRenderer&&((r=g.playlistVideoRenderer)==null?0:r.engagementBar))return q1V(g.playlistVideoRenderer.engagementBar);if(_.n(g,vm)){var E;if(g=(E=_.n(g,vm))==null?void 0:E.engagementBar)return q1V(g)}return""};
q1V=function(g){if(!g)return"";g=_.n(g,_.lTl);if(g==null||!g.actions)return"";g=_.U(g.actions);for(g=g.next();!g.done;g=g.next()){g=_.n(g.value,_.DIQ);var r=void 0;if((r=g)==null||!r.itemId)break;return g.itemId}return""};
_.oGD=function(g){var r;if(g.playlistVideoRenderer&&((r=g.playlistVideoRenderer)==null?0:r.videoId))return g.playlistVideoRenderer.videoId;if(_.n(g,vm)){var E,B;if(g=(E=_.n(g,vm))==null?void 0:(B=E.playlistItemData)==null?void 0:B.videoId)return g}return""};
_.GHL=function(g){var r;if(g.playlistVideoRenderer&&((r=g.playlistVideoRenderer)==null?0:r.voteCount))return g.playlistVideoRenderer.voteCount;if(_.n(g,vm)){var E,B;if(g=(E=_.n(g,vm))==null?void 0:(B=E.playlistItemData)==null?void 0:B.voteCount)return g}return 0};
_.d0=function(g,r){return _.u1(g.entities,"flowStateEntity",r)};
zYt=function(g,r,E,B){var w=void 0;g=_.U(g[r.iconName]||[]);for(var O=g.next();!O.done;O=g.next()){O=O.value;var M=r.iconSize;var u=r.iconStyle;M=!M||M===O[2];var l=QGJ[O[0]];B&&B!==O[1]||!M||u&&u!==l?u=!1:w?(u=QGJ[O[0]],u=!!r.iconStyle||u==="youtube_outline",M=w.version<=O[1],u=(!!r.iconSize||O[2]===24)&&u&&M):u=!0;u&&(w={name:r.iconName,style:QGJ[O[0]],size:O[2],version:O[1],allowMirroring:!!O[3],url:E(r.iconName,O)})}return w};
kHl=function(g,r,E,B){return g+(""+QGJ[E[0]]+((B===void 0?0:B)?"_experimental":"")+"/"+r+"/v"+E[1]+"/")+(E[2]+"px.svg")};
H6L=function(g,r){return kHl("https://fonts.gstatic.com/s/i/",g,r)};
pnB=function(g,r){return kHl("https://fonts.gstatic.com/s/i/",g,r,!0)};
Y1V=function(g,r){return kHl("https://www.gstatic.com/youtube/img/icons/web/",g,r)};
nGA=function(g){var r=g.enabled;var E=g.itemPlaybackModel;var B=g.thumbnailElRef;var w=g.containerElRef;var O=g.options;var M;_.bQ(function(){var u=w==null?void 0:w.value;var l,Q=(l=B())==null?void 0:l.value;l=E();var z=O();if(r&&l&&u&&Q&&(z==null?0:z.thumbnail)){var k={data:l,hostElement:u},H,R,A=_.Y("web_explore_hub_on_hover")||_.Y("web_client_explore_hub_on_hover")?[].concat(_.jW((H=z.thumbnailOverlays)!=null?H:[]),_.jW((R=l.overlays)!=null?R:[])):z.thumbnailOverlays||[],J,e;u={mediaRenderer:k,
lockupElement:u,thumbnailElement:Q,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.xP((J=l.inlinePlayerData)==null?void 0:J.onVisible),navigationEndpoint:_.xP((e=l.inlinePlayerData)==null?void 0:e.onSelect),thumbnail:z.thumbnail,thumbnailOverlays:A,accessibilityText:z.accessibilityText||""},thumbnailSize:z.thumbnailSize,enableRounding:z.enableRounding}}}else u=void 0;if(J=u){var C;(C=M)==null||Tu(C);M=XX(J);var X,Z;((X=E())==null?0:(Z=X.inlinePlayerData)==null?0:Z.forceImpAutoplay)&&
RYD(M)}},"B33dEc");
_.J5(function(){var u;(u=M)==null||Tu(u)})};
sGt=function(g){g=atob(g);for(var r=[],E=0;E<g.length;E++)r.push(g.charCodeAt(E));return new Blob([new Uint8Array(r)],{type:"image/png"})};
$IP=function(g,r,E,B){B=B===void 0?"INSERTION_POSITION_UNSPECIFIED":B;return g({targetId:r},function(w){var O,M=(O=w.contents)!=null?O:[];O=E!=null?E:[];var u=fTL(M);switch(B){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},w,{contents:[].concat(_.jW(M.slice(0,u)),_.jW(O),_.jW(M.slice(u+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},w,{contents:[].concat(_.jW(O),_.jW(M))});case "INSERTION_POSITION_LAST":return Object.assign({},w,{contents:[].concat(_.jW(M),_.jW(O))});
default:return w}})};
AUc=function(g,r,E,B,w){w=w===void 0?"RELATIVE_INSERTION_POSITION_AFTER":w;return g({targetId:r},function(O){var M,u=(M=O.contents)!=null?M:[];M=jGJ(u,E);if(M<0)return O;M=w==="RELATIVE_INSERTION_POSITION_BEFORE"?M:M+1;return Object.assign({},O,{contents:[].concat(_.jW(u.slice(0,M)),_.jW(B),_.jW(u.slice(M)))})})};
fTL=function(g){var r=g.findIndex(function(E){return _.n(E,_.gx)});
return r>=0?r:g.length};
jGJ=function(g,r){return g.findIndex(function(E){a:{E=_.U(Object.values(E));for(var B=E.next();!B.done;B=E.next())if((B=B.value)&&B.targetId){E=B.targetId;break a}E=""}return E===r})};
JUP=function(g,r,E){return g({targetId:r},function(B){var w,O=(w=B.contents)!=null?w:[];return Object.assign({},B,{contents:b6J(O,E)})})};
b6J=function(g,r){return g.filter(function(E){var B=r.includes;a:{E=_.U(Object.values(E));for(var w=E.next();!w.done;w=E.next())if((w=w.value)&&w.targetId){E=w.targetId;break a}E=""}return!B.call(r,E||"")})};
_.PEL=function(g,r){return{engagementPanelSectionListRenderer:{panelIdentifier:g,identifier:r,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
_.FBV=function(g){var r,E=(r=g.getOption("captions","tracklist",{includeAsr:!0}))!=null?r:[];return E=tAX(E,g)};
eYo=function(g){return g.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
tAX=function(g,r){r=eYo(r);if(r==null||!r.length)return g;var E=r.filter(function(M){return M});
r=g.filter(function(M){return M.languageCode.startsWith("en")});
E=_.U(E);for(var B=E.next();!B.done;B=E.next())if(B=B.value,r.length){var w=r[0],O=Object.assign({},w);w.languageCode!==B.languageCode&&(O.displayName=w.languageName+" >> "+B.languageName,O.translationLanguage=B,g.push(O))}return g};
WBl=function(g,r,E){g=_.FBV(g);if(g.length)return E?g.find(function(B){if(typeof(B==null?void 0:B.translationLanguage)==="object"){var w;return((w=B.translationLanguage)==null?void 0:w.languageCode)===r}return!1}):g==null?void 0:g.find(function(B){return B.languageCode===r})};
CEP=function(g){return g.getOption("captions","tracklist",{includeAsr:!0})};
KBP=function(g){return g.getOption("captions","tracklist",{includeAsr:!0})};
xIJ=function(g){var r=KBP(g);if(r==null?0:r.length)return r;g.loadModule("captions");return KBP(g)};
aTc=function(g){var r=g.getOption("captions","track");if(r)return r;g.loadModule("captions");return g.getOption("captions","track")};
NZt=function(g){var r=xIJ(g);if(r!=null&&r.length){var E=aTc(g),B;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.zn("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(E==null?0:E.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.jW(r.map(function(w){return{listItemViewModel:{title:{content:w.displayName},
isSelected:w.displayName===(E==null?void 0:E.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:w.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.zn("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!E.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!E.translationLanguage&&{selectionText:{content:(E==null?void 0:(B=E.translationLanguage)==null?void 0:B.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[XnX(g)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
XnX=function(g){var r=eYo(g);if(r==null||!r.length)throw Error("Fi");var E=aTc(g);g=r.filter(function(B){return!B.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.jW(g.map(function(B){var w;return{listItemViewModel:{title:{content:B.languageName},isSelected:B.languageName===(E==null?void 0:(w=E.translationLanguage)==null?void 0:w.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:B.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
i6Y=function(g){return new Promise(function(r,E){if(g===void 0)_.tn(Error("Ji"),"ERROR"),E(Error("Ji"));else{E=new _.ITL;var B=_.mIS();E=E.init();var w=_.cUS(_.Ca("YPC_MB_URL"),!0);Promise.all([E,w]).then(function(){var O=payments.business.integration.ClientTokenFactory.createClientToken(g,B);r(O)})}})};
hYJ=function(g,r,E,B,w,O,M){var u=_.iW();E=E.replace(/-/g,"+").replace(/_/g,"/");var l=_.pu().get("hl"),Q=_.rx(_.hO),z=r==null?void 0:r.element;z&&_.m7(z);LBV(r,!0);_.VAA(Q,E,u.resolve,function(){z&&_.cm(z)},function(k){z&&_.cm(z);
u.reject(k)},l,B?function(k){B&&_.cK(g,B,{backend_analytics:k})}:void 0,u.resolve,w,O,M);
return u.promise};
LBV=function(g,r){!(g=g==null?void 0:g.element)||g.tagName!=="YT-BUTTON-RENDERER"&&g.tagName!=="YTD-BUTTON-RENDERER"||(g.disabled=r)};
Z6l=function(){var g=_.zn("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.gz(g),actionButton:{buttonRenderer:zml()}}},popupType:"TOAST"}};
yUS=function(){var g=_.zn("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.gz(g),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
vGV=function(g){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:g}]}}};
E8=function(g,r,E,B){var w;return _.q(function(O){if(O.nextAddress==1)return _.qN(O,2),_.D(O,g,4);if(O.nextAddress!=2)return(w=_.Rc(r.getState().entities).length>0)?O.return({title:_.gz(_.zn("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.gz(_.zn("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:QsA()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
O.return(kdV(E,B));_.G2(O);return O.return(kdV(E,B))})};
dIB=function(g,r){return r?r==="PPSV"||FMD(g,r):!1};
TZl=function(g){g.responseContext||(g.responseContext={});g.responseContext.maxAgeSeconds=0;return g};
wx=function(g){var r;return _.q(function(E){return E.nextAddress==1?_.D(E,gzP(g,"service:topbar:fallback"),2):(r=E.yieldResult)&&_.Bv(r)?E.return(TZl(_.Bv(r))):E.return()})};
rSY=function(g){var r;return _.q(function(E){return E.nextAddress==1?_.D(E,gzP(g,"service:downloads_settings:fallback"),2):(r=E.yieldResult)&&_.Bv(r)?E.return(r):E.return()})};
gzP=function(g,r){var E;return _.q(function(B){if(B.nextAddress==1)return g?_.D(B,g.get(r),2):B.return();E=B.yieldResult;return!E||!_.Bv(E)||!isNaN(Number(E.data.expireTimestampMs))&&E.isExpired()?B.return():B.return(E)})};
Ezt=function(g){var r=_.rM().resolve(Sa).getState().entities;return g.playlistId?dIB(r,g.playlistId):!1};
BwX=function(g,r){var E;if(r==null?0:(E=r.requestTemplate)==null?0:E.panelId)g.panelId=r.requestTemplate.panelId;var B;if(r==null?0:(B=r.requestTemplate)==null?0:B.params)g.params=r.requestTemplate.params};
SWY=function(){if(wzl)return wzl();var g=!_.Y("idb_response_store_auth_killswitch"),r={};wzl=TZ("yt-it-response-store",{objectStores:(r.ResponseStore={addedAtVersion:1},r),shared:!g,upgrade:function(E,B){B(1)&&(E=X6(E,"ResponseStore",{keyPath:["key","clientName"]}),N_(E,"byExpiration","expireTimestampMs"),N_(E,"byInterface","clientName"))},
version:1});return wzl()};
Ost=function(g){return _.m0(SWY(),g)};
MHJ=function(g,r){var E;return _.q(function(B){return B.nextAddress==1?_.D(B,_.dM(),2):(E=B.yieldResult)?B.return(new U3L(g,r,E)):B.return()})};
qWV=function(g){var r=Object.keys(g)[0];if(r)return g.screenExit&&(r=r+";"+g.screenExit.screen),r};
uHP=function(g){var r=new Map;g=_.U(g);for(var E=g.next();!E.done;E=g.next())E=E.value,E!=null&&(r.has(E.taskType)||r.set(E.taskType,[]),r.get(E.taskType).push(E));return r};
leA=function(g){return!isNaN(g)&&g>0};
D3Q=function(g){g=[].concat(_.jW(g)).sort(function(E,B){return E-B});
var r=Math.floor(g.length/2);return g.length%2?g[r]:(g[r-1]+g[r])/2};
Q5l=function(g,r){g=g===void 0?oPl:g;r=r===void 0?{}:r;_.vN("yt.logging.errors.log",_.tn);lhl();ozP(HWL(),r);window.onerror=g;GBS=Dyt;window.addEventListener("unhandledrejection",function(E){if(E.reason instanceof Error){var B=E.reason;_.Wf(B,{source:"unhandledrejection"});B.name==="AbortError"&&(B.level="WARNING")}Dyt(E.reason);E.preventDefault()})};
_.zWQ=function(g){return g.a11y.ephemeralAction||null};
_.kBY=function(g){var r,E,B,w,O,M,u,l,Q,z,k,H,R,A,J,e,C,X,Z,c,h,y,OD,uB,zS,jV,PJ,At,XY,xc,rg,$t,tD,GD,xb,zL,AD,lA,pt,Mo;return _.q(function(un){if(un.nextAddress==1)return _.D(un,_.zC(g,{mode:"readonly",enableRetries:!0},function(sw){return kD(sw,"playbackData").then(function(J8){var Rm=J8.map(function(Ow){return Ow.transfer}).filter(function(Ow){return!!Ow}),Lw=J8.map(function(Ow){return Ow.offlineVideoPolicy}).filter(function(Ow){return!!Ow}),cb=J8.filter(function(Ow){return!!Ow.key}).map(function(Ow){return _.qr(_.S9(Ow.key).entityId,
"downloadStatusEntity")});
Rm=kD(sw,"transfer",Rm);Lw=kD(sw,"offlineVideoPolicy",Lw);cb=kD(sw,"downloadStatusEntity",cb);var ZI=Rm.then(function(Ow){Ow=Ow.reduce(function(XZ,RA){(RA==null?0:RA.offlineVideoStreams)&&XZ.push.apply(XZ,_.jW(RA.offlineVideoStreams));return XZ},[]).filter(function(XZ){return!!XZ});
return kD(sw,"offlineVideoStreams",Ow)});
return K3.all([Rm,Lw,ZI,cb]).then(function(Ow){var XZ=_.U(Ow);Ow=XZ.next().value;var RA=XZ.next().value;var kb=XZ.next().value;XZ=XZ.next().value;return[J8,Ow,RA,kb,XZ]})})}),2);
if(un.nextAddress!=3)return r=un.yieldResult,_.D(un,_.zC(g,{mode:"readonly",enableRetries:!0},function(sw){return kD(sw,"mainDownloadsListEntity").then(function(J8){var Rm,Lw;return(Lw=(Rm=J8[0])==null?void 0:Rm.downloads)!=null?Lw:[]})}),3);
E=un.yieldResult;B=_.U(r);w=B.next().value;O=B.next().value;M=B.next().value;u=B.next().value;l=B.next().value;Q=w;z=O;k=M;H=u;R=l;A={};J={};e={};C={};X={};Z=[];c=_.U(z);for(h=c.next();!h.done;h=c.next())(y=h.value)&&(A[y.key]=y);OD=_.U(k);for(uB=OD.next();!uB.done;uB=OD.next())(zS=uB.value)&&(J[zS.key]=zS);jV=_.U(R);for(PJ=jV.next();!PJ.done;PJ=jV.next())(At=PJ.value)&&(e[At.key]=At);XY=_.U(H);for(xc=XY.next();!xc.done;xc=XY.next())(rg=xc.value)&&(C[rg.key]=rg);$t=_.U(E);for(tD=$t.next();!tD.done;tD=
$t.next())GD=tD.value,xb=void 0,X[(xb=GD.videoItem)!=null?xb:""]=!0,GD.videoItem&&(AD=zL=void 0,lA=(AD=(zL=_.S9(GD.videoItem))==null?void 0:zL.entityId)!=null?AD:"",Z.push({externalVideoId:lA}));pt=Q.filter(function(sw){if(!sw||!sw.key||!sw.offlineVideoPolicy)return!1;sw=_.S9(sw.key).entityId;sw=_.qr(sw,"downloadStatusEntity");var J8;return!(sw&&((J8=e[sw])==null?void 0:J8.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
Mo=pt.map(function(sw){var J8=A[sw.transfer],Rm=[];if(J8==null?0:J8.offlineVideoStreams)for(var Lw=_.U(J8.offlineVideoStreams),cb=Lw.next();!cb.done;cb=Lw.next())(cb=C[cb.value])&&Rm.push(cb);Lw=J[sw.offlineVideoPolicy];cb=X;var ZI=sw==null?void 0:sw.playerResponseTimestamp,Ow=_.S9(Lw.key).entityId;sw=_.qr(Ow,"mainVideoEntity");if(Lw.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var XZ="OFFLINE_VIDEO_STATE_DISABLED";Lw.expirationTimestamp&&Number(Lw.expirationTimestamp)<Date.now()/1E3&&(XZ="OFFLINE_VIDEO_STATE_EXPIRED")}else if(Lw.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")XZ="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(J8==null?void 0:J8.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":XZ="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":XZ="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":XZ="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":XZ="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":XZ="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":XZ="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:XZ="OFFLINE_VIDEO_STATE_UNKNOWN"}if(XZ==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(J8==null?void 0:J8.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":XZ="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":XZ="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":XZ=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}Ow={id:Ow,videoState:XZ};if(J8==null?0:J8.cotn)Ow.cotn=J8.cotn;if(J8==null?0:J8.maximumDownloadQuality)Ow.selectedVideoQuality=J8==null?void 0:J8.maximumDownloadQuality;if(J8==null?0:J8.lastProgressTimeMs)Ow.lastProgressTimeMs=J8.lastProgressTimeMs;ZI&&(Ow.playerResponseSavedTimeMs=String(Number(ZI)*1E3));J8=String;ZI=0;Rm=_.U(Rm);for(XZ=Rm.next();!XZ.done;XZ=Rm.next())if(XZ=XZ.value,XZ.streamsProgress){XZ=_.U(XZ.streamsProgress);for(var RA=XZ.next();!RA.done;RA=
XZ.next()){var kb=void 0;ZI+=Number((kb=RA.value.numBytesDownloaded)!=null?kb:0)}}Ow.downloadedBytes=J8(ZI);Ow.selectedOfflineMode=cb[sw]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";Lw.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(Ow.offlinePlaybackDisabledReason=Lw.offlinePlaybackDisabledReason);return Ow});
return un.return({offlineVideos:Mo,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:Z}}})})};
HsY=function(){var g;return _.q(function(r){return r.nextAddress==1?_.D(r,_.oc(),2):(g=r.yieldResult)?r.return(_.kBY(g)):r.return({state:"PES Unavailable"})})};
RWl=function(){var g,r,E,B;return _.q(function(w){if(w.nextAddress==1)return _.D(w,_.oc(),2);if(w.nextAddress!=3)return(g=w.yieldResult)?_.D(w,pzY(g),3):w.return({state:"PES Unavailable"});r=w.yieldResult;E={};B=r.reduce(function(O,M){O[M.key]=M;return O},E);
return w.return(YWX(B))})};
YWX=function(g){for(var r={},E=[],B=_.U(Object.keys(g)),w=B.next();!w.done;w=B.next()){var O=w.value;w=g[O];var M=void 0;if(((M=w)==null?void 0:M.entityType)==="mainVideoEntity"){delete g[O];var u=w.data;w={};if(u){var l=void 0;M=(l=u.videoId)!=null?l:"vid-"+O;O=g;w.video=u;delete w.video.formattedDescription;delete w.video.thumbnail;u.owner&&(l=O[u.owner],l==null?0:l.data)&&(delete O[l.key],w.video.owner=l.data,delete w.video.owner.avatar);if(u=u.downloadState)if(l=O[u],l==null?0:l.data)if(delete O[u],
u=l.data.playbackData)if(l=O[u],l!=null&&l.data){delete O[u];u=l.data;delete u.playerResponseJson;w.playbackData=u;if(u.transfer&&(l=O[u.transfer],l==null?0:l.data)){delete O[l.key];var Q=l.data;w.transfer=Q;l=[];Q=_.U(Q.offlineVideoStreams||[]);for(var z=Q.next();!z.done;z=Q.next())if(z=O[z.value])delete O[z.key],l.push(z.data);l&&(w.streams=l)}(u=u.offlineVideoPolicy)&&(u=O[u])&&u.data&&(delete O[u.key],w.offlineVideoPolicy=u.data)}r[M]=w}}else w&&w.entityType==="offlineOrchestrationActionWrapperEntity"&&
w.data&&(delete g[w.key],M=w.data,O=void 0,E.push({id:M.rootActionId,type:((O=M.actionProto)==null?void 0:O.actionType)||"",entity:w}))}r.wrapperEntities=E;Object.keys(g).length>0&&(r.unknownKeys=g);return r};
nzS=function(){var g,r,E,B,w,O,M,u,l;return _.q(function(Q){if(Q.nextAddress==1)return g=!!(new _.xR("")).expiringStorage_,B=!!((r=_.ED.crypto)==null?0:(E=r.subtle)==null?0:E.importKey),w=!!_.ED.BroadcastChannel,O=!!_.ED.navigator.locks,_.D(Q,cFJ(),2);M=Q.yieldResult;u=g&&B&&w&&O&&M;l={isSupported:u};if(u)return Q.return(l);l.missingBrowserFeatures=[];M||l.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");g||l.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
B||l.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");w||l.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");O||l.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return Q.return(l)})};
s5V=function(){var g;return!((g=O8?O8:null)==null||!g.window)};
_.$3B=function(g){if(_.tt()&&_.lQY("Chromium")>=120){var r=_.feS().mediaSession;try{r.setActionHandler("enterpictureinpicture",function(){g()})}catch(E){}}};
j5o=function(g){for(var r=[],E=_.U(document.styleSheets),B=E.next(),w={};!B.done;w={node$jscomp$730:void 0},B=E.next())w.node$jscomp$730=B.value.ownerNode,w.node$jscomp$730&&(w.node$jscomp$730 instanceof HTMLStyleElement||w.node$jscomp$730 instanceof HTMLLinkElement)&&r.push(new Promise(function(O){return function(M){var u=O.node$jscomp$730.cloneNode(!0);u.onload=function(){M()};
u.onerror=function(){_.el(Error("lj"));M()};
g.document.head.appendChild(u)}}(w)));
return Promise.all(r)};
Kac=function(g){var r=[_.EY(ASB),_.EY(bsL),_.EY(JSl)];PUt(window.document.documentElement,g.document.documentElement,[_.EY(tHY),_.EY(FaP),_.EY(eWD),_.EY(WaD),_.EY(CUc)]);PUt(window.document.body,g.document.body,r)};
PUt=function(g,r,E){g=_.U(g.attributes);for(var B=g.next();!B.done;B=g.next())if(B=B.value)try{_.ii(E,r,B.name,B.value)}catch(w){}};
aeY=function(g,r){g=new _.U8(g.document.documentElement);g.start(x3S,r);return g};
XzY=function(g){var r=g.document.documentElement;r.addEventListener("click",function(E){c$L(r,E)});
r.addEventListener("touchstart",function(E){ZTV(E)});
r.addEventListener("mousedown",function(E){ZTV(E)})};
IeD=function(g,r,E,B){B=B===void 0?!1:B;r=new Nwl(r||g,E||g);return{x:g.x+((B===void 0?0:B)?r.lengthX*-1:r.lengthX)*.2,y:g.y+((B===void 0?0:B)?r.lengthY*-1:r.lengthY)*.2}};
m3D=function(g){if(!g)return!1;var r=g.status==="OK"||g.status==="LIVE_STREAM_OFFLINE",E,B,w,O=(w=(E=g.errorScreen)==null?void 0:E.playerLegacyDesktopYpcTrailerRenderer)!=null?w:(B=g.errorScreen)==null?void 0:B.ypcTrailerRenderer;return!!r||!!O};
_.cSc=function(g,r){if(!g)return!1;var E,B=(E=g.errorScreen)==null?void 0:E.playerLegacyDesktopYpcOfferRenderer,w;r=!!(r==null?0:(w=r.playerOverlayRenderer)==null?0:w.gatedActionsOverlayRenderer);return!!m3D(g)||!!B||!!r};
VHB=function(g){return isJ(g,0,"gclid",g.search(LaB))>=0||isJ(g,0,"gad_source",g.search(LaB))>=0};
ySY=function(g){var r=[],E=0;return{clear:function(){E=r.length=0},
push:function(B){r[E]=B;E=(E+1)%g},
iterate:function(){return function w(){var O,M,u,l;return _.hWS(w,function(Q){switch(Q.nextAddress){case 1:_.DD(Q,2),O=r.length,M=0;case 4:if(!(M<O)){Q.jumpTo(2);break}u=E+M;l=_.Zsl;return _.D(Q,r[u%O],7);case 7:l(Q.yieldResult);M++;Q.jumpTo(4);break;case 2:_.uY(Q),_.oF(Q,0)}})}()}}};
d3l=function(){var g=vzB,r=vi.bufferSize;g||(g=[]);g=g.map(SaP);var E=new Set(g),B=ySY(r);return{flush:function(){var w=Array.from(B.iterate());B.clear();w=w.map(function(O){return{name:O.name,timestamp:O.startTime,attributes:O.attributes}});
return JSON.stringify(w)},
onSpanStart:function(w){w.name==="event"&&E.has(w.attributes.type)||B.push(w)}}};
Two=function(){var g=d3l(),r=g.flush;eXJ({onSpanStart:g.onSpanStart});s3L.subscribe("handleError",function(E){try{E.params.breadcrumbs=r()}catch(B){_.tn(B,"WARNING")}})};
gNl=function(g,r,E){var B=g.endTime;if(B==null)throw Error("nj");var w=g.name,O={};B-=g.startTime;var M=g.startTime;O={webTracing:(O[w]=g.attributes,O)};E=_.aa(ZUl)(w,B,M,O,E,r);if(g.children)for(g=_.U(g.children),w=g.next();!w.done;w=g.next())gNl(w.value,r,E)};
ENB=function(){for(var g={},r=_.U(vi.enabledSpansArray),E=r.next();!E.done;E=r.next())g[E.value]=!0;if(vi.exportToCsi||vi.exportBreadcrumbs)g={enabledSpans:g},y_={sessionId:g.sessionId||"",nextSpanId:0,activeSpan:void 0,processors:[],enabledSpans:g.enabledSpans};vi.exportBreadcrumbs&&Two();vi.exportToCsi&&eXJ(rWA)};
BvL=function(g){return new Promise(function(r){window.setTimeout(r,g)})};
wtS=function(g){var r={bicf:function(O){g.dI1=O},
blc:function(){return g.getLatestChallengeResponse()},
bcr:function(O){g.hBi.push(O)}},E=window.top;
E.ntpevasrs=r;if(E.ntpqfbel!==void 0)for(var B=_.U(E.ntpqfbel),w=B.next();!w.done;w=B.next())w=w.value,w(r);E.ntpqfbel=void 0};
Syl=function(g){return _.q(function(r){if(r.nextAddress==1)return _.qN(r,2),_.D(r,g.qyT(),4);if(r.nextAddress!=2)return _.Ne(r,0);_.G2(r);_.Q3(r)})};
OAl=function(g){var r,E;(r=g.ytcsi)==null||(E=r.tick)==null||E.call(r,"pot_ist")};
Ukl=function(g){if(g instanceof Error){var r=_.XS("yt.logging.errors.log");r&&r(g,"WARNING")}};
MeV=function(g){try{var r=JSON.parse(g);if(r.bgChallenge)return r}catch(E){}};
utc=function(){var g=window,r={networkStatusManagerPromise:_.rM().resolve(new jvP(_.id)),initialChallengeSli:_.Y("wpo_att_sli")?new _.egQ("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};g=g===void 0?window:g;var E=g.ytAtR,B;r==null||(B=r.initialChallengeSli)==null||_.MS(B);if(E){if(E=MeV(E)){var w;r==null||(w=r.initialChallengeSli)==null||_.qS(w,"SUCCESS");qyl(E,r)}g.ytAtR=void 0}else g.ytAtRC=function(O){if(O=MeV(O)){var M;r==null||(M=r.initialChallengeSli)==null||
_.qS(M,"SUCCESS");qyl(O,r);g.ytAtRC=void 0}}};
oNo=function(){if(lRX)return lRX;try{var g=_.HT("IFRAME");_.ta(g,_.wF(DkJ));g.sandbox.add("allow-same-origin");g.style.display="none";document.body.appendChild(g);return lRX=g}catch(r){g=new _.Rj("Failed to create sandbox iframe"),_.tn(g)}};
GyL=function(g){var r,E;return(E=g==null?void 0:(r=g.contentWindow)==null?void 0:r.fetch)!=null?E:window.fetch};
QED=function(g){var r,E;return(E=g==null?void 0:(r=g.contentWindow)==null?void 0:r.JSON.parse)!=null?E:JSON.parse};
zvc=function(g){var r,E;return(E=g==null?void 0:(r=g.contentWindow)==null?void 0:r.Request)!=null?E:window.Request};
kyV=function(g){var r,E;return(E=g==null?void 0:(r=g.contentWindow)==null?void 0:r.TextDecoder)!=null?E:window.TextDecoder};
HAL=function(){return function(g,r){_.Ca("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[g]=r}};
ptc=function(){return function(g,r){var E={};E[g]=r;g=_.aa(_.VYB)(E);Object.keys(g).length>0&&_.Pk(g)}};
nNc=function(){if(CFJ()==="hidden")var g="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else CFJ()==="visible"&&(g="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",Yyo=null);g&&RvJ(g)};
RvJ=function(g){if(g==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||g==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(sEJ===g)return;sEJ=g}var r=9E4+Math.random()*2E3;if(g!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.Eq()>r)&&CFJ()==="visible"){r=-1;Yyo&&(r=Math.round((0,_.g2)()-Yyo));var E=String;var B=_.XS("_fact",window);B=B==null||B==-1?-1:Math.max(Date.now()-B,0);_.Jn("foregroundHeartbeat",{firstActivityMs:E(B),clientDocumentNonce:Qwo,index:String(fRc),lastEventDeltaMs:String(r),trigger:g});
_.vN("_fact",-1,window);fRc++;Yyo=(0,_.g2)()}};
_.$kS=function(){try{return!!self.sessionStorage}catch(g){return!1}};
jEL=function(){var g=navigator;return new Promise(function(r,E){var B;(B=g.webkitTemporaryStorage)!=null&&B.queryUsageAndQuota?g.webkitTemporaryStorage.queryUsageAndQuota(function(w,O){r({usage:w,quota:O})},function(w){E(w)}):E(Error("vj"))})};
AWY=function(g,r){var E={errorSeverity:r.errorSeverity.toString(),wizFeatureFlags:Object.entries(r.featureFlags).join("\n")};uIY(r,E);r=r.errorSeverity;r===3?_.tn(g,"ERROR",void 0,void 0,void 0,E):r===2&&_.tn(g,"WARNING",void 0,void 0,void 0,E);_.Y("cow_if_errors_in_popup")&&r===3&&g.message.indexOf("<If>")!==-1&&window.alert(g.message)};
bAX=function(g,r){var E=Z$.get(g)||{layerNode:r};E.layerNode=r;tsP(g,E);g.getScreenLayer=function(){return uj(E.layerNode)}};
JWo=function(g){var r;g=g.parentNode;for(var E;g&&((r=Z$.get(g))==null||!r.isRenderer)&&!((E=g.polymerController)!=null?E:g).isRenderer_;)g=g.parentNode||g.host;if(r=g)return Z$.get(r)};
Pfc=function(g){if(g){Z$.delete(g);var r=_.rM().resolve(Tx);CJt(g,r)}};
FWJ=function(g,r,E){if(E===void 0?0:E){if(E=g.getAttribute("client-ve-type"),r.data&&!r.disableReactiveLogging||E)_.F2(function(){teJ(g,_.t5(r.data))}),_.J5(function(){return void Pfc(g)})}else typeof r.data!=="function"&&teJ(g,r.data)};
teJ=function(g,r){evL++;WWl(g,r)&&_.F6.addJob(function(){_.jT(_.F6,function(){if(WWl(g,r)&&g.ownerDocument.documentElement===document.documentElement&&g){var E;if(g.getAttribute("layer")){var B=E=Number(g.getAttribute("layer")),w=Z$.get(g);w?w.layerNode.layer=B:bAX(g,new CfQ(B));(B=JWo(g))&&(w=Z$.get(g))!=null&&(w.layerNode.parent=B.layerNode)}else if(E=Z$.get(g))E=uj(E.layerNode);else{E=uj;B=new CfQ;if(w=JWo(g))B.parent=w.layerNode;bAX(g,B);E=E(B)}E!=null||(E=0);B=g.getAttribute("client-ve-type");
w=Number(B);var O=!1;B=!1;var M=Z$.get(g),u;if((u=M)&&!(u=M[KWV]!==r)&&(u=w)){var l;u=((l=Z$.get(g))==null?void 0:l.clientVeType)===void 0}u&&(M[KWV]=r,O=B=M.isRenderer=!0);Z$.has(g)&&(Z$.get(g).clientVeType=w);g.visualElement&&(B=!0);if(_.Y("wiz_next_ld_fix_client_ve_spec")){var Q;l=((Q=_.n(r==null?void 0:r.rendererContext,_.YP))==null?void 0:Q.loggingDirectives)||(r==null?void 0:r.loggingDirectives)}else l=r==null?void 0:r.loggingDirectives;l&&l.clientVeSpec&&(Q=xkL(_.kP(),g),Q=_.aRA(_.pW(),l,Q||
void 0,E))&&(g.visualElement=Q);!g.visualElement&&w&&O&&(g.veType=w,Q=void 0,_.Y("wiz_next_client_ve_parent_fix")&&(Q=xkL(_.kP(),g)),Q=_.Hw(_.pW(),g,Q,E),g.visualElement=Q);B&&(Q=_.rM().resolve(Tx),XOS(g,{data:r,observer:Q,layer:E,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
WWl=function(g,r){return(r==null?0:r.trackingParams)||(r==null?0:r.loggingDirectives)||_.n(r==null?void 0:r.rendererContext,_.YP)||g.getAttribute("client-ve-type")?!0:!1};
XtV=function(g,r,E){g.componentType!==fl&&E instanceof HTMLElement&&r&&!_.Y("cow_logging_in_component_wrapper")&&FWJ(E,r,!0)};
LWc=function(){if(!NvQ){NvQ=!0;var g=Object.assign({},{enableLazyTsx:_.Y("mweb_enable_wiz_lazy_tsx")||_.Y("kevlar_enable_wiz_lazy_tsx")||_.Y("creator_enable_wiz_lazy_tsx")||IRQ,flushRenderEffectsDuringRender:!0},{handleError:AWY,enableComponentStacksInErrorMessages:!1});Object.assign(Ex,g);Anl=mkY;cWl();FHD=wOJ;JnA=SHo;_.Y("ytwiz_enable_debug_component_props")&&(g=document.body.firstElementChild,window.ng||g.__ngContext__||(g.__ngContext__={},g.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=
iAD))}};
cWl=function(){_.Y("cow_logging_in_component_wrapper")?(oVc=function(g,r){r instanceof HTMLElement&&FWJ(r,g,!0)},zRc=function(){}):(oVc=function(){},zRc=XtV)};
VeD=function(g,r,E){r=r===void 0?{}:r;var B,w=(B=_.n(g.commandMetadata,_.dU))==null?void 0:B.url;B=r.form||{};!E||B.element||B.skipDefaultElement||(r.form=r.form||{},r.form.element=E);if(w&&w!=="/service_ajax")return{type:0,command:g,form:r.form};if(_.Y("kevlar_service_command_check")){if(_.mJ(_.rM().resolve(_.Wo),g))return Object.assign({},{type:1,command:g},r)}else{var O;if((O=_.n(g.commandMetadata,_.dU))==null?0:O.apiUrl)return Object.assign({},{type:1,command:g},r)}return{type:2,command:g,form:r.form}};
hvl=function(g){if(g.form){var r=g.form,E=Object.assign({},r);r=r.element;E=(delete E.element,E);if(r)return[_.q2(r,[g.command,E,g.commandController])]}return[]};
ZAY=function(g){if(g.form){var r=g.form,E=Object.assign({},r);r=r.element;E=(delete E.element,E);r&&_.uq(r,[g.command],r,E)}};
vNL=function(g,r,E){var B=new yWP(g,r),w=new lj(g,r,E);g={"/youtubei/v1/browse":new DP(g,r,E),"/youtubei/v1/player":B,"/youtubei/v1/navigation/resolve_url":new ox,"/youtubei/v1/next":w,"/youtubei/v1/guide":new GG(E),"/youtubei/v1/search":new Q9(g,r,E),"/youtubei/v1/reel/reel_item_watch":new zG(g,r,E),"/youtubei/v1/get_watch":new kI(B,w)};g["/youtubei/v1/account/account_menu"]=new Hv;g["/youtubei/v1/notification/get_notification_menu"]=new pZ;return g};
Rx=function(){var g=_.rM().resolve(YI);return Promise.resolve(dkL(g,_.ED.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
TvB=function(g){return g&&(g=_.nZ(_.QSB(g)))?(new URLSearchParams(g)).get("service"):null};
$I=function(g,r){_.Mh(_.s8(),function(){_.F4("adl")});
_.rM().resolve(gqJ)(r);g=g.root;g.loadData&&g.loadData(r);(r==null?0:r.response)?_.qS(KCQ(),"SUCCESS"):_.el(new _.Rj("Lifecycle: No response in data",_.Ka("IS_SHELL_LOAD"),r?r.page:"NO_PAGE",r?r.endpoint:"NO_ENDPOINT"));g.polymerController.$["page-manager"].lazyPrepareCriticalPages((r==null?void 0:r.page)||"",r.endpoint);var E,B;((B=_.n(r==null?void 0:(E=r.endpoint)==null?void 0:E.commandMetadata,_.dU))==null?0:B.webPageType)&&_.Zz().dispatch(_.fZ(_.n(r.endpoint.commandMetadata,_.dU).webPageType))};
rYl=function(){var g,r;return _.q(function(E){switch(E.nextAddress){case 1:g=window;if(!g.getDataPromise){E.jumpTo(2);break}_.qN(E,3);return _.D(E,g.getDataPromise(),5);case 5:return E.return(E.yieldResult);case 3:return _.G2(E),_.D(E,Rx(),6);case 6:return E.return(E.yieldResult);case 2:if(g.getInitialData)return r=g.getInitialData(),g.getInitialData=void 0,E.return(r);throw Error("xj`"+_.ED.location.href);}})};
B7S=function(){_.W0("CSI_SERVICE_NAME","youtube");_.Pk({loadType:"cold"});_.Y("kevlar_log_lcp")&&EqY(function(g){_.F4("lcp",g.value)})};
weV=function(){var g=_.IO(document.location.href,"enable");g&&g.indexOf("scraper")>-1&&_.W0("ADD_SCRAPER_ATTRIBUTES",!0)};
qAL=function(g){var r=g.root;g=[SAQ,O8P,_.ja];_.Y("web_feedback_endpoint_autolog_allowlist_killswitch")&&g.push(_.AQ,UTD);MxA(function(E,B){return VeD(E,B,r)},function(E){if(!E.command)return[];
var B;((B=E.form)==null?0:B.element)?E.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},E.form,{endpoint:E.command})})):r.handleNavigate(E);return[]},g);
_.rM().addProvider({provide:_.Er,useValue:_.G$.instance})};
l9o=function(){var g={},r={},E;for(E in ukY){var B=_.U(_.Dk(ukY[E],void 0,"NBH2te"));g[E]=B.next().value;r[E]=B.next().value}return[g,function(w){for(var O in w){var M=void 0;(M=r[O])==null||M(w[O])}}]};
_.GvV=function(g,r){var E=_.jn.getValueByKeys(g,"contents","twoColumnWatchNextResults","results","results","contents"),B=_.jn.getValueByKeys(g,"contents","twoColumnWatchNextResults","playlist","playlist")||null,w=null,O=null;if(B)w=_.jn.getValueByKeys(B,"titleText"),O=_.jn.unsafeClone(_.jn.getValueByKeys(B,"longBylineText")),E="",O&&(E=_.Vp(O)),O=_.Lf(E);else if(E){E=_.U(E);for(var M=E.next();!M.done;M=E.next())M=M.value,M.videoPrimaryInfoRenderer&&(w=_.jn.getValueByKeys.apply(_.jn,[M].concat(_.jW(DTc)))),
M.videoSecondaryInfoRenderer&&(O=_.jn.getValueByKeys.apply(_.jn,[M].concat(_.jW(oqQ))))}else _.NX(Error("Cj"));var u;g.currentVideoEndpoint?u=g.currentVideoEndpoint:_.NX(Error("Dj"));var l;r&&(l=_.jn.getValueByKeys(r,"playabilityStatus","miniplayer","miniplayerRenderer"));g={miniplayerTitle:w,miniplayerSubtitle:O,watchEndpoint:u,playlistData:B};l&&(g.miniplayerRenderer=l);return g};
QLt=function(g){if(g)return _.e_(g)};
_.zDJ=function(){return{isFullscreen:function(){throw Error("Ej");},
toggleFullscreen:function(){throw Error("Fj");},
exitFullscreen:function(){throw Error("Gj");},
isAutonavEnabled:function(){throw Error("Hj");},
setAutonavEnabled:function(){throw Error("Ij");},
isAutoplaySetExplicitly:function(){throw Error("Jj");}}};
kvP=function(g){return g.videoDuration?g.numTaps>1&&g.tapDirection!==0?_.bj(g.draggedTime/g.videoDuration,0,1):_.bj((g.playedTime||0)/g.videoDuration,0,1):0};
H8l=function(g){return g.videoDuration?g.isDragging||g.numTaps>1&&g.tapDirection!==0?_.bj(g.draggedTime/g.videoDuration,0,1):_.bj((g.playedTime||0)/g.videoDuration,0,1):0};
YAQ=function(g){var r,E,B;return _.n(g==null?void 0:(r=g.markersMap)==null?void 0:(E=r.find(function(w){return w.key==="HEATSEEKER"}))==null?void 0:(B=E.value)==null?void 0:B.heatmap,peV)};
RDl=function(g){var r,E;return(E=(r=YAQ(g))==null?void 0:r.heatMarkersDecorations)!=null?E:[]};
nqP=function(g){if(_.Y("mweb_supported_chapters_killswitch"))return!0;var r;return!!(g==null?0:(r=g.markersMap)==null?0:r.find(function(E){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(E.key)}))};
_.sLS=function(g){var r=Object,E=r.assign,B;g={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(B=g==null?void 0:g.getPlayerState())!=null?B:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return E.call(r,{},{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},g,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
f9t=function(g){return function(r){var E=g(),B,w=(B=E.playerApi)==null?void 0:B.getPlayerState();r&&r!==E.playerState&&(r===1||r===2)&&E.setState({playerState:w})}};
jLl=function(g){return function(r){var E=g(),B=E.playerApi;B&&(r==null?void 0:r.type)==="newdata"&&($TS&&(clearTimeout($TS),$TS=void 0),_.Y("web_shorts_use_progress_state_for_gapless")?(r=B==null?void 0:B.getProgressState(r==null?void 0:r.playertype),r=r.seekableEnd-r.seekableStart):r=B==null?void 0:B.getDuration(r==null?void 0:r.playertype),E.setState({playedTime:0,videoDuration:r}))}};
AYB=function(g){return function(r){var E=g(),B=E.playerApi;if(B){var w=B.getPresentingPlayerType();_.Y("web_shorts_use_progress_state_for_gapless")?(B=B.getProgressState(w),B=B.seekableEnd-B.seekableStart):B=B.getDuration(w);E.setState({playedTime:r,videoDuration:B})}}};
JYS=function(g){_.Pm(112394,g,function(){return b8S},function(r){b8S=r})};
FsY=function(g,r){if(!g)return[];var E,B,w;g=((E=g.markersMap)==null?void 0:(B=E.find(function(O){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(O.key)}))==null?void 0:(w=B.value)==null?void 0:w.chapters)||[];
!PCc(g)||(r==null?0:r.ignoreStub)||(g=[txl()].concat(_.jW(g)));return g};
txl=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
PCc=function(g){if(g.length===0)return!1;var r;return((r=_.n(g[0],JQ))==null?void 0:r.timeRangeStartMillis)!==0};
Pv=function(g){return g?g.timeRangeStartMillis||0:0};
WsA=function(g,r){if(g.isDragging&&r)return g=eDS(g,r),g===-1?txl():FsY(r)[g]};
eDS=function(g,r){return g.isDragging&&r?FsY(r,{ignoreStub:!0}).findIndex(function(E,B,w){E=CCP(g);return KsS(E,w,B).scrubberHovering}):-1};
CCP=function(g){return Object.assign({},g,{videoDuration:g.videoDuration*1E3,playedTime:g.playedTime*1E3,draggedTime:g.draggedTime*1E3})};
KsS=function(g,r,E){var B=Pv(_.n(r[E],JQ));r=Pv(_.n(r[E+1],JQ))||g.videoDuration;E=g.isDragging;var w;if(w=g.isDragging)w=g.draggedTime,w=w!==null&&w>=B&&w<r;var O=g.playedTime;return O!==null&&O>=B&&O<r?{videoPosition:"active",isScrubbing:E,scrubberHovering:w}:g.playedTime<B?{videoPosition:"pending",isScrubbing:E,scrubberHovering:w}:{videoPosition:"seen",isScrubbing:E,scrubberHovering:w}};
xTl=function(g,r){return g.videoPosition==="seen"||(r===void 0?0:r)>0};
a9l=function(g,r,E){r=g/r.storyboardInterval;var B=FsY(E);if(!B.length)return-r*72;E=0;B=_.U(B);for(var w=B.next();!w.done;w=B.next())if(Pv(_.n(w.value,JQ))/1E3<g)E++;else break;return-(r*72)-E*56};
Xel=function(g){return g?g.width/g.columns:0};
N7A=function(g){return g.isHovering?g.hoveredTime:g.draggedTime};
I9c=function(g,r){g=g.draggedTime*1E3;return g>=r.visibleTimeRangeStartMillis&&g<=r.visibleTimeRangeEndMillis};
_.mTX=function(g){if(g===void 0||Number.isNaN(g))return"--:--";var r=Math.abs(Math.floor(g)),E=Math.floor(r/86400),B=Math.floor(r%86400/3600),w=Math.floor(r%3600/60);r=Math.floor(r%60);var O="";E>0&&(O+=E+":",B<10&&(O+="0"));if(E>0||B>0)O+=B+":",w<10&&(O+="0");O+=w+":";r<10&&(O+="0");O+=r;return g>=0?O:"-"+O};
cYo=function(g,r){return function(){var E=N7A(g());var B=r();var w=g().playerApi;if(w&&w.getNumberOfStoryboardLevels()!==0){var O=w.getStoryboardFrameIndex(E,1);O!==-1?B=w.getStoryboardFrame(O,1):(E=w.getStoryboardFrameIndex(E,0),w=w.getStoryboardFrame(E,0),B&&w&&(w.height*=3,w.width*=3),B=w)}else B=null;if(!B)return null;r()&&(B.width=90*B.columns,B.height=160*B.rows);return B}};
_.tQ=function(g){if(!g||g.getVideoData)return g};
i8V=function(){var g;return{playerApi:(g=_.qQ())!=null?g:void 0}};
LsY=function(g){var r;_.q(function(E){if(E.nextAddress==1)return _.D(E,_.MQ(),2);if(r=E.yieldResult)r.unMute(!0),r.setVolume(g,!0);_.Q3(E)})};
VxS=function(g,r){g&&(g.value=""+r,g.style.setProperty("--gradient-percent",r+"%"))};
hDQ=function(g){var r;return(r=g==null?void 0:g.value)!=null?r:0};
Z8Q=function(){var g;_.q(function(r){if(r.nextAddress==1)return _.D(r,_.MQ(),2);g=r.yieldResult;if(!g)return r.return();g.isMuted()?g.unMute(!0):g.mute(!0);_.Q3(r)})};
yYQ=function(g){var r=_.rM().resolve(_.ea).getPlayerElement();r&&g&&(g===1?r.pause():r.play())};
vqL=function(g){_.US(g,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
dTB=function(g){_.US(g,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
gSD=function(g){return _.$F(g.document.body,function(){return _.G(T7S,null)})};
rPY=function(){var g=window.performance.getEntriesByType("navigation");return g?g.map(function(r){return r.type}).includes("reload"):!1};
qfA=function(){Wv(Wv(Wv(Wv(Wv(Wv(Wv(_.rM().resolve(_.CZ),_.ESl),_.BKX),_.wBB),_.Sfl),_.OSD),_.U$V),_.MjJ)};
ugP=function(g,r){r=r===void 0?!1:r;var E,B,w,O;return _.q(function(M){if(M.nextAddress==1)return r||!_.Y("kevlar_shorts_seedless_retry_initial_load")||(E=window,B=!(!E.getDataPromise&&!E.getInitialData),B)?_.D(M,rYl(),2):(setTimeout(ugP.bind(window,g,!0),1E3),M.return());if(M.nextAddress!=3)return w=M.yieldResult,_.D(M,l_J(w),3);O=M.yieldResult;$I(g,O);_.Q3(M)})};
l_J=function(g){var r;if((r=g.response)==null||!r.replacementEndpoint)return _.lq(g);r=_.rM().resolve(YI);g=g.response;_.n(g.replacementEndpoint,_.sP)&&g.sequenceContinuation&&(_.n(g.replacementEndpoint,_.sP).sequenceParams=g.sequenceContinuation);return KZ(r,g.replacementEndpoint,{},_.ED.location.href,"shorts",function(){},function(){return!1})};
oSY=function(g){var r=_.rM().resolve(D$l);g.playerResponse&&r.handleResponse(g.playerResponse);g.response&&r.handleResponse(g.response)};
GfV=function(g){var r=_.Zz(),E,B=_.n((E=g.response)==null?void 0:E.frameworkUpdates,VY),w;E=_.n((w=g.playerResponse)==null?void 0:w.frameworkUpdates,VY);var O;g=_.n((O=g.reelWatchSequenceResponse)==null?void 0:O.frameworkUpdates,VY);B&&_.Qp(B,r);E&&_.Qp(E,r);g&&_.Qp(g,r)};
QKB=function(g){var r;_.Y("enable_redirect_linking_for_desktop_web_client")&&((r=window.location.hash)==null?0:r.includes("redirect_state"))&&g.url&&(g.url=g.url.toString()+window.location.hash)};
HSX=function(g){var r=_.rM(),E=r.resolve(YI);r=r.resolve(_.zdV);g.endpoint&&(E=kfD(E,g.endpoint),E.content&&g.response&&_.xI(r,g.response,E.content),E.player&&g.playerResponse&&_.xI(r,g.playerResponse,E.player),E.reelSequence&&g.reelWatchSequenceResponse&&_.xI(r,g.reelWatchSequenceResponse,E.reelSequence))};
ax=function(g,r){_.Y("web_service_params_response_processor")&&oSY(r);GfV(r);var E;(r==null?0:r.url)&&((E=window.location.hash)==null?0:E.includes("redirect_state"))&&(QKB(r),(E=TvB(r.url))&&_.OS(g.root,"yt-initialize-third-party",[E,r]));HSX(r);E=_.rM();var B=E.resolve(pBB);r.playerResponse&&E.resolve(Yft).handleResponse(r.playerResponse);if(r.playerResponse){E=void 0;if(_.Y("ab_v_vid_sig")&&r.endpoint){var w,O=(w=_.n(r.endpoint,_.LM))!=null?w:_.n(r.endpoint,_.sP);O&&(E=O.videoId)}RdS(B,r.playerResponse,
E)}r.playerResponse&&vll(r.playerResponse)&&_.Y("web_enable_ab_rsp_cl")?iFV().then(function(){nSl(B,r.playerResponse);$I(g,r)}):$I(g,r)};
f_B=function(g){if(g=g.root.data){var r=_.rM().resolve(sKt);g.endpoint&&(g.response&&r.handleResponse(g.response,void 0,document.querySelector("ytd-app")),g.playerResponse&&r.handleResponse(g.playerResponse),g.reelWatchSequenceResponse&&r.handleResponse(g.reelWatchSequenceResponse))}};
$$c=function(g){var r,E,B,w,O,M;return _.q(function(u){switch(u.nextAddress){case 1:r=window;if(!r.getDataPromise){u.jumpTo(2);break}_.qN(u,3);return _.D(u,r.getDataPromise(),5);case 5:E=u.yieldResult;ax(g,E);_.Ne(u,4);break;case 3:return _.G2(u),_.D(u,Rx(),6);case 6:B=u.yieldResult,$I(g,B);case 4:return u.return();case 2:if(!_.Y("sw_nav_preload_pbj")){u.jumpTo(7);break}r.fetchInitialData=function(){var l;return _.q(function(Q){if(Q.nextAddress==1)return _.D(Q,Rx(),2);l=Q.yieldResult;$I(g,l);_.Q3(Q)})};
if(r.getInitialData){r.loadInitialData=function(l){ax(g,l)};
w=r.getInitialData();r.getInitialData=void 0;ax(g,w);u.jumpTo(8);break}r.fetchInitialData=void 0;return _.D(u,Rx(),9);case 9:O=u.yieldResult,$I(g,O);case 8:return u.return();case 7:r.getInitialData?(M=r.getInitialData(),r.getInitialData=void 0,ax(g,M)):r.loadInitialData=function(l){ax(g,l)},_.Q3(u)}})};
jKQ=function(g){var r=0;return function(){return r<g.length?{done:!1,value:g[r++]}:{done:!0}}};
APc=typeof Object.defineProperties=="function"?Object.defineProperty:function(g,r,E){if(g==Array.prototype||g==Object.prototype)return g;g[r]=E.value;return g};
bSA=function(g){g=["object"==typeof globalThis&&globalThis,g,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var r=0;r<g.length;++r){var E=g[r];if(E&&E.Math==Math)return E}throw Error("a");};
_.hx=bSA(this);Xa=function(g,r){if(r)a:{var E=_.hx;g=g.split(".");for(var B=0;B<g.length-1;B++){var w=g[B];if(!(w in E))break a;E=E[w]}g=g[g.length-1];B=E[g];r=r(B);r!=B&&r!=null&&APc(E,g,{configurable:!0,writable:!0,value:r})}};
Xa("Symbol",function(g){if(g)return g;var r=function(O,M){this.$jscomp$symbol$id_=O;APc(this,"description",{configurable:!0,writable:!0,value:M})};
r.prototype.toString=function(){return this.$jscomp$symbol$id_};
var E="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",B=0,w=function(O){if(this instanceof w)throw new TypeError("b");return new r(E+(O||"")+"_"+B++,O)};
return w});
Xa("Symbol.iterator",function(g){if(g)return g;g=Symbol("c");for(var r="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),E=0;E<r.length;E++){var B=_.hx[r[E]];typeof B==="function"&&typeof B.prototype[g]!="function"&&APc(B.prototype,g,{configurable:!0,writable:!0,value:function(){return JPP(jKQ(this))}})}return g});
Xa("Symbol.asyncIterator",function(g){return g?g:Symbol("d")});
var JPP=function(g){g={next:g};g[Symbol.iterator]=function(){return this};
return g},P3Q=typeof Object.create=="function"?Object.create:function(g){var r=function(){};
r.prototype=g;return new r},tjV=function(){function g(){function E(){}
new E;Reflect.construct(E,[],function(){});
return new E instanceof E}
if(typeof Reflect!="undefined"&&Reflect.construct){if(g())return Reflect.construct;var r=Reflect.construct;return function(E,B,w){E=r(E,B);w&&Reflect.setPrototypeOf(E,w.prototype);return E}}return function(E,B,w){w===void 0&&(w=E);
w=P3Q(w.prototype||Object.prototype);return Function.prototype.apply.call(E,w,B)||w}}(),Fil;
if(typeof Object.setPrototypeOf=="function")Fil=Object.setPrototypeOf;else{var edA;a:{var WiJ={a:!0},C3l={};try{C3l.__proto__=WiJ;edA=C3l.a;break a}catch(g){}edA=!1}Fil=edA?function(g,r){g.__proto__=r;if(g.__proto__!==r)throw new TypeError("e`"+g);return g}:null}NS=Fil;
_.f=function(g,r){g.prototype=P3Q(r.prototype);g.prototype.constructor=g;if(NS)NS(g,r);else for(var E in r)if(E!="prototype")if(Object.defineProperties){var B=Object.getOwnPropertyDescriptor(r,E);B&&Object.defineProperty(g,E,B)}else g[E]=r[E];g.superClass_=r.prototype};
_.U=function(g){var r=typeof Symbol!="undefined"&&Symbol.iterator&&g[Symbol.iterator];if(r)return r.call(g);if(typeof g.length=="number")return{next:jKQ(g)};throw Error("f`"+String(g));};
Zq=function(g){for(var r,E=[];!(r=g.next()).done;)E.push(r.value);return E};
_.jW=function(g){return g instanceof Array?g:Zq(_.U(g))};
_.me=function(g){return Ix(g,g)};
Ix=function(g,r){g.raw=r;Object.freeze&&(Object.freeze(g),Object.freeze(r));return g};
cv=function(g,r){return Object.prototype.hasOwnProperty.call(g,r)};
Kil=typeof Object.assign=="function"?Object.assign:function(g,r){for(var E=1;E<arguments.length;E++){var B=arguments[E];if(B)for(var w in B)cv(B,w)&&(g[w]=B[w])}return g};
Xa("Object.assign",function(g){return g||Kil});
var x$J=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},a_l=function(g){if(g.isRunning_)throw new TypeError("h");
g.isRunning_=!0};
x$J.prototype.JSC$6827_next_=function(g){this.yieldResult=g};
var XBD=function(g,r){g.abruptCompletion_={exception:r,isException:!0};g.nextAddress=g.catchAddress_||g.finallyAddress_};
x$J.prototype.return=function(g){this.abruptCompletion_={return:g};this.nextAddress=this.finallyAddress_};
_.D=function(g,r,E){g.nextAddress=E;return{value:r}};
x$J.prototype.jumpTo=function(g){this.nextAddress=g};
_.Q3=function(g){g.nextAddress=0};
_.qN=function(g,r,E){g.catchAddress_=r;E!=void 0&&(g.finallyAddress_=E)};
_.DD=function(g,r){g.catchAddress_=0;g.finallyAddress_=r||0};
_.Ne=function(g,r,E){g.nextAddress=r;g.catchAddress_=E||0};
_.G2=function(g,r){g.catchAddress_=r||0;r=g.abruptCompletion_.exception;g.abruptCompletion_=null;return r};
_.uY=function(g,r,E,B){B?g.finallyContexts_[B]=g.abruptCompletion_:g.finallyContexts_=[g.abruptCompletion_];g.catchAddress_=r||0;g.finallyAddress_=E||0};
_.oF=function(g,r,E){E=g.finallyContexts_.splice(E||0)[0];(E=g.abruptCompletion_=g.abruptCompletion_||E)?E.isException?g.nextAddress=g.catchAddress_||g.finallyAddress_:E.jumpTo!=void 0&&g.finallyAddress_<E.jumpTo?(g.nextAddress=E.jumpTo,g.abruptCompletion_=null):g.nextAddress=g.finallyAddress_:g.nextAddress=r};
NKB=function(g){this.JSC$6832_context_=new x$J;this.program_=g};
m$A=function(g,r){a_l(g.JSC$6832_context_);var E=g.JSC$6832_context_.yieldAllIterator_;if(E)return I_D(g,"return"in E?E["return"]:function(B){return{value:B,done:!0}},r,g.JSC$6832_context_.return);
g.JSC$6832_context_.return(r);return ij(g)};
I_D=function(g,r,E,B){try{var w=r.call(g.JSC$6832_context_.yieldAllIterator_,E);if(!(w instanceof Object))throw new TypeError("g`"+w);if(!w.done)return g.JSC$6832_context_.isRunning_=!1,w;var O=w.value}catch(M){return g.JSC$6832_context_.yieldAllIterator_=null,XBD(g.JSC$6832_context_,M),ij(g)}g.JSC$6832_context_.yieldAllIterator_=null;B.call(g.JSC$6832_context_,O);return ij(g)};
ij=function(g){for(;g.JSC$6832_context_.nextAddress;)try{var r=g.program_(g.JSC$6832_context_);if(r)return g.JSC$6832_context_.isRunning_=!1,{value:r.value,done:!1}}catch(E){g.JSC$6832_context_.yieldResult=void 0,XBD(g.JSC$6832_context_,E)}g.JSC$6832_context_.isRunning_=!1;if(g.JSC$6832_context_.abruptCompletion_){r=g.JSC$6832_context_.abruptCompletion_;g.JSC$6832_context_.abruptCompletion_=null;if(r.isException)throw r.exception;return{value:r.return,done:!0}}return{value:void 0,done:!0}};
cPS=function(g){this.next=function(r){a_l(g.JSC$6832_context_);g.JSC$6832_context_.yieldAllIterator_?r=I_D(g,g.JSC$6832_context_.yieldAllIterator_.next,r,g.JSC$6832_context_.JSC$6827_next_):(g.JSC$6832_context_.JSC$6827_next_(r),r=ij(g));return r};
this.throw=function(r){a_l(g.JSC$6832_context_);g.JSC$6832_context_.yieldAllIterator_?r=I_D(g,g.JSC$6832_context_.yieldAllIterator_["throw"],r,g.JSC$6832_context_.JSC$6827_next_):(XBD(g.JSC$6832_context_,r),r=ij(g));return r};
this.return=function(r){return m$A(g,r)};
this[Symbol.iterator]=function(){return this}};
_.hWS=function(g,r){r=new cPS(new NKB(r));NS&&g.prototype&&NS(r,g.prototype);return r};
iSt=function(g){function r(B){return g.next(B)}
function E(B){return g.throw(B)}
return new Promise(function(B,w){function O(M){M.done?B(M.value):Promise.resolve(M.value).then(r,E).then(O,w)}
O(g.next())})};
_.q=function(g){return iSt(new cPS(new NKB(g)))};
cBo=function(g){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return g};
this.next=function(r){return Promise.resolve(g.next(r))};
this["throw"]=function(r){return new Promise(function(E,B){var w=g["throw"];w!==void 0?E(w.call(g,r)):(E=g["return"],E!==void 0&&E.call(g),B(new TypeError("i")))})};
g["return"]!==void 0&&(this["return"]=function(r){return Promise.resolve(g["return"](r))})};
_.fI=function(){for(var g=Number(this),r=[],E=g;E<arguments.length;E++)r[E-g]=arguments[E];return r};
_.Zsl=function(g){return g};
Xa("globalThis",function(g){return g||_.hx});
Xa("Reflect",function(g){return g?g:{}});
Xa("Reflect.construct",function(){return tjV});
Xa("Reflect.setPrototypeOf",function(g){return g?g:NS?function(r,E){try{return NS(r,E),!0}catch(B){return!1}}:null});
Xa("Promise",function(g){function r(){this.batch_=null}
function E(M){return M instanceof w?M:new w(function(u){u(M)})}
if(g&&(typeof _.hx.PromiseRejectionEvent!=="undefined"||!_.hx.Promise||_.hx.Promise.toString().indexOf("[native code]")===-1))return g;r.prototype.asyncExecute=function(M){if(this.batch_==null){this.batch_=[];var u=this;this.asyncExecuteFunction(function(){u.executeBatch_()})}this.batch_.push(M)};
var B=_.hx.setTimeout;r.prototype.asyncExecuteFunction=function(M){B(M,0)};
r.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var M=this.batch_;this.batch_=[];for(var u=0;u<M.length;++u){var l=M[u];M[u]=null;try{l()}catch(Q){this.asyncThrow_(Q)}}}this.batch_=null};
r.prototype.asyncThrow_=function(M){this.asyncExecuteFunction(function(){throw M;})};
var w=function(M){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var u=this.createResolveAndReject_();try{M(u.resolve,u.reject)}catch(l){u.reject(l)}};
w.prototype.createResolveAndReject_=function(){function M(Q){return function(z){l||(l=!0,Q.call(u,z))}}
var u=this,l=!1;return{resolve:M(this.resolveTo_),reject:M(this.JSC$6848_reject_)}};
w.prototype.resolveTo_=function(M){if(M===this)this.JSC$6848_reject_(new TypeError("j"));else if(M instanceof w)this.settleSameAsPromise_(M);else{a:switch(typeof M){case "object":var u=M!=null;break a;case "function":u=!0;break a;default:u=!1}u?this.resolveToNonPromiseObj_(M):this.fulfill_(M)}};
w.prototype.resolveToNonPromiseObj_=function(M){var u=void 0;try{u=M.then}catch(l){this.JSC$6848_reject_(l);return}typeof u=="function"?this.settleSameAsThenable_(u,M):this.fulfill_(M)};
w.prototype.JSC$6848_reject_=function(M){this.settle_(2,M)};
w.prototype.fulfill_=function(M){this.settle_(1,M)};
w.prototype.settle_=function(M,u){if(this.state_!=0)throw Error("k`"+M+"`"+u+"`"+this.state_);this.state_=M;this.result_=u;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
w.prototype.scheduleUnhandledRejectionCheck_=function(){var M=this;B(function(){if(M.notifyUnhandledRejection_()){var u=_.hx.console;typeof u!=="undefined"&&u.error(M.result_)}},1)};
w.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var M=_.hx.CustomEvent,u=_.hx.Event,l=_.hx.dispatchEvent;if(typeof l==="undefined")return!0;typeof M==="function"?M=new M("unhandledrejection",{cancelable:!0}):typeof u==="function"?M=new u("unhandledrejection",{cancelable:!0}):(M=_.hx.document.createEvent("CustomEvent"),M.initCustomEvent("unhandledrejection",!1,!0,M));M.promise=this;M.reason=this.result_;return l(M)};
w.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var M=0;M<this.onSettledCallbacks_.length;++M)O.asyncExecute(this.onSettledCallbacks_[M]);this.onSettledCallbacks_=null}};
var O=new r;w.prototype.settleSameAsPromise_=function(M){var u=this.createResolveAndReject_();M.callWhenSettled_(u.resolve,u.reject)};
w.prototype.settleSameAsThenable_=function(M,u){var l=this.createResolveAndReject_();try{M.call(u,l.resolve,l.reject)}catch(Q){l.reject(Q)}};
w.prototype.then=function(M,u){function l(H,R){return typeof H=="function"?function(A){try{Q(H(A))}catch(J){z(J)}}:R}
var Q,z,k=new w(function(H,R){Q=H;z=R});
this.callWhenSettled_(l(M,Q),l(u,z));return k};
w.prototype.catch=function(M){return this.then(void 0,M)};
w.prototype.callWhenSettled_=function(M,u){function l(){switch(Q.state_){case 1:M(Q.result_);break;case 2:u(Q.result_);break;default:throw Error("l`"+Q.state_);}}
var Q=this;this.onSettledCallbacks_==null?O.asyncExecute(l):this.onSettledCallbacks_.push(l);this.isRejectionHandled_=!0};
w.resolve=E;w.reject=function(M){return new w(function(u,l){l(M)})};
w.race=function(M){return new w(function(u,l){for(var Q=_.U(M),z=Q.next();!z.done;z=Q.next())E(z.value).callWhenSettled_(u,l)})};
w.all=function(M){var u=_.U(M),l=u.next();return l.done?E([]):new w(function(Q,z){function k(A){return function(J){H[A]=J;R--;R==0&&Q(H)}}
var H=[],R=0;do H.push(void 0),R++,E(l.value).callWhenSettled_(k(H.length-1),z),l=u.next();while(!l.done)})};
return w});
var LZ=function(g,r,E){if(g==null)throw new TypeError("m`"+E);if(r instanceof RegExp)throw new TypeError("n`"+E);return g+""};
Xa("String.prototype.startsWith",function(g){return g?g:function(r,E){var B=LZ(this,r,"startsWith"),w=B.length,O=r.length;E=Math.max(0,Math.min(E|0,B.length));for(var M=0;M<O&&E<w;)if(B[E++]!=r[M++])return!1;return M>=O}});
Xa("Object.setPrototypeOf",function(g){return g||NS});
Xa("Symbol.dispose",function(g){return g?g:Symbol("o")});
Xa("SuppressedError",function(g){function r(E,B,w){if(!(this instanceof r))return new r(E,B,w);w=Error(w);"stack"in w&&(this.stack=w.stack);this.message=w.message;this.error=E;this.suppressed=B}
if(g)return g;_.f(r,Error);r.prototype.name="SuppressedError";return r});
var LiV=function(g,r,E){g instanceof String&&(g=String(g));for(var B=g.length,w=0;w<B;w++){var O=g[w];if(r.call(E,O,w,g))return{i:w,v:O}}return{i:-1,v:void 0}};
Xa("Array.prototype.find",function(g){return g?g:function(r,E){return LiV(this,r,E).v}});
Xa("WeakMap",function(g){function r(){}
function E(l){var Q=typeof l;return Q==="object"&&l!==null||Q==="function"}
function B(l){if(!cv(l,O)){var Q=new r;APc(l,O,{value:Q})}}
function w(l){var Q=Object[l];Q&&(Object[l]=function(z){if(z instanceof r)return z;Object.isExtensible(z)&&B(z);return Q(z)})}
if(function(){if(!g||!Object.seal)return!1;try{var l=Object.seal({}),Q=Object.seal({}),z=new g([[l,2],[Q,3]]);if(z.get(l)!=2||z.get(Q)!=3)return!1;z.delete(l);z.set(Q,4);return!z.has(l)&&z.get(Q)==4}catch(k){return!1}}())return g;
var O="$jscomp_hidden_"+Math.random();w("freeze");w("preventExtensions");w("seal");var M=0,u=function(l){this.JSC$6855_id_=(M+=Math.random()+1).toString();if(l){l=_.U(l);for(var Q;!(Q=l.next()).done;)Q=Q.value,this.set(Q[0],Q[1])}};
u.prototype.set=function(l,Q){if(!E(l))throw Error("p");B(l);if(!cv(l,O))throw Error("q`"+l);l[O][this.JSC$6855_id_]=Q;return this};
u.prototype.get=function(l){return E(l)&&cv(l,O)?l[O][this.JSC$6855_id_]:void 0};
u.prototype.has=function(l){return E(l)&&cv(l,O)&&cv(l[O],this.JSC$6855_id_)};
u.prototype.delete=function(l){return E(l)&&cv(l,O)&&cv(l[O],this.JSC$6855_id_)?delete l[O][this.JSC$6855_id_]:!1};
return u});
Xa("Map",function(g){if(function(){if(!g||typeof g!="function"||!g.prototype.entries||typeof Object.seal!="function")return!1;try{var u=Object.seal({x:4}),l=new g(_.U([[u,"s"]]));if(l.get(u)!="s"||l.size!=1||l.get({x:4})||l.set({x:4},"t")!=l||l.size!=2)return!1;var Q=l.entries(),z=Q.next();if(z.done||z.value[0]!=u||z.value[1]!="s")return!1;z=Q.next();return z.done||z.value[0].x!=4||z.value[1]!="t"||!Q.next().done?!1:!0}catch(k){return!1}}())return g;
var r=new WeakMap,E=function(u){this[0]={};this[1]=O();this.size=0;if(u){u=_.U(u);for(var l;!(l=u.next()).done;)l=l.value,this.set(l[0],l[1])}};
E.prototype.set=function(u,l){u=u===0?0:u;var Q=B(this,u);Q.list||(Q.list=this[0][Q.id]=[]);Q.entry?Q.entry.value=l:(Q.entry={next:this[1],previous:this[1].previous,head:this[1],key:u,value:l},Q.list.push(Q.entry),this[1].previous.next=Q.entry,this[1].previous=Q.entry,this.size++);return this};
E.prototype.delete=function(u){u=B(this,u);return u.entry&&u.list?(u.list.splice(u.index,1),u.list.length||delete this[0][u.id],u.entry.previous.next=u.entry.next,u.entry.next.previous=u.entry.previous,u.entry.head=null,this.size--,!0):!1};
E.prototype.clear=function(){this[0]={};this[1]=this[1].previous=O();this.size=0};
E.prototype.has=function(u){return!!B(this,u).entry};
E.prototype.get=function(u){return(u=B(this,u).entry)&&u.value};
E.prototype.entries=function(){return w(this,function(u){return[u.key,u.value]})};
E.prototype.keys=function(){return w(this,function(u){return u.key})};
E.prototype.values=function(){return w(this,function(u){return u.value})};
E.prototype.forEach=function(u,l){for(var Q=this.entries(),z;!(z=Q.next()).done;)z=z.value,u.call(l,z[1],z[0],this)};
E.prototype[Symbol.iterator]=E.prototype.entries;var B=function(u,l){var Q=l&&typeof l;Q=="object"||Q=="function"?r.has(l)?Q=r.get(l):(Q=""+ ++M,r.set(l,Q)):Q="p_"+l;var z=u[0][Q];if(z&&cv(u[0],Q))for(u=0;u<z.length;u++){var k=z[u];if(l!==l&&k.key!==k.key||l===k.key)return{id:Q,list:z,index:u,entry:k}}return{id:Q,list:z,index:-1,entry:void 0}},w=function(u,l){var Q=u[1];
return JPP(function(){if(Q){for(;Q.head!=u[1];)Q=Q.previous;for(;Q.next!=Q.head;)return Q=Q.next,{done:!1,value:l(Q)};Q=null}return{done:!0,value:void 0}})},O=function(){var u={};
return u.previous=u.next=u.head=u},M=0;
return E});
Xa("Set",function(g){if(function(){if(!g||typeof g!="function"||!g.prototype.entries||typeof Object.seal!="function")return!1;try{var E=Object.seal({x:4}),B=new g(_.U([E]));if(!B.has(E)||B.size!=1||B.add(E)!=B||B.size!=1||B.add({x:4})!=B||B.size!=2)return!1;var w=B.entries(),O=w.next();if(O.done||O.value[0]!=E||O.value[1]!=E)return!1;O=w.next();return O.done||O.value[0]==E||O.value[0].x!=4||O.value[1]!=O.value[0]?!1:w.next().done}catch(M){return!1}}())return g;
var r=function(E){this.JSC$6869_map_=new Map;if(E){E=_.U(E);for(var B;!(B=E.next()).done;)this.add(B.value)}this.size=this.JSC$6869_map_.size};
r.prototype.add=function(E){E=E===0?0:E;this.JSC$6869_map_.set(E,E);this.size=this.JSC$6869_map_.size;return this};
r.prototype.delete=function(E){E=this.JSC$6869_map_.delete(E);this.size=this.JSC$6869_map_.size;return E};
r.prototype.clear=function(){this.JSC$6869_map_.clear();this.size=0};
r.prototype.has=function(E){return this.JSC$6869_map_.has(E)};
r.prototype.entries=function(){return this.JSC$6869_map_.entries()};
r.prototype.values=function(){return this.JSC$6869_map_.values()};
r.prototype.keys=r.prototype.values;r.prototype[Symbol.iterator]=r.prototype.values;r.prototype.forEach=function(E,B){var w=this;this.JSC$6869_map_.forEach(function(O){return E.call(B,O,O,w)})};
return r});
Xa("Math.log2",function(g){return g?g:function(r){return Math.log(r)/Math.LN2}});
Xa("Object.values",function(g){return g?g:function(r){var E=[],B;for(B in r)cv(r,B)&&E.push(r[B]);return E}});
Xa("Object.is",function(g){return g?g:function(r,E){return r===E?r!==0||1/r===1/E:r!==r&&E!==E}});
Xa("Array.prototype.includes",function(g){return g?g:function(r,E){var B=this;B instanceof String&&(B=String(B));var w=B.length;E=E||0;for(E<0&&(E=Math.max(E+w,0));E<w;E++){var O=B[E];if(O===r||Object.is(O,r))return!0}return!1}});
Xa("String.prototype.includes",function(g){return g?g:function(r,E){return LZ(this,r,"includes").indexOf(r,E||0)!==-1}});
Xa("Array.from",function(g){return g?g:function(r,E,B){E=E!=null?E:function(u){return u};
var w=[],O=typeof Symbol!="undefined"&&Symbol.iterator&&r[Symbol.iterator];if(typeof O=="function"){r=O.call(r);for(var M=0;!(O=r.next()).done;)w.push(E.call(B,O.value,M++))}else for(O=r.length,M=0;M<O;M++)w.push(E.call(B,r[M],M));return w}});
Xa("Object.entries",function(g){return g?g:function(r){var E=[],B;for(B in r)cv(r,B)&&E.push([B,r[B]]);return E}});
Xa("Number.isFinite",function(g){return g?g:function(r){return typeof r!=="number"?!1:!isNaN(r)&&r!==Infinity&&r!==-Infinity}});
Xa("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
Xa("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
Xa("Number.isInteger",function(g){return g?g:function(r){return Number.isFinite(r)?r===Math.floor(r):!1}});
Xa("Number.isSafeInteger",function(g){return g?g:function(r){return Number.isInteger(r)&&Math.abs(r)<=Number.MAX_SAFE_INTEGER}});
Xa("String.prototype.endsWith",function(g){return g?g:function(r,E){var B=LZ(this,r,"endsWith");E===void 0&&(E=B.length);E=Math.max(0,Math.min(E|0,B.length));for(var w=r.length;w>0&&E>0;)if(B[--E]!=r[--w])return!1;return w<=0}});
var VjL=function(g,r){g instanceof String&&(g+="");var E=0,B=!1,w={next:function(){if(!B&&E<g.length){var O=E++;return{value:r(O,g[O]),done:!1}}B=!0;return{done:!0,value:void 0}}};
w[Symbol.iterator]=function(){return w};
return w};
Xa("Array.prototype.entries",function(g){return g?g:function(){return VjL(this,function(r,E){return[r,E]})}});
Xa("Math.trunc",function(g){return g?g:function(r){r=Number(r);if(isNaN(r)||r===Infinity||r===-Infinity||r===0)return r;var E=Math.floor(Math.abs(r));return r<0?-E:E}});
Xa("Number.isNaN",function(g){return g?g:function(r){return typeof r==="number"&&isNaN(r)}});
Xa("Array.prototype.keys",function(g){return g?g:function(){return VjL(this,function(r){return r})}});
Xa("Array.prototype.values",function(g){return g?g:function(){return VjL(this,function(r,E){return E})}});
Xa("Array.prototype.fill",function(g){return g?g:function(r,E,B){var w=this.length||0;E<0&&(E=Math.max(0,w+E));if(B==null||B>w)B=w;B=Number(B);B<0&&(B=Math.max(0,w+B));for(E=Number(E||0);E<B;E++)this[E]=r;return this}});
var V9=function(g){return g?g:Array.prototype.fill};
Xa("Int8Array.prototype.fill",V9);Xa("Uint8Array.prototype.fill",V9);Xa("Uint8ClampedArray.prototype.fill",V9);Xa("Int16Array.prototype.fill",V9);Xa("Uint16Array.prototype.fill",V9);Xa("Int32Array.prototype.fill",V9);Xa("Uint32Array.prototype.fill",V9);Xa("Float32Array.prototype.fill",V9);Xa("Float64Array.prototype.fill",V9);
Xa("Object.fromEntries",function(g){return g?g:function(r){var E={};if(!(Symbol.iterator in r))throw new TypeError("r`"+r);r=r[Symbol.iterator].call(r);for(var B=r.next();!B.done;B=r.next()){B=B.value;if(Object(B)!==B)throw new TypeError("s");E[B[0]]=B[1]}return E}});
Xa("String.prototype.replaceAll",function(g){return g?g:function(r,E){if(r instanceof RegExp&&!r.global)throw new TypeError("t");return r instanceof RegExp?this.replace(r,E):this.replace(new RegExp(String(r).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),E)}});
Xa("Object.getOwnPropertySymbols",function(g){return g?g:function(){return[]}});
Xa("String.prototype.repeat",function(g){return g?g:function(r){var E=LZ(this,null,"repeat");if(r<0||r>1342177279)throw new RangeError("u");r|=0;for(var B="";r;)if(r&1&&(B+=E),r>>>=1)E+=E;return B}});
Xa("Array.prototype.findIndex",function(g){return g?g:function(r,E){return LiV(this,r,E).i}});
Xa("Array.prototype.flatMap",function(g){return g?g:function(r,E){var B=[];Array.prototype.forEach.call(this,function(w,O){w=r.call(E,w,O,this);Array.isArray(w)?B.push.apply(B,w):B.push(w)});
return B}});
Xa("String.prototype.codePointAt",function(g){return g?g:function(r){var E=LZ(this,null,"codePointAt"),B=E.length;r=Number(r)||0;if(r>=0&&r<B){r|=0;var w=E.charCodeAt(r);if(w<55296||w>56319||r+1===B)return w;r=E.charCodeAt(r+1);return r<56320||r>57343?w:(w-55296)*1024+r+9216}}});
Xa("String.fromCodePoint",function(g){return g?g:function(r){for(var E="",B=0;B<arguments.length;B++){var w=Number(arguments[B]);if(w<0||w>1114111||w!==Math.floor(w))throw new RangeError("v`"+w);w<=65535?E+=String.fromCharCode(w):(w-=65536,E+=String.fromCharCode(w>>>10&1023|55296),E+=String.fromCharCode(w&1023|56320))}return E}});
Xa("String.prototype.padStart",function(g){return g?g:function(r,E){var B=LZ(this,null,"padStart");r-=B.length;E=E!==void 0?String(E):" ";return(r>0&&E?E.repeat(Math.ceil(r/E.length)).substring(0,r):"")+B}});
Xa("Promise.prototype.finally",function(g){return g?g:function(r){return this.then(function(E){return Promise.resolve(r()).then(function(){return E})},function(E){return Promise.resolve(r()).then(function(){throw E;
})})}});
Xa("Math.imul",function(g){return g?g:function(r,E){r=Number(r);E=Number(E);var B=r&65535,w=E&65535;return B*w+((r>>>16&65535)*w+B*(E>>>16&65535)<<16>>>0)|0}});
Xa("Object.hasOwn",function(g){return g?g:function(r,E){return Object.prototype.hasOwnProperty.call(r,E)}});
Xa("Math.sign",function(g){return g?g:function(r){r=Number(r);return r===0||isNaN(r)?r:r>0?1:-1}});
Xa("Array.prototype.flat",function(g){return g?g:function(r){r=r===void 0?1:r;var E=[];Array.prototype.forEach.call(this,function(B){Array.isArray(B)&&r>0?(B=Array.prototype.flat.call(B,r-1),E.push.apply(E,B)):E.push(B)});
return E}});
Xa("String.raw",function(g){return g?g:function(r,E){if(r==null)throw new TypeError("w");for(var B=r.raw,w=B.length,O="",M=0;M<w;++M)O+=B[M],M+1<w&&M+1<arguments.length&&(O+=String(arguments[M+1]));return O}});
Xa("Reflect.ownKeys",function(g){return g?g:function(r){var E=[],B=Object.getOwnPropertyNames(r);r=Object.getOwnPropertySymbols(r);for(var w=0;w<B.length;w++)(B[w].substring(0,14)=="jscomp_symbol_"?r:E).push(B[w]);return E.concat(r)}});
Xa("Object.getOwnPropertyDescriptors",function(g){return g?g:function(r){for(var E={},B=Reflect.ownKeys(r),w=0;w<B.length;w++)E[B[w]]=Object.getOwnPropertyDescriptor(r,B[w]);return E}});
Xa("WeakSet",function(g){if(function(){if(!g||!Object.seal)return!1;try{var E=Object.seal({}),B=Object.seal({}),w=new g([E]);if(!w.has(E)||w.has(B))return!1;w.delete(E);w.add(B);return!w.has(E)&&w.has(B)}catch(O){return!1}}())return g;
var r=function(E){this.JSC$6876_map_=new WeakMap;if(E){E=_.U(E);for(var B;!(B=E.next()).done;)this.add(B.value)}};
r.prototype.add=function(E){this.JSC$6876_map_.set(E,!0);return this};
r.prototype.has=function(E){return this.JSC$6876_map_.has(E)};
r.prototype.delete=function(E){return this.JSC$6876_map_.delete(E)};
return r});
Xa("Promise.allSettled",function(g){function r(B){return{status:"fulfilled",value:B}}
function E(B){return{status:"rejected",reason:B}}
return g?g:function(B){var w=this;B=Array.from(B,function(O){return w.resolve(O).then(r,E)});
return w.all(B)}});
Xa("Number.parseInt",function(g){return g||parseInt});
_._DumpException=window._DumpException||function(g){throw g;};
window._DumpException=_._DumpException;var hdQ,hQ,ZP,y9,ZSS,yPl,vSL,d$A,V5,TKD;hdQ=hdQ||{};_.ED=this||self;_.vN=function(g,r,E){g=g.split(".");E=E||_.ED;for(var B;g.length&&(B=g.shift());)g.length||r===void 0?E[B]&&E[B]!==Object.prototype[B]?E=E[B]:E=E[B]={}:E[B]=r};
hQ=function(g){var r=_.XS("WIZ_global_data.oxN3nb");g=r&&r[g];return g!=null?g:!1};
ZP=_.ED._F_toggles_default_kevlar_base||[];y9=function(){};
y9.get=function(){return null};
_.XS=function(g,r){g=g.split(".");r=r||_.ED;for(var E=0;E<g.length;E++)if(r=r[g[E]],r==null)return null;return r};
_.vv=function(g){g.instance_=void 0;g.getInstance=function(){return g.instance_?g.instance_:g.instance_=new g}};
_.lm=function(g){var r=typeof g;return r!="object"?r:g?Array.isArray(g)?"array":r:"null"};
_.vJ=function(g){var r=_.lm(g);return r=="array"||r=="object"&&typeof g.length=="number"};
_.gA=function(g){var r=typeof g;return r=="object"&&g!=null||r=="function"};
_.Ew=function(g){return Object.prototype.hasOwnProperty.call(g,ZSS)&&g[ZSS]||(g[ZSS]=++yPl)};
ZSS="closure_uid_"+(Math.random()*1E9>>>0);yPl=0;vSL=function(g,r,E){return g.call.apply(g.bind,arguments)};
d$A=function(g,r,E){if(!g)throw Error();if(arguments.length>2){var B=Array.prototype.slice.call(arguments,2);return function(){var w=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(w,B);return g.apply(r,w)}}return function(){return g.apply(r,arguments)}};
_.$r=function(g,r,E){_.$r=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?vSL:d$A;return _.$r.apply(null,arguments)};
_.Hk=function(g,r){var E=Array.prototype.slice.call(arguments,1);return function(){var B=E.slice();B.push.apply(B,arguments);return g.apply(this,B)}};
_.dx=function(){return Date.now()};
V5=function(g){return g};
_.rc=function(g,r){function E(){}
E.prototype=r.prototype;g.superClass_=r.prototype;g.prototype=new E;g.prototype.constructor=g;g.base=function(B,w,O){for(var M=Array(arguments.length-2),u=2;u<arguments.length;u++)M[u-2]=arguments[u];return r.prototype[w].apply(B,M)}};
TKD=function(g){return g};var gdL,r4c;_.m=function(g,r,E,B){var w=arguments.length,O=w<3?r:B===null?B=Object.getOwnPropertyDescriptor(r,E):B,M;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")O=Reflect.decorate(g,r,E,B);else for(var u=g.length-1;u>=0;u--)if(M=g[u])O=(w<3?M(O):w>3?M(r,E,O):M(r,E))||O;w>3&&O&&Object.defineProperty(r,E,O)};
_.L=function(g,r){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(g,r)};
gdL=function(g,r){if(r!==null&&r!==void 0){if(typeof r!=="object"&&typeof r!=="function")throw new TypeError("x");if(E===void 0){if(!Symbol.dispose)throw new TypeError("z");var E=r[Symbol.dispose]}if(typeof E!=="function")throw new TypeError("A");g.stack.push({value:r,dispose:E,async:!1})}return r};
r4c=function(g){function r(O){g.error=g.hasError?new SuppressedError(O,g.error,"An error was suppressed during disposal."):O;g.hasError=!0}
function E(){for(;B=g.stack.pop();)try{if(!B.async&&w===1)return w=0,g.stack.push(B),Promise.resolve().then(E);if(B.dispose){var O=B.dispose.call(B.value);if(B.async)return w|=2,Promise.resolve(O).then(E,function(M){r(M);return E()})}else w|=1}catch(M){r(M)}if(w===1)return g.hasError?Promise.reject(g.error):Promise.resolve();
if(g.hasError)throw g.error;}
var B,w=0;E()};_.rc(_.gl,Error);_.gl.prototype.name="CustomError";var Edt;var B1c=void 0,wxJ,SjV=typeof TextDecoder!=="undefined",BlQ,EcP=typeof String.prototype.isWellFormed==="function",rtV=typeof TextEncoder!=="undefined";var Ozt;_.sR=function(g){for(var r=[],E=0,B=0;B<g.length;B++){var w=g.charCodeAt(B);w<128?r[E++]=w:(w<2048?r[E++]=w>>6|192:((w&64512)==55296&&B+1<g.length&&(g.charCodeAt(B+1)&64512)==56320?(w=65536+((w&1023)<<10)+(g.charCodeAt(++B)&1023),r[E++]=w>>18|240,r[E++]=w>>12&63|128):r[E++]=w>>12|224,r[E++]=w>>6&63|128),r[E++]=w&63|128)}return r};
Ozt=function(g){for(var r=[],E=0,B=0;E<g.length;){var w=g[E++];if(w<128)r[B++]=String.fromCharCode(w);else if(w>191&&w<224){var O=g[E++];r[B++]=String.fromCharCode((w&31)<<6|O&63)}else if(w>239&&w<365){O=g[E++];var M=g[E++],u=g[E++];w=((w&7)<<18|(O&63)<<12|(M&63)<<6|u&63)-65536;r[B++]=String.fromCharCode(55296+(w>>10));r[B++]=String.fromCharCode(56320+(w&1023))}else O=g[E++],M=g[E++],r[B++]=String.fromCharCode((w&15)<<12|(O&63)<<6|M&63)}return r.join("")};var oX=String.prototype.trim?function(g){return g.trim()}:function(g){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(g)[1]},UGX=/&/g,MoP=/</g,qjY=/>/g,usA=/"/g,lSt=/'/g,DGA=/\x00/g,odJ=/[\x00&<>"']/;var Ez=!!(ZP[0]>>15&1),GKL=!!(ZP[0]>>16&1),QtS=!!(ZP[0]&8),zuB=!!(ZP[0]&2),kKB=!!(ZP[0]&4),Hzt=!!(ZP[0]&16),pxo=!!(ZP[0]&128);var HJ=Ez?GKL:hQ(610401301),YjJ=Ez?QtS:hQ(772657768),RuL=Ez?zuB:hQ(513659523),ndP=Ez?kKB:hQ(568333945),sSD=Ez?Hzt:hQ(1331761403),Lno=Ez?pxo:hQ(748402147);var pL,stB=_.ED.navigator;pL=stB?stB.userAgentData||null:null;var V2;_.IX=function(g,r){return Array.prototype.indexOf.call(g,r,void 0)};
_.mR=function(g,r,E){Array.prototype.forEach.call(g,r,E)};
_.BL=function(g,r,E){return Array.prototype.filter.call(g,r,E)};
_.bO=function(g,r,E){return Array.prototype.map.call(g,r,E)};
V2=function(g,r,E){return Array.prototype.some.call(g,r,E)};
_.giL=function(g,r,E){return Array.prototype.every.call(g,r,E)};var wc=function(g){wc[" "](g);return g};
wc[" "]=function(){};
var Fm=function(g,r){try{return wc(g[r]),!0}catch(E){}return!1},z7V=function(g,r,E,B){B=B?B(r):r;
return Object.prototype.hasOwnProperty.call(g,B)?g[B]:g[B]=E(r)};var fSQ,Zx,$GQ,jto,bzL,J4l,g0Y,PkX,toJ,Fjl,Lm,WjJ,CkB,XxL,N1S,ISc;_.feS=function(){return _.ED.navigator||null};
fSQ=$c();_.SI=OLL();Zx=nL("Edge");$GQ=Zx||_.SI;_.Oz=nL("Gecko")&&!(_.DQ(_.kc(),"WebKit")&&!nL("Edge"))&&!(nL("Trident")||nL("MSIE"))&&!nL("Edge");_.Uz=_.DQ(_.kc(),"WebKit")&&!nL("Edge");jto=_.Uz&&nL("Mobile");_.A4B=_.GSD();bzL=_.QXA();J4l=(eV()?pL.platform==="Linux":nL("Linux"))||_.zPV();g0Y=_.Doc();PkX=ocV();toJ=nL("iPad");Fjl=nL("iPod");_.euc=_.WJ();Lm=_.DQ(_.kc(),"KaiOS");WjJ=function(){var g=_.ED.document;return g?g.documentMode:void 0};
a:{var Kjo="",xGl=function(){var g=_.kc();if(_.Oz)return/rv:([^\);]+)(\)|;)/.exec(g);if(Zx)return/Edge\/([\d\.]+)/.exec(g);if(_.SI)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(g);if(_.Uz)return/WebKit\/(\S+)/.exec(g);if(fSQ)return/(?:Version)[ \/]?(\S+)/.exec(g)}();
xGl&&(Kjo=xGl?xGl[1]:"");if(_.SI){var aSP=WjJ();if(aSP!=null&&aSP>parseFloat(Kjo)){CkB=String(aSP);break a}}CkB=Kjo}XxL=CkB;N1S={};_.ME=function(g){return z7V(N1S,g,function(){return _.Ql(XxL,g)>=0})};
if(_.ED.document&&_.SI){var mGJ=WjJ();ISc=mGJ?mGJ:parseInt(XxL,10)||void 0}else ISc=void 0;_.c4V=ISc;var R6B,nyD,izA;_.qE=bB();R6B=ocV()||nL("iPod");nyD=nL("iPad");izA=_.MVY();_.uR=_.tt();_.WN=_.FY()&&!_.WJ();var LjV,lR,VyV,BVV,huD,VoA;LjV={};lR=null;VyV=_.Oz||_.Uz||typeof _.ED.btoa=="function";_.gk=function(g,r){r===void 0&&(r=0);VoA();r=LjV[r];for(var E=Array(Math.floor(g.length/3)),B=r[64]||"",w=0,O=0;w<g.length-2;w+=3){var M=g[w],u=g[w+1],l=g[w+2],Q=r[M>>2];M=r[(M&3)<<4|u>>4];u=r[(u&15)<<2|l>>6];l=r[l&63];E[O++]=Q+M+u+l}Q=0;l=B;switch(g.length-w){case 2:Q=g[w+1],l=r[(Q&15)<<2]||B;case 1:g=g[w],E[O]=r[g>>2]+r[(g&3)<<4|Q>>4]+l+B}return E.join("")};
BVV=function(g){var r="";huD(g,function(E){r+=String.fromCharCode(E)});
return r};
_.hAo=function(g){var r=[];huD(g,function(E){r.push(E)});
return r};
_.Mz=function(g){var r=g.length,E=r*3/4;E%3?E=Math.floor(E):_.lB("=.",g[r-1])&&(E=_.lB("=.",g[r-2])?E-2:E-1);var B=new Uint8Array(E),w=0;huD(g,function(O){B[w++]=O});
return w!==E?B.subarray(0,w):B};
huD=function(g,r){function E(l){for(;B<g.length;){var Q=g.charAt(B++),z=lR[Q];if(z!=null)return z;if(!_.qo(Q))throw Error("E`"+Q);}return l}
VoA();for(var B=0;;){var w=E(-1),O=E(0),M=E(64),u=E(64);if(u===64&&w===-1)break;r(w<<2|O>>4);M!=64&&(r(O<<4&240|M>>2),u!=64&&r(M<<6&192|u))}};
VoA=function(){if(!lR){lR={};for(var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),r=["+/=","+/","-_=","-_.","-_"],E=0;E<5;E++){var B=g.concat(r[E].split(""));LjV[E]=B;for(var w=0;w<B.length;w++){var O=B[w];lR[O]===void 0&&(lR[O]=w)}}}};var CBA=typeof Uint8Array!=="undefined",jXX=!_.SI&&typeof btoa==="function",AtP=/[-_.]/g,fQY={"-":"+",_:"/",".":"="},eU={};var FZ,y4c;FZ=function(g,r){if(r!==eU)throw Error("G");this.JSC$6907_value_=g;if(g!=null&&g.length===0)throw Error("F");};
_.W6=function(){return Zzo||(Zzo=new FZ(null,eU))};
y4c=function(g){return new Uint8Array(Fj(g)||0)};
FZ.prototype.isEmpty=function(){return this.JSC$6907_value_==null};
FZ.prototype.sizeBytes=function(){var g=Fj(this);return g?g.length:0};
var Fj=function(g){if(eU!==eU)throw Error("G");var r=g.JSC$6907_value_;r=r==null||CBA&&r!=null&&r instanceof Uint8Array?r:typeof r==="string"?bLA(r):null;return r==null?r:g.JSC$6907_value_=r},Zzo;var PBA=void 0;var pw=typeof Symbol==="function"&&typeof Symbol()==="symbol",vdS=H6("jas",void 0,!0),im=H6(void 0,"0di"),bA=H6(void 0,"1oa"),Z4=H6(void 0,Symbol()),PnQ=H6(void 0,"0ub"),FnJ=H6(void 0,"0ubs"),K6Y=H6(void 0,"0ubsb"),h4l=H6(void 0,"0actk"),m6=H6("m_m","messagePrototypeMarker",!0),NAc=H6(void 0,"vps"),ADX=H6();var FAD,tVP,Yu,dGL;FAD={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};tVP=Object.defineProperties;_.Yb=pw?vdS:"internalArrayState";dGL=[];fw(dGL,7);Yu=Object.freeze(dGL);var cF={},JD={},T1J=function(g,r,E){this.iterable=g;this.mapper=r;this.thisArg=E};
T1J.prototype.next=function(){var g=this.iterable.next();g.done||(g.value=this.mapper.call(this.thisArg,g.value));return g};
T1J.prototype[Symbol.iterator]=function(){return this};
var gED=Object.freeze({}),am={};_.ruo=mn(function(g){return g!==null&&g!==void 0});var NlY=mn(function(g){return typeof g==="number"}),XJt=mn(function(g){return typeof g==="string"}),IQQ=mn(function(g){return typeof g==="boolean"}),EEJ=mn(function(g){return g!=null&&typeof g==="object"&&typeof g.then==="function"}),c5J=mn(function(g){return typeof g==="function"}),Bp=mn(function(g){return!!g&&(typeof g==="object"||typeof g==="function")});var VT=typeof _.ED.BigInt==="function"&&typeof _.ED.BigInt(0)==="bigint";var xt=mn(function(g){return VT?g>=Bil&&g<=wZX:g[0]==="-"?moX(g,SKX):moX(g,OEl)}),SKX=Number.MIN_SAFE_INTEGER.toString(),Bil=VT?BigInt(Number.MIN_SAFE_INTEGER):void 0,OEl=Number.MAX_SAFE_INTEGER.toString(),wZX=VT?BigInt(Number.MAX_SAFE_INTEGER):void 0;var UWY=typeof Uint8Array.prototype.slice==="function",yT=0,v6=0,Za;var bm,WF,GL,CD,ytY;bm=typeof BigInt==="function"?BigInt.asIntN:void 0;_.KD=typeof BigInt==="function"?BigInt.asUintN:void 0;WF=Number.isSafeInteger;GL=Number.isFinite;CD=Math.trunc;ytY=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var IIS={};var $zc={},McX=function(){try{var g=function(){return tjV(Map,[],this.constructor)};
_.f(g,Map);wc(new g);return!1}catch(r){return!0}}(),Dt=function(){this.JSC$6927_map_=new Map};
_.S=Dt.prototype;_.S.get=function(g){return this.JSC$6927_map_.get(g)};
_.S.set=function(g,r){this.JSC$6927_map_.set(g,r);this.size=this.JSC$6927_map_.size;return this};
_.S.delete=function(g){g=this.JSC$6927_map_.delete(g);this.size=this.JSC$6927_map_.size;return g};
_.S.clear=function(){this.JSC$6927_map_.clear();this.size=this.JSC$6927_map_.size};
_.S.has=function(g){return this.JSC$6927_map_.has(g)};
_.S.entries=function(){return this.JSC$6927_map_.entries()};
_.S.keys=function(){return this.JSC$6927_map_.keys()};
_.S.values=function(){return this.JSC$6927_map_.values()};
_.S.forEach=function(g,r){return this.JSC$6927_map_.forEach(g,r)};
Dt.prototype[Symbol.iterator]=function(){return this.entries()};
var rk=function(){if(McX)return Object.setPrototypeOf(Dt.prototype,Map.prototype),Object.defineProperties(Dt.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Dt;var g=function(){return tjV(Map,[],this.constructor)};
_.f(g,Map);return g}(),LD=function(g,r,E,B){E=E===void 0?Ywo:E;
B=B===void 0?Ywo:B;var w=rk.call(this)||this;w.arrayState=g[_.Yb]|0;w.valueCtor=r;w.keyToApi=E;w.valueToApi=w.valueCtor?nbB:B;for(var O=0;O<g.length;O++){var M=g[O],u=E(M[0],!1,!0),l=M[1];r?l===void 0&&(l=null):l=B(M[1],!1,!0,void 0,void 0,w.arrayState);rk.prototype.set.call(w,u,l)}return w};
_.f(LD,rk);var qKD=function(g){if(g.arrayState&2)throw Error("K");};
_.S=LD.prototype;_.S.clear=function(){qKD(this);rk.prototype.clear.call(this)};
_.S.delete=function(g){qKD(this);return rk.prototype.delete.call(this,this.keyToApi(g,!0,!1))};
_.S.entries=function(){if(this.valueCtor){var g=rk.prototype.keys.call(this);g=new T1J(g,smB,this)}else g=rk.prototype.entries.call(this);return g};
_.S.values=function(){if(this.valueCtor){var g=rk.prototype.keys.call(this);g=new T1J(g,LD.prototype.get,this)}else g=rk.prototype.values.call(this);return g};
_.S.forEach=function(g,r){this.valueCtor?rk.prototype.forEach.call(this,function(E,B,w){g.call(r,w.get(B),B,w)}):rk.prototype.forEach.call(this,g,r)};
_.S.set=function(g,r){qKD(this);g=this.keyToApi(g,!0,!1);return g==null?this:r==null?(rk.prototype.delete.call(this,g),this):rk.prototype.set.call(this,g,this.valueToApi(r,!0,!0,this.valueCtor,!1,this.arrayState))};
_.S.has=function(g){return rk.prototype.has.call(this,this.keyToApi(g,!1,!1))};
_.S.get=function(g){g=this.keyToApi(g,!1,!1);var r=rk.prototype.get.call(this,g);if(r!==void 0){var E=this.valueCtor;return E?(E=this.valueToApi(r,!1,!0,E,this.callToMutableOnAccess,this.arrayState),E!==r&&rk.prototype.set.call(this,g,E),E):r}};
LD.prototype[Symbol.iterator]=function(){return this.entries()};
LD.prototype.toJSON=void 0;var fIL;var Cno=function(){},vF=function(g,r){for(var E in g)!isNaN(E)&&r(g,+E,g[E])},KnL=function(g){var r=new Cno;
vF(g,function(E,B,w){r[B]=wg(w)});
r.reviveUnknownFields=g.reviveUnknownFields;return r},bwX={reviveIntoImmutable:!0};var WnD;var mzS,cDD;var ulX,ft,oI,YK,lZt,Y2,Hf,DWS,oEt,fx,G7V,$2,bR,JX;ulX=_.hD(0);_.oU={};_.GE=function(g,r,E,B,w){r=ft(g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,r,E,w);if(r!==null||B&&g.noLegacyNull!==JD)return r};
ft=function(g,r,E,B){if(r===-1)return null;var w=r+(E?0:-1),O=g.length-1;if(!(O<1+(E?0:-1))){if(w>=O){var M=g[O];if(M!=null&&typeof M==="object"&&M.constructor===Object){E=M[r];var u=!0}else if(w===O)E=M;else return}else E=g[w];if(B&&E!=null){B=B(E);if(B==null)return B;if(!Object.is(B,E))return u?M[r]=B:g[w]=B,B}return E}};
_.w2=function(g,r,E,B){o8(g);var w=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;ku(w,w[_.Yb]|0,r,E,B);return g};
_.Qt=function(g,r,E){g=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return JB(g,g[_.Yb]|0,r,E)!==void 0};
_.zE=function(g,r,E,B){var w=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return JB(w,w[_.Yb]|0,r,YK(g,B,E))!==void 0};
_.BT=function(g){return g===gED?2:4};
_.k2=function(g,r){g=_.GE(g,r,void 0,void 0,r8L);return g==null?_.W6():g};
oI=function(g,r,E,B){o8(g);var w=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=w[_.Yb]|0;if(B==null){var M=Bgl(w);if(wFJ(M,w,O,E)===r)M.set(E,0);else return g}else O=SMA(w,O,E,r);ku(w,O,r,B);return g};
_.HL=function(g,r,E,B){var w=g[_.Yb]|0,O=Nz(w);w=SMA(g,w,E,r,O);ku(g,w,r,B,O)};
YK=function(g,r,E){return _.px(g,r)===E?E:-1};
_.px=function(g,r){g=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return wFJ(Bgl(g),g,void 0,r,void 0)};
lZt=function(g,r,E){var B=g[_.Yb]|0,w=Nz(B),O=ft(g,E,w);if(O!=null&&O[m6]===cF){if(!P6(O))return uA(O),O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var M=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(O)&&(M=O);if(M){var u=M[_.Yb]|0;u&2&&(M=Ul(M,u))}M=Ol(M,r,!0);M!==O&&ku(g,B,E,M,w);return M};
_.zP=function(g,r,E,B){var w=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=w[_.Yb]|0;r=JB(w,O,r,E,B);if(r==null)return r;O=w[_.Yb]|0;if(!P6(g,O)){var M=R4o(r);M!==r&&(uA(g)&&(w=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=w[_.Yb]|0),r=M,O=ku(w,O,E,r,B),G_(w,O))}return r};
_.ER=function(g,r,E,B){var w=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return ODB(g,w,w[_.Yb]|0,r,E,B,!1,!0)};
_.Bu=function(g,r,E,B){E=UMD(E);_.w2(g,r,E,B);E&&!P6(E)&&G_(g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return g};
_.ws=function(g,r,E,B){B=UMD(B);oI(g,r,E,B);B&&!P6(B)&&G_(g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return g};
Y2=function(g,r,E){o8(g);var B=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=B[_.Yb]|0;if(E==null)return ku(B,w,r),g;for(var O=E===Yu?7:E[_.Yb]|0,M=O,u=sl(O),l=u||Object.isFrozen(E),Q=!0,z=!0,k=0;k<E.length;k++){var H=E[k];u||(H=P6(H),Q&&(Q=!H),z&&(z=H))}u||(O=Q?13:5,O=z?O&-4097:O|4096);l&&O===M||(E=wg(E),M=0,O=R8(O,w));O!==M&&fw(E,O);w=ku(B,w,r,E);2&O||!(4096&O||16&O)||G_(B,w);return g};
Hf=function(g,r,E,B){qMP(g,r,E,B);return g};
DWS=function(g,r,E){qMP(g,r,RU,void 0,E,1,!0);return g};
_.nx=function(g,r,E){g=_.GE(g,r,void 0,E);r=typeof g;g=g==null?g:r==="bigint"?_.hD((0,_.KD)(64,g)):_.kt(g)?r==="string"?_.lIS(g):_.qwL(g):void 0;return g};
_.sz=function(g,r){var E=E===void 0?!1:E;var B;return(B=_.ZLl(_.GE(g,r)))!=null?B:E};
_.wY=function(g,r,E){E=E===void 0?0:E;var B;return(B=_.fD(_.GE(g,r)))!=null?B:E};
oEt=function(g,r){var E=E===void 0?0:E;g=_.jv(_.GE(g,r));return g!=null?g:E};
fx=function(g,r,E){E=E===void 0?ulX:E;var B;return(B=_.GDS(_.GE(g,r)))!=null?B:E};
G7V=function(g){var r=r===void 0?ulX:r;var E;return(E=_.nx(g,23))!=null?E:r};
$2=function(g,r){var E=E===void 0?0:E;var B;return(B=_.GE(g,r,void 0,void 0,_.um))!=null?B:E};
_.jI=function(g,r,E,B){E=E===void 0?"":E;var w;return(w=_.IA(_.GE(g,r,B)))!=null?w:E};
_.AX=function(g,r){var E=E===void 0?0:E;var B;return(B=_.Yt(_.GE(g,r)))!=null?B:E};
bR=function(g,r){var E=E===void 0?"0":E;g=obB(_.GE(g,r),!0);return g!=null?g:E};
JX=function(g,r,E){return _.jI(g,YK(g,E,r))};
_.PL=function(g,r,E,B){return _.zP(g,r,YK(g,B,E),void 0)};
_.kr=function(g,r){return _.IA(_.GE(g,r,void 0,_.oU))};
_.qd=function(g,r,E){return _.w2(g,r,hPl(E))};
_.jG=function(g,r,E){return _.jz(g,r,hPl(E),!1)};
_.tX=function(g,r,E){return _.w2(g,r,_.sM(E))};
_.nC=function(g,r,E){return _.w2(g,r,ev(E))};
_.H$=function(g,r,E){return _.w2(g,r,NM(E))};
_.Vj=function(g,r,E,B){return _.jz(g,r,NM(E),"",B)};
_.B8=function(g,r,E){return _.w2(g,r,E==null?E:_.HF(E))};
_.Fi=function(g,r,E){return _.jz(g,r,E==null?E:_.HF(E),0)};var tB=function(g,r,E){this.buffer=g;if(E&&!r)throw Error();this.JSC$6939_isImmutable=r};var QpV=function(g,r,E,B){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6942_start_=0;this.init(g,r,E,B)},eI,k7l,HEl,YKl,bDX,zJS;
_.S=QpV.prototype;_.S.init=function(g,r,E,B){var w=B===void 0?{}:B;B=w.aliasBytesFields===void 0?!1:w.aliasBytesFields;w=w.treatNewDataAsImmutable===void 0?!1:w.treatNewDataAsImmutable;this.aliasBytesFields=B;this.treatNewDataAsImmutable=w;g&&(g=u$l(g,this.treatNewDataAsImmutable),this.bytes_=g.buffer,this.bytesAreImmutable_=g.JSC$6939_isImmutable,this.JSC$6942_start_=r||0,this.end_=E!==void 0?this.JSC$6942_start_+E:this.bytes_.length,this.cursor_=this.JSC$6942_start_)};
_.S.free=function(){this.clear();zJS.length<100&&zJS.push(this)};
_.S.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6942_start_=0;this.aliasBytesFields=!1};
_.S.reset=function(){this.cursor_=this.JSC$6942_start_};
_.S.atEnd=function(){return this.cursor_==this.end_};
_.WL=function(g,r){var E=0,B=0,w=0,O=g.bytes_,M=g.cursor_;do{var u=O[M++];E|=(u&127)<<w;w+=7}while(w<32&&u&128);w>32&&(B|=(u&127)>>4);for(w=3;w<32&&u&128;w+=7)u=O[M++],B|=(u&127)<<w;eI(g,M);if(u<128)return r(E>>>0,B>>>0);throw Error("X");};
eI=function(g,r){g.cursor_=r;if(r>g.end_)throw Error("Y`"+r+"`"+g.end_);};
_.Cx=function(g){var r=g.bytes_,E=g.cursor_,B=r[E++],w=B&127;if(B&128&&(B=r[E++],w|=(B&127)<<7,B&128&&(B=r[E++],w|=(B&127)<<14,B&128&&(B=r[E++],w|=(B&127)<<21,B&128&&(B=r[E++],w|=B<<28,B&128&&r[E++]&128&&r[E++]&128&&r[E++]&128&&r[E++]&128&&r[E++]&128)))))throw Error("X");eI(g,E);return w};
_.Kx=function(g){var r=g.bytes_,E=g.cursor_,B=r[E],w=r[E+1],O=r[E+2];r=r[E+3];eI(g,g.cursor_+4);return(B<<0|w<<8|O<<16|r<<24)>>>0};
k7l=function(g){var r=_.Kx(g);g=_.Kx(g);return LAJ(r,g)};
HEl=function(g){var r=_.Kx(g),E=_.Kx(g);g=(E>>31)*2+1;var B=E>>>20&2047;r=4294967296*(E&1048575)+r;return B==2047?r?NaN:g*Infinity:B==0?g*4.9E-324*r:g*Math.pow(2,B-1075)*(r+4503599627370496)};
_.pZD=function(g){for(var r=0,E=g.cursor_,B=E+10,w=g.bytes_;E<B;){var O=w[E++];r|=O;if((O&128)===0)return eI(g,E),!!(r&127)}throw Error("X");};
YKl=function(g,r){if(r<0)throw Error("Z`"+r);var E=g.cursor_,B=E+r;if(B>g.end_)throw Error("Y`"+(g.end_-E)+"`"+r);g.cursor_=B;return E};
bDX=function(g,r){if(r==0)return _.W6();var E=YKl(g,r);g.aliasBytesFields&&g.bytesAreImmutable_?E=g.bytes_.subarray(E,E+r):(g=g.bytes_,r=E+r,E=E===r?new Uint8Array(0):UWY?g.slice(E,r):new Uint8Array(g.subarray(E,r)));return E.length==0?_.W6():new FZ(E,eU)};
zJS=[];var nED=function(g,r,E,B){if(zJS.length){var w=zJS.pop();w.init(g,r,E,B);g=w}else g=new QpV(g,r,E,B);this.decoder_=g;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;RJX(this,B)},RJX=function(g,r){r=r===void 0?{}:r;
g.discardUnknownFields=r.discardUnknownFields===void 0?!1:r.discardUnknownFields},tvt=function(g,r,E,B){if(spV.length){var w=spV.pop();
RJX(w,B);w.decoder_.init(g,r,E,B);return w}return new nED(g,r,E,B)},jAA,Xj,fZS,spV;
nED.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;spV.length<100&&spV.push(this)};
nED.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
jAA=function(g){if(g.decoder_.atEnd())return!1;g.fieldCursor_=g.decoder_.cursor_;var r=_.Cx(g.decoder_)>>>0,E=r>>>3;r&=7;if(!(r>=0&&r<=5))throw Error("T`"+r+"`"+g.fieldCursor_);if(E<1)throw Error("U`"+E+"`"+g.fieldCursor_);g.nextField_=E;g.nextWireType_=r;return!0};
Xj=function(g){switch(g.nextWireType_){case 0:g.nextWireType_!=0?Xj(g):_.pZD(g.decoder_);break;case 1:g=g.decoder_;eI(g,g.cursor_+8);break;case 2:if(g.nextWireType_!=2)Xj(g);else{var r=_.Cx(g.decoder_)>>>0;g=g.decoder_;eI(g,g.cursor_+r)}break;case 5:g=g.decoder_;eI(g,g.cursor_+4);break;case 3:r=g.nextField_;do{if(!jAA(g))throw Error("V");if(g.nextWireType_==4){if(g.nextField_!=r)throw Error("W");break}Xj(g)}while(1);break;default:throw Error("T`"+g.nextWireType_+"`"+g.fieldCursor_);}};
fZS=function(g,r,E){var B=g.decoder_.end_,w=_.Cx(g.decoder_)>>>0,O=g.decoder_.cursor_+w,M=O-B;M<=0&&(g.decoder_.end_=O,E(r,g,void 0,void 0,void 0),M=O-g.decoder_.cursor_);if(M)throw Error("S`"+w+"`"+(w-M));g.decoder_.cursor_=O;g.decoder_.end_=B};
_.$WQ=function(g){var r=_.Cx(g.decoder_)>>>0;g=g.decoder_;var E=YKl(g,r);g=g.bytes_;if(SjV){var B=g,w;(w=wxJ)||(w=wxJ=new TextDecoder("utf-8",{fatal:!0}));r=E+r;B=E===0&&r===B.length?B:B.subarray(E,r);try{var O=w.decode(B)}catch(Q){if(B1c===void 0){try{w.decode(new Uint8Array([128]))}catch(z){}try{w.decode(new Uint8Array([97])),B1c=!0}catch(z){B1c=!1}}!B1c&&(wxJ=void 0);throw Q;}}else{O=E;r=O+r;E=[];for(var M=null,u,l;O<r;)u=g[O++],u<128?E.push(u):u<224?O>=r?rl():(l=g[O++],u<194||(l&192)!==128?(O--,
rl()):E.push((u&31)<<6|l&63)):u<240?O>=r-1?rl():(l=g[O++],(l&192)!==128||u===224&&l<160||u===237&&l>=160||((w=g[O++])&192)!==128?(O--,rl()):E.push((u&15)<<12|(l&63)<<6|w&63)):u<=244?O>=r-2?rl():(l=g[O++],(l&192)!==128||(u<<28)+(l-144)>>30!==0||((w=g[O++])&192)!==128||((B=g[O++])&192)!==128?(O--,rl()):(u=(u&7)<<18|(l&63)<<12|(w&63)<<6|B&63,u-=65536,E.push((u>>10&1023)+55296,(u&1023)+56320))):rl(),E.length>=8192&&(M=gcL(M,E),E.length=0);O=gcL(M,E)}return O};
_.jpt=function(g){var r=_.Cx(g.decoder_)>>>0;return bDX(g.decoder_,r)};
_.AuA=function(g,r,E){var B=_.Cx(g.decoder_)>>>0;for(B=g.decoder_.cursor_+B;g.decoder_.cursor_<B;)E.push(r(g.decoder_))};
spV=[];var bEQ=function(g,r){this.JSC$6949_lo=g>>>0;this.JSC$6949_hi=r>>>0},PgB=function(g){if(!g)return JuB||(JuB=new bEQ(0,0));
if(!/^\d+$/.test(g))return null;BF(g);return new bEQ(yT,v6)},JuB,mMt=function(g,r){this.JSC$6951_lo=g>>>0;
this.JSC$6951_hi=r>>>0},NgD=function(g){if(!g)return tct||(tct=new mMt(0,0));
if(!/^-?\d+$/.test(g))return null;BF(g);return new mMt(yT,v6)},tct;var FEJ=function(){this.JSC$6953_buffer_=[]},I4A,eJY;
FEJ.prototype.length=function(){return this.JSC$6953_buffer_.length};
FEJ.prototype.end=function(){var g=this.JSC$6953_buffer_;this.JSC$6953_buffer_=[];return g};
I4A=function(g,r,E){for(;E>0||r>127;)g.JSC$6953_buffer_.push(r&127|128),r=(r>>>7|E<<25)>>>0,E>>>=7;g.JSC$6953_buffer_.push(r)};
eJY=function(g,r){for(;r>127;)g.JSC$6953_buffer_.push(r&127|128),r>>>=7;g.JSC$6953_buffer_.push(r)};
_.c8A=function(g,r){if(r>=0)eJY(g,r);else{for(var E=0;E<9;E++)g.JSC$6953_buffer_.push(r&127|128),r>>=7;g.JSC$6953_buffer_.push(1)}};
_.yB=function(g,r){g.JSC$6953_buffer_.push(r>>>0&255);g.JSC$6953_buffer_.push(r>>>8&255);g.JSC$6953_buffer_.push(r>>>16&255);g.JSC$6953_buffer_.push(r>>>24&255)};var WEo,cH,L6P,ZDP;WEo=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new FEJ};
cH=function(g,r){r.length!==0&&(g.blocks_.push(r),g.totalLength_+=r.length)};
_.GLL=function(g,r){_.hB(g,r,2);r=g.encoder_.end();cH(g,r);r.push(g.totalLength_);return r};
_.QAV=function(g,r){var E=r.pop();for(E=g.totalLength_+g.encoder_.length()-E;E>127;)r.push(E&127|128),E>>>=7,g.totalLength_++;r.push(E);g.totalLength_++};
_.hB=function(g,r,E){eJY(g.encoder_,r*8+E)};
L6P=function(g,r,E){if(E!=null){switch(typeof E){case "string":PgB(E)}_.hB(g,r,1);switch(typeof E){case "number":g=g.encoder_;ctJ(E);_.yB(g,yT);_.yB(g,v6);break;case "bigint":E=BigInt.asUintN(64,E);E=new bEQ(Number(E&BigInt(4294967295)),Number(E>>BigInt(32)));g=g.encoder_;r=E.JSC$6949_hi;_.yB(g,E.JSC$6949_lo);_.yB(g,r);break;default:E=PgB(E),g=g.encoder_,r=E.JSC$6949_hi,_.yB(g,E.JSC$6949_lo),_.yB(g,r)}}};
ZDP=function(g,r,E){_.hB(g,r,2);eJY(g.encoder_,E.length);cH(g,g.encoder_.end());cH(g,E)};var l4l,xWo,aZB,IZS,mWl;l4l=ez();_.CgL=ez();_.KEY=ez();xWo=ez();aZB=ez();_.XZB=ez();_.x2=ez();_.NiA=ez();IZS=ez();mWl=ez();_.cuB=ez();_.iEX=ez();_.xu=function(g,r,E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g,r,E)};
_.xu.prototype.toJSON=function(){return wk(this)};
_.xu.prototype.serialize=function(g){return JSON.stringify(wk(this,g))};
var BkD=function(g,r){if(r==null||r=="")return new g;r=JSON.parse(r);if(!Array.isArray(r))throw Error("$");return new g(WAS(r))};
_.xu.prototype.getExtension=function(g){tUY(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g.fieldIndex);JDV(this,g.fieldIndex);return g.ctor?g.isRepeated?g.getExtensionFn(this,g.ctor,g.fieldIndex,_.BT(),g.JSC$6964_hasMessageId):g.getExtensionFn(this,g.ctor,g.fieldIndex,g.JSC$6964_hasMessageId):g.isRepeated?g.getExtensionFn(this,g.fieldIndex,_.BT(),g.JSC$6964_hasMessageId):g.getExtensionFn(this,g.fieldIndex,g.defaultValue,g.JSC$6964_hasMessageId)};
_.xu.prototype.clone=function(){var g=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,r=g[_.Yb]|0;return qs(this,g,r)?Ms(this,g,!0):new this.constructor(Ul(g,r,!1))};
_.xu.prototype[m6]=cF;_.xu.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var WH=function(g,r,E){this.$$binaryReaderFn=g;this.$$binaryWriterFn=r;g=V5(l4l);this.$$isMsg=!!g&&E===g||!1},pFt=DMl(function(g,r,E,B,w){if(g.nextWireType_!==2)return!1;
fZS(g,lZt(r,B,E),w);return!0},zzt),YMB=DMl(function(g,r,E,B,w){if(g.nextWireType_!==2)return!1;
fZS(g,lZt(r,B,E),w);return!0},zzt),I8=Symbol(),a8=Symbol(),$MS=Symbol(),ezD=Symbol(),J8l=Symbol(),kLX,HDY;var rBl,LEl,VcQ,hJL,ZEQ,yut,vEY,dWP,Tic,gMB,rVD,BeA,wqB,Opo,UlX;rBl=function(g,r){var E=new WEo;W6L(g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E,Kt(I8,Ns,mp,r));cH(E,E.encoder_.end());g=new Uint8Array(E.totalLength_);r=E.blocks_;for(var B=r.length,w=0,O=0;O<B;O++){var M=r[O];g.set(M,w);w+=M.length}E.blocks_=[g];return g};
LEl=_.iA(function(g,r,E){if(g.nextWireType_!==1)return!1;_.Lt(r,E,HEl(g.decoder_));return!0},XFL,mWl);
VcQ=_.iA(function(g,r,E,B){if(g.nextWireType_!==1)return!1;_.HL(r,E,B,HEl(g.decoder_));return!0},XFL,mWl);
hJL=_.iA(function(g,r,E,B){if(g.nextWireType_!==5)return!1;var w=_.Kx(g.decoder_);g=(w>>31)*2+1;var O=w>>>23&255;w&=8388607;_.HL(r,E,B,O==255?w?NaN:g*Infinity:O==0?g*1.401298464324817E-45*w:g*Math.pow(2,O-150)*(w+8388608));return!0},function(g,r,E){r=_.um(r);
r!=null&&(_.hB(g,E,5),g=g.encoder_,E=Za||(Za=new DataView(new ArrayBuffer(8))),E.setFloat32(0,+r,!0),v6=0,yT=E.getUint32(0,!0),_.yB(g,yT))},IZS);
_.aU=_.iA(function(g,r,E){if(g.nextWireType_!==0)return!1;_.Lt(r,E,_.WL(g.decoder_,gg));return!0},_.vH,_.x2);
ZEQ=_.iA(function(g,r,E){if(g.nextWireType_!==0)return!1;g=_.WL(g.decoder_,gg);_.Lt(r,E,g===0?void 0:g);return!0},_.vH,_.x2);
yut=_.iA(function(g,r,E,B){if(g.nextWireType_!==0)return!1;_.HL(r,E,B,_.WL(g.decoder_,gg));return!0},_.vH,_.x2);
_.Xi=_.iA(function(g,r,E){if(g.nextWireType_!==0)return!1;_.Lt(r,E,_.Cx(g.decoder_));return!0},iDA,xWo);
vEY=_.iA(function(g,r,E){if(g.nextWireType_!==0)return!1;g=_.Cx(g.decoder_);_.Lt(r,E,g===0?void 0:g);return!0},iDA,xWo);
dWP=_.iA(function(g,r,E,B){if(g.nextWireType_!==0)return!1;_.HL(r,E,B,_.Cx(g.decoder_));return!0},iDA,xWo);
Tic=_.iA(function(g,r,E){if(g.nextWireType_!==1)return!1;_.Lt(r,E,k7l(g.decoder_));return!0},_.VvL,_.NiA);
gMB=_.a4l(function(g,r,E){if(g.nextWireType_!==1&&g.nextWireType_!==2)return!1;r=_.AB(r,r[_.Yb]|0,E);g.nextWireType_==2?_.AuA(g,k7l,r):r.push(k7l(g.decoder_));return!0},function(g,r,E){r=_.xMV(z4D,r,!1);
if(r!=null)for(var B=0;B<r.length;B++)L6P(g,E,r[B])},_.NiA);
_.NE=_.iA(function(g,r,E){if(g.nextWireType_!==0)return!1;_.Lt(r,E,_.pZD(g.decoder_));return!0},_.hzl,_.CgL);
rVD=_.iA(function(g,r,E,B){if(g.nextWireType_!==0)return!1;_.HL(r,E,B,_.pZD(g.decoder_));return!0},_.hzl,_.CgL);
_.IU=_.iA(function(g,r,E){if(g.nextWireType_!==2)return!1;_.Lt(r,E,_.$WQ(g));return!0},_.y8D,_.KEY);
_.EMP=_.iA(function(g,r,E,B){if(g.nextWireType_!==2)return!1;_.HL(r,E,B,_.$WQ(g));return!0},_.y8D,_.KEY);
BeA=_.a4l(function(g,r,E){if(g.nextWireType_!==2)return!1;g=_.$WQ(g);_.AB(r,r[_.Yb]|0,E).push(g);return!0},function(g,r,E){r=_.xMV(_.IA,r,!0);
if(r!=null)for(var B=0;B<r.length;B++){var w=g,O=E,M=r[B];M!=null&&ZDP(w,O,wJB(M))}},_.KEY);
wqB=void 0;wqB=wqB===void 0?l4l:wqB;_.mq=new WH(function(g,r,E,B,w){if(g.nextWireType_!==2)return!1;B=Ol(void 0,B,!0);_.AB(r,r[_.Yb]|0,E).push(B);fZS(g,B,w);return!0},function(g,r,E,B,w){if(Array.isArray(r))for(var O=0;O<r.length;O++)dML(g,r[O],E,B,w)},wqB);
_.cL=DMl(function(g,r,E,B,w,O){if(g.nextWireType_!==2)return!1;var M=r[_.Yb]|0;SMA(r,M,O,E,Nz(M));r=lZt(r,B,E);fZS(g,r,w);return!0},dML);
_.SOc=_.iA(function(g,r,E){if(g.nextWireType_!==2)return!1;_.Lt(r,E,_.jpt(g));return!0},_.Tgt,_.cuB);
Opo=_.iA(function(g,r,E,B){if(g.nextWireType_!==2)return!1;_.HL(r,E,B,_.jpt(g));return!0},_.Tgt,_.cuB);
UlX=_.iA(function(g,r,E,B){if(g.nextWireType_!==0)return!1;_.HL(r,E,B,_.Cx(g.decoder_)>>>0);return!0},function(g,r,E){r=_.jv(r);
r!=null&&r!=null&&(_.hB(g,E,0),eJY(g.encoder_,r))},aZB);
_.iR=_.iA(function(g,r,E){if(g.nextWireType_!==0)return!1;_.Lt(r,E,_.Cx(g.decoder_));return!0},_.guX,_.iEX);var uMJ=function(){var g=MmX,r=qOo;this.fieldIndex=175237375;this.ctor=r;this.isRepeated=0;this.getExtensionFn=_.zP;this.defaultValue=void 0;this.JSC$6964_hasMessageId=g.messageId!=null?am:void 0};
uMJ.prototype.register=function(){wc(this)};var lgS=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(lgS,_.xu);var DlV=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(DlV,_.xu);var Oto=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(Oto,_.xu);var oMY=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(oMY,_.xu);var GzY=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(GzY,_.xu);var QnY=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(QnY,_.xu);var zQA=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(zQA,_.xu);zQA.prototype.getData=function(){return _.k2(this,2)};var kzt=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(kzt,_.xu);var Hpt=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(Hpt,_.xu);Hpt.prototype.getStyle=function(){return _.zP(this,lgS,1)};var EU=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(EU,_.xu);EU.prototype.getPayloadCase=function(){return _.px(this,Sy)};
EU.prototype.getStyle=function(){return _.PL(this,Hpt,6,Sy)};
var pqL=function(){var g=new EU,r=new GzY;return _.ws(g,7,Sy,r)},YOB=function(){var g=new EU,r=new QnY;
return _.ws(g,8,Sy,r)},Sy=[1,
2,3,4,5,6,7,8];var RQV=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(RQV,_.xu);var nMD=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(nMD,_.xu);var snX=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(snX,_.xu);var fgJ=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(fgJ,_.xu);var $ll=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f($ll,_.xu);var jnl=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(jnl,_.xu);var AVS=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(AVS,_.xu);var bpP=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(bpP,_.xu);bpP.prototype.getData=function(){return _.k2(this,2)};var JVD=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(JVD,_.xu);var SlP=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(SlP,_.xu);SlP.prototype.getPayloadCase=function(){return _.px(this,Lx)};
var Lx=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Vt=function(g,r){g=Error.call(this,g);this.message=g.message;"stack"in g&&(this.stack=g.stack);this.code=r===void 0?2:r};
_.f(Vt,Error);var P5B=Promise;var tmP=function(g){this.channelPromise=g};
tmP.prototype.send=function(g,r,E){this.channelPromise.then(function(B){B.send(g,r,E)})};var F9V=function(g,r){this.data=g;this.channel=r};
F9V.prototype.reply=function(g,r,E){this.channel.send(g,r,E)};var eQl=function(g){this.JSC$7030_port_=g};
eQl.prototype.send=function(g,r,E){E=E===void 0?[]:E;var B=new MessageChannel;W9J(B.port1,r);this.JSC$7030_port_.postMessage(g,[B.port2].concat(E))};
var C5l=function(g,r){W9J(g,r);return new eQl(g)},W9J=function(g,r){r&&(g.onmessage=function(E){r(new F9V(E.data,C5l(E.ports[0])))})};var K9l=function(g){this.verifier_=g},xlP=function(g){var r=Object.create(null);
(typeof g==="string"?[g]:g).forEach(function(E){if(E==="null")throw Error("ba");r[E]=!0});
return function(E){return r[E]===!0}};_.agc=function(){if(!_.ED.addEventListener||!Object.defineProperty)return!1;var g=!1,r=Object.defineProperty({},"passive",{get:function(){g=!0}});
try{var E=function(){};
_.ED.addEventListener("test",E,r);_.ED.removeEventListener("test",E,r)}catch(B){}return g}();var Xqc;_.hX=function(g){var r=g.destination;var E=g.iframe;var B=g.origin;var w=g.channelName===void 0?"ZNWN1d":g.channelName;var O=g.onMessage===void 0?void 0:g.onMessage;g=g.onEstablished===void 0?void 0:g.onEstablished;return Xqc({destination:r,getSource:function(){return E.contentWindow},
originVerifier:B instanceof K9l?B:typeof B==="function"?new K9l(B):new K9l(xlP(B)),channelName:w,onMessage:O,onEstablished:g})};
Xqc=function(g){var r=g.destination;var E=g.getSource;var B=g.originVerifier;var w=g.token===void 0?void 0:g.token;var O=g.channelName;var M=g.onMessage===void 0?void 0:g.onMessage;var u=g.onEstablished===void 0?void 0:g.onEstablished;return new tmP(new P5B(function(l,Q){var z=function(k){k.source&&k.source===E()&&B.verifier_(k.origin)&&(k.data.n||k.data)===O&&(r.removeEventListener("message",z,!1),w&&k.data.t!==w?Q(Error("ca`"+O+"`"+w+"`"+k.data.t)):(l(C5l(k.ports[0],M)),u&&u(k)))};
r.addEventListener("message",z,!1)}))};var Nec=function(g){try{g()}catch(r){BJ(r)}};var mlo=function(g){var r=this;var E=g.getMessageType;var B=g.onUnregisteredMessage===void 0?function(){}:g.onUnregisteredMessage;
var w=g.onBeforeRegisteredMessage===void 0?function(){}:g.onBeforeRegisteredMessage;
g=g.onAfterRegisteredMessage===void 0?function(){}:g.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=E;this.onUnregisteredMessage_=B;this.onBeforeRegisteredMessage_=w;this.onAfterRegisteredMessage_=g;this.onMessage=function(O){return IgQ(r,O)}};
mlo.prototype.register=function(g,r){this.registry_.set(g,r);return this};
var IgQ=function(g,r){var E=g.getMessageType_(r.data),B=g.registry_.get(E);B?(Nec(function(){return g.onBeforeRegisteredMessage_(r,E)}),Nec(function(){return B(r)}),Nec(function(){return g.onAfterRegisteredMessage_(r,E)})):Nec(function(){return g.onUnregisteredMessage_(r,E)})};var cVl=function(g){this.JSC$7047_channel_=g},L9B,VmL;
cVl.prototype.send=function(g,r,E){this.JSC$7047_channel_.send(wk(g),r,E)};
_.ipl=function(g,r){return function(E){var B=new g(E.data);return r(new F9V(B,E.channel))}};
L9B=function(g){return function(r){return g(new F9V(r.data,new cVl(r.channel)))}};
VmL=function(g,r){return L9B(_.ipl(g,r))};var hQB=function(g,r,E,B){this.registry=g;this.delegate=r;this.receiveMessageConstructor=E;this.createInitMessage=B;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},wHX=function(g){var r=new mlo({getMessageType:g.getPayloadCase});
return new hQB(r,new cVl(_.hX({iframe:g.child,destination:window,origin:g.origin,channelName:g.channelName,onMessage:VmL(g.receiveMessageConstructor,r.onMessage)})),g.receiveMessageConstructor,g.createInitMessage)},ZpL=function(g,r){g.createInitMessage=r};
hQB.prototype.send=function(g){if(!this.initialised)throw new Vt("Attempted to send a message before initialisation.");this.delegate.send(g)};
var yVL=function(g,r){return _.q(function(E){if(!g.initialised)throw new Vt("Attempted to send a message before initialisation.");return E.return(new Promise(function(B){g.delegate.send(r,VmL(g.receiveMessageConstructor,B))}))})};
hQB.prototype.init=function(){var g=this;return _.q(function(r){if(g.initialised)throw new Vt("Attempted to initialise twice. The SDK can only be initialised once.");if(g.createInitMessage!==void 0){var E=g.delegate,B=E.send,w=g.createInitMessage;var O=new DlV;var M=[].concat(_.jW(g.features));O=_.$u(O,1,M,_.HF);B.call(E,w.call(g,O))}g.initialised=!0;_.Q3(r)})};
var Zt=function(g,r){if(g.initialised)throw new Vt('Attempted to set up API "'+r+'" after initialisation. All APIs must be set up before initialising the SDK.');g.features.add(r);return g.registry};
_.hx.Object.defineProperties(hQB.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var vMA=function(g){this.channel=g;this.registered=!1};
vMA.prototype.update=function(g){if(this.channel.isInitialised){if(!this.registered)throw new Vt("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var r=new EU;var E=new oMY;E=_.qd(E,1,g);r=_.ws(r,2,Sy,E);this.channel.send(r)}else this.register();this.JSC$7061_audioEnabled=g};
vMA.prototype.register=function(){Zt(this.channel,1);this.registered=!0};
vMA.prototype.isAudioEnabled=function(){return this.JSC$7061_audioEnabled};var dlJ=function(g){this.channel=g};
_.S=dlJ.prototype;_.S.onFirstFrameReady=function(g){Zt(this.channel,2).register(11,function(r){r=_.PL(r.data,RQV,11,Lx);if(!r)throw new Vt("Unexpectedly nonexistent GameFirstFrameReadyEvent");g(_.jI(r,1))})};
_.S.onReady=function(g){Zt(this.channel,2).register(4,function(r){r=_.PL(r.data,snX,4,Lx);if(!r)throw new Vt("Unexpectedly nonexistent GameReadyEvent");g(_.jI(r,1))})};
_.S.onLevelComplete=function(g){Zt(this.channel,2).register(5,function(r){r=_.PL(r.data,fgJ,5,Lx);if(!r)throw new Vt("Unexpectedly nonexistent LevelCompleteEvent");g(_.jI(r,1),_.wY(r,2))})};
_.S.onGameOver=function(g){Zt(this.channel,2).register(6,function(r){r=_.PL(r.data,nMD,6,Lx);if(!r)throw new Vt("Unexpectedly nonexistent GameOverEvent");g(_.jI(r,1))})};
_.S.pause=function(){var g=this;if(!this.channel.isInitialised)return Zt(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Vt("Using unregistered Game Feature: pause.");var r=pqL();return new Promise(function(E){return _.q(function(B){if(B.nextAddress==1)return _.D(B,yVL(g.channel,r),2);E();_.Q3(B)})})};
_.S.resume=function(){var g=this;if(!this.channel.isInitialised)return Zt(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Vt("Using unregistered Game Feature: resume.");var r=YOB();return new Promise(function(E){return _.q(function(B){if(B.nextAddress==1)return _.D(B,yVL(g.channel,r),2);E();_.Q3(B)})})};var TeS=function(g){this.channel=g};
TeS.prototype.onReady=function(g){Zt(this.channel,5).register(8,function(r){if(!_.PL(r.data,$ll,8,Lx))throw new Vt("Unexpectedly nonexistent PageReadyEvent");g()})};var g_Y=function(g){this.channel=g};
g_Y.prototype.onChange=function(g){Zt(this.channel,3).register(7,function(r){r=_.PL(r.data,jnl,7,Lx);if(!r)throw new Vt("Unexpectedly nonexistent ScoreEvent");g(_.jI(r,1),_.wY(r,2))})};var rvY={load:function(){throw new Vt("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new Vt("Storage used, but storage.onSave() listener not set!");}},E_V=function(g){this.channel=g;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},BOl=function(g){Zt(g.channel,4).register(2,rvY.load).register(3,rvY.save);
g.initialSetupDone=!0};
E_V.prototype.onLoad=function(g){this.initialSetupDone||BOl(this);this.loadRegistered||(this.loadRegistered=!0,Zt(this.channel,4).register(2,function(r){var E,B,w;return _.q(function(O){if(O.nextAddress==1){E=_.PL(r.data,AVS,2,Lx);if(!E)throw new Vt("Unexpectedly nonexistent StorageLoad");B=_.jI(E,1);return _.D(O,g(B),2)}w=O.yieldResult;var M=r.reply,u=new EU;var l=new zQA;l=_.H$(l,1,B);l=_.w2(l,2,_.Cw(w,!1));u=_.ws(u,3,Sy,l);M.call(r,u);_.Q3(O)})}))};
E_V.prototype.onSave=function(g){this.initialSetupDone||BOl(this);this.saveRegistered||(this.saveRegistered=!0,Zt(this.channel,4).register(3,function(r){var E,B,w;return _.q(function(O){if(O.nextAddress==1){E=_.PL(r.data,bpP,3,Lx);if(!E)throw new Vt("Unexpectedly nonexistent StorageSave");B=_.jI(E,1);w=y4c(E.getData());return _.D(O,g(B,w),2)}var M=r.reply,u=new EU;var l=new kzt;l=_.H$(l,1,B);u=_.ws(u,4,Sy,l);M.call(r,u);_.Q3(O)})}))};var wGQ=function(g){this.channel=g};
wGQ.prototype.update=function(g){if(!this.channel.features.has(6))throw new Vt("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var r=new EU,E=new Hpt;g=_.Bu(E,1,g);r=_.ws(r,6,Sy,g);this.channel.send(r)};
wGQ.prototype.register=function(){Zt(this.channel,6)};var SoA=function(g){this.channel=g;this.userActivityLoggingIntervalMs=0};
SoA.prototype.onUserActivity=function(g,r){this.userActivityLoggingIntervalMs=r;Zt(this.channel,7).register(9,function(E){if(!_.PL(E.data,JVD,9,Lx))throw new Vt("Unexpectedly nonexistent ClickEvent");g()})};var O_l=function(g){var r=this;this.channel=g;this.init=this.channel.init.bind(this.channel);this.page=new TeS(this.channel);this.game=new dlJ(this.channel);this.audio=new vMA(this.channel);this.score=new g_Y(this.channel);this.storage=new E_V(this.channel);this.style=new wGQ(this.channel);this.userActivity=new SoA(this.channel);ZpL(this.channel,function(E){var B=new Oto;E=_.Bu(B,1,E);E=_.tX(E,3,r.userActivity.userActivityLoggingIntervalMs);B=r.audio.isAudioEnabled();B!==void 0&&_.qd(E,2,B);B=new EU;
return _.ws(B,5,Sy,E)})};var UmB=function(){this.timedFunctionContext=0};
UmB.prototype.timeExecution=function(g,r){var E=this;return function(){var B=_.fI.apply(0,arguments);E.timedFunctionContext=g;return r.apply(null,_.jW(B))}};var MuX=function(){var g={};this.priorityTasks=(g[3]=[],g[2]=[],g[1]=[],g);this.isFlushing=!1},uO=function(g,r,E){var B=qoc(g,E);
g.priorityTasks[E].push(r);B&&g.priorityTasks[E].length===1&&g.flush()},qoc=function(g,r){return Object.keys(g.priorityTasks).map(function(E){return Number(E)}).filter(function(E){return!isNaN(E)&&E>r}).every(function(E){return g.priorityTasks[E].length===0})};
MuX.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(g){return g.length>0});)uVl(this,3),uVl(this,2),uVl(this,1)}catch(g){throw Object.values(this.priorityTasks).forEach(function(r){return void r.splice(0,r.length)}),g;
}finally{this.isFlushing=!1}}};
var uVl=function(g,r){for(;qoc(g,r)&&g.priorityTasks[r].length>0;)g.priorityTasks[r][0](),g.priorityTasks[r].shift()};
_.hx.Object.defineProperties(MuX.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(g){return g.length>0})}}});var Dsl={};var lNB=globalThis.trustedTypes,Mzt=lNB,ujB;var MO=function(g){this.privateDoNotAccessOrElseWrappedResourceUrl=g};
MO.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var DmX,o_Y,G1A,QWP,zsQ,k1t,H_V,pGQ;DmX=_.me([""]);o_Y=Ix(["\x00"],["\\0"]);G1A=Ix(["\n"],["\\n"]);QWP=Ix(["\x00"],["\\u0000"]);zsQ=_.me([""]);k1t=Ix(["\x00"],["\\0"]);H_V=Ix(["\n"],["\\n"]);pGQ=Ix(["\x00"],["\\u0000"]);_.YoX=D2(function(g){return g(DmX)})||D2(function(g){return g(o_Y)})||D2(function(g){return g(G1A)})||D2(function(g){return g(QWP)});
_.RsB=_.li(zsQ)&&_.li(k1t)&&_.li(H_V)&&_.li(pGQ);var RC;_.oC=function(g,r){this.privateDoNotAccessOrElseWrappedUrl=r};
_.oC.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.n_l=Gh("about:blank");RC=Gh("about:invalid#zClosurez");var ouc=function(g){this.isValid=g},sWS=new ouc(function(g){return/^[^:]*([/?#]|$)/.test(g)}),fNc=kU("data"),$mQ=kU("http"),jWA=kU("https"),Avl=kU("ftp"),b_X=kU("mailto"),JvJ=kU("intent"),PyX=kU("vnd.youtube"),G_l=[fNc,
$mQ,jWA,b_X,Avl,sWS],Q8B=OU(function(){return typeof URL==="function"}),tuQ=["data:",
"http:","https:","mailto:","ftp:"],k_t=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var bi=function(g){this.privateDoNotAccessOrElseWrappedHtml=g};
bi.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var oFJ=OU(function(){return new bi(lNB?lNB.emptyHTML:"")});var FyY={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"},FE=function(g,r){var E=Error.call(this,g+" cannot be used with intent "+FyY[r]);this.message=E.message;"stack"in E&&(this.stack=E.stack);this.type=g;this.intent=r;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.f(FE,Error);_.aC=function(g){this.privateDoNotAccessOrElseWrappedScript=g};
_.aC.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var YlD=function(g){this.privateDoNotAccessOrElseWrappedAttributePrefix=g};
YlD.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var RKD="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var k$S=function(g){var r=_.XS("window.location.href");g==null&&(g='Unknown Error of type "null/undefined"');if(typeof g==="string")return{message:g,name:"Unknown error",lineNumber:"Not available",fileName:r,stack:"Not available"};var E=!1;try{var B=g.lineNumber||g.line||"Not available"}catch(M){B="Not available",E=!0}try{var w=g.fileName||g.filename||g.sourceURL||_.ED.$googDebugFname||r}catch(M){w="Not available",E=!0}r=esl(g);if(!(!E&&g.lineNumber&&g.fileName&&g.stack&&g.message&&g.name)){E=g.message;
if(E==null){if(g.constructor&&g.constructor instanceof Function){if(g.constructor.name)E=g.constructor.name;else if(E=g.constructor,vL[E])E=vL[E];else{E=String(E);if(!vL[E]){var O=/function\s+([^\(]+)/m.exec(E);vL[E]=O?O[1]:"[Anonymous]"}E=vL[E]}E='Unknown Error of type "'+E+'"'}else E="Unknown Error of unknown type";typeof g.toString==="function"&&Object.prototype.toString!==g.toString&&(E+=": "+g.toString())}return{message:E,name:g.name||"UnknownError",lineNumber:B,fileName:w,stack:r||"Not available"}}return{message:g.message,
name:g.name,lineNumber:g.lineNumber,fileName:g.fileName,stack:r}},esl=function(g,r){r||(r={});
r[Wyl(g)]=!0;var E=g.stack||"",B=g.cause;B&&!r[Wyl(B)]&&(E+="\nCaused by: ",B.stack&&B.stack.indexOf(B.toString())==0||(E+=typeof B==="string"?B:B.message+"\n"),E+=esl(B,r));g=g.errors;if(Array.isArray(g)){B=1;var w;for(w=0;w<g.length&&!(B>4);w++)r[Wyl(g[w])]||(E+="\nInner error "+B++ +": ",g[w].stack&&g[w].stack.indexOf(g[w].toString())==0||(E+=typeof g[w]==="string"?g[w]:g[w].message+"\n"),E+=esl(g[w],r));w<g.length&&(E+="\n... "+(g.length-w)+" more inner errors")}return E},Wyl=function(g){var r=
"";
typeof g.toString==="function"&&(r=""+g);return r+g.stack},vL={};var CyJ,dW,Ug,xmc,aNJ,Kyl,mK,ay,NOc;CyJ=function(g,r){for(var E=g.split("%s"),B="",w=Array.prototype.slice.call(arguments,1);w.length&&E.length>1;)B+=E.shift()+w.shift();return B+E.join("%s")};
_.Ia=function(g){return encodeURIComponent(String(g))};
dW=function(g){return decodeURIComponent(g.replace(/\+/g," "))};
Ug=function(g){odJ.test(g)&&(g.indexOf("&")!=-1&&(g=g.replace(UGX,"&amp;")),g.indexOf("<")!=-1&&(g=g.replace(MoP,"&lt;")),g.indexOf(">")!=-1&&(g=g.replace(qjY,"&gt;")),g.indexOf('"')!=-1&&(g=g.replace(usA,"&quot;")),g.indexOf("'")!=-1&&(g=g.replace(lSt,"&#39;")),g.indexOf("\x00")!=-1&&(g=g.replace(DGA,"&#0;")));return g};
xmc=function(g){var r={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var E=_.ED.document.createElement("div");return g.replace(Kyl,function(B,w){var O=r[B];if(O)return O;w.charAt(0)=="#"&&(w=Number("0"+w.slice(1)),isNaN(w)||(O=String.fromCharCode(w)));O||(_.cu(E,Ja(B+" ")),O=E.firstChild.nodeValue.slice(0,-1));return r[B]=O})};
aNJ=function(g){return g.replace(/&([^;]+);/g,function(r,E){switch(E){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return E.charAt(0)!="#"||(E=Number("0"+E.slice(1)),isNaN(E))?r:String.fromCharCode(E)}})};
Kyl=/&([^;\s<&]+);?/g;_.XLA=function(g){return String(g).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.XGV=String.prototype.repeat?function(g,r){return g.repeat(r)}:function(g,r){return Array(r+1).join(g)};
_.dc=function(g,r){if(!Number.isFinite(g))return String(g);g=String(g);var E=g.indexOf(".");E===-1&&(E=g.length);var B=g[0]==="-"?"-":"";B&&(g=g.substring(1));return B+(0,_.XGV)("0",Math.max(0,r-E))+g};
mK=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.dx()).toString(36)};
ay=function(g){for(var r=0,E=0;E<g.length;++E)r=31*r+g.charCodeAt(E)>>>0;return r};
_.Qk=function(g){return String(g).replace(/\-([a-z])/g,function(r,E){return E.toUpperCase()})};
_.Gr=function(g){return String(g).replace(/([A-Z])/g,"-$1").toLowerCase()};
NOc=function(g){return g.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(r,E,B){return E+B.toUpperCase()})};var INA=function(){this.names=new Map};
INA.prototype.getName=function(g){var r=this.names.get(g);if(r)return r;var E;r=(E=g.description)!=null?E:mK();this.names.set(g,r);return r};var mmV=function(g){var r=Error.call(this,g?g.length+" errors occurred during unsubscription:\n"+g.map(function(E,B){return B+1+") "+E.toString()}).join("\n  "):"");
this.message=r.message;"stack"in r&&(this.stack=r.stack);this.errors=g;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.f(mmV,Error);var vu=function(g){this.initialTeardown=g;this.closed=!1;this._teardowns=this._parentage=null};
_.S=vu.prototype;
_.S.unsubscribe=function(){if(!this.closed){this.closed=!0;var g=this._parentage;if(Array.isArray(g))for(var r=_.U(g),E=r.next();!E.done;E=r.next())E.value.remove(this);else g==null||g.remove(this);r=this.initialTeardown;if(yv(r))try{r()}catch(O){var B=O instanceof mmV?O.errors:[O]}var w=this._teardowns;if(w)for(this._teardowns=null,r=_.U(w),E=r.next();!E.done;E=r.next()){E=E.value;try{yv(E)?E():E.unsubscribe()}catch(O){E=void 0,B=(E=B)!=null?E:[],O instanceof mmV?B=[].concat(_.jW(B),_.jW(O.errors)):
B.push(O)}}if(B)throw new mmV(B);}};
_.S.add=function(g){if(g&&g!==this)if(this.closed)yv(g)?g():g.unsubscribe();else{if(g instanceof vu){if(g.closed||g._hasParent(this))return;g._addParent(this)}var r;(this._teardowns=(r=this._teardowns)!=null?r:[]).push(g)}};
_.S._hasParent=function(g){var r=this._parentage;return r===g||Array.isArray(r)&&r.includes(g)};
_.S._addParent=function(g){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(g),r):r?[r,g]:g};
_.S._removeParent=function(g){var r=this._parentage;r===g?this._parentage=null:Array.isArray(r)&&Z2(r,g)};
_.S.remove=function(g){var r=this._teardowns;r&&Z2(r,g);g instanceof vu&&g._removeParent(this)};
var cvY=new vu;cvY.closed=!0;vu.JSC$7157_EMPTY=cvY;var $sX=function(){setTimeout.apply(null,_.jW(_.fI.apply(0,arguments)))};var TE=function(g){vu.call(this);this.JSC$7162_isStopped=!1;this.destination=g instanceof TE?g:new g5(!g||yv(g)?{next:g!=null?g:void 0}:g);fat(g)&&g.add(this)};
_.f(TE,vu);TE.JSC$7157_EMPTY=vu.JSC$7157_EMPTY;TE.create=function(g,r,E){return new r5(g,r,E)};
_.S=TE.prototype;_.S.next=function(g){this.JSC$7162_isStopped||this._next(g)};
_.S.error=function(g){this.JSC$7162_isStopped||(this.JSC$7162_isStopped=!0,this._error(g))};
_.S.complete=function(){this.JSC$7162_isStopped||(this.JSC$7162_isStopped=!0,this._complete())};
_.S.unsubscribe=function(){this.closed||(this.JSC$7162_isStopped=!0,vu.prototype.unsubscribe.call(this))};
_.S._next=function(g){this.destination.next(g)};
_.S._error=function(g){this.destination.error(g);this.unsubscribe()};
_.S._complete=function(){this.destination.complete();this.unsubscribe()};
var g5=function(g){this.partialObserver=g};
g5.prototype.next=function(g){var r=this.partialObserver;if(r.next)try{r.next(g)}catch(E){Th(E)}};
g5.prototype.error=function(g){var r=this.partialObserver;if(r.error)try{r.error(g)}catch(E){Th(E)}else Th(g)};
g5.prototype.complete=function(){var g=this.partialObserver;if(g.complete)try{g.complete()}catch(r){Th(r)}};
var r5=function(g,r,E){TE.call(this);var B;yv(g)||!g?B={next:g!=null?g:void 0,error:r!=null?r:void 0,complete:E!=null?E:void 0}:B=g;this.destination=new g5(B)};
_.f(r5,TE);r5.JSC$7157_EMPTY=TE.JSC$7157_EMPTY;r5.create=TE.create;var wh=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Em=function(g){g&&(this._subscribe=g)};
_.S=Em.prototype;_.S.lift=function(g){var r=new Em;r.source=this;r.operator=g;return r};
_.S.subscribe=function(g,r,E){g=g&&g instanceof TE||g&&yv(g.next)&&yv(g.error)&&yv(g.complete)&&fat(g)?g:new r5(g,r,E);r=this.operator;E=this.source;g.add(r?r.call(g,E):E?this._subscribe(g):this._trySubscribe(g));return g};
_.S._trySubscribe=function(g){try{return this._subscribe(g)}catch(r){g.error(r)}};
_.S.forEach=function(g,r){var E=this;r=ABS(r);return new r(function(B,w){var O=E.subscribe(function(M){try{g(M)}catch(u){w(u),O==null||O.unsubscribe()}},w,B)})};
_.S._subscribe=function(g){var r;return(r=this.source)==null?void 0:r.subscribe(g)};
Em.prototype[wh]=function(){return this};
Em.prototype.pipe=function(){var g=_.fI.apply(0,arguments);return g.length?j8c(g)(this):this};
Em.create=function(g){return new Em(g)};var i_S=function(){var g=Error.call(this,"object unsubscribed");this.message=g.message;"stack"in g&&(this.stack=g.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.f(i_S,Error);var UY=function(){this.observers=[];this.hasError=this.JSC$7178_isStopped=this.closed=!1;this.thrownError=null};
_.f(UY,Em);_.S=UY.prototype;_.S.lift=function(g){var r=new Eh(this,this);r.operator=g;return r};
_.S._throwIfClosed=function(){if(this.closed)throw new i_S;};
_.S.next=function(g){this._throwIfClosed();if(!this.JSC$7178_isStopped){var r=this.observers.slice();r=_.U(r);for(var E=r.next();!E.done;E=r.next())E.value.next(g)}};
_.S.error=function(g){this._throwIfClosed();if(!this.JSC$7178_isStopped){this.hasError=this.JSC$7178_isStopped=!0;this.thrownError=g;for(var r=this.observers;r.length;)r.shift().error(g)}};
_.S.complete=function(){this._throwIfClosed();if(!this.JSC$7178_isStopped){this.JSC$7178_isStopped=!0;for(var g=this.observers;g.length;)g.shift().complete()}};
_.S.unsubscribe=function(){this.JSC$7178_isStopped=this.closed=!0;this.observers=null};
_.S._trySubscribe=function(g){this._throwIfClosed();return Em.prototype._trySubscribe.call(this,g)};
_.S._subscribe=function(g){this._throwIfClosed();this._checkFinalizedStatuses(g);return this._innerSubscribe(g)};
_.S._innerSubscribe=function(g){var r=this,E=this.JSC$7178_isStopped,B=this.observers;return this.hasError||E?vu.JSC$7157_EMPTY:(B.push(g),new vu(function(){return Z2(r.observers,g)}))};
_.S._checkFinalizedStatuses=function(g){var r=this.thrownError,E=this.JSC$7178_isStopped;this.hasError?g.error(r):E&&g.complete()};
UY.create=function(g,r){return new Eh(g,r)};
var Eh=function(g,r){UY.call(this);this.destination=g;this.source=r};
_.f(Eh,UY);Eh.create=UY.create;Eh.prototype.next=function(g){var r,E;(r=this.destination)==null||(E=r.next)==null||E.call(r,g)};
Eh.prototype.error=function(g){var r,E;(r=this.destination)==null||(E=r.error)==null||E.call(r,g)};
Eh.prototype.complete=function(){var g,r;(g=this.destination)==null||(r=g.complete)==null||r.call(g)};
Eh.prototype._subscribe=function(g){var r,E;return(E=(r=this.source)==null?void 0:r.subscribe(g))!=null?E:vu.JSC$7157_EMPTY};var Xm=function(g){UY.call(this);this._value=g};
_.f(Xm,UY);Xm.create=UY.create;Xm.prototype._subscribe=function(g){var r=UY.prototype._subscribe.call(this,g);!r.closed&&g.next(this._value);return r};
Xm.prototype.getValue=function(){var g=this.thrownError,r=this._value;if(this.hasError)throw g;this._throwIfClosed();return r};
Xm.prototype.next=function(g){UY.prototype.next.call(this,this._value=g)};
_.hx.Object.defineProperties(Xm.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var Fz=new Em(function(g){return g.complete()});var Bb=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var CAS=function(g){return g&&typeof g.length==="number"&&typeof g!=="function"};var Lyt={now:function(){return(Lyt.delegate||Date).now()},
delegate:void 0};var ZD=function(g,r,E){g=g===void 0?Infinity:g;r=r===void 0?Infinity:r;E=E===void 0?Lyt:E;UY.call(this);this.bufferSize=g;this.windowTime=r;this.timestampProvider=E;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=r===Infinity;this.bufferSize=Math.max(1,g);this.windowTime=Math.max(1,r)};
_.f(ZD,UY);ZD.create=UY.create;ZD.prototype.next=function(g){var r=this.buffer,E=this.infiniteTimeWindow,B=this.timestampProvider,w=this.windowTime;this.JSC$7178_isStopped||(r.push(g),!E&&r.push(B.now()+w));VuS(this);UY.prototype.next.call(this,g)};
ZD.prototype._subscribe=function(g){this._throwIfClosed();VuS(this);for(var r=this._innerSubscribe(g),E=this.infiniteTimeWindow,B=this.buffer.slice(),w=0;w<B.length&&!g.closed;w+=E?1:2)g.next(B[w]);this._checkFinalizedStatuses(g);return r};
var VuS=function(g){var r=g.bufferSize,E=g.timestampProvider,B=g.buffer;g=g.infiniteTimeWindow;var w=(g?1:2)*r;r<Infinity&&w<B.length&&B.splice(0,B.length-w);if(!g){r=E.now();E=0;for(g=1;g<B.length&&B[g]<=r;g+=2)E=g;E&&B.splice(0,E+1)}};var Z_X=function(g,r){r=r===void 0?hsD:r;this.schedulerActionCtor=g;this.now=r};
Z_X.prototype.schedule=function(g,r,E){r=r===void 0?0:r;return(new this.schedulerActionCtor(this,g)).schedule(E,r)};
var hsD=Lyt.now;var jCY=function(){var g=Error.call(this,"no elements in sequence");this.message=g.message;"stack"in g&&(this.stack=g.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.f(jCY,Error);var sm=function(g,r,E,B,w){TE.call(this,g);this.onUnsubscribe=w;r&&(this._next=function(O){try{r(O)}catch(M){this.destination.error(M)}});
E&&(this._error=function(O){try{E(O)}catch(M){this.destination.error(M)}this.unsubscribe()});
B&&(this._complete=function(){try{B()}catch(O){this.destination.error(O)}this.unsubscribe()})};
_.f(sm,TE);sm.JSC$7157_EMPTY=TE.JSC$7157_EMPTY;sm.create=TE.create;sm.prototype.unsubscribe=function(){var g;this.closed||(g=this.onUnsubscribe)!=null&&g.call(this);TE.prototype.unsubscribe.call(this)};var V3=function(g,r){this.source=g;this.subjectFactory=r;this._subject=null;this._refCount=0;this._connection=null};
_.f(V3,Em);V3.create=Em.create;V3.prototype._subscribe=function(g){return yvA(this).subscribe(g)};
var yvA=function(g){var r=g._subject;if(!r||r.JSC$7178_isStopped)g._subject=g.subjectFactory();return g._subject};
V3.prototype._teardown=function(){this._refCount=0;var g=this._connection;this._subject=this._connection=null;g==null||g.unsubscribe()};
V3.prototype.connect=function(){var g=this,r=this._connection;if(!r){r=this._connection=new vu;var E=yvA(this);r.add(this.source.subscribe(new sm(E,void 0,function(B){g._teardown();E.error(B)},function(){g._teardown();
E.complete()},function(){return g._teardown()})));
r.closed&&(this._connection=null,r=vu.JSC$7157_EMPTY)}return r};var hKl=Array.isArray;var yBl=Array.isArray,v_Q=Object,vuP=v_Q.getPrototypeOf,dsl=v_Q.prototype,TkD=v_Q.keys;var bY=function(g,r,E){TE.call(this,g);this._next=r;this.shouldComplete=E};
_.f(bY,TE);bY.JSC$7157_EMPTY=TE.JSC$7157_EMPTY;bY.create=TE.create;bY.prototype._complete=function(){this.shouldComplete()?TE.prototype._complete.call(this):this.unsubscribe()};var UOt=["addListener","removeListener"],OIl=["addEventListener","removeEventListener"],qUB=["on","off"];var Bg=function(){vu.call(this)};
_.f(Bg,vu);Bg.JSC$7157_EMPTY=vu.JSC$7157_EMPTY;Bg.prototype.schedule=function(){return this};var dmY=function(g,r){return setInterval.apply(null,[g,r].concat(_.jW(_.fI.apply(2,arguments))))};var w5=function(g,r){vu.call(this);this.scheduler=g;this.work=r;this.pending=!1};
_.f(w5,Bg);w5.JSC$7157_EMPTY=Bg.JSC$7157_EMPTY;w5.prototype.schedule=function(g,r){r=r===void 0?0:r;if(this.closed)return this;this.state=g;g=this.id;var E=this.scheduler;g!=null&&(this.id=TOD(this,g,r));this.pending=!0;this.delay=r;this.id=this.id||this.requestAsyncId(E,this.id,r);return this};
w5.prototype.requestAsyncId=function(g,r,E){E=E===void 0?0:E;return dmY(g.flush.bind(g,this),E)};
var TOD=function(g,r,E){E=E===void 0?0:E;if(E!=null&&g.delay===E&&g.pending===!1)return r;clearInterval(r)};
w5.prototype.execute=function(g,r){if(this.closed)return Error("ma");this.pending=!1;if(g=this._execute(g,r))return g;this.pending===!1&&this.id!=null&&(this.id=TOD(this,this.id,null))};
w5.prototype._execute=function(g){var r=!1;try{this.work(g)}catch(B){r=!0;var E=!!B&&B||Error(B)}if(r)return this.unsubscribe(),E};
w5.prototype.unsubscribe=function(){if(!this.closed){var g=this.id,r=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;Z2(r,this);g!=null&&(this.id=TOD(this,g,null));this.delay=null;Bg.prototype.unsubscribe.call(this)}};var gcw=function(g,r){r=r===void 0?hsD:r;Z_X.call(this,g,r);this.actions=[];this.active=!1;this.scheduled=void 0};
_.f(gcw,Z_X);gcw.prototype.flush=function(g){var r=this.actions;if(this.active)r.push(g);else{var E;this.active=!0;do if(E=g.execute(g.state,g.delay))break;while(g=r.shift());this.active=!1;if(E){for(;g=r.shift();)g.unsubscribe();throw E;}}};var sY=new Em(ds);var uED=Array.isArray;var S5=function(g,r){w5.call(this,g,r);this.scheduler=g;this.work=r};
_.f(S5,w5);S5.JSC$7157_EMPTY=w5.JSC$7157_EMPTY;S5.prototype.schedule=function(g,r){r=r===void 0?0:r;if(r>0)return w5.prototype.schedule.call(this,g,r);this.delay=r;this.state=g;this.scheduler.flush(this);return this};
S5.prototype.execute=function(g,r){return r>0||this.closed?w5.prototype.execute.call(this,g,r):this._execute(g,r)};
S5.prototype.requestAsyncId=function(g,r,E){E=E===void 0?0:E;return E!=null&&E>0||E==null&&this.delay>0?w5.prototype.requestAsyncId.call(this,g,r,E):g.flush(this)};var rtU=function(){gcw.apply(this,arguments)};
_.f(rtU,gcw);var Lpl=new rtU(S5);var Ec4=function(){this.performanceMonitor=new UmB;this.queue=new MuX;this.internalSymbol=Symbol();this.debugNames=new INA};
Ec4.prototype.getOnBackgrounded=function(){return sY};
_.hx.Object.defineProperties(Ec4.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var Oh=function(g,r){r=Error.call(this,r?g+": "+r:String(g));this.message=r.message;"stack"in r&&(this.stack=r.stack);this.code=g;this.__proto__=Oh.prototype;this.name=String(g)};
_.f(Oh,Error);var fN=function(g){Oh.call(this,1E3,'sfr:"'+g+'"');this.measurementStrategyFailureReason=g;this.__proto__=fN.prototype};
_.f(fN,Oh);var $Y=function(){Oh.call(this,1003);this.__proto__=$Y.prototype};
_.f($Y,Oh);var Uh=function(){Oh.call(this,1009);this.__proto__=Uh.prototype};
_.f(Uh,Oh);var BlI=function(){Oh.call(this,1011);this.__proto__=BlI.prototype};
_.f(BlI,Oh);var wJn=function(){Oh.call(this,1007);this.__proto__=$Y.prototype};
_.f(wJn,Oh);var pN=function(g){Oh.call(this,1004,String(g));this.inputObservableIndex=g;this.__proto__=pN.prototype};
_.f(pN,Oh);var xNL=function(g){Oh.call(this,1010,g);this.__proto__=YY.prototype};
_.f(xNL,Oh);var YY=function(g){Oh.call(this,1005,g);this.__proto__=YY.prototype};
_.f(YY,Oh);var SDn=function(g){var r=_.fI.apply(1,arguments),E=this;this.orderedFactories=[];this.orderedFactories.push(g);r.forEach(function(B){E.orderedFactories.push(B)})};
SDn.prototype.isSupported=function(g){return this.orderedFactories.some(function(r){return r.isSupported(g)})};
SDn.prototype.makeBeacon=function(g,r){for(var E=0;E<this.orderedFactories.length;E++)if(this.orderedFactories[E].isSupported(r))return this.orderedFactories[E].makeBeacon(g,r);throw new Uh;};var nYX=Symbol("na"),OLw=Symbol("oa"),xf=function(g,r){this.value=g;this.timeline=r},C$=function(g,r){if(r.timeline!==g.timeline)throw new wJn;
return g.value-r.value};
_.S=xf.prototype;_.S.equals=function(g){return C$(this,g)===0};
_.S.maximum=function(g){if(g.timeline!==this.timeline)throw new wJn;return this.value>=g.value?this:g};
_.S.round=function(){return new xf(Math.round(this.value),this.timeline)};
_.S.add=function(g){return new xf(this.value+g,this.timeline)};
_.S.toString=function(){return String(this.value)};var Mf=function(g,r){this.context=g;this.JSC$7284_pinger=r};
Mf.prototype.isSupported=function(g){return this.JSC$7284_pinger.isSupported(g)};
Mf.prototype.makeBeacon=function(g,r){if(!this.isSupported(r))throw new Uh;return new qf(this.context,this.JSC$7284_pinger,r!=null?r:void 0,g)};
var qf=function(g,r,E,B){var w=this;this.JSC$7290_pinger=r;this.properties=E;this.url=B;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var O;this.method=(O=E==null?void 0:E.beaconMethod)!=null?O:"GET";this.backgroundedSubscription=g.getOnBackgrounded().subscribe(function(){w.sendNow()})};
qf.prototype.deactivate=function(){this.internalIsPending=!1};
qf.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7290_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var g,r;this.JSC$7290_pinger.pingWithHeadersAndBody((g=this.properties)!=null?g:{},this.customHeaders,(r=this.body)!=null?r:"",this.url)}else this.JSC$7290_pinger.ping(this.url);this.internalIsPending=!1}catch(E){}else this.internalIsPending=!1};
qf.prototype.setHeader=function(g){this.customHeaders.set(g,void 0)};
_.hx.Object.defineProperties(qf.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var MVZ=function(){for(var g=_.U(_.fI.apply(0,arguments)),r=g.next();!r.done;r=g.next())if(r=r.value,r.available()){this.timeProvider=r;return}this.timeProvider=new Uoz};
_.S=MVZ.prototype;_.S.available=function(){return this.timeProvider.available()};
_.S.now=function(){return this.timeProvider.now()};
_.S.setTimeout=function(g,r){return this.timeProvider.setTimeout(g,r)};
_.S.clearTimeout=function(g){this.timeProvider.clearTimeout(g)};
_.S.interval=function(g,r){var E=this.intervalObservable(g).subscribe(r);return function(){return void E.unsubscribe()}};
_.S.intervalObservable=function(g){return this.timeProvider.intervalObservable(g)};
_.hx.Object.defineProperties(MVZ.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var Uoz=function(){this.timeline=Symbol()};
_.S=Uoz.prototype;_.S.available=function(){return!1};
_.S.now=function(){return new xf(0,this.timeline)};
_.S.setTimeout=function(){return 0};
_.S.clearTimeout=function(){};
_.S.interval=function(){return function(){}};
_.S.intervalObservable=function(){return sY};var u6=function(g,r){this.intrinsicFunctionNamespace=g;this.performanceMonitor=r};
_.S=u6.prototype;_.S.setTimeout=function(g,r){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,g),r)};
_.S.clearTimeout=function(g){this.intrinsicFunctionNamespace.clearTimeout(g)};
_.S.interval=function(g,r){var E=this.intervalObservable(g).subscribe(r);return function(){return void E.unsubscribe()}};
_.S.intervalObservable=function(g){var r=this;return new Em(function(E){var B=0,w=r.intrinsicFunctionNamespace.setInterval(function(){E.next(B++)},g);
return function(){r.intrinsicFunctionNamespace.clearInterval(w)}})};
_.S.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var qDn=function(g,r){u6.call(this,g,r);this.timeline=OLw};
_.f(qDn,u6);qDn.prototype.now=function(){return new xf(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
qDn.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&u6.prototype.available.call(this)};var uYn=function(g,r){u6.call(this,g,r);this.timeline=nYX};
_.f(uYn,u6);uYn.prototype.now=function(){return new xf(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
uYn.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&u6.prototype.available.call(this)};var Dob=function(g){this.context=g;if(lQZ===void 0)a:{var r,E,B=(r=g.global)==null?void 0:(E=r.document)==null?void 0:E.createElement("meta");if(B)try{B.httpEquiv="origin-trial";B.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";g.global.document.head.append(B);lQZ=B;break a}catch(w){}lQZ=void 0}},
lQZ;
Dob.prototype.isSupported=function(g){return YUl(this.context)!==void 0&&!(g==null||!g.endOfSession)&&!l6(this.context)&&!(g==null?0:g.attributionEnabled)&&!(g==null?0:g.customHeaders)&&!(g==null?0:g.customBody)};
Dob.prototype.makeBeacon=function(g,r){if(!this.isSupported(r))throw new Uh;return new Dw(this.context,g,r)};
var Dw=function(g,r,E){this.context=g;this.properties=E;this.JSC$7317_urlWithoutToken=r;var B;this.beaconMethod=(B=E==null?void 0:E.beaconMethod)!=null?B:"GET";g=YUl(this.context);if(g===void 0)throw Error();this.fetchLater=g;ocU(this,GSw(this))},ocU=function(g,r){g.beaconResult&&g.beaconResult.activated||(g.beaconAbort=new AbortController,g.beaconResult=g.fetchLater(r,{method:g.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:g.beaconAbort.signal,activateAfter:96E4}))},GSw=function(g){g=g.JSC$7317_urlWithoutToken;
return(g.slice(-1)[0]==="&"?g:g+"&")+"flapi=1"};
Dw.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
Dw.prototype.sendNow=function(){};
Dw.prototype.setHeader=function(){};
_.hx.Object.defineProperties(Dw.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7317_urlWithoutToken},
set:function(g){this.JSC$7317_urlWithoutToken=g;g=GSw(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);ocU(this,g)}},
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 QXn=function(g){this.context=g};
QXn.prototype.isSupported=function(){return!l6(this.context)&&!!this.context.global.fetch};
QXn.prototype.ping=function(){var g=this;return eW.apply(null,_.jW(_.fI.apply(0,arguments).map(function(r){return Om(g.context.global.fetch(r,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe($f(function(E){return E.status===200}))}))).pipe(Aac(function(r){return r}),Jat())};
QXn.prototype.pingWithHeadersAndBody=function(g,r,E){for(var B=_.fI.apply(3,arguments),w=this,O=new Headers,M=_.U(r.entries()),u=M.next();!u.done;u=M.next()){var l=_.U(u.value);u=l.next().value;l=l.next().value;O.set(u,l)}var Q,z=(Q=g.keepAlive)!=null?Q:!1;eW.apply(null,_.jW(B.map(function(k){return Om(w.context.global.fetch(k,Object.assign({},{method:String(g.beaconMethod),cache:"no-cache"},z?{keepalive:!0}:{},{mode:"no-cors",headers:O,body:E}))).pipe($f(function(H){return H.status===200}))}))).pipe(Aac(function(k){return k}),
Jat())};var zPU,rcc;_.oo=function(){};
_.No=function(g){return g};
zPU=function(g){var r=r||0;return function(){return g.apply(this,Array.prototype.slice.call(arguments,0,r))}};
_.Gk=function(g){var r=!1,E;return function(){r||(E=g(),r=!0);return E}};
_.QW=function(g,r){var E=0;return function(B){_.ED.clearTimeout(E);var w=arguments;E=_.ED.setTimeout(function(){g.apply(void 0,w)},r)}};
rcc=function(g,r){var E=0,B=!1,w=[],O=function(){E=0;B&&(B=!1,M())},M=function(){E=_.ED.setTimeout(O,r);
var u=w;w=[];g.apply(void 0,u)};
return function(u){w=arguments;E?B=!0:M()}};var HLw=function(){return HJ&&pL?pL.mobile:!kST()&&(nL("iPod")||nL("iPhone")||nL("Android")||nL("IEMobile"))},kST=function(){return HJ&&pL?!pL.mobile&&(nL("iPad")||nL("Android")||nL("Silk")):nL("iPad")||nL("Android")&&!nL("Mobile")||nL("Silk")};var pJD;_.jn={};pJD="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.jn.add=function(g,r,E){if(g!==null&&r in g)throw Error("qa`"+r);g[r]=E};
_.jn.clear=function(g){for(var r in g)delete g[r]};
_.jn.clone=function(g){var r={},E;for(E in g)r[E]=g[E];return r};
_.jn.contains=function(g,r){return FgS(g,r)};
_.jn.containsKey=function(g,r){return g!==null&&r in g};
_.jn.containsValue=FgS;_.jn.create=CiS;_.jn.createImmutableView=function(g){var r=g;Object.isFrozen&&!Object.isFrozen(g)&&(r=Object.create(g),Object.freeze(r));return r};
_.jn.createSet=KgB;_.jn.equals=function(g,r){for(var E in g)if(!(E in r)||g[E]!==r[E])return!1;for(var B in r)if(!(B in g))return!1;return!0};
_.jn.every=function(g,r,E){for(var B in g)if(!r.call(E,g[B],B,g))return!1;return!0};
_.jn.extend=function(g,r){for(var E,B,w=1;w<arguments.length;w++){B=arguments[w];for(E in B)g[E]=B[E];for(var O=0;O<pJD.length;O++)E=pJD[O],Object.prototype.hasOwnProperty.call(B,E)&&(g[E]=B[E])}};
_.jn.filter=function(g,r,E){var B={},w;for(w in g)r.call(E,g[w],w,g)&&(B[w]=g[w]);return B};
_.jn.findKey=ejD;_.jn.findValue=function(g,r,E){return(r=ejD(g,r,E))&&g[r]};
_.jn.forEach=function(g,r,E){for(var B in g)r.call(E,g[B],B,g)};
_.jn.get=function(g,r,E){return g!==null&&r in g?g[r]:E};
_.jn.getAllPropertyNames=function(g,r,E){if(!g)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return tyc(g);for(var B={};g&&(g!==Object.prototype||r)&&(g!==Function.prototype||E);){for(var w=Object.getOwnPropertyNames(g),O=0;O<w.length;O++)B[w[O]]=!0;g=Object.getPrototypeOf(g)}return tyc(B)};
_.jn.getAnyKey=function(g){for(var r in g)return r};
_.jn.getAnyValue=function(g){for(var r in g)return g[r]};
_.jn.getCount=function(g){var r=0,E;for(E in g)r++;return r};
_.jn.getKeys=tyc;_.jn.getSuperClass=function(g){return(g=Object.getPrototypeOf(g.prototype))&&g.constructor};
_.jn.getValueByKeys=function(g,r){var E=_.vJ(r),B=E?r:arguments;for(E=E?0:1;E<B.length;E++){if(g==null)return;g=g[B[E]]}return g};
_.jn.getValues=function(g){var r=[],E=0,B;for(B in g)r[E++]=g[B];return r};
_.jn.isEmpty=function(g){for(var r in g)return!1;return!0};
_.jn.isImmutableView=function(g){return!!Object.isFrozen&&Object.isFrozen(g)};
_.jn.map=function(g,r,E){var B={},w;for(w in g)B[w]=r.call(E,g[w],w,g);return B};
_.jn.remove=function(g,r){var E;(E=r in g)&&delete g[r];return E};
_.jn.set=function(g,r,E){g[r]=E};
_.jn.setIfUndefined=function(g,r,E){return r in g?g[r]:g[r]=E};
_.jn.setWithReturnValueIfNotSet=function(g,r,E){if(r in g)return g[r];E=E();return g[r]=E};
_.jn.some=function(g,r,E){for(var B in g)if(r.call(E,g[B],B,g))return!0;return!1};
_.jn.transpose=function(g){var r={},E;for(E in g)r[g[E]]=E;return r};
_.jn.unsafeClone=Wgc;var zk=function(g,r,E,B,w){this.allowedElements=g;this.elementPolicies=r;this.allowedGlobalAttributes=E;this.globalAttributePolicies=B;this.globallyAllowedAttributePrefixes=w},YD6=function(g,r,E){E=g.elementPolicies.get(E);
return(E==null?0:E.has(r))?E.get(r):g.allowedGlobalAttributes.has(r)?{policyAction:1}:(E=g.globalAttributePolicies.get(r))?E:g.globallyAllowedAttributePrefixes&&[].concat(_.jW(g.globallyAllowedAttributePrefixes)).some(function(B){return r.indexOf(B)===0})?{policyAction:1}:{policyAction:0}};var RPD="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(" "),
ncT=[["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}]])]],sXw="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(" "),
fQZ=[["dir",{policyAction:3,conditions:OU(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:OU(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:OU(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:OU(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],$ow=new zk(new Set(RPD),new Map(ncT),new Set(sXw),new Map(fQZ)),jXm=new zk(new Set(RPD.concat(["BUTTON",
"INPUT"])),new Map(ncT),new Set(OU(function(){return sXw.concat(["class","id","name"])})),new Map(OU(function(){return fQZ.concat([["style",
{policyAction:1}]])})));var At4,bLn,PBn;At4=function(g,r,E,B,w){this.JSC$7377_sanitizerTable=g;this.styleElementSanitizer=r;this.styleAttributeSanitizer=E;this.JSC$7377_resourceUrlPolicy=B;this.JSC$7377_navigationUrlPolicy=w;this.changes=[]};
_.JtT=function(g,r){var E=document.implementation.createHTMLDocument("");g=bLn(g,r,E);E=E.body;E.appendChild(g);E=(new XMLSerializer).serializeToString(E);E=E.slice(E.indexOf(">")+1,E.lastIndexOf("</"));return Ja(E)};
bLn=function(g,r,E){r=a2c(r,E);r=document.createTreeWalker(r,5,function(u){if(u.nodeType===3)u=1;else if(NsS(u))if(u=Xul(u),u===null)u=2;else{var l=g.JSC$7377_sanitizerTable;u=u!=="FORM"&&(l.allowedElements.has(u)||l.elementPolicies.has(u))?1:2}else u=2;return u});
for(var B=r.nextNode(),w=E.createDocumentFragment(),O=w;B!==null;){var M=void 0;if(B.nodeType===3)g.styleElementSanitizer&&O.nodeName==="STYLE"?(B=g.styleElementSanitizer(B.data),M=g.createTextNode(B)):M=g.createTextNode(B.data);else if(NsS(B))M=PBn(g,B,E);else throw Error("da");O.appendChild(M);if(B=r.firstChild())O=M;else for(;!(B=r.nextSibling())&&(B=r.parentNode());)O=O.parentNode}return w};
At4.prototype.createTextNode=function(g){return document.createTextNode(g)};
PBn=function(g,r,E){var B,w=Xul(r);E=E.createElement(w);r=r.attributes;for(var O=_.U(r),M=O.next();!M.done;M=O.next()){var u=M.value;M=u.name;u=u.value;var l=YD6(g.JSC$7377_sanitizerTable,M,w);a:{if(B=l.conditions){B=_.U(B);for(var Q=B.next();!Q.done;Q=B.next()){var z=_.U(Q.value);Q=z.next().value;z=z.next().value;var k=void 0;if((Q=(k=r.getNamedItem(Q))==null?void 0:k.value)&&!z.has(Q)){B=!1;break a}}}B=!0}if(B)switch(l.policyAction){case 1:B$(E,M,u);break;case 2:throw Error();case 3:B$(E,M,u.toLowerCase());
break;case 4:g.styleAttributeSanitizer?(u=g.styleAttributeSanitizer(u),B$(E,M,u)):B$(E,M,u);break;case 5:g.JSC$7377_resourceUrlPolicy?(l={type:2,attributeName:M,elementName:w},u=xOt(u),(u=g.JSC$7377_resourceUrlPolicy(u,l))&&B$(E,M,u.toString())):B$(E,M,u);break;case 6:if(g.JSC$7377_resourceUrlPolicy){l={type:2,attributeName:M,elementName:w};B=[];u=_.U(u.split(","));for(Q=u.next();!Q.done;Q=u.next())z=_.U(Q.value.trim().split(/\s+/,2)),Q=z.next().value,z=z.next().value,B.push({url:Q,descriptor:z});
u={parts:[]};B=_.U(B);for(Q=B.next();!Q.done;Q=B.next())Q=Q.value,z=xOt(Q.url),(z=g.JSC$7377_resourceUrlPolicy(z,l))&&u.parts.push({url:z.toString(),descriptor:Q.descriptor});B$(E,M,I2J(u))}else B$(E,M,u);break;case 7:l=u;if(g.JSC$7377_navigationUrlPolicy){l={type:2,attributeName:M,elementName:w};u=xOt(u);u=g.JSC$7377_navigationUrlPolicy(u,l);if(u===null)break;l=u.toString()}u=l;l=_.zKS(u);l=l!==void 0&&tuQ.indexOf(l.toLowerCase())!==-1?u:"about:invalid#zClosurez";B$(E,M,l)}}return E};
_.tV4=OU(function(){return new At4($ow)});
_.FAw=OU(function(){return new At4(jXm)});var ePz=function(){this.calledBuild=!1;this.JSC$7389_sanitizerTable=$ow},WAD=function(){ePz.apply(this,arguments)};
_.f(WAD,ePz);WAD.prototype.build=function(){if(this.calledBuild)throw Error("sa");this.calledBuild=!0;return new At4(this.JSC$7389_sanitizerTable,void 0,void 0,this.JSC$7389_resourceUrlPolicy,this.JSC$7389_navigationUrlPolicy)};var CBn=/[^#]*/;var Zb=function(g){try{return!!g&&g.location.href!=null&&Fm(g,"foo")}catch(r){return!1}},xon=function(g){var r=KAz;
if(r)for(var E in r)Object.prototype.hasOwnProperty.call(r,E)&&g(r[E],E,r)},aQn=function(){var g=[];
xon(function(r){g.push(r)});
return g},KAz={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"},XJD=_.Gk(function(){return aQn()}),IQI=function(){var g=NlZ("IFRAME"),
r={};
_.mR(XJD(),function(E){g.sandbox&&g.sandbox.supports&&g.sandbox.supports(E)&&(r[E]=!0)});
return r},NlZ=function(g,r){r=r===void 0?document:r;
return r.createElement(String(g).toLowerCase())};var k4;_.bj=function(g,r,E){return Math.min(Math.max(g,r),E)};
k4=function(g,r,E){return g+E*(r-g)};_.JL=function(g,r){this.x=g!==void 0?g:0;this.y=r!==void 0?r:0};
_.S=_.JL.prototype;_.S.clone=function(){return new _.JL(this.x,this.y)};
_.S.equals=function(g){return g instanceof _.JL&&(this==g?!0:this&&g?this.x==g.x&&this.y==g.y:!1)};
_.S.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.S.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.S.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.S.translate=function(g,r){g instanceof _.JL?(this.x+=g.x,this.y+=g.y):(this.x+=Number(g),typeof r==="number"&&(this.y+=r));return this};
_.S.scale=function(g,r){this.x*=g;this.y*=typeof r==="number"?r:g;return this};_.oQ=function(g,r){this.width=g;this.height=r};
_.S=_.oQ.prototype;_.S.clone=function(){return new _.oQ(this.width,this.height)};
_.S.area=function(){return this.width*this.height};
_.S.aspectRatio=function(){return this.width/this.height};
_.S.isEmpty=function(){return!this.area()};
_.S.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.S.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.S.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.S.scale=function(g,r){this.width*=g;this.height*=typeof r==="number"?r:g;return this};var CC=function(g,r){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=g===Y2A&&r||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=mom};
CC.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var ct6=function(g){return g instanceof CC&&g.constructor===CC&&g.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===mom?g.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},mom={},Y2A={};
new CC(Y2A,"");var kY,Yr,pV,iLn,hPT,VVZ,P$,ytZ,doD,vcn,sh,TlD,OwA,SwZ,w6w,Uzn,MUz,qww,uZD,a1V,lID,obn,GDD,DzI,Hg;kY=function(g){return g?new Hg(_.tL(g)):Edt||(Edt=new Hg)};
_.rr=function(g,r){return typeof r==="string"?g.getElementById(r):r};
Yr=function(g,r){return(r||document).getElementsByTagName(String(g))};
_.LA6=function(g){return iLn("yt-formatted-string","paper-input-input",g)};
pV=function(g,r,E,B){g=B||g;return(r=r&&r!="*"?String(r).toUpperCase():"")||E?g.querySelectorAll(r+(E?"."+E:"")):g.getElementsByTagName("*")};
iLn=function(g,r,E){var B=document,w=g&&g!="*"?String(g).toUpperCase():"";return w||r?(E||B).querySelector(w+(r?"."+r:"")):pV(B,g,r,E)[0]||null};
hPT=function(g,r){_.jn.forEach(r,function(E,B){B=="style"?g.style.cssText=E:B=="class"?g.className=E:B=="for"?g.htmlFor=E:VVZ.hasOwnProperty(B)?g.setAttribute(VVZ[B],E):_.wl(B,"aria-")||_.wl(B,"data-")?g.setAttribute(B,E):g[B]=E})};
VVZ={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"};_.GM=function(g){g=(g||window).document;g=g.compatMode=="CSS1Compat"?g.documentElement:g.body;return new _.oQ(g.clientWidth,g.clientHeight)};
_.ZLA=function(g){var r=_.Y4(g);g=g.defaultView;return new _.JL(g.pageXOffset||r.scrollLeft,g.pageYOffset||r.scrollTop)};
_.Y4=function(g){return g.scrollingElement?g.scrollingElement:_.Uz||g.compatMode!="CSS1Compat"?g.body||g.documentElement:g.documentElement};
P$=function(g){return g?g.defaultView:window};
_.Ro=function(g,r,E){return ytZ(document,arguments)};
ytZ=function(g,r){var E=r[1],B=vcn(g,String(r[0]));E&&(typeof E==="string"?B.className=E:Array.isArray(E)?B.className=E.join(" "):hPT(B,E));r.length>2&&doD(g,B,r,2);return B};
doD=function(g,r,E,B){function w(u){u&&r.appendChild(typeof u==="string"?g.createTextNode(u):u)}
for(;B<E.length;B++){var O=E[B];if(!_.vJ(O)||_.gA(O)&&O.nodeType>0)w(O);else{a:{if(O&&typeof O.length=="number"){if(_.gA(O)){var M=typeof O.item=="function"||typeof O.item=="string";break a}if(typeof O==="function"){M=typeof O.item=="function";break a}}M=!1}_.mR(M?_.ZQ(O):O,w)}}};
_.HT=function(g){return vcn(document,g)};
vcn=function(g,r){r=String(r);g.contentType==="application/xhtml+xml"&&(r=r.toLowerCase());return g.createElement(r)};
_.nV=function(){return document.createTextNode("\n")};
sh=function(g){if(g.nodeType!=1)return!1;switch(g.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};
TlD=function(g,r){doD(_.tL(g),g,arguments,1)};
_.fV=function(g){for(var r;r=g.firstChild;)g.removeChild(r)};
_.$4=function(g,r){r.parentNode&&r.parentNode.insertBefore(g,r)};
_.j5=function(g,r){r.parentNode&&r.parentNode.insertBefore(g,r.nextSibling)};
_.p5=function(g){return g&&g.parentNode?g.parentNode.removeChild(g):null};
_.gbU=function(g,r){var E=r.parentNode;E&&E.replaceChild(g,r)};
_.rD6=function(g){var r,E=g.parentNode;if(E&&E.nodeType!=11)if(g.removeNode)g.removeNode(!1);else{for(;r=g.firstChild;)E.insertBefore(r,g);_.p5(g)}};
_.Aq=function(g){return g.children!=void 0?g.children:Array.prototype.filter.call(g.childNodes,function(r){return r.nodeType==1})};
_.BAU=function(g){return g.nextElementSibling!==void 0?g.nextElementSibling:_.Ebb(g.nextSibling,!0)};
_.Ebb=function(g,r){for(;g&&g.nodeType!=1;)g=r?g.nextSibling:g.previousSibling;return g};
_.y2=function(g){return _.gA(g)&&g.nodeType==1};
_.Nd=function(g,r){if(!g||!r)return!1;if(g.contains&&r.nodeType==1)return g==r||g.contains(r);if(typeof g.compareDocumentPosition!="undefined")return g==r||!!(g.compareDocumentPosition(r)&16);for(;r&&g!=r;)r=r.parentNode;return r==g};
OwA=function(g,r){if(g==r)return 0;if(g.compareDocumentPosition)return g.compareDocumentPosition(r)&2?1:-1;if("sourceIndex"in g||g.parentNode&&"sourceIndex"in g.parentNode){var E=g.nodeType==1,B=r.nodeType==1;if(E&&B)return g.sourceIndex-r.sourceIndex;var w=g.parentNode,O=r.parentNode;return w==O?w6w(g,r):!E&&_.Nd(w,r)?-1*SwZ(g,r):!B&&_.Nd(O,g)?SwZ(r,g):(E?g.sourceIndex:w.sourceIndex)-(B?r.sourceIndex:O.sourceIndex)}B=_.tL(g);E=B.createRange();E.selectNode(g);E.collapse(!0);g=B.createRange();g.selectNode(r);
g.collapse(!0);return E.compareBoundaryPoints(_.ED.Range.START_TO_END,g)};
SwZ=function(g,r){var E=g.parentNode;if(E==r)return-1;for(;r.parentNode!=E;)r=r.parentNode;return w6w(r,g)};
w6w=function(g,r){for(;r=r.previousSibling;)if(r==g)return-1;return 1};
Uzn=function(g){var r,E=arguments.length;if(!E)return null;if(E==1)return arguments[0];var B=[],w=Infinity;for(r=0;r<E;r++){for(var O=[],M=arguments[r];M;)O.unshift(M),M=M.parentNode;B.push(O);w=Math.min(w,O.length)}O=null;for(r=0;r<w;r++){M=B[0][r];for(var u=1;u<E;u++)if(M!=B[u][r])return O;O=M}return O};
_.tL=function(g){return g.nodeType==9?g:g.ownerDocument||g.document};
MUz=function(g){return g.contentDocument||g.contentWindow.document};
_.b6=function(g,r){if("textContent"in g)g.textContent=r;else if(g.nodeType==3)g.data=String(r);else if(g.firstChild&&g.firstChild.nodeType==3){for(;g.lastChild!=g.firstChild;)g.removeChild(g.lastChild);g.firstChild.data=String(r)}else _.fV(g),g.appendChild(_.tL(g).createTextNode(String(r)))};
qww={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};uZD={IMG:" ",BR:"\n"};a1V=function(g){var r;g.tagName=="A"&&g.hasAttribute("href")||g.tagName=="INPUT"||g.tagName=="TEXTAREA"||g.tagName=="SELECT"||g.tagName=="BUTTON"?r=!g.disabled&&(!g.hasAttribute("tabindex")||lID(g)):r=g.hasAttribute("tabindex")&&lID(g);return r};
lID=function(g){g=g.tabIndex;return typeof g==="number"&&g>=0&&g<32768};
obn=function(g){var r=[];DzI(g,r,!0);g=r.join("");g=g.replace(/ \xAD /g," ").replace(/\xAD/g,"");g=g.replace(/\u200B/g,"");g=g.replace(/ +/g," ");g!=" "&&(g=g.replace(/^\s*/,""));return g};
GDD=function(g){var r=[];DzI(g,r,!1);return r.join("")};
DzI=function(g,r,E){if(!(g.nodeName in qww))if(g.nodeType==3)E?r.push(String(g.nodeValue).replace(/(\r\n|\r|\n)/g,"")):r.push(g.nodeValue);else if(g.nodeName in uZD)r.push(uZD[g.nodeName]);else for(g=g.firstChild;g;)DzI(g,r,E),g=g.nextSibling};
_.Qm4=function(g,r,E){if(!r&&!E)return null;var B=r?String(r).toUpperCase():null;return _.CN(g,function(w){return(!B||w.nodeName==B)&&(!E||typeof w.className==="string"&&_.mA(w.className.split(/\s+/),E))},!0)};
_.CN=function(g,r,E){g&&!E&&(g=g.parentNode);for(E=0;g;){if(r(g))return g;g=g.parentNode;E++}return null};
Hg=function(g){this.JSC$7414_document_=g||_.ED.document||document};
_.S=Hg.prototype;_.S.getElement=function(g){return _.rr(this.JSC$7414_document_,g)};
_.S.$=Hg.prototype.getElement;_.S.getElementsByTagName=function(g,r){return(r||this.JSC$7414_document_).getElementsByTagName(String(g))};
_.S.getElementsByTagNameAndClass=function(g,r,E){return pV(this.JSC$7414_document_,g,r,E)};
_.S.$$=Hg.prototype.getElementsByTagNameAndClass;_.S.setProperties=hPT;_.S.JSC$7416_createDom=function(g,r,E){return ytZ(this.JSC$7414_document_,arguments)};
_.S.createElement=function(g){return vcn(this.JSC$7414_document_,g)};
_.S.createTextNode=function(g){return this.JSC$7414_document_.createTextNode(String(g))};
_.S.getWindow=function(){return this.JSC$7414_document_.defaultView};
var zM=function(g){return _.ZLA(g.JSC$7414_document_)};
_.S=Hg.prototype;_.S.appendChild=function(g,r){g.appendChild(r)};
_.S.append=TlD;_.S.canHaveChildren=sh;_.S.removeNode=_.p5;_.S.getChildren=_.Aq;_.S.contains=_.Nd;_.S=OY.prototype;_.S.getWidth=function(){return this.right-this.left};
_.S.getHeight=function(){return this.bottom-this.top};
_.S.clone=function(){return new OY(this.top,this.right,this.bottom,this.left)};
_.S.contains=function(g){return this&&g?g instanceof OY?g.left>=this.left&&g.right<=this.right&&g.top>=this.top&&g.bottom<=this.bottom:g.x>=this.left&&g.x<=this.right&&g.y>=this.top&&g.y<=this.bottom:!1};
_.S.expand=function(g,r,E,B){_.gA(g)?(this.top-=g.top,this.right+=g.right,this.bottom+=g.bottom,this.left-=g.left):(this.top-=g,this.right+=Number(r),this.bottom+=Number(E),this.left-=Number(B));return this};
_.S.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
_.S.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
_.S.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
_.S.translate=function(g,r){g instanceof _.JL?(this.left+=g.x,this.right+=g.x,this.top+=g.y,this.bottom+=g.y):(this.left+=g,this.right+=g,typeof r==="number"&&(this.top+=r,this.bottom+=r));return this};
_.S.scale=function(g,r){r=typeof r==="number"?r:g;this.left*=g;this.right*=g;this.top*=r;this.bottom*=r;return this};var Jq=function(g,r,E,B){this.left=g;this.top=r;this.width=E;this.height=B};
_.S=Jq.prototype;_.S.clone=function(){return new Jq(this.left,this.top,this.width,this.height)};
_.S.boundingRect=function(g){var r=Math.max(this.left+this.width,g.left+g.width),E=Math.max(this.top+this.height,g.top+g.height);this.left=Math.min(this.left,g.left);this.top=Math.min(this.top,g.top);this.width=r-this.left;this.height=E-this.top};
_.S.contains=function(g){return g instanceof _.JL?g.x>=this.left&&g.x<=this.left+this.width&&g.y>=this.top&&g.y<=this.top+this.height:this.left<=g.left&&this.left+this.width>=g.left+g.width&&this.top<=g.top&&this.top+this.height>=g.top+g.height};
_.S.distance=function(g){var r=g.x<this.left?this.left-g.x:Math.max(g.x-(this.left+this.width),0);g=g.y<this.top?this.top-g.y:Math.max(g.y-(this.top+this.height),0);return Math.sqrt(r*r+g*g)};
_.S.getSize=function(){return new _.oQ(this.width,this.height)};
_.S.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.S.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.S.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.S.translate=function(g,r){g instanceof _.JL?(this.left+=g.x,this.top+=g.y):(this.left+=g,typeof r==="number"&&(this.top+=r));return this};
_.S.scale=function(g,r){r=typeof r==="number"?r:g;this.left*=g;this.width*=g;this.top*=r;this.height*=r;return this};var kDz,Fx,lbA,tq,R4z,Ywz,nbn,taX,smn,$zb;_.Pg=function(g,r,E){if(typeof r==="string")(r=_.z4w(g,r))&&(g.style[r]=E);else for(var B in r){E=g;var w=r[B],O=_.z4w(E,B);O&&(E.style[O]=w)}};
kDz={};_.z4w=function(g,r){var E=kDz[r];if(!E){var B=_.Qk(r);E=B;g.style[B]===void 0&&(B=(_.Uz?"Webkit":_.Oz?"Moz":null)+NOc(B),g.style[B]!==void 0&&(E=B));kDz[r]=E}return E};
_.Hm=function(g,r){var E=_.tL(g);return E.defaultView&&E.defaultView.getComputedStyle&&(g=E.defaultView.getComputedStyle(g,null))?g[r]||g.getPropertyValue(r)||"":""};
_.Xr=function(g,r){return _.Hm(g,r)||(g.currentStyle?g.currentStyle[r]:null)||g.style&&g.style[r]};
_.HwD=function(g){return _.Xr(g,"position")};
Fx=function(g,r,E){if(r instanceof _.JL){var B=r.x;r=r.y}else B=r,r=E;g.style.left=tq(B,!1);g.style.top=tq(r,!1)};
lbA=function(g){try{return g.getBoundingClientRect()}catch(r){return{left:0,top:0,right:0,bottom:0}}};
_.en=function(g){var r=_.tL(g),E=new _.JL(0,0);if(g==(r?_.tL(r):document).documentElement)return E;g=lbA(g);r=zM(kY(r));E.x=g.left+r.x;E.y=g.top+r.y;return E};
_.p64=function(g,r,E){if(r instanceof _.oQ)E=r.height,r=r.width;else if(E==void 0)throw Error("ta");g.style.width=tq(r,!0);g.style.height=tq(E,!0)};
tq=function(g,r){typeof g=="number"&&(g=(r?Math.round(g):g)+"px");return g};
R4z=function(g){return Ywz(g)};
Ywz=function(g){var r=nbn;if(_.Xr(g,"display")!="none")return r(g);var E=g.style,B=E.display,w=E.visibility,O=E.position;E.visibility="hidden";E.position="absolute";E.display="inline";g=r(g);E.display=B;E.position=O;E.visibility=w;return g};
nbn=function(g){var r=g.offsetWidth,E=g.offsetHeight,B=_.Uz&&!r&&!E;return(r===void 0||B)&&g.getBoundingClientRect?(g=lbA(g),new _.oQ(g.right-g.left,g.bottom-g.top)):new _.oQ(r,E)};
taX=function(g){var r=_.en(g);g=Ywz(g);return new Jq(r.x,r.y,g.width,g.height)};
smn=function(g,r){g=g.style;"opacity"in g?g.opacity=r:"MozOpacity"in g?g.MozOpacity=r:"filter"in g&&(g.filter=r===""?"":"alpha(opacity="+Number(r)*100+")")};
_.Vr=function(g,r){g.style.display=r?"":"none"};
_.fIw=function(g){return"rtl"==_.Xr(g,"direction")};
$zb=function(g){var r=_.Hm(g,"marginLeft"),E=_.Hm(g,"marginRight"),B=_.Hm(g,"marginTop");g=_.Hm(g,"marginBottom");return new OY(parseFloat(B),parseFloat(E),parseFloat(g),parseFloat(r))};
_.jmZ=function(g){var r=_.Hm(g,"borderLeftWidth"),E=_.Hm(g,"borderRightWidth"),B=_.Hm(g,"borderTopWidth");g=_.Hm(g,"borderBottomWidth");return new OY(parseFloat(B),parseFloat(E),parseFloat(g),parseFloat(r))};var e5=function(g){this.context=g};
e5.prototype.isSupported=function(g){return(g==null?0:g.attributionEnabled)||(g==null?void 0:g.beaconMethod)==="POST"||(g==null?0:g.customHeaders)||(g==null?0:g.customBody)||(g==null?0:g.keepAlive)?!1:!l6(this.context)};
e5.prototype.ping=function(){var g=this;return Hb(_.fI.apply(0,arguments).map(function(r){try{var E=g.context.global,B=!1;B=B===void 0?!1:B;E.google_image_requests||(E.google_image_requests=[]);var w=NlZ("IMG",E.document);B&&(w.attributionSrc="");w.src=r;E.google_image_requests.push(w);return!0}catch(O){return!1}}).every(function(r){return r}))};
e5.prototype.pingWithHeadersAndBody=function(g,r,E){this.ping.apply(this,_.jW(_.fI.apply(3,arguments)))};var ADm=function(g){this.context=g};
ADm.prototype.isSupported=function(g){return bwm&&!l6(this.context)&&caL(this.context)!==void 0&&!(g==null?0:g.attributionEnabled)&&(g==null?void 0:g.beaconMethod)!=="POST"&&!(g==null?0:g.customHeaders)&&!(g==null?0:g.customBody)};
ADm.prototype.makeBeacon=function(g,r){if(!this.isSupported(r))throw new Uh;return new Wg(this.context,g)};
var bwm=!1,Wg=function(g,r){this.context=g;this.JSC$7435_urlWithoutToken=r;g=caL(this.context);if(g===void 0)throw Error();this.wrappedBeacon=new g(JDU(this),{})},JDU=function(g){g=g.JSC$7435_urlWithoutToken;
return(g.slice(-1)[0]==="&"?g:g+"&")+"pbapi=1"};
Wg.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
Wg.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
Wg.prototype.setHeader=function(){};
_.hx.Object.defineProperties(Wg.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7435_urlWithoutToken},
set:function(g){this.JSC$7435_urlWithoutToken=g;this.wrappedBeacon.setURL(JDU(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(g){if(g!=="GET")throw new Uh;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var PnI=function(g){this.context=g};
PnI.prototype.isSupported=function(g){if((g==null?0:g.attributionEnabled)||(g==null?void 0:g.beaconMethod)==="GET"||(g==null?0:g.customHeaders)||(g==null?0:g.customBody)||(g==null?0:g.keepAlive))return!1;var r;return!l6(this.context)&&((r=this.context.global.navigator)==null?void 0:r.sendBeacon)!==void 0};
PnI.prototype.ping=function(){var g=this;return Hb(_.fI.apply(0,arguments).map(function(r){var E;return(E=g.context.global.navigator)==null?void 0:E.sendBeacon(r)}).every(function(r){return r}))};
PnI.prototype.pingWithHeadersAndBody=function(g,r,E){this.ping.apply(this,_.jW(_.fI.apply(3,arguments)))};var lO=function(g){this.value=g},LN=function(g,r){return Hb(g.value).pipe(q0(r))},v$=new lO(!1),YRD=new lO(!0);var KN=function(g){this.value=g;this.releasedSubject=new UY};
KN.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.hx.Object.defineProperties(KN.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7448_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var BhY=["FRAME","IMG","IFRAME"],vUQ=/^[01](px)?$/,EfD=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},r_l=function(){var g=new EfD;
g.crossDomainLoadedDefault=!0;g.pendingImagesBlockLoad=!0;return g};var tUZ=function(g,r){var E=uzB(g);if(E)if(E.onCreativeLoad)E.onCreativeLoad(r);else{var B=r?[r]:[],w=function(O){for(var M=0;M<B.length;++M)try{B[M](1,O)}catch(u){}B={push:function(u){u(1,O)}}};
E.onCreativeLoad=function(O){B.push(O)};
E.setAttribute("data-creative-load-listener","");E.addEventListener("creativeLoad",function(O){w(O.detail)});
_.ED.addEventListener("message",function(O){qml(E,w,O)})}};var CV=function(g,r){var E=this;this.global=g;this.parentContext=r;this.JSC$7459_onVisibilityChange=this.document?eW(Hb(!0),t_(this.document,"visibilitychange")).pipe(aF(this.parentContext.performanceMonitor,748),$f(function(){return E.getVisibilityState()}),iY()):Hb("visible");
this.document?t_(this.document,"DOMContentLoaded").pipe(aF(this.parentContext.performanceMonitor,739),mr(1)):Hb(ZIJ("DOMContentLoaded"))},pTY=function(g){return g.document!==null&&g.document.visibilityState!==void 0};
CV.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
CV.prototype.querySelector=function(g){return this.document?this.document.querySelector(g):null};
CV.prototype.querySelectorAll=function(g){return this.document?_.ZQ(this.document.querySelectorAll(g)):[]};
CV.prototype.elementFromPoint=function(g,r){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;g=this.document.elementFromPoint(g,r);return g===null?null:new KN(g)};
var MLS=function(g,r,E){E=E===void 0?!1:E;if(r.ref===void 0||!g.document)return Hb(r).pipe(aF(g.parentContext.performanceMonitor,749));var B=new ZD(1),w=function(){B.next(r)};
E||tUZ(r.ref,w);wbA(r.ref,w);return B.pipe(aF(g.parentContext.performanceMonitor,749),mr(1))};
_.hx.Object.defineProperties(CV.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return Fm(this.global,"document")?this.global.document||null:null}}});var lDB=_.me(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),DNQ=_.me(["./reach_worklet.js"]),ofA=_.me(["./reach_worklet.js"]),Fn6=_.me(["./reach_worklet.html"]),e4w=_.me(["./reach_worklet.js"]),Wnw=_.me(["./reach_worklet.js"]);_.wF(Fn6);_.wF(e4w);_.wF(Wnw);var N0={left:0,top:0,width:0,height:0};var Cnz,Knw,xzA,aI6,yg,NAb,IID,mzD,isJ,LaB,Lnz,VUn;Cnz=function(g,r,E,B,w,O,M){var u="";g&&(u+=g+":");E&&(u+="//",r&&(u+=r+"@"),u+=E,B&&(u+=":"+B));w&&(u+=w);O&&(u+="?"+O);M&&(u+="#"+M);return u};
Knw=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.hk=function(g){return g.match(Knw)};
_.nZ=function(g,r){return g?r?decodeURI(g):decodeURIComponent(g):g};
xzA=function(g){g=_.hk(g)[1]||null;!g&&_.ED.self&&_.ED.self.location&&(g=_.ED.self.location.protocol.slice(0,-1));return g?g.toLowerCase():""};
_.Zn=function(g){return _.nZ(_.hk(g)[3]||null,!0)};
_.lc=function(g){return _.nZ(_.hk(g)[5]||null,!0)};
_.QSB=function(g){var r=g.indexOf("#");return r<0?null:g.slice(r+1)};
aI6=function(g){g=_.hk(g);return Cnz(g[1],g[2],g[3],g[4])};
_.X64=function(g){g=_.hk(g);return Cnz(g[1],null,g[3],g[4])};
_.Xp=function(g){g=_.hk(g);return Cnz(null,null,null,null,g[5],g[6],g[7])};
_.ZY=function(g){var r=g.indexOf("#");return r<0?g:g.slice(0,r)};
yg=function(g,r){g=_.hk(g);r=_.hk(r);return g[3]==r[3]&&g[1]==r[1]&&g[4]==r[4]};
NAb=function(g,r){if(g){g=g.split("&");for(var E=0;E<g.length;E++){var B=g[E].indexOf("="),w=null;if(B>=0){var O=g[E].substring(0,B);w=g[E].substring(B+1)}else O=g[E];r(O,w?dW(w):"")}}};
IID=function(g){var r=g.indexOf("#");r<0&&(r=g.length);var E=g.indexOf("?");if(E<0||E>r){E=r;var B=""}else B=g.substring(E+1,r);return[g.slice(0,E),B,g.slice(r)]};
mzD=function(g,r){return r?g?g+"&"+r:r:g};
_.cDw=function(g,r){if(!r)return g;g=IID(g);g[1]=mzD(g[1],r);return g[0]+(g[1]?"?"+g[1]:"")+g[2]};
_.iwn=function(g,r,E){if(Array.isArray(r))for(var B=0;B<r.length;B++)_.iwn(g,String(r[B]),E);else r!=null&&E.push(g+(r===""?"":"="+_.Ia(r)))};
_.oj=function(g){var r=[],E;for(E in g)_.iwn(E,g[E],r);return r.join("&")};
_.Vg=function(g,r){r=_.oj(r);return _.cDw(g,r)};
_.KV=function(g,r,E){E=E!=null?"="+_.Ia(E):"";return _.cDw(g,r+E)};
isJ=function(g,r,E,B){for(var w=E.length;(r=g.indexOf(E,r))>=0&&r<B;){var O=g.charCodeAt(r-1);if(O==38||O==63)if(O=g.charCodeAt(r+w),!O||O==61||O==38||O==35)return r;r+=w+1}return-1};
LaB=/#|$/;_.IO=function(g,r){var E=g.search(LaB),B=isJ(g,0,r,E);if(B<0)return null;var w=g.indexOf("&",B);if(w<0||w>E)w=E;B+=r.length+1;return dW(g.slice(B,w!==-1?w:0))};
Lnz=/[?&]($|#)/;_.vE=function(g,r){for(var E=g.search(LaB),B=0,w,O=[];(w=isJ(g,B,r,E))>=0;)O.push(g.substring(B,w)),B=Math.min(g.indexOf("&",w)+1||E,E);O.push(g.slice(B));return O.join("").replace(Lnz,"$1")};
_.KC=function(g,r,E){return _.KV(_.vE(g,r),r,E)};
VUn=function(g){var r=IID(window.location.href),E=r[1],B=[];E&&E.split("&").forEach(function(w){var O=w.indexOf("=");O=O>=0?w.slice(0,O):w;g.hasOwnProperty(O)||B.push(w)});
r[1]=mzD(B.join("&"),_.oj(g));return r[0]+(r[1]?"?"+r[1]:"")+r[2]};var eTY=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(eTY,_.xu);eTY.prototype.getVersion=function(){return _.jI(this,2)};var FrP=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(FrP,_.xu);var jFP=function(g,r){return _.H$(g,2,r)},tWD=function(g,r){return _.H$(g,3,r)};
FrP.prototype.getModel=function(){return _.jI(this,4)};
var b$X=function(g,r){return _.H$(g,4,r)},$Nl=function(g,r){return _.H$(g,5,r)},PYV=function(g,r){return _.H$(g,9,r)},fDD=function(g,r){return Y2(g,10,r)},sFP=function(g,r){return _.qd(g,11,r)},A_l=function(g,r){return _.H$(g,1,r)},J_c=function(g,r){return _.qd(g,7,r)};var RTY="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var yw=function(g,r,E,B){g=g===void 0?window:g;r=r===void 0?null:r;E=E===void 0?new UmB:E;B=B===void 0?G2Q():B;Ec4.call(this);var w=this;this.global=g;this.debugChannel=r;this.performanceMonitor=E;this.onPageHide=Pb(function(){return t_(w.global,"pagehide")}).pipe(aF(this.performanceMonitor,941));
this.onLoad=Pb(function(){return t_(w.global,"load")}).pipe(aF(this.performanceMonitor,738),mr(1));
this.onResize=Pb(function(){return t_(w.global,"resize")}).pipe(aF(this.performanceMonitor,741));
this.onMessage=Pb(function(){return t_(w.global,"message")}).pipe(aF(this.performanceMonitor,740));
this.document=new CV(this.global,this);this.timeProvider=new MVZ(new uYn(this.intrinsicFunctionNamespace,this.performanceMonitor),new qDn(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new SDn(new Dob(this),new ADm(this),new Mf(this,new QXn(this)),new Mf(this,new PnI(this)),new Mf(this,new e5(this)))};
_.f(yw,Ec4);var l6=function(g){var r=g.global;return!!g.global.HTMLFencedFrameElement&&!!r.fence&&typeof r.fence.reportEvent==="function"};
_.S=yw.prototype;_.S.reportFencedFrameEvent=function(g){l6(this)&&this.global.fence.reportEvent(g)};
_.S.getOnBackgrounded=function(){return this.onPageHide.pipe(aF(this.performanceMonitor,942),q0(this.queue),$f(function(){}))};
_.S.postMessage=function(g,r,E){E=E===void 0?[]:E;this.global.postMessage(g,r,E)};
_.S.getWidth=function(){return Zb(this.global)?this.global.width:0};
_.S.getHeight=function(){return Zb(this.global)?this.global.height:0};
_.S.isMobile=function(){return kST()||HLw()};
var xY=function(g,r){try{var E=H$Y(r,g.global,g.isMobile());return{left:E.left,top:E.top,width:E.getWidth(),height:E.getHeight()}}catch(B){return N0}};
yw.prototype.validate=function(){var g=this.beaconFactory.isSupported()||l6(this);return this.global&&this.timeProvider.available()&&g};
var LgD=function(g){return(g=CYt(g.global))?Om(g):null};
_.hx.Object.defineProperties(yw.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(g){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!Zb(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}}});_.h4T=!_.SI&&!_.FY();var RFP=function(g){return g};var sOP=function(g){return g.pipe(Wb(function(r){var E=r.endOfSessionReason;var B;return((B=r.viewable)==null?void 0:B.extrapolateToNow().value)||E!=void 0}),mr(1),NN())};var IDY=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},mNl=function(g){var r=g.sequenceNumber.toString(10).padStart(2,"0");
r=""+g.startTime+r;g.sequenceNumber<99&&g.sequenceNumber++;return r};var H5B=rh(gF(function(g){return g.endOfSessionReason===void 0}),$f(function(g){return Object.assign({},g,{timestamps:RQ(g)})}),Wb(function(g){var r=g.viewable;
g=g.timestamps;var E;return(E=r==null?void 0:r.extrapolateUsingTimestampMap(g).value)!=null?E:!1}),$f(function(g){var r=g.beaconFactory;
var E=g.timestampedExposureHistory;var B=g.timeOnScreen;var w=g.binaryContext;g=g.timestamps;if(r===void 0||E===void 0||B===void 0||w===void 0)return!1;if(B.extrapolateUsingTimestampMap(g).value.every(function(O){return O>=0}))return!0;
E=E.map(function(O){return O.timestamp+":"+O.value}).join(",");
B=nN({bin:w,tos:B},g);r.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+B+("&eh="+E)).sendNow();return!0}),gF(function(g){return!g}),NN());var i$A=function(g){return{id:g.pingId,mcvt:g.maxConsecutiveViewTime,p:g.creativePosition,asp:g.adSpeedPosition,tm:g.totalMeasurementTime,tu:g.totalUnviewedTime,mtos:g.maxTimeOnScreen,tos:g.timeOnScreen,v:g.binaryVersion,bin:g.binaryContext,avms:g.measurementStrategy,bs:g.browserSize,mc:g.maximumExposure,"if":g.crossDomainIframeState,vu:g.delayedImpressionJsState,app:g.inApp,mse:g.mraidError,mtop:g.mraidSituation,itpl:g.injectedTemplateId,adk:g.adKey,exk:g.awbidKey,rs:g.requestSource,la:g.isLargeAd,
cr:g.isContentRecommendationAd,uach:g.userAgentClientHints,vs:g.viewState,r:g.reasonCode,pay:g.hasCpmavUrl,co:g.clientPingOrderCounter,rst:g.adRenderStartTime,rpt:g.adRenderPeriodTime,isd:g.initialScrollDepth,lsd:g.loadedScrollDepth,context:g.errorContext,msg:g.errorMessage,stack:g.errorStack,name:g.errorName,ec:g.hasElementChanged,sfr:g.strategyFailureReasons,met:g.creativeSearchResult,wmsd:g.webMeasurementStartDiagnostic,pv:g.pageVisible,epv:g.eosPageVisible,pbe:g.inStatefulBeaconExperiment,fle:g.inFetchLaterBeaconExperiment,
vae:g.inViewableAttributionExperiment,spb:g.supportsPendingBeacon,sfl:g.supportsFetchLater,ffslot:g.isFencedFrameSlotTurtlex,reach:g.sharedStorageReachMode,io2:g.v2VisibilityBitVector,rxdbg:g.rxDebugger,omida:g.omidAppId,omidp:g.omidPartner,omidpv:g.omidPartnerVersion,omidor:g.omidOcclusionReasons,omidv:g.omidVersion,omids:g.omidSessionType,omidam:g.omidAccessMode,omidct:g.omidCreativeType,omidia:g.omidInApp,omiddc:g.omidDeviceCategory,omidlat:g.omidLastActivity,omiddit:g.omidDeviceIdleTime,qid:g.errorEscapedQueryId}};var nrX=function(g){var r=[];return g.pipe($f(function(E){var B=E.beaconFactory,w=E.fetchBeaconFactory,O=E.timeOnScreen,M=E.timeOnScreenUrlPrefixes,u=E.payloadMapper,l=E.timeOnScreenPingId,Q=E.timeOnScreenReason,z=E.urlSerializer,k=E.viewable,H=E.hasImpressionFired,R=E.inStatefulBeaconExperiment,A=E.supportsPendingBeacon,J=E.supportsFetchLater,e=E.turtlexReportEventData;if(!E.geometryMeasurable||!H||E.maxTimeOnScreen===void 0||O===void 0||M===void 0||u===void 0||l===void 0||z===void 0||B===void 0)return!1;
if(E.isTurtlex){if(Q===void 0)return!1;M=E.reportFencedFrameEvent;if(!M)return!1;M({eventType:"active-view-time-on-screen",eventData:e!=null?e:"",destination:["buyer"]});return!0}if(!(R||J||Q))return!1;e=RQ(E);var C;k=(C=k==null?void 0:k.extrapolateUsingTimestampMap(e).value)!=null?C:!1;C=z(Object.assign({},E,{pingId:l,viewState:k?4:3,reasonCode:Q!=null?Q:"u",payloadMapper:u,urlPrefixes:M}),e);if(R){for(;r.length>M.length;)E=void 0,(E=r.shift())==null||E.deactivate();C.forEach(function(Z,c){c>=r.length?
r.push(B.makeBeacon(Z)):r[c].url=Z});
return A&&w&&Q!==void 0?(C.forEach(function(Z){w.makeBeacon(Z).sendNow()}),!0):Q!==void 0}if(A&&w&&Q!==void 0)return C.forEach(function(Z){w.makeBeacon(Z).sendNow()}),!0;
if(J&&w){for(;r.length>M.length;)A=void 0,(A=r.shift())==null||A.deactivate();var X=z(Object.assign({},E,{pingId:l,viewState:k?4:3,reasonCode:Q!=null?Q:"u",payloadMapper:u,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),e)[0];C.forEach(function(Z,c){c>=r.length?r.push(B.makeBeacon(X,{endOfSession:!0})):r[c].url=X});
return Q!==void 0?(C.forEach(function(Z){w.makeBeacon(Z).sendNow()}),!0):Q!==void 0}return Q!==void 0?(C.forEach(function(Z){B.makeBeacon(Z).sendNow()}),!0):!1}),gF(function(E){return!E}),NN())};var fqD=rh(Wb(function(g){return g.immediateUrlPrefixes!==void 0&&g.payloadMapper!==void 0&&g.urlSerializer!==void 0&&g.inferredPingId!==void 0&&g.beaconFactory!==void 0}),Wb(function(g){return Tht(g)!==null}),vfL(function(g){return g.activeViewUnmeasurableEvent},function(g){return g.emit}),$f(function(g){if(g.isTurtlex){var r=g.reportFencedFrameEvent;
if(r){var E;r({eventType:"active-view-unmeasurable",eventData:(E=g.turtlexReportEventData)!=null?E:"",destination:["buyer"]})}}else{E=void 0;var B=Tht(g);if(B==="x"){var w,O=(w=g.geometricMeasurementErrors)!=null?w:g.contextValidationErrors;O&&(r=O.stack,E=O.message)}g.urlSerializer(Object.assign({},g,{urlPrefixes:g.immediateUrlPrefixes,payloadMapper:g.payloadMapper,pingId:g.inferredPingId,viewState:2,reasonCode:B,errorMessage:E,errorStack:r}),RQ(g)).forEach(function(M){g.beaconFactory.makeBeacon(M).sendNow()})}}),
mr(1),NN());var gYJ=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var kPl=rh(Wb(function(g){return g.payloadMapper!==void 0&&g.immediateUrlPrefixes!==void 0&&g.urlSerializer!==void 0&&g.inferredPingId!==void 0&&g.beaconFactory!==void 0}),$f(function(g){return Object.assign({},g,{timestamps:RQ(g)})}),Wb(function(g){var r=g.viewable;
var E=g.hasImpressionFired;g=g.timestamps;var B;return!!E&&((B=r==null?void 0:r.extrapolateUsingTimestampMap(g).value)!=null?B:!1)}),vfL(function(g){return g.activeViewViewableEvent},function(g){return g.emit}),$f(function(g){var r=g.beaconFactory,E=g.turtlexReportEventData;
if(g.isTurtlex){var B=g.reportFencedFrameEvent;if(!B)return!1;B({eventType:"active-view-viewable",eventData:E!=null?E:"",destination:["buyer"]});return!0}E=g.urlSerializer(Object.assign({},g,{urlPrefixes:g.immediateUrlPrefixes,payloadMapper:g.payloadMapper,pingId:g.inferredPingId,viewState:4,reasonCode:"v"}),g.timestamps);(B=g.cpmavUrls)&&B.length>0&&g.viewUrlSerializer&&g.viewUrlSerializer(B,g).forEach(function(w){r.makeBeacon(w).sendNow()});
(B=g.viewableRelayUrls)&&B.length>0&&g.viewUrlSerializer&&g.viewUrlSerializer(B,g).forEach(function(w){r.makeBeacon(w).sendNow()});
E.forEach(function(w){r.makeBeacon(w,{attributionEnabled:g.isViewableAttributionEnabled}).sendNow()});
return!0}),gF(function(g){return!g}),NN());var m0P=$f(function(g){return[g.value.topWindowViewportExternalGeometry.width,g.value.topWindowViewportExternalGeometry.height]});var aQ=function(g,r){this.callback=g;this.options=r;this.intersectionObserverV2=this.intersectionObserverV1=null},fbD=function(g,r){r?g.intersectionObserverV2||(r=Object.assign({},g.options,{delay:100,
trackVisibility:!0}),g.intersectionObserverV2=new IntersectionObserver(g.callback,r)):g.intersectionObserverV1||(g.intersectionObserverV1=new IntersectionObserver(g.callback,g.options))},ZwD=function(g,r){g=r?g.intersectionObserverV2:g.intersectionObserverV1;
if(!g)throw new BlI;return g};
aQ.prototype.observe=function(g,r){ZwD(this,g).observe(r)};
aQ.prototype.unobserve=function(g,r){ZwD(this,g).unobserve(r)};
aQ.prototype.disconnect=function(g){ZwD(this,g).disconnect()};
aQ.prototype.takeRecords=function(g){return ZwD(this,g).takeRecords()};var W$={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:N0,topWindowViewportExternalGeometry:N0,measurementRequests:new UY,elementGeometrySourceName:"ns",elementGeometry:N0,intersectionGeometry:N0,viewportLocalAppOffset:{x:0,y:0}};var tnl=IQ(rh($f(function(g){var r;return(r=g.exposureOverride)!=null?r:jQS(g)}),$f(function(g){return isFinite(g)?g:0}))),abA=IQ(rh($f(function(g){var r;
return(r=g.exposureOverride)!=null?r:jQS(g)}),$f(function(g){return isFinite(g)?g:-1})));var x4=function(g,r){this.a=g;this.b=r;if(g.clock.timeline!==r.clock.timeline)throw Error();};
x4.prototype.equivalentTo=function(g){return g instanceof x4?this.a.equivalentTo(g.a)&&this.b.equivalentTo(g.b):!1};
x4.prototype.extrapolateToTime=function(g){var r=this.a.extrapolateToTime(g).value,E=this.b.extrapolateToTime(g).value;return{timestamp:g,value:[r,E]}};
_.hx.Object.defineProperties(x4.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 g=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),r=this.a.lastMeasurement.timestamp.equals(g)?this.a.lastMeasurement.value:this.a.extrapolateToTime(g).value,E=this.b.lastMeasurement.timestamp.equals(g)?this.b.lastMeasurement.value:this.b.extrapolateToTime(g).value;return{timestamp:g,value:[r,E]}}}});var ao=function(g,r){this.input=g;this.mapFunction=r;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
ao.prototype.equivalentTo=function(g){return g instanceof ao?this.input.equivalentTo(g.input)&&this.mapFunction===g.mapFunction:!1};
ao.prototype.extrapolateToTime=function(g){g=this.input.extrapolateToTime(g);return{timestamp:g.timestamp,value:this.mapFunction(g.value)}};
_.hx.Object.defineProperties(ao.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var Xx=function(){};
Xx.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
Xx.prototype.extrapolateUsingTimestampMap=function(g){var r=this.clock.timeline,E,B=(E=g.get(r))!=null?E:this.clock.now();g.set(r,B);return this.extrapolateToTime(B)};
Xx.prototype.map=function(g){return new yDw(this,g)};
Xx.prototype.joinWith=function(g){return new vbD(this,g)};
var vbD=function(){x4.apply(this,arguments);this.map=Xx.prototype.map;this.joinWith=Xx.prototype.joinWith;this.extrapolateToNow=Xx.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Xx.prototype.extrapolateUsingTimestampMap};
_.f(vbD,x4);var yDw=function(){ao.apply(this,arguments);this.map=Xx.prototype.map;this.joinWith=Xx.prototype.joinWith;this.extrapolateToNow=Xx.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Xx.prototype.extrapolateUsingTimestampMap};
_.f(yDw,ao);var c$=function(g,r){this.lastMeasurement=r;this.extrapolateToNow=Xx.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Xx.prototype.extrapolateUsingTimestampMap;this.map=Xx.prototype.map;this.joinWith=Xx.prototype.joinWith;this.clock=g};
c$.prototype.equivalentTo=function(g){return g.active};
c$.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.hx.Object.defineProperties(c$.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var IbL=$f(function(g){if(g.value.viewportGeometrySourceName==="omid"){if(g.value.elementGeometrySourceName==="nio")return"omio";if(g.value.elementGeometrySourceName==="geo")return"omgeo"}return g.value.elementGeometrySourceName==="geo"||g.value.elementGeometrySourceName==="nio"?g.value.viewportGeometrySourceName:g.value.elementGeometrySourceName});var bNV=rh(Wb(function(g){return!isNaN(g)}),vb(function(g,r){return isNaN(g)?r:Math.min(g,r)},NaN),iY());var F_V=IQ(rh($f(function(g){return g.intersectionGeometry.width*g.intersectionGeometry.height/(g.exposedViewportLocalGeometry.width*g.exposedViewportLocalGeometry.height)}),$f(function(g){return isFinite(g)?Math.min(1,g):0})));var NFV=rh(IQ($f(function(g){g=g.exposureOverride?g.elementGeometry.width*g.elementGeometry.height*g.exposureOverride/(g.topWindowViewportExternalGeometry.width*g.topWindowViewportExternalGeometry.height):g.intersectionGeometry.width*g.intersectionGeometry.height/(g.topWindowViewportExternalGeometry.width*g.topWindowViewportExternalGeometry.height);return isFinite(g)?g:0})));var iNB=function(g,r){var E=this;this.timeProvider=g;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=r.pipe(iY()).subscribe(function(B){hL(E);E.measurementRequestObserver=B})},Vno=function(g,r){hL(g);
g.lastMeasurementRequest=g.timeProvider.setTimeout(function(){var E;return void((E=g.measurementRequestObserver)==null?void 0:E.next())},r)},hL=function(g){g.lastMeasurementRequest!==null&&g.timeProvider.clearTimeout(g.lastMeasurementRequest);
g.lastMeasurementRequest=null};
iNB.prototype.dispose=function(){hL(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var dzD=function(){};var GPP=function(g,r){this.context=g;this.strategies=r};
_.f(GPP,dzD);GPP.prototype.buildGeometrySource=function(g,r){var E=this.strategies.map(function(O){return O.buildGeometrySource(g,r)}),B=d0S(E.map(function(O){return O.geometrySource})),w=B.capturedErrors.pipe(TAI());
return{geometrySource:B.chain.pipe(q0(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:w,strategyErrors:B.capturedErrors}].concat(_.jW(E.map(function(O){return O.additionalOutputs}))))}};
var TAI=function(){return vb(function(g,r){r instanceof fN?g.push(r.measurementStrategyFailureReason):g.push(-1);return g},[])};var zFt=function(g,r){this.context=g;this.poller=r};
_.f(zFt,dzD);zFt.prototype.buildGeometrySource=function(g,r){var E=TFl(ryX(this.context,this.poller),oYP(this.context,r.requestSource));return{geometrySource:vYl(g.measurableCreative.pipe(E),r.inApp),additionalOutputs:{}}};var QOB=function(g,r,E){E=E===void 0?p$V(g,r):E;this.context=g;this.intersectionObserverStrategy=E};
_.f(QOB,dzD);QOB.prototype.buildGeometrySource=function(g,r){var E=this.intersectionObserverStrategy(r.useV2);return{geometrySource:vYl(g.measurableCreative.pipe(E,YYl(this.context)),r.inApp),additionalOutputs:{}}};var gtT=function(g,r,E){var B=B===void 0?Symbol():B;this.element=g;this.immediateUrls=r;this.timeOnScreenUrls=E;this.symbol=B};var Vw=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),O5L=Object.freeze([1,.75,Vw.exposureThreshold,Vw.largeAdExposureThreshold,0]);var qFo=function(g,r){r=r===void 0?36E5:r;var E=E===void 0?!0:E;this.creatives=new UY;this.elementsToUnregister=new UY;this.elementMap=new Map;var B=new yw(window,null);B.beaconFactory=new Mf(B,new e5(B));orl(B,this.creatives,this.elementsToUnregister,g,r,E).subscribe()},DKl=function(g,r,E,B){if(!g.elementMap.has(r)){var w=new KN(r);
g.elementMap.set(r,w);g.creatives.next(new gtT(w,E,B))}},l5V=function(g,r){g.elementsToUnregister.next(r);
var E=g.elementMap.get(r);E!==void 0&&(E.release(),g.elementMap.delete(r))};var GFX=function(g){var r=g.url;g=g.uaDataValues;this.JSC$7564_url_=r;this.uaDataValues_=g;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var E=/[?&]([^&=]+)=([^&]*)/g;g=E.exec(r);)this.urlParamValues_[g[1]]=g[2]},QJD=function(g){g=g.uaDataValues_;
if(!g)return"";var r=dF("uap",g.platform)+dF("uapv",g.platformVersion)+dF("uafv",g.uaFullVersion)+dF("uaa",g.architecture)+dF("uam",g.model)+dF("uab",g.bitness);g.fullVersionList&&(r+="&uafvl="+encodeURIComponent(g.fullVersionList.map(function(E){return encodeURIComponent(E.brand)+";"+encodeURIComponent(E.version)}).join("|")));
g.wow64!=null&&(r+="&uaw="+Number(g.wow64));return r.slice(1)};var r8w=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(r8w,_.xu);r8w.prototype.getId=function(){return _.jI(this,1)};var Nf=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(Nf,_.xu);Nf.prototype.getSeconds=function(){return fx(this,1)};
Nf.prototype.setSeconds=function(g){return _.jz(this,1,ev(g),"0")};_.K0=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(_.K0,_.xu);_.K0.prototype.getSeconds=function(){return fx(this,1)};
_.K0.prototype.setSeconds=function(g){return _.jz(this,1,ev(g),"0")};
_.EtT=function(g){var r=Number(bR(g,1));g=_.wY(g,2);return new Date(r*1E3+g/1E6)};var Io=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(Io,_.xu);Io.prototype.getUrl=function(){return _.jI(this,1)};
Io.prototype.setUrl=function(g){return _.Vj(this,1,g)};
Io.prototype.getHeight=function(){return _.wY(this,2)};
Io.prototype.getWidth=function(){return _.wY(this,3)};var mF=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(mF,_.xu);mF.prototype.getAspectRatio=function(){return $2(this,1)};
mF.prototype.setAspectRatio=function(g){return _.jz(this,1,_.qM(g),0)};
mF.prototype.getDuration=function(){return _.zP(this,Nf,2)};var BgA=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(BgA,_.xu);var wF6=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(wF6,_.xu);var SMn=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(SMn,_.xu);var ODn=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(ODn,_.xu);var UMw=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(UMw,_.xu);var Mvn=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(Mvn,_.xu);var qM4=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(qM4,_.xu);var u$A=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(u$A,_.xu);var l4T=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(l4T,_.xu);var cg=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(cg,_.xu);var i6=[2,4,5,6,7];var DMA=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(DMA,_.xu);var RU=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(RU,_.xu);_.S=RU.prototype;_.S.getId=function(){return _.zP(this,r8w,1)};
_.S.getName=function(){return _.jI(this,2)};
_.S.setDescription=function(g){return _.Vj(this,3,g)};
_.S.getUrl=function(){return _.jI(this,8)};
_.S.setUrl=function(g){return _.Vj(this,8,g)};
var LV=function(g){return _.ER(g,Io,10,_.BT())};
RU.prototype.getOwner=function(g){var r=_.nt(this,40,_.IA,3,!0);Kw(r,g);return r[g]};
RU.prototype.getVersion=function(){return fx(this,45)};
var VW=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(VW,_.xu);_.otw=[0,ZEQ,vEY];_.GLw=[0,ZEQ,vEY];var QAU=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(QAU,_.xu);var hq=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(hq,_.xu);hq.prototype.getStatus=function(){return _.AX(this,1)};
hq.prototype.removeItem=function(g){return DWS(this,2,g)};var zzD=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(zzD,_.xu);zzD.prototype.getName=function(){return _.jI(this,8)};var Zw=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(Zw,_.xu);Zw.prototype.getCommand=function(){return _.AX(this,1)};
Zw.prototype.getSource=function(){return _.zP(this,zzD,2)};
Zw.prototype.setVisible=function(g){return _.jG(this,5,g)};
Zw.prototype.removeItem=function(g){return DWS(this,7,g)};var kLm=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(kLm,_.xu);kLm.prototype.getCommand=function(){return _.AX(this,1)};
kLm.prototype.removeItem=function(g){return DWS(this,4,g)};
var HDZ=_.rs(kLm);var yW=function(g,r,E){E=E===void 0?Error():E;var B=Error.call(this);this.message=B.message;"stack"in B&&(this.stack=B.stack);this.code=g;r+=":";E instanceof Error?(this.message=r+E.message,this.stack=E.stack||""):(this.message=r+String(E),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.f(yW,Error);_.f5=function(){this.JSC$7622_disposed_=this.JSC$7622_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.f5.prototype.JSC$7622_disposed_=!1;_.f5.prototype.isDisposed=function(){return this.JSC$7622_disposed_};
_.f5.prototype.dispose=function(){this.JSC$7622_disposed_||(this.JSC$7622_disposed_=!0,this.disposeInternal())};
_.f5.prototype[Symbol.dispose]=function(){this.dispose()};
_.oO=function(g,r){g.addOnDisposeCallback(_.Hk(_.TM,r))};
_.f5.prototype.addOnDisposeCallback=function(g,r){this.JSC$7622_disposed_?r!==void 0?g.call(r):g():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),r&&(g=g.bind(r)),this.onDisposeCallbacks_.push(g))};
_.f5.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var vg=function(g){_.f5.call(this);this.wpc=g};
_.f(vg,_.f5);vg.prototype.qyT=function(){return this.wpc.f()};
vg.prototype.o4i=function(g){return this.wpc.c(g)};
vg.prototype.mM=function(g){return this.wpc.m(Jyo(g))};
vg.prototype.fqy=function(g){return this.wpc.mws(Jyo(g))};
var rY=function(g){_.f5.call(this);var r=this;this.hm=g;this.nn6="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.fgi=void 0;this.nrh=this.hm.p;this.a1Z=this.sAq.bind(this);this.addOnDisposeCallback(function(){return void pFD(r)})};
_.f(rY,_.f5);var YMn=function(g){var r;return _.q(function(E){if(E.nextAddress==1){if(!g.hm.wpc)throw new yW(30,"NWA");return g.brt?E.return(g.brt):_.D(E,g.hm.wpc(),2)}r=E.yieldResult;g.brt=new vg(r);return E.return(g.brt)})};
rY.prototype.snapshot=function(g){return this.hm.s(Object.assign({},g.zp&&{c:g.zp},g.ykm&&{s:g.ykm},g.sY6!==void 0&&{p:g.sY6}))};
rY.prototype.sAq=function(g){this.hm.e(g)};
rY.prototype.ynm=function(g,r){return this.hm.c(g,r,!1)};
var pFD=function(g){g.fgi!==void 0&&(g.nn6.forEach(function(r){var E;(E=g.fgi)==null||E.removeEventListener(r,g.a1Z)}),g.fgi=void 0)};
rY.prototype.kpf=function(){return this.hm.l()};var Rzw,d5=function(){_.f5.apply(this,arguments);this.qKZ=1;this[Rzw]=this.dispose};
_.f(d5,_.f5);d5.prototype.share=function(){if(this.isDisposed())throw Error("ua");this.qKZ++;return this};
d5.prototype.dispose=function(){--this.qKZ||_.f5.prototype.dispose.call(this)};
Rzw=Symbol.dispose;var ntb=function(g){this.vx5=g;g.addNewEventMetric("/client_streamz/bg/frs",_.Md("mk"))};
ntb.prototype.record=function(g,r){this.vx5.record("/client_streamz/bg/frs",g,r)};
var sAI=function(g){this.iqJ=g;g.addNewEventMetric("/client_streamz/bg/wrl",_.Md("mn"),UR("ac"),UR("sc"),_.Md("rk"),_.Md("mk"))};
sAI.prototype.record=function(g,r,E,B,w,O){this.iqJ.record("/client_streamz/bg/wrl",g,r,E,B,w,O)};
var f4b=function(g){this.bqZ=g;g.addNewCounter("/client_streamz/bg/ec",_.Md("en"),_.Md("mk"))};
f4b.prototype.increment=function(g,r){this.bqZ.JSC$7876_incrementCounter("/client_streamz/bg/ec",g,r)};
var $MD=function(g){this.eiJ=g;g.addNewEventMetric("/client_streamz/bg/el",_.Md("en"),_.Md("mk"))};
$MD.prototype.record=function(g,r,E){this.eiJ.record("/client_streamz/bg/el",g,r,E)};
var jAn=function(g){this.oxB=g;g.addNewCounter("/client_streamz/bg/cec",UR("ec"),_.Md("mk"))};
jAn.prototype.increment=function(g,r){this.oxB.JSC$7876_incrementCounter("/client_streamz/bg/cec",g,r)};
var A8U=function(g){this.tyr=g;g.addNewCounter("/client_streamz/bg/po/csc",UR("cs"),_.Md("mk"))};
A8U.prototype.increment=function(g,r){this.tyr.JSC$7876_incrementCounter("/client_streamz/bg/po/csc",g,r)};
var bDm=function(g){this.aPm=g;g.addNewCounter("/client_streamz/bg/po/ctav",_.Md("av"),_.Md("mk"))};
bDm.prototype.increment=function(g,r){this.aPm.JSC$7876_incrementCounter("/client_streamz/bg/po/ctav",g,r)};
var J8T=function(g){this.ucE=g;g.addNewCounter("/client_streamz/bg/po/cwsc",_.Md("su"),_.Md("mk"))};
J8T.prototype.increment=function(g,r){this.ucE.JSC$7876_incrementCounter("/client_streamz/bg/po/cwsc",g,r)};var wpQ=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(wpQ,_.xu);var BBL=function(g,r){return _.$u(g,3,r,vcA)};var PmU=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(PmU,_.xu);var tvD=[1,2,3];var F6Z=[0,tvD,_.EMP,dWP,rVD];var ezw=[0,_.mq,[0,LEl,_.aU]];var W6w=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(W6w,_.xu);var Cmz=[1,2,3];var K6Z=[0,Cmz,yut,VcQ,_.cL,ezw];var xMU=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(xMU,_.xu);var a4T=[0,_.mq,F6Z,K6Z];var XFw=[0,_.IU];var Ngw=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(Ngw,_.xu);var I4n=[0,_.IU,-1,_.NE];var mMD=[0,_.IU,-1,_.Xi,_.NE];var c8n=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(c8n,_.xu);var iDn=[1,2,3];var L64=[0,iDn,_.cL,I4n,_.cL,mMD,_.cL,XFw];var Vvw=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(Vvw,_.xu);Vvw.prototype.JSC$7696_serializeBinary=EuL([0,_.IU,L64,BeA,_.mq,a4T,Tic,gMB]);var hzT=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(hzT,_.xu);var vtm=function(g){var r=new Vvw;r=_.H$(r,1,g.JSC$7812_metricName);var E=ZD4(g);r=_.$u(r,3,E,_.aA);E=[];for(var B=[],w=_.U(g.cellMap.keys()),O=w.next();!O.done;O=w.next())B.push(O.value.split(","));for(w=0;w<B.length;w++){O=B[w];for(var M=g.cellType,u=g.getCells(O)||[],l=[],Q=0;Q<u.length;Q++){var z=u[Q],k=z&&z.cellValue;z=new W6w;switch(M){case 3:k=Number(k);Number.isFinite(k)&&oI(z,1,Cmz,ev(k));break;case 2:oI(z,2,Cmz,_.qM(Number(k)))}l.push(z)}M=l;for(u=0;u<M.length;u++){l=M[u];Q=new xMU;l=_.Bu(Q,
2,l);Q=[];z=y8w(g);for(k=0;k<z.length;k++){var H=z[k],R=O[k],A=new PmU;switch(H){case 3:oI(A,1,tvD,NM(String(R)));break;case 2:H=Number(R);Number.isFinite(H)&&oI(A,2,tvD,_.sM(H));break;case 1:oI(A,3,tvD,hPl(R==="true"))}Q.push(A)}Y2(l,1,Q);E.push(l)}}Y2(r,4,E);return r};var dMw=function(g){if(!g)return"";if(/^about:(?:blank|srcdoc)$/.test(g))return window.origin||"";g.indexOf("blob:")===0&&(g=g.substring(5));g=g.split("#")[0].split("?")[0];g=g.toLowerCase();g.indexOf("//")==0&&(g=window.location.protocol+g);/^[\w\-]*:\/\//.test(g)||(g=window.location.href);var r=g.substring(g.indexOf("://")+3),E=r.indexOf("/");E!=-1&&(r=r.substring(0,E));E=g.substring(0,g.indexOf("://"));if(!E)throw Error("va`"+g);if(E!=="http"&&E!=="https"&&E!=="chrome-extension"&&E!=="moz-extension"&&
E!=="file"&&E!=="android-app"&&E!=="chrome-search"&&E!=="chrome-untrusted"&&E!=="chrome"&&E!=="app"&&E!=="devtools")throw Error("wa`"+E);g="";var B=r.indexOf(":");if(B!=-1){var w=r.substring(B+1);r=r.substring(0,B);if(E==="http"&&w!=="80"||E==="https"&&w!=="443")g=":"+w}return E+"://"+r+g};var gum=function(g,r,E){var B=String(_.ED.location.href);return B&&g&&r?[r,TgD(dMw(B),g,E||null)].join(" "):null},TgD=function(g,r,E){var B=[],w=[];
if((Array.isArray(E)?2:1)==1)return w=[r,g],_.mR(B,function(u){w.push(u)}),rBA(w.join(" "));
var O=[],M=[];_.mR(E,function(u){M.push(u.key);O.push(u.value)});
E=Math.floor((new Date).getTime()/1E3);w=O.length==0?[E,r,g]:[O.join(":"),E,r,g];_.mR(B,function(u){w.push(u)});
g=rBA(w.join(" "));g=[E,g];M.length==0||g.push(M.join(""));return g.join("_")},rBA=function(g){var r=xdY();
r.update(g);return r.digestString().toLowerCase()};var Tk=function(g){this.JSC$7707_document_=g||{cookie:""}},Euw;
_.S=Tk.prototype;_.S.isEnabled=function(){if(!_.ED.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
_.S.set=function(g,r,E){var B=!1;if(typeof E==="object"){var w=E.sameSite;B=E.secure||!1;var O=E.domain||void 0;var M=E.path||void 0;var u=E.maxAge}if(/[;=\s]/.test(g))throw Error("xa`"+g);if(/[;\r\n]/.test(r))throw Error("ya`"+r);u===void 0&&(u=-1);E=O?";domain="+O:"";M=M?";path="+M:"";B=B?";secure":"";u=u<0?"":u==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+u*1E3)).toUTCString();this.JSC$7707_document_.cookie=g+"="+r+E+M+u+B+(w!=null?";samesite="+w:"")};
_.S.get=function(g,r){for(var E=g+"=",B=(this.JSC$7707_document_.cookie||"").split(";"),w=0,O;w<B.length;w++){O=oX(B[w]);if(O.lastIndexOf(E,0)==0)return O.slice(E.length);if(O==g)return""}return r};
_.S.remove=function(g,r,E){var B=this.containsKey(g);this.set(g,"",{maxAge:0,path:r,domain:E});return B};
_.S.getKeys=function(){return Euw(this).keys};
_.S.getValues=function(){return Euw(this).values};
_.S.isEmpty=function(){return!this.JSC$7707_document_.cookie};
_.S.getCount=function(){return this.JSC$7707_document_.cookie?(this.JSC$7707_document_.cookie||"").split(";").length:0};
_.S.containsKey=function(g){return this.get(g)!==void 0};
_.S.containsValue=function(g){for(var r=Euw(this).values,E=0;E<r.length;E++)if(r[E]==g)return!0;return!1};
_.S.clear=function(){for(var g=Euw(this).keys,r=g.length-1;r>=0;r--)this.remove(g[r])};
Euw=function(g){g=(g.JSC$7707_document_.cookie||"").split(";");for(var r=[],E=[],B,w,O=0;O<g.length;O++)w=oX(g[O]),B=w.indexOf("="),B==-1?(r.push(""),E.push(w)):(r.push(w.substring(0,B)),E.push(w.substring(B+1)));return{keys:r,values:E}};
_.zZ=new Tk(typeof document=="undefined"?null:document);var T9D,Bkw;T9D=function(){var g=_.ED.__SAPISID||_.ED.__APISID||_.ED.__3PSAPISID||_.ED.__1PSAPISID||_.ED.__OVERRIDE_SID;if(g)return!0;typeof document!=="undefined"&&(g=new Tk(document),g=g.get("SAPISID")||g.get("APISID")||g.get("__Secure-3PAPISID")||g.get("__Secure-1PAPISID"));return!!g};
Bkw=function(g,r,E,B){(g=_.ED[g])||typeof document==="undefined"||(g=(new Tk(document)).get(r));return g?gum(g,E,B):null};
_.cjB=function(g){var r=dMw(_.ED==null?void 0:_.ED.location.href),E=[];if(T9D()){r=r.indexOf("https:")==0||r.indexOf("chrome-extension:")==0||r.indexOf("chrome-untrusted://new-tab-page")==0||r.indexOf("moz-extension:")==0;var B=r?_.ED.__SAPISID:_.ED.__APISID;B||typeof document==="undefined"||(B=new Tk(document),B=B.get(r?"SAPISID":"APISID")||B.get("__Secure-3PAPISID"));(B=B?gum(B,r?"SAPISIDHASH":"APISIDHASH",g):null)&&E.push(B);r&&((r=Bkw("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",g))&&E.push(r),
(g=Bkw("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",g))&&E.push(g))}return E.length==0?null:E.join(" ")};var wHm=function(){this.minSize=1024};
wHm.prototype.compress=function(g){var r,E,B,w;return _.q(function(O){switch(O.nextAddress){case 1:return r=new CompressionStream("gzip"),E=(new Response(r.readable)).arrayBuffer(),B=r.writable.getWriter(),_.D(O,B.write((new TextEncoder).encode(g)),2);case 2:return _.D(O,B.close(),3);case 3:return w=Uint8Array,_.D(O,E,4);case 4:return O.return(new w(O.yieldResult))}})};
wHm.prototype.isSupported=function(g){return g<this.minSize?!1:typeof CompressionStream!=="undefined"};var Sl4=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(Sl4,_.xu);var g9=function(g,r){this.intervalMs=g;this.callback=r;this.enabled=!1;this.nowFn=function(){return _.dx()};
this.lastTimeMs=this.nowFn()};
g9.prototype.setInterval=function(g){this.intervalMs=g;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
g9.prototype.start=function(){var g=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){g.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 g=this;if(this.enabled){var r=Math.max(this.nowFn()-this.lastTimeMs,0);r<this.intervalMs*.8?this.timer=setTimeout(function(){g.tick()},this.intervalMs-r):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var Otz=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(Otz,_.xu);var Usn=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(Usn,_.xu);var MzD=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(MzD,_.xu);MzD.prototype.getTransmissionType=function(){return _.AX(this,1)};var Iql=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(Iql,_.xu);Iql.prototype.getVersion=function(){return _.jI(this,2)};var r9=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(r9,_.xu);var NYc=function(g){Y2(mdD,1,g)};
r9.prototype.getModel=function(){return _.jI(this,6)};
var qlZ=_.rs(r9);var ujn=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(ujn,_.xu);var aqc=["platform","platformVersion","architecture","model","uaFullVersion"],mdD=new r9,XTc=null;var EG=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(EG,_.xu);var lan=function(g){return _.B8(g,1,1)};var DsT=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g,4)};
_.f(DsT,_.xu);_.B2=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g,36)};
_.f(_.B2,_.xu);_.B2.prototype.getExperimentIds=function(){return _.zP(this,Sl4,16)};var oub=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g,19)};
_.f(oub,_.xu);oub.prototype.setLogSource=function(g){return _.B8(this,2,g)};
oub.prototype.setScheduler=function(g){return _.B8(this,10,g)};var Q8n=function(g,r){this.isServiceWorkerScope=r=r===void 0?!1:r;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new oub;Number.isInteger(g)&&this.logRequest.setLogSource(g);r||(this.locale=document.documentElement.getAttribute("lang"));G_A(this,new EG)};
Q8n.prototype.setLogSource=function(g){this.logRequest.setLogSource(g);return this};
var G_A=function(g,r){_.Bu(g.logRequest,1,r);_.AX(r,1)||lan(r);g.isServiceWorkerScope||(r=w9(g),_.jI(r,5)||_.H$(r,5,g.locale));g.uach&&(r=w9(g),_.zP(r,r9,9)||_.Bu(r,9,g.uach))},zKD=function(g,r){g.transmissionType=r},k_D=function(g){var r=r===void 0?aqc:r;
var E=g.isServiceWorkerScope?void 0:P$();E?cyJ(E,r).then(function(B){g.uach=qlZ(B!=null?B:"[]");B=w9(g);_.Bu(B,9,g.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},w9=function(g){var r=_.zP(g.logRequest,EG,1);
r||(r=new EG,G_A(g,r));g=r;r=_.zP(g,ujn,11);r||(r=new ujn,_.Bu(g,11,r));return r};
Q8n.prototype.build=function(g,r,E,B,w,O){r=r===void 0?0:r;E=E===void 0?0:E;B=B===void 0?null:B;w=w===void 0?0:w;O=O===void 0?0:O;if(!this.isServiceWorkerScope){var M=w9(this);var u=new MzD;u=_.B8(u,1,this.transmissionType);u=_.qd(u,2,this.isFinal);E=_.tX(u,3,E>0?E:void 0);E=_.tX(E,4,w>0?w:void 0);E=_.tX(E,5,O>0?O:void 0);w=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;O=w[_.Yb]|0;E=P6(E,O)?E:qs(E,w,O)?Ms(E,w):new E.constructor(Ul(w,O,!0));_.Bu(M,10,E)}M=this.logRequest.clone();E=Date.now().toString();
M=_.w2(M,4,ev(E));g=g.slice();g=Y2(M,3,g);B&&(M=new Otz,B=_.tX(M,13,B),M=new Usn,B=_.Bu(M,2,B),M=new DsT,B=_.Bu(M,1,B),B=_.B8(B,2,9),_.Bu(g,18,B));r&&_.nC(g,14,r);return g};uD.prototype.currBackoffCount_=0;uD.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
uD.prototype.getValue=function(){return this.currValue_};
var HtU=function(g){g.currBaseValue_=Math.min(g.maxValue_,g.currBaseValue_*g.backoffFactor_);g.currValue_=Math.min(g.maxValue_,g.currBaseValue_+(g.randomFactor_?Math.round(g.randomFactor_*(Math.random()-.5)*2*g.currBaseValue_):0));g.currBackoffCount_++};var MmX=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g,8)};
_.f(MmX,_.xu);var pHA=_.rs(MmX);var qOo=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(qOo,_.xu);var Sw;Sw=new uMJ;var UG=function(g){_.f5.call(this);var r=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7785_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$7785_sendBeaconApiEnabled=!1;this.logSource=g.logSource;this.getAuthHeaderValue=
g.getAuthHeaderValue||function(){};
this.logRequestBuilder=new Q8n(g.logSource,g.isServiceWorkerScope);this.network=g.network||null;this.productID=g.productID||null;this.bufferSize=1E3;this.clearcutUrl=g.urlOverride||null;this.sessionIndex=g.sessionIndex||null;this.disableAutomaticFlush=g.disableAutomaticFlush||!1;this.withCredentials=!g.disableWithCredentials;this.isServiceWorkerScope=g.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!P$()&&!!P$().navigator&&P$().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(Ylw())).searchParams&&!!(new URL(Ylw())).searchParams.set;var E=lan(new EG);G_A(this.logRequestBuilder,E);this.flushBackoff=new uD(1E4,3E5,.1);g=RKw(this,g.backgroundJobDeferrer);this.JSC$7785_flushTimer=new g9(this.flushBackoff.getValue(),g);this.backupTimer=new g9(6E5,g);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){nuI(r);
var B;(B=r.metalogService)==null||B.flush()}}),document.addEventListener("pagehide",function(){nuI(r);
var B;(B=r.metalogService)==null||B.flush()}))};
_.f(UG,_.f5);var RKw=function(g,r){return g.isBrowserSupported?r?function(){r().then(function(){g.flush()})}:function(){g.flush()}:function(){}};
UG.prototype.disposeInternal=function(){nuI(this);this.JSC$7785_flushTimer.stop();this.backupTimer.stop();_.f5.prototype.disposeInternal.call(this)};
var s8A=function(g){g.clearcutUrl||(g.clearcutUrl=Ylw());try{return(new URL(g.clearcutUrl)).toString()}catch(r){return(new URL(g.clearcutUrl,P$().location.origin)).toString()}};
UG.prototype.dispatch=function(g){if(g instanceof _.B2)this.log(g);else try{var r=new _.B2,E=g.serialize();var B=_.H$(r,8,E);this.log(B)}catch(w){Mn(this,4,1)}};
var Mn=function(g,r,E){g.metalogService&&g.metalogService.increment(r,E)};
UG.prototype.log=function(g){Mn(this,2,1);if(this.isBrowserSupported){g=g.clone();var r=this.sequencePosition++;g=_.nC(g,21,r);this.componentId&&_.H$(g,26,this.componentId);r=g;if(obB(_.GE(r,1))==null){var E=Date.now();E=Number.isFinite(E)?E.toString():"0";_.w2(r,1,ev(E))}_.DzQ(_.GE(r,15))!=null||_.nC(r,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(E=this.experimentIds.clone(),_.Bu(r,16,E));Mn(this,1,1);r=this.pendingEvents.length-this.bufferSize+1;r>0&&(this.pendingEvents.splice(0,r),
this.numLogsDroppedSinceLastFlush+=r,Mn(this,3,r));this.pendingEvents.push(g);this.disableAutomaticFlush||this.JSC$7785_flushTimer.enabled||this.JSC$7785_flushTimer.start()}};
UG.prototype.flush=function(g,r){var E=this;if(this.pendingEvents.length===0)g&&g();else if(this.JSC$7785_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,faD(this);else{var B=Date.now();if(this.noFlushUntilMs>B&&this.startWaitingMs<B)r&&r("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?zKD(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var w=this.pendingEvents.length,
O=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),M=this.getAuthHeaderValue();if(M&&this.lastFailedAuth===M)r&&r("stale-auth-token");else{this.pendingEvents=[];this.JSC$7785_flushTimer.enabled&&this.JSC$7785_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;B=O.serialize();var u;this.JSC$7785_compressor&&this.JSC$7785_compressor.isSupported(B.length)&&
(u=this.JSC$7785_compressor.compress(B));var l=$sm(this,B,M),Q=function(H){E.flushBackoff.reset();E.JSC$7785_flushTimer.setInterval(E.flushBackoff.getValue());if(H){var R=null;try{var A=JSON.stringify(JSON.parse(H.replace(")]}'\n","")));R=pHA(A)}catch(J){}R&&(H=Number(fx(R,1,_.hD("-1"))),H>0&&(E.startWaitingMs=Date.now(),E.noFlushUntilMs=E.startWaitingMs+H),tUY(R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Sw.fieldIndex),JDV(R,Sw.fieldIndex),R=Sw.ctor?Sw.getExtensionFn(R,Sw.ctor,Sw.fieldIndex,
Sw.JSC$6964_hasMessageId):Sw.getExtensionFn(R,Sw.fieldIndex,null,Sw.JSC$6964_hasMessageId),R=R===null?void 0:R)&&(R=_.wY(R,1,-1),R!==-1&&(E.flushBackoff=new uD(R<1?1:R,3E5,.1),E.JSC$7785_flushTimer.setInterval(E.flushBackoff.getValue())))}g&&g();E.numRetriesSinceLastSuccessfulFlush=0},z=function(H,R){var A=_.ER(O,_.B2,3,_.BT());
var J=Number(fx(O,14));HtU(E.flushBackoff);E.JSC$7785_flushTimer.setInterval(E.flushBackoff.getValue());H===401&&M&&(E.lastFailedAuth=M);J&&(E.numLogsDroppedSinceLastFlush+=J);R===void 0&&(R=E.isRetryable(H));R&&(E.pendingEvents=A.concat(E.pendingEvents),E.disableAutomaticFlush||E.JSC$7785_flushTimer.enabled||E.JSC$7785_flushTimer.start());Mn(E,7,1);r&&r("net-send-failed",H);++E.numRetriesSinceLastSuccessfulFlush},k=function(){E.network&&E.network.send(l,Q,z)};
u?u.then(function(H){Mn(E,5,w);l.requestHeaders["Content-Encoding"]="gzip";l.requestHeaders["Content-Type"]="application/binary";l.body=H;l.bodyType=2;k()},function(){Mn(E,6,w);
k()}):k()}}}};
var $sm=function(g,r,E){E=E===void 0?null:E;var B=B===void 0?g.withCredentials:B;var w={},O=new URL(s8A(g));E&&(w.Authorization=E);g.sessionIndex&&(w["X-Goog-AuthUser"]=g.sessionIndex,O.searchParams.set("authuser",g.sessionIndex));g.pageId&&(Object.defineProperty(w,"X-Goog-PageId",{value:g.pageId}),O.searchParams.set("pageId",g.pageId));return{url:O.toString(),body:r,bodyType:1,requestHeaders:w,requestType:"POST",withCredentials:B,timeoutMillis:g.timeoutMillis}},nuI=function(g){g.logRequestBuilder.isFinal=
!0;
g.flush();g.logRequestBuilder.isFinal=!1},faD=function(g){j8b(g,function(r,E){r=new URL(r);
r.searchParams.set("format","json");var B=!1;try{B=P$().navigator.sendBeacon(r.toString(),E.serialize())}catch(w){}B||(g.isSendBeaconSupported=!1);return B})},j8b=function(g,r){if(g.pendingEvents.length!==0){var E=new URL(s8A(g));
E.searchParams.delete("format");var B=g.getAuthHeaderValue();B&&E.searchParams.set("auth",B);E.searchParams.set("authuser",g.sessionIndex||"0");for(B=0;B<10&&g.pendingEvents.length;++B){var w=g.pendingEvents.slice(0,32),O=g.logRequestBuilder.build(w,g.numLogsDroppedSinceLastFlush,g.numRetriesSinceLastSuccessfulFlush,g.productID,g.persistedLogRecoveredCount,g.persistedLogExpiredCount);if(!r(E.toString(),O)){++g.numRetriesSinceLastSuccessfulFlush;break}g.numLogsDroppedSinceLastFlush=0;g.numRetriesSinceLastSuccessfulFlush=
0;g.persistedLogRecoveredCount=0;g.persistedLogExpiredCount=0;g.pendingEvents=g.pendingEvents.slice(w.length)}g.JSC$7785_flushTimer.enabled&&g.JSC$7785_flushTimer.stop()}};
UG.prototype.isRetryable=function(g){return 500<=g&&g<600||g===401||g===0};
var Ylw=function(){return"https://play.google.com/log?format=json&hasfast=true"};var ABD=function(){this.abortSupported=typeof AbortController!=="undefined"};
ABD.prototype.send=function(g,r,E){var B=this,w,O,M,u,l,Q,z,k,H,R;return _.q(function(A){switch(A.nextAddress){case 1:return O=(w=B.abortSupported?new AbortController:void 0)?setTimeout(function(){w.abort()},g.timeoutMillis):void 0,_.qN(A,2,3),M=Object.assign({},{method:g.requestType,
headers:Object.assign({},g.requestHeaders)},g.body&&{body:g.body},g.withCredentials&&{credentials:"include"},{signal:g.timeoutMillis&&w?w.signal:null}),_.D(A,fetch(g.url,M),5);case 5:u=A.yieldResult;if(u.status!==200){(l=E)==null||l(u.status);A.jumpTo(3);break}if((Q=r)==null){A.jumpTo(7);break}return _.D(A,u.text(),8);case 8:Q(A.yieldResult);case 7:case 3:_.uY(A);clearTimeout(O);_.oF(A,0);break;case 2:z=_.G2(A);switch((k=z)==null?void 0:k.name){case "AbortError":(H=E)==null||H(408);break;default:(R=
E)==null||R(400)}A.jumpTo(3)}})};
ABD.prototype.getTransmissionType=function(){return 4};_.Dq=function(g,r){r=r===void 0?"0":r;_.f5.call(this);this.logSource=g;this.sessionIndex=r;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7803_clearExperimentIds=this.productID=null;this.JSC$7803_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.f(_.Dq,_.f5);var gBl=function(g,r){g.buildLabel=r;return g},TYt=function(g,r){g.network=r;
return g},EBX=function(g,r){g.JSC$7803_clearExperimentIds=r},ddA=function(g){g.JSC$7803_sendBeaconApiEnabled=!0;
return g};
_.Dq.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.Dq.prototype.build=function(){this.network||(this.network=new ABD);var g=new UG({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.cjB,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.oO(this,g);if(this.buildLabel){var r=this.buildLabel,E=
w9(g.logRequestBuilder);_.H$(E,7,r)}g.JSC$7785_compressor=new wHm;this.componentId&&(g.componentId=this.componentId);this.productID&&(g.productID=this.productID);this.pageId&&(g.pageId=this.pageId);this.JSC$7803_clearExperimentIds&&((E=this.JSC$7803_clearExperimentIds)?(g.experimentIds||(g.experimentIds=new Sl4),r=g.experimentIds,E=E.serialize(),_.H$(r,4,E)):g.experimentIds&&_.w2(g.experimentIds,4));this.JSC$7803_sendBeaconApiEnabled&&(g.JSC$7785_sendBeaconApiEnabled=g.isSendBeaconSupported);k_D(g.logRequestBuilder);
this.bufferSize&&(g.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(g);return g};var Sxo=function(g,r,E,B,w,O,M){g=g===void 0?-1:g;r=r===void 0?"":r;E=E===void 0?"":E;B=B===void 0?!1:B;w=w===void 0?"":w;_.f5.call(this);this.logSource=g;this.componentId=r;O?r=O:(g=new _.Dq(g,"0"),g.componentId=r,_.oO(this,g),E!==""&&(g.destinationUrl=E),B&&(g.serviceWorkerScopeEnabled=!0),w&&gBl(g,w),M&&TYt(g,M),r=g.build());this.JSC$7807_transport=r};
_.f(Sxo,_.f5);Sxo.prototype.flush=function(g){g=g||[];if(g.length){for(var r=new hzT,E=[],B=0;B<g.length;B++){var w=g[B],O=vtm(w);E.push(O);w.clear()}Y2(r,1,E);this.JSC$7807_transport.dispatch(r);this.JSC$7807_transport.flush()}};var btn=function(g){this.cellValue=g};var qn=function(g,r,E){this.JSC$7812_metricName=g;this.cellType=r;this.fields=E||[];this.cellMap=new Map},y8w=function(g){return g.fields.map(function(r){return r.fieldType})},ZD4=function(g){return g.fields.map(function(r){return r.fieldName})};
_.S=qn.prototype;_.S.addCell=function(g){var r=_.fI.apply(1,arguments),E=this.getCells(r);E?E.push(new btn(g)):this.JSC$7812_setCell(g,r)};
_.S.JSC$7812_setCell=function(g){var r=this.JSC$7812_getKey(_.fI.apply(1,arguments));this.cellMap.set(r,[new btn(g)])};
_.S.getCells=function(){var g=this.JSC$7812_getKey(_.fI.apply(0,arguments));return this.cellMap.has(g)?this.cellMap.get(g):void 0};
_.S.getCell=function(){var g=this.getCells(_.fI.apply(0,arguments));return g&&g.length?g[0]:void 0};
_.S.clear=function(){this.cellMap.clear()};
_.S.JSC$7812_getKey=function(){var g=_.fI.apply(0,arguments);return g?g.join(","):"key"};var JBw=function(g,r){qn.call(this,g,3,r)};
_.f(JBw,qn);JBw.prototype.JSC$7815_incrementCounterBy=function(g){var r=_.fI.apply(1,arguments),E=0,B=this.getCell(r);B&&(E=B.cellValue);this.JSC$7812_setCell(E+g,r)};var PA4=function(g,r){qn.call(this,g,2,r)};
_.f(PA4,qn);PA4.prototype.record=function(g){this.addCell(g,_.fI.apply(1,arguments))};_.u8=function(g){this.id=g};
_.u8.prototype.toString=function(){return this.id};_.l8=function(g,r){this.type=g instanceof _.u8?String(g):g;this.currentTarget=this.target=r;this.defaultPrevented=this.propagationStopped_=!1};
_.l8.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.l8.prototype.preventDefault=function(){this.defaultPrevented=!0};_.Df=function(g,r){_.l8.call(this,g?g.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;g&&this.init(g,r)};
_.rc(_.Df,_.l8);
_.Df.prototype.init=function(g,r){var E=this.type=g.type,B=g.changedTouches&&g.changedTouches.length?g.changedTouches[0]:null;this.target=g.target||g.srcElement;this.currentTarget=r;r=g.relatedTarget;r||(E=="mouseover"?r=g.fromElement:E=="mouseout"&&(r=g.toElement));this.relatedTarget=r;B?(this.clientX=B.clientX!==void 0?B.clientX:B.pageX,this.clientY=B.clientY!==void 0?B.clientY:B.pageY,this.screenX=B.screenX||0,this.screenY=B.screenY||0):(this.offsetX=_.Uz||g.offsetX!==void 0?g.offsetX:g.layerX,
this.offsetY=_.Uz||g.offsetY!==void 0?g.offsetY:g.layerY,this.clientX=g.clientX!==void 0?g.clientX:g.pageX,this.clientY=g.clientY!==void 0?g.clientY:g.pageY,this.screenX=g.screenX||0,this.screenY=g.screenY||0);this.button=g.button;this.keyCode=g.keyCode||0;this.key=g.key||"";this.charCode=g.charCode||(E=="keypress"?g.keyCode:0);this.ctrlKey=g.ctrlKey;this.altKey=g.altKey;this.shiftKey=g.shiftKey;this.metaKey=g.metaKey;this.pointerId=g.pointerId||0;this.pointerType=g.pointerType;this.state=g.state;
this.timeStamp=g.timeStamp;this.event_=g;g.defaultPrevented&&_.Df.superClass_.preventDefault.call(this)};
_.Df.prototype.stopPropagation=function(){_.Df.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.Df.prototype.preventDefault=function(){_.Df.superClass_.preventDefault.call(this);var g=this.event_;g.preventDefault?g.preventDefault():g.returnValue=!1};var tzw="closure_listenable_"+(Math.random()*1E6|0),ow=function(g){return!(!g||!g[tzw])};var FpZ=0;var eK4=function(g,r,E,B,w){this.listener=g;this.proxy=null;this.src=r;this.type=E;this.capture=!!B;this.handler=w;this.key=++FpZ;this.removed=this.callOnce=!1},Wpn=function(g){g.removed=!0;
g.listener=null;g.proxy=null;g.src=null;g.handler=null};lD.prototype.add=function(g,r,E,B,w){var O=g.toString();g=this.listeners[O];g||(g=this.listeners[O]=[],this.typeCount_++);var M=CAD(g,r,B,w);M>-1?(r=g[M],E||(r.callOnce=!1)):(r=new eK4(r,this.src,O,!!B,w),r.callOnce=E,g.push(r));return r};
lD.prototype.remove=function(g,r,E,B){g=g.toString();if(!(g in this.listeners))return!1;var w=this.listeners[g];r=CAD(w,r,E,B);return r>-1?(Wpn(w[r]),_.Vl(w,r),w.length==0&&(delete this.listeners[g],this.typeCount_--),!0):!1};
var KpD=function(g,r){var E=r.type;if(!(E in g.listeners))return!1;var B=_.ht(g.listeners[E],r);B&&(Wpn(r),g.listeners[E].length==0&&(delete g.listeners[E],g.typeCount_--));return B};
lD.prototype.removeAll=function(g){g=g&&g.toString();var r=0,E;for(E in this.listeners)if(!g||E==g){for(var B=this.listeners[E],w=0;w<B.length;w++)++r,Wpn(B[w]);delete this.listeners[E];this.typeCount_--}return r};
lD.prototype.getListener=function(g,r,E,B){g=this.listeners[g.toString()];var w=-1;g&&(w=CAD(g,r,E,B));return w>-1?g[w]:null};
lD.prototype.hasListener=function(g,r){var E=g!==void 0,B=E?g.toString():"",w=r!==void 0;return _.jn.some(this.listeners,function(O){for(var M=0;M<O.length;++M)if(!(E&&O[M].type!=B||w&&O[M].capture!=r))return!0;return!1})};
var CAD=function(g,r,E,B){for(var w=0;w<g.length;++w){var O=g[w];if(!O.removed&&O.listener==r&&O.capture==!!E&&O.handler==B)return w}return-1};var xsZ,aan,XHw,Iab,ms6,nW,s2,LpT,cBz,itn,Ge,Vzn,Nkn;xsZ="closure_lm_"+(Math.random()*1E6|0);aan={};XHw=0;_.j_=function(g,r,E,B,w){if(B&&B.once)return nW(g,r,E,B,w);if(Array.isArray(r)){for(var O=0;O<r.length;O++)_.j_(g,r[O],E,B,w);return null}E=Nkn(E);return ow(g)?g.listen(r,E,_.gA(B)?!!B.capture:!!B,w):Iab(g,r,E,!1,B,w)};
Iab=function(g,r,E,B,w,O){if(!r)throw Error("Aa");var M=_.gA(w)?!!w.capture:!!w,u=Ge(g);u||(g[xsZ]=u=new lD(g));E=u.add(r,E,B,M,O);if(E.proxy)return E;B=ms6();E.proxy=B;B.src=g;B.listener=E;if(g.addEventListener)_.agc||(w=M),w===void 0&&(w=!1),g.addEventListener(r.toString(),B,w);else if(g.attachEvent)g.attachEvent(cBz(r.toString()),B);else if(g.addListener&&g.removeListener)g.addListener(B);else throw Error("Ba");XHw++;return E};
ms6=function(){var g=itn,r=function(E){return g.call(r.src,r.listener,E)};
return r};
nW=function(g,r,E,B,w){if(Array.isArray(r)){for(var O=0;O<r.length;O++)nW(g,r[O],E,B,w);return null}E=Nkn(E);return ow(g)?g.listenOnce(r,E,_.gA(B)?!!B.capture:!!B,w):Iab(g,r,E,!0,B,w)};
_.Qu=function(g,r,E,B,w){if(Array.isArray(r))for(var O=0;O<r.length;O++)_.Qu(g,r[O],E,B,w);else B=_.gA(B)?!!B.capture:!!B,E=Nkn(E),ow(g)?g.unlisten(r,E,B,w):g&&(g=Ge(g))&&(r=g.getListener(r,E,B,w))&&s2(r)};
s2=function(g){if(typeof g==="number"||!g||g.removed)return!1;var r=g.src;if(ow(r))return KpD(r.eventTargetListeners_,g);var E=g.type,B=g.proxy;r.removeEventListener?r.removeEventListener(E,B,g.capture):r.detachEvent?r.detachEvent(cBz(E),B):r.addListener&&r.removeListener&&r.removeListener(B);XHw--;(E=Ge(r))?(KpD(E,g),E.typeCount_==0&&(E.src=null,r[xsZ]=null)):Wpn(g);return!0};
LpT=function(g,r,E,B,w){E=Nkn(E);B=!!B;return ow(g)?g.getListener(r,E,B,w):g?(g=Ge(g))?g.getListener(r,E,B,w):null:null};
cBz=function(g){return g in aan?aan[g]:aan[g]="on"+g};
itn=function(g,r){if(g.removed)g=!0;else{r=new _.Df(r,this);var E=g.listener,B=g.handler||g.src;g.callOnce&&s2(g);g=E.call(B,r)}return g};
Ge=function(g){g=g[xsZ];return g instanceof lD?g:null};
Vzn="__closure_events_fn_"+(Math.random()*1E9>>>0);Nkn=function(g){if(typeof g==="function")return g;g[Vzn]||(g[Vzn]=function(r){return g.handleEvent(r)});
return g[Vzn]};_.ze=function(){_.f5.call(this);this.eventTargetListeners_=new lD(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.rc(_.ze,_.f5);_.ze.prototype[tzw]=!0;_.S=_.ze.prototype;_.S.setParentEventTarget=function(g){this.parentEventTarget_=g};
_.S.addEventListener=function(g,r,E,B){_.j_(this,g,r,E,B)};
_.S.removeEventListener=function(g,r,E,B){_.Qu(this,g,r,E,B)};
_.S.dispatchEvent=function(g){var r,E=this.parentEventTarget_;if(E)for(r=[];E;E=E.parentEventTarget_)r.push(E);E=this.actualEventTarget_;var B=g.type||g;if(typeof g==="string")g=new _.l8(g,E);else if(g instanceof _.l8)g.target=g.target||E;else{var w=g;g=new _.l8(B,E);_.jn.extend(g,w)}w=!0;var O;if(r)for(O=r.length-1;!g.propagationStopped_&&O>=0;O--){var M=g.currentTarget=r[O];w=hKA(M,B,!0,g)&&w}g.propagationStopped_||(M=g.currentTarget=E,w=hKA(M,B,!0,g)&&w,g.propagationStopped_||(w=hKA(M,B,!1,g)&&
w));if(r)for(O=0;!g.propagationStopped_&&O<r.length;O++)M=g.currentTarget=r[O],w=hKA(M,B,!1,g)&&w;return w};
_.S.disposeInternal=function(){_.ze.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.S.listen=function(g,r,E,B){return this.eventTargetListeners_.add(String(g),r,!1,E,B)};
_.S.listenOnce=function(g,r,E,B){return this.eventTargetListeners_.add(String(g),r,!0,E,B)};
_.S.unlisten=function(g,r,E,B){return this.eventTargetListeners_.remove(String(g),r,E,B)};
_.S.removeAllListeners=function(g){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(g):0};
var hKA=function(g,r,E,B){r=g.eventTargetListeners_.listeners[String(r)];if(!r)return!0;r=r.concat();for(var w=!0,O=0;O<r.length;++O){var M=r[O];if(M&&!M.removed&&M.capture==E){var u=M.listener,l=M.handler||M.src;M.callOnce&&KpD(g.eventTargetListeners_,M);w=u.call(l,B)!==!1&&w}}return w&&!B.defaultPrevented};
_.ze.prototype.getListener=function(g,r,E,B){return this.eventTargetListeners_.getListener(String(g),r,E,B)};
_.ze.prototype.hasListener=function(g,r){return this.eventTargetListeners_.hasListener(g!==void 0?String(g):void 0,r)};var k$=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(g){return g&&AsyncContext.Snapshot.wrap(g)}:function(g){return g};var Zt6=function(g,r){this.create_=g;this.reset_=r;this.occupants_=0;this.JSC$7847_head_=null};
Zt6.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var g=this.JSC$7847_head_;this.JSC$7847_head_=g.next;g.next=null}else g=this.create_();return g};
Zt6.prototype.put=function(g){this.reset_(g);this.occupants_<100&&(this.occupants_++,g.next=this.JSC$7847_head_,this.JSC$7847_head_=g)};var yBT=function(){this.workTail_=this.workHead_=null};
yBT.prototype.add=function(g,r){var E=LKV.get();E.set(g,r);this.workTail_?this.workTail_.next=E:this.workHead_=E;this.workTail_=E};
yBT.prototype.remove=function(){var g=null;this.workHead_&&(g=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),g.next=null);return g};
var LKV=new Zt6(function(){return new vu4},function(g){return g.reset()}),vu4=function(){this.next=this.scope=this.fn=null};
vu4.prototype.set=function(g,r){this.fn=g;this.scope=r;this.next=null};
vu4.prototype.reset=function(){this.next=this.scope=this.fn=null};var dsT,VLP,i5Y,Tkw;VLP=!1;i5Y=new yBT;_.H2=function(g,r){dsT||Tkw();VLP||(dsT(),VLP=!0);i5Y.add(g,r)};
Tkw=function(){var g=Promise.resolve(void 0);dsT=function(){g.then(hFl)}};var gUA=function(g){g.prototype.$goog_Thenable=!0},raU=function(g){if(!g)return!1;
try{return!!g.$goog_Thenable}catch(r){return!1}};var EUn,Bsw,wun,OIT,UOD,Myn,DOz,QCz,puT,khn,GBS;_.D8=function(g,r){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(g!=_.oo)try{var E=this;g.call(r,function(B){E.resolve_(2,B)},function(B){E.resolve_(3,B)})}catch(B){this.resolve_(3,B)}};
EUn=function(){this.next=this.context=this.JSC$7858_onRejected=this.JSC$7858_onFulfilled=this.child=null;this.always=!1};
EUn.prototype.reset=function(){this.context=this.JSC$7858_onRejected=this.JSC$7858_onFulfilled=this.child=null;this.always=!1};
Bsw=new Zt6(function(){return new EUn},function(g){g.reset()});
wun=function(g,r,E){var B=Bsw.get();B.JSC$7858_onFulfilled=g;B.JSC$7858_onRejected=r;B.context=E;return B};
_.lq=function(g){if(g instanceof _.D8)return g;var r=new _.D8(_.oo);r.resolve_(2,g);return r};
_.bV=function(g){return new _.D8(function(r,E){E(g)})};
OIT=function(g,r,E){SUm(g,r,E,null)||_.H2(_.Hk(r,g))};
_.pc=function(g){return new _.D8(function(r,E){var B=g.length,w=[];if(B)for(var O=function(Q,z){B--;w[Q]=z;B==0&&r(w)},M=function(Q){E(Q)},u,l=0;l<g.length;l++)u=g[l],OIT(u,_.Hk(O,l),M);
else r(w)})};
UOD=function(g){return new _.D8(function(r){var E=g.length,B=[];if(E)for(var w=function(u,l,Q){E--;B[u]=l?{fulfilled:!0,value:Q}:{fulfilled:!1,reason:Q};E==0&&r(B)},O,M=0;M<g.length;M++)O=g[M],OIT(O,_.Hk(w,M,!0),_.Hk(w,M,!1));
else r(B)})};
Myn=function(g){return new _.D8(function(r,E){var B=g.length,w=[];if(B)for(var O=function(Q){r(Q)},M=function(Q,z){B--;
w[Q]=z;B==0&&E(w)},u,l=0;l<g.length;l++)u=g[l],OIT(u,O,_.Hk(M,l));
else r(void 0)})};
_.iW=function(){var g,r,E=new _.D8(function(B,w){g=B;r=w});
return new qUn(E,g,r)};
_.D8.prototype.then=function(g,r,E){return uEw(this,k$(typeof g==="function"?g:null),k$(typeof r==="function"?r:null),E)};
gUA(_.D8);DOz=function(g,r,E,B){l2T(g,wun(r||_.oo,E||null,B))};
_.Y$=function(g,r){r=k$(r);r=wun(r,r);r.always=!0;l2T(g,r);return g};
_.D8.prototype.finally=function(g){var r=this;g=k$(g);return new Promise(function(E,B){DOz(r,function(w){g();E(w)},function(w){g();
B(w)})})};
_.D8.prototype.thenCatch=function(g,r){return uEw(this,null,k$(g),r)};
_.D8.prototype.catch=_.D8.prototype.thenCatch;_.D8.prototype.cancel=function(g){if(this.state_==0){var r=new _.Iz(g);_.H2(function(){oUT(this,r)},this)}};
var oUT=function(g,r){if(g.state_==0)if(g.parent_){var E=g.parent_;if(E.callbackEntries_){for(var B=0,w=null,O=null,M=E.callbackEntries_;M&&(M.always||(B++,M.child==g&&(w=M),!(w&&B>1)));M=M.next)w||(O=M);w&&(E.state_==0&&B==1?oUT(E,r):(O?(B=O,B.next==E.callbackEntriesTail_&&(E.callbackEntriesTail_=B),B.next=B.next.next):Ghz(E),QCz(E,w,3,r)))}g.parent_=null}else g.resolve_(3,r)},l2T=function(g,r){g.callbackEntries_||g.state_!=2&&g.state_!=3||zjI(g);
g.callbackEntriesTail_?g.callbackEntriesTail_.next=r:g.callbackEntries_=r;g.callbackEntriesTail_=r},uEw=function(g,r,E,B){var w=wun(null,null,null);
w.child=new _.D8(function(O,M){w.JSC$7858_onFulfilled=r?function(u){try{var l=r.call(B,u);O(l)}catch(Q){M(Q)}}:O;
w.JSC$7858_onRejected=E?function(u){try{var l=E.call(B,u);l===void 0&&u instanceof _.Iz?M(u):O(l)}catch(Q){M(Q)}}:M});
w.child.parent_=g;l2T(g,w);return w.child};
_.D8.prototype.unblockAndFulfill_=function(g){this.state_=0;this.resolve_(2,g)};
_.D8.prototype.unblockAndReject_=function(g){this.state_=0;this.resolve_(3,g)};
_.D8.prototype.resolve_=function(g,r){this.state_==0&&(this===r&&(g=3,r=new TypeError("Ca")),this.state_=1,SUm(r,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=r,this.state_=g,this.parent_=null,zjI(this),g!=3||r instanceof _.Iz||khn(this,r)))};
var SUm=function(g,r,E,B){if(g instanceof _.D8)return DOz(g,r,E,B),!0;if(raU(g))return g.then(r,E,B),!0;if(_.gA(g))try{var w=g.then;if(typeof w==="function")return HIn(g,w,r,E,B),!0}catch(O){return E.call(B,O),!0}return!1},HIn=function(g,r,E,B,w){var O=!1,M=function(l){O||(O=!0,E.call(w,l))},u=function(l){O||(O=!0,B.call(w,l))};
try{r.call(g,M,u)}catch(l){u(l)}},zjI=function(g){g.executing_||(g.executing_=!0,_.H2(g.executeCallbacks_,g))},Ghz=function(g){var r=null;
g.callbackEntries_&&(r=g.callbackEntries_,g.callbackEntries_=r.next,r.next=null);g.callbackEntries_||(g.callbackEntriesTail_=null);return r};
_.D8.prototype.executeCallbacks_=function(){for(var g;g=Ghz(this);)QCz(this,g,this.state_,this.result_);this.executing_=!1};
QCz=function(g,r,E,B){if(E==3&&r.JSC$7858_onRejected&&!r.always)for(;g&&g.hadUnhandledRejection_;g=g.parent_)g.hadUnhandledRejection_=!1;if(r.child)r.child.parent_=null,puT(r,E,B);else try{r.always?r.JSC$7858_onFulfilled.call(r.context):puT(r,E,B)}catch(w){GBS.call(null,w)}Bsw.put(r)};
puT=function(g,r,E){r==2?g.JSC$7858_onFulfilled.call(g.context,E):g.JSC$7858_onRejected&&g.JSC$7858_onRejected.call(g.context,E)};
khn=function(g,r){g.hadUnhandledRejection_=!0;_.H2(function(){g.hadUnhandledRejection_&&GBS.call(null,r)})};
GBS=BJ;_.Iz=function(g){_.gl.call(this,g)};
_.rc(_.Iz,_.gl);_.Iz.prototype.name="cancel";var qUn=function(g,r,E){this.promise=g;this.resolve=r;this.reject=E};var Rw;_.rU=function(g,r){_.ze.call(this);this.JSC$7870_interval_=g||1;this.timerObject_=r||_.ED;this.boundTick_=(0,_.$r)(this.tick_,this);this.last_=_.dx()};
_.rc(_.rU,_.ze);_.S=_.rU.prototype;_.S.enabled=!1;_.S.JSC$7872_timer_=null;_.S.setInterval=function(g){this.JSC$7870_interval_=g;this.JSC$7872_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7872_timer_&&this.stop()};
_.S.tick_=function(){if(this.enabled){var g=_.dx()-this.last_;g>0&&g<this.JSC$7870_interval_*.8?this.JSC$7872_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7870_interval_-g):(this.JSC$7872_timer_&&(this.timerObject_.clearTimeout(this.JSC$7872_timer_),this.JSC$7872_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.S.start=function(){this.enabled=!0;this.JSC$7872_timer_||(this.JSC$7872_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7870_interval_),this.last_=_.dx())};
_.S.stop=function(){this.enabled=!1;this.JSC$7872_timer_&&(this.timerObject_.clearTimeout(this.JSC$7872_timer_),this.JSC$7872_timer_=null)};
_.S.disposeInternal=function(){_.rU.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
Rw=function(g,r,E){if(typeof g==="function")E&&(g=(0,_.$r)(g,E));else if(g&&typeof g.handleEvent=="function")g=(0,_.$r)(g.handleEvent,g);else throw Error("Da");return Number(r)>2147483647?-1:_.ED.setTimeout(g,r||0)};
_.YUT=function(g){var r=null;return(new _.D8(function(E,B){r=Rw(function(){E(void 0)},g);
r==-1&&B(Error("Ea"))})).thenCatch(function(E){_.ED.clearTimeout(r);
throw E;})};var GP=function(g){_.f5.call(this);this.streamzLogger=g;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7876_flushTimer=new _.rU(this.flushInterval);this.JSC$7876_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.oO(this,this.JSC$7876_flushTimer)};
_.f(GP,_.f5);GP.prototype.sendIsolatedPayload=function(g){this.shouldSendIsolatedPayload=g;this.invocationLimit=1};
var RjU=function(g){g.JSC$7876_flushTimer.enabled||g.JSC$7876_flushTimer.start();g.invocationCount++;g.invocationCount>=g.invocationLimit&&g.snapshotAndFlush()};
GP.prototype.snapshotAndFlush=function(){var g=this.metricMap.values();g=[].concat(_.jW(g)).filter(function(r){return r.cellMap.size});
g.length&&this.streamzLogger.flush(g,this.shouldSendIsolatedPayload);nUw(g);this.invocationCount=0;this.JSC$7876_flushTimer.enabled&&this.JSC$7876_flushTimer.stop()};
GP.prototype.addNewCounter=function(g){var r=_.fI.apply(1,arguments);this.metricMap.has(g)||this.metricMap.set(g,new JBw(g,r))};
GP.prototype.addNewEventMetric=function(g){var r=_.fI.apply(1,arguments);this.metricMap.has(g)||this.metricMap.set(g,new PA4(g,r))};
var sCZ=function(g,r){return g.disabledMetrics.has(r)?void 0:g.metricMap.get(r)};
GP.prototype.JSC$7876_incrementCounter=function(g){this.JSC$7876_incrementCounterBy(g,1,_.fI.apply(1,arguments))};
GP.prototype.JSC$7876_incrementCounterBy=function(g,r){var E=_.fI.apply(2,arguments),B=sCZ(this,g);B&&B instanceof JBw&&(B.JSC$7815_incrementCounterBy(r,E),RjU(this))};
GP.prototype.record=function(g,r){var E=_.fI.apply(2,arguments),B=sCZ(this,g);B&&B instanceof PA4&&(B.record(r,E),RjU(this))};
var nUw=function(g){for(var r=0;r<g.length;r++)g[r].clear()};_.nc=function(g,r,E){E=E===void 0?{}:E;r=Error.call(this,r);this.message=r.message;"stack"in r&&(this.stack=r.stack);this.code=g;this.metadata=E;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.f(_.nc,Error);_.nc.prototype.toString=function(){var g="RpcError("+(yyB(this.code)||String(this.code))+")";this.message&&(g+=": "+this.message);return g};_.f2T=_.ED.JSON.parse;_.sG=_.ED.JSON.stringify;_.$y=_.ED.JSON.parse;_.$O6=function(g){switch(g){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 jCZ=function(g){switch(g){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Aab,bIU=function(){};
_.rc(bIU,_.vrA);bIU.prototype.createInstance=function(){return new XMLHttpRequest};
Aab=new bIU;_.fc=function(g){_.ze.call(this);this.headers=new Map;this.JSC$7885_xmlHttpFactory_=g||null;this.JSC$7885_active_=!1;this.JSC$7885_xhr_=null;this.JSC$7885_lastUri_="";this.JSC$7885_lastErrorCode_=0;this.JSC$7885_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7885_timeoutId_=null;this.responseType_="";this.JSC$7885_withCredentials_=!1};
_.rc(_.fc,_.ze);var JaD=/^https?$/i,PiI=["POST","PUT"],tyb=[],w2c=function(g,r,E,B,w,O,M){var u=new _.fc;tyb.push(u);r&&u.listen("complete",r);u.listenOnce("ready",u.cleanupSend_);O&&(u.timeoutInterval_=Math.max(0,O));M&&(u.JSC$7885_withCredentials_=M);u.send(g,E,B,w)};
_.fc.prototype.cleanupSend_=function(){this.dispose();_.ht(tyb,this)};
_.fc.prototype.send=function(g,r,E,B){if(this.JSC$7885_xhr_)throw Error("Fa`"+this.JSC$7885_lastUri_+"`"+g);r=r?r.toUpperCase():"GET";this.JSC$7885_lastUri_=g;this.JSC$7885_lastError_="";this.JSC$7885_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7885_active_=!0;this.JSC$7885_xhr_=this.createXhr();this.JSC$7885_xhr_.onreadystatechange=k$((0,_.$r)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7885_xhr_.open(r,String(g),!0),this.inOpen_=!1}catch(M){FgD(this,M);return}g=E||"";E=new Map(this.headers);
if(B)if(Object.getPrototypeOf(B)===Object.prototype)for(var w in B)E.set(w,B[w]);else if(typeof B.keys==="function"&&typeof B.get==="function"){w=_.U(B.keys());for(var O=w.next();!O.done;O=w.next())O=O.value,E.set(O,B.get(O))}else throw Error("Ga`"+String(B));B=Array.from(E.keys()).find(function(M){return"content-type"==M.toLowerCase()});
w=_.ED.FormData&&g instanceof _.ED.FormData;!_.mA(PiI,r)||B||w||E.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");r=_.U(E);for(B=r.next();!B.done;B=r.next())E=_.U(B.value),B=E.next().value,E=E.next().value,this.JSC$7885_xhr_.setRequestHeader(B,E);this.responseType_&&(this.JSC$7885_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7885_xhr_&&this.JSC$7885_xhr_.withCredentials!==this.JSC$7885_withCredentials_&&(this.JSC$7885_xhr_.withCredentials=this.JSC$7885_withCredentials_);
try{this.JSC$7885_timeoutId_&&(clearTimeout(this.JSC$7885_timeoutId_),this.JSC$7885_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7885_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7885_xhr_.send(g),this.inSend_=!1}catch(M){FgD(this,M)}};
_.fc.prototype.createXhr=function(){return this.JSC$7885_xmlHttpFactory_?this.JSC$7885_xmlHttpFactory_.createInstance():Aab.createInstance()};
_.fc.prototype.timeout_=function(){typeof hdQ!="undefined"&&this.JSC$7885_xhr_&&(this.JSC$7885_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7885_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var FgD=function(g,r){g.JSC$7885_active_=!1;g.JSC$7885_xhr_&&(g.inAbort_=!0,g.JSC$7885_xhr_.abort(),g.inAbort_=!1);g.JSC$7885_lastError_=r;g.JSC$7885_lastErrorCode_=5;ejw(g);Wgb(g)},ejw=function(g){g.errorDispatched_||(g.errorDispatched_=!0,g.dispatchEvent("complete"),g.dispatchEvent("error"))};
_.fc.prototype.abort=function(g){this.JSC$7885_xhr_&&this.JSC$7885_active_&&(this.JSC$7885_active_=!1,this.inAbort_=!0,this.JSC$7885_xhr_.abort(),this.inAbort_=!1,this.JSC$7885_lastErrorCode_=g||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Wgb(this))};
_.fc.prototype.disposeInternal=function(){this.JSC$7885_xhr_&&(this.JSC$7885_active_&&(this.JSC$7885_active_=!1,this.inAbort_=!0,this.JSC$7885_xhr_.abort(),this.inAbort_=!1),Wgb(this,!0));_.fc.superClass_.disposeInternal.call(this)};
_.fc.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)CiD(this);else this.onReadyStateChangeEntryPoint_()};
_.fc.prototype.onReadyStateChangeEntryPoint_=function(){CiD(this)};
var CiD=function(g){if(g.JSC$7885_active_&&typeof hdQ!="undefined")if(g.inSend_&&_.$$(g)==4)setTimeout(g.onReadyStateChange_.bind(g),0);else if(g.dispatchEvent("readystatechange"),g.isComplete()){g.JSC$7885_active_=!1;try{if(g.isSuccess())g.dispatchEvent("complete"),g.dispatchEvent("success");else{g.JSC$7885_lastErrorCode_=6;try{var r=_.$$(g)>2?g.JSC$7885_xhr_.statusText:""}catch(E){r=""}g.JSC$7885_lastError_=r+" ["+g.getStatus()+"]";ejw(g)}}finally{Wgb(g)}}},Wgb=function(g,r){if(g.JSC$7885_xhr_){g.JSC$7885_timeoutId_&&
(clearTimeout(g.JSC$7885_timeoutId_),g.JSC$7885_timeoutId_=null);
var E=g.JSC$7885_xhr_;g.JSC$7885_xhr_=null;r||g.dispatchEvent("ready");try{E.onreadystatechange=null}catch(B){}}};
_.fc.prototype.isActive=function(){return!!this.JSC$7885_xhr_};
_.fc.prototype.isComplete=function(){return _.$$(this)==4};
_.fc.prototype.isSuccess=function(){var g=this.getStatus(),r;if(!(r=jCZ(g))){if(g=g===0)g=xzA(String(this.JSC$7885_lastUri_)),g=!JaD.test(g);r=g}return r};
_.$$=function(g){return g.JSC$7885_xhr_?g.JSC$7885_xhr_.readyState:0};
_.S=_.fc.prototype;_.S.getStatus=function(){try{return _.$$(this)>2?this.JSC$7885_xhr_.status:-1}catch(g){return-1}};
_.S.getResponseText=function(){try{return this.JSC$7885_xhr_?this.JSC$7885_xhr_.responseText:""}catch(g){return""}};
_.S.getResponse=function(){try{if(!this.JSC$7885_xhr_)return null;if("response"in this.JSC$7885_xhr_)return this.JSC$7885_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7885_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7885_xhr_)return this.JSC$7885_xhr_.mozResponseArrayBuffer}return null}catch(g){return null}};
_.S.getAllResponseHeaders=function(){return this.JSC$7885_xhr_&&_.$$(this)>=2?this.JSC$7885_xhr_.getAllResponseHeaders()||"":""};
_.S.getLastError=function(){return typeof this.JSC$7885_lastError_==="string"?this.JSC$7885_lastError_:String(this.JSC$7885_lastError_)};var r5B=function(){};
r5B.prototype.send=function(g,r,E){r=r===void 0?function(){}:r;
E=E===void 0?function(){}:E;
w2c(g.url,function(B){B=B.target;B.isSuccess()?r(B.getResponseText()):E(B.getStatus())},g.requestType,g.body,g.requestHeaders,g.timeoutMillis,g.withCredentials)};
r5B.prototype.getTransmissionType=function(){return 1};var Kgn=function(g,r){this.xqm=g;this.event=r;this.startTime=Qr()},UDc;
Kgn.prototype.done=function(){this.xqm.yp(this.event,Qr()-this.startTime)};
var jw=function(){d5.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.f(jw,d5);_.Ae=function(g,r,E){var B=Qr();r=r();g.yp(E,Qr()-B);return r};
UDc=function(){jw.apply(this,arguments)};
_.f(UDc,jw);_.S=UDc.prototype;_.S.voO=function(){};
_.S.jJ=function(){};
_.S.yp=function(){};
_.S.logError=function(){};
_.S.be=function(){};
_.S.n5O=function(){};
_.S.uvt=function(){};
_.S.k3m=function(){};
var xOD=function(g){jw.call(this);var r=this;this.kZ=g;this.TEST_ONLY={jdp:function(){return r.kZ},
getExperimentIds:function(){return r.kZ.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void r.kZ.dispose()})};
_.f(xOD,jw);_.S=xOD.prototype;_.S.update=function(g){this.kZ.dispose();this.kZ=g};
_.S.jJ=function(g){this.kZ.jJ(g)};
_.S.yp=function(g,r){this.kZ.yp(g,r)};
_.S.logError=function(g){this.kZ.logError(g)};
_.S.be=function(){this.kZ.be()};
_.S.n5O=function(g){this.kZ.n5O(g)};
_.S.uvt=function(g){this.kZ.uvt(g)};
_.S.k3m=function(g){this.kZ.k3m(g)};
_.S.voO=function(g){this.kZ.voO(g)};
var a2b=function(g,r){_.f5.call(this);var E=this;this.callback=g;this.gM5=r;this.qa6=-r;this.addOnDisposeCallback(function(){return void clearTimeout(E.timer)})};
_.f(a2b,_.f5);var XuT=function(g){if(g.timer===void 0){var r=Math.max(0,g.qa6+g.gM5-Qr());g.timer=setTimeout(function(){try{g.callback()}finally{g.qa6=Qr(),g.timer=void 0}},r)}},NsD=function(g,r){jw.call(this);
this.metrics=g;this.hL=r};
_.f(NsD,jw);_.S=NsD.prototype;_.S.voO=function(g){this.metrics.pVm.record(g,this.hL)};
_.S.jJ=function(g){this.metrics.eventCount.increment(g,this.hL)};
_.S.yp=function(g,r){this.metrics.uhB.record(r,g,this.hL)};
_.S.logError=function(g){this.metrics.errorCount.increment(g,this.hL)};
_.S.n5O=function(g){this.metrics.nFz.increment(g,this.hL)};
_.S.uvt=function(g){this.metrics.sKm.increment(g,this.hL)};
_.S.k3m=function(g){this.metrics.kyt.increment(g,this.hL)};
var qxY=function(g,r){r=r===void 0?[]:r;var E={hL:g.hL||"_",j5f:g.j5f||[],b01:g.b01|0,destinationUrl:g.destinationUrl,disableClearcutCredentialBinding:g.disableClearcutCredentialBinding,xDY:g.xDY||function(){},
zmm:g.zmm||function(O,M){return OlP(O,M,E.xDY,E.destinationUrl,E.disableClearcutCredentialBinding)}},B=E.zmm("50",E.j5f.concat(r));
NsD.call(this,{pVm:new ntb(B),errorCount:new jAn(B),eventCount:new f4b(B),uhB:new $MD(B),i5j:new sAI(B),nFz:new A8U(B),sKm:new bDm(B),kyt:new J8T(B)},E.hL);var w=this;this.TEST_ONLY={getExperimentIds:function(){return w.options.j5f.concat(w.hAN).sort(function(O,M){return O-M})}};
this.options=E;this.service=B;this.er6=!g.zmm;this.flushDebouncer=new a2b(function(){return void w.service.snapshotAndFlush()},E.b01);
this.addOnDisposeCallback(function(){w.flushDebouncer.dispose();w.er6&&w.service.dispose()});
(this.hAN=r.slice()).sort(_.wA)};
_.f(qxY,NsD);qxY.prototype.be=function(){XuT(this.flushDebouncer)};var d5D=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(d5D,_.xu);_.TfX=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(_.TfX,_.xu);var L0=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g,0,L0.messageId)};
_.f(L0,_.xu);var I26=_.gs(L0);L0.messageId="bfkj";var M1S=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(M1S,_.xu);var eFV=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(eFV,_.xu);var mOw=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(mOw,_.xu);var caw=_.rs(mOw);_.uF=function(){var g=this;this.promise=new Promise(function(r,E){g.resolve=r;g.reject=E})};_.b8=function(g){_.f5.call(this);var r=this;this.m0t=Math.floor(Math.random()*200);this.pEh=new mOw;if("challenge"in g&&I26(g.challenge)){var E=_.jI(g.challenge,4,void 0,am);var B=_.jI(g.challenge,5,void 0,am);_.jI(g.challenge,7,void 0,am)&&(this.pEh=caw(_.jI(g.challenge,7,void 0,am)))}else E=g.program,B=g.globalName;this.addOnDisposeCallback(function(){var A,J,e;return _.q(function(C){if(C.nextAddress==1)return _.D(C,r.vdH,2);A=C.yieldResult;J=A.kfw;(e=J)==null||e();_.Q3(C)})});
this.e5=u2J(g.dfg||{},this.pEh);_.oO(this,this.e5);var w=new _.uF;this.vdH=w.promise;this.e5.jJ("t");var O=this.e5.share(),M=new Kgn(O,"t"),u=function(A,J,e,C){if(!r.e5.isDisposed()){var X="k";J?X="h":e&&(X="u");X!=="k"?C!==0&&(r.e5.jJ(X),r.e5.yp(X,A)):r.m0t<=0?(r.e5.jJ(X),r.e5.yp(X,A),r.m0t=Math.floor(Math.random()*200)):r.m0t--}},l=function(A,J,e,C){Promise.resolve().then(function(){M.done();
O.be();O.dispose();w.resolve({hI5:A,kfw:J,vgw:e,xQZ:C})})};
if(!_.ED[B])throw this.e5.logError(25),Error("Ha");if(!_.ED[B].a)throw this.e5.logError(26),Error("Ia");try{var Q=_.ED[B].a;B=[];for(var z=[],k=WKD(this.pEh),H=0;H<k.length;H++)B.push(k[H]),z.push(1);var R=CDl(this.pEh);for(k=0;k<R.length;k++)B.push(R[k]),z.push(2);this.v0I=_.U(Q(E,l,!0,g.aw7,u,[B,z],_.jI(this.pEh,5))).next().value;this.nrh=w.promise.then(function(){})}catch(A){throw this.e5.logError(28),A;
}};
_.f(_.b8,_.f5);_.b8.prototype.snapshot=function(g){if(this.isDisposed())throw Error("Ja");this.e5.jJ("n");var r=this.e5.share();return this.vdH.then(function(E){var B=E.hI5;return new Promise(function(w){var O=new Kgn(r,"n");B(function(M){O.done();r.voO(M.length);r.be();r.dispose();w(M)},[g.zp,
g.ykm,g.dFB,g.sY6])})})};
_.b8.prototype.sAq=function(g){this.vdH.then(function(r){var E;(E=r.vgw)==null||E(g)})};
_.b8.prototype.ynm=function(g,r){return this.vdH.then(function(E){var B;return(B=E.xQZ)==null?void 0:B(g,r,!1)})};
_.b8.prototype.kpf=function(){return this.e5.share()};var iIw=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(iIw,_.xu);var d_P=_.gs(iIw);var Lgw=function(){this.vFH={};this.agy=null},VyU=function(){Lgw.instance||(Lgw.instance=new Lgw);
return Lgw.instance},ZI6=function(g,r){return hjw(g,_.zP(r,d5D,1,am),_.zP(r,_.TfX,2,am),_.jI(r,3,void 0,am))},hjw=function(g,r,E,B){if(!r&&!E)return Promise.resolve();
if(!B)return QBl(r,E);var w;(w=g.vFH)[B]||(w[B]=new Promise(function(O,M){QBl(r,E).then(function(){g.agy=B;O()},function(u){delete g.vFH[B];
M(u)})}));
return g.vFH[B]};var yaT=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(yaT,_.xu);var vUI=function(g,r){return _.Vj(g,1,r)},dOT=function(g,r){return _.Vj(g,2,r)};var Je=function(g){_.f5.call(this);var r=this;this.options=g;this.ixm=new _.uF;this.nrh=this.ixm.promise;this.bFO=new _.uF;this.nTK=1;this.whF=new _.uF;this.yHm=[];this.s0m=g.s0m||function(){};
this.tdO=new xOD(u2J(g.dfg||{}));Tsw(this,g.gH,g.vJE,g.xRz,g.thm,Object.assign({},gf6,g.xo2||{}));this.addOnDisposeCallback(function(){return void r_T(r)})};
_.f(Je,_.f5);Je.prototype.snapshot=function(g){var r=this;return _.q(function(E){switch(E.nextAddress){case 1:if(r.isDisposed())throw Error("Ja");if(r.kb||r.t0i){E.jumpTo(2);break}return _.D(E,r.bFO.promise,2);case 2:if(!r.kb){E.jumpTo(4);break}return _.D(E,r.kb.snapshot(g),5);case 5:return E.return(E.yieldResult);case 4:throw r.t0i;}})};
var Efw=function(g){var r;return _.q(function(E){if(g.isDisposed())throw Error("Ja");(r=g.lI)!=null&&(r.endTimeMs=0,r.resolver(1));return _.D(E,g.whF.promise,0)})},r_T=function(g){g.t0i=Error("La");
g.bFO.resolve();KKL(g.ixm.promise);g.ixm.reject(Error("La"));g.tdO.dispose();Promise.all(g.yHm).then(function(){var E;return _.q(function(B){(E=g.kb)==null||E.dispose();g.kb=void 0;_.Q3(B)})});
g.yHm=[];var r;(r=g.lI)!=null&&(r.endTimeMs=0,r.resolver(1));KKL(g.whF.promise);g.whF.reject(Error("La"))};
Je.prototype.sAq=function(g){var r,E;(r=this.kb)==null||(E=r.sAq)==null||E.call(r,g)};
Je.prototype.ynm=function(g,r){var E,B,w;return(w=(E=this.kb)==null?void 0:(B=E.ynm)==null?void 0:B.call(E,g,r))!=null?w:Promise.resolve()};
var BhZ=function(g,r){var E=g.s0m;g.s0m=function(){E();r()}},wbn=function(g,r){g.isDisposed()||(g.kb=r,g.tdO.update(r.kpf()),g.bFO.resolve(),g.ixm.resolve(void 0),g.s0m())};
Je.prototype.handleError=function(g){if(!this.isDisposed()){this.t0i=g;this.bFO.resolve();var r,E;(E=(r=this.options).dmB)==null||E.call(r,g)}};
var Sm4=function(g,r){r&&(Promise.all(g.yHm).then(function(){return void r.dispose()}),g.yHm=[])},P2=function(g,r){g.nTK=r;
var E,B;(B=(E=g.options).tMj)==null||B.call(E,r)},O$z=function(g){g.isDisposed()||(g.whF.resolve(),g.whF=new _.uF)},Tsw=function(g,r,E,B,w,O){B=B===void 0?VyU():B;
w=w===void 0?Promise.resolve(void 0):w;var M,u,l,Q,z,k,H,R,A,J,e,C;_.q(function(X){switch(X.nextAddress){case 1:return _.D(X,0,3);case 3:u=null;if(!M){X.jumpTo(6);break}P2(g,7);_.qN(X,7);return _.D(X,RO(M.snapshot({}),O.b3V,function(){return Promise.resolve("E:CTO")}),9);
case 9:u=X.yieldResult;_.Ne(X,6);break;case 7:_.G2(X),u="E:UCE";case 6:l=void 0,Q=M?O.vBr:O.iP7,z=new uD(Q,O.bP7,O.eCZ,O.qor),k=1;case 10:if(!(k<=O.maxAttempts)){X.jumpTo(12);break}if(k===1){X.jumpTo(13);break}P2(g,0);g.lI=new UNZ(z.getValue(),O.v7Z,O.n77);return _.D(X,g.lI.promise,14);case 14:H=X.yieldResult,g.lI=void 0,H===1?(k=1,z.reset()):HtU(z);case 13:_.qN(X,15);R=void 0;if(E){R=E;X.jumpTo(17);break}P2(g,5);A=B.agy;return _.D(X,RO(MWw(r,A,u),O.bsJ,function(){return Promise.reject(Error("Ma"))}),
18);
case 18:R=X.yieldResult;case 17:return P2(g,3),_.D(X,RO(ZI6(B,R),O.nl6,function(){return Promise.reject(Error("Na"))}),19);
case 19:return P2(g,8),_.D(X,w,20);case 20:return J=new _.b8({challenge:R,dfg:g.options.dfg,aw7:g.options.aw7}),_.D(X,RO(J.nrh,O.bCt,function(){return Promise.reject(Error("Oa"))}),21);
case 21:l=J;X.jumpTo(12);break;case 15:e=_.G2(X),g.handleError(e),O$z(g);case 11:k++;X.jumpTo(10);break;case 12:if(g.isDisposed()){X.jumpTo(5);break}l&&(E=void 0,Sm4(g,M),M=l,wbn(g,l),O$z(g));P2(g,2);g.lI=new UNZ(O.vyV,O.v7Z,O.n77);return _.D(X,g.lI.promise,22);case 22:g.lI=void 0;if(g.isDisposed()){X.jumpTo(5);break}X.jumpTo(3);break;case 5:(C=M)==null||C.dispose(),_.Q3(X)}})};
Je.prototype.kpf=function(){return this.tdO.share()};
var gf6={vyV:432E5,v7Z:3E5,n77:10,b3V:1E4,bsJ:3E4,nl6:3E4,bCt:6E4,iP7:1E3,vBr:6E4,bP7:6E5,eCZ:.25,qor:2,maxAttempts:10},UNZ=function(g,r,E){var B=this;this.endTimeMs=Date.now()+g;this.promise=new Promise(function(O){B.resolver=O});
var w=function(){var O=B.endTimeMs-Date.now();O<=E?B.resolver(0):setTimeout(w,Math.min(O,r))};
w()};var qmT,HlX=(qmT=Math.imul)!=null?qmT:function(g,r){return g*r|0},n5=[196,
200,224,18],te=function(g,r,E){E=E===void 0?[]:E;this.maxItems=g;this.bR=r===void 0?0:r;this.aP=E},uzn=function(g){var r=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!r)return new te(g);var E=r.split(",");if(E.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new te(g);r=E.slice(1);r.length===1&&r[0]===""&&(r=[]);E=Number(E[0]);return isNaN(E)||E<0||E>r.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new te(g)):new te(g,E,r)};
te.prototype.serialize=function(){return String(this.bR)+","+this.aP.join()};
te.prototype.insert=function(g,r){var E=void 0;if(this.aP[this.bR]!==g){var B=this.aP.indexOf(g);B!==-1?(this.aP.splice(B,1),B<this.bR&&this.bR--,this.aP.splice(this.bR,0,g)):(E=this.aP[this.bR],this.aP[this.bR]=g)}this.bR=(this.bR+1)%this.maxItems;g=zoV("iU5q-!O9@$",this.serialize());E&&g&&r(E);return g};
var lDn=function(g,r){this.f57=r;try{var E=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(B){E=!1}E&&(this.index=uzn(g))},DNI=function(g,r,E,B,w){var O=g.index?_.Ae(g.f57,function(){return XpY(g.index,xDJ(r),E,B,w)},"W"):"u";
g.f57.k3m(O)},ofn=function(g,r,E){var B=_.U(g.index?_.Ae(g.f57,function(){return NBY(xDJ(r),E)},"R"):["u"]),w=B.next().value;
B=B.next().value;g.f57.uvt(w);return B};var G2I={toString:function(g){var r=[],E=0;g-=-2147483648;r[E++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(g%52);for(g=Math.floor(g/52);g>0;)r[E++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(g%62),g=Math.floor(g/62);return r.join("")}};var k2w=function(g){g=QFw(g);for(var r=2654435769,E=2654435769,B=314159265,w=g.length,O=w,M=0,u=function(){r-=E;r-=B;r^=B>>>13;E-=B;E-=r;E^=r<<8;B-=r;B-=E;B^=E>>>13;r-=E;r-=B;r^=B>>>12;E-=B;E-=r;E^=r<<16;B-=r;B-=E;B^=E>>>5;r-=E;r-=B;r^=B>>>3;E-=B;E-=r;E^=r<<10;B-=r;B-=E;B^=E>>>15};O>=12;O-=12,M+=12)r+=zTT(g,M),E+=zTT(g,M+4),B+=zTT(g,M+8),u();
B+=w;switch(O){case 11:B+=g[M+10]<<24;case 10:B+=g[M+9]<<16;case 9:B+=g[M+8]<<8;case 8:E+=g[M+7]<<24;case 7:E+=g[M+6]<<16;case 6:E+=g[M+5]<<8;case 5:E+=g[M+4];case 4:r+=g[M+3]<<24;case 3:r+=g[M+2]<<16;case 2:r+=g[M+1]<<8;case 1:r+=g[M]}u();return G2I.toString(B)},QFw=function(g){for(var r=[],E=0;E<g.length;E++)r.push(g.charCodeAt(E));
return r},zTT=function(g,r){return g[r]+(g[r+1]<<8)+(g[r+2]<<16)+(g[r+3]<<24)};var H$Z,F5=function(g){_.f5.call(this);this.fi=g;this.bli=new _.uF;this[H$Z]=this.dispose};
_.f(F5,_.f5);var pb4=function(g,r){var E=setTimeout(function(){g.bli.resolve()},r);
g.addOnDisposeCallback(function(){return void clearTimeout(E)})};
F5.prototype.fqy=function(g,r){var E=this.mM(g);r==null||r(E);return _.Ae(this.fi,function(){return _.gk(E,2)},this.kOf)};
var Ymm=function(g,r,E,B){return _.Ae(g.fi,function(){return E?g.fqy(r,B):g.mM(r,B)},g.qyO)};
H$Z=Symbol.dispose;var RTZ=function(g,r,E,B){F5.call(this,g);this.l2B=r;this.j2J=E;this.qyO="m";this.kOf="x";this.s2Z=0;pb4(this,B)};
_.f(RTZ,F5);RTZ.prototype.mM=function(g,r){var E=this;this.fi.jJ(this.qyO);++this.s2Z>=this.j2J&&this.bli.resolve();var B=g();g=_.Ae(this.fi,function(){return E.l2B(B)},"C");
if(g===void 0)throw new yW(17,"YNJ:Undefined");if(!(g instanceof Uint8Array))throw new yW(18,"ODM:Invalid");r==null||r(g);return g};
var nfn=function(g,r,E){F5.call(this,g);this.qIZ=r;this.qyO="f";this.kOf="z";pb4(this,E)};
_.f(nfn,F5);nfn.prototype.mM=function(){return this.qIZ};
var sF4=function(g,r,E){F5.call(this,g);this.fYB=r;this.qyO="w";this.kOf="z";pb4(this,E)};
_.f(sF4,F5);sF4.prototype.mM=function(){var g=this;return _.Ae(this.fi,function(){return _.Mz(g.fYB)},"d")};
sF4.prototype.fqy=function(){return this.fYB};
var fDw=function(g,r){F5.call(this,g);this.error=r;this.qyO="e";this.kOf="y"};
_.f(fDw,F5);var $NT=function(g,r){var E=(r(g.error.message)+":"+r(g.error.stack)).substring(0,2048);r=E.length+1;E=Ikc(E);var B=new Uint8Array(4+E.length);B.set([42,r&127|128,r>>7,g.error.code]);B.set(E,4);return B};
fDw.prototype.mM=function(){if(this.znK)return this.znK;this.znK=$NT(this,function(g){return"_"+k2w(g)});
return $NT(this,function(g){return g})};
var jF4=function(g,r,E){F5.call(this,g);this.tMB=r;this.clientState=E;this.qyO="S";this.kOf="q"};
_.f(jF4,F5);jF4.prototype.mM=function(){var g=Math.floor(Date.now()/1E3),r=[Math.random()*255,Math.random()*255],E=r.concat([this.tMB&255,this.clientState],[g>>24&255,g>>16&255,g>>8&255,g&255]);g=new Uint8Array(2+E.length);g[0]=34;g[1]=E.length;g.set(E,2);E=g.subarray(2);for(var B=r=r.length;B<E.length;++B)E[B]^=E[B%r];this.fi.n5O(this.clientState);return g};var A_A={oUB:3E4,lhu:2E4},ew=function(g){_.f5.call(this);var r=this;this.sGR=new _.uF;this.eSO=0;this.rH=void 0;this.state=2;this.hm=g.hm;this.gH=g.gH;this.xo2=Object.assign({},A_A,g.xo2||{});this.hH=g.hm.kpf();var E;this.onError=(E=g.onError)!=null?E:function(){};
this.vWm=g.vWm||!1;if(b$m(g)){var B=this.hm;this.jHo=function(){return Efw(B).catch(function(M){M=r.reportError(new yW(r.x3?20:32,"TRG:Disposed",M));r.rH=M;var u;(u=r.x3)==null||u.dispose();r.x3=void 0;r.sGR.reject(M)})};
BhZ(B,function(){return void J_b(r)});
B.nTK===2&&J_b(this)}else this.jHo=g.i2j,J_b(this);var w=this.hH.share();w.jJ("o");var O=new Kgn(w,"o");this.sGR.promise.then(function(){O.done();w.be();w.dispose()},function(){return void w.dispose()});
this.addOnDisposeCallback(function(){r.x3?(r.x3.dispose(),r.x3=void 0):r.rH?r.hH.be():(r.rH=r.reportError(new yW(32,"TNP:Disposed")),r.hH.be(),r.sGR.reject(r.rH))});
_.oO(this,this.hH)};
_.f(ew,_.f5);ew.prototype.qyT=function(){return this.sGR.promise};
var PYU=function(g,r){if(!(r instanceof yW))if(r instanceof _.nc){var E=Error(r.toString());E.stack=r.stack;r=new yW(11,"EBH:Error",E)}else r=new yW(12,"BSO:Unknown",r);return g.reportError(r)},J_b=function(g){var r,E,B,w,O,M,u,l,Q,z,k,H,R,A,J;
return _.q(function(e){switch(e.nextAddress){case 1:r=void 0;g.eSO++;E=new _.uF;g.hm instanceof Je&&g.hm.yHm.push(E.promise);if(!g.vWm){e.jumpTo(2);break}B=new _.uF;setTimeout(function(){return void B.resolve()});
return _.D(e,B.promise,2);case 2:return w=g.hH.share(),_.qN(e,4,5),g.state=5,O={},M=[],_.D(e,RO(g.hm.snapshot({zp:O,dFB:M}),g.xo2.lhu,function(){return Promise.reject(new yW(15,"MDA:Timeout"))}),7);
case 7:u=e.yieldResult;if(g.isDisposed())throw new yW(g.x3?20:32,"MDA:Disposed");l=M[0];g.state=6;return _.D(e,RO(tWw(g.gH,u),g.xo2.oUB,function(){return Promise.reject(new yW(10,"BWB:Timeout"))}),8);
case 8:Q=e.yieldResult;if(g.isDisposed())throw new yW(g.x3?20:32,"BWB:Disposed");g.state=7;r=_.Ae(w,function(){var X=Fr4(g,Q,E,l);X.bli.promise.then(function(){return void g.jHo()});
return X},"i");
case 5:_.uY(e);w.dispose();_.oF(e,6);break;case 4:z=_.G2(e);(k=r)==null||k.dispose();if(!g.rH){H=PYU(g,z);E.resolve();var C;if(C=g.hm instanceof Je&&g.eSO<2)a:if(z instanceof yW)C=z.code!==32&&z.code!==20&&z.code!==10;else{if(z instanceof _.nc)switch(z.code){case 2:case 13:case 14:case 4:break;default:C=!1;break a}C=!0}if(C)return R=(1+Math.random()*.25)*(g.x3?6E4:1E3),A=setTimeout(function(){return void g.jHo()},R),g.addOnDisposeCallback(function(){return void clearTimeout(A)}),e.return();
g.rH=H}w.logError(g.x3?13:14);g.sGR.reject(g.rH);return e.return();case 6:g.state=8,g.eSO=0,(J=g.x3)==null||J.dispose(),g.x3=r,g.sGR.resolve(),_.Q3(e)}})},Fr4=function(g,r,E,B){var w=oEt(r,2)*1E3;
if(w<=0)throw new yW(31,"TTM:Invalid");if(_.jI(r,4))return new sF4(g.hH,_.jI(r,4),w);if(!oEt(r,3))return new nfn(g.hH,y4c(_.k2(r,1)),w);if(!B)throw new yW(4,"PMD:Undefined");B=B(y4c(_.k2(r,1)));if(!(B instanceof Function))throw new yW(16,"APF:Failed");g.lVZ=Math.floor((Date.now()+w)/1E3);g=new RTZ(g.hH,B,oEt(r,3),w);g.addOnDisposeCallback(function(){return void E.resolve()});
return g};
ew.prototype.mM=function(g){return eTZ(this,Object.assign({},g),!1)};
ew.prototype.fqy=function(g){return eTZ(this,Object.assign({},g),!0)};
ew.prototype.o4i=function(g){if(g>150)return!1;try{return this.cache=new lDn(g,this.hH),!0}catch(r){return this.reportError(new yW(22,"GBJ:init",r)),!1}};
ew.prototype.reportError=function(g){this.hH.logError(g.code);this.onError(g);return g};
var WrZ=function(g,r){r=r instanceof yW?r:new yW(5,"TVD:error",r);return g.reportError(r)},eTZ=function(g,r,E){try{if(g.isDisposed())throw new yW(21,"BNT:disposed");
if(!g.x3&&g.rH)throw g.rH;var B,w;return(w=(B=CYD(g,r,E))!=null?B:KrD(g,r,E))!=null?w:xNw(g,r,E)}catch(O){if(!r.mGi)throw WrZ(g,O);return aDU(g,E,O)}},CYD=function(g,r,E){var B;
return(B=g.x3)==null?void 0:Ymm(B,function(){return XbZ(g,r)},E,function(w){var O;
if(g.x3 instanceof RTZ&&((O=r.mb)==null?0:O.lsJ))try{var M;(M=g.cache)==null||DNI(M,XbZ(g,r),w,r.mb.r0g,g.lVZ-120)}catch(u){g.reportError(new yW(24,"ELX:write",u))}})},KrD=function(g,r,E){var B;
if((B=r.mb)!=null&&B.rxy)try{var w,O=(w=g.cache)==null?void 0:ofn(w,XbZ(g,r),r.mb.r0g);return O?E?_.Ae(g.hH,function(){return _.gk(O,2)},"a"):O:void 0}catch(M){g.reportError(new yW(23,"RXO:read",M))}},xNw=function(g,r,E){var B={stack:[],
error:void 0,hasError:!1};try{if(!r.nmx)throw new yW(29,"SDF:notready");return Ymm(gdL(B,new jF4(g.hH,0,g.state)),function(){return XbZ(g,r)},E)}catch(w){B.error=w,B.hasError=!0}finally{r4c(B)}},aDU=function(g,r,E){var B={stack:[],
error:void 0,hasError:!1};try{var w=WrZ(g,E);return Ymm(gdL(B,new fDw(g.hH,w)),function(){return[]},r)}catch(O){B.error=O,B.hasError=!0}finally{r4c(B)}},XbZ=function(g,r){return r.m4Y?r.m4Y:r.zp?_.Ae(g.hH,function(){return r.m4Y=Ikc(r.zp)},"c"):[]},b$m=function(g){return mn(function(r){if(!Bp(r))return!1;
for(var E=_.U(Object.entries(g)),B=E.next();!B.done;B=E.next()){var w=_.U(B.value);B=w.next().value;w=w.next().value;if(!(B in r)){if(w.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!w(r[B]))return!1}return!0})}({hm:function(g){return mn(function(r){return r instanceof g})}(Je)},"");var NhI=function(){var g=_.OP();this.JSC$8005_streamzService=g;g.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",OR("cookie_enabled"),OR("cookie_3p_enabled"),_.Md("browser"))};
NhI.prototype.increment=function(g,r,E){this.JSC$8005_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",g,r,E)};
var Q9S=function(){var g=_.OP();this.JSC$8029_streamzService=g;g.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",UR("tick"),OR("from_st_cookie"))};
Q9S.prototype.increment=function(g,r){this.JSC$8029_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",g,r)};
var IDZ=function(){var g=_.OP();this.JSC$8035_streamzService=g;g.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.Md("status"))};
IDZ.prototype.increment=function(g){this.JSC$8035_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",g)};
var mNA=function(){var g=_.OP();this.JSC$8038_streamzService=g;g.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.Md("stage"),OR("is_using_ytd_player"),OR("has_expandable_tiles"))};
mNA.prototype.increment=function(g,r,E){this.JSC$8038_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",g,r,E)};
var c_6=function(){var g=_.OP();this.JSC$8041_streamzService=g;g.addNewCounter("/client_streamz/youtube/web/response_signature",_.Md("check_status"))};
c_6.prototype.increment=function(g){this.JSC$8041_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/web/response_signature",g)};
var i$n=function(){var g=_.OP();this.JSC$8044_streamzService=g;g.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.Md("sig"),UR("de"))};
i$n.prototype.increment=function(g,r){this.JSC$8044_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/web/e_sig_log",g,r)};
var LrI=function(){var g=_.OP();this.JSC$8047_streamzService=g;g.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.Md("sig"),UR("de"))};
LrI.prototype.increment=function(g,r){this.JSC$8047_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/web/e_sig_en",g,r)};
_.VWn=function(){var g=_.OP();this.JSC$8050_streamzService=g;g.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.Md("action"))};
_.VWn.prototype.increment=function(g){this.JSC$8050_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/web/enforcement_intent",g)};var W2=window;var hTn=(new Date).getTime();var Z$D=function(g){this.servicePromise_=g;g.then((0,_.$r)(function(){},this),function(){},this)},y_A=function(g,r,E){g.servicePromise_.then(function(B){var w=B[r];
if(!w)throw Error("Pa`"+r);return w.apply(B,E)})},ThD=function(g,r,E){for(var B=Array(arguments.length-2),w=2;w<arguments.length;w++)B[w-2]=arguments[w];
w=vfw(g,r).then(function(O){return O.apply(null,B)},function(O){O=Error("Qa`"+r+"`"+g,{cause:O});
delete dNZ[r];return _.bV(O)});
return new Z$D(w)},dNZ={},vfw=function(g,r){var E=dNZ[r];
if(E)return E;E=(E=_.XS(r))?_.lq(E):(new _.D8(function(B,w){var O=(new Hg(document)).createElement("SCRIPT");O.async=!0;_.mg(O,_.qO(ct6(g)));O.onload=O.onreadystatechange=function(){O.readyState&&O.readyState!="loaded"&&O.readyState!="complete"||B()};
O.onerror=function(M){w(Error("Ra`"+r+"`"+g,{cause:M}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(O)})).then(function(){var B=_.XS(r);
if(!B)throw Error("Sa`"+r+"`"+g);return B});
return dNZ[r]=E};var gY6={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},EYI=function(){var g=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=mDY(function(){return _.q(function(r){if(r.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?r.return(Promise.resolve()):_.D(r,rLw(g),2);g.rsaForList.length>
0&&document.addEventListener("click",g.requestAccessForHelpPanel);_.Q3(r)})});
this.requestAccessForHelpPanel=function(){if(!(g.rsaForPromises.length>0)){for(var r=_.U(g.rsaForList),E=r.next();!E.done;E=r.next()){E=E.value;try{g.rsaForPromises.push(document.requestStorageAccessFor(E))}catch(B){}}Promise.all(g.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){g.reset()})}}};
EYI.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var rLw=function(g){var r,E,B,w;return _.q(function(O){switch(O.nextAddress){case 1:r=_.U(Object.values(gY6)),E=r.next();case 2:if(E.done){O.jumpTo(0);break}B=E.value;_.qN(O,5);return _.D(O,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:B}),7);case 7:w=O.yieldResult;w.state!=="granted"&&g.rsaForList.push(B);_.Ne(O,3);break;case 5:_.G2(O);O.jumpTo(0);break;case 3:E=r.next(),O.jumpTo(2)}})};(new EYI).initialize();var BFw=function(g){this.JSC$8064_loader_=g};
BFw.prototype.startHelp=function(g){y_A(this.JSC$8064_loader_,"startHelp",arguments)};
BFw.prototype.JSC$8066_loadChatSupport=function(g){y_A(this.JSC$8064_loader_,"loadChatSupport",arguments)};
var SYw=function(g,r){r=r||{};g=ThD(w$D,"help.service.Lazy.create",g,{apiKey:r.apiKey||r.apiKey,asxUiUri:r.asxUiUri||r.asxUiUri,environment:r.environment||r.environment,flow:r.flow||r.flow,frdProductData:r.frdProductData||r.frdProductData,frdProductDataSerializedJspb:r.frdProductDataSerializedJspb||r.frdProductDataSerializedJspb,helpCenterPath:r.helpCenterPath||r.helpCenterPath,locale:r.locale||r.locale||"en-US".replace(/-/g,"_"),nonce:r.nonce||r.nonce,productData:r.productData||r.productData,receiverUri:r.receiverUri||
r.receiverUri,renderApiUri:r.renderApiUri||r.renderApiUri,theme:r.theme||r.theme,window:r.window||r.window});return new BFw(g)},w$D=new CC(Y2A,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var ONU=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(ONU,_.xu);var U06=_.rs(ONU);_.MnZ=new function(g,r,E,B){this.configType=g;this.flagName=E;this.defaultValue=B;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 umw=function(){this.retriever=_.rM().resolve(qYn)};ilt(Node);ilt(Element);var lbn=ilt(HTMLElement);ilt(SVGElement);var D0A,oY4,x$,GMw;D0A=function(g){return typeof g.className=="string"?g.className:g.getAttribute&&g.getAttribute("class")||""};
oY4=function(g){return g.classList?g.classList:D0A(g).match(/\S+/g)||[]};
_.Cc=function(g,r){typeof g.className=="string"?g.className=r:g.setAttribute&&g.setAttribute("class",r)};
_.Kc=function(g,r){return g.classList?g.classList.contains(r):_.mA(oY4(g),r)};
_.dL=function(g,r){if(g.classList)g.classList.add(r);else if(!_.Kc(g,r)){var E=D0A(g);_.Cc(g,E+(E.length>0?" "+r:r))}};
x$=function(g,r){if(g.classList)Array.prototype.forEach.call(r,function(w){_.dL(g,w)});
else{var E={};Array.prototype.forEach.call(oY4(g),function(w){E[w]=!0});
Array.prototype.forEach.call(r,function(w){E[w]=!0});
r="";for(var B in E)r+=r.length>0?" "+B:B;_.Cc(g,r)}};
_.yy=function(g,r){g.classList?g.classList.remove(r):_.Kc(g,r)&&_.Cc(g,Array.prototype.filter.call(oY4(g),function(E){return E!=r}).join(" "))};
GMw=function(g,r){g.classList?Array.prototype.forEach.call(r,function(E){_.yy(g,E)}):_.Cc(g,Array.prototype.filter.call(oY4(g),function(E){return!_.mA(r,E)}).join(" "))};var QQD=function(g){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=g.document},HN6=function(g,r){zED(g);
var E=document.createElement("div"),B;(B=r.parentNode)==null||B.insertBefore(E,r);E.tabIndex=0;E.id="fc-focus-trap-pre-div";E=document.createElement("div");var w;(w=r.parentNode)==null||w.insertBefore(E,r.nextSibling);E.tabIndex=0;E.id="fc-focus-trap-post-div";var O=kM4(g,r),M=kM4(g,r,!0);O&&M&&(g.focusChangeHandler=function(){var u=g.document.activeElement;if(u)if(_.Nd(r,u))g.previouslyFocusedElement=u;else if(u===g.document.activeElement)switch(g.previouslyFocusedElement){case O:M.focus();g.previouslyFocusedElement=
M;break;default:O.focus(),g.previouslyFocusedElement=O}},g.document.addEventListener("focus",g.focusChangeHandler,!0),g.document.addEventListener("focusin",g.focusChangeHandler))},zED=function(g){g.focusChangeHandler&&(document.removeEventListener("focus",g.focusChangeHandler,!0),document.removeEventListener("focusin",g.focusChangeHandler),g.focusChangeHandler=null);
var r;(r=document.getElementById("fc-focus-trap-pre-div"))==null||r.remove();var E;(E=document.getElementById("fc-focus-trap-post-div"))==null||E.remove()},p$U=function(g,r,E,B,w){E=E===void 0?!0:E;
var O;w=(O=w===void 0?null:w)!=null?O:kM4(g,r,B===void 0?!1:B);w!==null&&(w.focus(),E&&HN6(g,r))};
QQD.prototype.disableButton=function(g,r){r=r===void 0?null:r;g.disabled=!0;r&&_.dL(g,r)};
var kM4=function(g,r,E){E=E===void 0?!1:E;if(a1V(r)&&!E)return r;var B=E?[].slice.call(r.children,0).reverse():r.children;B=_.U(B);for(var w=B.next();!w.done;w=B.next())if(w=w.value,lbn(w)&&(w=kM4(g,w,E)))return w;return a1V(r)&&E?r:null};var YYA=function(g){this.originalBodyOverflow="";this.JSC$8090_domHelper=kY(g)};
YYA.prototype.enableScrolling=function(){this.JSC$8090_domHelper.JSC$7414_document_.body.style.overflow=this.originalBodyOverflow};_.rc(_.jL,_.f5);_.S=_.jL.prototype;_.S.JSC$8093_id_=0;_.S.disposeInternal=function(){_.jL.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$8091_listener_;delete this.handler_};
_.S.start=function(g){this.stop();this.JSC$8093_id_=Rw(this.callback_,g!==void 0?g:this.JSC$8091_interval_)};
_.S.stop=function(){this.isActive()&&_.ED.clearTimeout(this.JSC$8093_id_);this.JSC$8093_id_=0};
_.S.fire=function(){this.stop();this.JSC$8093_doAction_()};
_.S.isActive=function(){return this.JSC$8093_id_!=0};
_.S.JSC$8093_doAction_=function(){this.JSC$8093_id_=0;this.JSC$8091_listener_&&this.JSC$8091_listener_.call(this.handler_)};_.EQ=function(g){_.f5.call(this);this.handler_=g;this.JSC$8094_keys_={}};
_.rc(_.EQ,_.f5);var RED=[];_.EQ.prototype.listen=function(g,r,E,B){Array.isArray(r)||(r&&(RED[0]=r.toString()),r=RED);for(var w=0;w<r.length;w++){var O=_.j_(g,r[w],E||this.handleEvent,B||!1,this.handler_||this);if(!O)break;this.JSC$8094_keys_[O.key]=O}return this};
_.EQ.prototype.listenOnce=function(g,r,E,B){return nYm(this,g,r,E,B)};
var nYm=function(g,r,E,B,w,O){if(Array.isArray(E))for(var M=0;M<E.length;M++)nYm(g,r,E[M],B,w,O);else{r=nW(r,E,B||g.handleEvent,w,O||g.handler_||g);if(!r)return g;g.JSC$8094_keys_[r.key]=r}return g};
_.EQ.prototype.unlisten=function(g,r,E,B,w){if(Array.isArray(r))for(var O=0;O<r.length;O++)this.unlisten(g,r[O],E,B,w);else if(g=LpT(g,r,E||this.handleEvent,_.gA(B)?!!B.capture:!!B,w||this.handler_||this))s2(g),delete this.JSC$8094_keys_[g.key];return this};
_.EQ.prototype.removeAll=function(){_.jn.forEach(this.JSC$8094_keys_,function(g,r){this.JSC$8094_keys_.hasOwnProperty(r)&&s2(g)},this);
this.JSC$8094_keys_={}};
_.EQ.prototype.disposeInternal=function(){_.EQ.superClass_.disposeInternal.call(this);this.removeAll()};
_.EQ.prototype.handleEvent=function(){throw Error("Ta");};var aw=function(){_.f5.call(this);this.services_={}};
_.rc(aw,_.f5);aw.prototype.connect=function(g){g&&g()};
aw.prototype.isConnected=function(){return!0};
aw.prototype.registerService=function(g,r,E){this.services_[g]={callback:r,objectPayload:!!E}};
aw.prototype.getService=function(g,r){var E=this.services_[g];return E?E:this.defaultService_?{callback:_.Hk(this.defaultService_,g),objectPayload:_.gA(r)}:null};
var sQ4=function(g,r){if(r&&typeof g==="string")try{return JSON.parse(g)}catch(E){return null}else if(!r&&typeof g!=="string")return(0,_.sG)(g);return g};
aw.prototype.disposeInternal=function(){aw.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 X5=function(g,r){this.sequence_=[];this.onCancelFunction_=g;this.defaultScope_=r||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};
X5.prototype.cancel=function(g){if(this.fired_)this.result_ instanceof X5&&this.result_.cancel();else{if(this.parent_){var r=this.parent_;delete this.parent_;g?r.cancel(g):(r.branches_--,r.branches_<=0&&r.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new Nn(this))}};
X5.prototype.continue_=function(g,r){this.blocked_=!1;fbw(this,g,r)};
var fbw=function(g,r,E){g.fired_=!0;g.result_=E;g.hadError_=!r;$0D(g)},ALm=function(g){if(g.fired_){if(!g.silentlyCanceled_)throw new jQD(g);
g.silentlyCanceled_=!1}};
X5.prototype.callback=function(g){ALm(this);fbw(this,!0,g)};
X5.prototype.errback=function(g){ALm(this);fbw(this,!1,g)};
var bNU=function(g,r,E){Iw(g,r,null,E)};
X5.prototype.finally=function(g){var r=this;return new Promise(function(E,B){Iw(r,function(w){g();E(w)},function(w){g();
B(w)})})};
var Iw=function(g,r,E,B){var w=g.fired_;w||(r===E?r=E=k$(r):(r=k$(r),E=k$(E)));g.sequence_.push([r,E,B]);w&&$0D(g)};
X5.prototype.then=function(g,r,E){var B,w,O=new _.D8(function(M,u){w=M;B=u});
Iw(this,w,function(M){M instanceof Nn?O.cancel():B(M);return JLw},this);
return O.then(g,r,E)};
gUA(X5);var POw=function(g,r){r instanceof X5?bNU(g,(0,_.$r)(r.branch,r)):bNU(g,function(){return r})};
X5.prototype.branch=function(g){var r=new X5;Iw(this,r.callback,r.errback,r);g&&(r.parent_=this,this.branches_++);return r};
X5.prototype.isError=function(g){return g instanceof Error};
var tnA=function(g){return V2(g.sequence_,function(r){return typeof r[1]==="function"})},JLw={},$0D=function(g){if(g.unhandledErrorId_&&g.fired_&&tnA(g)){var r=g.unhandledErrorId_,E=F_U[r];
E&&(_.ED.clearTimeout(E.JSC$8111_id_),delete F_U[r]);g.unhandledErrorId_=0}g.parent_&&(g.parent_.branches_--,delete g.parent_);r=g.result_;for(var B=E=!1;g.sequence_.length&&!g.blocked_;){var w=g.sequence_.shift(),O=w[0],M=w[1];w=w[2];if(O=g.hadError_?M:O)try{var u=O.call(w||g.defaultScope_,r);u===JLw&&(u=void 0);u!==void 0&&(g.hadError_=g.hadError_&&(u==r||g.isError(u)),g.result_=r=u);if(raU(r)||typeof _.ED.Promise==="function"&&r instanceof _.ED.Promise)B=!0,g.blocked_=!0}catch(l){r=l,g.hadError_=
!0,tnA(g)||(E=!0)}}g.result_=r;B&&(u=(0,_.$r)(g.continue_,g,!0),B=(0,_.$r)(g.continue_,g,!1),r instanceof X5?(Iw(r,u,B),r.blocking_=!0):r.then(u,B));E&&(r=new eEz(r),F_U[r.JSC$8111_id_]=r,g.unhandledErrorId_=r.JSC$8111_id_)},jQD=function(){_.gl.call(this)};
_.rc(jQD,_.gl);jQD.prototype.message="Deferred has already fired";jQD.prototype.name="AlreadyCalledError";var Nn=function(){_.gl.call(this)};
_.rc(Nn,_.gl);Nn.prototype.message="Deferred was canceled";Nn.prototype.name="CanceledError";var eEz=function(g){this.JSC$8111_id_=_.ED.setTimeout((0,_.$r)(this.throwError,this),0);this.JSC$8111_error_=g};
eEz.prototype.throwError=function(){delete F_U[this.JSC$8111_id_];throw this.JSC$8111_error_;};
var F_U={};var W_m={1:"NativeMessagingTransport"},COT=["pu","lru","pru","lpu","ppu"],x0m=function(){for(var g=10,r=K_b,E=r.length,B="";g-- >0;)B+=r.charAt(Math.floor(Math.random()*E));return B},K_b="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var mC=function(g){_.f5.call(this);this.JSC$8114_domHelper_=g||kY()};
_.rc(mC,_.f5);mC.prototype.transportType=0;mC.prototype.getWindow=function(){return this.JSC$8114_domHelper_.getWindow()};
mC.prototype.getName=function(){return W_m[String(this.transportType)]||""};var c2=function(g,r,E,B,w){mC.call(this,E);this.JSC$8117_channel_=g;this.protocolVersion_=w||2;this.peerHostname_=r||"*";this.JSC$8117_eventHandler_=new _.EQ(this);this.maybeAttemptToConnectTimer_=new _.rU(100,this.getWindow());this.oneSidedHandshake_=!!B;this.setupAckReceived_=new X5;this.setupAckSent_=new X5;this.JSC$8117_connected_=new X5;this.endpointId_=x0m();this.peerEndpointId_=null;this.oneSidedHandshake_?abn(this.JSC$8117_channel_)==1?POw(this.JSC$8117_connected_,this.setupAckReceived_):
POw(this.JSC$8117_connected_,this.setupAckSent_):(POw(this.JSC$8117_connected_,this.setupAckReceived_),this.protocolVersion_==2&&POw(this.JSC$8117_connected_,this.setupAckSent_));bNU(this.JSC$8117_connected_,this.notifyConnected_,this);this.JSC$8117_connected_.callback(!0);this.JSC$8117_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.rc(c2,mC);c2.prototype.peerProtocolVersion_=null;c2.prototype.initialized_=!1;c2.prototype.transportType=1;var X$b={};c2.prototype.sendTimerId_=0;
var m04=function(g){var r=g.event_.data;if(typeof r!=="string")return!1;var E=r.indexOf("|"),B=r.indexOf(":");if(E==-1||B==-1)return!1;var w=r.substring(0,E);E=r.substring(E+1,B);r=r.substring(B+1);if(B=i8[w])return B.xpcDeliver(E,r,g.event_.origin),!0;B=NFU(r)[0];for(var O in i8){var M=i8[O];if(abn(M)==1&&!M.isConnected()&&E=="tp"&&(B=="SETUP"||B=="SETUP_NTPV2")&&Ibw(M,g.event_.origin))return delete i8[M.name],M.name=w,i8[w]=M,M.xpcDeliver(E,r),!0}return!1},cLz=function(g){g.protocolVersion_!=2||
g.peerProtocolVersion_!=null&&g.peerProtocolVersion_!=2||g.send("tp","SETUP_NTPV2,"+g.endpointId_);
g.peerProtocolVersion_!=null&&g.peerProtocolVersion_!=1||g.send("tp","SETUP")},iNn=function(g,r){if(g.protocolVersion_!=2||g.peerProtocolVersion_!=null&&g.peerProtocolVersion_!=2||r!=2){if(g.peerProtocolVersion_!=null&&g.peerProtocolVersion_!=1||r!=1)return;
g.send("tp","SETUP_ACK")}else g.send("tp","SETUP_ACK_NTPV2");g.setupAckSent_.fired_||g.setupAckSent_.callback(!0)},L_z=function(g,r){r>g.peerProtocolVersion_&&(g.peerProtocolVersion_=r);
g.peerProtocolVersion_==1&&(g.setupAckSent_.fired_||g.oneSidedHandshake_||g.setupAckSent_.callback(!0),g.peerEndpointId_=null)};
_.S=c2.prototype;_.S.connect=function(){var g=this.getWindow(),r=_.Ew(g),E=X$b[r];typeof E!=="number"&&(E=0);E==0&&_.j_(g.postMessage?g:g.document,"message",m04,!1,c2);X$b[r]=E+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.S.maybeAttemptToConnect_=function(){var g=abn(this.JSC$8117_channel_)==0;this.oneSidedHandshake_&&g||this.JSC$8117_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),cLz(this))};
_.S.send=function(g,r){var E=this.JSC$8117_channel_.peerWindowObject_;E&&(this.send=function(B,w){var O=this,M=this.JSC$8117_channel_.name;this.sendTimerId_=Rw(function(){O.sendTimerId_=0;try{var u=E.postMessage?E:E.document;u.postMessage&&u.postMessage(M+"|"+B+":"+w,O.peerHostname_)}catch(l){}},0)},this.send(g,r))};
_.S.notifyConnected_=function(){var g=this.JSC$8117_channel_,r=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;g.isConnected()||g.connectionDelay_&&g.connectionDelay_.isActive()||(g.state_=2,_.TM(g.connectionDelay_),r!==void 0?(g.connectionDelay_=new _.jL(g.connectCb_,r),g.connectionDelay_.start()):(g.connectionDelay_=null,g.connectCb_()))};
_.S.disposeInternal=function(){if(this.initialized_){var g=this.getWindow(),r=_.Ew(g),E=X$b[r];X$b[r]=E-1;E==1&&_.Qu(g.postMessage?g:g.document,"message",m04,!1,c2)}this.sendTimerId_&&(_.ED.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.TM(this.JSC$8117_eventHandler_);delete this.JSC$8117_eventHandler_;_.TM(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$8117_connected_.cancel();delete this.JSC$8117_connected_;delete this.send;c2.superClass_.disposeInternal.call(this)};
var NFU=function(g){g=g.split(",");g[1]=g[1]||null;return g};var hEn;_.Lc=function(g){if(g.getValues&&typeof g.getValues=="function")return g.getValues();if(typeof Map!=="undefined"&&g instanceof Map||typeof Set!=="undefined"&&g instanceof Set)return Array.from(g.values());if(typeof g==="string")return g.split("");if(_.vJ(g)){for(var r=[],E=g.length,B=0;B<E;B++)r.push(g[B]);return r}return _.jn.getValues(g)};
_.Vnz=function(g){if(g.getKeys&&typeof g.getKeys=="function")return g.getKeys();if(!g.getValues||typeof g.getValues!="function"){if(typeof Map!=="undefined"&&g instanceof Map)return Array.from(g.keys());if(!(typeof Set!=="undefined"&&g instanceof Set)){if(_.vJ(g)||typeof g==="string"){var r=[];g=g.length;for(var E=0;E<g;E++)r.push(E);return r}return _.jn.getKeys(g)}}};
hEn=function(g,r,E){if(g.forEach&&typeof g.forEach=="function")g.forEach(r,E);else if(_.vJ(g)||typeof g==="string")Array.prototype.forEach.call(g,r,E);else for(var B=_.Vnz(g),w=_.Lc(g),O=w.length,M=0;M<O;M++)r.call(E,w[M],B&&B[M],g)};var pYJ,Te,rj,rym,ZNU,vYT,yLI,grm,d0D;
_.Vk=function(g,r){this.JSC$8122_domain_=this.userInfo_=this.scheme_="";this.JSC$8122_port_=null;this.fragment_=this.JSC$8122_path_="";this.JSC$8122_ignoreCase_=!1;var E;g instanceof _.Vk?(this.JSC$8122_ignoreCase_=r!==void 0?r:g.JSC$8122_ignoreCase_,_.Vu(this,g.scheme_),this.userInfo_=g.userInfo_,_.he(this,g.JSC$8122_domain_),_.Zf(this,g.JSC$8122_port_),_.yu(this,g.getPath()),_.v2(this,g.JSC$8122_queryData_.clone()),_.d9(this,g.fragment_)):g&&(E=_.hk(String(g)))?(this.JSC$8122_ignoreCase_=!!r,_.Vu(this,
E[1]||"",!0),this.userInfo_=Te(E[2]||""),_.he(this,E[3]||"",!0),_.Zf(this,E[4]),_.yu(this,E[5]||"",!0),_.v2(this,E[6]||"",!0),_.d9(this,E[7]||"",!0)):(this.JSC$8122_ignoreCase_=!!r,this.JSC$8122_queryData_=new _.gj(null,this.JSC$8122_ignoreCase_))};
_.Vk.prototype.toString=function(){var g=[],r=this.scheme_;r&&g.push(rj(r,ZNU,!0),":");var E=this.JSC$8122_domain_;if(E||r=="file")g.push("//"),(r=this.userInfo_)&&g.push(rj(r,ZNU,!0),"@"),g.push(_.Ia(E).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),E=this.JSC$8122_port_,E!=null&&g.push(":",String(E));if(E=this.getPath())this.JSC$8122_domain_&&E.charAt(0)!="/"&&g.push("/"),g.push(rj(E,E.charAt(0)=="/"?yLI:vYT,!0));(E=this.JSC$8122_queryData_.toString())&&g.push("?",E);(E=this.fragment_)&&g.push("#",rj(E,
d0D));return g.join("")};
_.Vk.prototype.resolve=function(g){var r=this.clone(),E=!!g.scheme_;E?_.Vu(r,g.scheme_):E=!!g.userInfo_;E?r.userInfo_=g.userInfo_:E=!!g.JSC$8122_domain_;E?_.he(r,g.JSC$8122_domain_):E=g.JSC$8122_port_!=null;var B=g.getPath();if(E)_.Zf(r,g.JSC$8122_port_);else if(E=!!g.JSC$8122_path_){if(B.charAt(0)!="/")if(this.JSC$8122_domain_&&!this.JSC$8122_path_)B="/"+B;else{var w=r.getPath().lastIndexOf("/");w!=-1&&(B=r.getPath().slice(0,w+1)+B)}w=B;if(w==".."||w==".")B="";else if(_.lB(w,"./")||_.lB(w,"/.")){B=
_.wl(w,"/");w=w.split("/");for(var O=[],M=0;M<w.length;){var u=w[M++];u=="."?B&&M==w.length&&O.push(""):u==".."?((O.length>1||O.length==1&&O[0]!="")&&O.pop(),B&&M==w.length&&O.push("")):(O.push(u),B=!0)}B=O.join("/")}else B=w}E?_.yu(r,B):E=g.JSC$8122_queryData_.toString()!=="";E?_.v2(r,g.JSC$8122_queryData_.clone()):E=!!g.fragment_;E&&_.d9(r,g.fragment_);return r};
_.Vk.prototype.clone=function(){return new _.Vk(this)};
_.Vu=function(g,r,E){g.scheme_=E?Te(r,!0):r;g.scheme_&&(g.scheme_=g.scheme_.replace(/:$/,""));return g};
_.he=function(g,r,E){g.JSC$8122_domain_=E?Te(r,!0):r;return g};
_.Zf=function(g,r){if(r){r=Number(r);if(isNaN(r)||r<0)throw Error("Ua`"+r);g.JSC$8122_port_=r}else g.JSC$8122_port_=null;return g};
_.Vk.prototype.getPath=function(){return this.JSC$8122_path_};
_.yu=function(g,r,E){g.JSC$8122_path_=E?Te(r,!0):r;return g};
_.v2=function(g,r,E){r instanceof _.gj?(g.JSC$8122_queryData_=r,TFA(g.JSC$8122_queryData_,g.JSC$8122_ignoreCase_)):(E||(r=rj(r,grm)),g.JSC$8122_queryData_=new _.gj(r,g.JSC$8122_ignoreCase_));return g};
_.L5=function(g,r,E){g.JSC$8122_queryData_.set(r,E);return g};
_.iD=function(g,r){return g.JSC$8122_queryData_.get(r)};
_.d9=function(g,r,E){g.fragment_=E?Te(r):r;return g};
_.EL=function(g){_.L5(g,"zx",mK());return g};
_.cT=function(g,r){return g instanceof _.Vk?g.clone():new _.Vk(g,r)};
pYJ=function(g,r){g instanceof _.Vk||(g=_.cT(g));r instanceof _.Vk||(r=_.cT(r));return g.resolve(r)};
Te=function(g,r){return g?r?decodeURI(g.replace(/%25/g,"%2525")):decodeURIComponent(g):""};
rj=function(g,r,E){return typeof g==="string"?(g=encodeURI(g).replace(r,rym),E&&(g=g.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),g):null};
rym=function(g){g=g.charCodeAt(0);return"%"+(g>>4&15).toString(16)+(g&15).toString(16)};
ZNU=/[#\/\?@]/g;vYT=/[#\?:]/g;yLI=/[#\?]/g;grm=/[#\?@]/g;d0D=/#/g;_.gj=function(g,r){this.count_=this.keyMap_=null;this.encodedQuery_=g||null;this.JSC$8123_ignoreCase_=!!r};
_.BS=function(g){g.keyMap_||(g.keyMap_=new Map,g.count_=0,g.encodedQuery_&&NAb(g.encodedQuery_,function(r,E){g.add(dW(r),E)}))};
_.S=_.gj.prototype;_.S.getCount=function(){_.BS(this);return this.count_};
_.S.add=function(g,r){_.BS(this);this.encodedQuery_=null;g=wj(this,g);var E=this.keyMap_.get(g);E||this.keyMap_.set(g,E=[]);E.push(r);this.count_+=1;return this};
_.S.remove=function(g){_.BS(this);g=wj(this,g);return this.keyMap_.has(g)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(g).length,this.keyMap_.delete(g)):!1};
_.S.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.S.isEmpty=function(){_.BS(this);return this.count_==0};
_.S.containsKey=function(g){_.BS(this);g=wj(this,g);return this.keyMap_.has(g)};
_.S.containsValue=function(g){var r=this.getValues();return _.mA(r,g)};
_.S.forEach=function(g,r){_.BS(this);this.keyMap_.forEach(function(E,B){E.forEach(function(w){g.call(r,w,B,this)},this)},this)};
_.S.getKeys=function(){_.BS(this);for(var g=Array.from(this.keyMap_.values()),r=Array.from(this.keyMap_.keys()),E=[],B=0;B<r.length;B++)for(var w=g[B],O=0;O<w.length;O++)E.push(r[B]);return E};
_.S.getValues=function(g){_.BS(this);var r=[];if(typeof g==="string")this.containsKey(g)&&(r=r.concat(this.keyMap_.get(wj(this,g))));else{g=Array.from(this.keyMap_.values());for(var E=0;E<g.length;E++)r=r.concat(g[E])}return r};
_.S.set=function(g,r){_.BS(this);this.encodedQuery_=null;g=wj(this,g);this.containsKey(g)&&(this.count_-=this.keyMap_.get(g).length);this.keyMap_.set(g,[r]);this.count_+=1;return this};
_.S.get=function(g,r){if(!g)return r;g=this.getValues(g);return g.length>0?String(g[0]):r};
_.ErD=function(g,r,E){g.remove(r);E.length>0&&(g.encodedQuery_=null,g.keyMap_.set(wj(g,r),_.ZQ(E)),g.count_+=E.length)};
_.gj.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var g=[],r=Array.from(this.keyMap_.keys()),E=0;E<r.length;E++){var B=r[E],w=_.Ia(B);B=this.getValues(B);for(var O=0;O<B.length;O++){var M=w;B[O]!==""&&(M+="="+_.Ia(B[O]));g.push(M)}}return this.encodedQuery_=g.join("&")};
_.gj.prototype.clone=function(){var g=new _.gj;g.encodedQuery_=this.encodedQuery_;this.keyMap_&&(g.keyMap_=new Map(this.keyMap_),g.count_=this.count_);return g};
var wj=function(g,r){r=String(r);g.JSC$8123_ignoreCase_&&(r=r.toLowerCase());return r},TFA=function(g,r){r&&!g.JSC$8123_ignoreCase_&&(_.BS(g),g.encodedQuery_=null,g.keyMap_.forEach(function(E,B){var w=B.toLowerCase();
B!=w&&(this.remove(B),_.ErD(this,w,E))},g));
g.JSC$8123_ignoreCase_=r};
_.gj.prototype.extend=function(g){for(var r=0;r<arguments.length;r++)hEn(arguments[r],function(E,B){this.add(B,E)},this)};var SY=function(g,r){aw.call(this);for(var E=0,B;B=COT[E];E++)if(B in g&&!/^https?:\/\//.test(g[B]))throw Error("Wa`"+g[B]+"`"+B);this.cfg_=g;this.name=this.cfg_.cn||x0m();this.JSC$8118_domHelper_=r||kY();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.EQ(this);g.lpu=g.lpu||aI6(this.JSC$8118_domHelper_.getWindow().location.href)+"/robots.txt";g.ppu=g.ppu||aI6(g.pu||"")+"/robots.txt";i8[this.name]=this;LpT(window,"unload",BYz)||nW(window,"unload",BYz)};
_.rc(SY,aw);var wTn=RegExp("^%*tp$"),SRw=RegExp("^%+tp$");_.S=SY.prototype;_.S.connectionDelay_=null;_.S.peerWindowDeferred_=null;_.S.transport_=null;_.S.state_=1;_.S.isConnected=function(){return this.state_==2};
_.S.peerWindowObject_=null;_.S.iframeElement_=null;_.S.connect=function(g){this.connectCb_=g||_.oo;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?bNU(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.S.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$8118_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var g=this.iframeElement_.contentWindow;g||(g=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=g}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ya");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$8118_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new c2(this,this.cfg_.ph,this.JSC$8118_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Xa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.S.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.TM(this.transport_);this.connectCb_=this.transport_=null;_.TM(this.connectionDelay_);this.connectionDelay_=null};
_.S.send=function(g,r){if(this.isConnected()){try{var E=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(w){E=!1}if(E){_.gA(r)&&(r=(0,_.sG)(r));E=this.transport_;var B=E.send;wTn.test(g)&&(g="%"+g);g=g.replace(/[%:|]/g,encodeURIComponent);B.call(E,g,r)}else this.close()}};
_.S.xpcDeliver=function(g,r,E){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.$r)(this.xpcDeliver,this,g,r,E));else if(Ibw(this,E)&&!this.isDisposed()&&this.state_!=3)if(g&&g!="tp")this.isConnected()&&(g=g.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),g=SRw.test(g)?g.substring(1):g,g=this.getService(g,r))&&(r=sQ4(r,g.objectPayload),r!=null&&g.callback(r));else switch(g=this.transport_,E=NFU(r),r=E[1],E[0]){case "SETUP_ACK":L_z(g,1);g.setupAckReceived_.fired_||g.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":g.protocolVersion_==2&&(L_z(g,2),g.setupAckReceived_.fired_||g.setupAckReceived_.callback(!0));break;case "SETUP":L_z(g,1);iNn(g,1);break;case "SETUP_NTPV2":g.protocolVersion_==2&&(E=g.peerProtocolVersion_,L_z(g,2),iNn(g,2),E!=1&&g.peerEndpointId_==null||g.peerEndpointId_==r||cLz(g),g.peerEndpointId_=r)}};
var abn=function(g){var r=g.cfg_.role;return typeof r==="number"?r:window.parent==g.peerWindowObject_?1:0},Ibw=function(g,r){var E=g.cfg_.ph;
return _.qo(r==null?"":String(r))||_.qo(E==null?"":String(E))||r==g.cfg_.ph};
SY.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete i8[this.name];_.TM(this.peerLoadHandler_);delete this.peerLoadHandler_;SY.superClass_.disposeInternal.call(this)};
var BYz=function(){for(var g in i8)_.TM(i8[g])},i8={};var Udm=function(g,r){this.JSC$8132_win=g;this.allowAdsHttpEndpoint=r;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$8132_domHelper=kY(g);this.scrollManager=new YYA(g);this.accessibilityManager=new QQD(g);O5w(this)},O5w=function(g){var r=function(){g.allowAdsPopup&&g.allowAdsPopup.style.setProperty("display","none","important");
g.wallElement.style.setProperty("display","","important");zED(g.accessibilityManager);p$U(g.accessibilityManager,g.wallElement.querySelector(".fc-dialog-container"),!1,!1,g.wallElement.querySelector(".fc-button-whitelist"));g.scrollManager.enableScrolling()};
g.allowAdsPopup=g.JSC$8132_domHelper.JSC$7416_createDom("DIV",{"class":"fc-whitelist-root"});g.allowAdsPopup.style.setProperty("display","none","important");g.JSC$8132_domHelper.appendChild(g.JSC$8132_domHelper.JSC$7414_document_.body,g.allowAdsPopup);var E=g.JSC$8132_domHelper.JSC$7416_createDom("DIV",{"class":"fc-dialog-overlay"});g.JSC$8132_domHelper.appendChild(g.allowAdsPopup,E);var B=g.JSC$8132_domHelper.JSC$7416_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:r});g.JSC$8132_domHelper.appendChild(g.allowAdsPopup,
B);E=g.JSC$8132_domHelper.JSC$7416_createDom("IFRAME");E.className="fc-whitelist-dialog";E.frameBorder="0";E.id="fc-whitelist-iframe";E.tabIndex="0";_.ta(E,g.allowAdsHttpEndpoint);g.JSC$8132_domHelper.appendChild(B,E);B={};B.pu=_.ui(g.allowAdsHttpEndpoint).toString();B.tp=1;B.cn="fc-whitelist-channel";B.ifrid=E.id;B.osh=!0;g.allowAdsCrossPageChannel=new SY(B);g.allowAdsCrossPageChannel.registerService("close",r);g.allowAdsCrossPageChannel.registerService("refresh",function(){g.JSC$8132_win.location.reload()});
g.allowAdsCrossPageChannel.registerService("resize",function(w){if(w){var O=g.allowAdsPopup.querySelector(".fc-whitelist-dialog");w.width&&O.style.setProperty("width",w.width,"important");w.height&&O.style.setProperty("height",w.height,"important")}},!0);
g.allowAdsCrossPageChannel.connect()};
Udm.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$8132_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var OL=window,UL=document,MLD=OL.location,qRA=function(){},urT=/\[native code\]/,Mc=function(g,r,E){return g[r]=g[r]||E},lqw=function(g){g=g.sort();
for(var r=[],E=void 0,B=0;B<g.length;B++){var w=g[B];w!=E&&r.push(w);E=w}return r},qc=function(){var g;
if((g=Object.create)&&urT.test(g))g=g(null);else{g={};for(var r in g)g[r]=void 0}return g},uZ=Mc(OL,"gapi",{});var lZ={};lZ=Mc(OL,"___jsl",qc());Mc(lZ,"I",0);Mc(lZ,"hel",10);var Ddn=function(){var g=MLD.href;if(lZ.dpo)var r=lZ.h;else{r=lZ.h;var E=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),B=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(g=g&&(E.exec(g)||B.exec(g)))try{r=decodeURIComponent(g[2])}catch(w){}}return r},orA=function(g){var r=Mc(lZ,"PQ",[]);
lZ.PQ=[];var E=r.length;if(E===0)g();else for(var B=0,w=function(){++B===E&&g()},O=0;O<E;O++)r[O](w)},GP4=function(g){return Mc(Mc(lZ,"H",qc()),g,qc())};var DX=function(g){this.JSC$8134_obj_=g};
DX.prototype.value=function(){return this.JSC$8134_obj_};
DX.prototype.getWidth=function(){return this.JSC$8134_obj_.width};
DX.prototype.getHeight=function(){return this.JSC$8134_obj_.height};
DX.prototype.getStyle=function(){return this.JSC$8134_obj_.style};var QOn=function(g){this.JSC$8137_obj_=g||{}};
_.S=QOn.prototype;_.S.value=function(){return this.JSC$8137_obj_};
_.S.setUrl=function(g){this.JSC$8137_obj_.url=g;return this};
_.S.getUrl=function(){return this.JSC$8137_obj_.url};
_.S.getStyle=function(){return this.JSC$8137_obj_.style};
_.S.getId=function(){return this.JSC$8137_obj_.id};
_.S.getContext=function(){return this.JSC$8137_obj_.context};
var zFD=function(g){g.JSC$8137_obj_.attributes=g.JSC$8137_obj_.attributes||{};return new DX(g.JSC$8137_obj_.attributes)};var kPA=function(){QOn.apply(this,arguments)};
_.f(kPA,QOn);var H5n=Mc(lZ,"perf",qc());Mc(H5n,"g",qc());var pTZ=Mc(H5n,"i",qc());Mc(H5n,"r",[]);qc();qc();var RF4=function(g,r,E){r&&r.length>0&&(r=YRw(r),E&&E.length>0&&(r+="___"+YRw(E)),r.length>28&&(r=r.substr(0,28)+(r.length-28)),E=r,r=Mc(pTZ,"_p",qc()),Mc(r,E,qc())[g]=(new Date).getTime(),r=H5n.r,typeof r==="function"?r(g,"_p",E):r.push([g,"_p",E]))},YRw=function(g){return g.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var nrm=qc(),sO4=[],o2=function(g){throw Error("Za`"+g);};
sO4.push(["jsl",function(g){for(var r in g)if(Object.prototype.hasOwnProperty.call(g,r)){var E=g[r];typeof E=="object"?lZ[r]=Mc(lZ,r,[]).concat(E):Mc(lZ,r,E)}if(r=g.u)g=Mc(lZ,"us",[]),g.push(r),(r=/^https:(.*)$/.exec(r))&&g.push("http:"+r[1])}]);
var fqw=/^(\/[a-zA-Z0-9_\-]+)+$/,$db=[/\/amp\//,/\/amp$/,/^\/amp$/],jOD=/^[a-zA-Z0-9\-_\.,!]+$/,Ay6=/^gapi\.loaded_[0-9]+$/,b5w=/^[a-zA-Z0-9,._-]+$/,FKm=function(g,r,E,B,w){var O=g.split(";"),M=O.shift(),u=nrm[M],l=null;u?l=u(O,r,E,B):o2("no hint processor for: "+M);l||o2("failed to generate load url");r=l;E=r.match(Jyz);(B=r.match(PDz))&&B.length===1&&tLn.test(r)&&E&&E.length===1||o2("failed sanity: "+g);try{g="?";if(w&&w.length>0){B6(w);var Q=w.join(",");l=l+"?le="+Q;g="&"}if(lZ.rol){var z=lZ.ol;
z&&z.length&&(l=""+l+g+"ol="+z.length)}}catch(k){}return l},CDA=function(g,r,E,B){g=eFU(g);
Ay6.test(E)||o2("invalid_callback");r=WKw(r);B=B&&B.length?WKw(B):null;var w=function(O){return encodeURIComponent(O).replace(/%2C/g,",")};
return[encodeURIComponent(g.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",w(g.version),"/m=",w(r),B?"/exm="+w(B):"","/rt=j/sv=1/d=1/ed=1",g.activeMods?"/am="+w(g.activeMods):"",g.resourceSig?"/rs="+w(g.resourceSig):"",g.zcms?"/t="+w(g.zcms):"","/cb=",w(E)].join("")},eFU=function(g){g.charAt(0)!=="/"&&o2("relative path");
for(var r=g.substring(1).split("/"),E=[];r.length;){g=r.shift();if(!g.length||g.indexOf(".")==0)o2("empty/relative directory");else if(g.indexOf("=")>0){r.unshift(g);break}E.push(g)}g={};for(var B=0,w=r.length;B<w;++B){var O=r[B].split("="),M=decodeURIComponent(O[0]),u=decodeURIComponent(O[1]);O.length==2&&M&&u&&(g[M]=g[M]||u)}r="/"+E.join("/");fqw.test(r)||o2("invalid_prefix");E=0;for(B=$db.length;E<B;++E)$db[E].test(r)&&o2("invalid_prefix");E=KKw(g,"k",!0);B=KKw(g,"am");w=KKw(g,"rs");g=KKw(g,"t");
return{pathPrefix:r,version:E,activeMods:B,resourceSig:w,zcms:g}},WKw=function(g){for(var r=[],E=0,B=g.length;E<B;++E){var w=g[E].replace(/\./g,"_").replace(/-/g,"_");
b5w.test(w)&&r.push(w)}return r.join(",")},KKw=function(g,r,E){g=g[r];
!g&&E&&o2("missing: "+r);if(g){if(jOD.test(g))return g;o2("invalid: "+r)}return null},tLn=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,PDz=/\/cb=/g,Jyz=/\/\//g;
nrm.m=function(g,r,E,B){(g=g[0])||o2("missing_hint");return"https://apis.google.com"+CDA(g,r,E,B)};
var xdZ=decodeURI("%73cript"),aqb=/^[-+_0-9\/A-Za-z]+={0,2}$/,XTb=function(g,r){for(var E=[],B=0;B<g.length;++B){var w=g[B],O;if(O=w){a:{for(O=0;O<r.length;O++)if(r[O]===w)break a;O=-1}O=O<0}O&&E.push(w)}return E},NYb=function(){var g=lZ.nonce;
return g!==void 0?g&&g===String(g)&&g.match(aqb)?g:lZ.nonce=null:UL.querySelector?(g=UL.querySelector("script[nonce]"))?(g=g.nonce||g.getAttribute("nonce")||"",g&&g===String(g)&&g.match(aqb)?lZ.nonce=g:lZ.nonce=null):null:null},cy6=function(g){if(UL.readyState!="loading")IqT(g);
else{var r=NYb(),E="";r!==null&&(E=' nonce="'+r+'"');g="<"+xdZ+' src="'+encodeURI(g)+'"'+E+"></"+xdZ+">";UL.write(mdw?mdw.createHTML(g):g)}},IqT=function(g){var r=UL.createElement(xdZ);
r.setAttribute("src",mdw?mdw.createScriptURL(g):g);g=NYb();g!==null&&r.setAttribute("nonce",g);r.async="true";(g=UL.getElementsByTagName(xdZ)[0])?g.parentNode.insertBefore(r,g):(UL.head||UL.body||UL.documentElement).appendChild(r)},LKU=function(g,r,E){i5Z(function(){var B=r===Ddn()?Mc(uZ,"_",qc()):qc();
B=Mc(GP4(r),"_",B);g(B)},E)},GgP=function(g,r){var E=r||{};
typeof r=="function"&&(E={},E.callback=r);var B=(r=E)&&r._c;if(B)for(var w=0;w<sO4.length;w++){var O=sO4[w][0],M=sO4[w][1];M&&Object.prototype.hasOwnProperty.call(B,O)&&M(B[O],g,r)}r=[];g?r=g.split(":"):E.features&&(r=E.features);if(!(g=E.h)&&(g=Ddn(),!g))throw Error("$a");VL4(r||[],E,g)},VL4=function(g,r,E){g=lqw(g)||[];
var B=r.callback,w=r.config,O=r.timeout,M=r.ontimeout,u=r.onerror,l=void 0;typeof u=="function"&&(l=u);var Q=null,z=!1;if(O&&!M||!O&&M)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";u=Mc(GP4(E),"r",[]).sort();var k=Mc(GP4(E),"L",[]).sort(),H=lZ.le||[],R=[].concat(u),A=function(Z,c){if(z)return 0;OL.clearTimeout(Q);k.push.apply(k,J);var h=((uZ||{}).config||{}).update;h?h(w):w&&Mc(lZ,"cu",[]).push(w);if(c){RF4("me0",Z,R);try{LKU(c,E,l)}finally{RF4("me1",Z,R)}}return 1};
O>0&&(Q=OL.setTimeout(function(){z=!0;M()},O));
var J=XTb(g,k);if(J.length){J=XTb(g,u);var e=Mc(lZ,"CP",[]),C=e.length;e[C]=function(Z){if(!Z)return 0;RF4("ml1",J,R);var c=function(y){e[C]=null;A(J,Z)&&orA(function(){B&&B();y()})},h=function(){var y=e[C+1];
y&&y()};
C>0&&e[C-1]?e[C]=function(){c(h)}:c(h)};
if(J.length){var X="loaded_"+lZ.I++;uZ[X]=function(Z){e[C](Z);uZ[X]=null};
g=FKm(E,J,"gapi."+X,u,H);u.push.apply(u,J);RF4("ml0",J,R);r.sync||OL.___gapisync?cy6(g):IqT(g)}else e[C](qRA)}else A(J)&&B&&B()},hFT;
var Z5m=null,yyn=_.ED.trustedTypes;if(yyn&&yyn.createPolicy){try{Z5m=yyn.createPolicy("goog#gapi",{createHTML:TKD,createScript:TKD,createScriptURL:TKD})}catch(g){_.ED.console&&_.ED.console.error(g.message)}hFT=Z5m}else hFT=Z5m;var mdw=hFT,i5Z=function(g,r){if(lZ.hee&&lZ.hel>0)try{return g()}catch(E){r&&r(E),lZ.hel--,GgP("debug_error",function(){try{window.___jsl.hefn(E)}catch(B){throw E;}})}else try{return g()}catch(E){throw r&&r(E),E;
}},vrn=uZ.load;
vrn&&Mc(lZ,"ol",[]).push(vrn);uZ.load=function(g,r){return i5Z(function(){return GgP(g,r)})};var y5L;var ddn=function(g,r){this.serviceId_=g;this.moduleId_=r||null};
ddn.prototype.toString=function(){return this.serviceId_};
ddn.prototype.getModuleId=function(){return this.moduleId_};var E5V=new ddn("MpJwZc","MpJwZc");var w3o=new _.u8("a"),BHY=function(g,r,E){_.l8.call(this,g,r);this.node=r;this.kind=E};
_.f(BHY,_.l8);var TYD=function(){this.JSC$8150_keys_={};this.urlPrefix_="";this.JSC$8150_queryData_={}};
TYD.prototype.toString=function(){var g=this.urlPrefix_+gBA(this),r=_.oj(this.JSC$8150_queryData_),E="";r!=""&&(E="?"+r);return g+E};
var r5n=function(g){g=Gg(g,"md");return!!g&&g!=="0"},gBA=function(g){var r=[],E=(0,_.$r)(function(B){this.JSC$8150_keys_[B]!==void 0&&r.push(B+"="+this.JSC$8150_keys_[B])},g);
r5n(g)?(E("md"),E("k"),E("ck"),E("am"),E("rs"),E("gssmodulesetproto"),E("slk"),E("dti")):(E("sdch"),E("k"),E("ck"),E("am"),E("rt"),"d"in g.JSC$8150_keys_||Qn(g,"d","0"),E("d"),E("exm"),E("excm"),(g.JSC$8150_keys_.excm||g.JSC$8150_keys_.exm)&&r.push("ed=1"),E("im"),E("dg"),E("sm"),Gg(g,"br")!="1"&&Gg(g,"br")!="0"||E("br"),E("br-d"),Gg(g,"rb")=="1"&&E("rb"),Gg(g,"zs")!=="0"&&E("zs"),EBm(g)!==""&&E("wt"),E("gssmodulesetproto"),E("ujg"),E("sp"),E("rs"),E("cb"),E("ee"),E("slk"),E("dti"),E("m"));return r.join("/")},
Gg=function(g,r){return g.JSC$8150_keys_[r]?g.JSC$8150_keys_[r]:null},Qn=function(g,r,E){E?g.JSC$8150_keys_[r]=E:delete g.JSC$8150_keys_[r]},BBw=function(g,r){g.urlPrefix_=r},wpI=function(g,r){r&&r.length>0?(r.sort(),Qn(g,"exm",r.join(","))):Qn(g,"exm",null)},Sxz=function(g,r){r&&r.length>0?(r.sort(),Qn(g,"excm",r.join(","))):Qn(g,"excm",null)},Ol4=function(g){return(g=Gg(g,"m"))?g.split(","):[]},EBm=function(g){switch(Gg(g,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},UDb=function(g,r){var E=Object.keys(r).filter(function(B){return!!Object.keys(r[B]).length}).map(function(B){var w=Object.keys(r[B]);
w.length>1&&w.sort();return B+":"+w.join(",")});
E.sort();Qn(g,"ee",E.join(";"))},mXS=function(g){var r=Gg(g,"ee");
if(!r)return{};g={};r=_.U(r.split(";"));for(var E=r.next();!E.done;E=r.next()){var B=_.U(E.value.split(":"));E=B.next().value;B=B.next().value;g[E]={};B=_.U(B.split(","));for(var w=B.next();!w.done;w=B.next())g[E][w.value]=!0}return g},M1D=function(g){delete g.JSC$8150_keys_.m;
delete g.JSC$8150_keys_.exm;delete g.JSC$8150_keys_.ed};
TYD.prototype.clone=function(){var g=new TYD;g.JSC$8150_keys_=Object.assign({},this.JSC$8150_keys_);g.urlPrefix_=this.urlPrefix_;g.JSC$8150_queryData_=Object.assign({},this.JSC$8150_queryData_);return g};
var ckl=function(g,r){r=r===void 0?!0:r;var E=qxZ(g),B=new TYD,w=_.hk(E)[5];_.jn.forEach(u26,function(M){var u=w.match("/"+M+"=([^/]+)");u&&Qn(B,M,u[1])});
var O="";O=g.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";BBw(B,g.substr(0,g.indexOf(O)+O.length));if(!r)return B;(g=_.hk(E)[6]||null)&&NAb(g,function(M,u){B.JSC$8150_queryData_[M]=u});
return B},X0L=function(g){g=_.lc(qxZ(g));
return g===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(g)?/\/k=/.test(g):!1},qxZ=function(g){return g.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?g.substr(65):g},u26={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"},lkb=RegExp("^loaded_(g|h)?[_\\d]+$");_.zg=function(g){this.JSC$8162_id_=g;this.opts={}};
_.zg.prototype.JSC$8164_setLabel=function(g){this.label_=g||void 0;return this};
_.zg.prototype.addUploadMetadata=function(g,r){var E=this.opts.data||{};E[g]=r;this.opts.data=E;return this};
var DD6=function(g){var r=_.jn.filter(g.opts,function(E){return E!==null});
r=_.jn.isEmpty(r)?null:r;g=[g.JSC$8162_id_,g.label_,r];r=HLD(g);return g=g.slice(0,r+1)};
_.zg.prototype.toString=function(){var g=DD6(this);return"("+_.bO(g,function(r){return JSON.stringify(r)}).join(",")+")"};
_.zg.prototype.getId=function(){return this.JSC$8162_id_};
_.zg.prototype.getOptions=function(){return _.jn.clone(this.opts)};var k0=function(){_.zg.call(this,"image-search")};
_.f(k0,_.zg);k0.prototype.setSize=function(g){this.opts.imgsz=g;return this};
k0.prototype.JSC$8164_setLabel=function(g){_.zg.prototype.JSC$8164_setLabel.call(this,g);return this};
k0.prototype.addUploadMetadata=function(g,r){_.zg.prototype.addUploadMetadata.call(this,g,r);return this};var HS=function(){_.zg.call(this,"maps")};
_.f(HS,_.zg);HS.prototype.setZoom=function(g){this.opts.zoom=g;return this};
HS.prototype.JSC$8164_setLabel=function(g){_.zg.prototype.JSC$8164_setLabel.call(this,g);return this};
HS.prototype.addUploadMetadata=function(g,r){_.zg.prototype.addUploadMetadata.call(this,g,r);return this};_.pU=function(){_.zg.call(this,"photos")};
_.f(_.pU,_.zg);_.pU.prototype.JSC$8164_setLabel=function(g){_.zg.prototype.JSC$8164_setLabel.call(this,g);return this};
_.pU.prototype.addUploadMetadata=function(g,r){_.zg.prototype.addUploadMetadata.call(this,g,r);return this};var Y0=function(){_.zg.call(this,"url")};
_.f(Y0,_.zg);var oBA=function(){var g=new Y0;g.opts.type="video";g.opts.site="youtube.com";return g};
Y0.prototype.JSC$8164_setLabel=function(g){_.zg.prototype.JSC$8164_setLabel.call(this,g);return this};
Y0.prototype.addUploadMetadata=function(g,r){_.zg.prototype.addUploadMetadata.call(this,g,r);return this};var R2=function(){_.zg.call(this,"video-search")};
_.f(R2,_.zg);var GWD=function(){var g=new R2;g.opts.site="youtube.com";return g};
R2.prototype.JSC$8164_setLabel=function(g){_.zg.prototype.JSC$8164_setLabel.call(this,g);return this};
R2.prototype.addUploadMetadata=function(g,r){_.zg.prototype.addUploadMetadata.call(this,g,r);return this};var QBA=function(){_.zg.call(this,"web")};
_.f(QBA,_.zg);QBA.prototype.JSC$8164_setLabel=function(g){_.zg.prototype.JSC$8164_setLabel.call(this,g);return this};
QBA.prototype.addUploadMetadata=function(g,r){_.zg.prototype.addUploadMetadata.call(this,g,r);return this};var nU=function(){this.items_=[];this.opts={}},zoU=function(g){switch(g){case "image-search":return new k0;
case "maps":return new HS;case "photos":return new _.pU;case "url":return new Y0;case "video-search":return new R2;case "web":return new QBA}return new _.zg(g)};
nU.prototype.addView=function(g){this.items_.push(typeof g==="string"?zoU(g):g);return this};
var kWI=function(g){return"("+_.bO(g.items_,function(r){return r.toString()}).join(",")+")"};
nU.prototype.toString=function(){return kWI(this)};
nU.prototype.getViews=function(g,r){r=r===void 0?[]:r;for(var E=this.items_,B=0;B<E.length;B++){var w=E[B];w instanceof nU?w.getViews(g,r):w.getId()==g&&r.push(w)}return r};
nU.prototype.getOptions=function(){return _.jn.clone(this.opts)};var xr=function(g){this.basePickerUrl_=g||"https://docs.google.com/picker";this.nav_=new nU};
xr.prototype.nav_=null;xr.prototype.addView=function(g){this.nav_.addView(g);return this};
xr.prototype.getBaseUrl=function(){return this.basePickerUrl_};
xr.prototype.getViews=function(g){return this.nav_.getViews(g)};
_.Hlm=function(g,r){g.callback_=r;return g};var ppn=new Map;ppn.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");ppn.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");ppn.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var YxA=new Set;YxA.add("application/vnd.google-apps.kix");YxA.add("application/vnd.google-apps.ritz");YxA.add("application/vnd.google-apps.punch");var FDD=function(g,r,E){var B=E&&_.jI(E,1);E=Ron(E);var w=g[0].getId();switch(_.AX(w,2)){case 13:return nBm(g,r,B,E);case 3:return sBn(g,r,B,E);case 10:return fkw(g,r,B,E);case 27:return fkw(g,r,B,E);case 12:return $DI(g,r);case 2:return jBD(g,r,B,E);case 5:return A5n(g,r,B,E);case 9:return bl6(g,r,B,E);case 6:return J5D(g,r,B,E);case 25:return PQA(g,r,B,E);case 1:return _.Qt(g[0],BgA,26)?t1U(g,r,B,E):fkw(g,r,B,E);default:return{}}},J5D=function(g,r,E,B){g=g.map(function(w){return{id:w.getId().getId(),
serviceId:"youtube",name:w.getName(),description:_.jI(w,3),type:sL(w),lastEditedUtc:_.EtT(_.zP(w,_.K0,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:w.getUrl(),embedUrl:_.jI(w,13),thumbnails:fU(LV(w))}});
return{action:r,docs:g,viewToken:B,view:E||"youtube",v2Translated:!0}},jBD=function(g,r,E,B){var w=g.map(function(O){var M=O.getId().getId(),u=_.jI(O,7),l=O.getName(),Q=sL(O),z=_.EtT(_.zP(O,_.K0,12)).getTime(),k=O.getUrl(),H=Number(G7V(O)),R=_.jI(O,3),A=_.jI(O,11),J=fU(LV(O));
var e=_.zP(O,VW,21);e=_.sz(e,1);var C=_.zP(O,VW,21);C=_.jI(C,10);var X=_.jI(O,13);var Z=_.zP(O,VW,21);Z=_.sz(Z,9);var c=_.zP(O,VW,21);c=_.jI(c,11);M={id:M,serviceId:"docs",mimeType:u,name:l,type:Q,lastEditedUtc:z,url:k,sizeBytes:H,description:R,iconUrl:A,thumbnails:J,isShared:e,downloadUrl:C,embedUrl:X,copyable:Z,resourceKey:c};u=_.zP(O,VW,21);_.sz(u,12)&&(M.uploadState="success",M.isNew=!0);u=_.zP(O,VW,21);_.Qt(u,mF,3)&&(O=_.zP(O,VW,21),O=_.zP(O,mF,3),_.Qt(O,Nf,2)&&(u=eL(O.getDuration().getSeconds()),
l=O.getDuration(),l=_.wY(l,2),M.duration=u+l/1E9),M.aspectRatio=O.getAspectRatio());return M});
return{action:r,docs:w,viewToken:B,view:E||"all",extraUserInputs:eoI(g),v2Translated:!0}},A5n=function(g,r,E,B){g=g.map(function(w){var O=_.zP(w,DMA,15);
O=_.zP(O,Io,1);Hf(w,10,Io,O);return{id:w.getId().getId(),serviceId:"web",mimeType:_.jI(w,7),name:w.getName(),type:sL(w),url:w.getUrl(),description:_.jI(w,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:fU(LV(w))}});
return{action:r,docs:g,viewToken:B,view:E||"image-search",v2Translated:!0}},bl6=function(g,r,E,B){g=g.map(function(w){return{serviceId:"url",
name:LV(w)[0].getUrl().split("/").pop(),type:sL(w),mimeType:_.jI(w,7),url:w.getUrl(),description:_.jI(w,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:fU(LV(w))}});
return{action:r,docs:g,viewToken:B,view:E||"url",v2Translated:!0}},t1U=function(g,r,E,B){g=g.map(function(w){return{id:w.getId().getId(),
serviceId:"picasa",name:w.getName(),type:sL(w),description:_.jI(w,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:fU(LV(w))}});
return{action:r,docs:g,viewToken:B,view:E||"webcam",v2Translated:!0}},fkw=function(g,r,E,B){return{action:r,
docs:g.map(WDm),viewToken:B,view:CQm(E||"upload",g),extraUserInputs:eoI(g),v2Translated:!0}},CQm=function(g,r){return r.some(function(E){var B;
return((B=_.zP(E,cg,30))==null?void 0:_.AX(B,3))===9})?g+"/gmailphotos":g},sBn=function(g,r,E,B){var w=g.map(function(O){var M={id:O.getId().getId(),
serviceId:"picasa",mimeType:_.jI(O,7),name:O.getName(),type:sL(O),lastEditedUtc:_.EtT(_.zP(O,_.K0,12)).getTime(),url:O.getUrl(),sizeBytes:Number(G7V(O)),description:_.jI(O,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:fU(LV(O)),mediaKey:O.getId().getId(),parentId:_.jI(O,4)},u,l=(u=_.zP(O,ODn,18))==null?void 0:_.zP(u,SMn,3);l&&(M.latitude=$2(l,1),M.longitude=$2(l,2));var Q;O=(Q=_.zP(O,ODn,18))==null?void 0:fx(Q,6);Q=O!=null?eL(O):void 0;Q&&(M.version=
Q);return M});
return{action:r,docs:w,viewToken:B,view:E||"photos",extraUserInputs:eoI(g),v2Translated:!0}},nBm=function(g,r,E,B){g=g.map(function(w){return{id:w.getId().getId(),
serviceId:"et",name:LV(w)[0].getUrl().split("/").pop(),description:_.jI(w,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:fU(LV(w),"etjpg")}});
return{action:r,docs:g,viewToken:B,view:E||"et",v2Translated:!0}},PQA=function(g,r,E,B){g=g.map(function(w){var O=w.getId().getId(),M=B["2"];
return{id:O,serviceId:M.type!=="gmail_themes"&&M.parent==="6226252643674576769"?"picasa":"static_themes",name:w.getName(),mimeType:_.jI(w,7),type:sL(w),description:_.jI(w,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:w.getUrl(),embedUrl:w.getUrl(),thumbnails:fU(LV(w))}});
return{action:r,docs:g,viewToken:B,view:E||"photos",v2Translated:!0}},$DI=function(g,r){g=g.map(function(E){var B=_.zP(E,wF6,27);
B=_.nt(B,1,_.IA,_.BT())[0];return{id:E.getId().getId(),serviceId:"contacts",mimeType:_.jI(E,7),name:E.getName(),description:_.jI(E,3),url:"mailto:"+B,thumbnail:[{url:_.jI(E,11)}],email:B}});
return{action:r,docs:g,view:"contacts",v2Translated:!0}},Ron=function(g){if(!g)return{};
var r=_.jI(g,3);r=r&&JSON.parse(r)||{};return{0:_.jI(g,1),1:_.jI(g,2),2:r}},fU=function(g,r){r=r===void 0?"":r;
if(!g.length)return null;r=="etjpg"&&(g=g.filter(function(E){return E.getUrl().includes("w1200-h300")}));
return g.map(function(E){return{url:E.getUrl(),height:E.getHeight(),width:E.getWidth(),type:r}})},eoI=function(g){return{isAttachment:g.some(function(r){return _.sz(r,31)})}},WDm=function(g){var r,E={id:(r=g.getId())==null?void 0:r.getId(),
serviceId:KDI(g),mimeType:_.jI(g,7),name:g.getName(),type:sL(g),sizeBytes:Number(G7V(g)),description:_.jI(g,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:fU(LV(g)),isNew:!0};if(r=_.zP(g,cg,30)){E.dataUrl=_.jI(r,1)||null;a:{var B=_.zP(g,cg,30);switch(_.AX(B,3)){case 9:B=_.PL(B,u$A,2,i6);B={remoteRefs:B&&_.jI(B,1)};break a;case 10:case 15:B=_.PL(B,qM4,4,i6);var w=LV(g);B={photo_id:B&&_.jI(B,1),media_key:g.getId().getId(),media_type:_.AX(g,6)===1?1:2,image_url:w&&
w[0].getUrl(),width:w&&String(w[0].getWidth()),height:w&&String(w[0].getHeight())};break a}B=null}E.uploadMetadata=B;E.uploadId=_.jI(r,9)||null;E.uploadState=xD6(r)||null}(B=r&&_.PL(r,qM4,4,i6))&&(E.id=_.jI(B,1));(B=r&&_.PL(r,l4T,5,i6))&&(E.contentId=_.jI(B,1));(B=r&&_.PL(r,UMw,7,i6))&&(E.contentId=_.jI(B,1));(B=r&&_.PL(r,Mvn,6,i6))&&(E.contentId=_.jI(B,1));(r==null?void 0:_.AX(r,3))===1&&(E.mediaKey=g.getId().getId());return E},KDI=function(g){var r;
switch(((r=_.zP(g,cg,30))==null?void 0:_.AX(r,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},sL=function(g){switch(_.AX(g,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(g,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},xD6=function(g){switch(g==null?void 0:_.AX(g,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 Ikb,akA,XpZ,NBZ;_.mDZ=function(g,r){var E=r||{};r=E.document||document;var B=_.ui(g).toString(),w=(new Hg(r)).createElement("SCRIPT"),O={script_:w,timeout_:void 0},M=new X5(akA,O),u=null,l=E.timeout!=null?E.timeout:5E3;l>0&&(u=window.setTimeout(function(){XpZ(w,!0);M.errback(new NBZ(1,"Timeout reached for loading script "+B))},l),O.timeout_=u);
w.onload=w.onreadystatechange=function(){w.readyState&&w.readyState!="loaded"&&w.readyState!="complete"||(XpZ(w,E.cleanupWhenDone||!1,u),M.callback(null))};
w.onerror=function(){XpZ(w,!0,u);M.errback(new NBZ(0,"Error while loading script "+B))};
O=E.attributes||{};_.jn.extend(O,{type:"text/javascript",charset:"UTF-8"});hPT(w,O);_.mg(w,g);Ikb(r).appendChild(w);return M};
Ikb=function(g){var r=Yr("HEAD",g);return r&&r.length!==0?r[0]:g.documentElement};
akA=function(){if(this&&this.script_){var g=this.script_;g&&g.tagName=="SCRIPT"&&XpZ(g,!0,this.timeout_)}};
XpZ=function(g,r,E){E!=null&&_.ED.clearTimeout(E);g.onload=function(){};
g.onerror=function(){};
g.onreadystatechange=function(){};
r&&window.setTimeout(function(){_.p5(g)},0)};
NBZ=function(g,r){var E="Jsloader error (code #"+g+")";r&&(E+=": "+r);_.gl.call(this,E);this.code=g};
_.rc(NBZ,_.gl);var c56=_.me(["https://apis.google.com/js/api.js"]),ilD=_.wF(c56),ZlD=function(g,r){var E=!1,B=LD6(g,r).then(function(O){E=!0;return O}),w=_.YUT(5E3).then(function(){return E?LD6(g,r):V1U(r).then(function(O){return hoD(O,g)})});
return Myn([B,w])},LD6=function(g,r){return y5w(r).then(function(E){return hoD(E,g)})},hoD=function(g,r){var E=_.wl(r,"gapi.")?r.slice(5):r;
return g[E]?_.lq(g[E]):new _.D8(function(B,w){var O=Rw(function(){w(Error("cb"))},3E4);
g.load(r,{callback:function(){_.ED.clearTimeout(O);B(g[E])},
onerror:function(M){_.ED.clearTimeout(O);w(M)}})})},y5w=function(g){return g.gapi&&g.gapi.load?_.lq(g.gapi):V1U(g)},V1U=function(g){return _.mDZ(ilD,{document:g.document}).then(function(){return g.gapi})},vBb=function(){};
vBb.prototype.load=function(g,r){r=r===void 0?window:r;var E=Date.now();return ZlD(g,r).then(function(B){var w=Date.now();return{library:B,loadStartMs:E,loadEndMs:w}},function(B){throw B instanceof Error?B:Error(String(B));
})};var q6B=function(){_.f5.call(this);this.gapiLoader_=new vBb;this.origin_=null;this.gapiPickerIframeResolver_=_.iW();this.gapiIframesResolver_=_.iW();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.f(q6B,_.f5);var dDD=function(g,r){var E=_.XS("gapi.iframes",r);return E?(g=Date.now(),_.lq({library:E,loadStartMs:g,loadEndMs:g})):g.gapiLoader_.load("gapi.iframes",r)},TBn=function(g,r,E,B,w,O){var M=!1;
M=M===void 0?!1:M;dDD(g,P$(r.ownerDocument)).then(function(u){var l=u.library;g.gapiIframesResolver_.resolve(l);u=g.gapiPickerIframeResolver_;var Q=u.resolve,z=M;z=z===void 0?!1:z;var k={};k["host-message-handler"]=E;g.hostMessageHandlerInternal_=k;var H=_.cT(B);H=_.cT(H);H=_.Zf(_.he(_.Vu(new _.Vk,H.scheme_),H.JSC$8122_domain_),H.JSC$8122_port_).toString();g.origin_=H;H=(new kPA).setUrl(B);H.JSC$8137_obj_.where=r;H.JSC$8137_obj_.allowPost=z;H.JSC$8137_obj_.messageHandlers=k;z=_.XS("makeWhiteListIframesFilter",
l)([g.origin_]);H.JSC$8137_obj_.messageHandlersFilter=z;w!=null&&(H.JSC$8137_obj_.id=w);O!=null&&(H.JSC$8137_obj_.rpctoken=O);z=zFD(H);z.JSC$8134_obj_.style={display:"block","min-width":"100%",width:"1px"};z.JSC$8134_obj_.height="100%";zFD(H).value().allow="camera 'src' "+g.origin_;l=l.getContext().openChild(H.value());Q.call(u,l)},function(u){g.gapiIframesResolver_.reject(u);
g.gapiPickerIframeResolver_.reject(u)});
return g.gapiPickerIframeResolver_.promise},gFI=function(g,r){return _.pc([g.gapiIframesResolver_.promise,
g.gapiPickerIframeResolver_.promise]).then(function(E){var B=_.U(E);E=B.next().value;return(B=B.next().value)?B.send("picker-message-handler",r,void 0,_.XS("makeWhiteListIframesFilter",E)([g.origin_])):_.bV(Error("db"))})};
q6B.prototype.disposeInternal=function(){rkT(this);_.f5.prototype.disposeInternal.call(this)};
var rkT=function(g){g.gapiPickerIframeResolver_.promise.then(function(r){r&&(r.unregister("host-message-handler"),delete g.hostMessageHandlerInternal_["host-message-handler"])})};var EFD=function(){this.JSC$8224_nextId=0};var w0D=function(g,r){switch(g.action){case "select-contacts":g=BWT(g.contacts);break;case "visibility":g=g.visible;var E=new Zw;g=_.Fi(E,1,7).setVisible(g);E={};E["iframe-command"]=g.serialize();g=E;break;default:g=null}return g?gFI(r,g):_.lq()},BWT=function(g){if(!g||g.length==0)return null;
var r=new Zw;_.Fi(r,1,11);var E=new EFD;g.forEach(function(B){if(B.email){var w=new RU;w=_.Vj(w,2,B.name?B.name:B.email);var O=new wF6;B=_.MvA(O,1,_.aA,B.email,_.IA);B=_.Bu(w,27,B);w=new r8w;O=":"+(E.JSC$8224_nextId++).toString(36);w=_.Vj(w,1,O);w=_.Fi(w,2,12);B=_.Bu(B,1,w)}else B=null;B&&Hf(r,7,RU,B)});
g={};g["iframe-command"]=r.serialize();return g};_.S6U=function(){if(bzL){var g=/Windows NT ([0-9.]+)/;return(g=g.exec(_.kc()))?g[1]:"0"}return _.A4B?(g=/1[0|1][_.][0-9_.]+/,(g=g.exec(_.kc()))?g[0].replace(/_/g,"."):"10"):g0Y?(g=/Android\s+([^\);]+)(\)|;)/,(g=g.exec(_.kc()))?g[1]:""):PkX||toJ||Fjl?(g=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(g=g.exec(_.kc()))?g[1].replace(/_/g,"."):""):""}();var $0;$0=function(g){return(g=g.exec(_.kc()))?g[1]:""};
_.Oaw=function(){if(_.qE)return $0(/Firefox\/([0-9.]+)/);if(_.SI||Zx||fSQ)return XxL;if(_.uR){if(_.WJ()||_.GSD()){var g=$0(/CriOS\/([0-9.]+)/);if(g)return g}return $0(/Chrome\/([0-9.]+)/)}if(_.WN&&!_.WJ())return $0(/Version\/([0-9.]+)/);if(R6B||nyD){if(g=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.kc()))return g[1]+"."+g[2]}else if(izA)return(g=$0(/Android\s+([0-9.]+)/))?g:$0(/Version\/([0-9.]+)/);return""}();var UX6=function(){};
_.vv(UX6);UX6.prototype.nextId_=0;_.jY=function(g){return":"+(g.nextId_++).toString(36)};var A1=function(g){_.ze.call(this);this.JSC$8232_dom_=g||kY();this.JSC$8232_id_=null;this.inDocument_=!1;this.JSC$8232_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.rc(A1,_.ze);A1.prototype.idGenerator_=UX6.getInstance();A1.prototype.getId=function(){return this.JSC$8232_id_||(this.JSC$8232_id_=_.jY(this.idGenerator_))};
A1.prototype.getElement=function(){return this.JSC$8232_element_};
var bZ=function(g){g.googUiComponentHandler_||(g.googUiComponentHandler_=new _.EQ(g));return g.googUiComponentHandler_},MS4=function(g,r){if(g==r)throw Error("eb");
var E;if(E=r&&g.parent_&&g.JSC$8232_id_){E=g.parent_;var B=g.JSC$8232_id_;E=E.childIndex_&&B?_.jn.get(E.childIndex_,B)||null:null}if(E&&g.parent_!=r)throw Error("eb");g.parent_=r;A1.superClass_.setParentEventTarget.call(g,r)};
A1.prototype.setParentEventTarget=function(g){if(this.parent_&&this.parent_!=g)throw Error("fb");A1.superClass_.setParentEventTarget.call(this,g)};
A1.prototype.JSC$8234_createDom=function(){this.JSC$8232_element_=this.JSC$8232_dom_.createElement("DIV")};
A1.prototype.render=function(g){q6n(this,g)};
var q6n=function(g,r,E){if(g.inDocument_)throw Error("gb");g.JSC$8232_element_||g.JSC$8234_createDom();r?r.insertBefore(g.JSC$8232_element_,E||null):g.JSC$8232_dom_.JSC$7414_document_.body.appendChild(g.JSC$8232_element_);g.parent_&&!g.parent_.inDocument_||g.enterDocument()};
_.S=A1.prototype;_.S.decorate=function(g){if(this.inDocument_)throw Error("gb");if(g&&this.canDecorate(g)){this.wasDecorated_=!0;var r=_.tL(g);this.JSC$8232_dom_&&this.JSC$8232_dom_.JSC$7414_document_==r||(this.JSC$8232_dom_=kY(g));this.decorateInternal(g);this.enterDocument()}else throw Error("hb");};
_.S.canDecorate=function(){return!0};
_.S.decorateInternal=function(g){this.JSC$8232_element_=g};
_.S.enterDocument=function(){this.inDocument_=!0;uSw(this,function(g){!g.inDocument_&&g.getElement()&&g.enterDocument()})};
_.S.exitDocument=function(){uSw(this,function(g){g.inDocument_&&g.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.S.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);uSw(this,function(g){g.dispose()});
!this.wasDecorated_&&this.JSC$8232_element_&&_.p5(this.JSC$8232_element_);this.parent_=this.model_=this.JSC$8232_element_=this.childIndex_=this.children_=null;A1.superClass_.disposeInternal.call(this)};
_.S.getModel=function(){return this.model_};
_.S.addChild=function(g,r){var E=this.children_?this.children_.length:0;if(g.inDocument_&&(r||!this.inDocument_))throw Error("gb");if(E<0||E>(this.children_?this.children_.length:0))throw Error("ib");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);g.parent_==this?(_.jn.set(this.childIndex_,g.getId(),g),_.ht(this.children_,g)):_.jn.add(this.childIndex_,g.getId(),g);MS4(g,this);_.YDJ(this.children_,E,0,g);g.inDocument_&&this.inDocument_&&g.parent_==this?(r=this.getContentElement(),
(r.childNodes[E]||null)!=g.getElement()&&(g.getElement().parentElement==r&&r.removeChild(g.getElement()),E=r.childNodes[E]||null,r.insertBefore(g.getElement(),E))):r?(this.JSC$8232_element_||this.JSC$8234_createDom(),E=this.children_?this.children_[E+1]||null:null,q6n(g,this.getContentElement(),E?E.JSC$8232_element_:null)):this.inDocument_&&!g.inDocument_&&g.JSC$8232_element_&&g.JSC$8232_element_.parentNode&&g.JSC$8232_element_.parentNode.nodeType==1&&g.enterDocument()};
_.S.getContentElement=function(){return this.JSC$8232_element_};
var uSw=function(g,r){g.children_&&g.children_.forEach(r,void 0)};
A1.prototype.removeChild=function(g,r){if(g){var E=typeof g==="string"?g:g.getId();g=this.childIndex_&&E?_.jn.get(this.childIndex_,E)||null:null;E&&g&&(_.jn.remove(this.childIndex_,E),_.ht(this.children_,g),r&&(g.exitDocument(),g.JSC$8232_element_&&_.p5(g.JSC$8232_element_)),MS4(g,null))}if(!g)throw Error("jb");return g};_.rc(gFQ,TBB);_.rc(rkl,TBB);var lnw;var DXb=function(g,r){r?g.setAttribute("role",r):g.removeAttribute("role")},J1=function(g,r,E){Array.isArray(E)&&(E=E.join(" "));
var B="aria-"+r;E===""||E==void 0?(lnw||(E={},lnw=(E.atomic=!1,E.autocomplete="none",E.dropeffect="none",E.haspopup=!1,E.live="off",E.multiline=!1,E.multiselectable=!1,E.orientation="vertical",E.readonly=!1,E.relevant="additions text",E.required=!1,E.sort="none",E.busy=!1,E.disabled=!1,E.hidden=!1,E.invalid="false",E)),E=lnw,r in E?g.setAttribute(B,E[r]):g.removeAttribute(B)):g.setAttribute(B,E)};var oF6;_.PS=function(g,r,E){_.ze.call(this);this.target=g;this.handle=r||g;this.limits=E||new Jq(NaN,NaN,NaN,NaN);this.JSC$8237_document_=_.tL(g);this.JSC$8237_eventHandler_=new _.EQ(this);_.oO(this,this.JSC$8237_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;_.j_(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=oF6};
_.rc(_.PS,_.ze);oF6=_.ED.document&&_.ED.document.documentElement&&!!_.ED.document.documentElement.setCapture&&!!_.ED.document.releaseCapture;_.GUI=function(g,r){g.hysteresisDistanceSquared_=Math.pow(r,2)};
_.S=_.PS.prototype;_.S.setEnabled=function(g){this.enabled_=g};
_.S.disposeInternal=function(){_.PS.superClass_.disposeInternal.call(this);_.Qu(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8237_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8237_document_.releaseCapture();this.handle=this.target=null};
_.S.startDrag=function(g){var r=g.type=="mousedown";if(!this.enabled_||this.dragging_||r&&(g.event_.button!=0||_.A4B&&g.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new t1("start",this,g.clientX,g.clientY,g)))this.dragging_=!0,r&&g.preventDefault();else return;else r&&g.preventDefault();r=this.JSC$8237_document_;var E=r.documentElement,B=!this.useSetCapture_;this.JSC$8237_eventHandler_.listen(r,["touchmove","mousemove"],this.handleMove_,
{capture:B,passive:!1});this.JSC$8237_eventHandler_.listen(r,["touchend","mouseup"],this.endDrag,B);this.useSetCapture_?(E.setCapture(!1),this.JSC$8237_eventHandler_.listen(E,"losecapture",this.endDrag)):this.JSC$8237_eventHandler_.listen(P$(r),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8237_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,B);this.clientX=this.startX=g.clientX;this.clientY=this.startY=g.clientY;this.screenX=g.screenX;this.screenY=g.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=zM(kY(this.JSC$8237_document_))}};
_.S.endDrag=function(g,r){this.JSC$8237_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8237_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new t1("end",this,g.clientX,g.clientY,g,Qan(this,this.deltaX),z7U(this,this.deltaY),r||g.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.S.handleMove_=function(g){if(this.enabled_){var r=g.clientX-this.clientX,E=g.clientY-this.clientY;this.clientX=g.clientX;this.clientY=g.clientY;this.screenX=g.screenX;this.screenY=g.screenY;if(!this.dragging_){var B=this.startX-this.clientX,w=this.startY-this.clientY;if(B*B+w*w>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new t1("start",this,g.clientX,g.clientY,g)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(g);return}}E=kUD(this,r,E);r=E.x;E=E.y;this.dragging_&&this.dispatchEvent(new t1("beforedrag",
this,g.clientX,g.clientY,g,r,E))&&(Han(this,g,r,E),g.preventDefault())}};
var kUD=function(g,r,E){var B=zM(kY(g.JSC$8237_document_));r+=B.x-g.pageScroll.x;E+=B.y-g.pageScroll.y;g.pageScroll=B;g.deltaX+=r;g.deltaY+=E;return new _.JL(Qan(g,g.deltaX),z7U(g,g.deltaY))};
_.PS.prototype.onScroll_=function(g){var r=kUD(this,0,0);g.clientX=this.clientX;g.clientY=this.clientY;Han(this,g,r.x,r.y)};
var Han=function(g,r,E,B){g.target.style.left=E+"px";g.target.style.top=B+"px";g.dispatchEvent(new t1("drag",g,r.clientX,r.clientY,r,E,B))},Qan=function(g,r){var E=g.limits;
g=isNaN(E.left)?null:E.left;E=isNaN(E.width)?0:E.width;return Math.min(g!=null?g+E:Infinity,Math.max(g!=null?g:-Infinity,r))},z7U=function(g,r){var E=g.limits;
g=isNaN(E.top)?null:E.top;E=isNaN(E.height)?0:E.height;return Math.min(g!=null?g+E:Infinity,Math.max(g!=null?g:-Infinity,r))};
_.PS.prototype.isDragging=function(){return this.dragging_};
var t1=function(g,r,E,B,w,O,M){_.l8.call(this,g);this.clientX=E;this.clientY=B;this.browserEvent=w;this.left=O!==void 0?O:r.deltaX;this.top=M!==void 0?M:r.deltaY};
_.rc(t1,_.l8);var F8=function(g){this.JSC$8244_map_=new Map;var r=arguments.length;if(r>1){if(r%2)throw Error("pa");for(var E=0;E<r;E+=2)this.set(arguments[E],arguments[E+1])}else g&&this.addAll(g)};
_.S=F8.prototype;_.S.getCount=function(){return this.JSC$8244_map_.size};
_.S.getValues=function(){return Array.from(this.JSC$8244_map_.values())};
_.S.getKeys=function(){return Array.from(this.JSC$8244_map_.keys())};
_.S.containsKey=function(g){return this.JSC$8244_map_.has(g)};
_.S.containsValue=function(g){return this.getValues().some(function(r){return r==g})};
_.S.equals=function(g,r){var E=this;r=r===void 0?function(B,w){return B===w}:r;
return this===g?!0:this.JSC$8244_map_.size!=g.getCount()?!1:this.getKeys().every(function(B){return r(E.JSC$8244_map_.get(B),g.get(B))})};
_.S.isEmpty=function(){return this.JSC$8244_map_.size==0};
_.S.clear=function(){this.JSC$8244_map_.clear()};
_.S.remove=function(g){return this.JSC$8244_map_.delete(g)};
_.S.get=function(g,r){return this.JSC$8244_map_.has(g)?this.JSC$8244_map_.get(g):r};
_.S.set=function(g,r){this.JSC$8244_map_.set(g,r);return this};
_.S.addAll=function(g){if(g instanceof F8){g=_.U(g.JSC$8244_map_);for(var r=g.next();!r.done;r=g.next()){var E=_.U(r.value);r=E.next().value;E=E.next().value;this.JSC$8244_map_.set(r,E)}}else if(g)for(g=_.U(Object.entries(g)),r=g.next();!r.done;r=g.next())E=_.U(r.value),r=E.next().value,E=E.next().value,this.JSC$8244_map_.set(r,E)};
_.S.forEach=function(g,r){var E=this;r=r===void 0?this:r;this.JSC$8244_map_.forEach(function(B,w){return g.call(r,B,w,E)})};
_.S.clone=function(){return new F8(this)};(function(){for(var g=["ms","moz","webkit","o"],r,E=0;r=g[E]&&!_.ED.requestAnimationFrame;++E)_.ED.requestAnimationFrame=_.ED[r+"RequestAnimationFrame"],_.ED.cancelAnimationFrame=_.ED[r+"CancelAnimationFrame"]||_.ED[r+"CancelRequestAnimationFrame"];if(!_.ED.requestAnimationFrame){var B=0;_.ED.requestAnimationFrame=function(w){var O=(new Date).getTime(),M=Math.max(0,16-(O-B));B=O+M;return _.ED.setTimeout(function(){w(O+M)},M)};
_.ED.cancelAnimationFrame||(_.ED.cancelAnimationFrame=function(w){clearTimeout(w)})}})();
var p0D=[[],[]],Y6b=0,R7U=!1,nFn=0,fnT=function(g,r){var E=nFn++,B={measureTask:{id:E,fn:g.measure,context:r},mutateTask:{id:E,fn:g.mutate,context:r},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(B.args||(B.args=[]),B.args.length=0,B.args.push.apply(B.args,arguments),B.args.push(B.state)):B.args&&B.args.length!=0?(B.args[0]=B.state,B.args.length=1):B.args=[B.state];B.isScheduled||(B.isScheduled=!0,p0D[Y6b].push(B));R7U||(R7U=!0,window.requestAnimationFrame(saD))}},saD=
function(){R7U=!1;
var g=p0D[Y6b],r=g.length;Y6b=(Y6b+1)%2;for(var E,B=0;B<r;++B){E=g[B];var w=E.measureTask;E.isScheduled=!1;w.fn&&w.fn.apply(w.context,E.args)}for(B=0;B<r;++B)E=g[B],w=E.mutateTask,E.isScheduled=!1,w.fn&&w.fn.apply(w.context,E.args),E.state={};g.length=0};var $XI=_.me(["about:blank"]),jaI=_.me(["javascript:undefined"]),Ak4=_.wF($XI);_.ui(Ak4);var ban=_.wF(jaI);_.ui(ban);var eY=function(g){_.ze.call(this);this.JSC$8250_element_=g;this.listenKeyIn_=_.j_(this.JSC$8250_element_,"focus",this,!0);this.listenKeyOut_=_.j_(this.JSC$8250_element_,"blur",this,!0)};
_.rc(eY,_.ze);eY.prototype.handleEvent=function(g){var r=new _.Df(g.event_);r.type=g.type=="focusin"||g.type=="focus"?"focusin":"focusout";this.dispatchEvent(r)};
eY.prototype.disposeInternal=function(){eY.superClass_.disposeInternal.call(this);s2(this.listenKeyIn_);s2(this.listenKeyOut_);delete this.JSC$8250_element_};var Jkm=function(g,r){this.JSC$8253_element_=g;this.JSC$8253_dom_=r};var WS=function(g,r){A1.call(this,r);this.useIframeMask_=!!g;this.lastFocus_=null;this.resizeBackgroundTask_=fnT({mutate:this.resizeBackground_},this);fnT({mutate:this.updateModalAndBackground_},this)};
_.rc(WS,A1);_.S=WS.prototype;_.S.focusHandler_=null;_.S.visible_=!1;_.S.bgEl_=null;_.S.bgIframeEl_=null;_.S.tabCatcherElement_=null;_.S.backwardTabWrapInProgress_=!1;_.S.getCssClass=function(){return"goog-modalpopup"};
_.S.getBackgroundElement=function(){return this.bgEl_};
_.S.JSC$8234_createDom=function(){WS.superClass_.JSC$8234_createDom.call(this);var g=this.getElement(),r=oX(this.getCssClass()).split(" ");x$(g,r);g.tabIndex=0;_.Vr(g,!1);Pum(this);tSb(this)};
var Pum=function(g){if(g.useIframeMask_&&!g.bgIframeEl_){var r=g.JSC$8232_dom_.JSC$7416_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.ta(r,Ak4);g.bgIframeEl_=r;g.bgIframeEl_.className=g.getCssClass()+"-bg";_.Vr(g.bgIframeEl_,!1);smn(g.bgIframeEl_,0)}g.bgEl_||(g.bgEl_=g.JSC$8232_dom_.JSC$7416_createDom("DIV",g.getCssClass()+"-bg"),_.Vr(g.bgEl_,!1))},tSb=function(g){g.tabCatcherElement_||(g.tabCatcherElement_=g.JSC$8232_dom_.createElement("SPAN"),_.Vr(g.tabCatcherElement_,
!1),g.tabCatcherElement_.tabIndex=0,g.tabCatcherElement_.style.position="absolute")};
_.S=WS.prototype;_.S.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.S.canDecorate=function(g){return!!g&&g.tagName=="DIV"};
_.S.decorateInternal=function(g){WS.superClass_.decorateInternal.call(this,g);g=oX(this.getCssClass()).split(" ");x$(this.getElement(),g);Pum(this);tSb(this);this.getElement().tabIndex=0;_.Vr(this.getElement(),!1)};
_.S.enterDocument=function(){this.bgIframeEl_&&_.$4(this.bgIframeEl_,this.getElement());_.$4(this.bgEl_,this.getElement());WS.superClass_.enterDocument.call(this);_.j5(this.tabCatcherElement_,this.getElement());this.focusHandler_=new eY(this.JSC$8232_dom_.JSC$7414_document_);bZ(this).listen(this.focusHandler_,"focusin",this.onFocus);FRz(this,!1)};
_.S.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.TM(this.focusHandler_);WS.superClass_.exitDocument.call(this);_.p5(this.bgIframeEl_);_.p5(this.bgEl_);_.p5(this.tabCatcherElement_)};
_.S.setVisible=function(g){if(g!=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_&&FRz(this,g),g){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8232_dom_.JSC$7414_document_.activeElement}catch(w){}this.updateModalAndBackground_();bZ(this).listen(this.JSC$8232_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8232_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);e7D(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)nW(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){bZ(this).unlisten(this.JSC$8232_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8232_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)nW(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var r=this.JSC$8232_dom_,E=r.JSC$7414_document_.body,B=r.JSC$7414_document_.activeElement||E;if(!this.lastFocus_||this.lastFocus_==E){this.lastFocus_=null;break a}(B==E||r.contains(this.getElement(),B))&&this.lastFocus_.focus()}catch(w){}this.lastFocus_=
null}}};
var FRz=function(g,r){g.modalAriaVisibilityHelper_||(g.modalAriaVisibilityHelper_=new Jkm(g.JSC$8232_element_,g.JSC$8232_dom_));g=g.modalAriaVisibilityHelper_;if(r){g.hiddenElements_||(g.hiddenElements_=[]);r=g.JSC$8253_dom_.getChildren(g.JSC$8253_dom_.JSC$7414_document_.body);for(var E=0;E<r.length;E++){var B=r[E],w;if(w=B!=g.JSC$8253_element_)w=B.getAttribute("aria-hidden"),w=!(w==null||w==void 0?0:String(w));w&&(J1(B,"hidden",!0),g.hiddenElements_.push(B))}}else if(g.hiddenElements_){for(r=0;r<
g.hiddenElements_.length;r++)g.hiddenElements_[r].removeAttribute("aria-hidden");g.hiddenElements_=null}};
WS.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var e7D=function(g,r){g.bgIframeEl_&&_.Vr(g.bgIframeEl_,r);g.bgEl_&&_.Vr(g.bgEl_,r);_.Vr(g.getElement(),r);_.Vr(g.tabCatcherElement_,r)};
_.S=WS.prototype;_.S.onShow=function(){this.dispatchEvent("show")};
_.S.onHide=function(){e7D(this,!1);this.dispatchEvent("hide")};
_.S.isVisible=function(){return this.visible_};
_.S.focus=function(){this.focusElement_()};
_.S.resizeBackground_=function(){this.bgIframeEl_&&_.Vr(this.bgIframeEl_,!1);this.bgEl_&&_.Vr(this.bgEl_,!1);var g=this.JSC$8232_dom_.JSC$7414_document_;var r=_.GM(P$(this.JSC$8232_dom_.JSC$7414_document_)||window);var E=Math.max(r.width,Math.max(g.body.scrollWidth,g.documentElement.scrollWidth));g=Math.max(r.height,Math.max(g.body.scrollHeight,g.documentElement.scrollHeight));this.bgIframeEl_&&(_.Vr(this.bgIframeEl_,!0),_.p64(this.bgIframeEl_,E,g));this.bgEl_&&(_.Vr(this.bgEl_,!0),_.p64(this.bgEl_,
E,g))};
_.S.reposition=function(){var g;if(_.HwD(this.getElement())=="fixed")var r=g=0;else r=zM(this.JSC$8232_dom_),g=r.x,r=r.y;var E=R4z(this.getElement());var B=_.GM(P$(this.JSC$8232_dom_.JSC$7414_document_)||window);g=Math.max(g+B.width/2-E.width/2,0);r=Math.max(r+B.height/2-E.height/2,0);Fx(this.getElement(),g,r);Fx(this.tabCatcherElement_,g,r)};
_.S.onFocus=function(g){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():g.target==this.tabCatcherElement_&&Rw(this.focusElement_,0,this)};
_.S.focusElement_=function(){try{this.getElement().focus()}catch(g){}};
_.S.disposeInternal=function(){_.TM(this.popupShowTransition_);this.popupShowTransition_=null;_.TM(this.popupHideTransition_);this.popupHideTransition_=null;_.TM(this.bgShowTransition_);this.bgShowTransition_=null;_.TM(this.bgHideTransition_);this.bgHideTransition_=null;WS.superClass_.disposeInternal.call(this)};var WT=function(g,r,E){WS.call(this,r,E);this.JSC$8263_class_=g||"modal-dialog";this.buttons_=(new CU).addButton(WRn,!0).addButton(Cuw,!1,!0)};
_.rc(WT,WS);_.S=WT.prototype;_.S.escapeToCancel_=!0;_.S.hasTitleCloseButton_=!0;_.S.modal_=!0;_.S.draggable_=!0;_.S.backgroundElementOpacity_=.5;_.S.title_="";_.S.JSC$8265_dragger_=null;_.S.JSC$8265_disposeOnHide_=!1;_.S.titleEl_=null;_.S.titleTextEl_=null;_.S.titleTextId_=null;_.S.titleCloseEl_=null;_.S.contentEl_=null;_.S.buttonEl_=null;_.S.getCssClass=function(){return this.JSC$8263_class_};
_.S.setTitle=function(g){this.title_=g;this.titleTextEl_&&_.b6(this.titleTextEl_,g)};
_.S.getTitle=function(){return this.title_};
_.S.getContent=function(){return""};
_.S.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var KRm=function(g){g.getElement()||g.render();return g.getElement()};
WT.prototype.getBackgroundElement=function(){this.getElement()||this.render();return WT.superClass_.getBackgroundElement.call(this)};
var xXm=function(g,r){g.backgroundElementOpacity_=r;g.getElement()&&(r=g.getBackgroundElement())&&smn(r,g.backgroundElementOpacity_)};
WT.prototype.setDraggable=function(g){this.draggable_=g;anz(this,g&&this.inDocument_)};
WT.prototype.JSC$8265_handleDrag=function(){};
var anz=function(g,r){var E=oX(g.JSC$8263_class_+"-title-draggable").split(" ");g.getElement()&&(r?x$(g.titleEl_,E):GMw(g.titleEl_,E));r&&!g.JSC$8265_dragger_?(r=new _.PS(g.getElement(),g.titleEl_),g.JSC$8265_dragger_=r,x$(g.titleEl_,E),_.j_(g.JSC$8265_dragger_,"start",g.setDraggerLimits_,!1,g),_.j_(g.JSC$8265_dragger_,"drag",g.JSC$8265_handleDrag,!1,g)):!r&&g.JSC$8265_dragger_&&(g.JSC$8265_dragger_.dispose(),g.JSC$8265_dragger_=null)};
_.S=WT.prototype;
_.S.JSC$8234_createDom=function(){WT.superClass_.JSC$8234_createDom.call(this);var g=this.getElement(),r=this.JSC$8232_dom_;this.titleTextId_=this.getId();var E=this.getId()+".contentEl";this.titleEl_=r.JSC$7416_createDom("DIV",this.JSC$8263_class_+"-title",this.titleTextEl_=r.JSC$7416_createDom("SPAN",{className:this.JSC$8263_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=r.JSC$7416_createDom("SPAN",this.JSC$8263_class_+"-title-close"));TlD(g,this.titleEl_,this.contentEl_=
r.JSC$7416_createDom("DIV",{className:this.JSC$8263_class_+"-content",id:E}),this.buttonEl_=r.JSC$7416_createDom("DIV",this.JSC$8263_class_+"-buttons"));DXb(this.titleTextEl_,"heading");DXb(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;J1(this.titleCloseEl_,"label","Close");DXb(g,"dialog");J1(g,"labelledby",this.titleTextId_||"");_.Vr(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(g=this.buttons_,g.JSC$8266_element_=this.buttonEl_,g.render());_.Vr(this.buttonEl_,!!this.buttons_);
xXm(this,this.backgroundElementOpacity_)};
_.S.decorateInternal=function(g){WT.superClass_.decorateInternal.call(this,g);g=this.getElement();var r=this.JSC$8263_class_+"-content";this.contentEl_=pV(document,null,r,g)[0];this.contentEl_||(this.contentEl_=this.JSC$8232_dom_.JSC$7416_createDom("DIV",r),g.appendChild(this.contentEl_));r=this.JSC$8263_class_+"-title";var E=this.JSC$8263_class_+"-title-text",B=this.JSC$8263_class_+"-title-close";(this.titleEl_=pV(document,null,r,g)[0])?(this.titleTextEl_=pV(document,null,E,this.titleEl_)[0],this.titleCloseEl_=
pV(document,null,B,this.titleEl_)[0]):(this.titleEl_=this.JSC$8232_dom_.JSC$7416_createDom("DIV",r),g.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=obn(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.Ro("SPAN",{className:E,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;J1(g,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8232_dom_.JSC$7416_createDom("SPAN",
B),this.titleEl_.appendChild(this.titleCloseEl_));_.Vr(this.titleCloseEl_,this.hasTitleCloseButton_);r=this.JSC$8263_class_+"-buttons";(this.buttonEl_=pV(document,null,r,g)[0])?(this.buttons_=new CU(this.JSC$8232_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8232_dom_.JSC$7416_createDom("DIV",r),g.appendChild(this.buttonEl_),this.buttons_&&(g=this.buttons_,g.JSC$8266_element_=this.buttonEl_,g.render()),_.Vr(this.buttonEl_,!!this.buttons_));xXm(this,this.backgroundElementOpacity_)};
_.S.enterDocument=function(){WT.superClass_.enterDocument.call(this);bZ(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);bZ(this).listen(this.buttonEl_,"click",this.onButtonClick_);anz(this,this.draggable_);bZ(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var g=this.getElement();DXb(g,"dialog");this.titleTextEl_.id!==""&&J1(g,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){g=this.JSC$8232_dom_;
var r=this.getBackgroundElement();g.removeNode(this.bgIframeEl_);g.removeNode(r)}this.isVisible()&&FRz(this,!1)}};
_.S.exitDocument=function(){this.isVisible()&&this.setVisible(!1);anz(this,!1);WT.superClass_.exitDocument.call(this)};
_.S.setVisible=function(g){g!=this.isVisible()&&(this.inDocument_||this.render(),WT.superClass_.setVisible.call(this,g))};
_.S.onShow=function(){WT.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.S.onHide=function(){WT.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8265_disposeOnHide_&&this.dispose()};
_.S.setDraggerLimits_=function(){var g=this.JSC$8232_dom_.JSC$7414_document_,r=_.GM(P$(g)||window),E=Math.max(g.body.scrollWidth,r.width);g=Math.max(g.body.scrollHeight,r.height);var B=R4z(this.getElement());_.HwD(this.getElement())=="fixed"?this.JSC$8265_dragger_.limits=new Jq(0,0,Math.max(0,r.width-B.width),Math.max(0,r.height-B.height)):this.JSC$8265_dragger_.limits=new Jq(0,0,E-B.width,g-B.height)};
_.S.onTitleCloseClick_=function(){X0w(this)};
var X0w=function(g){if(g.hasTitleCloseButton_){var r=g.buttons_,E=r&&r.cancelButton_;E?(r=r.get(E),g.dispatchEvent(new KU(E,r))&&g.setVisible(!1)):g.setVisible(!1)}},NWZ=function(g){g.hasTitleCloseButton_=!1;
g.titleCloseEl_&&_.Vr(g.titleCloseEl_,g.hasTitleCloseButton_)};
WT.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;WT.superClass_.disposeInternal.call(this)};
WT.prototype.onButtonClick_=function(g){a:{for(g=g.target;g!=null&&g!=this.buttonEl_;){if(g.tagName=="BUTTON")break a;g=g.parentNode}g=null}if(g&&!g.disabled){g=g.name;var r=this.buttons_.get(g);this.dispatchEvent(new KU(g,r))&&this.setVisible(!1)}};
WT.prototype.onKey_=function(g){var r=!1,E=!1,B=this.buttons_,w=g.target;if(g.type=="keydown")if(this.escapeToCancel_&&g.keyCode==27){var O=B&&B.cancelButton_;w=w.tagName=="SELECT"&&!w.disabled;O&&!w?(E=!0,r=B.get(O),r=this.dispatchEvent(new KU(O,r))):w||(r=!0)}else{if(g.keyCode==9&&g.shiftKey&&w==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(z){}Rw(this.resetBackwardTabWrap_,0,this)}}else if(g.keyCode==13){if(w.tagName=="BUTTON"&&!w.disabled)O=w.name;
else if(w==this.titleCloseEl_)X0w(this);else if(B){var M=B.defaultButton_,u;if(u=M)a:{u=Yr("BUTTON",B.JSC$8266_element_);for(var l,Q=0;l=u[Q];Q++)if(l.name==M||l.id==M){u=l;break a}u=null}w=(w.tagName=="TEXTAREA"||w.tagName=="SELECT"||w.tagName=="A")&&!w.disabled;!u||u.disabled||w||(O=M)}O&&B&&(E=!0,r=this.dispatchEvent(new KU(O,String(B.get(O)))))}else w!=this.titleCloseEl_||g.keyCode!=32&&g.key!=" "||X0w(this);if(r||E)g.stopPropagation(),g.preventDefault();r&&this.setVisible(!1)};
var KU=function(g,r){this.type="dialogselect";this.key=g;this.caption=r};
_.rc(KU,_.l8);var CU=function(g){F8.call(this);g||kY();this.cancelButton_=this.JSC$8266_element_=this.defaultButton_=null};
_.rc(CU,F8);_.S=CU.prototype;_.S.clear=function(){F8.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.S.set=function(g,r,E,B){F8.prototype.set.call(this,g,r);E&&(this.defaultButton_=g);B&&(this.cancelButton_=g);return this};
_.S.addButton=function(g,r,E){return this.set(g.key,g.caption,r,E)};
_.S.render=function(){if(this.JSC$8266_element_){_.cu(this.JSC$8266_element_,oFJ);var g=kY(this.JSC$8266_element_);this.forEach(function(r,E){r=g.JSC$7416_createDom("BUTTON",{name:E},r);E==this.defaultButton_&&(r.className="goog-buttonset-default");this.JSC$8266_element_.appendChild(r)},this)}};
_.S.decorate=function(g){if(g&&g.nodeType==1){this.JSC$8266_element_=g;g=Yr("BUTTON",this.JSC$8266_element_);for(var r,E,B,w=0;r=g[w];w++)if(E=r.name||r.id,B=obn(r)||r.value,E){var O=w==0;this.set(E,B,O,r.name=="cancel");O&&_.dL(r,"goog-buttonset-default")}}};
_.S.getElement=function(){return this.JSC$8266_element_};
var WRn={key:"ok",caption:"OK"},Cuw={key:"cancel",caption:"Cancel"},Inm={key:"yes",caption:"Yes"},mXD={key:"no",caption:"No"},ckT={key:"save",caption:"Save"},iaA={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new CU).addButton(WRn,!0,!0),(new CU).addButton(WRn,!0).addButton(Cuw,!1,!0),(new CU).addButton(Inm,!0).addButton(mXD,!1,!0),(new CU).addButton(Inm).addButton(mXD,!0).addButton(Cuw,!1,!0),(new CU).addButton(iaA).addButton(ckT).addButton(Cuw,!0,!0));_.rc(EFS,WT);_.rc(BWl,xr);var LRb=_.me(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),VSZ=_.me(["//apis.google.com/js/rpc.js"]),DXc=_.wF(LRb),lnL=_.wF(VSZ),S6V=null;var aO=function(g,r){_.ze.call(this);this.JSC$8275_element_=g;g=_.y2(this.JSC$8275_element_)?this.JSC$8275_element_:this.JSC$8275_element_?this.JSC$8275_element_.body:null;this.isRtl_=!!g&&_.fIw(g);this.listenKey_=_.j_(this.JSC$8275_element_,_.Oz?"DOMMouseScroll":"mousewheel",this,r)};
_.rc(aO,_.ze);aO.prototype.handleEvent=function(g){var r=0,E=0,B=g.event_;B.type=="mousewheel"?(g=h7b(-B.wheelDelta),B.wheelDeltaX!==void 0?(r=h7b(-B.wheelDeltaX),E=h7b(-B.wheelDeltaY)):E=g):(g=B.detail,g>100?g=3:g<-100&&(g=-3),B.axis!==void 0&&B.axis===B.HORIZONTAL_AXIS?r=g:E=g);typeof this.maxDeltaX_==="number"&&(r=_.bj(r,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(E=_.bj(E,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(r=-r);r=new ZaA(g,B,r,E);this.dispatchEvent(r)};
var h7b=function(g){return _.Uz&&(_.A4B||J4l)&&g%40!=0?g:g/40};
aO.prototype.disposeInternal=function(){aO.superClass_.disposeInternal.call(this);s2(this.listenKey_);this.listenKey_=null};
var ZaA=function(g,r,E,B){_.Df.call(this,r);this.type="mousewheel";this.detail=g;this.deltaX=E;this.deltaY=B};
_.rc(ZaA,_.Df);_.rx=function(g){var r="instance_";if(g.instance_&&g.hasOwnProperty(r))return g.instance_;r=new g;return g.instance_=r};var uSL;var ykA=_.me(["https://about:blank"]),vF4=_.me(['javascript:""']),dX4=_.me(["about:blank"]);_.rc(hy,EFS);_.S=hy.prototype;_.S.JSC$8283_url_="";_.S.JSC$8283_iframe_=null;_.S.iframeLoaded_=!1;_.S.loadedFired_=!1;_.S.callback_=function(){};
_.S.enterDocument=function(){hy.superClass_.enterDocument.call(this);MSP(this.getBackgroundElement(),bZ(this))};
_.S.render=function(g){var r=this;hy.superClass_.render.call(this,g);this.useGapi_?dDD(this.iframeManager_,window).then(function(){return TWb(r)}).then(null,function(){r.callback_({action:"error"})}):gAz(this)};
var TWb=function(g){var r=g.JSC$8232_dom_.JSC$7416_createDom("div",["picker-dialog-content","picker-frame"]);_.Vr(r,!1);g.getContentElement().appendChild(r);return TBn(g.iframeManager_,r,function(E){var B=HDZ(E["iframe-command"]);switch(B.getCommand()){case 1:E=g.callback_;B=_.zP(B,hq,2);var w="";switch(B.getStatus()){case 2:w="cancel";break;case 1:w="picked";break;case 3:w="error"}var O=_.ER(B,RU,2,_.BT(gED));B=O.length===0?{action:w}:FDD(O,w,_.zP(B,QAU,7));E.call(g,B);g.setVisible(!1);break;case 4:NWZ(g);
g.callback_({action:"loaded"});break;case 7:case 8:E=g.callback_;a:{w=B.getCommand();O=_.zP(B,hq,2);switch(w){case 7:w="uploadScheduled";break;case 8:w="uploadStateChange";break;default:B={};break a}B=_.ER(O,RU,2,_.BT(gED));if(B.length===0)B={action:w};else{var M=_.zP(O,QAU,7);O=M&&_.jI(M,1);M=Ron(M);B=fkw(B,w,O,M)}}E.call(g,B)}},g.JSC$8283_url_,g.targetId_,g.rpcToken_).then(function(E){g.JSC$8283_iframe_=E.getIframeEl();
rsw(g);_.Vr(g.JSC$8283_iframe_.parentElement,!0);_.dL(g.getElement(),"picker-dialog");EAm(g);return E})},gAz=function(g){g.JSC$8283_iframe_=g.JSC$8232_dom_.JSC$7416_createDom("IFRAME",{id:g.targetId_,
name:g.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.ta(g.JSC$8283_iframe_,BM6(g));_.dL(g.getElement(),"picker-dialog");g.getContentElement().appendChild(g.JSC$8283_iframe_);bZ(g).listen(g.JSC$8283_iframe_,"load",function(){return void rsw(g)});
g.JSC$8283_iframe_.src=g.JSC$8283_url_;EAm(g)},Srn=function(g){wNb(g,(0,_.$r)(function(r){r.setAuthToken(this.targetId_,this.rpcToken_)},g))},EAm=function(g){var r=_.iD(_.cT(g.JSC$8283_url_),"title");
r&&g.setTitle(r)},BM6=function(g){return _.lQY("Internet Explorer")>=7&&_.wl(g.JSC$8283_url_,"https")?_.wF(ykA):_.SI?_.wF(vF4):_.wF(dX4)},rsw=function(g){Srn(g);
g.iframeLoaded_=!0;g.JSC$8283_iframe_.tabIndex=0;g.isVisible()&&g.focus()};
hy.prototype.handleKeydown_=function(g){g.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),g.stopPropagation(),g.preventDefault())};
var wNb=function(g,r){var E=g.JSC$8281_gadgetsDomHelper_;OaL(function(){r(E.getWindow().gadgets.rpc)},E)};
hy.prototype.setUrl=function(g){g=_.L5(new _.Vk(g),"rpcService",this.targetId_);_.L5(g,"rpctoken",this.rpcToken_);_.d9(g,"rpctoken="+this.rpcToken_);_.Vu(g,"https");this.JSC$8283_url_=g.toString();this.JSC$8283_iframe_&&(this.JSC$8283_iframe_.src=this.JSC$8283_url_)};
var O34=function(g,r){g.callback_=r;wNb(g,(0,_.$r)(function(E){E.register(this.targetId_,(0,_.$r)(this.handlePickerAction_,this))},g))};
hy.prototype.handlePickerAction_=function(g){var r=g.action;r=="loaded"&&(this.loadedFired_=!0,UeT(this,new rkl(this.isVisible())),Mg4(this),NWZ(this),bZ(this).unlisten(this.JSC$8232_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8283_iframe_.tabIndex=0);r!="picked"&&r!="cancel"||this.setVisible(!1);this.callback_(g)};
var Mg4=function(g){g.JSC$8283_appId_&&UeT(g,new gFQ(g.JSC$8283_appId_,window.location.protocol+"//"+window.location.host))};
hy.prototype.setRelayUrl=function(g){wNb(this,(0,_.$r)(function(r){r.setRelayUrl(this.targetId_,g)},this))};
var UeT=function(g,r){g.useGapi_&&w0D(r,g.iframeManager_).then(null,function(){g.callback_({action:"error"})});
wNb(g,(0,_.$r)(function(E){E.call(this.targetId_,"picker",null,r)},g))};
hy.prototype.resizePicker_=function(){var g=P$(this.JSC$8232_dom_.JSC$7414_document_)||window;if(_.iD(_.cT(this.JSC$8283_url_),"ignoreLimits")=="true")g=new _.oQ(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.iD(_.cT(this.JSC$8283_url_),"shadeDialog")=="true"){var r=KRm(this);r=$zb(r);var E=_.GM(g);g=E.width-80;E=E.height-40;r&&(g-=r.left?r.left:0,g-=r.right?r.right:0,E-=r.top?r.top:0,E-=r.bottom?r.bottom:0);g=new _.oQ(g>0?g:0,E>0?E:0)}else(r=this.preferredDialogWidth_)?(r=Math.max(320,
Math.min(1051,r)),(E=this.preferredDialogHeight_)||(E=_.GM(g).height*.85),E=Math.max(480,Math.min(650,E))):(r=_.GM(g),E=r.width*.618,E=E<r.height?Math.round(Math.max(480,Math.min(650,E*.85))):Math.round(Math.max(480,Math.min(650,r.height*.85))),r=Math.round(E/.618)),g=_.GM(g),r=Math.min(r,Math.max(g.width,320)),E=Math.min(E,Math.max(g.height,480)),g=new _.oQ(r,E);_.p64(this.getContentElement(),g);this.reposition()};
hy.prototype.reposition=function(){if(_.iD(_.cT(this.JSC$8283_url_),"shadeDialog")=="true"){var g=R4z(this.getElement()),r=_.GM(this.JSC$8232_dom_.getWindow());g=Math.floor(r.width/2-g.width/2);r=KRm(this);if(r=$zb(r)){var E=r.left?r.left:0;E+=r.right?r.right:0;g=Math.floor(g-E/2)}g=g>0?g:0;r=zM(this.JSC$8232_dom_).y;Fx(this.getElement(),g,r)}else hy.superClass_.reposition.call(this)};
hy.prototype.setVisible=function(g){if(g!=this.isVisible()&&this.autoSizeDialog_){var r=this.JSC$8232_dom_.getWindow();g?(this.resizePicker_(),bZ(this).listen(r,"resize",this.resizePicker_),this.iframeLoaded_||bZ(this).listen(r,"keydown",this.handleKeydown_)):(bZ(this).unlisten(r,"resize",this.resizePicker_),this.iframeLoaded_||bZ(this).unlisten(r,"keydown",this.handleKeydown_))}hy.superClass_.setVisible.call(this,g);UeT(this,new rkl(g))};
hy.prototype.focus=function(){hy.superClass_.focus.call(this);if(this.JSC$8283_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8283_iframe_.focus()}catch(g){}};var FT=function(g,r){r=r===void 0?hy:r;xr.call(this,g);this.pickerConstructor=r;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(g=window.location.origin)||(g=window.location.protocol+"//"+window.location.host);g&&this.urlParamMap_.set("origin",g);this.postProcessors_=[]};
_.f(FT,BWl);FT.prototype.JSC$8288_disposeOnHide_=!1;
FT.prototype.build=function(){this.JSC$8189_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$8189_appId_);this.getRelayUrl()||this.setRelayUrl(_.yu(_.d9(_.v2(_.cT(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("kb");var g=new this.pickerConstructor(qrw(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);g.JSC$8265_disposeOnHide_=this.JSC$8288_disposeOnHide_;
g.JSC$8283_appId_=this.JSC$8189_appId_;g.loadedFired_&&Mg4(g);O34(g,this.callback_);return g};
var u1A=function(g){g.urlParamMap_.set("multiselectEnabled","true");return g};
FT.prototype.getHeight=function(){return this.dialogHeight_};
FT.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
FT.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
FT.prototype.getWidth=function(){return this.dialogWidth_};
var lxT=function(g){g.JSC$8288_disposeOnHide_=void 0;return g};
FT.prototype.setRelayUrl=function(g){this.urlParamMap_.set("parent",g);return this};
var DeD=function(g,r){g.urlParamMap_.set("selectButtonLabel",r);return g};
FT.prototype.setSize=function(g,r){this.dialogWidth_=g;this.dialogHeight_=r;return this};
FT.prototype.setTitle=function(g){this.urlParamMap_.set("title",g);return this};
var qrw=function(g){g.postProcessors_.length&&g.urlParamMap_.set("pp",JSON.stringify(g.postProcessors_));g.urlParamMap_.set("nav",kWI(g.nav_));var r=new _.Vk(g.getBaseUrl());g.urlParamMap_.forEach(function(E,B){_.L5(r,B,E)});
return r};var Qj6=function(g,r){g.name!==void 0?(this.name=g.name,this.code=oAw[g.name]):(this.code=g=g.code,this.name=GZn(g));_.gl.call(this,CyJ("%s %s",this.name,r))};
_.rc(Qj6,_.gl);var GZn=function(g){var r=_.jn.findKey(oAw,function(E){return g==E});
if(r===void 0)throw Error("mb`"+g);return r},x0={},oAw=(x0.AbortError=3,x0.EncodingError=5,x0.InvalidModificationError=9,x0.InvalidStateError=7,x0.NotFoundError=1,x0.NotReadableError=4,x0.NoModificationAllowedError=6,x0.PathExistsError=12,x0.QuotaExceededError=10,x0.SecurityError=2,x0.SyntaxError=8,x0.TypeMismatchError=11,x0);var zfD=function(g,r){_.l8.call(this,g.type,r);this.event_=g};
_.rc(zfD,_.l8);var kZT=function(g,r,E){E===void 0&&(E=g.size);return g.slice?g.slice(r,E):null};var QaB=new WeakMap,GUQ=function(g,r){g=[g];for(var E=r.length-1;E>=0;--E)g.push(typeof r[E],r[E]);return g.join("\v")};_.kUt(function(){if(!_.ED.Blob)return!1;var g=new Uint8Array(100);try{var r=new Blob([g])}catch(E){return!1}return r.size!=100?!1:!0});
var H3m=_.kUt(function(){if(!_.ED.Blob)return!1;var g=new Uint8Array(100);try{var r=new Blob([g])}catch(E){return!1}return kZT(r,0,1)===null?!1:!0});_.ED.U3bHHf!=null||(_.ED.U3bHHf=0);_.ED.U3bHHf++;var HaB={};var dY=void 0;var Y6c=Symbol("ub");var WRB=gB("WizInjectionContext_Dispatcher");var B0=Symbol("vb");var GU=function(){this.afterRenderCallbacks=null},ZCD=Symbol("wb"),YF=function(g){this.props=g;
this.__unmounted=!1};
YF.prototype.didPatch=function(){};
YF.prototype.didMount=function(){};
YF.prototype.didUnmount=function(){};
YF.prototype.didUpdate=function(){};var JkX=gB("WizInjectionContext_RootElement");var tSc=gB("WizInjectionContext_AppContext"),PuX=gB("WizInjectionContext_ModelRootElement"),FRo=gB("WizInjectionContext_RendererData"),e7S=gB("WizInjectionContext_InjectingConstructor"),baA=gB("WizInjectionContext_AsyncDeps"),CuD={};var InX=!1;var LRc={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:RuL,enableLazyTsx:ndP,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:YjJ,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var Ex=Object.assign({},{attributes:{},handleError:function(g){throw g;}},LRc);var pNw=Symbol("Ab"),pl=Symbol("Bb"),xel=Symbol("Cb"),CcY=Symbol("Db"),i3J=mn(function(g){return Bp(g)&&pNw in g});var TWc=Symbol("Eb"),a2={},vFP=(a2[TWc]=!0,a2.debugName="[component]",a2.getComponentStack=function(){for(var g=[],r=this;r;)gAo(r)&&g.push(r.debugName),r=r.parent;return g},a2.registerSignal=function(){},a2.registerEffect=function(){},a2);var wB=null,Ox=!1,O3P=1,qD=Symbol("Fb"),zW={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var X8=Symbol("Gb"),Nc=Symbol("Hb"),MD=Symbol("Ib"),GZB=Object.assign({},zW,{value:X8,dirty:!0,error:null,equal:rsD,kind:"computed",producerMustRecompute:function(g){return g.value===X8||g.value===Nc},
producerRecomputeValue:function(g){if(g.value===Nc)throw Error("da");var r=g.value;g.value=Nc;var E=lxl(g),B=!1;try{var w=g.computation();S1(null);B=r!==X8&&r!==MD&&w!==MD&&g.equal(r,w)}catch(O){w=MD,g.error=O}finally{DeS(g,E)}B?g.value=r:(g.value=w,g.version++)}});var H3X=function(){throw Error();};var Yrl=null,zft=Object.assign({},zW,{equal:rsD,value:void 0,kind:"signal"});Object.assign({},zW,{value:X8,dirty:!0,error:null,equal:rsD,kind:"linkedSignal",producerMustRecompute:function(g){return g.value===X8||g.value===Nc},
producerRecomputeValue:function(g){if(g.value===Nc)throw Error("da");var r=g.value;g.value=Nc;var E=lxl(g);try{var B=g.source();var w=g.computation(B,r===X8||r===MD?void 0:{source:g.sourceValue,value:r});g.sourceValue=B}catch(O){w=MD,g.error=O}finally{DeS(g,E)}r!==X8&&w!==MD&&g.equal(r,w)?g.value=r:(g.value=w,g.version++)}});Object.assign({},zW,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(g){g.schedule!==null&&g.schedule(g.ref)},
hasRun:!1,cleanupFn:function(){}});var nAB=Symbol("Jb"),oB=Symbol("Kb");var GW=Array.isArray;var tgY;var YrA={},eft=Pcl(Object.assign({},{consumerAllowSignalWrites:!0},YrA)),zU=Pcl(Object.assign({},{consumerAllowSignalWrites:!0},YrA));var YB=0,RB=!1,I2=function(){this.queue=new Set};
I2.prototype.remove=function(g){this.queue.delete(g)};
I2.prototype.clear=function(){this.queue.clear()};
var Rfm=function(){I2.apply(this,arguments)};
_.f(Rfm,I2);Rfm.prototype.schedule=function(g){this.queue.add(g)};
Rfm.prototype.flush=function(){if(this.queue.size){RB=!0;try{for(var g=_.U(this.queue),r=g.next();!r.done;r=g.next()){var E=r.value;this.queue.delete(E);try{E.run()}catch(B){nAn(B)}}}finally{RB=!1}}};
var sjn=new Rfm,mT=function(){I2.apply(this,arguments)};
_.f(mT,I2);var fxZ=function(){mT.apply(this,arguments)};
_.f(fxZ,mT);fxZ.prototype.schedule=function(g){g.hasRun?this.queue.add(g):g.run()};
fxZ.prototype.flush=function(){if(this.queue.size)if(Ex.flushRenderEffectsDuringRender){var g=this.queue;this.queue=new Set;L0t(g)}else L0t(this.queue)};
var W0Q=new fxZ,$eU=function(){mT.apply(this,arguments)};
_.f($eU,mT);$eU.prototype.schedule=function(g){var r=this;return _.q(function(E){if(E.nextAddress==1)return g.hasRun?E.jumpTo(2):_.D(E,Promise.resolve(),3);if(E.nextAddress!=2)return g.run(),E.return();r.queue.add(g);_.Q3(E)})};
$eU.prototype.flush=function(){var g=this;return _.q(function(r){if(r.nextAddress==1)return g.queue.size?_.D(r,Promise.resolve(),2):r.return();L0t(g.queue);_.Q3(r)})};
var axl=new $eU,jjn=function(){mT.apply(this,arguments)};
_.f(jjn,mT);jjn.prototype.schedule=function(g){this.queue.add(g)};
jjn.prototype.flush=function(){this.queue.size&&L0t(this.queue)};
var K0l=new jjn,meV=[W0Q,sjn,K0l,axl],AsU=[W0Q,K0l,axl],NMV=[];Yrl=function(){csl();for(var g=_.U(NMV),r=g.next();!r.done;r=g.next())r=r.value,r()};
var nAn=BJ;var fl=Symbol("Pb");var sx=null,Z3t,ysB=null,vAl;var cS={},b34=Object.assign({},zW,(cS[pNw]=!0,cS.effectType=pl,cS.isResettableContext=!0,cS.hasRun=!1,cS.effectFn=null,cS.consumerIsAlwaysLive=!0,cS.consumerAllowSignalWrites=!0,cS.consumerMarkedDirty=XNt,cS.kind="effect",cS.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(Ox)throw Error("Qb");this.dirty=!1;if(!this.hasRun||Uel(this)){this.hasRun=!0;AkP(this);var g=_.TP(this),r=lxl(this);h7c("effectRun",this.debugName);try{A5(this.effectFn,this.componentStack)}catch(E){throw Ex.enableContextBasedComponentStacks&&
j1(E),E;}finally{Zal("effectRun",this.debugName),DeS(this,r),_.TP(g)}}}},cS.componentStack=void 0,cS.debugName="[effect]",cS[Symbol.dispose]=function(){EAX(this);
if(Ux(this))for(var g=0;g<this.producerNode.length;g++)BMJ(this.producerNode[g],this.producerIndexOfThis[g]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);g=_.U(AsU);for(var r=g.next();!r.done;r=g.next())r.value.remove(this);jaQ(this)},cS));var gRS=Object.assign({},b34,{effectType:xel});var rpL=Symbol("Rb");var ERA=Object.assign({},b34,{effectType:pl});var x_X=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 SeQ={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},w8X=
{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}]}},tIL={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},MED=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],U_B={"*":{async:1,dir:0,loading:2,target:3}};var JsT=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,iZ={},u6A=(iZ[1]=null,iZ[2]=function(g,r){return r instanceof bi?Pu(r):RC.toString()},iZ[3]=function(g,r){return Qv(r)?_.zh(r):JsT.test(String(r))?String(r):RC.toString()},iZ[4]=function(g,r){return r instanceof MO?_.ui(r):RC.toString()},iZ[5]=function(g,r){return String(r)},iZ[7]=null,iZ[8]=null,iZ[10]=null,iZ);var g3V=Symbol("Ub");var PbV=function(g){var r=PcA,E=g,B="",w="",O=1;g<0&&(g=-g);if(g===Infinity)g=(Infinity*Math.sign(E)).toString();else{for(var M=0;M<tgZ.length;M++){var u=tgZ[M];O=r[u];if(g>=O||O<=1&&g>.1*O){B=u;break}}B?(B+="B",w=" "):O=1;g=Math.round(E/O*10)/10+w+B}return g},tgZ="Y Z E P T G M K  m u n".split(" "),PcA={"":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};_.F04=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 gKL={};RegExp.prototype.hasOwnProperty("sticky");var X8c=function(g){g=String(g);for(var r=function(B,w,O){for(var M=Math.min(w.length-O,B.length),u=0;u<M;u++){var l=w[O+u];if(B[u]!==("A"<=l&&l<="Z"?l.toLowerCase():l))return!1}return!0},E=0;(E=g.indexOf("<",E))!=-1;){if(r("\x3c/script",g,E)||r("\x3c!--",g,E))return"zSoyz";
E+=1}return g},T2l=function(g){return g!=null&&g.contentKind===gKL};var aB={default:"__default"};var kjP=Object.prototype.hasOwnProperty;oRL.prototype=Object.create(null);var vf=Yet();var y6=null;var tEB=function(g){this.created=[];this.deleted=[];this.node=g};var FSc=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var g=this,r=g;g;)r=g,g=g.parentNode;return r};var nRL=function(g,r){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=g;this.key=r;this.text=void 0};var mD=null,cp=null,ND=null,Ll=null,Apl=[],jTA=fHS,h5=[],Zk=[],TLD=function(g){return eIL(function(r,E,B){ND=cp=r;cp=null;E(B);$_P(null);cp=ND;ND=ND.parentNode;return r},g)}(),dyo=function(g){return eIL(function(r,E,B){var w={nextSibling:r};
cp=w;E(B);ND&&$_P(r.nextSibling);return w===cp?null:cp},g)}();var vp=[],Cdl=0;var dB=new oRL;var Pw=new oRL;var efD=Yet(),m_t=efD[aB.default],IHt=efD.style,aHV=["focusin","focusout"],LSQ="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var Anl=function(){},zRc=function(){},FHD=function(){},JnA=function(){};var E6=Symbol("ac");var vRD,ypS=Z9A;var lu=Symbol("bc");var tlQ=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(" ")),
P2L=new Set(["a","font","script","style","title"]);var uu={setUp:qqJ,tearDown:qqJ,log:qqJ,logNodeRange:qqJ,graft:function(g,r){r()}};var kF={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var H0=null,pa=function(g,r){YF.call(this,g);var E=this;this.functionComponent=r;this.hooks=[];this.hookCounter=0;this.disposeEffects=Pp(function(B){E.effectContext=B;_.J5(function(){Yql(E,E.el)})},Ex.alwaysTrackContexts||!!dY)};
_.f(pa,YF);pa.prototype.render=function(g){var r=H0;H0=this;this.hookCounter=0;var E=S1(zU),B=_.TP(this.effectContext);try{return h7c("render",this.componentName),this.functionComponent(g)}finally{Zal("render",this.componentName),_.TP(B),S1(E),H0=r}};
_.hx.Object.defineProperties(pa.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return Vgo(this.functionComponent)}}});var eRJ=Symbol("pc"),$bJ=function(g,r,E){this.afterRenderCallbacks=null;this.kind=g;this.props=r;this.children=E};
_.f($bJ,GU);$bJ.prototype.render=function(){var g=f8X(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var r=_.U(this.afterRenderCallbacks),E=r.next();!E.done;E=r.next())E=E.value,g=E(g);return g};
$bJ.prototype.getChildren=function(){return this.children};var C2Q=[];H3X=function(g){throw Error("tb`"+g.debugName);};
(function(){var g=y6;y6=function(r){g==null||g(r);KHA(r)}})();var W0I=new WeakMap,CcZ=0;var K0A=void 0,xeA={},axT=new WeakMap,iAD={getComponent:function(g){if(g.hasAttribute("ng-version"))return xeA;if(!g.__wizComponent)return null;g=g.__wizComponent;axT.set(g.propsAndState,g);return g.propsAndState},
getDirectiveMetadata:function(g){if(g===xeA)return{framework:"wiz",name:"<Root>",props:{}};g=axT.get(g);if(!g)throw Error("qc");return{framework:"wiz",name:g.name,props:Object.fromEntries(Object.keys(g.props).map(function(r){return[r,r]}))}},
"\u0275setProfiler":function(g){var r;(r=K0A)==null||r();K0A=Ixc(function(){g(2)})},
getInjector:function(g){return g.__wizComponent},
"\u0275getSignalGraph":function(g){var r;g=(r=g.effects)!=null?r:[];var E=xbl(g),B=Array.from(E.keys());r=[];g=[];for(var w=new Map,O=0;O<B.length;O++)w.set(B[O],O);E=_.U(E.entries());for(B=E.next();!B.done;B=E.next()){O=_.U(B.value);B=O.next().value;var M=O.next().value;O=B;B=w.get(O);var u=W0I.get(O);u||(u=CcZ.toString(),W0I.set(O,u),CcZ++);var l=void 0,Q=(l=O.debugName)!=null?l:"";l=Q.startsWith("[signal]")?Q:Q.replace(/@.+/,"");O.kind==="computed"?r.push({label:l,value:O.value,kind:O.kind,epoch:O.version,
debuggableFn:O.computation,id:u}):O.kind==="signal"?r.push({label:l,value:O.value,kind:O.kind,epoch:O.version,id:u}):O.kind==="effect"?(Q=void 0,r.push({label:l,kind:O.kind,epoch:O.version,debuggableFn:(Q=O.effectFn)!=null?Q:void 0,id:u})):r.push({label:l,kind:O.kind,epoch:O.version,id:u});O=_.U(M);for(M=O.next();!M.done;M=O.next())g.push({consumer:B,producer:w.get(M.value)})}return{nodes:r,edges:g}},
isSignal:function(g){return typeof g==="function"&&g[qD]!==void 0}};Object.assign({},b34,{effectType:pl,hasRun:!0,attributes:null});Object.assign({},b34,{effectType:pl,hasRun:!0});_.p.debugName="RlDudd";var a8c={nonNullableCondIsNull:function(){return Error("wc")}};var iCl=function(){this.map=new Map};
iCl.prototype.push=function(g,r){var E=this.map;E.has(g)&&(this.multi||(this.multi=new Map),this.multi.set(r,E.get(g)));E.set(g,r)};
iCl.prototype.pop=function(g){var r=this.map,E=r.get(g),B;E!==void 0&&((B=this.multi)==null?0:B.has(E))?(r.set(g,this.multi.get(E)),this.multi.delete(E)):r.delete(g);return E};_.Ra.debugName="nsTGHd";_.na.debugName="tbhMcf";_.s6.debugName="zyMFzb";_.fa.debugName="vI1rtf";_.vKS={OUT_OF_ORDER_HOOK_CALL:function(g){return Error("xc`"+g)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("yc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("zc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("Ac")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(g,r){return Error("Bc`"+((r===void 0?0:r)?"IDOM":"Reactive")+"`"+g)},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(g,r){return Error("Cc`"+g+"`"+r)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(g){return Error("Dc`"+g)},
USE_ELEMENT_NOT_ASSIGNED:function(g){return Error("Ec`"+String(g))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(g){return Error("Fc`"+String(g))}};vRD=jIl;var SbQ=Symbol("Gc");HCc({beforeRender:function(g){var r=_.TP(g.effectContext);try{var E;((E=g.__syncEffects)==null?0:E.length)&&UHP(g.__syncEffects)}finally{_.TP(r)}},
didPatch:function(g){var r=_.TP(g.effectContext);try{var E;((E=g.__syncEffects)==null?0:E.length)&&UHP(g.__syncEffects)}finally{_.TP(r)}},
didUnmount:function(g){var r;((r=g.hooks)==null?0:r.length)&&g.hooks.forEach(OkV)}});var XND,NMU,Ixb;XND=_.ED.window;_.eS=(XND==null?void 0:(NMU=XND.yt)==null?void 0:NMU.config_)||(XND==null?void 0:(Ixb=XND.ytcfg)==null?void 0:Ixb.data_)||{};_.vN("yt.config_",_.eS);var meU={},lsL=[];_.Rj=function(g){var r=_.fI.apply(1,arguments);var E=Error.call(this,g);this.message=E.message;"stack"in E&&(this.stack=E.stack);this.args=[].concat(_.jW(r));Object.setPrototypeOf(this,this.constructor.prototype)};
_.f(_.Rj,Error);var o0t=function(g,r,E){this.actionName=g;this.optionalAction=r===void 0?!1:r;this.args=E===void 0?null:E;this.returnValue=[]};_.V=function(g){this.name=g};_.aI=new _.V("signalAction");var n5l=/^[\w.]*$/,zUY={q:!0,search_query:!0},Qvt=String(G5Y);var LU;LU=Symbol("Hc");_.Vn=function(g){this.name=g};
_.Vn.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var svc=function(g){this.key=g},jvP=function(g){this.deferredKey=g},$HL=function(){var g=this;
this.providers=new Map;this.JSC$8540_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(g.providers)}}};
$HL.prototype.addProvider=function(g){this.providers.set(g.provide,g);var r=this.JSC$8540_deferred.get(g.provide);if(r)try{r.resolver(this.resolve(g.provide))}catch(E){r.rejector(E)}};
$HL.prototype.resolve=function(g){return g instanceof jvP?csA(this,g):g instanceof svc?i36(this,g.key,[],!0):i36(this,g,[])};
var csA=function(g,r){r=r.deferredKey;if(g.JSC$8540_deferred.has(r))return g.JSC$8540_deferred.get(r).promise;var E={};E.promise=new Promise(function(B,w){E.resolver=B;E.rejector=w});
g.JSC$8540_deferred.set(r,E);return E.promise},i36=function(g,r,E,B){B=B===void 0?!1:B;
if(E.indexOf(r)>-1)throw Error("Ic`"+r);if(g.cachedValues.has(r))return g.cachedValues.get(r);if(!g.providers.has(r)){if(B)return;throw Error("Jc`"+r);}B=g.providers.get(r);E.push(r);if(B.useValue!==void 0)var w=B.useValue;else if(B.useFactory)w=B[LU]?L0D(g,B[LU],E):[],w=B.useFactory.apply(B,_.jW(w));else if(B.useClass){w=B.useClass;var O=w[LU]?L0D(g,w[LU],E):[];w=new (Function.prototype.bind.apply(w,[null].concat(_.jW(O))))}else throw Error("Kc`"+r);E.pop();B.skipCache||g.cachedValues.set(r,w);return w},
L0D=function(g,r,E){return r?r.map(function(B){return B instanceof svc?i36(g,B.key,E,!0):i36(g,B,E)}):[]};var fsD;var Nb=new _.Vn("ENDPOINT_HANDLER_TOKEN");_.II=new _.V("urlEndpoint");var Vgz=function(){this.data=[];this.cachedPackedInt52=-1};
Vgz.prototype.set=function(g,r){r=r===void 0?!0:r;0<=g&&g<52&&Number.isInteger(g)&&this.data[g]!==r&&(this.data[g]=r,this.cachedPackedInt52=-1)};
Vgz.prototype.get=function(g){return!!this.data[g]};
var hfm=function(g){g.cachedPackedInt52===-1&&(g.cachedPackedInt52=g.data.reduce(function(r,E,B){return r+(E?Math.pow(2,B):0)},0));
return g.cachedPackedInt52};var NHX=function(g){var r=Z3D;g=g===void 0?_.XS("yt.ads.biscotti.lastId_")||"":g;var E=Object,B=E.assign,w={};w.dt=hTn;w.flash="0";a:{try{var O=r.JSC$8546_win_.top.location.href}catch(OD){O=2;break a}O=O?O===r.doc_.location.href?0:1:2}w=(w.frm=O,w);try{w.u_tz=-(new Date).getTimezoneOffset();try{var M=W2.history.length}catch(OD){M=0}w.u_his=M;var u;w.u_h=(u=W2.screen)==null?void 0:u.height;var l;w.u_w=(l=W2.screen)==null?void 0:l.width;var Q;w.u_ah=(Q=W2.screen)==null?void 0:Q.availHeight;var z;w.u_aw=
(z=W2.screen)==null?void 0:z.availWidth;var k;w.u_cd=(k=W2.screen)==null?void 0:k.colorDepth}catch(OD){}M=r.JSC$8546_win_;try{var H=M.screenX;var R=M.screenY}catch(OD){}try{var A=M.outerWidth;var J=M.outerHeight}catch(OD){}try{var e=M.innerWidth;var C=M.innerHeight}catch(OD){}try{var X=M.screenLeft;var Z=M.screenTop}catch(OD){}try{e=M.innerWidth,C=M.innerHeight}catch(OD){}try{var c=M.screen.availWidth;var h=M.screen.availTop}catch(OD){}H=[X,Z,H,R,c,h,A,J,e,C];R=k2D(!1,r.JSC$8546_win_.top);A={};var y=
y===void 0?_.ED:y;J=new Vgz;"SVGElement"in y&&"createElementNS"in y.document&&J.set(0);e=IQI();e["allow-top-navigation-by-user-activation"]&&J.set(1);e["allow-popups-to-escape-sandbox"]&&J.set(2);y.crypto&&y.crypto.subtle&&J.set(3);"TextDecoder"in y&&"TextEncoder"in y&&J.set(4);y=hfm(J);r=(A.bc=y,A.bih=R.height,A.biw=R.width,A.brdim=H.join(),A.vis=Ert(r.doc_),A.wgl=!!W2.WebGLRenderingContext,A);E=B.call(E,w,r);E.ca_type="image";g&&(E.bid=g);return E},Z3D=new function(){var g=window.document;
this.JSC$8546_win_=window;this.doc_=g};
_.vN("yt.ads_.signals_.getAdSignalsString",function(g){return k5J(NHX(g))});_.dx();navigator.userAgent.indexOf(" (CrKey ");var t8Y="XMLHttpRequest"in _.ED?function(){return new XMLHttpRequest}:null;var ysn="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),vAT=[].concat(_.jW(ysn),["client_dev_set_cookie"]);var X3A={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"},W8l="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(_.jW(ysn)),yxY=!1,K8D=_.Isl,V8A=asJ;var pwX=[{messageFn:function(g){return"Cannot read property '"+g.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(g){return"Cannot call '"+g.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(g){return g.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var den={messageWeights:[],callbackWeights:[{callback:gyQ,weight:500},{callback:rFL,weight:500}]};var TMm=function(){this.callbackWeights=[];this.messageWeights=[]},gRD,HWL=function(){if(!gRD){var g=gRD=new TMm;
g.messageWeights.length=0;g.callbackWeights.length=0;ozP(g,den)}return gRD},ozP=function(g,r){r.messageWeights&&g.messageWeights.push.apply(g.messageWeights,r.messageWeights);
r.callbackWeights&&g.callbackWeights.push.apply(g.callbackWeights,r.callbackWeights)};_.rc(_.GZ,_.f5);_.GZ.prototype.subscribe=function(g,r,E){var B=this.topics_[g];B||(B=this.topics_[g]=[]);var w=this.JSC$8570_key_;this.subscriptions_[w]=g;this.subscriptions_[w+1]=r;this.subscriptions_[w+2]=E;this.JSC$8570_key_=w+3;B.push(w);return w};
var rpw=function(g){var r=s3L,E=!1,B=r.subscribe("handleError",function(w){E||(E=!0,this.unsubscribeByKey(B),g.apply(void 0,arguments))},r)};
_.GZ.prototype.unsubscribe=function(g,r,E){if(g=this.topics_[g]){var B=this.subscriptions_;if(g=g.find(function(w){return B[w+1]==r&&B[w+2]==E}))return this.unsubscribeByKey(g)}return!1};
_.GZ.prototype.unsubscribeByKey=function(g){var r=this.subscriptions_[g];if(r){var E=this.topics_[r];this.publishDepth_!=0?(this.pendingKeys_.push(g),this.subscriptions_[g+1]=function(){}):(E&&_.ht(E,g),delete this.subscriptions_[g],delete this.subscriptions_[g+1],delete this.subscriptions_[g+2])}return!!r};
_.GZ.prototype.publish=function(g,r){var E=this.topics_[g];if(E){var B=Array(arguments.length-1),w=arguments.length,O;for(O=1;O<w;O++)B[O-1]=arguments[O];if(this.async_)for(O=0;O<E.length;O++)w=E[O],ERn(this.subscriptions_[w+1],this.subscriptions_[w+2],B);else{this.publishDepth_++;try{for(O=0,w=E.length;O<w&&!this.isDisposed();O++){var M=E[O];this.subscriptions_[M+1].apply(this.subscriptions_[M+2],B)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;E=this.pendingKeys_.pop();)this.unsubscribeByKey(E)}}return O!=
0}return!1};
var ERn=function(g,r,E){_.H2(function(){g.apply(r,E)})};
_.GZ.prototype.clear=function(g){if(g){var r=this.topics_[g];r&&(r.forEach(this.unsubscribeByKey,this),delete this.topics_[g])}else this.subscriptions_.length=0,this.topics_={}};
_.GZ.prototype.getCount=function(g){if(g){var r=this.topics_[g];return r?r.length:0}g=0;for(r in this.topics_)g+=this.getCount(r);return g};
_.GZ.prototype.disposeInternal=function(){_.GZ.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var s3L=new _.GZ;var SE=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(SE,_.xu);SE.prototype.getColdHashData=function(){return _.jI(this,3)};
SE.prototype.getHotHashData=function(){return _.jI(this,5)};
SE.prototype.setHotHashData=function(g){return _.H$(this,5,g)};var Q6A=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(Q6A,_.xu);var m1V=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(m1V,_.xu);_.S=m1V.prototype;_.S.getDeviceId=function(){return _.jI(this,6)};
_.S.getExperimentIds=function(g){var r=_.nt(this,9,_.fD,3,!0);Kw(r,g);return r[g]};
_.S.getPlayerType=function(){return _.AX(this,36)};
_.S.setHomeGroupInfo=function(g){return _.Bu(this,81,g)};
_.S.clearLocationPlayabilityToken=function(){return _.w2(this,89)};var QI=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(QI,_.xu);QI.prototype.setKey=function(g){return _.H$(this,1,g)};
QI.prototype.getValue=function(){return JX(this,2,iRJ)};
var iRJ=[2,3,4,5,6];var B2T=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(B2T,_.xu);B2T.prototype.setTrackingParams=function(g){return _.w2(this,1,_.Cw(g,!1))};var cCA=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(cCA,_.xu);var HuS=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(HuS,_.xu);HuS.prototype.getExperimentIds=function(g){var r=_.nt(this,5,_.jv,3,!0);Kw(r,g);return r[g]};var RI=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(RI,_.xu);RI.prototype.getToken=function(){return _.kr(this,2)};
RI.prototype.setToken=function(g){return _.H$(this,2,g)};var pC=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(pC,_.xu);pC.prototype.setSafetyMode=function(g){return _.B8(this,5,g)};var Gx=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(Gx,_.xu);Gx.prototype.setClient=function(g){return _.Bu(this,1,g)};var knl={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 zwP;_.Po=function(){var g=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.ED.addEventListener("beforeinstallprompt",function(r){r.preventDefault();g.deferredInstallPrompt=r});
_.ED.addEventListener("appinstalled",function(){g.appInstalledEventFired=!0},{once:!0})};
zwP=function(){if(!_.ED.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.ED.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.ED.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.ED.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.ED.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(g){return"WEB_DISPLAY_MODE_UNKNOWN"}};var Rwo=function(){this.syncHeaders=!0},ngY=function(g){var r={},E=[];
"USER_SESSION_ID"in _.eS&&E.push({key:"u",value:_.Ca("USER_SESSION_ID")});if(E=_.cjB(E))r.Authorization=E,E=g=g==null?void 0:g.sessionIndex,E===void 0&&(E=Number(_.Ca("SESSION_INDEX",0)),E=isNaN(E)?0:E),_.Y("voice_search_auth_header_removal")||(r["X-Goog-AuthUser"]=E.toString()),"INNERTUBE_HOST_OVERRIDE"in _.eS||(r["X-Origin"]=window.location.origin),g===void 0&&"DELEGATED_SESSION_ID"in _.eS&&(r["X-Goog-PageId"]=_.Ca("DELEGATED_SESSION_ID"));return r};var w8m={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var h1=_.XS("ytglobal.prefsUserPrefsPrefs_")||{},SeI;_.vN("ytglobal.prefsUserPrefsPrefs_",h1);_.ZX=function(){this.cookieName=_.Ca("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.Ca("ALT_PREF_COOKIE_DOMAIN","youtube.com");var g=_.zZ.get(this.cookieName,void 0);g&&this.parse(g)};
_.pu=function(){SeI||(SeI=new _.ZX);return SeI};
_.ZX.prototype.get=function(g,r){O9T(g);U_n(g);g=h1[g]!==void 0?h1[g].toString():null;return g!=null?g:r?r:""};
_.ZX.prototype.set=function(g,r){O9T(g);U_n(g);if(r==null)throw Error("Nc");h1[g]=r.toString()};
_.ZX.prototype.getFlag=function(g){return!!((MEw("f"+(Math.floor(g/31)+1))||0)&1<<g%31)};
_.Yg=function(g,r,E){g="f"+(Math.floor(r/31)+1);r=1<<r%31;var B=MEw(g)||0;B=E?B|r:B&~r;B===0?delete h1[g]:(E=B.toString(16),h1[g]=E.toString())};
_.ZX.prototype.remove=function(g){O9T(g);U_n(g);delete h1[g]};
_.ZX.prototype.save=function(){var g=!0;_.Y("web_secure_pref_cookie_killswitch")&&(g=!1);_.kA(this.cookieName,this.dump(),63072E3,this.cookieDomain,g)};
_.ZX.prototype.clear=function(){_.jn.clear(h1)};
_.ZX.prototype.dump=function(){var g=[],r;for(r in h1)h1.hasOwnProperty(r)&&g.push(r+"="+encodeURIComponent(String(h1[r])));return g.join("&")};
var U_n=function(g){if(/^f([1-9][0-9]*)$/.test(g))throw Error("Oc`"+g);},O9T=function(g){if(!/^\w+$/.test(g))throw Error("Pc`"+g);
},MEw=function(g){g=h1[g]!==void 0?h1[g].toString():null;
return g!=null&&/^[A-Fa-f0-9]+$/.test(g)?parseInt(g,16):null};
_.ZX.prototype.parse=function(g){g=decodeURIComponent(g).split("&");for(var r=0;r<g.length;r++){var E=g[r].split("="),B=E[0];(E=E[1])&&(h1[B]=E.toString())}};var upc={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"},pkY={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},YSS={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},DuY={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var UB;_.yn=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.fC=function(g,r,E){return g.addJob(r,0,E)};
_.yn.prototype.addLowPriorityJob=function(g,r){return this.addJob(g,1,r)};
_.pm=function(g,r,E){return g.addJob(r,2,E)};
_.jT=function(g,r,E){return g.addJob(r,3,E)};
_.Mh=function(g,r,E){return g.addJob(r,4,E)};
UB=function(g){var r=_.XS("yt.scheduler.instance.addImmediateJob");r?r(g):g()};
_.yn.prototype.debounce=function(g,r,E){var B=this,w=0,O=function(){w&&B.cancelJob(w);w=B.addJob(g,r,E);B.cancelDebouncedJobMap.set(O,w)};
return O};
_.yn.prototype.cancelThrottle=function(g){(g=this.cancelThrottledJobMap.get(g))&&g()};var vS=function(){_.yn.apply(this,arguments)};
_.f(vS,_.yn);_.s8=function(){vS.instance||(vS.instance=new vS);return vS.instance};
vS.prototype.addJob=function(g,r,E){E!==void 0&&Number.isNaN(Number(E))&&(E=void 0);var B=_.XS("yt.scheduler.instance.addJob");return B?B(g,r,E):E===void 0?(g(),NaN):_.Me(g,E||0)};
vS.prototype.cancelJob=function(g){if(g===void 0||!Number.isNaN(Number(g))){var r=_.XS("yt.scheduler.instance.cancelJob");r?r(g):_.uc(g)}};
vS.prototype.start=function(){var g=_.XS("yt.scheduler.instance.start");g&&g()};
vS.prototype.pause=function(){var g=_.XS("yt.scheduler.instance.pause");g&&g()};
_.F6=_.s8();_.n3.prototype.set=function(g,r){r===void 0?this.mechanism.remove(g):this.mechanism.set(g,(0,_.sG)(r))};
_.n3.prototype.get=function(g){try{var r=this.mechanism.get(g)}catch(E){return}if(r!==null)try{return JSON.parse(r)}catch(E){throw"Storage: Invalid value was encountered";}};
_.n3.prototype.remove=function(g){this.mechanism.remove(g)};var dj=function(g){this.mechanism=g};
_.rc(dj,_.n3);var qez=function(g){this.data=g},u6n=function(g){return g===void 0||g instanceof qez?g:new qez(g)};
dj.prototype.set=function(g,r){dj.superClass_.set.call(this,g,u6n(r))};
dj.prototype.getWrapper=function(g){g=dj.superClass_.get.call(this,g);if(g===void 0||g instanceof Object)return g;throw"Storage: Invalid value was encountered";};
dj.prototype.get=function(g){if(g=this.getWrapper(g)){if(g=g.data,g===void 0)throw"Storage: Invalid value was encountered";}else g=void 0;return g};_.rc(sr,dj);_.lHZ=function(g){var r=g.creation;g=g.expiration;return!!g&&g<_.dx()||!!r&&r>_.dx()};
sr.prototype.set=function(g,r,E){if(r=u6n(r)){if(E){if(E<_.dx()){sr.prototype.remove.call(this,g);return}r.expiration=E}r.creation=_.dx()}sr.superClass_.set.call(this,g,r)};
sr.prototype.getWrapper=function(g,r){var E=sr.superClass_.getWrapper.call(this,g);if(E)if(!r&&_.lHZ(E))sr.prototype.remove.call(this,g);else return E};var Tg=function(){};
Tg.prototype.next=function(){return g8};
var g8={done:!0,value:void 0},r8=function(g){return{value:g,done:!1}};
Tg.prototype.__iterator__=function(){return this};
_.D_w=function(g){if(g instanceof Tg)return g;if(typeof g.__iterator__=="function")return g.__iterator__(!1);if(_.vJ(g)){var r=0,E=new Tg;E.next=function(){for(;;){if(r>=g.length)return g8;if(r in g)return r8(g[r++]);r++}};
return E}throw Error("Qc");};var oRw=function(g){if(g instanceof EZ||g instanceof Bj||g instanceof w8)return g;if(typeof g.next=="function")return new EZ(function(){return g});
if(typeof g[Symbol.iterator]=="function")return new EZ(function(){return g[Symbol.iterator]()});
if(typeof g.__iterator__=="function")return new EZ(function(){return g.__iterator__()});
throw Error("Rc");},EZ=function(g){this.func_=g};
EZ.prototype.__iterator__=function(){return new Bj(this.func_())};
EZ.prototype[Symbol.iterator]=function(){return new w8(this.func_())};
EZ.prototype.toEs6=function(){return new w8(this.func_())};
var Bj=function(g){this.JSC$8654_iter_=g};
_.f(Bj,Tg);Bj.prototype.next=function(){return this.JSC$8654_iter_.next()};
Bj.prototype[Symbol.iterator]=function(){return new w8(this.JSC$8654_iter_)};
Bj.prototype.toEs6=function(){return new w8(this.JSC$8654_iter_)};
var w8=function(g){EZ.call(this,function(){return g});
this.JSC$8657_iter_=g};
_.f(w8,EZ);w8.prototype.next=function(){return this.JSC$8657_iter_.next()};var GjI=function(){};var Ss=function(){};
_.rc(Ss,GjI);Ss.prototype.getCount=function(){for(var g=0,r=_.U(this),E=r.next();!E.done;E=r.next())g++;return g};
Ss.prototype[Symbol.iterator]=function(){return oRw(this.__iterator__(!0)).toEs6()};
Ss.prototype.clear=function(){var g=Array.from(this);g=_.U(g);for(var r=g.next();!r.done;r=g.next())this.remove(r.value)};_.rc(f3,Ss);_.S=f3.prototype;_.S.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var g=this.storage_;if(g)try{g.setItem("__sak","1");g.removeItem("__sak");var r=!0}catch(E){r=E instanceof DOMException&&(E.name==="QuotaExceededError"||E.code===22||E.code===1014||E.name==="NS_ERROR_DOM_QUOTA_REACHED")&&g&&g.length!==0}else r=!1;this.cachedIsStorageAvailable_=r}return this.cachedIsStorageAvailable_};
_.S.set=function(g,r){OZ(this);try{this.storage_.setItem(g,r)}catch(E){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.S.get=function(g){OZ(this);g=this.storage_.getItem(g);if(typeof g!=="string"&&g!==null)throw"Storage mechanism: Invalid value was encountered";return g};
_.S.remove=function(g){OZ(this);this.storage_.removeItem(g)};
_.S.getCount=function(){OZ(this);return this.storage_.length};
_.S.__iterator__=function(g){OZ(this);var r=0,E=this.storage_,B=new Tg;B.next=function(){if(r>=E.length)return g8;var w=E.key(r++);if(g)return r8(w);w=E.getItem(w);if(typeof w!=="string")throw"Storage mechanism: Invalid value was encountered";return r8(w)};
return B};
_.S.clear=function(){OZ(this);this.storage_.clear()};
_.S.key=function(g){OZ(this);return this.storage_.key(g)};
var OZ=function(g){if(g.storage_==null)throw Error("Sc");g.isAvailable()||BJ(Error("Sc"))};_.rc(GrQ,f3);_.rc(QyV,f3);_.rc($A,Ss);$A.prototype.set=function(g,r){this.mechanism_.set(this.JSC$8672_prefix_+g,r)};
$A.prototype.get=function(g){return this.mechanism_.get(this.JSC$8672_prefix_+g)};
$A.prototype.remove=function(g){this.mechanism_.remove(this.JSC$8672_prefix_+g)};
$A.prototype.__iterator__=function(g){var r=this.mechanism_[Symbol.iterator](),E=this,B=new Tg;B.next=function(){var w=r.next();if(w.done)return w;for(w=w.value;w.slice(0,E.JSC$8672_prefix_.length)!=E.JSC$8672_prefix_;){w=r.next();if(w.done)return w;w=w.value}return r8(g?w.slice(E.JSC$8672_prefix_.length):E.mechanism_.get(w))};
return B};_.xR=function(g){this.expiringStorage_=(g=_.z6D(g))?new sr(g):null;this.JSC$8676_domain_=document.domain||window.location.hostname};
_.xR.prototype.set=function(g,r,E,B){E=E||31104E3;this.remove(g);if(this.expiringStorage_)try{this.expiringStorage_.set(g,r,Date.now()+E*1E3);return}catch(O){}var w="";if(B)try{w=escape((0,_.sG)(r))}catch(O){return}else w=escape(r);_.kA(g,w,E,this.JSC$8676_domain_)};
_.xR.prototype.get=function(g,r){var E=void 0,B=!this.expiringStorage_;if(!B)try{E=this.expiringStorage_.get(g)}catch(w){B=!0}if(B&&(E=_.zZ.get(g,void 0))&&(E=unescape(E),r))try{E=JSON.parse(E)}catch(w){this.remove(g),E=void 0}return E};
_.xR.prototype.remove=function(g){this.expiringStorage_&&this.expiringStorage_.remove(g);_.UuY(g,"/",this.JSC$8676_domain_)};
_.xR.prototype.getCreationTime=function(g){return this.expiringStorage_&&(g=(this.expiringStorage_.getWrapper(g)||{}).creation,typeof g==="number")?g:null};var HML=function(){var g;return function(){g||(g=new _.xR("ytidb"));return g}}();var YQl;_.As=[];YQl=!1;var XES=R6B||nyD;var UZ={},QTZ=(UZ.AUTH_INVALID="No user identifier specified.",UZ.EXPLICIT_ABORT="Transaction was explicitly aborted.",UZ.IDB_NOT_SUPPORTED="IndexedDB is not supported.",UZ.MISSING_INDEX="Index not created.",UZ.MISSING_OBJECT_STORES="Object stores not created.",UZ.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",UZ.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",UZ.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",UZ.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",UZ.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",UZ.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",UZ.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",UZ),M4={},zIz=(M4.AUTH_INVALID="ERROR",M4.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",M4.EXPLICIT_ABORT="IGNORED",
M4.IDB_NOT_SUPPORTED="ERROR",M4.MISSING_INDEX="WARNING",M4.MISSING_OBJECT_STORES="ERROR",M4.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",M4.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",M4.QUOTA_EXCEEDED="WARNING",M4.QUOTA_MAYBE_EXCEEDED="WARNING",M4.UNKNOWN_ABORT="WARNING",M4.INCOMPATIBLE_DB_VERSION="WARNING",M4),q4={},kj4=(q4.AUTH_INVALID=!1,q4.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,q4.EXPLICIT_ABORT=!1,q4.IDB_NOT_SUPPORTED=!1,q4.MISSING_INDEX=!1,q4.MISSING_OBJECT_STORES=!1,q4.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,q4.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,q4.QUOTA_EXCEEDED=!1,q4.QUOTA_MAYBE_EXCEEDED=!0,q4.UNKNOWN_ABORT=!0,q4.INCOMPATIBLE_DB_VERSION=!1,q4),eg=function(g,r,E,B,w){r=r===void 0?{}:r;E=E===void 0?QTZ[g]:E;B=B===void 0?zIz[g]:B;w=w===void 0?kj4[g]:w;_.Rj.call(this,E,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:g},r));this.type=g;this.message=E;this.level=B;this.retryable=w;Object.setPrototypeOf(this,eg.prototype)};
_.f(eg,_.Rj);var H9m=function(g,r){eg.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:r,foundObjectStores:g},QTZ.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,H9m.prototype)};
_.f(H9m,eg);var fYY=function(g,r){var E=Error.call(this);this.message=E.message;"stack"in E&&(this.stack=E.stack);this.index=g;this.objectStore=r;Object.setPrototypeOf(this,fYY.prototype)};
_.f(fYY,Error);var $uY=["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 xA=function(g){this.executor=g},K3=function(g){var r=this;
this.state={status:"PENDING"};this.JSC$8704_onFulfilled=[];this.JSC$8704_onRejected=[];g=g.executor;var E=function(w){if(r.state.status==="PENDING"){r.state={status:"FULFILLED",value:w};w=_.U(r.JSC$8704_onFulfilled);for(var O=w.next();!O.done;O=w.next())O=O.value,O()}},B=function(w){if(r.state.status==="PENDING"){r.state={status:"REJECTED",
reason:w};w=_.U(r.JSC$8704_onRejected);for(var O=w.next();!O.done;O=w.next())O=O.value,O()}};
try{g(E,B)}catch(w){B(w)}};
K3.all=function(g){return new K3(new xA(function(r,E){var B=[],w=g.length;w===0&&r(B);for(var O={i$jscomp$467:0};O.i$jscomp$467<g.length;O={i$jscomp$467:O.i$jscomp$467},++O.i$jscomp$467)K3.resolve(g[O.i$jscomp$467]).then(function(M){return function(u){B[M.i$jscomp$467]=u;w--;w===0&&r(B)}}(O)).catch(function(M){E(M)})}))};
K3.resolve=function(g){return new K3(new xA(function(r,E){g instanceof K3?g.then(r,E):r(g)}))};
K3.reject=function(g){return new K3(new xA(function(r,E){E(g)}))};
K3.prototype.then=function(g,r){var E=this,B=g!=null?g:bMl,w=r!=null?r:AFJ;return new K3(new xA(function(O,M){E.state.status==="PENDING"?(E.JSC$8704_onFulfilled.push(function(){p8w(E,E,B,O,M)}),E.JSC$8704_onRejected.push(function(){YeD(E,E,w,O,M)})):E.state.status==="FULFILLED"?p8w(E,E,B,O,M):E.state.status==="REJECTED"&&YeD(E,E,w,O,M)}))};
K3.prototype.catch=function(g){return this.then(void 0,g)};
var p8w=function(g,r,E,B,w){try{if(g.state.status!=="FULFILLED")throw Error("Vc");var O=E(g.state.value);O instanceof K3?RI4(g,r,O,B,w):B(O)}catch(M){w(M)}},YeD=function(g,r,E,B,w){try{if(g.state.status!=="REJECTED")throw Error("Wc");
var O=E(g.state.reason);O instanceof K3?RI4(g,r,O,B,w):B(O)}catch(M){w(M)}},RI4=function(g,r,E,B,w){r===E?w(new TypeError("Xc")):E.then(function(O){O instanceof K3?RI4(g,r,O,B,w):B(O)},function(O){w(O)})};var uv;uv=window;_.g2=uv.ytcsi&&uv.ytcsi.now?uv.ytcsi.now:uv.performance&&uv.performance.timing&&uv.performance.now&&uv.performance.timing.navigationStart?function(){return uv.performance.timing.navigationStart+uv.performance.now()}:function(){return(new Date).getTime()};var X1=function(g,r){this.JSC$8716_wrapped=g;this.options=r;this.transactionCount=0;this.startedMs=Math.round((0,_.g2)());this.hasUnknownAbortedTransaction=!1},fHD,$_4,oM,b9b;
X1.prototype.add=function(g,r,E){return _.cN(this,[g],{mode:"readwrite",enableRetries:!0},function(B){return B.objectStore(g).add(r,E)})};
X1.prototype.clear=function(g){return _.cN(this,[g],{mode:"readwrite",enableRetries:!0},function(r){return r.objectStore(g).clear()})};
X1.prototype.close=function(){this.JSC$8716_wrapped.close();var g;((g=this.options)==null?0:g.closed)&&this.options.closed()};
X1.prototype.count=function(g,r){return _.cN(this,[g],{mode:"readonly",enableRetries:!0},function(E){return E.objectStore(g).count(r)})};
var X6=function(g,r,E){g=g.JSC$8716_wrapped.createObjectStore(r,E);return new lv(g)};
X1.prototype.delete=function(g,r){return _.cN(this,[g],{mode:"readwrite",enableRetries:!0},function(E){return E.objectStore(g).delete(r)})};
var nRw=function(g,r){return _.cN(g,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(E){return E.objectStore("ResponseStore").index("byInterface").delete(r)})};
X1.prototype.get=function(g,r){return _.cN(this,[g],{mode:"readonly",enableRetries:!0},function(E){return E.objectStore(g).get(r)})};
X1.prototype.getAll=function(g,r,E){return _.cN(this,[g],{mode:"readonly",enableRetries:!0},function(B){return B.objectStore(g).getAll(r,E)})};
X1.prototype.put=function(g,r,E){return _.cN(this,[g],{mode:"readwrite",enableRetries:!0},function(B){return B.objectStore(g).put(r,E)})};
X1.prototype.objectStoreNames=function(){return Array.from(this.JSC$8716_wrapped.objectStoreNames)};
_.cN=function(g,r,E,B){var w,O,M,u,l,Q,z,k,H,R,A,J;return _.q(function(e){switch(e.nextAddress){case 1:var C={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof E==="string"?C.mode=E:Object.assign(C,E);w=C;g.transactionCount++;O=w.enableRetries?3:1;M=0;case 2:if(u){e.jumpTo(4);break}M++;l=Math.round((0,_.g2)());_.qN(e,5);Q=g.JSC$8716_wrapped.transaction(r,w.mode);C=new FxQ(Q);C=sTD(C,B);return _.D(e,C,7);case 7:return z=e.yieldResult,k=Math.round((0,_.g2)()),fHD(g,l,k,M,void 0,
r.join(),w),e.return(z);case 5:H=_.G2(e);R=Math.round((0,_.g2)());A=jyS(H,g.JSC$8716_wrapped.name,r.join(),g.JSC$8716_wrapped.version);if((J=A instanceof eg&&!A.retryable)||M>=O)fHD(g,l,R,M,A,r.join(),w),u=A;e.jumpTo(2);break;case 4:return e.return(Promise.reject(u))}})};
fHD=function(g,r,E,B,w,O,M){r=E-r;w?(w instanceof eg&&(w.type==="QUOTA_EXCEEDED"||w.type==="QUOTA_MAYBE_EXCEEDED")&&Js("QUOTA_EXCEEDED",{dbName:ts(g.JSC$8716_wrapped.name),objectStoreNames:O,transactionCount:g.transactionCount,transactionMode:M.mode}),w instanceof eg&&w.type==="UNKNOWN_ABORT"&&(E-=g.startedMs,E<0&&E>=2147483648&&(E=0),Js("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:O,transactionDuration:r,transactionCount:g.transactionCount,dbDuration:E}),g.hasUnknownAbortedTransaction=!0),
$_4(g,!1,B,O,r,M.tag),_.bc(w)):$_4(g,!0,B,O,r,M.tag)};
$_4=function(g,r,E,B,w,O){Js("TRANSACTION_ENDED",{objectStoreNames:B,connectionHasUnknownAbortedTransaction:g.hasUnknownAbortedTransaction,duration:w,isSuccessful:r,tryCount:E,tag:O===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":O})};
X1.prototype.getVersion=function(){return this.JSC$8716_wrapped.version};
X1.prototype.getName=function(){return this.JSC$8716_wrapped.name};
var lv=function(g){this.JSC$8731_wrapped=g};
lv.prototype.add=function(g,r){return aj(this.JSC$8731_wrapped.add(g,r))};
lv.prototype.autoIncrement=function(){return this.JSC$8731_wrapped.autoIncrement};
lv.prototype.clear=function(){return aj(this.JSC$8731_wrapped.clear()).then(function(){})};
var N_=function(g,r,E){g.JSC$8731_wrapped.createIndex(r,E,{unique:!1})};
lv.prototype.count=function(g){return aj(this.JSC$8731_wrapped.count(g))};
var jTn=function(g,r){return hs(g,{query:r},function(E){return E.delete().then(function(){return E.continue()})}).then(function(){})};
lv.prototype.delete=function(g){return g instanceof IDBKeyRange?jTn(this,g):aj(this.JSC$8731_wrapped.delete(g))};
lv.prototype.get=function(g){return aj(this.JSC$8731_wrapped.get(g))};
lv.prototype.getAll=function(g,r){return"getAll"in IDBObjectStore.prototype?aj(this.JSC$8731_wrapped.getAll(g,r)):ApT(this,g,r)};
var ApT=function(g,r,E){var B=[];return hs(g,{query:r},function(w){if(!(E!==void 0&&B.length>=E))return B.push(w.getValue()),w.continue()}).then(function(){return B})};
lv.prototype.index=function(g){try{return new DC(this.JSC$8731_wrapped.index(g))}catch(r){if(r instanceof Error&&r.name==="NotFoundError")throw new fYY(g,this.JSC$8731_wrapped.name);throw r;}};
lv.prototype.getName=function(){return this.JSC$8731_wrapped.name};
lv.prototype.keyPath=function(){return this.JSC$8731_wrapped.keyPath};
lv.prototype.put=function(g,r){return aj(this.JSC$8731_wrapped.put(g,r))};
var hs=function(g,r,E){g=g.JSC$8731_wrapped.openCursor(r.query,r.direction);return b9b(g).then(function(B){return tGL(B,E)})},FxQ=function(g){var r=this;
this.JSC$8739_wrapped=g;this.objectStoreCache=new Map;this.JSC$8739_aborted=!1;this.done=new Promise(function(E,B){r.JSC$8739_wrapped.addEventListener("complete",function(){E()});
r.JSC$8739_wrapped.addEventListener("error",function(w){w.currentTarget===w.target&&B(r.JSC$8739_wrapped.error)});
r.JSC$8739_wrapped.addEventListener("abort",function(){var w=r.JSC$8739_wrapped.error;if(w)B(w);else if(!r.JSC$8739_aborted){w=eg;for(var O=r.JSC$8739_wrapped.objectStoreNames,M=[],u=0;u<O.length;u++){var l=O.item(u);if(l===null)throw Error("Yc");M.push(l)}w=new w("UNKNOWN_ABORT",{objectStoreNames:M.join(),dbName:r.JSC$8739_wrapped.db.name,mode:r.JSC$8739_wrapped.mode});B(w)}})})},sTD=function(g,r){var E=new Promise(function(B,w){try{r(g).then(function(O){B(O)}).catch(w)}catch(O){w(O),g.abort()}});
return Promise.all([E,g.done]).then(function(B){return _.U(B).next().value})};
FxQ.prototype.abort=function(){this.JSC$8739_wrapped.abort();this.JSC$8739_aborted=!0;throw new eg("EXPLICIT_ABORT");};
FxQ.prototype.objectStore=function(g){g=this.JSC$8739_wrapped.objectStore(g);var r=this.objectStoreCache.get(g);r||(r=new lv(g),this.objectStoreCache.set(g,r));return r};
var DC=function(g){this.JSC$8741_wrapped=g};
DC.prototype.count=function(g){return aj(this.JSC$8741_wrapped.count(g))};
DC.prototype.delete=function(g){return _.r2(this,{query:g},function(r){return r.delete().then(function(){return r.continue()})})};
DC.prototype.get=function(g){return aj(this.JSC$8741_wrapped.get(g))};
DC.prototype.getAll=function(g,r){return"getAll"in IDBIndex.prototype?aj(this.JSC$8741_wrapped.getAll(g,r)):JpU(this,g,r)};
var JpU=function(g,r,E){var B=[];return _.r2(g,{query:r},function(w){if(!(E!==void 0&&B.length>=E))return B.push(w.getValue()),w.continue()}).then(function(){return B})};
DC.prototype.keyPath=function(){return this.JSC$8741_wrapped.keyPath};
DC.prototype.unique=function(){return this.JSC$8741_wrapped.unique};
_.r2=function(g,r,E){g=g.JSC$8741_wrapped.openCursor(r.query===void 0?null:r.query,r.direction===void 0?"next":r.direction);return b9b(g).then(function(B){return tGL(B,E)})};
oM=function(g,r){this.request=g;this.cursor=r};
b9b=function(g){return aj(g).then(function(r){return r?new oM(g,r):null})};
oM.prototype.continue=function(g){this.cursor.continue(g);return b9b(this.request)};
oM.prototype.delete=function(){return aj(this.cursor.delete()).then(function(){})};
oM.prototype.getValue=function(){return this.cursor.value};
oM.prototype.update=function(g){return aj(this.cursor.update(g))};var Go=function(g,r){this.name=g;this.options=r;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},Pd6;
Go.prototype.openDb=function(g,r,E){E=E===void 0?{}:E;return WxY(g,r,E)};
Go.prototype.delete=function(g){g=g===void 0?{}:g;return _.Ij(this.name,g)};
Pd6=function(g,r){return new eg("INCOMPATIBLE_DB_VERSION",{dbName:g.name,oldVersion:g.options.version,newVersion:r})};
_.m0=function(g,r){if(!r)throw C3("openWithToken",ts(g.name));return g.open()};
Go.prototype.open=function(){var g=this;if(!this.isCompatible)throw Pd6(this);if(this.connectionPromise)return this.connectionPromise;var r,E=function(){g.connectionPromise===r&&(g.connectionPromise=void 0)},B={blocking:function(O){O.close()},
closed:E,terminated:E,upgrade:this.options.upgrade},w=function(){var O,M,u,l,Q,z,k,H,R,A;return _.q(function(J){switch(J.nextAddress){case 1:return M=(O=Error().stack)!=null?O:"",_.qN(J,2),_.D(J,g.openDb(g.name,g.options.version,B),4);case 4:for(var e=u=J.yieldResult,C=g.options,X=[],Z=_.U(Object.keys(C.objectStores)),c=Z.next();!c.done;c=Z.next()){c=c.value;var h=C.objectStores[c],y=h.removedAtVersion===void 0?Number.MAX_VALUE:h.removedAtVersion;!(e.JSC$8716_wrapped.version>=h.addedAtVersion)||e.JSC$8716_wrapped.version>=
y||e.JSC$8716_wrapped.objectStoreNames.contains(c)||X.push(c)}l=X;if(l.length===0){J.jumpTo(5);break}Q=Object.keys(g.options.objectStores);z=u.objectStoreNames();if(g.timesReopenedToFixMissingObjectStore<_.wM("ytidb_reopen_db_retries",0))return g.timesReopenedToFixMissingObjectStore++,u.close(),_.bc(new eg("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:g.name,expectedObjectStores:Q,foundObjectStores:z})),J.return(w());if(!(g.timesDeletedToFixMissingObjectStore<_.wM("ytidb_remake_db_retries",1))){J.jumpTo(6);
break}g.timesDeletedToFixMissingObjectStore++;return _.D(J,g.delete(),7);case 7:return _.bc(new eg("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:g.name,expectedObjectStores:Q,foundObjectStores:z})),J.return(w());case 6:throw new H9m(z,Q);case 5:return J.return(u);case 2:k=_.G2(J);if(k instanceof DOMException?k.name!=="VersionError":"DOMError"in self&&k instanceof DOMError?k.name!=="VersionError":!(k instanceof Object&&"message"in k)||k.message!=="An attempt was made to open a database using a lower version than the existing version."){J.jumpTo(8);
break}return _.D(J,g.openDb(g.name,void 0,Object.assign({},B,{upgrade:void 0})),9);case 9:H=J.yieldResult;R=H.getVersion();if(g.options.version!==void 0&&R>g.options.version+1)throw H.close(),g.isCompatible=!1,Pd6(g,R);return J.return(H);case 8:throw E(),k instanceof Error&&!_.Y("ytidb_async_stack_killswitch")&&(k.stack=k.stack+"\n"+M.substring(M.indexOf("\n")+1)),jyS(k,g.name,"",(A=g.options.version)!=null?A:-1);}})};
return this.connectionPromise=r=w()};var CGS=new Go("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(g,r){r(1)&&X6(g,"databases",{keyPath:"actualName"})}});var muX,NUV=new function(){}(new function(){});new _.uF;var tEn=function(g,r){Go.call(this,g,r);this.options=r;PN(g)};
_.f(tEn,Go);var TUV=function(g,r){var E;return function(){E||(E=new tEn(g,r));return E}};
tEn.prototype.openDb=function(g,r,E){E=E===void 0?{}:E;return(this.options.shared?h6B:VGY)(g,r,Object.assign({},E))};
tEn.prototype.delete=function(g){g=g===void 0?{}:g;return(this.options.shared?duB:ZMl)(this.name,g)};var FSb={},ggQ=TZ("ytGcfConfig",{objectStores:(FSb.coldConfigStore={addedAtVersion:1},FSb.hotConfigStore={addedAtVersion:1},FSb),shared:!1,upgrade:function(g,r){r(1)&&(N_(X6(g,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),N_(X6(g,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var eIw=function(){_.f5.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var g=_.XS("yt.gcf.config.hotUpdateCallbacks");g?(this.localHotConfigJobQueue=[].concat(_.jW(g)),this.sharedHotConfigJobQueue=g):(this.sharedHotConfigJobQueue=[],_.vN("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.f(eIw,_.f5);eIw.prototype.disposeInternal=function(){for(var g=_.U(this.localHotConfigJobQueue),r=g.next();!r.done;r=g.next()){var E=this.sharedHotConfigJobQueue;r=E.indexOf(r.value);r>=0&&E.splice(r,1)}this.localHotConfigJobQueue.length=0;_.f5.prototype.disposeInternal.call(this)};var $K=function(){var g=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new eIw;this.TEST_ONLY={initializeConfigDb:function(){g.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return g.coldGlobalConfigGroup},
setHotConfigGroup:function(r){WSm(g,r)},
setHotHashData:function(r){g.setHotHashData(r)},
setColdConfigGroup:function(r){CdT(g,r)},
getColdHashData:function(){return g.coldHashData},
getHotHashData:function(){return g.hotHashData},
getHotConfigGroup:function(){return g.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return KSI()},
getExportedHotConfigGroup:function(){return Qc()},
getExportedColdHashData:function(){return _.XS("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.XS("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){x_m(g)},
resetInstance:function(){g.setHotHashData(void 0);aHU(g);delete $K.instance},
setDebounceTimer:function(r){g.debounceTimer=r},
getDebounceTimer:function(){return g.debounceTimer}}},X8b=function(){if(!$K.instance){var g=new $K;
$K.instance=g}return $K.instance},m_D=function(g){var r;
_.q(function(E){if(E.nextAddress==1)return _.Y("start_client_gcf")||_.Y("delete_gcf_config_db")?_.Y("start_client_gcf")?_.D(E,_.dM(),3):E.jumpTo(2):E.return();E.nextAddress!=2&&((r=E.yieldResult)&&_.YA()&&!_.Y("delete_gcf_config_db")?(g.isConfigDbInitialized=!0,x_m(g)):(N2n(g),IHD(g)));return _.Y("delete_gcf_config_db")?_.D(E,Oul(),0):E.jumpTo(0)})},UyS=function(){var g;
return(g=Qc())!=null?g:_.Ca("RAW_HOT_CONFIG_GROUP")},cpw=function(g){var r,E,B,w,O,M;
return _.q(function(u){switch(u.nextAddress){case 1:if(g.hotGlobalConfigGroup)return u.return(Qc());if(!g.isConfigDbInitialized)return r=C3("getHotConfig IDB not initialized"),_.NX(r),u.return(Promise.reject(r));E=yX();B=_.Ca("TIME_CREATED_MS");if(!E){w=C3("getHotConfig token error");_.NX(w);u.jumpTo(2);break}return _.D(u,SSY(E),3);case 3:if((O=u.yieldResult)&&O.timestamp>B)return WSm(g,O.config),g.setHotHashData(O.hashData),u.return(Qc());case 2:IHD(g);if(!(E&&g.hotGlobalConfigGroup&&g.hotHashData)){u.jumpTo(4);
break}return _.D(u,EgS(g.hotGlobalConfigGroup,g.hotHashData,E,B),4);case 4:return g.hotGlobalConfigGroup?u.return(Qc()):(M=new _.Rj("Config not available in ytConfig"),_.NX(M),u.return(Promise.reject(M)))}})},LSI=function(g){var r,E,B,w,O,M;
return _.q(function(u){switch(u.nextAddress){case 1:if(g.coldGlobalConfigGroup)return u.return(KSI());if(!g.isConfigDbInitialized)return r=C3("getColdConfig IDB not initialized"),_.NX(r),u.return(Promise.reject(r));E=yX();B=_.Ca("TIME_CREATED_MS");if(!E){w=C3("getColdConfig");_.NX(w);u.jumpTo(2);break}return _.D(u,wkL(E),3);case 3:if((O=u.yieldResult)&&O.timestamp>B)return CdT(g,O.config),i9n(g,O.configData),aHU(g,O.hashData),u.return(KSI());case 2:N2n(g);if(!(E&&g.coldGlobalConfigGroup&&g.coldHashData&&
g.configData)){u.jumpTo(4);break}return _.D(u,BXL(g.coldGlobalConfigGroup,g.coldHashData,g.configData,E,B),4);case 4:return g.coldGlobalConfigGroup?u.return(KSI()):(M=new _.Rj("Config not available in ytConfig"),_.NX(M),u.return(Promise.reject(M)))}})},x_m=function(g){if(!g.hotGlobalConfigGroup||!g.coldGlobalConfigGroup){if(!yX()){var r=C3("scheduleGetConfigs");
_.NX(r)}g.initJob||(g.initJob=_.F6.addLowPriorityJob(function(){return _.q(function(E){switch(E.nextAddress){case 1:return _.qN(E,2),_.D(E,cpw(g),4);case 4:_.Ne(E,3);break;case 2:_.G2(E);case 3:return _.qN(E,5),_.D(E,LSI(g),7);case 7:_.Ne(E,6);break;case 5:_.G2(E);case 6:g.initJob&&(g.initJob=0),_.Q3(E)}})},100))}},EPX=function(g,r,E){var B,w,O;
return _.q(function(M){switch(M.nextAddress){case 1:if(!_.Y("start_client_gcf")){M.jumpTo(0);break}E&&WSm(g,E);g.setHotHashData(r);B=yX();if(!B){M.jumpTo(3);break}if(E){M.jumpTo(4);break}return _.D(M,SSY(B),5);case 5:w=M.yieldResult,E=(O=w)==null?void 0:O.config;case 4:return _.D(M,EgS(E,r,B),3);case 3:if(E)for(var u=E,l=_.U(g.configUpdateService.sharedHotConfigJobQueue),Q=l.next();!Q.done;Q=l.next())Q=Q.value,Q(u);_.Q3(M)}})},BLJ=function(g,r,E){var B,w,O,M;
return _.q(function(u){if(u.nextAddress==1){if(!_.Y("start_client_gcf"))return u.jumpTo(0);aHU(g,r);return(B=yX())?E?u.jumpTo(4):_.D(u,wkL(B),5):u.jumpTo(0)}u.nextAddress!=4&&(w=u.yieldResult,E=(O=w)==null?void 0:O.config);if(!E)return u.jumpTo(0);M=E.configData;return _.D(u,BXL(E,r,M,B),0)})},f$l=function(){var g=X8b(),r=(0,_.g2)()-g.debounceTimer;
if(!(g.debounceTimer!==0&&r<_.wM("send_config_hash_timer"))){r=_.XS("yt.gcf.config.coldConfigData");var E=_.XS("yt.gcf.config.hotHashData"),B=_.XS("yt.gcf.config.coldHashData");r&&E&&B&&(g.debounceTimer=(0,_.g2)());return{coldConfigData:r,hotHashData:E,coldHashData:B}}},N2n=function(g){CdT(g,_.Ca("RAW_COLD_CONFIG_GROUP"));
aHU(g,_.Ca("SERIALIZED_COLD_HASH_DATA"));var r;i9n(g,(r=g.coldGlobalConfigGroup)==null?void 0:r.configData)},IHD=function(g){WSm(g,_.Ca("RAW_HOT_CONFIG_GROUP"));
g.setHotHashData(_.Ca("SERIALIZED_HOT_HASH_DATA"))},WSm=function(g,r){g.hotGlobalConfigGroup=r;
_.vN("yt.gcf.config.hotConfigGroup",g.hotGlobalConfigGroup||null)},CdT=function(g,r){g.coldGlobalConfigGroup=r;
_.vN("yt.gcf.config.coldConfigGroup",g.coldGlobalConfigGroup||null)};
$K.prototype.setHotHashData=function(g){this.hotHashData=g;_.vN("yt.gcf.config.hotHashData",this.hotHashData||null)};
var aHU=function(g,r){g.coldHashData=r;_.vN("yt.gcf.config.coldHashData",g.coldHashData||null)},i9n=function(g,r){g.configData=r;
_.vN("yt.gcf.config.coldConfigData",g.configData||null)},Qc=function(){return _.XS("yt.gcf.config.hotConfigGroup")},KSI=function(){return _.XS("yt.gcf.config.coldConfigGroup")};var ud={},VEb=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";ud.assign=function(g){for(var r=Array.prototype.slice.call(arguments,1);r.length;){var E=r.shift();if(E){if(typeof E!=="object")throw new TypeError("ad`"+E);for(var B in E)Object.prototype.hasOwnProperty.call(E,B)&&(g[B]=E[B])}}return g};
ud.shrinkBuf=function(g,r){if(g.length===r)return g;if(g.subarray)return g.subarray(0,r);g.length=r;return g};
var hIn={arraySet:function(g,r,E,B,w){if(r.subarray&&g.subarray)g.set(r.subarray(E,E+B),w);else for(var O=0;O<B;O++)g[w+O]=r[E+O]},
flattenChunks:function(g){var r,E;var B=E=0;for(r=g.length;B<r;B++)E+=g[B].length;var w=new Uint8Array(E);B=E=0;for(r=g.length;B<r;B++){var O=g[B];w.set(O,E);E+=O.length}return w}},Z9n={arraySet:function(g,r,E,B,w){for(var O=0;O<B;O++)g[w+O]=r[E+O]},
flattenChunks:function(g){return[].concat.apply([],g)}};
ud.setTyped=function(){VEb?(ud.Buf8=Uint8Array,ud.Buf16=Uint16Array,ud.Buf32=Int32Array,ud.assign(ud,hIn)):(ud.Buf8=Array,ud.Buf16=Array,ud.Buf32=Array,ud.assign(ud,Z9n))};
ud.setTyped();var ypD=!0;try{new Uint8Array(1)}catch(g){ypD=!1}
var S9S=function(g){var r,E,B=g.length,w=0;for(r=0;r<B;r++){var O=g.charCodeAt(r);if((O&64512)===55296&&r+1<B){var M=g.charCodeAt(r+1);(M&64512)===56320&&(O=65536+(O-55296<<10)+(M-56320),r++)}w+=O<128?1:O<2048?2:O<65536?3:4}var u=new ud.Buf8(w);for(r=E=0;E<w;r++)O=g.charCodeAt(r),(O&64512)===55296&&r+1<B&&(M=g.charCodeAt(r+1),(M&64512)===56320&&(O=65536+(O-55296<<10)+(M-56320),r++)),O<128?u[E++]=O:(O<2048?u[E++]=192|O>>>6:(O<65536?u[E++]=224|O>>>12:(u[E++]=240|O>>>18,u[E++]=128|O>>>12&63),u[E++]=
128|O>>>6&63),u[E++]=128|O&63);return u};var LZS={};LZS=function(g,r,E,B){var w=g&65535|0;g=g>>>16&65535|0;for(var O;E!==0;){O=E>2E3?2E3:E;E-=O;do w=w+r[B++]|0,g=g+w|0;while(--O);w%=65521;g%=65521}return w|g<<16|0};for(var se={},zo,vRw=[],d_4=0;d_4<256;d_4++){zo=d_4;for(var T2A=0;T2A<8;T2A++)zo=zo&1?3988292384^zo>>>1:zo>>>1;vRw[d_4]=zo}se=function(g,r,E,B){E=B+E;for(g^=-1;B<E;B++)g=g>>>8^vRw[(g^r[B])&255];return g^-1};var Gj={};Gj={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 WZP=[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],KZD=[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],wst=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],cgY=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H8=Array(576);Oe(H8);var p9=Array(60);Oe(p9);var DH=Array(512);Oe(DH);var ld=Array(256);Oe(ld);var CqY=Array(29);Oe(CqY);var x2D=Array(30);Oe(x2D);var rjl,EDl,Bzt,gDB=!1;var Jp;
Jp=[new bd(0,0,0,0,function(g,r){var E=65535;for(E>g.pending_buf_size-5&&(E=g.pending_buf_size-5);;){if(g.lookahead<=1){jE(g);if(g.lookahead===0&&r===0)return 1;if(g.lookahead===0)break}g.strstart+=g.lookahead;g.lookahead=0;var B=g.block_start+E;if(g.strstart===0||g.strstart>=B)if(g.lookahead=g.strstart-B,g.strstart=B,YR(g,!1),g.strm.avail_out===0)return 1;if(g.strstart-g.block_start>=g.w_size-262&&(YR(g,!1),g.strm.avail_out===0))return 1}g.insert=0;if(r===4)return YR(g,!0),g.strm.avail_out===0?3:
4;g.strstart>g.block_start&&YR(g,!1);return 1}),
new bd(4,4,8,4,VhV),new bd(4,5,16,8,VhV),new bd(4,6,32,32,VhV),new bd(4,4,16,16,Ap),new bd(8,16,32,32,Ap),new bd(8,16,128,128,Ap),new bd(8,32,128,256,Ap),new bd(32,128,258,1024,Ap),new bd(32,258,258,4096,Ap)];var TXP={};TXP=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 OfL=Object.prototype.toString;
d2Y.prototype.push=function(g,r){var E=this.strm,B=this.options.chunkSize;if(this.ended)return!1;var w=r===~~r?r:r===!0?4:0;typeof g==="string"?E.input=S9S(g):OfL.call(g)==="[object ArrayBuffer]"?E.input=new Uint8Array(g):E.input=g;E.next_in=0;E.avail_in=E.input.length;do{E.avail_out===0&&(E.output=new ud.Buf8(B),E.next_out=0,E.avail_out=B);g=vgD(E,w);if(g!==1&&g!==0)return gKw(this,g),this.ended=!0,!1;if(E.avail_out===0||E.avail_in===0&&(w===4||w===2))if(this.options.to==="string"){var O=ud.shrinkBuf(E.output,
E.next_out);r=O;O=O.length;if(O<65537&&(r.subarray&&ypD||!r.subarray))r=String.fromCharCode.apply(null,ud.shrinkBuf(r,O));else{for(var M="",u=0;u<O;u++)M+=String.fromCharCode(r[u]);r=M}this.chunks.push(r)}else r=ud.shrinkBuf(E.output,E.next_out),this.chunks.push(r)}while((E.avail_in>0||E.avail_out===0)&&g!==1);if(w===4)return(E=this.strm)&&E.state?(B=E.state.status,B!==42&&B!==69&&B!==73&&B!==91&&B!==103&&B!==113&&B!==666?g=Q2(E,-2):(E.state=null,g=B===113?Q2(E,-3):0)):g=-2,gKw(this,g),this.ended=
!0,g===0;w===2&&(gKw(this,0),E.avail_out=0);return!0};
var gKw=function(g,r){r===0&&(g.result=g.options.to==="string"?g.chunks.join(""):ud.flattenChunks(g.chunks));g.chunks=[];g.err=r;g.msg=g.strm.msg};var rnw=typeof TextEncoder!=="undefined"?new TextEncoder:null,C1J=rnw?function(g){return rnw.encode(g)}:function(g){g=_.sR(g);
for(var r=new Uint8Array(g.length),E=0;E<r.length;E++)r[E]=g[E];return r};var MsX={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},uNS={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var k7=function(g,r){this.version=g;this.args=r};
k7.prototype.serialize=function(){return{version:this.version,args:this.args}};var lzS=function(g,r){this.topic=g;this.dataClass=r};
lzS.prototype.toString=function(){return this.topic};var EKm=_.XS("ytPubsub2Pubsub2Instance")||new _.GZ;_.GZ.prototype.subscribe=_.GZ.prototype.subscribe;_.GZ.prototype.unsubscribeByKey=_.GZ.prototype.unsubscribeByKey;_.GZ.prototype.publish=_.GZ.prototype.publish;_.GZ.prototype.clear=_.GZ.prototype.clear;_.vN("ytPubsub2Pubsub2Instance",EKm);var ucX=_.XS("ytPubsub2Pubsub2SubscribedKeys")||{};_.vN("ytPubsub2Pubsub2SubscribedKeys",ucX);var oDS=_.XS("ytPubsub2Pubsub2TopicToKeys")||{};_.vN("ytPubsub2Pubsub2TopicToKeys",oDS);
var DrJ=_.XS("ytPubsub2Pubsub2IsAsync")||{};_.vN("ytPubsub2Pubsub2IsAsync",DrJ);_.vN("ytPubsub2Pubsub2SkipSubKey",null);var scl=void 0,R9L=void 0;var t9Y=_.wM("max_body_size_to_compress",5E5),FuP=_.wM("min_body_size_to_compress",500),W8=!0,azX=0,C9=0,xrL=_.wM("compression_performance_threshold_lr",250),Xso=_.wM("slow_compressions_before_abandon_count",4),jct=!1,AjP=new Map,WuJ=1,e9L=!0;_.rc(K9,mrl);K9.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 BuT=function(g,r,E){E||(E=0);var B=g.W_;if(typeof r==="string")for(var w=0;w<16;w++)B[w]=r.charCodeAt(E)<<24|r.charCodeAt(E+1)<<16|r.charCodeAt(E+2)<<8|r.charCodeAt(E+3),E+=4;else for(w=0;w<16;w++)B[w]=r[E]<<24|r[E+1]<<16|r[E+2]<<8|r[E+3],E+=4;for(r=16;r<80;r++)E=B[r-3]^B[r-8]^B[r-14]^B[r-16],B[r]=(E<<1|E>>>31)&4294967295;r=g.chain_[0];E=g.chain_[1];w=g.chain_[2];for(var O=g.chain_[3],M=g.chain_[4],u,l,Q=0;Q<80;Q++)Q<40?Q<20?(u=O^E&(w^O),l=1518500249):(u=E^w^O,l=1859775393):Q<60?(u=E&w|O&(E|w),
l=2400959708):(u=E^w^O,l=3395469782),u=(r<<5|r>>>27)+u+M+l+B[Q]&4294967295,M=O,O=w,w=(E<<30|E>>>2)&4294967295,E=r,r=u;g.chain_[0]=g.chain_[0]+r&4294967295;g.chain_[1]=g.chain_[1]+E&4294967295;g.chain_[2]=g.chain_[2]+w&4294967295;g.chain_[3]=g.chain_[3]+O&4294967295;g.chain_[4]=g.chain_[4]+M&4294967295};
K9.prototype.update=function(g,r){if(g!=null){r===void 0&&(r=g.length);for(var E=r-this.blockSize,B=0,w=this.buf_,O=this.inbuf_;B<r;){if(O==0)for(;B<=E;)BuT(this,g,B),B+=this.blockSize;if(typeof g==="string")for(;B<r;){if(w[O]=g.charCodeAt(B),++O,++B,O==this.blockSize){BuT(this,w);O=0;break}}else for(;B<r;)if(w[O]=g[B],++O,++B,O==this.blockSize){BuT(this,w);O=0;break}}this.inbuf_=O;this.total_+=r}};
K9.prototype.digest=function(){var g=[],r=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var E=this.blockSize-1;E>=56;E--)this.buf_[E]=r&255,r/=256;BuT(this,this.buf_);for(E=r=0;E<5;E++)for(var B=24;B>=0;B-=8)g[r]=this.chain_[E]>>B&255,++r;return g};var LuQ;var pd=function(g){var r=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(z){r.databaseToken=z},
triggerThrottle:function(){r.throttledSend()},
cancelThrottle:function(){r.cancelThrottledSend()},
immediateSend:function(z){return _.q(function(k){return _.D(k,r.immediateSend(z),0)})},
requestWithinAgeLimit:function(z,k){return r.requestWithinAgeLimit(z,k)},
retryQueuedRequests:function(){r.retryQueuedRequests()}};
var E;this.throttleTimeout=(E=g.throttleTimeout)!=null?E:100;var B;this.retryMaxAttempts=(B=g.retryMaxAttempts)!=null?B:1;var w;this.requestAgeLimitMs=(w=g.requestAgeLimitMs)!=null?w:2592E6;var O;this.queuedRequestAgeLimitMs=(O=g.queuedRequestAgeLimitMs)!=null?O:12E4;var M;this.retryDelayMs=(M=g.retryDelayMs)!=null?M:5E3;var u;this.databaseToken=(u=g.databaseToken)!=null?u:void 0;this.enableCleaning=!!g.enableCleaning;var l;this.cleaningRate=(l=g.cleaningRate)!=null?l:.1;var Q;this.potentialEsfErrorLimit=
(Q=g.potentialEsfErrorLimit)!=null?Q:10;g.handleError&&(this.handleError=g.handleError);g.handleWarning&&(this.handleWarning=g.handleWarning);g.disableYtIdbTransactions&&(this.disableYtIdbTransactions=g.disableYtIdbTransactions);g.bypassDbTokenDependency&&(this.bypassDbTokenDependency=g.bypassDbTokenDependency);this.getBooleanFlag=g.getBooleanFlag;this.jobManager=g.jobManager;this.logsStore=g.logsStore;this.networkManager=g.networkManager;this.sendFn=g.sendFn;this.onlineEvent=g.onlineEvent;this.offlineEvent=
g.offlineEvent;Hj(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&wfb(this)},wfb=function(g){Hj(g)&&!g.disableYtIdbTransactions&&(g.initialized=!0,g.enableCleaning&&Math.random()<=g.cleaningRate&&g.logsStore.cleanLogsStore(g.databaseToken),g.retryQueuedRequests(),g.networkManager.isNetworkAvailable()&&g.throttledSend(),g.networkManager.listen(g.onlineEvent,g.throttledSend.bind(g)),g.networkManager.listen(g.offlineEvent,g.cancelThrottledSend.bind(g)))};
_.S=pd.prototype;_.S.writeThenSend=function(g,r){var E=this;r=r===void 0?{}:r;if(Hj(this)&&this.initialized){var B={url:g,options:r,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(B,this.databaseToken).then(function(w){B.id=w;E.networkManager.isNetworkAvailable()&&E.immediateSend(B)}).catch(function(w){E.immediateSend(B);
Sq4(E,w)})}else this.sendFn(g,r)};
_.S.sendThenWrite=function(g,r,E){var B=this;r=r===void 0?{}:r;if(Hj(this)&&this.initialized){var w={url:g,options:r,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(w.skipRetry=E);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!w.skipRetry){if(!w.skipRetry){var O=r.onError?r.onError:function(){};
r.onError=function(M,u){return _.q(function(l){if(l.nextAddress==1)return _.D(l,B.logsStore.set(w,B.databaseToken).catch(function(Q){Sq4(B,Q)}),2);
O(M,u);_.Q3(l)})}}this.sendFn(g,r,w.skipRetry)}else this.logsStore.set(w,this.databaseToken).catch(function(M){B.sendFn(g,r,w.skipRetry);
Sq4(B,M)})}else this.sendFn(g,r,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&E)};
_.S.sendAndWrite=function(g,r){var E=this;r=r===void 0?{}:r;if(Hj(this)&&this.initialized){var B={url:g,options:r,timestamp:this.now(),status:"NEW",sendCount:0},w=!1,O=r.onSuccess?r.onSuccess:function(){};
B.options.onSuccess=function(M,u){B.id!==void 0?E.logsStore.deleteRequest(B.id,E.databaseToken):w=!0;E.networkManager.networkStatusHint&&E.getBooleanFlag&&E.getBooleanFlag("vss_network_hint")&&E.networkManager.networkStatusHint(!0);O(M,u)};
this.sendFn(B.url,B.options,void 0,!0);this.logsStore.set(B,this.databaseToken).then(function(M){B.id=M;w&&E.logsStore.deleteRequest(B.id,E.databaseToken)}).catch(function(M){Sq4(E,M)})}else this.sendFn(g,r,void 0,!0)};
_.S.throttledSend=function(){var g=this;if(!Hj(this))throw Error("dd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var r;return _.q(function(E){if(E.nextAddress==1)return _.D(E,g.logsStore.getMostRecentByStatus("NEW",g.databaseToken),2);if(E.nextAddress!=3)return r=E.yieldResult,r?_.D(E,g.immediateSend(r),3):(g.cancelThrottledSend(),E.return());g.intervalJob&&(g.intervalJob=0,g.throttledSend());_.Q3(E)})},this.throttleTimeout))};
_.S.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.S.immediateSend=function(g){var r=this,E;return _.q(function(B){switch(B.nextAddress){case 1:if(!Hj(r))throw Error("ed");if(g.id===void 0){B.jumpTo(2);break}return _.D(B,r.logsStore.markAsQueued(g.id,r.databaseToken),3);case 3:(E=B.yieldResult)||r.handleWarning(Error("fd"));case 2:if(r.requestWithinAgeLimit(g,r.requestAgeLimitMs)){B.jumpTo(4);break}r.handleWarning(Error("gd"));if(g.id===void 0){B.jumpTo(5);break}return _.D(B,r.logsStore.deleteRequest(g.id,r.databaseToken),5);case 5:return B.return();
case 4:g.skipRetry||(g=OC4(r,g));if(!g){B.jumpTo(0);break}if(!g.skipRetry||g.id===void 0){B.jumpTo(8);break}return _.D(B,r.logsStore.deleteRequest(g.id,r.databaseToken),8);case 8:r.sendFn(g.url,g.options,!!g.skipRetry),_.Q3(B)}})};
var OC4=function(g,r){if(!Hj(g))throw Error("hd");var E=r.options.onError?r.options.onError:function(){};
r.options.onError=function(w,O){var M,u,l,Q;return _.q(function(z){switch(z.nextAddress){case 1:M=vDQ(O);(u=drP(O))&&g.getBooleanFlag&&g.getBooleanFlag("web_enable_error_204")&&g.handleError(Error("id"),r.url,O);if(!(g.getBooleanFlag&&g.getBooleanFlag("nwl_consider_error_code")&&M||g.getBooleanFlag&&!g.getBooleanFlag("nwl_consider_error_code")&&g.potentialEsfErrorCounter<=g.potentialEsfErrorLimit)){z.jumpTo(2);break}if(!g.networkManager.sendNetworkCheckRequest){z.jumpTo(3);break}return _.D(z,g.networkManager.sendNetworkCheckRequest(),
3);case 3:if(g.networkManager.isNetworkAvailable()){z.jumpTo(2);break}E(w,O);if(!g.getBooleanFlag||!g.getBooleanFlag("nwl_consider_error_code")||((l=r)==null?void 0:l.id)===void 0){z.jumpTo(6);break}return _.D(z,g.logsStore.resetRequest(r.id,g.databaseToken,!1),6);case 6:return z.return();case 2:if(g.getBooleanFlag&&g.getBooleanFlag("nwl_consider_error_code")&&!M&&g.potentialEsfErrorCounter>g.potentialEsfErrorLimit)return z.return();g.potentialEsfErrorCounter++;if(((Q=r)==null?void 0:Q.id)===void 0){z.jumpTo(8);
break}return r.sendCount<g.retryMaxAttempts?_.D(z,g.logsStore.resetRequest(r.id,g.databaseToken,!0,u?!1:void 0),12):_.D(z,g.logsStore.deleteRequest(r.id,g.databaseToken),8);case 12:g.jobManager.addLowPriorityJob(function(){g.networkManager.isNetworkAvailable()&&g.throttledSend()},g.retryDelayMs);
case 8:E(w,O),_.Q3(z)}})};
var B=r.options.onSuccess?r.options.onSuccess:function(){};
r.options.onSuccess=function(w,O){var M;return _.q(function(u){if(u.nextAddress==1)return((M=r)==null?void 0:M.id)===void 0?u.jumpTo(2):_.D(u,g.logsStore.deleteRequest(r.id,g.databaseToken),2);g.networkManager.networkStatusHint&&g.getBooleanFlag&&g.getBooleanFlag("vss_network_hint")&&g.networkManager.networkStatusHint(!0);B(w,O);_.Q3(u)})};
return r};
pd.prototype.requestWithinAgeLimit=function(g,r){g=g.timestamp;return this.now()-g>=r?!1:!0};
pd.prototype.retryQueuedRequests=function(){var g=this;if(!Hj(this))throw Error("jd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(r){r&&!g.requestWithinAgeLimit(r,g.queuedRequestAgeLimitMs)?g.jobManager.addLowPriorityJob(function(){return _.q(function(E){if(E.nextAddress==1)return r.id===void 0?E.jumpTo(2):_.D(E,g.logsStore.resetRequest(r.id,g.databaseToken),2);g.retryQueuedRequests();_.Q3(E)})}):g.networkManager.isNetworkAvailable()&&g.throttledSend()})};
var Sq4=function(g,r){g.writeError&&!g.networkManager.isNetworkAvailable()?g.writeError(r):g.handleError(r)},Hj=function(g){return!!g.databaseToken||g.bypassDbTokenDependency};var Tzl;var OWL={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,
startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,
keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525};var Ubn={},qPo=TZ("ServiceWorkerLogsDatabase",{objectStores:(Ubn.SWHealthLog={addedAtVersion:1},Ubn),shared:!0,upgrade:function(g,r){r(1)&&N_(X6(g,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var kFD={},z8c=0;var R8X;var Y7=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},L9=function(){if(!Y7.instance){var g=_.XS("yt.networkRequestMonitor.instance")||new Y7;
_.vN("yt.networkRequestMonitor.instance",g);Y7.instance=g}return Y7.instance};
Y7.prototype.requestComplete=function(g,r){r&&(this.anyRequestHasSucceeded=!0);g=this.removeParams(g);this.requestMap.get(g)||this.requestMap.set(g,r)};
Y7.prototype.isEndpointCFR=function(g){g=this.removeParams(g);return(g=this.requestMap.get(g))?!1:g===!1&&this.anyRequestHasSucceeded?!0:null};
Y7.prototype.removeParams=function(g){return g.split("?")[0]};
Y7.prototype.removeParams=Y7.prototype.removeParams;Y7.prototype.isEndpointCFR=Y7.prototype.isEndpointCFR;Y7.prototype.requestComplete=Y7.prototype.requestComplete;Y7.getInstance=L9;var RM=function(g){_.ze.call(this);var r=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=g!=null?g:{addLowPriorityJob:function(w,O){return setTimeout(w,O)},
cancelJob:function(w){clearTimeout(w)}};
var E,B;this.isOnline=(B=(E=window.navigator)==null?void 0:E.onLine)!=null?B:!0;this.onNavigatorChange=function(){return _.q(function(w){return _.D(w,MlZ(r),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||qq6(this)};
_.f(RM,_.ze);RM.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete RM.instance};
RM.prototype.isNetworkAvailable=function(){return this.isOnline};
var qq6=function(g){g.pollingJob=g.jobManager.addLowPriorityJob(function(){var r;return _.q(function(E){if(E.nextAddress==1)return g.isOnline?((r=window.navigator)==null?0:r.onLine)?E.jumpTo(3):_.D(E,MlZ(g),3):_.D(E,MlZ(g),3);qq6(g);_.Q3(E)})},3E4)},MlZ=function(g,r){return g.networkRequestPromise?g.networkRequestPromise:g.networkRequestPromise=new Promise(function(E){var B,w,O,M;
return _.q(function(u){switch(u.nextAddress){case 1:return B=window.AbortController?new window.AbortController:void 0,O=(w=B)==null?void 0:w.signal,M=!1,_.qN(u,2,3),B&&(g.abortTimeoutKey=g.jobManager.addLowPriorityJob(function(){B.abort()},r||2E4)),_.D(u,fetch("/generate_204",{method:"HEAD",
signal:O}),5);case 5:M=!0;case 3:_.uY(u);g.networkRequestPromise=void 0;g.abortTimeoutKey&&(g.jobManager.cancelJob(g.abortTimeoutKey),g.abortTimeoutKey=0);M!==g.isOnline&&(g.isOnline=M,g.isOnline?g.dispatchEvent("networkstatus-online"):g.dispatchEvent("networkstatus-offline"));E(M);_.oF(u,0);break;case 2:_.G2(u),M=!1,u.jumpTo(3)}})})};var nd=function(){_.ze.call(this);var g=this;this.shouldFlushErrors=!1;RM.instance||(RM.instance=new RM(_.F6));this.sharedNetworkStatusManager=RM.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(g.shouldFlushErrors&&_.Y("offline_error_handling")){var r=nal().get("errors",!0);if(r){for(var E in r)if(r[E]){var B=new _.Rj(E,"sent via offline_errors");B.name=r[E].name;B.stack=r[E].stack;B.level=r[E].level;_.xF(B)}nal().set("errors",{},2592E3,!0)}}})};
_.f(nd,_.ze);var uRA=function(){if(!nd.instance){var g=_.XS("yt.networkStatusManager.instance")||new nd;_.vN("yt.networkStatusManager.instance",g);nd.instance=g}return nd.instance};
_.S=nd.prototype;_.S.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.S.networkStatusHint=function(g){this.sharedNetworkStatusManager.isOnline=g};
_.S.getWindowStatus=function(){var g=window.navigator.onLine;return g===void 0?!0:g};
_.S.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.S.listen=function(g,r){return this.sharedNetworkStatusManager.listen(g,r)};
_.S.sendNetworkCheckRequest=function(g){g=MlZ(this.sharedNetworkStatusManager,g);g.then(function(r){_.Y("use_cfr_monitor")&&L9().requestComplete("generate_204",r)});
return g};
nd.prototype.sendNetworkCheckRequest=nd.prototype.sendNetworkCheckRequest;nd.prototype.listen=nd.prototype.listen;nd.prototype.enableErrorFlushing=nd.prototype.enableErrorFlushing;nd.prototype.getWindowStatus=nd.prototype.getWindowStatus;nd.prototype.networkStatusHint=nd.prototype.networkStatusHint;nd.prototype.isNetworkAvailable=nd.prototype.isNetworkAvailable;nd.getInstance=uRA;_.id=function(g){g=g===void 0?{}:g;_.ze.call(this);var r=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=uRA();var E=_.XS("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);E&&(g.rateLimit?(this.rateLimit=g.rateLimit,E("networkstatus-online",function(){l8w(r,"publicytnetworkstatus-online")}),E("networkstatus-offline",function(){l8w(r,"publicytnetworkstatus-offline")})):(E("networkstatus-online",function(){r.dispatchEvent("publicytnetworkstatus-online")}),E("networkstatus-offline",
function(){r.dispatchEvent("publicytnetworkstatus-offline")})))};
_.f(_.id,_.ze);_.id.prototype.isNetworkAvailable=function(){var g=_.XS("yt.networkStatusManager.instance.isNetworkAvailable");return g?g.bind(this.nsmInstance)():!0};
_.id.prototype.networkStatusHint=function(g){var r=_.XS("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);r&&r(g)};
_.id.prototype.sendNetworkCheckRequest=function(g){var r=this,E;return _.q(function(B){E=_.XS("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(r.nsmInstance);return _.Y("skip_network_check_if_cfr")&&L9().isEndpointCFR("generate_204")?B.return(new Promise(function(w){var O;r.networkStatusHint(((O=window.navigator)==null?void 0:O.onLine)||!0);w(r.isNetworkAvailable())})):E?B.return(E(g)):B.return(!0)})};
var l8w=function(g,r){g.rateLimit?g.lastJobTime?(_.F6.cancelJob(g.schedulerJob),g.schedulerJob=_.F6.addLowPriorityJob(function(){g.lastPublicSignalSent!==r&&(g.dispatchEvent(r),g.lastPublicSignalSent=r,g.lastJobTime=(0,_.g2)())},g.rateLimit-((0,_.g2)()-g.lastJobTime))):(g.dispatchEvent(r),g.lastPublicSignalSent=r,g.lastJobTime=(0,_.g2)()):g.dispatchEvent(r)};var AOP,sZ=function(){pd.call(this,{logsStore:{cleanLogsStore:U8J,deleteRequest:OyJ,getMostRecentByStatus:BbY,markAsQueued:wol,resetRequest:SPP,set:EaL},networkManager:_.byJ(),handleError:function(g,r,E){var B,w=E==null?void 0:(B=E.error)==null?void 0:B.code;if(w===400||w===415){var O;g=new _.Rj(g.message,r,E==null?void 0:(O=E.error)==null?void 0:O.code);_.NX(g,void 0,void 0,void 0,!0)}else _.xF(g)},
handleWarning:_.NX,sendFn:$8B,now:_.g2,writeError:sJY,jobManager:_.s8(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.wM("potential_esf_error_limit",10),getBooleanFlag:_.Y,disableYtIdbTransactions:!(_.YA()&&_.JOD())});this.initializationPromise=new _.uF;_.Y("networkless_immediately_drop_all_requests")&&MNo();duB("LogsDatabaseV2")};
_.f(sZ,pd);_.oKz=function(){var g=_.XS("yt.networklessRequestController.instance");g||(g=new sZ,_.vN("yt.networklessRequestController.instance",g),_.Y("networkless_logging")&&_.dM().then(function(r){g.databaseToken=r;wfb(g);g.initializationPromise.resolve();g.enableCleaning&&Math.random()<=g.cleaningRate&&g.databaseToken&&l1c(g.databaseToken);_.Y("networkless_immediately_drop_sw_health_store")&&DbT(g)}));
return g};
sZ.prototype.writeThenSend=function(g,r){r||(r={});r=jJJ(g,r);_.YA()||(this.initialized=!1);pd.prototype.writeThenSend.call(this,g,r)};
sZ.prototype.sendThenWrite=function(g,r,E){r||(r={});r=jJJ(g,r);_.YA()||(this.initialized=!1);pd.prototype.sendThenWrite.call(this,g,r,E)};
sZ.prototype.sendAndWrite=function(g,r){r||(r={});r=jJJ(g,r);_.YA()||(this.initialized=!1);pd.prototype.sendAndWrite.call(this,g,r)};
sZ.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var DbT=function(g){var r;_.q(function(E){if(!g.databaseToken)throw r=C3("clearSWHealthLogsDb"),r;return E.return(D8c(g.databaseToken).catch(function(B){g.handleError(B)}))})};_.tNl=!1;_.PFY=_.ED.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.tNl};_.vN("ytNetworklessLoggingInitializationOptions",_.PFY);var b2=function(g){var r=this;this.config_=null;g?this.config_=g:U2o()&&(this.config_=_.Ee());_.fC(_.F6,function(){yjl(r)},5E3)};
b2.prototype.isReady=function(){!this.config_&&U2o()&&(this.config_=_.Ee());return!!this.config_};
var ZfD=function(g,r,E,B){!_.Ca("VISITOR_DATA")&&r!=="visitor_id"&&Math.random()<.01&&_.NX(new _.Rj("Missing VISITOR_DATA when sending innertube request.",r,E,B));if(!g.isReady()){var w=new _.Rj("innertube xhrclient not ready",r,E,B);_.xF(w);throw w;}var O={headers:B.headers||{},method:"POST",postParams:E,postBody:B.postBody,postBodyFormat:B.postBodyFormat||"JSON",onTimeout:function(){B.onTimeout()},
onFetchTimeout:B.onTimeout,onSuccess:function(k,H){if(B.onSuccess)B.onSuccess(H)},
onFetchSuccess:function(k){if(B.onSuccess)B.onSuccess(k)},
onError:function(k,H){if(B.onError)B.onError(H)},
onFetchError:function(k){if(B.onError)B.onError(k)},
timeout:B.timeout,withCredentials:!0,compress:B.compress};O.headers["Content-Type"]||(O.headers["Content-Type"]="application/json");var M="";(w=g.config_.innertubeHostOverride)&&(M=w);var u=g.config_.innertubeUseThirdPartyAuth||!1,l=_.s6c(u,M,B);Object.assign(O.headers,l);O.headers.Authorization&&!M&&u&&(O.headers["x-origin"]=window.location.origin);var Q=_.La(M+("/youtubei/"+g.config_.innertubeApiVersion+"/"+r),{alt:"json"}),z=function(k){k=k===void 0?!1:k;var H;if(B.retry&&M!="www.youtube-nocookie.com"&&
(k||_.Y("skip_ls_gel_retry")||O.headers["Content-Type"]!=="application/json"||(H=V9t(r,E,l,u)),H)){var R=O.onSuccess,A=O.onFetchSuccess;O.onSuccess=function(C,X){h9c(H);R(C,X)};
E.onFetchSuccess=function(C,X){h9c(H);A(C,X)}}try{if(k&&B.retry&&!B.networklessOptions.bypassNetworkless)O.method="POST",B.networklessOptions.writeThenSend?_.oKz().writeThenSend(Q,O):_.oKz().sendAndWrite(Q,O);
else if(B.compress){var J=!B.networklessOptions.writeThenSend;if(O.postBody){var e=O.postBody;typeof e!=="string"&&(e=JSON.stringify(O.postBody));Kul(Q,e,O,_.Dx,J)}else Kul(Q,JSON.stringify(O.postParams),O,mHQ,J)}else _.Y("web_all_payloads_via_jspb")?_.Dx(Q,O):mHQ(Q,O)}catch(C){if(C.name==="InvalidAccessError")H&&(h9c(H),H=0),_.NX(Error("kd"));else throw C;}H&&_.fC(_.F6,function(){yjl(g)},5E3)};
_.F$B()?cFJ().then(function(k){z(k)}):z(!1)};var CZY=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(CZY,_.xu);var Gxw=0,W$l=_.Uz?"webkit":_.Oz?"moz":_.SI?"ms":fSQ?"o":"";_.vN("ytDomDomGetNextId",_.XS("ytDomDomGetNextId")||function(){return++Gxw});var QIn={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},d2=function(g){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(g=
g||window.event){this.event=g;for(var r in g)r in QIn||(this[r]=g[r]);this.scale=g.scale;this.rotation=g.rotation;var E=g.target||g.srcElement;E&&E.nodeType==3&&(E=E.parentNode);this.target=E;var B=g.relatedTarget;if(B)try{B=B.nodeName?B:null}catch(w){B=null}else this.type=="mouseover"?B=g.fromElement:this.type=="mouseout"&&(B=g.toElement);this.relatedTarget=B;this.clientX=g.clientX!=void 0?g.clientX:g.pageX;this.clientY=g.clientY!=void 0?g.clientY:g.pageY;this.keyCode=g.keyCode?g.keyCode:g.which;
this.charCode=g.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=g.altKey;this.ctrlKey=g.ctrlKey;this.shiftKey=g.shiftKey;this.metaKey=g.metaKey;this.pageX_=g.pageX;this.pageY_=g.pageY}}catch(w){}},zRb=function(g){if(document.body&&document.documentElement){var r=document.body.scrollTop+document.documentElement.scrollTop;
g.pageX_=g.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);g.pageY_=g.clientY+r}};
d2.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
d2.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
d2.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var v8=_.ED.ytEventsEventsListeners||{};_.vN("ytEventsEventsListeners",v8);var NbS=_.ED.ytEventsEventsCounter||{count:0};_.vN("ytEventsEventsCounter",NbS);var I1t=_.Gk(function(){var g=!1;try{var r=Object.defineProperty({},"capture",{get:function(){g=!0}});
window.addEventListener("test",null,r)}catch(E){}return g});_.rc(gu,_.f5);gu.prototype.onMouseMove_=function(g){g.pageX_===void 0&&zRb(g);var r=g.pageX_;g.pageY_===void 0&&zRb(g);this.position_=new _.JL(r,g.pageY_)};
gu.prototype.checkPosition_=function(){if(this.position_){var g=(0,_.g2)();if(this.previousTime_!=0){var r=this.previousPosition_,E=this.position_,B=r.x-E.x;r=r.y-E.y;B=Math.sqrt(B*B+r*r)/(g-this.previousTime_);this.cycles_[this.index_]=Math.abs((B-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(E=r=0;E<4;E++)r+=this.cycles_[E]||0;r>=3&&this.callback_();this.previousVelocity_=B}this.previousTime_=g;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
gu.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.m8L(this.mouseListenerKey_)};var VNJ={};var rMQ=new _.V("rawColdConfigGroup");var gPB=new _.V("rawHotConfigGroup");var kxZ=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(kxZ,_.xu);var WTY=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(WTY,_.xu);var sq=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g,500)};
_.f(sq,_.xu);sq.prototype.getPayloadCase=function(){return _.px(this,HCb)};
sq.prototype.getContext=function(){return _.zP(this,WTY,33)};
var HCb=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525];var hNL=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(hNL,_.xu);var sbl=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(sbl,_.xu);sbl.prototype.setVideoId=function(g){return oI(this,1,fot,NM(g))};
sbl.prototype.getPlaylistId=function(){return _.kr(this,YK(this,fot,2))};
var fot=[1,2];var IoS=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(IoS,_.xu);IoS.prototype.getContext=function(){return _.zP(this,Gx,1)};
IoS.prototype.getTier=function(){return _.AX(this,7)};var pfm,wu,Sl;pfm=_.ED.ytPubsubPubsubInstance||new _.GZ;wu=_.ED.ytPubsubPubsubSubscribedKeys||{};Sl=_.ED.ytPubsubPubsubTopicToKeys||{};_.h8P=_.ED.ytPubsubPubsubIsSynchronous||{};_.GZ.prototype.subscribe=_.GZ.prototype.subscribe;_.GZ.prototype.unsubscribeByKey=_.GZ.prototype.unsubscribeByKey;_.GZ.prototype.publish=_.GZ.prototype.publish;_.GZ.prototype.clear=_.GZ.prototype.clear;_.vN("ytPubsubPubsubInstance",pfm);_.vN("ytPubsubPubsubTopicToKeys",Sl);_.vN("ytPubsubPubsubIsSynchronous",_.h8P);
_.vN("ytPubsubPubsubSubscribedKeys",wu);var Uq=window;var fd=_.Y("web_enable_lifecycle_monitoring")&&Tbo()!==0,YqT=_.Y("web_enable_lifecycle_monitoring");var nKz=function(g){var r=this;var E=E===void 0?0:E;var B=B===void 0?_.s8():B;this.JSC$8938_defaultPriority=E;this.scheduler=B;this.completedResolver=new _.uF;this.scheduledPayloads=g;for(g={i$jscomp$491:0};g.i$jscomp$491<this.scheduledPayloads.length;g={payload$jscomp$18:void 0,i$jscomp$491:g.i$jscomp$491},g.i$jscomp$491++)g.payload$jscomp$18=this.scheduledPayloads[g.i$jscomp$491],E=function(w){return function(){w.payload$jscomp$18.job();r.scheduledPayloads[w.i$jscomp$491].processed=!0;r.scheduledPayloads.every(function(O){return O.processed===
!0})&&r.completedResolver.resolve()}}(g),B=this.scheduler.addJob(E,RRA(this,g.payload$jscomp$18)),this.scheduledPayloads[g.i$jscomp$491]=Object.assign({},g.payload$jscomp$18,{job:E,
jobId:B})};
nKz.prototype.flushJobs=function(){var g=this,r=Array.from(this.scheduledPayloads.keys()).sort(function(B,w){return RRA(g,g.scheduledPayloads[w])-RRA(g,g.scheduledPayloads[B])});
r=_.U(r);for(var E=r.next();!E.done;E=r.next())E=this.scheduledPayloads[E.value],E.jobId===void 0||E.processed||(this.scheduler.cancelJob(E.jobId),this.scheduler.addJob(E.job,10))};
nKz.prototype.cancel=function(){for(var g=_.U(this.scheduledPayloads),r=g.next();!r.done;r=g.next())r=r.value,r.jobId===void 0||r.processed||this.scheduler.cancelJob(r.jobId),r.processed=!0;this.completedResolver.resolve()};
var RRA=function(g,r){var E;return(E=r.priority)!=null?E:g.JSC$8938_defaultPriority};var $7=function(g){this.state=g;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};fd&&gkP(this.state)};
$7.prototype.install=function(g){this.plugins.push(g);return this};
$7.prototype.uninstall=function(){var g=this;_.fI.apply(0,arguments).forEach(function(r){r=g.plugins.indexOf(r);r>-1&&g.plugins.splice(r,1)})};
$7.prototype.transition=function(g,r){var E=this;fd&&rCA(this.state);var B=this.transitions.find(function(O){return Array.isArray(O.from)?O.from.find(function(M){return M===E.state&&O.to===g}):O.from===E.state&&O.to===g});
if(B){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);sI4(this,g,r);this.state=g;fd&&gkP(this.state);B=B.action.bind(this);var w=this.plugins.filter(function(O){return O[g]}).map(function(O){return O[g]});
B(f8m(this,w),r)}else throw Error("ld`"+this.state+"`"+g);};
var f8m=function(g,r){var E=r.filter(function(w){return $b6(g,w)===10}),B=r.filter(function(w){return $b6(g,w)!==10});
return g.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var w=_.fI.apply(0,arguments);return _.q(function(O){if(O.nextAddress==1)return _.D(O,g.runImmediateJobsAsync.apply(g,[E].concat(_.jW(w))),2);g.setJobSetWithScheduledJobs.apply(g,[B].concat(_.jW(w)));_.Q3(O)})}:function(){var w=_.fI.apply(0,arguments);
g.runImmediateJobsSync.apply(g,[E].concat(_.jW(w)));g.setJobSetWithScheduledJobs.apply(g,[B].concat(_.jW(w)))}};
$7.prototype.runImmediateJobsSync=function(g){var r=_.fI.apply(1,arguments);_.s8();for(var E=_.U(g),B=E.next(),w={};!B.done;w={lifecycle$jscomp$2:void 0},B=E.next())w.lifecycle$jscomp$2=B.value,UB(function(O){return function(){jIT(O.lifecycle$jscomp$2.name);BGP(function(){return O.lifecycle$jscomp$2.callback.apply(O.lifecycle$jscomp$2,_.jW(r))});
js(O.lifecycle$jscomp$2.name)}}(w))};
$7.prototype.runImmediateJobsAsync=function(g){var r=_.fI.apply(1,arguments),E,B,w,O;return _.q(function(M){M.nextAddress==1&&(_.s8(),E=_.U(g),B=E.next(),w={});if(M.nextAddress!=3){if(B.done)return M.jumpTo(0);w.lifecycle$jscomp$3=B.value;w.asyncJobCompletion=void 0;O=function(u){return function(){jIT(u.lifecycle$jscomp$3.name);var l=BGP(function(){return u.lifecycle$jscomp$3.callback.apply(u.lifecycle$jscomp$3,_.jW(r))});
EEJ(l)?u.asyncJobCompletion=_.Y("web_lifecycle_error_handling_killswitch")?l.then(function(){js(u.lifecycle$jscomp$3.name)}):l.then(function(){js(u.lifecycle$jscomp$3.name)},function(Q){EkL(Q);
js(u.lifecycle$jscomp$3.name)}):js(u.lifecycle$jscomp$3.name)}}(w);
UB(O);return w.asyncJobCompletion?_.D(M,w.asyncJobCompletion,3):M.jumpTo(3)}w={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};B=E.next();return M.jumpTo(2)})};
$7.prototype.setJobSetWithScheduledJobs=function(g){var r=_.fI.apply(1,arguments),E=this,B=g.map(function(w){return{job:function(){jIT(w.name);BGP(function(){return w.callback.apply(w,_.jW(r))});
js(w.name)},
priority:$b6(E,w)}});
B.length&&(this.jobSet=new nKz(B))};
var $b6=function(g,r){var E,B;return(B=(E=g.overridePriority)!=null?E:r.priority)!=null?B:0},jIT=function(g){fd&&g&&gkP(g)},js=function(g){fd&&g&&rCA(g)},sI4=function(g,r,E){YqT&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+g.constructor.name+"] '"+g.state+"' to '"+r+"'"),console.log("with message: ",E),console.groupEnd())};
_.hx.Object.defineProperties($7.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var AnT=function(g){$7.call(this,g===void 0?"none":g);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(){}}]},bCz;
_.f(AnT,$7);AnT.prototype.runApplicationNavigationBegin=function(g,r){var E=this;this.navigationTimer=_.fC(_.F6,function(){E.currentState==="application_navigating"&&E.transition("none")},5E3);
g(r==null?void 0:r.event)};
AnT.prototype.runApplicationNavigationEnd=function(g,r){this.navigationTimer&&(_.F6.cancelJob(this.navigationTimer),this.navigationTimer=null);g(r==null?void 0:r.event)};
_.TGY=function(){bCz||(bCz=new AnT);return bCz};var d1c=[];_.vN("yt.logging.transport.getScrapedGelPayloads",function(){return d1c});var Mb=function(){var g=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return g.totalEntries}}};
Mb.prototype.storePayload=function(g,r){g=wic(g);this.store[g]?this.store[g].push(r):(this.memoizedKeySequences={},this.store[g]=[r]);this.totalEntries++;_.Y("more_accurate_gel_parser")&&(r=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(r));return g};
Mb.prototype.smartExtractMatchingEntries=function(g){if(!g.keys.length)return[];for(var r=Jnn(this,g.keys.splice(0,1)[0]),E=[],B=0;B<r.length;B++)this.store[r[B]]&&g.sizeLimit&&(this.store[r[B]].length<=g.sizeLimit?(E.push.apply(E,_.jW(this.store[r[B]])),delete this.store[r[B]]):E.push.apply(E,_.jW(this.store[r[B]].splice(0,g.sizeLimit))));this.totalEntries-=E.length;(g==null?0:g.sizeLimit)&&E.length<(g==null?void 0:g.sizeLimit)&&(g.sizeLimit-=E.length,E.push.apply(E,_.jW(this.smartExtractMatchingEntries(g))));
return E};
Mb.prototype.extractMatchingEntries=function(g){g=Jnn(this,g);for(var r=[],E=0;E<g.length;E++)this.store[g[E]]&&(r.push.apply(r,_.jW(this.store[g[E]])),delete this.store[g[E]]);this.totalEntries-=r.length;return r};
Mb.prototype.getSequenceCount=function(g){g=Jnn(this,g);for(var r=0,E=0;E<g.length;E++){var B=void 0;r+=((B=this.store[g[E]])==null?void 0:B.length)||0}return r};
var Jnn=function(g,r){var E=wic(r);if(g.memoizedKeySequences[E])return g.memoizedKeySequences[E];var B=Object.keys(g.store)||[];if(B.length<=1&&wic(r)===B[0])return B;for(var w=[],O=0;O<B.length;O++){var M=B[O].split("/");if(P2w(r.auth,M[0])){var u=r.isJspb;P2w(u===void 0?"undefined":u?"true":"false",M[1])&&P2w(r.cttAuthInfo,M[2])&&(u=r.tier,u=u===void 0?"undefined":JSON.stringify(u),P2w(u,M[3])&&w.push(B[O]))}}return g.memoizedKeySequences[E]=w},P2w=function(g,r){return g===void 0||g==="undefined"?
!0:g===r};
Mb.prototype.getSequenceCount=Mb.prototype.getSequenceCount;Mb.prototype.extractMatchingEntries=Mb.prototype.extractMatchingEntries;Mb.prototype.smartExtractMatchingEntries=Mb.prototype.smartExtractMatchingEntries;Mb.prototype.storePayload=Mb.prototype.storePayload;var eNL,t3X,WGt,l2,tlI,S2S,wwA,PaB,JCY,HRl,FGB,yCY,jbc;eNL=_.wM("initial_gel_batch_timeout",2E3);t3X=_.wM("gel_queue_timeout_max_ms",6E4);WGt=_.wM("gel_min_batch_size",5);l2=void 0;tlI=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
S2S=new tlI;wwA=new tlI;PaB=new tlI;JCY=new tlI;FGB=!0;yCY=1;_.ZRB=new Map;jbc=_.ED.ytLoggingTransportTokensToCttTargetIds_||{};_.vN("ytLoggingTransportTokensToCttTargetIds_",jbc);var $1X=_.ED.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.vN("ytLoggingTransportTokensToJspbCttTargetIds_",$1X);var u2={};var jl=_.ED.ytLoggingGelSequenceIdObj_||{};_.vN("ytLoggingGelSequenceIdObj_",jl);var q2X=[];var RhP=new Set,G$l=0,$yA=0,fhJ=0,zht=[],Q3Q=[],j3l=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var XwV=function(){};
XwV.prototype.getUrl=function(g,r){r=r===void 0?!1:r;return g.hasOwnProperty("shareEndpoint")?null:_.PVD(g,null,r)};
var LvP=function(g,r,E){g={endpoint:r,actions:[]};E=(E.path?E.path[0]:E.target).icon||"";r=E.indexOf(":");r>0&&(E=E.substr(r+1));E&&g.actions.push(E);return g};var KcY=/Command$/,CVJ=/Endpoint$/,FcS=new Map;var FHw,eR6;FHw=1;_.mH=function(){this.actionRoutingMap=new Map};
_.mH.prototype.triggerAction=function(g){var r=new o0t(g,!1,_.fI.apply(1,arguments));this.handleAction(r);return r.returnValue};
_.mH.prototype.triggerOptionalAction=function(g){var r=new o0t(g,!0,_.fI.apply(1,arguments));this.handleAction(r);return r.returnValue};
_.Ah=function(g,r,E){r.forEach(function(B){var w=Wcl(B);w&&g.triggerOptionalAction(w,B,E,void 0)})};
_.mH.prototype.handleAction=function(g){var r=this.actionRoutingMap.get(g.actionName);r&&eR6(g,r);g.optionalAction||g.returnValue.length!==0||(g=new _.Rj("Unhandled action",g.actionName),_.NX(g))};
eR6=function(g,r){r.forEach(function(E){var B=null;E?B=E.apply(null,g.args):(E=Error("md"),E.params=g.actionName,_.xF(E));g.returnValue.push(B)})};
_.cf=function(g,r,E){E||(E=FHw++);for(var B=_.U(Object.keys(r)),w=B.next();!w.done;w=B.next()){w=w.value;var O=g.actionRoutingMap.get(w);O||(O=new Map,g.actionRoutingMap.set(w,O));g.registerActionHandler(E,w,r[w],O)}return E};
_.mH.prototype.registerActionHandler=function(g,r,E,B){B.set(g,_.aa(E))};
_.i2=function(g,r,E){r=_.U(Object.keys(r));for(var B=r.next();!B.done;B=r.next())(B=g.actionRoutingMap.get(B.value))&&B.delete(E)};
_.vv(_.mH);var myP=function(g,r){var E=_.mH.getInstance();_.Jk(function(){var B={},w=_.cf(E,(B[g]=r,B));_.J5(function(){var O={};_.i2(E,(O[g]="",O),w)})})};var KwD=Symbol("od");vRD=jIl;var SBc=new Set(["For","If","Match","Watch"]),WHn={},C2I=(WHn[aB.default]=function(){return cpL},WHn.style=function(){return cpL},WHn),KHn;
for(KHn in C2I)Ex.attributes[KHn]=C2I[KHn](Ex.attributes[KHn]);var Tx=new _.Vn("VISIBILITY_OBSERVER");var QlD={retrieve:function(g){return this.id.\u0275prov.token===g.\u0275prov.token?this.contextValue:this?nFA(this,this.id):Y6c}};var mkY=function(g,r,E){if(g!==Z8)return!1;g=TLD(document.createElement("div"),function(){var B=SS(!1);try{E[0]()}finally{SS(B)}});
g=Array.from(g.childNodes);g.length===1&&(g=g[0]);return g};var xbT=function(g){g=g.clone();M1D(g);Qn(g,"dg",null);Qn(g,"d","0");wpI(g,null);Sxz(g,null);return g},a8b=!0,Xfn=function(g,r,E){var B=E===void 0?{}:E;
E=B.cssRowKey===void 0?void 0:B.cssRowKey;var w=B.combinedSignature===void 0?void 0:B.combinedSignature;var O=B.extraEdges===void 0?void 0:B.extraEdges;B=B.callback===void 0?void 0:B.callback;Qn(g,"m",r.join(","));O&&UDb(g,O);E&&(Qn(g,"ck",E),w?Qn(g,"rs",w):a8b&&(a8b=!1));if(B){if(B!=null&&!lkb.test(B))throw Error("bb`"+B);Qn(g,"cb",B)}g=g.toString();_.wl(g,"/")&&(g=aI6(document.location.href)+g);return _.qO(g)};var I8T=function(g){return Num(g).then(function(r){return JSON.parse(r.responseText)})},Num=function(g){var r={},E=r.xmlHttpFactory?r.xmlHttpFactory.createInstance():Aab.createInstance();
return(new _.D8(function(B,w){var O;try{E.open("GET",g,!0)}catch(l){w(new bv("Error opening XHR: "+l.message,g,E))}E.onreadystatechange=function(){if(E.readyState==4){_.ED.clearTimeout(O);var l;!(l=jCZ(E.status))&&(l=E.status===0)&&(l=xzA(g),l=!(l=="http"||l=="https"||l==""));l?B(E):w(new mb4(E.status,g,E))}};
E.onerror=function(){w(new bv("Network error",g,E))};
if(r.headers)for(var M in r.headers){var u=r.headers[M];u!=null&&E.setRequestHeader(M,u)}r.withCredentials&&(E.withCredentials=r.withCredentials);r.responseType&&(E.responseType=r.responseType);r.mimeType&&E.overrideMimeType(r.mimeType);r.timeoutMs>0&&(O=_.ED.setTimeout(function(){E.onreadystatechange=function(){};
E.abort();w(new cnb(g,E))},r.timeoutMs));
try{E.send(null)}catch(l){E.onreadystatechange=function(){},_.ED.clearTimeout(O),w(new bv("Error sending XHR: "+l.message,g,E))}})).thenCatch(function(B){B instanceof _.Iz&&E.abort();
throw B;})},bv=function(g,r,E){_.gl.call(this,g+", url="+r);
this.url=r;this.xhr=E};
_.rc(bv,_.gl);bv.prototype.name="XhrError";var mb4=function(g,r,E){bv.call(this,"Request Failed, status="+g,r,E);this.status=g};
_.rc(mb4,bv);mb4.prototype.name="XhrHttpError";var cnb=function(g,r){bv.call(this,"Request timed out",g,r)};
_.rc(cnb,bv);cnb.prototype.name="XhrTimeoutError";y9=y9||{};var Jh=function(){_.f5.call(this)};
_.rc(Jh,_.f5);Jh.prototype.initialize=function(){};var iCA=function(g,r){this.fn_=g;this.handler_=r};
iCA.prototype.execute=function(g){this.fn_&&(this.fn_.call(this.handler_||null,g),this.fn_=this.handler_=null)};
iCA.prototype.abort=function(){this.handler_=this.fn_=null};var Pj=function(g,r){_.f5.call(this);this.deps_=g;this.JSC$9066_id_=r;this.onloadCallbacks_=[];this.JSC$9066_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.rc(Pj,_.f5);Pj.prototype.moduleConstructor_=Jh;Pj.prototype.module_=null;Pj.prototype.getId=function(){return this.JSC$9066_id_};
Pj.prototype.registerCallback=function(g,r){return LHA(this.onloadCallbacks_,g,r)};
var VlU=function(g,r){LHA(g.JSC$9066_onErrorCallbacks_,r)},LHA=function(g,r,E){r=new iCA(r,E);
g.push(r);return r};
Pj.prototype.isLoaded=function(){return!!this.module_};
Pj.prototype.onLoad=function(g){var r=new this.moduleConstructor_;r.initialize(g());this.module_=r;r=(r=hRT(this.earlyOnloadCallbacks_,g()))||hRT(this.onloadCallbacks_,g());r||(this.JSC$9066_onErrorCallbacks_.length=0);return r};
Pj.prototype.onError=function(g){(g=hRT(this.JSC$9066_onErrorCallbacks_,g))&&BJ(Error("sd`"+g));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var hRT=function(g,r){for(var E=[],B=0;B<g.length;B++)try{g[B].execute(r)}catch(w){BJ(w),E.push(w)}g.length=0;return E.length?E:null};
Pj.prototype.disposeInternal=function(){Pj.superClass_.disposeInternal.call(this);_.TM(this.module_)};var ZCw,rxb,TuI,g5Z,vKD,dbn,OkU,w3z,SbI;
_.FN=function(g,r,E,B,w){B=B===void 0?!1:B;w=w===void 0?!1:w;var O=O===void 0?!0:O;this.scsReferenceUrl_=ckl(_.ui(g).toString(),O);this.cssRowKey_=r;this.combinedSignature_=E;this.useNegativeLoading_=B;this.requestedModuleMap_={};this.JSC$9069_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(g=Gg(this.scsReferenceUrl_,"excm"))?g.split(","):[];this.shouldScanForCss_=w;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;ial();_.th(this,Ol4(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
ZCw=function(g,r){if(r.href||r.getAttribute("data-href"))if(r=r.href||r.getAttribute("data-href"),X0L(r)&&!ckl(r).urlPrefix_.endsWith("_/js/")){r=Ol4(ckl(r));r=_.U(r);for(var E=r.next();!E.done;E=r.next())E=E.value,g.loadedCssModuleList_.includes(E)||g.loadedCssModuleList_.push(E)}};
_.FN.prototype.JSC$9071_loadModules=function(g,r,E){var B=E===void 0?{}:E;E=B.extraEdges;var w=B.onError;var O=B.onSuccess;B=B.forceReload;this.JSC$9069_moduleInfoMap_=r;if(!g)throw Error("td");if(this.shouldScanForCss_){r=_.U(document.getElementsByTagName("style"));for(var M=r.next();!M.done;M=r.next())ZCw(this,M.value);r=_.U(document.getElementsByTagName("link"));for(M=r.next();!M.done;M=r.next())ZCw(this,M.value)}ynA(this,vKD(this,g),E,w,O,B)};
var ynA=function(g,r,E,B,w,O){B=B===void 0?function(){}:B;
w=w===void 0?function(){}:w;
O=O===void 0?!1:O;dbn(g,r,function(M,u,l){l=l===void 0?u:l;g.enableFallbackFetch&&O?g.loadWithFetch(M,u,B,w,l):g.load(M,u,B,w,l,E)},E)||B(-1)};
_.FN.prototype.loadWithFetch=function(){_.q(function(){throw Error("ud");})};
_.FN.prototype.maybeSetAdditionalFields=function(){};
rxb=function(g,r,E){if(g.useNegativeLoading_){var B=g.scsReferenceUrl_;g={cssRowKey:g.cssRowKey_,combinedSignature:g.combinedSignature_,extraEdges:E,requestedModuleIds:TuI(g),requestedCssModuleIds:g5Z(g)};var w=g===void 0?{}:g;g=w.requestedModuleIds===void 0?[]:w.requestedModuleIds;E=w.requestedCssModuleIds===void 0?[]:w.requestedCssModuleIds;var O=w.cssRowKey===void 0?void 0:w.cssRowKey;var M=w.combinedSignature===void 0?void 0:w.combinedSignature;var u=w.extraEdges===void 0?void 0:w.extraEdges;
w=w.callback===void 0?void 0:w.callback;B=xbT(B);Qn(B,"d","1");wpI(B,g);Sxz(B,E);r=Xfn(B,r,{cssRowKey:O,combinedSignature:M,extraEdges:u,callback:w})}else B=g.scsReferenceUrl_,g={cssRowKey:g.cssRowKey_,combinedSignature:g.combinedSignature_,requestedModuleIds:TuI(g),requestedCssModuleIds:g5Z(g)},u=g===void 0?{}:g,g=u.requestedCssModuleIds===void 0?[]:u.requestedCssModuleIds,E=u.cssRowKey===void 0?void 0:u.cssRowKey,O=u.combinedSignature===void 0?void 0:u.combinedSignature,M=u.extraEdges===void 0?
void 0:u.extraEdges,u=u.callback===void 0?void 0:u.callback,B=xbT(B),Sxz(B,g),r=Xfn(B,r,{cssRowKey:E,combinedSignature:O,extraEdges:M,callback:u});return r};
_.th=function(g,r){for(var E=!1,B=[],w=0;w<r.length;++w){var O=r[w];g.requestedModuleMap_[O]||(g.requestedModuleMap_[O]=!0,g.requestedModuleList_.push(O),E=!0,B.push(O))}E&&(g.requestedModuleListSorted_=!1)};
_.es=function(g,r){for(var E=[],B=0;B<r.length;++B){var w=r[B];g.requestedModuleMap_[w]&&(delete g.requestedModuleMap_[w],_.ht(g.requestedModuleList_,w),E.push(w))}};
_.FN.prototype.load=function(g,r,E,B,w){w=w===void 0?r:w;_.ui(g);var O=this.useCors_,M=this.corsMode_,u=this.fetchPriority,l=_.HT("SCRIPT");_.mg(l,g);O&&(l.crossOrigin=M);l.async=!1;u&&l.setAttribute("fetchpriority",u);_.th(this,r);_.E5U(this,g,l,r,E,B,w)};
_.E5U=function(g,r,E,B,w,O,M){M=M===void 0?B:M;g.lastScript_=E;g.insertPos.insertBefore(E,g.insertPos.firstChild);_.BHZ(E,B,function(){E.parentElement.removeChild(E);g.lastScript_==E&&(g.lastScript_=null);var u=new Set;B.map(function(Q){return u.add(Q)});
for(var l in g.JSC$9069_moduleInfoMap_)g.JSC$9069_moduleInfoMap_[l].isLoaded()&&u.add(l);Array.from(u);O()},function(u){E.parentElement.removeChild(E);
g.lastScript_==E&&(g.lastScript_=null);_.es(g,u);g.pendingModuleGraphUpdate_?g.pendingModuleGraphUpdate_.then(function(){w(-1,r)}):w(-1,r)},M)};
_.BHZ=function(g,r,E,B,w){w=w===void 0?r:w;var O=r.length,M=function(){O=0;g.onload=null;g.onerror=null;u=function(){}},u=function(){M();
var Q=w.filter(function(z){return!PT().getModuleInfo(z).isLoaded()});
Q.length!==0?B(Q,"Response was successful but was missing module(s) "+Q+"."):E()},l=function(){O--;
O==0&&u()};
r.forEach(function(Q){Q=PT().getModuleInfo(Q);Q.isLoaded()?l():(LHA(Q.earlyOnloadCallbacks_,l),VlU(Q,l))});
g.onload=function(){return u()};
g.onerror=function(){M();B(r)}};
TuI=function(g){g.requestedModuleListSorted_||(g.requestedModuleListSorted_=!0,g.requestedModuleList_.sort());return g.requestedModuleList_};
g5Z=function(g){g=g.loadedCssModuleList_;g.sort();return g};
vKD=function(g,r){return r.filter(function(E){return!g.requestedModuleMap_[E]})};
dbn=function(g,r,E,B){if(g.pendingModuleGraphUpdate_)return g.pendingModuleGraphUpdate_.then(function(){dbn(g,r,E,B)}),!0;
if(!g.useNegativeLoading_){var w=[],O=Object.assign({},g.requestedModuleMap_);w3z(g,r,function(z){w.push(z.getId())},B,function(z){return!z.isLoaded()},O);
r=w}for(O=0;O<r.length;){for(var M=r.length-O,u=O==0?r:r.slice(O,r.length),l=rxb(g,u,B),Q=_.ui(l).toString();Q.length>g.urlMaxLength;)if(M>1)M-=Math.ceil((Q.length-g.urlMaxLength)/6),M=Math.max(M,1),u=r.slice(O,O+M),l=rxb(g,u,B),Q=_.ui(l).toString();else return g.useNegativeLoading_?(g.useNegativeLoading_=!1,g.pendingModuleGraphUpdate_=SbI(g).then(function(z){OkU(g,z,B)}),dbn(g,r.slice(O),E,B)):!1;
O+=M;g.useNegativeLoading_?E(l,u):E(l,u,O===r.length?r:[])}return!0};
OkU=function(g,r,E){PT().setAllModuleInfoString((r||{}).moduleGraph);w3z(g,TuI(g),function(B){_.th(g,[B.getId()])},E);
g.pendingModuleGraphUpdate_=null};
w3z=function(g,r,E,B,w,O){O=O===void 0?{}:O;var M=PT();r=_.U(r);for(var u=r.next();!u.done;u=r.next()){u=u.value;var l=M.getModuleInfo(u);if(!(O[u]||w&&!w(l))){O[u]=!0;var Q=l.deps_||[];if(B){var z=[];B[u]&&(z=Object.keys(B[u]));Q=Q.concat(z)}w3z(g,Q,E,B,w,O);E(l)}}};
SbI=function(g){g=g.scsReferenceUrl_.clone();M1D(g);Qn(g,"dg",null);Qn(g,"md","1");return I8T(g.toString())};var HhD=new Uint8Array(123);var UH4=[];var M8w=function(){this.JSC$8144_loader_=null};
_.S=M8w.prototype;_.S.setBatchModeEnabled=function(){};
_.S.setAllModuleInfoString=function(){};
_.S.addExtraEdge=function(){throw Error("vd");};
_.S.removeExtraEdge=function(){throw Error("wd");};
_.S.getModuleContext=function(){return null};
_.S.isActive=function(){return!1};
_.S.isUserActive=function(){return!1};
_.S.registerCallback=function(){};var Wj=function(g,r,E,B,w){var O=Error.call(this);this.message=O.message;"stack"in O&&(this.stack=O.stack);this.name="ModuleLoadFailure";this.type=g;this.status=r;this.requestedModuleIds=E;this.url=B;this.cause=w;this.message=this.toString()};
_.f(Wj,Error);Wj.prototype.toString=function(){return qbm(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var qbm=function(g){switch(g.type){case Wj.JSC$9081_Type.UNAUTHORIZED:return"Unauthorized";case Wj.JSC$9081_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case Wj.JSC$9081_Type.TIMEOUT:return"Timed out";case Wj.JSC$9081_Type.OLD_CODE_GONE:return"Out of date module id";case Wj.JSC$9081_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+g.type}};
y9.ModuleLoadFailure=Wj;y9.ModuleLoadFailure.JSC$9081_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var Cd=function(){this.moduleIds_=this.JSC$8144_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$9084_extraEdges_={};this.JSC$9084_callbackMap_={};this.JSC$9084_currentlyLoadingModule_=this.baseModuleInfo_=new Pj([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new X5;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.rc(Cd,M8w);var u3n=function(g,r){_.gl.call(this,"Error loading "+g+": "+r)};
_.rc(u3n,_.gl);Cd.prototype.setBatchModeEnabled=function(g){this.batchModeEnabled_=g};
Cd.prototype.setAllModuleInfoString=function(g,r){if(!(this instanceof Cd))this.setAllModuleInfoString(g,r);else if(typeof g==="string"){if(g.startsWith("d$")){g=g.substring(2);for(var E=[],B=0,w=g.indexOf("/"),O=0,M=!1,u=0;;){var l=M?g.substring(O):g.substring(O,w);if(l.length===0)B++,O="sy"+B.toString(36),l=[];else{var Q=l.indexOf(":");if(Q<0)O=l,l=[];else if(Q===l.length-1)O=l.substring(0,Q),l=Array(E[u-1]);else{O=l.substring(0,Q);l=l.substring(Q+1).split(",");Q=u;for(var z=0;z<l.length;z++)Q-=
l[z].length===0?1:Number(l[z]),l[z]=E[Q]}Q=0;if(O.length===0)Q=1;else if(O.charAt(0)==="+"||O.charAt(0)==="-")Q=Number(O);Q!==0&&(B+=Q,O="sy"+B.toString(36))}E.push(O);lsw(this,O,l);if(M)break;O=w+1;w=g.indexOf("/",O);w===-1&&(M=!0);u++}this.moduleIds_=E}else if(g.startsWith("p$"))DHw(this,g);else{g=g.split("/");E=[];for(B=0;B<g.length;B++){u=g[B].split(":");w=u[0];M=[];if(u[1])for(M=u[1].split(","),u=0;u<M.length;u++)M[u]=E[parseInt(M[u],36)];E.push(w);lsw(this,w,M)}this.moduleIds_=E}r&&r.length?
(_.dl(this.loadingModuleIds_,r),this.lastInitialModuleId_=_.KL(r)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$9084_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$9084_currentlyLoadingModule_=null,(r=this.baseModuleInfo_.onLoad((0,_.$r)(this.getModuleContext,this)))&&r.length&&o5w(this,new y9.ModuleLoadFailure(y9.ModuleLoadFailure.JSC$9081_Type.INIT_ERROR,void 0,void 0,void 0,r[0])),Kd(this))}};
var DHw=function(g,r){var E=r.substring(2);for(r=0;r<64;r++)HhD["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(r)]=r;var B={buf:E,pos:0};Eb(B);var w=Eb(B),O=Eb(B)+1;r=Array(w);var M=Array(w),u=Array(w);O=Array(O);var l=0,Q=0,z=B.pos,k=B.buf.indexOf("|",B.pos);B.pos=k+1;for(k=0;k<w;k++){var H=Eb(B),R=H&2,A=H&1;H>>>=2;A?(l+=H>>>1^-(H&1),H="sy"+l.toString(36)):(A=z,z+=H,H=E.substring(A,z));r[k]=H;R&&(O[Q++]=H)}O[Q]="";B.pos++;Q=w&-2;E=w&1;for(l=0;l<Q;l+=2)z=pKl(B),u[l]=
z&7,u[l+1]=z>>>3&7;E&&(E=pKl(B),u[Q]=E&7);B.pos++;for(Q=0;Q<w;Q++)u[Q]===7&&(u[Q]=Eb(B));B.pos++;for(E=Q=0;E<w;E++){l=u[E];z=l===0?UH4:Array(l);M[E]=z;k=Q;for(R=0;R<l;R++)k-=Eb(B),z[R]=O[k];O[Q]===r[E]&&Q++}for(B=0;B<r.length;B++)lsw(g,r[B],M[B]);g.moduleIds_=r};
_.S=Cd.prototype;_.S.getModuleInfo=function(g){return this.moduleInfoMap[g]};
_.S.addExtraEdge=function(g,r){var E=this.getModuleInfo(g);E&&E.isLoaded()?this.load(r):(this.JSC$9084_extraEdges_[g]||(this.JSC$9084_extraEdges_[g]={}),this.JSC$9084_extraEdges_[g][r]=!0)};
_.S.removeExtraEdge=function(g,r){if(this.JSC$9084_extraEdges_[g]){delete this.JSC$9084_extraEdges_[g][r];for(var E in this.JSC$9084_extraEdges_[g])return;delete this.JSC$9084_extraEdges_[g]}};
_.S.isActive=function(){return this.loadingModuleIds_.length>0};
_.S.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var Kd=function(g){var r=g.lastActive_,E=g.isActive();E!=r&&(g.executeCallbacks_(E?"active":"idle"),g.lastActive_=E);r=g.isUserActive();r!=g.userLastActive_&&(g.executeCallbacks_(r?"userActive":"userIdle"),g.userLastActive_=r)},lsw=function(g,r,E){g.moduleInfoMap[r]?(g=g.moduleInfoMap[r].deps_,g!=E&&g.splice.apply(g,[0,
g.length].concat(_.jW(E)))):g.moduleInfoMap[r]=new Pj(E,r)},QvD=function(g,r,E){var B=[];
B6(r,B);r=[];for(var w={},O=0;O<B.length;O++){var M=B[O],u=g.getModuleInfo(M);if(!u)throw Error("xd`"+M);var l=new X5;w[M]=l;u.isLoaded()?l.callback(null):(G5Z(g,M,u,!!E,l),g.isModuleLoading(M)||r.push(M))}r.length>0&&(g.loadingModuleIds_.length===0?g.loadModules_(r):(g.requestedModuleIdsQueue_.push(r),Kd(g)));return w},G5Z=function(g,r,E,B,w){E.registerCallback(w.callback,w);
VlU(E,function(O){w.errback(new u3n(r,O))});
g.isModuleLoading(r)?B&&(zUZ(g,r),Kd(g)):B&&zUZ(g,r)};
Cd.prototype.loadModules_=function(g,r,E){var B=this;r||(this.consecutiveFailures_=0);var w=k56(this,g);this.loadingModuleIds_=w;this.requestedLoadingModuleIds_=this.batchModeEnabled_?g:_.ZQ(w);Kd(this);if(w.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,w);if(Object.keys(this.JSC$9084_extraEdges_).length>0&&!this.JSC$8144_loader_.supportsExtraEdges)throw Error("yd");g=(0,_.$r)(this.JSC$8144_loader_.JSC$9071_loadModules,this.JSC$8144_loader_,_.ZQ(w),this.moduleInfoMap,{extraEdges:this.JSC$9084_extraEdges_,
forceReload:!!E,onError:function(O,M){var u=B.requestedLoadingModuleIds_;O=O!=null?O:void 0;B.consecutiveFailures_++;var l=_.ZQ(w);B.requestedLoadingModuleIds_=u;w.forEach(_.Hk(_.ht,B.requestedModuleIds_),B);O==401?(o5w(B,new y9.ModuleLoadFailure(y9.ModuleLoadFailure.JSC$9081_Type.UNAUTHORIZED,O)),B.requestedModuleIdsQueue_.length=0):O==410?(Hkm(B,new y9.ModuleLoadFailure(y9.ModuleLoadFailure.JSC$9081_Type.OLD_CODE_GONE,O)),p34(B)):B.consecutiveFailures_>=3?(Hkm(B,new y9.ModuleLoadFailure(y9.ModuleLoadFailure.JSC$9081_Type.CONSECUTIVE_FAILURES,
O,l,M)),p34(B)):B.loadModules_(B.requestedLoadingModuleIds_,!0,O==8001||!1)},
onTimeout:(0,_.$r)(this.handleLoadTimeout_,this)});(r=Math.pow(this.consecutiveFailures_,2)*5E3)?_.ED.setTimeout(g,r):g()}};
var k56=function(g,r){r=r.filter(function(w){return g.moduleInfoMap[w].isLoaded()?(_.ED.setTimeout(function(){return Error("zd`"+w)},0),!1):!0});
for(var E=[],B=0;B<r.length;B++)E=E.concat(Ybb(g,r[B]));B6(E);return!g.batchModeEnabled_&&E.length>1?(r=E.shift(),g.requestedModuleIdsQueue_=E.map(function(w){return[w]}).concat(g.requestedModuleIdsQueue_),[r]):E},Ybb=function(g,r){var E=_.jn.createSet(g.requestedModuleIds_),B=[];
E[r]||B.push(r);r=[r];for(var w=0;w<r.length;w++)for(var O=g.getModuleInfo(r[w]).deps_,M=O.length-1;M>=0;M--){var u=O[M];g.getModuleInfo(u).isLoaded()||E[u]||(B.push(u),r.push(u))}B.reverse();B6(B);return B};
Cd.prototype.JSC$9079_setLoaded=function(){if(this.JSC$9084_currentlyLoadingModule_){var g=this.JSC$9084_currentlyLoadingModule_.getId(),r=[];if(this.JSC$9084_extraEdges_[g]){for(var E=_.U(Object.keys(this.JSC$9084_extraEdges_[g])),B=E.next();!B.done;B=E.next()){B=B.value;var w=this.getModuleInfo(B);w&&!w.isLoaded()&&(this.removeExtraEdge(g,B),r.push(B))}this.loadMultiple(r)}this.isDisposed()||((r=this.moduleInfoMap[g].onLoad((0,_.$r)(this.getModuleContext,this)))&&r.length&&o5w(this,new y9.ModuleLoadFailure(y9.ModuleLoadFailure.JSC$9081_Type.INIT_ERROR,
void 0,void 0,void 0,r[0])),_.ht(this.userInitiatedLoadingModuleIds_,g),_.ht(this.loadingModuleIds_,g),this.loadingModuleIds_.length===0&&p34(this),this.lastInitialModuleId_&&g==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),Kd(this),this.JSC$9084_currentlyLoadingModule_=null)}};
Cd.prototype.isModuleLoading=function(g){if(_.mA(this.loadingModuleIds_,g))return!0;for(var r=0;r<this.requestedModuleIdsQueue_.length;r++)if(_.mA(this.requestedModuleIdsQueue_[r],g))return!0;return!1};
Cd.prototype.load=function(g,r){return QvD(this,[g],r)[g]};
Cd.prototype.loadMultiple=function(g){return QvD(this,g)};
var zUZ=function(g,r){_.mA(g.userInitiatedLoadingModuleIds_,r)||g.userInitiatedLoadingModuleIds_.push(r)};
Cd.prototype.beforeLoadModuleCode=function(g){var r=this;this.JSC$9084_currentlyLoadingModule_&&this.JSC$9084_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$9079_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[g]&&RUD(this,this.moduleInfoMap[g].deps_||[],function(E){E.module_=new Jh;_.ht(r.loadingModuleIds_,E.getId())},function(E){return!E.isLoaded()});
this.JSC$9084_currentlyLoadingModule_=this.getModuleInfo(g)};
Cd.prototype.handleLoadTimeout_=function(){Hkm(this,new y9.ModuleLoadFailure(y9.ModuleLoadFailure.JSC$9081_Type.TIMEOUT));p34(this)};
var Hkm=function(g,r){g.requestedLoadingModuleIds_.length>1?g.requestedModuleIdsQueue_=g.requestedLoadingModuleIds_.map(function(E){return[E]}).concat(g.requestedModuleIdsQueue_):o5w(g,r)},o5w=function(g,r){var E=g.requestedLoadingModuleIds_;
g.loadingModuleIds_.length=0;for(var B=[],w=0;w<g.requestedModuleIdsQueue_.length;w++){var O=g.requestedModuleIdsQueue_[w].filter(function(l){var Q=Ybb(this,l);return V2(E,function(z){return _.mA(Q,z)})},g);
_.dl(B,O)}for(w=0;w<E.length;w++)_.LL(B,E[w]);for(w=0;w<B.length;w++){for(O=0;O<g.requestedModuleIdsQueue_.length;O++)_.ht(g.requestedModuleIdsQueue_[O],B[w]);_.ht(g.userInitiatedLoadingModuleIds_,B[w])}if(w=g.JSC$9084_callbackMap_.error)for(O=0;O<w.length;O++)for(var M=w[O],u=0;u<B.length;u++)M("error",B[u],r);for(B=0;B<E.length;B++)if(g.moduleInfoMap[E[B]])g.moduleInfoMap[E[B]].onError(r);g.requestedLoadingModuleIds_.length=0;Kd(g)},p34=function(g){for(;g.requestedModuleIdsQueue_.length;){var r=
g.requestedModuleIdsQueue_.shift().filter(function(E){return!this.getModuleInfo(E).isLoaded()},g);
if(r.length>0){g.loadModules_(r);return}}Kd(g)};
Cd.prototype.registerCallback=function(g,r){Array.isArray(g)||(g=[g]);for(var E=0;E<g.length;E++){var B=g[E],w=r,O=this.JSC$9084_callbackMap_;O[B]||(O[B]=[]);O[B].push(w)}};
Cd.prototype.executeCallbacks_=function(g){for(var r=this.JSC$9084_callbackMap_[g],E=0;r&&E<r.length;E++)r[E](g)};
var RUD=function(g,r,E,B,w){B=B===void 0?function(){return!0}:B;
w=w===void 0?{}:w;r=_.U(r);for(var O=r.next();!O.done;O=r.next()){O=O.value;var M=g.getModuleInfo(O);!w[O]&&B(M)&&(w[O]=!0,RUD(g,M.deps_||[],E,B,w),E(M))}};
Cd.prototype.dispose=function(){_.gY(_.jn.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$9084_callbackMap_={};this.isDisposed_=!0};
Cd.prototype.isDisposed=function(){return this.isDisposed_};
_.Jy=function(){return new Cd};var n5T=[5E3,2E4],svb=function(){this.JSC$8144_loader_=null;this.JSC$9092_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$9092_queue_=[];this.JSC$9092_extraEdges_=Object.create(null);this.JSC$9092_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.f(svb,M8w);_.S=svb.prototype;_.S.setAllModuleInfoString=function(){this.JSC$9092_currentlyLoadingModule_&&this.JSC$9092_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$9079_setLoaded()};
_.S.getModuleInfo=function(g){var r=this.JSC$9092_moduleInfoMap_[g];r||(r=new Pj([],g),this.JSC$9092_moduleInfoMap_[g]=r);return r};
_.S.addExtraEdge=function(g,r){this.getModuleInfo(g).isLoaded()?this.load(r):(this.JSC$9092_extraEdges_[g]||(this.JSC$9092_extraEdges_[g]={}),this.JSC$9092_extraEdges_[g][r]=!0)};
_.S.removeExtraEdge=function(g,r){if(this.JSC$9092_extraEdges_[g]){delete this.JSC$9092_extraEdges_[g][r];for(var E in this.JSC$9092_extraEdges_[g])return;delete this.JSC$9092_extraEdges_[g]}};
_.S.isModuleLoading=function(g){return!!this.loadingModules_[g]};
_.S.load=function(g){fsw(this,[g]);return $Hw(this,g)};
_.S.loadMultiple=function(g){var r=this,E=Object.create(null),B=[];g.forEach(function(w){E[w]||(E[w]=$Hw(r,w),B.push(w))});
fsw(this,B);return E};
_.S.beforeLoadModuleCode=function(g){var r;((r=this.JSC$9092_currentlyLoadingModule_)==null?void 0:r.getId())==="synthetic_module_overhead"&&this.JSC$9079_setLoaded();var E,B;jv4(this,(B=(E=this.JSC$9092_moduleInfoMap_[g])==null?void 0:E.deps_)!=null?B:[],function(w){w.module_=new Jh},function(w){return!w.isLoaded()});
this.JSC$9092_currentlyLoadingModule_=this.getModuleInfo(g)};
_.S.JSC$9079_setLoaded=function(){if(this.JSC$9092_currentlyLoadingModule_){var g=this.JSC$9092_currentlyLoadingModule_.getId(),r=[];if(this.JSC$9092_extraEdges_[g]){for(var E=_.U(Object.keys(this.JSC$9092_extraEdges_[g])),B=E.next();!B.done;B=E.next())B=B.value,this.getModuleInfo(B).isLoaded()||(this.removeExtraEdge(g,B),r.push(B));this.loadMultiple(r)}this.JSC$9092_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$9092_currentlyLoadingModule_=null;(!this.isModuleLoading(g)&&/^sy[0-9a-z]{0,4}$/.test(g)||g==="synthetic_module_overhead")&&delete this.JSC$9092_moduleInfoMap_[g];this.unsetModulesAsLoading(g)}};
_.S.setModulesAsLoading=function(){var g=this;_.fI.apply(0,arguments).forEach(function(r){g.loadingModules_[r]=!0})};
_.S.unsetModulesAsLoading=function(){var g=this;_.fI.apply(0,arguments).forEach(function(r){delete g.loadingModules_[r]})};
var $Hw=function(g,r){return new _.D8(function(E,B){var w=g.getModuleInfo(r);w.isLoaded()?E(null):(w.registerCallback(function(){E(null)}),VlU(w,function(O){var M="Error loading "+r+": "+O;
O instanceof y9.ModuleLoadFailure&&O.url&&(M=M+", requested url: "+O.url.toString());B(Error(M))}))})},fsw=function(g,r){r=r.filter(function(E){return!g.isModuleLoading(E)&&!g.getModuleInfo(E).isLoaded()});
r.length>0&&(g.setModulesAsLoading.apply(g,_.jW(r)),g.JSC$9092_queue_.push(r),AxU(g))},AxU=function(g){for(var r={};g.activeLoads_<Infinity&&g.JSC$9092_queue_.length>0;r={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})r.ids$jscomp$36=g.JSC$9092_queue_.shift().filter(function(E){return!g.getModuleInfo(E).isLoaded()}),r.ids$jscomp$36.length>0&&(g.activeLoads_++,r.finishLoad=function(E){return function(){g.activeLoads_--;
AxU(g);E.finishLoad=function(){}}}(r),_.pc(r.ids$jscomp$36.map(function(E){return $Hw(g,E)})).then(function(E){return function(){(0,E.finishLoad)()}}(r)),r.attempt$jscomp$6=0,r.load$jscomp$1=function(E){return function(){if(Object.keys(g.JSC$9092_extraEdges_).length>0&&!g.JSC$8144_loader_.supportsExtraEdges)throw Error("yd");
g.JSC$8144_loader_.JSC$9071_loadModules(E.ids$jscomp$36,g.JSC$9092_moduleInfoMap_,{extraEdges:g.JSC$9092_extraEdges_,onError:function(B,w){var O=n5T[E.attempt$jscomp$6++];O!==void 0?setTimeout(function(){(0,E.load$jscomp$1)()},O):(g.unsetModulesAsLoading.apply(g,_.jW(E.ids$jscomp$36)),(0,E.finishLoad)(),E.ids$jscomp$36.forEach(function(M){M=g.getModuleInfo(M);
if(!M.isLoaded())M.onError(new y9.ModuleLoadFailure(y9.ModuleLoadFailure.JSC$9081_Type.CONSECUTIVE_FAILURES,B,E.ids$jscomp$36,w))}))}})}}(r),(0,r.load$jscomp$1)())},jv4=function(g,r,E,B,w){B=B===void 0?function(){return!0}:B;
w=w===void 0?{}:w;r=_.U(r);for(var O=r.next();!O.done;O=r.next()){O=O.value;var M=g.getModuleInfo(O);!w[O]&&B(M)&&(w[O]=!0,jv4(g,M.deps_||[],E,B,w),E(M))}};var bkD=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var Rct=Symbol("Bd");window.JSCompiler_renameProperty=function(g){return g};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var JxD=!bkD||HTMLElement.es5Shimmed||_.ED.Reflect===void 0||_.ED.customElements===void 0||_.ED.customElements.polyfillWrapFlushCallback||!1,PpI,ZvY=function(){var g=HTMLElement;if(JxD)return g;if(PpI!==void 0)return PpI;var r=_.ED.Reflect,E=function(){return r.construct(g,[],this.constructor)};
E.prototype=g.prototype;E.prototype.constructor=E;E.es5Shimmed=!0;Object.setPrototypeOf(E,g);return PpI=E},t8Z=!1;JxD||t8Z||(t8Z=!0,_.ED.HTMLElement=ZvY());/*

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 jlL=/(url\()([^)]*)(\))/g,fyV=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,$hY,B3;var W3=!window.ShadyDOM||!window.ShadyDOM.inUse,F8U=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),eUU=!window.customElements.polyfillWrapFlushCallback,W8A;if(W8A=W3&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var Cp4=new CSSStyleSheet;Cp4.replaceSync("");var K8w=document.createElement("div");K8w.attachShadow({mode:"open"});K8w.shadowRoot.adoptedStyleSheets=[Cp4];W8A=K8w.shadowRoot.adoptedStyleSheets[0]===Cp4}catch(g){W8A=!1}
var xH4=W8A,as6=window.Polymer&&window.Polymer.rootPath||bhQ(document.baseURI||window.location.href),k5=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,xQD=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,av=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,X3n=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,e8=window.Polymer&&window.Polymer.legacyOptimizations||!1,x5=window.Polymer&&window.Polymer.legacyWarnings||!1,NHm=window.Polymer&&window.Polymer.syncInitialRender||
!1,pk=window.Polymer&&window.Polymer.legacyUndefined||!1,IsA=window.Polymer&&window.Polymer.orderedComputed||!1,x7=window.Polymer&&window.Polymer.removeNestedTemplates||!1,aM=window.Polymer&&window.Polymer.fastDomIf||!1,XN=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,mHI=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,cx4=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var N4={},ik6={},Rv=function(){return HTMLElement.apply(this,arguments)||this};
_.f(Rv,HTMLElement);Rv.import=function(g,r){return g?(g=N4[g]||ik6[g.toLowerCase()])&&r?g.querySelector(r):g:null};
Rv.prototype.attributeChangedCallback=function(g,r,E){r!==E&&this.register()};
Rv.prototype.register=function(g){if(g=g||this.id){if(av&&(N4[g]||ik6[g.toLowerCase()])!==void 0)throw N4[g]=ik6[g.toLowerCase()]=null,Error("Cd`"+g);this.id=g;N4[g]=ik6[g.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.hx.Object.defineProperties(Rv.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var g=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;g=_.wH(this.getAttribute("assetpath")||"",g.baseURI);this.__assetpath=bhQ(g)}return this.__assetpath}}});
_.hx.Object.defineProperties(Rv,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
Rv["import"]=Rv.import;Rv.prototype.modules=N4;customElements.define("dom-module",Rv);var L8b=0,PWQ=0,S8=[],V8n=0,JRQ=!1,hUz=document.createTextNode(""),ZkD,tx;(new window.MutationObserver(tkQ)).observe(hUz,{characterData:!0});_.IM={after:function(g){return{run:function(r){return window.setTimeout(r,g)},
cancel:function(r){window.clearTimeout(r)}}},
run:function(g,r){return window.setTimeout(g,r)},
cancel:function(g){window.clearTimeout(g)}};
_.AM={run:function(g){return window.requestAnimationFrame(g)},
cancel:function(g){window.cancelAnimationFrame(g)}};
ZkD={run:function(g){return window.requestIdleCallback?window.requestIdleCallback(g):window.setTimeout(g,16)},
cancel:function(g){window.cancelIdleCallback?window.cancelIdleCallback(g):window.clearTimeout(g)}};
tx={run:function(g){JRQ||(JRQ=!0,hUz.textContent=V8n++);S8.push(g);return L8b++},
cancel:function(g){var r=g-PWQ;if(r>=0){if(!S8[r])throw Error("Dd`"+g);S8[r]=null}}};var yxZ=0,mh=function(g){var r=g.__mixinApplications;r||(r=new WeakMap,g.__mixinApplications=r);var E=yxZ++;return function(B){var w=B.__mixinSet;if(w&&w[E])return B;var O=r,M=O.get(B);M||(M=g(B),O.set(B,M),B=Object.create(M.__mixinSet||w||null),B[E]=!0,M.__mixinSet=B);return M}};_.z5=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(g){return ShadyDOM.patch(g)}:function(g){return g};var v5z=mh(function(g){var r=function(){var E=g.call(this)||this;E.__dataEnabled=!1;E.__dataReady=!1;E.__dataInvalid=!1;E.__data={};E.__dataPending=null;E.__dataOld=null;E.__dataInstanceProps=null;E.__dataCounter=0;E.__serializing=!1;E._initializeProperties();return E};
_.f(r,g);r.createProperties=function(E){var B=this.prototype,w;for(w in E)w in B||B._createPropertyAccessor(w)};
r.attributeNameForProperty=function(E){return E.toLowerCase()};
r.typeForProperty=function(){};
r.prototype._createPropertyAccessor=function(E,B){this._addPropertyToAttributeMap(E);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[E]||(this.__dataHasAccessor[E]=!0,this._definePropertyAccessor(E,B))};
r.prototype._addPropertyToAttributeMap=function(E){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var B=this.__dataAttributes[E];B||(B=this.constructor.attributeNameForProperty(E),this.__dataAttributes[B]=E);return B};
r.prototype._definePropertyAccessor=function(E,B){Object.defineProperty(this,E,{get:function(){return this.__data[E]},
set:B?function(){}:function(w){this._setPendingProperty(E,w,!0)&&this._invalidateProperties()}})};
r.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
r.prototype._initializeProperties=function(){for(var E in this.__dataHasAccessor)this.hasOwnProperty(E)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[E]=this[E],delete this[E])};
r.prototype._initializeInstanceProperties=function(E){Object.assign(this,E)};
r.prototype._setProperty=function(E,B){this._setPendingProperty(E,B)&&this._invalidateProperties()};
r.prototype._getProperty=function(E){return this.__data[E]};
r.prototype._setPendingProperty=function(E,B){var w=this.__data[E],O=this._shouldPropertyChange(E,B,w);O&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||E in this.__dataOld||(this.__dataOld[E]=w),this.__data[E]=B,this.__dataPending[E]=B);return O};
r.prototype._isPropertyPending=function(E){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(E))};
r.prototype._invalidateProperties=function(){var E=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,tx.run(function(){E.__dataInvalid&&(E.__dataInvalid=!1,E._flushProperties())}))};
r.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
r.prototype._flushProperties=function(){this.__dataCounter++;var E=this.__data,B=this.__dataPending,w=this.__dataOld;this._shouldPropertiesChange(E,B,w)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(E,B,w));this.__dataCounter--};
r.prototype._shouldPropertiesChange=function(E,B){return!!B};
r.prototype._propertiesChanged=function(){};
r.prototype._shouldPropertyChange=function(E,B,w){return w!==B&&(w===w||B===B)};
r.prototype.attributeChangedCallback=function(E,B,w,O){B!==w&&this._attributeToProperty(E,w);g.prototype.attributeChangedCallback&&g.prototype.attributeChangedCallback.call(this,E,B,w,O)};
r.prototype._attributeToProperty=function(E,B,w){if(!this.__serializing){var O=this.__dataAttributes;E=O&&O[E]||E;this[E]=this._deserializeValue(B,w||this.constructor.typeForProperty(E))}};
r.prototype._propertyToAttribute=function(E,B,w){this.__serializing=!0;w=arguments.length<3?this[E]:w;this._valueToNodeAttribute(this,w,B||this.constructor.attributeNameForProperty(E));this.__serializing=!1};
r.prototype._valueToNodeAttribute=function(E,B,w){B=this._serializeValue(B);if(w==="class"||w==="name"||w==="slot")E=(0,_.z5)(E);B===void 0?E.removeAttribute(w):E.setAttribute(w,B===""&&window.trustedTypes?window.trustedTypes.emptyScript:B)};
r.prototype._serializeValue=function(E){switch(typeof E){case "boolean":return E?"":void 0;default:return E!=null?E.toString():void 0}};
r.prototype._deserializeValue=function(E,B){switch(B){case Boolean:return E!==null;case Number:return Number(E);default:return E}};
return r});var dHT=0,FJD=[];var THI=mh(function(g){function r(O){O=Object.getPrototypeOf(O);return O.prototype instanceof w?O:null}
function E(O){if(!O.hasOwnProperty("__ownProperties")){var M=null;if(O.hasOwnProperty("properties")){var u=O.properties;if(u){M={};for(var l in u){var Q=u[l];M[l]=typeof Q==="function"?{type:Q}:Q}}}O.__ownProperties=M}return O.__ownProperties}
var B=v5z(g),w=function(){return B.apply(this,arguments)||this};
_.f(w,B);w.finalize=function(){if(!this.hasOwnProperty("__finalized")){var O=r(this);O&&O.finalize();this.__finalized=!0;this._finalizeClass()}};
w._finalizeClass=function(){var O=E(this);O&&this.createProperties(O)};
w.typeForProperty=function(O){return(O=this._properties[O])&&O.type};
w.prototype._initializeProperties=function(){dHT++;this.constructor.finalize();B.prototype._initializeProperties.call(this)};
w.prototype.connectedCallback=function(){B.prototype.connectedCallback&&B.prototype.connectedCallback.call(this);this._enableProperties()};
w.prototype.disconnectedCallback=function(){B.prototype.disconnectedCallback&&B.prototype.disconnectedCallback.call(this)};
_.hx.Object.defineProperties(w,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var O=this;if(!this.hasOwnProperty("__observedAttributes")){ecl(this.prototype);var M=this._properties;this.__observedAttributes=M?Object.keys(M).map(function(u){return O.prototype._addPropertyToAttributeMap(u)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var O=r(this);this.__properties=Object.assign({},O&&O._properties,E(this))}return this.__properties}}});
return w});var WJA={},CWt=/-[a-z]/g,KJB=/([A-Z])/g;for(var gyI={},rFw=HTMLElement.prototype;rFw;){for(var Eyb=Object.getOwnPropertyNames(rFw),BUA=0;BUA<Eyb.length;BUA++)gyI[Eyb[BUA]]=!0;rFw=Object.getPrototypeOf(rFw)}var wE4=window.trustedTypes?function(g){return trustedTypes.isHTML(g)||trustedTypes.isScript(g)||trustedTypes.isScriptURL(g)}:function(){return!1},SQ4=mh(function(g){var r=v5z(g);
g=function(){return r.apply(this,arguments)||this};
_.f(g,r);g.createPropertiesForAttributes=function(){for(var E=this.observedAttributes,B=0;B<E.length;B++)this.prototype._createPropertyAccessor(Ob(E[B]))};
g.attributeNameForProperty=function(E){return Ub(E)};
g.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);r.prototype._initializeProperties.call(this)};
g.prototype._initializeProtoProperties=function(E){for(var B in E)this._setProperty(B,E[B])};
g.prototype._ensureAttribute=function(E,B){this.hasAttribute(E)||this._valueToNodeAttribute(this,B,E)};
g.prototype._serializeValue=function(E){switch(typeof E){case "object":if(E instanceof Date)return E.toString();if(E){if(wE4(E))return E;try{return JSON.stringify(E)}catch(B){return""}}default:return r.prototype._serializeValue.call(this,E)}};
g.prototype._deserializeValue=function(E,B){switch(B){case Object:try{var w=JSON.parse(E)}catch(O){w=E}break;case Array:try{w=JSON.parse(E)}catch(O){w=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+E)}break;case Date:w=isNaN(E)?String(E):Number(E);w=new Date(w);break;default:w=r.prototype._deserializeValue.call(this,E,B)}return w};
g.prototype._definePropertyAccessor=function(E,B){if(!gyI[E]){var w=this[E];w!==void 0&&(this.__data?this._setPendingProperty(E,w):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[E]=w))}r.prototype._definePropertyAccessor.call(this,E,B)};
g.prototype._hasAccessor=function(E){return this.__dataHasAccessor&&this.__dataHasAccessor[E]};
g.prototype._isPropertyPending=function(E){return!!(this.__dataPending&&E in this.__dataPending)};
return g});var OMT={"dom-if":!0,"dom-repeat":!0},UuZ=!1,MGn=!1,qQT=function(){var g=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(r){return r}});
return function(r,E,B){E=E.getAttribute(B);g&&B.startsWith("on-")?r.setAttribute(B,g.createScript(E,B)):r.setAttribute(B,E)}}(),upb=mh(function(g){var r=function(){return g.apply(this,arguments)||this};
_.f(r,g);r._parseTemplate=function(E,B){if(!E._templateInfo){var w=E._templateInfo={};w.nodeInfoList=[];w.nestedTemplate=!!B;w.stripWhiteSpace=B&&B.stripWhiteSpace||E.hasAttribute&&E.hasAttribute("strip-whitespace");this._parseTemplateContent(E,w,{parent:null})}return E._templateInfo};
r._parseTemplateContent=function(E,B,w){return this._parseTemplateNode(E.content,B,w)};
r._parseTemplateNode=function(E,B,w){var O=!1;E.localName!="template"||E.hasAttribute("preserve-content")?E.localName==="slot"&&(B.hasInsertionPoint=!0):O=this._parseTemplateNestedTemplate(E,B,w)||O;if(!UuZ){UuZ=!0;var M=document.createElement("textarea");M.placeholder="a";MGn=M.placeholder===M.textContent}MGn&&E.localName==="textarea"&&E.placeholder&&E.placeholder===E.textContent&&(E.textContent=null);E.firstChild&&this._parseTemplateChildNodes(E,B,w);E.hasAttributes&&E.hasAttributes()&&(O=this._parseTemplateNodeAttributes(E,
B,w)||O);return O||w.noted};
r._parseTemplateChildNodes=function(E,B,w){if(E.localName!=="script"&&E.localName!=="style")for(var O=E.firstChild,M=0,u;O;O=u){if(O.localName=="template"){var l=O.getAttribute("is");if(l&&OMT[l])for(u=O,u.removeAttribute("is"),O=u.ownerDocument.createElement(l),u.parentNode.replaceChild(O,u),O.appendChild(u);u.attributes.length;)l=u.attributes[0].name,qQT(O,u,l),u.removeAttribute(l)}u=O.nextSibling;if(O.nodeType===Node.TEXT_NODE){for(l=u;l&&l.nodeType===Node.TEXT_NODE;)O.textContent+=l.textContent,
u=l.nextSibling,E.removeChild(l),l=u;if(B.stripWhiteSpace&&!O.textContent.trim()){E.removeChild(O);continue}}l={parentIndex:M,parentInfo:w};this._parseTemplateNode(O,B,l)&&(l.infoIndex=B.nodeInfoList.push(l)-1);O.parentNode&&M++}};
r._parseTemplateNestedTemplate=function(E,B,w){B=this._parseTemplate(E,B);(B.content=E.content.ownerDocument.createDocumentFragment()).appendChild(E.content);w.templateInfo=B;return!0};
r._parseTemplateNodeAttributes=function(E,B,w){for(var O=!1,M=Array.from(E.attributes),u=M.length-1,l;l=M[u];u--)O=this._parseTemplateNodeAttribute(E,B,w,l.name,l.value)||O;return O};
r._parseTemplateNodeAttribute=function(E,B,w,O,M){return O.slice(0,3)==="on-"?(E.removeAttribute(O),w.events=w.events||[],w.events.push({name:O.slice(3),value:M}),!0):O==="id"?(w.id=M,!0):!1};
r._contentForTemplate=function(E){var B=E._templateInfo;return B&&B.content||E.content};
r.prototype._stampTemplate=function(E,B){E&&!E.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(E);B=B||this.constructor._parseTemplate(E);var w=B.nodeInfoList;E=document.importNode(B.content||E.content,!0);E.__noInsertionPoint=!B.hasInsertionPoint;var O=E.nodeList=Array(w.length);E.$={};for(var M=0,u=w.length,l=void 0;M<u&&(l=w[M]);M++){var Q=O[M]=xhS(E,l);l.id&&(E.$[l.id]=Q);var z=Q,k=l,H=B;k.templateInfo&&(z._templateInfo=k.templateInfo,z._parentTemplateInfo=
H);if(l.events&&l.events.length)for(z=0,k=l.events,H=void 0;z<k.length&&(H=k[z]);z++)this._addMethodEventListenerToNode(Q,H.name,H.value,this)}return E};
r.prototype._addMethodEventListenerToNode=function(E,B,w,O){w=ayJ(O||E,w);this._addEventListenerToNode(E,B,w);return w};
r.prototype._addEventListenerToNode=function(E,B,w){E.addEventListener(B,w)};
r.prototype._removeEventListenerFromNode=function(E,B,w){E.removeEventListener(B,w)};
return r});var G5=0,H3=[],lYZ={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},DuZ=/[A-Z]/,oyZ=function(g,r,E,B,w){var O=w?qH(g):g;if(r=r[O])for(O=0;O<r.length;O++){var M=r[O];if(M.info.lastRun!==G5&&(!w||ihX(g,M.trigger))){M.info.lastRun=G5;M=M.info;for(var u=E,l=B,Q=0,z=u.length-1,k=-1;Q<=z;){var H=Q+z>>1,R=l.get(u[H].methodInfo)-l.get(M.methodInfo);if(R<0)Q=H+1;else if(R>0)z=H-1;else{k=H;break}}k<
0&&(k=z+1);u.splice(k,0,M)}}},Omc=[],GrI=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"),iv=mh(function(g){var r=upb(SQ4(g));
g=function(){var E=r.call(this)||this;E.__isPropertyEffectsClient=!0;return E};
_.f(g,r);g.prototype._initializeProperties=function(){r.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};
g.prototype._registerHost=function(){if(cj.length){var E=cj[cj.length-1];E._enqueueClient(this);this.__dataHost=E}};
g.prototype._initializeProtoProperties=function(E){this.__data=Object.create(E);this.__dataPending=Object.create(E);this.__dataOld={}};
g.prototype._initializeInstanceProperties=function(E){var B=this.__readOnly,w;for(w in E)B&&B[w]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[w]=this.__dataPending[w]=E[w])};
g.prototype._addPropertyEffect=function(E,B,w){this._createPropertyAccessor(E,B=="__readOnly");var O=cRS(this,B,!0)[E];O||(O=this[B][E]=[]);O.push(w)};
g.prototype._removePropertyEffect=function(E,B,w){E=cRS(this,B,!0)[E];w=E.indexOf(w);w>=0&&E.splice(w,1)};
g.prototype._hasPropertyEffect=function(E,B){B=this[B];return!(!B||!B[E])};
g.prototype._hasReadOnlyEffect=function(E){return this._hasPropertyEffect(E,"__readOnly")};
g.prototype._hasNotifyEffect=function(E){return this._hasPropertyEffect(E,"__notifyEffects")};
g.prototype._hasReflectEffect=function(E){return this._hasPropertyEffect(E,"__reflectEffects")};
g.prototype._hasComputedEffect=function(E){return this._hasPropertyEffect(E,"__computeEffects")};
g.prototype._setPendingPropertyOrPath=function(E,B,w,O){if(O||qH(Array.isArray(E)?E[0]:E)!==E){if(!O&&(O=ov(this,E),E=mhD(this,E,B),!E||!r.prototype._shouldPropertyChange.call(this,E,B,O)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(E,B,w)){if(w=this.__dataLinkedPaths)for(var M in w)O=w[M],up(M,E)?(O=lp(M,O,E),this._setPendingPropertyOrPath(O,B,!0,!0)):up(O,E)&&(O=lp(O,M,E),this._setPendingPropertyOrPath(O,B,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[E])return this._setPendingProperty(E,
B,w);this[E]=B}return!1};
g.prototype._setUnmanagedPropertyToNode=function(E,B,w){if(w!==E[B]||typeof w=="object")B==="className"&&(E=(0,_.z5)(E)),E[B]=w};
g.prototype._setPendingProperty=function(E,B,w){var O=this.__dataHasPaths&&MH(E);if(this._shouldPropertyChange(E,B,(O?this.__dataTemp:this.__data)[E])){this.__dataPending||(this.__dataPending={},this.__dataOld={});E in this.__dataOld||(this.__dataOld[E]=this.__data[E]);O?this.__dataTemp[E]=B:this.__data[E]=B;this.__dataPending[E]=B;if(O||this.__notifyEffects&&this.__notifyEffects[E])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[E]=w;return!0}return!1};
g.prototype._setProperty=function(E,B){this._setPendingProperty(E,B,!0)&&this._invalidateProperties()};
g.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
g.prototype._enqueueClient=function(E){this.__dataPendingClients=this.__dataPendingClients||[];E!==this&&this.__dataPendingClients.push(E)};
g.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
g.prototype.__enableOrFlushClients=function(){var E=this.__dataPendingClients;if(E){this.__dataPendingClients=null;for(var B=0;B<E.length;B++){var w=E[B];w.__dataEnabled?w.__dataPending&&w._flushProperties():w._enableProperties()}}};
g.prototype._readyClients=function(){this.__enableOrFlushClients()};
g.prototype.setProperties=function(E,B){for(var w in E)!B&&this.__readOnly&&this.__readOnly[w]||this._setPendingPropertyOrPath(w,E[w],!0);this._invalidateProperties()};
g.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
g.prototype._propertiesChanged=function(E,B,w){E=this.__dataHasPaths;this.__dataHasPaths=!1;var O;if(O=this.__computeEffects)if(IsA){G5++;var M=v3t(this),u=[],l;for(l in B)oyZ(l,O,u,M,E);for(;l=u.shift();)Ttt(this,"",B,w,l)&&oyZ(l.methodInfo,O,u,M,E);Object.assign(w,this.__dataOld);Object.assign(B,this.__dataPending);this.__dataPending=null}else for(M=B;Qs(this,O,M,w,E);)Object.assign(w,this.__dataOld),Object.assign(B,this.__dataPending),M=this.__dataPending,this.__dataPending=null;O=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(B,w,E);this._flushClients();Qs(this,this.__reflectEffects,B,w,E);Qs(this,this.__observeEffects,B,w,E);if(O){M=this.__notifyEffects;u=G5++;for(var Q in O)if(O[Q]){if(l=M){var z=M;l=u;var k=Q,H=B,R=w,A=E,J=!1,e=A?qH(k):k;if(z=z[e]){e=0;for(var C=z.length,X=void 0;e<C&&(X=z[e]);e++)X.info&&X.info.lastRun===l||A&&!ihX(k,X.trigger)||(X.info&&(X.info.lastRun=l),X.fn(this,k,H,R,X.info,A,void 0),J=!0)}l=J}if(l)var Z=!0;else{if(l=E)l=Q,k=B,H=qH(l),H!==
l?(H=Ub(H)+"-changed",VkD(this,H,k[l],l),l=!0):l=!1;l&&(Z=!0)}}var c;Z&&(c=this.__dataHost)&&c._invalidateProperties&&c._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
g.prototype._propagatePropertyChanges=function(E,B,w){this.__propagateEffects&&Qs(this,this.__propagateEffects,E,B,w);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,E,B,w)};
g.prototype._runEffectsForTemplate=function(E,B,w,O){var M=this,u=function(l,Q){Qs(M,E.propertyEffects,l,w,Q,E.nodeList);for(var z=E.firstChild;z;z=z.nextSibling)M._runEffectsForTemplate(z,l,w,Q)};
E.runEffects?E.runEffects(u,B,O):u(B,O)};
g.prototype.linkPaths=function(E,B){E=Ds(E);B=Ds(B);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[E]=B};
g.prototype.unlinkPaths=function(E){E=Ds(E);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[E]};
g.prototype.notifySplices=function(E,B){var w={path:""};E=ov(this,E,w);uXS(this,E,w.path,B)};
g.prototype.get=function(E,B){return ov(B||this,E)};
g.prototype.set=function(E,B,w){w?mhD(w,E,B):this.__readOnly&&this.__readOnly[E]||this._setPendingPropertyOrPath(E,B,!0)&&this._invalidateProperties()};
g.prototype.push=function(E){var B=_.fI.apply(1,arguments),w={path:""},O=ov(this,E,w),M=O.length,u=O.push.apply(O,_.jW(B));B.length&&Y5(this,O,w.path,M,B.length,[]);return u};
g.prototype.pop=function(E){var B={path:""};E=ov(this,E,B);var w=!!E.length,O=E.pop();w&&Y5(this,E,B.path,E.length,0,[O]);return O};
g.prototype.splice=function(E,B,w){var O=_.fI.apply(3,arguments),M={path:""},u=ov(this,E,M);B<0?B=u.length-Math.floor(-B):B&&(B=Math.floor(B));var l=arguments.length===2?u.splice(B):u.splice.apply(u,[B,w].concat(_.jW(O)));(O.length||l.length)&&Y5(this,u,M.path,B,O.length,l);return l};
g.prototype.shift=function(E){var B={path:""};E=ov(this,E,B);var w=!!E.length,O=E.shift();w&&Y5(this,E,B.path,0,0,[O]);return O};
g.prototype.unshift=function(E){var B=_.fI.apply(1,arguments),w={path:""},O=ov(this,E,w),M=O.unshift.apply(O,_.jW(B));B.length&&Y5(this,O,w.path,0,B.length,[]);return M};
g.prototype.notifyPath=function(E,B){if(arguments.length==1){var w={path:""};B=ov(this,E,w);w=w.path}else w=Array.isArray(E)?Ds(E):E;this._setPendingPropertyOrPath(w,B,!0,!0)&&this._invalidateProperties()};
g.prototype._createReadOnlyProperty=function(E,B){this._addPropertyEffect(E,"__readOnly");B&&(this["_set"+(E[0].toUpperCase()+E.substring(1))]=function(w){this._setProperty(E,w)})};
g.prototype._createPropertyObserver=function(E,B,w){var O={property:E,method:B,dynamicFn:!!w};this._addPropertyEffect(E,"__observeEffects",{fn:LJP,info:O,trigger:{name:E}});w&&this._addPropertyEffect(B,"__observeEffects",{fn:LJP,info:O,trigger:{name:B}})};
g.prototype._createMethodObserver=function(E,B){var w=MTB(E);if(!w)throw Error("Ed`"+E);wXP(this,w,"__observeEffects",dhJ,null,B)};
g.prototype._createNotifyingProperty=function(E){this._addPropertyEffect(E,"__notifyEffects",{fn:hcS,info:{eventName:Ub(E)+"-changed",property:E}})};
g.prototype._createReflectedProperty=function(E){var B=this.constructor.attributeNameForProperty(E);B[0]==="-"?console.warn("Property "+E+" cannot be reflected to attribute "+B+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(E,"__reflectEffects",{fn:ZhL,info:{attrName:B}})};
g.prototype._createComputedProperty=function(E,B,w){var O=MTB(B);if(!O)throw Error("Fd`"+B);B=wXP(this,O,"__computeEffects",Ttt,E,w);cRS(this,"__computeInfo")[E]=B};
g.prototype._marshalArgs=function(E,B,w){for(var O=this.__data,M=[],u=0,l=E.length;u<l;u++){var Q=E[u],z=Q.name,k=Q.structured,H=Q.wildcard,R=Q.value;Q.literal||(H?(Q=up(z,B),k=qgD(O,w,Q?B:z),R={path:Q?B:z,value:k,base:Q?ov(O,z):k}):R=k?qgD(O,w,z):O[z]);if(pk&&!this._overrideLegacyUndefined&&R===void 0&&E.length>1)return H3;M[u]=R}return M};
g.addPropertyEffect=function(E,B,w){this.prototype._addPropertyEffect(E,B,w)};
g.createPropertyObserver=function(E,B,w){this.prototype._createPropertyObserver(E,B,w)};
g.createMethodObserver=function(E,B){this.prototype._createMethodObserver(E,B)};
g.createNotifyingProperty=function(E){this.prototype._createNotifyingProperty(E)};
g.createReadOnlyProperty=function(E,B){this.prototype._createReadOnlyProperty(E,B)};
g.createReflectedProperty=function(E){this.prototype._createReflectedProperty(E)};
g.createComputedProperty=function(E,B,w){this.prototype._createComputedProperty(E,B,w)};
g.bindTemplate=function(E){return this.prototype._bindTemplate(E)};
g.prototype._bindTemplate=function(E,B){var w=this.constructor._parseTemplate(E),O=this.__preBoundTemplateInfo==w;if(!O)for(var M in w.propertyEffects)this._createPropertyAccessor(M);B?(w=Object.create(w),w.wasPreBound=O,this.__templateInfo?(E=E._parentTemplateInfo||this.__templateInfo,B=E.lastChild,w.parent=E,E.lastChild=w,(w.previousSibling=B)?B.nextSibling=w:E.firstChild=w):this.__templateInfo=w):this.__preBoundTemplateInfo=w;return w};
g._addTemplatePropertyEffect=function(E,B,w){(E.hostProps=E.hostProps||{})[B]=!0;E=E.propertyEffects=E.propertyEffects||{};(E[B]=E[B]||[]).push(w)};
g.prototype._stampTemplate=function(E,B){B=B||this._bindTemplate(E,!0);cj.push(this);E=r.prototype._stampTemplate.call(this,E,B);cj.pop();B.nodeList=E.nodeList;if(!B.wasPreBound)for(var w=B.childNodes=[],O=E.firstChild;O;O=O.nextSibling)w.push(O);E.templateInfo=B;w=B.nodeList;O=B.nodeInfoList;if(O.length)for(var M=0;M<O.length;M++){var u=w[M],l=O[M].bindings;if(l)for(var Q=0;Q<l.length;Q++){var z=l[Q],k=u,H=z;if(H.isCompound){for(var R=k.__dataCompoundStorage||(k.__dataCompoundStorage={}),A=H.parts,
J=Array(A.length),e=0;e<A.length;e++)J[e]=A[e].literal;A=H.target;R[A]=J;H.literal&&H.kind=="property"&&(A==="className"&&(k=(0,_.z5)(k)),k[A]=H.literal)}BrY(u,this,z)}u.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(B,this.__data,null,!1),this._flushClients());return E};
g.prototype._removeBoundDom=function(E){E=E.templateInfo;var B=E.previousSibling,w=E.nextSibling,O=E.parent;B?B.nextSibling=w:O&&(O.firstChild=w);w?w.previousSibling=B:O&&(O.lastChild=B);E.nextSibling=E.previousSibling=null;E=E.childNodes;for(B=0;B<E.length;B++)w=E[B],(0,_.z5)((0,_.z5)(w).parentNode).removeChild(w)};
g._parseTemplateNode=function(E,B,w){var O=r._parseTemplateNode.call(this,E,B,w);if(E.nodeType===Node.TEXT_NODE){var M=this._parseBindings(E.textContent,B);M&&(E.textContent=Sgc(M)||" ",Eoo(this,B,w,"text","textContent",M),O=!0)}return O};
g._parseTemplateNodeAttribute=function(E,B,w,O,M){var u=this._parseBindings(M,B);if(u){M=O;var l="property";DuZ.test(O)?l="attribute":O[O.length-1]=="$"&&(O=O.slice(0,-1),l="attribute");var Q=Sgc(u);Q&&l=="attribute"&&(O=="class"&&E.hasAttribute("class")&&(Q+=" "+E.getAttribute(O)),E.setAttribute(O,Q));l=="attribute"&&M=="disable-upgrade$"&&E.setAttribute(O,"");E.localName==="input"&&M==="value"&&E.setAttribute(M,"");E.removeAttribute(M);l==="property"&&(O=Ob(O));Eoo(this,B,w,l,O,u,Q);return!0}return r._parseTemplateNodeAttribute.call(this,
E,B,w,O,M)};
g._parseTemplateNestedTemplate=function(E,B,w){var O=r._parseTemplateNestedTemplate.call(this,E,B,w),M=E.parentNode,u=w.templateInfo,l=M.localName==="dom-if",Q=M.localName==="dom-repeat";x7&&(l||Q)&&(M.removeChild(E),w=w.parentInfo,w.templateInfo=u,w.noted=!0,O=!1);E=u.hostProps;if(aM&&l)E&&(B.hostProps=Object.assign(B.hostProps||{},E),x7||(w.parentInfo.noted=!0));else for(var z in E)Eoo(this,B,w,"property","_host_"+z,[{mode:"{",source:z,dependencies:[z],hostProp:!0}]);return O};
g._parseBindings=function(E,B){for(var w=[],O=0,M;(M=GrI.exec(E))!==null;){M.index>O&&w.push({literal:E.slice(O,M.index)});O=M[1][0];var u=!!M[2];M=M[3].trim();var l=!1,Q="",z=-1;O=="{"&&(z=M.indexOf("::"))>0&&(Q=M.substring(z+2),M=M.substring(0,z),l=!0);z=MTB(M);var k=[];if(z){var H=z,R=H.args;H=H.methodName;for(var A=0;A<R.length;A++){var J=R[A];J.literal||k.push(J)}if((R=B.dynamicFns)&&R[H]||z.static)k.push(H),z.dynamicFn=!0}else k.push(M);w.push({source:M,mode:O,negate:u,customEvent:l,signature:z,
dependencies:k,event:Q});O=GrI.lastIndex}O&&O<E.length&&(E=E.substring(O))&&w.push({literal:E});return w.length?w:null};
g._evaluateBinding=function(E,B,w,O,M,u){E=B.signature?dhJ(E,w,O,M,B.signature):w!=B.source?ov(E,B.source):u&&MH(w)?ov(E,w):E.__data[w];B.negate&&(E=!E);return E};
_.hx.Object.defineProperties(g.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return lYZ}}});
return g}),cj=[];var QyU=window.ShadyCSS&&window.ShadyCSS.cssBuild,Ld=mh(function(g){function r(B,w,O,M){if(!QyU){for(var u=w.content.querySelectorAll("style"),l=GaV(w),Q=Q$c(O),z=w.content.firstElementChild,k=0;k<Q.length;k++){var H=Q[k];H.textContent=B._processStyleText(H.textContent,M);w.content.insertBefore(H,z)}for(z=Q=0;z<l.length;z++)k=l[z],H=u[Q],H!==k?(k=k.cloneNode(!0),H.parentNode.insertBefore(k,H)):Q++,k.textContent=B._processStyleText(k.textContent,M)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(w,
O);if(cx4&&QyU&&xH4&&(w=w.content.querySelectorAll("style"))){var R="";Array.from(w).forEach(function(A){R+=A.textContent;A.parentNode.removeChild(A)});
B._styleSheet=new CSSStyleSheet;B._styleSheet.replaceSync(R)}}
var E=THI(iv(g));g=function(){return E.call(this)||this};
_.f(g,E);g._finalizeClass=function(){E._finalizeClass.call(this);var B;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(B=this.__ownObservers)&&this.createObservers(B,this._properties);this._prepareTemplate()};
g._prepareTemplate=function(){var B=this.template;B&&(typeof B==="string"?(console.error("template getter must return HTMLTemplateElement"),B=null):e8||(B=B.cloneNode(!0)));this.prototype._template=B};
g.createProperties=function(B){for(var w in B){var O=this.prototype,M=w,u=B[w],l=B;u.computed&&(u.readOnly=!0);u.computed&&(O._hasReadOnlyEffect(M)?console.warn("Cannot redefine computed property '"+M+"'."):O._createComputedProperty(M,u.computed,l));u.readOnly&&!O._hasReadOnlyEffect(M)?O._createReadOnlyProperty(M,!u.computed):u.readOnly===!1&&O._hasReadOnlyEffect(M)&&console.warn("Cannot make readOnly property '"+M+"' non-readOnly.");u.reflectToAttribute&&!O._hasReflectEffect(M)?O._createReflectedProperty(M):
u.reflectToAttribute===!1&&O._hasReflectEffect(M)&&console.warn("Cannot make reflected property '"+M+"' non-reflected.");u.notify&&!O._hasNotifyEffect(M)?O._createNotifyingProperty(M):u.notify===!1&&O._hasNotifyEffect(M)&&console.warn("Cannot make notify property '"+M+"' non-notify.");u.observer&&O._createPropertyObserver(M,u.observer,l[u.observer]);O._addPropertyToAttributeMap(M)}};
g.createObservers=function(B,w){for(var O=this.prototype,M=0;M<B.length;M++)O._createMethodObserver(B[M],w)};
g.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);E.prototype._initializeProperties.call(this);this.rootPath=as6;this.importPath=this.constructor.importPath;var B=this.constructor;if(!B.hasOwnProperty("__propertyDefaults")){B.__propertyDefaults=null;var w=B._properties,O;for(O in w){var M=w[O];"value"in M&&(B.__propertyDefaults=B.__propertyDefaults||{},B.__propertyDefaults[O]=M)}}if(B=B.__propertyDefaults)for(var u in B)w=B[u],
this._canApplyPropertyDefault(u)&&(w=typeof w.value=="function"?w.value.call(this):w.value,this._hasAccessor(u)?this._setPendingProperty(u,w,!0):this[u]=w)};
g.prototype._canApplyPropertyDefault=function(B){return!this.hasOwnProperty(B)};
g._processStyleText=function(B,w){return ARP(B,w)};
g._finalizeTemplate=function(B){var w=this.prototype._template;if(w&&!w.__polymerFinalized){w.__polymerFinalized=!0;var O=this.importPath;O=O?_.wH(O):"";r(this,w,B,O);this.prototype._bindTemplate(w)}};
g.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);E.prototype.connectedCallback.call(this)};
g.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);E.prototype.ready.call(this)};
g.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));E.prototype._readyClients.call(this)};
g.prototype._attachDom=function(B){var w=(0,_.z5)(this);if(w.attachShadow)return B?(w.shadowRoot||(w.attachShadow({mode:"open",shadyUpgradeFragment:B}),w.shadowRoot.appendChild(B),this.constructor._styleSheet&&(w.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),NHm&&window.ShadyDOM&&window.ShadyDOM.flushInitial(w.shadowRoot),w.shadowRoot):null;throw Error("Hd");};
g.prototype.updateStyles=function(B){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,B)};
g.prototype.resolveUrl=function(B,w){!w&&this.importPath&&(w=_.wH(this.importPath));return _.wH(B,w)};
g._parseTemplateContent=function(B,w,O){w.dynamicFns=w.dynamicFns||this._properties;return E._parseTemplateContent.call(this,B,w,O)};
g._addTemplatePropertyEffect=function(B,w,O){!x5||w in this._properties||O.info.part.signature&&O.info.part.signature.static||O.info.part.hostProp||B.nestedTemplate||console.warn("Property '"+w+"' used in template but not declared in 'properties'; attribute will not be observed.");return E._addTemplatePropertyEffect.call(this,B,w,O)};
_.hx.Object.defineProperties(g,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var B=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof B==="function"&&(B=B());if(B===void 0){if(B=this.hasOwnProperty("is")){B=this.is;var w=null;if(B&&(!av||X3n)&&(w=Rv.import(B,"template"),av&&!w))throw Error("Gd`"+B);B=w}B=B||Object.getPrototypeOf(this.prototype).constructor.template}this._template=B}return this._template},
set:function(B){this._template=B}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var B=this.importMeta;B?this._importPath=bhQ(B.url):this._importPath=(B=Rv.import(this.is))&&B.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return g});var z6w=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(g){return g}}),nol=function(g,r){kr6(g,r);
this.value=r.reduce(function(E,B,w){return E+s$c(B)+g[w+1]},g[0]).toString()},kr6;
nol.prototype.toString=function(){return this.value};
_.HMw=function(g){var r=_.fI.apply(1,arguments);kr6(g,r);var E=document.createElement("template");r=r.reduce(function(B,w,O){if(w instanceof HTMLTemplateElement)w=w.innerHTML;else if(w instanceof nol)w=s$c(w);else throw Error("Jd`"+w);return B+w+g[O+1]},g[0]);
z6w&&(r=z6w.createHTML(r));E.innerHTML=r;return E};
kr6=function(g,r){if(!Array.isArray(g)||!Array.isArray(g.raw)||r.length!==g.length-1)throw new TypeError("Kd");};var Vc=Ld(HTMLElement);var pEm=mh(function(g){var r=Ld(g);g=function(){var E=r.call(this)||this;E.__lastItems=null;E.__lastMulti=null;E.__selectedMap=null;return E};
_.f(g,r);g.prototype.__updateSelection=function(E,B){var w=B.path;w=="items"?(B=B.base||[],w=this.__lastItems,E!==this.__lastMulti&&this.clearSelection(),w&&(w=R1J(B,w),this.__applySplices(w)),this.__lastItems=B,this.__lastMulti=E):B.path=="items.splices"?this.__applySplices(B.value.indexSplices):(E=w.slice(6),B=parseInt(E,10),E.indexOf(".")<0&&E==B&&this.__deselectChangedIdx(B))};
g.prototype.__applySplices=function(E){for(var B=this,w=this.__selectedMap,O={},M=0;M<E.length;O={s$jscomp$108:void 0},M++){O.s$jscomp$108=E[M];w.forEach(function(z){return function(k,H){k<z.s$jscomp$108.index||(k>=z.s$jscomp$108.index+z.s$jscomp$108.removed.length?w.set(H,k+z.s$jscomp$108.addedCount-z.s$jscomp$108.removed.length):w.set(H,-1))}}(O));
for(var u=0;u<O.s$jscomp$108.addedCount;u++){var l=O.s$jscomp$108.index+u;w.has(this.items[l])&&w.set(this.items[l],l)}}this.__updateLinks();var Q=0;w.forEach(function(z,k){z<0?(B.multi?B.splice("selected",Q,1):B.selected=B.selectedItem=null,w.delete(k)):Q++})};
g.prototype.__updateLinks=function(){var E=this;this.__dataLinkedPaths={};if(this.multi){var B=0;this.__selectedMap.forEach(function(w){w>=0&&E.linkPaths("items."+w,"selected."+B++)})}else this.__selectedMap.forEach(function(w){E.linkPaths("selected","items."+w);
E.linkPaths("selectedItem","items."+w)})};
g.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
g.prototype.isSelected=function(E){return this.__selectedMap.has(E)};
g.prototype.isIndexSelected=function(E){return this.isSelected(this.items[E])};
g.prototype.__deselectChangedIdx=function(E){var B=this,w=this.__selectedIndexForItemIndex(E);if(w>=0){var O=0;this.__selectedMap.forEach(function(M,u){w==O++&&B.deselect(u)})}};
g.prototype.__selectedIndexForItemIndex=function(E){if(E=this.__dataLinkedPaths["items."+E])return parseInt(E.slice(9),10)};
g.prototype.deselect=function(E){var B=this.__selectedMap.get(E);if(B>=0){this.__selectedMap.delete(E);var w;this.multi&&(w=this.__selectedIndexForItemIndex(B));this.__updateLinks();this.multi?this.splice("selected",w,1):this.selected=this.selectedItem=null}};
g.prototype.deselectIndex=function(E){this.deselect(this.items[E])};
g.prototype.select=function(E){this.selectIndex(this.items.indexOf(E))};
g.prototype.selectIndex=function(E){var B=this.items[E];this.isSelected(B)?this.toggle&&this.deselectIndex(E):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(B,E),this.__updateLinks(),this.multi?this.push("selected",B):this.selected=this.selectedItem=B)};
_.hx.Object.defineProperties(g,{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 g}),YQT=pEm(Vc),hh=function(){return YQT.apply(this,arguments)||this};
_.f(hh,YQT);_.hx.Object.defineProperties(hh,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(hh.is,hh);var R6n=window.Polymer;window.Polymer=function(g){return window.Polymer._polymerFn(g)};
R6n&&Object.assign(Polymer,R6n);Polymer._polymerFn=function(){throw Error("Ld");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:ARP,resolveUrl:_.wH,pathFromUrl:bhQ};Polymer.DomModule=Rv;Polymer.Async={timeOut:_.IM,animationFrame:_.AM,idlePeriod:ZkD,microTask:tx};Polymer.dedupingMixin=mh;Polymer.wrap=_.z5;Polymer.PropertiesChanged=v5z;Polymer.telemetry={instanceCount:dHT,incrementInstanceCount:function(){dHT++},
registrations:FJD,register:ecl,dumpRegistrations:function(){FJD.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=THI;Polymer.CaseMap={dashToCamelCase:Ob,camelToDashCase:Ub};Polymer.PropertyAccessors=SQ4;Polymer.TemplateStamp=upb;Polymer.Path={isPath:MH,root:qH,isAncestor:XKc,isDescendant:up,translate:lp,matches:NtP,normalize:Ds,split:IyD,get:ov,set:mhD,isDeep:MH};Polymer.Settings={useShadow:W3,useNativeCSSProperties:F8U,useNativeCustomElements:eUU,get rootPath(){return as6},setRootPath:function(g){as6=g},
get sanitizeDOMValue(){return k5},setSanitizeDOMValue:function(g){k5=g},
get passiveTouchGestures(){return xQD},setPassiveTouchGestures:function(g){xQD=g},
get strictTemplatePolicy(){return av},setStrictTemplatePolicy:function(g){av=g},
get allowTemplateFromDomModule(){return X3n},setAllowTemplateFromDomModule:function(g){X3n=g},
get legacyOptimizations(){return e8},setLegacyOptimizations:function(g){e8=g},
get syncInitialRender(){return NHm},setSyncInitialRender:function(g){NHm=g},
get legacyUndefined(){return pk},setLegacyUndefined:function(g){pk=g},
get legacyWarnings(){return x5},setLegacyWarnings:function(g){x5=g},
get orderedComputed(){return IsA},setOrderedComputed:function(g){IsA=g},
get fastDomIf(){return aM},setFastDomIf:function(g){aM=g},
get removeNestedTemplates(){return x7},setRemoveNestedTemplates:function(g){x7=g},
get suppressTemplateNotifications(){return XN},setSuppressTemplateNotifications:XN};Polymer.rootPath!==void 0&&(as6=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(k5=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(xQD=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(av=Polymer.strictTemplatePolicy);X3n=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(e8=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(NHm=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(pk=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(x5=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(IsA=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(aM=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(x7=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(XN=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return k5},
set:function(g){k5=g}});Polymer.PropertyEffects=iv;Polymer.StyleGather={stylesFromModules:ooB,stylesFromModule:DQP,stylesFromTemplate:GaV,stylesFromModuleImports:Q$c,cssFromModules:kat,cssFromModule:z1L,cssFromTemplate:HmA,cssFromModuleImports:function(g){return(g=Rv.import(g))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(g):""}};Polymer.ElementMixin=Ld;Polymer.updateStyles=function(g){window.ShadyCSS&&window.ShadyCSS.styleDocument(g)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:R1J};Polymer.html=_.HMw;Polymer.htmlLiteral=function(g){return new nol(g,_.fI.apply(1,arguments))};Polymer.Element=Vc;Polymer.ArraySelectorMixin=pEm;Polymer.ArraySelector=hh;var nyw=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,syA=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,wvY=/@media\s(.*)/;var AfA=null,j$B=window.HTMLImports&&window.HTMLImports.whenReady||null,bmY;var fYZ=null,ZC=null,yc=function(){this.customStyles=[];this.enqueued=!1;JfS(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},$uZ=function(g){!g.enqueued&&ZC&&(g.enqueued=!0,JfS(ZC))};
yc.prototype.addCustomStyle=function(g){g.__seenByShadyCSS||(g.__seenByShadyCSS=!0,this.customStyles.push(g),$uZ(this))};
yc.prototype.getStyleForCustomStyle=function(g){if(g.__shadyCSSCachedStyle)return g.__shadyCSSCachedStyle;var r;g.getStyle?r=g.getStyle():r=g;return r};
yc.prototype.processStyles=function(){for(var g=this.customStyles,r=0;r<g.length;r++){var E=g[r];if(!E.__shadyCSSCachedStyle){var B=this.getStyleForCustomStyle(E);B&&(B=B.__appliedElement||B,fYZ&&fYZ(B),E.__shadyCSSCachedStyle=B)}}return g};
yc.prototype.addCustomStyle=yc.prototype.addCustomStyle;yc.prototype.getStyleForCustomStyle=yc.prototype.getStyleForCustomStyle;yc.prototype.processStyles=yc.prototype.processStyles;Object.defineProperties(yc.prototype,{transformCallback:{get:function(){return fYZ},
set:function(g){fYZ=g}},
validateCallback:{get:function(){return ZC},
set:function(g){var r=!1;ZC||(r=!0);ZC=g;r&&$uZ(this)}}});var Fzl=!(window.ShadyDOM&&window.ShadyDOM.inUse),PLl,Vs;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(Vs=window.ShadyCSS.cssBuild);var jyD=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?PLl=window.ShadyCSS.nativeCss:window.ShadyCSS?(e1X(window.ShadyCSS),window.ShadyCSS=void 0):e1X(window.WebComponents&&window.WebComponents.flags);var rQV=PLl;var AF6=new yc;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(g,r){AF6.processStyles();fBV(g,r)},
styleElement:function(){AF6.processStyles()},
styleDocument:function(g){AF6.processStyles();fBV(document.body,g)},
getComputedStyleValue:function(g,r){return $QB(g,r)},
flushCustomStyles:function(){},
nativeCss:rQV,nativeShadow:Fzl,cssBuild:Vs,disableRuntime:jyD});window.ShadyCSS.CustomStyleInterface=AF6;var bMA=window.ShadyCSS.CustomStyleInterface,vj=function(){var g=HTMLElement.call(this)||this;g._style=null;bMA.addCustomStyle(g);return g};
_.f(vj,HTMLElement);vj.prototype.getStyle=function(){if(this._style)return this._style;var g=this.querySelector("style");if(!g)return null;this._style=g;var r=g.getAttribute("include");r&&(g.removeAttribute("include"),g.textContent=kat(r)+g.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
vj.prototype.getStyle=vj.prototype.getStyle;window.customElements.define("custom-style",vj);Polymer.CustomStyle=vj;var d8=function(){this._timer=this._callback=this._asyncModule=null},To,PGn;
d8.prototype.setConfig=function(g,r){var E=this;this._asyncModule=g;this._callback=r;this._timer=this._asyncModule.run(function(){E._timer=null;To.delete(E);E._callback()})};
d8.prototype.cancel=function(){this.isActive()&&(JF6(this),To.delete(this))};
var JF6=function(g){g.isActive()&&(g._asyncModule.cancel(g._timer),g._timer=null)};
d8.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
d8.prototype.isActive=function(){return this._timer!=null};
_.g3=function(g,r,E){g instanceof d8?JF6(g):g=new d8;g.setConfig(r,E);return g};
To=new Set;_.r3=function(g){To.add(g)};
PGn=function(){var g=!!To.size;To.forEach(function(r){try{r.flush()}catch(E){setTimeout(function(){throw E;})}});
return g};var CLo=typeof document.head.style.touchAction==="string",WzS=["mousedown","mousemove","mouseup","click"],iml=[0,1,4,2],tGw;try{tGw=(new MouseEvent("test",{buttons:1})).buttons===1}catch(g){tGw=!1}var cfX=tGw,KzX=!1;(function(){try{var g=Object.defineProperty({},"passive",{get:function(){KzX=!0}});
window.addEventListener("test",null,g);window.removeEventListener("test",null,g)}catch(r){}})();
var XXY=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),NrY=[],FxI={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},B0l={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},IBo=function(g){var r=g.sourceCapabilities;if(!r||r.firesTouchEvents)if(g.__polymerGesturesHandled={skip:!0},g.type==="click"){r=!1;for(var E=ZmY(g),B=0;B<E.length;B++){if(E[B].nodeType===Node.ELEMENT_NODE)if(E[B].localName==="label")NrY.push(E[B]);
else if(FxI[E[B].localName]){var w=E[B];var O=Array.prototype.slice.call(w.labels||[]);if(!O.length){O=[];try{var M=w.getRootNode();if(w.id){var u=M.querySelectorAll("label[for = '"+w.id+"']");for(w=0;w<u.length;w++)O.push(u[w])}}catch(l){}}for(w=0;w<O.length;w++)r=r||NrY.indexOf(O[w])>-1}if(E[B]===e6z)return}r||(g.preventDefault(),g.stopPropagation())}},e6z=null,ET=null,vol=0,dQJ=0,yfL=-1,TrD=!1;
document.addEventListener("touchend",function(g){ET||mQA(!0);e6z=ZmY(g)[0];ET=_.g3(ET,_.IM.after(2500),function(){mQA();ET=e6z=null})},KzX?{passive:!0}:!1);
var ZmY=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(g){return g.composedPath&&g.composedPath()||[]},Ax={},$5=[];
gjQ({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){fk(this.info)},
mousedown:function(g){if(sb(g)){var r=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g),E=this;VTX(this.info,function(B){sb(B)||(F3("up",r,B),fk(E.info))},function(B){sb(B)&&F3("up",r,B);
fk(E.info)});
F3("down",r,g)}},
touchstart:function(g){F3("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g),g.changedTouches[0],g)},
touchend:function(g){F3("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g),g.changedTouches[0],g)}});
gjQ({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(g){this.moves.length>2&&this.moves.shift();this.moves.push(g)},
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;fk(this.info)},
mousedown:function(g){if(sb(g)){var r=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g),E=this,B=function(w){var O=w.clientX,M=w.clientY;rlc(E.info,O,M)&&(E.info.state=E.info.started?w.type==="mouseup"?"end":"track":"start",E.info.state==="start"&&j8("tap"),E.info.addMove({x:O,y:M}),sb(w)||(E.info.state="end",fk(E.info)),r&&EjJ(E.info,r,w),E.info.started=!0)};
VTX(this.info,B,function(w){E.info.started&&B(w);fk(E.info)});
this.info.x=g.clientX;this.info.y=g.clientY}},
touchstart:function(g){g=g.changedTouches[0];this.info.x=g.clientX;this.info.y=g.clientY},
touchmove:function(g){var r=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g);g=g.changedTouches[0];var E=g.clientX,B=g.clientY;rlc(this.info,E,B)&&(this.info.state==="start"&&j8("tap"),this.info.addMove({x:E,y:B}),EjJ(this.info,r,g),this.info.state="track",this.info.started=!0)},
touchend:function(g){var r=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g);g=g.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:g.clientX,y:g.clientY}),EjJ(this.info,r,g))}});
gjQ({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(g){sb(g)&&(this.info.x=g.clientX,this.info.y=g.clientY)},
click:function(g){sb(g)&&wml(this.info,g)},
touchstart:function(g){g=g.changedTouches[0];this.info.x=g.clientX;this.info.y=g.clientY},
touchend:function(g){wml(this.info,g.changedTouches[0],g)}});var WxZ=mh(function(g){var r=function(){return g.apply(this,arguments)||this};
_.f(r,g);r.prototype._addEventListenerToNode=function(E,B,w){bp(E,B,w)||g.prototype._addEventListenerToNode.call(this,E,B,w)};
r.prototype._removeEventListenerFromNode=function(E,B,w){Jx(E,B,w)||g.prototype._removeEventListenerFromNode.call(this,E,B,w)};
return r});var BU=mh(function(g){var r=function(){return g.apply(this,arguments)||this};
_.f(r,g);r.prototype._shouldPropertyChange=function(E,B,w){return S0D(this,E,B,w,!0)};
return r}),CGD=mh(function(g){var r=function(){return g.apply(this,arguments)||this};
_.f(r,g);r.prototype._shouldPropertyChange=function(E,B,w){return S0D(this,E,B,w,this.mutableData)};
_.hx.Object.defineProperties(r,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return r});
BU._mutablePropertyChange=S0D;var O0t=!1;var KxU=WxZ(CGD(iv(HTMLElement))),w3=function(){var g=KxU.call(this)||this;if(av)throw Error("Md");g.root=null;g.$=null;g.__children=null;return g};
_.f(w3,KxU);_.S=w3.prototype;_.S.attributeChangedCallback=function(){this.mutableData=!0};
_.S.connectedCallback=function(){Uqt()||(this.style.display="none");this.render()};
_.S.disconnectedCallback=function(){this.__removeChildren()};
_.S.__insertChildren=function(){(0,_.z5)((0,_.z5)(this).parentNode).insertBefore(this.root,this)};
_.S.__removeChildren=function(){if(this.__children)for(var g=0;g<this.__children.length;g++)this.root.appendChild(this.__children[g])};
_.S.render=function(){var g=this;if(!this.__children){var r=r||this.querySelector("template");if(!r){var E=new MutationObserver(function(){if(r=g.querySelector("template"))E.disconnect(),g.render();else throw Error("Nd");});
E.observe(this,{childList:!0});return}this.root=this._stampTemplate(r);this.$=this.root.$;this.__children=[];for(var B=this.root.firstChild;B;B=B.nextSibling)this.__children[this.__children.length]=B;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.hx.Object.defineProperties(w3,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",w3);Polymer.Debouncer=d8;Polymer.Gestures={gestures:Ax,recognizers:$5,deepTargetFind:h1B,addListener:bp,removeListener:Jx,register:gjQ,setTouchAction:_.P3,prevent:j8,resetMouseCanceller:function(){ET&&ET.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:bp,remove:Jx};Polymer.GestureEventListeners=WxZ;Polymer.MutableData=BU;Polymer.OptionalMutableData=CGD;Polymer.DomBind=w3;_.SB=function(){do{var g=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var r=PGn()}while(g||r)};var M7L=null;q0S.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:q0S,writable:!0}});var kuB=iv(q0S),ziX=BU(kuB),xuz=iv(function(){}),Ck=function(g){var r=xuz.call(this)||this;
r._configureProperties(g);r.root=r._stampTemplate(r.__dataHost);var E=[];r.children=E;for(var B=r.root.firstChild;B;B=B.nextSibling)E.push(B),B.__templatizeInstance=r;r.__templatizeOwner&&r.__templatizeOwner.__hideTemplateChildren__&&r._showHideChildren(!0);E=r.__templatizeOptions;(g&&E.instanceProps||!E.instanceProps)&&r._enableProperties();return r};
_.f(Ck,xuz);_.S=Ck.prototype;_.S._configureProperties=function(g){if(this.__templatizeOptions.forwardHostProp)for(var r in this.__hostProps)this._setPendingProperty(r,this.__dataHost["_host_"+r]);for(var E in g)this._setPendingProperty(E,g[E])};
_.S.forwardHostProp=function(g,r){this._setPendingPropertyOrPath(g,r,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.S._addEventListenerToNode=function(g,r,E){var B=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(g,r,function(O){O.model=B;E(O)});
else{var w=this.__dataHost.__dataHost;w&&w._addEventListenerToNode(g,r,E)}};
_.S._showHideChildren=function(g){lpc(g,this.children)};
_.S._setUnmanagedPropertyToNode=function(g,r,E){g.__hideTemplateChildren__&&g.nodeType==Node.TEXT_NODE&&r=="textContent"?g.__polymerTextContent__=E:xuz.prototype._setUnmanagedPropertyToNode.call(this,g,r,E)};
_.S.dispatchEvent=function(){return!0};
_.hx.Object.defineProperties(Ck.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var g=this.__parentModel;if(!g){var r;g=this;do g=g.__dataHost.__dataHost;while((r=g.__templatizeOptions)&&!r.parentModel);this.__parentModel=g}return g}}});
var ojD=BU(Ck);var OT=function(){var g=Vc.call(this)||this;g.__renderDebouncer=null;g._lastIf=!1;g.__hideTemplateChildren__=!1;return g};
_.f(OT,Vc);_.S=OT.prototype;_.S.__debounceRender=function(){var g=this;this.__renderDebouncer=_.g3(this.__renderDebouncer,tx,function(){return g.__render()});
_.r3(this.__renderDebouncer)};
_.S.disconnectedCallback=function(){Vc.prototype.disconnectedCallback.call(this);var g=(0,_.z5)(this).parentNode;g&&(g.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.z5)(g).host)||this.__teardownInstance()};
_.S.connectedCallback=function(){Vc.prototype.connectedCallback.call(this);Uqt()||(this.style.display="none");this.if&&this.__debounceRender()};
_.S.__ensureTemplate=function(){var g=this;if(!this.__template){var r=this._templateInfo?this:(0,_.z5)(this).querySelector("template");if(!r){var E=new MutationObserver(function(){if((0,_.z5)(g).querySelector("template"))E.disconnect(),g.__render();else throw Error("Qd");});
E.observe(this,{childList:!0});return!1}this.__template=r}return!0};
_.S.__ensureInstance=function(){var g=(0,_.z5)(this).parentNode;if(this.__hasInstance()){var r=this.__getInstanceNodes();if(r&&r.length&&(0,_.z5)(this).previousSibling!==r[r.length-1])for(var E=0,B=void 0;E<r.length&&(B=r[E]);E++)(0,_.z5)(g).insertBefore(B,this)}else{if(!g||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(g)}return!0};
_.S.render=function(){_.SB()};
_.S.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();XN&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.S.__hasInstance=function(){};
_.S.__getInstanceNodes=function(){};
_.S.__createAndInsertInstance=function(){};
_.S.__teardownInstance=function(){};
_.S._showHideChildren=function(){};
_.hx.Object.defineProperties(OT,{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:OT.prototype.__debounceRender},restamp:{type:Boolean,observer:OT.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var aYn=function(){var g=OT.call(this)||this;g.__instance=null;g.__syncInfo=null;return g};
_.f(aYn,OT);_.S=aYn.prototype;_.S.__hasInstance=function(){return!!this.__instance};
_.S.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.S.__createAndInsertInstance=function(g){var r=this,E=this.__dataHost||this;if(av&&!this.__dataHost)throw Error("Od");var B=E._bindTemplate(this.__template,!0);B.runEffects=function(w,O,M){var u=r.__syncInfo;if(r.if)u&&(r.__syncInfo=null,r._showHideChildren(),O=Object.assign(u.changedProps,O)),w(O,M);else if(r.__instance)if(u||(u=r.__syncInfo={runEffects:w,changedProps:{}}),M)for(var l in O)w=qH(l),u.changedProps[w]=r.__dataHost[w];else Object.assign(u.changedProps,O)};
this.__instance=E._stampTemplate(this.__template,B);(0,_.z5)(g).insertBefore(this.__instance,this)};
_.S.__syncHostProperties=function(){var g=this.__syncInfo;g&&(this.__syncInfo=null,g.runEffects(g.changedProps,!1))};
_.S.__teardownInstance=function(){var g=this.__dataHost||this;this.__instance&&(g._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.S._showHideChildren=function(){var g=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==g&&(this.__instance.__hidden=g,lpc(g,this.__instance.templateInfo.childNodes));g||this.__syncHostProperties()};
var XED=function(){var g=OT.call(this)||this;g.__ctor=null;g.__instance=null;g.__invalidProps=null;return g};
_.f(XED,OT);_.S=XED.prototype;_.S.__hasInstance=function(){return!!this.__instance};
_.S.__getInstanceNodes=function(){return this.__instance.children};
_.S.__createAndInsertInstance=function(g){this.__ctor||(this.__ctor=Kk(this.__template,this,{mutableData:!0,forwardHostProp:function(r,E){this.__instance&&(this.if?this.__instance.forwardHostProp(r,E):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[qH(r)]=!0))}}));
this.__instance=new this.__ctor;(0,_.z5)(g).insertBefore(this.__instance.root,this)};
_.S.__teardownInstance=function(){if(this.__instance){var g=this.__instance.children;if(g&&g.length){var r=(0,_.z5)(g[0]).parentNode;if(r){r=(0,_.z5)(r);for(var E=0,B=void 0;E<g.length&&(B=g[E]);E++)r.removeChild(B)}}this.__instance=this.__invalidProps=null}};
_.S.__syncHostProperties=function(){var g=this.__invalidProps;if(g){this.__invalidProps=null;for(var r in g)this.__instance._setPendingProperty(r,this.__dataHost[r]);this.__instance._flushProperties()}};
_.S._showHideChildren=function(){var g=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==g&&(this.__instance.__hidden=g,this.__instance._showHideChildren(g));g||this.__syncHostProperties()};
_.Pi=aM?aYn:XED;customElements.define(_.Pi.is,_.Pi);Polymer.enqueueDebouncer=_.r3;Polymer.flush=_.SB;Polymer.Templatize={templatize:Kk,modelForElement:szA};Polymer.TemplateInstanceBase=Ck;Polymer.DomIf=_.Pi;var NUU=CGD(Vc),JC=function(){var g=NUU.call(this)||this;g.__instances=[];g.__renderDebouncer=null;g.__itemsIdxToInstIdx={};g.__chunkCount=null;g.__renderStartTime=null;g.__itemsArrayChanged=!1;g.__shouldMeasureChunk=!1;g.__shouldContinueChunking=!1;g.__chunkingId=0;g.__sortFn=null;g.__filterFn=null;g.__observePaths=null;g.__ctor=null;g.__isDetached=!0;g.template=null;return g};
_.f(JC,NUU);_.S=JC.prototype;_.S.disconnectedCallback=function(){NUU.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var g=0;g<this.__instances.length;g++)this.__detachInstance(g);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.S.connectedCallback=function(){NUU.prototype.connectedCallback.call(this);Uqt()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var g=(0,_.z5)((0,_.z5)(this).parentNode),r=0;r<this.__instances.length;r++)this.__attachInstance(r,g);this.__chunkingId&&this.__render()}};
_.S.__ensureTemplatized=function(){var g=this;if(!this.__ctor){var r=this.template=this._templateInfo?this:this.querySelector("template");if(!r){var E=new MutationObserver(function(){if(g.querySelector("template"))E.disconnect(),g.__render();else throw Error("Rd");});
E.observe(this,{childList:!0});return!1}var B={};B[this.as]=!0;B[this.indexAs]=!0;B[this.itemsIndexAs]=!0;this.__ctor=Kk(r,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:B,forwardHostProp:function(w,O){for(var M=this.__instances,u=0,l=void 0;u<M.length&&(l=M[u]);u++)l.forwardHostProp(w,O)},
notifyInstanceProp:function(w,O,M){NtP(this.as,O)&&(w=w[this.itemsIndexAs],O==this.as&&(this.items[w]=M),O=lp(this.as,"items."+w,O),this.notifyPath(O,M))}})}return!0};
_.S.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.S.__functionFromPropertyValue=function(g){if(typeof g==="string"){var r=this.__getMethodHost();return function(){return r[g].apply(r,arguments)}}return g};
_.S.__sortChanged=function(g){this.__sortFn=this.__functionFromPropertyValue(g);this.items&&this.__debounceRender(this.__render)};
_.S.__filterChanged=function(g){this.__filterFn=this.__functionFromPropertyValue(g);this.items&&this.__debounceRender(this.__render)};
_.S.__computeFrameTime=function(g){return Math.ceil(1E3/g)};
_.S.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.S.__handleObservedPaths=function(g){if(this.__sortFn||this.__filterFn)if(!g)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var r=this.__observePaths,E=0;E<r.length;E++)g.indexOf(r[E])===0&&this.__debounceRender(this.__render,this.delay)};
_.S.__itemsChanged=function(g){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(g.path,g.value)||(g.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.S.__debounceRender=function(g,r){r=r===void 0?0:r;this.__renderDebouncer=_.g3(this.__renderDebouncer,r>0?_.IM.after(r):tx,g.bind(this));_.r3(this.__renderDebouncer)};
_.S.render=function(){this.__debounceRender(this.__render);_.SB()};
_.S.__render=function(){var g=this;if(this.__ensureTemplatized()){var r=this.items||[],E=this.__sortAndFilterItems(r),B=this.__calculateLimit(E.length);this.__updateInstances(r,B,E);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){g.__chunkingId=null;g.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);XN&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.S.__sortAndFilterItems=function(g){for(var r=this,E=Array(g.length),B=0;B<g.length;B++)E[B]=B;this.__filterFn&&(E=E.filter(function(w,O,M){return r.__filterFn(g[w],O,M)}));
this.__sortFn&&E.sort(function(w,O){return r.__sortFn(g[w],g[O])});
return E};
_.S.__calculateLimit=function(g){var r=g,E=this.__instances.length;if(this.initialCount){var B;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(r=Math.min(g,this.initialCount),this.__chunkCount=(B=Math.max(r-E,0))||1):(B=Math.min(Math.max(g-E,0),this.__chunkCount),r=Math.min(E+B,g));this.__shouldMeasureChunk=B===this.__chunkCount;this.__shouldContinueChunking=r<g;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return r};
_.S.__continueChunking=function(){if(this.__shouldMeasureChunk){var g=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/g*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.S.__updateInstances=function(g,r,E){var B=this.__itemsIdxToInstIdx={},w;for(w=0;w<r;w++){var O=this.__instances[w],M=E[w],u=g[M];B[M]=w;O?(O._setPendingProperty(this.as,u),O._setPendingProperty(this.indexAs,w),O._setPendingProperty(this.itemsIndexAs,M),O._flushProperties()):this.__insertInstance(u,w,M)}for(g=this.__instances.length-1;g>=w;g--)this.__detachAndRemoveInstance(g)};
_.S.__detachInstance=function(g){g=this.__instances[g];for(var r=(0,_.z5)(g.root),E=0;E<g.children.length;E++)r.appendChild(g.children[E]);return g};
_.S.__attachInstance=function(g,r){r.insertBefore(this.__instances[g].root,this)};
_.S.__detachAndRemoveInstance=function(g){this.__detachInstance(g);this.__instances.splice(g,1)};
_.S.__stampInstance=function(g,r,E){var B={};B[this.as]=g;B[this.indexAs]=r;B[this.itemsIndexAs]=E;return new this.__ctor(B)};
_.S.__insertInstance=function(g,r,E){g=this.__stampInstance(g,r,E);E=(E=this.__instances[r+1])?E.children[0]:this;(0,_.z5)((0,_.z5)(this).parentNode).insertBefore(g.root,E);return this.__instances[r]=g};
_.S._showHideChildren=function(g){for(var r=0;r<this.__instances.length;r++)this.__instances[r]._showHideChildren(g)};
_.S.__handleItemPath=function(g,r){var E=g.slice(6),B=E.indexOf(".");g=B<0?E:E.substring(0,B);if(g==parseInt(g,10)){E=B<0?"":E.substring(B+1);this.__handleObservedPaths(E);if(g=this.__instances[this.__itemsIdxToInstIdx[g]])g._setPendingPropertyOrPath(this.as+(E?"."+E:""),r,!1,!0),g._flushProperties();return!0}};
_.S.itemForElement=function(g){return(g=this.modelForElement(g))&&g[this.as]};
_.S.indexForElement=function(g){return(g=this.modelForElement(g))&&g[this.indexAs]};
_.S.modelForElement=function(g){return szA(this.template,g)};
_.hx.Object.defineProperties(JC,{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:JC.prototype.__sortChanged},filter:{type:Function,observer:JC.prototype.__filterChanged},observe:{type:String,observer:JC.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!XN,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.*)"]}}});
JC.prototype._setRenderedItemCount=function(){};
customElements.define(JC.is,JC);Polymer.DomRepeat=JC;var IYD=function(g,r){var E=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=g;this.callback=r;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){E._schedule()};
this.connect();this._schedule()},mum=function(g){var r=(0,_.z5)(g);
if(X3(g))return r.assignedNodes({flatten:!0});g=[];for(var E=0;E<r.childNodes.length;E++){var B=r.childNodes[E];X3(B)?g.push.apply(g,_.jW((0,_.z5)(B).assignedNodes({flatten:!0}))):g.push(B)}return g};
_.S=IYD.prototype;_.S.connect=function(){var g=this;X3(this._target)?this._listenSlots([this._target]):(0,_.z5)(this._target).children&&(this._listenSlots((0,_.z5)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(r){g._processMutations(r)}):(this._nativeChildrenObserver=new MutationObserver(function(r){g._processMutations(r)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.S.disconnect=function(){X3(this._target)?this._unlistenSlots([this._target]):(0,_.z5)(this._target).children&&(this._unlistenSlots((0,_.z5)(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null));this._connected=!1};
_.S._schedule=function(){var g=this;this._scheduled||(this._scheduled=!0,tx.run(function(){return g.flush()}))};
_.S._processMutations=function(g){this._processSlotMutations(g);this.flush()};
_.S._processSlotMutations=function(g){if(g)for(var r=0;r<g.length;r++){var E=g[r];E.addedNodes&&this._listenSlots(E.addedNodes);E.removedNodes&&this._unlistenSlots(E.removedNodes)}};
_.S.flush=function(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush();this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords());this._scheduled=!1;for(var g={target:this._target,addedNodes:[],removedNodes:[]},r=mum(this._target),E=R1J(r,this._effectiveNodes),B=0,w=void 0;B<E.length&&(w=E[B]);B++)for(var O=0,M=void 0;O<w.removed.length&&(M=w.removed[O]);O++)g.removedNodes.push(M);
B=0;for(w=void 0;B<E.length&&(w=E[B]);B++)for(O=w.index;O<w.index+w.addedCount;O++)g.addedNodes.push(r[O]);this._effectiveNodes=r;r=!1;if(g.addedNodes.length||g.removedNodes.length)r=!0,this.callback.call(this._target,g);return r};
_.S._listenSlots=function(g){for(var r=0;r<g.length;r++){var E=g[r];X3(E)&&E.addEventListener("slotchange",this._boundSchedule)}};
_.S._unlistenSlots=function(g){for(var r=0;r<g.length;r++){var E=g[r];X3(E)&&E.removeEventListener("slotchange",this._boundSchedule)}};var UT=Element.prototype,cF6=UT.matches||UT.matchesSelector||UT.mozMatchesSelector||UT.msMatchesSelector||UT.oMatchesSelector||UT.webkitMatchesSelector,iMn=function(g,r){return cF6.call(g,r)},NH=function(g){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(g);
this.node=g},ZMT;
_.S=NH.prototype;_.S.observeNodes=function(g){return new IYD(this.node,g)};
_.S.unobserveNodes=function(g){g.disconnect()};
_.S.notifyObserver=function(){};
_.S.deepContains=function(g){if((0,_.z5)(this.node).contains(g))return!0;var r=g;for(g=g.ownerDocument;r&&r!==g&&r!==this.node;)r=(0,_.z5)(r).parentNode||(0,_.z5)(r).host;return r===this.node};
_.S.getOwnerRoot=function(){return(0,_.z5)(this.node).getRootNode()};
_.S.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.z5)(this.node).assignedNodes({flatten:!0}):[]};
_.S.getDestinationInsertionPoints=function(){for(var g=[],r=(0,_.z5)(this.node).assignedSlot;r;)g.push(r),r=(0,_.z5)(r).assignedSlot;return g};
_.S.importNode=function(g,r){return(0,_.z5)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(g,r)};
_.S.getEffectiveChildNodes=function(){return mum(this.node)};
_.S.queryDistributedElements=function(g){for(var r=this.getEffectiveChildNodes(),E=[],B=0,w=r.length,O=void 0;B<w&&(O=r[B]);B++)O.nodeType===Node.ELEMENT_NODE&&iMn(O,g)&&E.push(O);return E};
_.hx.Object.defineProperties(NH.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var g=this.node;return g._activeElement!==void 0?g._activeElement:g.activeElement}}});
var MP=function(g){this.event=g};
_.hx.Object.defineProperties(MP.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 Lxz=NH;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var VGZ=window.ShadyDOM.Wrapper,h6n=function(){return VGZ.apply(this,arguments)||this};
_.f(h6n,VGZ);Object.getOwnPropertyNames(NH.prototype).forEach(function(g){g!="activeElement"&&g!="constructor"&&(h6n.prototype[g]=NH.prototype[g])});
$qV(h6n.prototype,["classList"]);Lxz=h6n;Object.defineProperties(MP.prototype,{localTarget:{get:function(){var g=this.event.currentTarget;g=g&&_.nM(g).getOwnerRoot();for(var r=this.path,E=0;E<r.length;E++){var B=r[E];if(_.nM(B).getOwnerRoot()===g)return B}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else fpt(),$qV(NH.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),jzJ();ZMT=Lxz;_.nM=function(g){g=g||document;if(g instanceof Lxz)return g;if(g instanceof MP)return g;var r=g.__domApi;r||(g instanceof Event?r=new MP(g):r=new Lxz(g),g.__domApi=r);return r};var yF6=/:host\(:dir\((ltr|rtl)\)\)/g,vy4=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,dun=/:dir\((?:ltr|rtl)\)/,TUU=!(!window.ShadyDOM||!window.ShadyDOM.inUse),m8=[],qP=null,Iv="",ggI=mh(function(g){TUU||qP||(Iv=document.documentElement.getAttribute("dir"),qP=new MutationObserver(AlJ),qP.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var r=SQ4(g);g=function(){var E=r.call(this)||this;E.__autoDirOptOut=!1;return E};
_.f(g,r);g._processStyleText=function(E,B){E=r._processStyleText.call(this,E,B);!TUU&&dun.test(E)&&(E=this._replaceDirInCssText(E),this.__activateDir=!0);return E};
g._replaceDirInCssText=function(E){E=E.replace(yF6,':host([dir="$1"])');return E=E.replace(vy4,':host([dir="$2"]) $1')};
g.prototype.ready=function(){r.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
g.prototype.connectedCallback=function(){r.prototype.connectedCallback&&r.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(qP&&qP.takeRecords().length&&AlJ(),m8.push(this),this.__autoDirOptOut||this.setAttribute("dir",Iv))};
g.prototype.disconnectedCallback=function(){r.prototype.disconnectedCallback&&r.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var E=m8.indexOf(this);E>-1&&m8.splice(E,1)}};
g.__activateDir=!1;return g});var rgU=function(g){for(;g;){var r=Object.getOwnPropertyDescriptor(g,"observedAttributes");if(r)return r.get;g=Object.getPrototypeOf(g.prototype).constructor}return function(){return[]}};
mh(function(g){var r=Ld(g),E=rgU(r);g=function(){return r.call(this)||this};
_.f(g,r);g.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:r.prototype._initializeProperties.call(this)};
g.prototype._enableProperties=function(){this.__isUpgradeDisabled||r.prototype._enableProperties.call(this)};
g.prototype._canApplyPropertyDefault=function(B){return r.prototype._canApplyPropertyDefault.call(this,B)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(B))};
g.prototype.attributeChangedCallback=function(B,w,O,M){B=="disable-upgrade"?this.__isUpgradeDisabled&&O==null&&(r.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.z5)(this).isConnected&&r.prototype.connectedCallback.call(this)):r.prototype.attributeChangedCallback.call(this,B,w,O,M)};
g.prototype.connectedCallback=function(){this.__isUpgradeDisabled||r.prototype.connectedCallback.call(this)};
g.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||r.prototype.disconnectedCallback.call(this)};
_.hx.Object.defineProperties(g,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return E.call(this).concat("disable-upgrade")}}});
return g});var c3=!1,JlX=[],ip=[];var eiL=window.ShadyDOM,W7V=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",K7o):document.readyState==="interactive"||document.readyState==="complete"?K7o():window.addEventListener("DOMContentLoaded",K7o);var XmL=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=""},xqt=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,apB=/@import[^;]*;/gim,L7t=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,V7A=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,hil=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,Z0D=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,cll=/^@[^\s]*keyframes/,
mqc=/\s+/g;var ylt={};var T0V=Promise.resolve();var EgD=new Set;var BXw=/;\s*/m,wkw=/^\s*(initial)|(inherit)\s*$/,SSZ=/\s*!important/,OuA=function(){this._map={}};
OuA.prototype.set=function(g,r){g=g.trim();this._map[g]={properties:r,dependants:{}}};
OuA.prototype.get=function(g){g=g.trim();return this._map[g]||null};
var U2z=null,uz=function(){this._measureElement=this._currentElement=null;this._map=new OuA};
_.S=uz.prototype;_.S.detectMixin=function(g){g=syA.test(g)||nyw.test(g);syA.lastIndex=0;nyw.lastIndex=0;return g};
_.S.transformTemplate=function(g,r){if(g._gatheredStyle===void 0){var E=[];for(var B=g.content.querySelectorAll("style"),w=0;w<B.length;w++){var O=B[w];if(O.hasAttribute("shady-unscoped")){if(!Fzl){var M=O.textContent;if(!EgD.has(M)){EgD.add(M);var u=document.createElement("style");u.setAttribute("shady-unscoped","");u.textContent=M;document.head.appendChild(u)}O.parentNode.removeChild(O)}}else E.push(O.textContent),O.parentNode.removeChild(O)}(E=E.join("").trim())?(B=document.createElement("style"),
B.textContent=E,g.content.insertBefore(B,g.content.firstChild),E=B):E=null;g._gatheredStyle=E}return(g=g._gatheredStyle)?this.JSC$9302_transformStyle(g,r):null};
_.S.JSC$9302_transformStyle=function(g,r){r=r===void 0?"":r;var E=BxV(g);this.transformRules(E,r);g.textContent=EID(E);return E};
_.S.transformCustomStyle=function(g){var r=this,E=BxV(g);S8o(E,function(B){B.selector===":root"&&(B.selector="html");r.transformRule(B)});
g.textContent=EID(E);return E};
_.S.transformRules=function(g,r){var E=this;this._currentElement=r;S8o(g,function(B){E.transformRule(B)});
this._currentElement=null};
_.S.transformRule=function(g){g.cssText=Mhm(this,g.parsedCssText,g);g.selector===":root"&&(g.selector=":host > *")};
var Mhm=function(g,r,E){r=r.replace(nyw,function(B,w,O,M){return g._produceCssProperties(B,w,O,M,E)});
return g._consumeCssProperties(r,E)};
_.S=uz.prototype;_.S._getInitialValueForProperty=function(g){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(g)};
_.S._fallbacksFromPreviousRules=function(g){for(var r=this,E=g;E.parent;)E=E.parent;var B={},w=!1;S8o(E,function(O){(w=w||O===g)||O.selector===g.selector&&Object.assign(B,r._cssTextToMap(O.parsedCssText))});
return B};
_.S._consumeCssProperties=function(g,r){for(var E;E=syA.exec(g);){var B=E[0],w=E[1];E=E.index;var O=E+B.indexOf("@apply"),M=E+B.length;B=g.slice(0,O);g=g.slice(M);O=r?this._fallbacksFromPreviousRules(r):{};Object.assign(O,this._cssTextToMap(B));w=this._atApplyToCssProperties(w,O);g=B+w+g;syA.lastIndex=E+w.length}return g};
_.S._atApplyToCssProperties=function(g,r){g=g.replace(BXw,"");var E=[],B=this._map.get(g);B||(this._map.set(g,{}),B=this._map.get(g));if(B){this._currentElement&&(B.dependants[this._currentElement]=!0);var w,O=B.properties;for(w in O){var M=r&&r[w];B=[w,": var(",g,"_-_",w];M&&B.push(",",M.replace(SSZ,""));B.push(")");SSZ.test(O[w])&&B.push(" !important");E.push(B.join(""))}}return E.join("; ")};
_.S._replaceInitialOrInherit=function(g,r){var E=wkw.exec(r);E&&(r=E[1]?this._getInitialValueForProperty(g):"apply-shim-inherit");return r};
_.S._cssTextToMap=function(g,r){r=r===void 0?!1:r;g=g.split(";");for(var E,B,w={},O=0;O<g.length;O++)if(E=g[O])B=E.split(":"),B.length>1&&(E=B[0].trim(),B=B.slice(1).join(":"),r&&(B=this._replaceInitialOrInherit(E,B)),w[E]=B);return w};
_.S._invalidateMixinEntry=function(g){if(U2z)for(var r in g.dependants)r!==this._currentElement&&U2z(r)};
_.S._produceCssProperties=function(g,r,E,B,w){var O=this;E&&OZl(E,function(A,J){J&&O._map.get(J)&&(B="@apply "+J+";")});
if(!B)return g;var M=this._consumeCssProperties(""+B,w);w=g.slice(0,g.indexOf("--"));var u=M=this._cssTextToMap(M,!0),l=this._map.get(r),Q=l&&l.properties;Q?u=Object.assign(Object.create(Q),M):this._map.set(r,u);var z=[],k,H=!1;for(k in u){var R=M[k];R===void 0&&(R="initial");!Q||k in Q||(H=!0);z.push(r+"_-_"+k+": "+R)}H&&this._invalidateMixinEntry(l);l&&(l.properties=u);E&&(w=g+";"+w);return w+z.join("; ")+";"};
uz.prototype.detectMixin=uz.prototype.detectMixin;uz.prototype.transformStyle=uz.prototype.JSC$9302_transformStyle;uz.prototype.transformCustomStyle=uz.prototype.transformCustomStyle;uz.prototype.transformRules=uz.prototype.transformRules;uz.prototype.transformRule=uz.prototype.transformRule;uz.prototype.transformTemplate=uz.prototype.transformTemplate;uz.prototype._separator="_-_";Object.defineProperty(uz.prototype,"invalidCallback",{get:function(){return U2z},
set:function(g){U2z=g}});var lz=new uz,qSw=function(){this.customStyleInterface=null;lz.invalidCallback=vjD},D0=function(g){!g.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(g.customStyleInterface=window.ShadyCSS.CustomStyleInterface,g.customStyleInterface.transformCallback=function(r){lz.transformCustomStyle(r)},g.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){g.customStyleInterface.enqueued&&g.flushCustomStyles()})})};
_.S=qSw.prototype;_.S.prepareTemplate=function(g,r){D0(this);USY(g)===""&&(ylt[r]=g,r=lz.transformTemplate(g,r),g._styleAst=r)};
_.S.flushCustomStyles=function(){D0(this);if(this.customStyleInterface){var g=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var r=0;r<g.length;r++){var E=this.customStyleInterface.getStyleForCustomStyle(g[r]);E&&lz.transformCustomStyle(E)}this.customStyleInterface.enqueued=!1}}};
_.S.styleSubtree=function(g,r){D0(this);r&&fBV(g,r);if(g.shadowRoot)for(this.styleElement(g),g=g.shadowRoot.children||g.shadowRoot.childNodes,r=0;r<g.length;r++)this.styleSubtree(g[r]);else for(g=g.children||g.childNodes,r=0;r<g.length;r++)this.styleSubtree(g[r])};
_.S.styleElement=function(g){D0(this);var r=g.localName,E;r?r.indexOf("-")>-1?E=r:E=g.getAttribute&&g.getAttribute("is")||"":E=g.is;r=ylt[E];if(!(r&&USY(r)!==""||!r||dqL(r))){if(dqL(r)||r._applyShimValidatingVersion!==r._applyShimNextVersion)this.prepareTemplate(r,E),gIc(r);if(g=g.shadowRoot)if(g=g.querySelector("style"))g.__cssRules=r._styleAst,g.textContent=EID(r._styleAst)}};
_.S.styleDocument=function(g){D0(this);this.styleSubtree(document.body,g)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var o4=new qSw,u4D=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(g,r){o4.flushCustomStyles();o4.prepareTemplate(g,r)},
prepareTemplateStyles:function(g,r,E){window.ShadyCSS.prepareTemplate(g,r,E)},
prepareTemplateDom:function(){},
styleSubtree:function(g,r){o4.flushCustomStyles();o4.styleSubtree(g,r)},
styleElement:function(g){o4.flushCustomStyles();o4.styleElement(g)},
styleDocument:function(g){o4.flushCustomStyles();o4.styleDocument(g)},
getComputedStyleValue:function(g,r){return $QB(g,r)},
flushCustomStyles:function(){o4.flushCustomStyles()},
nativeCss:rQV,nativeShadow:Fzl,cssBuild:Vs,disableRuntime:jyD};u4D&&(window.ShadyCSS.CustomStyleInterface=u4D)}window.ShadyCSS.ApplyShim=lz;var l$U;l$U=window.ShadyCSS;_.GA=mh(function(g){g=WxZ(Ld(g));var r=QyU?g:ggI(g),E=rgU(r),B={x:"pan-x",y:"pan-y",none:"none",all:"auto"};g=function(){return r.call(this)||this};
_.f(g,r);g.prototype.created=function(){};
g.prototype.__attributeReaction=function(w,O,M){(this.__dataAttributes&&this.__dataAttributes[w]||w==="disable-upgrade")&&this.attributeChangedCallback(w,O,M,null)};
g.prototype.setAttribute=function(w,O){if(mHI&&!this._legacyForceObservedAttributes){var M=this.getAttribute(w);r.prototype.setAttribute.call(this,w,O);this.__attributeReaction(w,M,String(O))}else r.prototype.setAttribute.call(this,w,O)};
g.prototype.removeAttribute=function(w){if(mHI&&!this._legacyForceObservedAttributes){var O=this.getAttribute(w);r.prototype.removeAttribute.call(this,w);this.__attributeReaction(w,O,null)}else r.prototype.removeAttribute.call(this,w)};
g.prototype._enableProperties=function(){this.__isUpgradeDisabled||r.prototype._enableProperties.call(this)};
g.prototype._canApplyPropertyDefault=function(w){return r.prototype._canApplyPropertyDefault.call(this,w)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(w))};
g.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(r.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
g.prototype.attached=function(){};
g.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(r.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
g.prototype.detached=function(){};
g.prototype.attributeChangedCallback=function(w,O,M,u){O!==M&&(w=="disable-upgrade"?this.__isUpgradeDisabled&&M==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.z5)(this).isConnected&&this.connectedCallback()):(r.prototype.attributeChangedCallback.call(this,w,O,M,u),this.attributeChanged(w,O,M)))};
g.prototype.attributeChanged=function(){};
g.prototype._initializeProperties=function(){if(e8&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var w=Object.getPrototypeOf(this);w.hasOwnProperty("__hasRegisterFinished")||(this._registered(),w.__hasRegisterFinished=!0);r.prototype._initializeProperties.call(this);this.root=this;this.created();mHI&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
g.prototype._takeAttributes=function(){for(var w=this.attributes,O=0,M=w.length;O<M;O++){var u=w[O];this.__attributeReaction(u.name,null,u.value)}};
g.prototype._registered=function(){};
g.prototype.ready=function(){this._ensureAttributes();r.prototype.ready.call(this)};
g.prototype._ensureAttributes=function(){};
g.prototype._applyListeners=function(){};
g.prototype.serialize=function(w){return this._serializeValue(w)};
g.prototype.deserialize=function(w,O){return this._deserializeValue(w,O)};
g.prototype.reflectPropertyToAttribute=function(w,O,M){this._propertyToAttribute(w,O,M)};
g.prototype.serializeValueToAttribute=function(w,O,M){this._valueToNodeAttribute(M||this,w,O)};
g.prototype.extend=function(w,O){if(!w||!O)return w||O;for(var M=Object.getOwnPropertyNames(O),u=0,l=void 0;u<M.length&&(l=M[u]);u++){var Q=Object.getOwnPropertyDescriptor(O,l);Q&&Object.defineProperty(w,l,Q)}return w};
g.prototype.mixin=function(w,O){for(var M in O)w[M]=O[M];return w};
g.prototype.chainObject=function(w,O){w&&O&&w!==O&&(w.__proto__=O);return w};
g.prototype.instanceTemplate=function(w){w=this.constructor._contentForTemplate(w);return document.importNode(w,!0)};
g.prototype.fire=function(w,O,M){M=M||{};O=O===null||O===void 0?{}:O;w=new Event(w,{bubbles:M.bubbles===void 0?!0:M.bubbles,cancelable:!!M.cancelable,composed:M.composed===void 0?!0:M.composed});w.detail=O;(0,_.z5)(M.node||this).dispatchEvent(w);return w};
g.prototype.listen=function(w,O,M){w=w||this;var u=this.__boundListeners||(this.__boundListeners=new WeakMap),l=u.get(w);l||(l={},u.set(w,l));u=O+M;l[u]||(l[u]=this._addMethodEventListenerToNode(w,O,M,this))};
g.prototype.unlisten=function(w,O,M){w=w||this;var u=this.__boundListeners&&this.__boundListeners.get(w);M=O+M;var l=u&&u[M];l&&(this._removeEventListenerFromNode(w,O,l),u[M]=null)};
g.prototype.setScrollDirection=function(w,O){_.P3(O||this,B[w]||"auto")};
g.prototype.$$=function(w){return this.root.querySelector(w)};
g.prototype.distributeContent=function(){var w=_.nM(this);window.ShadyDOM&&w.shadowRoot&&ShadyDOM.flush()};
g.prototype.getEffectiveChildNodes=function(){return _.nM(this).getEffectiveChildNodes()};
g.prototype.queryDistributedElements=function(w){return _.nM(this).queryDistributedElements(w)};
g.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(w){return w.nodeType===Node.ELEMENT_NODE})};
g.prototype.getEffectiveTextContent=function(){for(var w=this.getEffectiveChildNodes(),O=[],M=0,u;u=w[M];M++)u.nodeType!==Node.COMMENT_NODE&&O.push(u.textContent);return O.join("")};
g.prototype.queryEffectiveChildren=function(w){return(w=this.queryDistributedElements(w))&&w[0]};
g.prototype.queryAllEffectiveChildren=function(w){return this.queryDistributedElements(w)};
g.prototype.getContentChildNodes=function(w){return(w=this.root.querySelector(w||"slot"))?_.nM(w).getDistributedNodes():[]};
g.prototype.getContentChildren=function(w){return this.getContentChildNodes(w).filter(function(O){return O.nodeType===Node.ELEMENT_NODE})};
g.prototype.isLightDescendant=function(w){return this!==w&&(0,_.z5)(this).contains(w)&&(0,_.z5)(this).getRootNode()===(0,_.z5)(w).getRootNode()};
g.prototype.isLocalDescendant=function(w){return this.root===(0,_.z5)(w).getRootNode()};
g.prototype.scopeSubtree=function(w,O){return CPD(w,O===void 0?!1:O)};
g.prototype.getComputedStyleValue=function(w){return l$U.getComputedStyleValue(this,w)};
g.prototype.debounce=function(w,O,M){this._debouncers=this._debouncers||{};return this._debouncers[w]=_.g3(this._debouncers[w],M>0?_.IM.after(M):tx,O.bind(this))};
g.prototype.isDebouncerActive=function(w){this._debouncers=this._debouncers||{};w=this._debouncers[w];return!(!w||!w.isActive())};
g.prototype.flushDebouncer=function(w){this._debouncers=this._debouncers||{};(w=this._debouncers[w])&&w.flush()};
g.prototype.cancelDebouncer=function(w){this._debouncers=this._debouncers||{};(w=this._debouncers[w])&&w.cancel()};
g.prototype.async=function(w,O){return O>0?_.IM.run(w.bind(this),O):~tx.run(w.bind(this))};
g.prototype.cancelAsync=function(w){w<0?tx.cancel(~w):_.IM.cancel(w)};
g.prototype.create=function(w,O){w=document.createElement(w);if(O)if(w.setProperties)w.setProperties(O);else for(var M in O)w[M]=O[M];return w};
g.prototype.elementMatches=function(w,O){return iMn(O||this,w)};
g.prototype.toggleAttribute=function(w,O){var M=this;arguments.length===3&&(M=arguments[2]);arguments.length==1&&(O=!M.hasAttribute(w));if(O)return(0,_.z5)(M).setAttribute(w,""),!0;(0,_.z5)(M).removeAttribute(w);return!1};
g.prototype.toggleClass=function(w,O,M){M=M||this;arguments.length==1&&(O=!M.classList.contains(w));O?M.classList.add(w):M.classList.remove(w)};
g.prototype.transform=function(w,O){O=O||this;O.style.webkitTransform=w;O.style.transform=w};
g.prototype.translate3d=function(w,O,M,u){this.transform("translate3d("+w+","+O+","+M+")",u||this)};
g.prototype.arrayDelete=function(w,O){if(Array.isArray(w)){if(O=w.indexOf(O),O>=0)return w.splice(O,1)}else if(O=ov(this,w).indexOf(O),O>=0)return this.splice(w,O,1);return null};
g.prototype._logger=function(w,O){Array.isArray(O)&&O.length===1&&Array.isArray(O[0])&&(O=O[0]);switch(w){case "log":case "warn":case "error":console[w].apply(console,_.jW(O))}};
g.prototype._log=function(){this._logger("log",_.fI.apply(0,arguments))};
g.prototype._warn=function(){this._logger("warn",_.fI.apply(0,arguments))};
g.prototype._error=function(){this._logger("error",_.fI.apply(0,arguments))};
g.prototype._logf=function(w){return["[%s::%s]",this.is,w].concat(_.jW(_.fI.apply(1,arguments)))};
_.hx.Object.defineProperties(g.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var w=(0,_.z5)(this).getRootNode();return w instanceof DocumentFragment?w.host:w}}});
_.hx.Object.defineProperties(g,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return mHI&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],ecl(this.prototype)),this.__observedAttributes):E.call(this).concat("disable-upgrade")}}});
g.prototype.is="";return g});Polymer.FlattenedNodesObserver=IYD;Polymer.DomApi=ZMT;Polymer.EventApi=MP;Polymer.dom=_.nM;Polymer.dom.matchesSelector=iMn;Polymer.dom.flush=_.SB;Polymer.dom.addDebouncer=_.r3;Polymer.DirMixin=ggI;Polymer.RenderStatus={beforeNextRender:_.F7o,afterNextRender:_.Lk,flush:function(){for(;JlX.length||ip.length;)b0B(JlX),b0B(ip);c3=!1}};Polymer.LegacyElementMixin=_.GA;var D26;D26=BU._mutablePropertyChange;var ogb={properties:{mutableData:Boolean},_shouldPropertyChange:function(g,r,E){return D26(this,g,r,E,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(g,r,E){return D26(this,g,r,E,!0)}};
Polymer.OptionalMutableDataBehavior=ogb;var MaD={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},oIB={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},DSo=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},oIB),Gnw=(0,_.GA)(HTMLElement),vnP=function(g,r){g||console.warn("Polymer.Class requires `info` argument");r=r?r(Gnw):Gnw;r=GGB(g,r,g.behaviors);r.is=r.prototype.is=
g.is;return r};Polymer.Class=vnP;Polymer.mixinBehaviors=function(g,r){return GGB({},(0,_.GA)(r),g)};
Polymer.GenerateClassFromInfo=GGB;_.ba=function(g){var r=typeof g==="function"?g:_.ba.Class(g);g._legacyForceObservedAttributes&&(r.prototype._legacyForceObservedAttributes=g._legacyForceObservedAttributes);customElements.define(r.is,r);return r};
_.ba.Class=vnP;Polymer._polymerFn=_.ba;var Q6n=window.onLegacyPolymerFunctionDefinedCallback;Q6n&&Q6n();var TIY={templatize:function(g,r){this._templatizerTemplate=g;this.ctor=Kk(g,this,{mutableData:!!r,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(g){return new this.ctor(g)},
modelForElement:function(g){return szA(this._templatizerTemplate,g)}};Polymer.Templatizer=TIY;_.Qo=(0,_.GA)(HTMLElement).prototype;Polymer.Base=_.Qo;var zHt=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.ys=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.f(_.ys,PolymerFakeBaseClass);var v3=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.f(v3,PolymerFakeBaseClass);var kGY=Symbol("Sd"),$SX=[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 zw4=zw4||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},knA;(function(g){function r(c,h,y){var OD=Z.get(c);if(!OD){if(!y)return;OD=new C;Z.set(c,OD)}c=OD.get(h);if(!c){if(!y)return;c=new C;OD.set(h,c)}return c}
function E(c,h,y){if(B(c,h,y))return!0;h=H(h);return h!==null?E(c,h,y):!1}
function B(c,h,y){h=r(h,y,!1);return h===void 0?!1:!!h.has(c)}
function w(c,h,y){if(B(c,h,y))return O(c,h,y);h=H(h);if(h!==null)return w(c,h,y)}
function O(c,h,y){h=r(h,y,!1);if(h!==void 0)return h.get(c)}
function M(c,h){var y=u(c,h);c=H(c);if(c===null)return y;var OD=M(c,h);if(OD.length<=0)return y;if(y.length<=0)return OD;h=new X;c=[];y=_.U(y);for(var uB=y.next();!uB.done;uB=y.next())uB=uB.value,h.has(uB)||(h.add(uB),c.push(uB));y=_.U(OD);for(OD=y.next();!OD.done;OD=y.next())OD=OD.value,h.has(OD)||(h.add(OD),c.push(OD));return c}
function u(c,h){c=r(c,h,!1);var y=[];c&&c.forEach(function(OD,uB){return y.push(uB)});
return y}
function l(c){return c===void 0}
function Q(c){return typeof c==="object"?c!==null:typeof c==="function"}
function z(c){return typeof c==="function"}
function k(c){return typeof c==="symbol"?c:String(c)}
function H(c){var h=Object.getPrototypeOf(c);if(typeof c!=="function"||c===e||h!==e)return h;var y=Object.getPrototypeOf(c.prototype);if(y==null||y===Object.prototype)return h;y=y.constructor;return typeof y!=="function"||y===c?h:y}
function R(){function c(){this._keys=[];this._values=[];this._cache=h}
var h={};c.prototype={get size(){return this._keys.length},has:function(y){return y===this._cache?!0:this._find(y)>=0?(this._cache=y,!0):!1},
get:function(y){var OD=this._find(y);if(OD>=0)return this._cache=y,this._values[OD]},
set:function(y,OD){this.delete(y);this._keys.push(y);this._values.push(OD);this._cache=y;return this},
delete:function(y){y=this._find(y);return y>=0?(this._keys.splice(y,1),this._values.splice(y,1),this._cache=h,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=h},
forEach:function(y){for(var OD=this.size,uB=0;uB<OD;++uB){var zS=this._keys[uB],jV=this._values[uB];this._cache=zS;y.call(this,jV,zS,this)}},
_find:function(y){for(var OD=this._keys,uB=OD.length,zS=0;zS<uB;++zS)if(OD[zS]===y)return zS;return-1}};
return c}
function A(){function c(){this._map=new C}
c.prototype={get size(){return this._map.length},has:function(h){return this._map.has(h)},
add:function(h){this._map.set(h,h);return this},
delete:function(h){return this._map.delete(h)},
clear:function(){this._map.clear()},
forEach:function(h,y){this._map.forEach(h,y)}};
return c}
function J(){function c(){this._key=y()}
function h(At,XY){for(var xc=0;xc<XY;++xc)At[xc]=Math.random()*255|0}
function y(){do{if(uB)var At=uB.randomBytes(16);else typeof Uint8Array==="function"?(At=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(At):h(At,16)):(At=Array(16),h(At,16));At[6]=At[6]&79|64;At[8]=At[8]&191|128;for(var XY="",xc=0;xc<16;++xc){var rg=At[xc];if(xc===4||xc===6||xc===8)XY+="-";rg<16&&(XY+="0");XY+=rg.toString(16).toLowerCase()}At="@@WeakMap@@"+XY}while(zS.call(jV,At));jV[At]=!0;return At}
function OD(At,XY){if(!zS.call(At,PJ)){if(!XY)return;Object.defineProperty(At,PJ,{value:Object.create(null)})}return At[PJ]}
var uB=typeof global!=="undefined"&&typeof zw4==="object"&&typeof require==="function"&&require("crypto"),zS=Object.prototype.hasOwnProperty,jV={},PJ=y();c.prototype={has:function(At){return(At=OD(At,!1))?this._key in At:!1},
get:function(At){if(At=OD(At,!1))return At[this._key]},
set:function(At,XY){OD(At,!0)[this._key]=XY;return this},
delete:function(At){return(At=OD(At,!1))&&this._key in At?delete At[this._key]:!1},
clear:function(){this._key=y()}};
return c}
var e=Object.getPrototypeOf(Function),C=typeof Map==="function"?Map:R(),X=typeof Set==="function"?Set:A(),Z=new (typeof WeakMap==="function"?WeakMap:J());g.decorate=function(c,h,y,OD){if(l(OD)){if(l(y)){if(!Array.isArray(c))throw new TypeError;if(!z(h))throw new TypeError;for(y=c.length-1;y>=0;--y)if(OD=(0,c[y])(h),!l(OD)){if(!z(OD))throw new TypeError;h=OD}return h}if(!Array.isArray(c))throw new TypeError;if(!Q(h))throw new TypeError;y=k(y);for(OD=c.length-1;OD>=0;--OD)(0,c[OD])(h,y)}else{if(Array.isArray(c))if(Q(h)){if(l(y))throw new TypeError;
if(!Q(OD))throw new TypeError;}else throw new TypeError;else throw new TypeError;y=k(y);for(var uB=c.length-1;uB>=0;--uB){var zS=(0,c[uB])(h,y,OD);if(!l(zS)){if(!Q(zS))throw new TypeError;OD=zS}}return OD}};
g.metadata=function(c,h){return function(y,OD){if(l(OD)){if(!z(y))throw new TypeError;r(y,void 0,!0).set(c,h)}else{if(!Q(y))throw new TypeError;OD=k(OD);r(y,OD,!0).set(c,h)}}};
g.defineMetadata=function(c,h){var y;if(Q(h))l(y)||(y=k(y));else throw new TypeError;r(h,y,!0).set("parameters",c)};
g.hasMetadata=function(c,h,y){if(Q(h))l(y)||(y=k(y));else throw new TypeError;return E(c,h,y)};
g.hasOwnMetadata=function(c,h,y){if(Q(h))l(y)||(y=k(y));else throw new TypeError;return B(c,h,y)};
g.getMetadata=function(c,h,y){if(Q(h))l(y)||(y=k(y));else throw new TypeError;return w(c,h,y)};
g.getOwnMetadata=function(c,h,y){if(Q(h))l(y)||(y=k(y));else throw new TypeError;return O(c,h,y)};
g.getMetadataKeys=function(c,h){if(Q(c))l(h)||(h=k(h));else throw new TypeError;return M(c,h)};
g.getOwnMetadataKeys=function(c,h){if(Q(c))l(h)||(h=k(h));else throw new TypeError;return u(c,h)};
g.deleteMetadata=function(c,h,y){if(Q(h))l(y)||(y=k(y));else throw new TypeError;var OD=r(h,y,!1);if(!l(OD)){if(!OD.delete(c))return!1;if(OD.size>0)return!0;c=Z.get(h);c.delete(y);if(c.size>0)return!0;Z.delete(h);return!0}};
(function(c){if(typeof c.Reflect!=="undefined"){if(c.Reflect!==g)for(var h in g)c.Reflect[h]=g[h]}else c.Reflect=g})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(knA||(knA={}));var HuD=function(){this.aborted=!1;this.onabort=null;this.target=document.createDocumentFragment?document.createDocumentFragment():document.createElement("div")};
HuD.prototype.addEventListener=function(g,r,E){this.target.addEventListener(g,r,E)};
HuD.prototype.removeEventListener=function(g,r,E){this.target.removeEventListener(g,r,E)};
HuD.prototype.dispatchEvent=function(g){if(this.onabort&&g.type==="abort")this.onabort(g);return this.target.dispatchEvent(g)};var pkZ=function(){this.signal=new HuD};
pkZ.prototype.abort=function(){if(!this.signal.aborted){this.signal.aborted=!0;var g=document.createEvent("Event");g.initEvent("abort",!1,!1);this.signal.dispatchEvent(g)}};var CsX=self;var YSD=[0,_.Xi,_.IU,_.Xi];var Rwz=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(Rwz,_.xu);var ngZ=_.dk(Rwz,[0,_.SOc,_.mq,YSD,_.IU,_.iR]);_.rc(_.dH,_.f5);_.S=_.dH.prototype;_.S.start=function(){this.stop();this.usingListeners_=!1;var g=s6b(this),r=f$A(this);g&&!r&&this.JSC$9351_win_.mozRequestAnimationFrame?(this.JSC$9351_id_=_.j_(this.JSC$9351_win_,"MozBeforePaint",this.callback_),this.JSC$9351_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9351_id_=g&&r?g.call(this.JSC$9351_win_,this.callback_):this.JSC$9351_win_.setTimeout(zPU(this.callback_),20)};
_.S.stop=function(){if(this.isActive()){var g=s6b(this),r=f$A(this);g&&!r&&this.JSC$9351_win_.mozRequestAnimationFrame?s2(this.JSC$9351_id_):g&&r?r.call(this.JSC$9351_win_,this.JSC$9351_id_):this.JSC$9351_win_.clearTimeout(this.JSC$9351_id_)}this.JSC$9351_id_=null};
_.S.fire=function(){this.stop();this.JSC$9353_doAction_()};
_.S.isActive=function(){return this.JSC$9351_id_!=null};
_.S.JSC$9353_doAction_=function(){this.usingListeners_&&this.JSC$9351_id_&&s2(this.JSC$9351_id_);this.JSC$9351_id_=null;this.JSC$9351_listener_.call(this.handler_,_.dx())};
_.S.disposeInternal=function(){this.stop();_.dH.superClass_.disposeInternal.call(this)};
var s6b=function(g){g=g.JSC$9351_win_;return g.requestAnimationFrame||g.webkitRequestAnimationFrame||g.mozRequestAnimationFrame||g.oRequestAnimationFrame||g.msRequestAnimationFrame||null},f$A=function(g){g=g.JSC$9351_win_;
return g.cancelAnimationFrame||g.cancelRequestAnimationFrame||g.webkitCancelRequestAnimationFrame||g.mozCancelRequestAnimationFrame||g.oCancelRequestAnimationFrame||g.msCancelRequestAnimationFrame||null};_.VU=function(g,r,E){_.f5.call(this);this.JSC$9354_listener_=E!=null?g.bind(E):g;this.JSC$9354_interval_=r;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9354_timer_=null};
_.f(_.VU,_.f5);_.S=_.VU.prototype;_.S.fire=function(g){this.args_=arguments;this.JSC$9354_timer_||this.pauseCount_?this.shouldFire_=!0:$2D(this)};
_.S.stop=function(){this.JSC$9354_timer_&&(_.ED.clearTimeout(this.JSC$9354_timer_),this.JSC$9354_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.S.pause=function(){this.pauseCount_++};
_.S.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9354_timer_||(this.shouldFire_=!1,$2D(this))};
_.S.disposeInternal=function(){_.f5.prototype.disposeInternal.call(this);this.stop()};
var $2D=function(g){g.JSC$9354_timer_=Rw(function(){g.JSC$9354_timer_=null;g.shouldFire_&&!g.pauseCount_&&(g.shouldFire_=!1,$2D(g))},g.JSC$9354_interval_);
var r=g.args_;g.args_=null;g.JSC$9354_listener_.apply(null,r)};var j6n=function(g,r){this.childIterator_=g[_.ED.Symbol.iterator]();this.mapFn_=r};
j6n.prototype[Symbol.iterator]=function(){return this};
j6n.prototype.next=function(){var g=this.childIterator_.next();return{value:g.done?void 0:this.mapFn_.call(void 0,g.value),done:g.done}};
var Agm=function(g,r){return new j6n(g,r)};var buT={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 z3L=function(g){var r=Jgw(g);if(!r)throw Error("Wd`"+g);return r},Jgw=function(g){var r={};
g=String(g);var E=g.charAt(0)=="#"?g:"#"+g;if(PqZ.test(E))return r.hex=uhY(E),r.type="hex",r;E=YHo(g);return E.length?(r.hex=TNX(E[0],E[1],E[2]),r.type="rgb",r):buT&&(g=buT[g.toLowerCase()])?(r.hex=g,r.type="named",r):null},th4=/#(.)(.)(.)/,uhY=function(g){if(!PqZ.test(g))throw Error("Yd`"+g);
g.length==4&&(g=g.replace(th4,"#$1$1$2$2$3$3"));return g.toLowerCase()},kOo=function(g){g=uhY(g);
g=parseInt(g.slice(1),16);return[g>>16,g>>8&255,g&255]},TNX=function(g,r,E){g=Number(g);
r=Number(r);E=Number(E);if(g!=(g&255)||r!=(r&255)||E!=(E&255))throw Error("Zd`"+g+"`"+r+"`"+E);r=g<<16|r<<8|E;return g<16?"#"+(16777216|r).toString(16).slice(1):"#"+r.toString(16)},PqZ=/^#(?:[0-9a-f]{3}){1,2}$/i,FZI=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,YHo=function(g){var r=g.match(FZI);
if(r){g=Number(r[1]);var E=Number(r[2]);r=Number(r[3]);if(g>=0&&g<=255&&E>=0&&E<=255&&r>=0&&r<=255)return[g,E,r]}return[]};var eww={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},n0=eww;n0=eww;var f5B,WZ4,CqZ;f5B=function(g,r){switch(r){case 1:return g%4!=0||g%100==0&&g%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
WZ4=function(g,r,E,B,w){g=new Date(g,r,E);w=w||0;return g.valueOf()+(((B!==void 0?B:3)-w+7)%7-((g.getDay()+6)%7-w+7)%7)*864E5};
_.zA=function(g,r,E){typeof g==="number"?(this.date=CqZ(g,r||0,E||1),KZw(this,E||1)):_.gA(g)?(this.date=CqZ(g.getFullYear(),g.getMonth(),g.getDate()),KZw(this,g.getDate())):(this.date=new Date(_.dx()),g=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),KZw(this,g))};
CqZ=function(g,r,E){r=new Date(g,r,E);g>=0&&g<100&&r.setFullYear(r.getFullYear()-1900);return r};
_.S=_.zA.prototype;_.S.firstDayOfWeek_=n0.FIRSTDAYOFWEEK;_.S.firstWeekCutOffDay_=n0.FIRSTWEEKCUTOFFDAY;_.S.clone=function(){var g=new _.zA(this.date);g.firstDayOfWeek_=this.firstDayOfWeek_;g.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return g};
_.S.getFullYear=function(){return this.date.getFullYear()};
_.S.getYear=function(){return this.getFullYear()};
_.S.getMonth=function(){return this.date.getMonth()};
_.S.getDate=function(){return this.date.getDate()};
_.S.getTime=function(){return this.date.getTime()};
_.S.getDay=function(){return this.date.getDay()};
_.S.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.S.getUTCMonth=function(){return this.date.getUTCMonth()};
_.S.getUTCDate=function(){return this.date.getUTCDate()};
_.S.getUTCDay=function(){return this.date.getDay()};
_.S.getUTCHours=function(){return this.date.getUTCHours()};
_.S.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.S.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.S.set=function(g){this.date=new Date(g.getFullYear(),g.getMonth(),g.getDate())};
_.S.setFullYear=function(g){this.date.setFullYear(g)};
_.S.setYear=function(g){this.setFullYear(g)};
_.S.setMonth=function(g){this.date.setMonth(g)};
_.S.setDate=function(g){this.date.setDate(g)};
_.S.setTime=function(g){this.date.setTime(g)};
_.S.setUTCFullYear=function(g){this.date.setUTCFullYear(g)};
_.S.setUTCMonth=function(g){this.date.setUTCMonth(g)};
_.S.setUTCDate=function(g){this.date.setUTCDate(g)};
_.S.add=function(g){if(g.years||g.months){var r=this.getMonth()+g.months+g.years*12,E=this.getYear()+Math.floor(r/12);r%=12;r<0&&(r+=12);var B=Math.min(f5B(E,r),this.getDate());this.setDate(1);this.setFullYear(E);this.setMonth(r);this.setDate(B)}g.days&&(E=this.getYear(),r=E>=0&&E<=99?-1900:0,g=new Date((new Date(E,this.getMonth(),this.getDate(),12)).getTime()+g.days*864E5),this.setDate(1),this.setFullYear(g.getFullYear()+r),this.setMonth(g.getMonth()),this.setDate(g.getDate()),KZw(this,g.getDate()))};
_.S.JSC$9367_toIsoString=function(g){var r=this.getFullYear(),E=r<0?"-":r>=1E4?"+":"";return[E+_.dc(Math.abs(r),E?6:4),_.dc(this.getMonth()+1,2),_.dc(this.getDate(),2)].join(g?"-":"")};
_.S.equals=function(g){return!(!g||this.getYear()!=g.getYear()||this.getMonth()!=g.getMonth()||this.getDate()!=g.getDate())};
_.S.toString=function(){return this.JSC$9367_toIsoString()};
var KZw=function(g,r){g.getDate()!=r&&g.date.setUTCHours(g.date.getUTCHours()+(g.getDate()<r?1:-1))};
_.zA.prototype.valueOf=function(){return this.date.valueOf()};var HU=function(g,r,E,B,w){this.reversed=!!r;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!E;g&&kC(this,g,B);this.depth=w!=void 0?w:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.rc(HU,Tg);var kC=function(g,r,E,B){if(g.node=r)g.tagType=typeof E==="number"?E:g.node.nodeType!=1?0:g.reversed?-1:1;typeof B==="number"&&(g.depth=B)};
_.S=HU.prototype;_.S.JSC$9382_copyFrom=function(g){this.node=g.node;this.tagType=g.tagType;this.depth=g.depth;this.reversed=g.reversed;this.constrained=g.constrained};
_.S.clone=function(){return new HU(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.S.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return g8;var g=this.node;var r=this.reversed?-1:1;if(this.tagType==r){var E=this.reversed?g.lastChild:g.firstChild;E?kC(this,E):kC(this,g,r*-1)}else(E=this.reversed?g.previousSibling:g.nextSibling)?kC(this,E):kC(this,g.parentNode,r*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(g=this.node)?r8(g):g8};
_.S.equals=function(g){return g.node==this.node&&(!this.node||g.tagType==this.tagType)};
_.S.splice=function(g){var r=this.node,E=this.reversed?1:-1;this.tagType==E&&(this.tagType=E*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;HU.prototype.next.call(this);this.reversed=!this.reversed;E=_.vJ(arguments[0])?arguments[0]:arguments;for(var B=E.length-1;B>=0;B--)_.j5(E[B],r);_.p5(r)};var x2w=function(){},pi=function(g){for(var r=[],E=g.getTextRangeCount(),B=0;B<E;B++)r.push(g.getTextRange(B));
return r};
x2w.prototype.isReversed=function(){return!1};
x2w.prototype.getWindow=function(){return P$(_.tL(this.JSC$9384_getStartNode()))};
var a$z=function(g,r){HU.call(this,g,r,!0)};
_.rc(a$z,HU);var YC=function(g,r,E,B,w){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!w;if(g){this.startNode_=g;this.startOffset_=r;this.endNode_=E;this.endOffset_=B;if(g.nodeType==1&&g.tagName!="BR")if(g=g.childNodes,r=g[r])this.startNode_=r,this.startOffset_=0;else{g.length&&(this.startNode_=_.KL(g));var O=!0}E.nodeType==1&&((this.endNode_=E.childNodes[B])?this.endOffset_=0:this.endNode_=E)}HU.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);O&&this.next()};
_.rc(YC,a$z);_.S=YC.prototype;_.S.JSC$9390_getStartNode=function(){return this.startNode_};
_.S.isLast=function(){return this.started_&&(this.node!=(this.isReversed_?this.startNode_:this.endNode_)?!1:this.isReversed_?this.startOffset_?this.tagType!=-1:this.tagType==1:!this.endOffset_||this.tagType!=1)};
_.S.next=function(){return this.isLast()?g8:YC.superClass_.next.call(this)};
_.S.JSC$9382_copyFrom=function(g){this.startNode_=g.startNode_;this.endNode_=g.endNode_;this.startOffset_=g.startOffset_;this.endOffset_=g.endOffset_;this.isReversed_=g.isReversed_;YC.superClass_.JSC$9382_copyFrom.call(this,g)};
_.S.clone=function(){var g=new YC(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);g.JSC$9382_copyFrom(this);return g};var XkD=function(){};
XkD.prototype.__iterator__=function(){return new YC(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var R4=function(g){this.range_=g};
_.rc(R4,XkD);var NXZ=function(g){var r=_.tL(g).createRange();if(g.nodeType==3)r.setStart(g,0),r.setEnd(g,g.length);else if(sh(g)||g.nodeType==3){for(var E,B=g;(E=B.firstChild)&&(sh(E)||E.nodeType==3);)B=E;r.setStart(B,0);for(B=g;(E=B.lastChild)&&(sh(E)||E.nodeType==3);)B=E;r.setEnd(B,B.nodeType==1?B.childNodes.length:B.length)}else E=g.parentNode,g=Array.prototype.indexOf.call(E.childNodes,g),r.setStart(E,g),r.setEnd(E,g+1);return r},I$w=function(g,r,E,B){var w=_.tL(g).createRange();
w.setStart(g,r);w.setEnd(E,B);return w};
_.S=R4.prototype;_.S.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.S.getContainer=function(){return this.range_.commonAncestorContainer};
_.S.compareBrowserRangeEndpoints=function(g,r,E){return this.range_.compareBoundaryPoints(E==1?r==1?_.ED.Range.START_TO_START:_.ED.Range.START_TO_END:r==1?_.ED.Range.END_TO_START:_.ED.Range.END_TO_END,g)};
_.S.isCollapsed=function(){return this.range_.collapsed};
_.S.select=function(g){this.selectInternal(P$(_.tL(this.range_.startContainer)).getSelection(),g)};
_.S.selectInternal=function(g){g.removeAllRanges();g.addRange(this.range_)};
_.S.insertNode=function(g,r){var E=this.range_.cloneRange();E.collapse(r);E.insertNode(g);E.detach();return g};
_.S.collapse=function(g){this.range_.collapse(g)};_.rc(T5,R4);T5.prototype.selectInternal=function(g,r){!r||this.isCollapsed()?T5.superClass_.selectInternal.call(this,g,r):(g.collapse(this.range_.endContainer,this.range_.endOffset),g.extend(this.range_.startContainer,this.range_.startOffset))};_.rc(gU,R4);gU.prototype.compareBrowserRangeEndpoints=function(g,r,E){return gU.superClass_.compareBrowserRangeEndpoints.call(this,g,r,E)};
gU.prototype.selectInternal=function(g,r){r?g.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):g.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var m2z=function(g){return _.Uz?new gU(g):_.Oz?new T5(g):new R4(g)};var ni=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},cgZ;
_.rc(ni,x2w);cgZ=function(g,r){var E=new ni;E.browserRangeWrapper_=g;E.isReversed_=!!r;return E};
_.iuD=function(g){g=_.Uz?new gU(NXZ(g)):_.Oz?new T5(NXZ(g)):new R4(NXZ(g));return cgZ(g)};
_.sT=function(g,r,E,B){var w=new ni;w.isReversed_=LZD(g,r,E,B);if(_.y2(g)&&!sh(g)){var O=g.parentNode;r=Array.prototype.indexOf.call(O.childNodes,g);g=O}_.y2(E)&&!sh(E)&&(O=E.parentNode,B=Array.prototype.indexOf.call(O.childNodes,E),E=O);w.isReversed_?(w.startNode_=E,w.startOffset_=B,w.endNode_=g,w.endOffset_=r):(w.startNode_=g,w.startOffset_=r,w.endNode_=E,w.endOffset_=B);return w};
_.S=ni.prototype;_.S.clone=function(){var g=new ni;g.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();g.startNode_=this.startNode_;g.startOffset_=this.startOffset_;g.endNode_=this.endNode_;g.endOffset_=this.endOffset_;g.isReversed_=this.isReversed_;return g};
_.S.JSC$9384_getType=function(){return"text"};
_.S.getBrowserRangeObject=function(){return fi(this).range_};
_.S.getTextRangeCount=function(){return 1};
_.S.getTextRange=function(){return this};
var fi=function(g){var r;if(!(r=g.browserRangeWrapper_)){r=g.JSC$9384_getStartNode();var E=g.JSC$9384_getStartOffset(),B=g.JSC$9384_getEndNode(),w=g.JSC$9384_getEndOffset();r=_.Uz?new gU(I$w(r,E,B,w)):_.Oz?new T5(I$w(r,E,B,w)):new R4(I$w(r,E,B,w));r=g.browserRangeWrapper_=r}return r};
_.S=ni.prototype;_.S.getContainer=function(){return fi(this).getContainer()};
_.S.JSC$9384_getStartNode=function(){return this.startNode_||(this.startNode_=fi(this).range_.startContainer)};
_.S.JSC$9384_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=fi(this).range_.startOffset};
_.S.JSC$9384_getEndNode=function(){return this.endNode_||(this.endNode_=fi(this).range_.endContainer)};
_.S.JSC$9384_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=fi(this).range_.endOffset};
_.S.isReversed=function(){return this.isReversed_};
_.S.JSC$9384_containsRange=function(g,r){if(g.JSC$9384_getType()=="text"){var E=fi(this);g=fi(g);r=r&&!g.isCollapsed();g=g.range_;E=r?E.compareBrowserRangeEndpoints(g,0,1)>=0&&E.compareBrowserRangeEndpoints(g,1,0)<=0:E.compareBrowserRangeEndpoints(g,0,0)>=0&&E.compareBrowserRangeEndpoints(g,1,1)<=0}else E=!1;return E};
_.S.isCollapsed=function(){return fi(this).isCollapsed()};
_.S.JSC$9384_getText=function(){return fi(this).range_.toString()};
_.S.__iterator__=function(){return new YC(this.JSC$9384_getStartNode(),this.JSC$9384_getStartOffset(),this.JSC$9384_getEndNode(),this.JSC$9384_getEndOffset())};
_.S.select=function(){fi(this).select(this.isReversed_)};
_.S.JSC$9384_removeContents=function(){var g=fi(this).range_;g.extractContents();if(g.startContainer.hasChildNodes()&&(g=g.startContainer.childNodes[g.startOffset])){var r=g.previousSibling;GDD(g)==""&&_.p5(g);r&&GDD(r)==""&&_.p5(r)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.S.insertNode=function(g,r){g=fi(this).insertNode(g,r);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return g};
_.S.collapse=function(g){g=this.isReversed()?!g:g;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(g);g?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var VhU=function(){};
_.rc(VhU,x2w);VhU.prototype.JSC$9384_containsRange=function(g,r){var E=pi(this);g=pi(g);return(r?V2:_.giL)(g,function(B){return V2(E,function(w){return w.JSC$9384_containsRange(B,r)})})};
VhU.prototype.insertNode=function(g,r){r?_.$4(g,this.JSC$9384_getStartNode()):_.j5(g,this.JSC$9384_getEndNode());return g};var hww,Zuw=kY().JSC$7414_document_.documentElement;hww=Zuw.requestFullscreen?"fullscreenchange":Zuw.webkitRequestFullscreen?"webkitfullscreenchange":Zuw.mozRequestFullScreen?"mozfullscreenchange":Zuw.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var ygw=function(){var g=kY().JSC$7414_document_;return!!(g.webkitIsFullScreen||g.mozFullScreen||g.msFullscreenElement||g.fullscreenElement)};var $C=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.rc($C,VhU);_.S=$C.prototype;_.S.clone=function(){var g=new $C;g.browserRanges_=_.ZQ(this.browserRanges_);return g};
_.S.JSC$9384_getType=function(){return"mutli"};
_.S.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.S.getTextRangeCount=function(){return this.browserRanges_.length};
_.S.getTextRange=function(g){this.ranges_[g]||(this.ranges_[g]=cgZ(m2z(this.browserRanges_[g])));return this.ranges_[g]};
_.S.getContainer=function(){if(!this.container_){for(var g=[],r=this.getTextRangeCount(),E=0;E<r;E++)g.push(this.getTextRange(E).getContainer());this.container_=Uzn.apply(null,g)}return this.container_};
var jB=function(g){g.sortedRanges_||(g.sortedRanges_=pi(g),g.sortedRanges_.sort(function(r,E){var B=r.JSC$9384_getStartNode();r=r.JSC$9384_getStartOffset();var w=E.JSC$9384_getStartNode();E=E.JSC$9384_getStartOffset();return B==w&&r==E?0:LZD(B,r,w,E)?1:-1}));
return g.sortedRanges_};
_.S=$C.prototype;_.S.JSC$9384_getStartNode=function(){return jB(this)[0].JSC$9384_getStartNode()};
_.S.JSC$9384_getStartOffset=function(){return jB(this)[0].JSC$9384_getStartOffset()};
_.S.JSC$9384_getEndNode=function(){return _.KL(jB(this)).JSC$9384_getEndNode()};
_.S.JSC$9384_getEndOffset=function(){return _.KL(jB(this)).JSC$9384_getEndOffset()};
_.S.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.S.JSC$9384_getText=function(){return pi(this).map(function(g){return g.JSC$9384_getText()}).join("")};
_.S.__iterator__=function(){return new A2(this)};
_.S.select=function(){var g=this.getWindow().getSelection();g.removeAllRanges();for(var r=this.getTextRangeCount(),E=0;E<r;E++)g.addRange(this.getTextRange(E).getBrowserRangeObject())};
_.S.JSC$9384_removeContents=function(){pi(this).forEach(function(g){g.JSC$9384_removeContents()})};
_.S.collapse=function(g){if(!this.isCollapsed()){var r=g?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;r.collapse(g);this.ranges_=[r];this.sortedRanges_=[r];this.browserRanges_=[r.getBrowserRangeObject()]}};
var A2=function(g){this.iterators_=null;this.currentIdx_=0;g&&(this.iterators_=jB(g).map(function(r){return _.D_w(r)}));
HU.call(this,g?this.JSC$9390_getStartNode():null,!1,!0)};
_.rc(A2,a$z);_.S=A2.prototype;_.S.JSC$9390_getStartNode=function(){return this.iterators_[0].JSC$9390_getStartNode()};
_.S.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.S.next=function(){for(;this.currentIdx_<this.iterators_.length;){var g=this.iterators_[this.currentIdx_],r=g.next();if(r.done)this.currentIdx_++;else return kC(this,g.node,g.tagType,g.depth),r}return g8};
_.S.JSC$9382_copyFrom=function(g){this.iterators_=_.ZQ(g.iterators_);A2.superClass_.JSC$9382_copyFrom.call(this,g)};
_.S.clone=function(){var g=new A2(null);g.JSC$9382_copyFrom(this);return g};var vgw,LZD;_.kj=function(){var g=window.getSelection();return g&&vgw(g)};
vgw=function(g){var r=!1;if(g.createRange)try{var E=g.createRange()}catch(w){return null}else if(g.rangeCount){if(g.rangeCount>1){E=new $C;r=g.rangeCount;for(var B=0;B<r;B++)E.browserRanges_.push(g.getRangeAt(B));return E}E=g.getRangeAt(0);r=LZD(g.anchorNode,g.anchorOffset,g.focusNode,g.focusOffset)}else return null;return cgZ(m2z(E),r)};
_.bz=function(g,r){return _.sT(g,r,g,r)};
_.J2=function(g,r,E,B){return _.sT(g,r,E,B)};
LZD=function(g,r,E,B){if(g==E)return B<r;var w;if(g.nodeType==1&&r)if(w=g.childNodes[r])g=w,r=0;else if(_.Nd(g,E))return!0;if(E.nodeType==1&&B)if(w=E.childNodes[B])E=w,B=0;else if(_.Nd(E,g))return!1;return(OwA(g,E)||r-B)>0};var PU=function(){_.ze.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.$r)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.$r)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.$r)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.$r)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.$r)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.$r)(this.dispatchProgressEvent_,this)};
_.rc(PU,_.ze);PU.prototype.abort=function(){try{this.reader_.abort()}catch(g){throw new Qj6(g,"aborting read");}};
PU.prototype.getError=function(){return this.reader_.error&&new Qj6(this.reader_.error,"reading file")};
PU.prototype.dispatchProgressEvent_=function(g){this.dispatchEvent(new zfD(g,this))};
PU.prototype.disposeInternal=function(){PU.superClass_.disposeInternal.call(this);delete this.reader_};
var TX4=function(g){var r=new PU,E=d2Z(r);r.reader_.readAsArrayBuffer(g);return E},gDn=function(g){var r=new PU,E=d2Z(r);
r.reader_.readAsDataURL(g);return E},d2Z=function(g){var r=new X5;
g.listen("loadend",_.Hk(function(E,B){var w=B.reader_.result,O=B.getError();w==null||O?E.errback(O):E.callback(w);B.dispose()},r,g));
return r};var t2=function(){_.ze.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9424_eventHandler_=new _.EQ(this);this.JSC$9424_isInitialized_=!1};
_.rc(t2,_.ze);var rjT=new _.u8("d"),EDT=new _.u8("beforedragstart"),BzD=new _.u8("dragstart"),wsD=new _.u8("beforedragmove"),S9D=new _.u8("dragmove"),Ofw=new _.u8("beforedragend"),Urw=new _.u8("dragend"),M9D=new _.u8("e");t2.prototype.isDragging=function(){return!!this.JSC$9424_dragger_};
var q9I=function(g,r){r.dlgGrowthDirection_=0;r.dlgDragHoverClass_=void 0;r.dlgDragPermission=0;g.dragLists_.push(r)},ucm=function(g,r){g.getHandleForDragItem_=r};
t2.prototype.init=function(){if(!this.JSC$9424_isInitialized_){for(var g=this.dragLists_.length,r=0;r<g;r++)for(var E=_.Aq(this.dragLists_[r]),B=E.length,w=0;w<B;++w){var O=E[w],M=this.getHandleForDragItem_(O),u=_.Ew(M);this.dragItemForHandle_[u]=O;this.dragItemHoverClasses_&&(this.JSC$9424_eventHandler_.listen(O,"mouseover",this.handleDragItemMouseover_),this.JSC$9424_eventHandler_.listen(O,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9424_eventHandler_.listen(M,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9424_eventHandler_.listen(M,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(O);this.JSC$9424_eventHandler_.listen(M,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9424_isInitialized_=!0}};
t2.prototype.disposeInternal=function(){this.JSC$9424_eventHandler_.dispose();for(var g=this.dragLists_.length,r=0;r<g;r++){var E=this.dragLists_[r];E.dlgGrowthDirection_=void 0;E.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;lzD(this);t2.superClass_.disposeInternal.call(this)};
var Dr6=function(g,r){for(var E=g.dragLists_.length,B=0;B<E;B++){var w=g.dragLists_[B];w.dlgBounds_=taX(w)}E=g.dragItems_.length;for(B=0;B<E;B++)w=g.dragItems_[B],w!=r&&(w.dlgBounds_=taX(w))};
_.S=t2.prototype;
_.S.handlePotentialDragStart_=function(g){var r=_.Ew(g.currentTarget);r=this.dragItemForHandle_[r];if(r.parentElement.dlgDragPermission!=2){this.currDragItem_=r;a:{r=this.currDragItem_;for(var E=r.cloneNode(!0),B=Yr("TEXTAREA",r),w=Yr("TEXTAREA",E),O=0;O<B.length;O++)w[O].value=B[O].value;switch(r.tagName){case "TR":r=_.Ro("TABLE",null,_.Ro("TBODY",null,E));break a;case "TD":case "TH":r=_.Ro("TABLE",null,_.Ro("TBODY",null,_.Ro("TR",null,E)));break a;case "TEXTAREA":E.value=r.value;default:r=E;break a}r=
void 0}this.draggerEl_=r;this.draggerElClasses_&&x$(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.tL(this.currDragItem_).body.appendChild(this.draggerEl_);E=_.en(this.currDragItem_);r=this.draggerEl_;B=_.en(r);if(E instanceof _.JL){var M=E.y;E=E.x}Fx(r,r.offsetLeft+(E-B.x),r.offsetTop+(Number(M)-B.y));this.JSC$9424_dragger_=new _.PS(this.draggerEl_);_.GUI(this.JSC$9424_dragger_,this.hysteresisDistance_);
_.j_(this.JSC$9424_dragger_,"start",this.handleDragStart_,!1,this);_.j_(this.JSC$9424_dragger_,"end",this.handleDragEnd_,!1,this);_.j_(this.JSC$9424_dragger_,"earlycancel",this.JSC$9426_cleanup_,!1,this);this.dispatchEvent(new FP(rjT,this,g,this.currDragItem_,this.draggerEl_,this.JSC$9424_dragger_));this.JSC$9424_dragger_.startDrag(g)}};
_.S.handleDragStart_=function(g){if(this.dispatchEvent(new FP(EDT,this,g.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.BAU(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?x$(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var r=Ywz(this.draggerEl_);this.draggerEl_.halfWidth=r.width/2;this.draggerEl_.halfHeight=r.height/2;r=this.draggerEl_.getBoundingClientRect();
var E=g.clientY,B=Qan(this.JSC$9424_dragger_,g.clientX);if(B>r.right){var w=this.currDragItem_.getBoundingClientRect();this.JSC$9424_dragger_.deltaX=B-(B-w.left)/w.width*r.width}E=z7U(this.JSC$9424_dragger_,E);E>r.bottom&&(this.JSC$9424_dragger_.deltaY+=E-r.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";Dr6(this,this.currDragItem_);this.currDragItem_.style.display="";_.j_(this.JSC$9424_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new FP(BzD,
this,g.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9424_dragger_))}else g.preventDefault(),this.JSC$9426_cleanup_()};
_.S.handleDragMove_=function(g){var r=_.en(this.draggerEl_);r=new _.JL(r.x+this.draggerEl_.halfWidth,r.y+this.draggerEl_.halfHeight);a:{var E=null;if(this.currDragItem_.style.display!="none"){E=this.currDragItem_.parentNode;var B=taX(E);if(oDD(r,B))break a}B=this.dragLists_.length;for(var w=0;w<B;w++){var O=this.dragLists_[w];if(O!=E&&oDD(r,O.dlgBounds_)){E=O;break a}}E=null}if(E){if(E==null)throw Error("$d");B=0;w=!1;O=void 0;switch(E.dlgGrowthDirection_){case 0:B=r.y;var M=GCb;var u=QcD;break;case 4:w=
!0;case 2:B=r.x;M=z9Z;u=QcD;break;case 5:w=!0;case 3:B=r.x,M=kCn,u=Hfn}for(var l=null,Q,z=_.Aq(E),k=z.length,H=0;H<k;H++){var R=z[H];if(R!=this.currDragItem_){var A=M(R.dlgBounds_);if(w){var J=psA(R,r);O===void 0&&(O=J);u(B,A)&&(Q==void 0||J<O||J==O&&(u(A,Q)||A==Q))&&(l=R,Q=A);J<O&&(O=J)}else u(B,A)&&(Q==void 0||u(A,Q))&&(l=R,Q=A)}}M=l!==null&&psA(l,r)>O?null:l}else M=null;if(!this.dispatchEvent(new FP(wsD,this,g,this.currDragItem_,this.draggerEl_,this.JSC$9424_dragger_,r,E,M)))return!1;if(E&&E.dlgDragPermission!=
1)this.currDragItem_.parentNode==E&&_.BAU(this.currDragItem_)==M||E.insertBefore(this.currDragItem_,M),this.currDragItem_.style.display="",E.dlgDragHoverClass_&&_.dL(E,E.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",u=this.dragLists_.length,Q=0;Q<u;Q++)B=this.dragLists_[Q],B.dlgDragHoverClass_&&_.yy(B,B.dlgDragHoverClass_);E!=this.currHoverList_&&(this.currHoverList_=E,Dr6(this,this.currDragItem_));this.dispatchEvent(new FP(S9D,this,g,this.currDragItem_,this.draggerEl_,this.JSC$9424_dragger_,
r,E,M));return!1};
_.S.JSC$9426_cleanup_=function(){lzD(this);this.JSC$9424_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var g=this.dragLists_.length,r=0;r<g;r++)this.dragLists_[r].dlgBounds_=null;g=this.dragItems_.length;for(r=0;r<g;r++)this.dragItems_[r].dlgBounds_=null};
_.S.handleDragEnd_=function(g){if(!this.dispatchEvent(new FP(Ofw,this,g,this.currDragItem_,this.draggerEl_,this.JSC$9424_dragger_)))return!1;lzD(this);this.dispatchEvent(new FP(Urw,this,g,this.currDragItem_,this.draggerEl_,this.JSC$9424_dragger_));this.JSC$9426_cleanup_();return!0};
var lzD=function(g){_.TM(g.JSC$9424_dragger_);var r=g.draggerEl_&&g.draggerEl_.parentElement;g.draggerEl_&&_.p5(g.draggerEl_);g.currDragItem_&&g.currDragItem_.style.display=="none"&&(g.origList_.insertBefore(g.currDragItem_,g.origNextItem_),g.currDragItem_.style.display="");g.currDragItemClasses_&&g.currDragItem_?GMw(g.currDragItem_,g.currDragItemClasses_||[]):g.currDragItem_&&(g.currDragItem_.style.visibility="");for(var E=g.dragLists_.length,B=0;B<E;B++){var w=g.dragLists_[B];w.dlgDragHoverClass_&&
_.yy(w,w.dlgDragHoverClass_)}r&&g.dispatchEvent(new FP(M9D,g,null,g.currDragItem_,g.draggerEl_,g.JSC$9424_dragger_))};
_.S=t2.prototype;_.S.getHandleForDragItem_=function(g){return g};
_.S.handleDragItemMouseover_=function(g){x$(g.currentTarget,this.dragItemHoverClasses_||[])};
_.S.handleDragItemMouseout_=function(g){GMw(g.currentTarget,this.dragItemHoverClasses_||[])};
_.S.handleDragItemHandleMouseover_=function(g){x$(g.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.S.handleDragItemHandleMouseout_=function(g){GMw(g.currentTarget,this.dragItemHandleHoverClasses_||[])};
var oDD=function(g,r){return g.x>r.left&&g.x<r.left+r.width&&g.y>r.top&&g.y<r.top+r.height},psA=function(g,r){g=g.dlgBounds_;
return Math.abs(r.y-(g.top+(g.height-1)/2))},GCb=function(g){return g.top+g.height-1},z9Z=function(g){return g.left+g.width-1},kCn=function(g){return g.left||0},QcD=function(g,r){return g<r},Hfn=function(g,r){return g>r},FP=function(g,r,E,B,w,O){_.l8.call(this,g);
this.event=E;this.currDragItem=B;this.draggerEl=w;this.JSC$9428_dragger=O};
_.rc(FP,_.l8);_.rc(BE,_.f5);var Y9n=new _.JL(0,0);BE.prototype.JSC$9432_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
BE.prototype.JSC$9432_onMouseMove=function(g){var r=this.containerIsActuallyContent_?Y9n:zM(kY(this.containerNode_)),E=this.horizontalScrolling_?this.calculateScrollDelta(g.clientX+r.x,this.scrollBounds_.left,this.scrollBounds_.width):0,B=this.calculateScrollDelta(g.clientY+r.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=E;this.scrollDelta_.y=B;!(E=!E&&!B)&&(E=this.constrainScroll_)&&(E=g.clientX+r.x,g=g.clientY+r.y,r=this.containerBounds_,E=!(r.left<=E&&r.left+r.width>=
E&&r.top<=g&&r.top+r.height>=g));E?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
BE.prototype.calculateScrollDelta=function(g,r,E){var B=0;g<r?B=-8:g>r+E&&(B=8);return B};
BE.prototype.disposeInternal=function(){BE.superClass_.disposeInternal.call(this);this.JSC$9430_eventHandler_.dispose();this.scrollTimer_.dispose()};var R9w={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"}}},eB=R9w;eB=R9w;var WU={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 nDT=function(){},mu=function(g){if(typeof g=="number"){var r=new nDT;
r.standardOffset_=g;var E=g;if(E==0)E="Etc/GMT";else{var B=["Etc/GMT",E<0?"-":"+"];E=Math.abs(E);B.push(Math.floor(E/60)%100);E%=60;E!=0&&B.push(":",_.dc(E,2));E=B.join("")}r.timeZoneId_=E;E=g;E==0?E="UTC":(B=["UTC",E<0?"+":"-"],E=Math.abs(E),B.push(Math.floor(E/60)%100),E%=60,E!=0&&B.push(":",E),E=B.join(""));g=scT(g);r.tzNames_=[E,E];r.tzNamesExt_={STD_LONG_NAME_GMT:g,STD_GENERIC_LOCATION:g};r.transitions_=[];return r}r=new nDT;r.timeZoneId_=g.id;r.standardOffset_=-g.std_offset;r.tzNames_=g.names;
r.tzNamesExt_=g.names_ext;r.transitions_=g.transitions;return r},scT=function(g){var r=["GMT"];
r.push(g<=0?"+":"-");g=Math.abs(g);r.push(_.dc(Math.floor(g/60)%100,2),":",_.dc(g%60,2));return r.join("")},fzm=function(g,r){r=Date.UTC(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes())/36E5;
for(var E=0;E<g.transitions_.length&&r>=g.transitions_[E];)E+=2;return E==0?0:g.transitions_[E-1]},$r4=function(g,r){g=g.standardOffset_-fzm(g,r);
return g===-1440?0:g};var cs=function(g,r){this.patternParts_=[];this.JSC$9443_dateTimeSymbols_=r||n0;typeof g=="number"?jcD(this,g):Aj4(this,g)},bfn=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],Ci=function(g){return g.getHours?g.getHours():0},Aj4=function(g,r){for(gQD&&(r=r.replace(/\u200f/g,""));r;){for(var E=r,B=0;B<bfn.length;++B){var w=r.match(bfn[B]);
if(w){var O=w[0];r=r.substring(O.length);B==0&&(O=="''"?O="'":(O=O.substring(1,w[1]=="'"?O.length-1:O.length),O=O.replace(/''/g,"'")));g.patternParts_.push({text:O,type:B});break}}if(E===r)throw Error("ae`"+r);}};
cs.prototype.format=function(g,r){if(!g)throw Error("be");var E=r?(g.getTimezoneOffset()-$r4(r,g))*6E4:0,B=E?new Date(g.getTime()+E):g,w=B;r&&B.getTimezoneOffset()!=g.getTimezoneOffset()&&(B=new Date(B.getTime()+(B.getTimezoneOffset()-g.getTimezoneOffset())*6E4),w=new Date(g.getTime()+(E+(E>0?-864E5:864E5))));E=[];for(var O=0;O<this.patternParts_.length;++O){var M=this.patternParts_[O].text;1==this.patternParts_[O].type?E.push(Jjb(this,M,g,B,w,r)):E.push(M)}return E.join("")};
var jcD=function(g,r){if(r<4)var E=g.JSC$9443_dateTimeSymbols_.DATEFORMATS[r];else if(r<8)E=g.JSC$9443_dateTimeSymbols_.TIMEFORMATS[r-4];else if(r<12)E=g.JSC$9443_dateTimeSymbols_.DATETIMEFORMATS[r-8],E=E.replace("{1}",g.JSC$9443_dateTimeSymbols_.DATEFORMATS[r-8]),E=E.replace("{0}",g.JSC$9443_dateTimeSymbols_.TIMEFORMATS[r-8]);else if(r===12)E=g.JSC$9443_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(r===13)E=g.JSC$9443_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{jcD(g,10);return}Aj4(g,E)},Ki=function(g,r){r=String(r);
g=g.JSC$9443_dateTimeSymbols_||n0;if(g.ZERODIGIT!==void 0&&!TyD){for(var E=[],B=0;B<r.length;B++){var w=r.charCodeAt(B);E.push(48<=w&&w<=57?String.fromCharCode(g.ZERODIGIT+w-48):r.charAt(B))}r=E.join("")}return r},TyD=!1,gQD=!1,t9Z=function(g,r,E,B){E=E.getFullYear();
E<=0&&B&&(E=1-E);return Ki(g,P1n(E,r))},P1n=function(g,r){r==2&&(g%=100);
g<0&&r++;return _.dc(g,r)},xC=function(g){if(!(g.getHours&&g.getSeconds&&g.getMinutes))throw Error("ce");
},Fu4=function(g,r){xC(r);
r=Ci(r);return g.JSC$9443_dateTimeSymbols_.AMPMS[r>=12&&r<24?1:0]},Jjb=function(g,r,E,B,w,O){var M=r.length;
switch(r.charAt(0)){case "G":return E=B.getFullYear()>0?1:0,M>=4?g.JSC$9443_dateTimeSymbols_.ERANAMES[E]:g.JSC$9443_dateTimeSymbols_.ERAS[E];case "y":return t9Z(g,M,B,!0);case "Y":return E=(new Date(WZ4(B.getFullYear(),B.getMonth(),B.getDate(),g.JSC$9443_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,g.JSC$9443_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),M==2&&(E%=100),Ki(g,P1n(E,M));case "u":return t9Z(g,M,B,!1);case "M":a:switch(E=B.getMonth(),M){case 5:M=g.JSC$9443_dateTimeSymbols_.NARROWMONTHS[E];break a;
case 4:M=g.JSC$9443_dateTimeSymbols_.MONTHS[E];break a;case 3:M=g.JSC$9443_dateTimeSymbols_.SHORTMONTHS[E];break a;default:M=Ki(g,_.dc(E+1,M))}return M;case "k":return xC(w),Ki(g,_.dc(Ci(w)||24,M));case "S":return Ki(g,(w.getMilliseconds()/1E3).toFixed(Math.min(3,M)).slice(2)+(M>3?_.dc(0,M-3):""));case "E":return E=B.getDay(),M>=4?g.JSC$9443_dateTimeSymbols_.WEEKDAYS[E]:g.JSC$9443_dateTimeSymbols_.SHORTWEEKDAYS[E];case "a":return Fu4(g,w);case "b":return Fu4(g,w);case "B":return Fu4(g,w);case "h":return xC(w),
Ki(g,_.dc(Ci(w)%12||12,M));case "K":return xC(w),Ki(g,_.dc(Ci(w)%12,M));case "H":return xC(w),Ki(g,_.dc(Ci(w),M));case "c":a:switch(E=B.getDay(),M){case 5:M=g.JSC$9443_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[E];break a;case 4:M=g.JSC$9443_dateTimeSymbols_.STANDALONEWEEKDAYS[E];break a;case 3:M=g.JSC$9443_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[E];break a;default:M=Ki(g,_.dc(E,1))}return M;case "L":a:switch(E=B.getMonth(),M){case 5:M=g.JSC$9443_dateTimeSymbols_.STANDALONENARROWMONTHS[E];break a;
case 4:M=g.JSC$9443_dateTimeSymbols_.STANDALONEMONTHS[E];break a;case 3:M=g.JSC$9443_dateTimeSymbols_.STANDALONESHORTMONTHS[E];break a;default:M=Ki(g,_.dc(E+1,M))}return M;case "Q":return E=Math.floor(B.getMonth()/3),M<4?g.JSC$9443_dateTimeSymbols_.SHORTQUARTERS[E]:g.JSC$9443_dateTimeSymbols_.QUARTERS[E];case "d":return Ki(g,_.dc(B.getDate(),M));case "m":return xC(w),Ki(g,_.dc(w.getMinutes?w.getMinutes():0,M));case "s":return xC(w),Ki(g,_.dc(w.getSeconds(),M));case "v":return(O||mu(E.getTimezoneOffset())).timeZoneId_;
case "V":return g=O||mu(E.getTimezoneOffset()),M<=2?g.timeZoneId_:fzm(g,E)>0?g.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?g.tzNamesExt_.DST_GENERIC_LOCATION:g.tzNamesExt_.DST_GENERIC_LOCATION:g.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?g.tzNamesExt_.STD_GENERIC_LOCATION:g.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return E=WZ4(w.getFullYear(),w.getMonth(),w.getDate(),g.JSC$9443_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,g.JSC$9443_dateTimeSymbols_.FIRSTDAYOFWEEK),Ki(g,_.dc(Math.floor(Math.round((E-(new Date((new Date(E)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,M));case "z":return g=O||mu(E.getTimezoneOffset()),M<4?g.tzNames_[fzm(g,E)>0?2:0]:g.tzNames_[fzm(g,E)>0?3:1];case "Z":return r=O||mu(E.getTimezoneOffset()),M<4?(M=-$r4(r,E),g=[M<0?"-":"+"],M=Math.abs(M),g.push(_.dc(Math.floor(M/60)%100,2),_.dc(M%60,2)),M=g.join("")):M=Ki(g,scT($r4(r,E))),M;default:return""}};var e9w=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,Wu6=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,yJA=function(g){this.patternParts_=[];this.JSC$9452_dateTimeSymbols_=n0;if(typeof g=="number"){g>11&&(g=10);if(g<4)var r=this.JSC$9452_dateTimeSymbols_.DATEFORMATS[g];else g<8?r=this.JSC$9452_dateTimeSymbols_.TIMEFORMATS[g-4]:(r=this.JSC$9452_dateTimeSymbols_.DATETIMEFORMATS[g-8],r=r.replace("{1}",this.JSC$9452_dateTimeSymbols_.DATEFORMATS[g-8]),r=r.replace("{0}",this.JSC$9452_dateTimeSymbols_.TIMEFORMATS[g-
8]));C16(this,r)}else C16(this,g)},C16=function(g,r){for(var E=!1,B="",w=0;w<r.length;w++){var O=r.charAt(w);
if(e9w.test(O))for(B.length>0&&(g.patternParts_.push({text:B,count:0,abutStart:!1,numeric:!1}),B=""),g.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});w<r.length-1&&r.charAt(w+1)==" ";)w++;else if(E)O=="'"?w+1<r.length&&r.charAt(w+1)=="'"?(B+="'",w++):E=!1:B+=O;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(O)>=0){B.length>0&&(g.patternParts_.push({text:B,count:0,abutStart:!1,numeric:!1}),B="");for(var M=r.charAt(w),u=w+1;u<r.length&&r.charAt(u)==M;)u++;M=u-w;M<=0?u=!1:(u="MydhHmsSDkK".indexOf(O),
u=u>0||u==0&&M<3);g.patternParts_.push({text:O,count:M,abutStart:!1,numeric:u});w+=M-1}else O=="'"?w+1<r.length&&r.charAt(w+1)=="'"?(B+="'",w++):E=!0:B+=O}B.length>0&&g.patternParts_.push({text:B,count:0,abutStart:!1,numeric:!1});r=!1;for(E=0;E<g.patternParts_.length;E++)g.patternParts_[E].numeric?!r&&E+1<g.patternParts_.length&&g.patternParts_[E+1].numeric&&(r=!0,g.patternParts_[E].abutStart=!0):r=!1};
yJA.prototype.parse=function(g,r,E){var B=!1,w=!1;E&&(B=E.predictive||!1,w=E.validate||!1);if(B)for(E=0;E<this.patternParts_.length;E++){var O=this.patternParts_[E];if(O.count>0&&("abBhHkKm".indexOf(O.text.charAt(0))<0||O.count>2||O.abutStart))throw Error("de`"+O.text.charAt(0));}O=new KuT;E=[0];O.dayPeriodIndex=-1;for(var M=0;M<this.patternParts_.length&&!(B&&E[0]>=g.length);M++){if(this.patternParts_[M].count==0){a:{var u=g;var l=E,Q=this.patternParts_[M],z=B;if(Q.text.match(e9w)!=null){if(Q=l[0],
xrw(u,l),l[0]>Q){u=!0;break a}}else{if(u.indexOf(Q.text,l[0])==l[0]){l[0]+=Q.text.length;u=!0;break a}if(z&&Q.text.indexOf(u.substring(l[0]))==0){l[0]+=u.length-l[0];u=!0;break a}}u=!1}if(u)continue;return 0}if(this.patternParts_[M].abutStart){a:{l=g;Q=E;z=M;var k=Q[0],H=0;for(u=z;u<this.patternParts_.length;u++){var R=this.patternParts_[u],A=R.count;if(A===0)break;if(u==z&&(A-=H,H++,A==0)){u=0;break a}var J=u>z&&R.numeric,e=Q[0];if(!azm(this,l,Q,R,A,O,!1)||J&&Q[0]-e<A)u=z-1,Q[0]=k}u-=z}if(u<=0)return 0;
M+=u-1}else if(!azm(this,g,E,this.patternParts_[M],0,O,B))return 0}a:{g=w;if(r==null)throw Error("ee");O.era!=void 0&&O.year!=void 0&&O.era==0&&O.year>0&&(O.year=-(O.year-1));O.year!=void 0&&r.setFullYear(O.year);B=r.getDate();r.setDate(1);O.month!=void 0&&r.setMonth(O.month);O.day!=void 0?r.setDate(O.day):(w=f5B(r.getFullYear(),r.getMonth()),r.setDate(B>w?w:B));typeof r.setHours==="function"&&(O.hours==void 0&&(O.hours=r.getHours()),O.hours<12&&(O.ampm!=void 0&&O.ampm>0?O.hours+=12:O.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(O.dayPeriodName)||["night1","night2"].includes(O.dayPeriodName)&&O.hours>=6)&&(O.hours+=12)),r.setHours(O.hours));typeof r.setMinutes==="function"&&O.minutes!=void 0&&r.setMinutes(O.minutes);typeof r.setSeconds==="function"&&O.seconds!=void 0&&r.setSeconds(O.seconds);typeof r.setMilliseconds==="function"&&O.milliseconds!=void 0&&r.setMilliseconds(O.milliseconds);if(g&&(O.year&&O.year!=r.getFullYear()||O.month&&O.month!=
r.getMonth()||O.day&&O.day!=r.getDate()||O.hours&&O.hours>=24||O.minutes&&O.minutes>=60||O.seconds&&O.seconds>=60||O.milliseconds&&O.milliseconds>=1E3))r=!1;else{O.tzOffset!=void 0&&r.setTime(r.getTime()+(O.tzOffset-r.getTimezoneOffset())*60*1E3);O.ambiguousYear&&(g=new Date,g.setFullYear(g.getFullYear()-80),r.getTime()<g.getTime()&&r.setFullYear(g.getFullYear()+100));if(O.dayOfWeek!=void 0)if(O.day==void 0)O=(7+O.dayOfWeek-r.getDay())%7,O>3&&(O-=7),g=r.getMonth(),r.setDate(r.getDate()+O),r.getMonth()!=
g&&r.setDate(r.getDate()+(O>0?-7:7));else if(O.dayOfWeek!=r.getDay()){r=!1;break a}r=!0}}return r?E[0]:0};
var azm=function(g,r,E,B,w,O,M){xrw(r,E);if(B.numeric&&w>0&&E[0]+w>r.length)return!1;switch(B.text.charAt(0)){case "G":return a4(r,E,[g.JSC$9452_dateTimeSymbols_.ERAS],function(u){return O.era=u}),!0;
case "M":case "L":return Xsz(g,r,E,w,B,O);case "E":return a4(r,E,[g.JSC$9452_dateTimeSymbols_.WEEKDAYS,g.JSC$9452_dateTimeSymbols_.SHORTWEEKDAYS],function(u){return O.dayOfWeek=u});
case "B":case "b":return w=[],g=[[].concat(g.JSC$9452_dateTimeSymbols_.AMPMS)],w.push("isAm"),w.push("isPm"),r=a4(r,E,g,function(u){return O.dayPeriodIndex=u},M),O.dayPeriodName=w[O.dayPeriodIndex],M?r:!0;
case "a":return r=a4(r,E,[g.JSC$9452_dateTimeSymbols_.AMPMS],function(u){return O.ampm=u},M),M?r:!0;
case "y":return NzA(g,r,E,B,w,O);case "Q":return a4(r,E,[g.JSC$9452_dateTimeSymbols_.QUARTERS,g.JSC$9452_dateTimeSymbols_.SHORTQUARTERS],function(u){O.month=u*3;O.day=1});
case "d":return XP(g,r,E,B,w,function(u){O.day=u}),!0;
case "S":return IzD(g,r,E,w,O);case "h":case "K":case "H":case "k":return r=XP(g,r,E,B,w,function(u){O.hours=B.text.charAt(0)==="h"&&u===12?0:u},M),M?r:!0;
case "m":return r=XP(g,r,E,B,w,function(u){O.minutes=u},M),M?r:!0;
case "s":return XP(g,r,E,B,w,function(u){O.seconds=u}),!0;
case "z":case "Z":case "v":return mrT(g,r,E,O);default:return!1}},NzA=function(g,r,E,B,w,O){var M=E[0];
w=I4(g,r,E,w);w===null&&(w=I4(g,r,E,0,!0));if(w===null)return!1;w>=0&&E[0]-M==2&&B.count==2?(g=w,r=(new Date).getFullYear()-80,E=r%100,O.ambiguousYear=g==E,g+=Math.floor(r/100)*100+(g<E?100:0),O.year=g):O.year=w;return!0},Xsz=function(g,r,E,B,w,O){return w.numeric&&XP(g,r,E,w,B,function(M){O.month=M-1})?!0:a4(r,E,[g.JSC$9452_dateTimeSymbols_.MONTHS,
g.JSC$9452_dateTimeSymbols_.STANDALONEMONTHS,g.JSC$9452_dateTimeSymbols_.SHORTMONTHS,g.JSC$9452_dateTimeSymbols_.STANDALONESHORTMONTHS],function(M){O.month=M})},IzD=function(g,r,E,B,w){var O=E[0];
g=I4(g,r,E,B);if(g===null)return!1;E=E[0]-O;w.milliseconds=E<3?g*Math.pow(10,3-E):Math.round(g/Math.pow(10,E-3));return!0},mrT=function(g,r,E,B){r.indexOf("GMT",E[0])==E[0]&&(E[0]+=3);
if(E[0]>=r.length)return B.tzOffset=0,!0;var w=E[0],O=I4(g,r,E,0,!0);if(O===null)return!1;if(E[0]<r.length&&r.charAt(E[0])==":"){var M=O*60;E[0]++;O=I4(g,r,E,0);if(O===null)return!1;M+=O}else M=O,M=M<24&&E[0]-w<=3?M*60:M%100+M/100*60;B.tzOffset=-M;return!0},XP=function(g,r,E,B,w,O,M){M=M||!1;
var u=E[0];g=I4(g,r,E,w);if(g===null)return!1;if(M&&E[0]-u<B.count){if(E[0]<r.length)return!1;g*=Math.pow(10,B.count-(E[0]-u))}O(g);return!0},a4=function(g,r,E,B,w){w=w||!1;
for(var O,M=0;M<E.length;M++){O=r;for(var u=E[M],l=w,Q=0,z=null,k=g.substring(O[0]).toLowerCase(),H=0;H<u.length;H++){var R=u[H].toLowerCase();if(l&&R.indexOf(k)==0){Q=k.length;z=H;break}u[H].length>Q&&k.indexOf(R)==0&&(Q=u[H].length,z=H)}z!==null&&(O[0]+=Q);O=z;if(O!==null)return B(O),!0}return!1},xrw=function(g,r){(g=g.substring(r[0]).match(Wu6))&&(r[0]+=g[0].length)},I4=function(g,r,E,B,w){r=B>0?r.substring(0,E[0]+B):r;
w=w||!1;if(g.JSC$9452_dateTimeSymbols_.ZERODIGIT){B=[];for(var O=E[0];O<r.length;O++){var M=r.charCodeAt(O)-g.JSC$9452_dateTimeSymbols_.ZERODIGIT;B.push(0<=M&&M<=9?String.fromCharCode(M+48):r.charAt(O))}r=B.join("")}else r=r.substring(E[0]);g=r.match(new RegExp("^"+(w?"[+-]?":"")+"\\d+"));if(!g)return null;E[0]+=g[0].length;return parseInt(g[0],10)},KuT=function(){};
KuT.prototype.ambiguousYear=!1;_.cjn={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 ifm={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"},LuI=ifm,V9D=ifm;V9D=LuI=ifm;var Zfw,m4,iz,kXJ,cU,h9b;
_.Xc=function(g,r,E,B){var w;if(w=r){a:if(r&&r.length===3){for(w=0;w<3;w++){var O=r[w];if(O<"A"||O>"Z"&&O<"a"||O>"z"){w=!1;break a}}w=!0}else w=!1;w=!w}if(w)throw new TypeError("fe");this.intlCurrencyCode_=r?r.toUpperCase():null;this.currencyStyle_=E||0;this.overrideNumberFormatSymbols_=B||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_=m4(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof g==="number")switch(g){case 1:cU(this,m4(this).DECIMAL_PATTERN);break;case 2:cU(this,m4(this).SCIENTIFIC_PATTERN);break;case 3:cU(this,m4(this).PERCENT_PATTERN);break;case 4:g=m4(this).CURRENCY_PATTERN;r=["0"];if(E=
WU[iz(this)]){E=E[0]&7;if(E>0)for(r.push("."),B=0;B<E;B++)r.push("0");g=g.replace(/0.00/g,r.join(""))}cU(this,g);break;case 5:h9b(this,1);break;case 6:h9b(this,2);break;default:throw Error("ie");}else cU(this,g)};
Zfw=!1;m4=function(g){return g.overrideNumberFormatSymbols_||(Zfw?V9D:LuI)};
iz=function(g){return g.intlCurrencyCode_||m4(g).DEF_CURRENCY_CODE};
kXJ=function(g,r){if(r>308)throw Error("he`"+r);g.maximumFractionDigits_=r;return g};
cU=function(g,r){var E=[0];g.positivePrefix_=yjT(g,r,E);for(var B=E[0],w=-1,O=0,M=0,u=0,l=-1,Q=r.length,z=!0;E[0]<Q&&z;E[0]++)switch(r.charAt(E[0])){case "#":M>0?u++:O++;l>=0&&w<0&&l++;break;case "0":if(u>0)throw Error("oe`"+r);M++;l>=0&&w<0&&l++;break;case ",":l>0&&g.groupingArray_.push(l);l=0;break;case ".":if(w>=0)throw Error("pe`"+r);w=O+M+u;break;case "E":if(g.useExponentialNotation_)throw Error("qe`"+r);g.useExponentialNotation_=!0;g.minExponentDigits_=0;E[0]+1<Q&&r.charAt(E[0]+1)=="+"&&(E[0]++,
g.useSignForPositiveExponent_=!0);for(;E[0]+1<Q&&r.charAt(E[0]+1)=="0";)E[0]++,g.minExponentDigits_++;if(O+M<1||g.minExponentDigits_<1)throw Error("re`"+r);z=!1;break;default:E[0]--,z=!1}M==0&&O>0&&w>=0&&(M=w,M==0&&M++,u=O-M,O=M-1,M=1);if(w<0&&u>0||w>=0&&(w<O||w>O+M)||l==0)throw Error("se`"+r);u=O+M+u;g.maximumFractionDigits_=w>=0?u-w:0;w>=0&&(g.minimumFractionDigits_=O+M-w,g.minimumFractionDigits_<0&&(g.minimumFractionDigits_=0));g.minimumIntegerDigits_=(w>=0?w:u)-O;g.useExponentialNotation_&&(g.maximumIntegerDigits_=
O+g.minimumIntegerDigits_,g.maximumFractionDigits_==0&&g.minimumIntegerDigits_==0&&(g.minimumIntegerDigits_=1));g.groupingArray_.push(Math.max(0,l));g.decimalSeparatorAlwaysShown_=w==0||w==u;B=E[0]-B;g.positiveSuffix_=yjT(g,r,E);E[0]<r.length&&r.charAt(E[0])==";"?(E[0]++,g.multiplier_!=1&&(g.negativePercentSignExpected_=!0),g.negativePrefix_=yjT(g,r,E),E[0]+=B,g.negativeSuffix_=yjT(g,r,E)):(g.negativePrefix_+=g.positivePrefix_,g.negativeSuffix_+=g.positiveSuffix_)};
h9b=function(g,r){g.compactStyle_=r;cU(g,m4(g).DECIMAL_PATTERN);g.minimumFractionDigits_=0;kXJ(g,2);if(g.minimumFractionDigits_>0)throw Error("ge");g.significantDigits_=2};
_.Xc.prototype.parse=function(g,r){r=r||[0];if(this.compactStyle_!==0)throw Error("je");g=g.replace(/ |\u202f/g,"\u00a0");var E=g.indexOf(this.positivePrefix_,r[0])==r[0],B=g.indexOf(this.negativePrefix_,r[0])==r[0];E&&B&&(this.positivePrefix_.length>this.negativePrefix_.length?B=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(E=!1));E?r[0]+=this.positivePrefix_.length:B&&(r[0]+=this.negativePrefix_.length);if(g.indexOf(m4(this).INFINITY,r[0])==r[0]){r[0]+=m4(this).INFINITY.length;var w=
Infinity}else{w=g;var O=!1,M=!1,u=!1,l=-1,Q=1,z=m4(this).DECIMAL_SEP,k=m4(this).GROUP_SEP,H=m4(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ke");k=k.replace(/\u202f/g,"\u00a0");for(var R="";r[0]<w.length;r[0]++){var A=w.charAt(r[0]),J=vDI(this,A);if(J>=0&&J<=9)R+=J,u=!0;else if(A==z.charAt(0)){if(O||M)break;R+=".";O=!0}else if(A==k.charAt(0)&&("\u00a0"!=k.charAt(0)||r[0]+1<w.length&&vDI(this,w.charAt(r[0]+1))>=0)){if(O||M)break}else if(A==H.charAt(0)){if(M)break;R+="E";M=!0;l=r[0]}else if(A==
"+"||A=="-"){if(u&&l!=r[0]-1)break;R+=A}else if(this.multiplier_==1&&A==m4(this).PERCENT.charAt(0)){if(Q!=1)break;Q=100;if(u){r[0]++;break}}else if(this.multiplier_==1&&A==m4(this).PERMILL.charAt(0)){if(Q!=1)break;Q=1E3;if(u){r[0]++;break}}else break}this.multiplier_!=1&&(Q=this.multiplier_);w=parseFloat(R)/Q}if(E){if(g.indexOf(this.positiveSuffix_,r[0])!=r[0])return NaN;r[0]+=this.positiveSuffix_.length}else if(B){if(g.indexOf(this.negativeSuffix_,r[0])!=r[0])return NaN;r[0]+=this.negativeSuffix_.length}return B?
-w:w};
_.Xc.prototype.format=function(g){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("le");if(isNaN(g))return m4(this).NAN;var r=[];var E=g;if(this.compactStyle_==0)E=Li;else{E=Math.abs(E);var B=dr4(this,E<=1?0:TzA(E)).divisorBase;E=dr4(this,B+TzA(gab(this,Vo(E,-B)).intValue))}g=Vo(g,-E.divisorBase);(B=g<0||g==0&&1/g<0)?E.negative_prefix?r.push(E.negative_prefix):(r.push(E.prefix),r.push(this.negativePrefix_)):(r.push(E.prefix),r.push(this.positivePrefix_));if(isFinite(g))if(g*=
B?-1:1,g*=this.multiplier_,this.useExponentialNotation_){var w=g;if(w==0)rOZ(this,w,this.minimumIntegerDigits_,r),Eaw(this,0,r);else{var O=Math.floor(Math.log(w)/Math.log(10)+2E-15);w=Vo(w,-O);var M=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(M=O%this.maximumIntegerDigits_,M<0&&(M=this.maximumIntegerDigits_+M),w=Vo(w,M),O-=M,M=1):this.minimumIntegerDigits_<1?(O++,w=Vo(w,-1)):(O-=this.minimumIntegerDigits_-1,w=Vo(w,this.minimumIntegerDigits_-
1));rOZ(this,w,M,r);Eaw(this,O,r)}}else rOZ(this,g,this.minimumIntegerDigits_,r);else r.push(m4(this).INFINITY);B?E.negative_suffix?r.push(E.negative_suffix):(isFinite(g)&&r.push(E.suffix),r.push(this.negativeSuffix_)):(isFinite(g)&&r.push(E.suffix),r.push(this.positiveSuffix_));return r.join("")};
var gab=function(g,r){var E=Vo(r,g.maximumFractionDigits_);g.significantDigits_>0&&(E=BbZ(E,g.significantDigits_,g.maximumFractionDigits_));E=Math.round(E);if(isFinite(E)){var B=Math.floor(Vo(E,-g.maximumFractionDigits_));E=Math.floor(E-Vo(B,g.maximumFractionDigits_));if(E<0||E>=Vo(1,g.maximumFractionDigits_))B=Math.round(r),E=0}else B=r,E=0;return{intValue:B,fracValue:E}},rOZ=function(g,r,E,B){if(g.minimumFractionDigits_>g.maximumFractionDigits_)throw Error("le");
B||(B=[]);r=gab(g,r);var w=r.intValue,O=r.fracValue,M=g.minimumFractionDigits_>0||O>0||!1;r=g.minimumFractionDigits_;M&&(r=g.minimumFractionDigits_);for(var u="",l=w;l>1E20;)u="0"+u,l=Math.round(Vo(l,-1));u=l+u;var Q=m4(g).DECIMAL_SEP;l=m4(g).ZERO_DIGIT.codePointAt(0);var z=u.length,k=0;if(w>0||E>0){for(w=z;w<E;w++)B.push(String.fromCodePoint(l));if(g.groupingArray_.length>=2)for(E=1;E<g.groupingArray_.length;E++)k+=g.groupingArray_[E];E=z-k;if(E>0){w=g.groupingArray_;k=z=0;for(var H,R=m4(g).GROUP_SEP,
A=u.length,J=0;J<A;J++)if(B.push(String.fromCodePoint(l+Number(u.charAt(J)))),A-J>1)if(H=w[k],J<E){var e=E-J;(H===1||H>0&&e%H===1)&&B.push(R)}else k<w.length&&(J===E?k+=1:H===J-E-z+1&&(B.push(R),z+=H,k+=1))}else{E=u;u=g.groupingArray_;w=m4(g).GROUP_SEP;H=E.length;R=[];for(z=u.length-1;z>=0&&H>0;z--){k=u[z];for(A=0;A<k&&H-A-1>=0;A++)R.push(String.fromCodePoint(l+Number(E.charAt(H-A-1))));H-=k;H>0&&R.push(w)}B.push.apply(B,R.reverse())}}else M||B.push(String.fromCodePoint(l));(g.decimalSeparatorAlwaysShown_||
M)&&B.push(Q);O=String(O);M=O.split("e+");M.length==2&&(O=String(BbZ(parseFloat(M[0]),g.significantDigits_,1)),O=O.replace(".",""),O+=(0,_.XGV)("0",parseInt(M[1],10)-O.length+1));g.maximumFractionDigits_+1>O.length&&(O="1"+(0,_.XGV)("0",g.maximumFractionDigits_-O.length)+O);for(g=O.length;O.charAt(g-1)=="0"&&g>r+1;)g--;for(r=1;r<g;r++)B.push(String.fromCodePoint(l+Number(O.charAt(r))))},Eaw=function(g,r,E){E.push(m4(g).EXP_SYMBOL);
r<0?(r=-r,E.push(m4(g).MINUS_SIGN)):g.useSignForPositiveExponent_&&E.push(m4(g).PLUS_SIGN);r=""+r;for(var B=m4(g).ZERO_DIGIT,w=r.length;w<g.minExponentDigits_;w++)E.push(B);g=B.codePointAt(0)-woA;for(B=0;B<r.length;B++)E.push(String.fromCodePoint(g+r.codePointAt(B)))},vDI=function(g,r){r=r.codePointAt(0);
if(48<=r&&r<58)return r-48;g=m4(g).ZERO_DIGIT.codePointAt(0);return g<=r&&r<g+10?r-g:-1},woA="0".codePointAt(0),yjT=function(g,r,E){for(var B="",w=!1,O=r.length;E[0]<O;E[0]++){var M=r.charAt(E[0]);
if(M=="'")E[0]+1<O&&r.charAt(E[0]+1)=="'"?(E[0]++,B+="'"):w=!w;else if(w)B+=M;else switch(M){case "#":case "0":case ",":case ".":case ";":return B;case "\u00a4":if(E[0]+1<O&&r.charAt(E[0]+1)=="\u00a4")E[0]++,B+=iz(g);else switch(g.currencyStyle_){case 0:M=iz(g);B+=M in WU?WU[M][1]:M;break;case 2:M=iz(g);var u=WU[M];B+=u?M==u[1]?M:M+" "+u[1]:M;break;case 1:M=iz(g),B+=M in WU?WU[M][2]:M}break;case "%":if(!g.negativePercentSignExpected_&&g.multiplier_!=1)throw Error("me");if(g.negativePercentSignExpected_&&
g.multiplier_!=100)throw Error("ne");g.multiplier_=100;g.negativePercentSignExpected_=!1;B+=m4(g).PERCENT;break;case "\u2030":if(!g.negativePercentSignExpected_&&g.multiplier_!=1)throw Error("me");if(g.negativePercentSignExpected_&&g.multiplier_!=1E3)throw Error("ne");g.multiplier_=1E3;g.negativePercentSignExpected_=!1;B+=m4(g).PERMILL;break;default:B+=M}}return B},Li={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},dr4=function(g,r){g=g.compactStyle_==1?eB.COMPACT_DECIMAL_SHORT_PATTERN:eB.COMPACT_DECIMAL_LONG_PATTERN;g==null&&(g=eB.COMPACT_DECIMAL_SHORT_PATTERN);if(r<3)return Li;r=Math.min(14,r);var E=g[Vo(1,r)];for(--r;!E&&r>=3;)E=g[Vo(1,r)],r--;if(!E)return Li;E=E.other;var B=g="",w=E.indexOf(";");w>=0&&(E=E.substring(0,w),w=E.substring(w+1))&&(B=/([^0]*)(0+)(.*)/.exec(w),g=B[1],B=B[3]);return E&&E!="0"?(E=/([^0]*)(0+)(.*)/.exec(E))?{divisorBase:r+
1-(E[2].length-1),negative_prefix:g,negative_suffix:B,prefix:E[1],suffix:E[3]}:Li:Li},TzA=function(g){if(!isFinite(g))return g>0?g:0;
for(var r=0;(g/=10)>=1;)r++;return r},Vo=function(g,r){if(!g||!isFinite(g)||r==0)return g;
g=String(g).split("e");return parseFloat(g[0]+"e"+(parseInt(g[1]||0,10)+r))},SP4=function(g,r){return g&&isFinite(g)?Vo(Math.round(Vo(g,r)),-r):g},BbZ=function(g,r,E){if(!g)return g;
r=r-TzA(g)-1;return r<-E?SP4(g,-E):SP4(g,r)};var Oy6=function(g){return g%10==1&&g%100!=11?"one":g%10==2&&g%100!=12?"two":g%10==3&&g%100!=13?"few":"other"},U86=Oy6;
U86=Oy6;var MNz;MNz=function(g,r){var E=g|0;if(void 0===r){r=Math;var B=r.min,w=g+"",O=w.indexOf(".");r=B.call(r,O===-1?0:w.length-O-1,3)}B=Math.pow(10,r);g={v:r,f:(g*B|0)%B};return E==1&&g.v==0?"one":"other"};
_.i1=MNz;_.i1=MNz;var qPz,uTD,l1b,oaw,GFm;_.D8b=function(g){this.JSC$9495_pattern_=g;this.parsedPattern_=this.literals_=this.initialLiterals_=null;g=LuI;var r=eB;if(qPz!==g||uTD!==r)qPz=g,uTD=r,l1b=new _.Xc(1);this.numberFormatter_=l1b};
qPz=null;uTD=null;l1b=null;oaw=RegExp("'([{}#].*?)'","g");GFm=RegExp("''","g");
_.D8b.prototype.format=function(g){if(this.JSC$9495_pattern_){this.initialLiterals_=[];var r=QJw(this,this.JSC$9495_pattern_);this.parsedPattern_=z8b(this,r);this.JSC$9495_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.ZQ(this.initialLiterals_),r=[],kFw(this,this.parsedPattern_,g,!1,r),g=r.join("");this.literals_.length>0;)g=g.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else g="";return g};
var kFw=function(g,r,E,B,w){for(var O=0;O<r.length;O++)switch(r[O].type){case 4:w.push(r[O].value);break;case 3:var M=r[O].value;var u=g,l=w,Q=E[M];Q===void 0?l.push("Undefined parameter - "+M):(u.literals_.push(Q),l.push(u.buildPlaceholder_(u.literals_)));break;case 2:M=r[O].value;u=g;l=E;Q=B;var z=w,k=M.argumentIndex;l[k]===void 0?z.push("Undefined parameter - "+k):(k=M[l[k]],k===void 0&&(k=M.other),kFw(u,k,l,Q,z));break;case 0:M=r[O].value;HyU(g,M,E,_.i1,B,w);break;case 1:M=r[O].value,HyU(g,M,
E,U86,B,w)}},HyU=function(g,r,E,B,w,O){var M=r.argumentIndex,u=r.argumentOffset,l=+E[M];
isNaN(l)?O.push("Undefined or invalid parameter - "+M):(u=l-u,M=r[E[M]],M===void 0&&(B=B(Math.abs(u)),M=r[B],M===void 0&&(M=r.other)),r=[],kFw(g,M,E,w,r),E=r.join(""),w?O.push(E):(g=g.numberFormatter_.format(u),O.push(E.replace(/#/g,g))))},QJw=function(g,r){var E=g.initialLiterals_,B=g.buildPlaceholder_.bind(g);
r=r.replace(GFm,function(){E.push("'");return B(E)});
return r=r.replace(oaw,function(w,O){E.push(O);return B(E)})},poz=function(g){var r=0,E=[],B=[],w=/[{}]/g;
w.lastIndex=0;for(var O;O=w.exec(g);){var M=O.index;O[0]=="}"?(E.pop(),E.length==0&&(O={type:1},O.value=g.substring(r,M),B.push(O),r=M+1)):(E.length==0&&(r=g.substring(r,M),r!=""&&B.push({type:0,value:r}),r=M+1),E.push("{"))}g=g.substring(r);g!=""&&B.push({type:0,value:g});return B},YP4=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,R8m=/^\s*(\w+)\s*,\s*selectordinal\s*,/,naT=/^\s*(\w+)\s*,\s*select\s*,/,z8b=function(g,r){var E=[];
r=poz(r);for(var B=0;B<r.length;B++){var w={};if(0==r[B].type)w.type=4,w.value=r[B].value;else if(1==r[B].type){var O=r[B].value;switch(YP4.test(O)?0:R8m.test(O)?1:naT.test(O)?2:/^\s*\w+\s*/.test(O)?3:5){case 2:w.type=2;w.value=sJZ(g,r[B].value);break;case 0:w.type=0;w.value=f1n(g,r[B].value);break;case 1:w.type=1;w.value=$8n(g,r[B].value);break;case 3:w.type=3,w.value=r[B].value}}E.push(w)}return E},sJZ=function(g,r){var E="";
r=r.replace(naT,function(u,l){E=l;return""});
var B={};B.argumentIndex=E;r=poz(r);for(var w=0;w<r.length;){var O=r[w].value;w++;var M=void 0;1==r[w].type&&(M=z8b(g,r[w].value));B[O.replace(/\s/g,"")]=M;w++}return B},f1n=function(g,r){var E="",B=0;
r=r.replace(YP4,function(l,Q,z){E=Q;z&&(B=parseInt(z,10));return""});
var w={};w.argumentIndex=E;w.argumentOffset=B;r=poz(r);for(var O=0;O<r.length;){var M=r[O].value;O++;var u=void 0;1==r[O].type&&(u=z8b(g,r[O].value));w[M.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=u;O++}return w},$8n=function(g,r){var E="";
r=r.replace(R8m,function(u,l){E=l;return""});
var B={};B.argumentIndex=E;B.argumentOffset=0;r=poz(r);for(var w=0;w<r.length;){var O=r[w].value;w++;var M=void 0;1==r[w].type&&(M=z8b(g,r[w].value));B[O.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=M;w++}return B};
_.D8b.prototype.buildPlaceholder_=function(g){return"\ufddf_"+(g.length-1).toString(10)+"_"};var jJ6;
jJ6={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 BTL=function(){this.rdtfSymbols_=AO4||jJ6;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
BTL.prototype.format=function(g,r){a:{r=by6(this,r);switch(this.style_){case 2:if(r.NARROW!=void 0){r=r.NARROW;break a}case 1:if(r.SHORT!=void 0){r=r.SHORT;break a}default:r=r.LONG;break a}r=void 0}if(!this.alwaysNumeric_&&r&&r.R&&r.R[""+g])g=r.R[""+g];else if(r){var E=Math.abs(g);g=(new _.D8b("{N,plural,"+(g>0||g==0&&1/g==Infinity?r.F:r.P)+"}")).format({N:E})}else g="";return g};
var by6=function(g,r){switch(r){default:case 0:return g.rdtfSymbols_.YEAR;case 1:return g.rdtfSymbols_.QUARTER;case 2:return g.rdtfSymbols_.MONTH;case 3:return g.rdtfSymbols_.WEEK;case 4:return g.rdtfSymbols_.DAY;case 5:return g.rdtfSymbols_.HOUR;case 6:return g.rdtfSymbols_.MINUTE;case 7:return g.rdtfSymbols_.SECOND}};var JOw=function(g,r,E,B,w,O,M,u){this.x0=g;this.y0=r;this.x1=E;this.y1=B;this.x2=w;this.y2=O;this.x3=M;this.y3=u};
JOw.prototype.clone=function(){return new JOw(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
JOw.prototype.equals=function(g){return this.x0==g.x0&&this.y0==g.y0&&this.x1==g.x1&&this.y1==g.y1&&this.x2==g.x2&&this.y2==g.y2&&this.x3==g.x3&&this.y3==g.y3};
var PFZ=function(g,r){if(r==0)return g.x0;if(r==1)return g.x3;var E=k4(g.x0,g.x1,r),B=k4(g.x1,g.x2,r);g=k4(g.x2,g.x3,r);E=k4(E,B,r);B=k4(B,g,r);return k4(E,B,r)},tNT=function(g,r){var E=(r-g.x0)/(g.x3-g.x0);
if(E<=0)return 0;if(E>=1)return 1;for(var B=0,w=1,O=0,M=0;M<8;M++){O=PFZ(g,E);var u=(PFZ(g,E+1E-6)-O)/1E-6;if(Math.abs(O-r)<1E-6)return E;if(Math.abs(u)<1E-6)break;else O<r?B=E:w=E,E-=(O-r)/u}for(M=0;Math.abs(O-r)>1E-6&&M<8;M++)O<r?(B=E,E=(E+w)/2):(w=E,E=(E+B)/2),O=PFZ(g,E);return E};var h2=function(){_.ze.call(this);this.JSC$9516_name_="closure_frame"+F$n++;this.iframesForDisposal_=[];e8w[this.JSC$9516_name_]=this},Z0;
_.rc(h2,_.ze);var e8w={},F$n=0,W$T=function(g,r){var E=kY(g);hEn(r,function(B,w){Array.isArray(B)||(B=[B]);_.mR(B,function(O){O=E.JSC$7416_createDom("INPUT",{type:"hidden",name:w,value:O});g.appendChild(O)})})};
_.S=h2.prototype;_.S.JSC$9518_form_=null;_.S.JSC$9518_iframe_=null;_.S.iframeName_=null;_.S.nextIframeId_=0;_.S.JSC$9518_active_=!1;_.S.complete_=!1;_.S.success_=!1;_.S.lastContent_=null;_.S.JSC$9518_lastErrorCode_=0;_.S.iframeDisposalTimer_=null;
_.S.send=function(g,r,E,B){if(this.JSC$9518_active_)throw Error("te");g=new _.Vk(g);r=r?r.toUpperCase():"GET";E&&_.EL(g);Z0||(Z0=_.Ro("FORM"),Z0.acceptCharset="utf-8",E=Z0.style,E.position="absolute",E.visibility="hidden",E.top=E.left="-10px",E.width=E.height="10px",E.overflow="hidden",document.body.appendChild(Z0));this.JSC$9518_form_=Z0;r=="GET"&&W$T(this.JSC$9518_form_,g.JSC$8122_queryData_);B&&W$T(this.JSC$9518_form_,B);E=g.toString();E=LDJ(E);B=this.JSC$9518_form_;E=_.jy(Gh(E));E!==void 0&&(B.action=
E);this.JSC$9518_form_.method=r;CF6(this);K$T(this)};
_.S.abort=function(g){if(this.JSC$9518_active_){var r=yo(this);if(r)if(ow(r))r.removeAllListeners(void 0);else if(r=Ge(r)){var E=0,B;for(B in r.listeners)for(var w=r.listeners[B].concat(),O=0;O<w.length;++O)s2(w[O])&&++E}this.success_=this.JSC$9518_active_=this.complete_=!1;this.JSC$9518_lastErrorCode_=g||7;this.dispatchEvent("abort");x8T(this)}};
_.S.disposeInternal=function(){this.JSC$9518_active_&&this.abort();h2.superClass_.disposeInternal.call(this);this.JSC$9518_iframe_&&a1U(this);K$T(this);this.JSC$9518_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9518_form_=null;this.JSC$9518_lastErrorCode_=0;delete e8w[this.JSC$9516_name_]};
_.S.isComplete=function(){return this.complete_};
_.S.isSuccess=function(){return this.success_};
_.S.isActive=function(){return this.JSC$9518_active_};
_.S.getResponseText=function(){return this.lastContent_};
_.S.getLastError=function(){return _.$O6(this.JSC$9518_lastErrorCode_)};
var CF6=function(g){g.JSC$9518_active_=!0;g.complete_=!1;g.JSC$9518_lastErrorCode_=0;g.iframeName_=g.JSC$9516_name_+"_"+(g.nextIframeId_++).toString(36);g.JSC$9518_iframe_=kY(g.JSC$9518_form_).JSC$7416_createDom("IFRAME",{name:g.iframeName_,id:g.iframeName_});var r=g.JSC$9518_iframe_.style;r.visibility="hidden";r.width=r.height="10px";r.display="none";_.Uz?r.marginTop=r.marginLeft="-10px":(r.position="absolute",r.top=r.left="-10px");kY(g.JSC$9518_form_).JSC$7414_document_.body.appendChild(g.JSC$9518_iframe_);
r=g.iframeName_+"_inner";var E=MUz(g.JSC$9518_iframe_);if(document.baseURI){var B=Ug(r);B='<head><base href="'+Ug(document.baseURI)+'"></head><body><iframe id="'+B+'" name="'+B+'"></iframe>';B=Ja(B)}else B=Ug(r),B=Ja('<body><iframe id="'+B+'" name="'+B+'"></iframe>');E.write(Pu(B));_.j_(E.getElementById(r),"load",g.onIframeLoaded_,!1,g);B=Yr("TEXTAREA",g.JSC$9518_form_);for(var w=0,O=B.length;w<O;w++){var M=B[w].value;GDD(B[w])!=M&&(_.b6(B[w],M),B[w].value=M)}B=E.importNode(g.JSC$9518_form_,!0);B.target=
r;B.action=g.JSC$9518_form_.action;E.body.appendChild(B);w=Yr("SELECT",g.JSC$9518_form_);O=Yr("SELECT",B);M=0;for(var u=w.length;M<u;M++)for(var l=Yr("OPTION",w[M]),Q=Yr("OPTION",O[M]),z=0,k=l.length;z<k;z++)Q[z].selected=l[z].selected;w=Yr("INPUT",g.JSC$9518_form_);O=Yr("INPUT",B);M=0;for(u=w.length;M<u;M++)if(w[M].type=="file"&&w[M].value!=O[M].value){g.JSC$9518_form_.target=r;B=g.JSC$9518_form_;break}try{g.errorHandled_=!1,B.submit(),E.close(),_.Oz&&setTimeout(g.testForFirefoxSilentError_.bind(g),
250)}catch(H){_.Qu(E.getElementById(r),"load",g.onIframeLoaded_,!1,g),E.close(),vU(g,2)}};
h2.prototype.onIframeLoaded_=function(){_.Qu(yo(this),"load",this.onIframeLoaded_,!1,this);try{var g=this.JSC$9518_iframe_?MUz(yo(this)):null;this.complete_=!0;this.JSC$9518_active_=!1;try{var r=g.body;this.lastContent_=r.textContent||r.innerText}catch(w){var E=1}var B;E||typeof this.errorChecker_!="function"||(B=this.errorChecker_(g))&&(E=4);E?vU(this,E):(this.success_=!0,this.JSC$9518_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),x8T(this))}catch(w){vU(this,1)}};
var vU=function(g,r){g.errorHandled_||(g.success_=!1,g.JSC$9518_active_=!1,g.complete_=!0,g.JSC$9518_lastErrorCode_=r,g.dispatchEvent("complete"),g.dispatchEvent("error"),x8T(g),g.errorHandled_=!0)},x8T=function(g){a1U(g);
K$T(g);g.JSC$9518_form_=null;g.dispatchEvent("ready")},a1U=function(g){var r=g.JSC$9518_iframe_;
r&&(r.onreadystatechange=null,r.onload=null,r.onerror=null,g.iframesForDisposal_.push(r));g.iframeDisposalTimer_&&(clearTimeout(g.iframeDisposalTimer_),g.iframeDisposalTimer_=null);_.Oz?g.iframeDisposalTimer_=setTimeout(g.disposeIframes_.bind(g),2E3):g.disposeIframes_();g.JSC$9518_iframe_=null;g.iframeName_=null};
h2.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var g=this.iframesForDisposal_.pop();_.p5(g)}};
var K$T=function(g){g.JSC$9518_form_&&g.JSC$9518_form_==Z0&&_.fV(g.JSC$9518_form_)},yo=function(g){return g.JSC$9518_iframe_?MUz(g.JSC$9518_iframe_).getElementById(g.iframeName_+"_inner"):null};
h2.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9518_active_){var g=this.JSC$9518_iframe_?MUz(yo(this)):null;g&&!Fm(g,"documentUri")?(_.Qu(yo(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?vU(this,3):vU(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.d3=function(g){return g=="\r"||g=="\n"||g==" "||g=="\t"};var XoD;_.TA=function(g){this.errorMessage_=null;this.result_=[];this.JSC$9520_buffer_="";this.stack_=[];this.JSC$9520_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!g||!g.deliverMessageAsRawString)};
XoD={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};_.TA.prototype.isInputValid=function(){return this.streamState_!=3};
_.TA.prototype.done=function(){return this.streamState_===2};
var gn=function(g,r,E){g.streamState_=3;g.errorMessage_="The stream is broken @"+g.JSC$9520_pos_+"/"+E+". With input:\n"+r;throw Error(g.errorMessage_);};
_.TA.prototype.acceptsBinaryInput=function(){return!1};
_.TA.prototype.parse=function(g){function r(){for(;H<g.length;)if(_.d3(g[H]))H++,O.JSC$9520_pos_++;else break;return H<Q}
function E(){for(var A;;){A=g[H++];if(!A)break;O.JSC$9520_pos_++;switch(O.state_){case l.INIT:A==="{"?O.state_=l.OBJECT_OPEN:A==="["?O.state_=l.ARRAY_OPEN:_.d3(A)||gn(O,g,H);continue;case l.KEY_START:case l.OBJECT_OPEN:if(_.d3(A))continue;if(O.state_===l.KEY_START)M.push(l.KEY_END);else if(A==="}"){w("{}");O.state_=B();continue}else M.push(l.OBJECT_END);A==='"'?O.state_=l.STRING:gn(O,g,H);continue;case l.KEY_END:case l.OBJECT_END:if(_.d3(A))continue;A===":"?(O.state_===l.OBJECT_END&&(M.push(l.OBJECT_END),
O.depth_++),O.state_=l.VALUE):A==="}"?(O.depth_--,w(),O.state_=B()):A===","?(O.state_===l.OBJECT_END&&M.push(l.OBJECT_END),O.state_=l.KEY_START):gn(O,g,H);continue;case l.ARRAY_OPEN:case l.VALUE:if(_.d3(A))continue;if(O.state_===l.ARRAY_OPEN)if(O.depth_++,O.state_=l.VALUE,A==="]"){O.depth_--;if(O.depth_===0){O.state_=l.ARRAY_END;return}w("[]");O.state_=B();continue}else M.push(l.ARRAY_END);A==='"'?O.state_=l.STRING:A==="{"?O.state_=l.OBJECT_OPEN:A==="["?O.state_=l.ARRAY_OPEN:A==="t"?O.state_=l.TRUE1:
A==="f"?O.state_=l.FALSE1:A==="n"?O.state_=l.NULL1:A!=="-"&&("0123456789".indexOf(A)!==-1?O.state_=l.NUM_DIGIT:gn(O,g,H));continue;case l.ARRAY_END:if(A===",")M.push(l.ARRAY_END),O.state_=l.VALUE,O.depth_===1&&(k=H);else if(A==="]"){O.depth_--;if(O.depth_===0)return;w();O.state_=B()}else if(_.d3(A))continue;else gn(O,g,H);continue;case l.STRING:var J=H;a:for(;;){for(;O.unicodeCount_>0;)if(A=g[H++],O.unicodeCount_===4?O.unicodeCount_=0:O.unicodeCount_++,!A)break a;if(A==='"'&&!O.slashed_){O.state_=
B();break}if(A==="\\"&&!O.slashed_&&(O.slashed_=!0,A=g[H++],!A))break;if(O.slashed_)if(O.slashed_=!1,A==="u"&&(O.unicodeCount_=1),A=g[H++])continue;else break;u.lastIndex=H;A=u.exec(g);if(!A){H=g.length+1;break}H=A.index+1;A=g[A.index];if(!A)break}O.JSC$9520_pos_+=H-J;continue;case l.TRUE1:if(!A)continue;A==="r"?O.state_=l.TRUE2:gn(O,g,H);continue;case l.TRUE2:if(!A)continue;A==="u"?O.state_=l.TRUE3:gn(O,g,H);continue;case l.TRUE3:if(!A)continue;A==="e"?O.state_=B():gn(O,g,H);continue;case l.FALSE1:if(!A)continue;
A==="a"?O.state_=l.FALSE2:gn(O,g,H);continue;case l.FALSE2:if(!A)continue;A==="l"?O.state_=l.FALSE3:gn(O,g,H);continue;case l.FALSE3:if(!A)continue;A==="s"?O.state_=l.FALSE4:gn(O,g,H);continue;case l.FALSE4:if(!A)continue;A==="e"?O.state_=B():gn(O,g,H);continue;case l.NULL1:if(!A)continue;A==="u"?O.state_=l.NULL2:gn(O,g,H);continue;case l.NULL2:if(!A)continue;A==="l"?O.state_=l.NULL3:gn(O,g,H);continue;case l.NULL3:if(!A)continue;A==="l"?O.state_=B():gn(O,g,H);continue;case l.NUM_DECIMAL_POINT:A===
"."?O.state_=l.NUM_DIGIT:gn(O,g,H);continue;case l.NUM_DIGIT:if("0123456789.eE+-".indexOf(A)!==-1)continue;else H--,O.JSC$9520_pos_--,O.state_=B();continue;default:gn(O,g,H)}}}
function B(){var A=M.pop();return A!=null?A:l.VALUE}
function w(A){O.depth_>1||(A||(A=k===-1?O.JSC$9520_buffer_+g.substring(z,H):g.substring(k,H)),O.deliverMessageAsRawString_?O.result_.push(A):O.result_.push(JSON.parse(A)),k=H)}
for(var O=this,M=O.stack_,u=O.stringInputPattern_,l=XoD,Q=g.length,z=0,k=-1,H=0;H<Q;)switch(O.streamState_){case 3:return gn(O,g,H),null;case 2:return r()&&gn(O,g,H),null;case 0:if(r()){var R=g[H++];O.JSC$9520_pos_++;if(R==="["){O.streamState_=1;z=H;O.state_=l.ARRAY_OPEN;continue}else gn(O,g,H)}return null;case 1:return E(),O.depth_===0&&O.state_==l.ARRAY_END?(O.streamState_=2,O.JSC$9520_buffer_=g.substring(H)):O.JSC$9520_buffer_=k===-1?O.JSC$9520_buffer_+g.substring(z):g.substring(k),O.result_.length>
0?(R=O.result_,O.result_=[],R):null}return null};_.rc(_.wU,sr);SG.prototype.getValue=function(){return this.JSC$9528_value_};
SG.prototype.clone=function(){return new SG(this.JSC$9528_key_,this.JSC$9528_value_)};var rn=function(g){this.nodes_=[];if(g)a:{if(g instanceof rn){var r=g.getKeys();g=g.getValues();if(this.getCount()<=0){for(var E=this.nodes_,B=0;B<r.length;B++)E.push(new SG(r[B],g[B]));break a}}else r=_.jn.getKeys(g),g=_.jn.getValues(g);for(E=0;E<r.length;E++)this.insert(r[E],g[E])}};
_.S=rn.prototype;_.S.insert=function(g,r){var E=this.nodes_;E.push(new SG(g,r));g=E.length-1;r=this.nodes_;for(E=r[g];g>0;){var B=g-1>>1;if(r[B].JSC$9528_key_>E.JSC$9528_key_)r[g]=r[B],g=B;else break}r[g]=E};
_.S.remove=function(){var g=this.nodes_,r=g.length,E=g[0];if(!(r<=0)){if(r==1)g.length=0;else{g[0]=g.pop();g=0;r=this.nodes_;for(var B=r.length,w=r[g];g<B>>1;){var O=g*2+1,M=g*2+2;O=M<B&&r[M].JSC$9528_key_<r[O].JSC$9528_key_?M:O;if(r[O].JSC$9528_key_>w.JSC$9528_key_)break;r[g]=r[O];g=O}r[g]=w}return E.getValue()}};
_.S.peek=function(){var g=this.nodes_;if(g.length!=0)return g[0].getValue()};
_.S.getValues=function(){for(var g=this.nodes_,r=[],E=g.length,B=0;B<E;B++)r.push(g[B].getValue());return r};
_.S.getKeys=function(){for(var g=this.nodes_,r=[],E=g.length,B=0;B<E;B++)r.push(g[B].JSC$9528_key_);return r};
_.S.containsValue=function(g){return this.nodes_.some(function(r){return r.getValue()==g})};
_.S.containsKey=function(g){return this.nodes_.some(function(r){return r.JSC$9528_key_==g})};
_.S.clone=function(){return new rn(this)};
_.S.getCount=function(){return this.nodes_.length};
_.S.isEmpty=function(){return this.nodes_.length===0};
_.S.clear=function(){this.nodes_.length=0};_.EX=function(g,r){this.JSC$9534_map_={};this.JSC$9534_keys_=[];this.version_=this.size=0;var E=arguments.length;if(E>1){if(E%2)throw Error("pa");for(var B=0;B<E;B+=2)this.set(arguments[B],arguments[B+1])}else g&&this.addAll(g)};
_.S=_.EX.prototype;_.S.getCount=function(){return this.size};
_.S.getValues=function(){BA(this);for(var g=[],r=0;r<this.JSC$9534_keys_.length;r++)g.push(this.JSC$9534_map_[this.JSC$9534_keys_[r]]);return g};
_.S.getKeys=function(){BA(this);return this.JSC$9534_keys_.concat()};
_.S.containsKey=function(g){return this.has(g)};
_.S.has=function(g){return wn(this.JSC$9534_map_,g)};
_.S.containsValue=function(g){for(var r=0;r<this.JSC$9534_keys_.length;r++){var E=this.JSC$9534_keys_[r];if(wn(this.JSC$9534_map_,E)&&this.JSC$9534_map_[E]==g)return!0}return!1};
_.S.equals=function(g,r){if(this===g)return!0;if(this.size!=g.getCount())return!1;r=r||NbD;BA(this);for(var E,B=0;E=this.JSC$9534_keys_[B];B++)if(!r(this.get(E),g.get(E)))return!1;return!0};
var NbD=function(g,r){return g===r};
_.EX.prototype.isEmpty=function(){return this.size==0};
_.EX.prototype.clear=function(){this.JSC$9534_map_={};this.version_=this.size=this.JSC$9534_keys_.length=0};
_.EX.prototype.remove=function(g){return this.delete(g)};
_.EX.prototype.delete=function(g){return wn(this.JSC$9534_map_,g)?(delete this.JSC$9534_map_[g],--this.size,this.version_++,this.JSC$9534_keys_.length>2*this.size&&BA(this),!0):!1};
var BA=function(g){if(g.size!=g.JSC$9534_keys_.length){for(var r=0,E=0;r<g.JSC$9534_keys_.length;){var B=g.JSC$9534_keys_[r];wn(g.JSC$9534_map_,B)&&(g.JSC$9534_keys_[E++]=B);r++}g.JSC$9534_keys_.length=E}if(g.size!=g.JSC$9534_keys_.length){r={};for(B=E=0;E<g.JSC$9534_keys_.length;){var w=g.JSC$9534_keys_[E];wn(r,w)||(g.JSC$9534_keys_[B++]=w,r[w]=1);E++}g.JSC$9534_keys_.length=B}};
_.S=_.EX.prototype;_.S.get=function(g,r){return wn(this.JSC$9534_map_,g)?this.JSC$9534_map_[g]:r};
_.S.set=function(g,r){wn(this.JSC$9534_map_,g)||(this.size+=1,this.JSC$9534_keys_.push(g),this.version_++);this.JSC$9534_map_[g]=r};
_.S.addAll=function(g){if(g instanceof _.EX)for(var r=g.getKeys(),E=0;E<r.length;E++)this.set(r[E],g.get(r[E]));else for(r in g)this.set(r,g[r])};
_.S.forEach=function(g,r){for(var E=this.getKeys(),B=0;B<E.length;B++){var w=E[B],O=this.get(w);g.call(r,O,w,this)}};
_.S.clone=function(){return new _.EX(this)};
_.S.transpose=function(){for(var g=new _.EX,r=0;r<this.JSC$9534_keys_.length;r++){var E=this.JSC$9534_keys_[r];g.set(this.JSC$9534_map_[E],E)}return g};
_.S.keys=function(){return oRw(this.__iterator__(!0)).toEs6()};
_.S.values=function(){return oRw(this.__iterator__(!1)).toEs6()};
_.S.entries=function(){var g=this;return Agm(this.keys(),function(r){return[r,g.get(r)]})};
_.S.__iterator__=function(g){BA(this);var r=0,E=this.version_,B=this,w=new Tg;w.next=function(){if(E!=B.version_)throw Error("ue");if(r>=B.JSC$9534_keys_.length)return g8;var O=B.JSC$9534_keys_[r++];return r8(g?O:B.JSC$9534_map_[O])};
return w};
var wn=function(g,r){return Object.prototype.hasOwnProperty.call(g,r)};var m8w=function(){this.JSC$9537_map_=new _.EX;this.JSC$9537_head_=new I1D("");this.JSC$9537_head_.next=this.JSC$9537_head_.prev=this.JSC$9537_head_},cOw=function(g,r){if(r=g.JSC$9537_map_.get(r))r.remove(),g.insert_(r);
return r};
_.S=m8w.prototype;_.S.get=function(g,r){return(g=cOw(this,g))?g.value:r};
_.S.set=function(g,r){var E=cOw(this,g);E?E.value=r:(E=new I1D(g,r),this.JSC$9537_map_.set(g,E),this.insert_(E))};
_.S.peek=function(){return this.JSC$9537_head_.next.value};
_.S.shift=function(){return iyz(this,this.JSC$9537_head_.next)};
_.S.pop=function(){return iyz(this,this.JSC$9537_head_.prev)};
_.S.remove=function(g){return(g=this.JSC$9537_map_.get(g))?(this.removeNode(g),!0):!1};
_.S.removeNode=function(g){g.remove();this.JSC$9537_map_.remove(g.key)};
_.S.getCount=function(){return this.JSC$9537_map_.getCount()};
_.S.isEmpty=function(){return this.JSC$9537_map_.isEmpty()};
_.S.getKeys=function(){return this.map(function(g,r){return r})};
_.S.getValues=function(){return this.map(function(g){return g})};
_.S.contains=function(g){return this.some(function(r){return r==g})};
_.S.containsKey=function(g){return this.JSC$9537_map_.containsKey(g)};
_.S.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9537_head_.prev)};
_.S.forEach=function(g,r){for(var E=this.JSC$9537_head_.next;E!=this.JSC$9537_head_;E=E.next)g.call(r,E.value,E.key,this)};
_.S.map=function(g,r){for(var E=[],B=this.JSC$9537_head_.next;B!=this.JSC$9537_head_;B=B.next)E.push(g.call(r,B.value,B.key,this));return E};
_.S.some=function(g,r){for(var E=this.JSC$9537_head_.next;E!=this.JSC$9537_head_;E=E.next)if(g.call(r,E.value,E.key,this))return!0;return!1};
_.S.every=function(g,r){for(var E=this.JSC$9537_head_.next;E!=this.JSC$9537_head_;E=E.next)if(!g.call(r,E.value,E.key,this))return!1;return!0};
_.S.insert_=function(g){g.next=this.JSC$9537_head_.next;g.prev=this.JSC$9537_head_;this.JSC$9537_head_.next=g;for(g.next.prev=g;this.getCount()>100;)this.removeNode(this.JSC$9537_head_.prev)};
var iyz=function(g,r){g.JSC$9537_head_!=r&&g.removeNode(r);return r.value},I1D=function(g,r){this.key=g;
this.value=r};
I1D.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var L$b=function(){rn.apply(this,arguments)};
_.f(L$b,rn);L$b.prototype.enqueue=function(g,r){this.insert(g,r)};var VN6=function(){var g=Error();g.name="SecurityError";throw g;},fmB=function(){return{get opener(){return null},
get closed(){return!0},get location(){VN6()},get document(){VN6()},postMessage:function(){},
close:function(){},
focus:function(){}}};var FeB={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 Cjc={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 h84={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(Cjc).join("|");var Zyn=function(){function g(u){u.substr(-1)!==";"&&(u+=";");return M(u)}
for(var r=Object.keys(h84).sort(WeQ),E=Object.keys(Cjc).sort(WeQ),B=0,w=0;B<E.length;B++)r[w]===E[B]?(E[B]+=";?",w++):E[B]+=";";var O=new RegExp("&(?:"+E.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),M=KeX();return function(u){return String(u).replace(O,g)}}();/*

 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 yO6={};var vab=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"),d8D=/[\\&]/,Tbz=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),gk4=RegExp('[&<>"]',"g"),rCn=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),Ekw=function(g){return g.charCodeAt(0)===92?g.charAt(1):Zyn(g)},BG4=function(g){return d8D.test(g)?g.replace(Tbz,Ekw):g},wib=function(g){try{var r,E="";
if(typeof w!=="string"){var B=w;var w=";/?:@&=+$,-_.!~*'()#"}typeof B==="undefined"&&(B=!0);var O,M=yO6[w];if(M)var u=M;else{M=yO6[w]=[];for(O=0;O<128;O++){var l=String.fromCharCode(O);/^[0-9a-z]$/i.test(l)?M.push(l):M.push("%"+("0"+O.toString(16).toUpperCase()).slice(-2))}for(O=0;O<w.length;O++)M[w.charCodeAt(O)]=w[O];u=M}var Q=0;for(r=g.length;Q<r;Q++){var z=g.charCodeAt(Q);if(B&&z===37&&Q+2<r&&/^[0-9a-f]{2}$/i.test(g.slice(Q+1,Q+3)))E+=g.slice(Q,Q+3),Q+=2;else if(z<128)E+=u[z];else if(z>=55296&&
z<=57343){if(z>=55296&&z<=56319&&Q+1<r){var k=g.charCodeAt(Q+1);if(k>=56320&&k<=57343){E+=encodeURIComponent(g[Q]+g[Q+1]);Q++;continue}}E+="%EF%BF%BD"}else E+=encodeURIComponent(g[Q])}return E}catch(H){return g}},SNn=function(g){switch(g){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return g}},SP=function(g,r){return gk4.test(g)?r?g.replace(rCn,SNn):g.replace(gk4,SNn):g};/*

 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 OX;if(String.fromCodePoint)OX=function(g){try{return String.fromCodePoint(g)}catch(r){if(r instanceof RangeError)return String.fromCharCode(65533);throw r;}};
else{var ORU=String.fromCharCode,U1z=Math.floor;OX=function(){var g=[],r=-1,E=arguments.length;if(!E)return"";for(var B="";++r<E;){var w=Number(arguments[r]);if(!isFinite(w)||w<0||w>1114111||U1z(w)!==w)return String.fromCharCode(65533);if(w<=65535)g.push(w);else{w-=65536;var O=(w>>10)+55296;w=w%1024+56320;g.push(O,w)}if(r+1===E||g.length>16384)B+=ORU.apply(null,g),g.length=0}return B}};var M3n=function(g){this.root=this.current=g;this.entering=!0};
M3n.prototype.next=function(){var g=this.current,r=this.entering;if(g===null)return null;a:switch(g._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 E=!0;break a;default:E=!1}r&&E?g._firstChild?(this.current=g._firstChild,this.entering=!0):this.entering=!1:g===this.root?this.current=null:g._next===null?(this.current=
g._parent,this.entering=!1):(this.current=g._next,this.entering=!0);return{entering:r,node:g}};
var qu=function(g,r){this._type=g;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=r;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};
qu.prototype.appendChild=function(g){UX(g);g._parent=this;this._lastChild?(this._lastChild._next=g,g._prev=this._lastChild):this._firstChild=g;this._lastChild=g};
var UX=function(g){g._prev?g._prev._next=g._next:g._parent&&(g._parent._firstChild=g._next);g._next?g._next._prev=g._prev:g._parent&&(g._parent._lastChild=g._prev);g._parent=null;g._next=null;g._prev=null},qN6=function(g,r){UX(r);
r._next=g._next;r._next&&(r._next._prev=r);r._prev=g;g._next=r;r._parent=g._parent;r._next||(r._parent._lastChild=r)};
qu.prototype.insertBefore=function(g){UX(g);g._prev=this._prev;g._prev&&(g._prev._next=g);g._next=this;this._prev=g;g._parent=this._parent;g._prev||(g._parent._firstChild=g)};
_.hx.Object.defineProperties(qu.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(g){this._literal=g}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(g){this._destination=g}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(g){this._title=g}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(g){this._info=g}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(g){this._level=g}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(g){this._listData.type=g}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(g){this._listData.tight=g}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(g){this._listData.start=g}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(g){this._onEnter=g}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(g){this._onExit=g}}});var xSV=/[ \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,
aPt={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 u7w=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]/),
loT=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),D1w=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),okb=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),GbD=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),Qbw=/`+/,zND=/^`+/,kbw=/\.\.\./g,HRA=/--+/g,pi6=/^<([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])?)*)>/,
YN6=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,RND=/^ *(?:\n *)?/,nkA=/^[ \t\n\x0b\x0c\x0d]/,sbA=/[ \t\n\x0b\x0c\x0d]+/g,foD=/^\s/,$1m=/ *$/,jbb=/^ */,ACU=/^ *(?:\n|$)/,bRw=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),JCZ=/^[^\n`\[\]\\!<&*_'"]+/m,Ma=function(g){var r=new qu("text");r._literal=g;return r},qa=function(g){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=g||{}};
qa.prototype.match=function(g){g=g.exec(this.subject.slice(this.pos));if(g===null)return null;this.pos+=g.index+g[0].length;return g[0]};
qa.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var ul=function(g){g.match(RND);return!0},Pan=function(g,r,E){var B=0;
var w=g.pos;if(r===39||r===34)B++,g.pos++;else for(;g.peek()===r;)B++,g.pos++;if(B===0)B=null;else{var O=w===0?"\n":g.subject.charAt(w-1);var M=g.peek();M=M===-1?"\n":OX(M);var u=foD.test(M);M=u7w.test(M);var l=foD.test(O);var Q=u7w.test(O);O=!u&&!(M&&!l&&!Q);u=!l&&!(Q&&!u&&!M);r===95?(l=O&&(!u||Q),M=u&&(!O||M)):(l=r===39||r===34?O&&!u:O,M=u);g.pos=w;B={numdelims:B,can_open:l,can_close:M}}if(!B)return!1;w=B.numdelims;M=g.pos;g.pos+=w;M=r===39?"\u2019":r===34?"\u201c":g.subject.slice(M,g.pos);M=Ma(M);
E.appendChild(M);g.delimiters={cc:r,numdelims:w,origdelims:w,node:M,previous:g.delimiters,next:null,can_open:B.can_open,can_close:B.can_close};g.delimiters.previous!==null&&(g.delimiters.previous.next=g.delimiters);return!0},t3m=function(g,r){r.previous!==null&&(r.previous.next=r.next);
r.next===null?g.delimiters=r.previous:r.next.previous=r.previous},FGn=function(g,r){var E,B,w=[],O=!1;
w[95]=r;w[42]=r;w[39]=r;w[34]=r;for(E=g.delimiters;E!==null&&E.previous!==r;)E=E.previous;for(;E!==null;){var M=E.cc;if(E.can_close){var u=E.previous;for(B=!1;u!==null&&u!==r&&u!==w[M];){O=(E.can_open||u.can_close)&&(u.origdelims+E.origdelims)%3===0;if(u.cc===E.cc&&u.can_open&&!O){B=!0;break}u=u.previous}var l=E;if(M===42||M===95)if(B){var Q=E.numdelims>=2&&u.numdelims>=2?2:1;var z=u.node;var k=E.node;u.numdelims-=Q;E.numdelims-=Q;z._literal=z._literal.slice(0,z._literal.length-Q);k._literal=k._literal.slice(0,
k._literal.length-Q);var H=new qu(Q===1?"emph":"strong");for(Q=z._next;Q&&Q!==k;){var R=Q._next;UX(Q);H.appendChild(Q);Q=R}qN6(z,H);Q=u;R=E;Q.next!==R&&(Q.next=R,R.previous=Q);u.numdelims===0&&(UX(z),t3m(g,u));E.numdelims===0&&(UX(k),u=E.next,t3m(g,E),E=u)}else E=E.next;else M===39?(E.node._literal="\u2019",B&&(u.node._literal="\u2018"),E=E.next):M===34&&(E.node._literal="\u201d",B&&(u.node.literal="\u201c"),E=E.next);B||O||(w[M]=l.previous,l.can_open||t3m(g,l))}else E=E.next}for(;g.delimiters!==
null&&g.delimiters!==r;)t3m(g,g.delimiters)},eNw=function(g){g=g.match(loT);
return g===null?null:BG4(g.substr(1,g.length-2))},WGD=function(g){var r=g.match(D1w);
if(r===null){r=g.pos;for(var E=0,B;(B=g.peek())!==-1;)if(B===92)g.pos+=1,g.peek()!==-1&&(g.pos+=1);else if(B===40)g.pos+=1,E+=1;else if(B===41)if(E<1)break;else g.pos+=1,--E;else if(nkA.exec(OX(B))!==null)break;else g.pos+=1;r=g.subject.substr(r,g.pos-r);return wib(BG4(r))}return wib(BG4(r.substr(1,r.length-2)))},CaU=function(g){g=g.match(bRw);
return g===null||g.length>1001?0:g.length},KGw=function(g,r,E,B){g.brackets!==null&&(g.brackets.bracketAfter=!0);
g.brackets={node:r,previous:g.brackets,previousDelimiter:g.delimiters,index:E,image:B,active:!0}},x1U=function(g,r){var E;
return(E=g.match(JCZ))?(g.options.smart?r.appendChild(Ma(E.replace(kbw,"\u2026").replace(HRA,function(B){var w=0,O=0;B.length%3===0?O=B.length/3:B.length%2===0?w=B.length/2:B.length%3===2?(w=1,O=(B.length-2)/3):(w=2,O=(B.length-4)/3);B="";var M;for(M=0;M<O;M++)B+="\u2014";for(M=0;M<w;M++)B+="\u2013";return B}))):r.appendChild(Ma(E)),!0):!1},aoU=function(g,r,E){g.subject=r;
g.pos=0;r=g.pos;var B=CaU(g);if(B===0)return 0;var w=g.subject.substr(0,B);if(g.peek()===58)g.pos++;else return g.pos=r,0;ul(g);B=WGD(g);if(B===null||B.length===0)return g.pos=r,0;var O=g.pos;ul(g);var M=eNw(g);M===null&&(M="",g.pos=O);var u=!0;g.match(ACU)===null&&(M===""?u=!1:(M="",g.pos=O,u=g.match(ACU)!==null));if(!u)return g.pos=r,0;w=XvP(w);if(w==="")return g.pos=r,0;E[w]||(E[w]={destination:B,title:M});return g.pos-r},XiD=function(g,r){var E,B=g.peek();
if(B===-1)return!1;switch(B){case 10:g.pos+=1;if((E=r._lastChild)&&E.type==="text"&&E._literal[E._literal.length-1]===" "){var w=E._literal[E._literal.length-2]===" ";E._literal=E._literal.replace($1m,"");r.appendChild(new qu(w?"linebreak":"softbreak"))}else r.appendChild(new qu("softbreak"));g.match(jbb);E=!0;break;case 92:E=g.subject;g.pos+=1;g.peek()===10?(g.pos+=1,E=new qu("linebreak"),r.appendChild(E)):okb.test(E.charAt(g.pos))?(r.appendChild(Ma(E.charAt(g.pos))),g.pos+=1):r.appendChild(Ma("\\"));
E=!0;break;case 96:a:if(E=g.match(zND),E===null)E=!1;else{w=g.pos;for(var O;(O=g.match(Qbw))!==null;)if(O===E){O=new qu("code");O._literal=g.subject.slice(w,g.pos-E.length).trim().replace(sbA," ");r.appendChild(O);E=!0;break a}g.pos=w;r.appendChild(Ma(E));E=!0}break;case 42:case 95:E=Pan(g,B,r);break;case 39:case 34:E=g.options.smart&&Pan(g,B,r);break;case 91:E=g.pos;g.pos+=1;w=Ma("[");r.appendChild(w);KGw(g,w,E,!1);E=!0;break;case 33:E=g.pos;g.pos+=1;g.peek()===91?(g.pos+=1,w=Ma("!["),r.appendChild(w),
KGw(g,w,E+1,!0)):r.appendChild(Ma("!"));E=!0;break;case 93:var M,u=!1,l;g.pos+=1;var Q=g.pos;w=g.brackets;if(w===null)r.appendChild(Ma("]"));else if(w.active){E=w.image;var z=g.pos;g.peek()===40&&(g.pos++,ul(g)&&(O=WGD(g))!==null&&ul(g)&&(nkA.test(g.subject.charAt(g.pos-1))&&(M=eNw(g)),1)&&ul(g)&&g.peek()===41?(g.pos+=1,u=!0):g.pos=z);if(!u){var k=g.pos,H=CaU(g);H>2?l=g.subject.slice(k,k+H):w.bracketAfter||(l=g.subject.slice(w.index,Q));H===0&&(g.pos=z);l&&(l=g.refmap[XvP(l)])&&(O=l.destination,M=
l.title,u=!0)}if(u){Q=new qu(E?"image":"link");Q._destination=O;Q._title=M||"";for(O=w.node._next;O;)M=O._next,UX(O),Q.appendChild(O),O=M;r.appendChild(Q);FGn(g,w.previousDelimiter);g.brackets=g.brackets.previous;UX(w.node);if(!E)for(w=g.brackets;w!==null;)w.image||(w.active=!1),w=w.previous}else g.brackets=g.brackets.previous,g.pos=Q,r.appendChild(Ma("]"))}else r.appendChild(Ma("]")),g.brackets=g.brackets.previous;E=!0;break;case 60:(E=g.match(pi6))?(E=E.slice(1,E.length-1),w=new qu("link"),w._destination=
wib("mailto:"+E),w._title="",w.appendChild(Ma(E)),r.appendChild(w),E=!0):(E=g.match(YN6))?(E=E.slice(1,E.length-1),w=new qu("link"),w._destination=wib(E),w._title="",w.appendChild(Ma(E)),r.appendChild(w),E=!0):E=!1;E||(E=g.match(vab),E===null?E=!1:(w=new qu("html_inline"),w._literal=E,r.appendChild(w),E=!0));break;case 38:(E=g.match(GbD))?(r.appendChild(Ma(Zyn(E))),E=!0):E=!1;break;default:E=x1U(g,r)}E||(g.pos+=1,r.appendChild(Ma(OX(B))));return!0};
qa.prototype.parseInlines=function(g){this.subject=g._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;XiD(this,g););g._string_content=null;FGn(this,null)};
qa.prototype.parse=qa.prototype.parseInlines;var NGw=[/./,/^<(?: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")],IoD=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],m1U=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,cCn=/^[#`~*+_=<>0-9-\|]|\|/,iR6=/[^ \t\f\v\r\n]/,LGI=/^[*+-]/,V3T=/^(\d{1,9})([.)])/,hNw=/^#{1,6}(?:[ \t]+|$)/,ZRn=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,yCZ=/^(?:`{3,}|~{3,})(?= *$)/,vkw=/^(?:=+|-+)[ \t]*$/,d1b=/\r\n|\n|\r/,IPc=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,mSo=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,TGZ={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(g){return g!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(g,r){for(g=r._firstChild;g;){if(NxB(g)&&g._next){r._listData.tight=!1;break}for(var E=g._firstChild;E;){if(NxB(E)&&(g._next||E._next)){r._listData.tight=!1;break}E=E._next}g=g._next}},
canContain:function(g){return g==="item"},
acceptsLines:!1},block_quote:{continue:function(g){var r=g.currentLine;if(g.indented||UQ(r,g.nextNonspace)!==62)return 1;ll(g);DE(g,1,!1);OQ(UQ(r,g.offset))&&DE(g,1,!0);return 0},
finalize:function(){},
canContain:function(g){return g!=="item"},
acceptsLines:!1},item:{continue:function(g,r){if(g.blank){if(r._firstChild==null)return 1;ll(g)}else if(g.indent>=r._listData.markerOffset+r._listData.padding)DE(g,r._listData.markerOffset+r._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(g){return g!=="item"&&!cQY(g)},
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(g,r){var E=g.currentLine,B=g.indent;if(r._isFenced){if((B=B<=3&&E.charAt(g.nextNonspace)===r._fenceChar&&E.slice(g.nextNonspace).match(yCZ))&&B[0].length>=r._fenceLength)return g.finalize(r,g.lineNumber),2;for(r=r._fenceOffset;r>0&&OQ(UQ(E,g.offset));)DE(g,1,!0),r--}else if(B>=4)DE(g,4,!0);else if(g.blank)ll(g);else return 1;return 0},
finalize:function(g,r){if(r._isFenced){var E=r._string_content,B=E.indexOf("\n");g=E.slice(0,B);E=E.slice(B+1);r.info=BG4(g.trim());r._literal=E}else r._literal=r._string_content.replace(/(\n *)+$/,"\n");r._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(g,r){return!g.blank||r._htmlBlockType!==6&&r._htmlBlockType!==7?0:1},
finalize:function(g,r){r._literal=r._string_content.replace(/(\n *)+$/,"");r._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(g){return g.blank?1:0},
finalize:function(g,r){for(var E,B=!1;UQ(r._string_content,0)===91&&(E=aoU(g.inlineParser,r._string_content,g.refmap));)r._string_content=r._string_content.slice(E),B=!0;B&&!iR6.test(r._string_content)&&UX(r)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(g){return Mu(g.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(g){return g=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(g,r){if(!r._rowIsDelimiter){g=r._isHeader?"th":"td";for(var E=r._parent._tableColumns,B=r._string_content,w=0,O="",M,u=r._sourcepos[0][0];w<B.length;){switch(B[w]){case "|":M&&(M._string_content=O.trim(),O="",M=null,E--,E<=0&&(w=B.length));break;default:if(!M){M=new qu(g,[[u,w],[u,w]]);var l=r._parent._columnAlignment,Q=r._parent._tableColumns-E;l&&Q<=l.length&&Q>=0&&(M._alignment=l[Q]);r.appendChild(M)}O+=B[w];M._sourcepos[1][1]=w}w++}M&&(M._string_content=O.trim());r._string_content=
""}},
canContain:function(g){return g!=="row"},
acceptsLines:!1}},gPn=[function(g){if(g.indented||UQ(g.currentLine,g.nextNonspace)!==62)return 0;ll(g);DE(g,1,!1);OQ(UQ(g.currentLine,g.offset))&&DE(g,1,!0);oi(g);g.addChild("block_quote",g.nextNonspace);return 1},
function(g){var r;if(!g.indented&&(r=g.currentLine.slice(g.nextNonspace).match(hNw))){ll(g);DE(g,r[0].length,!1);oi(g);var E=g.addChild("heading",g.nextNonspace);E.level=r[0].trim().length;E._string_content=g.currentLine.slice(g.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");DE(g,g.currentLine.length-g.offset);return 2}return 0},
function(g){var r;if(!g.indented&&(r=g.currentLine.slice(g.nextNonspace).match(ZRn))){var E=r[0].length;oi(g);var B=g.addChild("code_block",g.nextNonspace);B._isFenced=!0;B._fenceLength=E;B._fenceChar=r[0][0];B._fenceOffset=g.indent;ll(g);DE(g,E,!1);return 2}return 0},
function(g,r){if(!g.indented&&UQ(g.currentLine,g.nextNonspace)===60){var E=g.currentLine.slice(g.nextNonspace),B;for(B=1;B<=7;B++)if(NGw[B].test(E)&&(B<7||r.type!=="paragraph"))return oi(g),g.addChild("html_block",g.offset)._htmlBlockType=B,2}return 0},
function(g,r){var E;if(!g.indented&&r.type==="paragraph"&&(E=g.currentLine.slice(g.nextNonspace).match(vkw))){oi(g);var B=new qu("heading",r.sourcepos);B.level=E[0][0]==="="?1:2;B._string_content=r._string_content;qN6(r,B);UX(r);g.tip=B;DE(g,g.currentLine.length-g.offset,!1);return 2}return 0},
function(g){return!g.indented&&m1U.test(g.currentLine.slice(g.nextNonspace))?(oi(g),g.addChild("thematic_break",g.nextNonspace),DE(g,g.currentLine.length-g.offset,!1),2):0},
function(g,r){var E,B;if(!(B=g.indented&&r.type!=="list")){a:{var w=r,O=g.currentLine.slice(g.nextNonspace);B={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:g.indent};if(E=O.match(LGI))B.type="bullet",B.bulletChar=E[0][0];else{if(!(E=O.match(V3T))||w.type==="paragraph"&&E[1]!=="1"){E=null;break a}B.type="ordered";B.start=parseInt(E[1],10);B.delimiter=E[2]}var M=UQ(g.currentLine,g.nextNonspace+E[0].length);if(M!==-1&&M!==9&&M!==32||w.type==="paragraph"&&!g.currentLine.slice(g.nextNonspace+
E[0].length).match(iR6))E=null;else{ll(g);DE(g,E[0].length,!0);w=g.column;O=g.offset;do DE(g,1,!0),M=UQ(g.currentLine,g.offset);while(g.column-w<5&&OQ(M));M=UQ(g.currentLine,g.offset)===-1;var u=g.column-w;u>=5||u<1||M?(B.padding=E[0].length+1,g.column=w,g.offset=O,OQ(UQ(g.currentLine,g.offset))&&DE(g,1,!0)):B.padding=E[0].length+u;E=B}}B=!E}if(B)return 0;oi(g);(B=g.tip.type!=="list")||(r=r._listData,B=!(r.type===E.type&&r.delimiter===E.delimiter&&r.bulletChar===E.bulletChar));B&&(r=g.addChild("list",
g.nextNonspace),r._listData=E);r=g.addChild("item",g.nextNonspace);r._listData=E;return 1},
function(g){var r;return((r=g.options.shouldParseIndentAsCodeBlock)!=null?r:1)&&g.indented&&g.tip.type!=="paragraph"&&!g.blank?(DE(g,4,!0),oi(g),g.addChild("code_block",g.offset),2):0},
function(g,r){var E=Mu(g.currentLine),B=Mu(g.lookahead);if(E!==0&&B<0&&Math.abs(E)==Math.abs(B)&&!cQY(r.type)){oi(g);r=g.addChild("table",g.nextNonspace);r._tableRows=1;r._tableColumns=Math.abs(E);E=g.lookahead;if(mSo.test(E)){B=[];for(var w=0,O=!1,M=0,u=void 0;w<E.length;){var l=M>=3;switch(E[w]){case "-":M++;break;case "|":O&&(B.push(u),u=void 0,M=0);O=!0;break;case ":":u||l||(u="left"),!u&&l&&(u="right"),u==="left"&&l&&(u="center")}w++}E=B}else E=void 0;r._columnAlignment=E;r=g.addChild("row",
g.nextNonspace);r._isHeader=!0;DE(g,g.currentLine.length-g.offset,!1);r._string_content=g.currentLine;return 1}return 0},
function(g,r){if(r.type=="table"&&Mu(g.currentLine)!==0){oi(g);var E=r;r=g.addChild("row",g.nextNonspace);Mu(g.currentLine)<0?r._rowIsDelimiter=!0:E._tableRows+=1;DE(g,g.currentLine.length-g.offset,!1);r._string_content=g.currentLine;return 2}return 0}],eVV=function(){var g={shouldParseIndentAsCodeBlock:!1};
g=g===void 0?{}:g;this.lastMatchedContainer=this.doc=iZB();this.refmap={};this.lastLineLength=0;this.inlineParser=new qa(g);this.options=g;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=TGZ;this.blockStarts=gPn},rMI=function(g){g.partiallyConsumedTab&&(g.offset+=1,g.tip._string_content+=" ".repeat(4-g.column%
4));
g.tip._string_content+=g.currentLine.slice(g.offset)+"\n"};
eVV.prototype.addChild=function(g,r){for(;!this.blocks[this.tip.type].canContain(g);)this.finalize(this.tip,this.lineNumber-1);g=new qu(g,[[this.lineNumber,r+1],[0,0]]);g._string_content="";this.tip.appendChild(g);return this.tip=g};
var oi=function(g){if(!g.allClosed){for(;g.oldtip!==g.lastMatchedContainer;){var r=g.oldtip._parent;g.finalize(g.oldtip,g.lineNumber-1);g.oldtip=r}g.allClosed=!0}},DE=function(g,r,E){for(var B=g.currentLine,w,O;r>0&&(O=B[g.offset]);)O==="\t"?(w=4-g.column%4,E?(g.partiallyConsumedTab=w>r,w=w>r?r:w,g.column+=w,g.offset+=g.partiallyConsumedTab?0:1,r-=w):(g.partiallyConsumedTab=!1,g.column+=w,g.offset+=1,--r)):(g.partiallyConsumedTab=!1,g.offset+=1,g.column+=1,--r)},ll=function(g){g.offset=g.nextNonspace;
g.column=g.nextNonspaceColumn;g.partiallyConsumedTab=!1},EPm=function(g){for(var r=g.currentLine,E=g.offset,B=g.column,w;(w=r.charAt(E))!=="";)if(w===" ")E++,B++;
else if(w==="\t")E++,B+=4-B%4;else break;g.blank=w==="\n"||w==="\r"||w==="";g.nextNonspace=E;g.nextNonspaceColumn=B;g.indent=g.nextNonspaceColumn-g.column;g.indented=g.indent>=4};
eVV.prototype.finalize=function(g,r){var E=g._parent;g._open=!1;g.sourcepos[1]=[r,this.lastLineLength];this.blocks[g.type].finalize(this,g);this.tip=E};
eVV.prototype.parse=function(g){this.tip=this.doc=iZB();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!g)return this.doc;this.options.time&&console.time("preparing input");var r=g.split(d1b),E=r.length;g.charCodeAt(g.length-1)===10&&--E;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(g=0;g<E;g++)a:{var B=void 0,w=r[g],O=r[g+1],M=!0,u=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;w.indexOf("\x00")!==-1&&(w=w.replace(/\0/g,"\ufffd"));this.currentLine=w;for(this.lookahead=O;(B=u._lastChild)&&B._open;){u=B;EPm(this);switch(this.blocks[u.type].continue(this,u)){case 0:break;case 1:M=!1;break;case 2:this.lastLineLength=w.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!M){u=u._parent;break}}this.allClosed=u===this.oldtip;this.lastMatchedContainer=
u;B=u.type!=="paragraph"&&TGZ[u.type].acceptsLines;O=this.blockStarts;for(M=O.length;!B;){EPm(this);if(!this.indented&&!cCn.test(w.slice(this.nextNonspace))){ll(this);break}for(var l=0;l<M;){var Q=O[l](this,u);if(Q===1){u=this.tip;break}else if(Q===2){u=this.tip;B=!0;break}else l++}if(l===M){ll(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){oi(this);this.blank&&u.lastChild&&(u.lastChild._lastLineBlank=!0);B=u.type;O=this.blank&&!(B==="block_quote"||B==="code_block"&&u._isFenced||
B==="item"&&!u._firstChild&&u.sourcepos[0][0]===this.lineNumber);for(M=u;M;)M._lastLineBlank=O,M=M._parent;this.blocks[B].acceptsLines?(rMI(this),B==="html_block"&&u._htmlBlockType>=1&&u._htmlBlockType<=5&&IoD[u._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(u,this.lineNumber)):this.offset<w.length&&!this.blank&&(this.addChild("paragraph",this.offset),ll(this),rMI(this))}else rMI(this);this.lastLineLength=w.length}for(;this.tip;)this.finalize(this.tip,E);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");w=new M3n(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;E=w.next();)r=E.node,g=r.type,E.entering||g!=="paragraph"&&g!=="heading"&&g!=="th"&&g!="td"||this.inlineParser.parse(r);this.options.time&&console.timeEnd("inline parsing");return this.doc};LeV.prototype.render=function(g){g=new M3n(g);var r;this.buffer="";for(this.lastOut="\n";r=g.next();){var E=r.node.type;if(this[E])this[E](r.node,r.entering)}return this.buffer};
LeV.prototype.out=function(g){Gt(this,g)};
var Gt=function(g,r){g.buffer+=r;g.lastOut=r};
LeV.prototype.cr=function(){this.lastOut!=="\n"&&Gt(this,"\n")};var BL6=/^javascript:|vbscript:|file:|data:/i,wwn=/^data:image\/(?:png|gif|jpeg|webp)/i,S2D=function(g){return BL6.test(g)&&!wwn.test(g)};
uG.prototype=Object.create(LeV.prototype);_.S=uG.prototype;_.S.text=function(g){this.out(g.literal)};
_.S.html_inline=function(g){this.options.safe?Gt(this,"\x3c!-- raw HTML omitted --\x3e"):Gt(this,g.literal)};
_.S.html_block=function(g){this.cr();this.options.safe?Gt(this,"\x3c!-- raw HTML omitted --\x3e"):Gt(this,g.literal);this.cr()};
_.S.softbreak=function(){Gt(this,this.options.softbreak)};
_.S.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.S.link=function(g,r){var E=this.attrs(g);r?(this.options.safe&&S2D(g.destination)||E.push(["href",SP(g.destination,!0)]),g.title&&E.push(["title",SP(g.title,!0)]),this.tag("a",E)):this.tag("/a")};
_.S.image=function(g,r){r?(this.disableTags===0&&(this.options.safe&&S2D(g.destination)?Gt(this,'<img src="" alt="'):Gt(this,'<img src="'+SP(g.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(g.title&&Gt(this,'" title="'+SP(g.title,!0)),Gt(this,'" />')))};
_.S.emph=function(g,r){this.tag(r?"em":"/em")};
_.S.strong=function(g,r){this.tag(r?"strong":"/strong")};
_.S.paragraph=function(g,r){var E=g.parent.parent;g=this.attrs(g);E!==null&&E.type==="list"&&E.listTight||(r?(this.cr(),this.tag("p",g)):(this.tag("/p"),this.cr()))};
_.S.heading=function(g,r){var E="h"+g.level;g=this.attrs(g);r?(this.cr(),this.tag(E,g)):(this.tag("/"+E),this.cr())};
_.S.code=function(g){this.tag("code");this.out(g.literal);this.tag("/code")};
_.S.code_block=function(g){var r=g.info?g.info.split(/\s+/):[],E=this.attrs(g);r.length>0&&r[0].length>0&&E.push(["class","language-"+SP(r[0],!0)]);this.cr();this.tag("pre");this.tag("code",E);this.out(g.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.S.thematic_break=function(g){g=this.attrs(g);this.cr();this.tag("hr",g,!0);this.cr()};
_.S.block_quote=function(g,r){g=this.attrs(g);r?(this.cr(),this.tag("blockquote",g)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.S.list=function(g,r){var E=g.listType==="bullet"?"ul":"ol",B=this.attrs(g);r?(g=g.listStart,g!==null&&g!==1&&B.push(["start",g.toString()]),this.cr(),this.tag(E,B)):(this.cr(),this.tag("/"+E));this.cr()};
_.S.item=function(g,r){g=this.attrs(g);r?this.tag("li",g):(this.tag("/li"),this.cr())};
_.S.custom_inline=function(g,r){r&&g.onEnter?Gt(this,g.onEnter):!r&&g.onExit&&Gt(this,g.onExit)};
_.S.custom_block=function(g,r){this.cr();r&&g.onEnter?Gt(this,g.onEnter):!r&&g.onExit&&Gt(this,g.onExit);this.cr()};
_.S.table=function(g,r){g=this.attrs(g);r?(this.cr(),this.tag("table",g)):(this.tag("/table"),this.cr())};
_.S.row=function(g,r){g._rowIsDelimiter||(g=this.attrs(g),r?this.tag("tr",g):this.tag("/tr"))};
_.S.td=function(g,r){var E=this.attrs(g);g._alignment&&E.push(["align",g._alignment]);r?this.tag("td",E):this.tag("/td")};
_.S.th=function(g,r){var E=this.attrs(g);g._alignment&&E.push(["align",g._alignment]);r?this.tag("th",E):this.tag("/th")};
_.S.out=function(g){Gt(this,SP(g,!1))};
_.S.tag=function(g,r,E){if(!(this.disableTags>0)){this.buffer+="<"+g;if(r&&r.length>0){g=0;for(var B;(B=r[g])!==void 0;)this.buffer+=" "+B[0]+'="'+B[1]+'"',g++}E&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.S.attrs=function(g){var r=[];this.options.sourcepos&&(g=g.sourcepos)&&r.push(["data-sourcepos",String(g[0][0])+":"+String(g[0][1])+"-"+String(g[1][0])+":"+String(g[1][1])]);return r};
uG.prototype.text=uG.prototype.text;uG.prototype.html_inline=uG.prototype.html_inline;uG.prototype.html_block=uG.prototype.html_block;uG.prototype.softbreak=uG.prototype.softbreak;uG.prototype.linebreak=uG.prototype.linebreak;uG.prototype.link=uG.prototype.link;uG.prototype.image=uG.prototype.image;uG.prototype.emph=uG.prototype.emph;uG.prototype.strong=uG.prototype.strong;uG.prototype.paragraph=uG.prototype.paragraph;uG.prototype.heading=uG.prototype.heading;uG.prototype.code=uG.prototype.code;
uG.prototype.code_block=uG.prototype.code_block;uG.prototype.thematic_break=uG.prototype.thematic_break;uG.prototype.block_quote=uG.prototype.block_quote;uG.prototype.list=uG.prototype.list;uG.prototype.item=uG.prototype.item;uG.prototype.custom_inline=uG.prototype.custom_inline;uG.prototype.custom_block=uG.prototype.custom_block;uG.prototype.table=uG.prototype.table;uG.prototype.row=uG.prototype.row;uG.prototype.td=uG.prototype.td;uG.prototype.th=uG.prototype.th;uG.prototype.out=uG.prototype.out;
uG.prototype.tag=uG.prototype.tag;uG.prototype.attrs=uG.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 OWw,UyD,pOo;(function(){function g(F,t){return F<t?-1:F>t?1:F>=t?0:NaN}
function r(F){return function(t,x){return g(F(t),x)}}
function E(){for(var F=0,t=arguments.length,x={},v;F<t;++F){if(!(v=arguments[F]+"")||v in x)throw Error("we`"+v);x[v]=[]}return new B(x)}
function B(F){this._=F}
function w(F,t){return F.trim().split(/^|\s+/).map(function(x){var v="",SV=x.indexOf(".");SV>=0&&(v=x.slice(SV+1),x=x.slice(0,SV));if(x&&!t.hasOwnProperty(x))throw Error("xe`"+x);return{type:x,name:v}})}
function O(F,t,x){for(var v=0,SV=F.length;v<SV;++v)if(F[v].name===t){F[v]=dEt;F=F.slice(0,v).concat(F.slice(v+1));break}x!=null&&F.push({name:t,value:x});return F}
function M(F){var t=F,x=t.indexOf(":");x>=0&&(t=F.slice(0,x))!=="xmlns"&&(F=F.slice(x+1));return uP.hasOwnProperty(t)?{space:uP[t],local:F}:F}
function u(F){return function(){var t=this.ownerDocument,x=this.namespaceURI;return x==="http://www.w3.org/1999/xhtml"&&t.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?t.createElement(F):t.createElementNS(x,F)}}
function l(F){return function(){return this.ownerDocument.createElementNS(F.space,F.local)}}
function Q(F){F=M(F);return(F.local?l:u)(F)}
function z(){}
function k(F){return F==null?z:function(){return this.querySelector(F)}}
function H(F){return Array(F.length)}
function R(F,t){this.ownerDocument=F.ownerDocument;this.namespaceURI=F.namespaceURI;this._next=null;this._parent=F;this.__data__=t}
function A(F){return function(){return F}}
function J(F,t,x,v,SV,GS){for(var Yc=0,Jt,TS=t.length,yl=GS.length;Yc<yl;++Yc)(Jt=t[Yc])?(Jt.__data__=GS[Yc],v[Yc]=Jt):x[Yc]=new R(F,GS[Yc]);for(;Yc<TS;++Yc)if(Jt=t[Yc])SV[Yc]=Jt}
function e(F,t,x,v,SV,GS,Yc){var Jt,TS,yl={},rA=t.length,qz=GS.length,c6=Array(rA),Q5;for(Jt=0;Jt<rA;++Jt)if(TS=t[Jt])c6[Jt]=Q5="$"+Yc.call(TS,TS.__data__,Jt,t),Q5 in yl?SV[Jt]=TS:yl[Q5]=TS;for(Jt=0;Jt<qz;++Jt)Q5="$"+Yc.call(F,GS[Jt],Jt,GS),(TS=yl[Q5])?(v[Jt]=TS,TS.__data__=GS[Jt],yl[Q5]=null):x[Jt]=new R(F,GS[Jt]);for(Jt=0;Jt<rA;++Jt)(TS=t[Jt])&&yl[c6[Jt]]===TS&&(SV[Jt]=TS)}
function C(F,t){return F<t?-1:F>t?1:F>=t?0:NaN}
function X(F){return function(){this.removeAttribute(F)}}
function Z(F){return function(){this.removeAttributeNS(F.space,F.local)}}
function c(F,t){return function(){this.setAttribute(F,t)}}
function h(F,t){return function(){this.setAttributeNS(F.space,F.local,t)}}
function y(F,t){return function(){var x=t.apply(this,arguments);x==null?this.removeAttribute(F):this.setAttribute(F,x)}}
function OD(F,t){return function(){var x=t.apply(this,arguments);x==null?this.removeAttributeNS(F.space,F.local):this.setAttributeNS(F.space,F.local,x)}}
function uB(F){return function(){this.style.removeProperty(F)}}
function zS(F,t,x){return function(){this.style.setProperty(F,t,x)}}
function jV(F,t,x){return function(){var v=t.apply(this,arguments);v==null?this.style.removeProperty(F):this.style.setProperty(F,v,x)}}
function PJ(F,t){return F.style.getPropertyValue(t)||(F.ownerDocument&&F.ownerDocument.defaultView||F.document&&F||F.defaultView).getComputedStyle(F,null).getPropertyValue(t)}
function At(F){return function(){delete this[F]}}
function XY(F,t){return function(){this[F]=t}}
function xc(F,t){return function(){var x=t.apply(this,arguments);x==null?delete this[F]:this[F]=x}}
function rg(){this.textContent=""}
function $t(F){return function(){this.textContent=F}}
function tD(F){return function(){var t=F.apply(this,arguments);this.textContent=t==null?"":t}}
function GD(){this.innerHTML=""}
function xb(F){return function(){this.innerHTML=F}}
function zL(F){return function(){var t=F.apply(this,arguments);this.innerHTML=t==null?"":t}}
function AD(){return null}
function lA(){var F=this.parentNode;F&&F.removeChild(this)}
function pt(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function Mo(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function un(F,t,x){F=sw(F,t,x);return function(v){var SV=v.relatedTarget;SV&&(SV===this||SV.compareDocumentPosition(this)&8)||F.call(this,v)}}
function sw(F,t,x){return function(){F.call(this,this.__data__,t,x)}}
function J8(F){return F.trim().split(/^|\s+/).map(function(t){var x="",v=t.indexOf(".");v>=0&&(x=t.slice(v+1),t=t.slice(0,v));return{type:t,name:x}})}
function Rm(F){return function(){var t=this.__on;if(t){for(var x=0,v=-1,SV=t.length,GS;x<SV;++x)(GS=t[x],F.type&&GS.type!==F.type||GS.name!==F.name)?t[++v]=GS:this.removeEventListener(GS.type,GS.listener,GS.capture);++v?t.length=v:delete this.__on}}}
function Lw(F,t,x){var v=VBT.hasOwnProperty(F.type)?un:sw;return function(SV,GS,Yc){SV=this.__on;var Jt;GS=v(t,GS,Yc);if(SV){Yc=0;for(var TS=SV.length;Yc<TS;++Yc)if((Jt=SV[Yc]).type===F.type&&Jt.name===F.name){this.removeEventListener(Jt.type,Jt.listener,Jt.capture);this.addEventListener(Jt.type,Jt.listener=GS,Jt.capture=x);Jt.value=t;return}}this.addEventListener(F.type,GS,x);Jt={type:F.type,name:F.name,value:t,listener:GS,capture:x};SV?SV.push(Jt):this.__on=[Jt]}}
function cb(F,t,x){var v=F.ownerDocument&&F.ownerDocument.defaultView||F.document&&F||F.defaultView,SV=v.CustomEvent;typeof SV==="function"?SV=new SV(t,x):(SV=v.document.createEvent("Event"),x?(SV.initEvent(t,x.bubbles,x.cancelable),SV.detail=x.detail):SV.initEvent(t,!1,!1));F.dispatchEvent(SV)}
function ZI(F,t){return function(){return cb(this,F,t)}}
function Ow(F,t){return function(){return cb(this,F,t.apply(this,arguments))}}
function XZ(F,t){this._groups=F;this._parents=t}
function RA(){return new XZ([[document.documentElement]],Tc8)}
function kb(){this._="@"+(++g45).toString(36)}
function bn(F,t,x){F.prototype=t.prototype=x;x.constructor=F}
function D4(F,t){F=Object.create(F.prototype);for(var x in t)F[x]=t[x];return F}
function UU(){}
function OM(F){var t;F=(F+"").trim().toLowerCase();return(t=rqF.exec(F))?(t=parseInt(t[1],16),new TL(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1)):(t=E4L.exec(F))?RF(parseInt(t[1],16)):(t=B56.exec(F))?new TL(t[1],t[2],t[3],1):(t=wgz.exec(F))?new TL(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Shv.exec(F))?cE(t[1],t[2],t[3],t[4]):(t=OVm.exec(F))?cE(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=UfF.exec(F))?f9(t[1],t[2]/100,t[3]/100,1):(t=M5M.exec(F))?f9(t[1],t[2]/100,t[3]/100,t[4]):hMz.hasOwnProperty(F)?
RF(hMz[F]):F==="transparent"?new TL(NaN,NaN,NaN,0):null}
function RF(F){return new TL(F>>16&255,F>>8&255,F&255,1)}
function cE(F,t,x,v){v<=0&&(F=t=x=NaN);return new TL(F,t,x,v)}
function Im(F){F instanceof UU||(F=OM(F));if(!F)return new TL;F=F.rgb();return new TL(F.r,F.g,F.b,F.opacity)}
function PF(F,t,x,v){return arguments.length===1?Im(F):new TL(F,t,x,v==null?1:v)}
function TL(F,t,x,v){this.r=+F;this.g=+t;this.b=+x;this.opacity=+v}
function El(F){F=Math.max(0,Math.min(255,Math.round(F)||0));return(F<16?"0":"")+F.toString(16)}
function f9(F,t,x,v){v<=0?F=t=x=NaN:x<=0||x>=1?F=t=NaN:t<=0&&(F=NaN);return new TU(F,t,x,v)}
function K$(F){if(F instanceof TU)return new TU(F.h,F.s,F.l,F.opacity);F instanceof UU||(F=OM(F));if(!F)return new TU;if(F instanceof TU)return F;F=F.rgb();var t=F.r/255,x=F.g/255,v=F.b/255,SV=Math.min(t,x,v),GS=Math.max(t,x,v),Yc=NaN,Jt=GS-SV,TS=(GS+SV)/2;Jt?(Yc=t===GS?(x-v)/Jt+(x<v)*6:x===GS?(v-t)/Jt+2:(t-x)/Jt+4,Jt/=TS<.5?GS+SV:2-GS-SV,Yc*=60):Jt=TS>0&&TS<1?0:Yc;return new TU(Yc,Jt,TS,F.opacity)}
function SL(F,t,x,v){return arguments.length===1?K$(F):new TU(F,t,x,v==null?1:v)}
function TU(F,t,x,v){this.h=+F;this.s=+t;this.l=+x;this.opacity=+v}
function CI(F,t,x){return(F<60?t+(x-t)*F/60:F<180?x:F<240?t+(x-t)*(240-F)/60:t)*255}
function $R(F){if(F instanceof sD)return new sD(F.l,F.a,F.b,F.opacity);if(F instanceof QT){if(isNaN(F.h))return new sD(F.l,0,0,F.opacity);var t=F.h*Zin;return new sD(F.l,Math.cos(t)*F.c,Math.sin(t)*F.c,F.opacity)}F instanceof TL||(F=Im(F));var x=Sv(F.r),v=Sv(F.g),SV=Sv(F.b);t=CL(.2225045*x+.7168786*v+.0606169*SV);if(x===v&&v===SV)var GS=x=t;else GS=CL((.4360747*x+.3850649*v+.1430804*SV)/.96422),x=CL((.0139322*x+.0971045*v+.7141733*SV)/.82521);return new sD(116*t-16,500*(GS-t),200*(t-x),F.opacity)}
function sD(F,t,x,v){this.l=+F;this.a=+t;this.b=+x;this.opacity=+v}
function CL(F){return F>qh6?Math.pow(F,1/3):F/y2D+vCn}
function cJ(F){return F>st?F*F*F:y2D*(F-vCn)}
function ln(F){return 255*(F<=.0031308?12.92*F:1.055*Math.pow(F,1/2.4)-.055)}
function Sv(F){return(F/=255)<=.04045?F/12.92:Math.pow((F+.055)/1.055,2.4)}
function PH(F){if(F instanceof QT)return new QT(F.h,F.c,F.l,F.opacity);F instanceof sD||(F=$R(F));if(F.a===0&&F.b===0)return new QT(NaN,0,F.l,F.opacity);var t=Math.atan2(F.b,F.a)*dPn;return new QT(t<0?t+360:t,Math.sqrt(F.a*F.a+F.b*F.b),F.l,F.opacity)}
function oA(F,t,x,v){return arguments.length===1?PH(F):new QT(F,t,x,v==null?1:v)}
function QT(F,t,x,v){this.h=+F;this.c=+t;this.l=+x;this.opacity=+v}
function DI(F,t,x,v){if(arguments.length===1){var SV=F;if(SV instanceof nD)SV=new nD(SV.h,SV.s,SV.l,SV.opacity);else{SV instanceof TL||(SV=Im(SV));var GS=SV.g/255,Yc=SV.b/255,Jt=(T3Z*Yc+SV.r/255*-1.7884503806-3.5172982438*GS)/(T3Z+-1.7884503806-3.5172982438);Yc-=Jt;var TS=(1.97294*(GS-Jt)- -.29227*Yc)/-.90649;Yc=(GS=Math.sqrt(TS*TS+Yc*Yc)/(1.97294*Jt*(1-Jt)))?Math.atan2(TS,Yc)*dPn-120:NaN;SV=new nD(Yc<0?Yc+360:Yc,GS,Jt,SV.opacity)}}else SV=new nD(F,t,x,v==null?1:v);return SV}
function nD(F,t,x,v){this.h=+F;this.s=+t;this.l=+x;this.opacity=+v}
function QB(F,t,x,v,SV){var GS=F*F,Yc=GS*F;return((1-3*F+3*GS-Yc)*t+(4-6*GS+3*Yc)*x+(1+3*F+3*GS-3*Yc)*v+Yc*SV)/6}
function Uw(F){return function(){return F}}
function Hu(F,t){return function(x){return F+x*t}}
function Ak(F,t,x){return F=Math.pow(F,x),t=Math.pow(t,x)-F,x=1/x,function(v){return Math.pow(F+v*t,x)}}
function Ct(F,t){var x=t-F;return x?Hu(F,x>180||x<-180?x-360*Math.round(x/360):x):Uw(isNaN(F)?t:F)}
function n$(F){return(F=+F)===1?ic:function(t,x){return x-t?Ak(t,x,F):Uw(isNaN(t)?x:t)}}
function ic(F,t){var x=t-F;return x?Hu(F,x):Uw(isNaN(F)?t:F)}
function j3(F){return function(t){var x=t.length,v=Array(x),SV=Array(x),GS=Array(x),Yc;for(Yc=0;Yc<x;++Yc){var Jt=PF(t[Yc]);v[Yc]=Jt.r||0;SV[Yc]=Jt.g||0;GS[Yc]=Jt.b||0}v=F(v);SV=F(SV);GS=F(GS);Jt.opacity=1;return function(TS){Jt.r=v(TS);Jt.g=SV(TS);Jt.b=GS(TS);return Jt+""}}}
function iB(F,t){return F=+F,t-=F,function(x){return F+t*x}}
function UM(F){return function(){return F}}
function X$(F){return function(t){return F(t)+""}}
function h8(F,t){var x=EvX.lastIndex=Bnc.lastIndex=0,v,SV,GS,Yc=-1,Jt=[],TS=[];F+="";for(t+="";(v=EvX.exec(F))&&(SV=Bnc.exec(t));)(GS=SV.index)>x&&(GS=t.slice(x,GS),Jt[Yc]?Jt[Yc]+=GS:Jt[++Yc]=GS),(v=v[0])===(SV=SV[0])?Jt[Yc]?Jt[Yc]+=SV:Jt[++Yc]=SV:(Jt[++Yc]=null,TS.push({i:Yc,x:iB(v,SV)})),x=Bnc.lastIndex;x<t.length&&(GS=t.slice(x),Jt[Yc]?Jt[Yc]+=GS:Jt[++Yc]=GS);return Jt.length<2?TS[0]?X$(TS[0].x):UM(t):(t=TS.length,function(yl){for(var rA=0,qz;rA<t;++rA)Jt[(qz=TS[rA]).i]=qz.x(yl);return Jt.join("")})}
function Um(F,t,x,v,SV,GS){var Yc,Jt,TS;if(Yc=Math.sqrt(F*F+t*t))F/=Yc,t/=Yc;if(TS=F*x+t*v)x-=F*TS,v-=t*TS;if(Jt=Math.sqrt(x*x+v*v))x/=Jt,v/=Jt,TS/=Jt;F*v<t*x&&(F=-F,t=-t,TS=-TS,Yc=-Yc);return{translateX:SV,translateY:GS,rotate:Math.atan2(t,F)*gvw,skewX:Math.atan(TS)*gvw,scaleX:Yc,scaleY:Jt}}
function lY(F,t,x,v){function SV(yl){return yl.length?yl.pop()+" ":""}
function GS(yl,rA,qz,c6,Q5,HH){yl!==qz||rA!==c6?(Q5=Q5.push("translate(",null,t,null,x),HH.push({i:Q5-4,x:iB(yl,qz)},{i:Q5-2,x:iB(rA,c6)})):(qz||c6)&&Q5.push("translate("+qz+t+c6+x)}
function Yc(yl,rA,qz,c6){yl!==rA?(yl-rA>180?rA+=360:rA-yl>180&&(yl+=360),c6.push({i:qz.push(SV(qz)+"rotate(",null,v)-2,x:iB(yl,rA)})):rA&&qz.push(SV(qz)+"rotate("+rA+v)}
function Jt(yl,rA,qz,c6){yl!==rA?c6.push({i:qz.push(SV(qz)+"skewX(",null,v)-2,x:iB(yl,rA)}):rA&&qz.push(SV(qz)+"skewX("+rA+v)}
function TS(yl,rA,qz,c6,Q5,HH){yl!==qz||rA!==c6?(Q5=Q5.push(SV(Q5)+"scale(",null,",",null,")"),HH.push({i:Q5-4,x:iB(yl,qz)},{i:Q5-2,x:iB(rA,c6)})):qz===1&&c6===1||Q5.push(SV(Q5)+"scale("+qz+","+c6+")")}
return function(yl,rA){var qz=[],c6=[];yl=F(yl);rA=F(rA);GS(yl.translateX,yl.translateY,rA.translateX,rA.translateY,qz,c6);Yc(yl.rotate,rA.rotate,qz,c6);Jt(yl.skewX,rA.skewX,qz,c6);TS(yl.scaleX,yl.scaleY,rA.scaleX,rA.scaleY,qz,c6);yl=rA=null;return function(Q5){for(var HH=-1,KI=c6.length,pI;++HH<KI;)qz[(pI=c6[HH]).i]=pI.x(Q5);return qz.join("")}}}
function z_(F){return function(t,x){var v=F((t=SL(t)).h,(x=SL(x)).h),SV=ic(t.s,x.s),GS=ic(t.l,x.l),Yc=ic(t.opacity,x.opacity);return function(Jt){t.h=v(Jt);t.s=SV(Jt);t.l=GS(Jt);t.opacity=Yc(Jt);return t+""}}}
function EP(F){return function(t,x){var v=F((t=oA(t)).h,(x=oA(x)).h),SV=ic(t.c,x.c),GS=ic(t.l,x.l),Yc=ic(t.opacity,x.opacity);return function(Jt){t.h=v(Jt);t.c=SV(Jt);t.l=GS(Jt);t.opacity=Yc(Jt);return t+""}}}
function Fa(F){return function v(x){function SV(GS,Yc){var Jt=F((GS=DI(GS)).h,(Yc=DI(Yc)).h),TS=ic(GS.s,Yc.s),yl=ic(GS.l,Yc.l),rA=ic(GS.opacity,Yc.opacity);return function(qz){GS.h=Jt(qz);GS.s=TS(qz);GS.l=yl(Math.pow(qz,x));GS.opacity=rA(qz);return GS+""}}
x=+x;SV.gamma=v;return SV}(1)}
function Cj(){return BV||(rAD(vtX),BV=uU.now()+ppA)}
function vtX(){BV=0}
function Kj(){this._call=this._time=this._next=null}
function o7(F,t,x){var v=new Kj;v.restart(F,t,x);return v}
function GN(){BV=(Yxl=uU.now())+ppA;fe=lU=0;try{Cj();++fe;for(var F=RoA,t;F;)(t=BV-F._time)>=0&&F._call.call(null,t),F=F._next;--fe}finally{fe=0;F=RoA;for(var x=Infinity;F;)if(F._call){x>F._time&&(x=F._time);var v=F;F=F._next}else t=F._next,F._next=null,F=v?v._next=t:RoA=t;De=v;QN(x);BV=0}}
function tTD(){var F=uU.now(),t=F-Yxl;t>1E3&&(ppA-=t,Yxl=F)}
function QN(F){fe||(lU&&(lU=clearTimeout(lU)),F-BV>24?(F<Infinity&&(lU=setTimeout(GN,F-uU.now()-ppA)),o5&&(o5=clearInterval(o5))):(o5||(Yxl=uU.now(),o5=setInterval(tTD,1E3)),fe=1,rAD(GN)))}
function Evm(F,t,x){var v=new Kj;t=t==null?0:+t;v.restart(function(SV){v.stop();F(SV+t)},t,x);
return v}
function wAo(F,t,x,v,SV,GS){var Yc=F.__transition;if(!Yc)F.__transition={};else if(x in Yc)return;uxA(F,x,{name:t,index:v,group:SV,on:lwF,tween:Df6,time:GS.time,delay:GS.delay,duration:GS.duration,ease:GS.ease,timer:null,state:0})}
function SXD(F,t){F=OG(F,t);if(F.state>0)throw Error("ye");return F}
function wR(F,t){F=OG(F,t);if(F.state>2)throw Error("ze");return F}
function OG(F,t){F=F.__transition;if(!F||!(F=F[t]))throw Error("Ae");return F}
function uxA(F,t,x){function v(TS){var yl,rA;if(x.state!==1)return GS();for(c6 in Yc){var qz=Yc[c6];if(qz.name===x.name){if(qz.state===3)return Evm(v);qz.state===4?(qz.state=6,qz.timer.stop(),qz.on.call("interrupt",F,F.__data__,qz.index,qz.group),delete Yc[c6]):+c6<t&&(qz.state=6,qz.timer.stop(),delete Yc[c6])}}Evm(function(){x.state===3&&(x.state=4,x.timer.restart(SV,x.delay,x.time),SV(TS))});
x.state=2;x.on.call("start",F,F.__data__,x.index,x.group);if(x.state===2){x.state=3;Jt=Array(rA=x.tween.length);var c6=0;for(yl=-1;c6<rA;++c6)if(qz=x.tween[c6].value.call(F,F.__data__,x.index,x.group))Jt[++yl]=qz;Jt.length=yl+1}}
function SV(TS){TS=TS<x.duration?x.ease.call(null,TS/x.duration):(x.timer.restart(GS),x.state=5,1);for(var yl=-1,rA=Jt.length;++yl<rA;)Jt[yl].call(null,TS);x.state===5&&(x.on.call("end",F,F.__data__,x.index,x.group),GS())}
function GS(){x.state=6;x.timer.stop();delete Yc[t];for(var TS in Yc)return;delete F.__transition}
var Yc=F.__transition,Jt;Yc[t]=x;x.timer=o7(function(TS){x.state=1;x.timer.restart(v,x.delay,x.time);x.delay<=TS&&v(TS-x.delay)},0,x.time)}
function o46(F,t){var x,v;return function(){var SV=wR(this,F),GS=SV.tween;if(GS!==x){v=x=GS;GS=0;for(var Yc=v.length;GS<Yc;++GS)if(v[GS].name===t){v=v.slice();v.splice(GS,1);break}}SV.tween=v}}
function GkM(F,t,x){var v,SV;if(typeof x!=="function")throw Error();return function(){var GS=wR(this,F),Yc=GS.tween;if(Yc!==v){SV=(v=Yc).slice();Yc={name:t,value:x};for(var Jt=0,TS=SV.length;Jt<TS;++Jt)if(SV[Jt].name===t){SV[Jt]=Yc;break}Jt===TS&&SV.push(Yc)}GS.tween=SV}}
function O7Q(F,t,x){var v=F._id;F.each(function(){var SV=wR(this,v);(SV.value||(SV.value={}))[t]=x.apply(this,arguments)});
return function(SV){return OG(SV,v).value[t]}}
function Bnb(F,t){var x;return(typeof t==="number"?iB:t instanceof OM?wAz:(x=OM(t))?(t=x,wAz):h8)(F,t)}
function Qoz(F){return function(){this.removeAttribute(F)}}
function za8(F){return function(){this.removeAttributeNS(F.space,F.local)}}
function kkM(F,t,x){var v,SV;return function(){var GS=this.getAttribute(F);return GS===x?null:GS===v?SV:SV=t(v=GS,x)}}
function HVm(F,t,x){var v,SV;return function(){var GS=this.getAttributeNS(F.space,F.local);return GS===x?null:GS===v?SV:SV=t(v=GS,x)}}
function pgA(F,t,x){var v,SV,GS;return function(){var Yc=x(this);if(Yc==null)return void this.removeAttribute(F);var Jt=this.getAttribute(F);return Jt===Yc?null:Jt===v&&Yc===SV?GS:GS=t(v=Jt,SV=Yc)}}
function YhM(F,t,x){var v,SV,GS;return function(){var Yc=x(this);if(Yc==null)return void this.removeAttributeNS(F.space,F.local);var Jt=this.getAttributeNS(F.space,F.local);return Jt===Yc?null:Jt===v&&Yc===SV?GS:GS=t(v=Jt,SV=Yc)}}
function Ra6(F,t){function x(){var v=this,SV=t.apply(v,arguments);return SV&&function(GS){v.setAttributeNS(F.space,F.local,SV(GS))}}
x._value=t;return x}
function n4D(F,t){function x(){var v=this,SV=t.apply(v,arguments);return SV&&function(GS){v.setAttribute(F,SV(GS))}}
x._value=t;return x}
function soL(F,t){return function(){SXD(this,F).delay=+t.apply(this,arguments)}}
function fw5(F,t){return t=+t,function(){SXD(this,F).delay=t}}
function $f8(F,t){return function(){wR(this,F).duration=+t.apply(this,arguments)}}
function jo8(F,t){return t=+t,function(){wR(this,F).duration=t}}
function Aq4(F,t){if(typeof t!=="function")throw Error();return function(){wR(this,F).ease=t}}
function bVM(F){return(F+"").trim().split(/^|\s+/).every(function(t){var x=t.indexOf(".");x>=0&&(t=t.slice(0,x));return!t||t==="start"})}
function JqF(F,t,x){var v,SV,GS=bVM(t)?SXD:wR;return function(){var Yc=GS(this,F),Jt=Yc.on;if(Jt!==v)(SV=(v=Jt).copy()).on(t,x);Yc.on=SV}}
function P66(F){return function(){var t=this.parentNode,x;for(x in this.__transition)if(+x!==F)return;t&&t.removeChild(this)}}
function t5M(F,t){var x,v,SV;return function(){var GS=PJ(this,F),Yc=(this.style.removeProperty(F),PJ(this,F));return GS===Yc?null:GS===x&&Yc===v?SV:SV=t(x=GS,v=Yc)}}
function FFM(F){return function(){this.style.removeProperty(F)}}
function eav(F,t,x){var v,SV;return function(){var GS=PJ(this,F);return GS===x?null:GS===v?SV:SV=t(v=GS,x)}}
function WF6(F,t,x){var v,SV,GS;return function(){var Yc=PJ(this,F),Jt=x(this);Jt==null&&(Jt=(this.style.removeProperty(F),PJ(this,F)));return Yc===Jt?null:Yc===v&&Jt===SV?GS:GS=t(v=Yc,SV=Jt)}}
function C6v(F,t,x){function v(){var SV=this,GS=t.apply(SV,arguments);return GS&&function(Yc){SV.style.setProperty(F,GS(Yc),x)}}
v._value=t;return v}
function KFg(F){return function(){this.textContent=F}}
function xf6(F){return function(){var t=F(this);this.textContent=t==null?"":t}}
function of(F,t,x,v){this._groups=F;this._parents=t;this._name=x;this._id=v}
function UaY(F){return{type:F}}
function MPD(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function nBX(){}
function SXw(F,t){var x=new nBX;if(F instanceof nBX)F.each(function(Yc,Jt){x.set(Jt,Yc)});
else if(Array.isArray(F)){var v=-1,SV=F.length,GS;if(t==null)for(;++v<SV;)x.set(v,F[v]);else for(;++v<SV;)x.set(t(GS=F[v],v,F),GS)}else if(F)for(v in F)x.set(v,F[v]);return x}
function sBB(){}
function O7I(F){return function(t){for(var x={},v=0;v<F.length;v++)x[F[v]]=t[v]||"";return x}}
function aw6(F,t){var x=O7I(F);return function(v,SV){return t(x(v),SV,F)}}
function Xg$(F){var t=Object.create(null),x=[];F.forEach(function(v){for(var SV in v)SV in t||x.push(t[SV]=SV)});
return x}
function UaZ(F){function t(Yc,Jt){function TS(){if(HH)return qXA;if(KI)return KI=!1,MPw;var P8,C5=qz,Bk;if(Yc.charCodeAt(C5)===34){for(;qz++<rA&&Yc.charCodeAt(qz)!==34||Yc.charCodeAt(++qz)===34;);(P8=qz)>=rA?HH=!0:(Bk=Yc.charCodeAt(qz++))===10?KI=!0:Bk===13&&(KI=!0,Yc.charCodeAt(qz)===10&&++qz);return Yc.slice(C5+1,P8-1).replace(/""/g,'"')}for(;qz<rA;){if((Bk=Yc.charCodeAt(P8=qz++))===10)KI=!0;else if(Bk===13)KI=!0,Yc.charCodeAt(qz)===10&&++qz;else if(Bk!==GS)continue;return Yc.slice(C5,P8)}return HH=
!0,Yc.slice(C5,rA)}
var yl=[],rA=Yc.length,qz=0,c6=0,Q5,HH=rA<=0,KI=!1;Yc.charCodeAt(rA-1)===10&&--rA;for(Yc.charCodeAt(rA-1)===13&&--rA;(Q5=TS())!==qXA;){for(var pI=[];Q5!==MPw&&Q5!==qXA;)pI.push(Q5),Q5=TS();Jt&&(pI=Jt(pI,c6++))==null||yl.push(pI)}return yl}
function x(Yc){return Yc.map(v).join(F)}
function v(Yc){return Yc==null?"":SV.test(Yc)?'"'+Yc.replace(/"/g,'""')+'"':Yc}
var SV=new RegExp('["'+F+"\n\r]"),GS=F.charCodeAt(0);return{parse:function(Yc,Jt){var TS,yl;Yc=t(Yc,function(rA,qz){if(TS)return TS(rA,qz-1);yl=rA;TS=Jt?aw6(rA,Jt):O7I(rA)});
Yc.columns=yl||[];return Yc},
parseRows:t,format:function(Yc,Jt){Jt==null&&(Jt=Xg$(Yc));return[Jt.map(v).join(F)].concat(Yc.map(function(TS){return Jt.map(function(yl){return v(TS[yl])}).join(F)})).join("\n")},
formatRows:function(Yc){return Yc.map(x).join("\n")}}}
function N5A(F){if(!F.ok)throw Error("Be`"+F.status+"`"+F.statusText);return F.text()}
function qXn(F){return function(t,x,v){arguments.length===2&&typeof x==="function"&&(v=x,x=void 0);return fetch(t,x).then(N5A).then(function(SV){return F(SV,v)})}}
function uOb(F,t,x,v){if(isNaN(t)||isNaN(x))return F;var SV,GS=F._root;v={data:v};var Yc=F._x0,Jt=F._y0,TS=F._x1,yl=F._y1,rA,qz,c6,Q5,HH;if(!GS)return F._root=v,F;for(;GS.length;)if((c6=t>=(rA=(Yc+TS)/2))?Yc=rA:TS=rA,(Q5=x>=(qz=(Jt+yl)/2))?Jt=qz:yl=qz,SV=GS,!(GS=GS[HH=Q5<<1|c6]))return SV[HH]=v,F;var KI=+F._x.call(null,GS.data);var pI=+F._y.call(null,GS.data);if(t===KI&&x===pI)return v.next=GS,SV?SV[HH]=v:F._root=v,F;do SV=SV?SV[HH]=Array(4):F._root=Array(4),(c6=t>=(rA=(Yc+TS)/2))?Yc=rA:TS=rA,(Q5=
x>=(qz=(Jt+yl)/2))?Jt=qz:yl=qz;while((HH=Q5<<1|c6)===(c6=(pI>=qz)<<1|KI>=rA));return SV[c6]=GS,SV[HH]=v,F}
function Ho(F,t,x,v,SV){this.node=F;this.x0=t;this.y0=x;this.x1=v;this.y1=SV}
function Iwm(F){return F[0]}
function mf6(F){return F[1]}
function uOc(F,t,x,v,SV,GS){this._x=F;this._y=t;this._x0=x;this._y0=v;this._x1=SV;this._y1=GS;this._root=void 0}
function lED(F){for(var t={data:F.data},x=t;F=F.next;)x=x.next={data:F.data};return t}
function fkD(F,t){if((t=(F=t?F.toExponential(t-1):F.toExponential()).indexOf("e"))<0)return null;var x=F.slice(0,t);return[x.length>1?x[0]+x.slice(2):x,+F.slice(t+1)]}
function cqm(F){return F=fkD(Math.abs(F)),F?F[1]:NaN}
function iVt(F,t){return function(x,v){for(var SV=x.length,GS=[],Yc=0,Jt=F[0],TS=0;SV>0&&Jt>0;){TS+Jt+1>v&&(Jt=Math.max(1,v-TS));GS.push(x.substring(SV-=Jt,SV+Jt));if((TS+=Jt+1)>v)break;Jt=F[Yc=(Yc+1)%F.length]}return GS.reverse().join(t)}}
function LFM(F){return function(t){return t.replace(/[0-9]/g,function(x){return F[+x]})}}
function lES(F){return new Dal(F)}
function Dal(F){if(!(t=V5$.exec(F)))throw Error("Ce`"+F);var t;this.fill=t[1]||" ";this.align=t[2]||">";this.sign=t[3]||"-";this.symbol=t[4]||"";this.zero=!!t[5];this.width=t[6]&&+t[6];this.comma=!!t[7];this.precision=t[8]&&+t[8].slice(1);this.trim=!!t[9];this.type=t[10]||""}
function DaA(F,t){t=fkD(F,t);if(!t)return F+"";F=t[0];t=t[1];return t<0?"0."+Array(-t).join("0")+F:F.length>t+1?F.slice(0,t+1)+"."+F.slice(t+1):F+Array(t-F.length+2).join("0")}
function ovw(F){return F}
function haM(F){function t(Jt){function TS(VB){var VX=Bk,t8=$3,Da,BH;if(C5==="c")t8=K5(VB)+t8,VB="";else{VB=+VB;var pD=VB<0;VB=K5(Math.abs(VB),pI);if(P8){var Cl=VB.length,zx=1,tp=-1;a:for(;zx<Cl;++zx)switch(VB[zx]){case ".":tp=Da=zx;break;case "0":tp===0&&(tp=zx);Da=zx;break;default:if(!+VB[zx])break a;tp>0&&(tp=0)}VB=tp>0?VB.slice(0,tp)+VB.slice(Da+1):VB}pD&&+VB===0&&(pD=!1);VX=(pD?qz==="("?qz:"-":qz==="-"||qz==="("?"":qz)+VX;t8=(C5==="s"?Gtz[8+Qib/3]:"")+t8+(pD&&qz==="("?")":"");if(Qw)for(pD=-1,
Da=VB.length;++pD<Da;)if(BH=VB.charCodeAt(pD),48>BH||BH>57){t8=(BH===46?SV+VB.slice(pD+1):VB.slice(pD))+t8;VB=VB.slice(0,pD);break}}KI&&!Q5&&(VB=x(VB,Infinity));BH=VX.length+VB.length+t8.length;pD=BH<HH?Array(HH-BH+1).join(yl):"";KI&&Q5&&(VB=x(pD+VB,pD.length?HH-t8.length:Infinity),pD="");switch(rA){case "<":VB=VX+VB+t8+pD;break;case "=":VB=VX+pD+VB+t8;break;case "^":VB=pD.slice(0,BH=pD.length>>1)+VX+VB+t8+pD.slice(BH);break;default:VB=pD+VX+VB+t8}return GS(VB)}
Jt=lES(Jt);var yl=Jt.fill,rA=Jt.align,qz=Jt.sign,c6=Jt.symbol,Q5=Jt.zero,HH=Jt.width,KI=Jt.comma,pI=Jt.precision,P8=Jt.trim,C5=Jt.type;C5==="n"?(KI=!0,C5="g"):zOw[C5]||(pI==null&&(pI=12),P8=!0,C5="g");if(Q5||yl==="0"&&rA==="=")Q5=!0,yl="0",rA="=";var Bk=c6==="$"?v[0]:c6==="#"&&/[boxX]/.test(C5)?"0"+C5.toLowerCase():"",$3=c6==="$"?v[1]:/[%p]/.test(C5)?Yc:"",K5=zOw[C5],Qw=/[defgprs%]/.test(C5);pI=pI==null?6:/[gprs]/.test(C5)?Math.max(1,Math.min(21,pI)):Math.max(0,Math.min(20,pI));TS.toString=function(){return Jt+
""};
return TS}
var x=F.grouping&&F.thousands?iVt(F.grouping,F.thousands):ovw,v=F.currency,SV=F.decimal,GS=F.numerals?LFM(F.numerals):ovw,Yc=F.percent||"%";return{format:t,formatPrefix:function(Jt,TS){var yl=t((Jt=lES(Jt),Jt.type="f",Jt));Jt=Math.max(-8,Math.min(8,Math.floor(cqm(TS)/3)))*3;var rA=Math.pow(10,-Jt),qz=Gtz[8+Jt/3];return function(c6){return yl(rA*c6)+qz}}}}
function TG(){this.reset()}
function ktU(F,t,x){var v=F.s=t+x,SV=v-t;F.t=t-(v-SV)+(x-SV)}
function $DQ(F){return F>1?lP:F<-1?-lP:Math.asin(F)}
function ZV8(){}
function H7T(F){var t=F[0];F=F[1];var x=Dp(F);return[x*Dp(t),x*O9(t),O9(F)]}
function pAw(F,t){return[F[1]*t[2]-F[2]*t[1],F[2]*t[0]-F[0]*t[2],F[0]*t[1]-F[1]*t[0]]}
function YX4(F){var t=jBt(F[0]*F[0]+F[1]*F[1]+F[2]*F[2]);F[0]/=t;F[1]/=t;F[2]/=t}
function yq4(){var F=[],t;return{point:function(x,v){t.push([x,v])},
lineStart:function(){F.push(t=[])},
lineEnd:ZV8,rejoin:function(){F.length>1&&F.push(F.pop().concat(F.shift()))},
result:function(){var x=F;F=[];t=null;return x}}}
function A5B(F,t,x,v){this.x=F;this.z=t;this.o=x;this.e=v;this.v=!1;this.n=this.p=null}
function v4m(F,t,x,v,SV){var GS=[],Yc=[];F.forEach(function(qz){if(!((c6=qz.length-1)<=0)){var c6,Q5=qz[0],HH=qz[c6],KI=Q5;if(GR(KI[0]-HH[0])<1E-6&&GR(KI[1]-HH[1])<1E-6){SV.lineStart();for(Jt=0;Jt<c6;++Jt)SV.point((Q5=qz[Jt])[0],Q5[1]);SV.lineEnd()}else GS.push(c6=new A5B(Q5,qz,null,!0)),Yc.push(c6.o=new A5B(Q5,null,c6,!1)),GS.push(c6=new A5B(HH,qz,null,!1)),Yc.push(c6.o=new A5B(HH,null,c6,!0))}});
if(GS.length){Yc.sort(t);ROI(GS);ROI(Yc);var Jt=0;for(F=Yc.length;Jt<F;++Jt)Yc[Jt].e=x=!x;x=GS[0];for(var TS;;){for(var yl=x,rA=!0;yl.v;)if((yl=yl.n)===x)return;t=yl.z;SV.lineStart();do{yl.v=yl.o.v=!0;if(yl.e){if(rA)for(Jt=0,F=t.length;Jt<F;++Jt)SV.point((TS=t[Jt])[0],TS[1]);else v(yl.x,yl.n.x,1,SV);yl=yl.n}else{if(rA)for(t=yl.p.z,Jt=t.length-1;Jt>=0;--Jt)SV.point((TS=t[Jt])[0],TS[1]);else v(yl.x,yl.p.x,-1,SV);yl=yl.p}yl=yl.o;t=yl.z;rA=!rA}while(!yl.v);SV.lineEnd()}}}
function ROI(F){if(t=F.length){for(var t,x=0,v=F[0],SV;++x<t;)v.n=SV=F[x],SV.p=v,v=SV;v.n=SV=F[0];SV.p=v}}
function dft(F){return F.length>1}
function T55(F,t){return((F=F.x)[0]<0?F[1]-lP-1E-6:lP-F[1])-((t=t.x)[0]<0?t[1]-lP-1E-6:lP-t[1])}
function ovL(){}
function nvb(F){return function(t,x){var v=Dp(t),SV=Dp(x);v=F(v*SV);return[v*SV*O9(t),v*O9(x)]}}
function GB(F){return function(t,x){var v=jBt(t*t+x*x),SV=F(v),GS=O9(SV);SV=Dp(SV);return[siA(t*GS,v*SV),$DQ(v&&x*GS/v)]}}
function g$6(F){var t=0,x=F.children,v=x&&x.length;if(v)for(;--v>=0;)t+=x[v].value;else t=1;F.value=t}
function fEn(F,t){var x=new Qi(F);F=+F.value&&(x.value=F.value);var v,SV=[x],GS,Yc,Jt,TS;for(t==null&&(t=re6);v=SV.pop();)if(F&&(v.value=+v.data.value),(Yc=t(v.data))&&(TS=Yc.length))for(v.children=Array(TS),Jt=TS-1;Jt>=0;--Jt)SV.push(GS=v.children[Jt]=new Qi(Yc[Jt])),GS.parent=v,GS.depth=v.depth+1;return x.eachBefore(E$z)}
function re6(F){return F.children}
function B9L(F){F.data=F.data.data}
function E$z(F){var t=0;do F.height=t;while((F=F.parent)&&F.height<++t)}
function Qi(F){this.data=F;this.depth=this.height=0;this.parent=null}
function Zs(F,t,x,v){function SV(GS){return F(GS=new Date(+GS)),GS}
SV.floor=SV;SV.ceil=function(GS){return F(GS=new Date(GS-1)),t(GS,1),F(GS),GS};
SV.round=function(GS){var Yc=SV(GS),Jt=SV.ceil(GS);return GS-Yc<Jt-GS?Yc:Jt};
SV.offset=function(GS,Yc){return t(GS=new Date(+GS),Yc==null?1:Math.floor(Yc)),GS};
SV.range=function(GS,Yc,Jt){var TS=[],yl;GS=SV.ceil(GS);Jt=Jt==null?1:Math.floor(Jt);if(!(GS<Yc&&Jt>0))return TS;do TS.push(yl=new Date(+GS)),t(GS,Jt),F(GS);while(yl<GS&&GS<Yc);return TS};
SV.filter=function(GS){return Zs(function(Yc){if(Yc>=Yc)for(;F(Yc),!GS(Yc);)Yc.setTime(Yc-1)},function(Yc,Jt){if(Yc>=Yc)if(Jt<0)for(;++Jt<=0;)for(;t(Yc,-1),!GS(Yc););
else for(;--Jt>=0;)for(;t(Yc,1),!GS(Yc););})};
x&&(SV.count=function(GS,Yc){Gto.setTime(+GS);Qic.setTime(+Yc);F(Gto);F(Qic);return Math.floor(x(Gto,Qic))},SV.every=function(GS){GS=Math.floor(GS);
return isFinite(GS)&&GS>0?GS>1?SV.filter(v?function(Yc){return v(Yc)%GS===0}:function(Yc){return SV.count(0,Yc)%GS===0}):SV:null});
return SV}
function SO(F){return Zs(function(t){t.setDate(t.getDate()-(t.getDay()+7-F)%7);t.setHours(0,0,0,0)},function(t,x){t.setDate(t.getDate()+x*7)},function(t,x){return(x-t-(x.getTimezoneOffset()-t.getTimezoneOffset())*6E4)/6048E5})}
function Od(F){return Zs(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-F)%7);t.setUTCHours(0,0,0,0)},function(t,x){t.setUTCDate(t.getUTCDate()+x*7)},function(t,x){return(x-t)/6048E5})}
function w2t(F){if(0<=F.y&&F.y<100){var t=new Date(-1,F.m,F.d,F.H,F.M,F.S,F.L);t.setFullYear(F.y);return t}return new Date(F.y,F.m,F.d,F.H,F.M,F.S,F.L)}
function blJ(F){if(0<=F.y&&F.y<100){var t=new Date(Date.UTC(-1,F.m,F.d,F.H,F.M,F.S,F.L));t.setUTCFullYear(F.y);return t}return new Date(Date.UTC(F.y,F.m,F.d,F.H,F.M,F.S,F.L))}
function zB(F){return{y:F,m:0,d:1,H:0,M:0,S:0,L:0}}
function SG4(F){function t(t8,Da){return function(BH){var pD=[],Cl=-1,zx=0,tp=t8.length,rW,NP;for(BH instanceof Date||(BH=new Date(+BH));++Cl<tp;)if(t8.charCodeAt(Cl)===37){pD.push(t8.slice(zx,Cl));(zx=$aA[rW=t8.charAt(++Cl)])!=null?rW=t8.charAt(++Cl):zx=rW==="e"?" ":"0";if(NP=Da[rW])rW=NP(BH,zx);pD.push(rW);zx=Cl+1}pD.push(t8.slice(zx,Cl));return pD.join("")}}
function x(t8,Da){return function(BH){var pD=zB(1900);if(v(pD,t8,BH,0)!=BH.length)return null;if("Q"in pD)return new Date(pD.Q);"p"in pD&&(pD.H=pD.H%12+pD.p*12);if("V"in pD){if(pD.V<1||pD.V>53)return null;"w"in pD||(pD.w=1);if("Z"in pD){BH=blJ(zB(pD.y));var Cl=BH.getUTCDay();BH=Cl>4||Cl===0?zOD.ceil(BH):zOD(BH);BH=jiU.offset(BH,(pD.V-1)*7);pD.y=BH.getUTCFullYear();pD.m=BH.getUTCMonth();pD.d=BH.getUTCDate()+(pD.w+6)%7}else BH=Da(zB(pD.y)),Cl=BH.getDay(),BH=Cl>4||Cl===0?ktV.ceil(BH):ktV(BH),BH=AAn.offset(BH,
(pD.V-1)*7),pD.y=BH.getFullYear(),pD.m=BH.getMonth(),pD.d=BH.getDate()+(pD.w+6)%7}else if("W"in pD||"U"in pD)"w"in pD||(pD.w="u"in pD?pD.u%7:"W"in pD?1:0),Cl="Z"in pD?blJ(zB(pD.y)).getUTCDay():Da(zB(pD.y)).getDay(),pD.m=0,pD.d="W"in pD?(pD.w+6)%7+pD.W*7-(Cl+5)%7:pD.w+pD.U*7-(Cl+6)%7;return"Z"in pD?(pD.H+=pD.Z/100|0,pD.M+=pD.Z%100,blJ(pD)):Da(pD)}}
function v(t8,Da,BH,pD){for(var Cl=0,zx=Da.length,tp=BH.length,rW;Cl<zx;){if(pD>=tp)return-1;rW=Da.charCodeAt(Cl++);if(rW===37){if(rW=Da.charAt(Cl++),rW=VX[rW in $aA?Da.charAt(Cl++):rW],!rW||(pD=rW(t8,BH,pD))<0)return-1}else if(rW!=BH.charCodeAt(pD++))return-1}return pD}
var SV=F.dateTime,GS=F.date,Yc=F.time,Jt=F.periods,TS=F.days,yl=F.shortDays,rA=F.months,qz=F.shortMonths,c6=kz(Jt),Q5=Hz(Jt),HH=kz(TS),KI=Hz(TS),pI=kz(yl),P8=Hz(yl),C5=kz(rA),Bk=Hz(rA),$3=kz(qz),K5=Hz(qz),Qw={a:function(t8){return yl[t8.getDay()]},
A:function(t8){return TS[t8.getDay()]},
b:function(t8){return qz[t8.getMonth()]},
B:function(t8){return rA[t8.getMonth()]},
c:null,d:b7z,e:b7z,f:OcL,H:Un$,I:Mw$,j:qGv,L:JAw,m:u5D,M:lft,p:function(t8){return Jt[+(t8.getHours()>=12)]},
Q:PlD,s:tPU,S:Dnz,u:o$v,U:Get,V:QwM,w:zgt,W:kem,x:null,X:null,y:HcD,Y:p25,Z:YGt,"%":FMw},VB={a:function(t8){return yl[t8.getUTCDay()]},
A:function(t8){return TS[t8.getUTCDay()]},
b:function(t8){return qz[t8.getUTCMonth()]},
B:function(t8){return rA[t8.getUTCMonth()]},
c:null,d:eOA,e:eOA,f:Rgv,H:n$z,I:swM,j:ffv,L:WM6,m:$nL,M:jw5,p:function(t8){return Jt[+(t8.getUTCHours()>=12)]},
Q:PlD,s:tPU,S:AeD,u:bc6,U:Je4,V:P8M,w:twz,W:FCM,x:null,X:null,y:eg4,Y:WC4,Z:C8L,"%":FMw},VX={a:function(t8,Da,BH){return(Da=pI.exec(Da.slice(BH)))?(t8.w=P8[Da[0].toLowerCase()],BH+Da[0].length):-1},
A:function(t8,Da,BH){return(Da=HH.exec(Da.slice(BH)))?(t8.w=KI[Da[0].toLowerCase()],BH+Da[0].length):-1},
b:function(t8,Da,BH){return(Da=$3.exec(Da.slice(BH)))?(t8.m=K5[Da[0].toLowerCase()],BH+Da[0].length):-1},
B:function(t8,Da,BH){return(Da=C5.exec(Da.slice(BH)))?(t8.m=Bk[Da[0].toLowerCase()],BH+Da[0].length):-1},
c:function(t8,Da,BH){return v(t8,SV,Da,BH)},
d:ClI,e:ClI,f:KC4,H:KMw,I:KMw,j:xn5,L:afD,m:X2g,M:N9A,p:function(t8,Da,BH){return(Da=c6.exec(Da.slice(BH)))?(t8.p=Q5[Da[0].toLowerCase()],BH+Da[0].length):-1},
Q:Ifv,s:mn$,S:ceL,u:icg,U:LCM,V:Vwz,w:hg6,W:Zcg,x:function(t8,Da,BH){return v(t8,GS,Da,BH)},
X:function(t8,Da,BH){return v(t8,Yc,Da,BH)},
y:ye8,Y:v$$,Z:dn6,"%":T9M};Qw.x=t(GS,Qw);Qw.X=t(Yc,Qw);Qw.c=t(SV,Qw);VB.x=t(GS,VB);VB.X=t(Yc,VB);VB.c=t(SV,VB);return{format:function(t8){var Da=t(t8,Qw);Da.toString=function(){return t8};
return Da},
parse:function(t8){var Da=x(t8,w2t);Da.toString=function(){return t8};
return Da},
utcFormat:function(t8){var Da=t(t8,VB);Da.toString=function(){return t8};
return Da},
utcParse:function(t8){var Da=x(t8,blJ);Da.toString=function(){return t8};
return Da}}}
function lQ(F,t,x){var v=F<0?"-":"";F=(v?-F:F)+"";var SV=F.length;return v+(SV<x?Array(x-SV+1).join(t)+F:F)}
function g0$(F){return F.replace(r1g,"\\$&")}
function kz(F){return new RegExp("^(?:"+F.map(g0$).join("|")+")","i")}
function Hz(F){for(var t={},x=-1,v=F.length;++x<v;)t[F[x].toLowerCase()]=x;return t}
function hg6(F,t,x){return(t=wX.exec(t.slice(x,x+1)))?(F.w=+t[0],x+t[0].length):-1}
function icg(F,t,x){return(t=wX.exec(t.slice(x,x+1)))?(F.u=+t[0],x+t[0].length):-1}
function LCM(F,t,x){return(t=wX.exec(t.slice(x,x+2)))?(F.U=+t[0],x+t[0].length):-1}
function Vwz(F,t,x){return(t=wX.exec(t.slice(x,x+2)))?(F.V=+t[0],x+t[0].length):-1}
function Zcg(F,t,x){return(t=wX.exec(t.slice(x,x+2)))?(F.W=+t[0],x+t[0].length):-1}
function v$$(F,t,x){return(t=wX.exec(t.slice(x,x+4)))?(F.y=+t[0],x+t[0].length):-1}
function ye8(F,t,x){return(t=wX.exec(t.slice(x,x+2)))?(F.y=+t[0]+(+t[0]>68?1900:2E3),x+t[0].length):-1}
function dn6(F,t,x){return(t=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(x,x+6)))?(F.Z=t[1]?0:-(t[2]+(t[3]||"00")),x+t[0].length):-1}
function X2g(F,t,x){return(t=wX.exec(t.slice(x,x+2)))?(F.m=t[0]-1,x+t[0].length):-1}
function ClI(F,t,x){return(t=wX.exec(t.slice(x,x+2)))?(F.d=+t[0],x+t[0].length):-1}
function xn5(F,t,x){return(t=wX.exec(t.slice(x,x+3)))?(F.m=0,F.d=+t[0],x+t[0].length):-1}
function KMw(F,t,x){return(t=wX.exec(t.slice(x,x+2)))?(F.H=+t[0],x+t[0].length):-1}
function N9A(F,t,x){return(t=wX.exec(t.slice(x,x+2)))?(F.M=+t[0],x+t[0].length):-1}
function ceL(F,t,x){return(t=wX.exec(t.slice(x,x+2)))?(F.S=+t[0],x+t[0].length):-1}
function afD(F,t,x){return(t=wX.exec(t.slice(x,x+3)))?(F.L=+t[0],x+t[0].length):-1}
function KC4(F,t,x){return(t=wX.exec(t.slice(x,x+6)))?(F.L=Math.floor(t[0]/1E3),x+t[0].length):-1}
function T9M(F,t,x){return(F=E0$.exec(t.slice(x,x+1)))?x+F[0].length:-1}
function Ifv(F,t,x){return(t=wX.exec(t.slice(x)))?(F.Q=+t[0],x+t[0].length):-1}
function mn$(F,t,x){return(t=wX.exec(t.slice(x)))?(F.Q=+t[0]*1E3,x+t[0].length):-1}
function b7z(F,t){return lQ(F.getDate(),t,2)}
function Un$(F,t){return lQ(F.getHours(),t,2)}
function Mw$(F,t){return lQ(F.getHours()%12||12,t,2)}
function qGv(F,t){return lQ(1+AAn.count($O(F),F),t,3)}
function JAw(F,t){return lQ(F.getMilliseconds(),t,3)}
function OcL(F,t){return JAw(F,t)+"000"}
function u5D(F,t){return lQ(F.getMonth()+1,t,2)}
function lft(F,t){return lQ(F.getMinutes(),t,2)}
function Dnz(F,t){return lQ(F.getSeconds(),t,2)}
function o$v(F){F=F.getDay();return F===0?7:F}
function Get(F,t){return lQ(Bjv.count($O(F),F),t,2)}
function QwM(F,t){var x=F.getDay();F=x>=4||x===0?H7l(F):H7l.ceil(F);return lQ(H7l.count($O(F),F)+($O(F).getDay()===4),t,2)}
function zgt(F){return F.getDay()}
function kem(F,t){return lQ(ktV.count($O(F),F),t,2)}
function HcD(F,t){return lQ(F.getFullYear()%100,t,2)}
function p25(F,t){return lQ(F.getFullYear()%1E4,t,4)}
function YGt(F){F=F.getTimezoneOffset();return(F>0?"-":(F*=-1,"+"))+lQ(F/60|0,"0",2)+lQ(F%60,"0",2)}
function eOA(F,t){return lQ(F.getUTCDate(),t,2)}
function n$z(F,t){return lQ(F.getUTCHours(),t,2)}
function swM(F,t){return lQ(F.getUTCHours()%12||12,t,2)}
function ffv(F,t){return lQ(1+jiU.count(jQ(F),F),t,3)}
function WM6(F,t){return lQ(F.getUTCMilliseconds(),t,3)}
function Rgv(F,t){return WM6(F,t)+"000"}
function $nL(F,t){return lQ(F.getUTCMonth()+1,t,2)}
function jw5(F,t){return lQ(F.getUTCMinutes(),t,2)}
function AeD(F,t){return lQ(F.getUTCSeconds(),t,2)}
function bc6(F){F=F.getUTCDay();return F===0?7:F}
function Je4(F,t){return lQ(wSv.count(jQ(F),F),t,2)}
function P8M(F,t){var x=F.getUTCDay();F=x>=4||x===0?pAL(F):pAL.ceil(F);return lQ(pAL.count(jQ(F),F)+(jQ(F).getUTCDay()===4),t,2)}
function twz(F){return F.getUTCDay()}
function FCM(F,t){return lQ(zOD.count(jQ(F),F),t,2)}
function eg4(F,t){return lQ(F.getUTCFullYear()%100,t,2)}
function WC4(F,t){return lQ(F.getUTCFullYear()%1E4,t,4)}
function C8L(){return"+0000"}
function FMw(){return"%"}
function PlD(F){return+F}
function tPU(F){return Math.floor(+F/1E3)}
function MN(F){for(var t=F.length/6|0,x=Array(t),v=0;v<t;)x[v]="#"+F.slice(v*6,++v*6);return x}
function Kl(F){return SL5(F[F.length-1])}
function J5S(F){var t=F.length;return function(x){return F[Math.max(0,Math.min(t-1,Math.floor(x*t)))]}}
function xaD(F){this._context=F}
function aEw(F){this._curve=F}
function XA4(F,t,x){var v=F._x1-F._x0;t-=F._x1;var SV=(F._y1-F._y0)/(v||t<0&&-0);F=(x-F._y1)/(t||v<0&&-0);return((SV<0?-1:1)+(F<0?-1:1))*Math.min(Math.abs(SV),Math.abs(F),.5*Math.abs((SV*t+F*v)/(v+t)))||0}
function NnD(F,t){var x=F._x1-F._x0;return x?(3*(F._y1-F._y0)/x-t)/2:t}
function YXP(F,t,x){var v=F._x0,SV=F._x1,GS=F._y1,Yc=(SV-v)/3;F._context.bezierCurveTo(v+Yc,F._y0+Yc*t,SV-Yc,GS-Yc*x,SV,GS)}
function ROQ(F){this._context=F}
function IE4(F){this._context=F}
function ps(F,t,x){this.k=F;this.x=t;this.y=x}
(function(F){F.length===1&&(F=r(F));return{left:function(t,x,v,SV){v==null&&(v=0);SV==null&&(SV=t.length);for(;v<SV;){var GS=v+SV>>>1;F(t[GS],x)<0?v=GS+1:SV=GS}return v},
right:function(t,x,v,SV){v==null&&(v=0);SV==null&&(SV=t.length);for(;v<SV;){var GS=v+SV>>>1;F(t[GS],x)>0?SV=GS:v=GS+1}return v}}})(g);
var dEt={value:function(){}};
B.prototype=E.prototype={constructor:B,on:function(F,t){var x=this._,v=w(F+"",x),SV,GS=-1,Yc=v.length;if(arguments.length<2)for(;++GS<Yc;){var Jt;if(Jt=SV=(F=v[GS]).type){a:{Jt=x[SV];for(var TS=0,yl=Jt.length;TS<yl;++TS)if((SV=Jt[TS]).name===F.name){SV=SV.value;break a}SV=void 0}Jt=SV}if(Jt)return SV}else{if(t!=null&&typeof t!=="function")throw Error("De`"+t);for(;++GS<Yc;)if(SV=(F=v[GS]).type)x[SV]=O(x[SV],F.name,t);else if(t==null)for(SV in x)x[SV]=O(x[SV],F.name,null);return this}},
copy:function(){var F={},t=this._,x;for(x in t)F[x]=t[x].slice();return new B(F)},
call:function(F,t){if((SV=arguments.length-2)>0)for(var x=Array(SV),v=0,SV,GS;v<SV;++v)x[v]=arguments[v+2];if(!this._.hasOwnProperty(F))throw Error("xe`"+F);GS=this._[F];v=0;for(SV=GS.length;v<SV;++v)GS[v].value.apply(t,x)},
apply:function(F,t,x){if(!this._.hasOwnProperty(F))throw Error("xe`"+F);F=this._[F];for(var v=0,SV=F.length;v<SV;++v)F[v].value.apply(t,x)}};
var uP={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/"},maU=function(F){return function(){return this.matches(F)}};
if(typeof document!=="undefined"){var Yz=document.documentElement;if(!Yz.matches){var OU$=Yz.webkitMatchesSelector||Yz.msMatchesSelector||Yz.mozMatchesSelector||Yz.oMatchesSelector;maU=function(F){return function(){return OU$.call(this,F)}}}}var cAU=maU;
R.prototype={constructor:R,appendChild:function(F){return this._parent.insertBefore(F,this._next)},
insertBefore:function(F,t){return this._parent.insertBefore(F,t)},
querySelector:function(F){return this._parent.querySelector(F)},
querySelectorAll:function(F){return this._parent.querySelectorAll(F)}};
var VBT={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(VBT={mouseenter:"mouseover",mouseleave:"mouseout"}));var Tc8=[null];XZ.prototype=RA.prototype={constructor:XZ,select:function(F){typeof F!=="function"&&(F=k(F));for(var t=this._groups,x=t.length,v=Array(x),SV=0;SV<x;++SV)for(var GS=t[SV],Yc=GS.length,Jt=v[SV]=Array(Yc),TS,yl,rA=0;rA<Yc;++rA)(TS=GS[rA])&&(yl=F.call(TS,TS.__data__,rA,GS))&&("__data__"in TS&&(yl.__data__=TS.__data__),Jt[rA]=yl);return new XZ(v,this._parents)},
filter:function(F){typeof F!=="function"&&(F=cAU(F));for(var t=this._groups,x=t.length,v=Array(x),SV=0;SV<x;++SV)for(var GS=t[SV],Yc=GS.length,Jt=v[SV]=[],TS,yl=0;yl<Yc;++yl)(TS=GS[yl])&&F.call(TS,TS.__data__,yl,GS)&&Jt.push(TS);return new XZ(v,this._parents)},
data:function(F,t){if(!F)return Q5=Array(this.size()),yl=-1,this.each(function(C5){Q5[++yl]=C5}),Q5;
var x=t?e:J,v=this._parents,SV=this._groups;typeof F!=="function"&&(F=A(F));for(var GS=SV.length,Yc=Array(GS),Jt=Array(GS),TS=Array(GS),yl=0;yl<GS;++yl){var rA=v[yl],qz=SV[yl],c6=qz.length,Q5=F.call(rA,rA&&rA.__data__,yl,v),HH=Q5.length,KI=Jt[yl]=Array(HH),pI=Yc[yl]=Array(HH);c6=TS[yl]=Array(c6);x(rA,qz,KI,pI,c6,Q5,t);qz=rA=0;for(var P8;rA<HH;++rA)if(c6=KI[rA]){for(rA>=qz&&(qz=rA+1);!(P8=pI[qz])&&++qz<HH;);c6._next=P8||null}}Yc=new XZ(Yc,v);Yc._enter=Jt;Yc._exit=TS;return Yc},
exit:function(){return new XZ(this._exit||this._groups.map(H),this._parents)},
merge:function(F){var t=this._groups;F=F._groups;for(var x=t.length,v=Math.min(x,F.length),SV=Array(x),GS=0;GS<v;++GS)for(var Yc=t[GS],Jt=F[GS],TS=Yc.length,yl=SV[GS]=Array(TS),rA,qz=0;qz<TS;++qz)if(rA=Yc[qz]||Jt[qz])yl[qz]=rA;for(;GS<x;++GS)SV[GS]=t[GS];return new XZ(SV,this._parents)},
order:function(){for(var F=this._groups,t=-1,x=F.length;++t<x;)for(var v=F[t],SV=v.length-1,GS=v[SV],Yc;--SV>=0;)if(Yc=v[SV])GS&&GS!==Yc.nextSibling&&GS.parentNode.insertBefore(Yc,GS),GS=Yc;return this},
sort:function(F){function t(qz,c6){return qz&&c6?F(qz.__data__,c6.__data__):!qz-!c6}
F||(F=C);for(var x=this._groups,v=x.length,SV=Array(v),GS=0;GS<v;++GS){for(var Yc=x[GS],Jt=Yc.length,TS=SV[GS]=Array(Jt),yl,rA=0;rA<Jt;++rA)if(yl=Yc[rA])TS[rA]=yl;TS.sort(t)}return(new XZ(SV,this._parents)).order()},
call:function(){var F=arguments[0];arguments[0]=this;F.apply(null,arguments);return this},
nodes:function(){var F=Array(this.size()),t=-1;this.each(function(){F[++t]=this});
return F},
node:function(){for(var F=this._groups,t=0,x=F.length;t<x;++t)for(var v=F[t],SV=0,GS=v.length;SV<GS;++SV){var Yc=v[SV];if(Yc)return Yc}return null},
size:function(){var F=0;this.each(function(){++F});
return F},
empty:function(){return!this.node()},
each:function(F){for(var t=this._groups,x=0,v=t.length;x<v;++x)for(var SV=t[x],GS=0,Yc=SV.length,Jt;GS<Yc;++GS)(Jt=SV[GS])&&F.call(Jt,Jt.__data__,GS,SV);return this},
attr:function(F,t){var x=M(F);if(arguments.length<2){var v=this.node();return x.local?v.getAttributeNS(x.space,x.local):v.getAttribute(x)}return this.each((t==null?x.local?Z:X:typeof t==="function"?x.local?OD:y:x.local?h:c)(x,t))},
style:function(F,t,x){return arguments.length>1?this.each((t==null?uB:typeof t==="function"?jV:zS)(F,t,x==null?"":x)):PJ(this.node(),F)},
property:function(F,t){return arguments.length>1?this.each((t==null?At:typeof t==="function"?xc:XY)(F,t)):this.node()[F]},
text:function(F){return arguments.length?this.each(F==null?rg:(typeof F==="function"?tD:$t)(F)):this.node().textContent},
html:function(F){return arguments.length?this.each(F==null?GD:(typeof F==="function"?zL:xb)(F)):this.node().innerHTML},
append:function(F){var t=typeof F==="function"?F:Q(F);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},
insert:function(F,t){var x=typeof F==="function"?F:Q(F),v=t==null?AD:typeof t==="function"?t:k(t);return this.select(function(){return this.insertBefore(x.apply(this,arguments),v.apply(this,arguments)||null)})},
remove:function(){return this.each(lA)},
clone:function(F){return this.select(F?Mo:pt)},
datum:function(F){return arguments.length?this.property("__data__",F):this.node().__data__},
on:function(F,t,x){var v=J8(F+""),SV=v.length,GS;if(arguments.length<2){var Yc=this.node().__on;if(Yc)for(var Jt=0,TS=Yc.length,yl;Jt<TS;++Jt){var rA=0;for(yl=Yc[Jt];rA<SV;++rA)if((GS=v[rA]).type===yl.type&&GS.name===yl.name)return yl.value}}else{Yc=t?Lw:Rm;x==null&&(x=!1);for(rA=0;rA<SV;++rA)this.each(Yc(v[rA],t,x));return this}},
dispatch:function(F,t){return this.each((typeof t==="function"?Ow:ZI)(F,t))}};
var g45=0;kb.prototype=function(){return new kb}.prototype={constructor:kb,
get:function(F){for(var t=this._;!(t in F);)if(!(F=F.parentNode))return;return F[t]},
set:function(F,t){return F[this._]=t},
remove:function(F){return this._ in F&&delete F[this._]},
toString:function(){return this._}};
var Aw=1/.7,rqF=/^#([0-9a-f]{3})$/,E4L=/^#([0-9a-f]{6})$/,B56=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),wgz=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Shv=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),OVm=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*\\)$"),
UfF=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),M5M=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*\\)$"),hMz={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};
bn(UU,OM,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
bn(TL,PF,D4(UU,{brighter:function(F){F=F==null?Aw:Math.pow(Aw,F);return new TL(this.r*F,this.g*F,this.b*F,this.opacity)},
darker:function(F){F=F==null?.7:Math.pow(.7,F);return new TL(this.r*F,this.g*F,this.b*F,this.opacity)},
rgb:function(){return this},
displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},
hex:function(){return"#"+El(this.r)+El(this.g)+El(this.b)},
toString:function(){var F=this.opacity;F=isNaN(F)?1:Math.max(0,Math.min(1,F));return(F===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(F===1?")":", "+F+")")}}));
bn(TU,SL,D4(UU,{brighter:function(F){F=F==null?Aw:Math.pow(Aw,F);return new TU(this.h,this.s,this.l*F,this.opacity)},
darker:function(F){F=F==null?.7:Math.pow(.7,F);return new TU(this.h,this.s,this.l*F,this.opacity)},
rgb:function(){var F=this.h%360+(this.h<0)*360,t=this.l,x=t+(t<.5?t:1-t)*(isNaN(F)||isNaN(this.s)?0:this.s);t=2*t-x;return new TL(CI(F>=240?F-240:F+120,t,x),CI(F,t,x),CI(F<120?F+240:F-120,t,x),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 Zin=Math.PI/180,dPn=180/Math.PI,vCn=4/29,st=6/29,y2D=3*st*st,qh6=st*st*st;bn(sD,function(F,t,x,v){return arguments.length===1?$R(F):new sD(F,t,x,v==null?1:v)},D4(UU,{brighter:function(F){return new sD(this.l+18*(F==null?1:F),this.a,this.b,this.opacity)},
darker:function(F){return new sD(this.l-18*(F==null?1:F),this.a,this.b,this.opacity)},
rgb:function(){var F=(this.l+16)/116,t=isNaN(this.a)?F:F+this.a/500,x=isNaN(this.b)?F:F-this.b/200;t=.96422*cJ(t);F=1*cJ(F);x=.82521*cJ(x);return new TL(ln(3.1338561*t-1.6168667*F-.4906146*x),ln(-.9787684*t+1.9161415*F+.033454*x),ln(.0719453*t-.2289914*F+1.4052427*x),this.opacity)}}));
bn(QT,oA,D4(UU,{brighter:function(F){return new QT(this.h,this.c,this.l+18*(F==null?1:F),this.opacity)},
darker:function(F){return new QT(this.h,this.c,this.l-18*(F==null?1:F),this.opacity)},
rgb:function(){return $R(this).rgb()}}));
var T3Z=1.78277*-.29227-.1347134789;bn(nD,DI,D4(UU,{brighter:function(F){F=F==null?Aw:Math.pow(Aw,F);return new nD(this.h,this.s,this.l*F,this.opacity)},
darker:function(F){F=F==null?.7:Math.pow(.7,F);return new nD(this.h,this.s,this.l*F,this.opacity)},
rgb:function(){var F=isNaN(this.h)?0:(this.h+120)*Zin,t=+this.l,x=isNaN(this.s)?0:this.s*t*(1-t),v=Math.cos(F);F=Math.sin(F);return new TL(255*(t+x*(-.14861*v+1.78277*F)),255*(t+x*(-.29227*v+-.90649*F)),255*(t+1.97294*v*x),this.opacity)}}));
var wAz=function x(t){function v(GS,Yc){var Jt=SV((GS=PF(GS)).r,(Yc=PF(Yc)).r),TS=SV(GS.g,Yc.g),yl=SV(GS.b,Yc.b),rA=ic(GS.opacity,Yc.opacity);return function(qz){GS.r=Jt(qz);GS.g=TS(qz);GS.b=yl(qz);GS.opacity=rA(qz);return GS+""}}
var SV=n$(t);v.gamma=x;return v}(1),SL5=j3(function(t){var x=t.length-1;
return function(v){var SV=v<=0?v=0:v>=1?(v=1,x-1):Math.floor(v*x),GS=t[SV],Yc=t[SV+1];return QB((v-SV/x)*x,SV>0?t[SV-1]:2*GS-Yc,GS,Yc,SV<x-1?t[SV+2]:2*Yc-GS)}});
j3(function(t){var x=t.length;return function(v){var SV=Math.floor(((v%=1)<0?++v:v)*x);return QB((v-SV/x)*x,t[(SV+x-1)%x],t[SV%x],t[(SV+1)%x],t[(SV+2)%x])}});
var EvX=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Bnc=new RegExp(EvX.source,"g"),gvw=180/Math.PI,nvc={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},R5,sil,i7m,PQl,Uc8=lY(function(t){if(t==="none")return nvc;R5||(R5=document.createElement("DIV"),sil=document.documentElement,i7m=document.defaultView);R5.style.transform=t;t=i7m.getComputedStyle(sil.appendChild(R5),null).getPropertyValue("transform");sil.removeChild(R5);t=t.slice(7,-1).split(",");return Um(+t[0],+t[1],+t[2],+t[3],
+t[4],+t[5])},"px, ","px)","deg)"),MYz=lY(function(t){if(t==null)return nvc;
PQl||(PQl=document.createElementNS("http://www.w3.org/2000/svg","g"));PQl.setAttribute("transform",t);if(!(t=PQl.transform.baseVal.consolidate()))return nvc;t=t.matrix;return Um(t.a,t.b,t.c,t.d,t.e,t.f)},", ",")",")");
z_(Ct);z_(ic);EP(Ct);EP(ic);Fa(Ct);var fEA=Fa(ic),fe=0,lU=0,o5=0,RoA,De,Yxl=0,BV=0,ppA=0,uU=typeof performance==="object"&&performance.now?performance:Date,rAD=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};
Kj.prototype=o7.prototype={constructor:Kj,restart:function(t,x,v){if(typeof t!=="function")throw new TypeError("Ee");v=(v==null?Cj():+v)+(x==null?0:+x);this._next||De===this||(De?De._next=this:RoA=this,De=this);this._call=t;this._time=v;QN()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,QN())}};
var lwF=E("start","end","interrupt"),Df6=[],qLM=RA.prototype.constructor,LMw=0,bM=RA.prototype;of.prototype=function(t){return RA().transition(t)}.prototype={constructor:of,
select:function(t){var x=this._name,v=this._id;typeof t!=="function"&&(t=k(t));for(var SV=this._groups,GS=SV.length,Yc=Array(GS),Jt=0;Jt<GS;++Jt)for(var TS=SV[Jt],yl=TS.length,rA=Yc[Jt]=Array(yl),qz,c6,Q5=0;Q5<yl;++Q5)(qz=TS[Q5])&&(c6=t.call(qz,qz.__data__,Q5,TS))&&("__data__"in qz&&(c6.__data__=qz.__data__),rA[Q5]=c6,wAo(rA[Q5],x,v,Q5,rA,OG(qz,v)));return new of(Yc,this._parents,x,v)},
filter:function(t){typeof t!=="function"&&(t=cAU(t));for(var x=this._groups,v=x.length,SV=Array(v),GS=0;GS<v;++GS)for(var Yc=x[GS],Jt=Yc.length,TS=SV[GS]=[],yl,rA=0;rA<Jt;++rA)(yl=Yc[rA])&&t.call(yl,yl.__data__,rA,Yc)&&TS.push(yl);return new of(SV,this._parents,this._name,this._id)},
merge:function(t){if(t._id!==this._id)throw Error();var x=this._groups;t=t._groups;for(var v=x.length,SV=Math.min(v,t.length),GS=Array(v),Yc=0;Yc<SV;++Yc)for(var Jt=x[Yc],TS=t[Yc],yl=Jt.length,rA=GS[Yc]=Array(yl),qz,c6=0;c6<yl;++c6)if(qz=Jt[c6]||TS[c6])rA[c6]=qz;for(;Yc<v;++Yc)GS[Yc]=x[Yc];return new of(GS,this._parents,this._name,this._id)},
selection:function(){return new qLM(this._groups,this._parents)},
transition:function(){for(var t=this._name,x=this._id,v=++LMw,SV=this._groups,GS=SV.length,Yc=0;Yc<GS;++Yc)for(var Jt=SV[Yc],TS=Jt.length,yl,rA=0;rA<TS;++rA)if(yl=Jt[rA]){var qz=OG(yl,x);wAo(yl,t,v,rA,Jt,{time:qz.time+qz.delay+qz.duration,delay:0,duration:qz.duration,ease:qz.ease})}return new of(SV,this._parents,t,v)},
call:bM.call,nodes:bM.nodes,node:bM.node,size:bM.size,empty:bM.empty,each:bM.each,on:function(t,x){var v=this._id;return arguments.length<2?OG(this.node(),v).on.on(t):this.each(JqF(v,t,x))},
attr:function(t,x){var v=M(t),SV=v==="transform"?MYz:Bnb;return this.attrTween(t,typeof x==="function"?(v.local?YhM:pgA)(v,SV,O7Q(this,"attr."+t,x)):x==null?(v.local?za8:Qoz)(v):(v.local?HVm:kkM)(v,SV,x+""))},
attrTween:function(t,x){var v="attr."+t;if(arguments.length<2)return(v=this.tween(v))&&v._value;if(x==null)return this.tween(v,null);if(typeof x!=="function")throw Error();var SV=M(t);return this.tween(v,(SV.local?Ra6:n4D)(SV,x))},
style:function(t,x,v){var SV=t==="transform"?Uc8:Bnb;return x==null?this.styleTween(t,t5M(t,SV)).on("end.style."+t,FFM(t)):this.styleTween(t,typeof x==="function"?WF6(t,SV,O7Q(this,"style."+t,x)):eav(t,SV,x+""),v)},
styleTween:function(t,x,v){var SV="style."+t;if(arguments.length<2)return(SV=this.tween(SV))&&SV._value;if(x==null)return this.tween(SV,null);if(typeof x!=="function")throw Error();return this.tween(SV,C6v(t,x,v==null?"":v))},
text:function(t){return this.tween("text",typeof t==="function"?xf6(O7Q(this,"text",t)):KFg(t==null?"":t+""))},
remove:function(){return this.on("end.remove",P66(this._id))},
tween:function(t,x){var v=this._id;if(arguments.length<2){v=OG(this.node(),v).tween;for(var SV=0,GS=v.length,Yc;SV<GS;++SV)if((Yc=v[SV]).name===t)return Yc.value;return null}return this.each((x==null?o46:GkM)(v,t,x))},
delay:function(t){var x=this._id;return arguments.length?this.each((typeof t==="function"?soL:fw5)(x,t)):OG(this.node(),x).delay},
duration:function(t){var x=this._id;return arguments.length?this.each((typeof t==="function"?$f8:jo8)(x,t)):OG(this.node(),x).duration},
ease:function(t){var x=this._id;return arguments.length?this.each(Aq4(x,t)):OG(this.node(),x).ease}};
var $al={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};
RA.prototype.transition=function(t){var x;if(t instanceof of){var v=t._id;t=t._name}else v=++LMw,(x=$al).time=Cj(),t=t==null?null:t+"";for(var SV=this._groups,GS=SV.length,Yc=0;Yc<GS;++Yc)for(var Jt=SV[Yc],TS=Jt.length,yl,rA=0;rA<TS;++rA)if(yl=Jt[rA]){var qz=yl,c6=t,Q5=v,HH=rA,KI=Jt,pI;if(!(pI=x))a:{pI=void 0;for(var P8=v;!(pI=yl.__transition)||!(pI=pI[P8]);)if(!(yl=yl.parentNode)){pI=($al.time=Cj(),$al);break a}}wAo(qz,c6,Q5,HH,KI,pI)}return new of(SV,this._parents,t,v)};
["e","w"].map(UaY);["n","s"].map(UaY);"n e s w nw ne se sw".split(" ").map(UaY);MPD.prototype=function(){return new MPD}.prototype={constructor:MPD,
moveTo:function(t,x){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+x)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(t,x){this._+="L"+(this._x1=+t)+","+(this._y1=+x)},
bezierCurveTo:function(t,x,v,SV,GS,Yc){this._+="C"+ +t+","+ +x+","+ +v+","+ +SV+","+(this._x1=+GS)+","+(this._y1=+Yc)},
rect:function(t,x,v,SV){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+x)+"h"+ +v+"v"+ +SV+"h"+-v+"Z"},
toString:function(){return this._}};
nBX.prototype=SXw.prototype={constructor:nBX,has:function(t){return" "+t in this},
get:function(t){return this[" "+t]},
set:function(t,x){this[" "+t]=x;return this},
remove:function(t){t=" "+t;return t in this&&delete this[t]},
clear:function(){for(var t in this)t[0]===" "&&delete this[t]},
keys:function(){var t=[],x;for(x in this)x[0]===" "&&t.push(x.slice(1));return t},
values:function(){var t=[],x;for(x in this)x[0]===" "&&t.push(this[x]);return t},
entries:function(){var t=[],x;for(x in this)x[0]===" "&&t.push({key:x.slice(1),value:this[x]});return t},
size:function(){var t=0,x;for(x in this)x[0]===" "&&++t;return t},
empty:function(){for(var t in this)if(t[0]===" ")return!1;return!0},
each:function(t){for(var x in this)x[0]===" "&&t(this[x],x.slice(1),this)}};
var Ud=SXw.prototype;sBB.prototype=function(t,x){var v=new sBB;if(t instanceof sBB)t.each(function(Yc){v.add(Yc)});
else if(t){var SV=-1,GS=t.length;if(x==null)for(;++SV<GS;)v.add(t[SV]);else for(;++SV<GS;)v.add(x(t[SV],SV,t))}return v}.prototype={constructor:sBB,
has:Ud.has,add:function(t){this[" "+t]=t;return this},
remove:Ud.remove,clear:Ud.clear,values:Ud.keys,size:Ud.size,empty:Ud.empty,each:Ud.each};var MPw={},qXA={},u8L=UaZ(",").parse,lXg=UaZ("\t").parse;qXn(u8L);qXn(lXg);var py=function(t,x,v){x=new uOc(x==null?Iwm:x,v==null?mf6:v,NaN,NaN,NaN,NaN);return t==null?x:x.addAll(t)}.prototype=uOc.prototype;
py.copy=function(){var t=new uOc(this._x,this._y,this._x0,this._y0,this._x1,this._y1),x=this._root,v,SV;if(!x)return t;if(!x.length)return t._root=lED(x),t;for(v=[{source:x,target:t._root=Array(4)}];x=v.pop();)for(var GS=0;GS<4;++GS)if(SV=x.source[GS])SV.length?v.push({source:SV,target:x.target[GS]=Array(4)}):x.target[GS]=lED(SV);return t};
py.add=function(t){var x=+this._x.call(null,t),v=+this._y.call(null,t);return uOb(this.cover(x,v),x,v,t)};
py.addAll=function(t){var x,v,SV=t.length,GS,Yc,Jt=Array(SV),TS=Array(SV),yl=Infinity,rA=Infinity,qz=-Infinity,c6=-Infinity;for(v=0;v<SV;++v)isNaN(GS=+this._x.call(null,x=t[v]))||isNaN(Yc=+this._y.call(null,x))||(Jt[v]=GS,TS[v]=Yc,GS<yl&&(yl=GS),GS>qz&&(qz=GS),Yc<rA&&(rA=Yc),Yc>c6&&(c6=Yc));qz<yl&&(yl=this._x0,qz=this._x1);c6<rA&&(rA=this._y0,c6=this._y1);this.cover(yl,rA).cover(qz,c6);for(v=0;v<SV;++v)uOb(this,Jt[v],TS[v],t[v]);return this};
py.cover=function(t,x){if(isNaN(t=+t)||isNaN(x=+x))return this;var v=this._x0,SV=this._y0,GS=this._x1,Yc=this._y1;if(isNaN(v))GS=(v=Math.floor(t))+1,Yc=(SV=Math.floor(x))+1;else if(v>t||t>GS||SV>x||x>Yc){var Jt=GS-v,TS=this._root,yl;switch(yl=(x<(SV+Yc)/2)<<1|t<(v+GS)/2){case 0:do{var rA=Array(4);rA[yl]=TS;TS=rA}while(Jt*=2,GS=v+Jt,Yc=SV+Jt,t>GS||x>Yc);break;case 1:do rA=Array(4),rA[yl]=TS,TS=rA;while(Jt*=2,v=GS-Jt,Yc=SV+Jt,v>t||x>Yc);break;case 2:do rA=Array(4),rA[yl]=TS,TS=rA;while(Jt*=2,GS=v+Jt,
SV=Yc-Jt,t>GS||SV>x);break;case 3:do rA=Array(4),rA[yl]=TS,TS=rA;while(Jt*=2,v=GS-Jt,SV=Yc-Jt,v>t||SV>x)}this._root&&this._root.length&&(this._root=TS)}else return this;this._x0=v;this._y0=SV;this._x1=GS;this._y1=Yc;return this};
py.data=function(){var t=[];this.visit(function(x){if(!x.length){do t.push(x.data);while(x=x.next)}});
return t};
py.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
py.find=function(t,x,v){var SV=this._x0,GS=this._y0,Yc,Jt,TS,yl,rA=this._x1,qz=this._y1,c6=[],Q5=this._root,HH;Q5&&c6.push(new Ho(Q5,SV,GS,rA,qz));v==null?v=Infinity:(SV=t-v,GS=x-v,rA=t+v,qz=x+v,v*=v);for(;HH=c6.pop();)if(!(!(Q5=HH.node)||(Yc=HH.x0)>rA||(Jt=HH.y0)>qz||(TS=HH.x1)<SV||(yl=HH.y1)<GS))if(Q5.length){HH=(Yc+TS)/2;var KI=(Jt+yl)/2;c6.push(new Ho(Q5[3],HH,KI,TS,yl),new Ho(Q5[2],Yc,KI,HH,yl),new Ho(Q5[1],HH,Jt,TS,KI),new Ho(Q5[0],Yc,Jt,HH,KI));if(Q5=(x>=KI)<<1|t>=HH)HH=c6[c6.length-1],c6[c6.length-
1]=c6[c6.length-1-Q5],c6[c6.length-1-Q5]=HH}else if(HH=t-+this._x.call(null,Q5.data),KI=x-+this._y.call(null,Q5.data),HH=HH*HH+KI*KI,HH<v){var pI=Math.sqrt(v=HH);SV=t-pI;GS=x-pI;rA=t+pI;qz=x+pI;pI=Q5.data}return pI};
py.remove=function(t){if(isNaN(yl=+this._x.call(null,t))||isNaN(rA=+this._y.call(null,t)))return this;var x,v=this._root,SV,GS=this._x0,Yc=this._y0,Jt=this._x1,TS=this._y1,yl,rA,qz,c6,Q5,HH,KI;if(!v)return this;if(v.length)for(;;){(Q5=yl>=(qz=(GS+Jt)/2))?GS=qz:Jt=qz;(HH=rA>=(c6=(Yc+TS)/2))?Yc=c6:TS=c6;if(!(x=v,v=v[KI=HH<<1|Q5]))return this;if(!v.length)break;if(x[KI+1&3]||x[KI+2&3]||x[KI+3&3]){var pI=x;var P8=KI}}for(;v.data!==t;)if(!(SV=v,v=v.next))return this;(t=v.next)&&delete v.next;if(SV)return t?
SV.next=t:delete SV.next,this;if(!x)return this._root=t,this;t?x[KI]=t:delete x[KI];(v=x[0]||x[1]||x[2]||x[3])&&v===(x[3]||x[2]||x[1]||x[0])&&!v.length&&(pI?pI[P8]=v:this._root=v);return this};
py.removeAll=function(t){for(var x=0,v=t.length;x<v;++x)this.remove(t[x]);return this};
py.root=function(){return this._root};
py.size=function(){var t=0;this.visit(function(x){if(!x.length){do++t;while(x=x.next)}});
return t};
py.visit=function(t){var x=[],v,SV=this._root,GS,Yc,Jt,TS,yl;for(SV&&x.push(new Ho(SV,this._x0,this._y0,this._x1,this._y1));v=x.pop();)if(!t(SV=v.node,Yc=v.x0,Jt=v.y0,TS=v.x1,yl=v.y1)&&SV.length){v=(Yc+TS)/2;var rA=(Jt+yl)/2;(GS=SV[3])&&x.push(new Ho(GS,v,rA,TS,yl));(GS=SV[2])&&x.push(new Ho(GS,Yc,rA,v,yl));(GS=SV[1])&&x.push(new Ho(GS,v,Jt,TS,rA));(GS=SV[0])&&x.push(new Ho(GS,Yc,Jt,v,rA))}};
py.visitAfter=function(t){var x=[],v=[],SV;for(this._root&&x.push(new Ho(this._root,this._x0,this._y0,this._x1,this._y1));SV=x.pop();){var GS=SV.node;if(GS.length){var Yc,Jt=SV.x0,TS=SV.y0,yl=SV.x1,rA=SV.y1,qz=(Jt+yl)/2,c6=(TS+rA)/2;(Yc=GS[0])&&x.push(new Ho(Yc,Jt,TS,qz,c6));(Yc=GS[1])&&x.push(new Ho(Yc,qz,TS,yl,c6));(Yc=GS[2])&&x.push(new Ho(Yc,Jt,c6,qz,rA));(Yc=GS[3])&&x.push(new Ho(Yc,qz,c6,yl,rA))}v.push(SV)}for(;SV=v.pop();)t(SV.node,SV.x0,SV.y0,SV.x1,SV.y1);return this};
py.x=function(t){return arguments.length?(this._x=t,this):this._x};
py.y=function(t){return arguments.length?(this._y=t,this):this._y};
var V5$=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;lES.prototype=Dal.prototype;Dal.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 Qib,zOw={"%":function(t,x){return(t*100).toFixed(x)},
b:function(t){return Math.round(t).toString(2)},
c:function(t){return t+""},
d:function(t){return Math.round(t).toString(10)},
e:function(t,x){return t.toExponential(x)},
f:function(t,x){return t.toFixed(x)},
g:function(t,x){return t.toPrecision(x)},
o:function(t){return Math.round(t).toString(8)},
p:function(t,x){return DaA(t*100,x)},
r:DaA,s:function(t,x){var v=fkD(t,x);if(!v)return t+"";var SV=v[0];v=v[1];v=v-(Qib=Math.max(-8,Math.min(8,Math.floor(v/3)))*3)+1;var GS=SV.length;return v===GS?SV:v>GS?SV+Array(v-GS+1).join("0"):v>0?SV.slice(0,v)+"."+SV.slice(v):"0."+Array(1-v).join("0")+fkD(t,Math.max(0,x+v-1))[0]},
X:function(t){return Math.round(t).toString(16).toUpperCase()},
x:function(t){return Math.round(t).toString(16)}},Gtz="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),Dc4;
(function(t){return Dc4=haM(t)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});TG.prototype={constructor:TG,reset:function(){this.s=this.t=0},
add:function(t){ktU(t1V,t,this.t);ktU(this,t1V.s,this.s);this.s?this.t+=t1V.t:this.s=t1V.t},
valueOf:function(){return this.s}};
var t1V=new TG,kK=Math.PI,lP=kK/2,VPU=kK/4,o08=kK*2,jiV=kK/180,GR=Math.abs,AAA=Math.atan,siA=Math.atan2,Dp=Math.cos,O9=Math.sin,jBt=Math.sqrt;new TG;new TG;new TG;var b7o=new TG;(function(t,x,v,SV){return function(GS){function Yc(K5,Qw){t(K5,Qw)&&GS.point(K5,Qw)}
function Jt(K5,Qw){Q5.point(K5,Qw)}
function TS(){$3.point=Jt;Q5.lineStart()}
function yl(){$3.point=Yc;Q5.lineEnd()}
function rA(K5,Qw){Bk.push([K5,Qw]);KI.point(K5,Qw)}
function qz(){KI.lineStart();Bk=[]}
function c6(){rA(Bk[0][0],Bk[0][1]);KI.lineEnd();var K5=KI.clean(),Qw=HH.result(),VB=Qw.length,VX;Bk.pop();P8.push(Bk);Bk=null;if(VB)if(K5&1){if(VB=Qw[0],(Qw=VB.length-1)>0){pI||(GS.polygonStart(),pI=!0);GS.lineStart();for(K5=0;K5<Qw;++K5)GS.point((VX=VB[K5])[0],VX[1]);GS.lineEnd()}}else VB>1&&K5&2&&Qw.push(Qw.pop().concat(Qw.shift())),C5.push(Qw.filter(dft))}
var Q5=x(GS),HH=yq4(),KI=x(HH),pI=!1,P8,C5,Bk,$3={point:Yc,lineStart:TS,lineEnd:yl,polygonStart:function(){$3.point=rA;$3.lineStart=qz;$3.lineEnd=c6;C5=[];P8=[]},
polygonEnd:function(){$3.point=Yc;$3.lineStart=TS;$3.lineEnd=yl;var K5=C5,Qw=K5.length;var VB=-1;for(var VX=0,t8,Da;++VB<Qw;)VX+=K5[VB].length;for(t8=Array(VX);--Qw>=0;)for(Da=K5[Qw],VB=Da.length;--VB>=0;)t8[--VX]=Da[VB];C5=t8;K5=P8;Qw=SV[0];VX=SV[1];var BH=O9(VX);VB=[O9(Qw),-Dp(Qw),0];Da=t8=0;b7o.reset();BH===1?VX=lP+1E-6:BH===-1&&(VX=-lP-1E-6);BH=0;for(var pD=K5.length;BH<pD;++BH)if(zx=(Cl=K5[BH]).length){var Cl,zx,tp=Cl[zx-1],rW=tp[0],NP=tp[1]/2+VPU,FDS=O9(NP),hOw=Dp(NP);for(NP=0;NP<zx;++NP,rW=
JAD,FDS=Z7U,hOw=ns,tp=eoQ){var eoQ=Cl[NP],JAD=eoQ[0];ns=eoQ[1]/2+VPU;var Z7U=O9(ns),ns=Dp(ns),Jw=JAD-rW,PlS=Jw>=0?1:-1,tPV=PlS*Jw,WDX=tPV>kK;FDS*=Z7U;b7o.add(siA(FDS*PlS*O9(tPV),hOw*ns+FDS*Dp(tPV)));t8+=WDX?Jw+PlS*o08:Jw;WDX^rW>=Qw^JAD>=Qw&&(tp=pAw(H7T(tp),H7T(eoQ)),YX4(tp),rW=pAw(VB,tp),YX4(rW),rW=(WDX^Jw>=0?-1:1)*$DQ(rW[2]),VX>rW||VX===rW&&(tp[0]||tp[1]))&&(Da+=WDX^Jw>=0?1:-1)}}K5=(t8<-1E-6||t8<1E-6&&b7o<-1E-6)^Da&1;C5.length?(pI||(GS.polygonStart(),pI=!0),v4m(C5,T55,K5,v,GS)):K5&&(pI||(GS.polygonStart(),
pI=!0),GS.lineStart(),v(null,null,1,GS),GS.lineEnd());pI&&(GS.polygonEnd(),pI=!1);C5=P8=null},
sphere:function(){GS.polygonStart();GS.lineStart();v(null,null,1,GS);GS.lineEnd();GS.polygonEnd()}};
return $3}})(function(){return!0},function(t){var x=NaN,v=NaN,SV=NaN,GS;
return{lineStart:function(){t.lineStart();GS=1},
point:function(Yc,Jt){var TS=Yc>0?kK:-kK,yl=GR(Yc-x);if(GR(yl-kK)<1E-6)t.point(x,v=(v+Jt)/2>0?lP:-lP),t.point(SV,v),t.lineEnd(),t.lineStart(),t.point(TS,v),t.point(Yc,v),GS=0;else if(SV!==TS&&yl>=kK){GR(x-SV)<1E-6&&(x-=SV*1E-6);GR(Yc-TS)<1E-6&&(Yc-=TS*1E-6);yl=x;var rA=v,qz=Yc,c6,Q5,HH=O9(yl-qz);v=GR(HH)>1E-6?AAA((O9(rA)*(Q5=Dp(Jt))*O9(qz)-O9(Jt)*(c6=Dp(rA))*O9(yl))/(c6*Q5*HH)):(rA+Jt)/2;t.point(SV,v);t.lineEnd();t.lineStart();t.point(TS,v);GS=0}t.point(x=Yc,v=Jt);SV=TS},
lineEnd:function(){t.lineEnd();x=v=NaN},
clean:function(){return 2-GS}}},function(t,x,v,SV){t==null?(v*=lP,SV.point(-kK,v),SV.point(0,v),SV.point(kK,v),SV.point(kK,0),SV.point(kK,-v),SV.point(0,-v),SV.point(-kK,-v),SV.point(-kK,0),SV.point(-kK,v)):GR(t[0]-x[0])>1E-6?(t=t[0]<x[0]?kK:-kK,v=v*t/2,SV.point(-t,v),SV.point(0,v),SV.point(t,v)):SV.point(x[0],x[1])},[-kK,
-lP]);new TG;new TG;new TG;new TG;ovL.prototype={constructor:ovL,point:function(t,x){this.stream.point(t,x)},
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()}};
Dp(30*jiV);(function(t){return function(x){var v=new ovL,SV;for(SV in t)v[SV]=t[SV];v.stream=x;return v}})({point:function(t,x){this.stream.point(t*jiV,x*jiV)}});
nvb(function(t){return jBt(2/(1+t))}).invert=GB(function(t){return 2*$DQ(t/2)});
nvb(function(t){return(t=t>1?0:t<-1?kK:Math.acos(t))&&t/O9(t)}).invert=GB(function(t){return t});
jBt(3);GB(AAA);GB($DQ);GB(function(t){return 2*AAA(t)});
Qi.prototype=fEn.prototype={constructor:Qi,count:function(){return this.eachAfter(g$6)},
each:function(t){var x,v=[this],SV;do{var GS=v.reverse();for(v=[];x=GS.pop();)if(t(x),x=x.children){var Yc=0;for(SV=x.length;Yc<SV;++Yc)v.push(x[Yc])}}while(v.length);return this},
eachAfter:function(t){for(var x,v=[this],SV=[],GS,Yc;x=v.pop();)if(SV.push(x),x=x.children)for(GS=0,Yc=x.length;GS<Yc;++GS)v.push(x[GS]);for(;x=SV.pop();)t(x);return this},
eachBefore:function(t){for(var x,v=[this],SV;x=v.pop();)if(t(x),x=x.children)for(SV=x.length-1;SV>=0;--SV)v.push(x[SV]);return this},
sum:function(t){return this.eachAfter(function(x){for(var v=+t(x.data)||0,SV=x.children,GS=SV&&SV.length;--GS>=0;)v+=SV[GS].value;x.value=v})},
sort:function(t){return this.eachBefore(function(x){x.children&&x.children.sort(t)})},
path:function(t){var x=this;var v=x;var SV=t;if(v!==SV){var GS=v.ancestors(),Yc=SV.ancestors(),Jt=null;v=GS.pop();for(SV=Yc.pop();v===SV;)Jt=v,v=GS.pop(),SV=Yc.pop();v=Jt}for(SV=[x];x!==v;)x=x.parent,SV.push(x);for(x=SV.length;t!==v;)SV.splice(x,0,t),t=t.parent;return SV},
ancestors:function(){for(var t=this,x=[t];t=t.parent;)x.push(t);return x},
links:function(){var t=this,x=[];t.each(function(v){v!==t&&x.push({source:v.parent,target:v})});
return x},
copy:function(){return fEn(this).eachBefore(B9L)}};
(function(t,x){this._=t;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=x}).prototype=Object.create(Qi.prototype);
var Gto=new Date,Qic=new Date,yAI=Zs(function(){},function(t,x){t.setTime(+t+x)},function(t,x){return x-t});
yAI.every=function(t){t=Math.floor(t);return isFinite(t)&&t>0?t>1?Zs(function(x){x.setTime(Math.floor(x/t)*t)},function(x,v){x.setTime(+x+v*t)},function(x,v){return(v-x)/t}):yAI:null};
Zs(function(t){t.setTime(Math.floor(t/1E3)*1E3)},function(t,x){t.setTime(+t+x*1E3)},function(t,x){return(x-t)/1E3},function(t){return t.getUTCSeconds()});
Zs(function(t){t.setTime(Math.floor(t/6E4)*6E4)},function(t,x){t.setTime(+t+x*6E4)},function(t,x){return(x-t)/6E4},function(t){return t.getMinutes()});
Zs(function(t){var x=t.getTimezoneOffset()*6E4%36E5;x<0&&(x+=36E5);t.setTime(Math.floor((+t-x)/36E5)*36E5+x)},function(t,x){t.setTime(+t+x*36E5)},function(t,x){return(x-t)/36E5},function(t){return t.getHours()});
var AAn=Zs(function(t){t.setHours(0,0,0,0)},function(t,x){t.setDate(t.getDate()+x)},function(t,x){return(x-t-(x.getTimezoneOffset()-t.getTimezoneOffset())*6E4)/864E5},function(t){return t.getDate()-1}),Bjv=SO(0),ktV=SO(1);
SO(2);SO(3);var H7l=SO(4);SO(5);SO(6);Zs(function(t){t.setDate(1);t.setHours(0,0,0,0)},function(t,x){t.setMonth(t.getMonth()+x)},function(t,x){return x.getMonth()-t.getMonth()+(x.getFullYear()-t.getFullYear())*12},function(t){return t.getMonth()});
var $O=Zs(function(t){t.setMonth(0,1);t.setHours(0,0,0,0)},function(t,x){t.setFullYear(t.getFullYear()+x)},function(t,x){return x.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});
$O.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Zs(function(x){x.setFullYear(Math.floor(x.getFullYear()/t)*t);x.setMonth(0,1);x.setHours(0,0,0,0)},function(x,v){x.setFullYear(x.getFullYear()+v*t)}):null};
Zs(function(t){t.setUTCSeconds(0,0)},function(t,x){t.setTime(+t+x*6E4)},function(t,x){return(x-t)/6E4},function(t){return t.getUTCMinutes()});
Zs(function(t){t.setUTCMinutes(0,0,0)},function(t,x){t.setTime(+t+x*36E5)},function(t,x){return(x-t)/36E5},function(t){return t.getUTCHours()});
var jiU=Zs(function(t){t.setUTCHours(0,0,0,0)},function(t,x){t.setUTCDate(t.getUTCDate()+x)},function(t,x){return(x-t)/864E5},function(t){return t.getUTCDate()-1}),wSv=Od(0),zOD=Od(1);
Od(2);Od(3);var pAL=Od(4);Od(5);Od(6);Zs(function(t){t.setUTCDate(1);t.setUTCHours(0,0,0,0)},function(t,x){t.setUTCMonth(t.getUTCMonth()+x)},function(t,x){return x.getUTCMonth()-t.getUTCMonth()+(x.getUTCFullYear()-t.getUTCFullYear())*12},function(t){return t.getUTCMonth()});
var jQ=Zs(function(t){t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0)},function(t,x){t.setUTCFullYear(t.getUTCFullYear()+x)},function(t,x){return x.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});
jQ.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Zs(function(x){x.setUTCFullYear(Math.floor(x.getUTCFullYear()/t)*t);x.setUTCMonth(0,1);x.setUTCHours(0,0,0,0)},function(x,v){x.setUTCFullYear(x.getUTCFullYear()+v*t)}):null};
var $aA={"-":"",_:" ",0:"0"},wX=/^\s*\d+/,E0$=/^%/,r1g=/[\\^$*+?|[\]().{}]/g,CQX;(function(t){CQX=SG4(t);OWw=CQX.utcFormat;UyD=CQX.utcParse;return CQX})({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||OWw("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||UyD("%Y-%m-%dT%H:%M:%S.%LZ");MN("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
MN("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");MN("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");MN("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");MN("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");MN("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");MN("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
MN("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");MN("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");MN("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");MN("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");MN("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var Ggz=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(MN);Kl(Ggz);var Q28=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(MN);Kl(Q28);var zqM=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(MN);Kl(zqM);var kgL=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(MN);
Kl(kgL);var HU8=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(MN);Kl(HU8);var pS6=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(MN);Kl(pS6);var YL5=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(MN);Kl(YL5);var Rqt=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(MN);Kl(Rqt);var n0m=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(MN);Kl(n0m);var s2M=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(MN);Kl(s2M);var fXt=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(MN);Kl(fXt);var $cm=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(MN);Kl($cm);var j2F=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(MN);Kl(j2F);var A14=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(MN);Kl(A14);var bUv=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(MN);Kl(bUv);var J1F=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(MN);Kl(J1F);var PZ$=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(MN);Kl(PZ$);var tY8=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(MN);Kl(tY8);var FTD=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(MN);Kl(FTD);var eq4=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(MN);Kl(eq4);var WT$=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(MN);Kl(WT$);var CZ$=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(MN);Kl(CZ$);var KTM=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(MN);Kl(KTM);var xcL=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(MN);Kl(xcL);var aXA=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(MN);Kl(aXA);var XS$=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(MN);Kl(XS$);var NjD=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(MN);Kl(NjD);fEA(DI(300,.5,0),DI(-240,.5,1));fEA(DI(-100,.75,.35),DI(80,1.5,.8));fEA(DI(260,.75,.35),DI(80,1.5,.8));DI();PF();J5S(MN("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
J5S(MN("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
J5S(MN("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
J5S(MN("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
xaD.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(t,x){t=+t;x=+x;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,x):this._context.moveTo(t,x);break;case 1:this._point=2;default:this._context.lineTo(t,x)}}};
(function(t){function x(v){return new aEw(t(v))}
x._curve=t;return x})(function(t){return new xaD(t)});
aEw.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(t,x){this._curve.point(x*Math.sin(t),x*-Math.cos(t))}};
ROQ.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:YXP(this,this._t0,NnD(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(t,x){var v=NaN;t=+t;x=+x;if(t!==this._x1||x!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,x):this._context.moveTo(t,x);break;case 1:this._point=2;break;case 2:this._point=3;YXP(this,NnD(this,v=XA4(this,t,x)),v);break;default:YXP(this,this._t0,v=XA4(this,t,x))}this._x0=this._x1;this._x1=t;this._y0=this._y1;this._y1=x;this._t0=v}}};
(function(t){this._context=new IE4(t)}.prototype=Object.create(ROQ.prototype)).point=function(t,x){ROQ.prototype.point.call(this,x,t)};
IE4.prototype={moveTo:function(t,x){this._context.moveTo(x,t)},
closePath:function(){this._context.closePath()},
lineTo:function(t,x){this._context.lineTo(x,t)},
bezierCurveTo:function(t,x,v,SV,GS,Yc){this._context.bezierCurveTo(x,t,SV,v,Yc,GS)}};
ps.prototype={constructor:ps,scale:function(t){return t===1?this:new ps(this.k*t,this.x,this.y)},
translate:function(t,x){return t===0&x===0?this:new ps(this.k,this.x+this.k*t,this.y+this.k*x)},
apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},
invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new ps(1,0,0);pOo=OM;uP.svg=uP.svg;uP.xhtml=uP.xhtml;uP.xlink=uP.xlink;uP.xml=uP.xml;uP.xmlns=uP.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 M_w="hammer_"+(Math.random()*1E6|0),q2m=function(){var g=document||document;if(!g[M_w]){var r=function(){(function(E,B,w,O){function M(sD,CL,cJ){return setTimeout(H(sD,cJ),CL)}
function u(sD,CL,cJ){return Array.isArray(sD)?(l(sD,cJ[CL],cJ),!0):!1}
function l(sD,CL,cJ){var ln;if(sD)if(sD.forEach)sD.forEach(CL,cJ);else if(sD.length!==O){var Sv=0;for(ln=sD.length;Sv<ln;Sv++)CL.call(cJ,sD[Sv],Sv,sD)}else for(Sv in sD)sD.hasOwnProperty(Sv)&&CL.call(cJ,sD[Sv],Sv,sD)}
function Q(sD,CL,cJ){for(var ln=Object.keys(CL),Sv=0,PH=ln.length;Sv<PH;Sv++)if(!cJ||cJ&&sD[ln[Sv]]===O)sD[ln[Sv]]=CL[ln[Sv]];return sD}
function z(sD,CL){return Q(sD,CL,!0)}
function k(sD,CL,cJ){CL=CL.prototype;var ln=sD.prototype=Object.create(CL);ln.constructor=sD;ln._super=CL;cJ&&Q(ln,cJ)}
function H(sD,CL){return function(){return sD.apply(CL,arguments)}}
function R(sD,CL){return typeof sD=="function"?sD.apply(CL?CL[0]||O:O,CL):sD}
function A(sD,CL,cJ){l(e(CL),function(ln){sD.addEventListener(ln,cJ,!1)})}
function J(sD,CL,cJ){l(e(CL),function(ln){sD.removeEventListener(ln,cJ,!1)})}
function e(sD){return sD.trim().split(/\s+/g)}
function C(sD,CL,cJ){if(sD.indexOf&&!cJ)return sD.indexOf(CL);for(var ln=0,Sv=sD.length;ln<Sv;ln++)if(cJ&&sD[ln][cJ]==CL||!cJ&&sD[ln]===CL)return ln;return-1}
function X(sD,CL,cJ){for(var ln=[],Sv=[],PH=0,oA=sD.length;PH<oA;PH++){var QT=CL?sD[PH][CL]:sD[PH];C(Sv,QT)<0&&ln.push(sD[PH]);Sv[PH]=QT}cJ&&(ln=CL?ln.sort(function(DI,nD){return DI[CL]>nD[CL]}):ln.sort());
return ln}
function Z(sD,CL){for(var cJ,ln=CL[0].toUpperCase()+CL.slice(1),Sv=0,PH=Ow.length;Sv<PH;Sv++)if(cJ=(cJ=Ow[Sv])?cJ+ln:CL,cJ in sD)return cJ;return O}
function c(sD,CL){var cJ=this;this.manager=sD;this.callback=CL;this.element=sD.element;this.target=sD.options.inputTarget;this.domHandler=function(ln){R(sD.options.enable,[sD])&&cJ.handler(ln)};
this.evEl&&A(this.element,this.evEl,this.domHandler);this.evTarget&&A(this.target,this.evTarget,this.domHandler);this.evWin&&A(E,this.evWin,this.domHandler)}
function h(sD){var CL;RF?CL=XY:cE?CL=xc:OM?CL=rg:CL=At;return new CL(sD,y)}
function y(sD,CL,cJ){var ln=cJ.pointers.length,Sv=cJ.changedPointers.length,PH=CL&1&&ln-Sv===0;cJ.isFirst=!!PH;cJ.isFinal=!!(CL&12&&ln-Sv===0);PH&&(sD.session={});cJ.eventType=CL;CL=sD.session;ln=cJ.pointers;Sv=ln.length;CL.firstInput||(CL.firstInput=OD(cJ));Sv>1&&!CL.firstMultiple?CL.firstMultiple=OD(cJ):Sv===1&&(CL.firstMultiple=!1);PH=CL.firstInput;var oA=(Sv=CL.firstMultiple)?Sv.center:PH.center,QT=cJ.center=uB(ln);cJ.timeStamp=bn();cJ.deltaTime=cJ.timeStamp-PH.timeStamp;cJ.angle=PJ(oA,QT);cJ.distance=
jV(oA,QT);PH=cJ.center;oA=CL.offsetDelta||{};QT=CL.prevDelta||{};var DI=CL.prevInput||{};if(cJ.eventType===1||DI.eventType===4)QT=CL.prevDelta={x:DI.deltaX||0,y:DI.deltaY||0},oA=CL.offsetDelta={x:PH.x,y:PH.y};cJ.deltaX=QT.x+(PH.x-oA.x);cJ.deltaY=QT.y+(PH.y-oA.y);cJ.offsetDirection=zS(cJ.deltaX,cJ.deltaY);Sv?(PH=Sv.pointers,PH=jV(ln[0],ln[1],PF)/jV(PH[0],PH[1],PF)):PH=1;cJ.scale=PH;Sv?(Sv=Sv.pointers,ln=PJ(ln[1],ln[0],PF)-PJ(Sv[1],Sv[0],PF)):ln=0;cJ.rotation=ln;oA=CL.lastInterval||cJ;ln=cJ.timeStamp-
oA.timeStamp;cJ.eventType!=8&&(ln>25||oA.velocity===O)?(PH=oA.deltaX-cJ.deltaX,oA=oA.deltaY-cJ.deltaY,QT=PH/ln||0,DI=oA/ln||0,ln=QT,Sv=DI,QT=kb(QT)>kb(DI)?QT:DI,PH=zS(PH,oA),CL.lastInterval=cJ):(QT=oA.velocity,ln=oA.velocityX,Sv=oA.velocityY,PH=oA.direction);cJ.velocity=QT;cJ.velocityX=ln;cJ.velocityY=Sv;cJ.direction=PH;CL=sD.element;a:{for(ln=cJ.srcEvent.target;ln;){if(ln==CL){ln=!0;break a}ln=ln.parentNode}ln=!1}ln&&(CL=cJ.srcEvent.target);cJ.target=CL;sD.emit("hammer.input",cJ);sD.recognize(cJ);
sD.session.prevInput=cJ}
function OD(sD){for(var CL=[],cJ=0;cJ<sD.pointers.length;cJ++)CL[cJ]={clientX:RA(sD.pointers[cJ].clientX),clientY:RA(sD.pointers[cJ].clientY)};return{timeStamp:bn(),pointers:CL,center:uB(CL),deltaX:sD.deltaX,deltaY:sD.deltaY}}
function uB(sD){var CL=sD.length;if(CL===1)return{x:RA(sD[0].clientX),y:RA(sD[0].clientY)};for(var cJ=0,ln=0,Sv=0;Sv<CL;Sv++)cJ+=sD[Sv].clientX,ln+=sD[Sv].clientY;return{x:RA(cJ/CL),y:RA(ln/CL)}}
function zS(sD,CL){return sD===CL?1:kb(sD)>=kb(CL)?sD>0?2:4:CL>0?8:16}
function jV(sD,CL,cJ){cJ||(cJ=Im);var ln=CL[cJ[0]]-sD[cJ[0]];sD=CL[cJ[1]]-sD[cJ[1]];return Math.sqrt(ln*ln+sD*sD)}
function PJ(sD,CL,cJ){cJ||(cJ=Im);return Math.atan2(CL[cJ[1]]-sD[cJ[1]],CL[cJ[0]]-sD[cJ[0]])*180/Math.PI}
function At(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;c.apply(this,arguments)}
function XY(){this.evEl=K$;this.evWin=SL;c.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function xc(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};c.apply(this,arguments)}
function rg(){c.apply(this,arguments);var sD=H(this.handler,this);this.touch=new xc(this.manager,sD);this.mouse=new At(this.manager,sD)}
function $t(sD,CL){this.manager=sD;this.set(CL)}
function tD(sD){if(sD.indexOf("none")>-1)return"none";var CL=sD.indexOf("pan-x")>-1,cJ=sD.indexOf("pan-y")>-1;return CL&&cJ?"pan-x pan-y":CL||cJ?CL?"pan-x":"pan-y":sD.indexOf("manipulation")>-1?"manipulation":"auto"}
function GD(sD){this.id=D4++;this.manager=null;this.options=z(sD||{},this.defaults);sD=this.options.enable;this.options.enable=sD===O?!0:sD;this.state=1;this.simultaneous={};this.requireFail=[]}
function xb(sD){return sD==16?"down":sD==8?"up":sD==2?"left":sD==4?"right":""}
function zL(sD,CL){return(CL=CL.manager)?CL.get(sD):sD}
function AD(){GD.apply(this,arguments)}
function lA(){AD.apply(this,arguments);this.pY=this.pX=null}
function pt(){AD.apply(this,arguments)}
function Mo(){GD.apply(this,arguments);this._input=this._timer=null}
function un(){AD.apply(this,arguments)}
function sw(){AD.apply(this,arguments)}
function J8(){GD.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function Rm(sD,CL){CL=CL||{};var cJ=CL.recognizers;CL.recognizers=cJ===O?Rm.defaults.preset:cJ;return new Lw(sD,CL)}
function Lw(sD,CL){CL=CL||{};this.options=z(CL,Rm.defaults);this.options.inputTarget=this.options.inputTarget||sD;this.handlers={};this.session={};this.recognizers=[];this.element=sD;this.input=h(this);this.touchAction=new $t(this,this.options.touchAction);cb(this,!0);l(CL.recognizers,function(cJ){var ln=this.add(new cJ[0](cJ[1]));cJ[2]&&ln.recognizeWith(cJ[2]);cJ[3]&&ln.requireFailure(cJ[2])},this)}
function cb(sD,CL){var cJ=sD.element;l(sD.options.cssProps,function(ln,Sv){cJ.style[Z(cJ.style,Sv)]=CL?ln:""})}
function ZI(sD,CL){var cJ=B.createEvent("Event");cJ.initEvent(sD,!0,!0);cJ.gesture=CL;CL.target.dispatchEvent(cJ)}
var Ow=" webkit moz MS ms o".split(" "),XZ=B.createElement("div"),RA=Math.round,kb=Math.abs,bn=Date.now,D4=1,UU=/mobile|tablet|ip(ad|hone|od)|android/i,OM="ontouchstart"in E,RF=Z(E,"PointerEvent")!==O,cE=OM&&UU.test(navigator.userAgent),Im=["x","y"],PF=["clientX","clientY"];c.prototype={handler:function(){},
destroy:function(){this.evEl&&J(this.element,this.evEl,this.domHandler);this.evTarget&&J(this.target,this.evTarget,this.domHandler);this.evWin&&J(E,this.evWin,this.domHandler)}};
var TL={mousedown:1,mousemove:2,mouseup:4};k(At,c,{handler:function(sD){var CL=TL[sD.type];CL&1&&sD.button===0&&(this.pressed=!0);CL&2&&sD.which!==1&&(CL=4);this.pressed&&this.allow&&(CL&4&&(this.pressed=!1),this.callback(this.manager,CL,{pointers:[sD],changedPointers:[sD],pointerType:"mouse",srcEvent:sD}))}});
var El={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},f9={2:"touch",3:"pen",4:"mouse",5:"kinect"},K$="pointerdown",SL="pointermove pointerup pointercancel";E.MSPointerEvent&&(K$="MSPointerDown",SL="MSPointerMove MSPointerUp MSPointerCancel");k(XY,c,{handler:function(sD){var CL=this.store,cJ=!1,ln=sD.type.toLowerCase().replace("ms","");ln=El[ln];var Sv=f9[sD.pointerType]||sD.pointerType;ln&1&&(sD.button===0||Sv=="touch")?CL.push(sD):ln&12&&(cJ=!0);var PH=C(CL,sD.pointerId,"pointerId");
PH<0||(CL[PH]=sD,this.callback(this.manager,ln,{pointers:CL,changedPointers:[sD],pointerType:Sv,srcEvent:sD}),cJ&&CL.splice(PH,1))}});
var TU={touchstart:1,touchmove:2,touchend:4,touchcancel:8};k(xc,c,{handler:function(sD){var CL=TU[sD.type];var cJ=Array.prototype.slice.call(sD.touches,0);var ln=this.targetIds;if(CL&3&&cJ.length===1)ln[cJ[0].identifier]=!0,ln=[cJ,cJ];else{var Sv,PH=Array.prototype.slice.call(sD.targetTouches,0),oA=Array.prototype.slice.call(sD.changedTouches,0),QT=[];if(CL===1)for(cJ=0,Sv=PH.length;cJ<Sv;cJ++)ln[PH[cJ].identifier]=!0;cJ=0;for(Sv=oA.length;cJ<Sv;cJ++)ln[oA[cJ].identifier]&&QT.push(oA[cJ]),CL&12&&
delete ln[oA[cJ].identifier];ln=QT.length?[X(PH.concat(QT),"identifier",!0),QT]:void 0}ln&&this.callback(this.manager,CL,{pointers:ln[0],changedPointers:ln[1],pointerType:"touch",srcEvent:sD})}});
k(rg,c,{handler:function(sD,CL,cJ){var ln=cJ.pointerType=="mouse";if(cJ.pointerType=="touch")this.mouse.allow=!1;else if(ln&&!this.mouse.allow)return;CL&12&&(this.mouse.allow=!0);this.callback(sD,CL,cJ)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var CI=Z(XZ.style,"touchAction"),$R=CI!==O;$t.prototype={set:function(sD){sD=="compute"&&(sD=this.compute());$R&&(this.manager.element.style[CI]=sD);this.actions=sD.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var sD=[];l(this.manager.recognizers,function(CL){R(CL.options.enable,[CL])&&(sD=sD.concat(CL.getTouchAction()))});
return tD(sD.join(" "))},
preventDefaults:function(sD){if(!$R){var CL=sD.srcEvent;sD=sD.offsetDirection;if(this.manager.session.prevented)CL.preventDefault();else{var cJ=this.actions,ln=cJ.indexOf("none")>-1,Sv=cJ.indexOf("pan-y")>-1;cJ=cJ.indexOf("pan-x")>-1;if(ln||Sv&&cJ||Sv&&sD&6||cJ&&sD&24)return this.preventSrc(CL)}}},
preventSrc:function(sD){this.manager.session.prevented=!0;sD.preventDefault()}};
GD.prototype={defaults:{},set:function(sD){Q(this.options,sD);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(sD){if(u(sD,"recognizeWith",this))return this;var CL=this.simultaneous;sD=zL(sD,this);CL[sD.id]||(CL[sD.id]=sD,sD.recognizeWith(this));return this},
dropRecognizeWith:function(sD){if(u(sD,"dropRecognizeWith",this))return this;sD=zL(sD,this);delete this.simultaneous[sD.id];return this},
requireFailure:function(sD){if(u(sD,"requireFailure",this))return this;var CL=this.requireFail;sD=zL(sD,this);C(CL,sD)===-1&&(CL.push(sD),sD.requireFailure(this));return this},
dropRequireFailure:function(sD){if(u(sD,"dropRequireFailure",this))return this;sD=zL(sD,this);sD=C(this.requireFail,sD);sD>-1&&this.requireFail.splice(sD,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(sD){return!!this.simultaneous[sD.id]},
emit:function(sD){function CL(Sv){cJ.manager.emit(cJ.options.event+(Sv?ln&16?"cancel":ln&8?"end":ln&4?"move":ln&2?"start":"":""),sD)}
var cJ=this,ln=this.state;ln<8&&CL(!0);CL();ln>=8&&CL(!0)},
tryEmit:function(sD){if(this.canEmit())return this.emit(sD);this.state=32},
canEmit:function(){for(var sD=0;sD<this.requireFail.length;sD++)if(!(this.requireFail[sD].state&33))return!1;return!0},
recognize:function(sD){sD=Q({},sD);R(this.options.enable,[this,sD])?(this.state&56&&(this.state=1),this.state=this.process(sD),this.state&30&&this.tryEmit(sD)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
k(AD,GD,{defaults:{pointers:1},attrTest:function(sD){var CL=this.options.pointers;return CL===0||sD.pointers.length===CL},
process:function(sD){var CL=this.state,cJ=sD.eventType,ln=CL&6;sD=this.attrTest(sD);return ln&&(cJ&8||!sD)?CL|16:ln||sD?cJ&4?CL|8:CL&2?CL|4:2:32}});
k(lA,AD,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var sD=this.options.direction;if(sD===30)return["none"];var CL=[];sD&6&&CL.push("pan-y");sD&24&&CL.push("pan-x");return CL},
directionTest:function(sD){var CL=this.options,cJ=!0,ln=sD.distance,Sv=sD.direction,PH=sD.deltaX,oA=sD.deltaY;Sv&CL.direction||(CL.direction&6?(Sv=PH===0?1:PH<0?2:4,cJ=PH!=this.pX,ln=Math.abs(sD.deltaX)):(Sv=oA===0?1:oA<0?8:16,cJ=oA!=this.pY,ln=Math.abs(sD.deltaY)));sD.direction=Sv;return cJ&&ln>CL.threshold&&Sv&CL.direction},
attrTest:function(sD){return AD.prototype.attrTest.call(this,sD)&&(this.state&2||!(this.state&2)&&this.directionTest(sD))},
emit:function(sD){this.pX=sD.deltaX;this.pY=sD.deltaY;var CL=xb(sD.direction);CL&&this.manager.emit(this.options.event+CL,sD);this._super.emit.call(this,sD)}});
k(pt,AD,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(sD){return this._super.attrTest.call(this,sD)&&(Math.abs(sD.scale-1)>this.options.threshold||this.state&2)},
emit:function(sD){this._super.emit.call(this,sD);sD.scale!==1&&this.manager.emit(this.options.event+(sD.scale<1?"in":"out"),sD)}});
k(Mo,GD,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(sD){var CL=this.options,cJ=sD.pointers.length===CL.pointers,ln=sD.distance<CL.threshold,Sv=sD.deltaTime>CL.time;this._input=sD;if(!ln||!cJ||sD.eventType&12&&!Sv)this.reset();else if(sD.eventType&1)this.reset(),this._timer=M(function(){this.state=8;this.tryEmit()},CL.time,this);
else if(sD.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(sD){this.state===8&&(sD&&sD.eventType&4?this.manager.emit(this.options.event+"up",sD):(this._input.timeStamp=bn(),this.manager.emit(this.options.event,this._input)))}});
k(un,AD,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(sD){return this._super.attrTest.call(this,sD)&&(Math.abs(sD.rotation)>this.options.threshold||this.state&2)}});
k(sw,AD,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return lA.prototype.getTouchAction.call(this)},
attrTest:function(sD){var CL=this.options.direction;if(CL&30)var cJ=sD.velocity;else CL&6?cJ=sD.velocityX:CL&24&&(cJ=sD.velocityY);return this._super.attrTest.call(this,sD)&&CL&sD.direction&&kb(cJ)>this.options.velocity&&sD.eventType&4},
emit:function(sD){var CL=xb(sD.direction);CL&&this.manager.emit(this.options.event+CL,sD);this.manager.emit(this.options.event,sD)}});
k(J8,GD,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(sD){var CL=this.options,cJ=sD.pointers.length===CL.pointers,ln=sD.distance<CL.threshold,Sv=sD.deltaTime<CL.time;this.reset();if(sD.eventType&1&&this.count===0)return this.failTimeout();if(ln&&Sv&&cJ){if(sD.eventType!=4)return this.failTimeout();cJ=this.pTime?sD.timeStamp-this.pTime<CL.interval:!0;ln=!this.pCenter||jV(this.pCenter,sD.center)<CL.posThreshold;this.pTime=sD.timeStamp;this.pCenter=sD.center;ln&&cJ?this.count+=1:this.count=1;this._input=sD;if(this.count%CL.taps===0)return this.hasRequireFailures()?
(this._timer=M(function(){this.state=8;this.tryEmit()},CL.interval,this),2):8}return 32},
failTimeout:function(){this._timer=M(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))}});
Rm.VERSION="2.0.2";Rm.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[un,{enable:!1}],[pt,{enable:!1},["rotate"]],[sw,{direction:6}],[lA,{direction:6},["swipe"]],[J8],[J8,{event:"doubletap",taps:2},["tap"]],[Mo]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Lw.prototype={set:function(sD){Q(this.options,sD);return this},
stop:function(sD){this.session.stopped=sD?2:1},
recognize:function(sD){var CL=this.session;if(!CL.stopped){this.touchAction.preventDefaults(sD);var cJ=this.recognizers,ln=CL.curRecognizer;if(!ln||ln&&ln.state&8)ln=CL.curRecognizer=null;for(var Sv=0,PH=cJ.length;Sv<PH;Sv++){var oA=cJ[Sv];CL.stopped===2||ln&&oA!=ln&&!oA.canRecognizeWith(ln)?oA.reset():oA.recognize(sD);!ln&&oA.state&14&&(ln=CL.curRecognizer=oA)}}},
get:function(sD){if(sD instanceof GD)return sD;for(var CL=this.recognizers,cJ=0;cJ<CL.length;cJ++)if(CL[cJ].options.event==sD)return CL[cJ];return null},
add:function(sD){if(u(sD,"add",this))return this;var CL=this.get(sD.options.event);CL&&this.remove(CL);this.recognizers.push(sD);sD.manager=this;this.touchAction.update();return sD},
remove:function(sD){if(u(sD,"remove",this))return this;var CL=this.recognizers;sD=this.get(sD);CL.splice(C(CL,sD),1);this.touchAction.update();return this},
on:function(sD,CL){var cJ=this.handlers;l(e(sD),function(ln){cJ[ln]=cJ[ln]||[];cJ[ln].push(CL)});
return this},
off:function(sD,CL){var cJ=this.handlers;l(e(sD),function(ln){CL?cJ[ln].splice(C(cJ[ln],CL),1):delete cJ[ln]});
return this},
emit:function(sD,CL){this.options.domEvents&&ZI(sD,CL);var cJ=this.handlers[sD]&&this.handlers[sD].slice();if(cJ&&cJ.length){CL.type=sD;CL.preventDefault=function(){CL.srcEvent.preventDefault()};
sD=0;for(var ln=cJ.length;sD<ln;sD++)cJ[sD](CL)}},
destroy:function(){this.element&&cb(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
Q(Rm,{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:Lw,Input:c,TouchAction:$t,Recognizer:GD,AttrRecognizer:AD,Tap:J8,Pan:lA,Swipe:sw,Pinch:pt,Rotate:un,Press:Mo,on:A,off:J,each:l,merge:z,extend:Q,inherit:k,bindFn:H,prefixed:Z});
E[w]=Rm})(window,document,"Hammer");
return window.Hammer}.call({});
r.DOCUMENT=g;g[M_w]=r}return g[M_w]};/*

 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 uIZ=function(g,r){if(g.length!==r.length)return!1;for(var E=0;E<g.length;++E)if(g[E]!==r[E])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var lhA=_.U(["https://fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic,500,500italic,700,700italic","https://fonts.googleapis.com/css?family=Roboto+Mono:400,700"]),DyD=lhA.next();!DyD.done;DyD=lhA.next()){var oPT=DyD.value,G$T=document.createElement("link");G$T.rel="stylesheet";G$T.href=oPT;document.head.appendChild(G$T)};var dSL,g2l,E2V,ZZl,TxL,yQQ,VaB,hHA;dSL={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};g2l={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:"*"};E2V={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};ZZl=/[a-z0-9*]/;TxL=/U\+/;yQQ=/^arrow/;VaB=/^space(bar)?/;hHA=/^escape$/;_.QV={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(g,r){this._imperativeKeyBindings[g]=r;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(g,r){r=wLV(r);for(var E=0;E<r.length;++E)if(rXX(r[E],g))return!0;return!1},
_collectKeyBindings:function(){var g=this.behaviors.map(function(r){return r.keyBindings});
g.indexOf(this.keyBindings)===-1&&g.push(this.keyBindings);return g},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(E){for(var B in E)this._addKeyBinding(B,E[B])},this);
for(var g in this._imperativeKeyBindings)this._addKeyBinding(g,this._imperativeKeyBindings[g]);for(var r in this._keyBindings)this._keyBindings[r].sort(function(E,B){E=E[0].hasModifiers;return E===B[0].hasModifiers?0:E?-1:1})},
_addKeyBinding:function(g,r){wLV(g).forEach(function(E){this._keyBindings[E.event]=this._keyBindings[E.event]||[];this._keyBindings[E.event].push([E,r])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(g){var r=this._onKeyBindingEvent.bind(this,this._keyBindings[g]);this._boundKeyHandlers.push([this.keyEventTarget,g,r]);this.keyEventTarget.addEventListener(g,r)},this)},
_unlistenKeyEventListeners:function(){for(var g,r,E;this._boundKeyHandlers.length;)g=this._boundKeyHandlers.pop(),r=g[0],E=g[1],g=g[2],r.removeEventListener(E,g)},
_onKeyBindingEvent:function(g,r){this.stopKeyboardEventPropagation&&r.stopPropagation();if(!r.defaultPrevented)for(var E=0;E<g.length;E++){var B=g[E][0],w=g[E][1];if(rXX(B,r)&&(this._triggerKeyHandler(B,w,r),r.defaultPrevented))break}},
_triggerKeyHandler:function(g,r,E){var B=Object.create(g);B.keyboardEvent=E;g=new CustomEvent(g.event,{detail:B,cancelable:!0});this[r].call(this,g);g.defaultPrevented&&E.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
*/
_.ba({is:"iron-a11y-keys",_template:null,behaviors:[_.QV],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(g){this.keyEventTarget=g},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(g){this.fire("keys-pressed",g.detail,{})}});_.zt={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(g){this._setFocused(g.type==="focus")},
_disabledChanged:function(g){this.setAttribute("aria-disabled",g?"true":"false");this.style.pointerEvents=g?"none":"";g?(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 kv={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(g){this._detectKeyboardFocus(g);g||this._setPressed(!1)},
_detectKeyboardFocus:function(g){this._setReceivedFocusFromKeyboard(!this.pointerDown&&g)},
_userActivate:function(g){this.active!==g&&(this.active=g,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(g){g=g.detail.keyboardEvent;var r=_.nM(g).localTarget;this.isLightDescendant(r)||(g.preventDefault(),g.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(g){g=_.nM(g.detail.keyboardEvent).localTarget;this.isLightDescendant(g)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(g,r){r&&r!=g&&this.hasAttribute(r)&&this.removeAttribute(r)},
_activeChanged:function(g){this.toggles?this.setAttribute(this.ariaActiveAttribute,g?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},Q3I=[_.QV,
kv];_.HA={IronButtonState:Q3I,IronButtonStateImpl:kv};_.p7={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.Yv=function(g){_.Yv[" "](g);this.type=g&&g.type||"default";this.key=g&&g.key;g&&"value"in g&&(this.value=g.value)};
_.Yv.prototype.byKey=function(g){this.key=g;return this.value};
_.hx.Object.defineProperties(_.Yv.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var g=this.type,r=this.key;if(g&&r)return Ri[g]&&Ri[g][r]},
set:function(g){var r=this.type,E=this.key;r&&E&&(r=Ri[r]=Ri[r]||{},g==null?delete r[E]:r[E]=g)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var g=Ri[this.type];return g?Object.keys(g).map(function(r){return Ri[this.type][r]},this):[]}}});
_.Yv[" "]=function(){};
var Ri={};_.ba({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(g,r,E){g=new _.Yv({type:g,key:r});E!==void 0&&E!==g.value?g.value=E:this.value!==g.value&&(this.value=g.value);return g},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(g){g&&(this.value=this)},
byKey:function(g){return(new _.Yv({type:this.type,key:g})).value}});var zhD;zhD=null;_.n7={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){zhD=new _.Yv({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return zhD&&zhD.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(g){this.invalid=g===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(g);return!this.invalid},
_getValidity:function(g){return this.hasValidator()?this._validator.validate(g):!0}};var k$D={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"}},HWw=[_.p7,
_.n7,k$D];_.ba({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 _.Yv({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(g){return this.name+":"+g},this)},
applyIcon:function(g,r){this.removeIcon(g);if(r=this._cloneIcon(r,this.rtlMirroring&&this._targetIsRTL(g))){var E=_.nM(g.root||g);E.insertBefore(r,E.childNodes[0]);return g._svgIcon=r}return null},
removeIcon:function(g){g._svgIcon&&(_.nM(g.root||g).removeChild(g._svgIcon),g._svgIcon=null)},
_targetIsRTL:function(g){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(g&&g.nodeType!==Node.ELEMENT_NODE&&(g=g.host),this.__targetIsRTL=g&&window.getComputedStyle(g).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 g=Object.create(null);_.nM(this).querySelectorAll("[id]").forEach(function(r){g[r.id]=r});
return g},
_cloneIcon:function(g,r){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[g],this.size,r)},
_prepareSvgClone:function(g,r,E){if(g){g=g.cloneNode(!0);var B=document.createElementNS("http://www.w3.org/2000/svg","svg");r=g.getAttribute("viewBox")||"0 0 "+r+" "+r;var w="pointer-events: none; display: block; width: 100%; height: 100%;";E&&g.hasAttribute("mirror-in-rtl")&&(w+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");B.setAttribute("viewBox",r);B.setAttribute("preserveAspectRatio","xMidYMid meet");B.setAttribute("focusable","false");B.style&&(B.style.cssText=
w);B.appendChild(g).removeAttribute("id");return B}return null}});var pwm=function(g){this.multi=!1;this.selection=[];this.selectCallback=g};
_.S=pwm.prototype;_.S.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.S.clear=function(g){this.selection.slice().forEach(function(r){(!g||g.indexOf(r)<0)&&this.setItemSelected(r,!1)},this)};
_.S.isSelected=function(g){return this.selection.indexOf(g)>=0};
_.S.setItemSelected=function(g,r){if(g!=null&&r!==this.isSelected(g)){if(r)this.selection.push(g);else{var E=this.selection.indexOf(g);E>=0&&this.selection.splice(E,1)}this.selectCallback&&this.selectCallback(g,r)}};
_.S.select=function(g){this.multi?this.toggle(g):this.get()!==g&&(this.setItemSelected(this.get(),!1),this.setItemSelected(g,!0))};
_.S.toggle=function(g){this.setItemSelected(g,!this.isSelected(g))};_.ci={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 pwm(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.nM(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(g){return this.items?this.items.indexOf(g):-1},
select:function(g){this.selected=g},
selectPrevious:function(){var g=this.items.length,r=g-1;this.selected!==void 0&&(r=(Number(this._valueToIndex(this.selected))-1+g)%g);this.selected=this._indexToValue(r)},
selectNext:function(){var g=0;this.selected!==void 0&&(g=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(g)},
selectIndex:function(g){this.select(this._indexToValue(g))},
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(g){this.listen(this,g,"_activateHandler")},
_removeListener:function(g){this.unlisten(this,g,"_activateHandler")},
_activateEventChanged:function(g,r){this._removeListener(r);this._addListener(g)},
_updateItems:function(){var g=_.nM(this).queryDistributedElements(this.selectable||"*");g=Array.prototype.filter.call(g,this._bindFilterItem);this._setItems(g)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var g=this._valueToItem(this.selected);g?this._selection.select(g):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(g){return!this._excludedLocalNames[g.localName]},
_valueToItem:function(g){return g==null?null:this.items[this._valueToIndex(g)]},
_valueToIndex:function(g){if(this.attrForSelected)for(var r=0,E;E=this.items[r];r++){if(this._valueForItem(E)==g)return r}else return Number(g)},
_indexToValue:function(g){if(this.attrForSelected){if(g=this.items[g])return this._valueForItem(g)}else return g},
_valueForItem:function(g){if(!g)return null;if(!this.attrForSelected)return g=this.indexOf(g),g===-1?null:g;var r=g[Ob(this.attrForSelected)];return r!=void 0?r:g.getAttribute(this.attrForSelected)},
_applySelection:function(g,r){this.selectedClass&&this.toggleClass(this.selectedClass,r,g);this.selectedAttribute&&this.toggleAttribute.call(g,this.selectedAttribute,r);this._selectionChange();this.fire("iron-"+(r?"select":"deselect"),{item:g})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(g){return _.nM(g).observeNodes(function(r){this._updateItems();this._updateSelected();this.fire("iron-items-changed",r,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(g){g=g.target;for(var r=this.items;g&&g!=this;){var E=r.indexOf(g);if(E>=0){r=this._indexToValue(E);this._itemActivate(r,g);break}g=g.parentNode}},
_itemActivate:function(g,r){this.fire("iron-activate",{selected:g,item:r},{cancelable:!0}).defaultPrevented||this.select(g)}};var Y2n={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(g){this.multi?this._toggleSelected(g):this.selected=g},
multiChanged:function(g){this._selection.multi=g;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(g){return this._indexToValue(this.indexOf(g))},this).filter(function(g){return g!=null},this)):_.ci._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(g){g=g||[];g=(this._valuesToItems(g)||[]).filter(function(E){return E!==null&&E!==void 0});
this._selection.clear(g);for(var r=0;r<g.length;r++)this._selection.setItemSelected(g[r],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var g=this._selection.get();this.multi?(this._setSelectedItems(g),this._setSelectedItem(g.length?g[0]:null)):g!==null&&g!==void 0?(this._setSelectedItems([g]),this._setSelectedItem(g)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(g){var r=this.selectedValues.indexOf(g);r<0?this.push("selectedValues",g):this.splice("selectedValues",r,1)},
_valuesToItems:function(g){return g==null?null:g.map(function(r){return this._valueToItem(r)},this)}},Rh4=[_.ci,
Y2n];var nPU;
_.sX={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(g){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var r=this._valueToItem(g);r&&r.hasAttribute("disabled")||(this._setFocusedItem(r),Y2n.select.apply(this,arguments))},
_resetTabindices:function(){var g=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(r){r.setAttribute("tabindex",r===g?"0":"-1");r.setAttribute("aria-selected",this._selection.isSelected(r))},this)},
_updateMultiselectable:function(g){g?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(g){if(this._MODIFIER_KEYS.indexOf(g.key)===-1){this.cancelDebouncer("_clearSearchText");var r=this._searchText||"";r+=(g.key&&g.key.length==1?g.key:String.fromCharCode(g.keyCode)).toLocaleLowerCase();g=r.length;for(var E=0,B;B=this.items[E];E++)if(!B.hasAttribute("disabled")){var w=this.attrForItemTitle||"textContent";w=(B[w]||B.getAttribute(w)||"").trim();if(!(w.length<g)&&w.slice(0,g).toLocaleLowerCase()==r){this._setFocusedItem(B);break}}this._searchText=r;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var g=this.items.length,r=Number(this.indexOf(this.focusedItem)),E=1;E<g+1;E++){var B=this.items[(r-E+g)%g];if(!B.hasAttribute("disabled")){var w=_.nM(B).getOwnerRoot()||document;this._setFocusedItem(B);if(_.nM(w).activeElement==B)break}}},
_focusNext:function(){for(var g=this.items.length,r=Number(this.indexOf(this.focusedItem)),E=1;E<g+1;E++){var B=this.items[(r+E)%g];if(!B.hasAttribute("disabled")){var w=_.nM(B).getOwnerRoot()||document;this._setFocusedItem(B);if(_.nM(w).activeElement==B)break}}},
_applySelection:function(g,r){r?g.setAttribute("aria-selected","true"):g.setAttribute("aria-selected","false");_.ci._applySelection.apply(this,arguments)},
_focusedItemChanged:function(g,r){r&&r.setAttribute("tabindex","-1");!g||g.hasAttribute("disabled")||this.disabled||(g.setAttribute("tabindex","0"),g.focus())},
_onIronItemsChanged:function(g){g.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var g=this.getAttribute("tabindex");_.sX._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",g);_.sX._shiftTabPressed=!1},1)},
_onFocus:function(g){!_.sX._shiftTabPressed&&(g=_.nM(g).rootTarget,g===this||typeof g.tabIndex==="undefined"||this.isLightDescendant(g))&&(this._defaultFocusAsync=this.async(function(){var r=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);r?this._setFocusedItem(r):this.items[0]&&this._focusNext()}))},
_onUpKey:function(g){this._focusPrevious();g.detail.keyboardEvent.preventDefault()},
_onDownKey:function(g){this._focusNext();g.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var g=this.focusedItem;g&&g.blur()},
_onKeydown:function(g){this.keyboardEventMatchesKeys(g,"up down esc")||this._focusWithKeyboardEvent(g);g.stopPropagation()},
_activateHandler:function(g){_.ci._activateHandler.call(this,g);g.stopPropagation()},
_disabledChanged:function(g){g?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};nPU=[Rh4,_.QV,_.sX];_.s3w={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(g){this.focusedItem&&(this.focusedItem.click(),g.detail.keyboardEvent.preventDefault())},
_onDownKey:function(g){this.focusedItem&&(this.focusedItem.click(),g.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(g){return g.ctrlKey||g.shiftKey||g.altKey||g.metaKey},
_onLeftKey:function(g){this._isSpecialKey(g.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),g.detail.keyboardEvent.preventDefault())},
_onRightKey:function(g){this._isSpecialKey(g.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),g.detail.keyboardEvent.preventDefault())},
_onKeydown:function(g){this.keyboardEventMatchesKeys(g,"up down left right esc")||this._focusWithKeyboardEvent(g)}};
_.fh6=[nPU,_.s3w];var $yn;$yn=new Set;_.f7={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):($yn.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(g){this.resizerShouldNotify(g)&&this._notifyDescendant(g)},this),this._fireResize())},
assignParentResizable:function(g){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=g)&&g._interestedResizables.indexOf(this)===-1&&(g._interestedResizables.push(this),g._subscribeIronResize(this))},
stopResizeNotificationsFor:function(g){var r=this._interestedResizables.indexOf(g);r>-1&&(this._interestedResizables.splice(r,1),this._unsubscribeIronResize(g))},
_subscribeIronResize:function(g){g.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(g){g.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(g){this._notifyingDescendant?g.stopPropagation():W3||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(g){var r=_.nM(g).rootTarget;r!==this&&(r.assignParentResizable(this),this._notifyDescendant(r),g.stopPropagation())},
_parentResizableChanged:function(g){g&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(g){this.isAttached&&(this._notifyingDescendant=!0,g.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var g=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function E(){document.removeEventListener("readystatechange",E);g()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(r){r!==this&&r._findParent()},this):($yn.forEach(function(r){r!==this&&r._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?$yn.delete(this):$yn.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
*/
_.j3A={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(g,r){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);r&&(g==="document"?this.scrollTarget=this._doc:typeof g==="string"?this.scrollTarget=(r=this.domHost)&&r.$?r.$[g]:_.nM(this.ownerDocument).querySelector("#"+g):this._isValidScrollTarget()&&(this._oldScrollTarget=g,this._toggleScrollListener(this._shouldHaveListener,g)))},
_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(g){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,g):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
g)},set _scrollLeft(g){this.scrollTarget===this._doc?window.scrollTo(g,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=g)},scroll:function(g,r){if(typeof g==="object"){var E=g.left;r=g.top}else E=g;E=E||0;r=r||0;this.scrollTarget===this._doc?window.scrollTo(E,r):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=E,this.scrollTarget.scrollTop=r)},
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(g,r){r=r===this._doc?window:r;g?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),r.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(r.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(g){this._shouldHaveListener=g;this._toggleScrollListener(g,this.scrollTarget)}};_.ba({is:"iron-selector",_template:null,behaviors:[Rh4]});var $v={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(g){if(g.timing)for(var r in g.timing)this.animationTiming[r]=g.timing[r];return this.animationTiming},
setPrefixedProperty:function(g,r,E){for(var B={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[r],w,O=0;w=B[O];O++)g.style[w]=E;g.style[r]=E},
complete:function(){}};_.ba({is:"fade-in-animation",_template:null,behaviors:[$v],configure:function(g){return this._effect=new KeyframeEffect(g.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(g))}});_.ba({is:"fade-out-animation",_template:null,behaviors:[$v],configure:function(g){return this._effect=new KeyframeEffect(g.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(g))}});var AMn=[{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(g,r){for(var E in r)g[E]=r[E]},
_cloneConfig:function(g){var r={isClone:!0};this._copyProperties(r,g);return r},
_getAnimationConfigRecursive:function(g,r,E){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 B=g?this.animationConfig[g]:this.animationConfig;Array.isArray(B)||(B=[B]);if(B)for(var w,O=0;w=B[O];O++)if(w.animatable)w.animatable._getAnimationConfigRecursive(w.type||g,r,E);else if(w.id){var M=r[w.id];
M?(M.isClone||(r[w.id]=this._cloneConfig(M),M=r[w.id]),this._copyProperties(M,w)):r[w.id]=w}else E.push(w)}},
getAnimationConfig:function(g){var r={},E=[];this._getAnimationConfigRecursive(g,r,E);for(var B in r)E.push(r[B]);return E}},
{_configureAnimations:function(g){var r=[],E=[];if(g.length>0)for(var B,w=0;B=g[w];w++){var O=document.createElement(B.name);if(O.isNeonAnimation){var M=null;O.configure||(O.configure=function(){return null});
M=O.configure(B);E.push({result:M,config:B})}else console.warn(this.is+":",B.name,"not found!")}for(g=0;g<E.length;g++){M=E[g].result;B=E[g].config;try{typeof M.cancel!="function"&&(M=document.timeline.play(M))}catch(u){M=null,console.warn("Couldnt play","(",B.name,").",u)}M&&r.push({neonAnimation:O,config:B,animation:M})}return r},
_shouldComplete:function(g){for(var r=!0,E=0;E<g.length;E++)if(g[E].animation.playState!="finished"){r=!1;break}return r},
_complete:function(g){for(var r=0;r<g.length;r++)g[r].neonAnimation.complete(g[r].config);for(r=0;r<g.length;r++)g[r].animation.cancel()},
playAnimation:function(g,r){var E=this.getAnimationConfig(g);if(E){this._active=this._active||{};this._active[g]&&(this._complete(this._active[g]),delete this._active[g]);var B=this._configureAnimations(E);if(B.length==0)this.fire("neon-animation-finish",r,{bubbles:!1});else for(this._active[g]=B,E=0;E<B.length;E++)B[E].animation.onfinish=function(){this._shouldComplete(B)&&(this._complete(B),delete this._active[g],this.fire("neon-animation-finish",r,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var g in this._active){var r=this._active[g],E;for(E in r)r[E].animation&&r[E].animation.cancel&&r[E].animation.cancel()}this._active={}}}];var lG=function(g,r){g=Error.call(this,g);this.message=g.message;"stack"in g&&(this.stack=g.stack);this.arg=r;this.name=this.constructor.name;this.constructor=lG;this.__proto__=lG.prototype};
_.f(lG,Error);var bW6=mh(function(g){var r=function(){return g.apply(this,arguments)||this};
_.f(r,g);r.prototype._marshalArgs=function(E,B,w){B=g.prototype._marshalArgs.call(this,E,B,w);if(this._legacyUndefinedCheck&&B.length>1)for(w=0;w<B.length;w++)if(B[w]===void 0||E[w].wildcard&&B[w].base===void 0)throw E=E[w].name,new lG("Argument '"+E+"' is undefined.",E);return B};
r.prototype._addPropertyEffect=function(E,B,w){return g.prototype._addPropertyEffect.call(this,E,B,SzP(w,w&&w.info&&w.info.methodName))};
r._addTemplatePropertyEffect=function(E,B,w){return g._addTemplatePropertyEffect.call(this,E,B,SzP(w))};
return r}),JMb=_.ba.Class;
_.ba.Class=function(g,r){return JMb(g,function(E){return r?r(bW6(E)):bW6(E)})};
var PVw=mh(function(g){var r=bW6(g);g=function(){return r.apply(this,arguments)||this};
_.f(g,r);_.hx.Object.defineProperties(g.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return g}),t_Z=Kk.mixin;
Kk.mixin=t_Z?function(g){return PVw(t_Z(g))}:PVw;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.jP=_.HA.IronButtonState;var dRl=e8;/*

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 ehz;_.FcD="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");ehz=function(){var g=[],r;var E=E||_.FcD.length;for(r=0;r<8;r++)g[r]=_.FcD[0|Math.random()*E];return g.join("")};var qzY=function(){return Math.random().toString(36).substring(7).split("").join(".")},MIB="@@redux/INIT"+qzY(),DEB="@@redux/REPLACE"+qzY();var o2l=typeof Symbol==="function"&&Symbol.observable||"@@observable";var WcA=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var CV6="top right bottom left width height size weight".split(" "),KcZ=typeof MutationObserver!=="undefined",xym=WcA&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,ahb=function(){this.mutationEventsAdded_=this.JSC$9793_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=GEc(this.refresh.bind(this))},XwU=function(g,
r){var E=g.observers_;
r=E.indexOf(r);~r&&E.splice(r,1);!E.length&&g.JSC$9793_connected_&&WcA&&g.JSC$9793_connected_&&(document.removeEventListener("transitionend",g.onTransitionEnd_),window.removeEventListener("resize",g.refresh),g.mutationsObserver_&&(g.mutationsObserver_.disconnect(),xym&&(HTMLElement.prototype.attachShadow=xym)),g.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",g.refresh),g.mutationsObserver_=null,g.mutationEventsAdded_=!1,g.JSC$9793_connected_=!1)};
ahb.prototype.refresh=function(){NLw(this)&&this.refresh()};
var NLw=function(g){g=g.observers_.filter(function(r){return Ihn(r),r.activeObservations_.length>0});
g.forEach(function(r){return my4(r)});
return g.length>0},cMI=function(g){if(WcA&&!g.JSC$9793_connected_){document.addEventListener("transitionend",g.onTransitionEnd_);
window.addEventListener("resize",g.refresh);if(KcZ){g.mutationsObserver_=new MutationObserver(g.refresh);var r={attributes:!0,childList:!0,characterData:!0,subtree:!0};g.mutationsObserver_.observe(document,r);xym&&(function w(B){var O=B.shadowRoot;O&&(g.mutationsObserver_.observe(O,r),w(O));for(B=B.firstElementChild;B;)w(B),B=B.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var B=xym.apply(this,_.fI.apply(0,arguments));
g.mutationsObserver_.observe(B,r);return B})}else document.addEventListener("DOMSubtreeModified",g.refresh),g.mutationEventsAdded_=!0;
g.JSC$9793_connected_=!0}};
ahb.prototype.onTransitionEnd_=function(g){var r=g.propertyName===void 0?"":g.propertyName;CV6.some(function(E){return!!~r.indexOf(E)})&&this.refresh()};
var iWn=null;var Lcw=function(g,r){for(var E=_.U(Object.keys(r)),B=E.next();!B.done;B=E.next())B=B.value,Object.defineProperty(g,B,{value:r[B],enumerable:!1,writable:!1,configurable:!0})};var AA=function(g){var r;return(g==null?void 0:(r=g.ownerDocument)==null?void 0:r.defaultView)||globalThis};var V_b={x:0,y:0,width:0,height:0},hhD=typeof SVGGraphicsElement!=="undefined"?function(g){return g instanceof AA(g).SVGGraphicsElement}:function(g){return g instanceof AA(g).SVGElement&&typeof g.getBBox==="function"};var ZWn=function(g){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=g};
ZWn.prototype.isActive=function(){var g=this.target;if(WcA)if(hhD(g)){var r=g.getBBox();r={x:0,y:0,width:r.width,height:r.height}}else{var E=g.clientWidth,B=g.clientHeight;if(E||B){var w=AA(g).getComputedStyle(g);r=oy(w["padding-top"]);var O=oy(w["padding-left"]),M=O+oy(w["padding-right"]),u=r+oy(w["padding-bottom"]),l=oy(w.width),Q=oy(w.height);w.boxSizing==="border-box"&&(Math.round(l+M)!==E&&(l-=QUJ(w,"left","right")+M),Math.round(Q+u)!==B&&(Q-=QUJ(w,"top","bottom")+u));g!==AA(g).document.documentElement&&
(g=Math.round(l+M)-E,B=Math.round(Q+u)-B,Math.abs(g)!==1&&(l-=g),Math.abs(B)!==1&&(Q-=B));r={x:O,y:r,width:l,height:Q}}else r=V_b}else r=V_b;this.contentRect_=r;return r.width!==this.broadcastWidth||r.height!==this.broadcastHeight};var yMn=function(g,r){var E=r.x;var B=r.y;var w=r.width;r=r.height;var O=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);Lcw(O,{x:E,y:B,width:w,height:r,top:B,right:E+w,bottom:r+B,left:E});Lcw(this,{target:g,contentRect:O})};var vPT=function(g,r){var E=iWn;this.activeObservations_=[];this.observations_=new Map;if(typeof g!=="function")throw new TypeError("Ve");this.callback_=g;this.controller_=E;this.callbackCtx_=r};
vPT.prototype.observe=function(g){if(g===void 0)throw new TypeError("We");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(g instanceof AA(g).Element))throw new TypeError("Xe");var r=this.observations_;r.has(g)||(r.set(g,new ZWn(g)),g=this.controller_,~g.observers_.indexOf(this)||g.observers_.push(this),g.JSC$9793_connected_||cMI(g),this.controller_.refresh())}};
vPT.prototype.unobserve=function(g){if(g===void 0)throw new TypeError("We");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(g instanceof AA(g).Element))throw new TypeError("Xe");var r=this.observations_;r.has(g)&&(r.delete(g),r.size||XwU(this.controller_,this))}};
vPT.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();XwU(this.controller_,this)};
var Ihn=function(g){g.activeObservations_.splice(0);g.observations_.forEach(function(r){r.isActive()&&g.activeObservations_.push(r)})},my4=function(g){if(g.activeObservations_.length>0){var r=g.callbackCtx_,E=g.activeObservations_.map(function(B){var w=B.target,O=B.contentRect_;
B.broadcastWidth=O.width;B.broadcastHeight=O.height;return new yMn(w,O)});
g.callback_.call(r,E,r);g.activeObservations_.splice(0)}};var bl=function(g){if(!(this instanceof bl))throw new TypeError("Ye");if(!arguments.length)throw new TypeError("We");iWn||(iWn=new ahb);this.observer_=new vPT(g,this)};
bl.prototype.observe=function(g){this.observer_.observe(g)};
bl.prototype.unobserve=function(g){this.observer_.unobserve(g)};
bl.prototype.disconnect=function(){this.observer_.disconnect()};var hmA=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:bl;var sUA="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(" "),n2D={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},R$X=null,z$A=null;var ftJ={},$EL=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 FqP={text:1},bxA={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var dyz=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,TLw={CONSTANT:{isUnwrappable:function(g){return g instanceof CC},
unwrap:ct6},JAVASCRIPT:{isUnwrappable:function(g){return g instanceof _.aC},
unwrap:NO},HTML:{isUnwrappable:function(g){return g instanceof bi},
unwrap:function(g){return Pu(g)}},
RESOURCE_URL:{isUnwrappable:function(g){return g instanceof MO},
unwrap:_.ui},STRING:{isUnwrappable:function(g){return g instanceof Object},
unwrap:function(g){return String(g)}},
STYLE:{isUnwrappable:function(g){return typeof g==="string"},
unwrap:function(g){return g}},
URL:{isUnwrappable:function(g){return Qv(g)},
unwrap:_.zh}},g3U={CONSTANT:e$B,JAVASCRIPT:e$B,HTML:function(g){g=g instanceof bi?g:Ja(String(g).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return Pu(g)},
RESOURCE_URL:e$B,STRING:String,STYLE:e$B,URL:function(g,r){g=dyz.test(g)?g:void 0;return g===void 0?r:g}};var ixl=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,WqB=/[\t\n\f\r ]+/,Kql=/[\t\n\f\r ,]+/g,atL=function(g,r,E){return E},ky={},rRD=function(){var g=function(){var B={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",B):B}(),r=g.createHTML(""),E=g.createScript("");
g=g.createScriptURL("");return{INNOCUOUS_STRING:r,INNOCUOUS_SCRIPT:E,INNOCUOUS_URL:g}}(),zr=rRD.INNOCUOUS_STRING,cXX=rRD.INNOCUOUS_SCRIPT,mED=rRD.INNOCUOUS_URL;var E3w=function(g){var r=LqX(g);return function(E,B,w,O){return O?r(O,B,w,E):zr}}({reportHandler:function(g,r){if(g)try{throw Error(r);
}catch(E){_.tn(E)}},
safeTypesBridge:function(g,r,E){var B=TLw[r];return B.isUnwrappable(g)&&(B=B.unwrap(g,E),B!==E)?B:(0,g3U[r])(String(g),E)},
allowedIdentifierPrefixes:[""]});if(k5!==void 0)throw Error("Ze");k5=E3w;if(k5!==E3w)throw Error("$e");HE("Injectable",[]);var HVB=HE("Inject",[["token",void 0]]),Yho=HE("Optional",[]);HE("Injectable",[]);var RaA=HE("Self",[]),n4L=HE("SkipSelf",[]);HE("Host",[]);var Btz={},wKT=function(){};
wKT.prototype.resolve=function(){throw Error("bf");};
wKT.prototype.addProvider=function(){throw Error("bf");};var zat=Function;var SBb=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,OhA=function(){this._reflect=window.Reflect};
_.S=OhA.prototype;_.S.factory=function(g){return function(){return new (Function.prototype.bind.apply(g,[null].concat(_.jW(_.fI.apply(0,arguments)))))}};
_.S._zipTypesAndAnnotations=function(g,r){var E=typeof g==="undefined"?Array(r.length):Array(g.length);for(var B=0;B<E.length;B++)E[B]=typeof g==="undefined"?[]:g[B]!=Object?[g[B]]:[],r&&h$A(r[B])&&(E[B]=E[B].concat(r[B]));return E};
_.S._ownParameters=function(g,r){if(SBb.exec(g.toString()))return null;if(g.parameters&&g.parameters!==r.parameters)return g.parameters;var E=g.ctorParameters;return E&&E!==r.ctorParameters?(r=typeof E==="function"?E():E,g=r.map(function(B){return B&&B.type}),r=r.map(function(B){return B&&yXP(B.decorators)}),this._zipTypesAndAnnotations(g,r)):h$A(this._reflect)&&h$A(this._reflect.getOwnMetadata)&&(r=this._reflect.getOwnMetadata("parameters",g),(E=this._reflect.getOwnMetadata("design:paramtypes",g))||
r)?this._zipTypesAndAnnotations(E,r):Array(g.length).fill(void 0)};
_.S.parameters=function(g){if(!g.prototype)return[];var r=Object.getPrototypeOf(g.prototype).constructor;(g=this._ownParameters(g,r))||r===Object||(g=this.parameters(r));return g||[]};
_.S._ownAnnotations=function(g,r){if(g.annotations&&g.annotations!==r.annotations)return g=g.annotations,typeof g==="function"&&g.annotations&&(g=g.annotations),g;if(g.decorators&&g.decorators!==r.decorators)return yXP(g.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",g)};
_.S.annotations=function(g){var r=Object.getPrototypeOf(g.prototype).constructor;g=this._ownAnnotations(g,r)||[];return(r!==Object?this.annotations(r):[]).concat(g)};
_.S._ownPropMetadata=function(g,r){if(g.propMetadata&&g.propMetadata!==r.propMetadata)return g=g.propMetadata,typeof g==="function"&&g.propMetadata&&(g=g.propMetadata),g;if(g.propDecorators&&g.propDecorators!==r.propDecorators){var E=g.propDecorators,B={};Object.keys(E).forEach(function(w){B[w]=yXP(E[w])});
return B}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",g)};
_.S.propMetadata=function(g){var r=Object.getPrototypeOf(g.prototype).constructor,E={};if(r!==Object){var B=this.propMetadata(r);Object.keys(B).forEach(function(O){E[O]=B[O]})}var w=this._ownPropMetadata(g,r);
w&&Object.keys(w).forEach(function(O){var M=[];E.hasOwnProperty(O)&&M.push.apply(M,_.jW(E[O]));M.push.apply(M,_.jW(w[O]));E[O]=M});
return E};
_.S.getter=function(g){return function(r){return r[g]}};
_.S.method=function(g){return function(r,E){if(!r[g])throw Error("cf`"+g);return r[g].apply(r,E)}};var UhT=function(){};var Mk4=function(g){this.reflectionCapabilities=g};
_.f(Mk4,UhT);_.S=Mk4.prototype;_.S.factory=function(g){return this.reflectionCapabilities.factory(g)};
_.S.parameters=function(g){return this.reflectionCapabilities.parameters(g)};
_.S.annotations=function(g){return this.reflectionCapabilities.annotations(g)};
_.S.propMetadata=function(g){return this.reflectionCapabilities.propMetadata(g)};
_.S.getter=function(g){return this.reflectionCapabilities.getter(g)};
_.S.method=function(g){return this.reflectionCapabilities.method(g)};var ShV=new Mk4(new OhA);var JA=function(g,r){this.token=g;this.id=r;if(g===void 0||g===null)throw Error("hf");};
_.hx.Object.defineProperties(JA.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return pM(this.token)}}});
_.hx.Object.defineProperties(JA,{JSC$9835_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return Ry.JSC$9839_numberOfKeys}}});
var qBD=function(){this._allKeys=new Map};
qBD.prototype.get=function(g){if(g instanceof JA)return g;if(this._allKeys.has(g))return this._allKeys.get(g);var r=new JA(g,JA.JSC$9835_numberOfKeys);this._allKeys.set(g,r);return r};
_.hx.Object.defineProperties(qBD.prototype,{JSC$9839_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var Ry=new qBD;var soS=function(g,r,E){this.key=g;this.optional=r;this.visibility=E},UfJ=function(g){return new soS(g,!1,null)},qhA=[],DfA=function(g,r,E){this.key=g;
this.resolvedFactories=r;this.multiProvider=E},uxX=function(g,r,E,B){this.factory=g;
this.dependencies=r;this.providerClass=E;this.providerValue=B};var PA={},tA=function(g,r){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=r===void 0?null:r;g=_.U(g);for(r=g.next();!r.done;r=g.next())this.addProvider(r.value)};
_.S=tA.prototype;_.S.addProvider=function(g){this.keyIdToIndex.set(g.key.id,this.keyIds.length);this.providers.push(g);this.keyIds.push(g.key.id);this.objs.push(PA)};
_.S.resolve=function(g,r){r=r===void 0?Btz:r;return this._getByKey(Ry.get(Yy(g)),null,r)};
_.S._new=function(g){if(this.constructedKeyIds[g.key.id])throw E4S(this,g.key);this.constructedKeyIds[g.key.id]=!0;return this._instantiateProvider(g)};
_.S._instantiateProvider=function(g){if(g.multiProvider){for(var r=Array(g.resolvedFactories.length),E=0;E<g.resolvedFactories.length;++E)r[E]=this._instantiate(g,g.resolvedFactories[E]);return r}return this._instantiate(g,g.resolvedFactories[0])};
_.S._instantiate=function(g,r){var E=this,B=r.factory;try{var w=r.dependencies.map(function(M){return E._getByReflectiveDependency(M)})}catch(M){throw M.addKey&&M.addKey(this,g.key),M;
}try{var O=B.apply(null,_.jW(w))}catch(M){throw B5A(this,M,g.key);}return O};
_.S._getByReflectiveDependency=function(g){return this._getByKey(g.key,g.visibility,g.optional?null:Btz)};
_.S._getByKey=function(g,r,E){return g===uAw?this:r instanceof RaA?this._getByKeySelf(g,E):this._getByKeyDefault(g,E,r)};
_.S._getObjByKeyId=function(g){for(var r=0;r<this.keyIds.length;r++)if(this.keyIds[r]===g)return this.objs[r]===PA&&(this.objs[r]=this._new(this.providers[r])),this.objs[r];return PA};
_.S._throwOrNull=function(g,r){if(r!==Btz)return r;throw rqJ(this,g);};
_.S._getByKeySelf=function(g,r){var E=this._getObjByKeyId(g.id);return E!==PA?E:this._throwOrNull(g,r)};
_.S._getByKeyDefault=function(g,r,E){for(var B=E=E instanceof n4L?this.parent:this;E instanceof tA;){var w=E._getObjByKeyId(g.id);if(w!==PA)return w;E=E.parent}w=void 0;if(E!==null)try{var O=E.resolve(g.token,r);if(O!==PA)return O}catch(M){w=M}if(!(B instanceof tA&&$ft(g.token))){if(w)throw w;return this._throwOrNull(g,r)}for(O=B;O.parent instanceof tA;)O=O.parent;O.addProvider(o4A({provide:g.token,useClass:g.token}));return O.resolve(g.token,r)};
_.S.toString=function(){return this.displayName};
_.hx.Object.defineProperties(tA.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+fwl(this,function(g){return' "'+g.key.displayName+'" '}).join(", ")+"])"}}});
var uAw=Ry.get(Yy(wKT));(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 lyb=window.XRegExp;var Dhn=-1,o3D=function(g){addEventListener("pageshow",function(r){r.persisted&&(Dhn=r.timeStamp,g(r))},!0)};var Qlw=function(g,r,E){var B=GwU,w,O;return function(M){if(r.value>=0&&(M||E)){var u;if((O=r.value-((u=w)!=null?u:0))||w===void 0)w=r.value,r.delta=O,M=r.value,r.rating=M>B[1]?"poor":M>B[0]?"needs-improvement":"good",g(r)}}};var zc4=function(g){requestAnimationFrame(function(){return requestAnimationFrame(function(){return g()})})};var kww=function(){var g=performance.getEntriesByType("navigation")[0];if(g&&g.responseStart>0&&g.responseStart<performance.now())return g};var Hhw=function(){var g,r;return(r=(g=kww())==null?void 0:g.activationStart)!=null?r:0};var pKA=function(){var g=g===void 0?-1:g;var r=kww(),E="navigate";Dhn>=0?E="back-forward-cache":r&&(document.prerendering||Hhw()>0?E="prerender":document.wasDiscarded?E="restore":r.type&&(E=r.type.replace(/_/g,"-")));return{name:"LCP",value:g,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:E}};var AqQ=new WeakMap;var YBz=function(g){var r=r===void 0?{}:r;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var E=new PerformanceObserver(function(B){Promise.resolve().then(function(){g(B.getEntries())})});
E.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},r));return E}}catch(B){}};var RcD=function(g){var r=!1;return function(){r||(g(),r=!0)}};var FO=-1,n3b=function(g){document.visibilityState==="hidden"&&FO>-1&&(FO=g.type==="visibilitychange"?g.timeStamp:0,removeEventListener("visibilitychange",n3b,!0),removeEventListener("prerenderingchange",n3b,!0))},slb=function(){addEventListener("visibilitychange",n3b,!0);
addEventListener("prerenderingchange",n3b,!0)},fyU=function(){if(FO<0){var g=Hhw(),r,E;
FO=(E=document.prerendering?void 0:(r=globalThis.performance.getEntriesByType("visibility-state").filter(function(B){return B.name==="hidden"&&B.startTime>g})[0])==null?void 0:r.startTime)!=null?E:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
slb();o3D(function(){setTimeout(function(){FO=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;slb()})})}return{get firstHiddenTime(){return FO}}};var $hZ=function(g){document.prerendering?addEventListener("prerenderingchange",function(){return g()},!0):g()};var jlw=function(g){var r=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?g():(g=RcD(g),document.addEventListener("visibilitychange",g,{once:!0}),r(function(){g();document.removeEventListener("visibilitychange",g)}))};var jot=function(){};
jot.prototype._processEntry=function(g){var r;(r=this._onBeforeProcessingEntry)==null||r.call(this,g)};var GwU=[2500,4E3],EqY=function(g){var r=r===void 0?{}:r;$hZ(function(){var E=fyU(),B=pKA(),w=bVo(r),O=function(k){r.reportAllChanges||(k=k.slice(-1));k=_.U(k);for(var H=k.next();!H.done;H=k.next())H=H.value,w._processEntry(H),H.startTime<E.firstHiddenTime&&(B.value=Math.max(H.startTime-Hhw(),0),B.entries=[H],u())},M=YBz(O);
if(M){var u=Qlw(g,B,r.reportAllChanges);for(var l=RcD(function(){O(M.takeRecords());M.disconnect();u(!0)}),Q=_.U(["keydown",
"click","visibilitychange"]),z=Q.next();!z.done;z=Q.next())addEventListener(z.value,function(){return jlw(l)},{capture:!0,
once:!0});o3D(function(k){B=pKA();u=Qlw(g,B,r.reportAllChanges);zc4(function(){B.value=performance.now()-k.timeStamp;u(!0)})})}})};var AR4;var bhI;_.d=function(){return bhI!==void 0?bhI:bhI=document.createElement("template")};
document.head.appendChild(_.d().content);var JRI;_.ba({_template:function(){if(JRI!==void 0)return JRI;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);
var r=g.content,E=r.insertBefore;AR4===void 0&&(AR4=document.createElement("template"));var B=AR4;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return JRI=g},
is:"tp-yt-app-toolbar"});var PWI;var tkI;_.eP=function(){};
_.eP=_.ba({_template:function(){if(tkI!==void 0)return tkI;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;PWI===void 0&&(PWI=document.createElement("template"));var B=PWI;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return tkI=g},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.eP.instance||(_.eP.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(g){this._text===g&&(g+="\u00a0");this._text="";this.async(function(){this._text=g},this.timeout)},
_onIronAnnounce:function(g){g.detail&&g.detail.text&&this.announce(g.detail.text)}});
_.eP.instance=null;_.eP.requestAvailability=function(){_.eP.instance||(_.eP.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.eP.instance):document.addEventListener("load",function(){document.body.appendChild(_.eP.instance)})};var FJw;var ecT;/*

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

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 WA,Nt4,Iyw;WA=Element.prototype;Nt4=WA.matches||WA.matchesSelector||WA.mozMatchesSelector||WA.msMatchesSelector||WA.oMatchesSelector||WA.webkitMatchesSelector;Iyw=function(){};
_.cRD=function(g){var r=mhw,E=[];return r._collectTabbableNodes(g,E)?r._sortByTabIndex(E):E};
_.S=Iyw.prototype;_.S._normalizedTabIndex=function(g){return(Nt4.call(g,"input, select, textarea, button, object")?Nt4.call(g,":not([disabled])"):Nt4.call(g,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(g=g.getAttribute("tabindex")||0,Number(g)):-1};
_.S._collectTabbableNodes=function(g,r){if(g.nodeType!==Node.ELEMENT_NODE||!this._isVisible(g))return!1;var E=this._normalizedTabIndex(g),B=E>0;E>=0&&r.push(g);if(g.localName==="content"||g.localName==="slot")E=_.nM(g).getDistributedNodes();else{var w;E=((w=_.nM(g).shadowRoot)!=null?w:_.nM(g.root||g)).children}for(g=0;g<E.length;g++)B=this._collectTabbableNodes(E[g],r)||B;return B};
_.S._isVisible=function(g){var r=g.style;return r.visibility!=="hidden"&&r.display!=="none"?(r=window.getComputedStyle(g),r.visibility!=="hidden"&&r.display!=="none"):!1};
_.S._sortByTabIndex=function(g){var r=g.length;if(r<2)return g;var E=Math.ceil(r/2);r=this._sortByTabIndex(g.slice(0,E));g=this._sortByTabIndex(g.slice(E));return this._mergeSortByTabIndex(r,g)};
_.S._mergeSortByTabIndex=function(g,r){for(var E=[];g.length>0&&r.length>0;)this._hasLowerTabOrder(g[0],r[0])?E.push(r.shift()):E.push(g.shift());return E.concat(g,r)};
_.S._hasLowerTabOrder=function(g,r){g=Math.max(g.tabIndex,0);r=Math.max(r.tabIndex,0);return g===0||r===0?r>g:g>r};
var mhw=new Iyw;var ihm;var LJ4;_.ba({_template:function(){if(LJ4!==void 0)return LJ4;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;ihm===void 0&&(ihm=document.createElement("template"));var B=ihm;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return LJ4=g},
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&&_.nM(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.nM(this.parentNode).removeChild(this)},
_onTransitionend:function(g){g&&g.target===this&&this.complete()},
_openedChanged:function(g){g?this.prepare():(g=window.getComputedStyle(this),g.transitionDuration!=="0s"&&g.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 C7=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;bp(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)};
C7.prototype._bringOverlayAtIndexToFront=function(g){var r=this._overlays[g];if(r){var E=this._overlays.length-1,B=this._overlays[E];B&&this._shouldBeBehindOverlay(r,B)&&E--;if(!(g>=E)){B=Math.max(this._getZ(_.Vkw(this)),this._minimumZ);for(this._getZ(r)<=B&&this._applyOverlayZ(r,B);g<E;)this._overlays[g]=this._overlays[g+1],g++;this._overlays[E]=r}}};
C7.prototype.addOverlay=function(g){var r=this._overlays.indexOf(g);if(r>=0)this._bringOverlayAtIndexToFront(r);else{r=this._overlays.length;var E=this._overlays[r-1],B=Math.max(this._getZ(E),this._minimumZ),w=this._getZ(g);E&&this._shouldBeBehindOverlay(g,E)&&(this._applyOverlayZ(E,B),r--,B=Math.max(this._getZ(this._overlays[r-1]),this._minimumZ));w<=B&&this._applyOverlayZ(g,B);this._overlays.splice(r,0,g)}this.trackBackdrop()};
C7.prototype.removeOverlay=function(g){g=this._overlays.indexOf(g);g!==-1&&(this._overlays.splice(g,1),this.trackBackdrop())};
_.Vkw=function(g){return g._overlays[g._overlays.length-1]};
_.S=C7.prototype;_.S.trackBackdrop=function(){var g=this._overlayWithBackdrop();if(g||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(g)-1,this.backdropElement.opened=!!g,this.backdropElement.prepare()};
_.S._overlayWithBackdrop=function(){for(var g=this._overlays.length-1;g>=0;g--)if(this._overlays[g].withBackdrop)return this._overlays[g]};
_.S._getZ=function(g){var r=this._minimumZ;if(g){var E,B,w=Number(((E=g.hostElement)!=null?E:g).style.zIndex||window.getComputedStyle((B=g.hostElement)!=null?B:g).zIndex);w===w&&(r=w)}return r};
_.S._setZ=function(g,r){var E;((E=g.hostElement)!=null?E:g).style.zIndex=r};
_.S._applyOverlayZ=function(g,r){this._setZ(g,r+2)};
_.S._overlayInPath=function(g){g=g||[];for(var r=0;r<g.length;r++){var E=void 0;if(((E=g[r].polymerController)!=null?E:g[r])._manager===this)return g[r]}};
_.S._onCaptureClick=function(g){var r=this._overlays.length-1;if(r!==-1)for(var E=_.nM(g).path,B,w;(B=this._overlays[r])&&this._overlayInPath(E)!==((w=B.hostElement)!=null?w:B);)if(B._onCaptureClick(g),B.allowClickThrough)r--;else break};
_.S._onCaptureFocus=function(g){var r=_.Vkw(this);r&&r._onCaptureFocus(g)};
_.S._onCaptureKeyDown=function(g){var r=_.Vkw(this);r&&(_.QV.keyboardEventMatchesKeys(g,"esc")?r._onCaptureEsc(g):_.QV.keyboardEventMatchesKeys(g,"tab")&&r._onCaptureTab(g))};
_.S._shouldBeBehindOverlay=function(g,r){return!g.alwaysOnTop&&r.alwaysOnTop&&!r.contains(g)};
_.hx.Object.defineProperties(C7.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 g=document.activeElement;g&&g instanceof Element!==!1||(g=document.body);for(;g.root&&_.nM(g.root).activeElement;)g=_.nM(g.root).activeElement;return g}}});
_.K7=new C7;var JqJ=0,P6A=0,t5o=null,FFo=[],sQ=["wheel","mousewheel","DOMMouseScroll"],eaV;_.Y("web_no_lock_on_touchstart_killswitch")&&(sQ.push("touchstart"),sQ.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;_.xv={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:_.K7},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var g;return this._focusedChild||_.nM((g=this.hostElement)!=null?g:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var g;return _.cRD((g=this.hostElement)!=null?g: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 g;this._observer=_.nM((g=this.hostElement)!=null?g:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var g;_.nM((g=this.hostElement)!=null?g:this).unobserveNodes(this._observer)}this._observer=null;for(var r in this.__rafs)this.__rafs[r]!==null&&cancelAnimationFrame(this.__rafs[r]);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(g){this.fire("iron-overlay-canceled",g,{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 g;((g=this.hostElement)!=null?g:this).style.outline="none";var r;((r=this.hostElement)!=null?r:this).style.display="none"}},
_openedChanged:function(g){if(g){var r;((r=this.hostElement)!=null?r:this).removeAttribute("aria-hidden")}else{var E;((E=this.hostElement)!=null?E: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 g;if(this.withBackdrop&&!((g=this.hostElement)!=null?g:this).hasAttribute("tabindex")){var r;((r=this.hostElement)!=null?r:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var E;((E=this.hostElement)!=null?E: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 g;((g=this.hostElement)!=null?g:this).style.display="none";var r;((r=this.hostElement)!=null?r:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var g,r;((g=this.hostElement)!=null?g:this).style.transition=((r=this.hostElement)!=null?r:this).style.webkitTransition="none";var E,B;((E=this.hostElement)!=null?E:this).style.transform=((B=this.hostElement)!=null?B:this).style.webkitTransform="none";var w;((w=this.hostElement)!=null?w:this).style.display=""},
_finishPositioning:function(){var g;((g=this.hostElement)!=null?g:this).style.display="none";this.scrollTop=this.scrollTop;var r,E;((r=this.hostElement)!=null?r:this).style.transition=((E=this.hostElement)!=null?E:this).style.webkitTransition="";var B,w;((B=this.hostElement)!=null?B:this).style.transform=((w=this.hostElement)!=null?w:this).style.webkitTransform="";var O;((O=this.hostElement)!=null?O:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var g=this._manager.deepActiveElement,r;if(!(r=g===document.body))a:{for(;g;g=g.assignedSlot||g.parentNode||g.host)if(g===this){r=!0;break a}r=!1}r&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(g){this.noCancelOnOutsideClick||this.cancel(g)},
_onCaptureFocus:function(g){if(this.withBackdrop){var r=_.nM(g).path;r.indexOf(this)===-1?(g.stopPropagation(),this._applyFocus()):this._focusedChild=r[0]}},
_onCaptureEsc:function(g){this.noCancelOnEscKey||this.cancel(g)},
_onCaptureTab:function(g){if(this.withBackdrop){this.__ensureFirstLastFocusables();var r=g.shiftKey,E=r?this.__firstFocusableNode:this.__lastFocusableNode;r=r?this.__lastFocusableNode:this.__firstFocusableNode;if(E===r)E=!0;else{var B=this._manager.deepActiveElement;E=B===E||B===this}E&&(g.preventDefault(),this._focusedChild=r,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 g=this._focusableNodes;this.__firstFocusableNode=g[0];this.__lastFocusableNode=g[g.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(g,r){var E=this.__rafs;E[g]!==null&&cancelAnimationFrame(E[g]);E[g]=requestAnimationFrame(function(){E[g]=null;r.call(this)}.bind(this))},
__updateScrollObservers:function(g,r,E){g&&r&&this.__isValidScrollAction(E)?(E==="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),eaV=_._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()):(g=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),g!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(g,1),eaV=_._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(W3)for(var g=this;g;)g.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&g.host&&this.__rootNodes.push(g),g=g.host||g.assignedSlot||g.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(r){r.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(g){g.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(g){return g==="lock"||g==="refit"||g==="cancel"},
__onCaptureScroll:function(g){if(!(this.__isAnimating||_.nM(g).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(g)}},
__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)}};
_.ai=[XKb,_.f7,_.xv];_.ba({_template:function(){if(xhD!==void 0)return xhD;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;KJn===void 0&&(KJn=document.createElement("template"));var B=KJn;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return xhD=g},
is:"tp-yt-iron-dropdown",behaviors:[_.zt,_.QV,_.ai,AMn],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 g=_.nM(this.$.content).getDistributedNodes(),r=0,E=g.length;r<E;r++)if(g[r].nodeType===Node.ELEMENT_NODE)return g[r]},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(),_.xv._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.xv._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.xv._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var g=this.containedElement,r=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),E=0;E<r.length;E++)r[E].node=g;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(g){this._readied&&(g?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var g=this.focusTarget||this.containedElement;g&&this.opened&&!this.noAutoFocus?g.focus():_.xv._applyFocus.apply(this,arguments)}});var hcD;var Zhw;/*

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 yRI=new _.Yv({type:"iconset"});
_.ba({_template:function(){if(Zhw!==void 0)return Zhw;var g=document.createElement("template");_.b(g,"\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");g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;hcD===void 0&&(hcD=document.createElement("template"));
var B=hcD;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return Zhw=g},
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(g){g=(g||"").split(":");this._iconName=g.pop();this._iconsetName=g.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&&_.nM(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=yRI.byKey(this._iconsetName)){var g=this._iconset.applyIcon(this,this._iconName,this.theme);g&&g.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,_.nM(this.root).appendChild(this._img)}});var v3D;var dh6;_.ba({_template:function(){if(dh6!==void 0)return dh6;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);
var r=g.content,E=r.insertBefore;v3D===void 0&&(v3D=document.createElement("template"));var B=v3D;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return dh6=g},
is:"tp-yt-iron-input",behaviors:[_.n7],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(){_.eP.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.nM(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.nM(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 g=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":g=/[0-9.,e-]/}return g},_bindValueChanged:function(g,r){r&&(g===void 0?r.value=null:g!==r.value&&(this.inputElement.value=g),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:g}))},
_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(g){var r=g.keyCode==19||g.keyCode==20||g.keyCode==45||g.keyCode==46||g.keyCode==144||g.keyCode==145||g.keyCode>32&&g.keyCode<41||g.keyCode>111&&g.keyCode<124;return!(g.keyCode==8||g.keyCode==9||g.keyCode==13||g.keyCode==27)&&!(g.charCode==0&&r)},
_onKeypress:function(g){if(this.allowedPattern||this.inputElement.type==="number"){var r=this._patternRegExp;if(r&&!(g.metaKey||g.ctrlKey||g.altKey)){this._patternAlreadyChecked=!0;var E=String.fromCharCode(g.charCode);this._isPrintable(g)&&!r.test(E)&&(g.preventDefault(),this._announceInvalidCharacter("Invalid character "+E+" not entered."))}}},
_checkPatternValidity:function(){var g=this._patternRegExp;if(!g)return!0;for(var r=0;r<this.inputElement.value.length;r++)if(!g.test(this.inputElement.value[r]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var g=this.inputElement.checkValidity();g&&(this.required&&this.bindValue===""?g=!1:this.hasValidator()&&(g=_.n7.validate.call(this,this.bindValue)));this.invalid=!g;this.fire("iron-input-validate");return g},
_announceInvalidCharacter:function(g){this.fire("iron-announce",{text:g})},
_computeValue:function(g){return g}});var TtD;var goZ;var rfn=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),Eoz=rfn&&rfn[1]>=8;
_.ba({_template:function(){if(goZ!==void 0)return goZ;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;TtD===void 0&&(TtD=document.createElement("template"));var B=TtD;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return goZ=g},
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:[TIY,_.f7,_.j3A,ogb],_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 _.nM(_.nM(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var g=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,g-this._physicalCount)},set _virtualStart(g){g=this._clamp(g,0,this._maxVirtualStart);this.grid&&(g-=g%this._itemsPerRow);this._virtualStartVal=g},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(g){g%=this._physicalCount;g<0&&(g=this._physicalCount+g);this.grid&&(g-=g%this._itemsPerRow);this._physicalStartVal=g},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(g){this._physicalCountVal=g},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 g=this._firstVisibleIndexVal;if(g==null){var r=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
g=this._iterateItems(function(E,B){r+=this._getPhysicalSizeIncrement(E);if(r>this._scrollPosition)return this.grid?B-B%this._itemsPerRow:B;if(this.grid&&this._virtualCount-1===B)return B-B%this._itemsPerRow})||0}return g},
get lastVisibleIndex(){var g=this._lastVisibleIndexVal;if(g==null){if(this.grid)g=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var r=this._physicalTop+this._scrollOffset;this._iterateItems(function(E,B){r<this._scrollBottom&&(g=B);r+=this._getPhysicalSizeIncrement(E)})}this._lastVisibleIndexVal=g}return g},
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,_.AM);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(g){this.style.webkitOverflowScrolling=g===this?"touch":"";this.style.overflowY=g===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.AM)},
updateViewportBoundaries:function(){var g=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(g["padding-top"],10);this._isRTL=g.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var g=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),r=g-this._scrollPosition,E=r>=0;this._scrollPosition=g;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(r)>this._physicalSize&&this._physicalSize>0?(r-=this._scrollOffset,E=Math.round(r/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=E,this._physicalStart+=E,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(g=this._getReusables(E),E?(this._physicalTop=g.physicalTop,this._virtualStart+=g.indexes.length,this._physicalStart+=g.indexes.length):(this._virtualStart=this._virtualStart-g.indexes.length,this._physicalStart=this._physicalStart-g.indexes.length),this._update(g.indexes,E?null:g.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),tx))},
_getReusables:function(g){var r=[],E=this._hiddenContentSize*this._ratio,B=this._virtualStart,w=this._virtualEnd,O=this._physicalCount,M=this._physicalTop+this._scrollOffset;var u=this._physicalBottom+this._scrollOffset;var l=this._scrollPosition,Q=this._scrollBottom;if(g){var z=this._physicalStart;u=l-M}else z=this._physicalEnd,u-=Q;for(;;){var k=this._getPhysicalSizeIncrement(z);u-=k;if(r.length>=O||u<=E)break;if(g){if(w+r.length+1>=this._virtualCount)break;if(M+k>=l-this._scrollOffset)break;r.push(z);
M+=k;z=(z+1)%O}else{if(B-r.length<=0)break;if(M+this._physicalSize-k<=Q)break;r.push(z);M-=k;z=z===0?O-1:z-1}}return{indexes:r,physicalTop:M-this._scrollOffset}},
_update:function(g,r){if(!(g&&g.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(g);this._updateMetrics(g);if(r)for(;r.length;)g=r.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(g);this._positionItems();this._updateScrollerSize()}},
_createPool:function(g){this._ensureTemplatized();var r,E=Array(g);for(r=0;r<g;r++){var B=this.stamp(null);E[r]=B.root.querySelector("*");this._itemsParent.appendChild(B.root)}return E},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(g){g=this._clamp(this._physicalCount+g,3,this._virtualCount-this._virtualStart);g=this._convertIndexToCompleteRow(g);if(this.grid){var r=g%this._itemsPerRow;r&&g-r<=this._physicalCount&&(g+=this._itemsPerRow);g-=r}g-=this._physicalCount;r=Math.round(this._physicalCount*.5);if(!(g<0)){if(g>0){r=window.performance.now();[].push.apply(this._physicalItems,this._createPool(g));for(var E=0;E<g;E++)this._physicalSizes.push(0);this._physicalCount+=g;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=g);this._update();this._templateCost=(window.performance.now()-r)/g;r=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||r===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,r)),ZkD):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,r),tx))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var g=this._getReusables(!0);this._physicalTop=g.physicalTop;this._virtualStart+=g.indexes.length;this._physicalStart+=g.indexes.length;this._update(g.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 g={__key__:!0};g[this.as]=!0;g[this.indexAs]=!0;g[this.selectedAs]=!0;g.tabIndex=!0;this._instanceProps=g;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(g,r){typeof r!=="undefined"&&(this.notifyResize(),_.SB(),g&&this._updateGridMetrics())},
_itemsChanged:function(g){if(g.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,
_.AM);else if(g.path==="items.splices"){this._adjustVirtualIndex(g.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(g.value.indexSplices.some(function(E){return E.addedCount>0||E.removed.length>0})){var r=this._getActiveElement();
this.contains(r)&&r.blur()}g=g.value.indexSplices.some(function(E){return E.index+E.addedCount>=this._virtualStart&&E.index<=this._virtualEnd},this);
this._isClientFull()&&!g||this._debounce("_render",this._render,_.AM)}else g.path!=="items.length"&&this._forwardItemPath(g.path,g.value)},
_forwardItemPath:function(g,r){g=g.slice(6);var E=g.indexOf(".");E===-1&&(E=g.length);var B,w=this.modelForElement(this._offscreenFocusedItem),O=parseInt(g.substring(0,E),10);if(B=this._isIndexRendered(O)){var M=this._getPhysicalIndex(O);var u=this.modelForElement(this._physicalItems[M])}else w&&(u=w);u&&u[this.indexAs]===O&&(g=g.substring(E+1),g=this.as+(g?"."+g:""),u._setPendingPropertyOrPath(g,r,!1,!0),u._flushProperties&&u._flushProperties(),B&&(this._updateMetrics([M]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(g){g.forEach(function(r){r.removed.forEach(this._removeItem,this);r.index<this._virtualStart&&(r=Math.max(r.addedCount-r.removed.length,r.index-this._virtualStart),this._virtualStart+=r,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=r))},this)},
_removeItem:function(g){this.$.selector.deselect(g);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===g&&this._removeFocusedItem()},
_iterateItems:function(g,r){var E,B;if(arguments.length===2&&r)for(B=0;B<r.length;B++){var w=r[B];var O=this._computeVidx(w);if((E=g.call(this,w,O))!=null)return E}else{w=this._physicalStart;for(O=this._virtualStart;w<this._physicalCount;w++,O++)if((E=g.call(this,w,O))!=null)return E;for(w=0;w<this._physicalStart;w++,O++)if((E=g.call(this,w,O))!=null)return E}},
_computeVidx:function(g){return g>=this._physicalStart?this._virtualStart+(g-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+g},
_assignModels:function(g){this._iterateItems(function(r,E){var B=this._physicalItems[r],w=this.items&&this.items[E];if(w!=null){var O=this.modelForElement(B);O.__key__=null;this._forwardProperty(O,this.as,w);this._forwardProperty(O,this.selectedAs,this.$.selector.isSelected(w));this._forwardProperty(O,this.indexAs,E);this._forwardProperty(O,"tabIndex",this._focusedVirtualIndex===E?0:-1);this._physicalIndexForKey[O.__key__]=r;O._flushProperties&&O._flushProperties(!0);B.removeAttribute("hidden")}else B.setAttribute("hidden",
"")},g)},
_updateMetrics:function(g){_.SB();var r=0,E=0,B=this._physicalAverageCount,w=this._physicalAverage;this._iterateItems(function(O){E+=this._physicalSizes[O];this._physicalSizes[O]=this._physicalItems[O].offsetHeight;r+=this._physicalSizes[O];this._physicalAverageCount+=this._physicalSizes[O]?1:0},g);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(E=this._itemsPerRow===1?E:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+r-E,this._itemsPerRow=1);this._physicalAverageCount!==B&&(this._physicalAverage=Math.round((w*B+r)/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 g=this._physicalTop;if(this.grid){var r=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(E,B){var w=Math.floor(B%this._itemsPerRow*this._itemWidth+r);this._isRTL&&(w*=-1);this.translate3d(w+"px",g+"px",0,this._physicalItems[E]);this._shouldRenderNextRow(B)&&(g+=this._rowHeight)})}else this._iterateItems(function(E){this.translate3d(0,g+"px",0,this._physicalItems[E]);
g+=this._physicalSizes[E]})},
_getPhysicalSizeIncrement:function(g){return this.grid?this._computeVidx(g)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[g]},
_shouldRenderNextRow:function(g){return g%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var g=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(g!==0){this._physicalTop=this._physicalTop-g;var r=this._scrollPosition;!Eoz&&r>0&&this._resetScrollPosition(r-g)}},
_resetScrollPosition:function(g){this.scrollTarget&&g>=0&&(this._scrollPosition=this._scrollTop=g)},
_updateScrollerSize:function(g){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((g=(g=(g=g||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(g){return this.scrollToIndex(this.items.indexOf(g))},
scrollToIndex:function(g){if(!(typeof g!=="number"||g<0||g>this.items.length-1)&&(_.SB(),this._physicalCount!==0)){g=this._clamp(g,0,this._virtualCount-1);if(!this._isIndexRendered(g)||g>=this._maxVirtualStart)this._virtualStart=this.grid?g-this._itemsPerRow*2:g-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var r=this._physicalStart,E=this._virtualStart,B=0,w=this._hiddenContentSize;E<g&&
B<=w;)B+=this._getPhysicalSizeIncrement(r),r=(r+1)%this._physicalCount,E++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+B);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)},_.AM)},
selectItem:function(g){return this.selectIndex(this.items.indexOf(g))},
selectIndex:function(g){if(!(g<0||g>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(g)){var r=this.modelForElement(this._physicalItems[this._getPhysicalIndex(g)]);r&&(r[this.selectedAs]=!0);this.updateSizeForIndex(g)}this.$.selector.selectIndex(g)}},
deselectItem:function(g){return this.deselectIndex(this.items.indexOf(g))},
deselectIndex:function(g){g<0||g>=this._virtualCount||(this._isIndexRendered(g)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(g)])[this.selectedAs]=!1,this.updateSizeForIndex(g)),this.$.selector.deselectIndex(g))},
toggleSelectionForItem:function(g){return this.toggleSelectionForIndex(this.items.indexOf(g))},
toggleSelectionForIndex:function(g){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(g):this.$.selector.isSelected(this.items[g]))?this.deselectIndex(g):this.selectIndex(g)},
clearSelection:function(){this._iterateItems(function(g){this.modelForElement(this._physicalItems[g])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(g){(g?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(g){var r=this.modelForElement(g.target);if(r){var E=_.nM(g).path[0];g=this._getActiveElement();var B=this._physicalItems[this._getPhysicalIndex(r[this.indexAs])];if(E.localName!=="input"&&E.localName!=="button"&&E.localName!=="select"){E=r.tabIndex;r.tabIndex=-100;var w=g?g.tabIndex:-1;r.tabIndex=E;g&&B!==g&&B.contains(g)&&w!==-100||this.toggleSelectionForItem(r[this.as])}}},
_multiSelectionChanged:function(g){this.clearSelection();this.$.selector.multi=g},
updateSizeForItem:function(g){return this.updateSizeForIndex(this.items.indexOf(g))},
updateSizeForIndex:function(g){if(!this._isIndexRendered(g))return null;this._updateMetrics([this._getPhysicalIndex(g)]);this._positionItems();return null},
_manageFocus:function(){var g=this._focusedVirtualIndex;g>=0&&g<this._virtualCount?this._isIndexRendered(g)?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(g){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(g/this._itemsPerRow)*this._itemsPerRow:g},
_isIndexRendered:function(g){return g>=this._virtualStart&&g<=this._virtualEnd},
_isIndexVisible:function(g){return g>=this.firstVisibleIndex&&g<=this.lastVisibleIndex},
_getPhysicalIndex:function(g){return(this._physicalStart+(g-this._virtualStart))%this._physicalCount},
focusItem:function(g){this._focusPhysicalItem(g)},
_focusPhysicalItem:function(g){if(!(g<0||g>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(g)||this.scrollToIndex(g);var r=this._physicalItems[this._getPhysicalIndex(g)],E=this.modelForElement(r),B;E.tabIndex=-100;r.tabIndex===-100&&(B=r);B||(B=_.nM(r).querySelector('[tabindex="-100"]'));E.tabIndex=0;this._focusedVirtualIndex=g;B&&B.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 g=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var r=this.stamp(null);this._focusBackfillItem=r.root.querySelector("*");this._itemsParent.appendChild(r.root)}this._offscreenFocusedItem=this._physicalItems[g];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[g]=this._focusBackfillItem;this._focusedPhysicalIndex=g;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var g=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),r=this._physicalItems[g];if(r){var E=this.modelForElement(r),B=this.modelForElement(this._offscreenFocusedItem);E[this.as]===B[this.as]?(this._focusBackfillItem=r,E.tabIndex=-1,this._physicalItems[g]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(g){g=this.modelForElement(g.target);var r=this.modelForElement(this._focusedItem),E=this._offscreenFocusedItem!==null,B=this._focusedVirtualIndex;g&&(r===g?this._isIndexVisible(B)||this.scrollToIndex(B):(this._restoreFocusedItem(),r&&(r.tabIndex=-1),g.tabIndex=0,this._focusedVirtualIndex=B=g[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(B),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],E&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(g){switch(g.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&g.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&&g.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(g)}},
_clamp:function(g,r,E){return Math.min(E,Math.max(r,g))},
_debounce:function(g,r,E){this._debouncers=this._debouncers||{};this._debouncers[g]=_.g3(this._debouncers[g],E,r.bind(this));_.r3(this._debouncers[g])},
_forwardProperty:function(g,r,E){g._setPendingProperty(r,E)},
_forwardHostPropV2:function(g,r){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(E){E&&this.modelForElement(E).forwardHostProp(g,r)},this)},
_notifyInstancePropV2:function(g,r,E){NtP(this.as,r)&&(g=g[this.indexAs],r==this.as&&(this.items[g]=E),this.notifyPath(lp(this.as,"items."+g,r),E))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(g,r,E){r.indexOf(this.as+".")===0&&this.notifyPath("items."+g.__key__+"."+r.slice(this.as.length+1),E)},
_forwardParentPath:function(g,r){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(E){E&&this.modelForElement(E).notifyPath(g,r)},this)},
_forwardParentProp:function(g,r){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(E){E&&(this.modelForElement(E)[g]=r)},this)},
_getActiveElement:function(){var g=this._itemsParent.node.domHost;return _.nM(g?g.root:document).activeElement},
_scrollTargetChanged:function(g,r){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(r)if(g==="document")this.scrollTarget=this._doc;else if(typeof g==="string"){var E,B;this.scrollTarget=(r=(B=(E=this.domHost)==null?void 0:E.polymerController)!=null?B:this.domHost)&&r.$?r.$[g]:_.nM(this.ownerDocument).querySelector("#"+g)}else this._isValidScrollTarget()&&(this._oldScrollTarget=g,this._toggleScrollListener(this._shouldHaveListener,g))}});var BrZ;var wX4;var Sgb=function(g,r,E,B){g-=E;r-=B;return Math.sqrt(g*g+r*r)},Omb=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
WFA.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var C6V=function(g){g.maxRadius=0;g.mouseDownStart=0;g.mouseUpStart=0;g.xStart=0;g.yStart=0;g.xEnd=0;g.yEnd=0;g.containerMetrics=new WFA(g.element)};
KFl.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var g=Omb()-this.mouseDownStart;this.mouseUpStart&&(g-=this.mouseUpElapsed);return g},get mouseUpElapsed(){return this.mouseUpStart?Omb()-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 g=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(g*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-g/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var g=this.radius/(this.containerMetrics.size/2);var r=this.xNow-this.containerMetrics.width/2;var E=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+r+"px, "+E+"px)";this.waveContainer.style.transform="translate3d("+r+"px, "+E+"px, 0)";this.wave.style.webkitTransform="scale("+g+","+g+")";this.wave.style.transform="scale3d("+g+","+g+",1)"},
downAction:function(g){var r=this.containerMetrics.width/2,E=this.containerMetrics.height/2;C6V(this);this.mouseDownStart=Omb();this.center?(this.xStart=r,this.yStart=E):(this.xStart=g?g.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=g?g.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=r,this.yEnd=E);g=this.containerMetrics;r=this.xStart;E=this.yStart;this.maxRadius=Math.max(Sgb(r,E,0,0),Sgb(r,E,
g.width,0),Sgb(r,E,0,g.height),Sgb(r,E,g.width,g.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=Omb())},
remove:function(){_.nM(_.nM(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.ba({_template:function(){if(wX4!==void 0)return wX4;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;BrZ===void 0&&(BrZ=document.createElement("template"));var B=BrZ;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return wX4=g},
is:"tp-yt-paper-ripple",behaviors:[_.QV],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(){_.nM(this).parentNode.nodeType==11?this.keyEventTarget=_.nM(this).getOwnerRoot().host:this.keyEventTarget=_.nM(this).parentNode;var g=this.keyEventTarget;this.listen(g,"up","uiUpAction");this.listen(g,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(g){g.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var g=0;g<this.ripples.length;++g)if(!this.ripples[g].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(g){this.noink||this.downAction(g)},
downAction:function(g){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(g),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(g){this.noink||this.upAction(g)},
upAction:function(g){this.holdDown||(this.ripples.forEach(function(r){r.upAction(g)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var g=0;g<this.ripples.length;++g){var r=this.ripples[g];r.isOpacityFullyDecayed&&!r.isRestingAtMaxRadius&&this.removeRipple(r)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var g=new KFl(this);_.nM(this.$.waves).appendChild(g.waveContainer);this.$.background.style.backgroundColor=g.color;this.ripples.push(g);this._setAnimating(!0);return g},
removeRipple:function(g){var r=this.ripples.indexOf(g);r<0||(this.ripples.splice(r,1),g.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var g;for(g=0;g<this.ripples.length;++g){var r=this.ripples[g];r.draw();this.$.background.style.opacity=r.outerOpacity;r.isOpacityFullyDecayed&&!r.isRestingAtMaxRadius&&this.removeRipple(r)}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(g,r){r!==void 0&&(g?this.downAction():this.upAction())}});var XO={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(g){kv._downHandler.call(this,g);this.pressed&&this.ensureRipple(g)},
ensureRipple:function(g){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var r=this._rippleContainer||this.root;r&&_.nM(r).appendChild(this._ripple);if(g){r=_.nM(this._rippleContainer||this);var E=_.nM(g).rootTarget;r.deepContains(E)&&this._ripple.uiDownAction(g)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(g){this.hasRipple()&&(this._ripple.noink=g)}};var UQz={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 g=1;this.disabled?g=0:this.active||this.pressed?g=4:this.receivedFocusFromKeyboard&&(g=3);this._setElevation(g)},
_computeKeyboardClass:function(g){this.toggleClass("keyboard-focus",g)},
_spaceKeyDownHandler:function(g){kv._spaceKeyDownHandler.call(this,g);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(g){kv._spaceKeyUpHandler.call(this,g);this.hasRipple()&&this._ripple.uiUpAction()}},MTn=[Q3I,
_.zt,XO,UQz];_.qgw={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(g){g&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=g)},
_createRipple:function(){var g=XO._createRipple();g.id="ink";g.setAttribute("center","");g.classList.add("circle");return g}};
_.uXD=[Q3I,_.zt,XO,_.qgw];_.lBA=[_.uXD,HWw,{_checkedChanged:function(){k$D._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){XO._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var DQ4;var oon;var GaU=function(){};
_.S=GaU.prototype;_.S.registered=function(){};
_.S.addOwnKeyBinding=function(){};
_.S.removeOwnKeyBindings=function(){};
_.S.keyboardEventMatchesKeys=function(){};
_.S._collectKeyBindings=function(){};
_.S._prepKeyBindings=function(){};
_.S._addKeyBinding=function(){};
_.S._resetKeyEventListeners=function(){};
_.S._listenKeyEventListeners=function(){};
_.S._unlistenKeyEventListeners=function(){};
_.S._onKeyBindingEvent=function(){};
_.S._triggerKeyHandler=function(){};
_.S._tapHandler=function(){};
_.S._focusChanged=function(){};
_.S._detectKeyboardFocus=function(){};
_.S._userActivate=function(){};
_.S._upHandler=function(){};
_.S._asyncClick=function(){};
_.S._pressedChanged=function(){};
_.S._ariaActiveAttributeChanged=function(){};
_.S._activeChanged=function(){};
_.S._controlStateChanged=function(){};
_.S._changedButtonState=function(){};
_.S._focusBlurHandler=function(){};
_.S._disabledChanged=function(){};
_.S._changedControlState=function(){};
_.S._buttonStateChanged=function(){};
_.S._downHandler=function(){};
_.S.ensureRipple=function(){};
_.S.getRipple=function(){};
_.S.hasRipple=function(){};
_.S._createRipple=function(){};
_.S._noinkChanged=function(){};
_.S._computeKeyboardClass=function(){};
_.S._spaceKeyDownHandler=function(){};
_.S._spaceKeyUpHandler=function(){};
_.S._setPressed=function(){};
_.S._setPointerDown=function(){};
_.S._setReceivedFocusFromKeyboard=function(){};
_.S._setFocused=function(){};
_.S._setElevation=function(){};
GaU=_.ba({_template:function(){if(oon!==void 0)return oon;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);
var r=g.content,E=r.insertBefore;DQ4===void 0&&(DQ4=document.createElement("template"));var B=DQ4;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return oon=g},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[MTn],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?UQz._calculateElevation.apply(this):this._setElevation(0)}});var Q$b;var z1w;var kaD={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(g){_.Y("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(g)},
_onDialogClickWrapped:function(g){_.Y("dialog_behavior_no_tap_killswitch")||this._onDialogClick(g)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(g,r){r&&(g?(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(g){g?this.setAttribute("aria-modal","true"):this.removeAttribute("aria-modal")},
_updateClosingReasonConfirmed:function(g){this.closingReason=this.closingReason||{};this.closingReason.confirmed=g},
_onDialogClick:function(g){for(var r=_.nM(g).path,E=0,B,w=r.indexOf((B=this.hostElement)!=null?B:this);E<w;E++)if(B=r[E],B.hasAttribute&&(B.hasAttribute("dialog-dismiss")||B.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(B.hasAttribute("dialog-confirm"));this.close();g.stopPropagation();break}}},Hmn=[_.ai,
kaD];var pXA=document.createElement("template");_.b(pXA,'<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(pXA.content);var YgT=document.createElement("template");_.b(YgT,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(YgT.content);_.ba({_template:function(){if(z1w!==void 0)return z1w;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);
var r=g.content,E=r.insertBefore;Q$b===void 0&&(Q$b=document.createElement("template"));var B=Q$b;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return z1w=g},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[Hmn,AMn],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 R16;var noA;_.ba({_template:function(){if(noA!==void 0)return noA;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;R16===void 0&&(R16=document.createElement("template"));var B=R16;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return noA=g},
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 g,r,E;if(((g=window.ShadyDOM)==null?void 0:g.noPatch)!==!0&&((r=window.ShadyDOM)==null?void 0:r.noPatch)!=="on-demand"||((E=this.__shady_parentNode)==null?void 0:E.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(kaD)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var s$b=_.me(['<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>']),fBU=_.HMw(s$b);fBU.setAttribute("style","display: none;");document.head.appendChild(fBU.content);var $Qn;var j$n;var Afn;var bmZ;_.ba({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[$v],configure:function(g){var r=g.node,E=r.getBoundingClientRect().height;return this._effect=new KeyframeEffect(r,[{height:E/2+"px"},{height:E+"px"}],this.timingFromConfig(g))}});
_.ba({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[$v],configure:function(g){var r=g.node,E=r.getBoundingClientRect().width;return this._effect=new KeyframeEffect(r,[{width:E/2+"px"},{width:E+"px"}],this.timingFromConfig(g))}});
_.ba({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[$v],configure:function(g){var r=g.node,E=r.getBoundingClientRect().width;return this._effect=new KeyframeEffect(r,[{width:E+"px"},{width:E-E/20+"px"}],this.timingFromConfig(g))}});
_.ba({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[$v],configure:function(g){var r=g.node,E=r.getBoundingClientRect().height;this.setPrefixedProperty(r,"transformOrigin","0 0");return this._effect=new KeyframeEffect(r,[{height:E+"px",transform:"translateY(0)"},{height:E/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(g))}});var Na={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},JfD=function(){};
_.S=JfD.prototype;_.S.registered=function(){};
_.S.addOwnKeyBinding=function(){};
_.S.removeOwnKeyBindings=function(){};
_.S.keyboardEventMatchesKeys=function(){};
_.S._collectKeyBindings=function(){};
_.S._prepKeyBindings=function(){};
_.S._addKeyBinding=function(){};
_.S._resetKeyEventListeners=function(){};
_.S._listenKeyEventListeners=function(){};
_.S._unlistenKeyEventListeners=function(){};
_.S._onKeyBindingEvent=function(){};
_.S._triggerKeyHandler=function(){};
_.S._focusBlurHandler=function(){};
_.S._changedControlState=function(){};
_.S._setFocused=function(){};
JfD=_.ba({_template:function(){if(bmZ!==void 0)return bmZ;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;Afn===void 0&&(Afn=document.createElement("template"));var B=Afn;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return bmZ=g},
is:"tp-yt-paper-menu-button",behaviors:[_.QV,_.zt],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:Na.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:Na.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:Na.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 g=_.nM(this.$.content).getDistributedNodes(),r=0,E=g.length;r<E;r++)if(g[r].nodeType===Node.ELEMENT_NODE)return g[r]},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(g,r){g?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):r!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(g){_.zt._disabledChanged.apply(this,arguments);g&&this.opened&&this.close()},
__onIronOverlayCanceled:function(g){var r=this.$.trigger;_.nM(g.detail).path.indexOf(r)>-1&&g.preventDefault()}});
Object.keys(Na).forEach(function(g){JfD[g]=Na[g]});var PLA=_.HA.IronButtonState,tTw=(0,_.GA)(HTMLElement);
_.ba({_template:function(){if(j$n!==void 0)return j$n;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;$Qn===void 0&&($Qn=document.createElement("template"));var B=$Qn;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return j$n=g},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[PLA,_.zt,XO,_.p7,_.n7],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(g){var r=(0,_.z5)(this);r.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:g});r.shadowRoot.appendChild(g);return tTw.prototype._attachDom.call(this,g)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var g=this.contentElement;g&&g.selectedItem&&this._setSelectedItem(g.selectedItem)},
get contentElement(){for(var g=_.nM(this.$.content).getDistributedNodes(),r=0,E=g.length;r<E;r++)if(g[r].nodeType===Node.ELEMENT_NODE)return g[r]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(g){this._setSelectedItem(g.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(g){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g)===this&&this.open()},
_selectedItemChanged:function(g){var r="";g?r=g.label||g.getAttribute("label")||g.textContent.trim():r="";this.value=r;this._setSelectedItemLabel(r)},
_computeMenuVerticalOffset:function(g,r){return r?r:g?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var g=this.opened?"true":"false",r=this.contentElement;r&&r.setAttribute("aria-expanded",g)},
_computeLabelClass:function(g,r,E){var B="label";if(g)E&&(B+=" label-is-hidden");else if(E||r)B+=" label-is-floating";return B},
_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 FzA;var e1m;_.ba({is:"tp-yt-paper-icon-button",_template:function(){if(e1m!==void 0)return e1m;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;FzA===void 0&&(FzA=document.createElement("template"));var B=FzA;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return e1m=g},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.uXD],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(g,r){var E=this.getAttribute("aria-label");E&&r!=E||this.setAttribute("aria-label",g)}});var WzD;var CLz;_.Ii=[Q3I,_.zt,{hostAttributes:{role:"option",tabindex:"0"}}];_.ba({_template:function(){if(CLz!==void 0)return CLz;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;WzD===void 0&&(WzD=document.createElement("template"));var B=WzD;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return CLz=g},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.Ii]});var Kzm;var xQw;var aBn={attached:function(){this.fire("addon-attached")},
update:function(){}};var XXZ=1,NrZ=1,IBz=1,mQn=[_.zt,_.QV,{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();!Vc&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(g,r){g?g=g+" "+r:g=r;return g},
_onAddonAttached:function(g){g=_.nM(g).rootTarget;if(g.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,g.id);else{var r="paper-input-add-on-"+NrZ++;g.id=r;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,r)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(g){_.zt._focusBlurHandler.call(this,g);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var g=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",g);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(g){try{var r=this.inputElement.selectionStart;this.value=g;this.inputElement.selectionStart=r;this.inputElement.selectionEnd=r}catch(E){this.value=g}},
_computeAlwaysFloatLabel:function(g,r){return r||g},
_updateAriaLabelledBy:function(){var g=_.nM(this.root).querySelector("label");if(g){if(g.id)var r=g.id;else r="paper-input-label-"+XXZ++,g.id=r;this._ariaLabelledBy=r}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+IBz++)},
_onChange:function(g){this.shadowRoot&&this.fire(g.type,{sourceEvent:g},{node:this,bubbles:g.bubbles,cancelable:g.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var g=document.activeElement;g instanceof HTMLElement&&g!==document.body&&g!==document.documentElement||this._focusableElement.focus()}}}];var cfm;var imA;_.ba({_template:function(){if(imA!==void 0)return imA;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;cfm===void 0&&(cfm=document.createElement("template"));var B=cfm;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return imA=g},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[aBn],properties:{_charCounterStr:{type:String,value:"0"}},update:function(g){if(g.inputElement){g.value=g.value||"";var r=g.value.toString().length.toString();g.inputElement.hasAttribute("maxlength")&&(r+="/"+g.inputElement.getAttribute("maxlength"));this._charCounterStr=r}}});var Lzz;var VTm;_.ba({_template:function(){if(VTm!==void 0)return VTm;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;Lzz===void 0&&(Lzz=document.createElement("template"));var B=Lzz;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return VTm=g},
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 Ob(this.attrForValue)},get _inputElement(){return _.nM(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(g){this._addons||(this._addons=[]);g=g.target;this._addons.indexOf(g)===-1&&(this._addons.push(g),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(g){this._handleValueAndAutoValidate(g.target)},
_onValueChanged:function(g){var r=g.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,r.value===void 0||r.value===""))return;this._handleValueAndAutoValidate(g.target)},
_handleValue:function(g){var r=this._inputElementValue;r||r===0||g.type==="number"&&!g.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:g,value:r,invalid:this.invalid})},
_handleValueAndAutoValidate:function(g){this.autoValidate&&g&&(this.invalid=!(g.validate?g.validate(this._inputElementValue):g.checkValidity()));this._handleValue(g)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(g){if(this._addons)for(var r,E=0;r=this._addons[E];E++)r.update(g)},
_computeInputContentClass:function(g,r,E,B,w){var O="input-content";g?(w&&(O+=" label-is-hidden"),B&&!this.noUnfloatedLabelError&&(O+=" is-invalid")):(g=this.querySelector("label"),r||w?(O+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",B?O+=" is-invalid":E&&(O+=" label-is-highlighted")):(g&&(this.$.labelAndInputContainer.style.position="relative"),B&&!this.noUnfloatedLabelError&&(O+=" is-invalid")));E&&(O+=" focused");return O},
_computeUnderlineClass:function(g,r){var E="underline";r?E+=" is-invalid":g&&(E+=" is-highlighted");return E},
_computeAddOnContentClass:function(g,r){var E="add-on-content";r?E+=" is-invalid":g&&(E+=" is-highlighted");return E}});var h1n;var ZmZ;_.ba({_template:function(){if(ZmZ!==void 0)return ZmZ;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;h1n===void 0&&(h1n=document.createElement("template"));var B=h1n;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return ZmZ=g},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[aBn],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(g){this._setInvalid(g.invalid)}});_.ba({is:"tp-yt-paper-input",_template:function(){if(xQw!==void 0)return xQw;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;Kzm===void 0&&(Kzm=document.createElement("template"));var B=Kzm;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return xQw=g},
behaviors:[mQn,_.p7],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 yfw;var voT;_.ba({_template:function(){if(voT!==void 0)return voT;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=
g.content,E=r.insertBefore;yfw===void 0&&(yfw=document.createElement("template"));var B=yfw;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return voT=g},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.Ii]});var dQ6;var Trw;_.ba({_template:function(){if(Trw!==void 0)return Trw;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);
var r=g.content,E=r.insertBefore;dQ6===void 0&&(dQ6=document.createElement("template"));var B=dQ6;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return Trw=g},
is:"tp-yt-paper-item-body"});var gjI;var rlb;var Ej6=function(){};
_.S=Ej6.prototype;_.S.indexOf=function(){};
_.S.selectPrevious=function(){};
_.S.selectNext=function(){};
_.S.selectIndex=function(){};
_.S.forceSynchronousItemUpdate=function(){};
_.S._checkFallback=function(){};
_.S._addListener=function(){};
_.S._removeListener=function(){};
_.S._activateEventChanged=function(){};
_.S._updateItems=function(){};
_.S._selectSelected=function(){};
_.S._filterItem=function(){};
_.S._valueToItem=function(){};
_.S._valueToIndex=function(){};
_.S._indexToValue=function(){};
_.S._valueForItem=function(){};
_.S._observeItems=function(){};
_.S._itemActivate=function(){};
_.S.multiChanged=function(){};
_.S._updateAttrForSelected=function(){};
_.S._updateSelected=function(){};
_.S._selectMulti=function(){};
_.S._selectionChange=function(){};
_.S._toggleSelected=function(){};
_.S._valuesToItems=function(){};
_.S.registered=function(){};
_.S.addOwnKeyBinding=function(){};
_.S.removeOwnKeyBindings=function(){};
_.S.keyboardEventMatchesKeys=function(){};
_.S._collectKeyBindings=function(){};
_.S._prepKeyBindings=function(){};
_.S._addKeyBinding=function(){};
_.S._resetKeyEventListeners=function(){};
_.S._listenKeyEventListeners=function(){};
_.S._unlistenKeyEventListeners=function(){};
_.S._onKeyBindingEvent=function(){};
_.S._triggerKeyHandler=function(){};
_.S.select=function(){};
_.S._resetTabindices=function(){};
_.S._updateMultiselectable=function(){};
_.S._focusWithKeyboardEvent=function(){};
_.S._clearSearchText=function(){};
_.S._focusPrevious=function(){};
_.S._focusNext=function(){};
_.S._applySelection=function(){};
_.S._focusedItemChanged=function(){};
_.S._onIronItemsChanged=function(){};
_.S._onShiftTabDown=function(){};
_.S._onFocus=function(){};
_.S._onUpKey=function(){};
_.S._onDownKey=function(){};
_.S._onEscKey=function(){};
_.S._onKeydown=function(){};
_.S._activateHandler=function(){};
_.S._disabledChanged=function(){};
_.S._setSelectedItem=function(){};
_.S._setItems=function(){};
_.S._setSelectedItems=function(){};
_.S._setFocusedItem=function(){};
Ej6=_.ba({_template:function(){if(rlb!==void 0)return rlb;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);
var r=g.content,E=r.insertBefore;gjI===void 0&&(gjI=document.createElement("template"));var B=gjI;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return rlb=g},
is:"tp-yt-paper-listbox",behaviors:[nPU],hostAttributes:{role:"listbox"}});var B0T;var wmA;var S0w={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(g,r){return[g||r?"active":"",r?"cooldown":""].join(" ")},
__activeChanged:function(g,r){this.__setAriaHidden(!g);this.__coolingDown=!g&&r},
__altChanged:function(g){this.setAttribute("aria-label",g||"loading")},
__setAriaHidden:function(g){g?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.ba({_template:function(){if(wmA!==void 0)return wmA;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;B0T===void 0&&(B0T=document.createElement("template"));var B=B0T;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return wmA=g},
is:"tp-yt-paper-spinner",behaviors:[S0w]});var O0D;var UqD;_.ba({_template:function(){if(UqD!==void 0)return UqD;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;O0D===void 0&&(O0D=document.createElement("template"));var B=O0D;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return UqD=g},
is:"tp-yt-paper-spinner-lite",behaviors:[S0w]});var M7w;var q0D;_.ba({_template:function(){if(q0D!==void 0)return q0D;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;M7w===void 0&&(M7w=document.createElement("template"));var B=M7w;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return q0D=g},
is:"tp-yt-paper-tab",behaviors:[_.zt,_.HA.IronButtonState,XO],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 g=_.nM(this).parentNode;return!!g&&!!g.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(g){if(this.link){var r=this.queryEffectiveChildren("a");r&&g.target!==r&&r.click()}}});var uuD;var lpb;var Dqm=_.me(['<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>']),ojw=_.HMw(Dqm);document.head.appendChild(ojw.content);_.ba({_template:function(){if(lpb!==void 0)return lpb;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;uuD===void 0&&(uuD=document.createElement("template"));var B=uuD;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return lpb=g},
is:"tp-yt-paper-tabs",behaviors:[_.f7,_.fh6],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(g){_.nM(this).querySelectorAll("tp-yt-paper-tab").forEach(g?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(g){g.setAttribute("noink","")},
_removeNoinkAttribute:function(g){g.removeAttribute("noink")},
_computeScrollButtonClass:function(g,r,E,B){return!r||E?"hidden":g?B?"hidden":"not-visible":""},
_computeTabsContentClass:function(g,r){var E="tabs-content";g&&(E+=" scrollable");if(!g||r)E+=" fit-container";return E},
_computeSelectionBarClass:function(g,r){var E="selection-bar";g?E+=" hidden":r&&(E+=" align-bottom");return E},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(g){return""+g},
_onIronSelect:function(g){this._tabChanged(g.detail.item,this._previousTab);this._previousTab=g.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();_.sX._activateHandler.apply(this,arguments)},
_scheduleActivation:function(g,r){this._pendingActivationItem=g;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,r)},
_delayedActivationHandler:function(){var g=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;g.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(g){g.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(g,r){this.scrollable&&this._affectScroll(r&&-r.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(g){this.$.tabsContainer.scrollLeft+=g;g=this.$.tabsContainer.scrollLeft;this._leftHidden=g===0||this.hideScrollButtons;this._rightHidden=g===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(g,r){if(g){var E=this.$.tabsContent.getBoundingClientRect(),B=E.width,w=g.getBoundingClientRect();E=w.left-E.left;this._pos={width:this._calcPercent(w.width,B),left:this._calcPercent(E,B)};if(this.noSlide||r==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var O=r.getBoundingClientRect();r=this.items.indexOf(r);g=this.items.indexOf(g);this.$.selectionBar.classList.add("expand");
g=r<g;this._isRTL&&(g=!g);g?this._positionBar(this._calcPercent(w.left+w.width-O.left,B)-5,this._left):this._positionBar(this._calcPercent(O.left+O.width-w.left,B)-5,this._calcPercent(E,B)+5);this.scrollable&&this._scrollToSelectedIfNeeded(w.width,E)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(g,r){r-=this.$.tabsContainer.scrollLeft;r<0?this.$.tabsContainer.scrollLeft+=r:(r+=g-this.$.tabsContainer.offsetWidth,r>0&&(this.$.tabsContainer.scrollLeft+=r))},
_calcPercent:function(g,r){return 100*g/r},
_positionBar:function(g,r){g=g||0;r=r||0;this._width=g;this._left=r;this.transform("translateX("+r+"%) scaleX("+g/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var g=this.$.selectionBar.classList;g.contains("expand")?(g.remove("expand"),g.add("contract"),this._positionBar(this._pos.width,this._pos.left)):g.contains("contract")&&g.remove("contract")}});var Gu6;var QzI;_.ba({_template:function(){if(QzI!==void 0)return QzI;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;Gu6===void 0&&(Gu6=document.createElement("template"));var B=Gu6;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return QzI=g},
is:"tp-yt-paper-textarea",behaviors:[mQn,_.p7],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(g){this.$.input.textarea.selectionStart=g},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(g){this.$.input.textarea.selectionEnd=g},_ariaLabelledByChanged:function(g){this._focusableElement.setAttribute("aria-labelledby",g)},
_ariaDescribedByChanged:function(g){this._focusableElement.setAttribute("aria-describedby",g)},
get _focusableElement(){return this.inputElement.textarea}});var zim;var kun;/*

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 H0D=function(){};
_.S=H0D.prototype;_.S.addOwnKeyBinding=function(){};
_.S.removeOwnKeyBindings=function(){};
_.S.keyboardEventMatchesKeys=function(){};
_.S._collectKeyBindings=function(){};
_.S._prepKeyBindings=function(){};
_.S._addKeyBinding=function(){};
_.S._resetKeyEventListeners=function(){};
_.S._listenKeyEventListeners=function(){};
_.S._unlistenKeyEventListeners=function(){};
_.S._onKeyBindingEvent=function(){};
_.S._triggerKeyHandler=function(){};
_.S._tapHandler=function(){};
_.S._focusChanged=function(){};
_.S._detectKeyboardFocus=function(){};
_.S._userActivate=function(){};
_.S._upHandler=function(){};
_.S._spaceKeyDownHandler=function(){};
_.S._spaceKeyUpHandler=function(){};
_.S._asyncClick=function(){};
_.S._pressedChanged=function(){};
_.S._ariaActiveAttributeChanged=function(){};
_.S._activeChanged=function(){};
_.S._controlStateChanged=function(){};
_.S._changedButtonState=function(){};
_.S._focusBlurHandler=function(){};
_.S._disabledChanged=function(){};
_.S._changedControlState=function(){};
_.S._downHandler=function(){};
_.S.ensureRipple=function(){};
_.S.getRipple=function(){};
_.S.hasRipple=function(){};
_.S._noinkChanged=function(){};
_.S._focusedChanged=function(){};
_.S.registered=function(){};
_.S._invalidChanged=function(){};
_.S.hasValidator=function(){};
_.S.validate=function(){};
_.S._getValidity=function(){};
_.S._requiredChanged=function(){};
_.S._valueChanged=function(){};
_.S._checkedChanged=function(){};
_.S._buttonStateChanged=function(){};
_.S._setPressed=function(){};
_.S._setPointerDown=function(){};
_.S._setReceivedFocusFromKeyboard=function(){};
_.S._setFocused=function(){};
H0D=_.ba({is:"tp-yt-paper-toggle-button",_template:function(){if(kun!==void 0)return kun;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;zim===void 0&&(zim=document.createElement("template"));var B=zim;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return kun=g},
behaviors:[_.lBA],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");_.Lk(this,function(){_.P3(this,"pan-y")})},
_ontrack:function(g){g=g.detail;g.state==="start"?this._trackStart(g):g.state==="track"?this._trackMove(g):g.state==="end"&&this._trackEnd(g)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(g){g=g.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+g:g)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+g:g));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 g=XO._createRipple();g.id="ink";g.setAttribute("recenters","");g.classList.add("circle","toggle-ink");return g}});var pmZ;var Y0U;_.ba({_template:function(){if(Y0U!==void 0)return Y0U;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;pmZ===void 0&&(pmZ=document.createElement("template"));var B=pmZ;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return Y0U=g},
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 g=_.nM(this).parentNode,r=_.nM(this).getOwnerRoot(),E;this.for?E=_.nM(r).querySelector("#"+this.for):E=g.nodeType==Node.DOCUMENT_FRAGMENT_NODE?r.host:g;return E},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(g){g==="entry"?this.show():g==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.nM(this).textContent.trim()===""){for(var g=!0,r=_.nM(this).getEffectiveChildNodes(),E=0;E<r.length;E++)if(r[E].textContent.trim()!==""){g=!1;break}if(g)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 g=this.offset;this.marginTop!=14&&this.offset==14&&(g=this.marginTop);var r=this.offsetParent.getBoundingClientRect(),E=this._target.getBoundingClientRect(),B=this.getBoundingClientRect(),w=(E.width-B.width)/2,O=(E.height-B.height)/2,M=E.left-r.left,u=E.top-r.top;switch(this.position){case "top":var l=M+w;var Q=u-B.height-g;break;case "bottom":l=M+w;Q=u+E.height+g;break;case "left":l=M-B.width-g;Q=u+O;break;case "right":l=M+E.width+
g,Q=u+O}this.fitToVisibleBounds?(r.left+l+B.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,l)+"px",this.style.right="auto"),r.top+Q+B.height>window.innerHeight?(this.style.bottom=r.height+"px",this.style.top="auto"):(this.style.top=Math.max(-r.top,Q)+"px",this.style.bottom="auto")):(this.style.left=l+"px",this.style.top=Q+"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(g){g!==500&&this.updateStyles({"--paper-tooltip-delay-in":g+"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(g){if(g==="entry"&&this.animationEntry!=="")return this.animationEntry;if(g==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[g]&&typeof this.animationConfig[g][0].name==="string"){if(this.animationConfig[g][0].timing&&this.animationConfig[g][0].timing.delay&&this.animationConfig[g][0].timing.delay!==0){var r=this.animationConfig[g][0].timing.delay;g==="entry"?this.updateStyles({"--paper-tooltip-delay-in":r+"ms"}):g==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":r+
"ms"})}return this.animationConfig[g][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 RiU=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(RiU,_.xu);var njI=_.dk(RiU,[0,_.iR]);var mM=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(mM,_.xu);var szn=[3,4],fpD=[5,6];var $qU=[0,szn,fpD,_.otw,-1,_.cL,_.GLw,-1,Opo,UlX];var jz6=_.dk(mM,$qU),Al6=_.T_($qU);var b0n=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(b0n,_.xu);var Jlm=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(Jlm,_.xu);var PPI=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(PPI,_.xu);var t7n=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(t7n,_.xu);var F7z=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(F7z,_.xu);var cA=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(cA,_.xu);cA.prototype.getSource=function(){return _.AX(this,1)};
cA.prototype.getMessage=function(){return _.jI(this,4)};
cA.prototype.getData=function(){return _.zP(this,F7z,8)};var eiw=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(eiw,_.xu);var il=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(il,_.xu);var L7=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(L7,_.xu);var VV=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(VV,_.xu);VV.prototype.getUrl=function(){return _.jI(this,1)};
VV.prototype.setUrl=function(g){return _.H$(this,1,g)};
VV.prototype.hasUrl=function(){return _.IA(_.GE(this,1))!=null};var W7U=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(W7U,_.xu);var CPw=[3];var K7z=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(K7z,_.xu);var hA=function(g){var r=new K7z;return _.B8(r,2,g)};
K7z.prototype.getLanguage=function(){return JX(this,4,ZE)};
var xqD=function(g){var r=hA(1);return _.ws(r,6,ZE,g)},ZE=[3,
4,5,6];var apn=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(apn,_.xu);var yV=function(g){var r=new apn;return _.B8(r,1,g)},vA=function(g,r){return _.ws(g,2,Xmw,r)},Xmw=[2,
3,4,5];var N0n=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(N0n,_.xu);var dn=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(dn,_.xu);var Ipm=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(Ipm,_.xu);var mqb=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(mqb,_.xu);var clT=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(clT,_.xu);var i0D=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(i0D,_.xu);var L7D=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(L7D,_.xu);var Tt=function(g){return _.zP(g,L7,5)};var V7n=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(V7n,_.xu);V7n.prototype.getValue=function(){return fx(this,1)};var hiA=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(hiA,_.xu);var gy=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(gy,_.xu);gy.prototype.getMetadata=function(){return _.PL(this,clT,7,ry)};
gy.prototype.hasMetadata=function(){return _.zE(this,clT,7,ry)};
var Z0w=_.gs(gy),ry=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var E7=function(g){this.JSC$10060_name_=g;this.files_=[];this.directories_=[];this.directoryMap_={}};
E7.prototype.getName=function(){return this.JSC$10060_name_};var wy=function(g,r){this.callback_=r;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new E7("");ylD(this,g,this.rootDirectory_);By(this)},ylD=function(g,r,E){for(var B=0;B<r.length;B++){var w=r[B];
w.isFile?(g.fileOps_++,w.file((0,_.$r)(g.handleFileSuccess_,g,E),(0,_.$r)(g.handleFileError_,g))):g.unscannedDirectories_.push(new vjw(w,E))}},By=function(g){if(g.unscannedDirectories_.length>0&&g.directoryOps_<5&&!g.hasError_){g.directoryOps_++;
var r=g.unscannedDirectories_.shift(),E=r.entry,B=new E7(E.name);r=r.parent;r.directoryMap_[B.getName()]=B;r.directories_.push(B);E=E.createReader();E.readEntries((0,_.$r)(g.handleDirectorySuccess_,g,E,B),(0,_.$r)(g.handleDirectoryError_,g))}g.directoryOps_!=0||g.fileOps_!=0||g.unscannedDirectories_.length!=0&&!g.hasError_||g.callback_(g.rootDirectory_.files_,g.rootDirectory_.directories_,g.hasError_)};
wy.prototype.handleDirectorySuccess_=function(g,r,E){ylD(this,E,r);E.length==0?(this.directoryOps_--,By(this)):g.readEntries((0,_.$r)(this.handleDirectorySuccess_,this,g,r),(0,_.$r)(this.handleDirectoryError_,this))};
wy.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;By(this)};
wy.prototype.handleFileSuccess_=function(g,r){g.files_.push(r);this.fileOps_--;By(this)};
wy.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;By(this)};
var vjw=function(g,r){this.entry=g;this.parent=r};var Sf=function(g){_.ze.call(this);_.j_(g,"drop",this.onObjectsDropped_,!1,this);_.j_(g,"dragenter",this.onFilesDragged_,!1,this);_.j_(g,"dragover",this.onFilesDragged_,!1,this);_.j_(g,"dragleave",this.onDragLeave_,!1,this);_.j_(g,"dragend",this.onDragLeave_,!1,this)};
_.rc(Sf,_.ze);var dqw=function(g,r){_.l8.call(this,"f");this.files=g;this.directories=r};
_.rc(dqw,_.l8);var T0U=function(){_.l8.call(this,"h")};
_.rc(T0U,_.l8);var gIb=function(){_.l8.call(this,"i")};
_.rc(gIb,_.l8);var rQU=function(){_.l8.call(this,"g")};
_.rc(rQU,_.l8);Sf.prototype.onObjectsDropped_=function(g){var r=this;g.preventDefault();var E=g.event_.dataTransfer;if((g=E&&E.items)&&g.length>0&&g[0].webkitGetAsEntry){E=[];for(var B=[],w=0;w<g.length;w++){var O=g[w].webkitGetAsEntry();O?E.push(O):B.push(g[w])}new wy(E,function(M,u,l){l?r.dispatchEvent(new rQU("Error occurred while reading from the file system.")):r.dispatchEvent(new dqw(M,u,B))})}else(g=E&&E.files)&&this.dispatchEvent(new dqw(Array.from(g),[]))};
Sf.prototype.onFilesDragged_=function(g){g.type==="dragenter"&&this.dispatchEvent(new T0U);g.preventDefault()};
Sf.prototype.onDragLeave_=function(){this.dispatchEvent(new gIb)};var EIw=function(g,r){this.JSC$10083_name_=g;this.inputElement_=r};
EIw.prototype.getName=function(){return this.JSC$10083_name_};
EIw.prototype.getInputElement=function(){return this.inputElement_};var O7=function(g,r,E){r=r===void 0?"single_file":r;E=E===void 0?[]:E;_.ze.call(this);this.overlayTarget_=g;this.parentOverlay_=g!=null?g.parentNode:_.HT("scotty-overlay-parent");this.selectorType_=r;this.acceptTypes_=E;this.overlay_=BxU(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.f(O7,_.ze);
var BxU=function(g,r,E,B){var w=document.createElement("input");w.setAttribute("type","file");w.setAttribute("name","Filedata");_.j_(w,"change",g.onFilesSelected_,!1,g);E==="multiple_file"&&(w.multiple="true");E==="single_directory"&&(w.webkitdirectory="true");B.length>0&&w.setAttribute("accept",B.join(","));w.style.position="absolute";w.style.overflow="hidden";w.style.height="0px";w.style.width="0px";w.style.opacity="0";w.setAttribute("aria-hidden","true");w.setAttribute("tabIndex",-1);if(g.overlayTarget_!=
null)return w.style.height=r.offsetHeight+"px",w.style.width=r.offsetWidth+"px",g.parentOverlay_&&(g.parentOverlay_.style.position="relative"),_.j5(w,r),Fx(w,new _.JL(r.offsetLeft,r.offsetTop)),w;g.parentOverlay_.appendChild(w);return w};
O7.prototype.click=function(){this.overlay_.click()};
O7.prototype.onFilesSelected_=function(g){a:{try{var r=(new XMLHttpRequest).upload!==void 0;break a}catch(Q){}r=!1}if(r){var E;g=Array.from((E=g.target.files)!=null?E:[]);E=[];if(this.selectorType_==="single_directory"&&(_.Uz||Zx||_.Oz)){E=new E7("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(r=0;r<g.length;r++)for(var B=g[r],w=B.webkitRelativePath.split("/"),O=E,M=0;M<w.length;M++){var u=w[M];if(M==w.length-1){u!="."&&O.files_.push(B);break}var l=O.directoryMap_[u];l==void 0&&(u=
l=new E7(u),O.directoryMap_[u.getName()]=u,O.directories_.push(u));O=l}E=E.directories_}this.dispatchEvent(new wvZ(g,E,null))}else g=g.target.value,g.match(/^c:\\fakepath\\/i)&&(g=g.substring(12)),this.dispatchEvent(new wvZ([],[],new EIw(g,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=BxU(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var wvZ=function(g,r){_.l8.call(this,"j");this.files=g;this.directories=r};
_.f(wvZ,_.l8);var S8z=function(g){this.uploadUrl_=g};var OZT=function(){_.ze.call(this)};
_.rc(OZT,_.ze);var U7=function(g){_.l8.call(this,g)};
_.rc(U7,_.l8);var MC=function(g){_.l8.call(this,g)};
_.rc(MC,_.l8);var USZ=function(g,r,E,B,w){_.ze.call(this);E=document.createElement("form");E.setAttribute("method",r);E.setAttribute("enctype","multipart/form-data");E.setAttribute("encoding","multipart/form-data");r=document.createElement("input");r.setAttribute("type","hidden");r.setAttribute("name","metadata");r.setAttribute("value",w);E.appendChild(r);E.appendChild(B);this.JSC$10100_form_=E;g=new _.Vk(g);_.L5(g,"upload_protocol","multipart");this.JSC$10100_url_=g.toString();this.JSC$10100_request_=new h2;this.state_=
"Ready";this.JSC$10100_errorDescription_=null;this.JSC$10100_eventHandler_=new _.EQ(this);_.oO(this,this.JSC$10100_eventHandler_);this.JSC$10100_eventHandler_.listen(this.JSC$10100_request_,"success",this.onTransferSuccess_);this.JSC$10100_eventHandler_.listen(this.JSC$10100_request_,"error",this.onTransferError_)};
_.f(USZ,OZT);_.S=USZ.prototype;_.S.run=function(){this.state_="Transferring";var g=this.JSC$10100_request_,r=this.JSC$10100_form_;if(g.JSC$9518_active_)throw Error("te");var E=new _.Vk(this.JSC$10100_url_||r.action);g.JSC$9518_form_=r;r=g.JSC$9518_form_;E=_.jy(E.toString());E!==void 0&&(r.action=E);CF6(g)};
_.S.getResponseCode=function(){return null};
_.S.getResponseText=function(){return this.JSC$10100_request_&&this.JSC$10100_request_.getResponseText()||null};
_.S.JSC$26126_getErrorDescription=function(){return this.JSC$10100_errorDescription_};
_.S.cancel=function(){this.JSC$10100_request_&&this.JSC$10100_request_.abort();this.state_="Cancelled";this.dispatchEvent(new U7("o"))};
_.S.pause=function(){};
_.S.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new U7("l"))};
_.S.onTransferError_=function(){this.JSC$10100_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new U7("n"))};var qC=function(){_.fc.call(this)};
_.f(qC,_.fc);qC.prototype.createXhr=function(){var g=_.fc.prototype.createXhr.call(this);g.upload&&(g.upload.onprogress=(0,_.$r)(this.onProgress_,this));return g};
qC.prototype.onProgress_=function(g){this.dispatchEvent(g)};var Maw=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},uaU=function(g,r){var E=g.attempt_+1;
if(g.maxAttempts_>0&&E>g.maxAttempts_)return!1;E==0?r():g.delayCallId_=Rw(function(){g.delayCallId_=null;r()},q8m(g),g);
g.attempt_=E;return!0};
Maw.prototype.reset=function(){this.delayCallId_&&_.ED.clearTimeout(this.delayCallId_);this.attempt_=-1};
var q8m=function(g){var r=250*Math.pow(2,g.attempt_);g.maxDelayMs_>=0&&(r=Math.min(r,g.maxDelayMs_));return r};var awA=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var uw=function(){_.ze.call(this);this.JSC$10110_request_=this.state_=null;this.JSC$10110_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$10110_bytesTransferred_=0;this.retryIterator_=new Maw;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$10110_errorDescription_=null;this.JSC$10110_eventHandler_=new _.EQ(this);_.oO(this,this.JSC$10110_eventHandler_);this.JSC$10110_url_=this.blob_=null;this.JSC$10110_method_=void 0;this.chunkSize_=this.JSC$10110_metadata_=
this.JSC$10110_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$10110_responseText_=this.JSC$10110_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.rc(uw,OZT);_.S=uw.prototype;_.S.run=function(){lw(this)};
_.S.getResponseCode=function(){return this.JSC$10110_responseCode_};
_.S.getResponseText=function(){return this.JSC$10110_responseText_};
_.S.JSC$26126_getErrorDescription=function(){return this.JSC$10110_errorDescription_};
_.S.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$10110_eventHandler_.removeAll();this.JSC$10110_request_&&this.JSC$10110_request_.abort();this.retryIterator_.reset();var g=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(g==="Upload"||g==="Query")g=new qC,g.JSC$7885_withCredentials_=this.JSC$10110_withCredentials_,g.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$10110_bytesTransferred_=
0;this.dispatchEvent(new U7("o"))}};
_.S.pause=function(){this.pauseRequested_=!0};
var lw=function(g){var r=g.state_;g.pauseRequested_?(g.pauseRequested_=!1,g.stateAfterUnpausing_=r,g.state_="Paused"):uaU(g.retryIterator_,function(){switch(g.state_){case "Start":g.JSC$10110_request_=new qC;var E=_.jn.clone(g.JSC$10110_headers_);g.blob_.size!=null&&(E["Content-Length"]=g.blob_.size);E=XgY(E);E["X-Goog-Upload-Protocol"]="resumable";E["X-Goog-Upload-Command"]="start";g.JSC$10110_eventHandler_.removeAll();g.JSC$10110_eventHandler_.listen(g.JSC$10110_request_,"complete",g.onStartComplete_);
g.JSC$10110_request_.JSC$7885_withCredentials_=g.JSC$10110_withCredentials_;g.JSC$10110_request_.send(g.JSC$10110_url_,g.JSC$10110_method_,g.JSC$10110_metadata_,E);g.lastCommandResponseCode_=null;g.dispatchEvent(new MC("q"));break;case "Upload":E=g.transferHandle_.uploadUrl_;var B=g.blob_.size;if(H3m()){var w=g.chunkSize_;var O=g.offset_+w>=B;B=kZT(g.blob_,g.offset_,O?B:g.offset_+w)}else g.offset_=0,B=g.blob_,O=!0;g.JSC$10110_request_=new qC;g.JSC$10110_request_.JSC$7885_withCredentials_=g.JSC$10110_withCredentials_;
g.JSC$10110_eventHandler_.removeAll();g.JSC$10110_eventHandler_.listen(g.JSC$10110_request_,"progress",g.onUploadProgress_);w=(0,_.$r)(g.JSC$10112_onUploadComplete_,g,g.offset_+B.size,O);g.JSC$10110_eventHandler_.listen(g.JSC$10110_request_,"complete",w);g.lastCommandResponseCode_=null;g.dispatchEvent(new MC("q"));O=Object.assign({},g.JSC$10110_headers_||{},{"X-Goog-Upload-Command":"upload"+(O?", finalize":""),"X-Goog-Upload-Offset":g.offset_});g.JSC$10110_request_.send(E,"POST",B,O);break;case "Query":g.JSC$10110_request_=
new qC;g.JSC$10110_eventHandler_.removeAll();g.JSC$10110_eventHandler_.listen(g.JSC$10110_request_,"complete",g.onQueryComplete_);E=Object.assign({},g.JSC$10110_headers_||{},{"X-Goog-Upload-Command":"query"});g.JSC$10110_request_.send(g.transferHandle_.uploadUrl_,"POST","",E);g.lastCommandResponseCode_=null;g.dispatchEvent(new MC("q"));break;default:throw Error("jf");}})||Dc(g,"Transfer encountered too many consecutive failures.")},Dc=function(g,r){g.state_="Error";
g.JSC$10110_errorDescription_=r;g.dispatchEvent(new U7("n"))};
uw.prototype.onStartComplete_=function(g){var r=g.target;this.lastCommandResponseCode_=r.getStatus();this.dispatchEvent(new MC("r"));if(lPm(r))DSz(this,r);else if(oIn(r)){g=yr(g.target.getAllResponseHeaders());for(var E in g)_.wl(E.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new U7("m"));E=fM(g,"X-Goog-Upload-URL");g=(g=fM(g,"X-Goog-Upload-Chunk-Granularity"))?parseInt(g,10):1;E===void 0||isNaN(g)||g<=0?Dc(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
g)*g,this.transferHandle_=new S8z(E),this.dispatchEvent(new U7("p")),this.state_="Upload",this.retryIterator_.reset(),lw(this))}else lw(this)};
uw.prototype.onUploadProgress_=function(g){this.JSC$10110_bytesTransferred_=this.offset_+g.loaded;this.dispatchEvent(new U7("k"))};
uw.prototype.JSC$10112_onUploadComplete_=function(g,r,E){var B=this,w,O;return _.q(function(M){switch(M.nextAddress){case 1:w=E.target;B.lastCommandResponseCode_=w.getStatus();B.dispatchEvent(new MC("r"));if(GGn(w)||w.getStatus()==404)return B.JSC$10110_bytesTransferred_=g,DSz(B,w),M.return();if(oIn(w)){M.jumpTo(2);break}if(!(O=B.detectCorruptedBlobEnabled_)){M.jumpTo(3);break}return _.D(M,Qx4(B),4);case 4:O=M.yieldResult;case 3:if(O)return Dc(B,"Blob has been modified or corrupted."),M.return();
B.requireUploadRequestModification_=w.getStatus()==400;B.state_="Query";lw(B);return M.return();case 2:if(r)return Dc(B,"Got a non-final success response after issuing a finalize command."),M.return();B.JSC$10110_bytesTransferred_=g;B.offset_=g;B.retryIterator_.reset();lw(B);return M.return()}})};
uw.prototype.onQueryComplete_=function(g){var r=g.target;this.lastCommandResponseCode_=r.getStatus();this.dispatchEvent(new MC("r"));lPm(r)?(r.getStatus()===200&&(this.JSC$10110_bytesTransferred_=this.blob_.size),DSz(this,r)):oIn(r)?(g=yr(g.target.getAllResponseHeaders()),g=parseInt(fM(g,"X-Goog-Upload-Size-Received"),10),isNaN(g)?Dc(this,"Server did not respond with current offset."):g<this.offset_?Dc(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
g+"."):this.requireUploadRequestModification_&&this.offset_===g?Dc(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<g&&this.retryIterator_.reset(),this.offset_=this.JSC$10110_bytesTransferred_=g,this.state_="Upload",lw(this))):lw(this)};
var DSz=function(g,r){g.JSC$10110_responseCode_=r.getStatus();var E=yr(r.getAllResponseHeaders());N5X(E);g.JSC$10110_responseText_=r.getResponseText();g.state_="Response received";g.dispatchEvent(new U7("l"))},oIn=function(g){var r=g.getStatus();
g=yr(g.getAllResponseHeaders());g=fM(g,"X-Goog-Upload-Status");return r===200&&g==="active"},GGn=function(g){g=yr(g.getAllResponseHeaders());
return fM(g,"X-Goog-Upload-Status")==="final"},lPm=function(g){if(GGn(g))return!0;
g=g.getStatus();return g>=400&&g<500},Qx4=function(g){var r;
return _.q(function(E){if(E.nextAddress==1){if(!g.blob_||g.originalBlobSize_<=0)return E.return(!1);if(g.blob_.size!==g.originalBlobSize_)return E.return(!0);_.qN(E,2);if(r=kZT(g.blob_,0,1)){var B=new PU,w=d2Z(B);B.reader_.readAsBinaryString(r);E=_.D(E,w,4)}else E=E.return(!0);return E}if(E.nextAddress!=2)return E.return(g.blob_.size!==g.originalBlobSize_);_.G2(E);return E.return(!0)})};var zHD=function(g,r,E,B,w,O){_.ze.call(this);this.payload_=B;this.JSC$10113_url_=g;this.JSC$10113_method_=r;this.JSC$10113_headers_=E;this.JSC$10113_metadata_=w;this.encoding_=O||"binary";g=new _.zA;this.boundary_="uploader-"+mK()+"-"+g.JSC$9367_toIsoString();this.JSC$10113_responseText_=this.JSC$10113_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$10113_errorDescription_=null;this.JSC$10113_eventHandler_=new _.EQ(this);_.oO(this,this.JSC$10113_eventHandler_)};
_.f(zHD,OZT);_.S=zHD.prototype;
_.S.run=function(){var g=_.jn.clone(this.JSC$10113_headers_);this.payload_.length!=null&&(g["Content-Length"]=this.payload_.length);g=XgY(g);g["X-Goog-Upload-Protocol"]="multipart";g["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new qC;this.JSC$10113_eventHandler_.removeAll();this.JSC$10113_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$10113_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$10113_url_,this.JSC$10113_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$10113_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",g)};
_.S.getResponseCode=function(){return this.JSC$10113_responseCode_};
_.S.getResponseText=function(){return this.JSC$10113_responseText_};
_.S.JSC$26126_getErrorDescription=function(){return this.JSC$10113_errorDescription_};
_.S.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$10113_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new U7("o")))};
_.S.pause=function(){};
_.S.onTransferProgress_=function(){this.dispatchEvent(new U7("k"))};
_.S.onTransferComplete_=function(g){var r=g.target.getStatus();r===void 0||r===-1?(this.JSC$10113_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new U7("n"))):(this.JSC$10113_responseCode_=r,g=g.target,r=yr(g.getAllResponseHeaders()),N5X(r),this.JSC$10113_responseText_=g.getResponseText(),this.state_="Complete",this.dispatchEvent(new U7("l")))};_.kGZ=function(g,r,E,B){B=B===void 0?!1:B;if(E instanceof EIw)return new USZ(g,"POST",r,E.getInputElement(),"");if(typeof E==="string"||E instanceof String)return new zHD(g,"POST",r,E,"");var w=new uw(void 0);w.JSC$10110_url_=g;w.JSC$10110_method_="POST";w.JSC$10110_headers_=r;w.blob_=E;w.originalBlobSize_=E.size;w.JSC$10110_metadata_="";B&&(w.JSC$10110_withCredentials_=B);w.state_="Start";return w};var o1=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(o1,_.xu);_.S=o1.prototype;_.S.getEnableSsEngine=function(){return _.sz(this,2)};
_.S.getEnableAwr=function(){return _.sz(this,3)};
_.S.getAlohaAutoGaRollout=function(){return _.sz(this,5)};
_.S.getEnableConfigurator=function(){return _.sz(this,6)};
_.S.getEnableMweb=function(){return _.sz(this,7)};
var pvz=function(){var g=HZZ();return _.jG(g,7,!0)};
o1.prototype.getEnableCtlConsentCheckbox=function(){return _.sz(this,8)};
o1.prototype.getEnableIframe=function(){return _.sz(this,9)};
var HZZ=function(){var g=new o1;g=_.jG(g,5,!0);g=_.jG(g,2,!0);g=_.jG(g,4,!1);g=_.jG(g,8,!0);return _.jG(g,9,!0)};
o1.prototype.getEnableScreenshotNudge=function(){return _.sz(this,10)};
var Y8b=function(){var g=pvz();return _.jG(g,10,!0)};
o1.prototype.getEnableWebStartupConfigEndpoint=function(){return _.sz(this,11)};
o1.prototype.getEnableJunkNudge=function(){return _.sz(this,12)};
var OcS=function(){var g=Y8b();return _.jG(g,12,!0)};
_.S=o1.prototype;_.S.getEnableConfiguratorLocale=function(){return _.sz(this,13)};
_.S.getEnableTinyNoPointer=function(){return _.sz(this,14)};
_.S.getEnableSupportSessionLogging=function(){return _.sz(this,15)};
_.S.getEnableFileUploadForScreenshot=function(){return _.sz(this,16)};
_.S.getEnableDirectDeflectionForSingleCategory=function(){return _.sz(this,17)};
_.S.getEnableImageSanitization=function(){return _.sz(this,18)};
_.S.getEnableAlohaBinarySplit=function(){return _.sz(this,19)};
_.S.getEnableDbFeedbackIntents=function(){return _.sz(this,20)};
_.S.getEnableMarkMandatoryFieldsWithRequired=function(){return _.sz(this,21)};
_.S.getEnableFeedbackCategoryCustomUi=function(){return _.sz(this,22)};
_.S.getEnableRealtimeCtl=function(){return _.sz(this,23)};var SGQ=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(SGQ,_.xu);var IwB=[/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 cqB="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 iVc=_.me(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),LFo=_.me(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var haD,v4B,ZVt,dfc;var RHD,nIU;
RHD=function(g,r,E){g.timeOfStartCall=(new Date).getTime();var B=E||_.ED,w=B.document,O=g.nonce||_.xU(B.document);O&&!g.nonce&&(g.nonce=O);if(g.flow=="help"){var M=_.XS("document.location.href",B);!g.helpCenterContext&&M&&(g.helpCenterContext=M.substring(0,1200));M=!0;if(r&&JSON&&JSON.stringify){var u=JSON.stringify(r);(M=u.length<=1200)&&(g.psdJson=u)}M||(r={invalidPsd:!0})}r=[g,r,E];B.GOOGLE_FEEDBACK_START_ARGUMENTS=r;E=g.feedbackServerUri||"//www.google.com/tools/feedback";if(M=B.GOOGLE_FEEDBACK_START)M.apply(B,r);
else{B=E+"/load.js?";for(var l in g)r=g[l],r==null||_.gA(r)||(B+=encodeURIComponent(l)+"="+encodeURIComponent(r)+"&");g=kY(w).createElement("SCRIPT");O&&g.setAttribute("nonce",O);_.mg(g,_.qO(B));w.body.appendChild(g)}};
nIU=function(g,r,E,B){var w,O;_.q(function(M){w=E||_.ED;var u=g.serverEnvironment==="DEV",l=E||_.ED;l=g.nonce||_.xU(l.document);u={integrationKeys:{productId:g.productId,feedbackBucket:g.bucket,triggerId:g.triggerId},callbacks:{onClose:g.callback,onLoad:g.onLoadCallback},formContent:{locale:g.locale,disableScreenshot:g.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:g.abuseLink,additionalDataConsent:g.additionalDataConsent},initializationData:{isLocalServer:u,nonce:l,useNightlyRelease:u,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:g.feedbackServerUri,colorScheme:g.colorScheme},extraData:{productVersion:g.productVersion,authUser:g.authuser,configuratorId:g.configuratorId,customZIndex:g.customZIndex,tinyNoPointer:g.tinyNoPointer,
allowNonLoggedInFeedback:g.allowNonLoggedInFeedback,enableAnonymousFeedback:g.enableAnonymousFeedback}};r&&(l=new Map(Object.entries(r)),u.extraData.productSpecificData=l);O=u;return _.D(M,E$P(O,B,w),0)})};
_.sxA=function(g,r,E){try{if(g.flow==="help"){var B=g.helpCenterPath.replace(/^\//,"");_.Wu(E||window,"https://support.google.com/"+B)}else g.flow==="submit"?RHD(g,r,E):UnY(g.productId,g.feedbackServerUri).then(function(w){w=_.zP(w,o1,1);var O=!jto||(w==null?void 0:w.getEnableMweb()),M=!g.tinyNoPointer||(w==null?void 0:w.getEnableTinyNoPointer());!w||w.getAlohaAutoGaRollout()&&O&&M?nIU(g,r,E,w):RHD(g,r,E)},function(w){w&&w.name!=="DuplicateFormError"&&RHD(g,r,E)})}catch(w){nIU(g,r,E,null)}};
_.vN("userfeedback.api.startFeedback",_.sxA);var MwY=/https?:\/\/\S+\.\S+/,qGV=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],u5L=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var VFA=function(g){var r=g.split(""),E=[-263237435,15,r,function(B,w,O){var M=w.length;O.forEach(function(u,l,Q){this.push(Q[l]=w[(w.indexOf(u)-w.indexOf(this[l])+l+M--)%w.length])},B.split(""))},
function(B,w){B=(B%w.length+w.length)%w.length;w.splice(-B).reverse().forEach(function(O){w.unshift(O)})},
"response",function(){for(var B=64,w=[];++B-w.length-32;){switch(B){case 58:B-=14;case 91:case 92:case 93:continue;case 123:B=47;case 94:case 95:case 96:continue;case 46:B=95}w.push(String.fromCharCode(B))}return w},
null,12,1540023973,65941107,null,r,function(B,w){for(B=(B%w.length+w.length)%w.length;B--;)w.unshift(w.pop())},
695603893,function(B){for(var w=B.length;w;)B.push(B.splice(--w,1)[0])},
"'[;'[(",function(B,w){B.push(w)},
null,function(B,w,O,M,u){return w(O,M,u)},
"continuation",r,function(B,w){if(B.length!=0){w=(w%B.length+B.length)%B.length;var O=B[0];B[0]=B[w];B[w]=O}},
function(){for(var B=64,w=[];++B-w.length-32;){switch(B){case 91:B=44;continue;case 123:B=65;break;case 65:B-=18;continue;case 58:B=96;continue;case 46:B=95}w.push(String.fromCharCode(B))}return w},
'"),/]];'];E[7]=E;E[11]=E;E[18]=E;try{(((0,E[15])(E[21]),E[22])(E[11],E[9]),E[22])(E[new Date("1970-01-01T04:30:12.000+04:30")/1E3],E[1]),((0,E[22])(E[11],E[23]),E[4])(E[10],E[18]),(0,E[20])(E[21],E[14])<<(0,E[17])(E[18],E[1]),(0,E[4])(E[8],E[21]),(0,E[19])((0,E[19])((0,E[17])(E[7],E[9]),E[3],E[20],(0,E[6])(),E[2]),E[3],E[5],(0,E[15])(),E[2])}catch(B){return"aTlOUOubTO4AP____8P_"+g}return r.join("")};_.fP4=new _.V("runAttestationCommand");var $Sm=new _.V("verifyCommand");_.Gi=new _.V("accessibilityContext");var jxn=new _.V("accessibilityData");var AQD=new _.V("profileCardCommand");var bXL=new _.V("signInEndpoint");var ANX=new _.V("signOutEndpoint");var JQI;_.bZw=new _.V("accountItemSectionRenderer");JQI=new _.V("accountItemRenderer");_.PjU=new _.V("saveCommandToSessionStorageAction");var tam=new _.V("crossAccountChannelTransferEndpoint");var sNJ=new _.V("getAccountMenuEndpoint");_.fAL=new _.V("getAccountSwitcherEndpoint");var nOP=new _.V("getAccountsListEndpoint");var Fen=new _.V("getAccountsListInnertubeEndpoint");_.QA=new _.V("addToToastAction");var eHZ=new _.V("hideEnclosingAction");_.zi=new _.V("replaceEnclosingAction");var WeI=new _.V("buttonRefreshAction");var Cjb=new _.V("adsControlFlowOpportunityReceivedCommand");var Kem=new _.V("openAdAllowlistInstructionCommand");var xSU=new _.V("videoMastheadAdPrimaryVideoRenderer");var aPD=new _.V("displayAdRenderer");var hGD=new _.V("instreamVideoAdRenderer");_.Xv4=new _.V("inFeedAdLayoutRenderer");var Nxn=new _.V("sequenceItemInPlayerAdLayoutRenderer");_.IPb=new _.V("adSlotRenderer");var mSz=new _.V("adAvatarViewModel");var cQZ=new _.V("adBadgeViewModel");var iZn=new _.V("adImageViewModel");var zyQ=new _.V("reelsAdCardButtonedViewModel");var LeU=new _.V("reelsPlayerOverlayLayoutViewModel");var Van=new _.V("showSchedulingPanelCommand");var hHn=new _.V("backstageCommentsRenderer");var ZZA=new _.V("backstageImageRenderer");var yQI=new _.V("backstagePostRenderer");var vID=new _.V("backstageZeroStateRenderer");var dSw=new _.V("postRenderer");var Txw=new _.V("sharedPostRenderer");var g2T=new _.V("createBackstagePostEndpoint");var rXm=new _.V("getPostVideoPreviewEndpoint");var E2U=new _.V("updateBackstagePostEndpoint");var BcI=new _.V("filterChipTransformCommand");var wLU=new _.V("insertRichSectionCommand");var O8P=new _.V("talkToRecsDeselectCommand");var Sz4=new _.V("talkToRecsNextCommand");var SAQ=new _.V("talkToRecsSelectCommand");var OxD=new _.V("talkToRecsUpdateTextCommand");_.ka=new _.V("browseEndpoint");_.UEw=new _.V("confirmDialogEndpoint");var MIn=new _.V("expandOnHoverCardRenderer");var qzZ=new _.V("lumiereShelfDetailsRenderer");var uiT=new _.V("revealBusinessEmailCommand");var ltD=new _.V("validateChannelHandleCommand");var DEn=new _.V("channelCreationFormEndpoint");var o2T=new _.V("aboutChannelViewModel");var GEb=new _.V("channelThumbnailWithLinkRenderer");var QU6=new _.V("channelCreationServiceEndpoint");var z$n=new _.V("updateChannelPageSettingsEndpoint");var kT=function(g){this.delegate=g},Hy=function(){kT.apply(this,arguments)};
_.f(Hy,kT);_.hx.Object.defineProperties(Hy.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(g){this.delegate.entityMetadata=g}}});var kED=function(){Hy.apply(this,arguments)};
_.f(kED,Hy);kED.prototype.getAssociations=function(){return[]};var WwQ=new _.V("webThumbnailDetailsExtensionData");var dpl=new _.V("commandContext");var HxA=new _.V("addVideoLinkAction");var pLT=new _.V("banAuthorAction");var Yzz=new _.V("createCommentAction");var R$m=new _.V("createCommentReplyAction");var n2w=new _.V("createPollAction");var sUn=new _.V("hideIdentityChipAction");var ft6=new _.V("openUpdateCommentDialogAction");var $Ew=new _.V("pinCommentAction");var jUU=new _.V("removeCommentAction");var AXn=new _.V("unpinCommentAction");var pY=new _.V("updateBackstagePollAction");var bxn=new _.V("updateCommentVoteAction");var JXn=new _.V("commentThreadRenderer");var PRD=function(){Hy.apply(this,arguments)};
_.f(PRD,Hy);PRD.prototype.getAssociations=function(){return[]};var tIw=function(){Hy.apply(this,arguments)};
_.f(tIw,Hy);tIw.prototype.getAssociations=function(){return[]};_.Fq4=new _.V("commentDialogRenderer");var e$n=new _.V("reloadCommentsCommand");var Wqn=new _.V("updateCommentsSettingsEndpoint");var CRD=new _.V("commentViewModel");var KqA=new _.V("triStateButtonViewModel");var xEw=new _.V("voiceReplyContainerViewModel");_.D$=new _.V("commandExecutorCommand");var Ww=new _.V("emoji");var atw=new _.V("updateCreatorChannelInnertubeCommand");_.XLn=new _.V("appendContinuationItemsAction");_.Nc4=new _.V("changeEngagementPanelVisibilityAction");_.x3=new _.V("continuationCommand");var Itz=new _.V("hideReportedCommentAction");var mEw=new _.V("listMutationCommand");_.R1=new _.V("openPopupAction");var cXm=new _.V("persistSubscriptionsDisplayPreferencesCommand");var dEb;_.ixA=new _.V("playlistRemoveVideosAction");_.Lqm=new _.V("updatePlaylistAction");_.VIT=new _.V("addToPlaylistCommand");_.h$n=new _.V("endPlaylistCommand");_.ZxT=new _.V("recoverPlaylistCommand");_.yX4=new _.V("refreshPlaylistCommand");_.v2m=new _.V("refreshFormCommand");dEb=new _.V("openOnePickAddVideoModalCommand");_.PMl=new _.V("reloadContinuationItemsCommand");_.TcD=new _.V("scrollToEngagementPanelCommand");var g4T=new _.V("selectCountryCommand");var rq6=new _.V("showReloadUiCommand");var E4D=new _.V("undoFeedbackAction");var B5n=new _.V("updateButtonAction");var wg4=new _.V("updateSubscribeButtonAction");var ShU=new _.V("updateToggleAction");var OVn=new _.V("webNativeShareCommand");_.dU=new _.V("webCommandMetadata");_.nY=new _.V("webHandleServiceEndpointExtension");var A7B=new _.V("webNavigationEndpointData");var Uf6=new _.V("copyLinkCommand");var M5z=new _.V("playlistVotingRefreshPopupCommand");var qhn=new _.V("selectChipCommand");var uxm=new _.V("setCookieCommand");var lw6=new _.V("setLocalStorageCommand");var Dfn=new _.V("setPrefStorageEntryCommand");var zaD;_.o4n=new _.V("settingsUpdateCheckboxCommand");_.Gkz=new _.V("settingsUpdateTextCommand");_.Qo4=new _.V("settingsUpdateOptionsCommand");zaD=new _.V("settingsUpdateSwitchCommand");_.kkw=new _.V("settingsUpdateConnectedAppRendererCommand");var HVn=new _.V("updateTextInputFormFieldRendererCommand");var pgm=new _.V("updateToggleButtonStateCommand");var Yhz=new _.V("updateUrlParamCommand");var Ran=new _.V("webSubmitFormCommand");var n4w=new _.V("channelSwitcherPageRenderer"),soD=new _.V("updateChannelSwitcherPageAction");_.gx=new _.V("continuationItemRenderer");_.s7=new _.V("richItemRenderer");var fwT=new _.V("richSectionRenderer");_.$fD=new _.V("richShelfRenderer");_.joD=new _.V("metadataBadgeRenderer");_.AqI=new _.V("multiPageMenuNotificationSectionRenderer");_.bVz=new _.V("playlistLoopButtonStateRenderer");var Jq6=new _.V("claimLegacyYoutubeChannelEndpoint");var P6n=new _.V("getNotificationMenuEndpoint");var t5z=new _.V("getSearchInVideoCommand");_.FFz=new _.V("getTranscriptEndpoint");_.Gn=new _.V("signalServiceEndpoint");var eaU=new _.V("verifyAgeEndpoint");var ydS=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(ydS,_.xu);ydS.prototype.getPath=function(){return _.jI(this,1)};
ydS.prototype.getValue=function(){return _.jI(this,2)};var WFn=[0,_.IU,-1];var C6U=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(C6U,_.xu);var ZFL=_.dk(C6U,[0,_.mq,WFn]);var KFA=new _.V("dismissalEndpoint");var xfn=new _.V("elementsCommand");_.KW=new _.V("innertubeCommand");var awn=new _.V("multipleInlinePlaybackCommand");var lJc=new _.V("loggingDirectives");var XgZ=new _.V("acknowledgeChannelTouStrikeCommand");var N5m=function(){Hy.apply(this,arguments)};
_.f(N5m,Hy);N5m.prototype.getAssociations=function(){return[]};var Iwn=function(){Hy.apply(this,arguments)};
_.f(Iwn,Hy);Iwn.prototype.getAssociations=function(){return[]};var VY=new _.V("entityBatchUpdate");_.mfn=new _.V("entityUpdateCommand");var cqn=function(){Hy.apply(this,arguments)};
_.f(cqn,Hy);cqn.prototype.getAssociations=function(){var g=[];this.delegate.alternateChannel&&g.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&g.push.apply(g,_.jW(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&g.push(this.delegate.oneofChannelEntity);return[].concat(_.jW(new Set(g)))};var iVb=function(){Hy.apply(this,arguments)};
_.f(iVb,Hy);iVb.prototype.getAssociations=function(){var g=[];this.delegate.entryCollection&&g.push(this.delegate.entryCollection);return[].concat(_.jW(new Set(g)))};
var LFz=function(){Hy.apply(this,arguments)};
_.f(LFz,Hy);LFz.prototype.getAssociations=function(){var g=[];this.delegate.parentPlaylist&&g.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var r=_.U(this.delegate.entries),E=r.next();!E.done;E=r.next())g.push.apply(g,_.jW((new V5Z(E.value)).getAssociations()));return[].concat(_.jW(new Set(g)))};
var V5Z=function(){kT.apply(this,arguments)};
_.f(V5Z,kT);V5Z.prototype.getAssociations=function(){var g=[];this.delegate.video&&g.push(this.delegate.video);return[].concat(_.jW(new Set(g)))};var haw=function(){Hy.apply(this,arguments)};
_.f(haw,Hy);haw.prototype.getAssociations=function(){var g=[];this.delegate.descriptionEntity&&g.push(this.delegate.descriptionEntity);this.delegate.creators&&g.push.apply(g,_.jW(this.delegate.creators));this.delegate.theBiggestFan&&g.push(this.delegate.theBiggestFan);return[].concat(_.jW(new Set(g)))};
var ZVD=function(){Hy.apply(this,arguments)};
_.f(ZVD,Hy);ZVD.prototype.getAssociations=function(){return[]};var yqI=new _.V("fantasyRosterViewModel");var v4n=new _.V("addFollowUpSurveyCommand");var dfb=new _.V("getSurveyCommand");var T5T=new _.V("ratingSurveyOptionRenderer");_.AQ=new _.V("feedbackEndpoint");var g$n=new _.V("reportHistoryTableCellRenderer"),ren=new _.V("reportHistoryTableTextCellRenderer"),E$4=new _.V("reportHistoryTableReasonCellRenderer");_.B9D=new _.V("flagEndpoint");var w2b=new _.V("getFlowCommand");var SGI=new _.V("submitFormWithValidationFlowCommand");var OcD=function(){Hy.apply(this,arguments)};
_.f(OcD,Hy);OcD.prototype.getAssociations=function(){return[]};var UnZ=new _.V("flowFormState");var MwZ=new _.V("gameCardRenderer");var qGU=new _.V("accountLinkingStateChangedCommand");var u5w=function(){Hy.apply(this,arguments)};
_.f(u5w,Hy);u5w.prototype.getAssociations=function(){return[]};var lfb=new _.V("changeMiniAppPlayStateCommand");var Dn4=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(Dn4,_.xu);var fY=[1,2,3];var o$U=[0,fY,rVD,_.EMP,hJL];var Geb=_.dk(Dn4,o$U),Qwz=_.T_(o$U);var zgb=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(zgb,_.xu);var ken=[0,_.aU,_.IU];var Hcw=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(Hcw,_.xu);var p2T=[0,_.IU,_.aU,-1];var $T=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f($T,_.xu);var YGb=function(g,r){return _.B8(g,3,r)};var RgU=_.T_([0,1,ken,_.iR,p2T]);var n$4=new _.V("miniAppScoreChallengeViewModel");var swz=new _.V("miniGameCardViewModel");var ffU=new _.V("teaserCardViewModel");var $nD=function(){Hy.apply(this,arguments)};
_.f($nD,Hy);$nD.prototype.getAssociations=function(){return[]};_.jwT=new _.V("feedbackItemRenderer");var Aew=function(){Hy.apply(this,arguments)};
_.f(Aew,Hy);Aew.prototype.getAssociations=function(){return[]};_.bcn=new _.V("playerInterstitialRenderer");var JeI=new _.V("getKidsBlocklistPickerCommand");_.P8w=new _.V("updateKidsBlacklistEndpoint");_.Nq=new _.V("likeEndpoint");var tw4,FCz,egI;tw4=new _.V("addChatItemAction");FCz=new _.V("removeChatItemAction");egI=new _.V("markChatItemAsDeletedAction");_.WCI=new _.V("setLiveChatCollapsedStateAction");var C8D=function(){Hy.apply(this,arguments)};
_.f(C8D,Hy);C8D.prototype.getAssociations=function(){return[]};var KCI=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(KCI,_.xu);var xnT=_.dk(KCI,[0,1,_.aU]);var afw=new _.V("liveChatEndpoint");var X2A=new _.V("liveChatItemContextMenuEndpoint");var N9m=new _.V("liveChatReplayEndpoint");_.IfU=new _.V("emojiPickerRenderer");var mnZ=new _.V("liveChatAuthorBadgeViewModel");var ceD=new _.V("deleteLiveChatMessageCommand");var icA=new _.V("liveChatActionEndpoint");var LCw=new _.V("createLiveChatPollEndpoint");var Vw4=new _.V("manageLiveChatUserEndpoint");var hgn=new _.V("moderateLiveChatEndpoint");_.ZcA=new _.V("sendLiveChatMessageEndpoint");var yeD=new _.V("sendLiveChatVoteEndpoint");var v$Z=new _.V("clearLocationCommand");var dnn=new _.V("resolveLocationCommand");var T9w=new _.V("interactionLoggingCommandMetadata");var g0Z=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(g0Z,_.xu);var r1A=function(g,r){return _.qd(g,1,r)};var E0Z=[0,_.NE];var BjU=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(BjU,_.xu);var wSU=function(g,r){return Hf(g,1,g0Z,r)};BjU.prototype.JSC$10207_serializeBinary=EuL([0,_.mq,E0Z]);var P8D={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 SLT={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"},
OUZ={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 xoA={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"};_.dBY=new _.V("logFlowLoggingEventCommand");_.YP=new _.V("loggingContext");var UcD=new _.V("captionLanguageSelectActionCommand");var MY4=new _.V("showCaptionLanguageSelectActionCommand");var qLw=new _.V("dismissDialogEndpoint");var u8D=new _.V("hideItemSectionVideosByIdCommand");var lXA=new _.V("showMiniplayerCommand");var DcI=function(){Hy.apply(this,arguments)};
_.f(DcI,Hy);DcI.prototype.getAssociations=function(){return[]};var o0D=function(){Hy.apply(this,arguments)};
_.f(o0D,Hy);o0D.prototype.getAssociations=function(){return[]};var Gg4=function(){Hy.apply(this,arguments)};
_.f(Gg4,Hy);Gg4.prototype.getAssociations=function(){return[]};var Q2D=function(){Hy.apply(this,arguments)};
_.f(Q2D,Hy);Q2D.prototype.getAssociations=function(){var g=[];this.delegate.downloadsList&&g.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&g.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&g.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&g.push(this.delegate.refresh);return[].concat(_.jW(new Set(g)))};var zqw=function(){Hy.apply(this,arguments)};
_.f(zqw,Hy);zqw.prototype.getAssociations=function(){var g=[];this.delegate.refresh&&g.push(this.delegate.refresh);if(this.delegate.downloads)for(var r=_.U(this.delegate.downloads),E=r.next();!E.done;E=r.next())g.push.apply(g,_.jW((new kgD(E.value)).getAssociations()));return[].concat(_.jW(new Set(g)))};
var kgD=function(){kT.apply(this,arguments)};
_.f(kgD,kT);kgD.prototype.getAssociations=function(){var g=[];this.delegate.video&&g.push(this.delegate.video);this.delegate.playlist&&g.push(this.delegate.playlist);this.delegate.videoItem&&g.push(this.delegate.videoItem);this.delegate.playlistItem&&g.push(this.delegate.playlistItem);return[].concat(_.jW(new Set(g)))};var HUD=function(){Hy.apply(this,arguments)};
_.f(HUD,Hy);HUD.prototype.getAssociations=function(){var g=[];this.delegate.localImageEntities&&g.push.apply(g,_.jW(this.delegate.localImageEntities));return[].concat(_.jW(new Set(g)))};var pSn=function(){Hy.apply(this,arguments)};
_.f(pSn,Hy);pSn.prototype.getAssociations=function(){var g=[];this.delegate.playbackData&&g.push(this.delegate.playbackData);this.delegate.localImageEntities&&g.push.apply(g,_.jW(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&g.push(this.delegate.videoDownloadContextEntity);return[].concat(_.jW(new Set(g)))};var YLT=function(){Hy.apply(this,arguments)};
_.f(YLT,Hy);YLT.prototype.getAssociations=function(){return[]};var Rqb=function(){Hy.apply(this,arguments)};
_.f(Rqb,Hy);Rqb.prototype.getAssociations=function(){var g=[];this.delegate.fakeChildren&&g.push.apply(g,_.jW(this.delegate.fakeChildren));return[].concat(_.jW(new Set(g)))};var n0n=function(){Hy.apply(this,arguments)};
_.f(n0n,Hy);n0n.prototype.getAssociations=function(){var g=[];this.delegate.video&&g.push(this.delegate.video);this.delegate.playbackData&&g.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&g.push(this.delegate.offlineVideoPolicy);return[].concat(_.jW(new Set(g)))};var s2w=function(){Hy.apply(this,arguments)};
_.f(s2w,Hy);s2w.prototype.getAssociations=function(){return[]};var fXb=function(){Hy.apply(this,arguments)};
_.f(fXb,Hy);fXb.prototype.getAssociations=function(){var g=[];this.delegate.channelOwner&&g.push(this.delegate.channelOwner);this.delegate.videos&&g.push.apply(g,_.jW(this.delegate.videos));this.delegate.collaboratorChannels&&g.push.apply(g,_.jW(this.delegate.collaboratorChannels));this.delegate.downloadState&&g.push(this.delegate.downloadState);this.delegate.refresh&&g.push(this.delegate.refresh);return[].concat(_.jW(new Set(g)))};var $cn=function(){Hy.apply(this,arguments)};
_.f($cn,Hy);$cn.prototype.getAssociations=function(){var g=[];this.delegate.video&&g.push(this.delegate.video);this.delegate.channelContributor&&g.push(this.delegate.channelContributor);return[].concat(_.jW(new Set(g)))};var j26=function(){kT.apply(this,arguments)};
_.f(j26,kT);j26.prototype.getAssociations=function(){var g=[];this.delegate.recommendedVideoMetadata&&g.push.apply(g,_.jW((new A1I(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.jW(new Set(g)))};
var A1I=function(){kT.apply(this,arguments)};
_.f(A1I,kT);A1I.prototype.getAssociations=function(){var g=[];this.delegate.localImageEntities&&g.push.apply(g,_.jW(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&g.push(this.delegate.videoDownloadContextEntity);return[].concat(_.jW(new Set(g)))};var bUU=function(){kT.apply(this,arguments)};
_.f(bUU,kT);bUU.prototype.getAssociations=function(){var g=[];this.delegate.playbackPosition&&g.push(this.delegate.playbackPosition);return[].concat(_.jW(new Set(g)))};var J16=function(){Hy.apply(this,arguments)};
_.f(J16,Hy);J16.prototype.getAssociations=function(){var g=[];this.delegate.owner&&g.push(this.delegate.owner);this.delegate.downloadState&&g.push(this.delegate.downloadState);this.delegate.userState&&g.push.apply(g,_.jW((new bUU(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&g.push.apply(g,_.jW((new j26(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.jW(new Set(g)))};var PZZ=function(){Hy.apply(this,arguments)};
_.f(PZZ,Hy);PZZ.prototype.getAssociations=function(){var g=[];this.delegate.userChannelDetails&&g.push(this.delegate.userChannelDetails);return[].concat(_.jW(new Set(g)))};var tYD=function(){Hy.apply(this,arguments)};
_.f(tYD,Hy);tYD.prototype.getAssociations=function(){var g=[];this.delegate.channelOwner&&g.push(this.delegate.channelOwner);this.delegate.playbackPosition&&g.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&g.push.apply(g,_.jW(this.delegate.localImageEntities));this.delegate.downloadStatus&&g.push(this.delegate.downloadStatus);return[].concat(_.jW(new Set(g)))};var ETl=new _.V("downloadsPageSmartDownloadsOptInBannerParams");var OYl=new _.V("downloadsPageUpsellBannerParams");var FTw=function(){Hy.apply(this,arguments)};
_.f(FTw,Hy);FTw.prototype.getAssociations=function(){return[]};var eqI=function(){Hy.apply(this,arguments)};
_.f(eqI,Hy);eqI.prototype.getAssociations=function(){return[]};var WTZ=function(){Hy.apply(this,arguments)};
_.f(WTZ,Hy);WTZ.prototype.getAssociations=function(){return[]};var CZZ=function(){Hy.apply(this,arguments)};
_.f(CZZ,Hy);CZZ.prototype.getAssociations=function(){return[]};var KTz=function(){Hy.apply(this,arguments)};
_.f(KTz,Hy);KTz.prototype.getAssociations=function(){return[]};var xcD=function(){Hy.apply(this,arguments)};
_.f(xcD,Hy);xcD.prototype.getAssociations=function(){return[]};var aXm=function(){Hy.apply(this,arguments)};
_.f(aXm,Hy);aXm.prototype.getAssociations=function(){return[]};var XSZ=function(){Hy.apply(this,arguments)};
_.f(XSZ,Hy);XSZ.prototype.getAssociations=function(){return[]};var Njw=function(){Hy.apply(this,arguments)};
_.f(Njw,Hy);Njw.prototype.getAssociations=function(){return[]};_.jf=new _.V("dislikeButtonViewModel");_.A9=new _.V("likeButtonViewModel");var IXI=new _.V("videoSummaryContentViewModel");var mcA=new _.V("videoSummaryParagraphViewModel");var c1m=new _.V("changeTimelyActionVisibilityCommand");var iUw=new _.V("hideEngagementPanelEndpoint");var LTD=new _.V("refreshPanelEndpoint");var VYn=new _.V("scrollToSectionEndpoint");var hqZ=new _.V("seekToVideoTimestampCommand");_.ja=new _.V("showEngagementPanelEndpoint");var ZUA=new _.V("showTransientPlayerScrimOverlayCommand");var y1Z=new _.V("toggleEngagementPanelCommand");_.v0I=new _.V("createBroadcastCommand");var dcw=new _.V("metadataUpdateCommand");var Tjm=function(){Hy.apply(this,arguments)};
_.f(Tjm,Hy);Tjm.prototype.getAssociations=function(){return[]};var g7n=function(){Hy.apply(this,arguments)};
_.f(g7n,Hy);g7n.prototype.getAssociations=function(){return[]};var rh4=function(){Hy.apply(this,arguments)};
_.f(rh4,Hy);rh4.prototype.getAssociations=function(){return[]};_.E7m=new _.V("merchandiseShelfRenderer");var B8z=new _.V("gridMovieRenderer");_.wj4=new _.V("movieRenderer");var SZw=function(){Hy.apply(this,arguments)};
_.f(SZw,Hy);SZw.prototype.getAssociations=function(){var g=[];this.delegate.trackDownloadMetadatas&&g.push.apply(g,_.jW(this.delegate.trackDownloadMetadatas));return[].concat(_.jW(new Set(g)))};var OdI=function(){Hy.apply(this,arguments)};
_.f(OdI,Hy);
OdI.prototype.getAssociations=function(){var g=[];this.delegate.downloadedTracks&&g.push.apply(g,_.jW(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&g.push.apply(g,_.jW(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&g.push.apply(g,_.jW(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&g.push.apply(g,_.jW(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&g.push.apply(g,_.jW(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
g.push.apply(g,_.jW(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&g.push.apply(g,_.jW(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&g.push.apply(g,_.jW(this.delegate.metadataOnlyTracks));return[].concat(_.jW(new Set(g)))};var U4n=function(){Hy.apply(this,arguments)};
_.f(U4n,Hy);U4n.prototype.getAssociations=function(){var g=[];this.delegate.trackDownloadMetadatas&&g.push.apply(g,_.jW(this.delegate.trackDownloadMetadatas));return[].concat(_.jW(new Set(g)))};var Msm=function(){Hy.apply(this,arguments)};
_.f(Msm,Hy);Msm.prototype.getAssociations=function(){var g=[];this.delegate.playbackData&&g.push(this.delegate.playbackData);this.delegate.localImageEntities&&g.push.apply(g,_.jW(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&g.push(this.delegate.videoDownloadContextEntity);return[].concat(_.jW(new Set(g)))};var qZw=function(){Hy.apply(this,arguments)};
_.f(qZw,Hy);
qZw.prototype.getAssociations=function(){var g=[];this.delegate.musicLibraryStatusEntity&&g.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&g.push.apply(g,_.jW(this.delegate.primaryArtists));this.delegate.details&&g.push(this.delegate.details);this.delegate.userDetails&&g.push(this.delegate.userDetails);this.delegate.tracks&&g.push.apply(g,_.jW(this.delegate.tracks));this.delegate.share&&g.push(this.delegate.share);this.delegate.downloadMetadata&&g.push(this.delegate.downloadMetadata);this.delegate.refresh&&
g.push(this.delegate.refresh);return[].concat(_.jW(new Set(g)))};
var uND=function(){Hy.apply(this,arguments)};
_.f(uND,Hy);uND.prototype.getAssociations=function(){var g=[];this.delegate.albumRelease&&g.push(this.delegate.albumRelease);this.delegate.tracks&&g.push.apply(g,_.jW(this.delegate.tracks));return[].concat(_.jW(new Set(g)))};
var lCU=function(){Hy.apply(this,arguments)};
_.f(lCU,Hy);lCU.prototype.getAssociations=function(){var g=[];this.delegate.albumRelease&&g.push(this.delegate.albumRelease);return[].concat(_.jW(new Set(g)))};var D4D=function(){Hy.apply(this,arguments)};
_.f(D4D,Hy);D4D.prototype.getAssociations=function(){var g=[];this.delegate.details&&g.push(this.delegate.details);this.delegate.userDetails&&g.push(this.delegate.userDetails);return[].concat(_.jW(new Set(g)))};
var o7Z=function(){Hy.apply(this,arguments)};
_.f(o7Z,Hy);o7Z.prototype.getAssociations=function(){var g=[];this.delegate.parentArtist&&g.push(this.delegate.parentArtist);return[].concat(_.jW(new Set(g)))};
var Go4=function(){Hy.apply(this,arguments)};
_.f(Go4,Hy);Go4.prototype.getAssociations=function(){var g=[];this.delegate.parentArtist&&g.push(this.delegate.parentArtist);return[].concat(_.jW(new Set(g)))};var QMU=function(){Hy.apply(this,arguments)};
_.f(QMU,Hy);QMU.prototype.getAssociations=function(){return[]};var zXZ=function(){Hy.apply(this,arguments)};
_.f(zXZ,Hy);zXZ.prototype.getAssociations=function(){return[]};var koA=function(){Hy.apply(this,arguments)};
_.f(koA,Hy);
koA.prototype.getAssociations=function(){var g=[];this.delegate.tracks&&g.push.apply(g,_.jW(this.delegate.tracks));this.delegate.refresh&&g.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&g.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&g.push(this.delegate.details);this.delegate.downloadMetadata&&g.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&g.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&g.push(this.delegate.userDetails);this.delegate.entryCollection&&
g.push(this.delegate.entryCollection);this.delegate.share&&g.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&g.push.apply(g,_.jW((new Hdn(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.jW(new Set(g)))};
var Hdn=function(){kT.apply(this,arguments)};
_.f(Hdn,kT);Hdn.prototype.getAssociations=function(){var g=[];this.delegate.creatorEntity&&g.push(this.delegate.creatorEntity);return[].concat(_.jW(new Set(g)))};var pj6=function(){Hy.apply(this,arguments)};
_.f(pj6,Hy);pj6.prototype.getAssociations=function(){return[]};var YZI=function(){Hy.apply(this,arguments)};
_.f(YZI,Hy);
YZI.prototype.getAssociations=function(){var g=[];this.delegate.musicLibraryStatusEntity&&g.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&g.push.apply(g,_.jW(this.delegate.artists));this.delegate.audioModeVersion&&g.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&g.push(this.delegate.videoModeVersion);this.delegate.userDetails&&g.push(this.delegate.userDetails);this.delegate.details&&g.push(this.delegate.details);this.delegate.albumRelease&&g.push(this.delegate.albumRelease);this.delegate.share&&
g.push(this.delegate.share);this.delegate.libraryEdit&&g.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&g.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&g.push(this.delegate.playbackPosition);this.delegate.lyrics&&g.push(this.delegate.lyrics);return[].concat(_.jW(new Set(g)))};
var RXA=function(){Hy.apply(this,arguments)};
_.f(RXA,Hy);RXA.prototype.getAssociations=function(){var g=[];this.delegate.parentTrack&&g.push(this.delegate.parentTrack);return[].concat(_.jW(new Set(g)))};
var n7n=function(){Hy.apply(this,arguments)};
_.f(n7n,Hy);n7n.prototype.getAssociations=function(){var g=[];this.delegate.parentTrack&&g.push(this.delegate.parentTrack);return[].concat(_.jW(new Set(g)))};var vm=new _.V("musicResponsiveListItemRenderer");var WmA=new _.V("addToPlaylistEndpoint");var sMb=new _.V("captionPickerEndpoint");var fCw=new _.V("suggestStats");var $4z=new _.V("backstageImageUploadEndpoint");var jMZ=new _.V("createBackstagePostDialogEndpoint");_.AhT=new _.V("createCommentReplyDialogEndpoint");_.bdT=new _.V("updateCommentDialogEndpoint");_.JhA=new _.V("updateCommentReplyDialogEndpoint");var Pv4=new _.V("menuEndpoint");var fJV=new _.V("modalEndpoint");var ts4=new _.V("playlistEditorEndpoint");var Fhz=new _.V("copyTextEndpoint");var eX6,Wh6;eX6=new _.V("shareEndpoint");Wh6=new _.V("shareEntityEndpoint");_.Cvn=new _.V("shareEntityServiceEndpoint");_.VrA=new _.V("userFeedbackEndpoint");_.LM=new _.V("watchEndpoint");var S5c=new _.V("watchPlaylistEndpoint");var Khb=new _.V("addUpcomingEventReminderEndpoint");_.bw=new _.V("getCommentsFromInboxCommand");var x4T=new _.V("notificationOptOutEndpoint");var aCT=new _.V("recordNotificationInteractionsEndpoint");var Xjn=new _.V("removeUpcomingEventReminderEndpoint");var FmA=new _.V("getDownloadActionCommand");_.N86=new _.V("offlineOrchestrationActionCommand");var ICZ=function(){Hy.apply(this,arguments)};
_.f(ICZ,Hy);ICZ.prototype.getAssociations=function(){return[]};var m46=function(){Hy.apply(this,arguments)};
_.f(m46,Hy);m46.prototype.getAssociations=function(){return[]};var chD=function(){Hy.apply(this,arguments)};
_.f(chD,Hy);chD.prototype.getAssociations=function(){return[]};var idw=function(){Hy.apply(this,arguments)};
_.f(idw,Hy);idw.prototype.getAssociations=function(){return[]};var Lhw=function(){Hy.apply(this,arguments)};
_.f(Lhw,Hy);Lhw.prototype.getAssociations=function(){var g=[];this.delegate.transfer&&g.push(this.delegate.transfer);this.delegate.adsPlaybackData&&g.push.apply(g,_.jW(this.delegate.adsPlaybackData));this.delegate.drmLicense&&g.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&g.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&g.push(this.delegate.videoDownloadContextEntity);return[].concat(_.jW(new Set(g)))};var Vsm=function(){Hy.apply(this,arguments)};
_.f(Vsm,Hy);Vsm.prototype.getAssociations=function(){return[]};var hXw=function(){Hy.apply(this,arguments)};
_.f(hXw,Hy);hXw.prototype.getAssociations=function(){var g=[];this.delegate.offlineVideoStreams&&g.push.apply(g,_.jW(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&g.push.apply(g,_.jW(this.delegate.captionTrack));return[].concat(_.jW(new Set(g)))};var ZdA=function(){Hy.apply(this,arguments)};
_.f(ZdA,Hy);ZdA.prototype.getAssociations=function(){return[]};var yhD=new _.V("showMoreDrawerCommand");var v7U=new _.V("updateEngagementPanelContentCommand");var d4Z=new _.V("getPdgBuyFlowCommand");var T8Z=new _.V("liveChatPurchaseMessageEndpoint");var gCD=new _.V("openSuperStickerBuyFlowCommand");var r2n=new _.V("updatePdgFeatureEnablementCommand");var ECn=function(){Hy.apply(this,arguments)};
_.f(ECn,Hy);ECn.prototype.getAssociations=function(){return[]};var B3n=function(){Hy.apply(this,arguments)};
_.f(B3n,Hy);B3n.prototype.getAssociations=function(){return[]};_.wU4=new _.V("pdgCommentChipRenderer");_.STA=new _.V("permissionRoleBottomBarRenderer");_.Oin=new _.V("updatePermissionRoleCommand");var UP6=new _.V("prefetchWatchCommand");var MBw=new _.V("updatePlayerErrorMessageCommand");var $Yl=new _.V("toggleCaptionsVisibilityCommand");_.qTn=new _.V("quickActionsViewModel");var uPA=new _.V("playerResponse");var l0Z=new _.V("playlistRenderer");_.DPI=new _.V("playlistVideoListRenderer");_.J9=new _.V("playlistEditEndpoint");var oCb=new _.V("createImagePollCommand");var GAn=new _.V("createQuizCommand");var Q4A=new _.V("quizRenderer");var zMb=new _.V("uploadedVideoRenderer");var kAA=new _.V("decorateMessageEndpoint");var Hiw=new _.V("lpOfferCardOptionViewModel");var pUT=new _.V("sfvAudioItemPlaybackCommand");var YTU=function(){Hy.apply(this,arguments)};
_.f(YTU,Hy);YTU.prototype.getAssociations=function(){return[]};_.Py=new _.V("reelNonVideoContentEndpoint");_.sP=new _.V("reelWatchEndpoint");_.t9=new _.V("reelItemRenderer");_.RMD=new _.V("reelMetapanelViewModel");_.nCw=new _.V("reelNonVideoContentRenderer");_.s4w=new _.V("reelPlayerOverlayRenderer");var f04=new _.V("shortsLockupViewModel");var $PA=new _.V("sponsorButtonViewModel");var j46=new _.V("reelItemWatchResponse");var A2A=new _.V("textBadgeRenderer");_.Fd=new _.V("buttonRenderer");_.ef=new _.V("toggleButtonRenderer");var UAY=new _.V("switchButtonViewModel");_.biU=new _.V("confirmDialogRenderer");var J2w;J2w=new _.V("menuRenderer");_.Pzn=new _.V("menuFlexibleItemRenderer");var tBA=new _.V("pollRenderer");_.F4D=new _.V("backgroundPromoRenderer");var W4U;_.eMA=new _.V("chipCloudRenderer");W4U=new _.V("chipCloudChipRenderer");var Cz6=new _.V("dropdownRenderer");var K4D=new _.V("gridVideoRenderer");_.xPb=new _.V("itemSectionRenderer");_.a0w=new _.V("messageRenderer");var XUn=new _.V("sortFilterHeaderRenderer");_.Wy=new _.V("videoRenderer");var N3m=new _.V("resolveUrlCommandMetadata");var I0U=function(){Hy.apply(this,arguments)};
_.f(I0U,Hy);I0U.prototype.getAssociations=function(){return[]};_.mPb=new _.V("getAnswerCommand");_.Ya=new _.V("searchEndpoint");var c2U=new _.V("genAiRichTextViewModel");var tQt=new _.V("overviewAnswerViewModel");var iin=new _.V("addToPlaylistServiceEndpoint");var L46=new _.V("clearSearchHistoryEndpoint");var vvD=new _.V("clearWatchHistoryEndpoint");var daw=new _.V("webSerializedServiceEndpointExtension");_.Tnz=new _.V("createCommentEndpoint");var gTm=new _.V("createCommentReplyEndpoint");var r9n=new _.V("performCommentActionEndpoint");var ETT=new _.V("updateCommentEndpoint");var ByD=new _.V("updateCommentReplyEndpoint");_.CY=new _.V("createPlaylistServiceEndpoint");var wyZ=new _.V("deletePlaylistEndpoint");var S7T=new _.V("deleteVideoEndpoint");var epJ=new _.V("getReportFormEndpoint");var OYT=new _.V("modifyChannelNotificationPreferenceEndpoint");var yNV;_.o$=new _.V("offlinePlaylistEndpoint");yNV={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 vWQ;_.DB=new _.V("offlineVideoEndpoint");vWQ={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 UCw=new _.V("pingingEndpoint");_.Mfz=new _.V("selectActiveIdentityEndpoint");var q7D=new _.V("setSettingEndpoint");var UTD=new _.V("undoFeedbackEndpoint");var ud6=new _.V("unsubscribeEndpoint");_.lcA=new _.V("updatedMetadataEndpoint");var DCZ=function(){Hy.apply(this,arguments)};
_.f(DCZ,Hy);DCZ.prototype.getAssociations=function(){return[]};_.oTT=new _.V("updateLocalAppSettingCommand");var Gi4=new _.V("saveImageToDeviceEndpoint");var Q1w=new _.V("shareImageCommand");var z0z=new _.V("sharingProviderDataCommand");var kiw=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(kiw,_.xu);var HYn=[0,_.IU,-1];kiw.prototype.JSC$10408_serializeBinary=EuL(HYn);var pyw=_.T_(HYn);var Y7z=new _.V("userMentionSuggestionRenderer");var R0z=new _.V("liveChatTunnelCommand");var nTw=new _.V("showSponsorshipsGiftOfferDialogCommand");var s1A=new _.V("sponsorshipsScrollableShelfViewModel");var fcw=new _.V("updateUpcomingEventReminderButtonStateCommand");var $CD=new _.V("upcomingEventReminderButtonStateRenderer");var j1D=new _.V("subscribeEndpoint");var A9n=new _.V("registerTasksCommand");var bYA=new _.V("hideSnackbarCommand");var J9D=new _.V("showDialogCommand");_.ko=new _.V("showSheetCommand");var Pwn=new _.V("showSnackbarCommand");var tfz=function(){Hy.apply(this,arguments)};
_.f(tfz,Hy);tfz.prototype.getAssociations=function(){return[]};var F5D=function(){Hy.apply(this,arguments)};
_.f(F5D,Hy);F5D.prototype.getAssociations=function(){return[]};_.a$=new _.V("avatarViewModel");var e0m=new _.V("badgeViewModel");_.nm=new _.V("buttonViewModel");_.KY=new _.V("chipViewModel");var kNl=new _.V("collectionThumbnailViewModel");var W5I=new _.V("contentPreviewImageViewModel");var CwU=new _.V("decoratedAvatarViewModel");var g9t=new _.V("downloadButtonViewModel");_.lTl=new _.V("engagementBarViewModel");_.K5U=new _.V("imageBannerViewModel");var xCn=new _.V("lockupContentMetadataRowExtension");var acm=new _.V("lockupMetadataViewModel");_.XyU=new _.V("lockupViewModel");var NyI=new _.V("avatarStackViewModel");_.IcD=new _.V("contentMetadataViewModel");var mCz=function(){Hy.apply(this,arguments)};
_.f(mCz,Hy);mCz.prototype.getAssociations=function(){return[]};_.c94=new _.V("pageHeaderViewModel");var iY6=new _.V("snackbarViewModel");var L5n=new _.V("thumbnailHoverOverlayToggleActionsViewModel");_.sg=new _.V("toggleButtonViewModel");var VfD=function(){Hy.apply(this,arguments)};
_.f(VfD,Hy);VfD.prototype.getAssociations=function(){return[]};_.DIQ=new _.V("votingViewModel");var h06=new _.V("sectionHeaderViewModel");var ZYm=new _.V("notifyDropdownOptionSelectedCommand");var X1o=new _.V("listViewModel");_.HX=new _.V("listItemViewModel");var y9w=new _.V("dialogHeaderViewModel");var vT6=function(){Hy.apply(this,arguments)};
_.f(vT6,Hy);vT6.prototype.getAssociations=function(){return[]};var dCm=function(){Hy.apply(this,arguments)};
_.f(dCm,Hy);dCm.prototype.getAssociations=function(){return[]};var Tyw=function(){Hy.apply(this,arguments)};
_.f(Tyw,Hy);Tyw.prototype.getAssociations=function(){return[]};_.gQw=new _.V("transcriptSubmitCaptionCorrectionCommand");var r6w=function(){Hy.apply(this,arguments)};
_.f(r6w,Hy);r6w.prototype.getAssociations=function(){return[]};var D6B=new _.V("unpluggedStringRunImage");var EQ4=new _.V("tabViewModel");var BTw=new _.V("tabbedViewModel");var wan=function(){Hy.apply(this,arguments)};
_.f(wan,Hy);wan.prototype.getAssociations=function(){return[]};_.Skw=new _.V("updateDescriptionAction");var Onw=new _.V("updateToggleButtonTextAction");_.UJz=new _.V("autoplaySwitchButtonRenderer");var JQ;_.Mpm=new _.V("multiMarkersPlayerBarRenderer");JQ=new _.V("chapterRenderer");var qkA=new _.V("heatMarkerRenderer");var peV=new _.V("heatmapRenderer");var uLb=new _.V("smartSkipPlayerScrimOverlayRenderer");var li6=new _.V("timedMarkerDecorationRenderer");var vXl=new _.V("postWebToNativeMessageCommand");var DJw=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(DJw,_.xu);var oQb=_.dk(DJw,[0,_.IU,-2]);var GmT=new _.V("whitelistEditEndpoint");var QHZ=new _.V("clearUrlParamCommand");var ztn=new _.V("commerceActionCommand");_.kmT=new _.V("getPaymentInstrumentsParamsCommand");var HnA=new _.V("getPaymentsClientTokenCommand");var pa4=new _.V("googlePaymentBillingCommand");var Ykn=new _.V("googlePaymentPurchaseManagerCommand");_.RtZ=new _.V("logGtmCommand");var nQw=new _.V("updateCardItemOnClickCommand");_.sHZ=new _.V("ypcPauseSubscriptionCommand");_.fin=new _.V("ypcResumeSubscriptionCommand");var $JD=function(){Hy.apply(this,arguments)};
_.f($JD,Hy);$JD.prototype.getAssociations=function(){return[]};var jHD=function(){Hy.apply(this,arguments)};
_.f(jHD,Hy);jHD.prototype.getAssociations=function(){return[]};var A6T=function(){Hy.apply(this,arguments)};
_.f(A6T,Hy);A6T.prototype.getAssociations=function(){return[]};var bnb=function(){Hy.apply(this,arguments)};
_.f(bnb,Hy);bnb.prototype.getAssociations=function(){return[]};var J6A=function(){Hy.apply(this,arguments)};
_.f(J6A,Hy);J6A.prototype.getAssociations=function(){return[]};var VXc=new _.V("ypcOffersEndpoint");var PTn=new _.V("cardItemRenderer"),tpD=new _.V("cardItemTextRenderer");var FYm=new _.V("commerceCartItemQuantityPickerRenderer");var etb=new _.V("linkCardRenderer");var i1t=new _.V("quantityIncrementerButtonViewModel");var WYZ=new _.V("quantityIncrementerViewModel");var CTw=new _.V("themedImageViewModel");_.KYn=new _.V("ypcCancelRecurrenceEndpoint");var xJD=new _.V("ypcCompleteTransactionEndpoint");_.ai4=new _.V("ypcGetCartEndpoint");_.g0=new _.V("ypcGetOffersEndpoint");_.xT=new _.V("ypcHandleTransactionEndpoint");var Xan=new _.V("ypcLogWalletAnalyticDataEndpoint");_.NTw=new _.V("ypcRedeemCodeEndpoint");var IiD=new _.V("ypcUpdateFopEndpoint");vA(yV(1),hA(4));C5l((new MessageChannel).port2);var mJD=function(){this.register=new Map},FCo=function(g,r,E){g=g+"_"+r;
a1.register.has(g)?E=a1.register.get(g):(E=E(),a1.register.set(g,E));return E},c66=function(g){g=_.U(g.register.values());
for(var r=g.next();!r.done;r=g.next())_.qS(r.value,"ABORTED")};
mJD.prototype.clear=function(){c66(this);this.register.clear()};
var a1=new mJD;var o$V=Date.now().toString();var Qwo,inw=_.ED.ytLoggingDocDocumentNonce_;inw||(inw=AF(16),_.vN("ytLoggingDocDocumentNonce_",inw));Qwo=inw;var swo={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 LYb;LYb=1;_.bG=function(g){this.veData=g};
_.fW=function(g){return new _.bG({trackingParams:g})};
_.bW=function(g,r,E,B,w,O){var M=LYb++;return new _.bG({veType:g,veCounter:M,elementIndex:E,dataElement:r,youtubeData:B,jspbYoutubeData:w,loggingDirectives:O})};
_.S=_.bG.prototype;
_.S.getAsJson=function(){var g={};this.veData.trackingParams!==void 0?g.trackingParams=this.veData.trackingParams:(g.veType=this.veData.veType,this.veData.veCounter!==void 0&&(g.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(g.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(g.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(g.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(g.isCounterfactual=!0);
return g};
_.S.getAsJspb=function(){var g=new B2T;this.veData.trackingParams!==void 0?g.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.tX(g,2,this.veData.veType),this.veData.veCounter!==void 0&&_.tX(g,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.tX(g,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.qd(g,5,!0));if(this.veData.dataElement!==void 0){var r=this.veData.dataElement.getAsJspb();_.Bu(g,7,r)}this.veData.youtubeData!==void 0&&_.Bu(g,8,this.veData.jspbYoutubeData);
return g};
_.S.toString=function(){return JSON.stringify(this.getAsJson())};
_.S.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.S.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.vN("yt_logging_screen.getRootVeType",YGc);_.vN("yt_logging_screen.getCurrentCsn",_.PE);_.vN("yt_logging_screen.getCttAuthInfo",tF);_.vN("yt_logging_screen.setCurrentScreen",_.Fp);var Vpm=function(){this.events=new Map},htD=function(g){var r=[];
g=_.U(g.events.values());for(var E=g.next();!E.done;E=g.next())r.push(E.value);return r};
Vpm.prototype.clear=function(){this.events.clear()};var y66=function(){this.logTransport=new Znz;this.loggedEventRegister=new Vpm;this.unloggedEventRegister=new Vpm;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10465_flushTimer=new _.rU(this.flushInterval);this.JSC$10465_flushTimer.listen("tick",this.flush,!1,this)};
y66.prototype.flush=function(){if(this.eventsCount){var g={loggedEvents:htD(this.loggedEventRegister),unloggedEvents:htD(this.unloggedEventRegister)};if(_.Y("export_player_version_to_ytconfig")){var r;(r=_.Ca("PLAYER_CLIENT_VERSION"))?(r=r.split("-")[0].replace(/\./g,""),r=isNaN(Number(r))?"0":r):r="";var E=_.Ca("PLAYER_CLIENT_VERSION");if(E){E=E.split("-");var B="";E.length>1&&(B=E[E.length-1]);E=DnP(B.startsWith("canary_experiment")?"canary":B.startsWith("canary_control")?"control":"none")}else E=
"CLIENT_CANARY_STATE_UNKNOWN";g.dimensions={playerClientVersion:r,playerCanaryState:E}}this.logTransport.flush(g);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10465_flushTimer.enabled&&this.JSC$10465_flushTimer.stop()}};
var vQm=function(g){Xd==null&&(Xd=new y66);var r=Xd;var E=r.loggedEventRegister;g.dimensions=g.dimensions||{};g.dimensions.csn=_.PE()||"";var B=jwl(g.dimensions).join(";");if(g.records!=null)if(E.events.has(B)){var w;(w=E.events.get(B).records)==null||w.push.apply(w,_.jW(g.records))}else E.events.set(B,g);r.JSC$10465_flushTimer.enabled||r.JSC$10465_flushTimer.start();r.eventsCount++;r.eventsCount>=100&&r.flush()};var Znz=function(){};
Znz.prototype.flush=function(g,r){_.Y("enable_client_sli_logging")&&_.Jn("sliEventBatch",g,{sendIsolatedPayload:!!r})};var Xd;var TTA;TTA=function(g){var r=dJU;g=g===void 0?{}:g;r=r.name;var E=twP("SUCCESS");vQm({dimensions:g,records:[{name:r,state:"SLI_STATE_END",status:E}]})};
_.egQ=function(g,r,E,B){this.name=g;this.sliId=r;this.timeoutMs=E;this.statusOnTimeout=B;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.egQ.prototype.getId=function(){return this.sliId};
_.MS=function(g,r){r=r===void 0?{}:r;g.ongoing||(g.ongoing=!0,g.dimensions=r,g.logSliId=ehz(),vQm({dimensions:g.dimensions,records:[{name:g.name,state:"SLI_STATE_START",sliId:g.logSliId}]}),g.timeoutMs>0&&(g.timeoutHandle=setTimeout(function(){_.qS(g,g.statusOnTimeout)},g.timeoutMs)))};
_.qS=function(g,r){g.ongoing&&(g.timeoutMs>0&&clearTimeout(g.timeoutHandle),g.ongoing=!1,r={dimensions:g.dimensions,records:[{name:g.name,status:twP(r),state:"SLI_STATE_END",sliId:g.logSliId}]},a1.register.delete(g.name+"_"+g.sliId),vQm(r))};var dJU=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var glZ=function(){Hy.apply(this,arguments)};
_.f(glZ,Hy);glZ.prototype.getAssociations=function(){return[]};var d6l=new _.V("highlightTextDecoratorColorMapExtension");var y7t=new _.V("styleRunColorMapExtension");var N9X=_.me(["data-"]),ceS={};var LCD={};var NC=function(g){this.wrappedPromise_=g===void 0?null:g;this.state_=0;this.JSC$10497_value_=null};
NC.prototype.then=function(g,r,E){return this.wrappedPromise_?this.wrappedPromise_.then(g,r,E):this.state_===1&&g?(g=g.call(E,this.JSC$10497_value_))&&typeof g.then==="function"?g:_.I1(g):this.state_===2&&r?(g=r.call(E,this.JSC$10497_value_))&&typeof g.then==="function"?g:_.rm4(g):this};
NC.prototype.getValue=function(){return this.JSC$10497_value_};
NC.prototype.isRejected=function(){return this.state_==2};
gUA(NC);_.rm4=function(g){var r=new NC;g=g===void 0?null:g;r.state_=2;r.JSC$10497_value_=g===void 0?null:g;return r};
_.I1=function(g){var r=new NC;g=g===void 0?null:g;r.state_=1;r.JSC$10497_value_=g===void 0?null:g;return r};var Uct="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var ElD=["load","abort","error"],m5=function(g,r,E){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10517_maxAspectRatio_=g;this.disableAnimation_=r===void 0?!1:r;this.disableExifRotation_=E===void 0?!1:E;this.JSC$10517_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10517_reject_=this.resolve_=null};
m5.prototype.transform=function(g){var r=this;this.mime_=g.type;Iw(gDn(g),this.dataUrlRead_,this.readError_,this);Iw(TX4(g.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(E,B){r.resolve_=E;r.JSC$10517_reject_=B})};
m5.prototype.dataUrlRead_=function(g){this.dataUrl_=g;this.angle_!=null&&BVU(this)};
m5.prototype.exifRead_=function(g){if(this.disableExifRotation_)this.angle_=0;else{a:if(g=new DataView(g),g.byteLength<2||g.getUint16(0)!==65496)g=-2;else{for(var r=2,E=g.byteLength;r<E;){var B=g.getUint16(r),w=g.getUint16(r+2);if(B===65505){r+=4;B=g.getUint32(r);w=g.getUint16(r+4);if(B!==1165519206||w!==0)break;r+=6;B=g.getUint16(r)===18761;r+=g.getUint32(r+4,B);w=g.getUint16(r,B);r+=2;for(var O=0;O<w;O++){if(g.getUint16(r,B)===274){r+=8;g=g.getUint16(r,B);break a}r+=12}}else if(B>>8!==255)break;
else r+=w+2}g=-1}switch(g){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&&BVU(this)};
m5.prototype.readError_=function(){this.JSC$10517_reject_()};
var BVU=function(g){nW(g.JSC$10517_image_,ElD,g.completeTransform_,!1,g);g.JSC$10517_image_.src=_.nI(g.dataUrl_).toString();g.JSC$10517_image_.src!=RC.toString()&&g.JSC$10517_image_.src.substr(0,11)==="data:image/"||g.JSC$10517_reject_()};
m5.prototype.completeTransform_=function(){if(this.JSC$10517_image_.src!=RC.toString()){var g=_.nI(this.dataUrl_),r=this.JSC$10517_image_.naturalHeight?this.JSC$10517_image_.naturalWidth/this.JSC$10517_image_.naturalHeight:null;this.invalidAspectRatio=r>this.JSC$10517_maxAspectRatio_||r<1/this.JSC$10517_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var E=this.JSC$10517_image_.naturalWidth,B=this.JSC$10517_image_.naturalHeight,w=r=0,O=this.JSC$10517_image_.naturalHeight?this.JSC$10517_image_.naturalWidth/
this.JSC$10517_image_.naturalHeight:null;O>this.JSC$10517_maxAspectRatio_?(E=this.JSC$10517_maxAspectRatio_*B,r=(E-this.JSC$10517_image_.naturalWidth)/2,this.cropped=!0):O<1/this.JSC$10517_maxAspectRatio_?(B=this.JSC$10517_maxAspectRatio_*E,w=(B-this.JSC$10517_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)O=E,E=B,B=O,O=r,r=w,w=O;switch(this.angle_){case 90:w-=E;break;case 180:r-=E;w-=B;break;case 270:r-=
B}this.cropped||this.angle_%360!==0?(g=document.createElement("canvas"),g.width=E||1,g.height=B||1,this.JSC$10517_image_.naturalWidth&&this.JSC$10517_image_.naturalHeight&&(E=g.getContext("2d"),E.rotate(Math.PI/180*this.angle_),E.drawImage(this.JSC$10517_image_,r,w,this.JSC$10517_image_.naturalWidth,this.JSC$10517_image_.naturalHeight)),this.transformedData=_.nI(g.toDataURL(this.mime_))):this.transformedData=g}else this.transformedData=g;this.resolve_(this)}};var cy=function(g,r){_.l8.call(this,g);this.value=r};
_.f(cy,_.l8);
var iw=function(g,r,E,B,w,O,M){M=M===void 0?!1:M;_.ze.call(this);var u=this;this.JSC$10522_url_=g;this.channelId_=r;this.maxFileSizeMb_=E;this.JSC$10522_maxAspectRatio_=B;this.dropZoneEl_=w;this.rejectInvalidAspectRatio_=M;this.selectButtonEl_=O;this.JSC$10522_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new Sf(this.dropZoneEl_);this.selectOverlay_=new O7(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10522_image_=this.transfer_=null;this.handler_=new _.EQ(this);_.oO(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(O,"click",function(){u.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.f(iw,_.ze);iw.prototype.disposeInternal=function(){for(var g=this.selectButtonEl_.nextSibling;g&&g.parentNode&&g.tagName=="INPUT";)g.parentNode.removeChild(g),g=this.selectButtonEl_.nextSibling;this.cancel();_.ze.prototype.disposeInternal.call(this)};
iw.prototype.uploadPromise=function(){if(this.JSC$10522_image_==null)return null;this.uploadPromise_||wPI(this);return this.uploadPromise_};
iw.prototype.cancel=function(){SCU(this);this.JSC$10522_image_=null};
var SCU=function(g){g.transfer_&&g.transfer_.cancel();g.transfer_=null;g.uploadPromise_=null;g.resolve_=null;g.JSC$10522_reject_=null},wPI=function(g){SCU(g);
g.transfer_=_.kGZ(g.JSC$10522_url_,{"X-YouTube-ChannelId":g.channelId_},g.JSC$10522_image_);g.handler_.listenOnce(g.transfer_,"l",g.JSC$10524_onUploadComplete_);g.handler_.listenOnce(g.transfer_,"n",g.onUploadError_);g.transfer_.run();g.uploadPromise_=new Promise(function(r,E){g.resolve_=r;g.JSC$10522_reject_=E})};
_.S=iw.prototype;_.S.onChange_=function(g){g.files.length&&(this.JSC$10522_image_=g.files[0],this.JSC$10522_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10522_image_=null,this.dispatchEvent(new cy("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(wPI(this),(new m5(this.JSC$10522_maxAspectRatio_)).transform(this.JSC$10522_image_).then((0,_.$r)(this.onPreview_,this),(0,_.$r)(this.onPreviewError_,this))))};
_.S.onPreview_=function(g){if(g.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10522_image_=null),this.dispatchEvent(new cy("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;g.cropped&&this.dispatchEvent(new cy("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new cy("yt.comments.ImageUploadOverlay.CHANGE_EVENT",g.transformedData))};
_.S.onPreviewError_=function(){this.JSC$10522_image_=null;this.dispatchEvent(new cy("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.S.onHover_=function(g){g.stopPropagation();g.preventDefault();if(g.type==="dragover")g=!0;else if(g.type==="dragleave")g=!1;else return;this.dispatchEvent(new cy("yt.comments.ImageUploadOverlay.HOVER_EVENT",g))};
_.S.JSC$10524_onUploadComplete_=function(){var g=(0,_.f2T)(this.transfer_.getResponseText());this.resolve_(g.encryptedBlobId)};
_.S.onUploadError_=function(){this.JSC$10522_reject_();SCU(this)};var OB4=function(g){g=g||{};var r={},E={};this.url=g.url||"";this.args=g.args||_.jn.clone(r);this.assets=g.assets||{};this.attrs=g.attrs||_.jn.clone(E);this.fallback=g.fallback||null;this.fallbackMessage=g.fallbackMessage||null;this.html5=!!g.html5;this.disable=g.disable||{};this.loaded=!!g.loaded;this.messages=g.messages||{}};
OB4.prototype.clone=function(){var g=new OB4,r;for(r in this)if(this.hasOwnProperty(r)){var E=this[r];g[r]=_.lm(E)=="object"?_.jn.clone(E):E}return g};var U9n,M2n,qCA,yj,llA,D9w,olw,GRm,QfI,zG6,kRn,HBw,pPT,YCw,RGU,nlI,sfb,flT,$9T,jfw,Amw,bBn,Jmn,PNU,t2Z,FtZ,eGn,WtA,CNn,UIJ,Ktn,x9T,aln,XPD,NVI,IlT,m9n,cmD,iBn,Ltw,O6B,V2n,hGw,ZBT,ymz,vlA,d9w,TVZ,g8U,r0b,E8D,BND,wY6,S5b,Oom,UVm,LY,MtI,q5I,uo6,lWw,DVz,o8n,GpD,QY4,zL6,kpz,Hon,pY6,Y56,RLw,n8b,sYU,fW4,$V4,wnc,jYI,A0T,boZ,J0m,Ps4,ttw,FXb,eLZ,WXZ,Csm,KX6,xVD,aWA,XYZ,NNw,IWI,mVn,c0D,io4,LXA,Vtz,hL6,ZoZ,y0Z,v86;U9n=["account/accounts_list"];M2n=["acknowledge_channel_tou_strike"];qCA=["notification/add_upcoming_event_reminder"];
_.uQZ=["att/get"];yj=["browse","music/browse","unplugged/browse"];llA=["channel/claim_legacy_youtube_channel"];D9w=["history/clear_search_history"];olw=["history/clear_watch_history"];GRm=["comment/perform_comment_action"];QfI=["comment/get_comment_replies"];zG6=["ypc/commerce_action"];kRn=["backstage/create_post"];HBw=["live/create_broadcast"];pPT=["channel/create_channel"];YCw=["comment/create_comment_reply"];RGU=["comment/create_comment"];nlI=["live_chat/create_poll"];sfb=["playlist/create"];
flT=["decorate_message"];$9T=["live_chat/delete_message"];jfw=["playlist/delete"];Amw=["video/delete"];bBn=["like/dislike"];Jmn=["dismissal/dismiss"];PNU=["flag/flag"];t2Z=["flow"];FtZ=["account/account_menu"];eGn=["playlist/get_add_to_playlist"];WtA=["get_answer"];CNn=["channel/get_channel_creation_form"];UIJ=["offline/get_download_action"];Ktn=["kids/get_kids_blocklist_picker"];x9T=["live_chat/get_item_context_menu"];aln=["live_chat/get_live_chat_message_buy_flow"];XPD=["live_chat/get_live_chat_replay"];
NVI=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];IlT=["live_chat/get_live_chat_super_sticker_buy_flow"];m9n=["notification/get_notification_menu"];cmD=["playlist/get_settings_editor"];iBn=["backstage/get_post_video_preview"];Ltw=["account/get_profile_card"];O6B=["share/get_share_panel"];V2n=["share/get_sharing_provider_data"];hGw=["get_survey"];ZBT=["notification/get_unseen_count"];ymz=["get_user_mention_suggestions"];vlA=["get_watch"];d9w=["guide"];
TVZ=["feedback"];g8U=["kids/update_blacklist"];r0b=["like/like"];E8D=["live_chat/live_chat_action"];BND=["live_chat/manage_user"];wY6=["video_manager/metadata_update"];S5b=["live_chat/moderate"];Oom=["notification/modify_channel_preference"];UVm=["notification/opt_out"];LY=["get_panel","get_posts_by_host_panel"];MtI=["player"];q5I=["browse/edit_playlist"];uo6=["notification/record_interactions"];lWw=["reel/reel_item_watch"];DVz=["reel/reel_watch_sequence"];o8n=["like/removelike"];GpD=["notification/remove_upcoming_event_reminder"];
QY4=["flag/get_form"];zL6=["miniapp/report_value"];kpz=["navigation/resolve_url"];Hon=["channel/reveal_business_email"];pY6=["in_video/search"];Y56=["search","sfv/search","unplugged/search"];RLw=["live_chat/send_message"];n8b=["live_chat/send_live_chat_vote"];sYU=["account/set_setting"];fW4=["submit_caption_correction"];$V4=["subscription/subscribe"];wnc=["get_transcript"];jYI=["resolve_location","unplugged/resolve_location"];A0T=["subscription/unsubscribe"];boZ=["backstage/update_post"];J0m=["channel_edit/update_channel_page_settings"];
Ps4=["comment/update_comment_reply"];ttw=["comment/update_comment"];FXb=["comment/update_comments_settings"];eLZ=["creator/update_creator_channel"];WXZ=["pdg/update_enablement"];Csm=["updated_metadata"];KX6=["channel_edit/validate_channel_handle"];xVD=["verify_age"];aWA=["next","unplugged/watch_next"];XYZ=["whitelist/edit"];NNw=["ypc/cancel_recurrence"];IWI=["ypc/complete_transaction"];mVn=["ypc/get_cart"];c0D=["ypc/get_fix_instrument_params"];io4=["ypc/get_offers"];LXA=["ypc/get_payment_instruments_params"];
Vtz=["ypc/handle_transaction"];hL6=["ypc/log_payment_server_analytics"];ZoZ=["ypc/pause_subscription"];y0Z=["ypc/redeem_code"];v86=["ypc/resume_subscription"];var dVn=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,
74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,
147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,
50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,233634,265810,194770,195350,195349,194771,166382,37671,
49953,220669,249229,213774,204572,191389,253830,253831,253832,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,
170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,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,261210,210815,246127,245256,244950,
191925,167637,234545,197196,214295,110386,221054,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,
253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,190190,225739,31961,
26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,
39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,82039];var Q_=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.vN("yt.msgs_",Q_);var VA=new _.Vn("ACTION_ROUTER_TOKEN");_.h9=function(){this.autonavState_=_.Y("kevlar_is_pupi_enabled")?2:YLl()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.h9.prototype.getState=function(){return this.autonavState_};
_.h9.prototype.pause=function(g){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=g):this.autonavState_==1&&(this.disabledAutonavPauseReason_=g)};
_.h9.prototype.setState=function(g,r,E){r&&(this.autoplayChangedByUser=!0);r=this.autonavState_===3||g===3;this.autonavState_!=g&&(this.autonavState_=g,g!=3&&_.Rqc(g==2),g=_.Y("kevlar_is_pupi_enabled")?E||r:!0,_.mH.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,g,E))};
_.h9.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.vv(_.h9);var Zc=function(){this.hasRun=!1};var yA={},FTL=(yA.auto_search="LATENCY_ACTION_AUTO_SEARCH",yA.ad_to_ad="LATENCY_ACTION_AD_TO_AD",yA.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",yA.app_startup="LATENCY_ACTION_APP_STARTUP",yA.browse="LATENCY_ACTION_BROWSE",yA.cast_splash="LATENCY_ACTION_CAST_SPLASH",yA.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",yA.channels="LATENCY_ACTION_CHANNELS",yA.chips="LATENCY_ACTION_CHIPS",yA.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",yA.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
yA.editor="LATENCY_ACTION_EDITOR",yA.embed="LATENCY_ACTION_EMBED",yA.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",yA.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",yA.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",yA.explore="LATENCY_ACTION_EXPLORE",yA.favorites="LATENCY_ACTION_FAVORITES",yA.home="LATENCY_ACTION_HOME",yA.inboarding="LATENCY_ACTION_INBOARDING",yA.landing="LATENCY_ACTION_LANDING",yA.learning="LATENCY_ACTION_LEARNING",
yA.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",yA.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",yA.library="LATENCY_ACTION_LIBRARY",yA.live="LATENCY_ACTION_LIVE",yA.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",yA.management="LATENCY_ACTION_MANAGEMENT",yA.mini_app="LATENCY_ACTION_MINI_APP_PLAY",yA.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",yA.onboarding="LATENCY_ACTION_ONBOARDING",yA.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
yA.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",yA.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",yA.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",yA.prebuffer="LATENCY_ACTION_PREBUFFER",yA.prefetch="LATENCY_ACTION_PREFETCH",yA.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",yA.profile_switcher="LATENCY_ACTION_LOGIN",yA.projects="LATENCY_ACTION_PROJECTS",yA.reel_watch="LATENCY_ACTION_REEL_WATCH",yA.results="LATENCY_ACTION_RESULTS",yA.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
yA.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",yA.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",yA.review="LATENCY_ACTION_REVIEW",yA.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",yA.search_ui="LATENCY_ACTION_SEARCH_UI",yA.search_suggest="LATENCY_ACTION_SUGGEST",yA.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",yA.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",yA.seek="LATENCY_ACTION_PLAYER_SEEK",yA.settings="LATENCY_ACTION_SETTINGS",yA.store="LATENCY_ACTION_STORE",
yA.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",yA.tenx="LATENCY_ACTION_TENX",yA.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",yA.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",yA.watch="LATENCY_ACTION_WATCH",yA.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",yA["watch,watch7"]="LATENCY_ACTION_WATCH",yA["watch,watch7_html5"]="LATENCY_ACTION_WATCH",yA["watch,watch7ad"]="LATENCY_ACTION_WATCH",yA["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",yA.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
yA.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",yA.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",yA.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",yA.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",yA.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",yA.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",yA.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",yA),hqY=0;var g7B=function(g,r){k7.call(this,1,arguments);this.timer=r};
_.f(g7B,k7);var TjX=new lzS("aft-recorded",g7B);var KTo=_.ED.ytLoggingGelSequenceIdObj_||{};_.vN("ytLoggingGelSequenceIdObj_",KTo);var vy=_.ED.ytLoggingLatencyUsageStats_||{};_.vN("ytLoggingLatencyUsageStats_",vy);var dy=function(){this.cleanupJob=0},XSY=function(){dy.instance||(dy.instance=new dy);
return dy.instance};
_.S=dy.prototype;_.S.baseline=function(g,r,E){Ti(this,"baseline_"+g)||_.Jn("latencyActionBaselined",{clientActionNonce:g},{timestamp:r,cttAuthInfo:E})};
_.S.tick=function(g,r,E,B){Ti(this,"tick_"+g+"_"+r)||_.Jn("latencyActionTicked",{tickName:g,clientActionNonce:r},{timestamp:E,cttAuthInfo:B})};
_.S.info=function(g,r,E){var B=Object.keys(g).join("");Ti(this,"info_"+B+"_"+r)||(g=Object.assign({},g),g.clientActionNonce=r,_.Jn("latencyActionInfo",g,{cttAuthInfo:E}))};
_.S.jspbInfo=function(g,r,E){for(var B="",w=0;w<wk(g).length;w++)wk(g)[w]!==void 0&&(B=w===0?B.concat(""+w):B.concat("_"+w));Ti(this,"info_"+B+"_"+r)||(_.H$(g,2,r),r={cttAuthInfo:E},E=_.Y("jspb_sparse_encoded_pivot")?new sq([{}]):new sq,_.ws(E,7,HCb,g),xcS("latencyActionInfo",E,r))};
_.S.span=function(g,r,E){var B=Object.keys(g).join("");Ti(this,"span_"+B+"_"+r)||(g.clientActionNonce=r,_.Jn("latencyActionSpan",g,{cttAuthInfo:E}))};
var Ti=function(g,r){vy[r]=vy[r]||{count:0};var E=vy[r];E.count++;E.time=(0,_.g2)();g.cleanupJob||(g.cleanupJob=_.fC(_.F6,function(){var B=(0,_.g2)(),w;for(w in vy)vy[w]&&B-vy[w].time>6E4&&delete vy[w];g&&(g.cleanupJob=0)},5E3));
return E.count>5?(E.count===6&&Math.random()*1E5<1&&(E=new _.Rj("CSI data exceeded logging limit with key",r.split("_")),r.indexOf("plev")>=0||_.el(E)),!0):!1};var TNm,giw;TNm=window;giw=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.fu=TNm.performance||TNm.mozPerformance||TNm.msPerformance||TNm.webkitPerformance||new giw;var dcL=!1,IXQ=!1,rhP=(0,_.$r)(_.fu.clearResourceTimings||_.fu.webkitClearResourceTimings||_.fu.mozClearResourceTimings||_.fu.msClearResourceTimings||_.fu.oClearResourceTimings||_.oo,_.fu);var riD=window;riD.ytcsi&&(riD.ytcsi.infoGel=_.Pk,riD.ytcsi.tick=_.F4);var o7Y=function(g){k7.call(this,1,arguments);this.csn=g};
_.f(o7Y,k7);var z9Y=new lzS("screen-created",o7Y),Jhl=[],D4t=bdl,PvP=0,xg=new Map,GoP=new Map,QMV=new Map;var KWV=Symbol("Af"),Z$=new WeakMap;var gT=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},R3=function(){gT.instance||(gT.instance=new gT);
return gT.instance};
_.S=gT.prototype;_.S.setClient=function(g){this.client=g};
_.S.JSC$10603_newScreen=function(){this.clear();this.csn=_.PE()};
_.S.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.S.reportShown=function(g,r,E){var B=this.JSC$10603_getTrackingParams(g),w=g.visualElement?g.visualElement:B;r=this.shownElements.has(w);var O=this.visibleState.get(w);this.shownElements.add(w);this.visibleState.set(w,!0);g.impressionLog&&!r&&g.impressionLog();if(B||g.visualElement)if(E=Ei6(this,g,E))if(w=BDT(this,g),rT(this,g)||w){B=g.visualElement?g.visualElement:_.fW(B);var M=g.interactionLoggingClientData;w||r?rT(this,g)&4?O||sMc(this.client,E,B,M):rT(this,g)&1&&!r&&YZQ(this.client,E,B,M):YZQ(this.client,
E,B,M)}};
_.S.reportHidden=function(g,r,E){var B=this.JSC$10603_getTrackingParams(g),w=g.visualElement?g.visualElement:B;r=this.hiddenElements.has(w);var O=this.visibleState.get(w);this.hiddenElements.add(w);this.visibleState.set(w,!1);if(O===!1)return!0;if(!B&&!g.visualElement)return!1;E=Ei6(this,g,E);if(!E||!rT(this,g)&&BDT(this,g))return!1;B=g.visualElement?g.visualElement:_.fW(B);rT(this,g)&8?fCD(this.client,E,B):rT(this,g)&2&&!r&&(g=this.client,r=Ku({cttAuthInfo:tF(E)||void 0},E),B={csn:E,ve:B.getAsJson(),
eventType:2},E==="UNDEFINED_CSN"?X4("visualElementHidden",r,B):g?An("visualElementHidden",B,g,r):_.Jn("visualElementHidden",B,r));return!0};
_.S.JSC$10603_getTrackingParams=function(g){var r=this.getData(g),E,B;if(_.Y("il_use_view_model_logging_context")&&(r==null?0:(E=r.context)==null?0:(B=E.loggingContext)==null?0:B.loggingDirectives))return r.context.loggingContext.loggingDirectives.trackingParams||"";var w,O;if(r==null?0:(w=r.rendererContext)==null?0:(O=w.loggingContext)==null?0:O.loggingDirectives)return r.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(r==null?0:r.loggingDirectives)return r.loggingDirectives.trackingParams||
"";var M;return((M=g.veContainer)==null?0:M.trackingParams)?g.veContainer.trackingParams:(r==null?void 0:r.trackingParams)||""};
_.S.JSC$10603_elementShouldLogGesture=function(g,r){g=this.getData(g);return!!((Math.floor(Number(g&&g.loggingDirectives&&g.loggingDirectives.gestures&&g.loggingDirectives.gestures.types||""))||0)&r)};
_.S.JSC$10603_getNearestParentVe=function(g){var r=this.JSC$10603_getTrackingParams(g);return g.visualElement?g.visualElement:r?_.fW(r):g.parentElement?this.JSC$10603_getNearestParentVe(g.parentElement):null};
var Ei6=function(g,r,E){var B=_.PE(E);return g.csn===null||B===g.csn||E?B:(g=new _.Rj("VisibilityLogger called before newScreen",{caller:r.tagName,previous_csn:g.csn,current_csn:B}),_.el(g),null)};
gT.prototype.getData=function(g){var r,E=g.data||((r=g.props)==null?void 0:r.data);if(!E||g.isWebComponentWrapper){var B;E=(B=Z$.get(g))==null?void 0:B[KWV]}return E};
var BDT=function(g,r){var E;return!((E=g.getData(r))==null||!E.loggingDirectives)},rT=function(g,r){g=g.getData(r);
return Math.floor(Number(g&&g.loggingDirectives&&g.loggingDirectives.visibility&&g.loggingDirectives.visibility.types||""))||1};var Ek;Ek=function(){};
_.kP=function(){Ek.instance||(Ek.instance=new Ek);return Ek.instance};
Ek.prototype.setClient=function(g){_.aa(R3().setClient).bind(R3())(g)};
_.wdI=function(){_.kP();_.aa(R3().JSC$10603_newScreen).bind(R3())()};
Ek.prototype.clear=function(){_.aa(R3().clear).bind(R3())()};
Ek.prototype.reportShown=function(g,r,E){_.aa(R3().reportShown).bind(R3())(g,r,E)};
Ek.prototype.reportHidden=function(g,r,E){return _.aa(R3().reportHidden).bind(R3())(g,r,E)};
var h3l=function(g,r){return _.aa(R3().JSC$10603_getTrackingParams).bind(R3())(r)},xkL=function(g,r){return _.aa(R3().JSC$10603_getNearestParentVe).bind(R3())(r)};var Ba,S_6;Ba=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};
_.pW=function(){Ba.instance||(Ba.instance=new Ba);return Ba.instance};
Ba.prototype.setClient=function(g){this.client=g};
S_6=function(g,r,E){E=E===void 0?{}:E;_.aa(function(){var B,w,O,M=((B=_.n(r==null?void 0:r.commandMetadata,_.dU))==null?void 0:B.rootVe)||((w=_.n(r==null?void 0:r.commandMetadata,T9w))==null?void 0:(O=w.screenVisualElement)==null?void 0:O.uiType);if(M){B=_.n(r==null?void 0:r.commandMetadata,N3m);if(B==null?0:B.parentTrackingParams){var u=_.fW(B.parentTrackingParams);if(B.parentCsn)var l=B.parentCsn}else E.clickedVisualElement?u=E.clickedVisualElement:r.clickTrackingParams&&(u=_.fW(r.clickTrackingParams));
a:{B=_.n(r,_.LM);w=_.n(r,S5c);if(B){if(w=n0B(B,"VIDEO")){B={token:w,videoId:B.videoId};break a}}else if(w&&(B=n0B(w,"PLAYLIST"))){B={token:B,playlistId:w.playlistId};break a}B=void 0}E=Object.assign({},{cttAuthInfo:B,parentCsn:l},E);if(_.Y("expectation_logging")){var Q;E.loggingExpectations=((Q=_.n(r==null?void 0:r.commandMetadata,T9w))==null?void 0:Q.loggingExpectations)||void 0}_.wT(g,M,u,E)}else _.el(new _.Rj("Error: Trying to create a new screen without a rootVeType",r))})()};
_.wT=function(g,r,E,B){B=B===void 0?{}:B;_.aa(function(){dVn.includes(r)||(_.el(new _.Rj("createClientScreen() called with a non-page VE",r)),r=83769);B.isHistoryNavigation||(g.forwardHistoryStack=[],g.backHistoryStack.push({rootVe:r,key:B.key||""}));g.graftQueue=[];g.stateChangedQueue=[];B.dataPromises?O4m(g,r,E,B):UFZ(g,r,E,B)})()};
_.MbU=function(g,r,E){E=E===void 0?0:E;_.aa(function(){r.then(function(B){g.pendingScreenCreation.has(E)&&g.pendingScreenFn&&g.pendingScreenFn();var w=_.PE(E),O=_.JF(E);if(w&&O){var M={automatedLogEventSource:3},u;(B==null?0:(u=B.response)==null?0:u.trackingParams)&&a6(g.client,w,O,_.fW(B.response.trackingParams),!1,M);var l;(B==null?0:(l=B.playerResponse)==null?0:l.trackingParams)&&a6(g.client,w,O,_.fW(B.playerResponse.trackingParams),!1,M)}})})()};
Ba.prototype.graftServerVe=function(g,r,E){var B=this;return _.aa(function(){var w=_.fW(g);_.Sp(B,w,r,E);return w})()};
_.aRA=function(g,r,E,B){return _.Y("enable_client_ve_spec")&&r.clientVeSpec?(r=_.bW(r.clientVeSpec.uiType,void 0,r.clientVeSpec.elementIndex,r.clientVeSpec.clientYoutubeData,void 0,r),_.Sp(g,r,E,B)?r:null):r.trackingParams?g.graftServerVe(r.trackingParams,E,B):null};
_.Hw=function(g,r,E,B){return _.aa(function(){if(!r.veType)return _.FR(new _.Rj("Error: Trying to graft a client VE without a veType.")),null;if(r.visibilityTypes){var w=r.visibilityTypes.reduce(function(O,M){return O|M});
w={visibility:{types:String(w)}}}w=_.bW(r.veType,r.visualElement,r.elementIndex,r.clientYouTubeData,void 0,w);return _.Sp(g,w,E,B)?w:null})()};
_.Sp=function(g,r,E,B){B=B===void 0?0:B;return _.aa(function(){if(g.pendingScreenCreation.has(B))return g.graftQueue.push([r,E]),!0;var w=_.PE(B),O=E||_.JF(B);if(w&&O){if(_.Y("combine_ve_grafts")){var M=g.cachedVisualElements.get(O.toString());M?M.push(r):(g.cachedRootVisualElements.set(O.toString(),O),g.cachedVisualElements.set(O.toString(),[r]));g.attachTimeout||(g.attachTimeout=_.fC(_.F6,function(){q_b(g,w)},1200))}else a6(g.client,w,O,r);
return!0}return!1})()};
_.Ok=function(g,r,E){E=E===void 0?0:E;var B=g.recurringGrafts.get(E)||new Map;if(_.Y("smarter_ve_dedupping"))for(var w=Array.from(B.keys()),O=0;O<w.length;O++){var M=void 0,u=void 0;var l=r;var Q=w[O];Q.isClientVe()&&l.isClientVe()?(M=l.getAsJson(),u=Q.getAsJson(),l=M.veType!==u.veType||M.elementIndex!==u.elementIndex||M.dataElement!==u.dataElement||l.getLoggingDirectives()!==Q.getLoggingDirectives()?!1:!0):l=Q.veData.trackingParams!==void 0&&l.veData.trackingParams!==void 0?((u=l.veData)==null?void 0:
u.trackingParams)===((M=Q.veData)==null?void 0:M.trackingParams):!1;if(l)return}else if(B.has(r))return;B.set(r,void 0);g.recurringGrafts.set(E,B);_.PE(E)==="UNDEFINED_CSN"||g.pendingScreenCreation.has(E)||_.Sp(g,r,void 0,E)};
_.Uk=function(g,r,E,B){B=_.PE(B===void 0?0:B);if(!B)return!1;jMY(g.client,B,r,E);return!0};
_.MJ=function(g,r,E,B){if(!r)return!1;B=_.PE(B===void 0?0:B);if(!B)return!1;jMY(g.client,B,_.fW(r),E);return!0};
_.Nh=function(g,r){var E=r.getScreenLayer&&r.getScreenLayer();if(r.visualElement)return _.Uk(g,r.visualElement,void 0,E);r=h3l(_.kP(),r);return _.MJ(g,r,void 0,E)};
Ba.prototype.clickCommand=function(g,r,E){return _.MJ(this,g.clickTrackingParams,r,E===void 0?0:E)};
Ba.prototype.stateChanged=function(g,r,E){this.visualElementStateChanged(_.fW(g),r,E===void 0?0:E)};
Ba.prototype.visualElementStateChanged=function(g,r,E){E=E===void 0?0:E;E===0&&this.pendingScreenCreation.has(E)?this.stateChangedQueue.push([g,r]):this.logStateChanged(g,r,E)};
Ba.prototype.logStateChanged=function(g,r,E){E=E===void 0?0:E;var B=_.PE(E);g=g||_.JF(E);return B&&g?(Ahl(this.client,B,g,r),!0):!1};
var O4m=function(g,r,E,B){B=B===void 0?{}:B;g.pendingScreenCreation.add(B.layer||0);g.pendingScreenFn=function(){UFZ(g,r,E,B);var M=_.JF(B.layer);if(M){for(var u=_.U(g.graftQueue),l=u.next();!l.done;l=u.next())l=l.value,_.Sp(g,l[0],l[1]||M,B.layer);M=_.U(g.stateChangedQueue);for(u=M.next();!u.done;u=M.next())u=u.value,g.logStateChanged(u[0],u[1])}};
E||_.PE(B.layer)||g.pendingScreenFn();if(B.dataPromises)for(var w=_.U(B.dataPromises),O=w.next();!O.done;O=w.next())_.MbU(g,O.value,B.layer);else _.tn(Error("Bf"))},UFZ=function(g,r,E,B){B=B===void 0?{}:B;
var w=void 0;B.layer||(B.layer=0);w=B.parentLayer!==void 0?B.parentLayer:B.layer;var O=_.PE(w);w=_.JF(w);var M=E||w,u;M&&(B.parentCsn!==void 0?u={clientScreenNonce:B.parentCsn,visualElement:M}:O&&O!=="UNDEFINED_CSN"&&(u={clientScreenNonce:O,visualElement:M}));var l,Q=_.Ca("EVENT_ID");O==="UNDEFINED_CSN"&&Q&&(l={servletData:{serializedServletEventId:Q}});_.Y("combine_ve_grafts")&&O&&q_b(g,O);_.Y("no_client_ve_attach_unless_shown")&&M&&O&&pjJ(M,O);try{var z=_.zXY(g.client,r,u,B.csnToClone,B.cttAuthInfo,
l,B.implicitGestureType,void 0,B.loggingExpectations)}catch(R){_.Wf(R,{rootVeType:r,rootVe:w,parentVisualElement:E,currentCsn:O,parentEl:u,csnToClone:B.csnToClone});_.tn(R);return}_.Fp(z,r,B.layer,B.cttAuthInfo);O&&O!=="UNDEFINED_CSN"&&w&&!ffV(O)&&fCD(g.client,O,w,!0);g.backHistoryStack[g.backHistoryStack.length-1]&&!g.backHistoryStack[g.backHistoryStack.length-1].csn&&(g.backHistoryStack[g.backHistoryStack.length-1].csn=z||"");_.Pk({clientScreenNonce:z});_.wdI();var k=_.JF(B.layer);O&&O!=="UNDEFINED_CSN"&&
k&&(_.Y("web_mark_root_visible")||_.Y("music_web_mark_root_visible"))&&_.mZ(z,k);g.pendingScreenCreation.delete(B.layer||0);g.pendingScreenFn=void 0;var H;(H=g.recurringGrafts.get(B.layer))==null||H.forEach(function(R,A){R?_.Sp(g,A,R,B.layer):k&&_.Sp(g,A,k,B.layer)});
u0w(g)},u0w=function(g){for(var r=0;r<g.afterNewScreenOneOffJobs.length;r++){var E=g.afterNewScreenOneOffJobs[r];
try{E()}catch(B){_.tn(B)}}for(r=g.afterNewScreenOneOffJobs.length=0;r<g.afterNewScreenRecurringJobs.length;r++){E=g.afterNewScreenRecurringJobs[r];try{E()}catch(B){_.tn(B)}}},q_b=function(g,r){if(r===void 0)for(var E=n$P(),B=0;B<E.length;B++)E[B]!==void 0&&q_b(g,E[B]);
else g.cachedVisualElements.forEach(function(w,O){(O=g.cachedRootVisualElements.get(O))&&kol(g.client,r,O,w)}),g.cachedVisualElements.clear(),g.cachedRootVisualElements.clear(),g.attachTimeout=void 0};var qJ=function(g){g=g===void 0?{layer:0}:g;this.hasRun=!1;this.createScreenConfig=g;g={};this.vL2=(g.response=!1,g.playerResponse=!1,g)};
_.f(qJ,Zc);qJ.prototype.validate=function(g){return!(!g.data||!g.data.response&&!g.data.playerResponse)};
qJ.prototype.handle=function(g){var r=_.pW(),E=this.createScreenConfig.layer;g.data.response&&g.data.response.trackingParams&&!this.vL2.response&&(r.graftServerVe(g.data.response.trackingParams,void 0,E),this.vL2.response=!0);g.data.playerResponse&&g.data.playerResponse.trackingParams&&!this.vL2.playerResponse&&(r.graftServerVe(g.data.playerResponse.trackingParams,void 0,E),this.vL2.playerResponse=!0)};var uT=function(){this.fB=_.iW();this.g4=[];this.kgH=0};
uT.prototype.processChunk=function(g){if(g){for(var r=_.U(this.g4),E=r.next();!E.done;E=r.next())E=E.value,E.validate(g)&&(E.handle(g),E.hasRun=!0);_.F4("np"+this.kgH);this.kgH++}};var y_;var MxA,luI,GYI;_.G$=function(g,r,E,B,w,O,M){M=M===void 0?[]:M;this.buildCommandPayload=g;this.navigate=r;this.handleServiceRequest=E;this.sendAction=B;this.JSC$10645_screenManager=w;this.commandResolverMap=O;this.autoLogResolverAllowlist=M;this.pendingCommands=new Set;this.isTracingEnabled=!1;luI(this)};
MxA=function(g,r,E){var B=hvl,w=ZAY,O=_.pW(),M=DFn;E=E===void 0?[]:E;_.G$.instance=new _.G$(g,r,B,w,O,M,E)};
luI=function(g){if(!g.isTracingEnabled&&Fho("command")){var r=g.resolveCommand;g.resolveCommand=function(E,B){a:{for(w in E)if(Object.prototype.hasOwnProperty.call(E,w)){var w={commandType:w};break a}w={}}return CvB("command",w,r.bind(this,E,B))};
g.isTracingEnabled=!0}};
GYI=function(g,r,E){if(!g.commandResolverMap)return!1;var B=XjB(r,g.commandResolverMap);return B?((g.autoLogResolverAllowlist.some(function(w){return!!_.n(r,w)})||(E==null?0:E.forceClickLogging))&&oin(g,r,E),B instanceof Promise?B.then(function(w){w.resolve(r,E)}):B.resolve(r,E),!0):!1};
_.G$.prototype.resolveCommand=function(g,r){var E=this,B=Q9D(g);if(GYI(this,g,r))return!0;if(B)return zxn(this,g,r);if(!this.buildCommandPayload)return Khc(g,"Unhandled command by buildCommandPayload"),!1;var w=this.buildCommandPayload(g,r);if(r==null?0:r.commandController)w.commandController=r.commandController;if(w.type===0){if(!this.navigate)return x4l(g,"navigate"),!1;if(!kYT(w.command))return Khc(g,"Page requests need to specify a url"),!1;_.Y("logging_avoid_blocking_during_navigation")&&_.TGY().transition("application_navigating");
g=this.navigate(w)||[];UOD(g).then(function(){E.pendingCommands.delete(w.command)});
return!0}if(w.type===1){if(!this.handleServiceRequest)return x4l(g,"handleServiceRequest"),!1;(r==null?0:r.forceClickLogging)&&oin(this,w.command,r);g=this.handleServiceRequest(w);UOD(g).then(function(){E.pendingCommands.delete(w.command)});
return!0}if(w.type===2){if(!this.sendAction)return x4l(g,"sendAction"),!1;oin(this,w.command,r);this.sendAction(w);return!0}return!1};
var oin=function(g,r,E){if((E==null||!E.disableClickTracking)&&g.JSC$10645_screenManager)if(r.clickTrackingParams&&_.Y("log_click_with_layer_from_element_in_command_handler")){var B;E=E==null?void 0:(B=E.form)==null?void 0:B.element;g.JSC$10645_screenManager.clickCommand(r,null,E&&E.getScreenLayer&&E.getScreenLayer())}else r.clickTrackingParams?g.JSC$10645_screenManager.clickCommand(r):!_.Y("disable_clicked_visual_element_in_command_handler")&&(E==null?0:E.clickedVisualElement)&&_.Uk(g.JSC$10645_screenManager,
E.clickedVisualElement)},Q9D=function(g){var r=!!_.n(g,_.D$),E;
g=((E=_.n(g,_.Gn))==null?void 0:E.signal)==="CLIENT_SIGNAL";return r||g},zxn=function(g,r,E){var B=_.n(r,_.D$);
if(B)var w=(B==null?void 0:B.commands)||[];else{var O;if(((O=_.n(r,_.Gn))==null?void 0:O.signal)==="CLIENT_SIGNAL"){var M;w=((M=_.n(r,_.Gn))==null?void 0:M.actions)||[]}}if(w){r=_.U(w);for(w=r.next();!w.done;w=r.next()){w=w.value;try{g.resolveCommand(w,E)}catch(u){u instanceof Error&&_.tn(u)}}return!0}Khc(r,"Could not handle the meta command");return!1},kYT=function(g){var r;
return!((r=_.n(g==null?void 0:g.commandMetadata,_.dU))==null||!r.url)};var lT=function(){Zc.apply(this,arguments)};
_.f(lT,Zc);lT.prototype.validate=function(g){var r,E;return!this.hasRun&&!!((r=g.data.response)==null?0:(E=r.onResponseReceivedEndpoints)==null?0:E.length)};
lT.prototype.handle=function(g){var r=_.G$.instance;g=_.U(g.data.response.onResponseReceivedEndpoints);for(var E=g.next();!E.done;E=g.next())r.resolveCommand(E.value)};var H4w,pdw,Y_A;
H4w=function(){this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.lq();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.Di=function(){pdw||(pdw=new H4w);return pdw};
Y_A=function(){var g=_.Di();g.miniplayerButtonActivation=!1;g.userActivation=!1;g.playlistWatchPageActivation=!1;g.productDetailsPageActivation=!1;g.miniAppPageActivation=!1;g.playablesDestPageActivation=!1;g.lockupActivation=!1;g.showMiniplayerCommandActivation=!1;g.playlistSuggestionsShelfActivation=!1;g.mediaSessionPipActivation=!1;g.watchPipActivation=!1;g.watchWhileActivation=!1;g.shortsPipActivation=!1};
_.RxT=function(){var g=_.Di(),r=g.mediaSessionPipActivation,E=g.watchPipActivation,B=g.watchWhileActivation,w=g.playlistWatchPageActivation,O=g.lockupActivation,M=g.showMiniplayerCommandActivation,u=g.navigatingAwayFromWatchDeletedVideo,l=g.shortsPipActivation,Q=g.playlistSuggestionsShelfActivation,z=g.productDetailsPageActivation,k=g.miniAppPageActivation,H=g.playablesDestPageActivation;return!g.miniplayerButtonActivation&&!w&&!Q&&!z&&!k&&!H&&!O&&!M&&!r&&!E&&!B&&!l||u};var lOP;_.oH=dX("FEwhat_to_watch","/",3854);_.DwV=dX("FEdownloads","/feed/downloads",42352);lOP=dX("FEmusic_offline","browse/FEmusic_offline",42352);var hj=function(g,r){r=r===void 0?[]:r;var E=E===void 0?[]:E;r=OxS.apply(null,[UED.apply(null,_.jW(r))].concat(_.jW(E)));this.store=ltS(g,void 0,r)};
hj.prototype.getState=function(){return this.store.getState()};
hj.prototype.dispatch=function(g){return this.store.dispatch(g)};
hj.prototype.subscribe=function(g){return this.store.subscribe(g)};
hj.prototype.replaceReducer=function(g){return this.store.replaceReducer(g)};
hj.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.Gm=function(g,r,E){var B=r(g.getState());return g.subscribe(function(){var w=r(g.getState());if(w!==B){var O=B;B=w;E(w,O)}})};var PzA;_.za=function(g,r,E){return _.Bs({type:"REPLACE_ENTITY",payload:{entityPayload:E,entityType:g,key:r}})};
PzA=function(g){return _.Bs({type:"REPLACE_ENTITIES",payload:g})};
_.C0=function(g,r,E,B){return _.Bs({type:"UPDATE_ENTITY",payload:{entityPayload:E,entityType:g,key:r,mergeOption:B}})};var T8Y=function(g){var r=this;g=g===void 0?[]:g;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;g.forEach(function(E){r.append(E)})};
_.S=T8Y.prototype;_.S.getLength=function(){return this.totalLength};
_.S.append=function(g){var r=this.arrays.length===0?!1:(r=this.arrays[this.arrays.length-1])&&r.buffer===g.buffer&&r.byteOffset+r.length===g.byteOffset;r?(r=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(r.buffer,r.byteOffset,r.length+g.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(g);this.totalLength+=g.length};
_.S.split=function(g){for(var r=new T8Y,E=new T8Y,B=_.U(this.arrays),w=B.next();!w.done;w=B.next())w=w.value,g>=w.length?(r.append(w),g-=w.length):g?(r.append(new Uint8Array(w.buffer,w.byteOffset,g)),E.append(new Uint8Array(w.buffer,w.byteOffset+g,w.length-g)),g=0):E.append(w);return{headView:r,tailView:E}};
_.S.extract=function(g,r){return this.split(g).tailView.split(r).headView};
_.S.isFocused=function(g){return g>=this.arrayPos&&g<this.arrayPos+this.arrays[this.arrayIdx].length};
_.S.focus=function(g){if(!this.isFocused(g))for(g<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=g&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var niw=function(g,r){g.focus(r);return g.arrays[g.arrayIdx][r-g.arrayPos]};(function(){var g=function(B){return new Uint8Array(B)},r=function(B){for(var w=new Uint8Array(B.length),O=0;O<B.length;O++)w[O]=B[O];
return w},E=new Uint8Array([1]);
return E.length===1&&E[0]===1?g:r})();
var VsX=Array(1024),LhL=window.TextDecoder?new TextDecoder:void 0,Zdl=window.TextEncoder?new TextEncoder:void 0;var d4Y=function(g){this.arrayView=g;this.pos=0;this.pendingTagAndType=-1},wz=function(g){var r=niw(g.arrayView,g.pos);
++g.pos;if(r<128)return r;for(var E=r&127,B=1;r>=128;)r=niw(g.arrayView,g.pos),++g.pos,B*=128,E+=(r&127)*B;return E},gCt=function(g,r){var E=g.pendingTagAndType;
for(g.pendingTagAndType=-1;g.pos+1<=g.arrayView.totalLength;){E<0&&(E=wz(g));var B=E>>3,w=E&7;if(B===r)return!0;if(B>r){g.pendingTagAndType=E;break}E=-1;switch(w){case 0:wz(g);break;case 1:g.pos+=8;break;case 2:B=wz(g);g.pos+=B;break;case 5:g.pos+=4}}return!1};var ECB=function(){this.pos=0;this.submessagePosStack=[];this.buf=v7V(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},Mr=function(g,r){r=g.pos+r;
if(!(g.buf.length>=r)){for(var E=g.buf.length*2;E<r;)E*=2;g.buf=v7V(E,g.buf.subarray(0,g.pos));g.view=new DataView(g.buf.buffer,g.buf.byteOffset,g.buf.byteLength)}},U9=function(g,r){if(r>268435455){Mr(g,4);
for(var E=r&1073741823,B=0;B<4;B++)g.view.setUint8(g.pos,E&127|128),E>>=7,g.pos+=1;r=Math.floor(r/268435456)}for(Mr(g,4);r>127;)g.view.setUint8(g.pos,r&127|128),r>>=7,g.pos+=1;g.view.setUint8(g.pos,r);g.pos+=1};for(var B3B={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},r2B={},s9m=_.U(Object.entries(B3B)),fub=s9m.next();!fub.done;fub=s9m.next()){var $Fb=_.U(fub.value),j9m=$Fb.next().value,AiA=$Fb.next().value,b4w=j9m,Ji6=AiA;Ji6&&(r2B[Ji6]=b4w)};var STl=function(g,r){g=g===void 0?{}:g;switch(r.type){case "ENTITY_LOADED":return r.payload.reduce(function(B,w){var O,M=(O=w.options)==null?void 0:O.persistenceOption;if(M&&M!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&M!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return B;if(!w.entityKey)return _.tn(Error("Ff")),B;if(w.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!w.payload)return w=new _.Rj("REPLACE entity mutation is missing a payload",{entityKey:w.entityKey}),_.tn(w),B;var u=(0,_.jn.getAnyKey)(w.payload);
return UPJ(B,u,w.entityKey,w.payload[u])}if(w.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{w=w.entityKey;try{var l=_.S9(w).entityType;u=UPJ(B,l,w);break a}catch(k){if(k instanceof Error){w=new _.Rj("Failed to deserialize entity key",{entityKey:w,originalMessage:k.message});_.tn(w);u=B;break a}throw k;}u=void 0}return u}if(w.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!w.payload)return w=new _.Rj("UPDATE entity mutation is missing a payload",{entityKey:w.entityKey}),_.tn(w),B;u=(0,_.jn.getAnyKey)(w.payload);
var Q,z;return MBD(B,u,w.entityKey,w.payload[u],(Q=w.fieldMask)==null?void 0:(z=Q.mergeOptions)==null?void 0:z.repeatedFieldsMergeOption)}return B},g);
case "REPLACE_ENTITY":var E=r.payload;return UPJ(g,E.entityType,E.key,E.entityPayload);case "REPLACE_ENTITIES":return Object.keys(r.payload).reduce(function(B,w){var O=r.payload[w];return Object.keys(O).reduce(function(M,u){return UPJ(M,w,u,O[u])},B)},g);
case "UPDATE_ENTITY":return E=r.payload,MBD(g,E.entityType,E.key,E.entityPayload,E.mergeOption);default:return g}};var qTA;var Pe4=!1,QK,zm,kQ,Ha,pn,tb6=function(g){_.f5.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!Pe4){var r,E=new Uint8Array(256),B=new Uint8Array(256);var w=1;for(r=0;r<256;r++)E[w]=r,B[r]=w,w^=w<<1^(w>>7&&283);QK=new Uint8Array(256);zm=l1(256);kQ=l1(256);Ha=l1(256);pn=l1(256);for(var O=0;O<256;O++){w=O?B[255^E[O]]:0;w^=w<<1^w<<2^w<<3^w<<4;w=w&255^w>>>8^99;QK[O]=w;r=w<<1^(w>>7&&283);var M=r^w;zm[O]=r<<24|w<<16|w<<8|M;kQ[O]=M<<24|zm[O]>>>8;Ha[O]=w<<24|kQ[O]>>>
8;pn[O]=w<<24|Ha[O]>>>8}Pe4=!0}w=l1(44);for(E=0;E<4;E++)w[E]=g[4*E]<<24|g[4*E+1]<<16|g[4*E+2]<<8|g[4*E+3];for(B=1;E<44;E++)g=w[E-1],E%4||(g=(QK[g>>16&255]^B)<<24|QK[g>>8&255]<<16|QK[g&255]<<8|QK[g>>>24],B=B<<1^(B>>7&&283)),w[E]=w[E-4]^g;this.key=w};
_.f(tb6,_.f5);
tb6.prototype.encrypt=function(g){var r=g.length;g=new Uint8Array(g.buffer.slice(g.byteOffset,g.byteOffset+r));for(var E=this.cipherBlock,B=0;B<r&&this.blockOffset<16;)g[B++]^=E[this.blockOffset++];for(var w=r-(r-B)%16;B<w;)F1w(this),g[B++]^=E[0],g[B++]^=E[1],g[B++]^=E[2],g[B++]^=E[3],g[B++]^=E[4],g[B++]^=E[5],g[B++]^=E[6],g[B++]^=E[7],g[B++]^=E[8],g[B++]^=E[9],g[B++]^=E[10],g[B++]^=E[11],g[B++]^=E[12],g[B++]^=E[13],g[B++]^=E[14],g[B++]^=E[15];if(B<r)for(F1w(this),this.blockOffset=0;B<r;)g[B++]^=
E[this.blockOffset++];return g};
var F1w=function(g){for(var r=g.key,E=g.counter[0]^r[0],B=g.counter[1]^r[1],w=g.counter[2]^r[2],O=g.counter[3]^r[3],M=3;M>=0&&!(g.counter[M]=-~g.counter[M]);M--);for(var u,l,Q=4;Q<40;)M=zm[E>>>24]^kQ[B>>16&255]^Ha[w>>8&255]^pn[O&255]^r[Q++],u=zm[B>>>24]^kQ[w>>16&255]^Ha[O>>8&255]^pn[E&255]^r[Q++],l=zm[w>>>24]^kQ[O>>16&255]^Ha[E>>8&255]^pn[B&255]^r[Q++],O=zm[O>>>24]^kQ[E>>16&255]^Ha[B>>8&255]^pn[w&255]^r[Q++],E=M,B=u,w=l;g=g.cipherBlock;M=r[40];g[0]=QK[E>>>24]^M>>>24;g[1]=QK[B>>16&255]^M>>16&255;g[2]=
QK[w>>8&255]^M>>8&255;g[3]=QK[O&255]^M&255;M=r[41];g[4]=QK[B>>>24]^M>>>24;g[5]=QK[w>>16&255]^M>>16&255;g[6]=QK[O>>8&255]^M>>8&255;g[7]=QK[E&255]^M&255;M=r[42];g[8]=QK[w>>>24]^M>>>24;g[9]=QK[O>>16&255]^M>>16&255;g[10]=QK[E>>8&255]^M>>8&255;g[11]=QK[B&255]^M&255;M=r[43];g[12]=QK[O>>>24]^M>>>24;g[13]=QK[E>>16&255]^M>>16&255;g[14]=QK[B>>8&255]^M>>8&255;g[15]=QK[w&255]^M&255};var exn=!1;(function(){var g=function(B){return new Uint8Array(B)},r=function(B){for(var w=new Uint8Array(B.length),O=0;O<B.length;O++)w[O]=B[O];
return w},E=new Uint8Array([1]);
return E.length===1&&E[0]===1?g:r})();
var YQ;var K1U=function(g){a:{if(!exn&&!Zx){if(YQ){var r=YQ;break a}YQ=(r=window.crypto)==null?void 0:r.subtle;var E,B,w;if(((E=YQ)==null?0:E.importKey)&&((B=YQ)==null?0:B.sign)&&((w=YQ)==null?0:w.encrypt)){r=YQ;break a}YQ=void 0}r=void 0}r&&(this.nativeEncryptor=new W1D(g,r));this.encryptorPolyfill=new CeU(g)};
K1U.prototype.encrypt=function(g,r){var E=this,B;return _.q(function(w){switch(w.nextAddress){case 1:if(!E.nativeEncryptor){w.jumpTo(2);break}_.qN(w,3);return _.D(w,E.nativeEncryptor.encrypt(g,r),5);case 5:return w.return(w.yieldResult);case 3:B=_.G2(w),_.el(B),exn=!0,E.nativeEncryptor=void 0;case 2:return w.return(E.encryptorPolyfill.encrypt(g,r))}})};
var W1D=function(g,r){this.JSC$10718_aesKey=g;this.subtleCrypto=r};
W1D.prototype.encrypt=function(g,r){var E=this,B;return _.q(function(w){if(w.nextAddress==1)return _.qN(w,2),_.D(w,xFn(E,g,r),4);if(w.nextAddress!=2)return w.return(w.yieldResult);B=_.G2(w);_.el(B);exn=!0;throw B;})};
var xFn=function(g,r,E){var B,w;return _.q(function(O){switch(O.nextAddress){case 1:if(g.cryptoKey){O.jumpTo(2);break}return _.D(O,g.subtleCrypto.importKey("raw",g.JSC$10718_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:g.cryptoKey=O.yieldResult;case 2:return B={name:"AES-CTR",counter:E,length:128},_.D(O,g.subtleCrypto.encrypt(B,g.cryptoKey,r),4);case 4:return w=O.yieldResult,O.return(new Uint8Array(w))}})},CeU=function(g){this.JSC$10721_aesKey=g};
CeU.prototype.encrypt=function(g,r){this.encryptor||(this.encryptor=new tb6(this.JSC$10721_aesKey));for(var E=this.encryptor,B=0;B<4;B++)E.counter[B]=r[B*4]<<24|r[B*4+1]<<16|r[B*4+2]<<8|r[B*4+3];E.blockOffset=16;return this.encryptor.encrypt(g)};var auU={},DPQ=TZ("yt-idb-pref-storage",{objectStores:(auU.prefs={addedAtVersion:1},auU),shared:!1,upgrade:function(g,r){r(1)&&N_(X6(g,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.RH=function(g){this.token=g};
_.RH.getInstance=function(){return _.q(function(g){return g.return(new Promise(function(r){_.dM().then(function(E){E?(_.RH.instance||(_.RH.instance=new _.RH(E)),r(_.RH.instance)):r(void 0)})}))})};
_.RH.prototype.get=function(g){var r=this,E,B,w;return _.q(function(O){if(O.nextAddress==1)return _.D(O,oCc(r.token),2);if(O.nextAddress!=3)return E=O.yieldResult,_.D(O,E.get("prefs",g),3);B=O.yieldResult;if(!B)return O.return();w=(0,_.g2)();return B.expirationTimestampMs<=w?O.return():O.return(B.value)})};
_.RH.prototype.set=function(g,r,E){E=E===void 0?31536E3:E;var B=this,w,O,M;return _.q(function(u){if(u.nextAddress==1)return w=(0,_.g2)(),O={key:g,value:r,expirationTimestampMs:w+E*1E3},_.D(u,oCc(B.token),2);M=u.yieldResult;return _.D(u,M.put("prefs",O),0)})};
_.RH.prototype.remove=function(g){var r=this,E;return _.q(function(B){if(B.nextAddress==1)return _.D(B,oCc(r.token),2);E=B.yieldResult;return _.D(B,E.delete("prefs",g),0)})};var nn={},Xdb=(nn.INVALID_ENCODER_VERSION="Invalid encoder version",nn.KEY_CREATION_FAILED="Failed to create encoder key",nn.UNKNOWN_DECODE_ERROR="Failed to decode PES data",nn.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",nn.WRONG_DATA_TYPE="Encoder cannot process the data type",nn),Dz=function(g,r){r=r===void 0?{}:r;_.Rj.call(this,Xdb[g],Object.assign({},{name:"PESEncoderError",type:g},r));this.type=g;this.level="WARNING";Object.setPrototypeOf(this,Dz.prototype)};
_.f(Dz,_.Rj);var NDn=function(){},Ium=function(g,r,E){try{return g.encodeImpl(r,E)}catch(B){kAl(B,Q4l)}},mFA=function(g,r,E){var B;
return _.q(function(w){if(w.nextAddress==1)return _.qN(w,2),_.D(w,g.decodeAsyncImpl(r,E),4);if(w.nextAddress!=2)return w.return(w.yieldResult);B=_.G2(w);kAl(B,zMc);_.Q3(w)})};
NDn.prototype.decodeAsyncImpl=function(g,r){return Promise.resolve(this.decodeImpl(g,r))};var sk=function(g,r){this.aesEncryptor=g;this.aesEncryptorAsync=r};
_.f(sk,NDn);sk.prototype.encodeImpl=function(g,r){r=HiD(r);g=(new TextEncoder).encode(JSON.stringify(g));return this.aesEncryptor.encrypt(g,r)};
sk.prototype.decodeImpl=function(g,r){if(!(g instanceof Uint8Array))throw GAA(1);var E=new TextDecoder;r=HiD(r);g=this.aesEncryptor.encrypt(g,r);return JSON.parse(E.decode(g))};
sk.prototype.decodeAsyncImpl=function(g,r){var E=this,B,w,O;return _.q(function(M){if(M.nextAddress==1){if(!(g instanceof Uint8Array))throw GAA(1);B=new TextDecoder;w=HiD(r);return _.D(M,E.aesEncryptorAsync.encrypt(g,w),2)}O=M.yieldResult;return M.return(JSON.parse(B.decode(O)))})};var pUl={accountLinkStatusEntity:u5w,booleanEntity:N5m,buttonEntity:r6w,captionTrack:ICZ,channelHandle:kED,chipEntity:tfz,commerceAcquisitionClientPayloadEntity:$JD,commerceCartListEntity:jHD,contextNoteFeedEntityPayload:PRD,contextNoteUserRatingEntityPayload:tIw,continuationTokenEntity:s2w,downloadQualityPickerEntity:DcI,downloadsPageRefreshTokenEntity:Gg4,downloadsPageViewConfigurationEntity:FTw,downloadStatusEntity:o0D,dismissState:F5D,sfvAudioItemCurrentlyPlayingEntity:YTU,emojiFountainDataEntity:dCm,
emojiCustomizationSetEntity:vT6,fakeChannel:cqn,fakePlaylist:iVb,fakePlaylistEntryCollection:LFz,fakeVideo:haw,fakeVideoDescription:ZVD,featuredProductsEntity:Tjm,flowStateEntity:OcD,iconBadgeEntity:A6T,interstitialInteractionStateEntity:Aew,likeButtonAnimationEntity:eqI,liveChatPollStateEntity:C8D,liveViewerLeaderboardChatEntryPointStateEntity:ECn,liveViewerLeaderboardPointsEntity:B3n,liveReactionsDataEntity:Tyw,logoEntity:$nD,macroMarkerEntity:WTZ,mainDownloadsLibraryEntity:Q2D,mainDownloadsListEntity:zqw,
mainPlaylistDownloadStateEntity:HUD,mainPlaylistEntity:fXb,mainPlaylistVideoEntity:$cn,mainVideoDownloadStateEntity:pSn,mainVideoEntity:J16,markersEngagementPanelSyncEntity:CZZ,markersVisibilityOverrideEntity:KTz,musicAlbumReleaseDetail:uND,musicAlbumReleaseDownloadMetadataEntity:SZw,musicAlbumRelease:qZw,musicAlbumReleaseUserDetail:lCU,musicArtistDetail:o7Z,musicArtist:D4D,musicArtistUserDetail:Go4,musicDownloadsLibraryEntity:OdI,musicLibraryEdit:QMU,musicLibraryStatusEntity:zXZ,musicPlaylist:koA,
musicPlaylistDownloadMetadataEntity:U4n,musicShare:pj6,musicTrackDetail:RXA,musicTrackDownloadMetadataEntity:Msm,musicTrack:YZI,musicTrackUserDetail:n7n,offlineOrchestrationActionWrapperEntity:m46,offlineVideoPolicy:chD,offlineVideoStreams:idw,offlineabilityEntity:YLT,orchestrationWebSamplingEntity:Rqb,pageHeaderEntity:mCz,pdpStateEntity:bnb,pinnedProductEntity:g7n,playbackData:Lhw,playerStateEntity:xcD,quantityIncrementerEntity:J6A,refresh:Vsm,saveToPlaylistListEntity:I0U,selectedChipIndexEntityPayload:aXm,
settingEntity:DCZ,stringEntity:Iwn,suggestedFeedbackChipStateEntity:XSZ,transfer:hXw,trendingOfferEntity:rh4,videoDownloadContextEntity:ZdA,videoOverviewAsyncDataEntity:glZ,videoPlaybackPositionEntity:wan,votingEntity:VfD,ytMainChannelEntity:PZZ,youchatPendingResponseEntity:Njw,ytMainDownloadedVideoEntity:n0n,ytMainVideoEntity:tYD};var ciU,L1D,kD,A2l,biV,Z4n,viA,yiw,hxw;ciU=function(g,r){this.JSC$10740_wrapped=g;this.JSC$10740_encoderRegistry=r;this.changedKeys={}};
L1D=function(g,r){a:{g=i4U(g.JSC$10740_encoderRegistry,r.version);try{var E=g.decodeImpl(r.data,r.key);break a}catch(B){kAl(B,zMc)}E=void 0}return E};
_.VbZ=function(g,r,E){return g.JSC$10740_wrapped.objectStore("EntityStore").get(r).then(function(B){if(B){if(E&&B.entityType!==E)throw Error("Gf");return L1D(g,B)}})};
kD=function(g,r,E){return E?(E=E.map(function(B){return _.VbZ(g,B,r)}),K3.all(E)):g.JSC$10740_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(r)).then(function(B){return B.map(function(w){return L1D(g,w)})})};
_.j4J=function(g,r,E){var B=wUP(r),w=i4U(g.JSC$10740_encoderRegistry,1),O=Object.assign({},r);return g.JSC$10740_wrapped.objectStore("EntityStore").get(B).then(function(M){if(M){if(M.entityType!==E)throw Error("Gf");O.entityMetadata||(M=L1D(g,M),O.entityMetadata=M.entityMetadata)}}).then(function(){var M={key:B,
entityType:E,data:Ium(w,O,B),version:1};return K3.all([g.JSC$10740_wrapped.objectStore("EntityStore").put(M),hxw(g,O,E)])}).then(function(){Z4n(g,B,E);
return B})};
A2l=function(g,r){var E=_.S9(r).entityType;return K3.all([g.JSC$10740_wrapped.objectStore("EntityStore").delete(r),yiw(g,r)]).then(function(){Z4n(g,r,E)})};
biV=function(g,r,E,B){var w=i4U(g.JSC$10740_encoderRegistry,1);return _.VbZ(g,r,B).then(function(O){if(O){O=idL(O,E);var M={key:r,entityType:B,data:Ium(w,O,r),version:1};return K3.all([g.JSC$10740_wrapped.objectStore("EntityStore").put(M),hxw(g,O,B)])}}).then(function(){Z4n(g,r,B);
return r})};
Z4n=function(g,r,E){var B=g.changedKeys[E];B||(B=new Set,g.changedKeys[E]=B);B.add(r)};
viA=function(g,r,E){var B=wUP(r);E=YTV(E);if(!E)return K3.resolve([]);E=new E(r);g=g.JSC$10740_wrapped.objectStore("EntityAssociationStore");r=[];E=_.U(E.getAssociations());for(var w=E.next();!w.done;w=E.next())r.push(g.put({parentEntityKey:B,childEntityKey:w.value}));return K3.all(r).then(function(O){return O.map(function(M){return M[1]})})};
yiw=function(g,r){return g.JSC$10740_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(r))};
hxw=function(g,r,E){var B=wUP(r);return yiw(g,B).then(function(){return viA(g,r,E)})};var dFT=function(){};
_.f(dFT,NDn);dFT.prototype.encodeImpl=function(g){return g};
dFT.prototype.decodeImpl=function(g){if(g instanceof Uint8Array)throw GAA(0);return g};var s4L=function(){this.cacheMap={};this.cacheMap[0]=new dFT;if(!_.Y("aes_pes_encoder_killswitch")){var g=this.cacheMap;try{var r=_.p3();var E=HiD(r);var B=new sk(new CeU(E),new K1U(E))}catch(w){throw g=w instanceof Error?new Dz("KEY_CREATION_FAILED",{originalMessage:w.message}):new Dz("KEY_CREATION_FAILED"),_.tn(g),g;}g[1]=B}},i4U=function(g,r){r=r===void 0?0:r;
g=g.cacheMap[r];if(!g)throw r=new Dz("INVALID_ENCODER_VERSION",{encoderVersion:r}),_.tn(r),r;return g};var GC=function(g,r){_.f5.call(this);this.token=g;this.JSC$10754_encoderRegistry=r;this.observers=[];g=new _.ED.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.p3());g.onmessage=this.handleMessage.bind(this);this.channel=g};
_.f(GC,_.f5);_.zC=function(g,r,E){var B,w,O,M;return _.q(function(u){if(u.nextAddress==1)return _.D(u,l0Y(g.token),2);if(u.nextAddress!=3)return B=u.yieldResult,_.D(u,_.cN(B,["EntityStore","EntityAssociationStore"],r,function(l){w=new ciU(l,g.JSC$10754_encoderRegistry);return E(w)}),3);
O=u.yieldResult;w&&(M=w.changedKeys,Object.keys(M).length>0&&(g.channel.postMessage(M),TDI(g,M)));return u.return(O)})};
GC.prototype.observe=function(g){var r=this;this.observers.push(g);return function(){var E=r.observers.indexOf(g);E>=0&&r.observers.splice(E,1)}};
var pzY=function(g){var r;return _.q(function(E){if(E.nextAddress==1)return _.D(E,_.zC(g,{mode:"readonly",enableRetries:!0},function(B){return B.JSC$10740_wrapped.objectStore("EntityStore").getAll()}),2);
r=E.yieldResult;return E.return(Promise.all(r.filter(function(B){return!!B}).map(function(B){var w,O;
return _.q(function(M){if(M.nextAddress==1){w=B.key;O=B.entityType;var u=mFA(i4U(g.JSC$10754_encoderRegistry,B.version),B.data,B.key);return _.D(M,u,2)}return M.return({key:w,entityType:O,data:M.yieldResult})})})))})};
GC.prototype.handleMessage=function(g){TDI(this,g.data)};
var TDI=function(g,r){g=_.U(g.observers);for(var E=g.next();!E.done;E=g.next())E=E.value,E(r)};
GC.prototype.disposeInternal=function(){this.channel.close()};
var RMS;var fn,rHD,hMo;fn={};_.gn6=(fn.mainVideoEntity="mainVideoEntityActionMetadata",fn.mainPlaylistEntity="mainPlaylistEntityActionMetadata",fn.musicTrack="musicTrackEntityActionMetadata",fn.musicPlaylist="musicPlaylistEntityActionMetadata",fn);rHD=new _.Vn("DOWNLOADS_ENTITY_TYPE_MAP");_.$D=_.qr("","downloadsPageViewConfigurationEntity");hMo=_.qr("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.wyY=_.qr("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.qr("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.qr("SMART_DOWNLOADS_ENABLED","settingEntity");_.qr("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var eMl=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var N3X=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var LMD={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var $Q,iYJ,AO4,HFJ;$Q=window;_.ac=$Q.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.EQP=$Q.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.i1;iYJ=$Q.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||n0;AO4=$Q.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||jJ6;_.Enb=$Q.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.cjn;HFJ=$Q.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||V9D;mu({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 SkL=L5A(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(g){return g}}}),PHl=L5A(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(g){return g}}}),y9L=new Map;var UJo=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],r6D;var BIT=function(g){return _.Bs({type:"SET_EPHEMERAL_ACTION",payload:g})};var whU={ephemeralAction:null};var SnT={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var J6l={sharedUi:function(g,r){g=g===void 0?SnT:g;switch(r.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},g,{animatedThumbnailEnabled:r.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},g,{inlinePreviewEnabled:r.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},g,{currentPageType:r.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},g,{currentPageSubType:r.payload});default:return g}},
a11y:DY({ephemeralAction:function(g,r){g=g===void 0?whU.ephemeralAction:g;switch(r.type){case "SET_EPHEMERAL_ACTION":return r.payload;default:return g}}})};var oQc={playlistId:"",inviteLinkURL:""};var OjD={};var RtY=DY({continuationCommand:function(g,r){g=g===void 0?OjD:g;switch(r.type){case "SET_CONTINUATION_COMMAND":return r.payload.continuationCommand;default:return g}}});var QHY={currentFormId:"",commandsMap:{}};var nQD=DY({isLeaderTab:function(g,r){g=g===void 0?!0:g;switch(r.type){case "SET_IS_LEADER_TAB":var E,B;return(B=r==null?void 0:(E=r.payload)==null?void 0:E.isLeaderTab)!=null?B:g;default:return g}}});var M6U;_.UR6=function(g){return _.Bs({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:g}})};
M6U=function(g){return _.Bs({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:g}})};var bnc=DY({isDesktopSmallWidth:function(g,r){switch(r.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return r.payload.isDesktopSmallWidth;default:return g===void 0?!1:g}},
isShortsActive:function(g,r){switch(r.type){case "SET_IS_SHORTS_ACTIVE":return r.payload.isShortsActive;default:return g===void 0?!1:g}},
isWatchWhileMode:function(g,r){switch(r.type){case "SET_IS_WATCH_WHILE_MODE":return r.payload.isWatchWhileMode;default:return g===void 0?!1:g}},
playerState:function(g,r){switch(r.type){case "SET_PLAYER_STATE":return r.payload.playerState;default:return g===void 0?-1:g}},
isFullscreen:function(g,r){switch(r.type){case "SET_IS_FULLSCREEN":return r.payload.isFullscreen;default:return g===void 0?!1:g}},
isSmallScreenSqueezeback:function(g,r){switch(r.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return r.payload.isSmallScreenSqueezeback;default:return g===void 0?!1:g}},
isShortsPipActive:function(g,r){switch(r.type){case "SET_IS_SHORTS_PIP_ACTIVE":return r.payload.isShortsPipActive;default:return g===void 0?!1:g}},
isPlaybackStarted:function(g,r){switch(r.type){case "SET_IS_PLAYBACK_STARTED":return r.payload.isPlaybackStarted;default:return g===void 0?!1:g}}});var tpS=function(){return function(g){return function(r){var E=g(r);_.OS(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[r],!0);return E}}};var qnD,Imo;qnD=new _.uF;_.wr=new _.Vn("WATCH_PLAYER_PROMISE_TOKEN");_.uGD=new _.uF;_.lKA=new _.Vn("SHORTS_PLAYER_PROMISE_TOKEN");Imo=new _.Vn("");var FYX=function(){return function(g){return function(r){r.type==="ENTITY_LOADED"&&_.rM().resolve(_.wr).then(function(E){var B;(B=E.dispatchReduxAction)==null||B.call(E,r)});
return g(r)}}};var DR6={};var sHY=DY({additionalContext:function(g,r){switch(r.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var E;return(E=r.payload)!=null?E:"";default:return g===void 0?"":g}},
impersonatedChannelUrl:function(g,r){switch(r.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var E;return(E=r.payload)!=null?E:"";default:return g===void 0?"":g}},
selectedVideoIds:function(g,r){g=g===void 0?DR6:g;switch(r.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var E={};return Object.assign({},g,(E[r.payload]=!0,E));case "VIDEO_UNSELECTED":return r=r.payload,g=Object.assign({},g),delete g[r],g;default:return g}}});var fiB=DY({parentClickTrackingParams:function(g,r){switch(r.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return r.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return g===void 0?"":g}}});var onA=function(g){return _.Bs({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:g})};var G4n={};var $Jt=DY({stepStates:function(g,r){g=g===void 0?G4n:g;switch(r.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var E=g,B=r.payload,w,O,M;g={};r={selectionStates:Object.assign({},(M=(w=E[B.stepId])==null?void 0:w.selectionStates)!=null?M:{},(g[B.token]={isSelected:B.isSelected},g)),userQuery:(O=E[B.stepId])==null?void 0:O.userQuery};w={};return Object.assign({},E,(w[B.stepId]=r,w));case "TALK_TO_RECS_UPDATE_USER_QUERY":return w=g,O=r.payload,M={selectionStates:Object.assign({},
(B=(E=w[O.stepId])==null?void 0:E.selectionStates)!=null?B:{}),userQuery:{userQuery:O.userQuery,token:O.userQueryToken}},E={},Object.assign({},w,(E[O.stepId]=M,E));default:return g}}});var Qhw,znw,HjD;Qhw=function(g){return _.Bs({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:g})};
znw=function(g){return _.Bs({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:g})};
_.fZ=function(g){return _.Bs({type:"SET_CURRENT_PAGE_TYPE",payload:g})};
_.k4b=function(g){return _.Bs({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:g})};
HjD=function(g){return _.Bs({type:"SET_CHIP_BAR_IS_STICKY",payload:g})};var kml={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"};_.phw=function(g){return _.Bs({type:"SET_PLAYER_STATE",payload:{playerState:g}})};var Yn4=[],RnD={width:0,height:0};var jHt=DY({isTheaterMode:function(g,r){g=g===void 0?_.Y("kevlar_disable_theater_mode_persistence")?!1:_.Ka("START_IN_THEATER_MODE"):g;switch(r.type){case "SET_IS_THEATER_MODE":return r.payload.isTheaterMode;default:return g}},
isWatchActive:function(g,r){switch(r.type){case "SET_IS_WATCH_ACTIVE":return r.payload.isWatchActive;default:return g===void 0?!1:g}},
isLearningJourneyActive:function(g,r){switch(r.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return r.payload.isLearningJourneyActive;default:return g===void 0?!1:g}},
isWatchFullscreen:function(g,r){switch(r.type){case "SET_IS_WATCH_FULLSCREEN":return r.payload.isWatchFullscreen;default:return g===void 0?!1:g}},
isWatchNarrowWidth:function(g,r){switch(r.type){case "SET_IS_WATCH_NARROW_WIDTH":return r.payload.isWatchNarrowWidth;default:return g===void 0?!1:g}},
isWatchRetroMode:function(g,r){switch(r.type){case "SET_IS_WATCH_RETRO_MODE":return r.payload.isWatchRetroMode;default:return g===void 0?!1:g}},
isLiveChatCollapsed:function(g,r){switch(r.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return r.payload.isLiveChatCollapsed;default:return g===void 0?!1:g}},
openEngagementPanels:function(g,r){g=g===void 0?Yn4:g;var E=[].concat(_.jW(g));switch(r.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return E.push(r.payload.panelToAdd),E;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return E.splice(E.indexOf(r.payload.panelToRemove),1),E;default:return g}},
playerState:function(g,r){switch(r.type){case "SET_PLAYER_STATE":return r.payload.playerState;default:return g===void 0?-1:g}},
watchScrollTop:function(g,r){switch(r.type){case "SET_WATCH_SCROLL_TOP":return r.payload.watchScrollTop;default:return g===void 0?0:g}},
watchWindowSize:function(g,r){g=g===void 0?RnD:g;switch(r.type){case "SET_WATCH_WINDOW_SIZE":return r.payload.watchWindowSize;default:return g}}});var nnI={feedbackTokens:[]};var A6l=DY({surveyFeedbackData:function(g,r){g=g===void 0?nnI:g;switch(r.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return r.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},g,r.payload);default:return g}}});var paP={};var WYY=void 0;_.Y("web_enable_redux_store_on_demand")||(WYY=etc());var sh6=function(g,r,E){var B=this;this.listId=g;this.JSC$10888_updateCallback=r;this.isOfflineVideoCallback=E;_.Zz().subscribe(function(){B.handleUpdate()})};
sh6.prototype.getPlaylistData=function(){var g=_.Zz().getState().entities;if(this.listId&&this.listId!=="PPSV"){var r=WMJ(g,this.listId,!0),E=_.qr(this.listId,"mainPlaylistEntity"),B,w;g=g==null?void 0:(B=g.mainPlaylistEntity)==null?void 0:(w=B[E])==null?void 0:w.title;return CTD(r,g,this.listId)}r=_.I0V(udJ(g));g=_.I0V(_.j9(g));return CTD(r.concat(g))};
sh6.prototype.getPlaylistId=function(){return this.listId};
sh6.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10888_updateCallback(this.listId,this.getPlaylistData(),{})};var jp=function(g,r,E,B){B=B===void 0?[]:B;this.JSC$10891_playlistNetworkManager=g;this.listId=r;this.JSC$10891_updateCallback=E;this.videoIds=B;this.pendingUpdates=[];this.currentIndex=0};
jp.prototype.JSC$10891_setCurrentIndex=function(g){this.currentIndex=g};
jp.prototype.setListId=function(g){this.listId=g};
var fKz=function(g,r){g.currentCreateRequest&&g.currentCreateRequest.cancel(r);g.currentUpdateRequest&&g.currentUpdateRequest.cancel(r);g.currentRefreshRequest&&g.currentRefreshRequest.cancel(r)};
jp.prototype.delete=function(){fKz(this,"PROXY DELETED")};
jp.prototype.addVideos=function(g,r,E){var B=this;E!==void 0?this.videoIds.splice.apply(this.videoIds,[E,0].concat(_.jW(g))):this.videoIds.push.apply(this.videoIds,_.jW(g));this.listId||this.currentCreateRequest?(g.forEach(function(w,O){w={addedVideoId:w,action:"ACTION_ADD_VIDEO"};E&&(w.addedVideoPosition=E+O);B.pendingUpdates.push(w)}),A6(this)):$RD(this,r.onCreateListCommand)};
var jh4=function(g,r,E,B,w){sXD(g.videoIds,r,E);r>g.currentIndex&&E<=g.currentIndex?g.JSC$10891_setCurrentIndex(g.currentIndex+1):r===g.currentIndex?g.JSC$10891_setCurrentIndex(E):r<g.currentIndex&&E>=g.currentIndex&&g.JSC$10891_setCurrentIndex(g.currentIndex-1);g.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:B,movedSetVideoIdPredecessor:w});A6(g)},$RD=function(g,r){fKz(g,"OBSOLETE");
g.currentCreateRequest=AHn(g.JSC$10891_playlistNetworkManager,r,g.videoIds);_.Y$(g.currentCreateRequest,function(){g.currentCreateRequest=void 0}).then(function(E){g.setListId(E.playlistId);
g.pendingUpdates.length>0?A6(g):bjA(g)})},A6=function(g){if(g.pendingUpdates.length!==0&&(g.currentRefreshRequest&&g.currentRefreshRequest.cancel("OBSOLETE"),!g.currentUpdateRequest&&!g.currentCreateRequest)){var r=g.pendingUpdates.splice(0,g.pendingUpdates.length);
g.currentUpdateRequest=g.JSC$10891_playlistNetworkManager.updatePlaylist(g.listId,r);_.Y$(g.currentUpdateRequest,function(){g.currentUpdateRequest=void 0}).then(function(){g.pendingUpdates.length>0?A6(g):bjA(g)}).thenCatch(function(){g.pendingUpdates.unshift.apply(g.pendingUpdates,_.jW(r))})}},bjA=function(g){g.currentRefreshRequest=_.JHA(g.JSC$10891_playlistNetworkManager,g.listId,g.currentIndex,g.videoIds[g.currentIndex]);
_.Y$(g.currentRefreshRequest,function(){g.currentRefreshRequest=void 0}).then(function(r){g.JSC$10891_updateCallback(r.playlistId,r.playlistPanelRenderer,r.autoplayRenderer)})};
jp.prototype.size=function(){return this.videoIds.length};var PoZ=function(g,r,E,B){B=B===void 0?[]:B;jp.call(this,g,r,E,B);this.JSC$10891_playlistNetworkManager=g;this.listId=r;this.JSC$10891_updateCallback=E;this.videoIds=B};
_.f(PoZ,jp);_.bT=function(g,r,E,B,w,O,M){w=w===void 0?[]:w;M=M===void 0?Tk:M;jp.call(this,g,r,E,w);this.JSC$10891_playlistNetworkManager=g;this.listId=r;this.JSC$10891_updateCallback=E;this.onAuthChange=B;this.videoIds=w;this.storage=O;this.cookieReader=M;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.Mh(_.F6,this.checkLoggedInStatusChange.bind(this),1E3)};
_.f(_.bT,jp);_.S=_.bT.prototype;_.S.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.Mh(_.F6,this.checkLoggedInStatusChange.bind(this),1E3)};
_.S.JSC$10891_setCurrentIndex=function(g){jp.prototype.JSC$10891_setCurrentIndex.call(this,g);this.store()};
_.S.delete=function(){_.F6.cancelJob(this.queueSapisIdJob);jp.prototype.delete.call(this)};
_.S.setListId=function(g){jp.prototype.setListId.call(this,g);this.store()};
_.S.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var t6m=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],FLU=["playerResponse","videoDetails"],enD=["response","currentVideoEndpoint","watchEndpoint","videoId"],WLA=["response","currentVideoEndpoint","watchEndpoint","playlistId"],CoD=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],KL6=["response","contents","twoColumnWatchNextResults","playlist","playlist"],xRn=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
aKU=["response","contents","twoColumnWatchNextResults"];var J6={},NTL=(J6.WEB_UNPLUGGED="^unplugged/",J6.WEB_UNPLUGGED_ONBOARDING="^unplugged/",J6.WEB_UNPLUGGED_OPS="^unplugged/",J6.WEB_UNPLUGGED_PUBLIC="^unplugged/",J6.WEB_CREATOR="^creator/",J6.WEB_KIDS="^kids/",J6.WEB_EXPERIMENTS="^experiments/",J6.WEB_MUSIC="^music/",J6.WEB_REMIX="^music/",J6.WEB_MUSIC_EMBEDDED_PLAYER="^music/",J6.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",J6);var sYV,AHn;sYV=function(g,r){this.networkManager=g;this.innertubeTransportService=r};
AHn=function(g,r,E){if(!_.n(r,_.CY))return _.bV(Error("Kf"));_.n(r,_.CY).videoIds=E;E={create_playlist_title:_.zn("QUEUE",void 0,"Queue")};return aiP(_.cK(g.innertubeTransportService,r,E),KYB)};
_.JHA=function(g,r,E,B){r={videoId:B,playlistId:r,playlistIndex:E};E=_.yp(aWA);return aiP(_.Pa(g.innertubeTransportService,r,E),XaA)};
sYV.prototype.updatePlaylist=function(g,r){return aiP(_.cK(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:g,actions:r}}),xJS)};var Xhn=function(g){this.storage=g},NIT;
Xhn.prototype.store=function(g,r){r=r===void 0?0:r;if(this.storage&&g.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",g),this.storage.set("TLPQindex",String(r)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(E){}};
Xhn.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
Xhn.prototype.getPlaylistId=function(){if(!this.storage)return null;var g=null;try{g=this.storage.get("TLPQplaylist")}catch(r){}return g};var inD=["navigationEndpoint","watchEndpoint","videoId"],c6J=["nextButtonVideo","watchEndpoint","videoId"];_.eN=new _.Vn("NETWORK_TOKEN");_.vK=new _.Vn("PAGE_TOKEN");_.t6=new _.Vn("PLAYLIST_TOKEN");var IKb;IKb=new _.Vn("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.Wo=new _.Vn("INNERTUBE_TRANSPORT_TOKEN");var mRA,FL,ijm,LLb,hnU,ZjZ;mRA=new Set(["ci","cr","carml"]);FL=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10938_parkedJobs=new Map;this.parkedProcessors=new Map};
_.ep=function(){FL.instance||(FL.instance=new FL);return FL.instance};
FL.prototype.onAny=function(g){return _.cHT(this,g,2)};
FL.prototype.parkOrScheduleJob=function(g,r,E,B,w){_.Wa(this,E)?_.s8().addJob(g,r,B):(w&&(g=ijm(g),LLb(this,g,r,E,w)),w=this.JSC$10938_parkedJobs.get(E),w||(this.JSC$10938_parkedJobs.set(E,[]),w=this.JSC$10938_parkedJobs.get(E)),w.push({job:g,priority:r,delay:B}))};
FL.prototype.addListener=function(g,r,E){E&&(r=ijm(r),LLb(this,r,0,g,E));E=this.parkedProcessors.get(g);E||(this.parkedProcessors.set(g,[]),E=this.parkedProcessors.get(g));E.push(r)};
FL.prototype.processSignal=function(g){if(!_.Wa(this,g)){this.inProgressSignals.add(g);var r=this.JSC$10938_parkedJobs.get(g);if(r){r=_.U(r);for(var E=r.next();!E.done;E=r.next())E=E.value,_.s8().addJob(E.job,E.priority,E.delay);this.JSC$10938_parkedJobs.delete(g)}if(r=this.parkedProcessors.get(g)){r=_.U(r);for(E=r.next();!E.done;E=r.next())E=E.value,E();this.parkedProcessors.delete(g)}this.signals.push(g);this.inProgressSignals.delete(g)}};
_.Wa=function(g,r){return mRA.has(r)||_.Ka("IS_HOMEPAGE_COLD")||_.Ka("IS_RESULTS_PAGE_COLD")||_.Ka("IS_WATCH_PAGE_COLD")?g.signals.indexOf(r)>=0:!0};
ijm=function(g){var r=!1;return function(){r||(r=!0,g())}};
LLb=function(g,r,E,B,w){if(V6A.has(B))_.s8().addJob(r,E,w);else{var O=g.compoundSignals.get(B);O&&_.s8().addJob(function(){_.Wa(g,B)||(O.isTimeoutConditionSatisfied?_.s8().addJob(r,E):O.timeoutConditionObservers.push(function(){_.s8().addJob(r,E)}))},E,w)}};
_.cHT=function(g,r,E){if(r.length>1){var B=[],w=Object.create(null);r=_.U(r);for(var O=r.next();!O.done;O=r.next())O=O.value,w[O]||(B.push(O),w[O]=!0);r=B}if(r.length===1)return r[0];O=r;B="";w=E===2?"|":"&";O.sort();O=_.U(O);for(var M=O.next();!M.done;M=O.next())B+=M.value+w;if(!g.compoundSignals.get(B)){w=0;O=[];M=_.U(r);for(var u=M.next();!u.done;u=M.next())u=u.value,w++,_.Wa(g,u)||O.push(u);(E=E===2)&&w>O.length||!E&&!O.length?g.signals.push(B):hnU(g,B,E,r,O)}return B};
hnU=function(g,r,E,B,w){var O=w.length,M=function(){E||--O===0?g.processSignal(r):ZjZ(g,r)};
w=_.U(w);for(var u=w.next();!u.done;u=w.next())g.addListener(u.value,M);g.compoundSignals.set(r,{signals:B,isOnAny:E,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});ZjZ(g,r)};
ZjZ=function(g,r){if(!_.Wa(g,r)){var E=g.compoundSignals.get(r);if(E&&!E.isTimeoutConditionSatisfied){for(var B=!1,w=0,O=0,M=_.U(E.signals),u=M.next();!u.done;u=M.next()){var l=u.value;u=!_.Wa(g,l);V6A.has(l)?B=!0:(l=g.compoundSignals.get(l))?u&&!l.isTimeoutConditionSatisfied&&(O++,E.isInitialized||l.timeoutConditionObservers.push(function(){ZjZ(g,r)})):u&&w++}E.isInitialized=!0;
E.isOnAny?B&&(E.isTimeoutConditionSatisfied=!0):w===0&&O===0&&(E.isTimeoutConditionSatisfied=!0);if(E.isTimeoutConditionSatisfied)for(E=_.U(E.timeoutConditionObservers),B=E.next();!B.done;B=E.next())B=B.value,B()}}};
FL.prototype.processSignal=FL.prototype.processSignal;FL.prototype.parkOrScheduleJob=FL.prototype.parkOrScheduleJob;FL.prototype.onAny=FL.prototype.onAny;_.vN("ytsignals.getInstance",_.ep);FL.prototype.onAny=FL.prototype.onAny;FL.prototype.parkOrScheduleJob=FL.prototype.parkOrScheduleJob;FL.prototype.processSignal=FL.prototype.processSignal;var V6A=new Set(["eop","eocs","dl","pcl"]);_.ea=new _.Vn("MINIPLAYER_SERVICE");var Cn,yHA,vn4;Cn=function(g,r,E){var B=_.mH.getInstance();if(!NIT){var w=new QyV;var O=void 0,M=_.Ca("ID_TOKEN");M&&w.isAvailable()&&(O=new $A(w,"yt-queue"+M));NIT=new Xhn(O)}w=NIT;O=_.ep();this.JSC$10945_actionRouter=B;this.pageManager=g;this.playlistManager=r;this.JSC$10945_playlistNetworkManager=E;this.storage=w;this.signals=O;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.Kn=function(){if(!yHA){var g=_.rM(),r=g.resolve(_.gM(_.vK)),E=g.resolve(_.gM(_.eN)),B=g.resolve(_.gM(_.t6));g=g.resolve(_.Wo);yHA=new Cn(r,B,new sYV(E,g))}return yHA};
vn4=function(g,r,E){if(E){var B;if(((B=g.responsePlaylistData)==null?void 0:B.playlistId)!==E)return}g.responsePlaylistData&&(E=vQX(r,g.responsePlaylistData),g.responsePlaylistData=(0,_.jn.unsafeClone)(g.responsePlaylistData),TTl(g.responsePlaylistData,E));E=g.temporaryItems.findIndex(function(w){return w.videoId===r});
E>-1&&g.temporaryItems.splice(E,1);_.xQ(g,_.aH(g,g.response?g.response.autoplayRenderer:void 0))};
_.dRT=function(g,r){if(g.responsePlaylistData){var E=dJV(r,g.responsePlaylistData);TTl(g.responsePlaylistData,E);if(g.queueProxy){var B=g.queueProxy;E<0||(B.videoIds.splice(E,1),E<B.currentIndex&&B.JSC$10891_setCurrentIndex(B.currentIndex-1),B.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:r}),A6(B))}}_.xQ(g,_.aH(g,g.response?g.response.autoplayRenderer:void 0))};
Cn.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.xQ(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
Cn.prototype.setPlaylistData=function(g,r,E){this.temporaryItems=[];this.listId=g;this.responsePlaylistData=r;_.xQ(this,_.aH(this,E))};
var TIZ=function(g){return(g==null?0:g.playlistId)?g.playlistId:"PPSV"},g1I=function(g){return g&&g.playlistId?g.playlistId==="PPSV"?!0:FMD(_.Zz().getState().entities,g.playlistId):!1};
Cn.prototype.isPlayingOfflineVideo=function(){return this.response?g1I(this.response):!1};
Cn.prototype.closeMiniplayer=function(g){var r=this.queueProxy&&this.queueProxy.size()<=1,E=_.rM().resolve(_.ea);if(!this.queueProxy||r)this.queueProxy&&this.clearQueue(),E.close(!0);else{E.pipController.getWindow()&&window.focus();r=this.responsePlaylistData;var B=this.temporaryItems.length+(r&&r.contents?r.contents.length:0);r=_.zn("QUEUE_CLEARED_UNPLURALIZED")||_.kg("QUEUE_CLEARED",B);r=_.dz(r);E=_.zn("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");B=_.zn("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.kg("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",B);var w=_.zn("MINIPLAYER_CLOSE",void 0,"Close"),O=_.zn("CANCEL",void 0,"Cancel");_.Ah(this.JSC$10945_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Lf(E),dialogMessages:[_.Lf(B)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Lf(w),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
r]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Lf(O)}}}}}}],g)}};
_.aH=function(g,r){var E={},B=g.response;E.autoplayRenderer=r;if(!g.responsePlaylistData&&!g.temporaryItems.length)return!B||!B.hasRelatedVideoData&&_.Y("kevlar_prefetch_data_augments_network_data")||(E.playerData={rvs:B.relatedVideoArgs,endScreenRenderer:B.endScreenRenderer}),E;E.playerData={};if(g.index===void 0)return _.tn(Error("Mf")),E;E.panel=g.responsePlaylistData?(0,_.jn.unsafeClone)(g.responsePlaylistData):{titleText:_.Lf(_.zn("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
r=E.panel;if(r.contents)for(var w=_.U(g.temporaryItems),O=w.next();!O.done;O=w.next())r.contents.push({playlistPanelVideoRenderer:O.value});g.queueProxy&&B&&B.playingVideo&&B.playingVideoId&&!y6J(B.playingVideoId,E.panel)&&(r=B.playingVideo,w=E.panel,O=g.index,w.contents&&w.contents.splice(O===void 0?0:O,0,{playlistPanelVideoRenderer:r}));B&&B.playingVideoId&&(r=g.index,w=E.panel,r=!w.contents||r>=w.contents.length?void 0:w.contents[r].playlistPanelVideoRenderer,r&&r.videoId===B.playingVideoId||(r=
vQX(B.playingVideoId,E.panel),g.index=r!==-1?r:g.index?g.index-1:0));r=Zno(g.index+1,E.panel);w=void 0;g.index>0&&(w=Zno(g.index-1,E.panel));if(w||r)E.autoplayRenderer=LYc(r,w,E.autoplayRenderer);!r&&(B==null?0:B.relatedVideoArgs)&&(E.playerData.rvs=B.relatedVideoArgs);B=B?B.playlistIndexOffset:0;g.queueProxy?Elt(E.panel,g.index,B,htt,!0,!0,!0):Elt(E.panel,g.index,B);E.playerData.playlistPanelRenderer=E.panel;return E};
Cn.prototype.openToast=function(g){_.rM().resolve(_.ea).openToast(g,_.zn("ADDED_TO_QUEUE",void 0,"Added to queue"))};
Cn.prototype.isMiniplayerActive=function(){return _.rM().resolve(_.ea).isMiniplayerActive()};
_.xQ=function(g,r){g.playlistManager.setAutoplayRenderer(r.autoplayRenderer||null);g.playlistManager.setPlaylistData(r.panel||null);r.playerData&&g.playlistManager.setPlayerPlaybackControlData(r.playerData)};var wPQ="#";var rKA={},E1T={},B$n={},w4A={},SVI={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:(rKA.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",rKA),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:(E1T.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",E1T),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:(B$n.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",B$n),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:(w4A.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",w4A),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 XPt=[{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:SVI},{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:SVI}}];var JmB;_.q8=[[["bHVleGNkemtpbmQjdG9ucXE=","dGZ6anM3eHZhbHVlI3hzcTJk"],"bWRyenM2c0FEX1BMQUNFTUVOVF9LSU5EX1NUQVJUI21qcDI2"]];
JmB=[[["OWdzMjlweXByaW1hcnkjbDl3OTU=",null,null],[null,["Z3R5YXdvanl0ZC10d28tY29sdW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyI3JkM3Rx","dndtZjFhb3N0eWxlLXNjb3BlI3kzY3Fy"],null],["a3c0a3o2em1hc3RoZWFkLWFkI3FndTJt",["ZjRkcWtxZnl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjMzYwNjU="],null],[null,["OHZoeG51a3l0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjbGMzMnQ=","azIyZ3h1bXN0eWxlLXNjb3BlIzUzZmE="],null],[null,["OWV1YmFuNnl0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjYjkwNGs=","OGhoOXR5OXN0eWxlLXNjb3BlI2ZmdGtj"],null],[null,["dWxoc2E3MXl0ZC1hZC1zbG90LXJlbmRlcmVyI3Y0NXN3"],
null]],[["dHk5b2JwYXBsYXllci1hZHMjam1qcnk=",null,null]]];_.M8=["eWlvMWw5NGdsb2JhbENhbGxiYWNrcyNvdnZmbQ==","Y2VsZGxiNG9uQWJub3JtYWxpdHlEZXRlY3RlZCMxYTVobA==","aHJ0bnQyeW9uQWRTa2lwI2x3NzZv","YW04NDhkbHJhd19wbGF5ZXJfcmVzcG9uc2Ujcm4xdzU=","cWQ0dnU0Y2FkU2xvdHMjemk4OXk="];_.XL="eWlvMWw5NGdsb2JhbENhbGxiYWNrcyNvdnZmbQ== Y2VsZGxiNG9uQWJub3JtYWxpdHlEZXRlY3RlZCMxYTVobA== aHJ0bnQyeW9uQWRTa2lwI2x3NzZv YW04NDhkbHJhd19wbGF5ZXJfcmVzcG9uc2Ujcm4xdzU= aTVzdWpvdXdlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcyNka2F6cQ== MmNyMWNzdWFiX3NhX2VmI3B0Mndm cWQ0dnU0Y2FkU2xvdHMjemk4OXk=".split(" ");var NJ;NJ=function(g,r,E){this.omH=g;this.isAsync=r;this.qWF=E};
_.d9L=[new NJ("b.f_",!1,0),new NJ("j.s_",!1,2),new NJ("r.s_",!1,4),new NJ("e.h_",!1,6),new NJ("i.s_",!0,8),new NJ("s.t_",!1,10),new NJ("p.h_",!1,12),new NJ("s.i_",!1,14),new NJ("f.i_",!1,16),new NJ("a.b_",!1,18),new NJ("a.o_",!1),new NJ("g.o_",!1,22),new NJ("p.i_",!1,24),new NJ("p.m_",!1),new NJ("n.k_",!0,20),new NJ("i.f_",!1),new NJ("a.s_",!0),new NJ("m.c_",!1),new NJ("n.h_",!1,26),new NJ("o.p_",!1),new NJ("m.p_",!0,28),new NJ("o.a_",!1),new NJ("d.p_",!1),new NJ("e.i_",!1)].reduce(function(g,r){g[r.omH]=
r;return g},{});var OOw=function(){};
OOw.prototype.flush=function(g,r){g=g===void 0?[]:g;r=r===void 0?!1:r;if(_.Y("enable_client_streamz_web")){g=_.U(g);for(var E=g.next();!E.done;E=g.next())E=vtm(E.value),this.rootSpec&&_.Bu(E,2,this.rootSpec),E={serializedIncrementBatch:_.gk(E.JSC$7696_serializeBinary())},_.Jn("streamzIncremented",E,{sendIsolatedPayload:r})}};
var M2A=function(){};
_.f(M2A,OOw);var UZm=function(g){var r=new c8n;var E=new Ngw;E=_.H$(E,1,"botguard");g=_.H$(E,2,g);this.rootSpec=_.ws(r,1,iDn,g)};
_.f(UZm,OOw);var SN,MKT=new Map;var eGB,uQY,pPl,olD,zGJ,AmL,CNB,$9l;eGB=2;uQY=2;pPl=2;olD=2;zGJ=2;AmL=2;CNB=2;$9l=new LrI;var u9U,lLZ,DZm;u9U=function(){this.ongoingFlowNonces=new Map};
_.oJ=function(){lLZ||(lLZ=new u9U);return lLZ};
_.lF=function(g,r,E){return{eventType:{flowEventNamespace:g,flowEventType:r},metadata:E,statusCode:void 0,csn:void 0,can:void 0}};
_.g8V=function(g,r){var E=_.oJ(),B=DZm(E,r,!0);_.D1(E,g,r,B)};
_.D1=function(g,r,E,B){g={flowNonce:B||DZm(g,E),flowType:E,flowEventType:r.eventType};r.metadata&&(g.flowMetadata=r.metadata);r.statusCode!==void 0&&(g.flowEventStatus=r.statusCode);r.csn&&(g.csn=r.csn);r.can&&(g.can=r.can);_.Jn("flowEvent",g,void 0)};
DZm=function(g,r,E){E=E===void 0?!1:E;var B=g.ongoingFlowNonces.get(r);if(!B||E)B=AF(16),g.ongoingFlowNonces.set(r,B);return B};_.o1T=new i$n;var wYJ={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch"};var IH=function(g,r,E,B,w,O,M){E=E===void 0?!1:E;B=B===void 0?!1:B;O=O===void 0?_.Kn():O;this.hasRun=!1;this.qX2=g;this.zHd=r;this.ajV=E;this.fromHistory=B;this.previousVideoId=w;this.us7=O;this.tempData=M;this.teJ=new _.VWn};
_.f(IH,Zc);IH.prototype.validate=function(g){return!(!g.data.playerResponse||g.data.page!=="watch"&&g.data.page!=="learning_journey_watch"&&g.data.page!=="shorts"||this.hasRun)};
IH.prototype.handle=function(g){var r=this,E=_.n(g.endpoint,_.LM),B=_.n(g.endpoint,_.sP);if(_.Y("kevlar_continue_playback_without_player_response")&&(E==null?0:E.videoId)&&this.previousVideoId&&(E==null?void 0:E.videoId)===this.previousVideoId&&(E==null?0:E.continuePlayback)&&!this.fromHistory)this.qX2.resolve();else{var w={};E?w.watch_endpoint=E:B&&(w.watch_endpoint=B,B.endTimeSeconds&&(w.end=B.endTimeSeconds));g.data.page==="watch"?(g.data.filler||this.ajV||(_.eh("cfg"),_.mH.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(w,GVz(this,g.endpoint)),_.Y("enable_masthead_quartile_ping_fix")&&Object.assign(w,QZZ(this)),Object.assign(w,void 0),g.data.forceExternalPlaylist&&(w.external_list=!0)):g.data.page==="shorts"?_.mH.getInstance().triggerAction("yt-start-loading-shorts"):g.data.page==="learning_journey_watch"&&_.mH.getInstance().triggerAction("yt-start-loading-learning-journey");if(E=this.zHd()){try{E.loadVideoWithPlayerResponse(g.data.playerResponse,w),E.getPlayerPromise().then(this.qX2.resolve)}catch(O){_.tn(O),
this.qX2.resolve()}this.hasRun=!0;E.getPlayerPromise().then(function(O){O.addEventListener("onAbnormalityDetected",function(){var M=g.data.playerResponse,u=O.getVideoData().cpn;CNB=0;_.qV6=u;if(u=vll(M))r.teJ.increment("IN_PLAYER"),_.GF(5),_.Y("ab_st_vid_ks")?O.pauseVideo(!0):O.stopVideo(),M.playabilityStatus=Object.assign({},M.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:u}}),M.videoDetails=void 0,_.mH.getInstance().triggerOptionalAction("yt-updated-playability-status",
M.playabilityStatus)})})}else _.el(Error("Pf"))}};
var GVz=function(g,r){var E=_.n(r,_.LM);if(r&&E&&E.playlistId&&E.videoId&&(g=g.us7,g.queueProxy?(g=g.queueProxy,E=g.listId===E.playlistId?g.attributionData.get(E.videoId):void 0):E=void 0,E))return{queue_info:E}},QZZ=function(g){var r;
if((r=g.tempData)==null?0:r.adpings)return{adpings:g.tempData.adpings}};var mY=function(g,r,E){this.hasRun=!1;this.kcB=g;this.m0V=r;this.nSE=E};
_.f(mY,Zc);mY.prototype.validate=function(g){return!!_.jn.getValueByKeys.apply(null,[g.data].concat(_.jW(aKU)))};
mY.prototype.handle=function(g){var r=this;this.kcB.promise.then(function(){var E=g.data;var B=_.jn.getValueByKeys.apply(null,[E].concat(_.jW(t6m))),w=_.jn.getValueByKeys.apply(null,[E].concat(_.jW(KL6))),O=_.jn.getValueByKeys.apply(null,[E].concat(_.jW(enD)));var M=(M=_.jn.getValueByKeys.apply(null,[E].concat(_.jW(FLU))))?{videoId:M.videoId,thumbnail:M.thumbnail,title:M.title?_.Lf(M.title):void 0,shortBylineText:M.author?_.Lf(M.author):void 0}:void 0;var u=void 0;_.Y("web_get_playlist_id_from_current_endpoint_ks")||
(u=_.jn.getValueByKeys.apply(null,[E].concat(_.jW(WLA))));var l=_.jn.getValueByKeys.apply(null,[E].concat(_.jW(xRn))),Q=_.jn.getValueByKeys.apply(null,[E].concat(_.jW(CoD))),z=!!l||!!Q&&!!Q.results&&Q.results.length>0,k=0;w&&w.currentIndex&&w.localCurrentIndex&&(k=w.currentIndex-w.localCurrentIndex);w&&w.playlistId&&(u=w.playlistId);E={rawResponse:E,autoplayRenderer:B,hasRelatedVideoData:z,playingVideo:M,playingVideoId:O,playlistPanelRenderer:w,playlistId:u,playlistIndex:w&&w.currentIndex,relatedVideoArgs:l,
endScreenRenderer:Q,playlistIndexOffset:k};a:{B=r.nSE;w=r.m0V;B.response=E;if(g1I(E))B.downloadPlaylistProxy&&B.downloadPlaylistProxy.getPlaylistId()===TIZ(E)||(B.downloadPlaylistProxy=new sh6(TIZ(E),B.setPlaylistData.bind(B),B.isPlayingOfflineVideo.bind(B))),B.responsePlaylistData=B.downloadPlaylistProxy.getPlaylistData(),B.listId=TIZ(E),B.index=0;else if(E.playlistPanelRenderer&&E.playlistId&&E.autoplayRenderer)E.playlistId.startsWith("TLPQ")?B.queueProxy?B.listId===E.playlistId?(B.index=E.playlistIndex,
B.responsePlaylistData=E.playlistPanelRenderer,B.queueProxy.JSC$10891_setCurrentIndex(B.index)):E.playingVideoId&&B.index!==void 0&&w.clientParams.autoSaveToQueue&&(B.index+=1,B.queueProxy.JSC$10891_setCurrentIndex(B.index),B.queueProxy.addVideos([E.playingVideoId],{},B.index)):(B.queueProxy=new _.bT(B.JSC$10945_playlistNetworkManager,E.playlistId,B.setPlaylistData.bind(B),B.clearQueue.bind(B),_.glY(E.playlistPanelRenderer),B.storage),B.responsePlaylistData=E.playlistPanelRenderer,B.listId=E.playlistId,
B.index=E.playlistIndex):(B.index=E.playlistIndex,B.listId!==E.playlistId&&B.clearQueue(),B.responsePlaylistData=E.playlistPanelRenderer,B.listId=E.playlistId,B.playlistProxy=new PoZ(B.JSC$10945_playlistNetworkManager,E.playlistId,B.setPlaylistData.bind(B),_.glY(E.playlistPanelRenderer)));else if(!B.queueProxy)B.responsePlaylistData=void 0;else if(E.playingVideoId&&w.clientParams.autoSaveToQueue){if(B.index===void 0){_.tn(Error("Lf"));B.clearQueue();break a}B.queueProxy.videoIds.includes(E.playingVideoId)||
(B.index+=1,B.queueProxy.JSC$10891_setCurrentIndex(B.index),B.queueProxy.addVideos([E.playingVideoId],{},B.index))}_.xQ(B,_.aH(B,B.response.autoplayRenderer))}})};var zCw=function(g,r){r=r===void 0?_.Kn():r;uT.call(this);this.g4.push(new mY(this.fB,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},r));this.g4.push(new IH(this.fB,g,!1,!1));_.Y("web_response_commands_chunk_processor")&&this.g4.push(new lT)};
_.f(zCw,uT);zCw.prototype.processChunk=function(g){g&&g.data.player===void 0&&this.fB.resolve();uT.prototype.processChunk.call(this,g)};var ca=function(g,r){g=g===void 0?{layer:0}:g;this.hasRun=!1;this.createScreenConfig=g;this.cyi=r};
_.f(ca,Zc);ca.prototype.validate=function(g){return!(this.hasRun||!g.endpoint)};
ca.prototype.handle=function(g){var r=_.pW(),E,B,w=(B=_.n((E=g.endpoint)==null?void 0:E.commandMetadata,_.dU))==null?void 0:B.rootVe;this.cyi&&w?_.wT(r,w,this.cyi,this.createScreenConfig):S_6(r,g.endpoint,this.createScreenConfig);this.hasRun=!0};var iT=function(g,r){this.hasRun=!1;this.mXm=g;this.previousVideoId=r};
_.f(iT,Zc);iT.prototype.validate=function(g){return _.Y("kevlar_continue_playback_without_player_response")&&(g=_.n(g.endpoint,_.LM),(g==null?0:g.videoId)&&this.previousVideoId&&(g==null?void 0:g.videoId)===this.previousVideoId&&(g==null?0:g.continuePlayback))?!1:this.mXm.kgH===0};
iT.prototype.handle=function(g){_.mH.getInstance().triggerAction("yt-stop-old-player",g.data,!0)};var kVZ=function(g){g=g===void 0?{layer:0}:g;uT.call(this);this.g4.push(new iT(this));this.g4.push(new ca(g));this.g4.push(new qJ(g))};
_.f(kVZ,uT);var HOA=function(){this.hasRun=this.hasRun=!1};
_.f(HOA,Zc);HOA.prototype.validate=function(g){return!this.hasRun&&!(!g.data.csn||!g.data.rootVe)};
HOA.prototype.handle=function(g){this.hasRun=!0;_.Fp(g.data.csn,g.data.rootVe,3)};var p4D=function(){Zc.apply(this,arguments)};
_.f(p4D,Zc);p4D.prototype.validate=function(g){return!!g.data.preconnect};
p4D.prototype.handle=function(g){_.F4("bc");g=_.U(g.data.preconnect);for(var r=g.next();!r.done;r=g.next())r=r.value,(new Image).src=r};var YVn=function(g,r,E){E=E===void 0?{layer:0}:E;uT.call(this);this.g4.push(new IH(this.fB,g));this.g4.push(new ca(E));this.g4.push(new qJ(E))};
_.f(YVn,uT);var RCU=function(g,r,E,B,w){E=E===void 0?{layer:0}:E;B=B===void 0?_.Kn():B;uT.call(this);var O=!!r&&!!r.clientParams&&!!r.clientParams.miniplayer;O&&this.g4.push(new HOA);this.g4.push(new mY(this.fB,r,B));this.g4.push(new p4D);var M,u;this.g4.push(new IH(this.fB,g,O,!((M=r.clientParams)==null||!M.fromHistory),(u=r.clientParams)==null?void 0:u.previousVideoId,B,r.tempData));var l;this.g4.push(new iT(this,(l=r.clientParams)==null?void 0:l.previousVideoId));var Q;(Q=r.clientParams)!=null&&Q.fromHistory||
(E.layer||(E=Object.assign({},E,{layer:O?3:0})),this.g4.push(new ca(E,w)),this.g4.push(new qJ(E)));_.Y("web_response_commands_chunk_processor")&&this.g4.push(new lT)};
_.f(RCU,uT);var Ln,fL4;Ln={};
_.n16=(Ln["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Ln["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Ln["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Ln["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Ln["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Ln["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Ln["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Ln);_.VK=new _.xR("yt-edu");_.sZn=function(){this.JSC$11046_eduDisplayedThisLoad_={}};
fL4=function(g){var r=_.sZn.getInstance();var E=_.wM("kevlar_tooltip_impression_cap");r=E&&parseInt(_.VK.get(g+"-impression")||0,10)>=E||_.VK.get(g+"-dismissed")?!1:(E=_.n16[g])&&!r.JSC$11046_eduDisplayedThisLoad_[E.setKey||g]&&(E.titleText&&_.zn(E.titleText)||E.bodyText&&_.zn(E.bodyText))?!0:!1;if(!r)return null;r=_.n16[g];if(!r)return null;E=r.bodyText?_.zn(r.bodyText):void 0;var B=r.titleText?_.zn(r.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:r.position,popup:{bubbleHintRenderer:{text:B?
_.Lf(B):void 0,detailsText:E?_.Lf(E):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Lf(_.zn("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:g}}]}}}}}}}},{eduImpressionAction:{key:g}}]};
_.vv(_.sZn);var r0c=!1;for(var $Z4="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),jZT=[],h6=6;h6>=1;h6--)jZT.push({columnCount:h6,query:h6==1?0:h6*2*107-4+32,className:"grid-"+h6+"-columns",width:h6*2*107+"px"});_.bOm=function(g){this.actionRouter_=g=g===void 0?_.mH.getInstance():g;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.AKA(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.AKA=function(g){var r=g.miniGuideVisible_?72:0,E=g.documentWidth_-(g.guidePersistentAndVisible_?240:r);return jZT.find(function(B){return E>B.query})};
_.vv(_.bOm);var JKT=function(){var g=this;this.JSC$11058_keyboardInUse=!1;document.addEventListener("keydown",function(){g.onKeydown()});
document.addEventListener("mousedown",function(){g.JSC$11058_keyboardInUse=!1})},PIm;
JKT.prototype.isKeyBoardInUse=function(){return this.JSC$11058_keyboardInUse};
JKT.prototype.onKeydown=function(){this.JSC$11058_keyboardInUse=!0};var tK4,va;_.Zi=new _.xR("yt-mentions");_.yK=function(){};
tK4=function(g,r){return va(r,"drag-to-reorder-edu-displayed")};
va=function(g,r,E,B,w,O){E=E===void 0?"OPEN_POPUP_POSITION_TOP":E;if(r){if(_.Zi.get(r))return;_.Zi.set(r,!0,B)}if(w&&O!==void 0){r=Number(_.Zi.get(w)||0);if(r>=O)return;_.Zi.set(w,r+1)}return[{openPopupAction:{popupType:"HINT",position:E,popup:{bubbleHintRenderer:{detailsText:g,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.vv(_.yK);var Fon,eCU,WoZ;Fon=function(g,r,E,B){this.JSC$11068_taskManager_=g;this.onFulfilled_=typeof r==="function"?r:null;this.onRejected_=typeof E==="function"?E:null;this.JSC$11068_context_=B};
eCU=function(g,r){g.onFulfilled_&&_.pm(g.JSC$11068_taskManager_,function(){g.onFulfilled_.call(g.JSC$11068_context_,r)})};
WoZ=function(g,r){g.onRejected_&&_.pm(g.JSC$11068_taskManager_,function(){g.onRejected_.call(g.JSC$11068_context_,r)})};
_.dT=function(g){this.JSC$11071_taskManager_=g;this.callbacks_=[]};
_.dT.prototype.then=function(g,r,E){this.callbacks_.push(new Fon(this.JSC$11071_taskManager_,g,r,E));return this};
_.dT.prototype.onSuccess=function(g){this.callbacks_.forEach(function(r){eCU(r,g)})};
_.dT.prototype.onFailure=function(g){this.callbacks_.forEach(function(r){WoZ(r,g)})};
_.dT.prototype.cancel=function(){this.callbacks_.length=0};
gUA(_.dT);_.OoX=null;_.PK=new _.Vn("ACTIVITY_TOKEN");var Tm=function(g,r){this.serviceId=new ddn(g,r)};
Tm.prototype.toString=function(){return this.serviceId.toString()};var CI6=function(){this.internalMap={}};
_.S=CI6.prototype;_.S.contains=function(g){return Object.prototype.hasOwnProperty.call(this.internalMap,g)};
_.S.get=function(g){if(this.contains(g))return this.internalMap[g]};
_.S.set=function(g,r){this.internalMap[g]=r};
_.S.getKeys=function(){return Object.keys(this.internalMap)};
_.S.remove=function(g){delete this.internalMap[g]};var gV=function(){this.mappings=new CI6;this.errorCallbacks=new Set};
gV.prototype.getModuleId=function(g){return g.serviceId.getModuleId()};
gV.prototype.get=function(g){var r=this.mappings.get(g.toString());return KoU(this,r,g)};
gV.prototype.getMultipleAsync=function(){var g=_.fI.apply(0,arguments),r=this,E=g.map(function(l){return r.getModuleId(l)}),B=g.map(function(l){return r.mappings.get(l.toString())}).filter(function(l){return l});
if(B.length===g.length)return _.lq(B.map(function(l,Q){return KoU(r,l,g[Q])}));
var w=PT().loadMultiple(E);B=_.pc(E.map(function(l){return w[l]}));
var O=document.hidden,M=-1,u=_.wM("get_async_timeout_ms",-1);u>-1&&(M=setTimeout(function(){_.el(new _.Rj("Module timeout.",E,O,document.hidden))},u));
return _.Y$(B.then(function(){return g.map(function(l){return KoU(r,r.mappings.get(l.toString()),l)})}).thenCatch(function(l){for(var Q=_.U(r.errorCallbacks),z=Q.next();!z.done;z=Q.next())z=z.value,z(l);
throw l;}),function(){clearTimeout(M)})};
gV.prototype.registerService=function(g,r){this.mappings.set(g.toString(),{type:"mapping",value:r});return g};
var KoU=function(g,r,E){switch(r.type){case "mapping":return r.value;case "factory":return r=r.value(),g.mappings.set(E.toString(),{type:"mapping",value:r}),r;default:return _.MM(r)}};
gV.prototype.onLoadError=function(g){var r=this;this.errorCallbacks.add(g);return function(){r.errorCallbacks.delete(g)}};
_.rV=new gV;var lWL=/^[a-zA-Z0-9_\-]{11}$/;var DVo=_.Gk(function(){var g,r;return(r=(g=window).matchMedia)==null?void 0:r.call(g,"(prefers-reduced-motion: reduce)").matches});var xZT=_.Gk(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 g=_.XS("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");g||(g=_.HT("VIDEO"),_.vN("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
g));return!!(g&&g.canPlayType&&g.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var HoA=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var EC;EC=function(){this.tokenJars={};if(this.cookiesEnabled=_.HN()){var g=_.zZ.get("CONSISTENCY",void 0);g&&aLn(this,{encryptedTokenJarContents:g})}};
_.Y5J=function(){EC.instance||(EC.instance=new EC);return EC.instance};
EC.prototype.handleResponse=function(g,r){if(!r)throw Error("Vf");var E,B;r=((E=r.innerTubeRequest.context)==null?void 0:(B=E.request)==null?void 0:B.consistencyTokenJars)||[];var w;(g=(w=g.responseContext)==null?void 0:w.consistencyTokenJar)&&this.replace(r,g)};
EC.prototype.replace=function(g,r){g=_.U(g);for(var E=g.next();!E.done;E=g.next())delete this.tokenJars[E.value.encryptedTokenJarContents];aLn(this,r)};
var aLn=function(g,r){if(r.encryptedTokenJarContents&&(g.tokenJars[r.encryptedTokenJarContents]=r,typeof r.expirationSeconds==="string")){var E=Number(r.expirationSeconds);setTimeout(function(){delete g.tokenJars[r.encryptedTokenJarContents]},E*1E3);
g.cookiesEnabled&&_.kA("CONSISTENCY",r.encryptedTokenJarContents,E,void 0,!0)}};var X46,BP;X46=window.location.hostname.split(".").slice(-2).join(".");_.tO=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var g=_.Ca("LOCATION_PLAYABILITY_TOKEN");_.Ca("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=N$w(this))&&(g=this.localStorage.get("yt-location-playability-token"));g&&(this.locationPlayabilityToken=g,this.mostRecentPosition=void 0)};
_.tO.getInstance=function(){BP=_.XS("yt.clientLocationService.instance");BP||(BP=new _.tO,_.vN("yt.clientLocationService.instance",BP));return BP};
_.tO.prototype.setLocationOnInnerTubeContext=function(g){g.client||(g.client={});if(this.mostRecentPosition)g.client.locationInfo||(g.client.locationInfo={}),g.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),g.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),g.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),g.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)g.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.tO.prototype.handleResponse=function(g){var r;g=(r=g.responseContext)==null?void 0:r.locationPlayabilityToken;g!==void 0&&(this.locationPlayabilityToken=g,this.mostRecentPosition=void 0,_.Ca("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=N$w(this))&&this.localStorage.set("yt-location-playability-token",g,15552E3):_.kA("YT_CL",JSON.stringify({loctok:g}),15552E3,X46,!0))};
var N$w=function(g){return g.localStorage===void 0?new _.xR("yt-client-location"):g.localStorage};
_.tO.prototype.clearLocationPlayabilityToken=function(g){g==="TVHTML5"?(this.localStorage=N$w(this))&&this.localStorage.remove("yt-location-playability-token"):_.UuY("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.tO.prototype.getCurrentPositionFromGeolocation=function(){var g=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Wf"));var r=!1,E=1E4;_.Ca("INNERTUBE_CLIENT_NAME")==="MWEB"&&(r=!0,E=15E3);return new Promise(function(B,w){navigator.geolocation.getCurrentPosition(function(O){g.mostRecentPosition=O;B(O)},function(O){w(O)},{enableHighAccuracy:r,
maximumAge:0,timeout:E})})};
_.tO.prototype.createUnpluggedLocationInfo=function(g){var r={};g=g.coords;if(g==null?0:g.latitude)r.latitudeE7=Math.floor(g.latitude*1E7);if(g==null?0:g.longitude)r.longitudeE7=Math.floor(g.longitude*1E7);if(g==null?0:g.accuracy)r.locationRadiusMeters=Math.round(g.accuracy);return r};
_.tO.prototype.createLocationInfo=function(g){var r={};g=g.coords;if(g==null?0:g.latitude)r.latitudeE7=Math.floor(g.latitude*1E7);if(g==null?0:g.longitude)r.longitudeE7=Math.floor(g.longitude*1E7);return r};var ILz=function(){};
_.S=ILz.prototype;
_.S.JSC$11138_getRequest=function(g,r,E){r=r===void 0?{}:r;E=E===void 0?w8m:E;var B=r;if(this.isNavigationCommand()){var w,O=(w=_.n(g==null?void 0:g.commandMetadata,_.dU))==null?void 0:w.url;B=_.RLL(g.clickTrackingParams,!0,!1,O,this.JSC$11138_getClientScreen(B))}else B=_.RLL(g.clickTrackingParams,!1,this.includeCsn);B={context:B};if(w=this.getExtension(g))return this.JSC$11138_buildRequest(B,w,r),w=this.getApiUrl(g),O=Object.assign({},{command:g},this.getRequestConfig(g,r)),B={input:w,requestShell:mx(w),
innerTubeRequest:B,config:O},B.config.authStrategy?B.config.authStrategy.identity=E:B.config.authStrategy={identity:E},(g=this.JSC$11138_getRequestKey(g,r))&&!B.config.requestKey&&(B.config.requestKey=g),B;g=new _.Rj("Error: Failed to create Request from Command.",g);_.tn(g)};
_.S.getApiUrl=function(g){var r=_.yp(this.getApiPaths(g)),E;(g=(E=_.n(g.commandMetadata,_.dU))==null?void 0:E.apiUrl)&&(r=g);return v$Y(yet(r))};
_.S.isNavigationCommand=function(){return!1};
_.S.JSC$11138_getClientScreen=function(){};
_.S.JSC$11138_getRequestKey=function(){};
_.S.getRequestConfig=function(){};
_.hx.Object.defineProperties(ILz.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var wV=function(){};
_.f(wV,ILz);wV.prototype.JSC$11145_getStoreKey=function(){};
wV.prototype.JSC$11138_getRequestKey=function(g,r){r=r===void 0?{}:r;return this.JSC$11145_getStoreKey(g,r)};var cK4;_.S2=function(g,r,E){var B=E&&E>0?E:0;E=B?Date.now()+B*1E3:0;if((B=B?(0,_.mZD)():cK4())&&window.JSON){typeof r!=="string"&&(r=JSON.stringify(r,void 0));try{B.set(g,r,E)}catch(w){B.remove(g)}}};
_.OC=function(g){var r=cK4(),E=(0,_.mZD)();if(!r&&!E||!window.JSON)return null;try{var B=r.get(g)}catch(w){}if(typeof B!=="string")try{B=E.get(g)}catch(w){}if(typeof B!=="string")return null;try{B=JSON.parse(B,void 0)}catch(w){}return B};
_.UC=function(g){try{var r=cK4(),E=(0,_.mZD)();r&&r.remove(g);E&&E.remove(g)}catch(B){}};
_.mZD=_.Gk(function(){try{var g=new GrQ;var r=g.isAvailable()?g:null}catch(E){return null}return r?new _.wU(r):null});
cK4=_.Gk(function(){var g=new QyV;return g.isAvailable()?new _.wU(g):null});var Sa=new _.Vn("ENTITY_STATE_TOKEN"),M9=new _.Vn("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var iOI=XMLHttpRequest.prototype.fetch,Lon=iOI&&iOI.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!Zx?!0:!1;var q9=function(g){this.JSC$11150_storeWithEntities=g};
_.f(q9,wV);_.S=q9.prototype;_.S.getApiPaths=function(){return MtI};
_.S.getExtension=function(g){return _.n(g,_.LM)||_.n(g,_.sP)||_.n(g,UP6)};
_.S.isNavigationCommand=function(){return!0};
_.S.JSC$11145_getStoreKey=function(g){if((_.Y("kevlar_cache_on_ttl_player")||_.Y("mweb_enable_shorts_innertube_player_prefetch")||_.Y("mweb_use_new_history_manager")||_.Y("web_shorts_prefetch_service_enabled"))&&(g=this.getExtension(g))&&g.videoId){var r={videoId:g.videoId};g.playlistId&&(r.playlistId=g.playlistId);g.playerParams&&(r.params=g.playerParams);return _.iG("player",r)}};
_.S.JSC$11138_getClientScreen=function(g){var r;return((r=g.contentPlaybackContext)==null?void 0:r.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.S.JSC$11138_buildRequest=function(g,r,E){if(_.Y("enable_interstitial_entity_check")){var B=this.JSC$11150_storeWithEntities;if(r.videoId)for(var w=_.U(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),O=w.next();!O.done;O=w.next()){O=O.value;var M;var u=void 0,l=void 0,Q=r.videoId,z=O;(M=B)?(Q=_.qr(Q+z,"interstitialInteractionStateEntity"),M=(u=(l=_.u1(M.getState().entities,"interstitialInteractionStateEntity",Q))==null?void 0:l.primaryButtonClicked)!=null?u:!1):M=!1;if(M)switch(O){case "CONTENT_CHECK_REQUIRED":r.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":r.racyCheckOk=!0}}}r.videoId&&(g.videoId=r.videoId);r.playlistId&&(g.playlistId=r.playlistId);r.index!==void 0&&(g.playlistIndex=r.index+1);r.playerParams&&(g.params=r.playerParams);"startTimeSeconds"in r&&r.startTimeSeconds&&(_.Y("enable_player_request_builder_start_time_floor")?g.startTimeSecs=Math.floor(r.startTimeSeconds):g.startTimeSecs=r.startTimeSeconds);E.contentPlaybackContext&&(g.playbackContext={contentPlaybackContext:E.contentPlaybackContext});E.prefetchPlaybackContext&&
(g.playbackContext=Object.assign({},g.playbackContext,{prefetchPlaybackContext:E.prefetchPlaybackContext}),g.context.request||(g.context.request={}),g.context.request.isPrefetch=!0);g.playbackContext||(g.playbackContext={});B=xZT();g.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!B,supportXhr:Lon};E.overrideMutedAtStart&&(g.overrideMutedAtStart=E.overrideMutedAtStart);g.racyCheckOk=!!r.racyCheckOk;g.contentCheckOk=!!r.contentCheckOk;!_.Y("captions_prefs_killswitch")&&(E=(E=_.OC("yt-player-caption-language-preferences"))?
E:[],E==null?0:E.length)&&(g.captionParams={viewerSelectedCaptionLangs:E})};
_.S.getRequestConfig=function(g){g=this.JSC$11145_getStoreKey(g);var r;g&&(r={storeStrategy:{storeKey:g}});_.Y("web_log_player_watch_next_ticks")&&(r=r||{},r.requestTick="ps_s",r.responseTick="ps_r");return r};
q9[LU]=[Sa];var uN=function(){};
_.f(uN,wV);_.S=uN.prototype;_.S.getApiPaths=function(){return aWA};
_.S.getExtension=function(g){return _.n(g,_.LM)};
_.S.isNavigationCommand=function(){return!0};
_.S.JSC$11145_getStoreKey=function(g){if((g=this.getExtension(g))&&g.videoId){var r={videoId:g.videoId};g.playlistId&&(r.playlistId=g.playlistId);g.index&&(r.index=g.index);g.params&&(r.params=g.params);return _.iG("next",r)}};
_.S.JSC$11138_getClientScreen=function(g){var r;return((r=g.contentPlaybackContext)==null?void 0:r.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.S.JSC$11138_buildRequest=function(g,r,E){r.videoId&&(g.videoId=r.videoId);r.playlistId&&(g.playlistId=r.playlistId);r.params&&(g.params=r.params);r.index!==void 0&&(g.playlistIndex=r.index);g.racyCheckOk=!(!E.racyCheckOk&&!r.racyCheckOk);g.contentCheckOk=!!r.contentCheckOk;E.contentPlaybackContext&&(g.autonavState=E.contentPlaybackContext.autonavState,g.playbackContext={vis:E.contentPlaybackContext.vis,lactMilliseconds:E.contentPlaybackContext.lactMilliseconds});E.prefetchPlaybackContext&&(g.context.request||
(g.context.request={}),g.context.request.isPrefetch=!0);_.Y("captions_hats_killswitch")||(r=_.pu().getFlag(65),r=r!=null?!r:!1,E=!!_.OC("yt-player-sticky-caption"),g.captionsRequested=r&&E)};
_.S.getRequestConfig=function(g){g=this.JSC$11145_getStoreKey(g);var r;g&&(r={storeStrategy:{storeKey:g}});_.Y("web_log_player_watch_next_ticks")&&(r=r||{},r.requestTick="wn_s",r.responseTick="wn_r");return r};
var lN=function(){};
_.f(lN,wV);lN.prototype.getApiPaths=function(){return aWA};
lN.prototype.getExtension=function(g){return _.n(g,_.x3)};
lN.prototype.JSC$11138_buildRequest=function(g,r){r.token&&(g.continuation=r.token)};var Dl=function(g,r){this.playerRequestBuilder=g;this.watchNextRequestBuilder=r};
_.f(Dl,wV);Dl.prototype.getApiPaths=function(){return vlA};
Dl.prototype.getExtension=function(g){return _.n(g,_.LM)};
Dl.prototype.isNavigationCommand=function(){return!0};
Dl.prototype.JSC$11138_buildRequest=function(g,r,E){g.playerRequest={};this.playerRequestBuilder.JSC$11138_buildRequest(g.playerRequest,r,E);_.Y("web_streaming_watch")&&(g.watchNextRequest={},this.watchNextRequestBuilder.JSC$11138_buildRequest(g.watchNextRequest,r,E))};
Dl[LU]=[q9,uN];var VKA;_.Qx=new _.Vn("SHORTS_CONTROLLER_TOKEN");VKA=new _.Vn("SHORTS_STATE_STORE_TOKEN");var zR=function(g,r){var E=_.fI.apply(2,arguments);g=g===void 0?0:g;_.Rj.call(this,r,E);this.errorType=g;Object.setPrototypeOf(this,this.constructor.prototype)};
_.f(zR,_.Rj);var hCn,ZOI,v1n,dkL,KZ,kfD,rII,gpw,Uvb,wV6,BRz;hCn=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(g){return g+"="}).join("|"));
ZOI=RegExp(".*\\?.*playnext=1.*");_.kl=function(g,r,E,B){this.watchEndpointMap=g;this.reelWatchEndpointMap=r;this.innerTubeTransportService=E;this.fetchPbj=B};
v1n=function(g,r,E){var B=_.rM().resolve(_.gM(yKm));_.kl.instance=new _.kl(g,r,E,B)};
_.dZI=function(g,r){var E=_.wM("web_pbj_log_warning_rate",0);E=E>0&&Math.random()<E;var B;if((B=_.n(r.commandMetadata,_.dU))==null||!B.rootVe)return E&&_.el(Error("Yf")),!1;var w;B=(w=_.n(r.commandMetadata,_.dU))==null?void 0:w.url;if(!B)return E&&_.el(Error("Zf")),!1;if(ZOI.test(B))return!0;if(hCn.test(B))return E&&_.el(Error("$f`"+B)),!1;if(_.n(r,_.LM)){if(!(g.watchEndpointMap.watchNext&&g.watchEndpointMap.player||_.Y("kevlar_fetch_initial_data_op_watch_client")))return E&&_.el(Error("Rf")),!1;
g=_.wM("web_pbj_log_warning_rate",0);g=g>0&&Math.random()<g;_.n(r,_.LM)?q5Q(r)?r=!0:(g&&_.el(Error("Sf")),r=!1):(g&&_.el(Error("Rf")),r=!1);return r}if(_.n(r,_.sP))return uoJ(r);if(_.n(r,_.Py))return!0;g=_.mJ(g.innerTubeTransportService,r);!g&&E&&_.tn(Error("ag"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(r)});return g};
dkL=function(g,r,E,B,w,O){r={url:r};if(E==null?0:E.itct)r.parentTrackingParams=E.itct;var M=_.yp(kpz);return _.Pa(g.innerTubeTransportService,r,M).then(function(u){(u=u.endpoint)||(u=_.oH);(E==null?0:E.itct)&&u&&!u.trackingParams&&(u.trackingParams=E.itct);var l=RJ(u);return KZ(g,u,E,B,l,w,O)})};
KZ=function(g,r,E,B,w,O,M,u){u=u===void 0?{}:u;if(g.fetchPbj&&!_.dZI(g,r)&&!_.Y("force_one_platform")){u=g.fetchPbj(r);var l=_.lq(u.then(function(c){if(!c)throw Error("bg");M(l)||O(r,c);return c}));
return l}var Q,z,k={rootVe:(Q=_.n(r.commandMetadata,_.dU))==null?void 0:Q.rootVe,url:(z=_.n(r.commandMetadata,_.dU))==null?void 0:z.url,endpoint:r,page:w};if(_.n(r,_.LM)){var H,R={contentPlaybackContext:_.jN(E,(H=_.n(r.commandMetadata,_.dU))==null?void 0:H.url,B)},A=_.iW();_.Y("web_streaming_watch")&&window.TextDecoderStream?(u=T$D(g.innerTubeTransportService,r,R,function(c){!k.response&&c.content&&(k.response=c.content);!k.playerResponse&&c.player&&(k.playerResponse=c.player);O(r,k)}),Q=dnA(r),Q.length&&
(k.preconnect=Q,O(r,k)),gpw(u,A,k).catch(function(c){c instanceof zR&&c.errorType===2&&rII(g,r,R,k,O,M,A)})):rII(g,r,R,k,O,M,A);
return A.promise}if(_.n(r,_.sP)){var J;if(((J=_.n(r,_.sP))==null?void 0:J.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var e=_.iW();_.Ep4(_.rM().resolve(_.Qx),r).then(function(c){BRz(g,E,B,w,O,e,c)});
return e.promise}u=_.lq();var C;Q={contentPlaybackContext:_.jN(E,(C=_.n(r.commandMetadata,_.dU))==null?void 0:C.url,B)};(C=g.reelWatchEndpointMap.player)&&(C=C().JSC$11138_getRequest(r,Q))&&(u=_.Pa(g.innerTubeTransportService,C.innerTubeRequest,C.input,r.clickTrackingParams,C.config));C=_.lq();(z=g.reelWatchEndpointMap.reelItemWatch)&&(z=z().JSC$11138_getRequest(r))&&(C=_.Pa(g.innerTubeTransportService,z.innerTubeRequest,z.input,r.clickTrackingParams,z.config));z=_.lq();(H=g.reelWatchEndpointMap.reelWatchSequence)&&
_.n(r,_.sP).sequenceParams&&(Q=H().JSC$11138_getRequest(r,Q))&&(z=_.Pa(g.innerTubeTransportService,Q.innerTubeRequest,Q.input,r.clickTrackingParams,Q.config));Q=_.lq(k);H=_.iW();wV6(r,Q,u,C,z,O,M,H);return H.promise}var X;if(_.n(r,S5c)&&((X=_.n(r.commandMetadata,_.dU))==null?0:X.url))return u=pYJ(_.cT(P$().location.href),_.cT(_.n(r.commandMetadata,_.dU).url)).toString(),dkL(g,u,E,B,O,function(){return!1});
if(_.n(r,_.Py))return O(r,k),_.lq(k);if(_.mJ(g.innerTubeTransportService,r)){u=Object.assign({},{tempData:E,disableCache:E.disableCache},u);var Z=_.cK(g.innerTubeTransportService,r,u).then(function(c){k.response=c;M(Z)||O(r,k);return k});
return Z}return _.lq(k)};
_.OHw=function(g,r,E,B){if(_.n(r,_.LM)||_.n(r,_.sP)&&(_.Y("mweb_enable_shorts_innertube_player_prefetch")||_.Y("kevlar_enable_shorts_prefetch_in_sequence"))||_.n(r,UP6)&&_.Y("web_enable_prefetching_videos_on_home")){var w,O={contentPlaybackContext:_.jN(E,(w=_.n(r.commandMetadata,_.dU))==null?void 0:w.url,B),prefetchPlaybackContext:GpS(E)},M,u,l;if(((M=_.n(r,_.LM))==null?void 0:(u=M.watchEndpointSupportedPrefetchConfig)==null?void 0:(l=u.prefetchHintConfig)==null?void 0:l.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(E=
g.watchEndpointMap.watchNext)if(O=E().JSC$11138_getRequest(r,O))return Promise.resolve(_.Pa(g.innerTubeTransportService,O.innerTubeRequest,O.input,void 0,O.config).then(function(k){return k}))}else if(E=g.watchEndpointMap.player)if(O=E().JSC$11138_getRequest(r,O))return Promise.resolve(_.Pa(g.innerTubeTransportService,O.innerTubeRequest,O.input,void 0,O.config).then(function(k){return k}))}else if(_.mJ(g.innerTubeTransportService,r)){var Q={tempData:E},z=SdA(g.innerTubeTransportService,r);
return z?new Promise(function(k,H){var R,A;return _.q(function(J){if(J.nextAddress==1)return _.D(J,z,2);if(J.nextAddress!=4)return R=J.yieldResult,R.JSC$11145_getStoreKey(r,Q)?_.D(J,_.cK(g.innerTubeTransportService,r,Q),4):(H(new _.Rj("Prefetching request builder with no store key.",r)),J.jumpTo(0));A=J.yieldResult;k(A);_.Q3(J)})}):Promise.reject(new _.Rj("Prefetching unregistered request builder.",r))}return Promise.reject(new _.Rj("No request builder available to prefetch endpoint.",r))};
kfD=function(g,r){var E,B,w;if(_.n(r,_.LM)){var O=g.watchEndpointMap.watchNext;O&&(E=O());(g=g.watchEndpointMap.player)&&(B=g())}else if(_.n(r,_.sP))(O=g.reelWatchEndpointMap.reelItemWatch)&&(E=O()),(O=g.reelWatchEndpointMap.player)&&(B=O()),(g=g.reelWatchEndpointMap.reelWatchSequence)&&(w=g());else{a:{g=lAL(r,g.innerTubeTransportService.endpointMap);if(g!==void 0)if(typeof g.then==="function")_.tn(new _.Rj("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",r));else break a;
g=void 0}g&&(E=g)}var M,u,l;return{content:(M=E)==null?void 0:M.JSC$11145_getStoreKey(r),player:(u=B)==null?void 0:u.JSC$11145_getStoreKey(r),reelSequence:(l=w)==null?void 0:l.JSC$11145_getStoreKey(r)}};
rII=function(g,r,E,B,w,O,M){var u=_.lq(),l=g.watchEndpointMap.player;_.Y("web_streaming_player")&&(l=$a(Dl));l&&(l=l().JSC$11138_getRequest(r,E))&&(u=_.Pa(g.innerTubeTransportService,l.innerTubeRequest,l.input,r.clickTrackingParams,l.config));l=_.lq();var Q=g.watchEndpointMap.watchNext;Q&&(E=Q().JSC$11138_getRequest(r,E))&&(l=_.Pa(g.innerTubeTransportService,E.innerTubeRequest,E.input,r.clickTrackingParams,E.config));g=_.lq(B);Uvb(r,g,u,l,w,O,M)};
gpw=function(g,r,E){return _.q(function(B){if(B.nextAddress==1)return _.D(B,g,2);r.resolve(E);_.Q3(B)})};
Uvb=function(g,r,E,B,w,O,M){var u,l,Q,z,k;_.q(function(H){switch(H.nextAddress){case 1:return _.D(H,r,2);case 2:u=H.yieldResult;if(O(M.promise))return M.resolve(u),H.return();w(g,u);l=dnA(g);if(!l.length){H.jumpTo(3);break}return _.D(H,r,4);case 4:u.preconnect=l,w(g,u);case 3:return _.qN(H,5),_.D(H,E,7);case 7:Q=H.yieldResult;_.Ne(H,6);break;case 5:return z=_.G2(H),M.reject(z),H.return();case 6:if(Q===void 0)return u.reload=!0,w(g,u),M.resolve(u),H.return();if(O(M.promise))return M.resolve(u),H.return();
u.playerResponse=Q;w(g,u);_.qN(H,8);return _.D(H,B,10);case 10:k=H.yieldResult;_.Ne(H,9);break;case 8:_.G2(H);case 9:if(k===void 0)return u.response={responseContext:{}},M.resolve(u),H.return();if(O(M.promise))return M.resolve(u),H.return();u.response=k;w(g,u);M.resolve(u);_.Q3(H)}})};
wV6=function(g,r,E,B,w,O,M,u){var l,Q,z,k,H,R;_.q(function(A){switch(A.nextAddress){case 1:return _.D(A,r,2);case 2:l=A.yieldResult;if(M(u.promise))return u.resolve(l),A.return();O(g,l);Q=dnA(g);if(!Q.length){A.jumpTo(3);break}return _.D(A,r,4);case 4:l.preconnect=Q,O(g,l);case 3:return _.qN(A,5),_.D(A,E,7);case 7:z=A.yieldResult;_.Ne(A,6);break;case 5:return k=_.G2(A),u.reject(k),A.return();case 6:if(z===void 0)return l.reload=!0,O(g,l),u.resolve(l),A.return();if(M(u.promise))return u.resolve(l),
A.return();l.playerResponse=z;O(g,l);_.qN(A,8);return _.D(A,B,10);case 10:H=A.yieldResult;_.Ne(A,9);break;case 8:_.G2(A);case 9:if(H===void 0)return l.response={responseContext:{}},u.resolve(l),A.return();if(M(u.promise))return u.resolve(l),A.return();l.response=H;O(g,l);_.qN(A,11);return _.D(A,w,13);case 13:R=A.yieldResult;_.Ne(A,12);break;case 11:_.G2(A);case 12:if(M(u.promise))return u.resolve(l),A.return();l.reelWatchSequenceResponse=R;O(g,l);u.resolve(l);_.Q3(A)}})};
BRz=function(g,r,E,B,w,O,M){var u,l,Q,z,k,H;_.q(function(R){if((u=M)==null||!u.replacementEndpoint)return O.reject(),R.return();l=M.replacementEndpoint;(Q=_.n(l,_.sP))?(M.sequenceContinuation&&(Q.sequenceParams=M.sequenceContinuation),z=_.rM().resolve(_.Qx),k=Q.sequenceParams,MOz(z,l)&&delete Q.sequenceParams,H=KZ(g,l,r,E,B,w,function(){return!1}),H.then(function(A){return _.q(function(J){if(J.nextAddress==1)return qdm(z,{reelWatchEndpoint:{sequenceParams:k}},A),_.D(J,0,2);
O.resolve(A);_.Q3(J)})})):O.reject();
_.Q3(R)})};_.uem=function(g){if(g.validatedFragments_.length==0)return null;if(!g.mergedPrefetchedData_){for(var r=[],E=_.U(g.validatedFragments_),B=E.next();!B.done;B=E.next()){B=_.U(g.fragmentConfiguration_[B.value].graftedKeys);for(var w=B.next();!w.done;w=B.next())(w=g.prefetchedData_[w.value].trackingParams)&&r.push(w)}g.mergedPrefetchedData_={};Object.assign(g.mergedPrefetchedData_,g.prefetchedData_,{clientSideGrafts:r})}return g.mergedPrefetchedData_};var ljZ;_.HP=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
ljZ=function(g,r,E){if(_.UVX(r))return g.prefetchCache_.get(_.MtQ(r,E))};_.pB=new _.Vn("NAVIGATION_TOKEN");var DvD=function(g){var r=this;var E=E===void 0?fWP():E;var B=B===void 0?_.rM().resolve(_.pB):B;this.onePickCommand=g;this.JSC$11248_playlistNetworkManager=E;this.navigationManager=B;this.videoPickerBuilder=_.n8c("yt-addtoplaylist");_.Hlm(lxT(DeD(u1A(this.videoPickerBuilder.setTitle(g.modalTitle).setSize(1E3).addView(GWD()).addView(oBA())).addView("youtube"),g.selectButtonLabel)),function(w){r.handleAction(w)})};
DvD.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
DvD.prototype.handleAction=function(g){var r=this;if(g&&this.onePickCommand.listId&&g.action==="picked"&&g.docs){var E=[];g.docs.forEach(function(B){E.push({addedVideoId:B.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$11248_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,E).then(function(){_.Y("playlist_add_video_hard_reload_killswitch")?r.navigationManager.reload():opU(r.navigationManager)})}};var G8Z=function(){if(this.constructor===G8Z)throw new TypeError("cg");};
_.S=G8Z.prototype;_.S.dispose=function(){};
_.S.disconnect=function(){};
_.S.reconnect=function(){};
_.S.observe=function(g,r,E){return{element:g,option:E}};
_.S.unobserveByKey=function(){};var $VP=function(g,r){r=r===void 0?0:r;G8Z.call(this);this.viewroot=g;this.defaultPrescanHeight=r;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),g?{root:g,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.f($VP,G8Z);_.S=$VP.prototype;_.S.dispose=function(){this.disconnect();this.handlers.clear()};
_.S.disconnect=function(g){this.isConnected=!1;this.pauseObservingUntilReconnect=g===void 0?!1:g;this.observer.disconnect();g=_.U(this.prescanObservers.values());for(var r=g.next();!r.done;r=g.next())r.value.disconnect()};
_.S.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var g=_.U(this.handlers),r=g.next();!r.done;r=g.next()){var E=_.U(r.value);r=E.next().value;var B=E.next().value;E=!1;B=_.U(B.keys());for(var w=B.next();!w.done;w=B.next())if((w=w.value)&&w.state==="prescan"){E=!0;break}E&&QR4(this,r).observe(r);this.observer.observe(r)}}};
_.S.handleObserveEvent=function(g){g=_.U(g);for(var r=g.next();!r.done;r=g.next()){r=r.value;var E=this.handlers.get(r.target);if(E){var B=r.isIntersecting;E=_.U(E);for(var w=E.next();!w.done;w=E.next()){var O=_.U(w.value);w=O.next().value;O=O.next().value;w&&(w.state==="visible"&&B||w.state==="hidden"&&!B)&&(O(r.target,w.state),w.calledOnce&&this.unobserveByKey({element:r.target,option:w}))}}}};
_.S.handlePrescanEvent=function(g){g=_.U(g);for(var r=g.next();!r.done;r=g.next()){r=r.value;var E=this.handlers.get(r.target);if(E&&r.isIntersecting){E=_.U(E);for(var B=E.next();!B.done;B=E.next()){var w=_.U(B.value);B=w.next().value;w=w.next().value;B&&B.state==="prescan"&&(w(r.target,B.state),B.calledOnce&&this.unobserveByKey({element:r.target,option:B}))}}}};
_.S.observe=function(g,r,E){var B=(B=this.handlers.get(g))&&B.has(E)?{element:g,option:E}:void 0;if(B)return B;B={element:g,option:E};this.handlers.has(g)||this.handlers.set(g,new Map);var w=this.handlers.get(g);w&&!w.has(E)&&w.set(E,r);this.pauseObservingUntilReconnect||(E.state==="prescan"&&QR4(this,g).observe(g),this.observer.observe(g));return B};
_.S.unobserveByKey=function(g){var r=this.handlers.get(g.element);if(r&&r.has(g.option)){r.delete(g.option);if(g&&g.option.state==="prescan")for(var E=_.U(this.prescanObservers.values()),B=E.next();!B.done;B=E.next())B.value.unobserve(g.element);r.size===0&&(this.handlers.delete(g.element),this.observer.unobserve(g.element))}};
var QR4=function(g,r){var E=g.defaultPrescanHeight;r.hasAttribute("prescan-height")&&(r=Number(r.getAttribute("prescan-height")),isNaN(r)||(E=r));if(g.prescanObservers.has(E))return g.prescanObservers.get(E);r="-0.1px -0.1px "+E+"px -0.1px";r=new IntersectionObserver(g.handlePrescanEvent.bind(g),g.viewroot?{root:g.viewroot,rootMargin:r}:{rootMargin:r});g.prescanObservers.set(E,r);return r};var z5b=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],k8z=function(){var g,r=this;this.JSC$11265_actionRouter=g=g===void 0?_.mH.getInstance():g;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return r.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return r.visibilityObservedElementHandlerKeys}}},HHD,Ydw,sRU;
k8z.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.Y("kevlar_use_vimio_behavior")&&_.Ca("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=jYQ())};
k8z.prototype.dispose=function(){this.visibilityMonitor&&_.Qu(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
k8z.prototype.handleVisibilityRefreshed=function(){for(var g=_.U(this.targetMap.entries()),r=g.next();!r.done;r=g.next()){var E=_.U(r.value);r=E.next().value;E=E.next().value;_.pV4(this,r,E)}};
_.npb=function(g,r,E){Ydw(g,E);var B=_.R5T(g,r);B.element=E;g.targetedElements.set(E,r);_.pV4(g,r,B)};
Ydw=function(g,r){var E=g.targetedElements.get(r);if(E){var B=g.targetMap.get(E);B&&(delete B.element,g.targetMap.set(E,B));g.targetedElements.delete(r);g.visibilityObserver&&g.visibilityObservedElementHandlerKeys&&(E=g.visibilityObservedElementHandlerKeys.get(r))&&(g.visibilityObserver.unobserveByKey(E),g.visibilityObservedElementHandlerKeys.delete(r))}};
_.pV4=function(g,r,E){var B=E.action,w=E.element;w&&B&&(z5b.includes(r)||_.Ca("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||g.visibilityMonitor&&g.visibilityMonitor.isNodeVisible(w)?sRU(g,r,E):g.visibilityObserver&&(g.visibilityObservedElementHandlerKeys||(g.visibilityObservedElementHandlerKeys=new WeakMap),B=g.visibilityObserver.observe(w,function(){sRU(g,r,E);g.visibilityObservedElementHandlerKeys.delete(w)},{calledOnce:!0,
state:"visible"}),g.visibilityObservedElementHandlerKeys.set(w,B)))};
sRU=function(g,r,E){var B=E.action;(E=E.element)&&B&&(_.Ah(g.JSC$11265_actionRouter,[B],E),g.targetMap.delete(r),g.targetedElements.delete(E),g.triggeredTargets.add(r))};
_.R5T=function(g,r){var E=g.targetMap.get(r);E||(E={},g.targetMap.set(r,E));return E};
_.Yl=function(){HHD||(HHD=new k8z);return HHD};var fjZ=document.createElement("div");fjZ.style.touchAction="pan-down";var A0l=fjZ.style.touchAction==="pan-down";var $vI,jR6;$vI=function(){this.hammerFn=q2m();this.JSC$11273_screenManager=_.pW();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.bW(83615);_.Ok(this.JSC$11273_screenManager,this.ve);boY()};
_.Rf=function(){jR6||(jR6=new $vI);return jR6};
$vI.prototype.registerTouchEvents=function(g,r,E){var B=_.fI.apply(3,arguments),w=this.hammerFn(g,{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}]]});E&&w.set({touchAction:E});this.nodeManagerMapping.set(g,w);var O=
J0X(r);B=_.U(B);for(var M=B.next();!M.done;M=B.next()){M=M.value;if(M.includes("swipe")||M.includes("pinch")||M.includes("pan"))M.includes("swipe")?w.get("swipe").set({enable:!0,direction:O,velocity:.2}):M.includes("pinch")?w.get("pinch").set({enable:!0}):M.includes("pan")&&(w.get("pan").set({enable:!0,direction:O}),w.get("swipe").set({enable:!0,direction:O,velocity:.2}),w.get("swipe").recognizeWith("pan"));AI4(this,g,w,M)}};
var AI4=function(g,r,E,B){E.on(B,function(w){if(B.includes("pinch"))g.lastPinchTime=Date.now();else if(B.includes("swipe")&&Date.now()-g.lastPinchTime<400)return;w.pointerType!=="mouse"&&(w=B==="doubletap"?{coordinates:w.center}:B.includes("pan")?w:B.includes("swipe")?{target:w.target}:{},r.dispatchEvent(new CustomEvent(B,{bubbles:!0,composed:!0,detail:w})))})};
$vI.prototype.unregisterTouchEvents=function(g){var r=_.fI.apply(1,arguments),E=this.nodeManagerMapping.get(g);if(E){r=_.U(r);for(var B=r.next();!B.done;B=r.next())E.off(B.value);this.nodeManagerMapping.delete(g);g.style.touchAction="unset"}};var bHD=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var PsP=null;var JID=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},ZoY=function(){JID.instance||(JID.instance=new JID);
return JID.instance},y0Y=function(g){var r=g.networkEvents;
g.networkEvents=[];return _.Y("enable_network_monitoring")?r:[]};var P9U;P9U={};_.tO6=TZ("yt-serviceworker-metadata",{objectStores:(P9U.auth={addedAtVersion:1},P9U["resource-manifest-assets"]={addedAtVersion:2},P9U),shared:!0,upgrade:function(g,r){r(1)&&X6(g,"resource-manifest-assets");r(2)&&X6(g,"auth")},
version:2});var KXJ=self.location.origin+"/";xVt([/\.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\//]);xVt([/purge_shell=1/]);var FbD=void 0;FbD=FbD===void 0?[]:FbD;for(var e5m=[],Wb4=_.U(vAT),C9n=Wb4.next();!C9n.done;C9n=Wb4.next())e5m.push({key:C9n.value});for(var Kbw=_.U(FbD),xvU=Kbw.next();!xvU.done;xvU=Kbw.next())e5m.push(xvU.value);var aj4,Cy=_.ED==null?void 0:(aj4=_.ED.performance)==null?void 0:aj4.memory,NND=!1,v8J={},c0S={},Ky={},xa=navigator;var nB=function(g){this.JSC$11317_expiringStorage=new sr(g)};
nB.prototype.set=function(g,r,E){E=E!==void 0?Date.now()+E:void 0;this.JSC$11317_expiringStorage.set(g,r,E)};
nB.prototype.get=function(g){return this.JSC$11317_expiringStorage.get(g)};
nB.prototype.remove=function(g){this.JSC$11317_expiringStorage.remove(g)};var S_J=_.me(["https://www.youtube.com/",""]),O4X=_.me(["https://studio.youtube.com/",""]),luQ="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",MbV=null,zxA;var XVI=_.me(["https://www.youtube.com/iframe_api"]),sC=function(){this.playerResolver_=_.iW();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.oo;this.playbackDurationSeconds_=0},NRI=function(g){var r=function(){return window.YT&&typeof window.YT.ready==="function"};
if(r())return _.lq(window.YT);var E=_.iW(),B=_.HT("SCRIPT");B.onload=B.onreadystatechange=function(){B.readyState&&B.readyState!="loaded"&&B.readyState!="complete"||(B.onload=_.oo,B.onreadystatechange=_.oo,B.onerror=_.oo,r()?E.resolve(window.YT):E.reject(new _.Rj("Failed to load the iframe player library","script.onload",B.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
B.onerror=function(w){B.onload=_.oo;B.onreadystatechange=_.oo;B.onerror=_.oo;E.reject(new _.Rj("Failed to load the iframe player library","script.onerror",w&&w.target&&w.target.src))};
_.mg(B,_.wF(XVI));g.insertBefore(B,g.firstChild);return E.promise},IjD=function(g,r,E){var B,w;
_.q(function(O){switch(O.nextAddress){case 1:return g.playbackEndedCallback_=E,_.qN(O,2),_.D(O,NRI(r.parentElement||null),4);case 4:B=O.yieldResult;_.Ne(O,3);break;case 2:return w=_.G2(O),w instanceof _.Rj&&w.args&&w.args[0]=="script.onerror"?_.el(w):_.tn(w),O.return();case 3:B.ready(function(){return new B.Player(r,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:g.onPlayerReady_.bind(g),onStateChange:g.onPlayerStateChange_.bind(g),
onCueRangeExit:g.onCueRangeExit_.bind(g)}})}),_.Q3(O)}})};
_.S=sC.prototype;_.S.getPlayerPromise=function(){return this.playerPromise_};
_.S.onPlayerReady_=function(g){this.playerResolver_.resolve(g.target)};
_.S.onPlayerStateChange_=function(g){if(g.data==YT.PlayerState.PLAYING){g=g.target;var r=g.getCurrentTime();g.addCueRange("playback",r,r+this.playbackDurationSeconds_)}};
_.S.onCueRangeExit_=function(g){g.data=="playback"&&(g.target.stopVideo(),this.playbackEndedCallback_())};
_.S.stopVideo=function(){this.playerPromise_.then(function(g){g.stopVideo()})};
var mvT=function(g){g.playerVars_&&g.playerPromise_.then(function(r){typeof r.cueVideoByPlayerVars!="function"?_.el(new _.Rj("vmh: player API not ready","cueVideoByPlayerVars",typeof r.cueVideoByPlayerVars)):r.cueVideoByPlayerVars(g.playerVars_)})};
sC.prototype.playVideo=function(){var g=this;this.playerVars_&&this.playerPromise_.then(function(r){typeof r.loadVideoByPlayerVars!="function"?(r=new _.Rj("vmh: player API not ready","loadVideoByPlayerVars",typeof r.loadVideoByPlayerVars),_.tn(r)):r.loadVideoByPlayerVars(g.playerVars_)})};
var cIT=function(g,r,E,B,w){r&&(E===void 0&&(E=0),B===void 0&&(B=0),g.playbackDurationSeconds_=B/1E3,g.playerVars_={adformat:"17_8",videoId:r,suggestedQuality:"hd720",startSeconds:E/1E3,player_params:w})};
sC.prototype.mute=function(){this.playerPromise_.then(function(g){g.mute()})};
sC.prototype.unMute=function(){this.playerPromise_.then(function(g){g.unMute()})};var iHD=function(g,r){var E=KM();g||(g="unknown");r||(r="unknown");g="MAIN_APP_WEB_PAGE_TYPE_"+g.toUpperCase();g in SLT||(g="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");r="MAIN_APP_WEB_REQUEST_TYPE_"+r.toUpperCase();r in OUZ||(r="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.MS(E,{mainAppWeb:{pageType:g,requestType:r,isShellLoad:_.Ka("IS_SHELL_LOAD",!1)}})},Lbw={start:function(){_.MS(C8S(),{mainAppWeb:_.iF()})},
success:function(){_.qS(C8S(),"SUCCESS")},
failure:function(){_.qS(C8S(),"FAILURE")},
cancelled:function(){_.qS(C8S(),"CANCELLED")}};var VOA,h5T,fuc;VOA=_.me(["/sw.js"]);h5T=_.me(["/sw.js?0"]);_.ZHD=_.wF(VOA);fuc=_.wF(h5T);var yIA=function(){var g=Error.apply(this,arguments);this.message=g.message;"stack"in g&&(this.stack=g.stack)};
_.f(yIA,Error);_.hO.prototype.load=function(g){this.megabloxUrl_=_.Ca("YPC_MB_URL");_.xy(this.megabloxUrl_,(0,_.$r)(function(){g&&g()},this))};
_.VAA=function(g,r,E,B,w,O,M,u,l,Q,z){_.j9X(l);g.load((0,_.$r)(function(){try{var k=O?O:_.Ca("HL"),H=_.Ca("SESSION_INDEX");_.Q2t("client",function(){SYw("59",{helpCenterPath:"/youtube",locale:k,window:window}).JSC$8066_loadChatSupport({authuser:String(H)})})}catch(R){throw Ly(10,z,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),w&&w(R),_.tn(R),R;
}vpT(this,r,E,B,w,O,M,u,l,Q,z)},g))};
_.hO.prototype.openFixFlowDialog=function(g,r,E,B){this.load((0,_.$r)(function(){try{dvz(this,_.XS("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(g).withIntegratorCallback(r).load(E,B)}catch(w){throw _.tn(w),w;}},this))};
var dvz=function(g,r,E,B){var w=r.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.Y("enable_window_constrained_buy_flow_dialog")&&(w=w.usingPopupStyle(_.XS("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));B&&(w=w.usingCloseCallback(B));r.bootstrap.fromPaymentsUrl(g.megabloxUrl_);g=r.bootstrap.asMashupMode(w);E=E?E:_.Ca("HL");g.usingGaiaIndex(_.Ca("SESSION_INDEX")).usingLocale(E).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.Y("enable_google_payments_buyflow_material2_style_web")?
g.usingStyle(":m2;pc=#444;ac=#065fd4"):g.usingStyle(":md;pc=#444;ac=#065fd4");return g},vpT=function(g,r,E,B,w,O,M,u,l,Q,z){try{var k=_.XS("payments.business.integration");
if(!k)throw new yIA("payments.business.integration is undefined");var H=k.standaloneContextAuthId.forUserId(),R=dvz(g,k,O,function(){b4L(!1);u&&u()});
M&&R.usingServerAnalyticsEventHandler(M);var A=R.inStandaloneContext(H).buyFlow(function(J){if(J&&(!J.integratorData||J.integratorData===""||J.error))if(J.error!=null)if(String(J.error)==="-1")_.Ail(l);else{var e=String(J.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";Ly(10,z,e,J.debugCode);_.VP(e,l,J.debugCode);e=new _.Rj("PAYMENT_ERROR_MESSAGE::"+J.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+J.internalErrorDetails);
_.tn(e)}else Ly(10,z,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.VP("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",l,"EMPTY_INTEGRATOR_DATA"),_.tn(Error("hg"));E&&(b4L(!1),E(J))}).withEncryptedParameters(r);
Q&&A.withClientParameters(Ozt(_.hAo(Q)));A.load(function(){Ly(24,z);_.Wk("ttc",void 0,"commerce_transaction");wjP("commerce_transaction");B&&(B(),b4L(!0))},function(J){if(J==null?0:J.debugCode)var e=J==null?void 0:J.debugCode;
else if(!J||(J==null?0:J.debugCode))e="EMPTY_LOAD_FAILURE_ERROR",_.tn(Error(e));else{e="EMPTY_LOAD_FAILURE_DEBUG_CODE";var C=new _.Rj("LOAD_FAILURE:"+J.message," DEBUG_CODE:"+e);_.tn(C)}Ly(10,z,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",e);_.VP("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",l,e);_.tn(J);w&&w(J)})}catch(J){throw J instanceof yIA&&(Ly(10,z,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),w&&w(J)),_.tn(J),J;
}};var TRw;TRw=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.cUS=function(g,r){r=r===void 0?!1:r;g=TRw.test(g)?_.qO(g):null;!r&&window.payments||!g?(g=_.iW(),r=g.promise,g.resolve()):r=_.mDZ(g,{attributes:{"data-payments-main":"",id:"payment-lib"}});return r};var gVZ;gVZ=_.me(["//www.googletagmanager.com/gtm.js?id=",""]);_.fB=function(g,r){_.rr(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:r}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.Ca("GL")}),r=_.HT("SCRIPT"),r.async=!0,_.mg(r,_.wF(gVZ,g)),r.id="gtm",g=document.getElementsByTagName("script"),g.length==0?document.head.appendChild(r):(g=g[0],g.parentNode.insertBefore(r,g)))};
_.$l=function(g){if(g=JSON.parse(g))window.dataLayer=window.dataLayer||[],window.dataLayer.push(g)};var r36,EVD;r36=_.me(["https://clients2.google.com/gr/gr_sync.js"]);_.ITL=function(){};
_.ITL.prototype.init=function(){if(EVD()){var g=_.iW();g.resolve();return g.promise}return _.mDZ(_.wF(r36)).then(function(){if(!EVD())throw Error("ig");},function(){throw Error("jg");
})};
_.mIS=function(){if(!EVD())return"";var g=window.google.gr;g.init({async:{schedule:"sync"},merchantId:"youtube"});g.start();g=g.finish();return g==null?"":g};
EVD=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.a=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.f(_.a,PolymerFakeBaseClassWithoutHtml);_.Hi=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.f(_.Hi,PolymerFakeBaseClassWithoutHtml);var JiJ=window.ShadyDOM;var uGS,M6V,DRJ,onl,QhD,znL,j2,wG;uGS=_.Y("enable_shadydom_free_scoped_query_methods");M6V=_.Y("enable_shadydom_free_scoped_node_methods");DRJ=_.Y("enable_shadydom_free_scoped_readonly_properties_batch_one");onl=_.Y("enable_shadydom_free_parent_node");QhD=_.Y("enable_shadydom_free_children");znL=_.Y("enable_shadydom_free_last_child");j2=window.ShadyDOM;_.q1=j2&&j2.noPatch&&j2.wrap?j2.wrap:j2?function(g){return j2.patch(g)}:function(g){return g};
wG=function(g){if(g instanceof ShadowRoot)this.host=(0,_.q1)(g.host),this.root=g;else if(g.$$){this.host=(0,_.q1)(g);var r;this.root=(r=g.root)!=null?r:this.host}else if(g.polymerController){this.host=(0,_.q1)(g);var E;this.root=(E=this.host.shadowRoot)!=null?E:this.host}else this.root=this.host=(0,_.q1)(g)};
qnt();lKl();k4c();Hjt();G4A();var B4U={querySelector:function(g,r){r=tbJ(r,db(g));g=_.TF(g);return gG(g).prototype.querySelector.call(g,r)},
querySelectorAll:function(g,r){r=tbJ(r,db(g));g=_.TF(g);return gG(g).prototype.querySelectorAll.call(g,r)}},wcm={appendChild:function(g,r){var E=db(g),B=_.vo(r);
return _.Ojt(_.TF(g),E?_.EN(r,E,B):r)},
cloneNode:function(g,r){var E=_.vo(g);g=_.TF(g);r=gG(g).prototype.cloneNode.call(g,r);return E?Bi(r,E):r},
contains:function(g,r){var E=db(g),B=_.vo(r);return E!==B?!1:URJ(g,r)},
insertBefore:function(g,r,E){var B=db(g),w=_.vo(r);g=_.TF(g);r=B?_.EN(r,B,w):r;return gG(g).prototype.insertBefore.call(g,r,E)},
removeChild:function(g,r){var E=db(g);g=_.TF(g);r=E?Bi(r,E):r;return gG(g).prototype.removeChild.call(g,r)},
replaceChild:function(g,r,E){var B=db(g),w=_.vo(r);r=B?_.EN(r,B,w):w?Bi(r,w):r;E=B?Bi(E,B):E;g=_.TF(g);return gG(g).prototype.replaceChild.call(g,r,E)},
getRootNode:function(g,r){r=r===void 0?{composed:!0}:r;var E;if(((E=r)!=null?E:{}).composed)g=mFl(g);else{r=g;for(g=exB(g);g;)r=g,g=CeV(g);g=r}return g}},YnP=DRJ?{firstChild:gnJ,
nextSibling:vil,previousSibling:TDQ,firstElementChild:rHt,lastElementChild:BIl,nextElementSibling:yiL,previousElementSibling:dFl,childNodes:whV}:{};onl&&(YnP.parentNode=Z4B);QhD&&(YnP.children=Snl);znL&&(YnP.lastChild=Enc);uGS&&phL(B4U);M6V&&phL(wcm);Rnt();var nnQ=function(g){this.node=g instanceof ShadowRoot?g.host:g};
shJ();fKo();var AHA=new WeakMap;var JHl=Symbol("Bd");var WLl=new Set(["tap","track","down","up"]),Cot=_.Y("pbcm_fi_query_decorators");var Am=function(){return _.Hi.apply(this,arguments)||this};
_.f(Am,_.Hi);_.S=Am.prototype;_.S.getState=function(){return this.store.getState()};
_.S.dispatch=function(g){this.store.dispatch(g)};
_.S.beforeRegister=function(){if(this&&typeof this==="object"){var g;var r=!!this.useSignals||!((g=this.polymerController)==null||!g.useSignals)}else r=!1;if(!r&&this.properties)for(r=_.U(Object.keys(this.properties)),g=r.next();!g.done;g=r.next()){var E=g.value;g=this.properties[E];if(g.selector){if(g.computed)throw Error("pg");E=["reduxPropertiesRecomputeTrigger",'"'+E+'"'].concat(_.jW(g.selectorArgs||[])).join(",");g.computed="recomputeReduxSelector("+E+")"}}};
_.S.attached=function(){var g=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){g.reduxPropertiesRecomputeTrigger++}));
_.Y("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.S.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.S.recomputeReduxSelector=function(g,r){var E=_.fI.apply(2,arguments),B=this.properties[r].selector;if(!B)throw Error("ng`"+r);return B.apply(null,[this.store.getState()].concat(_.jW(E)))};
_.S.select=function(g){var r=_.fI.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return g.apply(null,[this.store.getState()].concat(_.jW(r)))};
_.hx.Object.defineProperties(Am.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("og");}}});
Am.prototype.recomputeReduxSelector=Am.prototype.recomputeReduxSelector;_.m([_.K(),_.L("design:type",Number)],Am.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.m([_.pR()],Am);var bN=[],XhA={},F7=function(){return v3.apply(this,arguments)||this};
_.f(F7,v3);F7.prototype._addPropertyEffect=function(g,r,E){if(r==="__observeEffects"&&E){var B,w=(B=E.info.method)!=null?B:E.info.methodName;if(w){var O=this[w];this[w]=function(){bN.push(w);try{O==null||O.apply(this,arguments)}finally{bN.pop()}}}}_.Qo._addPropertyEffect.apply(this,[g,
r,E])};
F7.prototype._setPendingProperty=function(g,r,E){if(bN.length){var B=bN[bN.length-1],w;(w=XhA[this.is])!=null&&w.has(B)||(NIl(this.is,B),_.Jn("polymerPropertyChangedInObserver",{componentName:this.is,observerName:B}))}return _.Qo._setPendingProperty.apply(this,[g,r,E])};
_.m([pvo()],F7);var IKc=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),cHl,nR={};_.Y("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=nR);var $k=function(){return _.Hi.apply(this,arguments)||this};
_.f($k,_.Hi);$k.prototype._setUnmanagedPropertyToNode=function(g,r,E){g.loggingStatus&&(g.loggingStatus.isDeclarativeExternal=!0);if(E!==g[r]||typeof E==="object")g[r]=E;g.is&&g.polymerController&&g.polymerController!==g&&sN(g.is,r,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");g.loggingStatus&&(g.loggingStatus.isDeclarativeExternal=!1)};
_.m([_.pR()],$k);mRl()&&(Ck.prototype._setUnmanagedPropertyToNode=(new $k)._setUnmanagedPropertyToNode);_.w4l={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(g){},set polymerController(g){}}]};var tC=function(){var g=v3.apply(this,arguments)||this;g.json=function(){};
return g};
_.f(tC,v3);tC.prototype.equals=function(g,r){return g===r};
tC.prototype.isEmpty=function(g){return!g||_.vJ(g)&&g.length===0};
_.m([pvo()],tC);var Sun=function(g){g=QoP(g);tA.call(this,g)};
_.f(Sun,tA);Sun.prototype.addProvider=function(g){g=g.key?g:QoP([g])[0];var r=this.keyIdToIndex.get(g.key.id);if(r){if(ZjY(g,this.providers[r]))throw Error("qg`"+g.key.displayName);}else tA.prototype.addProvider.call(this,g)};
var Oqn=new Sun([]);var U7n=!1;var rKl={};U7n||(g1Q(),U7n=!0);
rKl.InjectBehavior={initializeInjection:function(){var g=this.provide;try{if((g=g!=null?g:[])&&g.length>0)for(var r=QoP(g),E=_.U(r),B=E.next();!B.done;B=E.next())Oqn.addProvider(B.value);var w=new Set;yHl(this.behaviors||[],w);r={};for(var O=_.U(w),M=O.next();!M.done;M=O.next()){var u=M.value;u.inject&&Object.assign(r,u.inject)}this.inject&&Object.assign(r,this.inject);for(var l=_.U(Object.keys(r)),Q=l.next();!Q.done;Q=l.next()){var z=Q.value,k=r[z];try{this[z]=Oqn.resolve(k)}catch(H){throw H;}}}catch(H){throw Error(H.message);
}}};var B$B;var SVQ=/\bclass\b/.test(function(){}.toString()),MKl=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var MRw=function(g){this.wasDefined=!0;Array.isArray(g)||g instanceof Array?(this.JSC$11446_getImpl=g[0],this.JSC$11446_setImpl=g[1]):this.JSC$11446_getImpl=g};
_.S=MRw.prototype;_.S.getWithPath=function(g){return lLY(this.JSC$11446_getImpl(),g)};
_.S.setWithPath=function(g,r){var E=this;if(g.length)throw Error("rg");if(!this.JSC$11446_setImpl)throw Error("sg");Hp(function(){E.JSC$11446_setImpl(r)})};
_.S.notifyPath=function(){throw Error("tg");};
_.S.notifySplices=function(){throw Error("ug");};
_.S.getChangeRecordSignal=function(g,r){var E=this;if(g.length)throw Error("vg");return function(){var B=E.getWithPath(g);return{path:r!=null?r:"",base:B,value:B}}};
_.S.getSplicesSignal=function(){throw Error("wg");};
_.S.getPathMutationSignal=function(){throw Error("xg");};
_.S.pop=function(){throw Error("yg");};
_.S.push=function(){throw Error("zg");};
_.S.splice=function(){throw Error("Ag");};
_.S.unshift=function(){throw Error("Bg");};var Jm=function(g){var r=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(g)||g instanceof Array?(this.JSC$11451_getImpl=g[0],this.JSC$11451_setImpl=g[1]):this.JSC$11451_getImpl=g;this.wasDefined=!1;uQ(function(){r.wasDefined=r.JSC$11451_getImpl()!==void 0})};
Jm.prototype.getWithPath=function(g){return lLY(this.JSC$11451_getImpl(),g)};
Jm.prototype.setWithPath=function(g,r){var E=this;if(g[g.length-1]!=="*"&&g[g.length-1]!=="splices"){if(g.length===0){if(!this.JSC$11451_setImpl)throw Error("Cg");this.wasDefined||(this.wasDefined=r!==void 0);Hp(function(){E.JSC$11451_setImpl(r)})}else{for(var B=uQ(function(){return E.getWithPath([])}),w=0;w<g.length-1;w++){if(!B)return;
B=B[g[w]]}w=g[g.length-1];B&&(B[w]=r);this.wasDefined||(this.wasDefined=g.length>1||r!==void 0)}quT(this,g,{pathComponents:g,value:r})}};
Jm.prototype.notifyPath=function(g,r){g.length===0?r&&this.setWithPath(g,r.value):quT(this,g,{pathComponents:g,value:r==null?void 0:r.value,fallbackWhenUndefined:r==null?void 0:r.value})};
var quT=function(g,r,E,B){if(g.setMutationSignal){var w=++g.mutationIndex,O=[g.observedPath],M=g.observedPath,u;r.length===0&&(u=M);for(var l=0;l<r.length;l++){var Q=M.subPaths[r[l]];if(!Q)break;O.push(Q);M=Q;l===r.length-1&&(u=Q)}for(r=!1;O.length;)M=O.shift(),M.data={index:w,mutation:E,spliceMutationIndex:B},r||(r=M===u),r&&O.push.apply(O,_.jW(Object.values(M.subPaths)));Hp(function(){g.setMutationSignal(w)})}};
Jm.prototype.notifySplices=function(g,r){var E=this,B=uQ(function(){return E.getWithPath(g)}),w=[].concat(_.jW(g),["splices"]);
quT(this,w,{pathComponents:w,value:{indexSplices:r}});if(B==null?0:B.length)r=this.mutationIndex,w=[].concat(_.jW(g),["length"]),quT(this,w,{pathComponents:w,value:B.length},r)};
var ubD=function(g,r,E,B,w,O){g.notifySplices(E,[{index:B,addedCount:w,removed:O,object:r,type:"splice"}])},ldD=function(g,r){g=g.observedPath;
for(var E=0;E<r.length;E++){var B=r[E],w=g.subPaths[B];w||(w={pathComponents:r.slice(0,E+1),subPaths:{}},g.subPaths[B]=w);g=w}},oVb=function(g,r,E){ldD(g,r);
if(!g.getMutationSignal){var B=_.U(_.Dk(g.mutationIndex,void 0,"HavCgf"));g.getMutationSignal=B.next().value;g.setMutationSignal=B.next().value}var w=g.getMutationSignal;return _.kB(function(){w();return E(D7z(g,r))},void 0,"BYaPo")};
Jm.prototype.getChangeRecordSignal=function(g,r){var E=this,B=this.mutationIndex,w;return oVb(this,g,function(O){if(O&&O.index>B){var M=O.mutation;B=O.index;w=void 0}O=uQ(function(){return E.getWithPath(g)});
if(M){var u=M.pathComponents[M.pathComponents.length-1],l=[].concat(_.jW(M.pathComponents));if(u==="splices"||u==="length")return{base:O,path:(r?[r].concat(_.jW(l)):l).join("."),value:M.value};var Q=g.length>l.length?g:l,z;return{base:O!=null?O:M.fallbackWhenUndefined,path:(r?[r].concat(_.jW(Q)):Q).join("."),value:(z=uQ(function(){return E.getWithPath(Q)}))!=null?z:M.fallbackWhenUndefined}}w||(w={base:O,
path:(r?[r].concat(_.jW(g)):g).join("."),value:O});return w})};
Jm.prototype.getSplicesSignal=function(g){var r=this.mutationIndex,E;return oVb(this,g,function(B){if(B&&B.index>r&&B.spliceMutationIndex!==r){var w=B.mutation;r=B.index;E=void 0}return w&&w.pathComponents[w.pathComponents.length-1]==="splices"?E=B=w.value:E})};
Jm.prototype.getPathMutationSignal=function(g){var r=this;ldD(this,g);if(!this.getMutationSignal){var E=_.U(_.Dk(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=E.next().value;this.setMutationSignal=E.next().value}var B=this.getMutationSignal,w=this.mutationIndex,O;return _.kB(function(){B();var M=D7z(r,g);if(M&&M.index>w&&M.mutation&&DZX(M.mutation.pathComponents,g)){var u=M.mutation;w=M.index}if(!O||w!==O.index){var l,Q;M=(Q=uQ(function(){return r.getWithPath(g)}))!=null?Q:(l=u)==null?
void 0:l.fallbackWhenUndefined;
O={index:w,value:M}}return O},void 0,"Aumsyf")};
var D7z=function(g,r){g=g.observedPath;r=_.U(r);for(var E=r.next();!E.done;E=r.next())g=g.subPaths[E.value];return g.data};
Jm.prototype.pop=function(g){var r=this,E=uQ(function(){return r.getWithPath(g)});
if(!(E instanceof Array))throw Error("Dg");var B=E.length>0,w=E.pop();B&&ubD(this,E,g,E.length,0,[w]);return w};
Jm.prototype.push=function(g){var r=_.fI.apply(1,arguments),E=this,B=uQ(function(){return E.getWithPath(g)});
if(!(B instanceof Array))throw Error("Eg");var w=B.length,O=B.push.apply(B,_.jW(r));r.length&&ubD(this,B,g,w,r.length,[]);return O};
Jm.prototype.splice=function(g,r,E){var B=_.fI.apply(3,arguments),w=this,O=uQ(function(){return w.getWithPath(g)});
if(!(O instanceof Array))throw Error("Fg");r<0?r=O.length-Math.floor(-r):r&&(r=Math.floor(r));var M=O.splice.apply(O,[r,E].concat(_.jW(B)));(B.length||M.length)&&ubD(this,O,g,r,B.length,M);return M};
Jm.prototype.unshift=function(g){var r=_.fI.apply(1,arguments),E=this,B=uQ(function(){return E.getWithPath(g)});
if(!(B instanceof Array))throw Error("Gg");var w=B.unshift.apply(B,_.jW(r));r.length&&ubD(this,B,g,0,r.length,[]);return w};var GQD=!0,Q0n=!1,yIl=!1,zbA=!1,RCV=!1,kQw=0;zbA=!1;kQw=0;GQD=!0;RCV=Q0n=yIl=!1;var PP=function(g,r,E){this.model=g;this.unknownSignalResolver=r;this.options=E;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];r=_.U(sZB());g=r.next().value;r=r.next().value;this.owner=g;this.disposeImpl=r};
PP.prototype.dispose=function(){if(!this.isDisposed){for(var g=_.U(this.childSignalProxies),r=g.next();!r.done;r=g.next())r.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var HqZ=function(g,r){g=_.TP(g.owner);try{r()}finally{_.TP(g)}};
PP.prototype.effect=function(g){HqZ(this,function(){_.F2(g)})};
var pcA=function(g,r){g.options!=null||(g.options={});var E;(E=g.options).immutableProps!=null||(E.immutableProps=new Set);g.options.immutableProps.add(r)},ZOQ=function(g,r){r=""+r;
YuZ(g,r);var E,B;if((E=g.options)==null?0:(B=E.immutableProps)==null?0:B.has(r))return!0;var w;if((w=g.model.__signalCache)==null?0:w.has(r))E=g.model.__signalCache.get(r),Array.isArray(E)&&pcA(g,r);var O,M,u;return(u=(O=g.options)==null?void 0:(M=O.immutableProps)==null?void 0:M.has(r))!=null?u:!1},Rbn=function(g,r){var E;
g.unknownSignalResolver&&(E=g.unknownSignalResolver(r));var B,w;((B=g.options)==null?0:(w=B.immutableProps)==null?0:w.has(r))?E!=null||(E=new MRw(_.Dk(g.model[r],void 0,"bgwlkd"))):E!=null||(E=new Jm(_.Dk(g.model[r],void 0,"V1hou")));var O=g.model.hostElement;Object.defineProperty(g.model,r,{get:function(){LLc(O,r);return E.getWithPath([])},
set:function(M){fR(O,r);g.setWithPath([r],M)},
configurable:!0});return E},YuZ=function(g,r){var E,B,w;
((E=g.model.__signalCache)==null||!E.has(r))&&((B=g.options)==null?0:(w=B.externalSignalProps)==null?0:w.has(r))&&g.model[r]},KR=function(g,r){r=""+r;
var E=g.signalCache[r];if(E!==void 0)return E;E=!1;YuZ(g,r);var B;if((B=g.model.__signalCache)==null?0:B.has(r))if(E=g.model.__signalCache.get(r),Array.isArray(E))E=!0,pcA(g,r);else return g.signalCache[r]=g.model.__signalCache.get(r).signal,g.signalCache[r];var w,O;B=(O=(w=g.options)==null?void 0:w.reactivityMode)!=null?O:0;var M,u;if(!((M=g.options)==null?0:(u=M.reactiveProps)==null?0:u.has(r))&&!E&&B===1)throw Error("Hg`"+r);w=E?nVA(g,r):Rbn(g,r);return g.signalCache[r]=w},nVA=function(g,r){var E=
Object.getOwnPropertyDescriptor(g.model.constructor.prototype,r),B=function(){return g.model[r]};
return new MRw(E&&E.get&&!E.set?B:[B,function(w){g.model[r]=w}])};
PP.prototype.getWithPath=function(g){var r=_.U(g);g=r.next().value;r=Zq(r);LLc(this.model.hostElement,""+g);return KR(this,g).getWithPath(r)};
PP.prototype.setWithPath=function(g,r){if(g.length){fR(this.model.hostElement,g.join("."));var E=_.U(g);g=E.next().value;E=Zq(E);KR(this,g).setWithPath(E,r)}};
PP.prototype.getPathMutationSignal=function(g){var r=_.U(g);g=r.next().value;r=Zq(r);return KR(this,g).getPathMutationSignal(r)};
PP.prototype.notifyPath=function(g,r){var E=_.U(g);g=E.next().value;E=Zq(E);KR(this,g).notifyPath(E,r)};
var s0A=function(g,r){if(r.type==="literal")return function(){return{rootWasDefined:!0,value:r.value}};
var E=Wi(r.path),B=_.U(E),w=B.next().value;B=Zq(B);var O,M;if(r.type==="path"&&(E.length===1||((O=g.options)==null?0:(M=O.immutableProps)==null?0:M.has(w))))return function(){var k=g.getWithPath(E.slice(0,1)),H=lLY(k,E.slice(1));k=k!==void 0;n1J()&&(k=KR(g,E[0]).wasDefined);return{rootWasDefined:k,value:H}};
var u=KR(g,w);if(r.type==="path"){var l=u.getPathMutationSignal(B);return function(){var k=n1J()?u.wasDefined:e1(g.owner,function(){return u.getWithPath([])})!==void 0;
var H,R=(H=l())==null?void 0:H.value;return{rootWasDefined:k,value:R}}}if(r.type==="splices"){var Q=u.getSplicesSignal(B);
return function(){var k=Q();return{rootWasDefined:n1J()?u.wasDefined:k!==void 0,value:k}}}var z=u.getChangeRecordSignal(B,""+w);
return function(){var k=z();return{rootWasDefined:n1J()?u.wasDefined:k!==void 0,value:k}}},HOl=function(g,r,E){var B=E.map(function(u){return s0A(g,u)}),w=E.length===0,O=[],M=E.length!==1||E[0].type!=="path"?!1:!0;
g.effect(function(){for(var u=B.length,l=[],Q=!!O.length,z=0;z<u;z++){var k=B[z](),H=k.rootWasDefined;k=k.value;w||(w=H);l[z]=k;M&&(l[z+u]=Q?O[z]:l[z],O[z]=k)}w&&e1(g.owner,function(){return void r.apply(null,_.jW(l))})})},o1l=function(g,r,E,B,w){var O=KR(g,r);
w!==void 0&&O.setWithPath([],w);HOl(g,function(){var M=_.fI.apply(0,arguments);fR(g.model.hostElement,r,!0);O.setWithPath([],E.apply(null,_.jW(M)))},B)};
PP.prototype.arrayPush=function(g){var r=_.fI.apply(1,arguments),E=_.U(g),B=E.next().value;E=Zq(E);B=KR(this,B);return B.push.apply(B,[E].concat(_.jW(r)))};
PP.prototype.arraySplice=function(g,r,E){var B=_.fI.apply(3,arguments),w=_.U(g),O=w.next().value;w=Zq(w);O=KR(this,O);return O.splice.apply(O,[w,r,E].concat(_.jW(B)))};
PP.prototype.arrayUnshift=function(g){var r=_.fI.apply(1,arguments),E=_.U(g),B=E.next().value;E=Zq(E);B=KR(this,B);return B.unshift.apply(B,[E].concat(_.jW(r)))};
PP.prototype.notifySplices=function(g,r){var E=_.U(g);g=E.next().value;E=Zq(E);KR(this,g).notifySplices(E,r)};var JKl=/([^\s]+?)\(([\s\S]*)\)/,jZl=/\.([^.]+)$/,tKP=/\\,/g,fLP=/&comma;/g,$ZP=/\\(.)/g,PIX=[],AKl={"*":"wildcard",splices:"splices"};var ILo=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"),xZl=/[A-Z]/,fdD=["class","hidden","id","on-dom-change"],cKP=new Set([].concat(_.jW(fdD),
["if","notify-dom-change","restamp"])),iOQ=new Set([].concat(_.jW(fdD),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),LoA=new Set(["restamp"]);var iqL=new Set(["className","id"]);var v1A=Symbol(),wVJ=window;var Dvt=window;var pVP=0,QRP=0,xk=[],HHS=0,G8Y=!1,k8o=document.createTextNode("");(new window.MutationObserver(z5c)).observe(k8o,{characterData:!0});var X7=new Map,ab=0,$7z=function(g){this.mappedHandleId=g},R5l=function(g,r,E,B){this.mappedHandleId=g;
var w=this;this.mappedHandleId=g;this.callback=r;this.waitTime=E;this.schedulerPriority=B;this.handleId=_.F6.addJob(function(){w.callback();X7.delete(w.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.f(R5l,$7z);R5l.prototype.cancel=function(){_.F6.cancelJob(this.handleId);X7.delete(this.mappedHandleId)};
var npc=function(g,r){this.mappedHandleId=g;var E=this;this.mappedHandleId=g;this.callback=r;this.handleId=YdD(function(){E.callback();X7.delete(E.mappedHandleId)})};
_.f(npc,$7z);npc.prototype.cancel=function(){var g=this.handleId-QRP;g<0||xk.length<=g||(xk[g]=null);X7.delete(this.mappedHandleId)};var jRJ=function(){};
jRJ.prototype.cancel=function(){this.jobHandle!==void 0&&(sRV(this.jobHandle),this.jobHandle=void 0)};
jRJ.prototype.run=function(g,r,E){var B=this;this.cancel();this.callback=g;this.jobHandle=_.N1(function(){g();B.callback=void 0},r,E)};
jRJ.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var fjY=new WeakMap;var j0n=mh(function(g){for(var r=g,E=0;E<3;E++)r=Object.getPrototypeOf(r);delete r.prototype.connectedCallback;var B=function(){return g.apply(this,arguments)||this};
_.f(B,g);B.prototype._attachDom=function(w){if(!w)return null;var O=(0,_.q1)(this.hostElement);O.attachShadow({mode:"open",shadyUpgradeFragment:w});O.shadowRoot.appendChild(w);return O.shadowRoot};
B.prototype._takeAttributes=function(){for(var w=this.hostElement.attributes,O=0;O<w.length;O++){var M=w[O],u=void 0,l=void 0;(l=(u=this).__attributeReaction)==null||l.call(u,M.name,null,M.value)}};
B.prototype._readyClients=function(){g.prototype._readyClients.call(this);this.root=this};
B.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);g.prototype.connectedCallback.call(this)};
_.hx.Object.defineProperties(B,{template:{configurable:!0,enumerable:!0,get:function(){return B.prototype._template}}});
return B}),A3T=mh(function(g){var r=function(){return g.apply(this,arguments)||this};
_.f(r,g);r.prototype.created=function(){if(this.__notifyEffects)for(var E=_.U(Object.values(this.__notifyEffects)),B=E.next();!B.done;B=E.next()){B=_.U(B.value);for(var w=B.next();!w.done;w=B.next())w.value.fn=P9V}if(this.__reflectEffects)for(E=_.U(Object.values(this.__reflectEffects)),B=E.next();!B.done;B=E.next())for(B=_.U(B.value),w=B.next();!w.done;w=B.next())w.value.fn=tOJ};
r.prototype._addEventListenerToNode=function(E,B,w){E=mG(E);bp(E,B,w)||g.prototype._addEventListenerToNode.call(this,E,B,w)};
r.prototype._removeEventListenerFromNode=function(E,B,w){E=mG(E);Jx(E,B,w)||g.prototype._removeEventListenerFromNode.call(this,E,B,w)};
r.prototype._propertiesChanged=function(E,B,w){if(this.__dataToNotify&&this.__notifyEffects)for(var O=_.U(Object.keys(this.__dataToNotify)),M=O.next();!M.done;M=O.next()){M=M.value;var u=JIS(M);this.__notifyEffects[u]||delete this.__dataToNotify[M]}else this.__dataToNotify=null;g.prototype._propertiesChanged.call(this,E,B,w)};
r.prototype.fire=function(E,B,w){B=B===void 0?{}:B;var O;return _.Sh(mG((O=w==null?void 0:w.node)!=null?O:this),E,B,w)};
r.prototype._ensureAttribute=function(E,B){var w=mG(this);w.hasAttribute(E)||CR(w,B,E)};
r.prototype.isLightDescendant=function(E){var B=mG(this);return mG(B)!==E&&_.S3(B).contains(E)&&_.S3(B).getRootNode()===_.S3(E).getRootNode()};
return r});
_.zt.ready=function(){var g;((g=this.hostElement)!=null?g:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var r;((r=this.hostElement)!=null?r:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.f7._subscribeIronResize=function(g){var r;((r=g.hostElement)!=null?r:g).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.f7._unsubscribeIronResize=function(g){var r;((r=g.hostElement)!=null?r:g).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var WbP=[Array,Boolean,Date,Number,Object,String],ia=function(g,r,E,B){this.polySiInfo=g;this.polySiParams=r;this.polySiContext=E;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;B||this instanceof HTMLElement&&(B=this);if(!B)throw Error("Og");this.allowedProps=r.allowedProps;this.hostElement=B;this.is=g.is;this.upgradeDisabled=!!r.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");g=new Set(r.reactiveSchemas.filter(function(w){return w.type!==
"observe"}).map(function(w){return w.propertyKey}));
this.signalProxy=new PP(this,void 0,{reactiveProps:g,reactivityMode:r.reactivityMode});this.__dataHasAccessor={};r=_.U(r.reactiveSchemas);for(g=r.next();!g.done;g=r.next())g=g.value,g.type==="signal"&&(this.__dataHasAccessor[g.propertyKey]=!0);this.upgradeDisabled||bqU(this)};
ia.prototype.getExtraMethodsToForward=function(){return[]};
var bqU=function(g){g.polySiContext.didRegister||(g.registered(),g.polySiContext.didRegister=!0);g.polySiContext.finalizedTemplate||(g.polySiContext.finalizedTemplate={},g.polySiParams.templateGetter&&(g.polySiContext.finalizedTemplate.processedTemplate=opV(g.polySiParams.templateGetter,g.polySiParams.is)));J3D(g);var r=g.hostElement;r.loggingStatus!=null||(r.loggingStatus={});r.loggingStatus.isInitializing=!0;uQ(function(){return void g.created()});
r.loggingStatus.isInitializing=!1;g.isPolySiElementConnected&&PhT(g)},PhT=function(g){g.didCallReady||(uQ(function(){return void g.ready()}),g.didCallReady=!0);
g.isAttached=!0;g.attached()};
_.S=ia.prototype;_.S.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||PhT(this)};
_.S.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.S.attributeChangedCallback=function(g,r,E){if(this.upgradeDisabled)g==="disable-upgrade"&&E===null&&(this.upgradeDisabled=!1,bqU(this));else if(r!==E){var B=_.Qk(g),w=this.polySiContext.typesForSignals[B];if(w&&(!this.reflecting||_.Y("polysi_attribute_changed_serializing_killswitch"))){switch(w){case Object:try{var O=JSON.parse(E)}catch(u){O=E}break;case Array:try{O=JSON.parse(E)}catch(u){O=null}break;case Date:O=isNaN(E)?String(E):Number(E);O=new Date(O);break;case Boolean:O=E!==null;break;case Number:O=
Number(E);break;default:O=E}this[B]=O}B=_.U(this.polySiParams.behaviors);for(w=B.next();!w.done;w=B.next())O=void 0,(O=w.value.attributeChanged)==null||O.call(this,g,r,E);var M;(M=this.attributeChanged)==null||M.call(this,g,r,E)}};
_.S.attributeChangedCallbackWrapper=function(g,r,E){this.attributeChangedCallback(g,r,E)};
_.S.setPropertiesFromInitialAttributeValues=function(){for(var g=0;g<this.hostElement.attributes.length;g++){var r=this.hostElement.attributes[g];(r.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(r.name))&&this.attributeChangedCallback(r.name,null,r.value)}};
_.S.created=function(){this.provide=this.polySiParams.provide;var g;(g=this.initializeInjection)==null||g.call(this);g=_.U(this.polySiParams.reactiveSchemas);for(var r=g.next();!r.done;r=g.next())r=r.value,r.type==="signal"&&(this.mutablePropNames.add(r.propertyKey),KR(this.signalProxy,r.propertyKey));e5X(this,this.polySiInfo,this.polySiParams.behaviors);g=_.U(this.polySiParams.reactiveSchemas);for(r=g.next();!r.done;r=g.next())r=r.value,r.type==="signal"&&r.value!==void 0&&(this.signalProxy.model[r.propertyKey]=
typeof r.value==="function"?r.value.call(this):r.value);if(this.polySiParams.signalProperties)for(g=_.U(this.polySiParams.signalProperties),r=g.next();!r.done;r=g.next()){r=r.value;var E=void 0;((E=this.__signalCache)==null?0:E.has(r))||(this.signalProxy.model[r]=void 0)}zbA||tRD(this);FbS(this);g=_.U(this.polySiParams.behaviors);for(r=g.next();!r.done;r=g.next())E=void 0,(E=r.value.created)==null||E.call(this);var B;(B=this.polySiInfo.created)==null||B.call(this)};
_.S.registered=function(){var g=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var r=Object.getPrototypeOf(this);r.addReactiveSchema=function(u){g.polySiParams.reactiveSchemas.push(u)};
for(var E=_.U(this.polySiParams.behaviors),B=E.next();!B.done;B=E.next()){var w=void 0;(w=B.value.beforeRegister)==null||w.call(r)}var O;(O=this.polySiInfo.beforeRegister)==null||O.call(r);r.addReactiveSchema=KbD;E=_.U(this.polySiParams.behaviors);for(B=E.next();!B.done;B=E.next())w=void 0,(w=B.value.registered)==null||w.call(r);var M;(M=this.polySiInfo.registered)==null||M.call(r)};
_.S.ready=function(){var g;(g=this.beforeReady)==null||g.call(this);zbA&&tRD(this);var r;if(g=(r=this.polySiContext.finalizedTemplate)==null?void 0:r.processedTemplate){g=ljY(g.template,g.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:g.hasInsertionPoint,thisCtx:this});r=g.nodesById;g=g.root;var E=this.hostElement;var B=B===void 0?!1:B;E=(0,_.q1)(E);if(!E.attachShadow)throw Error("Hd");if(!E.shadowRoot||B)E.attachShadow({mode:"open",shadyUpgradeFragment:g}),E.shadowRoot.appendChild(g);
this.root=E.shadowRoot;this.$=r}FII(this);B=_.U(this.polySiParams.behaviors);for(r=B.next();!r.done;r=B.next())g=void 0,(g=r.value.ready)==null||g.call(this);var w;(w=this.polySiInfo.ready)==null||w.call(this)};
_.S.attached=function(){for(var g=_.U(this.polySiParams.behaviors),r=g.next();!r.done;r=g.next()){var E=void 0;(E=r.value.attached)==null||E.call(this)}var B;(B=this.polySiInfo.attached)==null||B.call(this)};
_.S.detached=function(){for(var g=_.U(this.polySiParams.behaviors),r=g.next();!r.done;r=g.next()){var E=void 0;(E=r.value.detached)==null||E.call(this)}var B;(B=this.polySiInfo.detached)==null||B.call(this)};
var J3D=function(g){for(var r=_.U(g.polySiParams.behaviors),E=r.next();!E.done;E=r.next())if(E=E.value,E.listeners)for(var B in E.listeners)ueX(g,g.hostElement,B,E.listeners[B]);if(g.polySiInfo.listeners)for(var w in g.polySiInfo.listeners)ueX(g,g.hostElement,w,g.polySiInfo.listeners[w])},ueX=function(g,r,E,B,w){g=u9V(g,B,w);
bp(r,E,g)||r.addEventListener(E,g);return g},tRD=function(g){for(var r=_.U(g.polySiParams.reactiveSchemas),E=r.next();!E.done;E=r.next())E=E.value,E.type==="compute"||E.type==="computeWithMethod"?GVo(g.signalProxy,E,g):E.type==="redux"?kVY(g.signalProxy,E,g.store):E.type==="signal"&&E.readOnly&&zCD(g.signalProxy,E)},FII=function(g){for(var r=_.U(g.polySiParams.reactiveSchemas),E=r.next(),B={};!E.done;B={schema$jscomp$12:void 0},E=r.next())B.schema$jscomp$12=E.value,B.schema$jscomp$12.type==="notify"?
p4t(g.signalProxy,B.schema$jscomp$12,g.hostElement):B.schema$jscomp$12.type==="observe"?YVA(g.signalProxy,B.schema$jscomp$12,g):B.schema$jscomp$12.type==="reflect"&&g.signalProxy.effect(function(O){return function(){var M=g.signalProxy.getWithPath([O.schema$jscomp$12.propertyKey]);
g.reflecting=!0;eCV(g.hostElement,O.schema$jscomp$12.propertyKey,M,!0);g.reflecting=!1}}(B));
if(g.reflectedAttributes)for(r=_.U(Object.entries(g.reflectedAttributes)),B=r.next(),E={};!B.done;E={key$jscomp$886:void 0,value$jscomp$8929:void 0},B=r.next()){var w=_.U(B.value);B=w.next().value;w=w.next().value;E.key$jscomp$886=B;E.value$jscomp$8929=w;g.signalProxy.effect(function(O){return function(){g.reflecting=!0;eCV(g.hostElement,O.key$jscomp$886,(0,O.value$jscomp$8929)(),!0);g.reflecting=!1}}(E))}};
_.S=ia.prototype;_.S._setPendingProperty=function(g,r){this.set(g,r);return!1};
_.S._enableProperties=function(){};
_.S._setPendingPropertyOrPath=function(g,r){this.notifyPath(g,r);return!1};
_.S._addPropertyEffect=function(){};
_.S._stampTemplate=function(){throw Error("Pg");};
_.S.fire=function(g,r,E){r=r===void 0?{}:r;E=E===void 0?{}:E;var B,w,O={bubbles:(B=E.bubbles)!=null?B:!0,cancelable:!!E.cancelable,composed:(w=E.composed)!=null?w:!0},M;return _.Sh(xvV((M=E.node)!=null?M:this.hostElement),g,r,O)};
_.S.get=function(g,r){var E=Wi(g);return r?lLY(r,E):g==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(E)};
_.S.linkPaths=function(){};
_.S.listen=function(g,r,E){g=xvV(g);this.boundListeners!=null||(this.boundListeners=new WeakMap);var B=this.boundListeners.get(g);B||(B={},this.boundListeners.set(g,B));var w=r+E;B[w]||(B[w]=ueX(this,g,r,E))};
_.S.notifyPath=function(g,r){this.signalProxy.notifyPath(Wi(g),arguments.length===2?{value:r}:void 0)};
_.S.canNotifyPath=function(g){return this.mutablePropNames.has(g)&&!ZOQ(this.signalProxy,g)};
_.S.notifySplices=function(g,r){this.signalProxy.notifySplices(Wi(g),r)};
_.S.pop=function(g){var r=this.signalProxy;g=Wi(g);var E=_.U(g);g=E.next().value;E=Zq(E);return KR(r,g).pop(E)};
_.S.push=function(g){var r=_.fI.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[Wi(g)].concat(_.jW(r)))};
_.S.set=function(g,r,E){if(E)throw Error("Qg");g==="hidden"?this.hostElement.hidden=!!r:this.signalProxy.setWithPath(Wi(g),r)};
_.S.setProperties=function(g){g=_.U(Object.entries(g));for(var r=g.next();!r.done;r=g.next()){var E=_.U(r.value);r=E.next().value;E=E.next().value;this[r]=E}};
_.S.splice=function(g,r,E){var B=_.fI.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[Wi(g),r,E].concat(_.jW(B)))};
_.S.unlinkPaths=function(){};
_.S.unlisten=function(g,r,E){g=xvV(g);if(this.boundListeners){var B=this.boundListeners.get(g);if(B){E=r+E;var w=B[E];w&&(Jx(g,r,w)||g.removeEventListener(r,w),delete B[E])}}};
_.S.unshift=function(g){var r=_.fI.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[Wi(g)].concat(_.jW(r)))};
_.hx.Object.defineProperties(ia.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 ZHS=[Array,Boolean,Date,Number,Object,String];var dvo=!1;var tm=function(){var g=HTMLElement.apply(this,arguments)||this;g.restamp=!1;g.notifyDomChange=!1;g.JSC$11559_didCallConnected=!1;g.JSC$11559_renderDebouncer=null;g.disableTemplateUpdateSignalImpl=LR()?void 0:_.Dk(!1,void 0,"Ofhkwb");var r;g.getDisableTemplateUpdate=(r=g.disableTemplateUpdateSignalImpl)==null?void 0:r[0];var E;g.setDisableTemplateUpdate=(E=g.disableTemplateUpdateSignalImpl)==null?void 0:E[1];return g};
_.f(tm,HTMLElement);var ebA=function(g){g.conditionSignalImpl!=null||(g.conditionSignalImpl=new Jm(_.Dk(!1,void 0,"gE52Fb")));return g.conditionSignalImpl};
_.S=tm.prototype;_.S.showHideChildren=function(g){WI4(this,g,this.if)};
_.S.attributeChangedCallback=function(g,r,E){if(this.JSC$11559_didCallConnected)throw Error("Ug`"+g);g==="notify-dom-change"?this.notifyDomChange=E!==null:g==="restamp"&&(this.restamp=E!==null)};
_.S.debounceRender=function(){this.JSC$11559_renderDebouncer=_.g3(this.JSC$11559_renderDebouncer,tx,this.JSC$11559_renderImpl.bind(this));_.r3(this.JSC$11559_renderDebouncer)};
_.S.disconnectedCallback=function(){var g=(0,_.q1)(this).parentNode;(!g||g.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in g&&!g.host)&&ChI(this)};
_.S.connectedCallback=function(){var g=this;this.JSC$11559_didCallConnected=!0;GQD?TRL():this.style.display="none";this.parentSignalProxy.effect(function(){ebA(g).getWithPath([]);g.debounceRender()})};
_.S.render=function(){_.SB()};
_.S.JSC$11559_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var g=this.if;if(g){a:{var r=(0,_.q1)(this).parentNode;if(this.hasInstance()){var E=this.instance.children;if((E==null?0:E.length)&&(0,_.q1)(this).previousSibling!==E[E.length-1])for(var B=0;B<E.length;B++)(0,_.q1)(r).insertBefore(E[B],this)}else{if(!r){r=!1;break a}KII(this,r)}r=!0}if(!r)return}else this.restamp&&ChI(this);WI4(this,!1,g);g&&x7w(this);Q0n&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.S.hasInstance=function(){return!!this.instance};
var KII=function(g,r){var E=g.parentSignalProxy;if(LR()){var B=_.U(_.Dk(!0,void 0,"jPhFae"));var w=B.next().value;B=B.next().value;E=g.parentSignalProxy}else{var O;var M=new PP((O=adI(g))!=null?O:{},function(l){var Q=KR(g.parentSignalProxy,l).getChangeRecordSignal([]);l=_.Dk(void 0,void 0,"nE9rQb");var z=new Jm(l);M.effect(function(){if(g.getDisableTemplateUpdate&&!g.getDisableTemplateUpdate()){var k=Q();z.notifyPath(Wi(k.path),{value:k.value})}});
return z});
g.parentSignalProxy.childSignalProxies.push(M);var u=E=M}E=ljY(g.templateInfo,g.templateInfo.nodeInfoList,E,{eventListenerHost:g.eventListenerHost,hasInsertionPoint:g.templateInfo.hasInsertionPoint,thisCtx:g.eventListenerHost,enabledSignal:LR()?w:void 0,getModel:function(){return adI(g)}}).root;
g.instance={root:E,children:[],hidden:!1,signalProxy:u,getTemplateUpdatesEnabled:w,setTemplateUpdatesEnabled:B};u=_.U(E.childNodes);for(w=u.next();!w.done;w=u.next())g.instance.children.push(w.value);(0,_.q1)(r).insertBefore(g.instance.root,g)},adI=function(g){if((g=g.parentSignalProxy.model)&&!g.hostElement){var r={},E;
for(E in g)g.hasOwnProperty(E)&&(r[E]=g[E]);return r}},ChI=function(g){if(g.instance){var r=g.instance.children;
if(r.length){var E=(0,_.q1)(r[0]).parentNode;if(E){E=(0,_.q1)(E);for(var B=0;B<r.length;B++)E.removeChild(r[B])}}LR()?g.instance.setTemplateUpdatesEnabled(!1):g.instance.signalProxy.dispose();g.instance=void 0}},WI4=function(g,r,E){r=r||!E;
g.instance&&g.instance.hidden!==r&&(g.instance.hidden=r,vpl(r,g.instance.children))},x7w=function(g){if(LR()){var r=g.instance;
r&&e1(g.parentSignalProxy.owner,function(){return!r.getTemplateUpdatesEnabled()})&&r.setTemplateUpdatesEnabled(!0)}else g.setDisableTemplateUpdate(!1)};
_.hx.Object.defineProperties(tm.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var g=this;return e1(this.parentSignalProxy.owner,function(){return ebA(g).getWithPath([])})},
set:function(g){g||(LR()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));ebA(this).setWithPath([],!!g)}}});
_.hx.Object.defineProperties(tm,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",tm);var Xc4=[],FQ=function(){var g=HTMLElement.apply(this,arguments)||this;g.as="item";g.indexAs="index";g.itemsIndexAs="itemsIndex";g.targetFramerate=20;g.notifyDomChange=!1;g.isDetached=!1;g.JSC$11566_renderDebouncer=null;g.instances=[];g.chunkingId=null;g.chunkCount=null;g.shouldMeasureChunk=!1;g.shouldContinueChunking=!1;g.renderStartTime=null;g.JSC$11566_didCallConnected=!1;return g};
_.f(FQ,HTMLElement);var N4Z=function(g){g.itemSignalImpl!=null||(g.itemSignalImpl=new Jm(_.Dk(Xc4,void 0,"YBrqgf")));return g.itemSignalImpl},Idb=function(g,r){Array.isArray(r)||(r=Xc4);
N4Z(g).setWithPath([],r)};
_.S=FQ.prototype;_.S.showHideChildren=function(g){for(var r=_.U(this.instances),E=r.next();!E.done;E=r.next())vpl(g,E.value.children)};
_.S.notifyPath=function(g,r){g=Wi(g);g[0]==="items"&&(g.length===1?Idb(this,r):N4Z(this).setWithPath(g.slice(1),r))};
_.S.canNotifyPath=function(g){return g==="items"};
_.S.attributeChangedCallback=function(g,r,E){if(this.JSC$11566_didCallConnected)throw Error("Vg`"+g);g==="as"?this.as=E:g==="index-as"?this.indexAs=E:g==="items-index-as"?this.itemsIndexAs=E:g==="initial-count"?this.initialCount=Number(E):g==="notify-dom-change"?this.notifyDomChange=E!==null:g==="target-framerate"&&(this.targetFramerate=Number(E))};
_.S.disconnectedCallback=function(){this.isDetached=!0;for(var g=0;g<this.instances.length;g++)m7m(this,g);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.S.connectedCallback=function(){var g=this,r=N4Z(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var w=r(),O=Wi(w.path);if(O[0]===void 0||O[0]==="splices"||O[0]==="length")g.debounceRender();else{var M=O[0];if(M=g.instances[typeof M==="string"?Math.floor(Number(M)):M])O=[g.as].concat(_.jW(O.slice(1))),M.signalProxy.notifyPath(O,w)}});
this.JSC$11566_didCallConnected=!0;GQD?TRL():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var E=(0,_.q1)((0,_.q1)(this).parentNode),B=0;B<this.instances.length;B++)E.insertBefore(this.instances[B].root,this);this.chunkingId&&this.render()}};
_.S.debounceRender=function(){this.JSC$11566_renderDebouncer=_.g3(this.JSC$11566_renderDebouncer,tx,this.JSC$11566_renderImpl.bind(this));_.r3(this.JSC$11566_renderDebouncer)};
_.S.render=function(){this.debounceRender();_.SB()};
_.S.JSC$11566_renderImpl=function(){var g=this;if(!this.parentSignalProxy.isDisposed){var r=this.items,E=c3Z(this,r.length);iqw(this,r,E);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){g.chunkingId=null;if(g.shouldMeasureChunk){var B=performance.now()-g.renderStartTime;g.chunkCount=Math.round(Math.ceil(1E3/g.targetFramerate)/B*g.chunkCount)||1}g.shouldContinueChunking&&g.debounceRender()}));
Q0n&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var c3Z=function(g,r){var E=r,B=g.instances.length;if(g.initialCount){if(g.chunkCount){var w=Math.min(Math.max(r-B,0),g.chunkCount);E=Math.min(B+w,r)}else E=Math.min(r,g.initialCount),w=Math.max(E-B,0),g.chunkCount=w||1;g.shouldMeasureChunk=w===g.chunkCount;g.shouldContinueChunking=E<r;g.renderStartTime=performance.now()}return E},iqw=function(g,r,E){for(var B=0;B<E;B++){var w=g.instances[B],O=r[B];
w?(w.signalProxy.setWithPath([g.as],O),w.signalProxy.setWithPath([g.indexAs],B)):LIm(g,O,B)}for(r=g.instances.length-1;r>=B;r--)E=g,w=r,m7m(E,w),_.U(E.instances.splice(w,1)).next().value.signalProxy.dispose()},m7m=function(g,r){g=g.instances[r];
r=(0,_.q1)(g.root);for(var E=0;E<g.children.length;E++)r.appendChild(g.children[E])},LIm=function(g,r,E){var B={};
r=Object.assign({},VRT(g),(B[g.as]=r,B[g.indexAs]=E,B[g.itemsIndexAs]=E,B));var w=new PP(r,function(M){if(M!==g.as&&M!==g.indexAs){if(M===g.itemsIndexAs)return KR(w,g.indexAs);var u=KR(g.parentSignalProxy,M).getChangeRecordSignal([]);M=_.Dk(void 0,void 0,"T21Pqc");var l=new Jm(M);w.effect(function(){var Q=u();l.notifyPath(Wi(Q.path),{value:Q.value})});
return l}});
g.parentSignalProxy.childSignalProxies.push(w);B=ljY(g.templateInfo,g.templateInfo.nodeInfoList,w,{eventListenerHost:g.eventListenerHost,getModel:function(){var M={};return Object.assign({},VRT(g),(M[g.as]=w.model[g.as],M[g.indexAs]=w.model[g.indexAs],M[g.itemsIndexAs]=w.model[g.indexAs],M))},
hasInsertionPoint:g.templateInfo.hasInsertionPoint,thisCtx:g.eventListenerHost,methodInvocationRequirement:kQw,enabledSignal:g.stampingEnabled}).root;r={root:B,children:[],signalProxy:w};B=_.U(B.childNodes);for(var O=B.next();!O.done;O=B.next())r.children.push(O.value);B=(B=g.instances[E+1])?B.children[0]:g;(0,_.q1)((0,_.q1)(g).parentNode).insertBefore(r.root,B);g.instances[E]=r},VRT=function(g){if((g=g.parentSignalProxy.model)&&!g.hostElement){var r={},E;
for(E in g)g.hasOwnProperty(E)&&(r[E]=g[E]);return r}};
FQ.prototype.itemForElement=function(g){var r=this,E=this.instances.find(function(B){return B.children.includes(g)});
if(E)return e1(this.parentSignalProxy.owner,function(){return E.signalProxy.getWithPath([r.as])})};
FQ.prototype.indexForElement=function(g){var r=this.instances.findIndex(function(E){return E.children.includes(g)});
return r>=0?r:void 0};
_.hx.Object.defineProperties(FQ.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var g=this;return e1(this.parentSignalProxy.owner,function(){return N4Z(g).getWithPath([])})},
set:function(g){Idb(this,g)}},
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}}});
_.hx.Object.defineProperties(FQ,{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",FQ);var hbT,Zqn;_.e2=new _.Vn("STATE_STORE_TOKEN");hbT=new _.Vn("SELECT_TOKEN");Zqn=new _.Vn("DISPATCH_TOKEN");var SuB={getSelectFn:function(){var g;return(g=_.rM().resolve(_.gM(hbT)))!=null?g:gVY},
getDispatchFn:function(){var g;return(g=_.rM().resolve(_.gM(Zqn)))!=null?g:_.V7().dispatch.bind(_.V7())},
getAppStore:function(){return _.rM().resolve(_.e2)}},r3J,wcX=!1;var vi={traceAllComponents:_.Y("web_tracing_all_components"),exportToCsi:_.Y("web_tracing_export_to_csi"),exportBreadcrumbs:_.Y("web_enable_tracing"),bufferSize:_.wM("web_max_tracing_events"),enabledSpansArray:_.Or("web_tracing_enabled_spans")};var oVc=function(){};var ubt=void 0;var y3A=function(){};
y3A.prototype.hasAttribute=function(g){if(g==="dir")return!1;if(g==="disable-upgrade"){var r,E;return(E=(r=this.hostElement)==null?void 0:r.hasAttribute("disable-upgrade"))!=null?E:!1}throw Error("Wg`"+g);};
y3A.prototype.attributeChangedCallbackWrapper=function(g,r,E){if(g==="disable-upgrade"&&this.__isUpgradeDisabled&&E===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var B;((B=this.hostElement)!=null?B:this).isConnected&&this.connectedCallback()}else r===E||this.__isReflecting||this.attributeChangedCallback(g,r,E)};
y3A.prototype.getExtraMethodsToForward=function(){for(var g=this,r=[],E=_.U(vVb),B=E.next(),w={};!B.done;w={tagName$jscomp$54:void 0,name$jscomp$534:void 0},B=E.next())w.name$jscomp$534=B.value,B=void 0,w.name$jscomp$534==="_setPendingProperty"?(w.tagName$jscomp$54=this.hostElement.tagName.toLowerCase(),B=function(O){return function(M,u,l){sN(O.tagName$jscomp$54,M,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return g._setPendingProperty(M,u,l)}}(w)):B=function(O){return function(){return g[O.name$jscomp$534].apply(g,
_.jW(_.fI.apply(0,arguments)))}}(w),r.push([w.name$jscomp$534,
B]);return r};
for(var zbl=A3T(j0n((0,_.GA)(y3A))),YuY=["disabled","disable-upgrade"],d7n=(0,_.GA)(function(){}),T4b=new Set(Object.getOwnPropertyNames(d7n.prototype)),$7o=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.jW(T4b))),nVl=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),vVb=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),gwU=new Set([].concat(_.jW(nVl),_.jW(vVb),_.jW(T4b))),rTT=_.U(gwU),EwD=rTT.next();!EwD.done;EwD=rTT.next())IKc.add(EwD.value);var fdS={created:function(){FbS(this);this.initializeInjection()}};var WIP=!1,E2=window.ShadyDOM,m7X=["appendChild","insertBefore","removeChild","replaceChild"],Idc=[Node];E2&&Idc.push(E2.Wrapper);var ZqA,y3l,T4c={};var S_=new Set,Bw="",gwV="";var wL,O2=new Set;var qHQ=new Set("context didCallReady is info params signalProxy".split(" ")),lVD="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),DBo="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var Bdw=DY({entities:OiB}),wO6=new hj(Bdw);var SHz=function(){return _.Hi.apply(this,arguments)||this};
_.f(SHz,_.Hi);_.hx.Object.defineProperties(SHz.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return wO6}}});
_.m([_.pR()],SHz);_.WP=[Am.prototype,SHz.prototype];_.CB={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var g=this,r={};setTimeout(function(){var E;return _.Sh((E=g.hostElement)!=null?E:g,"yt-live-chat-add-tooltip-target",r)},0);
this.handler_=r.handler},
detached:function(){if(this.handler_){var g;this.handler_.removeElementFromSupportingTooltips((g=this.hostElement)!=null?g:this)}this.handler_=null}}};_.o3=new _.Vn("ICON_MANAGER_TOKEN");var OKw=[48,20,18,16,15,13,12],WQQ=new Map,bKJ=new Set,$Bt=new Set,ATJ=new Set,fVP=new Set,jrc=new Set,PJP=new Promise(function(g){var r=!1,E=!1,B=!1,w=[],O=function(M){if("detail"in M)if(M=M.detail,M.name==="yt-icons")JTB(M),r=!0;else if(M.name==="yt-sys-icons")JTB(M),E=!0;else{var u;((u=M.name)==null?0:u.includes("yt-sys-icons"))&&M.size!==24&&(JTB(M,!0),w.push(M.size),w.length===OKw.length&&(B=!0))}r&&E&&B&&(window.removeEventListener("iron-iconset-added",O),g())};
window.addEventListener("iron-iconset-added",O)}),FQS=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"]]);_.KB={};_.KB.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.Vp,computeHref_:function(g,r){r=r===void 0?!1:r;if(!g||g.commandExecutorCommand)return null;var E=NLL(g,r);return r||E!==null?E?_.Y("enable_polymer_resin")?_.nI(E).toString():E:null:(_.el(new _.Rj("computeHref was null",this.is,g)),null)},
computeOptionalHref_:function(g){return this.computeHref_(g,!0)},
computeNofollow_:function(g){return g?t_Y(g)?"nofollow":null:null},
computeIcon_:function(g){return g&&g.iconType?_.Dh(g.iconType):""},
resolveCommand:function(g,r,E){r=r===void 0?{}:r;return _.Qy(g,this.hostElement,r,E===void 0?!1:E)}};var M0I,xl;_.UBD={};M0I=null;
xl={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_=jYQ(this.viewroot));_.N1(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var g=this;this.unobserve_();if(_.Y("kevlar_vimio_use_shared_monitor"))XOS(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 r=[];this.visibilityOptionVisible_&&r.push(this.visibilityObserver.observe(this.hostElement,function(){return g.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&r.push(this.visibilityObserver.observe(this.hostElement,function(){return g.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&r.push(this.visibilityObserver.observe(this.hostElement,function(){return g.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=r}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){CJt(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 g=_.CN(this.parentNode,function(E){var B,w=(B=E.polymerController)!=null?B:E;return!!w.getVisibilityObserverForChild&&w.getVisibilityObserverForChild()},!0);
if(g){var r;this.localVisibilityObserver_=((r=g.polymerController)!=null?r:g).getVisibilityObserverForChild()}else M0I||(M0I=jYQ()),this.localVisibilityObserver_=M0I;return this.localVisibilityObserver_},visibilityCallback:function(g){g?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.Y("kevlar_use_vimio_behavior")||(xl={});xl&&!_.Y("kevlar_use_vimio_behavior")&&(delete xl.attached,delete xl.detached);_.UBD.YtVisibilityObserverBehavior=[xl];var qHI={};qHI.YtVisualElementBehavior=[_.UBD.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.Y("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.Y("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var g=this.getScreenLayer&&this.getScreenLayer(),r=this.getVisibilityLogger();r&&r.reportShown(this,void 0,g)}},
onHidden:function(){if(_.Y("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.Y("kevlar_vimio_use_shared_monitor")){var g=this.getScreenLayer&&this.getScreenLayer(),r=this.getVisibilityLogger();r&&r.reportHidden(this,void 0,g)}},
getVisibilityLogger:function(){return _.Y("kevlar_use_vimio_behavior")?_.kP():null},
shouldSkipLogging:function(){if(_.Ca("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var g=this.getParentRenderer&&this.getParentRenderer();if(!g)return!1;var r,E=(r=g.polymerController)!=null?r:g;if(!E.data)return!1;g=this.data.trackingParams;g=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:g;var B;r=(B=E.data)==null?void 0:B.trackingParams;var w,O;r=((w=E.data)==null?0:w.loggingDirectives)?(O=E.data)==null?void 0:O.loggingDirectives.trackingParams:r;return g&&r&&g===
r}}];var mBS=new Map,$P;var CfQ=function(g){this.layer=g},uj=function(g){return g.layer!==void 0?g.layer:g.parent?uj(g.parent):g.layer=0};var ZKJ;_.T={};ZKJ=0;_.T.YtRendererBehavior=[_.KB.YtComponentBehavior,qHI.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_:_.Y("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var g,r;(r=(g=this.monitorScrollElement)!=null?g:this.hostElement)==null||r.removeEventListener("scroll",_.Do(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();NdA(this.hostElement);Ydw(_.Yl(),this.hostElement);Z$.delete(this.hostElement)},
registerRenderer:function(g){var r;((r=g.polymerController)!=null?r:g).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(g),this.markDirty())},
unregisterRenderer_:function(g){this.useVimio_||(this.childCache_.delete(g),this.markDirty())},
attached:function(){var g=this,r=this.getParentRenderer();if(r){var E,B,w;(B=(E=(w=r.polymerController)!=null?w:r).registerRenderer)==null||B.call(E,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var O,M;(M=(O=this.monitorScrollElement)!=null?O:this.hostElement)==null||M.addEventListener("scroll",_.Do(this,this.onScroll))}_.F6.addJob(function(){cTc(g.hostElement)},8);
E=new CfQ(this.screenLayer||void 0);(r=Z$.get(r))&&r.layerNode&&(E.parent=r.layerNode);r={};tsP(this.hostElement,(r.isRenderer=!0,r.layerNode=E,r[KWV]=this.data,r))},
getParentRenderer:function(){for(var g=this.hostElement.parentNode,r,E;g&&((r=Z$.get(g))==null||!r.isRenderer)&&!((E=g.polymerController)!=null?E:g).isRenderer_;)g=g.parentNode||g.host;return g},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.Y("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.Ka("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.Y("debug_web_ve_data")&&this.data.trackingParams){var g="";try{g=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(E){_.tn(E)}if(g){var r=BUl(g,1);r!==void 0&&(this.hostElement.dataset.veIndex=String(r));g=BUl(g,2);
g!==void 0&&(this.hostElement.dataset.ve=String(g))}}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,_.Y("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.fW(this.data.loggingDirectives.trackingParams)),this.visualElement=_.Hw(_.pW(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var g=this.data.targetId;_.npb(_.Yl(),g,this.hostElement)}else Ydw(_.Yl(),this.hostElement)},
onScroll:function(){var g=Date.now();g-this.lastHandledScroll_<50||(this.lastHandledScroll_=g,this.markDirty())},
markDirty:function(){_.Y("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():yTc(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var g=this.getParentRenderer();if(g&&(g=Z$.get(g))&&g.layerNode)return uj(g.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.jW(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var g=0;g<this.data.impressionEndpoints.length;g++)this.sendImpression(this.data.impressionEndpoints[g]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(g){g.clickTrackingParams&&delete g.clickTrackingParams;var r,E;(g==null?0:(r=g.commandMetadata)==null?0:(E=r.webCommandMetadata)==null?0:E.sendPost)?_.q2(this.hostElement,[g,{impression:!0}]):_.uq(this.hostElement,[g],this.hostElement)},
logExplicitClick:function(g){var r=_.PE(this.getScreenLayer());if(r){var E,B=(E=g.polymerController)!=null?E:g;g=B.visualElement;B=B.trackingParams||B.clickTrackingParams;!g&&B&&(g=_.fW(B));g&&_.Lu(r,g)}}}];var uWA={},af=function(){return _.Hi.apply(this,arguments)||this};
_.f(af,_.Hi);af.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
af.prototype.onPdgItemBehaviorClick=af.prototype.onPdgItemBehaviorClick;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],af.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],af.prototype,"data",void 0);_.m([_.ob("click"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],af.prototype,"onPdgItemBehaviorClick",null);_.m([_.pR()],af);uWA.YtPdgLiveChatItemBehavior=[af.prototype,_.T.YtRendererBehavior];var lVw;var DBz;_.XQ={};_.XQ.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var N9=function(){var g=v3.apply(this,arguments)||this;g.switchTemplateAtRegistration=!1;return g};
_.f(N9,v3);N9.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||gmc(this),_.AIP(this,"doRender"),this.doRender())};
N9.prototype.debounceRender=function(){this.templatingFn&&_.Ib(this,"doRender",this.doRender)};
N9.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.tn(Error("fh"))};
N9.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.m([pvo()],N9);var owT=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,If={},w5A=(If[1]={filterString:null,isUnwrappable:null,unwrap:null},If[2]={filterString:function(g,r,E){return Ug(E)},
isUnwrappable:function(g){return g instanceof bi},
unwrap:function(g){return Pu(g)}},If[3]={filterString:function(g,r,E){return owT.test(E)?E:RC.toString()},
isUnwrappable:function(g){return Qv(g)},
unwrap:function(g){return _.zh(g)}},If[4]={filterString:function(){return RC.toString()},
isUnwrappable:function(g){return g instanceof MO},
unwrap:function(g){return _.ui(g).toString()}},If[5]={filterString:function(g,r,E){return E},
isUnwrappable:function(g){return typeof g==="string"},
unwrap:function(g){return g.toString()}},If[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(g){return g instanceof _.aC},
unwrap:function(g){return NO(g)}},If[8]={filterString:function(g,r,E){E=String(E).toLowerCase();
return qeo(g,r,E)?E:"zClosurez"},
isUnwrappable:null,unwrap:null},If[10]={filterString:null,isUnwrappable:null,unwrap:null},If);vf[aB["default"]]=O2L;var U6X=[];var nLt=q3J("A"),seQ=q3J("BUTTON"),fh=q3J("DIV"),fUS=q3J("LABEL");(function(){var g=y6;y6=function(r){g==null||g(r);JM(function(){for(var E=0;E<r.length;E++)Mdl(r[E])})}})();var GOD=function(){var g=_.Hi.apply(this,arguments)||this;g.hasUnmounted=!1;return g};
_.f(GOD,_.Hi);_.S=GOD.prototype;_.S.beforeRegister=function(){var g=this.doIdomRender;this.templatingFn?_.tn(Error("eh")):(this.templatingFn=g,this.switchTemplateAtRegistration=!0,BSQ(this))};
_.S.attached=function(){};
_.S.detached=function(){Mdl(this.hostElement)};
_.S.renderIdom=function(){throw Error("hh");};
_.S.doIdomRender=function(){var g=this;TLD(this.hostElement,function(){g.renderIdom()})};
_.m([_.pR()],GOD);var QrZ=[N9.prototype,GOD.prototype];var z3w,kOz=function(){return z3w!==void 0?z3w:z3w=document.createElement("template")};
document.head.appendChild(kOz().content);var HKD;var pOz,YHz=function(){return pOz!==void 0?pOz:pOz=document.createElement("template")};
document.head.appendChild(YHz().content);var R3D;var nwA=document.head,srb=nwA.appendChild,fV4;if(R3D===void 0){var $BD=document.createElement("template");_.b($BD,"\x3c!--css-build:shady--\x3e");$BD.content.insertBefore(YHz().content.cloneNode(!0),$BD.content.firstChild);R3D=$BD}fV4=R3D;srb.call(nwA,fV4.content);var jrb,AT6=function(){return jrb!==void 0?jrb:jrb=document.createElement("template")};
document.head.appendChild(AT6().content);var bK6;var JTn=document.head,PJ4=JTn.appendChild,t0n;if(bK6===void 0){var FQD=document.createElement("template");_.b(FQD,"\x3c!--css-build:shady--\x3e");FQD.content.insertBefore(AT6().content.cloneNode(!0),FQD.content.firstChild);bK6=FQD}t0n=bK6;PJ4.call(JTn,t0n.content);var e3A=document.head,WQI=e3A.appendChild,CJD;if(HKD===void 0){var KQb=document.createElement("template");_.b(KQb,"\x3c!--css-build:shady--\x3e");KQb.content.insertBefore(kOz().content.cloneNode(!0),KQb.content.firstChild);HKD=KQb}CJD=HKD;WQI.call(e3A,CJD.content);var xBZ,aV4=function(){return xBZ!==void 0?xBZ:xBZ=document.createElement("template")};
document.head.appendChild(aV4().content);var XOD;_.Vy=new _.Vn("DARK_THEME_TOKEN");var ghJ=new _.V("accessibilityProperties");var TSD=new _.V("layoutProperties");var rGc=new _.V("imageType");var Ndn={};if("ytAttributedStringLinkHoverColor"in Ndn)throw Error("kh`ytAttributedStringLinkHoverColor");(function(g,r){Ndn[g]="value"in r&&"unit"in r?G6c(g,r):function(E){try{return r(E)}catch(B){throw Error("ih`"+g+"`"+B.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var IVw=function(g){var r=this;this.holdTime=g===void 0?500:g;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(E){var B=new CustomEvent("LONG_PRESS"),w;(w=E.changedTouches[0].target)==null||w.dispatchEvent(B)};
this.ontouchstart=function(E){r.longPressTimeout=_.jT(_.F6,function(){r.onlongpress(E);r.longPressOccurred=!0},r.holdTime)};
this.ontouchmove=function(){_.F6.cancelJob(r.longPressTimeout);r.longPressTimeout=NaN;r.longPressOccurred=!1;r.moveOccurred=!0};
this.ontouchend=function(E){if(r.longPressTimeout&&!r.longPressOccurred&&!r.moveOccurred){var B;(B=E.changedTouches[0].target)==null||B.dispatchEvent(new Event("click"))}_.F6.cancelJob(r.longPressTimeout);r.longPressTimeout=NaN;r.longPressOccurred=!1;r.moveOccurred=!1}};var C$D=function(g,r){IVw.call(this,r);var E=this;this.callback=g;this.onlongpress=function(B){var w;(w=E.callback)==null||w.call(E,B)}};
_.f(C$D,IVw);var K3V=function(g,r){var E=Object.assign({},r);g=_.U(new Map([["ontouchstart",g.ontouchstart],["ontouchend",g.ontouchend],["ontouchmove",g.ontouchmove]]));for(var B=g.next(),w={};!B.done;w={eventName$jscomp$85:void 0,eventHandler$jscomp$1:void 0},B=g.next()){var O=_.U(B.value);B=O.next().value;O=O.next().value;w.eventName$jscomp$85=B;w.eventHandler$jscomp$1=O;r[w.eventName$jscomp$85]=function(M){return function(u){var l;(l=E[M.eventName$jscomp$85])==null||l.call(E,u);(0,M.eventHandler$jscomp$1)(u)}}(w)}};_.Er=new _.Vn("COMMAND_HANDLER_TOKEN");var zrY=new _.V("parallelCommand");var p5D=new _.V("performOnceCommand");var H2l=new _.V("serialCommand");var Y3X=void 0;var mBD=function(){this.data=[];this.consumer=null};
mBD.prototype.push=function(g){this.consumer?this.consumer(g):this.data.push(g)};var Ta={};_.Dk(Ta,void 0,"sgPmTd");_.Dk(null,void 0,"jypsq");_.Dk(null,void 0,"mWiOof");var hVX=new mBD;var b2t=[fNc,$mQ,jWA,b_X,Avl,sWS,JvJ,PyX];var vmt=new _.V("bracketTextDecorator");var iV=new _.V("highlightTextDecorator");_.Zh=new _.Vn("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var L3B=function(){},cTb;
(cTb=window.requestIdleCallback)==null||cTb.bind(window);var hrc={calledOnce:!1,state:"visible"},VdL={calledOnce:!1,state:"hidden"};var iKU=new _.Vn("ICON_WIZ_COMPONENT_TOKEN");_.nh=_.dG(function(g){var r=g.icon;var E=g.active;var B=g.className;var w=g.style;var O=g.dataSelected;var M=g.dataDisabled;var u=g.role;var l=g.animateIcon;var Q=g.themeOverride;var z=g.ariaHidden;var k=g.ariaExpanded;var H=g.ariaLabel;var R=g.tabindex;var A=g.id;var J=g.size;var e=g.iconFilter;return _.G(_.p,{cond:r,then:function(){var C=_.rM().resolve(iKU);return _.G(C,{icon:r,dataSelected:O,dataDisabled:M,animateIcon:l,themeOverride:Q,ariaExpanded:k,tabindex:R,id:A,active:E,size:J,role:u,className:B,
ariaHidden:z,ariaLabel:H,style:function(){return w!=null&&w()||J==null||!J()?w==null?void 0:w():"width: "+(J==null?void 0:J())+"px;height: "+((J==null?void 0:J())+"px;")},
iconFilter:e})}})},"b");
_.nh.idomCompat=!0;var kqP=window.devicePixelRatio||1;var RkJ=new Map([["yt_outline_bag_black_24","bag"]]);var mt=function(g){var r=this;this.margin=.1;this.whenInViewportWithMargin=g;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){r.requestScan()});
window.addEventListener("touchend",function(){r.requestScan()});
window.addEventListener("updateui",function(){r.requestScan()});
var E=new _.VU((0,_.$r)(this.requestScan,this),100);window.addEventListener("scroll",function(){E.fire()},!0);
window.addEventListener("resize",(0,_.$r)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){r.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.$r)(this.requestScan,this))};
mt.prototype.observe=function(g){this.observationTargets.includes(g)||this.observationTargets.push(g)};
mt.prototype.unobserve=function(g){this.observationTargets=this.observationTargets.filter(function(r){return r!==g})};
mt.prototype.requestScan=function(){var g=this;this.scanRequested||(JM(function(){LQb(g)}),this.scanRequested=!0)};
var LQb=function(g){var r=(1+g.margin)*(document.documentElement.clientHeight||window.innerHeight);g.observationTargets=g.observationTargets.filter(function(E){var B=E.getBoundingClientRect();(B=r>B.top&&!!B.height)&&g.whenInViewportWithMargin(E);return!B&&E.parentNode});
g.scanRequested=!1};
mt.prototype.disconnect=function(){this.observationTargets=[]};var V0U,ZK6;V0U=_.U(_.Dk(jkY(),void 0,"O3X2wd"));_.h3T=V0U.next().value;ZK6=V0U.next().value;window.addEventListener("resize",function(){ZK6(jkY())});var yTb={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},vw4=void 0,dBZ=window.innerWidth,TdT=window.innerHeight;window.addEventListener("resize",function(){vw4=void 0});var gmb;if("IntersectionObserver"in window)gmb=JGB();else{if(vw4===void 0){var r7Z;r7Z="matchMedia"in window?window.matchMedia(yTb.landscape+","+yTb.portrait).matches:void 0;vw4=r7Z!==void 0?r7Z:dBZ>=930&&TdT>=550||dBZ>=550&&TdT>=930}gmb=vw4?{observe:function(g){JM(function(){var r;(r=g.onViewportEntered)==null||r.call(g)})},
unobserve:function(){}}:new mt(function(g){JM(function(){var r;
(r=g.onViewportEntered)==null||r.call(g)})})}var AGY=gmb;var Emn=_.dG(function(g){var r=!1,E=_.VI("img",function(B){_.J5(function(){r=!0;B.onload=null})});
_.bQ(function(){var B,w=(B=g.data)==null?void 0:B.call(g),O,M=(O=g.getSrc)==null?void 0:O.call(g).cb,u;B=(u=g.config)==null?void 0:u.call(g);if(u=E.value)if(O=function(Q,z){if(!r)return M?M(Q,z):Q},FwV(u,B),_.Y("web_image_dont_reload_same_src")&&tMY(u,w,O))_.Y("web_image_dont_reload_same_src_simulate_load")&&u.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var l;P_t(u,w||null,O,B,(l=g.lazy)==null?void 0:l.call(g))}},"v0I2p");
return _.G("img",{el:E})},"c");
Emn.idomCompat=!0;_.vw=_.dG(function(g){var r=function(){var E,B=g.data(),w,O,M,u,l,Q,z,k,H,R,A,J,e,C,X,Z,c,h,y,OD,uB,zS,jV,PJ,At,XY,xc,rg,$t;var tD={contentMode:(w=g.contentMode)==null?void 0:w.call(g),loadedClass:(O=g.loadedClass)==null?void 0:O.call(g),isPreloaded:(M=g.isPreloaded)==null?void 0:M.call(g),notifyOnLoaded:(u=g.notifyOnLoaded)==null?void 0:u.call(g),notifyOnUnloaded:(l=g.notifyOnUnloaded)==null?void 0:l.call(g),preferredThumbnail:(Q=g.preferredThumbnail)==null?void 0:Q.call(g),preserveHeight:(z=g.preserveHeight)==
null?void 0:z.call(g),preserveWidth:(k=g.preserveWidth)==null?void 0:k.call(g),objectPosition:(H=g.objectPosition)==null?void 0:H.call(g),targetWidth:(R=g.targetWidth)==null?void 0:R.call(g),targetHeight:(A=g.targetHeight)==null?void 0:A.call(g),shouldShowPlaceholder:(J=g.shouldShowPlaceholder)==null?void 0:J.call(g),useWidth:(e=g.useWidth)==null?void 0:e.call(g),isToggled:(C=g.isToggled)==null?void 0:C.call(g),alt:(X=g.alt)==null?void 0:X.call(g),className:(Z=g.className)==null?void 0:Z.call(g),
onerror:g.onerror,onload:g.onload,style$:((c=g.style$)==null?void 0:c.call(g))||((h=g.style)==null?void 0:h.call(g)),color:(y=g.color)==null?void 0:y.call(g),width:(OD=g.width)==null?void 0:OD.call(g),height:(uB=g.height)==null?void 0:uB.call(g),"aria-hidden$":(rg=(zS=g["aria-hidden$"])==null?void 0:zS.call(g))!=null?rg:(jV=g.ariaHidden)==null?void 0:jV.call(g),draggable:(PJ=g.draggable)==null?void 0:PJ.call(g),"data-disabled$":($t=(At=g["data-disabled$"])==null?void 0:At.call(g))!=null?$t:(XY=g.dataDisabled)==
null?void 0:XY.call(g),size:(xc=g.size)==null?void 0:xc.call(g)};return C_Q(B,tD,(E=g.hideOn404)==null?void 0:E.call(g))};
return _.G(_.fa,null,_.G(_.na,{when:function(){var E;return((E=r())==null?void 0:E.type)==="image"}},function(){return _.G(Emn,{data:function(){return r().image},
getSrc:{cb:function(E,B){var w=r().image.sources,O=r().config.isPreloaded,M=r().config.useWidth,u=r().config.targetWidth,l=r().config.targetHeight,Q=r().config.preferredThumbnail;return _.HvQ(B,w,O,M,u,l,Q)||""}},
config:function(){var E=r().config,B;for(B in E)E[B]===void 0&&delete E[B];return E},
lazy:g.renderLazy})}),_.G(_.na,{when:function(){var E;
return((E=r())==null?void 0:E.type)==="icon"}},function(){return _.G(_.nh,{icon:function(){return r().iconName},
role:function(){return r().config.role},
className:function(){return r().config.className},
style:function(){return r().config.style$+";width: "+(r().config.width+"px;height: ")+(r().config.height+"px;color: ")+(r().config.color+";")},
ariaLabel:function(){return r().config["aria-label$"]},
ariaHidden:function(){return r().config["aria-hidden$"]},
dataDisabled:function(){return r().config["data-disabled$"]},
active:function(){return r().config.isToggled},
size:function(){return r().config.size}})}))},"d");
_.vw.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var BSI=function(g){return function(r){return _.G(zcP,null,function(){var E=r.data(),B=_.t5(r.config);return _.G(Z8,null,function(){return void g(E,B)})})}}(NmL),a7L=_.dG(function(g){var r=function(B){var w,O=_.T$(function(H){w=Pp(function(){for(var R=_.U(z()),A=R.next();!A.done;A=R.next()){A=I7c(A.value);
A=typeof A==="string"?document.createTextNode(A):A;if(!(A instanceof Node)){R=new _.Rj("Part is not a node",A,typeof A);_.tn(R);break}H.appendChild(A)}})}),M=gt(function(){return Bml(B())},{isEqual:xUl}),u=_.Zo(g.config),l=function(){var H,R=M();
return!((H=u())==null||!H.ariaLabel)||!(R.commandRuns&&R.commandRuns.length!==0||R.paragraphStyleRuns&&R.paragraphStyleRuns.length!==0)},Q=gt(u,{isEqual:cGP}),z=function(){var H=EhP(M(),Q());
SvJ(H,Q());return M().content?l7l(M().content,H).parts:[]},k=!0;
_.bQ(function(){M();Q();if(k)k=!1;else{var H=z();Promise.resolve().then(function(){var R=O.value;if(R){R.innerText="";var A;(A=w)==null||A();w=_.$F(R,function(){return _.G(mUD,{parts:H})})}})}},"YlhjWd");
return _.G("span",{el:O,class:function(){return M()&&IJV(M(),u())},
dir:function(){var H;return((H=u())==null?0:H.userInput)?"auto":void 0},
"aria-label":function(){var H;return l()?(H=u())==null?void 0:H.ariaLabel:void 0},
role:function(){return l()?"text":void 0}})},E;
return((E=g.config)==null?0:E.renderedFromFormattedString)?r(g.text):_.G(_.p,{cond:g.text,then:r})},"e");
a7L.idomCompat=!0;_.hf=_.dG(function(g){var r=_.Zo(g.text),E=ivQ(g);g.renderedFromFormattedString!==void 0&&(E.renderedFromFormattedString=!0);return _.Y("attr_string_reactive")?_.G(a7L,{text:r,config:E}):_.G(_.p,{cond:function(){var B;return r()&&((B=Bml(r()))==null?void 0:B.content)},
then:function(){return _.G(BSI,{data:g.text,config:E})},
debugInstance:"Apcuac"})},"f");
_.hf.idomCompat=!0;var VMB=function(g,r,E){r=r===void 0?"unknown":r;E=E===void 0?{}:E;_.Rj.call(this,g+" ("+r+")",Object.assign({},{name:"YtWcwError",tagName:r},E));Object.setPrototypeOf(this,this.constructor.prototype)};
_.f(VMB,_.Rj);_.Tml=new WeakMap;_.dUl=!1;var vhS,gJQ,yGX;_.cP=Symbol("mh");_.EB=Symbol("nh");vhS=Symbol("oh");gJQ=new Set(Object.getOwnPropertyNames(Element.prototype));yGX=Symbol("ph");var w5n=_.dG(function(g){return _.G("yt-attributed-string",{"aria-label":g.ariaLabel,hidden:g.hidden,id:g.id,class:g.className,"force-default-style":g.forceDefaultStyle},_.G(_.hf,{text:g.data,ariaLabel:g.ariaLabel,ellipsisTruncate:g.ellipsisTruncate,isOverlay:g.isOverlay,linkInheritColor:g.linkInheritColor,noPreWrap:g.noPreWrap,noWrap:g.noWrap,userInput:g.userInput,noEndpoints:g.noEndpoints,headerRuns:g.headerRuns}))},"g");
_.Y("web_wiz_attributed_string")&&_.BK(w5n,"yt-attributed-string",{props:{ariaHidden:_.cP,ariaLabel:_.cP,className:_.cP,ellipsisTruncate:_.cP,isOverlay:_.cP,linkInheritColor:_.cP,noEndpoints:_.cP,noStyleRuns:_.cP,noLinkColor:_.cP,noPreWrap:_.cP,noWrap:_.cP,skipOnClick:_.cP,userInput:_.cP,headerRuns:_.cP,id:_.cP,data:_.cP,hidden:_.cP,forceDefaultStyle:_.cP,text:_.EB,stopPropagation:_.EB,disableUpgrade:_.EB,disable:_.EB,slot:_.EB}});var iN=function(){return _.a.apply(this,arguments)||this};
_.f(iN,_.a);iN.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},NmL(this.data,this.config))};
_.m([_.P(QrZ),_.L("design:type",Object)],iN.prototype,"ytIdomTemplatingBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],iN.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],iN.prototype,"ariaLabel",void 0);_.m([_.K(),_.L("design:type",Boolean)],iN.prototype,"disable",void 0);_.m([_.K(),_.L("design:type",Boolean)],iN.prototype,"ellipsisTruncate",void 0);_.m([_.K(),_.L("design:type",Boolean)],iN.prototype,"isOverlay",void 0);
_.m([_.K(),_.L("design:type",Boolean)],iN.prototype,"linkInheritColor",void 0);_.m([_.K(),_.L("design:type",Boolean)],iN.prototype,"noPreWrap",void 0);_.m([_.K(),_.L("design:type",Boolean)],iN.prototype,"noWrap",void 0);_.m([_.K(),_.L("design:type",Boolean)],iN.prototype,"userInput",void 0);_.m([_.K(),_.L("design:type",Boolean)],iN.prototype,"noEndpoints",void 0);_.m([_.K(),_.L("design:type",Array)],iN.prototype,"headerRuns",void 0);
_.m([_.e3({is:"yt-attributed-string",disableElementRegistration:!0})],iN);
_.Y("web_wiz_attributed_string")||_.I(iN,"yt-attributed-string",function(){if(XOD===void 0){var g=document.createElement("template");_.b(g,"\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");g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);
g.content.insertBefore(aV4().content.cloneNode(!0),g.content.firstChild);XOD=g}g=XOD;return g},{mode:2});var S3I,O2w,UjD;S3I=function(){this.firstThumbnailLoaded=!1};
_.U6m=function(){O2w||(O2w=new S3I);return O2w};
UjD=function(g){var r=_.U6m();r.firstThumbnailLoaded||(r.firstThumbnailLoaded=!0,_.F4("ftl",g))};
S3I.prototype.reset=function(){this.firstThumbnailLoaded=!1};var EJP=0,OrB=new WeakMap,wDo=0,OB=new Set;var MdT,q36=function(){return MdT!==void 0?MdT:MdT=document.createElement("template")};
document.head.appendChild(q36().content);var uhZ;var lGD,oJV,LB;_.qh=_.ED.caches;LB=function(){};
LB.prototype.open=function(g){return _.qh.open(lJb(g))};
LB.prototype.has=function(g){return _.qh.has(lJb(g))};
LB.prototype.delete=function(g){return _.qh.delete(lJb(g))};
LB.prototype.match=function(g,r){var E=this,B,w,O,M,u,l;return _.q(function(Q){switch(Q.nextAddress){case 1:return _.D(Q,E.keys(),2);case 2:B=Q.yieldResult,w=_.U(B),O=w.next();case 3:if(O.done){Q.jumpTo(5);break}M=O.value;return _.D(Q,E.open(M),6);case 6:return u=Q.yieldResult,_.D(Q,u.match(g,r),7);case 7:if(l=Q.yieldResult)return Q.return(l);O=w.next();Q.jumpTo(3);break;case 5:return Q.return()}})};
var GsV=function(){};
_.f(GsV,LB);var lJb=function(g){if(g.includes(":"))throw Error("sh`"+g);return g+":"+_.p3("CacheStorage get")};
GsV.prototype.keys=function(){var g,r,E,B,w,O,M,u,l;return _.q(function(Q){if(Q.nextAddress==1)return g=[],r=_.p3("CacheStorage keys"),_.D(Q,_.qh.keys(),2);E=Q.yieldResult;B=_.U(E);for(w=B.next();!w.done;w=B.next())O=w.value,M=_.uyo(O),u=M.originalName,l=M.datasyncId,l===r&&g.push(u);return Q.return(g)})};var Vx=function(){var g=_.a.apply(this,arguments)||this;g.objectURL=null;g.loadTime=Infinity;return g};
_.f(Vx,_.a);_.S=Vx.prototype;_.S.renderIdom=function(){qpX(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("vh");this.setConfig();this.config&&ekL(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.S.objectFitToContentMode=function(g){switch(g){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.S.logThumbnailFailureVe=function(){var g=_.bW(197497);_.Sp(_.pW(),g);var r=_.PE();r&&g&&r&&_.ck(r,[g])};
_.S.loadImageFromCacheIfExists=function(g){var r=this,E=g.target;(E==null?0:E.src)&&zBL(E.src).then(function(B){r.objectURL=_.sU(B).toString();r.setSrc(E,r.objectURL)}).catch(function(){})};
_.S.onError=function(g){var r=this;if(_.Y("web_use_cache_for_image_fallback")){var E=g.target;E&&zBL(E.src).then(function(B){r.objectURL=_.sU(B).toString();r.setSrc(E,r.objectURL)}).catch(function(){_.Y("kevlar_woffle_log_thumbnail_failure_ve")&&r.logThumbnailFailureVe();
_.Y("kevlar_woffle_fallback_image")&&r.setSrc(E,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.S.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.S.setConfig=function(){var g=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(r){g.loadImageFromCacheIfExists(r);g.revokeObjectURL();MJo(g.hostElement)},
onerror:function(r){g.onError(r)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.Y("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.S.setSrc=function(g,r){r&&(g.src=r)};
_.m([_.P(QrZ),_.L("design:type",Object)],Vx.prototype,"ytIdomTemplatingBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Vx.prototype,"data",void 0);_.m([_.K(),_.L("design:type",String)],Vx.prototype,"alt",void 0);_.m([_.K(),_.L("design:type",Boolean)],Vx.prototype,"ftlEligible",void 0);_.m([_.K(),_.L("design:type",Number)],Vx.prototype,"height",void 0);_.m([_.K(),_.L("design:type",Boolean)],Vx.prototype,"notifyOnLoaded",void 0);
_.m([_.K(),_.L("design:type",Boolean)],Vx.prototype,"notifyOnUnloaded",void 0);_.m([_.K(),_.L("design:type",String)],Vx.prototype,"objectFit",void 0);_.m([_.K(),_.L("design:type",String)],Vx.prototype,"objectPosition",void 0);_.m([_.K(),_.L("design:type",String)],Vx.prototype,"preferredThumbnail",void 0);_.m([_.K(),_.L("design:type",Boolean)],Vx.prototype,"preserveHeight",void 0);_.m([_.K(),_.L("design:type",Boolean)],Vx.prototype,"preserveWidth",void 0);
_.m([_.K({value:!0}),_.L("design:type",Boolean)],Vx.prototype,"useWidth",void 0);_.m([_.K({value:function(){return!_.Ka("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.L("design:type",Boolean)],Vx.prototype,"shouldRenderLazy",void 0);_.m([_.K(),_.L("design:type",Number)],Vx.prototype,"width",void 0);_.m([_.e3({is:"yt-image",disableElementRegistration:!0})],Vx);
_.I(Vx,"yt-image",function(){if(uhZ===void 0){var g=document.createElement("template");_.b(g,"\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");g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);g.content.insertBefore(q36().content.cloneNode(!0),g.content.firstChild);
uhZ=g}g=uhZ;return g},{mode:2});var hm=function(){return _.a.apply(this,arguments)||this};
_.f(hm,_.a);hm.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var g=_.xP(this.data.onVisibleCommand);g&&this.ytComponentBehavior.resolveCommand(g)}};
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],hm.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],hm.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.XQ.YtVisibilityBehavior),_.L("design:type",Object)],hm.prototype,"ytVisibilityBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],hm.prototype,"data",void 0);_.m([_.e3({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],hm);
_.I(hm,"yt-bumper-user-edu-content-view-model",function(){if(DBz===void 0){var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;lVw===void 0&&(lVw=document.createElement("template"));var B=lVw;E.call(r,B.content.cloneNode(!0),g.content.firstChild);DBz=g}g=DBz;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var D6n;var om4,G6b=function(){if(om4!==void 0)return om4;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;D6n===void 0&&(D6n=document.createElement("template"));var B=D6n;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return om4=g};var QVZ;_.Zl={};QVZ=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"]);_.Zl.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var g=this.getContext_();return g?g.getTaskManager():_.F6},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var g=_.Sh(this.hostElement,"yt-get-context-provider",{});g.detail&&g.detail.contextProvider?this.cachedProviderNode_=g.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return QVZ.has(this.hostElement.localName)},
getNetworkManager:function(){var g=this.getContext_();if(g)return g.getNetworkManager()}};var nJt,zrZ,H2A,k6w;_.yx=function(g){var r=zrZ.get(g);if(r&&(r=r.pop()))return k6w++,r;H2A++;try{var E=document.createElement(g)}catch(B){throw new _.Rj("ElementPool failed to create element",g,B.message);}return E};
nJt=function(g){var r=g.is;if(r){var E=zrZ.get(r);E||(E=[],zrZ.set(r,E));var B=_.Ca("ELEMENT_POOL_CONFIG")||{};E.length>=(B[r]!==void 0?B[r]:_.Ca("ELEMENT_POOL_DEFAULT_CAP",0))||E.push(g)}else _.el(new _.Rj("Element pool should only handle custom elements:",g.nodeName))};
zrZ=new Map;H2A=0;k6w=0;var uW=new WeakMap,RBS=new WeakMap;var Y3m;_.vP=function(g,r,E){E=E===void 0?_.s8():E;this.JSC$11831_defaultPriority=g;this.signal=r;this.scheduler=E;this.nextJobDescriptor=0;this.JSC$11831_parkedJobs=[];this.scheduledJobs=new Map};
_.dV=function(g,r){if(r){var E=_.ep();g.signal&&!_.Wa(E,g.signal)?(E.addListener(g.signal,function(){g.processSignal()}),g.JSC$11831_parkedJobs.push({job:r,
priority:void 0})):p5w(g,r)}};
Y3m=function(g,r){if(r!==g.JSC$11831_defaultPriority){g.JSC$11831_defaultPriority=r;for(var E=_.U(g.scheduledJobs.values()),B=E.next();!B.done;B=E.next())B=B.value,g.scheduler.cancelJob(B.jobId),B.jobId=g.scheduler.addJob(B.jobWrapper,r)}};
_.vP.prototype.flushJobs=function(){Y3m(this,10);this.processSignal()};
_.vP.prototype.cancel=function(){for(var g=_.U(this.scheduledJobs),r=g.next();!r.done;r=g.next()){var E=_.U(r.value);r=E.next().value;E=E.next().value;this.scheduler.cancelJob(E.jobId);this.scheduledJobs.delete(r)}this.JSC$11831_parkedJobs=[]};
_.vP.prototype.processSignal=function(){for(var g=_.U(this.JSC$11831_parkedJobs),r=g.next();!r.done;r=g.next())r=r.value,p5w(this,r.job,r.priority);this.JSC$11831_parkedJobs=[]};
var p5w=function(g,r,E){E=E||g.JSC$11831_defaultPriority;if(E===10)UB(r);else{var B=g.nextJobDescriptor++,w=function(){r();g.scheduledJobs.delete(B)},O=g.scheduler.addJob(w,E);
g.scheduledJobs.set(B,{jobWrapper:w,jobId:O,priority:E})}};_.rH(jdB);var AEo={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};HCc({beforeVisit:function(g){if(S_.has(g.type)){var r;(r=g.props).idomKey!=null||(r.idomKey=g.type)}else g.type.TAG_NAME&&(Bw=g.type.TAG_NAME)},
afterRender:function(g,r){var E;Bw=(E=r==null?void 0:r.type)!=null?E:""},
didPatch:function(){Bw=""}});var RrD;_.TR={};RrD={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.TR.YtRendererstamperBehavior=[_.Zl.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 g in this.stampDom){var r=this.stampDom[g];r&&r.id&&this.addReactiveSchema({type:"observe",method:{methodName:Hrl(r.id),args:[{type:"wildcard",path:g}]}})}else{(g=(this.constructor.generatedFrom||this).observers)||(g=[]);for(r in this.stampDom){var E=this.stampDom[r];E&&E.id&&g.push(Hrl(E.id)+"("+r+".*)")}this.constructor.generatedFrom.observers=g}},
addStampDomObserverFns_:function(){for(var g in this.stampDom){var r=this.stampDom[g];r.id?(this[Hrl(r.id)]=this.rendererStamperObserver_.bind(this,g,r.id),this.hasDataPath_[g]=!1):(r=new _.Rj("Bad rendererstamper config",this.is+":"+g),_.tn(r))}},
rendererStamperObserver_:function(g,r,E){if(E.path==g){if(E.value===void 0&&!this.hasDataPath_[g])return;this.hasDataPath_[g]=E.value!==void 0}this.rendererStamperApplyChangeRecord_(g,r,E)},
rendererStamperApplyChangeRecord_:function(g,r,E){var B=this.renderJobsMap_[r],w=null;g==E.path?(E=E.value,_.vJ(E)||(E=E===void 0||E===null?[]:[E]),g=this.stampDom[g],g.mapping&&(w=this.stampDomArray_.bind(this,E,r,g.mapping,g.reuseComponents,g.events,g.stamperStableList)),B&&B.cancel(),E=g.usePageScheduler?this.getTaskManager():void 0,B||g.initialRenderPriority==void 0)?g.renderPriority==void 0||B||(B=new _.vP(g.renderPriority,g.waitForSignal,E),this.renderJobsMap_[r]=B):(B=new _.vP(g.initialRenderPriority,
g.waitForSignal,E),this.renderJobsMap_[r]=B,w=function(O,M){O();Y3m(M,10)}.bind(this,w,B)):w=g+".splices"==E.path?this.stampDomArraySplices_.bind(this,g,r,E.value):this.forwardRendererStamperChanges_.bind(this,g,r,E);
B?_.dV(B,w):w()},
forwardRendererStamperChanges_:function(g,r,E){var B=E.path.slice(g.length+1),w=this.getStampContainer_(r),O=B.indexOf("."),M=B.substring(0,O),u=!1,l=0,Q=parseInt(M,0);if(M[0]=="#"){u=parseInt(M.substring(1),0);Q=this.get(g);var z=this.get([g,M]);Q[u]==z?l=u:l=Q.indexOf(z);u=!0}else isNaN(Q)||(l=Q,u=!0);u&&(B=B.substring(M.length+1),O=B.indexOf("."));M=_.nM(w).children[l];var k;if(w=(k=M==null?void 0:M.polymerController)!=null?k:M)B="data"+B.slice(O),typeof w.notifyPath!=="function"?_.el(new _.Rj("notifyPath missing",
this.is+": "+g+", "+r)):E.value?w.notifyPath(B,E.value):w.notifyPath(B)},
stampDomArraySplices_:function(g,r,E){if(E&&E.indexSplices){var B=this.getStampContainer_(r);if(B){for(var w=_.nM(B),O=YpD(this.stampDom[g].reuseComponents),M=E.indexSplices.length,u=0;u<M;u++){for(var l=E.indexSplices[u],Q=w.children[l.index],z=l.removed.length;z>0;z--)Q&&Q.parentElement&&(_.nM(Q.parentElement).removeChild(Q),O&&nJt(Q),Q=w.children[l.index]);z=this.stampDom[g].mapping;for(var k=l.index+l.addedCount,H=document.createDocumentFragment(),R=O,A=l.index;A<k;A++){var J=l.object[A],e=kso(z,
J);if(e){var C=z[e];J=J[e];e=this.getComponentName_(C,J);var X=Q?uW.has(Q):!1;R&&Q&&Q.is==e&&X?(e=Q,this.telemetry_.reuse++,Q=Q.nextElementSibling):R&&Q&&X?(e=this.createComponent_(C,J,O),X=_.nM(Q).nextElementSibling,w.insertBefore(e,X),fGA(this.is,w,Q,O),Q=X):(R=!1,e=this.createComponent_(C,J,O),H.appendChild(e));this.deferRenderStamperBinding_(e,C,J)}else C=new _.Rj("Unimplemented type",g,r,B.tagName,Object.keys(J)[0]),_.tn(C)}w.insertBefore(H,Q)}this.flushRenderStamperComponentBindings_();this.stampDom[g].events&&
_.Sh(this.hostElement,"yt-rendererstamper-finished",{container:B})}else g=new _.Rj("Container object not found",r,this.hostElement?this.hostElement.is:""),_.tn(g)}},
stampDomArray_:function(g,r,E,B,w,O){var M=this.getStampContainer_(r);if(M)if(r=_.nM(M),B=YpD(B),g){var u=0,l=0,Q;if(O=O===void 0?_.Ka("STAMPER_STABLE_LIST",!1):O||!1)for(Q=r.firstElementChild;Q&&!uW.has(Q)&&g.length>l;){O=g[l];var z=kso(E,O);if(z){if(this.getComponentName_(E[z],O[z])!=Q.is){var k=this.createComponent_(E[z],O[z],B),H=_.nM(Q).nextElementSibling;H?r.insertBefore(k,H):r.appendChild(k);fGA(this.is,r,Q,B);Q=k}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(Q,E[z],O[z]);u++;
l++;Q=_.nM(Q).nextElementSibling}else l++}$jJ(this.is,r,u,B);u=Q;if(g.length>l){O=document.createDocumentFragment();for(z=g.length;l<z;l++)if(k=g[l],H=kso(E,k))Q=this.createComponent_(E[H],k[H],B),this.deferRenderStamperBinding_(Q,E[H],k[H]),O.appendChild(Q);u&&_.nM(u).parentNode&&Q&&!uW.has(Q)?r.insertBefore(O,u):r.appendChild(O)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();w&&_.Sh(this.hostElement,"yt-rendererstamper-finished",{container:M})}else $jJ(this.is,r,0,
B);else g=new _.Rj("Container object not found",r,this.hostElement?this.hostElement.is:""),_.tn(g)},
getStampContainer_:function(g){return this.$&&this.$[g]||_.S3(this.hostElement).querySelector("#"+g)},
getComponentName_:function(g,r){return typeof g==="string"?g:g.matcher?g.matcher.call(this,r):g.component},
createComponent_:function(g,r,E){g=this.getComponentName_(g,r);try{var B=O2.has(g)||S_.has(g);if(E&&!B){var w=_.yx(g);try{_.ua(w)}catch(O){E="Failed to clear styles for "+g+".",O.message&&(E+=" Original error: "+O.message),_.el(new _.Rj(E))}}else w=document.createElement(g)}catch(O){return w="YtRendererStamperBehavior failed to create "+g+".",O.message&&(w+=" Original description: "+O.message),O.message="YtRendererStamperBehavior failed to create element",_.Wf(O,w),RrD.hasOwnProperty(g)?_.el(O):_.tn(O),
document.createElement("SPAN")}this.telemetry_.create++;return w},
deferRenderStamperBinding_:function(g,r,E){this.deferredBindingTasks_.push({component:g,typeOrConfig:r,data:E})},
flushRenderStamperComponentBindings_:function(){for(var g=0,r=this.deferredBindingTasks_.length;g<r;g++){var E=this.deferredBindingTasks_[g];if(!E)break;var B=void 0,w=void 0,O=void 0,M=void 0,u=E.component,l=E.typeOrConfig;E=E.data;var Q=(M=u.polymerController)!=null?M:u;M=u.loggingStatus;try{M&&(M.isRendererStamper=!0);if(typeof l!=="string"){for(O in l.attributes)l.attributes[O]===!0?u.setAttribute(O,""):l.attributes[O]===!1?u.removeAttribute(O):u.setAttribute(O,l.attributes[O]);for(w in l.params)Q[w]=
l.params[w],u!==Q&&sN(u.localName,w,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(B in l.properties){var z=l.properties[B];if(z){var k=pDl(z);Q[B]=this.get(k);u!==Q&&sN(u.localName,B,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(B==="on-tap"||B==="on-click"){var H=this.get(k);u.addEventListener("click",H);RBS.set(u,{property:B,listener:{type:"element",eventName:"click",handler:H}})}}else{var R=new _.Rj("Undefined property binding",B);_.tn(R)}}}if(l.classListBinding){var A=pDl(l.classListBinding),
J=A?this[A]:null;if(J)for(B=0;B<J.length;B++)_.UN(u,J[B],!0)}Q.data=E}finally{M&&(M.isRendererStamper=!1)}if(B=uW.get(u))u.hidden=!1,uW.delete(u),_.F6.cancelJob(B)}this.deferredBindingTasks_.length=0}}];_.gN={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(g){for(var r=_.mH.getInstance(),E=_.U(Object.keys(g)),B=E.next();!B.done;B=E.next()){var w=B.value;B=g[w];if(this&&this[B]){var O=r.actionRoutingMap.get(w);O||(O=new Map,r.actionRoutingMap.set(w,O));r.registerActionHandler(this,w,this[B].bind(this),O)}else w=Error("nd"),w.params=B,_.xF(w)}},
unregisterActionMap:function(g){_.i2(_.mH.getInstance(),g,this)}}]};var ol=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_"+(_.Y("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.Y("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.Y("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",
path:_.Y("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:_.Y("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:_.Y("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var Dy;var Gw=new Map;var XDo=window.matchMedia("(forced-colors: active)").matches;var nmZ;var sV6;var fJU=new _.Vn("LOTTIE_LOADER_TOKEN");_.rN=_.dG(function(g){var r=g.data;var E=g.className;var B=g.animationName;var w=g.animationRef;var O=g.elRefForInterop;var M=_.hn("lottie-component"),u;_.J5(function(){var Q;return void((Q=u)==null?void 0:Q.destroy())});
var l;_.bQ(function(){var Q=_.t5(B);if(Q!==l){l=Q;var z=Object.assign({},{animationName:Q,animationRef:_.t5(w)},_.t5(r));try{_.rM().resolve(fJU)().then(function(R){var A;(A=u)==null||A.destroy();var J,e;A=(e=O==null?void 0:(J=O())==null?void 0:J.value)!=null?e:M.value;J=z.animationRef;e=z.listeners;R=R.loadAnimation(Object.assign({},{container:A},z.animationConfig));J&&(J.lottieEl=R);if(e)for(A=_.U(Object.entries(e)),J=A.next();!J.done;J=A.next())e=_.U(J.value),J=e.next().value,(e=e.next().value)&&
R.addEventListener(J,e);u=R})}catch(R){Q=R;
var k="LottieComponent error.";Q.message&&(k+=" Original description: "+Q.message);_.Wf(Q,k);_.el(Q);var H;((H=z.listeners)==null?0:H.error)&&z.listeners.error(Q)}}},"lbhvPc");
return _.G(XfA,{cond:function(){return!(O==null?0:O())},
then:function(){return _.G("lottie-component",{class:_.QY("ytLottieComponentHost",E),el:M})}})},"h");_.BK(_.dG(function(g){return _.G("ytd-lottie-player",{id:g.id,hidden:g.hidden,class:g.className,"aria-label":g.ariaLabel,style:"display: block;"},_.G(_.rN,{data:g.data,animationName:function(){var r;return((r=g.data().animationConfig)==null?void 0:r.name)||""},
animationRef:function(){return g.data().animationRef}}))},"i"),"ytd-lottie-player",{props:{data:_.cP,
id:_.cP,hidden:_.cP,className:_.cP,ariaLabel:_.cP}});var E5=function(){var g=_.a.apply(this,arguments)||this;g.animationRef={};g.delhiIconsEnabled=_.Y("enable_web_delhi_icons");return g};
_.f(E5,_.a);_.S=E5.prototype;
_.S.handlePropertyChange=function(){var g=this.animatedIcon,r=this.active,E=this.isDarkTheme;if(g){var B=this.previousActive!==r;this.previousActive=r;this.animationRef.lottieEl?B&&this.toggleAnimation(r,g.totalFrames):r?this.initializeAnimationAsToggled(g.lottiePlayerProps,g.totalFrames):this.initializeAnimationAsUntoggled(g.lottiePlayerProps);g.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=g.type;this.lottiePlayerProps=this.computeLottiePlayerProps(g,E)}};
_.S.computeLottiePlayerProps=function(g,r){var E=this.deepCloneLottiePlayerProps(g);r?(r=g.nameDarkTheme,g=g.pathDarkTheme):(r=g.name,g=g.path);E.animationConfig.name=r;(r=Gw.get(g))?E.animationConfig.animationData=r:E.animationConfig.path=g;return E};
_.S.initializeAnimationAsToggled=function(g,r){g.animationConfig.initialSegment=[r-1,r]};
_.S.initializeAnimationAsUntoggled=function(g){g.animationConfig.initialSegment=void 0};
_.S.toggleAnimation=function(g,r){if(g){var E;(E=this.animationRef.lottieEl)==null||E.playSegments([0,r],!0)}else{var B;(B=this.animationRef.lottieEl)==null||B.playSegments([0,1],!0)}};
_.S.deepCloneLottiePlayerProps=function(g){var r=Object.assign({},g.lottiePlayerProps.animationConfig);g=Object.assign({},g.lottiePlayerProps);g.animationConfig=r;return g};
E5.prototype.handlePropertyChange=E5.prototype.handlePropertyChange;_.m([_.K(),_.L("design:type",Object)],E5.prototype,"animatedIcon",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],E5.prototype,"active",void 0);_.m([_.K(),_.L("design:type",Boolean)],E5.prototype,"isDarkTheme",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],E5.prototype,"animatedIconType",void 0);_.m([_.K(),_.L("design:type",Boolean)],E5.prototype,"previousActive",void 0);
_.m([_.K(),_.L("design:type",Object)],E5.prototype,"lottiePlayerProps",void 0);_.m([_.K(),_.L("design:type",Object)],E5.prototype,"animationRef",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],E5.prototype,"delhiIconsEnabled",void 0);_.m([_.Gb("animatedIcon","active","isDarkTheme"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],E5.prototype,"handlePropertyChange",null);_.m([_.e3({is:"yt-animated-icon",disableElementRegistration:!0})],E5);
_.I(E5,"yt-animated-icon",function(){if(sV6===void 0){var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;nmZ===void 0&&(nmZ=document.createElement("template"));var B=nmZ;E.call(r,B.content.cloneNode(!0),g.content.firstChild);sV6=g}g=sV6;return g},{mode:2});var $6Z;var jVI;var L2P=_.dG(function(g){var r=_.hn("span"),E=P0(function(){return{value:null}});
_.J5(function(){var w;(w=E.value)==null||w.cancel()});
var B=_.kB(g.data,{equals:function(w,O){return w.iconName===O.iconName&&w.iconStyle===O.iconStyle&&w.iconSize===O.iconSize&&w.iconSetName===O.iconSetName&&w.iconSelected===O.iconSelected}},"aoiXAb");
_.bQ(function(){var w,O=(w=g.options)==null?void 0:w.call(g);irV(r,E,B(),O)},"QXgxJd");
return _.G("span",{class:"yt-icon-shape",el:r})},"j");
L2P.idomCompat=!0;var QGJ=["youtube_fill","youtube_outline"];var A7n=new _.Yv({type:"iconset",value:void 0}),BY=function(){var g=_.a.apply(this,arguments)||this;g.isDarkTheme=document.documentElement.hasAttribute("dark");g.iconName="";g.iconsetName="yt-icons";g.iconset=null;g.missingIconSet=!1;g.iconType=null;g.iconShapeDataSignal=_.Dk(void 0,void 0,"RQ9kUb");g.renderingOptionsSignal=_.Dk({iconWidth:"100%",iconHeight:"100%",iconFilter:g.iconFilter},void 0,"qtx8Ef");g.wizHasRendered=!1;g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return g};
_.f(BY,_.a);BY.prototype.onDarkModeToggledAction=function(g){g!==this.isDarkTheme&&(this.isDarkTheme=g)};
BY.prototype.handlePropertyChange=function(){var g=this,r,E,B,w,O,M,u,l,Q,z,k,H,R,A,J,e,C;return _.q(function(X){switch(X.nextAddress){case 1:if(r=!g.icon&&!g.iconName||!g.isAttached)return X.return();E=g;B=E.icon;w=E.size;O=E.defaultToFilled;M=E.active;u=E.targetContainer;g.toggleContainerClass(u);_.Y("kevlar_use_wil_icons")&&B&&(l=src(B),g.iconType=l.length?l[1]:null);if(B){X.jumpTo(2);break}g.iconsetName="";g.iconName="";return _.D(X,g.renderIcon(u,B),3);case 3:return X.return();case 2:Q=b2D(B);
z=src(Q);z.length&&(g.iconsetName=z[0],g.iconName=z[1]);if(!_.Y("kevlar_use_wil_icons")){X.jumpTo(4);break}k=BY;H=J7z;R=g.iconType;A=g.active;J=g.defaultToFilled;e=g.size;C=g.iconsetName;return _.D(X,P$m(),6);case 6:return _.D(X,H.call(k,R,A,J,e,C,X.yieldResult),5);case 5:g.iconShapeData=X.yieldResult;case 4:if(g.shouldRenderIconShape(u)){X.jumpTo(7);break}return _.D(X,g.determineIconSet(Q,M,O,w,u),7);case 7:return _.D(X,g.renderIcon(u,B),0)}})};
BY.prototype.toggleContainerClass=function(g){g?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var b2D=function(g){return!_.Y("default_to_innertube_icon")||g.indexOf(":")>0?g:_.Dh(g)};
_.S=BY.prototype;_.S.determineIconSet=function(g,r,E,B){var w=this;return _.q(function(O){return O.nextAddress==1?_.Y("kevlar_system_icons")||_.Ca("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.Ca("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.D(O,w.switchToYtSysIconset(g,r,E,B),3):O.jumpTo(2):O.nextAddress!=2?O.return():_.D(O,w.useYtSysIconsetForMissingIcons(g,r,E,B),0)})};
_.S.switchToYtSysIconset=function(g,r,E,B){var w=this,O,M,u,l,Q,z,k;return _.q(function(H){switch(H.nextAddress){case 1:if(!g||w.iconsetName!=="yt-icons"&&w.iconsetName!=="yt-sys-icons"){H.jumpTo(0);break}O=src(g);M=O[1];M=_.e3l(M);_.Y("enable_polymer_icons_replace_underscores_dash")&&M.includes("_filled")&&(M=M.replace(/_filled/g,"-filled"));return _.D(H,lV(M,!0),3);case 3:return u=H.yieldResult,_.D(H,lV(M,!1),4);case 4:if((l=H.yieldResult)||r&&u)w.iconsetName="yt-sys-icons";w.iconName=w.getIconName(M,
r,E,l,u);if(B===24){H.jumpTo(0);break}Q="yt-sys-icons"+B+":"+w.iconName;return _.D(H,lV(Q,!1,!0),6);case 6:return z=H.yieldResult,_.D(H,lV(Q,!0,!0),7);case 7:k=H.yieldResult;w.iconName=w.getIconName(M,r,E,z,k);if(!r&&z||r&&k)w.iconsetName="yt-sys-icons"+B;_.Q3(H)}})};
_.S.getIconName=function(g,r,E,B,w){g.includes("-filled")&&(g=g.replace("-filled",""));return w&&(r||E)?g+"-filled":g};
_.S.useYtSysIconsetForMissingIcons=function(g,r,E,B){var w=this,O,M;return _.q(function(u){if(u.nextAddress==1)return w.iconsetName!=="yt-icons"?u.jumpTo(0):_.D(u,lV(w.iconName,!1,!1,!0),3);if(u.nextAddress!=4)return O=u.yieldResult,_.D(u,lV(w.iconName,!1),4);M=u.yieldResult;if(O||!M)return u.jumpTo(0);w.iconsetName="yt-sys-icons";return _.D(u,w.switchToYtSysIconset(g,r,E,B),0)})};
_.S.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var P$m=function(){return _.q(function(g){try{return g.return(_.rM().resolve(_.o3))}catch(r){return g.return(new Promise(function(E){_.ep().parkOrScheduleJob(function(){E(_.rM().resolve(_.o3))},2,"ci")}))}})},J7z=function(g,r,E,B,w,O){B=B===void 0?24:B;
if(g){g=g.toLowerCase();var M=g.endsWith("_filled")||g.endsWith("-filled");r={iconName:g,iconStyle:(r===void 0?0:r)||(E===void 0?0:E)||M?"youtube_fill":"youtube_outline",iconSize:B,iconSetName:w===void 0?"yt-icons":w};E=!!O.resolveIcon(r);E||(r.iconSize=void 0,E=!!O.resolveIcon(r));!E&&M&&(r.iconName=g.substring(0,g.length-7),r.iconSize=B,E=!!O.resolveIcon(r),E||(r.iconSize=void 0,E=!!O.resolveIcon(r)));E||(r.iconStyle=void 0,E=!!O.resolveIcon(r));E||_.el(new _.Rj("Icon not supported",{iconName:r.iconName,
iconStyle:r.iconStyle,iconSize:r.iconSize,iconType:g}));return E?r:void 0}};
_.S=BY.prototype;_.S.shouldRenderIconShape=function(g){if(!_.Y("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;g=this.getContainer(g);return!NCL(g,this.icon)};
_.S.renderIcon=function(g,r){var E=this,B,w,O,M,u,l,Q,z;return _.q(function(k){switch(k.nextAddress){case 1:if(r&&E.icon!==r)return k.return();B=E.getContainer(g);w=NCL(B,E.icon);if(E.shouldRenderIconShape(g)&&E.iconType)return E.applyIconShape(w,B),k.return();E.removeIconShape();if(!B)return k.return();E.iconName===""&&E.iconset&&B&&(E.removeStaticIcon(E.iconset,B),w&&E.removeAnimatedIcon(B));if(E.iconName===""&&E.iconset||!E.iconsetName||!A7n)return k.return();E.iconset=A7n.byKey(E.iconsetName);
if(!E.iconset)return E.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.Do(E,E.onIconsetAdded)),k.return();E.missingIconSet&&(E.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.Do(E,E.onIconsetAdded)));M=(O=w||E.isAnimatedIcon?aGQ(E.icon):void 0)&&!O.lazyLoad;l=O&&((u=O)==null?void 0:u.lazyLoad)&&(O.lottiePlayerProps.animationConfig.animationData?!0:Gw.get(E.isDarkTheme?O.pathDarkTheme:O.path)?!0:!1);if(M||l)return E.applyAnimatedIcon(B,O,E.iconset),k.return();if(l||
(Q=O)==null||!Q.lazyLoad){k.jumpTo(2);break}z=mjL(O,E.isDarkTheme);E.applyStaticIcon(E.iconset,B,E.iconName,g,w);return _.D(k,z,3);case 3:return _.D(k,E.renderIcon(E.targetContainer,E.icon),4);case 4:return k.return();case 2:E.applyStaticIcon(E.iconset,B,E.iconName,g,w),_.Q3(k)}})};
_.S.getContainer=function(g){var r,E=(r=mFl(this.hostElement))==null?void 0:r.host;r=!!E&&!!E.polymerController;if(!g||r)return g?this.getTargetContainer(g,E):this.hostElement};
_.S.getTargetContainer=function(g,r){var E=_.S3(r).querySelector("#"+g);E||(g=new _.Rj("yt-icon container missing",r.is,g),_.tn(g));return E};
_.S.applyStaticIcon=function(g,r,E,B,w){w&&this.removeAnimatedIcon(r);this.removeIconShape();w=w&&!!this.iconType&&!!this.iconShapeData&&_.Y("kevlar_use_wil_icons");try{w?this.applyIconShape(!1,r):g.applyIcon(r,E)}catch(O){this.handleError(O,B,r)}};
_.S.applyIconShape=function(g,r){this.iconset&&r&&(this.removeStaticIcon(this.iconset,r),g&&this.removeAnimatedIcon(r));g={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var E=_.U(this.iconShapeDataSignal);r=E.next().value;E=E.next().value;var B=_.U(this.renderingOptionsSignal),w=B.next().value;B=B.next().value;E(this.iconShapeData);B(g);if(!this.wizHasRendered)for(this.wizHasRendered=!0,g=_.U(VJo(r,w)).next().value;g.firstChild;)_.S3(this.hostElement).appendChild(g.firstChild)};
_.S.removeIconShape=function(){if(_.Y("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.S.removeStaticIcon=function(g,r){g.removeIcon(r)};
_.S.applyAnimatedIcon=function(g,r,E){this.removeStaticIcon(E,g);this.removeIconShape();var B;E=this.animatedIconElement&&((B=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:B.type)===r.type;if(this.animatedIconElement&&E){this.animatedIconElement.polymerController.animatedIcon=r;var w;((w=this.animatedIconElement)==null?void 0:w.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(g),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=r,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.Y("kevlar_use_wil_icons")?g.insertBefore(this.animatedIconElement,g.childNodes[0]):(g=_.S3(g),g.insertBefore(this.animatedIconElement,g.childNodes[0]))};
_.S.removeAnimatedIcon=function(g){_.Y("kevlar_use_wil_icons")?this.animatedIconElement&&g.contains(this.animatedIconElement)&&g.removeChild(this.animatedIconElement):(g=_.S3(g),this.animatedIconElement&&g.contains(this.animatedIconElement)&&g.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.S.handleError=function(g,r,E){_.Wf(g,this.iconName,r,E);r=NCL(E,this.icon);var B=!1;window.location.href.includes("JpymaW6Lh2w")?B=!0:E._svgIcon&&(E=(E=E._svgIcon.parentNode)?E.tagName:"unknown",_.Wf(g,E),E==="YT-ICON"&&g.name==="NotFoundError"?B=!0:g.name==="NotFoundError"&&r&&(B=!0));B?_.el(g):_.tn(g)};
_.hx.Object.defineProperties(BY,{template:{configurable:!0,enumerable:!0,get:function(){if(jVI===void 0){var g=document.createElement("template");_.b(g,"\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");g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;
$6Z===void 0&&($6Z=document.createElement("template"));var B=$6Z;E.call(r,B.content.cloneNode(!0),g.content.firstChild);jVI=g}g=jVI;return g}}});
BY.prototype.handlePropertyChange=BY.prototype.handlePropertyChange;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],BY.prototype,"actionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",String)],BY.prototype,"icon",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],BY.prototype,"active",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],BY.prototype,"defaultToFilled",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],BY.prototype,"isAnimatedIcon",void 0);
_.m([_.K({value:24}),_.L("design:type",Number)],BY.prototype,"size",void 0);_.m([_.K({value:""}),_.L("design:type",String)],BY.prototype,"targetContainer",void 0);_.m([_.K(),_.L("design:type",Object)],BY.prototype,"animatedIconElement",void 0);_.m([_.K(),_.L("design:type",Object)],BY.prototype,"isDarkTheme",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],BY.prototype,"ariaHidden",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],BY.prototype,"ariaLabel",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],BY.prototype,"role",void 0);_.m([_.K(),_.L("design:type",String)],BY.prototype,"style",void 0);_.m([_.K(),_.L("design:type",String)],BY.prototype,"iconFilter",void 0);_.m([_.Gb("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype",Promise)],BY.prototype,"handlePropertyChange",null);_.m([_.e3({is:"yt-icon",noInjection:!0})],BY);var tdT;var F3D=function(){var g=document.body,r=g.appendChild;if(tdT===void 0){var E=document.createElement("template");_.b(E,'\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>');
tdT=E}E=tdT;r.call(g,E.content)};
document.body?F3D():window.addEventListener("DOMContentLoaded",F3D);var erI,W36=function(){return erI!==void 0?erI:erI=document.createElement("template")};
document.head.appendChild(W36().content);var C$w,K3U=function(){return C$w!==void 0?C$w:C$w=document.createElement("template")};
document.head.appendChild(K3U().content);var x6w;_.wN=new _.Vn("KEY_MANAGER_TOKEN");var djl={duration:1E3,easing:"ease",fill:"forwards"};_.rH(vJX);var gLJ={duration:1E3,easing:"ease",fill:"forwards"},NS4=_.dG(function(g){var r=_.VI("animated-rolling-character"),E=void 0,B=function(){var w,O;return hF((w=g.character)==null?void 0:w.call(g))||hF((O=g.previousCharacter)==null?void 0:O.call(g))};
_.bQ(function(){if(g.marginMultiplier()){var w;(w=E)==null||w.cancel();if(B()){var O;w=((O=g.previousCharacter)==null?0:O.call(g))?Number(g.previousCharacter())+10:g.rollUp()?0:30;var M;if((M=g.shouldAnimate)==null||!M.call(g)){var u,l;w-=TCl((u=g.character)==null?void 0:u.call(g),(l=g.previousCharacter)==null?void 0:l.call(g),g.rollUp(),w)}}else{w=g.rollUp()?0:2;var Q;(Q=g.shouldAnimate)!=null&&Q.call(g)||(O=w,M=g.rollUp()?-1:1,w=O-M)}r.value.style.marginTop="-"+w*g.marginMultiplier()+"px";var z;
if((z=g.shouldAnimate)==null?0:z.call(g)){var k,H;E=r$B(r.value,(k=g.character)==null?void 0:k.call(g),(H=g.previousCharacter)==null?void 0:H.call(g),g.rollUp(),w,B(),g.marginMultiplier())}else{var R;r.value.style.display=((R=g.character)==null?0:R.call(g))?"":"none"}}},"vt9b9b");
return _.G("animated-rolling-character",{el:r,class:"animated-rolling-character-wiz"},_.G(_.p,{cond:B,then:function(){return _.G(aJw,null)},
else:function(){return _.G(X5Z,{character:g.character})}}))},"k");
NS4.idomCompat=!0;var ELY=_.Y("web_enable_sink_animated_rolling_character_and_number")?NS4:vJX,IJU=_.Y("web_enable_sink_animated_rolling_character_and_number")?NS4:_.k3(vJX),aJw=_.dG(function(){for(var g=[],r=1;r<30;r++)g.push(_.G("div",null,r%10));return _.G(_.wW,null,_.G("div",null,"\u00a0"),g,_.G("div",null,"\u00a0"))},"l"),X5Z=_.dG(function(g){var r=g.character;
return _.G(_.wW,null,_.G("div",null,"\u00a0"),_.G(_.p,{cond:function(){return!(r==null?0:r())||_.qo(r==null?void 0:r())},
then:function(){return _.G("div",null,"\u00a0")},
else:function(){return _.G("div",null,r)}}),_.G("div",null,"\u00a0"))},"m");_.rH(B_X);var m6w=_.dG(function(g){var r=void 0,E=void 0,B=function(){var O;return((O=g.fontSizeMultiplier)==null?0:O.call(g))?g.heightPx()*g.fontSizeMultiplier():g.heightPx()},w=_.kB(function(){if(!g.numberText())return[];
var O,M,u=((O=g.forceRollUp)==null?void 0:O.call(g))||!E||!((M=g.numberValue)==null?0:M.call(g))||E<g.numberValue(),l,Q=g.numberText();O=B();M=!((l=g.shouldAnimate)==null||!l.call(g));l=[];var z=0,k=0,H=(r?r.replace(/\D/g,"").length:0)-(Q?Q.replace(/\D/g,"").length:0),R=r?r.split(/(\d)/).filter(Boolean):[];for(Q=Q.split(/(\d)/).filter(Boolean);H<0;){var A=Q[k];l.push({character:A,rollUp:u,marginMultiplier:O,shouldAnimate:M});k++;hF(A)&&H++}for(;z<H;)A=R[z],l.push({previousCharacter:A,rollUp:u,marginMultiplier:O,
shouldAnimate:M}),z++,hF(A)||H++;for(;k<Q.length;)H=Q[k],A=R[z],hF(H)===hF(A)?(k++,z++):hF(H)?(z++,H=void 0):hF(A)&&(k++,A=void 0),l.push({character:H,previousCharacter:A,rollUp:u,marginMultiplier:O,shouldAnimate:M});r=g.numberText();var J;E=(J=g.numberValue)==null?void 0:J.call(g);return l},void 0,"B9AmNd");
return _.G("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:function(){return g.numberText()?["height: "+B()+"px;","line-height: "+g.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.G(_.Ra,{each:w,keyBy:"INDEX"},function(O){return _.G(IJU,{character:function(){return O().character},
previousCharacter:function(){return O().previousCharacter},
marginMultiplier:function(){return O().marginMultiplier},
rollUp:function(){return O().rollUp},
shouldAnimate:function(){return O().shouldAnimate}})}))},"n");
m6w.idomCompat=!0;_.RSX=_.Y("web_enable_sink_animated_rolling_character_and_number")?m6w:B_X;_.c7A=_.Y("web_enable_sink_animated_rolling_character_and_number")?m6w:_.k3(B_X);var wMA={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"};_.NQ=_.dG(function(g){var r=_.VI("a",g.ref),E=g.aTagConfig?g.aTagConfig:_.kB(function(){var B,w,O,M,u;var l=(u=_.xP((O=g.command)==null?void 0:O.call(g)))!=null?u:(M=g.command)==null?void 0:M.call(g);return _.XI({innertubeCommand:l,skipOnClick:(B=g.skipOnClick)==null?void 0:B.call(g),defaultTarget:(w=g.target)==null?void 0:w.call(g)})||{}},void 0,"gnrRge");
_.bQ(function(){r.value._data=E()._data;r.value.params=E().params},"t2c7fe");
return _.G("a",{el:r,href:function(){return E().href$},
rel:function(){return E().rel$},
class:function(){var B,w;return(w=E().className)!=null?w:(B=g.className)==null?void 0:B.call(g)},
style:function(){var B;if((B=g.style)==null?0:B.call(g))return g.style();var w;return((w=g.disabled)==null?0:w.call(g))?"pointer-events:none":""},
"aria-haspopup":function(){return!!E()["aria-haspopup$"]},
"force-new-state":ph(function(){return E()["force-new-state$"]}),
title:ph(function(){var B,w;return(w=E().title$)!=null?w:(B=g.title)==null?void 0:B.call(g)}),
role:ph(function(){return E().role$}),
target:ph(function(){return E().target$}),
dir:ph(function(){var B;return((B=g.dir)==null?0:B.call(g))?g.dir():E().dir}),
tabindex:function(){var B;return E().tabindex$?Number(E().tabindex$):(B=g.tabIndex)==null?void 0:B.call(g)},
"aria-hidden":function(){var B,w;return(w=E()["aria-hidden$"])!=null?w:(B=g.ariaHidden)==null?void 0:B.call(g)},
"aria-label":function(){var B,w;return(w=E()["aria-label$"])!=null?w:(B=g.ariaLabel)==null?void 0:B.call(g)},
"aria-current":g.ariaCurrent,"aria-disabled":g.disabled,"aria-labelledby":g.ariaLabelledby,"aria-describedby":g.ariaDescribedby,"aria-selected":g.ariaSelected,"tab-identifier":g.tabIdentifier,"on:pointerdown":_.HK(function(B){var w,O;return void((O=(w=E()).onpointerdown)==null?void 0:O.call(w,B))}),
"on:click":_.HK(function(B){var w,O;return void((O=(w=E()).onclick)==null?void 0:O.call(w,B))}),
"on:focusin":_.HK(function(B){var w;(w=g.onFocusin)==null||w.call(g,B)}),
"on:focusout":_.HK(function(B){var w;(w=g.onFocusout)==null||w.call(g,B)})},g.children)},"o");var i2Z=function(g,r){this.fillAnimation=new Animation(Mro(g),document.timeline);this.strokeAnimation=new Animation(qaV(r),document.timeline)};
i2Z.prototype.play=function(){var g,r;(r=(g=this.fillAnimation).play)==null||r.call(g);var E,B;(B=(E=this.strokeAnimation).play)==null||B.call(E)};
i2Z.prototype.cancel=function(){var g,r;(r=(g=this.fillAnimation).cancel)==null||r.call(g);var E,B;(B=(E=this.strokeAnimation).cancel)==null||B.call(E)};_.jk=_.dG(function(g){var r=g.model;var E=g.pointerDownEvent;var B=g.pointerUpEvent;var w=g.pointerLeaveEvent;g=_.VI("div");var O=_.Rl({"border-radius":function(){return r().borderRadius}}),M=_.VI("div"),u=_.VI("div"),l=_.U(_.Y3(function(){return(B==null?0:B())||(w==null?0:w())?!1:!(E==null||!E())||!1})),Q=l.next().value,z=l.next().value,k=void 0,H=function(){!k&&u.value&&M.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(k=new i2Z(u.value,M.value));
var X;(X=k)==null||X.play()},R=function(){var X;
(X=k)==null||X.cancel()},A=function(){var X;
(X=k)==null||X.cancel()};
_.bQ(function(){(B==null?0:B())&&H()},"YjVIpd");
_.bQ(function(){(E==null?0:E())&&R()},"UrXvqb");
_.bQ(function(){(w==null?0:w())&&A()},"QK6L8b");
l=_.HK(function(){H();z(!1)});
var J=_.HK(function(){R();z(!0)}),e=_.HK(function(){A();
z(!1)});
_.J5(function(){if(k){var X;(X=k)==null||X.cancel();k=void 0}});
var C={};Q=_.QY("yt-spec-touch-feedback-shape",function(){return uKt(r().color)},(C["yt-spec-touch-feedback-shape--focused"]=function(){return!!r().focused&&!r().disabled},C["yt-spec-touch-feedback-shape--circular"]=function(){return!!r().circular},C["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!r().isExtended},C["yt-spec-touch-feedback-shape--down"]=Q,C["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!r().triggerEvents},C));
return _.G("yt-touch-feedback-shape",{style:_.Rl({"border-radius":"inherit"})},_.G("div",{el:g,class:Q,style:_.Rl({"margin-top":function(){return r().customTopExtend?"-"+r().customTopExtend+"px":void 0}}),
"on:mousedown":J,"on:mouseup":l,"on:pointerleave":e,"on:touchstart":J,"on:touchend":l,"aria-hidden":!0},_.G("div",{class:"yt-spec-touch-feedback-shape__stroke",style:O,el:M}),_.G("div",{class:"yt-spec-touch-feedback-shape__fill",style:O,el:u})))},"p");
_.jk.idomCompat=!0;var L3n={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 St=_.kc();St=St.toLowerCase();if(_.lB(St,"android")){var Vdw=St.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);Vdw&&parseFloat(Vdw[1])<100||St.match("("+Object.keys(L3n).join("|")+")")};var hrb=_.dG(function(g){return _.G(_.p,{cond:g.aTagConfig,then:function(r){return _.G(_.NQ,{aTagConfig:r,disabled:g.disabled,className:g.className,style:g.style,title:g.title,ariaLabel:g.ariaLabel,ariaCurrent:function(){var E,B;return((E=g.toggleable)==null?void 0:E.call(g))&&((B=g.toggled)==null?void 0:B.call(g))}},g.children)},
else:function(){return _.G("button",{"on:click":_.HK(function(r){var E;return(E=g.onClick)==null?void 0:E.call(g,r)}),
class:g.className,title:g.title,style:g.style,disabled:g.disabled,"aria-pressed":function(){var r,E;return((r=g.toggleable)==null?0:r.call(g))?!((E=g.toggled)==null||!E.call(g)):void 0},
"aria-label":g.ariaLabel,"aria-disabled":g.visiblyDisabled,"aria-hidden":g.ariaHidden,tabindex:g.tabIndex},g.children)}})},"q"),y7D=_.dG(function(g){var r=g.data;
var E=g.hasIconLeading;var B=g.hasIconLeadingTrailing;var w=g.hasIconTrailing;var O=g.iconButton;var M=g.iconClassName;var u=g.secondaryIconClassName;var l=g.icon;var Q=g.secondaryIcon;var z=g.textContentClassName;return _.G(O5,{className:"",style:"display: inherit; justify-content: center"},_.G(_.p,{debugInstance:"V4z1Uc",cond:function(){return l&&(E()||B()||(O==null?void 0:O()))},
then:function(){return _.G(O5,null,_.G("div",{class:M,"aria-hidden":"true"},l==null?void 0:l()))}}),_.G(_.p,{debugInstance:"ok3btb",
cond:function(){return(r().buttonText||r().animatedTextProps||r().formattedButtonText)&&!(O==null?0:O())},
then:function(){return _.G(O5,null,_.G(Z2w,{className:z,iconPosition:function(){return r().iconPosition},
text:function(){return r().buttonText},
oneOffCustomTextWrap:function(){return r().oneOffCustomTextWrap},
formattedButtonText:function(){return r().formattedButtonText},
animatedTextProps:function(){return r().animatedTextProps}}))}}),_.G(_.p,{debugInstance:"DO5Rz",
cond:w,then:function(){return _.G(O5,null,_.G("div",{class:M},l==null?void 0:l()))}}),_.G(_.p,{debugInstance:"bnojSc",
cond:B,then:function(){return _.G(O5,null,_.G("div",{class:u},Q==null?void 0:Q()))}}),_.G(_.p,{debugInstance:"HN3kad",
cond:function(){return!r().disabled&&!0},
then:function(){return _.G(_.jk,{model:function(){return{color:Qeo(r())}}})}}))},"r"),Z2w=_.dG(function(g){var r=function(){var E,B;
return((E=g.iconPosition)==null?void 0:E.call(g))==="icon-with-label"||((B=g.oneOffCustomTextWrap)==null?void 0:B.call(g))};
return _.G("div",{class:g.className,"aria-hidden":function(){var E,B,w;return((E=g.ariaHidden)==null?void 0:E.call(g))&&(!((B=g.animatedTextProps)==null||!B.call(g))||!((w=g.formattedButtonText)==null||!w.call(g)))}},_.G(_.fa,null,_.G(_.na,{when:function(){var E;
return(E=g.animatedTextProps)==null?void 0:E.call(g)}},function(){return _.G(_.c7A,{numberText:function(){return g.animatedTextProps().numberText},
numberValue:function(){return g.animatedTextProps().numberValue},
heightPx:function(){return g.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return g.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return g.animatedTextProps().shouldAnimate},
forceRollUp:function(){return g.animatedTextProps().forceRollUp}})}),_.G(_.na,{when:function(){var E;
return(E=g.formattedButtonText)==null?void 0:E.call(g)}},function(){return _.G(_.hf,{text:function(){return Object.assign({},g.formattedButtonText(),{lineBreakMode:r()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":g.formattedButtonText().lineBreakMode,
alignment:r()?"TEXT_ALIGNMENT_CENTER":g.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!r()}})}),_.G(_.na,{when:function(){var E,B;
return((E=g.iconPosition)==null?void 0:E.call(g))==="icon-with-label"&&((B=g.text)==null?void 0:B.call(g))}},function(){return _.G(_.hf,{text:function(){return{content:g.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.G(_.s6,null,function(){return g.text})))},"s"),vmD=_.dG(function(g){return _.G(_.p,{debugInstance:"kM7Sgc",
cond:g.hasLabel,then:function(){var r;return _.G("label",{class:g.className},g.children,(r=g.textContent)==null?void 0:r.call(g))},
else:function(){return g.children}})},"t"),O5=_.dG(function(g){return g.children},"u");var lyc=gB("stamper-context");var ZB=_.dG(function(g){var r=g.data;var E=g.icon;var B=g.iconName;var w=g.secondaryIcon;var O=g.secondaryIconName;var M=g.focusedOverride;_.jeB();var u=lUl(r),l=u.size,Q=u.style;g=u.disabled;var z=u.onTap,k=u.alignByText,H=u.aTagConfig,R=u.customColors,A=u.segmentedPosition,J=u.toggled,e=u.toggleable,C=u.accessibilityLabel,X=u.onToggle,Z=u.iconPosition,c=u.oneOffCustomTextWrap,h=u.disableTextEllipsis,y=u.disableBackdropFilter,OD=u.tooltipText,uB=u.ariaHidden,zS=u.tabIndex,jV=u.buttonText,PJ=u.formattedButtonText,
At=u.animatedTextProps,XY=G3X(r,E,w,B,O,M),xc=XY.type;E=XY.shouldFocus;B=XY.hasIconLeading;w=XY.hasIconTrailing;var rg=XY.hasIconLeadingTrailing,$t=XY.hasIconOnly;O=XY.hasIconOnly40;var tD=XY.hasIconWithLabel;M=XY.iconButton;var GD=XY.visiblyDisabled;u=XY.overrideSmallSizeIcon;var xb=XY.iconToRender;XY=XY.secondaryIconToRender;var zL={},AD={};return _.G(vmD,{className:_.QY("yt-spec-button-shape-with-label",(zL["yt-spec-button-shape-with-label--is-overlay"]=function(){return Q()==="overlay"||Q()===
"overlay-dark"},zL)),
hasLabel:tD,textContent:function(){return _.G(Z2w,{text:jV,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:c,iconPosition:Z,formattedButtonText:PJ,animatedTextProps:At})}},_.G(hrb,{aTagConfig:H,
className:_.QY("yt-spec-button-shape-next",function(){return k3l(xc())},function(){return GD()?void 0:HTJ(Q())},function(){return pMB(l())},(AD["yt-spec-button-shape-next--disabled"]=GD,AD["yt-spec-button-shape-next--focused"]=E,AD["yt-spec-button-shape-next--icon-trailing"]=w,AD["yt-spec-button-shape-next--icon-leading"]=B,AD["yt-spec-button-shape-next--icon-leading-trailing"]=rg,AD["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return rg()&&!(jV()||PJ())},AD["yt-spec-button-shape-next--icon-button"]=
function(){return $t()||tD()},AD["yt-spec-button-shape-next--icon-only-default"]=O,AD["yt-spec-button-shape-next--align-by-text"]=k,AD["yt-spec-button-shape-next--segmented-start"]=function(){return A()==="start"},AD["yt-spec-button-shape-next--segmented-end"]=function(){return A()==="end"},AD["yt-spec-button-shape-next--override-small-size-icon"]=u,AD["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=c,AD["yt-spec-button-shape-next--disable-text-ellipsis"]=h,AD["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!y()&&zSc()},AD)),
style:function(){return YaV(R()).style},
onClick:function(lA){z==null||z(lA);e()&&(X==null||X(lA))},
disabled:g,ariaLabel:C,toggleable:e,toggled:J,title:function(){var lA;return(lA=OD())!=null?lA:""},
visiblyDisabled:GD,ariaHidden:uB,tabIndex:zS},_.G(y7D,{data:r,hasIconLeading:B,hasIconLeadingTrailing:rg,hasIconTrailing:w,iconButton:M,icon:xb,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:XY})))},"v");
ZB.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var d6A=_.dG(function(g){var r=g.data;var E=g.id;var B=g.hidden;var w=g.className;var O=g.iconName;var M=g.secondaryIconName;g=_.U(_.Dk(!1,void 0,"RyKHFc"));var u=g.next().value,l=g.next().value,Q=function(){var k=_.rM().resolve(_.gM(_.wN));k&&l(k.isKeyBoardInUse())},z=function(){l(!1)};
g=_.VI("yt-button-shape",function(k){if(_.rM().resolve(_.gM(_.wN)))return k.addEventListener("focusin",Q),k.addEventListener("focusout",z),function(){k.removeEventListener("focusin",Q);k.removeEventListener("focusout",z)}});
return _.G("yt-button-shape",{el:g,id:E,class:w,hidden:B},_.G(_.p,{cond:r,then:function(){return _.G(ZB,{data:r,iconName:O,secondaryIconName:M,focusedOverride:u})}}))},"w");
_.Y("web_wiz_button_shape")&&_.BK(d6A,"yt-button-shape",{props:{data:_.cP,id:_.cP,hidden:_.cP,className:_.cP,iconName:_.cP,secondaryIconName:_.cP},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss","disable-upgrade"])});var U5=function(){var g=_.a.apply(this,arguments)||this;g.keyboardFocused=!1;return g};
_.f(U5,_.a);U5.prototype.onFocus=function(){var g=_.rM().resolve(_.gM(_.wN));g&&(this.keyboardFocused=g.isKeyBoardInUse())};
U5.prototype.onBlur=function(){this.keyboardFocused=!1};
U5.prototype.renderIdom=function(){var g=this;if(this.data){var r=sB(this.data,!!this.iconName,this.data.ignoreIconSizeOverride),E=oLX(this.data);this.data.focused=this.keyboardFocused;$tP(this.data,function(){var B;tM("yt-icon",{icon:g.iconName,active:(B=g.data)==null?void 0:B.toggled,size:r,style:"width: "+r+"px; height: "+r+"px;",iconFilter:E},V6)},function(){var B;
tM("yt-icon",{icon:g.secondaryIconName,active:(B=g.data)==null?void 0:B.toggled,size:r,style:"width: "+r+"px; height: "+r+"px;",iconFilter:E},V6)});
_.Sh(this.hostElement,"yt-renderidom-finished")}};
_.hx.Object.defineProperties(U5,{template:{configurable:!0,enumerable:!0,get:function(){if(x6w===void 0){var g=document.createElement("template");_.b(g,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-shape--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape_wil_styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape.css.js--\x3e");
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);g.content.insertBefore(K3U().content.cloneNode(!0),g.content.firstChild);g.content.insertBefore(W36().content.cloneNode(!0),g.content.firstChild);x6w=g}g=x6w;return g}}});
U5.prototype.onBlur=U5.prototype.onBlur;U5.prototype.onFocus=U5.prototype.onFocus;_.m([_.P(QrZ),_.L("design:type",Object)],U5.prototype,"ytIdomTemplatingBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],U5.prototype,"data",void 0);_.m([_.K(),_.L("design:type",String)],U5.prototype,"iconName",void 0);_.m([_.K(),_.L("design:type",String)],U5.prototype,"secondaryIconName",void 0);_.m([_.K(),_.L("design:type",Object)],U5.prototype,"keyboardFocused",void 0);
_.m([_.ob("focusin"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],U5.prototype,"onFocus",null);_.m([_.ob("focusout"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],U5.prototype,"onBlur",null);_.m([_.e3({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.Y("web_wiz_button_shape")})],U5);_.BK(_.dG(function(g){function r(){E().seconds&&O(XyV({seconds:Number(E().seconds)-Date.now()/1E3}))}
var E=g.targetTimestamp;g=g.className;var B=_.U(_.Dk("",void 0,"U1Q8Ae")),w=B.next().value,O=B.next().value;_.jS(function(){r();var M=setInterval(function(){r()},1E3);
_.J5(function(){clearInterval(M)})});
return _.G("yt-countdown",{class:_.QY("ytCountDownHost",g)},_.G("div",null,w))},"x"),"yt-countdown",{props:{targetTimestamp:_.cP,
className:_.EB}});_.MV=_.dG(function(g){var r=g.data;var E=g.className;var B=g.style;var w=g.useOutlinedIcon;var O=g.buttonOverrides;var M=g.animatedTextProps;var u=g.onClick;var l=g.target;var Q=_.VI("button-view-model",function(C){C.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var X=r().targetId;X&&_.npb(_.Yl(),X,C);return function(){Ydw(_.Yl(),C)}}),z=function(){return r().iconName},k,H=(k=_.rM().resolve(_.gM(_.Vy)))==null?void 0:k(),R=function(){var C=r();
var X=O==null?void 0:O(),Z=M==null?void 0:M(),c=l==null?void 0:l();if(C){var h=FvB(C.type);var y=!!C.title||!!C.titleFormatted;var OD=!(!C.iconName&&!C.iconImage);y=OD&&!y?"icon-only":OD?C.iconTrailing||C.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;y==="icon-only-40"&&(h="text");var uB,zS=(uB=X==null?void 0:X.disabled)!=null?uB:C.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||C.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";uB=Object;OD=uB.assign;var jV=C.title,
PJ=C.titleFormatted;Z=Z&&Z.numberText&&!isNaN(Number(Z.numberValue))?Z:void 0;var At=C.accessibilityText,XY=trX(C.style),xc=eSl(C.state),rg=Wvl(C.buttonSize);c=PKc(C,Q,zS,u,c);zS=zS&&!C.onDisabledTap;var $t=_.xP(C==null?void 0:C.onTap);var tD={};$t&&(tD.clickedVisualElement=J$V(C,$t));$t=_.XI({elementsCommand:C.onTap,forceNewState:!0,additionalCommandArgs:tD});$t=Ny($t)?$t:void 0;var GD=C.customFontColor,xb=C.customBackgroundColor;tD=C.customBorderColor;var zL=C.customDarkThemeFontColor,AD=C.customDarkThemeBackgroundColor,
lA=C.customDarkThemeBorderColor;GD=H&&zL?zL:GD;xb=H&&AD?AD:xb;tD=H&&lA?lA:tD;tD={color:GD?_.XT(GD):void 0,backgroundColor:xb?_.XT(xb):void 0,borderColor:tD?_.XT(tD):void 0};C=OD.call(uB,{},{buttonText:jV,formattedButtonText:PJ,animatedTextProps:Z,accessibilityLabel:At,style:XY,type:h,state:xc,size:rg,iconPosition:y,onTap:c,disabled:zS,aTagConfig:$t,customColors:tD,tooltipText:C.tooltip},X)}else C={style:"mono",type:"text",state:"active",size:"M"};C.focused=e();return C},A=function(){return sB(R(),
!!r().iconName)};
g=_.U(_.Dk(!1,void 0,"nBSZgd"));k=g.next().value;var J=g.next().value,e=k;g=_.HK(function(){var C=_.rM().resolve(_.gM(_.wN));C&&J(C.isKeyBoardInUse());return!1});
k=_.HK(function(){J(!1);return!1});
_.bQ(function(){var C,X=_.n(r==null?void 0:(C=r())==null?void 0:C.onVisible,_.KW);X&&_.a3(X,{disableClickTracking:!0})},"pTxQg");
return _.G("button-view-model",{el:Q,class:_.QY("yt-spec-button-view-model",E),"on:focusin":g,"on:focusout":k},_.G(_.p,{cond:function(){var C;return(r==null?0:(C=r())==null?0:C.iconImage)?{sources:[r().iconImage]}:void 0},
then:function(C){return _.G(ZB,{data:R,icon:function(){return _.G(_.vw,{data:C,alt:"",targetWidth:A,targetHeight:A,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.G(ZB,{data:R,icon:function(){return _.G(_.nh,{icon:z,active:function(){return(w==null?0:w())?!1:R().toggled},
animateIcon:function(){var C;return!!(B==null?0:(C=B())==null?0:C.animateIcon)},
size:A})}})}}))},"y");
_.MV.idomCompat={callbacks:{onClick:!0}};_.BK(_.dG(function(g){return _.G("yt-button-view-model",{id:g.id,class:_.QY(g.scopingClassName,g.classes),icon:function(){var r;return(r=g.icon)==null?void 0:r.call(g)},
"dialog-dismiss":function(){var r;return((r=g.dialogDismiss)==null?0:r.call(g))?"":void 0}},_.G(_.MV,{data:function(){var r;
return(r=g.data)==null?void 0:r.call(g)},
className:function(){var r;return(r=g.className)==null?void 0:r.call(g)},
style:function(){var r;return(r=g.style)==null?void 0:r.call(g)},
useOutlinedIcon:function(){var r;return(r=g.useOutlinedIcon)==null?void 0:r.call(g)},
buttonOverrides:function(){var r;return(r=g.buttonOverrides)==null?void 0:r.call(g)},
animatedTextProps:function(){var r;return(r=g.animatedTextProps)==null?void 0:r.call(g)},
onClick:function(r){var E;return(E=g.onClick)==null?void 0:E.call(g,r)}}))},"z"),"yt-button-view-model",{props:{data:_.cP,
className:_.cP,style:_.cP,useOutlinedIcon:_.cP,buttonOverrides:_.cP,animatedTextProps:_.cP,onClick:_.EB,scopingClassName:_.cP,id:_.cP,icon:_.cP,dialogDismiss:_.cP,classes:_.cP,target:_.EB}});var qV=function(){var g=_.a.apply(this,arguments)||this;g.isGoalActive=!0;return g};
_.f(qV,_.a);qV.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
qV.prototype.progressBarChanged=function(){var g=_.S3(this.hostElement).querySelector("#progress-bar-progress"),r,E,B,w=(B=Number((r=this.creatorGoalState)==null?void 0:r.currentGoalCount)/Number((E=this.creatorGoalState)==null?void 0:E.totalGoalCount)*100)!=null?B:0,O;g.style.width=((O=Math.min(w,100))!=null?O:0)+"%"};
qV.prototype.goalStateChanged=function(){var g;this.isGoalActive=((g=this.creatorGoalState)==null?void 0:g.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var r;g={"--yt-progress-bar-color":vwP((r=this.creatorGoalState)==null?void 0:r.progressBarColor)};_.ua(this.hostElement,g)};
qV.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.hx.Object.defineProperties(qV.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var g;return this.isGoalActive&&!((g=this.creatorGoalState)==null||!g.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.creatorGoalState)==null?0:g.endTimestampMs){var r;g=Number((r=this.creatorGoalState)==null?void 0:r.endTimestampMs)/1E3;return{seconds:String(g)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.creatorGoalState)==null?0:g.themedTargetImage){var r;g=_.n((r=this.creatorGoalState)==null?void 0:r.themedTargetImage,CTw);return this.isAppDarkTheme()?g==null?void 0:g.imageDark:g==null?void 0:g.imageLight}}}});
_.hx.Object.defineProperties(qV,{template:{configurable:!0,enumerable:!0,get:function(){return G6b()}}});
qV.prototype.goalStateChanged=qV.prototype.goalStateChanged;qV.prototype.progressBarChanged=qV.prototype.progressBarChanged;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],qV.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.WP),_.L("design:type",Object)],qV.prototype,"ytLiveChatReduxBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],qV.prototype,"ytRendererBehavior",void 0);
_.m([_.K({selectorArgs:["data.creatorGoalEntityKey"],selector:function(g,r){return _.u1(g.entities,"creatorGoalEntity",r)}}),
_.L("design:type",Object)],qV.prototype,"creatorGoalState",void 0);_.m([_.K(),_.L("design:type",Object)],qV.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],qV.prototype,"isGoalActive",void 0);_.m([_.W("creatorGoalState","isGoalActive"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],qV.prototype,"shouldShowCountdown",null);_.m([_.W("creatorGoalState"),_.L("design:type",Object),_.L("design:paramtypes",[])],qV.prototype,"endTimestamp",null);
_.m([_.W("creatorGoalState"),_.L("design:type",Object),_.L("design:paramtypes",[])],qV.prototype,"targetIconThemedImage",null);_.m([_.Gb("creatorGoalState.currentGoalCount"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],qV.prototype,"progressBarChanged",null);_.m([_.Gb("creatorGoalState.creatorGoalState"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],qV.prototype,"goalStateChanged",null);
_.m([_.e3({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],qV);_.I(qV,"yt-creator-goal-progress-flow-view-model",function(){return G6b()},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var TSw;var gh6;var us=function(){return _.a.apply(this,arguments)||this};
_.f(us,_.a);us.prototype.attached=function(){var g,r,E;if(this==null?0:(g=this.data)==null?0:(r=g.pdgPurchasedBumperLoggingDirectives)==null?0:(E=r.loggingDirectives)==null?0:E.trackingParams){var B,w,O;xtP(this==null?void 0:(B=this.data)==null?void 0:(w=B.pdgPurchasedBumperLoggingDirectives)==null?void 0:(O=w.loggingDirectives)==null?void 0:O.trackingParams)}};
us.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],us.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],us.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],us.prototype,"data",void 0);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],us);
_.I(us,"yt-live-chat-item-bumper-view-model",function(){if(gh6===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;TSw===void 0&&(TSw=document.createElement("template"));var B=TSw;E.call(r,B.content.cloneNode(!0),g.content.firstChild);gh6=g}g=gh6;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var rGb;var Eh4;_.hR=function(g,r){this.data=g;this.actions=r;this.data=g;this.actions=r};
_.XA=function(){};_.ls={};_.ls.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(g,r){aUP(this.hostElement,g,r)},
getNavigationEndpointPopupAction:function(g){return XMt(g,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(g,r){N_Y(this.hostElement,g,r,this.openPopupConfig)}};var vLA=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.DW={};
_.DW.YtEndpointBehavior=[_.ls.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.Ca("openPopupConfig");(this.useClickHandler=_.Ka("useClickHandler",!1))?this.hostElement.addEventListener("click",la(this,this.onEndpointClick_)):(bp(this.hostElement,"tap",la(this,this.onEndpointTap_)),bp(this.hostElement,"touchend",la(this,this.onEndpointTouchEnd_)));bp(this.hostElement,"touchstart",la(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
la(this,this.onEndpointTapStart_))},
onEndpointClick_:function(g){c$L(this.hostElement,g,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(g){var r=this.hostElement,E=this.openPopupConfig,B=this.disableCommandHandlerOverride;B=B===void 0?!1:B;var w=IUD(g);if(w){w.href&&m$(w.href);var O=g.detail;var M=O.sourceEvent;O=O.preventer;M=M.button!==void 0?M.button===0&&!JR(M):O?!JR(O):!0;w.data&&M&&mtB(r,w,g,E,B)}},
onEndpointTouchEnd_:function(g){JR(g)||IUD(g)&&g.preventDefault()},
onEndpointTapStart_:function(g){ZTV(g)}}];var dtQ="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),gOX=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var BmT={};BmT.YtPlaintextBehavior=[_.QV,{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(g){g.preventDefault();g=g.clipboardData.getData("text/plain");document.execCommand("insertText",!1,g)},
preventRichTextFormatting_:function(g){_.uR&&(g=g.detail.keyboardEvent,g.stopImmediatePropagation(),g.preventDefault())}}];var wrn;var Sv6;var oY=function(){var g=_.a.apply(this,arguments)||this;g.ignoreShadyDom=!1;g.hasChange_=!1;g.hasSetTitle_=!1;g.useIOObserverForVisibilityLogging_=_.Y("kevlar_use_vimio_behavior")&&_.Ca("INNERTUBE_CLIENT_NAME")==="WEB";g.ytFormattedStringObserverHandlerKeys_=void 0;return g};
_.f(oY,_.a);_.S=oY.prototype;_.S.created=function(){this.useIOObserverForVisibilityLogging_=_.Y("kevlar_use_vimio_behavior")&&_.Ca("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.S.ready=function(){_.Ca("HTML_DIR")==="rtl"?this.useMixedDirectionFormattedStrings?this.hostElement.dir="rtl":this.respectHtmlDir||(this.hostElement.dir="auto"):this.respectLangDir&&(this.hostElement.dir="auto",this.hostElement.style.textAlign="left");this.enableContentEditableChanged_()};
_.S.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.S.detached=function(){this.unobserveIOObservers_()};
_.S.clearContents_=function(){for(var g=this.getRoot(),r=g.lastChild;r&&r.tagName!=="STYLE";){try{g.removeChild(r)}catch(E){break}r=g.lastChild}};
_.S.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var g=_.U(this.ytFormattedStringObserverHandlerKeys_),r=g.next();!r.done;r=g.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(r.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.S.resetForAttributedString=function(){var g=this.getRoot();!g.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),g.appendChild(this.ytAttributedStringElementRef))};
_.S.resetForFormattedString=function(){var g=this.getRoot(),r=g.querySelector("yt-attributed-string");r&&(this.ytAttributedStringElementRef=g.removeChild(r))};
_.S.textChanged=function(){this.textChanged_(this.text)};
_.S.textChanged_=function(g){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!g||!g.runs&&!g.simpleText;if(_.Y("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var r=this.hostElement.firstChild;r&&r.nodeName==="FONT";){var E=r;r=r.nextSibling;this.hostElement.removeChild(E)}r=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
E=g.simpleText;var B;!E&&((B=g.runs)==null?void 0:B.length)===1&&this.isSimpleString_(g.runs[0])&&(E=g.runs[0].text);E!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.Ca("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(E!==void 0){try{r.textContent=E}catch(w){}r.textContent||(this.isEmpty=!0)}else g=g.runs,E!==void 0&&(g=[{text:E}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),g&&this.updateText_(g),
r.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.S.ellipsisTruncateChanged_=function(){!this.ellipsisTruncate||this.hostElement.title&&!this.hasSetTitle_?this.hasSetTitle_&&(this.hostElement.removeAttribute("title"),this.hasSetTitle_=!1):(this.hostElement.title=this.getRawText(),this.hasSetTitle_=!0)};
_.S.computeAriaLabel_=function(g){return g};
_.S.computeEllipsisTruncateStyling=function(g,r){return g&&!r};
_.S.computeUseAttributedString=function(g){return _.Y("web_replace_formatted_with_attributed_string")&&omP(g)&&!this.disableAttributedString&&!this.enableContentEditable};
_.S.setNodeStyle_=function(g,r){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.Y("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?r.removeAttribute("dir"):r.setAttribute("dir","auto");r.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");r.style.color="";var E=null;this.noStyles||(g.bold&&(r.classList.add("bold"),E="bold"),g.deemphasize&&(r.classList.add("deemphasize"),E="deemphasize"),g.italics&&r.classList.add("italic"),
g.strikethrough&&r.classList.add("strikethrough"),g.errorUnderline&&(r.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),g.bracket&&r.classList.add("bracket"),g.textColor&&(r.style.color=_.aJ(g.textColor)));E!==r.getAttribute("style-target")&&(E?r.setAttribute("style-target",E):r.removeAttribute("style-target"))};
_.S.setUpVisibilityLogging_=function(g,r){var E=this;this.setNodeTrackingParams_(g,r);var B;((B=r.data)==null?0:B.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(g=this.ytRendererBehavior.visibilityObserver.observe(r,function(w){var O=E.ytRendererBehavior.getVisibilityLogger();O&&O.reportShown(w)},this.ytRendererBehavior.visibilityOptionVisible_),r=this.ytRendererBehavior.visibilityObserver.observe(r,function(w){var O=E.ytRendererBehavior.getVisibilityLogger();
O&&O.reportHidden(w)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(g),this.ytFormattedStringObserverHandlerKeys_.push(r))};
_.S.setNodeTrackingParams_=function(g,r){r.data||(r.data={});if((g=g.loggingDirectives?g.loggingDirectives.trackingParams:null)||r.data.trackingParams)r.data.trackingParams=g};
_.S.computeHasLinkOnly_=function(g){return!(!g||g.length!==1||this.noEndpoints||!g[0].navigationEndpoint)};
_.S.getRoot=function(){var g=this.buildScopeDomOptions();return this.enableContentEditable?_.S3(_.S3(this.hostElement,g).querySelector("[contenteditable]")):_.S3(this.hostElement,g)};
_.S.fixContenteditableScope=function(){var g=function(r){r&&(r.nodeType===1&&r.classList&&(r.classList.add("style-scope"),r.classList.add("yt-formatted-string")),r.childNodes&&r.childNodes.forEach(function(E){g(E)}))};
g(this.getRoot())};
_.S.updateText_=function(g){for(var r=g.length,E=this.getRoot(),B=E.firstChild;B&&B.nodeName==="STYLE";)B=B.nextSibling;for(var w=0;w<r&&B;){var O=g[w],M=_.Y("remove_cr_char")&&O.text?O.text.replace("\r",""):O.text;if(this.isSimpleString_(O)&&!this.useMixedDirectionFormattedStrings)if(B.nodeName==="#text"){B.textContent!=M&&(B.textContent=M);w++;B=B.nextSibling;continue}else break;if(_.n(O,Ww))break;else if(!this.noEndpoints&&O.navigationEndpoint){if(B.nodeName!=="A")break;this.setDataOnAnchor_(B,
O.navigationEndpoint)}else if(B.nodeName!=="SPAN")break;this.setNodeStyle_(O,B);this.setUpVisibilityLogging_(O,B);B.textContent!=M&&(B.textContent=M);w++;B=B.nextSibling}if(B)for(O=E.lastChild,B=w?B.previousSibling:null;O&&O!=B;){try{E.removeChild(O)}catch(u){break}O=E.lastChild}w!==r&&this.addTextNodes_(g,w)};
_.S.addTextNodes_=function(g,r){for(var E=document.createDocumentFragment(),B=g.length;r<B;r++){var w=g[r],O=_.Y("remove_cr_char")&&w.text?w.text.replace("\r",""):w.text;if(this.isSimpleString_(w)&&!this.useMixedDirectionFormattedStrings)E.appendChild(document.createTextNode(O));else{var M=_.n(w,Ww);if(M){if(M.image){var u=document.createElement("img");M.isCustomEmoji||u.classList.add("small-emoji");u.classList.add("emoji");M.isCustomEmoji&&(u.dataset.emojiId=M.emojiId);u.src=_.wt(M.image.thumbnails,
this.emojiSize);(w=this.get("image.accessibility.accessibilityData.label",M))?u.alt=w:M.shortcuts&&M.shortcuts.length>0?u.alt=M.shortcuts[0]:M.emojiId&&(u.alt=M.emojiId);E.appendChild(u);this.hasEmoji=!0}}else!this.noEndpoints&&w.navigationEndpoint?(u=document.createElement("a"),u.classList.add("yt-simple-endpoint"),u.setAttribute("spellcheck","false"),this.setDataOnAnchor_(u,w.navigationEndpoint)):u=document.createElement("span"),this.setNodeStyle_(w,u),this.setUpVisibilityLogging_(w,u),u.appendChild(document.createTextNode(O)),
E.appendChild(u)}}this.getRoot().appendChild(E)};
_.S.isSimpleString_=function(g){return(this.noEndpoints||!g.navigationEndpoint)&&!_.n(g,Ww)&&(this.noStyles||!(g.bold||g.deemphasize||g.italics||g.strikethrough||g.errorUnderline||g.bracket||g.textColor))&&!g.loggingDirectives};
_.S.getRawText=function(){return _.Vp(this.text)};
_.S.getFirstRunText=function(){var g;if(((g=this.text)==null?0:g.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.S.setFirstRunText=function(g){var r;((r=this.text)==null?0:r.runs)&&this.text.runs[0]&&(this.text.runs[0].text=g,this.textChanged_(this.text))};
_.S.setDataOnAnchor_=function(g,r){var E=this;!_.Y("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(r)||this.isSignalServiceEndpoint_(r)?(g.onclick=this.serviceEndpointHandler_(r),Aa(g,"#")):JMc({text:this.text,command:r},function(){IhA(g,r,E.target)})};
_.S.isServiceEndpoint_=function(g){var r;return!((r=_.n(g==null?void 0:g.commandMetadata,_.dU))==null||!r.sendPost)};
_.S.isSignalServiceEndpoint_=function(g){return!!_.n(g,_.Gn)};
_.S.serviceEndpointHandler_=function(g){var r=this;return function(E){_.q2(r.hostElement,[g]);E.preventDefault()}};
_.S.overrideAriaLabelChanged_=function(){var g=this.getRoot();this.enableContentEditable&&g&&g.setAttribute("aria-label",this.overrideAriaLabel)};
_.S.enableContentEditableChanged_=function(){var g=this,r=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),r=_.S3(this.hostElement,r),!r.lastChild||r.lastChild instanceof HTMLElement&&r.lastChild.id!=="contenteditable-root"){var E=document.createElement("div");E.id="contenteditable-root";E.setAttribute("contenteditable","true");E.setAttribute("dir","auto");E.onfocus=function(){g.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
r.appendChild(E);this.overrideAriaLabel&&E.setAttribute("aria-label",this.overrideAriaLabel)}}else E=_.ON(this.hostElement).firstChild,E instanceof HTMLElement&&E.id==="contenteditable-root"&&_.S3(this.hostElement,r).removeChild(E)};
_.S.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.S.getNodesForVisibilityLogging_=function(){return _.BL(this.getRoot().childNodes,function(g){var r;return!((r=g.data)==null||!r.trackingParams)})};
_.S.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.S.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var g=this.ytRendererBehavior.getVisibilityLogger();g&&this.getNodesForVisibilityLogging_().forEach(function(r){g.reportShown(r)})}};
_.S.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var g=this.ytRendererBehavior.getVisibilityLogger();g&&this.getNodesForVisibilityLogging_().forEach(function(r){g.reportHidden(r)})}};
_.hx.Object.defineProperties(oY.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.Y("enable_mixed_direction_formatted_strings")}}});
oY.prototype.enableContentEditableChanged_=oY.prototype.enableContentEditableChanged_;oY.prototype.overrideAriaLabelChanged_=oY.prototype.overrideAriaLabelChanged_;oY.prototype.ellipsisTruncateChanged_=oY.prototype.ellipsisTruncateChanged_;oY.prototype.textChanged=oY.prototype.textChanged;_.m([_.P(BmT.YtPlaintextBehavior),_.L("design:type",Object)],oY.prototype,"ytPlaintextBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],oY.prototype,"ytComponentBehavior",void 0);
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],oY.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],oY.prototype,"text",void 0);_.m([_.K(),_.L("design:type",Boolean)],oY.prototype,"noEndpoints",void 0);_.m([_.K(),_.L("design:type",Boolean)],oY.prototype,"noStyles",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],oY.prototype,"isDarkTheme",void 0);
_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],oY.prototype,"splitLines",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],oY.prototype,"forceDefaultStyle",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],oY.prototype,"ellipsisTruncate",void 0);_.m([_.K(),_.L("design:type",Object)],oY.prototype,"ignoreShadyDom",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.L("design:type",Boolean)],oY.prototype,"ellipsisTruncateStyling",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.L("design:type",String)],oY.prototype,"ariaLabel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],oY.prototype,"isEmpty",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.L("design:type",Boolean)],oY.prototype,"hasLinkOnly_",void 0);_.m([_.K(),_.L("design:type",Boolean)],oY.prototype,"hasEmoji",void 0);_.m([_.K(),_.L("design:type",Boolean)],oY.prototype,"disableAttributedString",void 0);_.m([_.K(),_.L("design:type",Boolean)],oY.prototype,"isOverlay",void 0);_.m([_.K(),_.L("design:type",Boolean)],oY.prototype,"linkInheritColor",void 0);
_.m([_.K(),_.L("design:type",Boolean)],oY.prototype,"noPreWrap",void 0);_.m([_.K(),_.L("design:type",Boolean)],oY.prototype,"userInput",void 0);_.m([_.K({value:16}),_.L("design:type",Number)],oY.prototype,"emojiSize",void 0);_.m([_.K(),_.L("design:type",String)],oY.prototype,"target",void 0);_.m([_.K(),_.L("design:type",Boolean)],oY.prototype,"enableContentEditable",void 0);_.m([_.K(),_.L("design:type",String)],oY.prototype,"overrideAriaLabel",void 0);
_.m([_.K(),_.L("design:type",Boolean)],oY.prototype,"respectHtmlDir",void 0);_.m([_.K(),_.L("design:type",Boolean)],oY.prototype,"respectLangDir",void 0);_.m([_.W("plaintextOnly"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],oY.prototype,"useMixedDirectionFormattedStrings",null);_.m([_.K({computed:"computeUseAttributedString(text)"}),_.L("design:type",Boolean)],oY.prototype,"useYtAttributedString",void 0);
_.m([_.Gb("text"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],oY.prototype,"textChanged",null);_.m([_.Gb("ellipsisTruncate"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],oY.prototype,"ellipsisTruncateChanged_",null);_.m([_.Gb("overrideAriaLabel"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],oY.prototype,"overrideAriaLabelChanged_",null);
_.m([_.Gb("enableContentEditable"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],oY.prototype,"enableContentEditableChanged_",null);_.m([_.e3({is:"yt-formatted-string",disableElementRegistration:!0})],oY);
_.I(oY,"yt-formatted-string",function(){if(Sv6===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;wrn===void 0&&(wrn=document.createElement("template"));var B=wrn;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Sv6=g}g=Sv6;return g});var OvT;var UUD;var MMA;var qvm;var Gp=function(){var g=_.a.apply(this,arguments)||this;g.focused=!1;g.disabled=!1;g.isOverlay=!1;return g};
_.f(Gp,_.a);Gp.prototype.triggerDown=function(){if(!this.disabled){_.UN(this.hostElement,"down",!0);var g;(g=this.currentAnimation)==null||g.cancel()}};
Gp.prototype.triggerUp=function(){if(!this.disabled){_.UN(this.hostElement,"down",!1);var g=this.fillElement;var r=this.strokeElement;typeof GroupEffect==="function"?(g=new GroupEffect([Mro(g),qaV(r)]),g=new Animation(g,document.timeline)):g=new i2Z(g,r);this.currentAnimation=g;var E;(E=this.currentAnimation)==null||E.play()}};
_.m([_.zb(".stroke"),_.L("design:type",HTMLElement)],Gp.prototype,"strokeElement",void 0);_.m([_.zb(".fill"),_.L("design:type",HTMLElement)],Gp.prototype,"fillElement",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Gp.prototype,"focused",void 0);_.m([_.K(),_.L("design:type",Object)],Gp.prototype,"disabled",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Gp.prototype,"isOverlay",void 0);_.m([_.e3({is:"yt-interaction",disableElementRegistration:!0})],Gp);
_.I(Gp,"yt-interaction",function(){if(qvm===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;MMA===void 0&&(MMA=document.createElement("template"));var B=MMA;E.call(r,B.content.cloneNode(!0),g.content.firstChild);qvm=g}g=qvm;return g},{mode:2});var QF=function(){return _.a.apply(this,arguments)||this};
_.f(QF,_.a);_.S=QF.prototype;_.S.ready=function(){var g=this,r=_.S3(this.hostElement).querySelector("#button");r.addEventListener("focus",function(){PIm||(PIm=new JKT);g.keyboardFocused=PIm.isKeyBoardInUse()});
r.addEventListener("blur",function(){g.keyboardFocused=!1;g.rippleUp_()})};
_.S.computeTabIndex_=function(g){return g?-1:0};
_.S.computeButtonAriaPressed_=function(g){if(this.toggleable)return g?"true":"false"};
_.S.rippleDown_=function(){_.S3(this.hostElement).querySelector("#interaction").triggerDown()};
_.S.rippleUp_=function(){_.S3(this.hostElement).querySelector("#interaction").triggerUp()};
_.S.onPressedChanged_=function(){var g=_.ON(_.S3(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.ON(_.S3(this.hostElement).querySelector("#button")).children[0];g&&(g.active=this.pressed)};
QF.prototype.onPressedChanged_=QF.prototype.onPressedChanged_;QF.prototype.rippleUp_=QF.prototype.rippleUp_;QF.prototype.rippleDown_=QF.prototype.rippleDown_;_.m([_.K(),_.L("design:type",String)],QF.prototype,"label",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],QF.prototype,"disabled",void 0);_.m([_.K(),_.L("design:type",Boolean)],QF.prototype,"pressed",void 0);_.m([_.K(),_.L("design:type",Object)],QF.prototype,"toggleable",void 0);
_.m([_.K(),_.L("design:type",Boolean)],QF.prototype,"untabbable",void 0);_.m([_.K(),_.L("design:type",Boolean)],QF.prototype,"keyboardFocused",void 0);_.m([_.ob("down"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],QF.prototype,"rippleDown_",null);_.m([_.ob("up"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],QF.prototype,"rippleUp_",null);
_.m([_.Gb("pressed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],QF.prototype,"onPressedChanged_",null);_.m([_.e3({is:"yt-icon-button",disableElementRegistration:!0})],QF);
_.I(QF,"yt-icon-button",function(){if(UUD===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;OvT===void 0&&(OvT=document.createElement("template"));var B=OvT;E.call(r,B.content.cloneNode(!0),g.content.firstChild);UUD=g}g=UUD;return g},{mode:2});var uf4=_.me(["aria-"]),zp={};zp.YtRenderButtonBehavior=[_.T.YtRendererBehavior,_.DW.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!!_.rM().resolve(_.gM(_.wN))&&_.Y("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 g=this.computeHref_(this.endpoint,!0);g?Aa(this.elements_.endpoint,g):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){g=this.buttonClass.split(" ");g=_.U(g);for(var r=g.next();!r.done;r=g.next())r=r.value,_.UN(this.hostElement,r,!0),this.elements_.button&&_.UN(this.elements_.button,r,!0),this.elements_.text&&_.UN(this.elements_.text,r,!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&&(g=null,this.buttonAccessibility&&(g=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=g:g?_.ii([_.EY(uf4)],this.elements_.button,"aria-label",g):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var g=_.rM().resolve(_.gM(_.wN));g&&(this.keyboardFocused=g.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.yx("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,_.nM(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.nM(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(g,r){if(r)for(g=r.split(" "),g=_.U(g),r=g.next();!r.done;r=g.next())r=r.value,_.UN(this.hostElement,r,!1),this.elements_.button&&_.UN(this.elements_.button,r,!1),this.elements_.text&&_.UN(this.elements_.text,r,!1)},
buttonIconChanged_:function(g){this.elements_.icon?g?(this.elements_.icon.icon=g,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.nM(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.M1(this.hostElement,"is-paper-button-with-icon",!1)):g&&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"&&_.nM(this.elements_.button).appendChild(this.elements_.icon):_.nM(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.M1(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(g){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,g){var r=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(g){case "yt_icon_button_with_label":r=!0;_.UN(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();g=_.nM(this.elements_.button).firstElementChild;
this.elements_.icon=g;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.nM(this.elements_.endpoint).appendChild(this.elements_.button);_.nM(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.yx("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;_.nM(this.elements_.button).appendChild(this.elements_.text);_.nM(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":r=!0,this.elements_.button=this.getYtIconButton_(),g=_.nM(this.elements_.button).firstElementChild,this.elements_.icon=g,this.setIconActive_(this.elements_.icon),
_.nM(this.elements_.endpoint).appendChild(this.elements_.button)}_.M1(this.hostElement,"is-icon-button",r);_.M1(this.hostElement,"is-paper-button",!r);_.M1(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 E;_.S3((E=this.container.hostElement)!=null?E:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.nM(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(g){if(g!=void 0||this.disabled)this.disabled=g,this.elements_.button&&(this.elements_.button.disabled=g)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(g){_.Y("kevlar_system_icons")&&g&&this.data&&(this.data.isSelected!==void 0?g.active=this.data.isSelected:this.data.isToggled!==void 0&&(g.active=this.data.isToggled))},
observeBasicPalette_:function(g){_.tR(this.hostElement,g)},
disabledChanged_:function(g){this.data&&this.set("data.isDisabled",g)},
onYtButtonTap_:function(g){if(this.disabled)g.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.q2(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(g=this.disableCommandHandlerOverride,!this.data||!this.data.command||g||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.Y("handle_service_request_actions")||_.q2(this.hostElement,[this.serviceEndpoint]),
_.Sh(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.Y("handle_service_request_actions")?(g=[],this.serviceEndpoint&&g.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&g.push(this.data.command),g.length&&_.uq(this.hostElement,g,this.hostElement)):this.data&&this.data.command&&(g=this.data.command,g.accountUnlinkCommand||g.accountLinkCommand||g.insertAdCommand||g.insertHighlightMarkerCommand||
g.createLivestreamHighlightClipCommand||g.getVideoUploadFeedbackCommand||g.musicDeletePrivatelyOwnedEntityCommand||g.ypcCancelRecurrenceEndpoint||g.getMultiSelectCommandEndpoint?_.q2(this.hostElement,[g]):_.uq(this.hostElement,[g],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 g,r=_.S3((g=this.container.hostElement)!=null?g:this.container);r.lastChild&&r.lastChild.tagName!="STYLE";)try{r.removeChild(r.lastChild)}catch(E){break}},
getYtIconButton_:function(){var g=this.reuseEnabled_()?_.yx("yt-icon-button"):document.createElement("yt-icon-button"),r=_.nM(g).firstElementChild;if(r&&r.is!="yt-icon"){for(r=_.nM(g);r.lastChild;)r.removeChild(r.lastChild);r=null}r||(r=this.getIcon_(),this.setIconActive_(r),_.nM(g).appendChild(r));return g},
reuseEnabled_:function(){return _.Y("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.yx("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.yx("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.l7A={};
_.l7A.YtButtonBehavior=[zp.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var g=this.data;g&&(this._setEndpoint(this.computeEndpoint_(g)),this._setServiceEndpoint(this.computeServiceEndpoint_(g)),this._setCommand(this.computeCommand_(g)),this._setButtonIcon(this.computeButtonIcon_(g)),this._setButtonText(this.computeButtonText_(g,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(g)),this._setButtonTooltip(this.computeTooltip_(g)),this._setButtonClass(this.computeButtonClass_(g)),this._setIconPositionType(this.computeIconPositionType_(g)),this.updateRenderedElements())},
setPressedState:function(g){var r;if((r=this.elements_)==null?0:r.button)this.elements_.button.pressed=!!g},
computeIconPositionType_:function(g){return g&&g.iconPosition||null},
computeEndpoint_:function(g){var r=g&&g.navigationEndpoint,E=this.get("data.command.commandMetadata.webCommandMetadata.url"),B=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return r?r:g&&g.command&&g.command.modalEndpoint?g.command:E&&!B&&g.command?g.command:null},
computeServiceEndpoint_:function(g){var r=g&&g.serviceEndpoint,E=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return r?r:E&&g.command?g.command:null},
computeCommand_:function(g){return g&&g.command||null},
computeButtonIcon_:function(g){return g&&g.icon&&g.icon.iconType?_.Dh(g.icon.iconType):null},
computeButtonText_:function(g,r){return!r&&g&&g.text||null},
computeAccessibility_:function(g){return this.get("accessibilityData.accessibilityData",g)||g&&g.accessibility||(g&&g.text?{label:this.getSimpleString(g.text)}:null)},
computeTooltip_:function(g){return g?g.isDisabled&&g.disabledTooltip||g.tooltip||null:null},
computeButtonClass_:function(g){var r=g&&g.style?g.style.toLowerCase().replace(/_/g,"-")+" ":"";r+=g&&g.size?g.size.toLowerCase().replace(/_/g,"-")+" ":"";g.colorData&&g.colorData.basicColorPaletteData&&g.colorData.basicColorPaletteData.borderColor&&(r+="palette-with-border");return r.trim()}}];var FA={};var DUD;var ohD;var Gq4,QkD=function(){return Gq4!==void 0?Gq4:Gq4=document.createElement("template")};
document.head.appendChild(QkD().content);var zkU;var kq4,HvI=function(){return kq4!==void 0?kq4:kq4=document.createElement("template")};
document.head.appendChild(HvI().content);var prU;var Yvw,Rk6=function(){return Yvw!==void 0?Yvw:Yvw=document.createElement("template")};
document.head.appendChild(Rk6().content);var nhU;var skw=document.head,f7n=skw.appendChild,$U4;if(nhU===void 0){var jkZ=document.createElement("template");_.b(jkZ,"\x3c!--css-build:shady--\x3e");jkZ.content.insertBefore(Rk6().content.cloneNode(!0),jkZ.content.firstChild);nhU=jkZ}$U4=nhU;f7n.call(skw,$U4.content);var AGZ=document.head,bvT=AGZ.appendChild,JGn;if(prU===void 0){var P_D=document.createElement("template");_.b(P_D,"\x3c!--css-build:shady--\x3e");P_D.content.insertBefore(HvI().content.cloneNode(!0),P_D.content.firstChild);prU=P_D}JGn=prU;bvT.call(AGZ,JGn.content);var tMZ=document.head,FwU=tMZ.appendChild,ekw;if(zkU===void 0){var WwI=document.createElement("template");_.b(WwI,"\x3c!--css-build:shady--\x3e");WwI.content.insertBefore(QkD().content.cloneNode(!0),WwI.content.firstChild);zkU=WwI}ekw=zkU;FwU.call(tMZ,ekw.content);var C_I;_.ek("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");C_I=_.Y("web_button_rework")&&_.Ka("BUTTON_REWORK")||_.Y("web_button_rework_with_live");_.k8=function(){return _.a.apply(this,arguments)||this};
_.f(_.k8,_.a);_.k8.prototype.created=function(){this.openPopupConfig=_.Ca("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.k8.prototype.onYtNavigate_=function(g){var r=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(g.detail.endpoint);r&&(this.ytOpenPopupBehavior.openPopup(r),g.stopPropagation(),g.preventDefault())};
_.hx.Object.defineProperties(_.k8,{template:{configurable:!0,enumerable:!0,get:function(){if(ohD===void 0){var g=document.createElement("template");_.b(g,"\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");g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);
var r=g.content,E=r.insertBefore;DUD===void 0&&(DUD=document.createElement("template"));var B=DUD;E.call(r,B.content.cloneNode(!0),g.content.firstChild);ohD=g}g=ohD;return g}}});
_.k8.prototype.onYtNavigate_=_.k8.prototype.onYtNavigate_;_.m([_.P(_.ls.YtOpenPopupBehavior),_.L("design:type",Object)],_.k8.prototype,"ytOpenPopupBehavior",void 0);_.m([_.P(_.l7A.YtButtonBehavior),_.L("design:type",Object)],_.k8.prototype,"ytButtonBehavior",void 0);_.m([_.ob("yt-navigate"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],_.k8.prototype,"onYtNavigate_",null);
_.m([_.e3({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:C_I})],_.k8);var Kww;var xUT=_.Y("web_button_rework")&&_.Ka("BUTTON_REWORK")||_.Y("web_button_rework_with_live"),HY=function(){var g=_.a.apply(this,arguments)||this;g.isPressed=!1;g.forceIconButton=!1;g.forceIconOnly=!1;g.forceModernIconButton=!1;g.skipCommandHandling=!1;g.alignByText=!1;g.fitToVisibleBounds=!0;g.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};g.onTap=function(r){_.Sh(g.hostElement,"yt-service-request-sent-button-renderer",r)};
return g};
_.f(HY,_.a);_.S=HY.prototype;_.S.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.S.onClick=function(g){var r,E=this.disabled||((r=this.data)==null?void 0:r.isDisabled);r=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");E&&r&&g.stopPropagation()};
_.S.computeIcon=function(){var g,r,E=(g=this.data)==null?void 0:(r=g.icon)==null?void 0:r.iconType;if(E)return _.Dh(E)};
_.S.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.S.handleUpdateButtonAction=function(g){g=_.n(g,B5n);var r=_.n(g==null?void 0:g.updatedButton,_.Fd);if(this.data&&g&&r){var E=this.data;E.targetId&&g.targetId&&E.targetId===g.targetId&&(this.data=r)}};
_.hx.Object.defineProperties(HY.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var g=this;if(this.data){var r=Oeo({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.Sh(g.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.Sh(g.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});r.alignByText=this.alignByText;return r}}}});
_.hx.Object.defineProperties(HY,{template:{configurable:!0,enumerable:!0,get:function(){if(Kww===void 0){var g=document.createElement("template");_.b(g,'\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>');Kww=g}g=Kww;return g}}});
HY.prototype.onClick=HY.prototype.onClick;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],HY.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],HY.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],HY.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],HY.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],HY.prototype,"isPressed",void 0);
_.m([_.K(),_.L("design:type",Object)],HY.prototype,"forceIconButton",void 0);_.m([_.K(),_.L("design:type",Object)],HY.prototype,"forceIconOnly",void 0);_.m([_.K(),_.L("design:type",Object)],HY.prototype,"forceModernIconButton",void 0);_.m([_.K(),_.L("design:type",Object)],HY.prototype,"skipCommandHandling",void 0);_.m([_.K(),_.L("design:type",Object)],HY.prototype,"alignByText",void 0);_.m([_.K(),_.L("design:type",Object)],HY.prototype,"buttonTooltipPosition",void 0);
_.m([_.K(),_.L("design:type",Object)],HY.prototype,"fitToVisibleBounds",void 0);_.m([_.K({computed:"computeTooltip(data)"}),_.L("design:type",Object)],HY.prototype,"tooltip",void 0);_.m([_.K(),_.L("design:type",Object)],HY.prototype,"overrides",void 0);_.m([_.K(),_.L("design:type",Boolean)],HY.prototype,"disabled",void 0);_.m([_.ob("click"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],HY.prototype,"onClick",null);
_.m([_.W("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.L("design:type",Object),_.L("design:paramtypes",[])],HY.prototype,"computedButtonShape",null);_.m([_.e3({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!xUT,cssBuildOptOut:!0}),_.e3({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!xUT,cssBuildOptOut:!0})],HY);var a7w;var Xrm;var po=function(){var g=_.a.apply(this,arguments)||this;g.empty_=!0;g.loadTime=Infinity;g.pendingPaint=!1;g.hasChange_=!1;g.oldThumbnail_=null;g.oldDelayedSrc_="";g.objectURL_=null;return g};
_.f(po,_.a);_.S=po.prototype;_.S.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.S.ready=function(){var g=this.shouldShowPlaceholder_();_.UN(this.hostElement,"no-transition",!0);g&&this.hostElement.classList.add("with-placeholder")};
_.S.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.S.isThumbPreloaded_=function(g){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",g)};
_.S.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||Nmw};
_.S.computeThumbnailSrc_=function(g){return g&&g.thumbnails?_.wt(g.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.S.computeAlt_=function(){var g=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&g||""};
_.S.thumbnailChanged_=function(){var g=_.U([this.thumbnail,this.oldThumbnail_]),r=g.next().value;g=g.next().value;this.oldThumbnail_=r;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(g=this.computeThumbnailSrc_(g),this.computeThumbnailSrc_(r)===g))return;_.Y("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(r)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):r&&_.Ka("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.Lk(this,this.onReload_):_.Lk(this,this.onShow_):this.resetImage_();r&&(this.hostElement.style.opacity=""+r.opacity)}};
_.S.delayedSrcChanged_=function(){var g=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===g||this.resetImage_()};
_.S.setSrc_=function(g){g?(_.S3(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.S3(this.hostElement).querySelector("#img").src=g):(_.S3(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.S.resetImage_=function(){qpX(this.hostElement);this.empty_=!0;this.setSrc_(Nmw);this.ytRendererBehavior.invalidate(!1)};
_.S.observePlaceholderColor_=function(){var g=this.thumbnail&&this.thumbnail.placeholderColor;g?this.hostElement.style.backgroundColor=_.aJ(g):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.S.onLoad_=function(){_.S3(this.hostElement).querySelector("#img").src&&_.S3(this.hostElement).querySelector("#img").src!==Nmw&&(MJo(this.hostElement),this.notifyOnLoaded&&_.Sh(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.S.onError_=function(){var g=this;if(_.Y("web_use_cache_for_image_fallback"))zBL(_.S3(this.hostElement).querySelector("#img").src).then(function(r){g.objectURL_=_.sU(r).toString();g.setSrc_(g.objectURL_)}).catch(function(){_.Y("kevlar_woffle_fallback_image")&&g.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.S.onPrescanVisible=function(){this.onShow_()};
_.S.onVisible=function(){if(_.Y("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.S.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var g=this.computeSrc_();g!==_.S3(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(g))}};
_.S.onReload_=function(){this.empty_=!1;var g=this.computeSrc_();g!==_.S3(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(g))};
_.S.shouldShowPlaceholder_=function(){return _.Y("kevlar_thumbnail_bg")};
po.prototype.observePlaceholderColor_=po.prototype.observePlaceholderColor_;po.prototype.delayedSrcChanged_=po.prototype.delayedSrcChanged_;po.prototype.thumbnailChanged_=po.prototype.thumbnailChanged_;_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],po.prototype,"alt",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],po.prototype,"ariaHidden",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],po.prototype,"ariaLabel",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],po.prototype,"hidden",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],po.prototype,"id",void 0);_.m([_.P(_.XQ.YtVisibilityBehavior),_.L("design:type",Object)],po.prototype,"ytVisibilityBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],po.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",String)],po.prototype,"delayedSrc",void 0);
_.m([_.K(),_.L("design:type",Object)],po.prototype,"thumbnail",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],po.prototype,"loaded",void 0);_.m([_.K(),_.L("design:type",Boolean)],po.prototype,"notifyOnLoaded",void 0);_.m([_.K(),_.L("design:type",Number)],po.prototype,"height",void 0);_.m([_.K(),_.L("design:type",Number)],po.prototype,"width",void 0);_.m([_.K({value:function(){return"width"}}),
_.L("design:type",String)],po.prototype,"dimension",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],po.prototype,"fit",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],po.prototype,"fitHeight",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],po.prototype,"fitWidth",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],po.prototype,"objectFit",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],po.prototype,"objectPosition",void 0);_.m([_.K(),_.L("design:type",String)],po.prototype,"preferredThumbnail",void 0);_.m([_.K({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.L("design:type",String)],po.prototype,"alt_",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],po.prototype,"sharedTooltipText",void 0);
_.m([_.K(),_.L("design:type",Boolean)],po.prototype,"ftlEligible",void 0);_.m([_.K({value:void 0}),_.L("design:type",String)],po.prototype,"observeHiddenOption",void 0);_.m([_.K({value:"observe_once"}),_.L("design:type",String)],po.prototype,"observePrescanOption",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],po.prototype,"roundedContainer",void 0);
_.m([_.Yk("thumbnail"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],po.prototype,"thumbnailChanged_",null);_.m([_.Yk("delayedSrc"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],po.prototype,"delayedSrcChanged_",null);_.m([_.Gb("thumbnail.placeholderColor"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],po.prototype,"observePlaceholderColor_",null);
_.m([_.e3({is:"yt-img-shadow",disableElementRegistration:!0})],po);var Nmw=_.Ka("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.U2()(po,"yt-img-shadow",function(){if(Xrm===void 0){var g=document.createElement("template");_.b(g,'\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">');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;a7w===void 0&&(a7w=document.createElement("template"));var B=a7w;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Xrm=g}g=Xrm;return g},{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 gqJ;_.Y8=new _.Vn("SCREEN_MANAGER_TOKEN");gqJ=new _.Vn("LOG_INITIAL_SCREEN_TOKEN");_.RY=_.dG(function(g){function r(OD){return _.n(OD,_.nm)}
function E(){var OD=B().isTogglingDisabled||J()&&B().toggledIsTogglingDisabled,uB=OD||H()?J():!J();e(uB);X(!1);if(!OD){var zS;(zS=M)==null||zS(!!uB)}var jV;((jV=O)==null?0:jV())||_.MJ(_.rM().resolve(_.Y8),B().trackingParams);var PJ;if(!uB||!r(B().defaultButtonViewModel)||(PJ=O)!=null&&PJ()){var At;!r(B().toggledButtonViewModel)||((At=O)==null?0:At())||_.MJ(_.rM().resolve(_.Y8),r(B().toggledButtonViewModel).trackingParams)}else _.MJ(_.rM().resolve(_.Y8),r(B().defaultButtonViewModel).trackingParams)}
var B=g.data,w=g.buttonShapeOverrides,O=g.disableExplicitClickLogging,M=g.onToggle,u=g.style,l=g.useOutlinedIcon,Q=g.className,z=function(){var OD,uB;return J()?(OD=g.animatedTextPropsToggled)==null?void 0:OD.call(g):(uB=g.animatedTextPropsDefault)==null?void 0:uB.call(g)},k=_.kB(function(){return z()?Object.assign({},z(),{shouldAnimate:C()}):void 0},void 0,"ZKEa0b"),H=function(){var OD;
return((OD=h())==null?void 0:OD.isToggled)!==void 0},R=_.U(_.Y3(function(){var OD,uB,zS;
return H()?(OD=h())==null?void 0:OD.isToggled:(zS=w==null?void 0:(uB=w())==null?void 0:uB.toggled)!=null?zS:B().isToggled})),A=R.next().value;
R=R.next().value;var J=A,e=R;R=_.U(_.Y3(function(){var OD,uB;return(OD=g.animatedTextPropsToggled)==null?void 0:(uB=OD.call(g))==null?void 0:uB.shouldAnimate}));
A=R.next().value;R=R.next().value;var C=A,X=R;A=_.U(_.Dk(!1,void 0,"S11hid"));var Z=A.next().value,c=A.next().value,h=_.Ch(function(OD){var uB;a:{var zS=B().entityKey,jV=B().toggledStateEntitySelectorType;if(jV&&zS)switch(jV){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var PJ;OD=(PJ=_.u1(OD.entities,"sfvAudioItemCurrentlyPlayingEntity",zS))!=null?PJ:void 0;PJ=(uB=OD==null?void 0:OD.sfvAudioItemPlaybackState)!=null?uB:void 0;if(PJ==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){uB={isToggled:!0};
break a}if(PJ){uB={isToggled:!1};break a}break;default:_.el(new _.Rj("Error: entitySelectorType defined but not matched in selector.",OD,jV))}uB=void 0}return uB}),y=function(){return Object.assign({},w==null?void 0:w(),{onToggle:E,
toggleable:!0,toggled:J(),focused:Z()})};
return _.G("toggle-button-view-model",{"on:focusin":_.HK(function(){var OD=_.rM().resolve(_.gM(_.wN));OD&&c(OD.isKeyBoardInUse());return!1}),
"on:focusout":_.HK(function(){c(!1);return!1})},_.G(_.p,{cond:function(){return J()?r(B().toggledButtonViewModel):r(B().defaultButtonViewModel)},
then:function(OD){return _.G(_.MV,{data:OD,className:Q,style:u,useOutlinedIcon:l,buttonOverrides:y,animatedTextProps:k})}}))},"A");
_.RY.idomCompat={callbacks:{onToggle:!0}};_.BK(_.dG(function(g){return _.G("yt-toggle-button-view-model",{class:function(){var r;return(r=g.scopingClassName)==null?void 0:r.call(g)}},_.G(_.RY,{data:function(){var r;
return(r=g.data)==null?void 0:r.call(g)},
buttonShapeOverrides:function(){var r;return(r=g.overrides)==null?void 0:r.call(g)},
animatedTextPropsDefault:function(){var r;return(r=g.animatedTextPropsDefault)==null?void 0:r.call(g)},
animatedTextPropsToggled:function(){var r;return(r=g.animatedTextPropsToggled)==null?void 0:r.call(g)},
disableExplicitClickLogging:function(){var r;return(r=g.disableExplicitClickLogging)==null?void 0:r.call(g)},
onToggle:function(r){var E;return(E=g.onToggle)==null?void 0:E.call(g,r)},
style:function(){var r;return(r=g.style)==null?void 0:r.call(g)},
useOutlinedIcon:function(){var r;return(r=g.useOutlinedIcon)==null?void 0:r.call(g)},
className:function(){var r;return(r=g.className)==null?void 0:r.call(g)}}))},"B"),"yt-toggle-button-view-model",{props:{data:_.cP,
buttonShapeOverrides:_.cP,overrides:_.cP,animatedTextPropsDefault:_.cP,animatedTextPropsToggled:_.cP,disableExplicitClickLogging:_.cP,onToggle:_.EB,style:_.cP,useOutlinedIcon:_.cP,className:_.cP,scopingClassName:_.cP}});var no=function(){return _.a.apply(this,arguments)||this};
_.f(no,_.a);no.prototype.onTap=function(g){g.stopPropagation();g=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.C0("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:g})):this.ytLiveChatReduxBehavior.dispatch(_.za("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:g}))};
_.hx.Object.defineProperties(no.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.engagementState)==null?void 0:g.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var g=_.n(this.data.toggleButton,_.sg),r;if(Number(((r=this.likeCountState)==null?void 0:r.likeCountIfIndifferentNumber)||"0")===0){var E;r=((E=this.data.likeCountPlaceholder)==null?void 0:E.content)||""}else{var B,w,O;r=((B=this.likeCountState)==null?void 0:(w=B.likeCountIfIndifferent)==null?void 0:w.content)||((O=this.data.likeCountPlaceholder)==null?void 0:O.content)||""}var M,u;E=((M=this.likeCountState)==null?void 0:(u=
M.likeCountIfLiked)==null?void 0:u.content)||"1";M=_.n(g.toggledButtonViewModel,_.nm);return Object.assign({},g,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.n(g.defaultButtonViewModel,_.nm),{title:r})},toggledButtonViewModel:{buttonViewModel:Object.assign({},M,{title:E})}})}}}});
no.prototype.onTap=no.prototype.onTap;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],no.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],no.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.WP),_.L("design:type",Object)],no.prototype,"ytLiveChatReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],no.prototype,"data",void 0);
_.m([_.K({selectorArgs:["data.likeCountEntityKey"],selector:UYY}),_.L("design:type",Object)],no.prototype,"likeCountState",void 0);_.m([_.K({selectorArgs:["data.engagementStateKey"],selector:CKV}),_.L("design:type",Object)],no.prototype,"engagementState",void 0);_.m([_.W("data","engagementState"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],no.prototype,"isLiked",null);
_.m([_.W("data","likeCountState","isLiked"),_.L("design:type",Object),_.L("design:paramtypes",[])],no.prototype,"toggleButton",null);_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],no.prototype,"onTap",null);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],no);
_.I(no,"yt-live-chat-like-button-view-model",function(){if(Eh4===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;rGb===void 0&&(rGb=document.createElement("template"));var B=rGb;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Eh4=g}g=Eh4;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var I7b;var mUw;var s5=function(){return _.a.apply(this,arguments)||this};
_.f(s5,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],s5.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],s5.prototype,"data",void 0);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],s5);
_.I(s5,"yt-live-chat-paid-message-footer-renderer",function(){if(mUw===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;I7b===void 0&&(I7b=document.createElement("template"));var B=I7b;E.call(r,B.content.cloneNode(!0),g.content.firstChild);mUw=g}g=mUw;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var cG4;var ivI;var Lw6;var VMn,hkb=function(){if(VMn!==void 0)return VMn;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;Lw6===void 0&&(Lw6=document.createElement("template"));var B=Lw6;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return VMn=g};var fo=function(){return _.a.apply(this,arguments)||this};
_.f(fo,_.a);fo.prototype.onTap=function(g){g.stopPropagation()};
_.hx.Object.defineProperties(fo.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var g=_.n(this.data.replyButton,_.nm),r,E,B,w,O,M,u,l=Number(((r=this.replyCountState)==null?void 0:r.replyCountNumber)||"0")===0?(E=this.data)==null?void 0:(B=E.replyCountPlaceholder)==null?void 0:B.content:((w=this.replyCountState)==null?void 0:(O=w.replyCount)==null?void 0:O.content)||((M=this.data)==null?void 0:(u=M.replyCountPlaceholder)==null?void 0:u.content)||"",Q;return Object.assign({},
g,{title:l,accessibilityText:(Q=this.replyCountState)==null?void 0:Q.replyButtonAccessibilityText})}}}});
_.hx.Object.defineProperties(fo,{template:{configurable:!0,enumerable:!0,get:function(){return hkb()}}});
fo.prototype.onTap=fo.prototype.onTap;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],fo.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],fo.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.WP),_.L("design:type",Object)],fo.prototype,"ytLiveChatReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],fo.prototype,"data",void 0);
_.m([_.K({selectorArgs:["data.replyCountEntityKey"],selector:function(g,r){return _.u1(g.entities,"replyCountEntity",r)}}),
_.L("design:type",Object)],fo.prototype,"replyCountState",void 0);_.m([_.W("data","replyCountState"),_.L("design:type",Object),_.L("design:paramtypes",[])],fo.prototype,"buttonViewModel",null);_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],fo.prototype,"onTap",null);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],fo);
_.I(fo,"yt-live-chat-reply-button-view-model",function(){return hkb()},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var ZvZ;var yGm;var $8=function(){var g=_.a.apply(this,arguments)||this;g.ariaLabel="";return g};
_.f($8,_.a);
$8.prototype.dataChanged=function(){for(var g=(0,_.q1)(_.S3(this.hostElement).querySelector("#image"));g.firstChild;)g.removeChild(g.firstChild);if(this.data)if(this.data.icon){var r=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(r.polymerController.icon="yt-sys-icons:shield-filled",r.polymerController.defaultToFilled=!0):r.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();g.appendChild(r)}else if(this.data.customThumbnail){r=document.createElement("img");
var E=_.rEA(this.data.customThumbnail.thumbnails,16);E?(r.src=E,g.appendChild(r),r.setAttribute("alt",this.hostElement.ariaLabel||"")):_.el(new _.Rj("Could not compute URL for thumbnail",this.data.customThumbnail))}};
$8.prototype.identity=function(g){return g};
$8.prototype.computeType=function(g){return qy(g||void 0)};
$8.prototype.dataChanged=$8.prototype.dataChanged;_.m([_.K(),_.L("design:type",Object)],$8.prototype,"data",void 0);_.m([_.K({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.L("design:type",Object)],$8.prototype,"ariaLabel",void 0);_.m([_.K({computed:"computeType(data)",reflectToAttribute:!0}),_.L("design:type",String)],$8.prototype,"type",void 0);
_.m([_.K({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.L("design:type",String)],$8.prototype,"sharedTooltipText",void 0);_.m([_.K({reflectToAttribute:!0,value:function(){return _.Y("live_chat_enable_new_moderator_badge")}}),
_.L("design:type",Boolean)],$8.prototype,"enableNewModeratorBadge",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],$8.prototype,"dataChanged",null);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],$8);
_.I($8,"yt-live-chat-author-badge-renderer",function(){if(yGm===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;ZvZ===void 0&&(ZvZ=document.createElement("template"));var B=ZvZ;E.call(r,B.content.cloneNode(!0),g.content.firstChild);yGm=g}g=yGm;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var vhD;var dUA;var jt=function(){return _.a.apply(this,arguments)||this};
_.f(jt,_.a);_.S=jt.prototype;_.S.configureRendererStamper=function(){return{badgesBeforeChip:{id:"prepend-chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesOutsideChip:{id:"chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesInsideChip:{id:"chip-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}}}};
_.S.computeBadgesInsideChip=function(g){return g?g.filter(function(r){return qy(r.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.S.computeBadgesOutsideChip=function(g){return this.prependChatBadges||!g?[]:g.filter(function(r){r=qy(r.liveChatAuthorBadgeRenderer);return r!=="verified"&&r!=="owner"})};
_.S.computeBadgesBeforeChip=function(g){return this.prependChatBadges&&g?g.filter(function(r){r=qy(r.liveChatAuthorBadgeRenderer);return r!=="verified"&&r!=="owner"}):[]};
_.S.computeIsHighlighted=function(g,r){var E=!!QrY(g,"owner"),B=!!QrY(g,"verified");g=!!QrY(g,"moderator");return(E||B&&!g)&&!r};
_.S.computeAuthorType=function(g){return GOS(g)};
_.S.computeAuthorClass=function(g,r){return r?(g?g+" ":"")+"single-line":g};
_.S.onSeedColorChanged=function(){_.Y("live_chat_author_name_color_usernames")||_.Y("live_chat_seed_color_usernames")||_.Y("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):_.Y("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
jt.prototype.onSeedColorChanged=jt.prototype.onSeedColorChanged;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],jt.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],jt.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],jt.prototype,"authorName",void 0);_.m([_.K(),_.L("design:type",Array)],jt.prototype,"authorBadges",void 0);
_.m([_.K({computed:"computeAuthorType(authorBadges)"}),_.L("design:type",String)],jt.prototype,"authorType",void 0);_.m([_.K({computed:"computeAuthorClass(authorType, singleLine)"}),_.L("design:type",String)],jt.prototype,"authorClass",void 0);_.m([_.K({computed:"computeBadgesInsideChip(authorBadges)"}),_.L("design:type",Array)],jt.prototype,"badgesInsideChip",void 0);_.m([_.K({computed:"computeBadgesOutsideChip(authorBadges)"}),_.L("design:type",Array)],jt.prototype,"badgesOutsideChip",void 0);
_.m([_.K({computed:"computeBadgesBeforeChip(authorBadges)"}),_.L("design:type",Array)],jt.prototype,"badgesBeforeChip",void 0);_.m([_.K({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.L("design:type",Boolean)],jt.prototype,"isHighlighted",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],jt.prototype,"singleLine",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],jt.prototype,"disableHighlighting",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],jt.prototype,"dashboardMoneyFeed",void 0);_.m([_.K({value:_.Y("live_chat_prepend_badges"),reflectToAttribute:!0}),_.L("design:type",Boolean)],jt.prototype,"prependChatBadges",void 0);_.m([_.K(),_.L("design:type",String)],jt.prototype,"authorNameColor",void 0);_.m([_.zb("#author-name"),_.L("design:type",HTMLDivElement)],jt.prototype,"username",void 0);
_.m([_.Gb("authorNameColor"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],jt.prototype,"onSeedColorChanged",null);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],jt);
_.I(jt,"yt-live-chat-author-chip",function(){if(dUA===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;vhD===void 0&&(vhD=document.createElement("template"));var B=vhD;E.call(r,B.content.cloneNode(!0),g.content.firstChild);dUA=g}g=dUA;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var TmA;var gJI;var A0=function(){var g=_.a.apply(this,arguments)||this;g.debounceCommand=_.QW(function(r){g.ytComponentBehavior.resolveCommand(r)},1500);
return g};
_.f(A0,_.a);A0.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var g=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",r,E,B=this.isHearted?(r=this.data)==null?void 0:r.unheartCommand:(E=this.data)==null?void 0:E.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.C0("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:g}));(g=_.xP(B))&&this.debounceCommand(g)}};
_.hx.Object.defineProperties(A0.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var g,r;if(!((g=this.data)==null?0:(r=g.creatorThumbnail)==null?0:r.sources))return{};g={thumbnails:[]};r={};r.url=this.data.creatorThumbnail.sources[0].url;g.thumbnails.push(r);return g}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var g,r;return((g=this.engagementState)==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((r=this.engagementState)==null?void 0:r.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var g,r;return((g=this.engagementState)==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((r=this.engagementState)==null?void 0:r.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.engagementState)==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return((g=this.engagementState)==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((r=this.engagementState)==null?void 0:r.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((E=this.engagementState)==null?void 0:E.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}}});
A0.prototype.onTap=A0.prototype.onTap;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],A0.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],A0.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.WP),_.L("design:type",Object)],A0.prototype,"ytLiveChatReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],A0.prototype,"data",void 0);
_.m([_.K({selectorArgs:["data.engagementStateKey"],selector:CKV}),_.L("design:type",Object)],A0.prototype,"engagementState",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],A0.prototype,"thumbnailDetails",null);_.m([_.W("data","engagementState"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],A0.prototype,"isHearted",null);_.m([_.W("data","engagementState"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],A0.prototype,"isEditable",null);
_.m([_.W("data","engagementState"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],A0.prototype,"showCreatorView",null);_.m([_.W("data","engagementState"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],A0.prototype,"showButton",null);_.m([_.W("data","isHearted"),_.L("design:type",String),_.L("design:paramtypes",[])],A0.prototype,"label",null);_.m([_.W("data","isHearted"),_.L("design:type",Object),_.L("design:paramtypes",[])],A0.prototype,"heartHoverText",null);
_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],A0.prototype,"onTap",null);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],A0);
_.I(A0,"yt-live-chat-creator-heart-view-model",function(){if(gJI===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;TmA===void 0&&(TmA=document.createElement("template"));var B=TmA;E.call(r,B.content.cloneNode(!0),g.content.firstChild);gJI=g}g=gJI;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var bs=function(){};
_.f(bs,wV);bs.prototype.JSC$11138_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:mx("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
bs.prototype.getApiPaths=function(){return[]};
bs.prototype.getExtension=function(){};
bs.prototype.JSC$11138_buildRequest=function(){};var rEn={},EJ4=(rEn.GET_DATASYNC_IDS=fy(bs),rEn);var BCI,wDz,SpT,T$D,J0,MJz,SdA,Ujw,Orn;BCI="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");wDz=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.Il=function(g,r,E,B,w,O,M,u,l){this.endpointMap=g;this.networkManager=r;this.authService=E;this.responseProcessorMap=B;this.innertubeResponseStore=w;this.contextProcessors=O;this.asyncContextProcessors=M;this.localInnertubeRouter=u;this.requestSequencer=l;this.inflightRequests=new Map;g.signalEndpointMap||(g.signalEndpointMap={});g.signalEndpointMap=Object.assign({},EJ4,g.signalEndpointMap)};
SpT=function(g,r,E,B,w,O,M,u,l){if(_.Il.instance!==void 0){if(B=_.Il.instance,g=[g!==B.endpointMap,r!==B.networkManager,E!==B.authService,w!==B.innertubeResponseStore,O!==B.contextProcessors,M!==B.asyncContextProcessors,u!==B.localInnertubeRouter],g.some(function(Q){return Q}))throw new _.Rj("InnerTubeTransportService is already initialized",g);
}else _.Il.instance=new _.Il(g,r,E,B,w,O,M,u,l)};
_.cK=function(g,r,E){var B=B===void 0?w8m:B;var w=SdA(g,r);return w?new _.D8(function(O,M){var u,l,Q,z,k;return _.q(function(H){switch(H.nextAddress){case 1:return _.D(H,w,2);case 2:u=H.yieldResult;l=u.JSC$11138_getRequest(r,E,B);if(!l){M(new _.Rj("Error: Failed to build request for command.",r));H.jumpTo(0);break}m$(l.input);z=((Q=l.requestShell)==null?void 0:Q.mode)==="cors"?"cors":void 0;if(g.authService.syncHeaders){k=Orn(l.config,z);H.jumpTo(4);break}return _.D(H,Ujw(l.config,z),5);case 5:k=
H.yieldResult;case 4:O(MJz(g,l,k)),_.Q3(H)}})}):_.bV(new _.Rj("Error: No request builder found for command.",r))};
T$D=function(g,r,E,B){var w=w===void 0?w8m:w;var O,M,u,l,Q,z,k,H,R,A,J,e,C,X,Z,c,h,y;return _.q(function(OD){switch(OD.nextAddress){case 1:O=uwP(r,g.endpointMap);if(!O)throw new _.Rj("Error: No streaming request builder found for command",r);M=O.JSC$11138_getRequest(r,E,w);if(!M)throw new _.Rj("Failed to build YtRequest for streaming Command",r);if((u=g.localInnertubeRouter)==null||!u.shouldPreferLocalResponse(M.input,M.innerTubeRequest)){OD.jumpTo(2);break}return _.D(OD,g.localInnertubeRouter.localInnertubeResponse(M.input,
M.innerTubeRequest),3);case 3:return l=OD.yieldResult,Q={},l.playerResponse&&(J0(g,l.playerResponse,M),Q.player=l.playerResponse,(z=B)==null||z(Q,l)),l.watchNextResponse&&(J0(g,l.watchNextResponse,M),Q.content=l.watchNextResponse,(k=B)==null||k(Q,l)),OD.return(Q);case 2:R=((H=M.requestShell)==null?void 0:H.mode)==="cors"?"cors":void 0;if(g.authService.syncHeaders){A=Orn(M.config,R);OD.jumpTo(4);break}return _.D(OD,Ujw(M.config,R),5);case 5:A=OD.yieldResult;case 4:return C=(e=(J=M.requestShell)==null?
void 0:J.headers)!=null?e:{},M.requestShell=Object.assign({},M.requestShell,{headers:Object.assign({},C,A)}),X=Object.assign({},M.requestShell),Z=JSON.stringify(M.innerTubeRequest),M.requestShell.method==="POST"&&(X=Object.assign({},X,{body:Z})),c=function(uB,zS){J0(g,zS.playerResponse||zS.watchNextResponse||zS.reelItemWatchResponse||zS.reelWatchSequenceResponse,M);B==null||B(uB,zS)},h={},_.D(OD,qpm(g.networkManager,M.input,X,c),6);
case 6:return h=OD.yieldResult,((y=M.config)==null?0:y.responseTick)&&_.F4(M.config.responseTick),OD.return(h)}})};
_.Pa=function(g,r,E,B,w){w=w===void 0?{authStrategy:{identity:w8m}}:w;var O=O===void 0?!0:O;var M=function(){};
M=lCV(qZL(E));r.context||(r.context=_.RLL(B,O));return new _.D8(function(u){var l,Q,z,k,H;return _.q(function(R){if(R.nextAddress==1)return l=yet(E),Q=_.Iy(l),g.authService.syncHeaders?(z=Orn(w,Q),R.jumpTo(2)):_.D(R,Ujw(w,Q),3);R.nextAddress!=2&&(z=R.yieldResult);k=v$Y(yet(E));H={input:k,requestShell:mx(k),innerTubeRequest:r,config:w};u(MJz(g,H,z,M));_.Q3(R)})})};
J0=function(g,r,E){var B;if(r&&!(r==null?0:(B=r.sequenceMetaData)==null?0:B.skipProcessing)&&g.responseProcessorMap){B=_.U(BCI);for(var w=B.next();!w.done;w=B.next())w=w.value,g.responseProcessorMap[w]&&g.responseProcessorMap[w].handleResponse(r,E)}};
MJz=function(g,r,E,B){B=B===void 0?function(){}:B;
var w,O,M,u,l,Q,z,k,H,R,A,J,e,C,X,Z,c,h,y,OD,uB,zS,jV,PJ,At,XY,xc,rg,$t,tD,GD,xb,zL,AD,lA,pt,Mo,un,sw,J8;return _.q(function(Rm){switch(Rm.nextAddress){case 1:M=(w=r.config)==null?void 0:(O=w.storeStrategy)==null?void 0:O.storeKey;if(!(M&&g.innertubeResponseStore&&g.innertubeResponseStore.has(M))||((u=r.config)==null?0:(l=u.storeStrategy)==null?0:l.disableCache)){Rm.jumpTo(2);break}return _.D(Rm,g.innertubeResponseStore.get(M),3);case 3:if((Q=Rm.yieldResult)&&!Q.isExpired())return Rm.return(Promise.resolve(_.Bv(Q)));
case 2:if(!((z=r)==null?0:(k=z.innerTubeRequest)==null?0:k.context)){Rm.jumpTo(4);break}H=r.innerTubeRequest.context;if(!(g.asyncContextProcessors&&g.asyncContextProcessors.length>0)){Rm.jumpTo(5);break}R=[];A=_.U(g.asyncContextProcessors);for(J=A.next();!J.done;J=A.next())e=J.value,C=e.processContext(r),C.wrappedPromise_&&R.push(C.wrappedPromise_);if(!(R.length>0)){Rm.jumpTo(5);break}return _.D(Rm,Promise.all(R),5);case 5:X=_.U(g.contextProcessors||[]),Z=X.next();case 8:if(Z.done){Rm.jumpTo(4);break}c=
Z.value;return _.D(Rm,c.processContext(H),9);case 9:Z=X.next();Rm.jumpTo(8);break;case 4:if((h=g.localInnertubeRouter)==null||!h.shouldPreferLocalResponse(r.input,r.innerTubeRequest)){Rm.jumpTo(12);break}return _.D(Rm,g.localInnertubeRouter.localInnertubeResponse(r.input,r.innerTubeRequest),13);case 13:return y=Rm.yieldResult,J0(g,y,r),Rm.return(y);case 12:return(zS=(uB=r.config)==null?void 0:uB.requestKey)&&g.inflightRequests.has(zS)?OD=g.inflightRequests.get(zS):(jV=JSON.stringify(r.innerTubeRequest),
XY=(At=(PJ=r.requestShell)==null?void 0:PJ.headers)!=null?At:{},r.requestShell=Object.assign({},r.requestShell,{headers:Object.assign({},XY,E)}),xc=Object.assign({},r.requestShell),r.requestShell.method==="POST"&&(xc=Object.assign({},xc,{body:jV})),((rg=r.config)==null?0:rg.requestTick)&&_.F4(r.config.requestTick),$t=function(){return g.networkManager.fetch(r.input,xc,r.config)},OD=g.requestSequencer?uyz(g.requestSequencer,r,$t):$t(),zS&&g.inflightRequests.set(zS,OD)),_.D(Rm,OD,14);
case 14:(tD=Rm.yieldResult)&&_.Y("web_streaming_player")&&Array.isArray(tD)&&(tD=tD[0].playerResponse);if(tD&&"error"in tD&&((GD=tD)==null?0:(xb=GD.error)==null?0:xb.details))for(zL=tD.error.details,AD=_.U(zL),lA=AD.next();!lA.done;lA=AD.next())pt=lA.value,(Mo=pt["@type"])&&wDz.indexOf(Mo)>-1&&(delete pt["@type"],tD=pt);zS&&g.inflightRequests.has(zS)&&g.inflightRequests.delete(zS);((un=r.config)==null?0:un.responseTick)&&_.F4(r.config.responseTick);if(tD||(sw=g.localInnertubeRouter)==null||!sw.canProvideFallbackResponse(r.input,
r.innerTubeRequest)){Rm.jumpTo(15);break}return _.D(Rm,g.localInnertubeRouter.localFallbackInnertubeResponse(r.input,r.innerTubeRequest),16);case 16:tD=Rm.yieldResult;case 15:return J0(g,tD,r),((J8=r.config)==null?0:J8.processorTick)&&_.F4(r.config.processorTick),B(),Rm.return(tD||void 0)}})};
_.mJ=function(g,r){return qtS(r,g.endpointMap)};
SdA=function(g,r){g=lAL(r,g.endpointMap);if(g!==void 0)return Promise.resolve(g)};
Ujw=function(g,r){var E,B,w,O;return _.q(function(M){if(M.nextAddress==1){w=(E=g)==null?void 0:(B=E.authStrategy)==null?void 0:B.sessionIndex;var u=_.lq(ngY({sessionIndex:w}));return _.D(M,u,2)}O=M.yieldResult;return M.return(Promise.resolve(Object.assign({},DYl(r),O)))})};
Orn=function(g,r){var E;g=g==null?void 0:(E=g.authStrategy)==null?void 0:E.sessionIndex;E=ngY({sessionIndex:g});return Object.assign({},DYl(r),E)};var lGw,Djb,oJU,GsU,Qdn,zBw,pDT,Ypw,Fo,RBD,nJD,HrT,sdD;lGw=0;Djb=/tone[1-5]/;oJU=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");GsU="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
Qdn=Number.MAX_SAFE_INTEGER;zBw=RegExp("\ufe0f","g");_.PY=function(g){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;g&&_.ksz(this,g)};
_.ksz=function(g,r){try{_.Dx(r,{context:g,onSuccess:function(B,w){Array.isArray(w)?g.load(w):(B=new _.Rj("Emoji manager JSON response was not an array!",{response:w}),_.tn(B))},
onError:function(B){B=new _.Rj("Failed to retrieve emoji manager initial JSON data!",{url:r,statusCode:_.Ur(B).toString()});_.el(B)}})}catch(B){var E=new _.Rj("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:r});
_.el(E)}};
_.PY.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.PY.prototype.load=function(g,r){if(r)if(g.length)g=g.concat(r.emojis);else{this.emojis=r.emojis;this.emojiMap=r.emojiMap;this.emojiShortcutMap=r.emojiShortcutMap;this.emojiShortcutCharMap=HrT(r);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=r.emojiRegex;return}this.emojis=[].concat(_.jW(new Set(this.emojis.concat(g))));this.hasInitializedShortcutCharMap=!1;g=Array(this.emojis.length);for(r=0;r<this.emojis.length;r++){var E=this.emojis[r];if(E.emojiId){this.emojiMap[E.emojiId]=E;this.emojiMap[E.emojiId].index=
r;for(var B=0;E.shortcuts&&B<E.shortcuts.length;B++)this.emojiShortcutMap[E.shortcuts[B].toLocaleLowerCase()]=E;g[r]=E.isCustomEmoji&&E.shortcuts?E.shortcuts[0]:E.emojiId}}g.sort(function(w,O){return O.length-w.length});
if(g.length)try{this.emojiRegex=new RegExp(g.join("|").replace("*","\\*"),"gi")}catch(w){this.emojiRegex=/$./}else this.emojiRegex=/$./};
pDT=function(g,r){r=_.U(r);for(var E=r.next();!E.done;E=r.next()){var B=E.value;if(B.emojiId&&g.emojiMap[B.emojiId]){E=Object.assign({},g.emojiMap[B.emojiId],B);g.emojiMap[B.emojiId]=E;var w=void 0;E.index&&((w=g.emojis[E.index])==null?void 0:w.emojiId)===B.emojiId&&(g.emojis[E.index]=E);B=void 0;if((B=E.shortcuts)==null?0:B.length)for(g.hasInitializedShortcutCharMap=!1,B=_.U(E.shortcuts),w=B.next();!w.done;w=B.next())g.emojiShortcutMap[w.value.toLocaleLowerCase()]=E}}};
Ypw=function(g){var r,E;_.q(function(B){if(B.nextAddress==1)return _.D(B,_.RH.getInstance(),2);if(B.nextAddress!=3)return(r=B.yieldResult)?_.D(B,r.get("ytlc-emoji-pref"),3):B.return();(E=B.yieldResult)&&pDT(g,Object.keys(E).map(function(w){return{emojiId:w,stickyPrefId:E[w]}}).filter(function(w){return!!w.emojiId&&!!w.stickyPrefId}));
_.Q3(B)})};
_.t0=function(g,r,E){return(g=g.emojiMap[r])&&(!g.isLocked||E!==void 0&&E)?g:void 0};
Fo=function(g,r,E){E=_.t0(g,r,E===void 0?!1:E);var B=r.match("\u200d");E&&g.skinTone!==0&&(g=(B==null?void 0:B.length)===1?_.t0(g,r.replace("\u200d",oJU[g.skinTone]+"\u200d")):_.t0(g,r+oJU[g.skinTone]))&&(E=g);return E};
RBD=function(g,r){var E=g.emojiMap[r];return(E==null?0:E.stickyPrefId)?g.emojiMap[E.stickyPrefId]:Fo(g,r)};
_.Qj=function(g,r){g=g.emojiShortcutMap[r.toLocaleLowerCase()];return!g||g.isLocked?null:g};
nJD=function(g,r,E){return HrT(g,E===void 0?!1:E)[r]||{}};
HrT=function(g,r){r=r===void 0?!1:r;if(!g.hasInitializedShortcutCharMap){g.hasInitializedShortcutCharMap=!0;for(var E=0;E<g.emojis.length;E++){var B=g.emojis[E];if(!(B.isLocked||r&&B.isCustomEmoji&&B.emojiId&&!g.pickerCustomEmojiIds.includes(B.emojiId)))for(var w=0;B.shortcuts&&w<B.shortcuts.length;w++){var O=B.shortcuts[w];O.startsWith(":_")&&B.isCustomEmoji&&(g.emojiShortcutCharMap[":_"]==null&&(g.emojiShortcutCharMap[":_"]=Object.create(null)),g.emojiShortcutCharMap[":_"][O]=B);if(!(O.length<3||
!B.isCustomEmoji&&Djb.test(O))){var M=O.substr(0,3).toLocaleLowerCase();g.emojiShortcutCharMap[M]==null&&(g.emojiShortcutCharMap[M]=Object.create(null));g.emojiShortcutCharMap[M][O]=B}}}}return g.emojiShortcutCharMap};
_.PY.prototype.createEmoji=function(g,r){r=r===void 0?!0:r;var E=document.createElement("img");g.isCustomEmoji||E.classList.add("small-emoji");E.classList.add("emoji");E.classList.add("yt-formatted-string");E.src=g.image?_.wt(g.image.thumbnails,this.emojiSize)||"":"";var B=void 0;g.image&&g.image.accessibility&&g.image.accessibility.accessibilityData&&(B=g.image.accessibility.accessibilityData.label);E.alt=B?B:(g.isCustomEmoji&&g.shortcuts?g.shortcuts[0]:g.emojiId)||"";g.isCustomEmoji&&(E.dataset.emojiId=
g.emojiId);_.SI&&(E.setAttribute("contenteditable","false"),E.setAttribute("unselectable","on"));r&&(g.shortcuts&&g.shortcuts.length&&E.setAttribute("shared-tooltip-text",g.shortcuts[0]),E.id="emoji-"+lGw++);return E};
_.PY.prototype.createDocumentFragment=function(g,r,E,B){r=r===void 0?!1:r;E=E===void 0?!0:E;B=B===void 0?!1:B;g=g.replace(zBw,"");for(var w=document.createDocumentFragment(),O=0,M,u=0;(M=this.emojiRegex.exec(g))!=null;){var l=_.t0(this,M[0])||_.Qj(this,M[0]);!l||l.isCustomEmoji&&!r||(l=this.createEmoji(l,E),O!==M.index&&w.appendChild(document.createTextNode(g.substring(O,M.index))),w.appendChild(l),O=M.index+M[0].length,u++)}if(!B||u)return w.appendChild(document.createTextNode(g.substr(O))),w};
sdD=function(g,r,E){var B,w,O,M,u,l,Q,z,k;return _.q(function(H){if(H.nextAddress==1){if(!r.emojiId||!g.emojiMap[r.emojiId])return H.return();B=Object.assign({},g.emojiMap[r.emojiId],{stickyPrefId:E});g.emojiMap[r.emojiId]=B;r.index&&((w=g.emojis[r.index])==null?void 0:w.emojiId)===r.emojiId&&(g.emojis[r.index]=B);if((O=r.shortcuts)==null?0:O.length)for(g.hasInitializedShortcutCharMap=!1,M=_.U(r.shortcuts),u=M.next();!u.done;u=M.next())l=u.value,g.emojiShortcutMap[l.toLocaleLowerCase()]=B;return _.D(H,
_.RH.getInstance(),2)}if(H.nextAddress!=4)return(Q=H.yieldResult)?_.D(H,Q.get("ytlc-emoji-pref"),4):H.jumpTo(0);k=(z=H.yieldResult)!=null?z:{};k[r.emojiId]=E;return _.D(H,Q.set("ytlc-emoji-pref",k,Qdn),0)})};
_.et=new _.PY;var jdn;_.WY={};
jdn={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.Y("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:_.Y("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 cs(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 g=_.S3(this.hostElement||this).querySelector("#inline-action-button-container");g&&g.setAttribute("aria-hidden","true");this.menuButton=_.S3(this.hostElement).querySelector("#menu-button")},
attached:function(){var g=this.menuButton;g&&(g.addEventListener("focusin",_.Do(this,this.onMenuButtonFocus_)),g.addEventListener("focusout",_.Do(this,this.onMenuButtonBlur_)))},
detached:function(){var g=this.menuButton;g&&(g.removeEventListener("focusin",_.Do(this,this.onMenuButtonFocus_)),g.removeEventListener("focusout",_.Do(this,this.onMenuButtonBlur_)))},
identity:_.No,truthy:function(g){return!!g},
computeTimestampString:function(g){return g?g.timestampText?this.getSimpleString(g.timestampText):this.TIME_FORMATTER.format(new Date(g.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(g){return g},
computeMenuVisible_:function(g,r){return g||r},
computeHasInlineActionButtons:function(g){if(!g)return!1;var r,E;return!((r=g.inlineActionButtons)==null||!r.length)||!((E=g.additionalInlineActionButtons)==null||!E.length)},
createDocumentFragmentFromString:function(g){var r=_.et.createDocumentFragment.bind(_.et),E;if((E=this.participantsManager)==null||!E.viewerRegex)return r(g);E=document.createDocumentFragment();for(var B=0,w;(w=this.participantsManager.viewerRegex.exec(g))!=null;){if(w.index>0){var O=":"+w[0]+":";if((_.t0(_.et,O)||_.Qj(_.et,O))&&g.indexOf(O)===w.index-1)continue}E.appendChild(r(g.substring(B,w.index)));B=document.createElement("span");B.appendChild(r(w[0]));B.classList.add("mention");E.appendChild(B);
B=w.index+w[0].length}E.appendChild(r(g.substring(B)));return E},
createDocumentFragment:function(g){var r=document.createDocumentFragment();if(g.simpleText)return r.appendChild(this.createDocumentFragmentFromString(g.simpleText)),r;if(!g.runs)return r;for(var E=0;E<g.runs.length;E++){var B=g.runs[E];if(B.emoji)r.appendChild(_.et.createEmoji(B.emoji));else if(B.text)if(B.navigationEndpoint){var w=document.createElement("a");w.classList.add("yt-simple-endpoint");IhA(w,B.navigationEndpoint);_.S3(w).appendChild(this.createDocumentFragmentFromString(B.text));r.appendChild(w)}else r.appendChild(this.createDocumentFragmentFromString(B.text))}return r},
hasModerationOverlayVisible:function(){var g;return((g=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:g.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(g){g.composedPath().some(function(r){return(r=r instanceof Element?r:null)?r.tagName&&(r.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||r.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.Y("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(g)},
colorFromDecimal:function(g){return vwP(g)},
markAsDeleted:function(g,r){this.set("data.deletedStateMessage",g);this.set("data.showOriginalContentMessage",r)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(g){if(this.data.contextMenuEndpoint){var r=_.rM().resolve(_.eN),E=this.data.contextMenuEndpoint,B;(B=_.Il.instance)&&_.mJ(B,E)?(r=fGn(r,E),B=_.Pa(B,{},r)):B=_.$j6(r,E);B.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);g&&g.stopPropagation()}},
handleGetContextMenuResponse_:function(g){var r=_.Il.instance;r&&_.mJ(r,{liveChatEndpoint:{}})||(g=g.response);g.liveChatItemContextMenuSupportedRenderers&&g.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(g.liveChatItemContextMenuSupportedRenderers.menuRenderer);g.actions&&_.OS(this.hostElement,"yt-live-chat-actions",[g.actions])},
handleGetContextMenuError:function(g){if(g instanceof Error||g instanceof Object||g instanceof String)var r=g;_.tn(new _.Rj("Error encountered calling GetLiveChatItemContextMenu",r))},
showContextMenu_:function(g){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:g}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.Sh(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.Sh(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.WY.YtLiveChatItemBehavior=[jdn,_.KB.YtComponentBehavior,_.ls.YtOpenPopupBehavior];_.Co=function(){};var AEz;var br4;var JED;var P44;var Ko=function(){var g=_.a.apply(this,arguments)||this;g.active=!1;g.identity=_.No;return g};
_.f(Ko,_.a);Ko.prototype.dataChanged=function(){this.active=!1};
Ko.prototype.onClick=function(){_.Sh(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
Ko.prototype.dataChanged=Ko.prototype.dataChanged;_.m([_.K(),_.L("design:type",Object)],Ko.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Ko.prototype,"active",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Ko.prototype,"dataChanged",null);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],Ko);
_.I(Ko,"yt-live-chat-text-input-field-suggestion",function(){if(P44===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;JED===void 0&&(JED=document.createElement("template"));var B=JED;E.call(r,B.content.cloneNode(!0),g.content.firstChild);P44=g}g=P44;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});_.x8=function(g,r,E){return CustomEvent.call(this,g,{detail:{value:r,path:E}})||this};
_.f(_.x8,CustomEvent);_.aY=function(){var g=_.a.apply(this,arguments)||this;g.viewerName=null;g.actionMap={"yt-live-chat-actions":"onChatMessage_"};g.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];g.PARTICIPANT_TIME_USEC_=3E8;return g};
_.f(_.aY,_.a);_.S=_.aY.prototype;_.S.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.S.addParticipant=function(g){var r=_.RPt(this.participants,g,function(B,w){B=B[Object.keys(B)[0]];w=w[Object.keys(w)[0]];B=String(_.Vp(B.authorName)).toLowerCase();w=String(_.Vp(w.authorName)).toLowerCase();return B<w?-1:B==w?0:1}.bind(this));
if(r>=0){var E=this.participants[r];E[Object.keys(E)[0]].timestampUsec&&this.splice("participants",r,1,g)}else this.splice("participants",-r-1,0,g);g=g[Object.keys(g)[0]];r=_.Vp(g.authorName).toLocaleLowerCase();E=r.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(E)||(this.allParticipantsCharMap_[E]={});this.allParticipantsCharMap_[E][r]=g};
_.S.getAuthorsFromPrefix=function(g){return this.allParticipantsCharMap_.hasOwnProperty(g)?this.allParticipantsCharMap_[g]:null};
_.S.computeViewerRegex_=function(g){if(!g)return null;g=g.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var r=g.indexOf("@")===0&&_.Y("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(r+g.replace(/ /g,"\\s*")+"|^"+g.replace(/ /g,"\\s*")+"$|^"+g.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+g.replace(/ /g,"\\s*")+"$|(?<=\\s)"+g.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.S.checkForStaleParticipants_=function(){var g=this;this.trimOldParticipants_();this.asyncHandle_&&sRV(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.N1(function(){g.checkForStaleParticipants_()},3E4))};
_.S.onChatMessage_=function(g){var r=this,E=Date.now()*1E3;g.forEach(function(B){if(B=_.n(B,tw4)){B=B.item;var w=Object.keys(B)[0];r.SUPPORTED_ITEM_TYPES_.indexOf(w)!=-1&&B[w].timestampUsec>=E-r.PARTICIPANT_TIME_USEC_&&r.addParticipant(B)}},this);
this.checkForStaleParticipants_()};
_.S.trimOldParticipants_=function(){for(var g=Date.now()*1E3,r=this.participants.length-1;r>=0;r--){var E=this.participants[r];E=E[Object.keys(E)[0]];E.timestampUsec&&E.timestampUsec<g-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",r,1)}};
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],_.aY.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],_.aY.prototype,"viewerName",void 0);_.m([_.K({computed:"computeViewerRegex_(viewerName)"}),_.L("design:type",Object)],_.aY.prototype,"viewerRegex",void 0);_.m([_.K({value:function(){return[]},
notify:!0}),_.L("design:type",Array)],_.aY.prototype,"participants",void 0);_.m([_.e3({is:"yt-live-chat-participants-manager",noInjection:!0})],_.aY);var tJn=/.*([:@#].*?)$/,Xo=/\u00a0/g,F26=String.fromCharCode(160),eBw={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"},NV=function(){var g=_.a.apply(this,arguments)||this;g.disabled=!1;g.liveChatRichMessageInput=null;g.messageInput=null;g.isValidWithNoInputText=!1;g.suggestions=[];g.emojiManager=_.et;g.inputMethodEditorActive=
!1;g.suggestionIndex=-1;g.JSC$12132_lastSuggestionRange=null;return g};
_.f(NV,_.a);_.S=NV.prototype;_.S.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.S.attached=function(){_.Oz&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.S.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.S.dataChanged=function(){if(!this.ignoreColorMapping){var g=!1,r={},E;for(E in eBw)this.data&&this.data.hasOwnProperty(E)&&(r[eBw[E]]=this.colorFromDecimal(this.data[E]),g=!0);g&&_.ua(this.hostElement,r)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.S.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.S.colorFromDecimal=function(g){g=Math.floor(Number(g));return"rgba("+[g>>16&255,g>>8&255,g&255,(g>>24&255)/255].join()+")"};
_.S.preventDrag=function(g){g.dataTransfer&&(g.dataTransfer.dropEffect="none");g.preventDefault()};
_.S.preventResize=function(g){g.returnValue=!1};
_.S.onInputChange=function(){var g=this.characterCount,r=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&r&&r.remove();if(!r&&this.characterCount>this.maxCharacterLimit){var E=window.getSelection();if(E){var B=E.getRangeAt(0);E.removeAllRanges();E.addRange(B)}}if(E=this.getCurrentRange())B=this.calculateTextBeforeRange(E),this.completeEmojisInRange(E,B,!0)||this.updateSuggestions(E,B);B=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(B);
_.Sh(this.hostElement,"yt-live-chat-message-input-change",B);r&&this.characterCount===0&&r.remove();E&&E.commonAncestorContainer.parentElement.id==="input"&&E.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>g):E&&!E.collapsed&&E.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(g=this.input.childNodes.length-1;g>=0;g--)this.input.childNodes[g].nodeName==="BR"&&this.input.childNodes[g].remove()};
_.S.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.S.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var g=this.getCurrentRange();g&&g.commonAncestorContainer.parentElement.id==="input"&&g.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.S.mergeOverflowText=function(g){if(g){var r=document.createRange();r.selectNodeContents(g);r=r.extractContents();this.input.insertBefore(r,g)}};
_.S.checkRangeAtEndOfInput=function(){var g=this.getCurrentRange();if(g){var r=_.S3(this.hostElement).querySelector("#overflow-text"),E=document.createRange();r&&r.previousSibling?r.previousSibling instanceof HTMLImageElement?E.selectNode(r.previousSibling):E.selectNodeContents(r.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?E.selectNode(this.input.lastChild):E.selectNodeContents(this.input.lastChild));E.collapse(!1);return E.isPointInRange(g.startContainer,
g.startOffset)}return!1};
_.S.handleOverflowText=function(g){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var r=_.S3(this.hostElement).querySelector("#overflow-text"),E=this.getCurrentRange();this.input.normalize();g=this.checkRangeAtEndOfInput()&&g;this.mergeOverflowText(r);for(var B,w=0,O=0,M,u=this.input.childNodes,l=0;l<u.length;l++){var Q=u[l];Q instanceof Text?(O+=Q.textContent.length,O>this.maxCharacterLimit&&(B=Q,w=this.maxCharacterLimit+Q.textContent.length-O)):Q instanceof HTMLImageElement&&
(B=void 0,O=Q.dataset.emojiId&&((B=this.data)==null?0:B.emojiCharacterCount)?O+this.data.emojiCharacterCount:O+Q.alt.length,B=this.input,w=l);if(O>this.maxCharacterLimit&&B){M=document.createRange();M.collapse(!1);r?(O=this.input.lastChild.previousSibling,O instanceof Text?M.setEnd(this.input.lastChild.previousSibling,O.textContent.length):O instanceof HTMLImageElement&&M.setEnd(this.input,this.input.childNodes.length-1)):M.selectNodeContents(this.input);M.setStart(B,w);break}}M&&(B=!1,E&&(g=M.isPointInRange(E.startContainer,
E.startOffset-1)),r||(r=document.createElement("span"),r.id="overflow-text",r.textContent="",r.setAttribute("contenteditable","true"),_.S3(_.S3(this.hostElement).querySelector("#input")).appendChild(r),B=!0),r&&(E=M.extractContents(),r.insertBefore(E,r.firstChild),g&&r.firstChild&&(E=document.createRange(),B?E.setStartAfter(r.lastChild):E.setStartAfter(r.firstChild),E.collapse(!0),r=window.getSelection(),r.removeAllRanges(),r.addRange(E))))}};
_.S.checkForDuplicateSpans=function(){for(var g=0;g<this.input.childNodes.length;g++){var r=this.input.childNodes[g];if(r.nodeName==="SPAN"){var E=document.createRange();E.selectNodeContents(r);E=E.extractContents();this.input.insertBefore(E,r);r.remove()}}this.handleOverflowText(!0)};
_.S.getCurrentRange=function(){var g=window.getSelection();return g&&g.rangeCount?g.getRangeAt(0).cloneRange():null};
_.S.getInputRange=function(){var g=this.getCurrentRange();if(g){for(var r=g.commonAncestorContainer,E=!1,B=_.S3(this.hostElement).querySelector("#input");r;){if(r===B){E=!0;break}r=r.parentNode}E||(g=null)}g||(g=this.getRangeAtEnd());return g};
_.S.getRangeAtEnd=function(){var g=document.createRange(),r=_.S3(this.hostElement).querySelector("#input").lastChild;!r||r.nodeName!=="#text"&&r.nodeName!=="SPAN"?(g.selectNodeContents(_.S3(this.hostElement).querySelector("#input")),g.collapse(!1)):r.nodeName==="#text"?g.setStart(r,r.textContent.length):g.setStart(r,r.childNodes.length);return g};
_.S.getChatParticipantSuggestions=function(g,r,E,B){var w=_.Y("live_chat_enable_handles_web_text_input_update");if(r)for(var O in r)if(O.indexOf(g)===0||w&&O.indexOf(E+g)===0){var M=r[O],u=_.Vp(M.authorName);B.push({suggestion:{author:!0,authorType:E,image:M.authorPhoto,alt:u,text:u}});if(B.length>=64)break}};
_.S.getSuggestions=function(g){var r=[],E=g.substring(0,3),B=nJD(_.et,E,!0);if(B)for(var w in B)if(w.toLocaleLowerCase().indexOf(g)===0){var O=B[w];if(O&&O.emojiId){if(O=RBD(_.et,O.emojiId)){var M=void 0,u=void 0,l=void 0,Q=void 0,z=((M=O.image)==null?0:(u=M.accessibility)==null?0:(l=u.accessibilityData)==null?0:l.label)||O.isCustomEmoji?(Q=O.shortcuts)==null?void 0:Q[0]:O.emojiId;r.push({suggestion:{emoji:!0,image:O.image,alt:z,text:w,textToInsertWhenSelected:O.isCustomEmoji?w:z}})}if(r.length>=
64)break}}if(!this.participantsManager)return null;if(E.indexOf("@")===0||E.indexOf("#")===0)B=E.charAt(0),g=g.substring(1),w=_.Y("live_chat_enable_handles_web_text_input_update"),E.indexOf("@")===0&&w&&(w=this.participantsManager.getAuthorsFromPrefix(E.substring(0,2)),this.getChatParticipantSuggestions(g,w,B,r)),E=E.substring(1),E=this.participantsManager.getAuthorsFromPrefix(E),this.getChatParticipantSuggestions(g,E,B,r);return r?r.sort(function(k,H){return H.suggestion.text<k.suggestion.text?-1:
H.suggestion.text===k.suggestion.text?0:1}):null};
_.S.insertSuggestion=function(g){var r=_.Y("live_chat_enable_handles_web_text_input_update"),E=g.authorType;r=g.text.indexOf(E)===0&&r?g.text+F26:E+g.text+F26;g.emoji?this.insertTextAtRange(this.JSC$12132_lastSuggestionRange,g.textToInsertWhenSelected||""):g.author&&this.insertTextAtRange(this.JSC$12132_lastSuggestionRange,r)};
_.S.updateSuggestionsAtCaret=function(){var g=this.getCurrentRange();g&&this.updateSuggestions(g,this.calculateTextBeforeRange(g))};
_.S.offsetStartOfRangeBy=function(g,r){for(;r>0;)if(g.startOffset-r>=0){g.setStart(g.startContainer,g.startOffset-r);break}else{r=g.startContainer instanceof HTMLImageElement?r-g.startContainer.alt.length:r-g.startOffset;var E=g.startContainer.previousSibling;if(!E){g.setStart(g.startContainer,0);break}if(_.Y("live_chat_require_space_for_autocomplete_emoji")){var B=void 0,w=void 0;g.setStart(E,((B=E)==null?void 0:(w=B.textContent)==null?void 0:w.length)||0)}else g.setStart(E,E.childNodes.length||
0)}};
_.S.updateSuggestions=function(g,r){var E=this;this.JSC$12132_lastSuggestionRange&&(this.JSC$12132_lastSuggestionRange.detach(),this.JSC$12132_lastSuggestionRange=null);if((r=tJn.exec(r))&&r.length&&(r=r[r.length-1].toLocaleLowerCase(),r.length>2&&(this.offsetStartOfRangeBy(g,r.length),this.JSC$12132_lastSuggestionRange=g,(g=this.getSuggestions(r))&&g.length))){this.suggestions=g;_.Lk(this,function(){_.S3(E.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(g.length-1);return}this.dropdown.opened=!1};
_.S.completeEmojisInRange=function(g,r,E){var B=r.replace(/[\s\xa0]+$/,"");r=r.length-B.length;B=B.split(" ");B=B[B.length-1].trim().toLocaleLowerCase();var w=B.lastIndexOf(":");if(E&&!r&&w!==B.length-1)return!1;w!==-1&&(E=B.lastIndexOf(":",w-1),E!==-1&&(B=B.substring(E)));if((E=_.Qj(_.et,B))&&E.emojiId){E=RBD(_.et,E.emojiId)||null;this.offsetStartOfRangeBy(g,B.length+r);var O,M,u,l;B=(((O=E)==null?0:O.isCustomEmoji)?(M=E)==null?void 0:(u=M.shortcuts)==null?void 0:u[0]:(l=E)==null?void 0:l.emojiId)||
"";r&&(B+=F26);this.insertTextAtRange(g,B);this.dropdown.opened=!1;return!0}return!1};
_.S.onSuggestion=function(g){this.insertSuggestion(g.detail);this.dropdown.opened=!1};
_.S.onKeyPress=function(g){g.keyCode===13&&(g.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.Sh(this.hostElement,"yt-live-chat-send-message"))};
_.S.completeEmojis=function(){var g=document.createRange(),r=_.S3(this.hostElement).querySelector("#input").lastChild;r?g.setStart(r,r.childNodes.length):(g.selectNodeContents(_.S3(this.hostElement).querySelector("#input")),g.collapse(!1));this.completeEmojisInRange(g,this.calculateTextBeforeRange(g),_.Y("live_chat_require_space_for_autocomplete_emoji"))};
_.S.maybePreventTextFormatting=function(g){!_.uR||!g.ctrlKey&&!g.metaKey||g.keyCode!==66&&g.keyCode!==73||(g.stopImmediatePropagation(),g.preventDefault())};
_.S.onKeyDown=function(g){this.maybePreventTextFormatting(g);if(this.dropdown.opened)switch(g.keyCode){case 27:this.dropdown.opened=!1;g.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;g.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);g.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),g.preventDefault()}};
_.S.onKeyUp=function(g){switch(g.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.SI)this.onInputChange()};
_.S.changeSuggestionIndex=function(g){if(this.dropdown.opened){var r=_.S3(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<r.children.length&&(r.children[this.suggestionIndex].active=!1);var E=this.suggestions.length;this.suggestionIndex=(g+E)%E;g=r.children[this.suggestionIndex];g.active=!0;r.scrollTop=g.offsetTop}};
_.S.onInputPaste=function(g){g.preventDefault();(g=g.clipboardData)&&g.types&&(g=g.getData("text/plain")||"",g=g.replace(/\n/g,""),this.insertText(g));(g=this.getCurrentRange())&&g.commonAncestorContainer.parentElement.id==="input"&&g.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.S.onFocus=function(){this._setFocused(!0)};
_.S.onBlur=function(){this._setFocused(!1)};
_.S.insertText=function(g){this.insertTextAtRange(this.getInputRange(),g)};
_.S.insertTextAtRange=function(g,r){if(g&&(g.collapsed||g.deleteContents(),r=_.et.createDocumentFragment(r,!0,!1))){for(var E=_.U((r==null?void 0:r.childNodes)||[]),B=E.next();!B.done;B=E.next()){B=B.value;var w=void 0,O=void 0,M=void 0,u=void 0,l=void 0;(M=(w=window)==null?void 0:(O=w.ShadyCSS)==null?void 0:O.ScopingShim)==null||(l=(u=M).scopeNode)==null||l.call(u,B,this.hostElement.localName)}E=r.lastChild;g.insertNode(r);this.focused||this.input.focus();if(this.focused){g=g.cloneRange();g.selectNodeContents(E);
g.collapse(!1);if(r=window.getSelection())r.removeAllRanges(),r.addRange(g);g.commonAncestorContainer.parentElement.id==="input"&&g.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}g=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(g);_.Sh(this.hostElement,"yt-live-chat-message-input-change",g)}};
_.S.setLiveChatRichMessageInput=function(g){_.S3(_.S3(this.hostElement).querySelector("#input")).textContent="";if(g&&g.textSegments){for(var r=0;r<g.textSegments.length;r++){var E=g.textSegments[r];E.text?_.S3(_.S3(this.hostElement).querySelector("#input")).appendChild(_.et.createDocumentFragment(E.text,!0,!1)):E.emojiId&&(E=_.t0(_.et,E.emojiId))&&_.S3(_.S3(this.hostElement).querySelector("#input")).appendChild(_.et.createEmoji(E,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.S.setText=function(g){this.setLiveChatRichMessageInput(g?{textSegments:[{text:g}]}:null)};
_.S.calculateTextBeforeRange=function(g){var r="",E=g.startContainer;if(E&&E instanceof Text){var B;r=((B=E.textContent)==null?void 0:B.substring(0,g.startOffset))||"";E=E.previousSibling}for(;E&&E instanceof Text;)r=E.textContent+r,E=E.previousSibling;return r.replace(Xo," ")};
_.S.calculateLiveChatRichMessageInput=function(){for(var g=[],r="",E=_.S3(_.S3(this.hostElement).querySelector("#input")).childNodes,B=0;B<E.length;B++){var w=E[B];w instanceof Text?r+=w.textContent:w instanceof HTMLImageElement&&(w.dataset.emojiId?(r&&(g.push({text:r.replace(Xo," ")}),r=""),g.push({emojiId:w.dataset.emojiId})):r+=w.alt)}r&&g.push({text:r.replace(Xo," ")});if(E=_.S3(this.hostElement).querySelector("#overflow-text")){r="";E=E.childNodes;for(B=0;B<E.length;B++)w=E[B],w instanceof Text?
r+=w.textContent:w instanceof HTMLImageElement&&(w.dataset.emojiId?(r&&(g.push({text:r.replace(Xo," ")}),r=""),g.push({emojiId:w.dataset.emojiId})):r+=w.alt);r&&g.push({text:r.replace(Xo," ")})}return{textSegments:g}};
_.S.computeCharacterCount=function(g){if(!g||!g.textSegments)return 0;for(var r=0,E=0;E<g.textSegments.length;E++){var B=g.textSegments[E];if(B.text)r+=B.text.length;else if(B.emojiId){var w=void 0;if((w=this.data)==null?0:w.emojiCharacterCount)r+=this.data.emojiCharacterCount;else{var O=w=void 0,M=void 0;r+=((O=_.t0(_.et,(w=B)==null?void 0:w.emojiId))==null?void 0:(M=O.shortcuts)==null?void 0:M[0].length)||0}}}return r};
_.S.characterCountChanged=function(){_.Sh(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.S.focusedChanged=function(){this.hostElement.dispatchEvent(new _.x8("focused-changed",this.focused))};
_.S.focus=function(){this.setFocus(!1)};
_.S.focusAtEnd=function(){this.setFocus(!0)};
_.S.setFocus=function(g){g=g?this.getRangeAtEnd():this.getInputRange();_.S3(this.hostElement).querySelector("#input").focus();var r=window.getSelection();r&&(r.removeAllRanges(),r.addRange(g))};
_.S.insertEmoji=function(g){var r,E=((g==null?0:g.isCustomEmoji)?(r=g.shortcuts)==null?void 0:r[0]:g==null?void 0:g.emojiId)||"";this.insertText(E)};
_.S.computeText=function(g){if(!g||!g.textSegments)return"";for(var r="",E=0;E<g.textSegments.length;E++){var B=g.textSegments[E];if(B.text)r+=B.text;else if(B.emojiId){var w=void 0,O=void 0,M=void 0;r+=((O=_.t0(_.et,(w=B)==null?void 0:w.emojiId))==null?void 0:(M=O.shortcuts)==null?void 0:M[0])||""}}return r};
_.S.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.hx.Object.defineProperties(NV.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.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}}});
NV.prototype.focusedChanged=NV.prototype.focusedChanged;NV.prototype.characterCountChanged=NV.prototype.characterCountChanged;NV.prototype.onSuggestion=NV.prototype.onSuggestion;NV.prototype.onMessageSet=NV.prototype.onMessageSet;NV.prototype.dataChanged=NV.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],NV.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],NV.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],NV.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],NV.prototype,"disabled",void 0);_.m([_.W("disabled"),_.L("design:type",Number),_.L("design:paramtypes",[])],NV.prototype,"inputTabIndex",null);_.m([_.W("data.maxCharacterLimit"),_.K({readOnly:!0,notify:!0}),_.L("design:type",Number),_.L("design:paramtypes",[])],NV.prototype,"maxCharacterLimit",null);
_.m([_.W("liveChatRichMessageInput"),_.K({readOnly:!0,notify:!0}),_.L("design:type",Number),_.L("design:paramtypes",[])],NV.prototype,"characterCount",null);_.m([_.W("maxCharacterLimit, characterCount"),_.K({readOnly:!0,notify:!0}),_.L("design:type",Number),_.L("design:paramtypes",[])],NV.prototype,"remainingCharacterCount",null);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],NV.prototype,"isChatMessageInput",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],NV.prototype,"inputExpanded",void 0);_.m([_.K({readOnly:!0,notify:!0}),_.L("design:type",Object)],NV.prototype,"liveChatRichMessageInput",void 0);_.m([_.K(),_.L("design:type",Object)],NV.prototype,"messageInput",void 0);_.m([_.K(),_.L("design:type",Boolean)],NV.prototype,"ignoreColorMapping",void 0);_.m([_.W("characterCount"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],NV.prototype,"hasText",null);
_.m([_.K(),_.L("design:type",Object)],NV.prototype,"isValidWithNoInputText",void 0);_.m([_.W("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.K(),_.L("design:type",Boolean),_.L("design:paramtypes",[])],NV.prototype,"isInputValid",null);_.m([_.K({readOnly:!0,value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],NV.prototype,"focused",void 0);_.m([_.K(),_.L("design:type",Array)],NV.prototype,"suggestions",void 0);
_.m([_.K(),_.L("design:type",_.PY)],NV.prototype,"emojiManager",void 0);_.m([_.K(),_.L("design:type",_.aY)],NV.prototype,"participantsManager",void 0);_.m([_.K(),_.L("design:type",Boolean)],NV.prototype,"noUnderline",void 0);_.m([_.K(),_.L("design:type",Object)],NV.prototype,"inputMethodEditorActive",void 0);_.m([_.zb("#dropdown"),_.L("design:type",Object)],NV.prototype,"dropdown",void 0);_.m([_.zb("#input"),_.L("design:type",HTMLElement)],NV.prototype,"input",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],NV.prototype,"dataChanged",null);_.m([_.Gb("messageInput"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],NV.prototype,"onMessageSet",null);_.m([_.ob("yt-live-chat-select-suggestion"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],NV.prototype,"onSuggestion",null);
_.m([_.Gb("characterCount"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],NV.prototype,"characterCountChanged",null);_.m([_.Gb("focused"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],NV.prototype,"focusedChanged",null);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],NV);
_.W2w=_.I(NV,"yt-live-chat-text-input-field-renderer",function(){if(br4===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;AEz===void 0&&(AEz=document.createElement("template"));var B=AEz;E.call(r,B.content.cloneNode(!0),g.content.firstChild);br4=g}g=br4;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var IY=function(){var g=_.a.apply(this,arguments)||this;g.buttonOverrides={style:"overlay",type:"filled"};g.allowAnimations=!1;g.modern=_.Y("web_button_rework_with_live");g.noPadding=!1;return g};
_.f(IY,_.a);_.S=IY.prototype;_.S.shouldSupportInlineActionButtons=function(){return!0};
_.S.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{liveChatPaidMessageFooterRenderer:"yt-live-chat-paid-message-footer-renderer"}},"data.buyButton":{id:"lower-buy-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.buyFlowButton":{id:"buy-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}},
"data.pdgLikeButton":{id:"like-button",mapping:{pdgLikeViewModel:{component:"yt-live-chat-like-button-view-model"}}},"data.replyButton":{id:"reply-button",mapping:{pdgReplyButtonViewModel:{component:"yt-live-chat-reply-button-view-model"}}},"data.leaderboardBadge":{id:"leaderboard-badge",mapping:{buttonViewModel:{component:"yt-button-view-model"}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}}}};
_.S.ready=function(){var g=document.querySelector("yt-live-chat-app");g&&g.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.S.attached=function(){this.allowAnimations=!1};
_.S.dataChanged=function(){if(this.data){var g={"--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)};_.ua(this.hostElement,g);this.allowAnimations=!0}};
_.S.messageChanged=function(){var g,r=(g=this.data)==null?void 0:g.message;g=_.S3(_.S3(this.hostElement).querySelector("#message"));g.textContent="";r&&g.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(r))};
_.S.computeShowOnlyHeader=function(g,r){return!g||g.pdgLikeButton||g.replyButton||g.buyFlowButton?!1:this.isEmpty(g,r)&&!g.footer};
_.S.computeShowFooterDivider=function(g,r,E){return g?!!g.footer&&!this.isEmpty(g,r)&&!E:!1};
_.S.computeIsUserEditable=function(g){return!!g.inputField};
_.S.computeHasHeartButton=function(g){return(g==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(g==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(g==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.S.computeNoveltyImage=function(g){if(g.headerOverlayImage&&g.headerOverlayImage.thumbnails.length){var r=g.headerOverlayImage.thumbnails[0],E,B;if((E=g.pdgPurchasedNoveltyLoggingDirectives)==null?0:(B=E.loggingDirectives)==null?0:B.trackingParams){var w,O;xtP((w=g.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(O=w.loggingDirectives)==null?void 0:O.trackingParams)}return r.width||0}return 0};
_.S.computeAuthorPhotoSize=function(g){return(g==null?0:g.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.S.inputFocus=function(){var g=_.S3(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");g&&g.focus()};
_.S.inputInsertEmoji=function(g){var r=_.S3(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");r&&r.insertEmoji(g)};
_.S.inputMessage=function(){var g=_.S3(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),r;return g&&((r=this.data)==null?0:r.inputField)?(g.completeEmojis(),_.al(g.liveChatRichMessageInput)):null};
_.S.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.S.isEmpty=function(g,r){return g?g.empty||!(g.message||g.inputField||r):!0};
_.S.onLowerBuyButtonClick=function(){var g,r=_.n((g=this.data)==null?void 0:g.buyButton,_.Fd);r&&r.trackingParams&&!Tdl(r.command)&&(g=_.fW(r.trackingParams))&&(r=_.PE())&&_.Lu(r,g)};
_.S.shouldSupportWholeItemClick=function(){return!0};
_.hx.Object.defineProperties(IY.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?0:g.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
IY.prototype.isDeletedChanged=IY.prototype.isDeletedChanged;IY.prototype.messageChanged=IY.prototype.messageChanged;IY.prototype.dataChanged=IY.prototype.dataChanged;_.m([_.P(uWA.YtPdgLiveChatItemBehavior),_.L("design:type",Object)],IY.prototype,"ytPdgLiveChatItemBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],IY.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.WP),_.L("design:type",Object)],IY.prototype,"ytLiveChatReduxBehavior",void 0);
_.m([_.P(_.WY.YtLiveChatItemBehavior),_.L("design:type",_.Co)],IY.prototype,"ytLiveChatItemBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],IY.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],IY.prototype,"data",void 0);_.m([_.K({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:CKV}),_.L("design:type",Object)],IY.prototype,"engagementState",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.L("design:type",Boolean)],IY.prototype,"isUserEditable",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.L("design:type",Boolean)],IY.prototype,"hasHeartButton",void 0);_.m([_.K({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.L("design:type",Boolean)],IY.prototype,"showOnlyHeader",void 0);
_.m([_.K({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.L("design:type",Boolean)],IY.prototype,"showFooterDivider",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Object)],IY.prototype,"allowAnimations",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],IY.prototype,"dashboardMoneyFeed",void 0);_.m([_.K({computed:"computeNoveltyImage(data)"}),_.L("design:type",Number)],IY.prototype,"noveltyWidth",void 0);
_.m([_.K({computed:"computeAuthorPhotoSize(data)"}),_.L("design:type",Number)],IY.prototype,"authorPhotoSize",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],IY.prototype,"modern",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],IY.prototype,"noPadding",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],IY.prototype,"dataChanged",null);
_.m([_.Gb("data.message"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],IY.prototype,"messageChanged",null);_.m([_.W("data","dashboardMoneyFeed"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],IY.prototype,"hideLowerBumper",null);_.m([_.Gb("isDeleted"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],IY.prototype,"isDeletedChanged",null);
_.m([_.N({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],IY);
_.I(IY,"yt-live-chat-paid-message-renderer",function(){if(ivI===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;cG4===void 0&&(cG4=document.createElement("template"));var B=cG4;E.call(r,B.content.cloneNode(!0),g.content.firstChild);ivI=g}g=ivI;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var C4w;var K2U;var mX=function(){var g=_.Hi.apply(this,arguments)||this;g._noAccessors=!0;return g};
_.f(mX,_.Hi);mX.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.Ca("openPopupConfig")};
_.m([_.P(_.ls.YtOpenPopupBehavior),_.L("design:type",Object)],mX.prototype,"ytOpenPopupBehavior",void 0);_.m([_.pR()],mX);_.cY=[_.ls.YtOpenPopupBehavior,mX.prototype];var xjT;var Lh=[_.ka,DEn,_.J9,_.Ya,_.LM,_.FFz,_.sP,_.mPb,_.AQ,FmA];_.Y("web_watch_get_updated_metadata_response_processing")&&Lh.push(_.lcA);_.Y("web_continuation_response_processing")&&Lh.push(_.x3);var sKt=new _.Vn("RESPONSE_RECEIVED_COMMANDS"),bel=new _.Vn("RESPONSE_RECEIVED_COMMANDS");var RpV="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),Ytl=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],p_l=["GET_UNSEEN_NOTIFICATION_COUNT"];var is=function(){var g=_.Hi.apply(this,arguments)||this;g._noAccessors=!0;g.serviceEndpointHandlers=[];return g};
_.f(is,_.Hi);is.prototype.created=function(){var g=this;this.endpointHandlerActionMap={"yt-service-request":function(r,E,B,w){var O;return HeV(g.hostElement,r,E,B,w,g.serviceEndpointHandlers,(O=g.onEntitiesUpdated)==null?void 0:O.bind(g))}}};
is.prototype.attached=function(){_.cf(_.mH.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
is.prototype.detached=function(){_.i2(_.mH.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.m([_.pR()],is);_.aGI=[is.prototype];var XDz,NCw=function(){return XDz!==void 0?XDz:XDz=document.createElement("template")};
document.head.appendChild(NCw().content);var IGw;var mjw=document.head,cEA=mjw.appendChild,irU;if(IGw===void 0){var L24=document.createElement("template");_.b(L24,"\x3c!--css-build:shady--\x3e");L24.content.insertBefore(NCw().content.cloneNode(!0),L24.content.firstChild);IGw=L24}irU=IGw;cEA.call(mjw,irU.content);var VJz,hBn=function(){return VJz!==void 0?VJz:VJz=document.createElement("template")};
document.head.appendChild(hBn().content);var Zrn;var yEb=document.head,vJm=yEb.appendChild,djA;if(Zrn===void 0){var TCA=document.createElement("template");_.b(TCA,"\x3c!--css-build:shady--\x3e");TCA.content.insertBefore(hBn().content.cloneNode(!0),TCA.content.firstChild);Zrn=TCA}djA=Zrn;vJm.call(yEb,djA.content);var gL6;_.ek("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.ek("sharingRendererButtons","buttonRenderer","ytd-button-renderer");gL6=_.Y("web_button_rework")&&_.Ka("BUTTON_REWORK")||_.Y("web_button_rework_with_live");_.Lo=function(){var g=_.a.apply(this,arguments)||this;g.isPressed=!1;g.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return g};
_.f(_.Lo,_.a);_.S=_.Lo.prototype;_.S.created=function(){this.showTooltips=!0};
_.S.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.S.onHintIdChanged=function(){var g=this,r,E,B=(r=this.ytButtonBehavior.data)==null?void 0:(E=r.hint)==null?void 0:E.hintRenderer;if(B&&B.hintId){r=_.US(this.hostElement,"yt-get-opened-popups-action");r=(r&&r.length===1?r[0]:[]).length>0;var w=null;B.hintId!=="sponsor-pre-purchase"||r?B.hintId.startsWith("sponsor-post-purchase")&&!r?w=fL4("membership-manage"):B.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!r&&(w=fL4("membership-freebie-join")):w=fL4("membership-join");w&&_.F6.addLowPriorityJob(function(){for(var O=
_.U(w),M=O.next();!M.done;M=O.next())g.ytComponentBehavior.resolveCommand(M.value)})}};
_.S.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.S.onYtNavigate=function(g){var r=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(g.detail.endpoint);r&&(g.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(r))};
_.S.onYtServiceRequestSent=function(g,r){this.handleServiceRequestActions(r);_.Sh(this.hostElement,"yt-service-request-sent-button-renderer")};
_.S.onServiceRequestCompleted=function(g,r){this.handleServiceRequestActions(r);_.Sh(this.hostElement,"yt-service-request-completed-button-renderer")};
_.S.updateButton=function(g){var r;if(g=(r=_.n(g,B5n))==null?void 0:r.updatedButton)this.ytButtonBehavior.data=_.n(g,_.Fd)};
_.S.handleUpdateButtonAction=function(g){var r=this.ytButtonBehavior.data;r.targetId&&g.updateButtonAction.targetId&&r.targetId===g.updateButtonAction.targetId&&this.updateButton(g)};
_.S.handleServiceRequestActions=function(g){if(g=g.actions)for(var r=0;r<g.length;r++)this.updateButton(g[r])};
_.hx.Object.defineProperties(_.Lo,{template:{configurable:!0,enumerable:!0,get:function(){if(xjT===void 0){var g=document.createElement("template");_.b(g,"\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");g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);xjT=g}g=xjT;return g}}});
_.Lo.prototype.onServiceRequestCompleted=_.Lo.prototype.onServiceRequestCompleted;_.Lo.prototype.onYtServiceRequestSent=_.Lo.prototype.onYtServiceRequestSent;_.Lo.prototype.onYtNavigate=_.Lo.prototype.onYtNavigate;_.Lo.prototype.onPressedStateChanged=_.Lo.prototype.onPressedStateChanged;_.Lo.prototype.onHintIdChanged=_.Lo.prototype.onHintIdChanged;_.m([_.K(),_.L("design:type",Object)],_.Lo.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],_.Lo.prototype,"isPressed",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],_.Lo.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.l7A.YtButtonBehavior),_.L("design:type",Object)],_.Lo.prototype,"ytButtonBehavior",void 0);_.m([_.P(_.cY),_.L("design:type",Object)],_.Lo.prototype,"ytdOpenPopupBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],_.Lo.prototype,"ytComponentBehavior",void 0);
_.m([_.P(zp.YtRenderButtonBehavior),_.L("design:type",Object)],_.Lo.prototype,"ytRenderButtonBehavior",void 0);_.m([_.Gb("data.hint.hintRenderer"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],_.Lo.prototype,"onHintIdChanged",null);_.m([_.Gb("isPressed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],_.Lo.prototype,"onPressedStateChanged",null);
_.m([_.ob("yt-navigate"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],_.Lo.prototype,"onYtNavigate",null);_.m([_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.XA]),_.L("design:returntype")],_.Lo.prototype,"onYtServiceRequestSent",null);
_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.hR]),_.L("design:returntype")],_.Lo.prototype,"onServiceRequestCompleted",null);_.m([_.N({is:"ytd-button-renderer",disableElementRegistration:gL6})],_.Lo);var VF=function(){var g=_.a.apply(this,arguments)||this;g.modern=_.Y("web_button_rework_with_live");g.buttonOverrides={style:"overlay",type:"filled"};return g};
_.f(VF,_.a);_.S=VF.prototype;_.S.configureRendererStamper=function(){return{"data.buyButton":{id:"buy-flow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}}}};
_.S.ready=function(){var g=document.querySelector("yt-live-chat-app");g&&g.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.S.dataChanged=function(){if(this.data&&this.data.sticker){var g=_.wt(this.data.sticker.thumbnails,this.stickerWidth);g||_.CMB(g).thenCatch(function(){_.el(new _.Rj("Failed to load Super Sticker with url",g))})}};
_.S.computeAuthorPhotoSize=function(g){return(g==null?0:g.isV2Style)?32:40};
_.S.computeIsV2Style=function(g){return(g==null?0:g.isV2Style)?!0:!1};
_.S.onStickerLoaded=function(g){var r,E,B;(r=_.yP(g))==null||(E=r.parentNode)==null||(B=E.classList)==null||B.add("sticker-loaded")};
_.S.computeNoveltyImageWidth=function(g){var r,E;if(g==null?0:(r=g.headerOverlayImage)==null?0:(E=r.thumbnails)==null?0:E.length){r=g.headerOverlayImage.thumbnails[0];var B,w;if((B=g.pdgPurchasedNoveltyLoggingDirectives)==null?0:(w=B.loggingDirectives)==null?0:w.trackingParams){var O,M;xtP((O=g.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(M=O.loggingDirectives)==null?void 0:M.trackingParams)}return r.width||0}return 0};
_.S.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.S.updateStickerStyles=function(){var g=this.data;g&&(g={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(g.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(g.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(g.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(g.authorNameTextColor)},
_.ua(this.hostElement,g))};
_.S.onBuyButtonClick=function(){var g,r=_.n((g=this.data)==null?void 0:g.buyButton,_.Fd);r&&!Tdl(r.command)&&this.ytRendererBehavior.logExplicitClick(r)};
_.S.shouldSupportWholeItemClick=function(){return!0};
_.hx.Object.defineProperties(VF.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 g;return((g=this.data)==null?0:g.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
VF.prototype.updateStickerStyles=VF.prototype.updateStickerStyles;VF.prototype.isDeletedChanged=VF.prototype.isDeletedChanged;VF.prototype.onStickerLoaded=VF.prototype.onStickerLoaded;VF.prototype.dataChanged=VF.prototype.dataChanged;_.m([_.P(uWA.YtPdgLiveChatItemBehavior),_.L("design:type",Object)],VF.prototype,"ytPdgLiveChatItemBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],VF.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],VF.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.WY.YtLiveChatItemBehavior),_.L("design:type",_.Co)],VF.prototype,"ytLiveChatItemBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],VF.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],VF.prototype,"data",void 0);
_.m([_.K({computed:"computeAuthorPhotoSize(data)"}),_.L("design:type",Number)],VF.prototype,"authorPhotoSize",void 0);_.m([_.K(),_.L("design:type",Boolean)],VF.prototype,"isDeleted",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],VF.prototype,"dashboardMoneyFeed",void 0);_.m([_.K({computed:"computeNoveltyImageWidth(data)"}),_.L("design:type",Number)],VF.prototype,"noveltyWidth",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],VF.prototype,"modern",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.L("design:type",Boolean)],VF.prototype,"isV2Style",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],VF.prototype,"dataChanged",null);_.m([_.ob("yt-img-shadow-loaded"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],VF.prototype,"onStickerLoaded",null);
_.m([_.W("data"),_.L("design:type",Number),_.L("design:paramtypes",[])],VF.prototype,"stickerWidth",null);_.m([_.W("data"),_.L("design:type",Number),_.L("design:paramtypes",[])],VF.prototype,"stickerHeight",null);_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],VF.prototype,"hasHeartButton",null);_.m([_.W("data","dashboardMoneyFeed"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],VF.prototype,"hideLowerBumper",null);
_.m([_.Gb("isDeleted"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],VF.prototype,"isDeletedChanged",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],VF.prototype,"updateStickerStyles",null);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],VF);
_.I(VF,"yt-live-chat-paid-sticker-renderer",function(){if(K2U===void 0){var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;C4w===void 0&&(C4w=document.createElement("template"));var B=C4w;E.call(r,B.content.cloneNode(!0),g.content.firstChild);K2U=g}g=K2U;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var r$n;var ELZ;var B_m,wMn=function(){return B_m!==void 0?B_m:B_m=document.createElement("template")};
document.head.appendChild(wMn().content);var Sa4,OTD=function(){return Sa4!==void 0?Sa4:Sa4=document.createElement("template")};
document.head.appendChild(OTD().content);var Ut4;var Mrz,qaU=function(){return Mrz!==void 0?Mrz:Mrz=document.createElement("template")};
document.head.appendChild(qaU().content);var uKD;var lUA=document.head,Dtm=lUA.appendChild,oLm;if(uKD===void 0){var G3m=document.createElement("template");_.b(G3m,"\x3c!--css-build:shady--\x3e");G3m.content.insertBefore(qaU().content.cloneNode(!0),G3m.content.firstChild);uKD=G3m}oLm=uKD;Dtm.call(lUA,oLm.content);var Qez=document.head,zSb=Qez.appendChild,k3A;if(Ut4===void 0){var h0=document.createElement("template");_.b(h0,"\x3c!--css-build:shady--\x3e");h0.content.insertBefore(OTD().content.cloneNode(!0),h0.content.firstChild);h0.content.insertBefore(wMn().content.cloneNode(!0),h0.content.firstChild);Ut4=h0}k3A=Ut4;zSb.call(Qez,k3A.content);var ZW=function(){var g=_.Hi.apply(this,arguments)||this;g.focusedIndex=0;g.verticalOffset=0;g.verticalAlign="top";g.dynamicAlign=!0;return g};
_.f(ZW,_.Hi);ZW.prototype.emojiUrl=function(g){g=_.t0(this.emojiManager,g);if(!g)return"";var r;g=(r=g.image)==null?void 0:r.thumbnails;return _.wt(g,24)||""};
var HT6=function(g){var r;g.emojiVariants&&(r=g.data)!=null&&r.target&&_.Lk(g,function(){g.set("verticalOffset",-1*g.hostElement.clientHeight);var E=_.S3(g.hostElement).querySelector("img");E&&E.focus()})};
_.S=ZW.prototype;_.S.onKeyboardEnter=function(){};
_.S.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.S.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.S.onKeyDown=function(g){switch(g.keyCode){case 13:this.onKeyboardEnter();g.preventDefault();break;case 40:this.changeFocus(1);g.preventDefault();break;case 38:this.changeFocus(-1);g.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.S.onYtEmojiSelect=function(g){var r=this,E,B,w,O,M,u,l,Q;return _.q(function(z){if(z.nextAddress==1)return B=(E=r.data)==null?void 0:E.emoji,M=((w=B)==null?void 0:w.stickyPrefId)||((O=B)==null?void 0:O.emojiId),l=(u=g.detail)==null?void 0:u.emojiId,M&&l&&M!==l?_.D(z,(Q=r.emojiManager)==null?void 0:sdD(Q,B,l),2):z.return();_.OS(r.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[B,l]);_.Q3(z)})};
_.S.changeFocus=function(g){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+g+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(g=_.S3(this.hostElement).querySelector("#variants"))&&g.children[this.focusedIndex].focus())};
_.hx.Object.defineProperties(ZW.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
ZW.prototype.onYtEmojiSelect=ZW.prototype.onYtEmojiSelect;ZW.prototype.onKeyDown=ZW.prototype.onKeyDown;ZW.prototype.onEmojiVariantsChanged=ZW.prototype.onEmojiVariantsChanged;ZW.prototype.onVerticalOffsetOrPositionTargetChanged=ZW.prototype.onVerticalOffsetOrPositionTargetChanged;_.m([_.P(_.ai),_.L("design:type",Object)],ZW.prototype,"ironOverlayBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ZW.prototype,"data",void 0);_.m([_.K(),_.L("design:type",_.PY)],ZW.prototype,"emojiManager",void 0);
_.m([_.K(),_.L("design:type",Object)],ZW.prototype,"emojiVariants",void 0);_.m([_.K(),_.L("design:type",Object)],ZW.prototype,"focusedIndex",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],ZW.prototype,"positionTarget",null);_.m([_.K({reflectToAttribute:!0}),_.W("verticalOffset","data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],ZW.prototype,"isPositioned",null);_.m([_.K(),_.L("design:type",Object)],ZW.prototype,"verticalOffset",void 0);
_.m([_.K(),_.L("design:type",Object)],ZW.prototype,"verticalAlign",void 0);_.m([_.K(),_.L("design:type",Object)],ZW.prototype,"dynamicAlign",void 0);_.m([_.Gb("verticalOffset","positionTarget"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ZW.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.m([_.Gb("emojiVariants"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ZW.prototype,"onEmojiVariantsChanged",null);
_.m([_.ob("keydown"),_.L("design:type",Function),_.L("design:paramtypes",[KeyboardEvent]),_.L("design:returntype")],ZW.prototype,"onKeyDown",null);_.m([_.ob("yt-emoji-select"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype",Promise)],ZW.prototype,"onYtEmojiSelect",null);_.m([_.pR()],ZW);var pMn=[ZW.prototype];var YaU;var RSm;var nLD=/medium-light|medium-dark|light|medium|dark/,seI=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,fUD=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),yF=function(){var g=_.a.apply(this,arguments)||this;g.userSelection={left:null,right:null};g.scrollAction="lock";g.isEmojiDraftInProgress=!1;return g};
_.f(yF,_.a);_.S=yF.prototype;_.S.onClick=function(g){g=_.yP(g);g instanceof HTMLImageElement&&this.selectOrUpdateEmoji(g)};
_.S.selectOrUpdateEmoji=function(g){var r=g.getAttribute("selection");r&&(r==="default"?_.Sh(this.hostElement,"yt-emoji-select",_.t0(this.emojiManager,g.id)):r==="left"?this.userSelection=Object.assign({},this.userSelection,{left:g.src}):r==="right"?this.userSelection=Object.assign({},this.userSelection,{right:g.src}):r==="user"&&this.userSelection.left&&this.userSelection.right&&_.Sh(this.hostElement,"yt-emoji-select",_.t0(this.emojiManager,g.id)))};
_.S.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.S.onMultiSelectorThumbnailRowChanged=function(){var g,r,E;((g=this.data)==null?0:(r=g.emoji)==null?0:(E=r.multiSelectorThumbnailRow)==null?0:E.length)&&this.openSelector()};
_.S.getThumbnailFromEmojiRow=function(g){var r,E;return(g==null?void 0:(r=g.thumbnails)==null?void 0:(E=r[0])==null?void 0:E.url)||""};
_.S.getEmojiAltTextForPartialSelector=function(g){var r;return((r=this.getThumbnailFromEmojiRow(g).match(seI))==null?void 0:r[0])||""};
_.S.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.S.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.S.getRowSelection=function(g){return["left","right"][g]};
_.S.getIdFromComposedEmoji=function(g){return(g==null?void 0:g.emojiId)||""};
_.S.getEmojiFromPartialSelections=function(g,r){if(!g&&!r)return null;var E,B,w=(E=this.data)==null?void 0:(B=E.emoji)==null?void 0:B.variantIds;if(!w||!w.length)return null;var O;g=(O=g.match(nLD))==null?void 0:O[0];var M;r=(M=r.match(nLD))==null?void 0:M[0];if(!g||!r)return null;var u=fUD.get(g);M=fUD.get(r);if(u===M){M=Array.from(fUD.values()).filter(function(Q){return Q!==u}).join("|");
var l=new RegExp("^((?!("+M+")).)*"+u+"$")}else l=new RegExp(u+".*"+M);return(w=w.find(function(Q){return l.test(Q)}))&&_.t0(this.emojiManager,w)||null};
_.S.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var g,r=this.ytEmojiSelectorBehavior.emojiUrl(((g=this.data.emoji)==null?void 0:g.emojiId)||"");_.S3(this.hostElement).querySelector('[selection="user"]').src.includes(r)||(this.isEmojiDraftInProgress=!0)}};
_.S.onDomChange=function(){HT6(this.ytEmojiSelectorBehavior)};
_.S.getFocusableElements=function(){return _.S3(this.hostElement).querySelectorAll("img").filter(function(g){return g.getAttribute("role")==="option"})};
_.S.changeFocus=function(g){var r=this.getFocusableElements();r!=null&&r.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+g+r.length)%r.length,this.ytEmojiSelectorBehavior.focusedIndex<r.length&&(g=r[this.ytEmojiSelectorBehavior.focusedIndex])&&g.focus())};
_.S.onKeyboardEnter=function(){var g=this.getFocusableElements();g!=null&&g.length&&(g=g[this.ytEmojiSelectorBehavior.focusedIndex])&&g instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(g),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.hx.Object.defineProperties(yF.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var g=this,r,E,B;return this.emojiManager&&((r=this.data)==null?0:(E=r.emoji)==null?0:(B=E.variantIds)==null?0:B.length)?this.data.emoji.variantIds.map(function(w){return!!w&&_.t0(g.emojiManager,w)}).filter(function(w){return!!w}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var g,r=(g=this.userSelection)==null?void 0:g.left,E;g=(E=this.userSelection)==null?void 0:E.right;return r&&g?this.getEmojiFromPartialSelections(r,g):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.composedEmojiSelection)==null?0:g.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var r;g=(r=this.userSelection)==null?void 0:r.left;var E;r=(E=this.userSelection)==null?void 0:E.right;if(!g&&!r){var B;return this.ytEmojiSelectorBehavior.emojiUrl(((B=this.data.emoji)==null?void 0:B.emojiId)||"")}return g&&!r?g:!g&&r?r:""}}});
yF.prototype.onMultiSelectorThumbnailRowChanged=yF.prototype.onMultiSelectorThumbnailRowChanged;yF.prototype.onClick=yF.prototype.onClick;_.m([_.P(_.ai),_.L("design:type",Object)],yF.prototype,"ironOverlayBehavior",void 0);_.m([_.P(pMn),_.L("design:type",Object)],yF.prototype,"ytEmojiSelectorBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],yF.prototype,"data",void 0);_.m([_.K(),_.L("design:type",_.PY)],yF.prototype,"emojiManager",void 0);
_.m([_.K(),_.L("design:type",Object)],yF.prototype,"userSelection",void 0);_.m([_.K(),_.L("design:type",Object)],yF.prototype,"scrollAction",void 0);_.m([_.K(),_.L("design:type",Object)],yF.prototype,"isEmojiDraftInProgress",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],yF.prototype,"emojiVariants",null);_.m([_.W("data","userSelection"),_.L("design:type",Object),_.L("design:paramtypes",[])],yF.prototype,"composedEmojiSelection",null);
_.m([_.ob("click"),_.L("design:type",Function),_.L("design:paramtypes",[MouseEvent]),_.L("design:returntype")],yF.prototype,"onClick",null);_.m([_.Gb("data.emoji.multiSelectorThumbnailRow"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],yF.prototype,"onMultiSelectorThumbnailRowChanged",null);_.m([_.W("data","userSelection","composedEmojiSelection"),_.L("design:type",String),_.L("design:paramtypes",[])],yF.prototype,"draftEmojiUrl",null);
_.m([_.e3({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],yF);
_.I(yF,"yt-emoji-multi-person-selector",function(){if(RSm===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;YaU===void 0&&(YaU=document.createElement("template"));var B=YaU;E.call(r,B.content.cloneNode(!0),g.content.firstChild);RSm=g}g=RSm;return g},{mode:2});var $t4;var jen;var vY=function(){var g=_.a.apply(this,arguments)||this;g.tooltip_=null;return g};
_.f(vY,_.a);_.S=vY.prototype;_.S.dataChanged_=function(){var g;if((g=this.data)==null?0:g.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.S3(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.q1)(this.tooltip_).textContent=this.data.tooltip};
_.S.computeTargetId=function(){var g;return((g=this.data)==null?void 0:g.targetId)||""};
_.S.computeId_=function(g){return g};
_.S.computeIcon_=function(g){return _.Dh(g)};
_.S.onTap_=function(){this.active=!this.active;_.Sh(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.S.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.x8("active-changed",this.active))};
_.hx.Object.defineProperties(vY.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var g,r;if((g=this.data)==null?0:(r=g.icon)==null?0:r.iconType)return this.data.icon.iconType==="SUPER_STICKER";var E,B;return((E=this.data)==null?void 0:(B=E.icon)==null?void 0:B.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
vY.prototype.activeChangedForBinding=vY.prototype.activeChangedForBinding;vY.prototype.dataChanged_=vY.prototype.dataChanged_;_.m([_.P(_.CB.YtLiveChatTooltipTargetingBehavior),_.L("design:type",Object)],vY.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],vY.prototype,"data",void 0);_.m([_.K({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.L("design:type",String)],vY.prototype,"id",void 0);
_.m([_.K({computed:"computeTargetId(data.targetId)"}),_.L("design:type",String)],vY.prototype,"targetId",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],vY.prototype,"active",void 0);_.m([_.K({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.L("design:type",String)],vY.prototype,"icon",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],vY.prototype,"dataChanged_",null);
_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],vY.prototype,"iconFilled",null);_.m([_.Gb("active"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],vY.prototype,"activeChangedForBinding",null);_.m([_.e3({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],vY);
_.I(vY,"yt-emoji-picker-category-button-renderer",function(){if(jen===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;$t4===void 0&&($t4=document.createElement("template"));var B=$t4;E.call(r,B.content.cloneNode(!0),g.content.firstChild);jen=g}g=jen;return g},{mode:2});var A$z;var bTw;var dN=function(){var g=_.a.apply(this,arguments)||this;g.ariaLabel=null;g.ariaActivedescendant=null;g.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};g.JSC$12197_ignoreNextFocus_=!1;g.longPressTimeoutId=-1;return g};
_.f(dN,_.a);_.S=dN.prototype;_.S.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.S.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.S.emojiChanged_=function(){this.changeFocus_(0,!1);for(var g=_.pW(),r=0;r<this.emoji.length;r++){var E={veType:88013,elementIndex:r},B=this.emoji[r];B.isCustomEmoji&&(B=document.querySelector(("#"+B.emojiId).replace("/","\\/")))&&(E=_.Hw(g,E))&&(B.visualElement=E)}};
_.S.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.S.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.S.emojiSkinToneChanged_=function(g){this.skinTone=g};
_.S.dataChanged=function(){this.data&&this.data.emojiData&&pDT(this.emojiManager,this.data.emojiData)};
_.S.emojiUrl=function(g){g=this.getEmoji(g);if(!g)return"";var r;g=(r=g.image)==null?void 0:r.thumbnails;return _.wt(g,24)||""};
_.S.emojiAlt=function(g){var r=this.get("image.accessibility.accessibilityData.label",g);return r?r:g.isCustomEmoji?g.shortcuts[0]:g.emojiId};
_.S.emojiAriaLabel=function(g){return g.shortcuts?g.shortcuts[0]:""};
_.S.emojiAriaSelected=function(g,r,E){return g&&E==r?"true":"false"};
_.S.getEmoji=function(g){if(this.emojiManager)return this.shouldUseStickyPreferences?RBD(this.emojiManager,g):Fo(this.emojiManager,g)};
_.S.computeId_=function(g){return g.categoryId||""};
_.S.computeEmoji=function(g){var r=this;return this.emojiManager?g.emojiIds?g.emojiIds.map(function(E){return E?_.t0(r.emojiManager,E):null}).filter(KmQ):g.emojiData?g.emojiData.map(function(E){var B=!!E.emojiId&&_.t0(r.emojiManager,E.emojiId);
return B?Object.assign({},B,E):null}).filter(KmQ):[]:[]};
_.S.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.S.computeAriaLabel_=function(g){return _.Vp(g)};
_.S.computeAriaActivedescendant_=function(g,r){return g&&g[r]?g[r].emojiId||"":""};
_.S.handleLongPressEmojiWithVariants=function(g,r){this.changeFocusToEmoji(g.emojiId,!1);this.openVariantSelector(g,r)};
_.S.onMouseDown=function(g){var r=this;this.hostElement!==document.activeElement&&(this.JSC$12197_ignoreNextFocus_=!0);if(g.button===0){var E=_.yP(g);if(E instanceof HTMLImageElement){var B=_.S3(this.hostElement).querySelector("#repeat").itemForElement(E);this.emojiContainsVariants(B)&&(this.longPressTimeoutId=setTimeout(function(){r.handleLongPressEmojiWithVariants(B,E)},500))}}};
_.S.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.S.onFocus=function(){this.JSC$12197_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12197_ignoreNextFocus_=!1};
_.S.onBlur_=function(){this.showFocus=!1};
_.S.emojiContainsVariants=function(g){return!!(g&&g.variantIds&&g.variantIds.length)};
_.S.onClick=function(g){clearTimeout(this.longPressTimeoutId);g=_.yP(g);if(g instanceof HTMLImageElement){var r=g.id;this.changeFocusToEmoji(r,!1);var E=this.getEmoji(r),B;if(B=this.shouldUseStickyPreferences&&this.emojiContainsVariants(E)){var w;B=!((w=this.emojiManager.emojiMap[r])!=null&&w.stickyPrefId)}B?(w=_.S3(this.hostElement).querySelector("#repeat").itemForElement(g),this.openVariantSelector(w,g)):_.Sh(this.hostElement,"yt-emoji-select",E)}};
_.S.isActiveEmojiWithVariants=function(g,r){return g&&r?r.stickyPrefId?g===r.stickyPrefId:g===r.emojiId:!1};
_.S.onCloseEmojiVariantSelector=function(g){this.activeEmojiWithVariantsId===g&&(this.activeEmojiWithVariantsId="")};
_.S.onMouseOver_=function(g){g=_.yP(g);g instanceof HTMLImageElement&&_.Sh(this.hostElement,"yt-emoji-hover",_.t0(this.emojiManager,g.id))};
_.S.changeFocus_=function(g,r){this.focusedIndex=(this.focusedIndex+g+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(g=this.emoji[this.focusedIndex],r&&(this.showFocus=!0,_.S3(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.Sh(this.hostElement,"yt-emoji-hover",g)))};
_.S.changeFocusToEmoji=function(g,r){if(g){var E=this.emoji.findIndex(function(B){return B.emojiId===g});
E!==-1&&this.changeFocus_(E-this.focusedIndex,r)}};
_.S.onKeyDown_=function(g){switch(g.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var r=this.emoji[this.focusedIndex];if(r&&r.emojiId){if(this.emojiContainsVariants(r)){var E=_.S3(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(r,E)}else _.Sh(this.hostElement,"yt-emoji-select",Fo(this.emojiManager,r.emojiId)),this.hostElement.focus();g.preventDefault()}}break;case 40:this.changeFocus_(1,!0);g.preventDefault();break;case 38:this.changeFocus_(-1,!0),
g.preventDefault()}};
_.S.onEmojiStickyPreferenceChanged=function(g,r){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&g.emojiId&&g.variantIds&&g.variantIds.includes(r)&&this.activeEmojiWithVariantsId!==r&&this.setStickyEmojiPreference(g.emojiId,r)};
_.S.openVariantSelector=function(g,r){this.activeEmojiWithVariantsId=g.stickyPrefId||g.emojiId||"";_.Sh(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:g,target:r})};
_.S.setStickyEmojiPreference=function(g,r){if(this.data){var E=this.emoji.findIndex(function(w){return w.emojiId===g});
if(E!==-1){var B=this.emoji[E];B.stickyPrefId=r;this.set("emoji."+E,Object.assign({},B));this.activeEmojiWithVariantsId=r}}};
dN.prototype.onKeyDown_=dN.prototype.onKeyDown_;dN.prototype.onMouseOver_=dN.prototype.onMouseOver_;dN.prototype.onClick=dN.prototype.onClick;dN.prototype.onBlur_=dN.prototype.onBlur_;dN.prototype.onFocus=dN.prototype.onFocus;dN.prototype.onMouseUp=dN.prototype.onMouseUp;dN.prototype.onMouseDown=dN.prototype.onMouseDown;dN.prototype.dataChanged=dN.prototype.dataChanged;dN.prototype.disableIncrementalLoadingChanged_=dN.prototype.disableIncrementalLoadingChanged_;dN.prototype.emojiManagerChanged_=dN.prototype.emojiManagerChanged_;
dN.prototype.emojiChanged_=dN.prototype.emojiChanged_;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],dN.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],dN.prototype,"data",void 0);_.m([_.K({computed:"computeId_(data)"}),_.L("design:type",String)],dN.prototype,"id",void 0);_.m([_.K({computed:"computeEmoji(data)"}),_.L("design:type",Array)],dN.prototype,"emoji",void 0);_.m([_.K(),_.L("design:type",Number)],dN.prototype,"skinTone",void 0);
_.m([_.K(),_.L("design:type",_.PY)],dN.prototype,"emojiManager",void 0);_.m([_.K(),_.L("design:type",Boolean)],dN.prototype,"disableIncrementalLoading",void 0);_.m([_.K({value:0}),_.L("design:type",Number)],dN.prototype,"focusedIndex",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],dN.prototype,"showFocus",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.L("design:type",Object)],dN.prototype,"ariaLabel",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.L("design:type",Object)],dN.prototype,"ariaActivedescendant",void 0);_.m([_.K({value:60}),_.L("design:type",Number)],dN.prototype,"domRepeatTargetFramerate",void 0);_.m([_.K({value:1}),_.L("design:type",Number)],dN.prototype,"domRepeatInitialCount",void 0);_.m([_.K({value:""}),_.L("design:type",String)],dN.prototype,"activeEmojiWithVariantsId",void 0);
_.m([_.K({value:!1}),_.L("design:type",Boolean)],dN.prototype,"shouldUseStickyPreferences",void 0);_.m([_.Gb("emoji"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],dN.prototype,"emojiChanged_",null);_.m([_.Gb("emojiManager"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],dN.prototype,"emojiManagerChanged_",null);
_.m([_.Gb("disableIncrementalLoading"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],dN.prototype,"disableIncrementalLoadingChanged_",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],dN.prototype,"dataChanged",null);_.m([_.ob("mousedown"),_.L("design:type",Function),_.L("design:paramtypes",[Object]),_.L("design:returntype")],dN.prototype,"onMouseDown",null);
_.m([_.ob("mouseup"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],dN.prototype,"onMouseUp",null);_.m([_.ob("focus"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],dN.prototype,"onFocus",null);_.m([_.ob("blur"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],dN.prototype,"onBlur_",null);
_.m([_.ob("click"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],dN.prototype,"onClick",null);_.m([_.ob("mouseover"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],dN.prototype,"onMouseOver_",null);_.m([_.ob("keydown"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],dN.prototype,"onKeyDown_",null);
_.m([_.e3({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],dN);
_.I(dN,"yt-emoji-picker-category-renderer",function(){if(bTw===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;A$z===void 0&&(A$z=document.createElement("template"));var B=A$z;E.call(r,B.content.cloneNode(!0),g.content.firstChild);bTw=g}g=bTw;return g},{mode:2});var J$U;var PKb;var trm;var Fvn;var Tp=function(){var g=_.a.apply(this,arguments)||this;g.ariaLabel=null;g.ariaActivedescendant=null;g.getFormattedStringRawText=_.Vp;g.JSC$12203_ignoreNextFocus_=!1;return g};
_.f(Tp,_.a);_.S=Tp.prototype;_.S.attached=function(){this.hostElement.hasAttribute("aria-live")||this.hostElement.setAttribute("aria-live","polite");this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.S.emojiUrl=function(g){var r,E;g=(r=Fo(this.emojiManager,g,!0))==null?void 0:(E=r.image)==null?void 0:E.thumbnails;return _.wt(g,24)||""};
_.S.emojiAlt=function(g){var r=this.get("image.accessibility.accessibilityData.label",g);return r?r:g.isCustomEmoji?g.shortcuts[0]:g.emojiId};
_.S.emojiId=function(g){return"emoji"+g};
_.S.computeId_=function(g){return g.categoryId||""};
_.S.computeAriaActivedescendant_=function(g){return this.emoji&&g<this.emoji.length?this.emojiId(g):""};
_.S.emojiChanged_=function(){this.changeFocus_(0,!1);for(var g=_.pW(),r=0;r<this.emoji.length;r++){var E={veType:88013,elementIndex:r},B=this.emoji[r];B.isCustomEmoji&&(B=document.querySelector(("#"+B.emojiId).replace("/","\\/")))&&(E=_.Hw(g,E))&&(B.visualElement=E)}};
_.S.computeEmoji_=function(g){var r=this;return this.emojiManager?g.emojiIds.map(function(E){return _.t0(r.emojiManager,E,!0)}).filter(xYS):[]};
_.S.titleOffsetChanged_=function(){var g=this.hostElement.getBoundingClientRect(),r=_.S3(this.hostElement).querySelector("#title").getBoundingClientRect();g=Math.max(0,Math.min(this.titleOffset,g.height-r.height));_.S3(this.hostElement).querySelector("#title").style.top=g+"px"};
_.S.onEmojiMouseOver_=function(g){_.Sh(this.hostElement,"yt-emoji-hover",g.model.item)};
_.S.onEmojiTap_=function(g){this.data.command&&(g=LvP(_.rM().resolve(_.gM(Nb)),this.data.command,g),_.Sh(this.hostElement,"yt-navigate",g))};
_.S.emojiAriaLabel=function(g){return g.shortcuts[0]};
_.S.emojiAriaSelected=function(g,r,E){return g&&E==r?"true":"false"};
_.S.changeFocus_=function(g,r){var E=this.emoji.length;this.focusedIndex=(this.focusedIndex+g+E)%E;g=this.emoji[this.focusedIndex];if(r){var B;(B=_.S3(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||B.scrollIntoView(!1);_.Sh(this.hostElement,"yt-emoji-hover",g)}};
_.S.onMouseDown_=function(){this.JSC$12203_ignoreNextFocus_=!0};
_.S.onFocus_=function(){this.JSC$12203_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12203_ignoreNextFocus_=!1};
_.S.onBlur_=function(){this.showFocus=!1};
_.S.onKeyDown_=function(g){switch(g.keyCode){case 13:this.onEmojiTap_(g);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);g.preventDefault();break;case 38:this.changeFocus_(-1,!0),g.preventDefault()}};
Tp.prototype.onKeyDown_=Tp.prototype.onKeyDown_;Tp.prototype.onBlur_=Tp.prototype.onBlur_;Tp.prototype.onFocus_=Tp.prototype.onFocus_;Tp.prototype.onMouseDown_=Tp.prototype.onMouseDown_;Tp.prototype.onEmojiTap_=Tp.prototype.onEmojiTap_;Tp.prototype.titleOffsetChanged_=Tp.prototype.titleOffsetChanged_;Tp.prototype.emojiChanged_=Tp.prototype.emojiChanged_;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Tp.prototype,"ytComponentBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],Tp.prototype,"data",void 0);_.m([_.K({computed:"computeId_(data)"}),_.L("design:type",String)],Tp.prototype,"id",void 0);_.m([_.K({computed:"computeEmoji_(data)"}),_.L("design:type",Array)],Tp.prototype,"emoji",void 0);_.m([_.K({value:0}),_.L("design:type",Number)],Tp.prototype,"titleOffset",void 0);_.m([_.K({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.L("design:type",Object)],Tp.prototype,"ariaLabel",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.L("design:type",Object)],Tp.prototype,"ariaActivedescendant",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],Tp.prototype,"showFocus",void 0);_.m([_.K({value:0}),_.L("design:type",Number)],Tp.prototype,"focusedIndex",void 0);_.m([_.K(),_.L("design:type",_.PY)],Tp.prototype,"emojiManager",void 0);
_.m([_.Gb("emoji"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Tp.prototype,"emojiChanged_",null);_.m([_.Gb("titleOffset"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Tp.prototype,"titleOffsetChanged_",null);_.m([_.ob("click"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],Tp.prototype,"onEmojiTap_",null);
_.m([_.ob("mousedown"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Tp.prototype,"onMouseDown_",null);_.m([_.ob("focus"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Tp.prototype,"onFocus_",null);_.m([_.ob("blur"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Tp.prototype,"onBlur_",null);
_.m([_.ob("keydown"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],Tp.prototype,"onKeyDown_",null);_.m([_.e3({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],Tp);
_.I(Tp,"yt-emoji-picker-upsell-category-renderer",function(){if(Fvn===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;trm===void 0&&(trm=document.createElement("template"));var B=trm;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Fvn=g}g=Fvn;return g},{mode:2});var eST;var WvA;var gD=function(){var g=_.a.apply(this,arguments)||this;g.scrollAction="lock";g.verticalAlign="top";return g};
_.f(gD,_.a);_.S=gD.prototype;_.S.onClick=function(g){g=_.yP(g);g instanceof HTMLImageElement&&_.Sh(this.hostElement,"yt-emoji-select",_.t0(this.emojiManager,g.id))};
_.S.openSelector=function(){this.ironOverlayBehavior.open()};
_.S.onDomChange=function(){HT6(this.ytEmojiSelectorBehavior)};
_.S.computeIsFamilySelector=function(g){var r;return(g==null?void 0:(r=g.emoji)==null?void 0:r.emojiId)==="\ud83d\udc6a"};
_.S.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var g=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];g&&g.emojiId&&(_.Sh(this.hostElement,"yt-emoji-select",_.t0(this.emojiManager,g.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.hx.Object.defineProperties(gD.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var g=this,r,E,B;return this.emojiManager&&((r=this.data)==null?0:(E=r.emoji)==null?0:(B=E.variantIds)==null?0:B.length)?this.data.emoji.variantIds.map(function(w){return!!w&&_.t0(g.emojiManager,w)}).filter(function(w){return!!w}):[]}}});
gD.prototype.onClick=gD.prototype.onClick;_.m([_.P(_.ai),_.L("design:type",Object)],gD.prototype,"ironOverlayBehavior",void 0);_.m([_.P(pMn),_.L("design:type",Object)],gD.prototype,"ytEmojiSelectorBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],gD.prototype,"data",void 0);_.m([_.K(),_.L("design:type",_.PY)],gD.prototype,"emojiManager",void 0);_.m([_.K(),_.L("design:type",Object)],gD.prototype,"scrollAction",void 0);_.m([_.K(),_.L("design:type",Object)],gD.prototype,"verticalAlign",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.L("design:type",Boolean)],gD.prototype,"isFamilySelector",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],gD.prototype,"emojiVariants",null);_.m([_.ob("click"),_.L("design:type",Function),_.L("design:paramtypes",[MouseEvent]),_.L("design:returntype")],gD.prototype,"onClick",null);_.m([_.e3({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],gD);
_.I(gD,"yt-emoji-variant-selector",function(){if(WvA===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;eST===void 0&&(eST=document.createElement("template"));var B=eST;E.call(r,B.content.cloneNode(!0),g.content.firstChild);WvA=g}g=WvA;return g},{mode:2});var CKU=/:/g,Kvn=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],rD=function(){var g=_.a.apply(this,arguments)||this;g.emojiVariantSelector=null;g.emojiMultiPersonSelector=null;g.identity=_.No;g.lastAnimationTime_=0;g.animationStart_=null;g.animationEnd_=null;return g};
_.f(rD,_.a);_.S=rD.prototype;
_.S.configureRendererStamper=function(){return{categories:{id:"categories",mapping:{emojiPickerCategoryRenderer:{component:"yt-emoji-picker-category-renderer",properties:{disableIncrementalLoading:"[[disableIncrementalLoading]]",emojiManager:"[[emojiManager]]",shouldUseStickyPreferences:"[[shouldUseStickyPreferences]]"}},emojiPickerUpsellCategoryRenderer:{component:"yt-emoji-picker-upsell-category-renderer",properties:{emojiManager:"[[emojiManager]]"}}}},categoryButtons:{id:"category-buttons",mapping:{emojiPickerCategoryButtonRenderer:"yt-emoji-picker-category-button-renderer"}},
emojiVariantSelector:{id:"emoji-variant-selector",mapping:{ytEmojiVariantSelector:{component:"yt-emoji-variant-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1},emojiMultiPersonSelector:{id:"emoji-multi-person-selector",mapping:{ytEmojiMultiPersonSelector:{component:"yt-emoji-multi-person-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1}}};
_.S.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.et)};
_.S.attached=function(){_.SI&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&Ypw(this.emojiManager)};
_.S.dataChanged=function(){var g;if((g=this.data)==null?0:g.categories){g=this.emojiManager;var r=this.getCustomEmojiIds();g.pickerCustomEmojiIds=[].concat(_.jW(GsU),_.jW(r))}};
_.S.getCustomEmojiIds=function(){var g,r=(g=this.data.categories)==null?void 0:g.find(function(O){var M;return((M=O.emojiPickerCategoryRenderer)==null?void 0:M.categoryId)&&Kvn.includes(O.emojiPickerCategoryRenderer.categoryId)}),E;
g=(E=this.data.categories)==null?void 0:E.find(function(O){return O.emojiPickerUpsellCategoryRenderer});
var B,w;return[r==null?void 0:(B=r.emojiPickerCategoryRenderer)==null?void 0:B.emojiIds,g==null?void 0:(w=g.emojiPickerUpsellCategoryRenderer)==null?void 0:w.emojiIds].flat().filter(function(O){return!!O})};
_.S.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.S.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.S.updateCategoriesAndPlaceholderInternal=function(g,r){var E=this;g&&r&&(this.categories=g.categories||[],this.categoryButtons=g.categoryButtons||[],this.resetPlaceholder(),this.search="",_.N1(function(){E.updateButtons_()}))};
_.S.computeId_=function(g){return g.id||""};
_.S.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(g){return g.emojiPickerCategoryRenderer&&g.emojiPickerCategoryRenderer.emojiData}):!1};
_.S.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.S.onShowEmojiVariantSelector=function(g){var r=g.detail.emojiData;r.variantIds&&r.variantIds.length&&(r.multiSelectorThumbnailRow&&r.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:r,target:g.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:r,target:g.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.S.onIronOverlayClosed=function(g){var r=RBD(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");r&&g.composedPath&&(g.composedPath().includes(_.S3(this.hostElement).querySelector("#emoji-variant-selector"))||g.composedPath().includes(_.S3(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.OS(this.hostElement,"yt-close-emoji-variant-selector",[r.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.S.onEmojiVariantSelectorMouseup=function(g){var r=g.target.firstChild;this.variantSelectorOpened&&r&&_.N1(function(){r.noCancelOnOutsideClick=!1},100)};
_.S.onEmojiVariantSelectorMousedown=function(g){g=g.target.firstChild;this.variantSelectorOpened&&g&&(g.noCancelOnOutsideClick=!1)};
_.S.onSelectCategory_=function(g){var r=this.search!="";this.search="";for(var E=_.S3(this.hostElement).querySelector("#categories").children,B=0;B<E.length;B++){var w=E[B];if(w.id==g.detail.categoryId){r?(_.S3(this.hostElement).querySelector("#categories").scrollTop=w.offsetTop,this.updateButtons_()):(this.animationStart_=_.S3(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=w.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.S.onEmojiHover_=function(g){this.placeholder=g.detail.shortcuts?g.detail.shortcuts[0]:""};
_.S.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.S.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.S.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.S.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.S.computeSearchCategory_=function(g){g=g.replace(CKU,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();g=g.split(" ");for(var r=[],E=this.emojiManager.emojis,B=0;B<E.length;B++){var w=E[B];if(w.searchTerms)for(var O=0;O<w.searchTerms.length;O++){for(var M=w.searchTerms[O].toLocaleLowerCase(),u=!1,l=0;l<g.length;l++)if(M.indexOf(g[l])!=-1){u=!0;break}if(u&&(!w.isCustomEmoji||!w.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(w.emojiId))){r.push(w.emojiId);
break}}}return{categoryId:-1,emojiIds:r}};
_.S.computeSearchEmptyMessage_=function(g,r){return g&&r&&r.emojiIds&&r.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.S.computeSearching_=function(g){return this.emojiManager&&g.replace(CKU,"").length>1};
_.S.computeSkinToneHidden=function(){var g;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((g=this.data)==null||!g.hideSkinTonePicker)};
_.S.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.S.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.S.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.S.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.S.selectSkinTone_=function(g){g=Number(g.target.getAttribute("tone"));this.set("emojiManager.skinTone",g);_.OS(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[g]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.S.skinToneChanged_=function(){_.S3(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var g=_.S3(this.hostElement).querySelector("#dropdown-content").children,r=0;r<g.length;r++)r===this.skinTone?g[r].setAttribute("selected",""):g[r].removeAttribute("selected")};
_.S.animateScroll_=function(g){this.lastAnimationTime_||(this.lastAnimationTime_=g);g-=this.lastAnimationTime_;g<200?(_.S3(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*g/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.S3(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.S.searchChanged_=function(){this.updateButtons_()};
_.S.updateButtons_=function(){var g=null;if(!this.search)for(var r=_.S3(this.hostElement).querySelector("#categories").scrollTop,E=_.S3(this.hostElement).querySelector("#categories").children,B=0;B<E.length;B++){var w=E[B];w.offsetTop<=r&&(g=w.id)}r=_.S3(this.hostElement).querySelector("#category-buttons").children;for(E=0;E<r.length;E++)B=r[E],B.active=B.id===g};
rD.prototype.searchChanged_=rD.prototype.searchChanged_;rD.prototype.skinToneChanged_=rD.prototype.skinToneChanged_;rD.prototype.onEmojiHover_=rD.prototype.onEmojiHover_;rD.prototype.onSelectCategory_=rD.prototype.onSelectCategory_;rD.prototype.onShowEmojiVariantSelector=rD.prototype.onShowEmojiVariantSelector;rD.prototype.updateCategoriesAndPlaceholder_=rD.prototype.updateCategoriesAndPlaceholder_;rD.prototype.dataChanged=rD.prototype.dataChanged;
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],rD.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],rD.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],rD.prototype,"data",void 0);_.m([_.K({value:function(){return[]}}),
_.L("design:type",Array)],rD.prototype,"categories",void 0);_.m([_.K({value:function(){return[]}}),
_.L("design:type",Array)],rD.prototype,"categoryButtons",void 0);_.m([_.K({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.L("design:type",Boolean)],rD.prototype,"disableScroll",void 0);_.m([_.K({computed:"computeId_(data)",reflectToAttribute:!0}),_.L("design:type",String)],rD.prototype,"id",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],rD.prototype,"selected",void 0);
_.m([_.K({value:!1}),_.L("design:type",Boolean)],rD.prototype,"disableIncrementalLoading",void 0);_.m([_.K(),_.L("design:type",String)],rD.prototype,"placeholder",void 0);_.m([_.K({value:""}),_.L("design:type",String)],rD.prototype,"search",void 0);_.m([_.K({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.L("design:type",Boolean)],rD.prototype,"searching",void 0);_.m([_.K({computed:"computeSearchCategory_(search)"}),_.L("design:type",Object)],rD.prototype,"searchCategory",void 0);
_.m([_.K({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.L("design:type",Object)],rD.prototype,"searchEmptyMessage",void 0);_.m([_.K({computed:"identity(emojiManager.skinTone)"}),_.L("design:type",Number)],rD.prototype,"skinTone",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],rD.prototype,"skinToneOpened",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],rD.prototype,"variantSelectorOpened",void 0);
_.m([_.K({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.L("design:type",Boolean)],rD.prototype,"skinToneHidden",void 0);_.m([_.K(),_.L("design:type",_.PY)],rD.prototype,"emojiManager",void 0);_.m([_.K(),_.L("design:type",Object)],rD.prototype,"emojiVariantSelector",void 0);_.m([_.K(),_.L("design:type",Object)],rD.prototype,"emojiMultiPersonSelector",void 0);
_.m([_.K({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.L("design:type",Boolean)],rD.prototype,"shouldUseStickyPreferences",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],rD.prototype,"dataChanged",null);_.m([_.Gb("data","selected"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],rD.prototype,"updateCategoriesAndPlaceholder_",null);
_.m([_.ob("yt-show-emoji-variant-selector"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],rD.prototype,"onShowEmojiVariantSelector",null);_.m([_.ob("yt-emoji-picker-select-category"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],rD.prototype,"onSelectCategory_",null);_.m([_.ob("yt-emoji-hover"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],rD.prototype,"onEmojiHover_",null);
_.m([_.Gb("skinTone"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],rD.prototype,"skinToneChanged_",null);_.m([_.Gb("search"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],rD.prototype,"searchChanged_",null);_.m([_.e3({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],rD);
_.I(rD,"yt-emoji-picker-renderer",function(){if(PKb===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;J$U===void 0&&(J$U=document.createElement("template"));var B=J$U;E.call(r,B.content.cloneNode(!0),g.content.firstChild);PKb=g}g=PKb;return g},{mode:2});var E_=function(){var g=_.a.apply(this,arguments)||this;g.emojiManager=_.et;g.isDarkTheme=document.documentElement.hasAttribute("dark");g.selectedIndex=1;g.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return g};
_.f(E_,_.a);_.S=E_.prototype;_.S.handleEmojiCustomizationVisible=function(g){this.emojiPickerRenderer.selected=g;this.selectedIndex=1;g?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.S.emojiCustomizationSetChanged=function(){var g;(g=this.data)!=null&&g.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.SU(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.S.updateSaveButtonState=function(g){var r;(r=this.data)!=null&&r.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.za("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:g}))};
_.S.emojiUrl=function(g){g=_.t0(this.emojiManager,g);if(!g)return"";var r;g=(r=g.image)==null?void 0:r.thumbnails;return _.wt(g,24)||""};
_.S.emojiAlt=function(g){var r=_.t0(this.emojiManager,g);if(!r)return g;var E,B,w,O=(r==null?void 0:(E=r.image)==null?void 0:(B=E.accessibility)==null?void 0:(w=B.accessibilityData)==null?void 0:w.label)||"";return O?O:r.isCustomEmoji?r.shortcuts[0]:r.emojiId||g};
_.S.emojiAriaLabel=function(g){var r,E;return((r=_.t0(this.emojiManager,g))==null?void 0:(E=r.shortcuts)==null?void 0:E[0])||g};
_.S.onEmojiClick=function(g){g.model.index!==0&&(this.selectedIndex=g.model.index)};
_.S.onEmojiSelect=function(g){g=g.detail;var r,E;((r=this.data)==null?0:r.emojiCustomizationSetEntityKey)&&((E=this.emojiCustomizationSet)==null?0:E.emojiId)&&g.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,g.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.za("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,g.emojiId,this.selectedIndex)}))};
_.S.canEditEmoji=function(g,r,E){g=g.indexOf(r);return g===E||g===0||E===0?!1:!0};
_.S.getUpdatedEmojiIdList=function(g,r,E){var B=g.indexOf(r);g=[].concat(_.jW(g));B>=0&&(g[B]=g[E]);g[E]=r;return g};
_.hx.Object.defineProperties(E_,{template:{configurable:!0,enumerable:!0,get:function(){if(ELZ===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;r$n===void 0&&(r$n=document.createElement("template"));var B=r$n;E.call(r,B.content.cloneNode(!0),g.content.firstChild);ELZ=g}g=ELZ;return g}}});
E_.prototype.onEmojiSelect=E_.prototype.onEmojiSelect;_.m([_.P(_.WP),_.L("design:type",Object)],E_.prototype,"ytLiveChatReduxBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],E_.prototype,"ytActionHandlerBehavior",void 0);_.m([_.zb("yt-emoji-picker-renderer"),_.L("design:type",Object)],E_.prototype,"emojiPickerRenderer",void 0);
_.m([_.K({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(g,r){return _.u1(g.entities,"emojiCustomizationSetEntity",r)},
observer:"emojiCustomizationSetChanged"}),_.L("design:type",Object)],E_.prototype,"emojiCustomizationSet",void 0);_.m([_.K(),_.L("design:type",Object)],E_.prototype,"originalEmojiSet",void 0);_.m([_.K(),_.L("design:type",_.PY)],E_.prototype,"emojiManager",void 0);_.m([_.K(),_.L("design:type",Object)],E_.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],E_.prototype,"isDarkTheme",void 0);_.m([_.K(),_.L("design:type",Object)],E_.prototype,"selectedIndex",void 0);
_.m([_.ob("yt-emoji-select"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],E_.prototype,"onEmojiSelect",null);_.m([_.e3({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],E_);var xt4;var aU4;var XMD;var N_Z;var Bd=function(){var g=_.a.apply(this,arguments)||this;g.authorBadges=[];return g};
_.f(Bd,_.a);_.S=Bd.prototype;_.S.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.S.configureRendererStamper=function(){return{"data.inlineActionButtons":{id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}},"data.beforeContentButtons":{id:"before-content-buttons",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.S.dataChanged=function(){var g=GOS(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",g)};
_.S.updateMessage=function(){var g=this.data.message,r=_.S3(_.S3(this.hostElement).querySelector("#message"));r.textContent="";g&&r.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(g))};
_.S.shouldSupportWholeItemClick=function(){return!0};
_.S.onShowOriginalClick=function(g){g.preventDefault();this.showOriginal=!0};
_.S.computeShowBar=function(g,r,E){return g&&r||E};
_.S.computeAuthorBadges=function(g){return g.authorBadges||[]};
_.S.computeAuthorIsOwner=function(g){return!!QrY(g.authorBadges,"owner")};
_.S.computeAuthorNameColor=function(g){var r;if(_.Y("live_chat_author_name_color_usernames")&&(g==null?0:(r=g.authorName)==null?0:r.simpleText))return _.R3S(_.nwl(g.authorName.simpleText));if(_.Y("live_chat_seed_color_usernames")&&(g==null?0:g.authorSeedColorArgb))return _.R3S(_.uV(g.authorSeedColorArgb));if(_.Y("live_chat_colored_usernames"))return"#cc0000";var E;return _.Y("live_chat_simple_color_usernames")&&(g==null?0:(E=g.authorName)==null?0:E.simpleText)&&(g==null?0:g.authorUsernameColorLight)&&
(g==null?0:g.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.uV(g.authorUsernameColorDark):_.uV(g.authorUsernameColorLight):""};
Bd.prototype.updateMessage=Bd.prototype.updateMessage;Bd.prototype.dataChanged=Bd.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Bd.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.WY.YtLiveChatItemBehavior),_.L("design:type",_.Co)],Bd.prototype,"ytLiveChatItemBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Bd.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Bd.prototype,"data",void 0);
_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],Bd.prototype,"showOriginal",void 0);_.m([_.K({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.L("design:type",Boolean)],Bd.prototype,"isDimmed",void 0);_.m([_.K({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.L("design:type",Boolean)],Bd.prototype,"showBar",void 0);
_.m([_.K({computed:"computeAuthorBadges(data)"}),_.L("design:type",Array)],Bd.prototype,"authorBadges",void 0);_.m([_.K({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],Bd.prototype,"authorIsOwner",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],Bd.prototype,"inCollapsedBanner",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],Bd.prototype,"inBanner",void 0);
_.m([_.K({value:_.Y("live_chat_hide_avatars"),reflectToAttribute:!0}),_.L("design:type",Boolean)],Bd.prototype,"avatarHidden",void 0);_.m([_.K({computed:"computeAuthorNameColor(data)"}),_.L("design:type",String)],Bd.prototype,"authorNameColor",void 0);_.m([_.K(),_.L("design:type",_.aY)],Bd.prototype,"participantsManager",void 0);_.m([_.K({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.L("design:type",Object)],Bd.prototype,"filledButtonOverrides",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Bd.prototype,"dataChanged",null);_.m([_.Gb("data.message"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Bd.prototype,"updateMessage",null);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],Bd);
_.I(Bd,"yt-live-chat-text-message-renderer",function(){if(N_Z===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;XMD===void 0&&(XMD=document.createElement("template"));var B=XMD;E.call(r,B.content.cloneNode(!0),g.content.firstChild);N_Z=g}g=N_Z;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var wD=function(){var g=_.a.apply(this,arguments)||this;g.tonalButtonOverrides={type:"tonal",style:"overlay"};return g};
_.f(wD,_.a);
wD.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]]"}}}}}};
wD.prototype.shouldSupportInlineActionButtons=function(){return!0};
wD.prototype.shouldSupportWholeItemClick=function(){return!0};
_.hx.Object.defineProperties(wD.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],wD.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.WY.YtLiveChatItemBehavior),_.L("design:type",_.Co)],wD.prototype,"ytLiveChatItemBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],wD.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],wD.prototype,"data",void 0);_.m([_.K(),_.L("design:type",_.aY)],wD.prototype,"participantsManager",void 0);
_.m([_.K(),_.L("design:type",Object)],wD.prototype,"tonalButtonOverrides",void 0);_.m([_.K({reflectToAttribute:!0}),_.W("data.infoDialogButton"),_.L("design:type",Object),_.L("design:paramtypes",[])],wD.prototype,"hasInfoDialogButton",null);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],wD);
_.I(wD,"yt-live-chat-auto-mod-message-renderer",function(){if(aU4===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;xt4===void 0&&(xt4=document.createElement("template"));var B=xt4;E.call(r,B.content.cloneNode(!0),g.content.firstChild);aU4=g}g=aU4;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var IUw;var mtn;var c$w;var iTn=function(){return _.a.apply(this,arguments)||this};
_.f(iTn,_.a);_.m([_.K(),_.L("design:type",Object)],iTn.prototype,"data",void 0);_.m([_.N({is:"ytd-factoid-renderer",disableElementRegistration:!0})],iTn);
_.I(iTn,"ytd-factoid-renderer",function(){if(c$w!==void 0)return c$w;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return c$w=g},{mode:1});var Sb=function(){return _.a.apply(this,arguments)||this};
_.f(Sb,_.a);Sb.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.m([_.K(),_.L("design:type",Object)],Sb.prototype,"data",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Sb.prototype,"ytRendererstamperBehavior",void 0);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],Sb);
_.I(Sb,"yt-live-chat-channel-activity-reputation-renderer",function(){if(mtn===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;IUw===void 0&&(IUw=document.createElement("template"));var B=IUw;E.call(r,B.content.cloneNode(!0),g.content.firstChild);mtn=g}g=mtn;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var Lv4;var Vrn;var O_=function(){return _.a.apply(this,arguments)||this};
_.f(O_,_.a);O_.prototype.ready=function(){var g=document.querySelector("yt-live-chat-app");g&&g.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],O_.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Boolean)],O_.prototype,"menuFocused",void 0);_.m([_.K(),_.L("design:type",Object)],O_.prototype,"data",void 0);_.m([_.P(_.WY.YtLiveChatItemBehavior),_.L("design:type",_.Co)],O_.prototype,"ytLiveChatItemBehavior",void 0);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],O_);
_.I(O_,"yt-live-chat-donation-announcement-renderer",function(){if(Vrn===void 0){var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;Lv4===void 0&&(Lv4=document.createElement("template"));var B=Lv4;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Vrn=g}g=Vrn;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var hSI;var ZTU,y$T=function(){if(ZTU!==void 0)return ZTU;var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;hSI===void 0&&(hSI=document.createElement("template"));var B=hSI;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return ZTU=g};var U_=function(){return _.a.apply(this,arguments)||this};
_.f(U_,_.a);_.hx.Object.defineProperties(U_,{template:{configurable:!0,enumerable:!0,get:function(){return y$T()}}});
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],U_.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],U_.prototype,"data",void 0);_.m([_.e3({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],U_);_.I(U_,"yt-live-chat-empty-feed-view-model",function(){return y$T()},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var vLn;var dtI;var MF=function(){return _.a.apply(this,arguments)||this};
_.f(MF,_.a);MF.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"}}}}}};
_.hx.Object.defineProperties(MF.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var g,r;return{runs:[{text:(g=this.data)==null?void 0:(r=g.channelName)==null?void 0:r.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var g=[],r;if((r=this.data)==null||!r.channelBadges)return g;var E;r=_.U((E=this.data)==null?void 0:E.channelBadges);for(E=r.next();!E.done;E=r.next()){E=_.n(E.value,mnZ);var B=void 0,w=void 0;if((B=E)==null?0:(w=B.badgeImage)==null?0:w.sources)B=void 0,w={liveChatAuthorBadgeRenderer:{tooltip:E.tooltip,accessibility:{accessibilityData:{label:(B=_.n(E.rendererContext,_.Gi))==null?void 0:B.label}}}},E.badgeImage.sources[0].clientResource?w.liveChatAuthorBadgeRenderer.icon=
{iconType:E.badgeImage.sources[0].clientResource.imageName}:w.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:E.badgeImage.sources},g.push(w)}return g}}});
_.m([_.K(),_.L("design:type",Object)],MF.prototype,"data",void 0);_.m([_.W("data.channelName"),_.L("design:type",Object),_.L("design:paramtypes",[])],MF.prototype,"channelName",null);_.m([_.W("data.channelBadges"),_.L("design:type",Array),_.L("design:paramtypes",[])],MF.prototype,"channelBadges",null);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],MF.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],MF);
_.I(MF,"yt-live-chat-identity-view-model",function(){if(dtI===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;vLn===void 0&&(vLn=document.createElement("template"));var B=vLn;E.call(r,B.content.cloneNode(!0),g.content.firstChild);dtI=g}g=dtI;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var T_m;var gOm;var rwm;var EOZ;var qF=function(){var g=_.a.apply(this,arguments)||this;g.hidden=!1;g.supportsInlineActionButtons=!0;return g};
_.f(qF,_.a);qF.prototype.ready=function(){var g;((g=document.querySelector("yt-live-chat-app"))==null?0:g.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
qF.prototype.dataChanged=function(g){var r=(0,_.q1)(_.S3(this.hostElement).querySelector("#detail-text"));r.textContent="";(g==null?0:g.detailText)&&r.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(g.detailText))};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],qF.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.WY.YtLiveChatItemBehavior),_.L("design:type",_.Co)],qF.prototype,"ytLiveChatItemBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],qF.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K({observer:"dataChanged"}),_.L("design:type",Object)],qF.prototype,"data",void 0);
_.m([_.K({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.L("design:type",Object)],qF.prototype,"hidden",void 0);_.m([_.N({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],qF);
_.I(qF,"yt-live-chat-legacy-paid-message-renderer",function(){if(EOZ===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;rwm===void 0&&(rwm=document.createElement("template"));var B=rwm;E.call(r,B.content.cloneNode(!0),g.content.firstChild);EOZ=g}g=EOZ;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var Bpw;var w_4;var St4={},ue=function(){return _.Hi.apply(this,arguments)||this};
_.f(ue,_.Hi);ue.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
ue.prototype.onLiveChatMembershipItemBehaviorClick=ue.prototype.onLiveChatMembershipItemBehaviorClick;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ue.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ue.prototype,"data",void 0);_.m([_.ob("click"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],ue.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.m([_.pR()],ue);
St4.YtLiveChatMembershipItemBehavior=[ue.prototype,_.T.YtRendererBehavior];var le=function(){var g=_.a.apply(this,arguments)||this;g.supportsInlineActionButtons=!0;g.hasPrimaryHeaderText=!1;g.showOnlyHeader=!1;g.authorBadges=[];g.modern=_.Y("web_button_rework_with_live");g.buttonOverrides={style:"overlay",type:"filled"};return g};
_.f(le,_.a);_.S=le.prototype;_.S.shouldSupportInlineActionButtons=function(){return!0};
_.S.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.S.ready=function(){var g=document.querySelector("yt-live-chat-app");g&&g.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.S.messageChanged=function(){var g=this.data.message,r=(0,_.q1)(_.S3(this.hostElement).querySelector("#message"));r.textContent="";g&&r.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(g))};
_.S.computeHasPrimaryHeaderText=function(g){return!(!g||!g.headerPrimaryText)};
_.S.computeShowOnlyHeader=function(g,r){return this.isMessageEmpty(g,r)};
_.S.computeAuthorBadges=function(g){return g.authorBadges||[]};
_.S.isMessageEmpty=function(g,r){return!g||g.empty?!0:!g.message&&!g.inputField&&!r};
_.S.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.S.getInputElement=function(){return _.S3(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.S.inputFocus=function(){var g=this.getInputElement();g&&g.focus()};
_.S.inputInsertEmoji=function(g){var r=this.getInputElement();r&&r.insertEmoji(g)};
_.S.inputMessage=function(){var g=this.getInputElement();return g&&this.data.inputField?(g.completeEmojis(),_.al(g.liveChatRichMessageInput)):null};
_.S.onFooterButtonClick=function(){this.data.footerButton&&_.Sh(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.S.shouldSupportWholeItemClick=function(){return!0};
le.prototype.isDeletedChanged=le.prototype.isDeletedChanged;le.prototype.messageChanged=le.prototype.messageChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],le.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.WY.YtLiveChatItemBehavior),_.L("design:type",_.Co)],le.prototype,"ytLiveChatItemBehavior",void 0);_.m([_.P(St4.YtLiveChatMembershipItemBehavior),_.L("design:type",Object)],le.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],le.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],le.prototype,"data",void 0);_.m([_.K({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.L("design:type",Object)],le.prototype,"hasPrimaryHeaderText",void 0);_.m([_.K({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.L("design:type",Object)],le.prototype,"showOnlyHeader",void 0);
_.m([_.K({computed:"computeAuthorBadges(data)"}),_.L("design:type",Array)],le.prototype,"authorBadges",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],le.prototype,"modern",void 0);_.m([_.Gb("data.message"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],le.prototype,"messageChanged",null);_.m([_.Gb("isDeleted"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],le.prototype,"isDeletedChanged",null);
_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],le);
_.I(le,"yt-live-chat-membership-item-renderer",function(){if(w_4===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;Bpw===void 0&&(Bpw=document.createElement("template"));var B=Bpw;E.call(r,B.content.cloneNode(!0),g.content.firstChild);w_4=g}g=w_4;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var Oez;var UYZ;var Du=function(){return _.a.apply(this,arguments)||this};
_.f(Du,_.a);Du.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Du.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Du.prototype,"data",void 0);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],Du);
_.I(Du,"yt-live-chat-mode-change-message-renderer",function(){if(UYZ===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;Oez===void 0&&(Oez=document.createElement("template"));var B=Oez;E.call(r,B.content.cloneNode(!0),g.content.firstChild);UYZ=g}g=UYZ;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var MQw;var qtD;var o9=function(){return _.a.apply(this,arguments)||this};
_.f(o9,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],o9.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.WY.YtLiveChatItemBehavior),_.L("design:type",_.Co)],o9.prototype,"ytLiveChatItemBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],o9.prototype,"data",void 0);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],o9);
_.I(o9,"yt-live-chat-moderation-message-renderer",function(){if(qtD===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;MQw===void 0&&(MQw=document.createElement("template"));var B=MQw;E.call(r,B.content.cloneNode(!0),g.content.firstChild);qtD=g}g=qtD;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var uw4;var lAw;var GY=function(){var g=_.a.apply(this,arguments)||this;g.modern=_.Y("web_button_rework");return g};
_.f(GY,_.a);GY.prototype.onClick=function(){var g;if((g=this.data)!=null&&g.onClickCommand){var r;_.G$.instance.resolveCommand((r=this.data)==null?void 0:r.onClickCommand)}};
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],GY.prototype,"modern",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],GY.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.WP),_.L("design:type",Object)],GY.prototype,"ytLiveChatReduxBehavior",void 0);_.m([_.P(_.WY.YtLiveChatItemBehavior),_.L("design:type",_.Co)],GY.prototype,"ytLiveChatItemBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],GY.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],GY.prototype,"data",void 0);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],GY);
_.I(GY,"yt-live-chat-offer-click-count-message-renderer",function(){if(lAw===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;uw4===void 0&&(uw4=document.createElement("template"));var B=uw4;E.call(r,B.content.cloneNode(!0),g.content.firstChild);lAw=g}g=lAw;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var DYA;var oOn=function(){return _.a.apply(this,arguments)||this};
_.f(oOn,_.a);_.m([_.K(),_.L("design:type",Object)],oOn.prototype,"data",void 0);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],oOn);
_.I(oOn,"yt-live-chat-placeholder-item-renderer",function(){if(DYA===void 0){var g=document.createElement("template");_.b(g,"\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");g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);DYA=g}g=DYA;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var GJz;var QNm;var zpD=new cs(7),QR=function(){var g=_.a.apply(this,arguments)||this;g.data={};return g};
_.f(QR,_.a);QR.prototype.dataChanged=function(){var g;((g=this.data)==null?0:g.class)&&_.UN(this.hostElement,this.data.class,!0);var r;((r=this.oldData)==null?0:r.class)&&_.UN(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
QR.prototype.computeTimestampString=function(g){return zpD.format(new Date(g/1E3))};
QR.prototype.dataChanged=QR.prototype.dataChanged;_.m([_.K(),_.L("design:type",Object)],QR.prototype,"data",void 0);_.m([_.K({computed:"computeTimestampString(data.timestampUsec)"}),_.L("design:type",String)],QR.prototype,"timestampString",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],QR.prototype,"dataChanged",null);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],QR);
_.I(QR,"yt-live-chat-server-error-message",function(){if(QNm===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;GJz===void 0&&(GJz=document.createElement("template"));var B=GJz;E.call(r,B.content.cloneNode(!0),g.content.firstChild);QNm=g}g=QNm;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var kJz;var HeU;var zY=function(){var g=_.a.apply(this,arguments)||this;g.defaultToFilledIcon=!1;return g};
_.f(zY,_.a);zY.prototype.computeHasPrimaryColorIcon=function(g){return g==="SPARK"||g==="SPONSORSHIP_STAR"};
zY.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],zY.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.WY.YtLiveChatItemBehavior),_.L("design:type",_.Co)],zY.prototype,"ytLiveChatItemBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],zY.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],zY.prototype,"defaultToFilledIcon",void 0);_.m([_.K(),_.L("design:type",Object)],zY.prototype,"data",void 0);
_.m([_.K({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.L("design:type",Boolean)],zY.prototype,"hasPrimaryColorIcon",void 0);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],zY);
_.I(zY,"yt-live-chat-viewer-engagement-message-renderer",function(){if(HeU===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;kJz===void 0&&(kJz=document.createElement("template"));var B=kJz;E.call(r,B.content.cloneNode(!0),g.content.firstChild);HeU=g}g=HeU;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var p_A;var ki=function(){var g=_.a.apply(this,arguments)||this;g.modernUpdate=!1;g.buttonStyle="overlay";g.buttonType="filled";return g};
_.f(ki,_.a);ki.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
ki.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ki.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ki.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],ki.prototype,"modernUpdate",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],ki.prototype,"buttonStyle",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],ki.prototype,"buttonType",void 0);
_.m([_.N({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],ki);
_.I(ki,"ytd-ad-hover-text-button-renderer",function(){if(p_A!==void 0)return p_A;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return p_A=g},{mode:1});var YtA;var Hd=function(){var g=_.a.apply(this,arguments)||this;g.buttonOverrides={size:"XS"};g.modern=_.Y("web_button_rework");return g};
_.f(Hd,_.a);Hd.prototype.onHelpTap=function(g){this.data&&this.data.informationDialog&&(_.Sh(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),g.preventDefault(),g.stopPropagation())};
_.m([_.K(),_.L("design:type",Object)],Hd.prototype,"buttonOverrides",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Hd.prototype,"modern",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Hd.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Hd.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],Hd);
_.I(Hd,"ytd-live-chat-purchased-product-message-renderer",function(){if(YtA!==void 0)return YtA;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return YtA=g},{mode:1});var RpU;var nO4;var p4=function(){var g=_.a.apply(this,arguments)||this;g.isContainerDeleted=!1;return g};
_.f(p4,_.a);p4.prototype.onContextMenuClick=function(g){this.ytLiveChatItemBehavior.showContextMenu(g)};
p4.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))};
p4.prototype.isContainerDeletedChanged=p4.prototype.isContainerDeletedChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],p4.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.WY.YtLiveChatItemBehavior),_.L("design:type",_.Co)],p4.prototype,"ytLiveChatItemBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],p4.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],p4.prototype,"isContainerDeleted",void 0);
_.m([_.K(),_.L("design:type",String)],p4.prototype,"deletedStateMessage",void 0);_.m([_.Gb("isContainerDeleted"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],p4.prototype,"isContainerDeletedChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],p4);
_.I(p4,"ytd-sponsorships-live-chat-header-renderer",function(){if(nO4!==void 0)return nO4;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return nO4=g},{mode:1});var Yi=function(){var g=_.a.apply(this,arguments)||this;g.modern=_.Y("web_button_rework_with_live");g.buttonOverrides={style:"overlay",type:"filled"};return g};
_.f(Yi,_.a);Yi.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]]"}}}}}};
Yi.prototype.onCtaButtonClick=function(){var g,r=_.n((g=this.data)==null?void 0:g.optInPrompt,_.Fd);if(g=this.maybeGetButtonCommand(r)){var E;(E=_.pW())==null||E.clickCommand(g)}};
Yi.prototype.maybeGetButtonCommand=function(g){return!g||!g.command||_.n(g.command,nTw)===void 0&&_.n(g.command,R0z)===void 0?null:g.command};
Yi.prototype.shouldHideOptinPrompt=function(g,r){return!g||r};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Yi.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.WY.YtLiveChatItemBehavior),_.L("design:type",_.Co)],Yi.prototype,"ytLiveChatItemBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Yi.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Yi.prototype,"modern",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],Yi);
_.I(Yi,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(RpU!==void 0)return RpU;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return RpU=g},{mode:1});var sN6;var R9=function(){return _.a.apply(this,arguments)||this};
_.f(R9,_.a);R9.prototype.onContextMenuClick=function(g){this.ytLiveChatItemBehavior.showContextMenu(g)};
R9.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))};
R9.prototype.isDeletedChanged=R9.prototype.isDeletedChanged;_.m([_.P(_.WY.YtLiveChatItemBehavior),_.L("design:type",_.Co)],R9.prototype,"ytLiveChatItemBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],R9.prototype,"data",void 0);_.m([_.Gb("isDeleted"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],R9.prototype,"isDeletedChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],R9);
_.I(R9,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(sN6!==void 0)return sN6;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return sN6=g},{mode:1});var n4=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return g};
_.f(n4,_.a);_.S=n4.prototype;
_.S.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatAutoModMessageRenderer:"yt-live-chat-auto-mod-message-renderer",liveChatPaidMessageRenderer:"yt-live-chat-paid-message-renderer",liveChatLegacyPaidMessageRenderer:"yt-live-chat-legacy-paid-message-renderer",liveChatMembershipItemRenderer:"yt-live-chat-membership-item-renderer",liveChatTextMessageRenderer:"yt-live-chat-text-message-renderer",liveChatPaidStickerRenderer:"yt-live-chat-paid-sticker-renderer",liveChatDonationAnnouncementRenderer:"yt-live-chat-donation-announcement-renderer",
liveChatModeChangeMessageRenderer:"yt-live-chat-mode-change-message-renderer",liveChatModerationMessageRenderer:"yt-live-chat-moderation-message-renderer",liveChatOfferClickCountMessageRenderer:"yt-live-chat-offer-click-count-message-renderer",liveChatPlaceholderItemRenderer:"yt-live-chat-placeholder-item-renderer",liveChatPurchasedProductMessageRenderer:"ytd-live-chat-purchased-product-message-renderer",liveChatSponsorshipsGiftPurchaseAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",
liveChatSponsorshipsGiftRedemptionAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",liveChatViewerEngagementMessageRenderer:"yt-live-chat-viewer-engagement-message-renderer",serverErrorMessage:"yt-live-chat-server-error-message"}}}};
_.S.handleLiveChatAction=function(g){_.n(g,egI)?this.handleMarkChatItemAsDeletedAction(_.n(g,egI)):_.n(g,FCz)&&this.handleRemoveChatItemAction(_.n(g,FCz))};
_.S.handleLiveChatActions=function(g){g.forEach(this.handleLiveChatAction,this)};
_.S.handleMarkChatItemAsDeletedAction=function(g){var r=this,E;((E=this.data)==null?0:E.items)&&this.data.items.forEach(function(B,w){var O=Object.keys(B)[0];Object.values(B)[0].id===g.targetItemId&&r.markAsDeleted("data.items",w,O,g.deletedStateMessage,g.showOriginalContentMessage)})};
_.S.handleRemoveChatItemAction=function(g){var r=this,E;((E=this.data)==null?0:E.items)&&this.data.items.forEach(function(B,w){Object.values(B)[0].id===g.targetItemId&&r.splice("data.items",w,1)})};
_.S.markAsDeleted=function(g,r,E,B,w){g=[g,r,E].join(".");this.set(g+".deletedStateMessage",B);this.set(g+".showOriginalContentMessage",w)};
_.m([_.K(),_.L("design:type",Object)],n4.prototype,"data",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],n4.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],n4.prototype,"ytActionHandlerBehavior",void 0);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],n4);
_.I(n4,"yt-live-chat-item-display-list-renderer",function(){if(gOm===void 0){var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;T_m===void 0&&(T_m=document.createElement("template"));var B=T_m;E.call(r,B.content.cloneNode(!0),g.content.firstChild);gOm=g}g=gOm;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var fAw;var $YT,jNT=function(){if($YT!==void 0)return $YT;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;fAw===void 0&&(fAw=document.createElement("template"));var B=fAw;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return $YT=g};var s_=function(){var g=_.a.apply(this,arguments)||this;g.isHeader=!1;return g};
_.f(s_,_.a);s_.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.hx.Object.defineProperties(s_,{template:{configurable:!0,enumerable:!0,get:function(){return jNT()}}});
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],s_.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],s_.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],s_.prototype,"isHeader",void 0);_.m([_.e3({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],s_);_.I(s_,"yt-live-chat-item-display-renderer",function(){return jNT()},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var AwU,beA,ep6,Fmn;
AwU={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}};beA={home:"eohps",search:"eosps",watch:"eowps"};_.Jwz=["watch","search","home"];
_.f4=function(){this.JSC$12314_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12314_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.Ca("PRECONSTRUCTION_DELAY",0);this.signals_=_.ep();this.targetPage_=""};
_.f4.prototype.init=function(g,r){g=g===void 0?"":g;r=r===void 0?null:r;if(this.JSC$12314_isInitialized_)this.abort();else if(this.JSC$12314_isInitialized_=!0,g&&_.PMT(this,g),r){var E=_.Wa(this.signals_,"pcl")?0:10,B=function(){for(var w=0,O;O=_.Jwz[w++];)O!=g&&O!=r&&this.pendingPages_.push(O);_.tQD(this)}.bind(this);
this.signals_.parkOrScheduleJob(B,E,"pcl")}};
_.f4.prototype.abort=function(){this.fragmentJobId_&&(_.F6.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);Fmn(this)};
_.PMT=function(g,r){g.JSC$12314_isInitialized_&&!g.targetPage_&&(g.targetPage_=r,ep6(g,r),g.isInitialPass_=!1,ep6(g,r),g.signals_.processSignal(beA[g.targetPage_]),Fmn(g),_.tQD(g))};
_.tQD=function(g){g.pendingPages_.length&&!g.pagePreparerJobId_&&(g.pagePreparerJobId_=_.fC(_.F6,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.PMT(this,this.pendingPages_.shift())}.bind(g),g.DEFAULT_DELAY_))};
ep6=function(g,r){if(r=AwU[r])for(var E in r){var B=!1,w=E;E.charAt(0)=="~"&&(B=!0,w=E.substring(1));var O=r[E];O=typeof O=="object"?O:{count:O};r[E]=O;O.componentName=w;O.count>0&&(g.isInitialPass_?B||g.isSeenDuringInitialPass_[w]||(g.JSC$12314_queue_.push({componentName:w,count:1,signals:O.signals}),g.isSeenDuringInitialPass_[w]=!0,O.count--):g.JSC$12314_queue_.push(O))}};
Fmn=function(g){g.JSC$12314_queue_.length=0;g.targetPage_="";g.isInitialPass_=!0;g.signals_.processSignal("eop")};
_.f4.getInstance=function(){return _.rx(_.f4)};var Wmn=function(){this.signals=_.ep();this.init()};
Wmn.prototype.startPreconstruction=function(){_.f4.getInstance().init(_.Ka("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
Wmn.prototype.init=function(){CMn(this);window.Polymer&&meU&&E8S();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var g=_.ED.ytcsi;if(g&&g.gt&&(g=g.gt())&&g.tick&&(g.tick.aft>0||g.tick.pbs>0)&&(_.Ka("IS_HOMEPAGE_COLD")||_.Ka("IS_RESULTS_PAGE_COLD")||_.Ka("IS_WATCH_PAGE_COLD"))){KmI(this);break a}GCc(TjX,this.onNotifications,this)}};
var CMn=function(g){var r=function(){g.signals.processSignal("dl")};
document.readyState==="complete"?(_.NX(Error("yh"),"WARNING"),r()):_.cOD(window,"load",r)};
Wmn.prototype.onNotifications=function(g){g.timer||(_.Ka("IS_HOMEPAGE_COLD")||_.Ka("IS_RESULTS_PAGE_COLD")||_.Ka("IS_WATCH_PAGE_COLD"))&&KmI(this)};
var KmI=function(g){g.signals.parkOrScheduleJob(function(){g.signals.processSignal("eocs")},10,"eor")};
new Wmn;var $i,xYD=function(){return _.Hi.apply(this,arguments)||this};
_.f(xYD,_.Hi);_.S=xYD.prototype;_.S.enableActiveViewMeasurement=function(g){if(this.isActiveViewEnabled(g)){var r=this.getUrlPrefixesFromCommand(g.viewableCommands);g=this.getUrlPrefixesFromCommand(g.endOfSessionCommands);if(!$i){var E=_.wM("custom_active_view_tos_timeout_ms");$i=E>0&&E!==36E5?new qFo(this.getVersion(),E):new qFo(this.getVersion())}l5V($i,this.hostElement);DKl($i,this.hostElement,r,g)}};
_.S.stopActiveViewMeasurement=function(){$i&&l5V($i,this.hostElement)};
_.S.isActiveViewEnabled=function(g){return!!g&&(this.hasAtLeastOneUrl(g.viewableCommands)||this.hasAtLeastOneUrl(g.endOfSessionCommands))};
_.S.hasAtLeastOneUrl=function(g){return!!g&&g.length>0&&g[0].loggingUrls!=null&&g[0].loggingUrls.length>0};
_.S.getVersion=function(){var g=_.Ca("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(g==null?void 0:g.length)===2?g[1]:null};
_.S.getUrlPrefixesFromCommand=function(g){if(!g)return[];var r=[];g=_.U(g);for(var E=g.next();!E.done;E=g.next())if(E=E.value,E.loggingUrls){E=_.U(E.loggingUrls);for(var B=E.next();!B.done;B=E.next())B=B.value,B.baseUrl&&r.push(B.baseUrl)}return r};
_.m([_.pR()],xYD);var jb=[xYD.prototype];var aAw=function(){return _.Hi.apply(this,arguments)||this};
_.f(aAw,_.Hi);_.hx.Object.defineProperties(aAw.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.Y("enable_entity_store_from_dependency_injection")?_.V7():_.Zz()}}});
_.m([_.pR()],aAw);_.Ai=[Am.prototype,aAw.prototype];var X_n=["ytd-rich-shelf-renderer"],be=function(){var g=_.Hi.apply(this,arguments)||this;g._noAccessors=!0;g.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";g.followUpDialogPromise=null;g.followUpDialogPromiseResolve=null;g.followUpDialogPromiseReject=null;return g};
_.f(be,_.Hi);_.S=be.prototype;_.S.dismissibleItemIsDismissedChanged_=function(g){_.Y("kevlar_fluid_dismiss")&&(g?_.Sh(this.hostElement,"yt-dismissible-item-dismissed"):_.Sh(this.hostElement,"yt-dismissible-item-undismissed"))};
_.S.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.S.dismissibleItemReset_=function(){var g=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 _.D8(function(r,E){g.followUpDialogPromiseResolve=r;g.followUpDialogPromiseReject=E});
_.Sh(this.hostElement,"yt-enable-lockup-interaction")};
_.S.dismissibleItemOnYtServiceRequestSent_=function(g,r){r.actions&&this.dismissibleItemProcessActions(r.actions,g)};
_.S.dismissibleItemOnRequestSent=function(g){if(_.Y("web_button_rework"))for(var r=_.U(g.detail),E=r.next();!E.done;E=r.next()){var B=void 0;(E=(B=_.n(E.value,_.Gn))==null?void 0:B.actions)&&this.dismissibleItemProcessActions(E,g)}};
_.S.dismissibleItemOnCommandSent=function(g,r){r&&this.dismissibleItemProcessActions(r,g)};
_.S.setAndGetDismissedContentId=function(g){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+g};
_.S.replayDismissAction=function(g){this.dismissibleItemProcessActions([g])};
_.S.dismissibleItemProcessActions=function(g,r){for(var E=0;E<g.length;E++){var B=g[E],w=void 0;((w=_.n(B,_.D$))==null?0:w.commands)&&this.dismissibleItemProcessActions(_.n(B,_.D$).commands,r);if(_.n(B,_.zi)){if(w=_.n(B,_.zi),!w.replaceParentSection||X_n.includes(this.hostElement.nodeName.toLowerCase()))_.Y("web_see_fewer_shorts_reactive_dismissal")&&w.groupDismissal&&aAD(this,w.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(w),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.za("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:B})),B=void 0,(B=r)==null||B.stopPropagation()}else if(_.n(B,eHZ))this.dismissibleItemHandleHideEnclosingAction_(),B=void 0,(B=r)==null||B.stopPropagation();else if(_.n(B,E4D))_.Y("web_see_fewer_shorts_reactive_dismissal")&&(B=_.n(B,E4D),w=void 0,((w=B)==null?0:w.targetGroupId)&&aAD(this,{targetGroupId:B.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.za("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),B=void 0,(B=r)==null||B.stopPropagation();else if(_.n(B,_.Gn))(B=_.n(B,_.Gn).actions)&&_.uq(this.hostElement,B,this.hostElement),B=void 0,(B=r)==null||B.stopPropagation();else{var O=w=void 0;((w=_.n(B,_.aI))==null?void 0:w.signal)!=="TELL_US_WHY"||((O=_.n(B,_.aI))==null?0:O.targetId)&&_.Y("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),B=void 0,(B=r)==null||B.stopPropagation())}}};
_.S.dismissibleItemOnYtServiceRequestCompleted_=function(g,r){var E=this.get("feedbackResponses.0.followUpDialog",r.data);E?this.followUpDialogPromiseResolve(E):r.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(r.actions,g)};
_.S.dismissibleItemHandleReplaceEnclosingAction_=function(g){this.dismissedRenderer=g.item;this.isDismissed=!0;var r=null;(r=_.S3(this.hostElement).querySelector("#dismissed"))&&_.Lk(this,function(){_.ZH(r)});
_.Sh(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.S.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.S.dismissibleItemHandleUndoFeedbackAction_=function(){_.Sh(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.S.dismissibleItemHandleTellUsWhySignalAction_=function(){var g=this;this.followUpDialogPromise.then(function(r){g.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:r}})})};
be.prototype.dismissibleItemOnYtServiceRequestCompleted_=be.prototype.dismissibleItemOnYtServiceRequestCompleted_;be.prototype.dismissibleItemOnCommandSent=be.prototype.dismissibleItemOnCommandSent;be.prototype.dismissibleItemOnRequestSent=be.prototype.dismissibleItemOnRequestSent;be.prototype.dismissibleItemOnYtServiceRequestSent_=be.prototype.dismissibleItemOnYtServiceRequestSent_;be.prototype.dismissibleItemDataChanged_=be.prototype.dismissibleItemDataChanged_;
be.prototype.dismissibleItemIsDismissedChanged_=be.prototype.dismissibleItemIsDismissedChanged_;_.m([_.P(_.cY),_.L("design:type",Object)],be.prototype,"ytdOpenPopupBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],be.prototype,"ytdReduxBehavior",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],be.prototype,"isDismissed",void 0);_.m([_.K(),_.L("design:type",Object)],be.prototype,"dismissedRenderer",void 0);
_.m([_.Gb("isDismissed"),_.L("design:type",Function),_.L("design:paramtypes",[Boolean]),_.L("design:returntype")],be.prototype,"dismissibleItemIsDismissedChanged_",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],be.prototype,"dismissibleItemDataChanged_",null);
_.m([_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.XA]),_.L("design:returntype")],be.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.m([_.ob("yt-service-request-sent-button-renderer"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],be.prototype,"dismissibleItemOnRequestSent",null);
_.m([_.ob("yt-dismissible-item-action"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Array]),_.L("design:returntype")],be.prototype,"dismissibleItemOnCommandSent",null);_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.hR]),_.L("design:returntype")],be.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.m([_.pR()],be);_.Ji=[_.cY,_.Ai,be.prototype];var Pd=function(){var g=_.Hi.apply(this,arguments)||this;g.disableGridStateAware=!1;g.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};g.currentGridClass="";return g};
_.f(Pd,_.Hi);Pd.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.Lk(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var g=this.gridStateAwareGetElement();_.UN(g,"grid",!0)}};
Pd.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
Pd.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.S3(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
Pd.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var g="grid-disabled";else{g=_.bOm.getInstance();var r=this.get("pageSubtype");g=r&&$Z4.includes(r)?"grid-disabled":g.currentSnapState_?g.currentSnapState_.className:null}(r=this.gridStateAwareGetElement())&&g!==this.currentGridClass&&(g&&_.UN(r,g,!0),this.currentGridClass&&_.UN(r,this.currentGridClass,!1),this.currentGridClass=g)};
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Pd.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",String)],Pd.prototype,"gridStateAwareSizingElementSelector",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Pd.prototype,"disableGridStateAware",void 0);_.m([_.pR()],Pd);_.ti=[Pd.prototype,_.gN.YtActionHandlerBehavior];_.F0=new _.Vn("GUIDE_TOKEN");var Wd;_.eb={};Wd=function(){var g=_.Hi.apply(this,arguments)||this;g.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 g};
_.f(Wd,_.Hi);_.S=Wd.prototype;_.S.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.S.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var g=_.rM().resolve(_.gM(_.F0));g&&(this.guidePersistentAndVisible=g.getGuidePersistentAndVisible(),this.activeEndpoint=g.getActiveEndpoint(),this.guideOpened=g.getGuideOpened(),this.miniGuideVisible=g.getMiniGuideVisible())};
_.S.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.S.handleGuideStateAction=function(g){this.guidePersistentAndVisible=g};
_.S.handleMiniGuideStateAction=function(g){this.miniGuideVisible=g};
_.S.handleGuideOpenedAction=function(g){this.guideOpened=g};
_.S.handleActiveEndpointAction=function(g){this.activeEndpoint=g};
Wd.prototype.onActiveEndpointChange=Wd.prototype.onActiveEndpointChange;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Wd.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Wd.prototype,"guidePersistentAndVisible",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Wd.prototype,"miniGuideVisible",void 0);_.m([_.K(),_.L("design:type",Object)],Wd.prototype,"activeEndpoint",void 0);
_.m([_.Gb("activeEndpoint"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Wd.prototype,"onActiveEndpointChange",null);_.m([_.K(),_.L("design:type",Boolean)],Wd.prototype,"guideOpened",void 0);_.m([_.pR()],Wd);_.eb.YtdGuideStateAwareBehavior=[];_.eb.YtdGuideStateAwareBehavior.push(Wd.prototype,_.gN.YtActionHandlerBehavior);var NpT=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],C4=function(){var g=_.Hi.apply(this,arguments)||this;g.hoverJobId=0;g.JSC$12345_touched=!1;return g};
_.f(C4,_.Hi);_.S=C4.prototype;_.S.created=function(){this.useExpandableTooltip=!NpT.includes(this.is)};
_.S.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.S.detached=function(){this.useExpandableTooltip=!1};
_.S.lockupOnDown=function(g){this.interactionElement&&!_.Zy(_.Z1(g),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.S.lockupOnUp=function(g){this.interactionElement&&!_.Zy(_.Z1(g),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.S.onTouchStart=function(){this.JSC$12345_touched=!0};
_.S.lockupOnMouseEnter=function(){var g=this,r=_.wM("kevlar_lockup_hover_delay",-1);this.JSC$12345_touched&&r>=0?(_.F6.cancelJob(this.hoverJobId),this.hoverJobId=_.F6.addJob(function(){g.lockupIsHovered=!0},8,r),this.JSC$12345_touched=!1):this.lockupIsHovered=!0};
_.S.lockupOnMouseLeave=function(){this.hoverJobId&&(_.F6.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.S.lockupOnPopupClosed=function(g,r){var E;((E=r.popupRenderer)==null?void 0:E.is)==="ytd-menu-popup-renderer"&&(g=r.popupRenderer.veData,r=_.PE(),g&&r&&_.iq(r,[g]))};
_.S.lockupOnLockupRequested=function(g){var r=g.detail.videoIds[0],E;g.detail&&r===((E=this.data)==null?void 0:E.videoId)&&(g.detail.returnValue=[this.data])};
_.S.lockupOnYtServiceRequestSent=function(g,r){if(g=r.actions)for(var E=0;E<g.length;E++){var B=g[E];if(B.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&r.ajaxPromise){var w=void 0,O=(w=_.n(r.endpoint,_.J9))==null?void 0:w.playlistId;w=void 0;B=(w=B.removedVideoId)!=null?w:"";vn4(_.Kn(),B,O)}else B.action==="ACTION_REMOVE_VIDEO"&&r.ajaxPromise&&(O=void 0,B=(O=B.setVideoId)!=null?O:"",_.dRT(_.Kn(),B))}};
_.S.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.S.lockupOnLockupEnabled=function(){if(!this.$){var g=_.rM().resolve(_.vK).getCurrentPage(),r=this.getParentRenderer?this.getParentRenderer():void 0;_.el(new _.Rj("component not ready",this.is,this.isAttached,g==null?void 0:g.is,r==null?void 0:r.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
C4.prototype.lockupOnLockupEnabled=C4.prototype.lockupOnLockupEnabled;C4.prototype.lockupOnLockupDisabled=C4.prototype.lockupOnLockupDisabled;C4.prototype.lockupOnYtServiceRequestSent=C4.prototype.lockupOnYtServiceRequestSent;C4.prototype.lockupOnLockupRequested=C4.prototype.lockupOnLockupRequested;C4.prototype.lockupOnPopupClosed=C4.prototype.lockupOnPopupClosed;C4.prototype.lockupOnMouseLeave=C4.prototype.lockupOnMouseLeave;C4.prototype.lockupOnMouseEnter=C4.prototype.lockupOnMouseEnter;
C4.prototype.onTouchStart=C4.prototype.onTouchStart;C4.prototype.lockupOnUp=C4.prototype.lockupOnUp;C4.prototype.lockupOnDown=C4.prototype.lockupOnDown;_.m([_.K(),_.L("design:type",Object)],C4.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Boolean)],C4.prototype,"lockupIsHovered",void 0);_.m([_.K(),_.L("design:type",Boolean)],C4.prototype,"lockupTouchTriggered",void 0);_.m([_.K(),_.L("design:type",Boolean)],C4.prototype,"useExpandableTooltip",void 0);
_.m([_.zb("#interaction"),_.L("design:type",Object)],C4.prototype,"interactionElement",void 0);_.m([_.ob("down"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],C4.prototype,"lockupOnDown",null);_.m([_.ob("up"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],C4.prototype,"lockupOnUp",null);
_.m([_.ob("touchstart"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],C4.prototype,"onTouchStart",null);_.m([_.ob("mouseenter"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],C4.prototype,"lockupOnMouseEnter",null);_.m([_.ob("mouseleave"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],C4.prototype,"lockupOnMouseLeave",null);
_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],C4.prototype,"lockupOnPopupClosed",null);_.m([_.ob("yt-lockup-requested"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],C4.prototype,"lockupOnLockupRequested",null);
_.m([_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.XA]),_.L("design:returntype")],C4.prototype,"lockupOnYtServiceRequestSent",null);_.m([_.ob("yt-disable-lockup-interaction"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],C4.prototype,"lockupOnLockupDisabled",null);
_.m([_.ob("yt-enable-lockup-interaction"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],C4.prototype,"lockupOnLockupEnabled",null);_.m([_.pR()],C4);_.K4=[C4.prototype];_.IAZ={YtdReduxBehavior:[]};_.IAZ.YtdReduxBehavior.push.apply(_.IAZ.YtdReduxBehavior,_.Ai);var xi=function(){var g=_.Hi.apply(this,arguments)||this;g._noAccessors=!0;g.disableNowPlaying=!1;g.disableTooltips=!1;g.useHoveredProperty=!1;g.hovered=!1;g.isThumbnailHovered_=!1;g.addBackground=_.Y("kevlar_thumbnail_bg");g.nowPlaying=!1;g.disableRounding=!1;g.size="small";return g};
_.f(xi,_.Hi);_.S=xi.prototype;_.S.computeThumbnailOverlaySidePanelWidth_=function(g,r){return g-r};
_.S.computeSize=function(g,r){if(!this.disableRounding){if(!g&&!r)return"small";g=Math.max(g||0,r||0);return g>=256?"large":g>=96?"medium":"small"}};
_.S.computeFinalHoveredState_=function(g,r,E){return this.nowPlaying?!1:_.Y("kevlar_thumbnail_fluid")&&g?r:E};
_.S.computeHoverOverlays_=function(g,r){return g&&r?r:void 0};
_.S.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.S.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.S.checkMiniplayer_=function(){var g;if(((g=this.data)==null?0:g.playlistSetVideoId)&&_.Y("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{g=_.Di();var r=g.currentEndpoint;!this.disableNowPlaying&&r&&_.n(r,_.LM)&&this.data?(r=_.n(r,_.LM),this.nowPlaying=this.data.playlistId?r.playlistId===this.data.playlistId:r.videoId===this.data.videoId,this.isVideoPlaying=g==null?void 0:g.isVideoPlaying):this.nowPlaying=!1}};
xi.prototype.checkMiniplayer_=xi.prototype.checkMiniplayer_;xi.prototype.onMouseLeave_=xi.prototype.onMouseLeave_;xi.prototype.onMouseEnter_=xi.prototype.onMouseEnter_;xi.prototype.computeHoverOverlays_=xi.prototype.computeHoverOverlays_;xi.prototype.computeFinalHoveredState_=xi.prototype.computeFinalHoveredState_;xi.prototype.computeSize=xi.prototype.computeSize;xi.prototype.computeThumbnailOverlaySidePanelWidth_=xi.prototype.computeThumbnailOverlaySidePanelWidth_;
_.m([_.P(_.Ai),_.L("design:type",Object)],xi.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],xi.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Number)],xi.prototype,"height",void 0);_.m([_.K(),_.L("design:type",Boolean)],xi.prototype,"bottomSidePanel",void 0);_.m([_.K(),_.L("design:type",Number)],xi.prototype,"width",void 0);_.m([_.K(),_.L("design:type",Object)],xi.prototype,"disableNowPlaying",void 0);
_.m([_.K({selector:_.tj}),_.L("design:type",Boolean)],xi.prototype,"miniplayerIsActive",void 0);_.m([_.K(),_.L("design:type",Object)],xi.prototype,"disableTooltips",void 0);_.m([_.K(),_.L("design:type",Object)],xi.prototype,"useHoveredProperty",void 0);_.m([_.K(),_.L("design:type",Object)],xi.prototype,"hovered",void 0);_.m([_.K(),_.L("design:type",Object)],xi.prototype,"isThumbnailHovered_",void 0);
_.m([_.K({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.L("design:type",Boolean)],xi.prototype,"finalHoveredState_",void 0);_.m([_.K({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.L("design:type",Number)],xi.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],xi.prototype,"addBackground",void 0);
_.m([_.K({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.L("design:type",Object)],xi.prototype,"hoverOverlays_",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],xi.prototype,"nowPlaying",void 0);_.m([_.K(),_.L("design:type",Boolean)],xi.prototype,"isVideoPlaying",void 0);_.m([_.K(),_.L("design:type",Object)],xi.prototype,"disableRounding",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.L("design:type",Object)],xi.prototype,"size",void 0);_.m([_.ob("mouseenter"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],xi.prototype,"onMouseEnter_",null);_.m([_.ob("mouseleave"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],xi.prototype,"onMouseLeave_",null);
_.m([_.Gb("data","disableNowPlaying","miniplayerIsActive"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],xi.prototype,"checkMiniplayer_",null);_.m([_.pR()],xi);var mYw=[xi.prototype];_.a9={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(g,r){return g+":"+_.Ew(r)},
getPlayerListener_:function(g,r,E){g=this.getPlayerListenerKey_(g,r);r=this.playerListeners_.get(g);E&&this.playerListeners_.delete(g);return r},
savePlayerListener_:function(g,r){var E=r.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(g,r),E);return E},
listenToPlayerEvent:function(g,r,E){E=this.savePlayerListener_(r,E);g.addEventListener(r,E)},
listenToPlayerEvents:function(g,r){r.forEach(function(E,B){this.listenToPlayerEvent(g,B,E)}.bind(this))},
unlistenFromPlayerEvent:function(g,r,E){E=this.getPlayerListener_(r,E,!0);g.removeEventListener(r,E)},
unlistenFromPlayerEvents:function(g,r){r.forEach(function(E,B){this.unlistenFromPlayerEvent(g,B,E)}.bind(this))}}};
_.X0=function(){};_.cw6=new _.Vn("PLAYER_API_TOKEN");var LmP=!1,ywA,hpA=!1,dYP;var Eg=function(g,r,E,B,w){_.f5.call(this);var O=this;this.playerId=r;this.webPlayerContextConfig=B;this.zoZ=w;this.uPC=!1;this.api={};this.uUf=this.iKF=null;this.l4O=new _.GZ;this.mK={};this.jKq=this.nLR=this.elementId=this.qno=this.config=null;this.x5m=!1;this.l0=this.t5f=null;this.aCO={};this.zAr=["onReady"];this.lastError=null;this.shJ=NaN;this.sB7={};this.igu=0;this.yw=this.targetElement=g;_.oO(this,this.l4O);iez(this);E?this.igu=setTimeout(function(){O.loadNewVideoConfig(E)},0):B&&(Lm4(this),
VQ6(this))};
_.f(Eg,_.f5);Eg.prototype.getId=function(){return this.playerId};
Eg.prototype.loadNewVideoConfig=function(g){if(!this.isDisposed()){this.igu&&(clearTimeout(this.igu),this.igu=0);var r=g||{};r instanceof OB4||(r=new OB4(r));this.config=r;this.setConfig(g);VQ6(this);this.isReady()&&hpn(this)}};
var Lm4=function(g){var r;g.webPlayerContextConfig?r=g.webPlayerContextConfig.rootElementId:r=g.config.attrs.id;g.elementId=r||g.elementId;g.elementId==="video-player"&&(g.elementId=g.playerId,g.webPlayerContextConfig?g.webPlayerContextConfig.rootElementId=g.playerId:g.config.attrs.id=g.playerId);var E;((E=g.yw)==null?void 0:E.id)===g.elementId&&(g.elementId+="-player",g.webPlayerContextConfig?g.webPlayerContextConfig.rootElementId=g.elementId:g.config.attrs.id=g.elementId)};
Eg.prototype.setConfig=function(g){this.qno=g;this.config=Zew(g);Lm4(this);if(!this.nLR){var r;this.nLR=ywn(this,((r=this.config.args)==null?void 0:r.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var E;if((E=this.config)==null?0:E.attrs)g=this.config.attrs,(r=g.width)&&this.yw&&(this.yw.style.width=tq(Number(r)||r,!0)),(g=g.height)&&this.yw&&(this.yw.style.height=tq(Number(g)||g,!0))};
var hpn=function(g){if(g.config&&g.config.loaded!==!0)if(g.config.loaded=!0,!g.config.args||g.config.args.autoplay!=="0"&&g.config.args.autoplay!==0&&g.config.args.autoplay!==!1){var r;g.api.loadVideoByPlayerVars((r=g.config.args)!=null?r:null)}else g.api.cueVideoByPlayerVars(g.config.args)},dY4=function(g){var r=!0,E=g.getPlayerElement();
E&&g.config&&(r=E.dataset.version===vOb(g));return r&&!!_.XS("yt.player.Application.create")},VQ6=function(g){if(!g.isDisposed()&&!g.x5m){var r=dY4(g);
if(r&&(g.getPlayerElement()?"html5":null)==="html5")g.jKq="html5",g.isReady()||TpD(g);else if(gWw(g),g.jKq="html5",r&&g.l0&&g.targetElement)g.targetElement.appendChild(g.l0),TpD(g);else{g.config&&(g.config.loaded=!0);var E=!1;g.t5f=function(){E=!0;var B=rNn(g,"player_bootstrap_method")?_.XS("yt.player.Application.createAlternate")||_.XS("yt.player.Application.create"):_.XS("yt.player.Application.create");var w=g.config?Zew(g.config):void 0;B&&B(g.targetElement,w,g.webPlayerContextConfig,g.zoZ);TpD(g)};
g.x5m=!0;r?g.t5f():(_.xy(vOb(g),g.t5f),(r=EW6(g))&&pSA(r||""),BqA(g)&&!E&&_.vN("yt.player.Application.create",null))}}};
Eg.prototype.getPlayerElement=function(){var g=_.rr(document,this.elementId);!g&&this.yw&&this.yw.querySelector&&(g=this.yw.querySelector("#"+this.elementId));return g};
var TpD=function(g){if(!g.isDisposed()){var r=g.getPlayerElement(),E=!1;r&&r.getApiInterface&&r.getApiInterface()&&(E=!0);if(E){g.x5m=!1;if(!rNn(g,"html5_remove_not_servable_check_killswitch")){var B;if((r==null?0:r.isNotServable)&&g.config&&(r==null?0:r.isNotServable((B=g.config.args)==null?void 0:B.video_id)))return}wCD(g)}else g.shJ=setTimeout(function(){TpD(g)},50)}},wCD=function(g){iez(g);
g.uPC=!0;var r=g.getPlayerElement();if(r){g.iKF=SiZ(g,r,"addEventListener");g.uUf=SiZ(g,r,"removeEventListener");var E=r.getApiInterface();E=E.concat(r.getInternalApiInterface());for(var B=g.api,w=0;w<E.length;w++){var O=E[w];B[O]||(B[O]=SiZ(g,r,O))}}for(var M in g.mK)g.mK.hasOwnProperty(M)&&g.iKF&&g.iKF(M,g.mK[M]);hpn(g);g.nLR&&g.nLR(g.api);g.l4O.publish("onReady",g.api)},SiZ=function(g,r,E){var B=r[E];
return function(){var w=_.fI.apply(0,arguments);try{return g.lastError=null,B.apply(r,w)}catch(O){if(E!=="sendAbandonmentPing")throw O.params=E,g.lastError=O,w=new _.Rj("PlayerProxy error in method call",{error:O,method:E,playerId:g.playerId}),w.level="WARNING",w;}}},iez=function(g){g.uPC=!1;
if(g.uUf)for(var r in g.mK)g.mK.hasOwnProperty(r)&&g.uUf(r,g.mK[r]);for(var E in g.sB7)g.sB7.hasOwnProperty(E)&&clearTimeout(Number(E));g.sB7={};g.iKF=null;g.uUf=null;r=g.api;for(var B in r)r.hasOwnProperty(B)&&(r[B]=null);r.addEventListener=function(w,O){g.addEventListener(w,O)};
r.removeEventListener=function(w,O){g.removeEventListener(w,O)};
r.destroy=function(){g.dispose()};
r.getLastError=function(){return g.getLastError()};
r.getPlayerType=function(){return g.getPlayerType()};
r.getCurrentVideoConfig=function(){return g.qno};
r.loadNewVideoConfig=function(w){g.loadNewVideoConfig(w)};
r.isReady=function(){return g.isReady()}};
Eg.prototype.isReady=function(){return this.uPC};
Eg.prototype.addEventListener=function(g,r){var E=this;this.isDisposed();var B=ywn(this,r);B&&(_.mA(this.zAr,g)||this.mK[g]||(r=OXb(this,g),this.iKF&&this.iKF(g,r)),this.l4O.subscribe(g,B),g==="onReady"&&this.isReady()&&setTimeout(function(){B(E.api)},0))};
Eg.prototype.removeEventListener=function(g,r){this.isDisposed()||(r=ywn(this,r))&&this.l4O.unsubscribe(g,r)};
var ywn=function(g,r){var E=r;if(typeof r==="string"){if(g.aCO[r])return g.aCO[r];E=function(){var B=_.fI.apply(0,arguments),w=_.XS(r);if(w)try{w.apply(_.ED,B)}catch(O){throw B=new _.Rj("PlayerProxy error when executing callback",{error:O}),B.level="ERROR",B;}};
g.aCO[r]=E}return E?E:null},OXb=function(g,r){var E=function(B){var w=function(){g.isDisposed();
if(!g.isDisposed())try{g.l4O.publish(r,B!=null?B:void 0)}catch(u){var M=new _.Rj("PlayerProxy error when creating global callback",{error:u.message,event:r,playerId:g.playerId,data:B,originalStack:u.stack,componentStack:u.componentStack});M.level="WARNING";throw M;}};
if(rNn(g,"web_player_publish_events_immediately"))w();else{var O=setTimeout(function(){w();_.jn.remove(g.sB7,String(O))},0);
_.jn.add(g.sB7,String(O),!0)}};
return g.mK[r]=E};
Eg.prototype.getPlayerType=function(){return this.jKq||(this.getPlayerElement()?"html5":null)};
Eg.prototype.getLastError=function(){return this.lastError};
var gWw=function(g){g.cancel();iez(g);g.jKq=null;g.config&&(g.config.loaded=!1);var r=g.getPlayerElement();r&&(dY4(g)||!BqA(g)?g.l0=r:(r&&r.destroy&&r.destroy(),g.l0=null));g.targetElement&&_.fV(g.targetElement)};
Eg.prototype.cancel=function(){this.t5f&&_.VwP(vOb(this),this.t5f);clearTimeout(this.shJ);this.x5m=!1};
Eg.prototype.disposeInternal=function(){gWw(this);if(this.l0&&this.config&&this.l0.destroy)try{this.l0.destroy()}catch(r){var g=new _.Rj("PlayerProxy error during disposal",{error:r});g.level="ERROR";throw g;}this.aCO=null;for(g in this.mK)this.mK.hasOwnProperty(g)&&delete this.mK[g];this.qno=this.config=this.api=null;delete this.targetElement;delete this.yw;_.f5.prototype.disposeInternal.call(this)};
var BqA=function(g){var r,E;g=(r=g.config)==null?void 0:(E=r.args)==null?void 0:E.fflags;return!!g&&g.indexOf("player_destroy_old_version=true")!==-1},vOb=function(g){return g.webPlayerContextConfig?g.webPlayerContextConfig.jsUrl:(g=g.config.assets)?g.js:""},EW6=function(g){return g.webPlayerContextConfig?g.webPlayerContextConfig.cssUrl:(g=g.config.assets)?g.css:""},rNn=function(g,r){if(g.webPlayerContextConfig)var E=g.webPlayerContextConfig.serializedExperimentFlags;
else{var B;if((B=g.config)==null?0:B.args)E=g.config.args.fflags}return(E||"").split("&").includes(r+"=true")},Zew=function(g){for(var r={},E=_.U(Object.keys(g)),B=E.next();!B.done;B=E.next()){B=B.value;
var w=g[B];r[B]=typeof w==="object"?_.jn.clone(w):w}return r};var Bql={},EWJ="player_uid_"+(Math.random()*1E9>>>0);var NF=function(g,r,E,B,w,O){r=r===void 0?document.createElement("div"):r;this.webPlayerContextConfig=g;this.container=r;this.commandResolver=E;this.apiResolver=OXc();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.uF;B||O?Uiw(this):M$6(this);this.pendingPlayerResponse=B;this.pendingWatchNextResponse=w;this.pendingPlayerVars=O;qin(this)};
NF.prototype.loadVideoWithPlayerResponse=function(g,r,E){this.loadVideo(g,r,E)};
NF.prototype.loadVideoWithPlayerVars=function(g){return this.loadVideo(void 0,void 0,g)};
NF.prototype.destroy=function(g){if(g=_.rr(document,g))g=EWJ+"_"+_.Ew(g),(g=Bql[g])&&g.dispose()};
var lmU=function(g,r){var E;_.q(function(B){if(B.nextAddress==1)return g.pendingWatchNextResponse=r,g.synchronousApi?(E=g.synchronousApi,B.jumpTo(2)):_.D(B,g.api,3);B.nextAddress!=2&&(E=B.yieldResult);uBD(g,E);g.pendingWatchNextResponse&&(E.updateVideoData({raw_watch_next_response:g.pendingWatchNextResponse}),g.pendingWatchNextResponse=void 0);_.Q3(B)})},uBD=function(g,r){var E;
if(!(r==null?0:(E=r.isReady)==null?0:E.call(r))){var B;_.el(new _.Rj("playerApi is falsey",{synchronousApi:g.synchronousApi,apiResolved:g.apiResolver.resolved,playerApiUndefined:r===void 0,playerApiNull:r===null,playerApiReady:(r==null?void 0:(B=r.isReady)==null?void 0:B.call(r))===!0,playerApiMethods:r?Object.keys(r):[]}))}},Din=function(g,r){if(typeof g[r]==="function")return g[r]()},oWb=function(g){var r=window,E,B=(E=r.ytplayer)==null?void 0:E.bootstrapPlayerContainer;
if((E=B==null?void 0:B.firstElementChild)&&_.Kc(E,"html5-video-player")){var w,O,M=(w=r.ytplayer)==null?void 0:(O=w.bootstrapWebPlayerContextConfig)==null?void 0:O.contextId;w=g.webPlayerContextConfig.contextId;if(M&&M===w){B!==g.container&&(B=!1,Din(E,"getPlayerState")===2&&(B=!0),g.container.appendChild(E),B||Din(E,"playVideo"));var u;if((u=r.ytplayer)==null?0:u.bootstrapPlayerResponse)g.bootstrapPlayerResponse=r.ytplayer.bootstrapPlayerResponse}}},qin=function(g){var r,E,B,w,O;
_.q(function(M){if(M.nextAddress==1)return g.pageReadyOrDataAvailable?M.jumpTo(2):_.D(M,g.pageReadyOrDataAvailableResolver.promise,2);if(M.nextAddress!=4)return!_.Y("kevlar_player_unified_player_loading")||VQJ()&&ZeD()?M.jumpTo(4):_.D(M,gWL(),4);oWb(g);if(g.pendingPlayerResponse||g.pendingPlayerVars)r=rNB(g.pendingPlayerResponse,g.pendingWatchNextResponse,g.pendingPlayerVars),g.pendingPlayerResponse&&g.pendingPlayerResponse===g.bootstrapPlayerResponse&&(r.loaded=!0),g.bootstrapPlayerResponse=void 0;
E=SiY(g.container,r,g.webPlayerContextConfig);((B=r)==null?0:B.loaded)&&g.pendingWatchNextResponse?(lmU(g,g.pendingWatchNextResponse),g.pendingPlayerResponse=void 0,g.pendingPlayerVars=void 0):G0T(g);w=function(u){E.removeEventListener("onReady",w);g.synchronousApi=u;g.apiResolver.resolve(u)};
E.addEventListener("onReady",w);g.commandResolver!==void 0&&(O=g.commandResolver,E.addEventListener("innertubeCommand",function(u){O(u)}));
_.Q3(M)})};
NF.prototype.loadVideo=function(g,r,E){var B=this,w,O,M,u,l,Q,z,k,H;return _.q(function(R){if(R.nextAddress==1)return B.pendingPlayerResponse=g,B.pendingWatchNextResponse=r,B.pendingPlayerVars=E,Uiw(B),B.synchronousApi?(w=B.synchronousApi,R.jumpTo(2)):_.D(R,B.api,3);R.nextAddress!=2&&(w=R.yieldResult);uBD(B,w);M=new Promise(function(A){O=A});
u=function(){var A=w.getPlayerResponse();A&&(w.removeEventListener("onVideoDataChange",u),O(A))};
w.addEventListener("onVideoDataChange",u);if(B.pendingPlayerResponse||B.pendingPlayerVars)B.pendingPlayerResponse&&B.pendingPlayerResponse===B.bootstrapPlayerResponse?(O(B.pendingPlayerResponse),B.pendingWatchNextResponse&&lmU(B,B.pendingWatchNextResponse)):(l=rNB(B.pendingPlayerResponse,B.pendingWatchNextResponse,B.pendingPlayerVars),(H=(Q=B.pendingPlayerResponse)==null?void 0:(z=Q.playerConfig)==null?void 0:(k=z.playbackStartConfig)==null?void 0:k.startPaused)?w.cueVideoByPlayerVars(l.args):w.loadVideoByPlayerVars(l.args)),
G0T(B),B.bootstrapPlayerResponse=void 0;return R.return(M)})};
var M$6=function(g){if(document.readyState==="complete"||document.readyState==="interactive")Uiw(g);else{var r=function(){document.removeEventListener("DOMContentLoaded",r);Uiw(g)};
document.addEventListener("DOMContentLoaded",r)}},Uiw=function(g){g.pageReadyOrDataAvailable=!0;
g.pageReadyOrDataAvailableResolver.resolve()},G0T=function(g){g.pendingPlayerResponse=void 0;
g.pendingWatchNextResponse=void 0;g.pendingPlayerVars=void 0};
_.hx.Object.defineProperties(NF.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var I9=function(g){$7.call(this,g===void 0?"document_active":g);var r=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(E){r.transition("document_disposed",{event:E})});
window.addEventListener("beforeunload",function(E){r.transition("document_disposed_preventable",{event:E})});
window.addEventListener("unload",function(E){r.transition("document_disposed",{event:E});r.hasRun=new Map})};
_.f(I9,$7);
I9.prototype.runPreventableDispose=function(g,r){if(!this.hasRun.get("document_disposed_preventable")){g(r==null?void 0:r.event);var E,B;if((r==null?0:(E=r.event)==null?0:E.defaultPrevented)||(r==null?0:(B=r.event)==null?0:B.returnValue)){r.event.returnValue||(r.event.returnValue=!0);r.event.defaultPrevented||r.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")};
I9.prototype.runDispose=function(g,r){this.hasRun.get("document_disposed")?this.transition("document_active"):(g(r==null?void 0:r.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
I9.prototype.runFlush=function(g,r){g(r==null?void 0:r.event);this.transition("document_active")};
I9.prototype.runActive=function(){};var m1=function(g){$7.call(this,g===void 0?"document_visibility_unknown":g);var r=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(E){document.visibilityState==="visible"?r.transition("document_visible",{event:E}):r.transition("document_hidden",
{event:E})});
_.Y("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(E){r.transition("document_backgrounded",{event:E})}),window.addEventListener("focus",function(E){r.transition("document_foregrounded",{event:E})}))};
_.f(m1,$7);m1.prototype.runVisible=function(g,r){g(r==null?void 0:r.event);_.Y("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
m1.prototype.runHidden=function(g,r){g(r==null?void 0:r.event);_.Y("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
m1.prototype.runBackgrounded=function(g,r){g(r==null?void 0:r.event)};
m1.prototype.runForegrounded=function(g,r){g(r==null?void 0:r.event)};var cd=function(){this.teardownLifecycle=new I9;this.visibilityLifecycle=new m1};
cd.prototype.install=function(){var g=_.fI.apply(0,arguments),r=this;g.forEach(function(E){r.teardownLifecycle.install(E)});
g.forEach(function(E){r.visibilityLifecycle.install(E)})};var ie=function(){cd.call(this);var g={};this.install((g.document_disposed={callback:this.abortSlisAndFlush},g));_.Y("combine_ve_grafts")&&(g={},this.install((g.document_disposed={callback:this.flushInteractionLoggingAttachVes},g)));g={};this.install((g.flush_logs={callback:this.logFinalPayload},g));_.Y("web_log_cfg_cee_ks")||_.fC(_.F6,QSn)};
_.f(ie,cd);var UiD=function(){ie.loggingInstance||(ie.loggingInstance=new ie);return ie.loggingInstance};
ie.prototype.logFinalPayload=function(){if(_.Y("web_fp_via_jspb")){var g=new kxZ,r=_.PE();r&&_.H$(g,1,r);r=_.Y("jspb_sparse_encoded_pivot")?new sq([{}]):new sq;_.ws(r,380,HCb,g);xcS("finalPayload",r);_.Y("web_fp_via_jspb_and_json")&&_.Jn("finalPayload",{csn:_.PE()})}else _.Jn("finalPayload",{csn:_.PE()})};
ie.prototype.abortSlisAndFlush=function(){c66(a1);Xd!=null&&Xd.flush()};
ie.prototype.flushInteractionLoggingAttachVes=function(){q_b(_.pW())};
var QSn=function(){var g=_.Ca("CLIENT_EXPERIMENT_EVENTS");if(g){var r=aQA();g=_.U(g);for(var E=g.next();!E.done;E=g.next())E=E.value,r(E)&&_.Jn("genericClientExperimentEvent",{eventType:E});delete _.eS.CLIENT_EXPERIMENT_EVENTS}};var zZT={};
zZT.YtPlayerBehavior=[_.a9.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 g=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.uF;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;M$J(function(){g.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.P3(this,"pan-down"),_.Y("kevlar_pinch_fullscreen")&&_.Rf().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.Y("kevlar_pinch_fullscreen")&&_.Rf().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(g,r,E){var B=this;BX(this.useUnifiedPlayer_());if(this.mainAppPlayer_)BX(!1,"MainAppPlayer already created.");else{var w=_.Y("kevlar_player_container_query_killswitch")?this.$.container:_.S3(this.hostElement).querySelector("#container");this.mainAppPlayer_=new NF(this.getWebPlayerContextConfig_(),w,function(O){return _.Qy(O,B.hostElement)},g,r,E);
this.mainAppPlayer_.api.then(function(O){B.player_=O;B.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&qnD.resolve(O)})}},
loadVideoWithPlayerResponse:function(g,r){var E=this;if(this.useUnifiedPlayer_()){var B=this.watchNextData,w,O=(w=g.videoDetails)==null?void 0:w.videoId,M,u,l;(w=(M=this.watchNextData)==null?void 0:(u=M.currentVideoEndpoint)==null?void 0:(l=u.watchEndpoint)==null?void 0:l.videoId)&&O!=w&&(B=void 0,_.Y("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(g,B,r):this.createMainAppPlayer_(g,B,r);this.mainAppPlayer_.api.then(function(){_.Sh(E.hostElement,
"yt-player-updated")})}else this.update(mYD(g,r))},
loadVideoWithPlayerVars:function(g){var r=this;this.useUnifiedPlayer_()?(_.Y("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(g):this.createMainAppPlayer_(void 0,void 0,g),this.mainAppPlayer_.api.then(function(){_.Sh(r.hostElement,"yt-player-updated")})):this.update({args:g})},
update:function(g){var r=this;if(this.useUnifiedPlayer_())BX(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(g);var E=E0Y(g.args);E&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==E&&Object.assign(g.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(g).then(function(B){_.Sh(r.hostElement,"yt-player-updated",_.Y("kevlar_player_updated_obsolete_player_killswitch")?
B:void 0)})}_.FR(new _.Rj("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(g){var r=this,E;return _.q(function(B){if(B.nextAddress==1)return _.D(B,r.getPlayerPromise(),2);E=B.yieldResult;if(!E)throw Error("Ah");g&&r.updatePlayerPlaylist_(g);_.Q3(B)})},
acquireApi_:function(g){var r=this;if(this.useUnifiedPlayer_())BX(!1,"Invalid method call in kevlar_unified_player.");else return _.F6.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(BX(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(E){r.shouldAutoplay_(g)?E.loadVideoByPlayerVars(g.args):E.cueVideoByPlayerVars(g.args)})):this.initPlayerPromise_=this.initPlayerContainer_(g),this.initPlayerPromise_},
initPlayerContainer_:function(g){var r=this;if(this.useUnifiedPlayer_())BX(!1,"Invalid method call in kevlar_unified_player.");else return BX(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.el(Error("Bh")),BX(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.Y("kevlar_player_container_query_killswitch")?this.$.container:_.S3(this.hostElement).querySelector("#container"),gWL().then(function(){var E=r.initPlayer_(g);r.playerResolver_.resolve(E);
return E})},
onPlayerReady_:function(g,r){this.useUnifiedPlayer_()?BX(!1,"Invalid method call in kevlar_unified_player."):(g.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&qnD.resolve(g),r(g))},
maybeCallApiMethodOnElement_:function(g,r){if(typeof g[r]==="function")return g[r]()},
maybeAdoptBootstrapPlayer_:function(){var g=window,r,E=(r=g.ytplayer)==null?void 0:r.bootstrapPlayerContainer;if((r=E==null?void 0:E.firstElementChild)&&r.classList.contains("html5-video-player")){var B,w,O=(B=g.ytplayer)==null?void 0:(w=B.bootstrapWebPlayerContextConfig)==null?void 0:w.contextId;B=this.getWebPlayerContextConfig_().contextId;if(O&&O===B){E!==this.playerContainer_&&(E=!1,this.maybeCallApiMethodOnElement_(r,"getPlayerState")===2&&(E=!0),this.playerContainer_.appendChild(r),E||this.maybeCallApiMethodOnElement_(r,
"playVideo"));var M;if((M=g.ytplayer)==null?0:M.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=g.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(g){var r=this;if(this.useUnifiedPlayer_())BX(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(E){r.maybeAdoptBootstrapPlayer_();var B=g?cwJ(g):void 0;B&&B==r.bootstrapPlayerResponse_&&(g.loaded=!0);B=r.playerContainer_;var w=r.getWebPlayerContextConfig_();B=SiY(B,g,w);r.player_=B;r.onPlayerReadyEvent_=r.onPlayerReady_.bind(r,r.player_,E);r.player_.addEventListener("onReady",r.onPlayerReadyEvent_);r.player_.addEventListener("innertubeCommand",
r.onPlayerInnerTubeCommand_.bind(r));_.Y("enable_web_shorts_captions_language_command")&&r.player_.addEventListener("captionschanged",r.storePlayerCaptionLanguage_.bind(r))})},
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(g){g.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(g){g.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var g=_.rM().resolve(_.vK).getCurrentPage();g&&g.getScrollTop()<=0?_.P3(this,"pan-down"):_.P3(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(g){g.isFullscreen()||g.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(g){g.isFullscreen()&&g.toggleFullscreen()})},
updatePlayerPlaylist_:function(g){var r=this,E,B,w;return _.q(function(O){if(O.nextAddress==1)return E=_.rM().resolve(_.gM(_.t6)),B=!!(E&&E.playlistComponent&&E.playlistComponent.loopOn),_.D(O,r.getPlayerPromise(),2);var M=w=O.yieldResult,u=M.updatePlaylist,l=[];if(_.Y("kevlar_player_playlist_use_local_index")){var Q,z;var k=(z=(Q=g.localCurrentIndex)!=null?Q:g.currentIndex)!=null?z:0}else{var H;k=(H=g.currentIndex)!=null?H:0}if(g.contents)for(Q=0;Q<g.contents.length;Q++)if((z=g.contents[Q])&&z.playlistPanelVideoRenderer)if(VpX(z)){z=
z.playlistPanelVideoRenderer;H="";z.shortBylineText&&(H=_.Vp(z.shortBylineText));var R="";z.title?R=_.Vp(z.title):z.unplayableText&&(R=_.Vp(z.unplayableText));l.push({author:H,title:R,encrypted_id:z.videoId})}else Q<k&&--k;u.call(M,{index:k,list:g.playlistId?g.playlistId:"",loop:B,playlist_title:g.title,playlist_length:l.length,video:l,fetch:0,external_list:"1",title:g.title?g.title:"",playlist_author:g.ownerName?_.Vp(g.ownerName):void 0});_.Q3(O)})},
focusOnPlayer:function(){_.Lk(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var g=this.playerContainer_.querySelector(".html5-video-player");g&&(_.L4(_.rM().resolve(_.PK)),g.focus())}})},
preparePlayer:function(){var g=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(r){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")r();else{var E=function(){document.removeEventListener("DOMContentLoaded",E);r()};
document.addEventListener("DOMContentLoaded",E)}})).then(function(){return gWL()}).then(function(){g.initPlayerPromise_||g.preparePlayerJobId_||(g.preparePlayerJobId_=_.fC(_.F6,function(){g.initPlayerPromise_||(g.initPlayerPromise_=g.initPlayerContainer_())}))}):_.FR(new _.Rj("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(g){this.useUnifiedPlayer_()?BX(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(g)||(g.args.autoplay="0")},
shouldAutoplay_:function(g){if(this.useUnifiedPlayer_())BX(!1,"Invalid method call in kevlar_unified_player.");else{var r=this.get("args.el",g);return r&&r!="detailpage"&&this.isMiniplayerActive_()||r&&(r=="sponsorshipsoffer"||r=="handlesclaiming")&&this.get("args.autoplay",g)=="0"?!1:(g=cwJ(g))&&this.get("playerConfig.playbackStartConfig.startPaused",g)?!1:!0}},
isMiniplayerActive_:function(){return _.rM().resolve(_.ea).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var g=this.getPlayer();if(g){var r=g.getPlayerState();_.Y("kevlar_player_check_ad_state_on_stop")&&(r=g.getPlayerState(g.getPresentingPlayerType()));r!=5&&g.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(g,r,E){E=E===void 0?!1:E;var B=this,w,O,M,u;return _.q(function(l){if(l.nextAddress==1)return r||(r=B.hostElement),w=B.useUnifiedPlayer_()?!!B.mainAppPlayer_:!!B.initPlayerPromise_,w?_.D(l,B.getPlayerPromise(),2):(E?g.insertBefore(r,g.firstChild):g.appendChild(r),l.return());O=l.yieldResult;M=O.getPlayerState(O.getPresentingPlayerType());u=!1;if(M==-1||M==1||M==3)u=!0;E?g.insertBefore(r,g.firstChild):g.appendChild(r);u&&O.playVideo();O.setSize(NaN,NaN);_.Q3(l)})},
watchNextDataChanged_:function(g){var r=this;g&&(this.useUnifiedPlayer_()&&_.Y("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&lmU(this.mainAppPlayer_,g):this.getPlayerPromise().then(function(E){E.updateVideoData(r.computeWatchNextPlayerVars_(g))}))},
computeWatchNextPlayerVars_:function(g){if(this.useUnifiedPlayer_()&&_.Y("kevlar_unified_player_update_watch_next_killswitch"))BX(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:g}},
maybeSendAbandonmentPing_:function(){var g=this.getPlayer();g&&g.getPlayerState()!=5&&g.getPlayerState()!=0&&g.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var g=_.Ca("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(g=Object.assign({},g),g.rootElementId=this.playerId);g.serializedExperimentIds&&g.serializedExperimentFlags||_.el(Error("Ch"));return g},
hasWebPlayerContextConfig_:function(){return!!_.Ca("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(g){this.useUnifiedPlayer_()?BX(!1,"Invalid method call in kevlar_unified_player."):_.Qy(g,this.hostElement)},
storePlayerCaptionLanguage_:function(){this.getPlayerPromise().then(function(g){var r=_.rM().resolve(_.Qx);g=g==null?void 0:g.getOption("captions","track");var E=_.qr("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(g){var B,w=(B=_.QU(_.MQD,E)())==null?void 0:B.value,O;B=typeof(g==null?void 0:g.translationLanguage)==="object"&&((O=g.translationLanguage)==null?void 0:O.languageName)||g.displayName||"";w!==B&&r.store.dispatch(_.za("stringEntity",E,{key:E,value:B.toString()}))}else r.store.dispatch(_.za("stringEntity",
E,{key:E,value:"CAPTIONS_UNAVAILABLE"}))})},
useUnifiedPlayer_:function(){var g=_.Y("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.Y("kevlar_unified_player")||g}}];var k0T={};k0T.YtPlaylistPanelBehavior=[_.T.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(g){g=g.detail;if(g.actions.loop!=void 0||g.actions["yt-icons:loop"]!=void 0)this.loopOn=g.actions.loop||g.actions["yt-icons:loop"];if(g.actions.shuffle!=void 0||g.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=g.actions.shuffle||g.actions["yt-icons:shuffle"]},
setMenuData_:function(g){if(!g||!g.playlistButtons||g.isInfinite)return null;for(var r=g.playlistButtons.menuRenderer.topLevelButtons,E=r.length,B=0;B<E;B++)if(r[B].toggleButtonRenderer){var w=r[B].toggleButtonRenderer;w.defaultIcon.iconType=="LOOP"&&this.loopOn?w.isToggled=this.loopOn:w.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(w.isToggled=this.shuffleOn)}return g.playlistButtons}}];var HXb=function(g){BE.call(this,g,132);this.isDocument=g===document.documentElement};
_.f(HXb,BE);HXb.prototype.calculateScrollDelta=function(g,r,E){var B=0;g<r?B=g<r-100?-48:-8:g>r+E&&(B=g>r+E+100?48:8);return B};
HXb.prototype.JSC$9432_onMouseMove=function(g){this.isDocument||(g.clientX=g.event_.pageX,g.clientY=g.event_.pageY);BE.prototype.JSC$9432_onMouseMove.call(this,g)};var VR=function(){var g=_.Hi.apply(this,arguments)||this;g._noAccessors=!0;g.scrollElement=document.documentElement;g.JSC$12404_dragListGroup=null;g.dragScrollSupport=null;g.onDraggerCreated=function(r){var E=r.JSC$9428_dragger;E.scrollTarget_=g.scrollElement;r=r.draggerEl;E&&r.menuOpened&&E.setEnabled(!1)};
g.onDragStart=function(r){var E=r.draggerEl;r=r.currDragItem;var B=Object.assign({},r==null?void 0:r.data);B.trackingParams=void 0;E.data=B;E.style.position="absolute";E.style.width=(r==null?void 0:r.clientWidth)+"px";E.style.zIndex="2030";E.onDrag&&E.onDrag();_.Y("web_owner_document_fallback_killswitch")?(r=document.querySelector("ytd-app"))&&_.S3(r).appendChild(E):(r=_.tL(E),(B=r.querySelector("ytd-app"))?_.S3(B).appendChild(E):r.body.appendChild(E));g.dragScrollSupport=new HXb(g.scrollElement);
g.dragScrollSupport.horizontalScrolling_=!1;E=g.dragScrollSupport;E.constrainScroll_=!!E.margin_&&!1};
g.onDrop=function(r){g.handleDrop(r);g.dragScrollSupport&&(_.TM(g.dragScrollSupport),g.dragScrollSupport=null)};
g.onReorderableScroll=function(){if(g.JSC$12404_dragListGroup){var r=g.JSC$12404_dragListGroup;Dr6(r,r.currDragItem_)}};
return g};
_.f(VR,_.Hi);VR.prototype.detached=function(){_.pCD(this)};
_.pCD=function(g){g.JSC$12404_dragListGroup&&(_.Qu(g.JSC$12404_dragListGroup,BzD,g.onDragStart),_.Qu(g.JSC$12404_dragListGroup,Urw,g.onDragStart),g.JSC$12404_dragListGroup.dispose(),g.JSC$12404_dragListGroup=null);g.dragScrollSupport&&(_.TM(g.dragScrollSupport),g.dragScrollSupport=null);g.scrollElement.removeEventListener("scroll",g.onReorderableScroll)};
_.YiT=function(g,r,E,B){B=B===void 0?"":B;_.pCD(g);E&&(g.scrollElement=E);g.JSC$12404_dragListGroup=new t2;g.JSC$12404_dragListGroup.hysteresisDistance_=2;q9I(g.JSC$12404_dragListGroup,r);g.JSC$12404_dragListGroup.draggerElClasses_=oX("dragging").split(" ");B&&ucm(g.JSC$12404_dragListGroup,function(w){var O=w||document,M=null;O.getElementsByClassName?M=O.getElementsByClassName(B)[0]:M=iLn("*",B,w);return M||w});
_.j_(g.JSC$12404_dragListGroup,rjT,g.onDraggerCreated);_.j_(g.JSC$12404_dragListGroup,BzD,g.onDragStart);_.j_(g.JSC$12404_dragListGroup,Urw,g.onDrop);g.JSC$12404_dragListGroup.init();g.scrollElement.addEventListener("scroll",g.onReorderableScroll,{passive:!0})};
VR.prototype.handleDrop=function(){};
_.hx.Object.defineProperties(VR.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.m([_.K({value:100}),_.L("design:type",Number)],VR.prototype,"scrollMargin",void 0);_.m([_.pR()],VR);_.RZZ=[VR.prototype];_.hi={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(g,r,E){var B=this.getClickTarget_(r);if(B&&this.isClickAllowed_(B)){r.preventDefault();g=(0,_.jn.unsafeClone)(g);var w=this.getContainerBoundingRect();r=this.getRelativeClickXy_(r,w);this.expandEndpointUrlMacros_(g,{NX:r[0],NY:r[1],NB:B.code});E&&this.truncateWebCommendMetadataUrl_(g);_.Sh(this.hostElement,"yt-navigate",{endpoint:g})}},
getClickTarget_:function(g){if(!this.clickTargetMap)return null;g=_.Z1(g)||[];g=_.U(g);for(var r=g.next();!r.done;r=g.next()){r=r.value;if(r===_.S3(this.hostElement).querySelector("#menu"))break;if(r=this.clickTargetMap.get(r.id))return r}return null},
getRelativeClickXy_:function(g,r){var E=g.detail.x,B=g.detail.y;_.Y("use_on_click_for_desktop_display_ad")&&g.clientX!=null&&g.clientY!=null&&(E=g.clientX,B=g.clientY);g=Math.round(E-r.left);r=Math.round(B-r.top);return g<0||r<0?[null,null]:[g,r]},
getContainerBoundingRect:function(){return _.S3(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(g,r){for(var E=_.U(g.loggingUrls||[]),B=E.next();!B.done;B=E.next())B=B.value,B.baseUrl&&(B.baseUrl=AL(B.baseUrl,r));g.urlEndpoint&&g.urlEndpoint.url&&(g.urlEndpoint.url=AL(g.urlEndpoint.url,r));g.commandMetadata&&g.commandMetadata.webCommandMetadata&&g.commandMetadata.webCommandMetadata.url&&(g.commandMetadata.webCommandMetadata.url=AL(g.commandMetadata.webCommandMetadata.url,r))},
truncateWebCommendMetadataUrl_:function(g){if(g.commandMetadata&&g.commandMetadata.webCommandMetadata&&g.commandMetadata.webCommandMetadata.url){var r=g.commandMetadata.webCommandMetadata.url,E=r.indexOf("&pp=");if(E>0){var B=r.indexOf("&",E+1);g.commandMetadata.webCommandMetadata.url=B>E&&B<r.length?r.slice(0,E)+r.slice(B):r.slice(0,E)}}},
configureClickTargets:function(g,r,E){this.containerId=g;this.clickTargetMap=new Map;g=_.U(r);for(r=g.next();!r.done;r=g.next())if(r=r.value,r.location){var B=E.get(r.location);B&&(_.UN(_.S3(this.hostElement).querySelector("#"+B),"yt-simple-endpoint",this.isClickAllowed_(r)),this.clickTargetMap.set(B,r))}},
isClickAllowed_:function(g){return g.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||g.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||g.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||g.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.Zu={};
_.Zu.YtLazyListBehavior=[_.Zl.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 g=(this.constructor.generatedFrom||this).observers;g||(g=[]);g.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
g}},
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 g=this.renderElementsOutsideVisibleArea_;g&&(Y3m(g,4),g.processSignal())},
deepLazyListObserver_:function(g){var r=this;if(g){var E=g.value||[];if(this.itemsPath==g.path){var B=this.nonDeferredItemCount;g=0;B>-1&&E.length>B&&(g=_.Ca("REMAINING_DOVA_DEFERRED_CHUNKS",-1));g>0?(B>0&&(B=E.slice(0,B),this.setInitialItemsOnDataChanged(B)),(B=this.renderElementsOutsideVisibleArea_)?B.cancel():(B=this.renderElementsOutsideVisibleArea_=new _.vP(2,"eocs"),_.cOD(window,"scroll",function(){return r.renderDeferredElements()})),_.dV(B,function(){r.setInitialItemsOnDataChanged(E)}),_.W0("REMAINING_DOVA_DEFERRED_CHUNKS",
g-1)):this.setInitialItemsOnDataChanged(E)}else if(this.itemsPath+".splices"==g.path)this.onItemsUpdated_(E);
else B="shownItems"+g.path.substr(this.itemsPath.length),this.useSignals&&B==="shownItems.length"||this.notifyPath(B,g.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(g){g&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(g),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(g){g=g.indexSplices;for(var r=0,E=g.length;r<E;r++){var B=g[r];if(B.index<this.shownCount&&(B.removed&&this.splice("shownItems",B.index,B.removed.length),B.addedCount)){var w=B.object.slice(B.index,B.index+B.addedCount);B=["shownItems",B.index,0];B.push.apply(B,w);this.splice.apply(this,B)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(g){this.cancelPendingTasks_();g||(g=[]);this.items_=g;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&&(_.Ka("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.Lk(this,this.tryRenderChunk_)))},
fillRange_:function(g,r){this.canShowMore&&this.items_&&(g=this.items_.slice(g,r),g.unshift("shownItems"),this.push.apply(this,g),this.shownCount=r,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var g=this;this.canShowMore&&_.Ib(this,"renderChunk",function(){g.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.Ka("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.pm(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var g=this.renderElementsOutsideVisibleArea_;g&&(g.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var g=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(g-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=g;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(g){return Math.ceil(1E3/g)},
onCanShowMoreUpdated_:function(g){this.data&&this.items_!==null&&(g?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(g){!this.shouldUseTaskManager()&&this.data&&(!g&&this.canShowMore?(_.AIP(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):g&&this.partiallyRenderedItems_.has(this.items_)&&(_.Y("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var dD;_.yR={};
dD=function(){var g=_.Hi.apply(this,arguments)||this;g.atStart=!0;g.atEnd=!0;g.startIndex=0;g.endIndex=0;g.scrollCount=0;g.initialStartIndex=0;g.disableScrollEventListener=!1;g.useFloorScrolling=!1;g.isSearch=!1;g.dragging=!1;g.dragMouseStart=0;g.dragOffsetStart=0;g.disableWheelScroll=!1;g.centerListItems=!1;g.offset=0;g.minComponentWidth=0;g.marginWidthRight=0;g.marginWidthLeft=0;g.setButtonsStateRequested=!1;g.itemsVisibilityObserver=null;g.fullyVisibleItemsIndices=[];g.JSC$12415_onWheelScroll=function(r){if(g.isSearch&&
!g.disableWheelScroll&&_.Y("desktop_enable_dmpanel_wheel_scroll")){var E=r.shiftKey?Math.abs(r.deltaY)>Math.abs(r.deltaX)?r.deltaY:r.deltaX:r.deltaX;E!==0&&(r.preventDefault(),g.ytLazyListBehavior.fillRemainingListItems(),g.offset+=E,vd(g),g.reposition_())}};
g.onPointerDown=function(r){nWb(g)&&(g.dragMouseStart=r.clientX,g.dragOffsetStart=g.offset,g.dragging=!0)};
g.onPointerMove=function(r){nWb(g)&&g.dragging&&(g.ytLazyListBehavior.fillRemainingListItems(),g.offset=g.dragOffsetStart-(r.clientX-g.dragMouseStart),vd(g),g.reposition_())};
g.onPointerUp=function(){nWb(g)&&(g.dragging=!1)};
return g};
_.f(dD,_.Hi);var sSw=function(g){var r=_.S3(g.hostElement).querySelector("#items").children;if(!r)return 0;var E=0;g=_.U(g.fullyVisibleItemsIndices);for(var B=g.next();!B.done;B=g.next())E+=r[B.value].clientWidth;return E},nWb=function(g){return g.isSearch&&_.Y("desktop_enable_dmpanel_click_drag_scroll")};
dD.prototype.created=function(){this.cachedViewportWidth=_.Ca("initialInnerWidth")||window.innerWidth;this.JSC$12415_cachedViewportHeight=_.Ca("initialInnerHeight")||window.innerHeight;_.Ca("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.W0("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
dD.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.Y("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();fmn(this)};
dD.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.Y("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var g;(g=this.itemsVisibilityObserver)==null||g.disconnect();this.itemsVisibilityObserver=null;var r;(r=this.itemsObserver)==null||r.disconnect()};
var fmn=function(g){var r=_.S3(g.hostElement).querySelector("#scroll-container");if(r){if(!g.itemsVisibilityObserver){var E=window.getComputedStyle(r).marginRight;g.itemsVisibilityObserver=new IntersectionObserver(function(B){$in(g,B)},{root:r,
rootMargin:E,threshold:.98})}if(r=_.S3(g.hostElement).querySelector("#items"))g.itemsObserver=new IYD(r,function(B){jS6(g,B)})}},jS6=function(g,r){ANm(g)&&(Array.from(r.addedNodes).filter(function(E){return E.nodeType===Node.ELEMENT_NODE}).forEach(function(E){g.itemsVisibilityObserver&&g.itemsVisibilityObserver.observe(E)}),Array.from(r.removedNodes).filter(function(E){return E.nodeType===Node.ELEMENT_NODE}).forEach(function(E){g.itemsVisibilityObserver&&g.itemsVisibilityObserver.unobserve(E)}))},
$in=function(g,r){var E=new Set(g.fullyVisibleItemsIndices);
r=_.U(r);for(var B=r.next();!B.done;B=r.next()){B=B.value;var w=B.target.parentElement;w?(w=Array.from(w.children).indexOf(B.target),B.isIntersecting?E.add(w):E.has(w)&&E.delete(w)):_.el(new _.Rj("Parent element not found",B.target.nodeName))}g.fullyVisibleItemsIndices=Array.from(E).sort(function(O,M){return O-M});
E.size===0?_.el(new _.Rj("No visible entries in horizontal list")):(g.startIndex=g.fullyVisibleItemsIndices[0],g.endIndex=g.fullyVisibleItemsIndices[g.fullyVisibleItemsIndices.length-1])},ANm=function(g){g.data?g=(g=g.data)&&g.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===g.itemSizeConstraint:!1:g=!1;
return g};
_.S=dD.prototype;_.S.addScrollEventListeners=function(){var g=_.S3(this.hostElement).querySelector("#scroll-container");g.style.touchAction="pan-y";g.addEventListener("wheel",this.JSC$12415_onWheelScroll);g.addEventListener("pointerdown",this.onPointerDown);g.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.S.removeScrollEventListeners=function(){var g=_.S3(this.hostElement).querySelector("#scroll-container");g.removeEventListener("wheel",this.JSC$12415_onWheelScroll);g.removeEventListener("pointerdown",this.onPointerDown);g.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.S.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.Lk(this,this.setStartIndex,[this.initialStartIndex])};
_.S.reposition_=function(){var g=_.Ca("HTML_DIR")=="rtl"?"":"-",r=_.S3(this.hostElement).querySelector("#items");r&&(r.style.transform="translateX("+g+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.S.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.Lk(this,this.setButtonsState_))};
_.S.setButtonsState_=function(){this.setButtonsStateRequested=!1;var g=_.S3(this.hostElement).querySelector("#items").firstElementChild;if(g){this.minComponentWidth||(this.minComponentWidth=bXw(this,g));g=_.S3(this.hostElement).querySelector("#scroll-container").clientWidth;var r=_.S3(this.hostElement).querySelector("#items").clientWidth,E=this.get(this.ytLazyListBehavior.itemsPath,this);if(E){var B=Math.round(g/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=
Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+B,E.length)-1)}this.ytLazyListBehavior.canShowMore?r+this.minComponentWidth>=this.offset+g&&(this.atEnd=!1):this.atEnd=this.offset+g>=r-20?!0:!1;this.atStart=this.offset<=20}};
_.S.setStartIndex=function(g){if(!this.minComponentWidth){var r=_.S3(this.hostElement).querySelector("#items").firstElementChild;if(!r)return;this.minComponentWidth=bXw(this,r)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*g;vd(this);this.reposition_()};
_.S.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.SB();var g=_.S3(this.hostElement).querySelector("#scroll-container").clientWidth;_.Y("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=bXw(this,_.S3(this.hostElement).querySelector("#items").firstElementChild));g=this.useFloorScrolling?Math.floor(g/this.minComponentWidth)||1:Math.round(g/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&JNn(this);this.offset+=ANm(this)?
sSw(this):g*this.minComponentWidth;vd(this);this.reposition_();this.scrollCount++};
_.S.prevClick_=function(){var g=_.S3(this.hostElement).querySelector("#scroll-container").clientWidth;g=this.useFloorScrolling?Math.floor(g/this.minComponentWidth)||1:Math.round(g/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=ANm(this)?sSw(this):this.minComponentWidth*this.scrollCount-1):this.offset-=ANm(this)?sSw(this):g*this.minComponentWidth;this.centerListItems&&JNn(this);vd(this);this.reposition_()};
_.S.onIronResize_=function(){this.resizeSupportEnabled&&_.Lk(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.S.onItemsTransitionEnd_=function(g){_.yP(g)===_.S3(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.S.onChildElementFocus_=function(g){g=g.target.closest("#items > *");var r=_.S3(this.hostElement).querySelector("#scroll-container");if(r.contains(g)){if(_.Y("web_horizontal_list_behavior_focus_killswitch"))if(g.offsetLeft<this.offset)this.offset=Math.abs(g.offsetLeft)<g.clientWidth?0:g.offsetLeft;else if(g.offsetLeft+g.clientWidth>this.offset+r.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.SB(),this.offset=g.offsetLeft+g.clientWidth-r.clientWidth;else return;else{var E=_.S3(this.hostElement).querySelector("#items"),
B=_.Ca("HTML_DIR")==="rtl",w=B?E.clientWidth-g.offsetLeft:g.offsetLeft;E=B?E.clientWidth-(g.offsetLeft+g.clientWidth):g.offsetLeft+g.clientWidth;var O=B?w>this.offset+r.clientWidth:w<this.offset,M=B?E<this.offset:E>this.offset+r.clientWidth,u=B?O:M;if(B?M:O)r=B?E:w,this.offset=Math.abs(r)<g.clientWidth?0:r;else if(u)this.ytLazyListBehavior.fillRemainingListItems(),_.SB(),this.offset=(B?w:E)-r.clientWidth;else return}vd(this);this.reposition_()}};
_.S.observeShownItems_=function(){this.reset()};
_.S.checkComponentWidthResize=function(){var g=_.S3(this.hostElement).querySelector("#items").firstElementChild;g&&(g=bXw(this,g),this.centerListItems||g!==this.minComponentWidth)&&(this.minComponentWidth=g,this.offset=g*this.scrollCount,this.centerListItems&&JNn(this),vd(this),this.reposition_())};
var bXw=function(g,r){var E=window.getComputedStyle(r).marginRight;E=Math.floor(Number(E.replace("px","")));var B=window.getComputedStyle(r).marginLeft;B=Math.floor(Number(B.replace("px","")));g.centerListItems&&!g.marginWidthRight&&(g.marginWidthRight=E,g.marginWidthLeft=B);return g.resizeSupportEnabled?r.getBoundingClientRect().width+E:r.offsetWidth+E},vd=function(g){var r=_.S3(g.hostElement).querySelector("#scroll-container").clientWidth,E=_.S3(g.hostElement).querySelector("#items").clientWidth;
g.offset<0?g.offset=0:g.offset+r>=E&&(g.offset=E-r)},JNn=function(g){g.offset-=(_.S3(g.hostElement).querySelector("#scroll-container").clientWidth+g.marginWidthRight-g.minComponentWidth)/2-g.marginWidthLeft};
_.hx.Object.defineProperties(dD.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var g=_.Ca("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(g==-1)g=this.JSC$12415_cachedViewportHeight,g=g>1320?5:g>1020?4:g>730?3:g>430?2:1;else if(g==0)return 0;_.W0("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",g-1);g=_.Ca("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(g>-1)return g;g=this.cachedViewportWidth;g=g>1600?6:g>1400?5:g>1300?4:g>1090?5:g>870?4:g>660?3:2;_.W0("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
g);return g},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.Y("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
dD.prototype.observeShownItems_=dD.prototype.observeShownItems_;dD.prototype.onChildElementFocus_=dD.prototype.onChildElementFocus_;dD.prototype.onItemsTransitionEnd_=dD.prototype.onItemsTransitionEnd_;dD.prototype.onIronResize_=dD.prototype.onIronResize_;dD.prototype.prevClick_=dD.prototype.prevClick_;dD.prototype.nextClick_=dD.prototype.nextClick_;dD.prototype.setButtonsState_=dD.prototype.setButtonsState_;dD.prototype.requestButtonsStateUpdate_=dD.prototype.requestButtonsStateUpdate_;
dD.prototype.reposition_=dD.prototype.reposition_;dD.prototype.reset=dD.prototype.reset;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],dD.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.Zu.YtLazyListBehavior),_.L("design:type",Object)],dD.prototype,"ytLazyListBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],dD.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],dD.prototype,"atStart",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],dD.prototype,"atEnd",void 0);_.m([_.K(),_.L("design:type",Object)],dD.prototype,"startIndex",void 0);_.m([_.K(),_.L("design:type",Object)],dD.prototype,"endIndex",void 0);_.m([_.K({value:6}),_.L("design:type",Number)],dD.prototype,"initialCount",void 0);_.m([_.K(),_.L("design:type",Object)],dD.prototype,"scrollCount",void 0);_.m([_.K(),_.L("design:type",Object)],dD.prototype,"initialStartIndex",void 0);
_.m([_.K(),_.L("design:type",Object)],dD.prototype,"disableScrollEventListener",void 0);_.m([_.K(),_.L("design:type",Object)],dD.prototype,"supportComponentResize",void 0);_.m([_.K({value:function(){var g=this;return function(){return g.prevClick_()}}}),
_.L("design:type",Function)],dD.prototype,"boundPrevClick",void 0);_.m([_.K({value:function(){var g=this;return function(){return g.nextClick_()}}}),
_.L("design:type",Function)],dD.prototype,"boundNextClick",void 0);_.m([_.K(),_.L("design:type",Object)],dD.prototype,"useFloorScrolling",void 0);_.m([_.K(),_.L("design:type",Object)],dD.prototype,"isSearch",void 0);_.m([_.K(),_.L("design:type",Object)],dD.prototype,"dragging",void 0);_.m([_.K(),_.L("design:type",Object)],dD.prototype,"dragMouseStart",void 0);_.m([_.K(),_.L("design:type",Object)],dD.prototype,"dragOffsetStart",void 0);
_.m([_.K(),_.L("design:type",Object)],dD.prototype,"disableWheelScroll",void 0);_.m([_.K(),_.L("design:type",Object)],dD.prototype,"centerListItems",void 0);_.m([_.ob("iron-resize"),_.Gb("guideOpened"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],dD.prototype,"onIronResize_",null);_.m([_.ob("transitionend"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],dD.prototype,"onItemsTransitionEnd_",null);
_.m([_.ob("focusin"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],dD.prototype,"onChildElementFocus_",null);_.m([_.Gb("shownItems"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],dD.prototype,"observeShownItems_",null);_.m([_.pR()],dD);_.yR.YtdHorizontalListBehavior=[];_.yR.YtdHorizontalListBehavior.push(_.f7,_.T.YtRendererBehavior,_.Zu.YtLazyListBehavior,_.eb.YtdGuideStateAwareBehavior,dD.prototype);var uBt=["APP_STATE","PI"];var P7w=_.me(["about:blank"]),t$D={pushState:window.history.pushState,replaceState:window.history.replaceState};var TY=function(g){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=g;this.internalPushState=g.pushState.bind(g);this.internalReplaceState=g.replaceState.bind(g)};
TY.prototype.init=function(){this.initialized=!0};
TY.prototype.pushState=function(g,r){this.initialized||this.init();this.internalPushState&&this.internalPushState(g,"",r)};
TY.prototype.replaceState=function(g,r){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(g,"",r)};
TY.prototype.getState=function(){return this.history&&this.history.state};var Ffm=function(g){var r=function(){var E=g.apply(this,arguments)||this;E.boundHistoryPushState=!1;E.boundHistoryReplaceState=!1;E.debugInfo={};return E};
_.f(r,g);r.prototype.init=function(){var E=_.HT("IFRAME");_.ta(E,_.wF(P7w));E.sandbox="allow-same-origin";E.style.display="none";this.iframe=E;document.body.appendChild(E);this.bindHistoryStateFunctions();g.prototype.init.call(this)};
r.prototype.bindHistoryStateFunctions=function(){var E=this,B=[],w;this.iframe&&((w=this.iframe.contentWindow)==null?0:w.history)&&(w=this.iframe.contentWindow.history)&&(B.push(w),Object.getPrototypeOf(w)&&B.push(Object.getPrototypeOf(w)));window.history&&B.push(window.history);w=window.history;Object.getPrototypeOf(w)&&B.push(Object.getPrototypeOf(w));B.push(t$D);w=function(M){for(var u=null,l=0;l<B.length;l++){var Q=B[l][M];if(typeof Q==="function"){u=Q.bind(window.history);E.debugInfo[M]=l;break}}return u};
if(!this.boundHistoryReplaceState){var O=w("replaceState");O&&(this.internalReplaceState=O,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(w=w("pushState"))&&(this.internalPushState=w,this.boundHistoryPushState=!0)};
return r}(TY),eZw=function(){return Ffm.call(this,window.history)||this};
_.f(eZw,Ffm);eZw.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var gI=function(g){this.browserHistory=g;this.initialized=!1};
gI.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
gI.prototype.pushState=function(g,r){this.initialized||this.init();this.browserHistory.pushState(g,r)};
gI.prototype.replaceState=function(g,r){this.initialized||this.init();this.browserHistory.replaceState(g,r)};
gI.prototype.handlePopstate=function(g){return g.state};_.Wfn=function(g,r,E,B,w){this.endpoint=g;this.forward=r;this.historyEntry=E;this.JSC$26827_savedComponentState=B;this.legacyBorder=w===void 0?!1:w};var C74=function(g,r){this.rootData=g;this.scrollTop=r};var YI=new _.Vn("PAGE_REQUEST_TOKEN"),yKm=new _.Vn("FETCH_PBJ_TOKEN");_.rI=new _.Vn("EPHEMERAL_STORE_TOKEN");_.En=function(g){this.data=Object.assign({},g);var r;(r=this.data.innertubeResponse)==null||delete r.frameworkUpdates};
_.En.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.g2)()};
_.Bv=function(g){return Object.assign({},g.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var Kf4=function(){this.maxSize=100;this.timeToDataCache=new Map};
Kf4.prototype.get=function(g){var r=this.timeToDataCache.get(g);r&&(this.timeToDataCache.delete(g),this.timeToDataCache.set(g,r));if(r&&r.rootData&&(_.Y("web_use_response_store_for_history_cache")||_.Y("mweb_use_new_history_manager"))){var E=_.rM().resolve(_.rI),B=xi4(r),w=!!B;if(B){if(B.content){var O=Bh(E,B.content);w&&O?r.rootData.response=_.Bv(O):w=!1}B.player&&(O=Bh(E,B.player),w&&O?r.rootData.playerResponse=_.Bv(O):w=!1);B.reelSequence&&(E=Bh(E,B.reelSequence),w&&E?r.rootData.reelWatchSequenceResponse=
_.Bv(E):w=!1)}w||(this.timeToDataCache.delete(g),r=void 0)}return r};
Kf4.prototype.set=function(g,r){if(r.rootData&&(_.Y("web_use_response_store_for_history_cache")||_.Y("mweb_use_new_history_manager"))){var E=xi4(r),B=Object.assign({},r.rootData);E&&(E.content&&r.rootData.response&&(amA(this,E.content,r.rootData.response),B.response=null),E.player&&r.rootData.playerResponse&&(amA(this,E.player,r.rootData.playerResponse),B.playerResponse=null),E.reelSequence&&r.rootData.reelWatchSequenceResponse&&(amA(this,E.reelSequence,r.rootData.reelWatchSequenceResponse),B.reelWatchSequenceResponse=
null));r=new C74(B,r.scrollTop)}this.timeToDataCache.has(g)?this.timeToDataCache.delete(g):this.timeToDataCache.size>=this.maxSize&&(E=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(E.value));this.maxSize!==0&&this.timeToDataCache.set(g,r)};
Kf4.prototype.clear=function(){this.timeToDataCache.clear()};
var xi4=function(g){var r=_.rM().resolve(_.gM(YI)),E;if((E=g.rootData)==null?0:E.endpoint)return r==null?void 0:kfD(r,g.rootData.endpoint);var B;_.el(new _.Rj("History snapshot response data does not contain endpoint",(B=g.rootData)==null?void 0:B.url));return null},amA=function(g,r,E){if(g.maxSize>0){var B;
(g=(B=E.responseContext)==null?void 0:B.maxAgeSeconds)&&Number(g)>0&&(B=_.rM().resolve(_.rI),E=Og(E,g),B.put(r,new _.En(E)))}};var XCn=function(g,r,E){this.endpoint=r;this.JSC$26832_savedComponentState=E===void 0?null:E;this.entryTime=g};var zZl=1;var wI=function(g){var r=function(){var E=g.apply(this,[].concat(_.jW(_.fI.apply(0,arguments))))||this;E.historyEntryTime=0;E.historySnapshotCache=E.createHistoryCache();return E};
_.f(r,g);r.prototype.createHistoryCache=function(){return new Kf4};
r.prototype.saveAndReplace=function(E,B,w){var O=window.location.href;var M=M===void 0?{}:M;var u=(u=this.browserHistory.getState())&&u.entryTime?u.entryTime:k0l();E=this.createNewHistoryEntry(E,M,u);this.saveSnapshot(u,B,w);this.replaceState(E,O||window.location.href)};
r.prototype.saveAndPush=function(E,B,w,O,M){M=M===void 0?{}:M;this.saveSnapshot(this.historyEntryTime,w,O);w=this.historySnapshotCache;O=this.historyEntryTime;var u=w.timeToDataCache.keys();u=_.U(u);for(var l=u.next();!l.done;l=u.next())l=l.value,l>O&&w.timeToDataCache.delete(l);B=this.createNewHistoryEntry(B,M);this.pushState(B,E)};
r.prototype.saveSnapshot=function(E,B,w){this.historySnapshotCache.set(E,new C74(B,w))};
r.prototype.createNewHistoryEntry=function(E,B,w){w=w===void 0?k0l():w;return new XCn(w,E,B)};
r.prototype.handlePopstate=function(E){var B=g.prototype.handlePopstate.call(this,E),w=null,O=null,M=!1,u=null;B&&B.entryTime&&(u=this.historySnapshotCache.get(B.entryTime)||null,M=B.entryTime>this.historyEntryTime,this.historyEntryTime=B.entryTime,w=B.endpoint,O=B.JSC$26832_savedComponentState);this.handleHistoryCacheLoad(new _.Wfn(w,M,u,O),E);return B};
r.prototype.pushState=function(E,B){Number(E==null?void 0:E.entryTime)>=0&&(this.historyEntryTime=E.entryTime);g.prototype.pushState.call(this,E,B)};
r.prototype.replaceState=function(E,B){Number(E==null?void 0:E.entryTime)>=0&&(this.historyEntryTime=E.entryTime);g.prototype.replaceState.call(this,E,B)};
r.prototype.handleHistoryCacheLoad=function(){};
return r}(gI),Nqm=function(){var g=wI.call(this,new eZw)||this;
g.dispatchElement=null;g.entryIndex=0;return g};
_.f(Nqm,wI);_.S=Nqm.prototype;_.S.init=function(g){g=g===void 0?!0:g;wI.prototype.init.call(this);this.initialized||(g||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.S.handlePopstate=function(g){var r=null;g.state||(r="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return wI.prototype.handlePopstate.call(this,g);var E=new CustomEvent("yt-history-pop",{cancelable:!0});_.OS(this.dispatchElement,"yt-history-pop",[E,{errorMsg:r}]);_.US(this.dispatchElement,"yt-close-all-popups-action");if(!E.defaultPrevented){E=_.rM().resolve(_.vK);r=E.getCurrentData();var B=E.getCurrentPage();E=0;B?(B=_.OS(this.dispatchElement,"yt-get-page-offset",
[B]),B.length>0&&(E=B[0])):_.el(new _.Rj("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:r?r.page:"undefined"}));r&&(r.csn=_.PE());this.saveSnapshot(this.historyEntryTime,r,E)}return wI.prototype.handlePopstate.call(this,g)};
_.S.handleHistoryCacheLoad=function(g,r){g.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.U(_.US(this.dispatchElement,"yt-history-will-navigate",[r])).next().value||_.OS(this.dispatchElement,"yt-history-load",[r,g]))};
_.S.pushState=function(g,r){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var E=new _.Rj("history.pushState is not a function",this.getDebugString());_.tn(E)}wI.prototype.pushState.call(this,g,r)};
_.S.replaceState=function(g,r){if(!this.browserHistory.boundHistoryReplaceState){var E=new _.Rj("history.replaceState is not a function",this.getDebugString());_.tn(E)}wI.prototype.replaceState.call(this,g,r)};
_.S.saveAndPush=function(g,r,E,B,w){w=w===void 0?{}:w;E&&(E.csn=_.PE());wI.prototype.saveAndPush.call(this,g,r,E,B,w)};
_.S.getDebugString=function(){var g=[];this.initialized&&g.push("i");this.browserHistory.boundHistoryReplaceState&&g.push("bhr");this.browserHistory.boundHistoryPushState&&g.push("bhs");"replaceState"in this.browserHistory.debugInfo&&g.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&g.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&g.push("ei:"+String(this.entryIndex));return g.join(",")};
_.S6=function(g,r){g.init(!0);var E=g.browserHistory.getState();g.replaceState(E,ST(r))};
Nqm.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.On=new _.Vn("DESKTOP_HISTORY_MANAGER_TOKEN");var Imz=[10,20,30,40,50,60],Un=function(){this.currentPartitionIndex=0},miI=function(g){TTA({mainAppWeb:_.iF(),
survivalSli:{partitionMinute:g,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},cND=function(g){TTA({mainAppWeb:_.iF(),
survivalSli:{partitionMinute:g,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},iXn=function(g){return g.currentPartitionIndex>=0&&g.currentPartitionIndex<Imz.length?Imz[g.currentPartitionIndex]:-1},Lfn=function(g){return g.currentPartitionIndex>0&&g.currentPartitionIndex-1<Imz.length?Imz[g.currentPartitionIndex-1]:-1};
Un.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var g=Lfn(this);g>0&&cND(g);g=iXn(this);g>0&&miI(g);V$T(this)}};
var V$T=function(g){var r=iXn(g);if(r>0){var E=Lfn(g);E<0&&(E=0);g.intervalId=_.F6.addJob(function(){var B=Lfn(g);B>0&&cND(B);B=iXn(g);B>0&&miI(B);V$T(g)},3,(r-E)*6E4);
g.currentPartitionIndex+=1}else g.currentPartitionIndex=-1};var hZA=function(){this.skipNextNavigation=!1},ZXZ=function(g,r,E){if(!r)return!1;
if(g.skipNextNavigation)return g.skipNextNavigation=!1;if(_.n(E,_.II))return!1;var B,w,O;if((B=_.n(E,_.ka))==null?0:(w=B.browseEndpointContextSupportedConfigs)==null?0:(O=w.browseEndpointContextMainConfig)==null?0:O.skipConfirmation)return!1;var M;return((M=_.n(r.commandMetadata,_.dU))==null?void 0:M.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
hZA.prototype.showConfirmationDialog=function(g,r){this.navigateParams=r;this.customConfirmationCommand?_.rM().resolve(_.Er).resolveCommand(this.customConfirmationCommand):(r={openPopupAction:{popup:{confirmDialogRenderer:{title:_.Lf(_.zn("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.Lf(_.zn("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.Lf(_.zn("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.Lf(_.zn("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.mH.getInstance().triggerAction("yt-open-popup-action",r,g))};
hZA.prototype.cancelPendingNavigation=function(){var g;((g=this.navigateParams)==null?void 0:g.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var yNU=function(){},diU=function(g,r,E,B,w,O,M){E=E===void 0?{}:E;
M=M===void 0?{}:M;var u=_.kl.instance,l,Q=(l=_.n(r,_.II))==null?void 0:l.url;return Q?dkL(u,Q,E,window.location.href,function(z,k){vWI(g,z,k,!1,!0,E,O,B)},function(){return!1}):KZ(u,r,E,window.location.href,RJ(r),function(z,k){vWI(g,z,k,!1,!0,E,O,B)},w,M)},vWI=function(g,r,E,B,w,O,M,u){if(!g.JSC$12473_chunkHandler)if(E.page==="watch"||E.page==="learning_journey_watch")if(w||B){if(_.Y("kevlar_continue_playback_without_player_response")){var l;
var Q=(l=_.n(u,_.LM))==null?void 0:l.videoId}g.JSC$12473_chunkHandler=new RCU(_.Tw,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:B,previousVideoId:Q},tempData:O},M)}else g.JSC$12473_chunkHandler=new zCw(_.Tw);else E.page==="shorts"&&w&&!B?g.JSC$12473_chunkHandler=new YVn(_.Tw,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:O},M):g.JSC$12473_chunkHandler=new kVZ(M);g.JSC$12473_chunkHandler.processChunk({endpoint:r,data:E});return g.JSC$12473_chunkHandler.fB.promise},
Tq6=function(g,r,E,B,w){(E=_.uem(E))&&vWI(g,r,E,!1,!0,B,void 0,w)};var gHw=function(){this.pendingNavigationPromise=null};
_.S=gHw.prototype;_.S.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.S.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.S.addEventListener=function(){throw Error("Dh");};
_.S.dispatchEvent=function(){throw Error("Dh");};
_.S.removeEventListener=function(){throw Error("Dh");};var roA=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],MR=function(){_.ze.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];EHZ(this)};
_.f(MR,_.ze);MR.prototype.verifyUser=function(){var g=EHZ(this),r=g.logout;if(!g.sessionChange)return!0;this.dispatchEvent("ytsessionchange");r&&this.dispatchEvent("ytuserinvalid");return!1};
var EHZ=function(g){var r=roA.map(function(w){var O;return(O=_.zZ.get(w))!=null?O:""}),E=r.some(function(w,O){return g.sessionCookies&&g.sessionCookies[O]!==""&&w===""}),B=r.some(function(w,O){return g.sessionCookies&&g.sessionCookies[O]!==w});
g.sessionCookies=r;return{logout:E,sessionChange:B}};
MR.prototype.clearTimeout=function(){this.scheduledJobId&&(_.F6.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var nWc=new _.Vn("POSTMESSAGE_TUNNEL_TOKEN");var pCS=["/parent_tools","/file_download","/artist_roster"],$iB=[fNc,$mQ,jWA,b_X,Avl,sWS,JvJ,PyX];var BED=new _.Vn("APP_ROOT");var qR=new _.Vn("NAVIGATION_CONFIRMATION_SERVICE");var w1n="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),Scw=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
uo=function(g,r){this.pendingNavigationPromise=null;this.JSC$12491_clientRoot=g;this.historyManager=r;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 yNU;this.debugString=g.is;g={"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};_.cf(_.mH.getInstance(),g,this.JSC$12491_clientRoot)},uFb,l6m,Dgm,oH6,qcU;
_.f(uo,gHw);uo.prototype.reload=function(){_.co(window.location.href)};
var opU=function(g){g.currentEndpoint&&_.n(g.currentEndpoint,_.sP)?g.reload():g.currentEndpoint&&g.navigate(g.currentEndpoint,!0,void 0,{disableCache:!0})};
uo.prototype.navigate=function(g,r,E,B,w,O,M,u){r=r===void 0?!1:r;E=E===void 0?{}:E;B=B===void 0?{}:B;var l=_.rM().resolve(qR),Q;if(!M&&ZXZ(l,(Q=this.currentEndpoint)!=null?Q:void 0,g))return l.showConfirmationDialog(this.JSC$12491_clientRoot.parentElement,{endpoint:g,reload:r,params:E,tempData:B,requestType:w,createScreenConfig:O}),!1;var z=_.ep();_.Wa(z,"eocs")||z.parkOrScheduleJob(function(){z.processSignal("eocs")},10,"eor");
M=RJ(g);l=B.autonav==="1";Q=_.PE();MR.instance||(MR.instance=new MR);var k=MR.instance.verifyUser(),H;if(_.Y("enable_dark_theme_only_on_shorts")){var R=document.documentElement.hasAttribute("dark"),A=_.bF(!0)==="USER_INTERFACE_THEME_DARK";if(M==="shorts"){if(!R)if(_.Y("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var J;_.co((J=_.n(g==null?void 0:g.commandMetadata,_.dU))==null?void 0:J.url,void 0,void 0,window.top)}}else{var e;_.co(_.La((e=_.n(g==null?
void 0:g.commandMetadata,_.dU))==null?void 0:e.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.Y("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!R){var C;_.co(_.La((C=_.n(g==null?void 0:g.commandMetadata,_.dU))==null?void 0:C.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(A!==R){var X;_.co(_.La((X=_.n(g==null?void 0:g.commandMetadata,_.dU))==null?void 0:X.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(M==="watch"){if(Ogb(_.rM().resolve(_.ea),
g)&&(k||_.Y("fix_miniplayer_navigation_killswitch")))return!1;_.Y("block_all_player_prefetch_requests")||(H=ljZ(_.rx(_.HP),g,l))}else{var Z,c=(Z=_.n(this.currentEndpoint,_.LM))==null?void 0:Z.videoId;c&&_.RH.getInstance().then(function(PJ){PJ&&PJ.set("yt-miniplayer-shown-video-id",c)})}H&&(E.frags=H.missingFragments_.join(","));
J=null;var h;e=(h=_.n(g==null?void 0:g.commandMetadata,_.dU))==null?void 0:h.ignoreNavigation;if(!e)if(_.Y("kevlar_command_url")){var y;J=(y=_.n(g==null?void 0:g.commandMetadata,_.dU))==null?void 0:y.url}else J=_.PVD(g,E);if(J&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&J==this.lastNavigationUrl)return _.Pk({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.qS(KM(),"CANCELLED")}J&&(this.lastNavigationUrl=J);TVY();_.W0("IS_HOMEPAGE_COLD",
!1);_.W0("IS_RESULTS_PAGE_COLD",!1);_.W0("IS_WATCH_PAGE_COLD",!1);g.loggingUrls&&g.loggingUrls.forEach(function(PJ){PJ.baseUrl&&_.mS(PJ.baseUrl)});
_.JNB(g,O?O.layer:0)&&_.Y("kevlar_flush_logs_on_away_navigation")&&_.Pf();if(jSJ(g))return!1;iHD(M,w);if(!J)return e||_.el(new _.Rj("Can't construct url for endpoint",g)),_.qS(KM(),"FAILURE"),!1;_.HXc();h=g&&_.n(g,_.ka)&&_.n(g,_.ka).browseId.startsWith("UC");E=(y=_.Y("enable_dark_theme_only_on_shorts")&&M==="shorts"?!1:_.JO()&&document.documentElement.hasAttribute("dark")!==_.AO())?{themeRefresh:1}:{};y&&!_.HN()&&_.bF()==="USER_INTERFACE_THEME_DARK"&&(E.theme="dark");h=y||Ugb(J)&&!h&&!_.Y("kevlar_disable_url_allowlist");
k||(h=!0);if(h||_.Ca("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var OD;var uB=(OD=window.top)==null?void 0:OD.location.href}catch(PJ){var zS;uB=(zS=PJ)==null?void 0:zS.message}_.el(new _.Rj("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:uB}))}g=_.Y("kevlar_redirect_on_window_killswitch")?window.top:window;m$(J);_.co(_.La(J,E),void 0,void 0,g);_.qS(KM(),"ABORTED");return!1}_.Y("kevlar_early_popup_close")&&_.OS(this.JSC$12491_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12473_chunkHandler=void 0;var jV;uB=RJ((jV=this.currentEndpoint)!=null?jV:void 0);(jV=M==="shorts"&&uB==="shorts")||_.B8o();_.aa(mcl)("nr",void 0);l&&_.Pk({webInfo:{navigationReason:"an"}});g.clickTrackingParams&&(B.itct=g.clickTrackingParams,B.csn=Q);u0L(B);B.endpoint=JSON.stringify(g);_.Y("enable_unknown_lact_fix_on_html5")&&(_.rM().resolve(_.PK),B.lact=_.Eq());_.jn.isEmpty(B)||_.yk(J,B);!_.Y("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(O=Object.assign({},{layer:0},O,{parentLayer:3}));this.pendingNavigationPromise=O=diU(this.pageFetcher,g,B,this.currentEndpoint,this.JSC$12491_isNetworkPromiseStale.bind(this),O,u);O=O.then(this.handleNavigateSuccess.bind(this,O,g,H,B),this.handleNavigateFail.bind(this,O,g));_.Di().navigationFinishPromise=O;r={endpoint:g,pageType:M,url:ST(J),reload:!!r,noProgressBar:jV};w&&(r.type=w);this.fireEvent("yt-navigate-start",r);H&&Tq6(this.pageFetcher,g,H,B,this.currentEndpoint);
return!0};
uo.prototype.JSC$12491_isNetworkPromiseStale=function(g){return g!=this.pendingNavigationPromise};
var MCD=function(g,r,E,B,w){var O=RJ(r);r={endpoint:r,pageType:O};w&&(r.errorMessage=w);_.el(E);r.navigationDoneMs=_.F4("nd");r.navigationErrorReason=B;g.fireEvent("yt-navigate-error",r)};
uo.prototype.handleNavigateFail=function(g,r,E){var B=void 0;E instanceof _.Iz&&(B=E,bWJ(E));if(this.JSC$12491_isNetworkPromiseStale(g))return _.bV(B);_.qS(KM(),"FAILURE");MCD(this,r,E,"101");return _.bV(E)};
uo.prototype.handleNavigateSuccess=function(g,r,E,B,w){if(this.JSC$12491_isNetworkPromiseStale(g))return _.lq();this.pendingNavigationPromise=null;if(!w)return r=new _.Rj("Missing data in response for navigation endpoint",r),_.bV(r);if(w.reload)return window.location.reload(!0),_.lq();E&&(g={},_.jn.extend(g,_.uem(E),w),w=g);var O,M;E=(O=w)==null?void 0:(M=O.timing)==null?void 0:M.responseStart;E!=null&&_.F4("srt",E);_.F4("pdc");var u,l;O=(u=w)==null?void 0:(l=u.timing)==null?void 0:l.info;O!=null&&
(u=_.aa(_.VYB)(O),_.Pk(u));_.qS(KM(),"SUCCESS");qcU(this,r,w,1,B);return _.lq()};
var Ugb=function(g){var r=g;_.Y("kevlar_no_redirect_to_classic_2_ks")||(r=(new _.Vk(g)).getPath());if(r==="/"||r==="/red")return!1;var E=!0;w1n.forEach(function(B){g.indexOf(B)===0&&(E=!1)});
Scw.forEach(function(B){var w=B.url;_.Y(B.expFlag)&&g.indexOf(w)===0&&(E=!1)});
return E};
uo.prototype.publishPageData=function(g){this.fireEvent("yt-page-data-fetched",{pageData:g})};
uFb=function(g,r,E,B,w,O){var M=null;r.page!=="watch"&&r.page!=="learning_journey_watch"||B?r.filler||_.OS(g.JSC$12491_clientRoot,"yt-stop-old-player",[r]):M=vWI(g.pageFetcher,w,r,E,!1,O,void 0,g.currentEndpoint);if(M)return M.then(g.publishPageData.bind(g,r));g.publishPageData(r);return _.lq()};
l6m=function(g,r,E){var B=null;if(!E)return B=new _.Rj("Empty data",g.debugString,r);var w=E.response;if(!w)return B;var O={endpointType:RJ(r)||"unknown"};w.responseContext?(w=w.responseContext.errors)&&(B=new _.Rj("Errors in response context",g.debugString,r,w,O)):B=w.error||w.errorMetadata?new _.Rj("Errors in response",g.debugString,r,w.error,w.errorMetadata,O):new _.Rj("responseContext missing",g.debugString,r,Object.keys(w).sort().join(","),O);var M,u,l,Q;if(g=E==null?void 0:(M=E.response)==null?
void 0:(u=M.responseContext)==null?void 0:(l=u.webResponseContextExtensionData)==null?void 0:(Q=l.webResponseContextDebugData)==null?void 0:Q.debugErrorMessages)for(M=0;M<g.length;M++);return B};
Dgm=function(g){var r,E,B,w;return g==null?void 0:(r=g.response)==null?void 0:(E=r.responseContext)==null?void 0:(B=E.errors)==null?void 0:(w=B.error)==null?void 0:w["0"]};
oH6=function(g,r){var E;if(E=r.url&&!r.url.startsWith("/clip"))E=r.url,E=!_.Y("webfe_parse_debug_param_in_resolveurl_service")&&g.searchDebugUrlMatcher.test(E)||CpP(E)?!0:!1;if(E)CpP(r.url)&&_.iu(window.location.href).themeRefresh?(r=_.vE(r.url,"themeRefresh"),_.S6(g.historyManager,r)):r.url&&!G0l(r.url)&&_.S6(g.historyManager,r.url);else if(r.endpoint){var B,w,O;(E=(B=r.endpoint)==null?void 0:(w=B.commandMetadata)==null?void 0:(O=w.webCommandMetadata)==null?void 0:O.url)&&!G0l(E)&&_.S6(g.historyManager,
E);E&&r.url&&E!=r.url&&!r.url.match("playnext=1")&&new _.Rj("Response url mismatch in response data",g.debugString,E,r.url)}};
_.GIm=function(g,r,E,B,w,O,M,u){O=O===void 0?!1:O;var l=_.rM().resolve(qR),Q;if(!u&&ZXZ(l,(Q=g.currentEndpoint)!=null?Q:void 0,r))return l.showConfirmationDialog(g.JSC$12491_clientRoot.parentElement,{endpoint:r,data:E,navigationType:B,tempData:w,isMiniplayer:O,isForwardHistoryNavigation:M==null?void 0:M.forward}),_.lq();g.pageFetcher.JSC$12473_chunkHandler=void 0;return qcU(g,r,E,B,w,O)};
qcU=function(g,r,E,B,w,O){O=O===void 0?!1:O;g.isMiniplayerExpansion=O;var M=B===2;g.currentEndpoint=r;g.numNavigations++;g.numNavigations&&(v8J.navigationCount=g.numNavigations);_.W0("NUM_NAV",g.numNavigations);var u=l6m(g,r,E);if(u)return MCD(g,r,u,"102",Dgm(E)),_.bV(u);var l,Q,z,k;u=E.rootVe||(E==null?void 0:(l=E.response)==null?void 0:(Q=l.responseContext)==null?void 0:(z=Q.webResponseContextExtensionData)==null?void 0:(k=z.ytConfigData)==null?void 0:k.rootVisualElementType);!M&&E&&oH6(g,E);var H,
R;l=E==null?void 0:(H=E.response)==null?void 0:(R=H.responseContext)==null?void 0:R.maxAgeSeconds;if(!M&&!isNaN(l)){var A;_.Y("kevlar_use_response_ttl_to_invalidate_cache")?A=(0,_.g2)()+1E3*l:_.Y("kevlar_always_invalidate_cache")&&(A=0);isNaN(A)||(E.expirationTime=A)}_.rx(_.HP).prefetchCache_.clear();M||E.page!=="watch"||E.type!=="reduced"&&B!==1?B=uFb(g,E,M,!!O,r,w):(g.publishPageData(E),B=_.lq());w=B.then(function(){var J=RJ(r);J={endpoint:r,pageType:J,fromHistory:M,response:E};J.navigationDoneMs=
_.F4("nd");g.fireEvent("yt-navigate-finish",J)});
E.csn&&u&&E.clientSideGrafts&&B.then(g.attachClientSideGrafts.bind(g,E,_.JF()));return w};
_.S=uo.prototype;_.S.attachClientSideGrafts=function(g,r){g.clientSideGrafts&&r&&g.clientSideGrafts.forEach(function(E){if(r&&E){var B=_.fW(E);_.Y("combine_ve_grafts")?_.pW().graftServerVe(E,r):_.N2(g.csn,r,B)}})};
_.S.handleSignalActionHistoryBack=function(){window.history.back()};
_.S.handleSignalActionCloseWindow=function(){window.close()};
_.S.handleSignalActionReloadPage=function(){this.reload()};
_.S.handleSignalActionSoftReloadPage=function(){opU(this)};
_.S.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.S.fireEvent=function(g,r){g=new CustomEvent(g,{bubbles:!0,cancelable:!1,composed:!0,detail:r});this.dispatchEvent(g)};
_.S.addEventListener=function(g,r){this.JSC$12491_clientRoot.addEventListener(g,r)};
_.S.dispatchEvent=function(g){return this.JSC$12491_clientRoot.dispatchEvent(g)};
_.S.removeEventListener=function(g,r){this.JSC$12491_clientRoot.removeEventListener(g,r)};
uo[LU]=[BED,_.On];_.ESl=new Tm("browse","h8y2qb");_.BKX=new Tm("search","JzFVk");_.wBB=new Tm("shorts","xwEKAe");_.Sfl=new Tm("watchFixie","nmfa2d");_.OSD=new Tm("watchFlexy","CF909");_.U$V=new Tm("watchGrid","Tm0L3c");_.MjJ=new Tm("watchLearningJourney","L3n37");var Qq4;var z24=function(){return _.a.apply(this,arguments)||this};
_.f(z24,_.a);_.hx.Object.defineProperties(z24,{template:{configurable:!0,enumerable:!0,get:function(){if(Qq4===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);Qq4=g}g=Qq4;return g}}});
_.m([_.P(zZT.YtPlayerBehavior),_.L("design:type",Object)],z24.prototype,"ytPlayerBehavior",void 0);_.m([_.N({is:"ytd-player"})],z24);var kIw;var Hg6;var p1z;var lo=function(){var g=_.a.apply(this,arguments)||this;g.forceModernIconButton=!1;g.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return g};
_.f(lo,_.a);lo.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]]"}}}}}};
lo.prototype.handleAccountLinkingStateChangedCommand=function(g){if(g=_.n(g,qGU)){var r,E=(r=this.data)==null?void 0:r.providerKey;r=g.providerKey;E&&r&&E.id===r.id&&E.subject===r.subject&&(g=g.linked,g!==void 0&&(this.set("data.linked",g),this.notifyPath("data.linked"),_.Y("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(g)))}};
lo.prototype.setPlayerAccountLinkState=function(g){var r=new BjU;wSU(r,r1A(new g0Z,g));var E=_.Tw();E&&E.getPlayerPromise().then(function(B){B.setAccountLinkState(_.gk(r.JSC$10207_serializeBinary(),4));B.updateAccountLinkingConfig(g)})};
lo.prototype.handleShowAccountLinkDialog=function(){var g=this.get("button.buttonRenderer.command");g&&_.o6([g],this.hostElement)};
_.hx.Object.defineProperties(lo.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}}}});
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],lo.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],lo.prototype,"ytRendererBehavior",void 0);_.m([_.P([_.gN.YtActionHandlerBehavior]),_.L("design:type",Object)],lo.prototype,"actionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],lo.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],lo.prototype,"overrides",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],lo.prototype,"forceModernIconButton",void 0);_.m([_.K({value:"bottom"}),_.L("design:type",String)],lo.prototype,"buttonTooltipPosition",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],lo.prototype,"forceIconButton",void 0);_.m([_.K(),_.L("design:type",Boolean)],lo.prototype,"disableTextTransform",void 0);
_.m([_.W("data","data.linked","data.isWarning"),_.L("design:type",Object),_.L("design:paramtypes",[])],lo.prototype,"button",null);_.m([_.N({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],lo);
_.I(lo,"ytd-account-link-button-renderer",function(){if(p1z!==void 0)return p1z;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return p1z=g},{mode:1});var YcI;var R2w=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],DK=function(){return _.a.apply(this,arguments)||this};
_.f(DK,_.a);DK.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
DK.prototype.updateButtonActiveState=function(){var g=this,r=!!R2w.find(function(E){return g.currentState===E});
this.button&&(this.button.isPressed=r)};
_.hx.Object.defineProperties(DK.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var g,r;return((g=this.playlistLoopStateEntity)==null?void 0:g.state)||((r=this.data)==null?void 0:r.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var g=void 0,r;if(this.currentState&&((r=this.data)==null?0:r.states)){r=_.U(this.data.states);for(var E=r.next();!E.done;E=r.next()){E=_.n(E.value,_.bVz);var B=void 0;if(((B=E)==null?void 0:B.state)===this.currentState){g=E;break}}}return g}}});
DK.prototype.updateButtonActiveState=DK.prototype.updateButtonActiveState;_.m([_.P(_.Ai),_.L("design:type",Object)],DK.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],DK.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],DK.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.K({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.KfP}),_.L("design:type",Object)],DK.prototype,"playlistLoopStateEntity",void 0);_.m([_.K(),_.L("design:type",Object)],DK.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Boolean)],DK.prototype,"forceIconOnly",void 0);_.m([_.zb("ytd-button-renderer"),_.L("design:type",_.Lo)],DK.prototype,"button",void 0);
_.m([_.W("data","playlistLoopStateEntity"),_.L("design:type",Object),_.L("design:paramtypes",[])],DK.prototype,"currentState",null);_.m([_.Gb("currentButtonStateRenderer"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],DK.prototype,"updateButtonActiveState",null);_.m([_.W("currentState"),_.L("design:type",Object),_.L("design:paramtypes",[])],DK.prototype,"currentButtonStateRenderer",null);
_.m([_.N({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],DK);
_.I(DK,"ytd-playlist-loop-button-renderer",function(){if(YcI!==void 0)return YcI;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return YcI=g},
{mode:1});var nHn;var sqU=_.zn("DOWNLOAD",{},"Download"),f6Z=_.zn("DOWNLOADING",{},"Downloading"),$gm=_.zn("DOWNLOADED",{},"Downloaded"),jq6=_.zn("RETRY",{},"Retry"),oh=function(){var g=_.a.apply(this,arguments)||this;g.forceIconButton=!1;g.forceIconOnly=!1;g.overrides=!1;g.buttonTooltipPosition=!1;g.styleActionButton=!1;g.disableTextTransform=!1;g.downloadProgress=0;g.isDownloadComplete=!1;g.isHidden=!0;g.transferState="TRANSFER_STATE_UNKNOWN";g.isVideoDeletedByUser=!1;g.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return g};
_.f(oh,_.a);_.S=oh.prototype;_.S.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.S.dataChanged=function(){var g;(g=this.data)!=null&&g.text||(g=_.Ws(_.Zz().getState(),this.videoId),this.updateButtonState(g))};
_.S.computeVideoId=function(g){return g};
_.S.showHideButton=function(){this.updateButtonVisibility()};
_.S.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.S.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.S.updateButtonState=function(g){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==f6Z||!_.pf(g))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(g){case "TRANSFER_STATE_UNKNOWN":g=sqU;var r="OFFLINE_DOWNLOAD";var E="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":g=jq6;r="OFFLINE_DOWNLOAD";E="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":g=$gm;r="OFFLINE_PIN";E="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":g=
f6Z;r="OFFLINE_DOWNLOADING_ZERO";E="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":g=jq6;r="OFFLINE_DOWNLOAD";E="ACTION_RETRY";break;default:g=sqU,r="OFFLINE_DOWNLOAD",E="ACTION_ADD"}this.isVideoDeletedByUser&&(g=sqU,r="OFFLINE_DOWNLOAD",E="ACTION_ADD");var B=Object.assign({},this.data);B.text=_.Lf(g);B.tooltip=g;B.icon={iconType:r};B.size="SIZE_DEFAULT";B.style="STYLE_DEFAULT";_.n(B.command,_.DB)&&(_.n(B.command,_.DB).action=E);this.set("data",B)}};
_.S.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var g="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?g="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?g="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?g="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?g="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?g="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(g="OFFLINE_PIN",this.isDownloadComplete=!0);var r;g!==((r=this.data.icon)==null?void 0:r.iconType)&&(r=Object.assign({},this.data),r.text=_.Lf(f6Z),r.tooltip=f6Z,r.icon={iconType:g},_.n(r.command,_.DB)&&(_.n(r.command,_.DB).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",r))}};
oh.prototype.updateProgress=oh.prototype.updateProgress;oh.prototype.onTransferStateChanged=oh.prototype.onTransferStateChanged;oh.prototype.showHideButton=oh.prototype.showHideButton;oh.prototype.dataChanged=oh.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],oh.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],oh.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],oh.prototype,"forceIconButton",void 0);
_.m([_.K(),_.L("design:type",Object)],oh.prototype,"forceIconOnly",void 0);_.m([_.K(),_.L("design:type",Object)],oh.prototype,"overrides",void 0);_.m([_.K(),_.L("design:type",Object)],oh.prototype,"buttonTooltipPosition",void 0);_.m([_.K(),_.L("design:type",Object)],oh.prototype,"styleActionButton",void 0);_.m([_.K(),_.L("design:type",Object)],oh.prototype,"disableTextTransform",void 0);
_.m([_.K({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.L("design:type",String)],oh.prototype,"videoId",void 0);_.m([_.K(),_.L("design:type",Object)],oh.prototype,"data",void 0);_.m([_.K({selector:Kf,selectorArgs:["videoId"]}),_.L("design:type",Object)],oh.prototype,"downloadProgress",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],oh.prototype,"isDownloadComplete",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],oh.prototype,"isHidden",void 0);_.m([_.K({selector:_.Ws,selectorArgs:["videoId"]}),_.L("design:type",String)],oh.prototype,"transferState",void 0);_.m([_.K({selector:_.W5Q,selectorArgs:["videoId"]}),_.L("design:type",Object)],oh.prototype,"isVideoDeletedByUser",void 0);_.m([_.K({selector:bYl,selectorArgs:["videoId"]}),_.L("design:type",Object)],oh.prototype,"offlineabilityState",void 0);
_.m([_.K({value:!0}),_.L("design:type",Boolean)],oh.prototype,"showTooltips",void 0);_.m([_.K({value:!0}),_.L("design:type",Boolean)],oh.prototype,"sendCommandWhenDisabled",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],oh.prototype,"disabled",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],oh.prototype,"dataChanged",null);
_.m([_.Yk("offlineabilityState"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],oh.prototype,"showHideButton",null);_.m([_.Yk("transferState","isVideoDeletedByUser"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],oh.prototype,"onTransferStateChanged",null);_.m([_.Yk("downloadProgress"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],oh.prototype,"updateProgress",null);
_.m([_.N({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],oh);
_.I(oh,"ytd-download-button-renderer",function(){if(nHn!==void 0)return nHn;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return nHn=g},{mode:2});var Aow;var bgz,JoI=function(){if(bgz!==void 0)return bgz;var g=document.createElement("template");_.b(g,'\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 bgz=g};var PXw=_.Y("web_button_rework")&&_.Ka("BUTTON_REWORK")||_.Y("web_button_rework_with_live"),tCZ=_.wM("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,G4=function(){var g=_.a.apply(this,arguments)||this;g.isPressed=!1;g.forceIconButton=!1;g.forceIconOnly=!1;g.forceModernIconButton=!1;g.alignByText=!1;g.isShorts=!1;g.animatedText=!1;g.shouldAnimate=!1;g.JSC$12528_browserSupportsAnimation=_.Y("web_supports_animations_api");g.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};g.onTap=function(){var r;if((r=g.data)==null||!r.defaultNavigationEndpoint){var E;r=!((E=g.data)==null?0:E.isToggled);var B;if((B=g.data)==null||!B.preventAutoToggle){g.shouldAnimate=!1;g.disableTextUpdateJobId&&_.F6.cancelJob(g.disableTextUpdateJobId);g.disableTextUpdateJobId=_.F6.addLowPriorityJob(function(){g.disableTextUpdateJobId=void 0},tCZ);
var w;g.set("data.isToggled",!((w=g.data)==null?0:w.isToggled));E=g.getInnertubeIcon();B={toggled:r,actions:{}};E&&(B.actions[E.toLowerCase()]=r);_.Sh(g.hostElement,"yt-toggle-button",B)}}};
return g};
_.f(G4,_.a);_.S=G4.prototype;_.S.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.F6.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.S.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.S.toggle=function(g){var r;this.set("data.isToggled",g!==void 0?g:!((r=this.data)==null?0:r.isToggled))};
_.S.handleUpdateToggleButtonStateCommand=function(g){if(this.data){g=_.n(g,pgm);var r,E,B,w=(r=this.data)==null?void 0:(E=r.toggleButtonSupportedData)==null?void 0:(B=E.toggleButtonIdData)==null?void 0:B.id;w&&g&&w===(g==null?void 0:g.buttonId)&&this.set("data.isToggled",g.toggled)}};
_.S.handleUpdateToggleButtonTextAction=function(g){if(this.data){g=_.n(g,Onw);var r,E,B,w=(r=this.data)==null?void 0:(E=r.toggleButtonSupportedData)==null?void 0:(B=E.toggleButtonIdData)==null?void 0:B.id;w&&g&&w===(g==null?void 0:g.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=g.defaultNumericalValue,this.set("data.defaultText",g.defaultText),this.set("data.toggledText",g.toggledText),this.shouldAnimate=!1)}};
_.S.getInnertubeIcon=function(){var g=this.data;if(g){var r,E,B=((r=g.defaultIcon)==null?0:r.iconType)?(E=g.defaultIcon)==null?void 0:E.iconType:null,w,O;r=((w=g.toggledIcon)==null?0:w.iconType)?(O=g.toggledIcon)==null?void 0:O.iconType:B;return g.isToggled?r:B}};
_.S.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.hx.Object.defineProperties(G4.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var g={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$12528_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var r=g.renderer;var E=g.element;var B=g.toggled;var w=g.onTapCallback;var O=g.commandClientArgs;var M=g.overrides;var u=g.forceIcon;var l=g.forceModernIconButton;var Q=g.forceDisabled;var z=g.useAnimatedText;var k=g.animatedTextProps;g=NqX(r,B);u=!r.defaultIcon||!u&&r.defaultText?r.defaultIcon?"leading":void 0:l?"icon-only":"icon-only-40";u==="icon-only-40"&&(g.type="text");var H;l=Object;var R=l.assign,A;a:switch((A=
r.style)==null?void 0:A.styleType){case "STYLE_COMPACT_GRAY":A={size:"S"};break a;default:A={size:"M"}}var J=!!B;var e=(e=B&&r.toggledText||r.defaultText)?_.e_(e):void 0;z?(z=_.Vp(B&&r.toggledText||r.defaultText))&&k&&!isNaN(Number(k.numberValue))?(k.numberText=z,B&&(k.numberValue+=1),z=k):z=void 0:z=void 0;var C,X,Z,c;var h=(k=((X=B?r.toggledAccessibilityData||((h=r.toggledText)==null?void 0:h.accessibility):r.accessibilityData||((C=r.defaultText)==null?void 0:C.accessibility))==null?void 0:(Z=X.accessibilityData)==
null?void 0:Z.label)||((c=r.accessibility)==null?void 0:c.label))?k:_.Vp(B&&r.toggledText||r.defaultText);Q=Q===void 0?r.isDisabled:Q;E=XCA(r,B,w,E,O);B=aml(r,B);B!=null&&B.length?(B=_.XI({innertubeCommand:jVQ(B),forceNewState:!0}),B=Ny(B)?B:void 0):B=void 0;r=R.call(l,{},g,A,{iconPosition:u},M,{focused:!1,toggled:J,toggleable:!0,formattedButtonText:e,animatedTextProps:z,accessibilityLabel:h,disabled:Q,onTap:E,aTagConfig:B},rwX((H=r.colorData)==null?void 0:H.basicColorPaletteData));r.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(r.type="filled");return r}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var g=this.getInnertubeIcon();if(g)return _.Dh(g)}}});
G4.prototype.resetAnimation=G4.prototype.resetAnimation;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],G4.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],G4.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],G4.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],G4.prototype,"data",void 0);
_.m([_.K(),_.L("design:type",Object)],G4.prototype,"isPressed",void 0);_.m([_.K(),_.L("design:type",Object)],G4.prototype,"forceIconButton",void 0);_.m([_.K(),_.L("design:type",Object)],G4.prototype,"forceIconOnly",void 0);_.m([_.K(),_.L("design:type",Object)],G4.prototype,"forceModernIconButton",void 0);_.m([_.K(),_.L("design:type",Object)],G4.prototype,"alignByText",void 0);_.m([_.K(),_.L("design:type",Object)],G4.prototype,"overrides",void 0);
_.m([_.K(),_.L("design:type",Boolean)],G4.prototype,"disabled",void 0);_.m([_.K(),_.L("design:type",Object)],G4.prototype,"isShorts",void 0);_.m([_.K(),_.L("design:type",Object)],G4.prototype,"buttonTooltipPosition",void 0);_.m([_.K(),_.L("design:type",Object)],G4.prototype,"animatedText",void 0);_.m([_.K(),_.L("design:type",String)],G4.prototype,"textNumberValue",void 0);_.m([_.K({computed:"computeTooltip(data, data.isToggled)"}),_.L("design:type",Object)],G4.prototype,"tooltip",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],G4.prototype,"resetAnimation",null);_.m([_.W("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.L("design:type",Object),_.L("design:paramtypes",[])],G4.prototype,"computedButtonShape",null);_.m([_.W("data.*"),_.L("design:type",Object),_.L("design:paramtypes",[])],G4.prototype,"computedIcon",null);
_.m([_.N({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],G4);PXw&&_.I(G4,"ytd-toggle-button-renderer",JoI,{mode:_.My("kevlar_poly_si_batch_j081")?1:2});var o6D=_.dG(function(g){function r(Q){var z;return _.q(function(k){if(k.nextAddress==1)return(z=!miQ(Q,u())||!u().enabled)?k.jumpTo(2):_.D(k,hZl(),3);k.nextAddress!=2&&(z=k.yieldResult);if(z)return k.return();E();setTimeout(function(){M(!1)},1500);
_.Q3(k)})}
function E(){setTimeout(function(){M(!0);var Q;(Q=B.lottieEl)==null||Q.goToAndPlay(0)},150)}
var B=_.uL(),w=_.U(_.Dk(!1,void 0,"JJXzp")),O=w.next().value,M=w.next().value,u=_.Zo(g.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.Jk(function(){var Q,z;((Q=g.settings)==null?void 0:(z=Q.call(g))==null?void 0:z.uniqueId)==="this is not intended behavior"&&_.el(new _.Rj("Smartimation Settings is undefined"))});
_.bQ(function(){u().experimentEnabled&&(u().enabled?cNS(r):(M(!1),iXA(r)),_.J5(function(){iXA(r)}))},"FRiAUe");
_.bQ(function(){u().timings.join("");u().experimentEnabled&&(LfB(u()),_.J5(function(){V$l(u())}))},"VKiJOe");
var l=_.kB(function(){var Q=B,z=u().uniqueId+"-border",k,H;var R="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((H=(k=_.rM().resolve(_.gM(_.Vy)))==null?void 0:k())!=null&&H?"dark":"light")+"_v2.json";return{animationRef:Q,animationConfig:{name:z,autoplay:!1,loop:!1,path:R}}},void 0,"tgykab");
w={};return _.G("yt-smartimation",{class:_.QY(g.className,"smartimation",(w["smartimation--experiment-enabled"]=function(){return u().experimentEnabled},w["smartimation--active-border"]=O,w["smartimation--enable-masking"]=ZXY(),w))},_.G(_.p,{cond:function(){return u().experimentEnabled},
then:function(){return _.G("div",{class:"smartimation__border"},_.G(_.rN,{className:"smartimation__border-gradient",data:l,animationName:function(){return l().animationConfig.name}}))}}),_.G("div",{class:"smartimation__content"},g.children))},"C");
o6D.idomCompat=!0;_.BK(o6D,"yt-smartimation",{props:{className:_.cP,settings:_.cP}});var Qd=function(){var g=_.a.apply(this,arguments)||this;g.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};g.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};g.shouldEnableSmartimation=!1;return g};
_.f(Qd,_.a);Qd.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Qd.prototype.onDataChanged=function(){var g,r;this.shouldEnableSmartimation=(((g=this.data)==null?void 0:(r=g.timedAnimationData)==null?void 0:r.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
Qd.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var g=_.n(this.data.likeButton,_.ef),r=_.n(this.data.dislikeButton,_.ef);return!!((g==null?0:g.isToggled)||(r==null?0:r.isToggled))};
Qd.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]]"}}}}}};
_.hx.Object.defineProperties(Qd.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var g,r,E=((g=this.data)==null?void 0:(r=g.timedAnimationData)==null?void 0:r.animationTiming)||[];return{uniqueId:"like-dislike",timings:E,enabled:this.shouldEnableSmartimation,experimentEnabled:E.length>0}}}});
Qd.prototype.onDataChanged=Qd.prototype.onDataChanged;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Qd.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Qd.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Qd.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],Qd.prototype,"likeButtonOverride",void 0);_.m([_.K(),_.L("design:type",Object)],Qd.prototype,"dislikeButtonOverride",void 0);
_.m([_.W("shouldEnableSmartimation"),_.L("design:type",Object),_.L("design:paramtypes",[])],Qd.prototype,"smartimationSettings",null);_.m([_.Gb("data"),_.ob("yt-toggle-button"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Qd.prototype,"onDataChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],Qd);
_.I(Qd,"ytd-segmented-like-dislike-button-renderer",function(){if(Aow!==void 0)return Aow;var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return Aow=g},{mode:1});var Fln;var e2n;(e2n=document.body)==null||e2n.setAttribute("rounded-container","");var Wlw={};Wlw.YtToggleButtonBehavior=[_.gN.YtActionHandlerBehavior,zp.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 g=this.data.isToggled;if(!this.isModal_(g)){if(!this.data.preventAutoToggle){this.toggle();var r={toggled:this.data.isToggled,actions:{}};r.actions[this.buttonIcon]=this.data.isToggled;_.Sh(this.hostElement,"yt-toggle-button",r)}r=this.data.defaultServiceEndpoint||null;var E=this.data.toggledServiceEndpoint||null;if(r&&E||r&&this.data.preventAutoToggle)g=g?E:r,r=this.disableCommandHandlerOverride,_.Y("killswitch_toggle_button_behavior_resolve_command")||r?_.q2(this.hostElement,
[g]):_.Qy(g,this.hostElement),_.Sh(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:g})}},
stateChanged_:function(){var g=this.data;if(g){var r=g.isToggled;this._setEndpoint(this.computeEndpoint_(g));this._setServiceEndpoint(this.computeServiceEndpoint_(g));this._setButtonIcon(this.computeButtonIcon_(g,r));this._setButtonText(this.computeButtonText_(g,r));this._setButtonAccessibility(this.computeAccessibility_(g,r));this._setButtonTooltip(this.computeTooltip_(g,r));this._setButtonClass(this.computeButtonClass_(g,r));this._setIconPositionType(this.computeIconPositionType_(g));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=r):this.elements_.button.setAttribute("aria-pressed",r));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=r)}},
shouldSetIconActiveState_:function(){return _.Y("kevlar_system_icons")},
toggle:function(g){this.set("data.isToggled",g!==void 0?g:!this.data.isToggled);_.Y("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(g){if(g){var r,E;return!!((r=this.data)==null?0:(E=r.toggledServiceEndpoint)==null?0:E.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(g){return g&&g.defaultNavigationEndpoint||null},
computeButtonIcon_:function(g,r){var E=g&&g.defaultIcon?_.Dh(g.defaultIcon.iconType):null;g=g&&g.toggledIcon?_.Dh(g.toggledIcon.iconType):E;return r?g:E},
handleUpdateToggleButtonStateCommand_:function(g){g=g.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==g.buttonId&&this.toggle(g.toggled)},
computeButtonText_:function(g,r){return g?r&&g.toggledText||g.defaultText||null:null},
computeAccessibility_:function(g,r){return g?(r?this.get("toggledAccessibilityData.accessibilityData",g):this.get("accessibilityData.accessibilityData",g))||g.accessibility||null:null},
computeTooltip_:function(g,r){return g?r&&g.toggledTooltip||g.defaultTooltip||null:null},
computeButtonClass_:function(g,r){if(!g)return"";var E="",B=g.toggledStyle||g.style;if(r=r?B:g.style){r.styleType&&(r=r.styleType);try{E+=r.toLowerCase().replace(/_/g,"-")+" "}catch(w){_.Wf(w,r,typeof r),_.el(w)}}if(g=g.size){g.sizeType&&(g=g.sizeType);try{E+=g.toLowerCase().replace(/_/g,"-")+" "}catch(w){_.Wf(w,g,typeof g),_.el(w)}}return E.trim()},
computeIconPositionType_:function(g){return g&&g.iconPosition||null},
computeServiceEndpoint_:function(g){var r=g&&g.serviceEndpoint,E=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return r?r:E&&g.command?g.command:null},
handleUpdateToggleButtonTextAction_:function(g){g=g.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==g.buttonId&&(this.set("data.defaultText",g.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",g.toggledText),this.notifyPath("data.toggledText"))}}];_.ek("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var CXZ=_.Y("web_button_rework")&&_.Ka("BUTTON_REWORK")||_.Y("web_button_rework_with_live"),z4=function(){var g=_.a.apply(this,arguments)||this;g.systemIcons=_.Y("kevlar_system_icons");g.roundedContainer=!0;return g};
_.f(z4,_.a);z4.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
z4.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var g=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var r={toggled:!!this.data.isToggled,actions:{}};r.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var E,B;r.actions.playlistId=(E=this.data.defaultServiceEndpoint)==null?void 0:(B=E.playlistEditEndpoint)==null?void 0:B.playlistId;_.Sh(this.hostElement,"yt-toggle-button",r)}(g=g?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(g)}};
z4.prototype.onYtNavigate=function(g){var r=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(g.detail.endpoint);r&&(g.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(r))};
_.hx.Object.defineProperties(z4,{template:{configurable:!0,enumerable:!0,get:function(){if(Fln===void 0){var g=document.createElement("template");_.b(g,"\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");g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);Fln=g}g=Fln;return g}}});
z4.prototype.onYtNavigate=z4.prototype.onYtNavigate;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],z4.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],z4.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.cY),_.L("design:type",Object)],z4.prototype,"ytdOpenPopupBehavior",void 0);_.m([_.P(Wlw.YtToggleButtonBehavior),_.L("design:type",Object)],z4.prototype,"ytToggleButtonBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],z4.prototype,"data",void 0);_.m([_.K({value:!0}),_.L("design:type",Boolean)],z4.prototype,"showTooltips",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],z4.prototype,"systemIcons",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],z4.prototype,"roundedContainer",void 0);_.m([_.ob("yt-navigate"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],z4.prototype,"onYtNavigate",null);
_.m([_.N({is:"ytd-toggle-button-renderer",disableElementRegistration:CXZ})],z4);var KlD;_.kn=new _.Vn("PANEL_CONTROLLER_TOKEN");_.Hh=new _.Vn("SHEET_CONTROLLER_TOKEN");_.pj=new _.Vn("DIALOG_CONTROLLER_TOKEN");KlD=new _.Vn("DIALOG_CONTAINER_TOKEN");var w1A=_.zn("DOWNLOAD",{},"Download"),ScL=_.zn("DOWNLOADING",{},"Downloading"),Ogc=_.zn("DOWNLOADED",{},"Downloaded"),Ugc=_.zn("RETRY",{},"Retry");var qcV=[],uFc=!1;var xg6=_.dG(function(g){var r=z2P,E=function(){return""},B=DgX(g.data),w=oHJ(g.data),O=GIX(g.data),M=QqP(g.data);
r=function(){var u=g.data(),l=EHY(u,B(),w(),O(),M()),Q=!!u.videoId,z=l.text;return{title:Q?z:void 0,tooltip:Q?void 0:z,accessibilityText:z,onTap:l.onTap,iconName:l.iconType,style:u.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:l.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:u.buttonSize}};
E={};E=_.QY("ytDownloadButtonViewModelHost",(E.ytDownloadButtonViewModelIsHidden=function(){var u=g.data(),l=M();return u.playlistId||l()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||l()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},E));
return _.G("download-button-view-model",{class:E},_.G(_.MV,{data:r}))},"D");
xg6.idomCompat=!0;var X1z=_.dG(function(g){var r=g.backgroundLottieRef;var E=g.foregroundLottieRef;var B=g.children;var w=g.wrapperClass;var O=g.disableAnimation;g=function(){return(_.Y("web_animated_actions")||_.Y("web_animated_actions_v2"))&&!(O==null?0:O())};
return _.G("yt-animated-action",{class:_.QY("animated-action__container",w)},_.G("div",{class:"animated-action__content-with-background"},_.G(_.p,{cond:g,then:function(){return _.G(a6w,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:r==null?void 0:r(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(kIL()?"dark":"light")+"_v5.json"}}}})}}),B),_.G(_.p,{cond:g,
then:function(){return _.G(a6w,{lottiePlayerProps:function(){return{animationRef:E==null?void 0:E(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(kIL()?"dark":"light")+"_v4.json"}}}})}}))},"E");
X1z.idomCompat=!0;var a6w=_.dG(function(g){var r=g.wrapperClass;var E=g.lottieClass;var B=g.lottiePlayerProps;return _.G("div",{class:_.QY("animated-action__lottie",r),"aria-hidden":"true"},_.G(_.rN,{className:E,data:B,animationName:function(){return B().animationConfig.name}}))},"F");var HgJ={isOpen:!1};var YcQ={isAllowed:!1};var nHB={errorMessage:"",title:"",privacy:"",isDisabled:!0};var f6Y={isOpen:!1};var jqJ={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var NEA={response:void 0};var bgo=function(g,r){g=g===void 0?NEA:g;switch(r.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},g,{response:r.payload});default:return g}};var I66={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var JoQ=function(g,r){g=g===void 0?I66:g;switch(r.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},g,{nextDisabled:r.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},g,{nextCommand:r.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},g,{footerSubmissionData:r.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},g,{isImpersonationValid:r.payload});default:return g}};var mgZ={reportFormData:void 0,reportDetailsFormData:void 0};var PXD=function(g,r){g=g===void 0?mgZ:g;switch(r.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},g,{reportFormData:r.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},g,{reportDetailsFormData:r.payload});default:return g}};var co6=void 0;_.Y("mweb_enable_redux_store_on_demand")||(co6=new hj(tCY()));var Yn=_.Y("enable_web_delhi_icons");var igw=_.dG(function(g){g=_.y7(g,{themeOverride:void 0,animationRef:{}});var r=g.animatedIconType,E=g.active,B=g.themeOverride,w=g.animationRef;g=g.staticIconFn;var O=_.U(_.Dk(void 0,void 0,"P5a72b")),M=O.next().value,u=O.next().value,l=function(){a:{var e=r();var C=B==null?void 0:B();var X;C=(C==null?void 0:C.useDarkTheme)||((X=_.rM().resolve(_.gM(_.Vy)))==null?void 0:X());switch(e){case "LIKE":co6||(co6=new hj(tCY()));e=(e=W2D(co6.getState()))&&e.animationLightUrl&&e.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:C?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:C?e.animationDarkUrl:e.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(e){C=e;break a}C="animated_like_icon_"+(C?"dark":"light")+"_"+(Yn?"v5":"v4");C={lottiePlayerProps:{animationConfig:{name:C,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+C+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(Yn?" animated-like-icon-delhi":"")}}},totalFrames:Yn?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":C={lottiePlayerProps:{animationConfig:{name:C?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(C?"dark":"light")+(Yn?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(Yn?" animated-subscribe-icon-delhi":"")}}},totalFrames:Yn?120:79,lazyLoad:!1};break a}C=
void 0}return C},Q=function(){var e,C;
return(C=(e=l())==null?void 0:e.lottiePlayerProps.animationConfig.name)!=null?C:""},z=function(){if(l()){var e=l().lottiePlayerProps.animationConfig.path;
return Gw.get(e)||M()}};
O=_.U(_.Dk(!1,void 0,"h6xR3c"));var k=O.next().value;O=O.next().value;var H=e2B(O),R=function(){var e=l(),C,X,Z;return(Z=e==null?void 0:(C=e.lottiePlayerProps.animationConfig)==null?void 0:(X=C.rendererSettings)==null?void 0:X.className)!=null?Z:""},A=void 0,J=void 0;
_.bQ(function(){var e=l(),C=Q(),X=z(),Z=k(),c=E();if(e&&(J!==C&&(J=C,A=c,C=w(),H.animationConfig=e.lottiePlayerProps.animationConfig,H.animationRef=C,X&&(H.animationConfig.animationData=X,H.animationConfig.path=void 0),C=e.lottiePlayerProps.animationConfig.path,!Gw.get(C)&&e.lazyLoad&&C&&FlB(C,u)),!(Z||e.lazyLoad&&!X))){if(X=!w().lottieEl)c?(Z=e.totalFrames,H.animationConfig.initialSegment=[Z-1,Z]):H.animationConfig.initialSegment=void 0;if(A!==c&&!X)if(X=w(),c){var h;(h=X.lottieEl)==null||h.playSegments([0,
e.totalFrames],!0)}else{var y;(y=X.lottieEl)==null||y.playSegments([0,1],!0)}A=c}},"YCYOCe");
return _.G("animated-icon",{class:"ytAnimatedIconHost"},_.G(_.p,{cond:function(){var e,C;return!((e=l())==null||!e.lottiePlayerProps.animationConfig.path||((C=l())==null?0:C.lazyLoad)&&!z()||k())},
then:function(){return _.G(_.rN,{data:H,animationName:Q,className:R,animationRef:w})},
else:g}))},"G");_.Rh=_.dG(function(g){var r=_.VI("yt-subscribe-button-view-model"),E=_.VI("div"),B=_.VI("div"),w=_.uL(),O=_.uL(),M=_.uL(),u=_.QU(P7D,function(){return g.data().stateEntityStoreKey}),l=_.QU(t$S,function(){var GD,xb;
return(xb=(GD=g.data().notificationStateEntityStoreKeys)==null?void 0:GD.subsNotificationStateKey)!=null?xb:""}),Q=function(){return!g.data().enableSubscribeButtonPostClickAnimation},z=_.U(_.Dk(0,void 0,"eTsWvc")),k=z.next().value,H=z.next().value;
z=_.U(_.Dk(0,void 0,"dniDQ"));var R=z.next().value,A=z.next().value;z=_.U(_.Dk(!1,void 0,"EluPic"));var J=z.next().value,e=z.next().value;z=_.U(_.Dk(!1,void 0,"r0jnre"));var C=z.next().value,X=z.next().value;z=_.U(_.Dk(!1,void 0,"KMvoQe"));var Z=z.next().value,c=z.next().value,h;z=_.U(_.Dk(!1,void 0,"aSENce"));var y=z.next().value,OD=z.next().value,uB=function(){X(!0);_.pm(_.F6,function(){X(!1)},1500)};
_.bQ(function(){var GD=C();uQ(function(){GD&&!Q()&&u()&&coJ(w,O,M)})},"LgmX6c");
_.bQ(function(){var GD=u();uQ(function(){if(!Q()&&GD){var xb;((xb=g.animateWidth)==null?0:xb.call(g))&&mgY(r.value,!!GD.subscribed,k(),R());var zL,AD;((zL=h)==null?0:zL.subscribed)||!GD.subscribed||GD.key!==((AD=h)==null?void 0:AD.key)||uB();h=GD}})},"iZzoUb");
z=_.kB(function(){var GD,xb,zL,AD=g.data(),lA=!((GD=u())==null||!GD.subscribed);GD=!((xb=g.isOverlay)==null||!xb.call(g));xb=J()?r:void 0;var pt=(zL=l())==null?void 0:zL.state;zL=y();I6J(AD,pt);return Klt({model:AD,subscribed:lA,isOverlay:GD,element:xb,notificationState:pt,disableTextEllipsis:!0,focused:zL})},void 0,"yGQGue");
var zS=function(){var GD;if(!Q()&&((GD=g.animateWidth)==null?0:GD.call(g))&&(E==null?0:E.value)&&(B==null?0:B.value)&&!Z()){GD=u();var xb=_.U((GD==null?0:GD.subscribed)?[E,B]:[B,E]),zL=xb.next().value;xb=xb.next().value;zL=Math.ceil(zL.value.getBoundingClientRect().width);xb=Math.ceil(xb.value.getBoundingClientRect().width);H(zL);A(xb);mgY(r.value,!(GD==null||!GD.subscribed),zL,xb);c(!0)}},jV=_.HK(function(GD){zS();
var xb=u();xb&&(GD.detail.endpoint.subscribeEndpoint||GD.detail.endpoint.unsubscribeEndpoint)&&a6D(r.value,!xb.subscribed,xb)}),PJ=function(){var GD=_.rM().resolve(_.gM(_.wN));
GD&&OD(GD.isKeyBoardInUse())},At=function(){OD(!1)};
_.LC("yt-player-subscribe",function(GD){var xb=u();xb&&GD===g.data().channelId&&a6D(r.value,!0,xb)});
_.LC("yt-player-unsubscribe",function(GD){var xb=u();xb&&GD===g.data().channelId&&a6D(r.value,!1,xb)});
_.LC("yt-update-subscribe-button-action",function(GD){GD=_.n(GD,wg4);var xb=u();xb&&GD&&GD.channelId===g.data().channelId&&a6D(r.value,!!GD.subscribed,xb)});
_.Jk(function(){r.value&&(r.value.addEventListener("focusin",PJ),r.value.addEventListener("focusout",At));var GD=_.fC(_.F6,function(){zS()});
e(!0);_.J5(function(){_.F6.cancelJob(GD);r.value&&(r.value.removeEventListener("focusin",PJ),r.value.removeEventListener("focusout",At))})});
var XY=function(){var GD,xb,zL;if(zL=!((GD=u())==null||!GD.subscribed))GD=!!g.data().disableNotificationBell,zL=(xb=l())==null?void 0:xb.state,zL=!GD&&!!zL;return zL},xc=function(){var GD;
return!((GD=u())==null?0:GD.subscribed)},rg=function(){var GD,xb;
if(xb=xc()){xb=!!g.data().disableNotificationBell;var zL=(GD=l())==null?void 0:GD.state;xb=!xb&&!!zL}return xb},$t={},tD={};
return _.G("yt-subscribe-button-view-model",{class:_.QY(g.className,"yt-subscribe-button-view-model-wiz",($t["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var GD,xb;return!((GD=u())==null||!GD.subscribed)&&((xb=g.animateWidth)==null?void 0:xb.call(g))&&C()},$t["yt-subscribe-button-view-model-wiz--hidden"]=function(){var GD;
return!((GD=u())==null?0:GD.subscribed)&&g.data().hideWhenUnsubscribed},$t)),
el:r,"on:yt-service-request-sent":jV},_.G(X1z,{backgroundLottieRef:w,foregroundLottieRef:O,wrapperClass:_.QY("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(tD["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var GD;return((GD=g.animateWidth)==null?void 0:GD.call(g))&&C()},tD["yt-subscribe-button-view-model-wiz__static-width"]=function(){var GD;
return!((GD=g.animateWidth)==null?0:GD.call(g))},tD)),
disableAnimation:Q},_.G("div",{el:E,class:"yt-subscribe-button-view-model-wiz__container"},_.G(ZB,{data:z,icon:function(){return _.G(_.p,{cond:XY,then:function(){var GD=function(){var xb;return xgJ((xb=l())==null?void 0:xb.state)};
return _.G(_.p,{cond:function(){return Q()||GD()!=="NOTIFICATIONS_NONE"},
then:function(){return _.G(_.nh,{icon:GD})},
else:function(){return _.G(igw,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:M})}})}})},
secondaryIconName:function(){return XY()?"EXPAND":void 0}}))),_.G("div",{el:B,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.G(_.p,{cond:function(){var GD;return((GD=g.animateWidth)==null?void 0:GD.call(g))&&!Q()&&!Z()},
then:function(){return _.G(ZB,{data:_.kB(function(){var GD;return Klt({model:g.data(),subscribed:xc(),isOverlay:!((GD=g.isOverlay)==null||!GD.call(g)),element:r,disableTextEllipsis:!0})},void 0,"lwPlub"),
iconName:function(){var GD;return rg()?xgJ((GD=l())==null?void 0:GD.state):void 0},
secondaryIconName:function(){return rg()?"EXPAND":void 0}})}})))},"H");
_.Rh.idomCompat=!0;var igL=new _.Vn("RENDERER_STAMPER_OPTIONS_TOKEN");var Llb=_.dG(function(g){var r=g.data;var E=_.QU(P7D,function(){return r().subscriptionStateEntityKey});
return _.G(_.p,{cond:function(){var B=r(),w=E();return!B.hideWhenUnsubscribed||(w==null?0:w.subscribed)?_.n(r().button,_.nm):void 0},
then:function(B){return _.G("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.G(_.MV,{data:B,buttonOverrides:function(){return{toggled:!0}}}))}})},"I");
Llb.idomCompat=!0;var rZY=_.R$({buttonViewModel:_.MV,subscribeButtonViewModel:_.Rh,downloadButtonViewModel:xg6,toggleButtonViewModel:_.RY,subscribePlusButtonViewModel:Llb});_.rH(BJL);var z_L=new _.Vn("RENDERER_LOGGER_TOKEN");var $o;_.fm=new m8w;$o=new Map;var o9l="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),Q_Q=["notificationTextRenderer","notificationMultiActionRenderer"],GlL="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
DpS=wQl(function(g){return _.t5(g==null?void 0:g.targetId)}).useUpdatableData;var lrc=0;_.Af.debugName="EjJbCe";var VCb=_.dG(function(g){return _.G(_.Af,{data:function(){return g.actionRow().actions}},{buttonViewModel:function(r){var E=r.data;
return _.G(nj,{isRow:g.isRow,isIconOnlyButton:function(){return klS(E())},
useIntrinsicWidth:g.useIntrinsicWidth},_.G(_.MV,{data:E}))},
subscribeButtonViewModel:function(r){return _.G(nj,{isRow:g.isRow},_.G(_.Rh,{data:r.data,isOverlay:!1,animateWidth:function(){return!g.isRow()}}))},
downloadButtonViewModel:function(r){var E=r.data;return _.G(nj,{isRow:g.isRow,isIconOnlyButton:function(){return!!E().playlistId}},_.G(xg6,{data:E}))},
toggleButtonViewModel:function(r){var E=r.data;return _.G(nj,{isRow:g.isRow,isIconOnlyButton:function(){var B=E();return klS(_.n(B.isToggled?B.toggledButtonViewModel:B.defaultButtonViewModel,_.nm))}},_.G(_.RY,{data:E}))},
subscribePlusButtonViewModel:function(r){return _.G(nj,{isRow:g.isRow},_.G(Llb,{data:r.data}))}})},"J"),nj=_.dG(function(g){var r={};
return _.G("div",{class:_.QY("yt-flexible-actions-view-model-wiz__action",(r["yt-flexible-actions-view-model-wiz__action--row-action"]=g.isRow,r["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=g.useIntrinsicWidth,r["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,r["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=g.isIconOnlyButton,r))},g.children)},"K"),h2n=_.dG(function(g){var r=function(){var B;
return((B=g.layout)==null?void 0:B.call(g))===1},E={};
return _.G("yt-flexible-actions-view-model",{class:_.QY("yt-flexible-actions-view-model-wiz",g.className,(E["yt-flexible-actions-view-model-wiz--inline"]=function(){return!r()},E["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return g.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},E))},_.G(_.Ra,{each:function(){return g.data().actionsRows||[]}},function(B){return _.G(_.p,{cond:r,
then:function(){return _.G("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.G(VCb,{actionRow:B,isRow:r,useIntrinsicWidth:function(){return!!g.data().respectActionIntrinsicWidth}}))},
else:function(){return _.G(VCb,{actionRow:B,isRow:r})}})}))},"L"),sn=_.Y("web_enable_sink_yt_flexible_actions_view_model")?h2n:_.k3(BJL);
h2n.idomCompat=!0;_.BK(sn,"yt-flexible-actions-view-model",{props:{data:_.cP,layout:_.cP,justifyContentOverride:_.cP,className:_.cP}});_.fj=_.dG(function(g){var r=_.QU(Kh,function(){var w;return(w=g.data().dislikeEntityKey)!=null?w:""}),E=_.kB(function(){var w=r();
return w?w.likeStatus==="DISLIKE":_.n(g.data().toggleButtonViewModel,_.sg).isToggled},void 0,"B2tgKf"),B=_.kB(function(){return Object.assign({},_.n(g.data().toggleButtonViewModel,_.sg),{isToggled:E()})},void 0,"otfIbf");
return _.G("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.G(_.RY,{data:B,buttonShapeOverrides:g.buttonShapeOverrideables,onToggle:function(w){var O=r();O&&w!==(O.likeStatus==="DISLIKE")&&O.key&&_.hC(_.C0("likeStatusEntity",O.key,{likeStatus:w?"DISLIKE":"INDIFFERENT",hadUserInteraction:w}))}}))},"M");
_.fj.idomCompat=!0;_.$n=_.dG(function(g){var r=_.Y("web_supports_animations_api"),E=gt(function(H){var R=Q();if(!H){var A,J;return{numberText:(J=R==null?void 0:(A=R.likeCountIfIndifferent)==null?void 0:A.content)!=null?J:"",numberValue:Number(R==null?void 0:R.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var e;A=(R==null?void 0:(e=R.likeCountIfIndifferent)==null?void 0:e.content)!==H.numberText;if(u()||!A)return H;var C;return{numberText:(R==null?void 0:(C=R.likeCountIfIndifferent)==null?void 0:C.content)||
"",numberValue:Number(R==null?void 0:R.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!R}}),B=gt(function(H){var R=Q();
if(!H){var A,J;return{numberText:(J=R==null?void 0:(A=R.likeCountIfLiked)==null?void 0:A.content)!=null?J:"",numberValue:Number(R==null?void 0:R.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var e;A=(R==null?void 0:(e=R.likeCountIfIndifferent)==null?void 0:e.content)!==H.numberText;if(u()||!A)return H;var C;return{numberText:(R==null?void 0:(C=R.likeCountIfLiked)==null?void 0:C.content)||"",numberValue:Number(R==null?void 0:R.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!R}}),w=_.U(_.Dk(void 0,
void 0,"xYSlUe")),O=w.next().value,M=w.next().value,u=O,l=_.QU(Kh,function(){var H,R;
return(R=(H=g.data())==null?void 0:H.likeStatusEntityKey)!=null?R:""}),Q=_.QU(UYY,function(){var H,R;
return((H=g.likeCountEntity)==null?void 0:(R=H.call(g))==null?void 0:R.key)||""}),z=_.kB(function(){var H;
return((H=l())==null?void 0:H.likeStatus)==="LIKE"},void 0,"DG5Osd"),k=function(){var H;
return r&&!((H=g.likeCountEntity)==null||!H.call(g))};
return _.G("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.G(_.RY,{data:function(){var H=Object,R=H.assign,A;var J=_.n((A=g.data())==null?void 0:A.toggleButtonViewModel,_.sg);return R.call(H,{},J||{},{isToggled:z()})},
buttonShapeOverrides:g.buttonShapeOverrideables,animatedTextPropsDefault:function(){return k()?E():void 0},
animatedTextPropsToggled:function(){return k()?B():void 0},
onToggle:function(H){HPS(H,l(),u(),M)},
style:function(){var H;return((H=g.disableIconAnimation)==null?0:H.call(g))?void 0:{animateIcon:"true"}}}))},"N");
_.$n.idomCompat=!0;var Zg4=_.dG(function(g){var r=function(){return _.n(g.data().likeButtonViewModel,_.A9)},E=function(){var w;
return((w=r())==null?void 0:w.likeStatusEntityKey)||""},B=_.kB(function(){var w,O;
var M=(O=_.QU(Kh,E)())!=null?O:(w=r())==null?void 0:w.likeStatusEntity;w=g.data();var u;w=(w==null?void 0:(u=w.timedAnimationData)==null?void 0:u.animationTiming)||[];return{uniqueId:"like-dislike",timings:w,enabled:(M==null?void 0:M.likeStatus)==="INDIFFERENT"&&w.length>0,experimentEnabled:w.length>0}},void 0,"hGh9Td");
return _.G("segmented-like-dislike-button-view-model",{class:_.QY("ytSegmentedLikeDislikeButtonViewModelHost",g.className),"button-renderer":!0},_.G(o6D,{settings:B},_.G("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.G(_.p,{cond:r,then:function(w){return _.G(_.$n,{data:w,likeCountEntity:function(){return g.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.G(_.p,{cond:function(){return _.n(g.data().dislikeButtonViewModel,_.jf)},
then:function(w){return _.G(_.fj,{data:w,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"O");
Zg4.idomCompat=!0;_.BK(Zg4,"segmented-like-dislike-button-view-model",{props:{data:_.cP,className:_.cP}});var yow=_.dG(function(g){var r=g.data;var E=g.className;var B=g.setMinWidth;var w=g.forceIconOnly;var O=_.VI("account-link-button-view-model"),M=_.QU(_.pQl,function(){var H;return(H=r().accountLinkStatusEntityKey)!=null?H:""}),u=_.QU(_.pQl,function(){var H;
return(H=r().accountLinkStatusSecondaryEntityKey)!=null?H:""}),l=function(){if(!_.Y("web_account_link_secondary_killswitch")){var H,R;
return((H=M())==null?void 0:H.linked)||((R=u())==null?void 0:R.linked)}var A;return(A=M())==null?void 0:A.linked};
_.bQ(function(){var H=M();if(H){var R=wSU(new BjU,r1A(new g0Z,!!H.linked));_.MQ().then(function(A){A&&(A.setAccountLinkState(_.gk(R.JSC$10207_serializeBinary(),4)),A.updateAccountLinkingConfig(!!H.linked))})}},"b9pSsf");
var Q=function(){return _.n(r().toggleButtonViewModel,_.sg)};
_.LC("yt-signal-action-show-account-link-dialog",function(){if(Q()){var H=l()?Q().toggledButtonViewModel:Q().defaultButtonViewModel;H=_.n(H,_.nm);var R;if((R=M())==null?0:R.isWarning){R=_.n(r().warningButtonViewModel,_.nm);if(!R){_.NX(Error("Fh"));return}H=R}var A;(R=_.xP((A=H)==null?void 0:A.onTap))&&_.o6([R],O.value)}else _.NX(Error("Gh"))});
var z=function(){var H=Q();return Object.assign({},H,{isToggled:l()})},k=function(){return(w==null?0:w())?{iconPosition:"icon-only"}:{}};
return _.G("account-link-button-view-model",{class:_.QY("ytwAccountLinkButtonViewModelHost",E,function(){return(B==null?0:B())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:O,"button-renderer":!0},_.G("div",null,_.G(_.p,{cond:function(){var H;if((H=M())==null?0:H.isWarning)return(H=_.n(r().warningButtonViewModel,_.nm))||_.NX(Error("Fh")),H},
then:function(H){return _.G(_.MV,{data:H,buttonOverrides:k})},
else:function(){return _.G(_.RY,{data:z,buttonShapeOverrides:k})}})))},"P");_.BK(yow,"account-link-button-view-model",{props:{data:_.cP,className:_.EB,setMinWidth:_.EB,forceIconOnly:_.EB}});_.ek("menuRenderer","menuRenderer","ytd-menu-renderer");
var vHD={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"}},
dgw=_.Y("web_fix_missing_action_buttons")?100:200,j6=function(){var g=_.a.apply(this,arguments)||this;g.safeArea=!_.Y("kevlar_flex_menu_safe_area_killswitch");g.tonalOverride=!1;g.threeDotSize="M";g.isOverlay=!1;g.useOverlayDark=!1;g.topLevelIconsOnly=!1;g.JSC$12662_lastWidth=0;g.maybeUpdateFlexibleMenu=function(){_.Y("web_fix_missing_action_buttons")?requestAnimationFrame(g.maybeUpdateFlexibleMenuImpl):g.maybeUpdateFlexibleMenuImpl()};
g.maybeUpdateFlexibleMenuImpl=function(){var r;if((r=g.data)!=null&&r.flexibleItems){g.maybeFlushDebouncer();r=g.hostElement.clientWidth;var E=r>g.JSC$12662_lastWidth,B,w=((B=g.topLevelButtonsContainer)==null?void 0:B.scrollHeight)||0,O;B=((O=g.flexibleItemButtonsContainer)==null?void 0:O.scrollHeight)||0;O=g.hostElement.scrollHeight>Math.max(w,B)+8;E?(g.resetFlexibleItems(),g.JSC$12662_lastWidth=g.hostElement.clientWidth,g.maybeUpdateFlexibleMenu()):O&&(g.shrinkFlexibleMenu(),g.JSC$12662_lastWidth=
r)}};
g.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){g.onOverflowTap()},
iconPosition:"icon-only",style:g.isOverlay?g.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:g.threeDotSize,state:"active",accessibilityLabel:g.computeAccessibilityLabel(g.data)},g.threeDotButtonOverride)};
g.onOverflowTap=function(){if(g.data.fetchMenuCommand)_.rM().resolve(_.Er).resolveCommand(g.data.fetchMenuCommand,{form:{element:g.hostElement}});else if(g.data.isDisabled&&g.data.disabledCommand)_.Qy(g.data.disabledCommand,g.hostElement);else{var r=g.createMenuRendererVe(),E={items:g.items};g.data.menuPopupAccessibility&&(E.menuPopupAccessibility=g.data.menuPopupAccessibility);g.data.footer&&(E.footer=g.data.footer);r={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:E},veData:r}};
_.rM().resolve(_.Hh).openSheet({openPopupActionCommand:r},g.hostElement)}};
return g};
_.f(j6,_.a);_.S=j6.prototype;_.S.updateButtonOverrides=function(){if(!_.Y("menu_renderer_label_update_upkillswitch")){var g=_.S3(this.hostElement).querySelector("yt-button-view-model");g&&(g.buttonOverrides=this.buttonOverrides)}};
_.S.computeHasItems=function(){var g;return((g=this.topLevelButtonData)==null?void 0:g.length)||this.hasFlexibleItems};
_.S.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.S.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.ua(this.hostElement,{"--ytd-menu-renderer-button-color":_.aJ(this.data.iconColor)}))};
_.S.onStamperFinished=function(){this.JSC$12662_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.S.setupFlexibleMenu=function(){var g=this,r;(r=this.data)!=null&&r.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.VU(this.maybeUpdateFlexibleMenu,dgw,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){g.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement)),
this.resetFlexibleItems()):(this.flexAsTopLevelButtons=void 0,this.hostElement.removeEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.removeEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0))};
_.S.maybeFlushDebouncer=function(){if(_.Y("web_replace_formatted_with_attributed_string")){var g;(g=this.topLevelButtons)==null||g.forEach(function(E){var B;(E=(B=E.getElementsByTagName("yt-attributed-string"))==null?void 0:B[0])&&bHt(E)});
var r;(r=this.flexibleItemButtons)==null||r.forEach(function(E){var B;(E=(B=E.getElementsByTagName("yt-attributed-string"))==null?void 0:B[0])&&bHt(E)})}};
_.S.resetFlexibleItems=function(){var g;if((g=this.data)!=null&&g.flexibleItems){_.Y("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var r;this.flexAsTopLevelButtons=(r=this.data.flexibleItems)==null?void 0:r.map(function(E){return _.n(E,_.Pzn).topLevelButton});
_.Y("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.S.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.S.shrinkFlexibleMenu=function(){var g;(g=this.flexAsTopLevelButtons)!=null&&g.length&&(this.flexAsTopLevelButtons=[].concat(_.jW(this.flexAsTopLevelButtons.slice(0,-1))))};
_.S.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:vHD,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:vHD,events:!0}}};
_.S.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.S.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.S.detached=function(){this.icon="MORE_VERT"};
_.S.computeTopLevelButtonData=function(g){if(!g)return[];var r;g=(r=g==null?void 0:g.topLevelButtons)!=null?r:[];return _.jn.unsafeClone([].concat(_.jW(g)))};
_.S.computeItems=function(g,r){if(!g)return[];var E=[];if(r){var B=(g.flexibleItems||[]).map(function(M){return _.n(M,_.Pzn)});
B=_.U(B);for(var w=B.next();!w.done;w=B.next())w=w.value,r.includes(w.topLevelButton)||(w=w.menuItem)&&E.push(w)}var O;g=(O=g==null?void 0:g.items)!=null?O:[];return[].concat(_.jW(E),_.jW(g))};
_.S.computeMenuActive=function(g,r){return g||r};
_.S.onPopupOpened=function(){this.overlayOpen=!0;_.Sh(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.S.onPopupClosed=function(){this.overlayOpen=!1;_.Sh(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.S.onPopupCanceled=function(){this.overlayOpen=!1;_.Sh(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.S.computeAccessibilityLabel=function(g){return this.get("accessibility.accessibilityData.label",g)};
_.S.isHidden=function(g,r){return this.tonalOverride||!g?!0:g.fetchMenuCommand||g.isDisabled&&g.disabledCommand?!1:!(r==null?0:r.length)};
_.S.isModernOverflowHidden=function(g,r){return this.tonalOverride&&g?g.fetchMenuCommand?!1:!(r==null?0:r.length):!0};
_.S.createMenuRendererVe=function(){var g=this.data.trackingParams,r=_.PE(),E=_.JF();return g&&r&&E?(g=_.fW(g),E=_.bW(7591),_.Y("combine_ve_grafts")?_.Sp(_.pW(),E,g):_.N2(r,g,E),E):null};
_.hx.Object.defineProperties(j6.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.flexAsTopLevelButtons)==null||!g.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
j6.prototype.onPopupCanceled=j6.prototype.onPopupCanceled;j6.prototype.onPopupClosed=j6.prototype.onPopupClosed;j6.prototype.onPopupOpened=j6.prototype.onPopupOpened;j6.prototype.tonalOverrideChanged=j6.prototype.tonalOverrideChanged;j6.prototype.resetFlexibleItems=j6.prototype.resetFlexibleItems;j6.prototype.setupFlexibleMenu=j6.prototype.setupFlexibleMenu;j6.prototype.iconButtonColorChanged=j6.prototype.iconButtonColorChanged;j6.prototype.updateButtonOverrides=j6.prototype.updateButtonOverrides;
_.m([_.P(_.cY),_.L("design:type",Object)],j6.prototype,"ytdOpenPopupBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],j6.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],j6.prototype,"ytRendererstamperBehavior",void 0);_.m([_.zb("#button-shape"),_.L("design:type",U5)],j6.prototype,"buttonShape",void 0);_.m([_.zb("#button"),_.L("design:type",Object)],j6.prototype,"button",void 0);
_.m([_.K(),_.L("design:type",Object)],j6.prototype,"data",void 0);_.m([_.K({computed:"computeTopLevelButtonData(data)"}),_.L("design:type",Array)],j6.prototype,"topLevelButtonData",void 0);_.m([_.K(),_.L("design:type",Array)],j6.prototype,"flexAsTopLevelButtons",void 0);_.m([_.K({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.L("design:type",Array)],j6.prototype,"items",void 0);_.m([_.K({value:"MORE_VERT"}),_.L("design:type",String)],j6.prototype,"icon",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],j6.prototype,"safeArea",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.L("design:type",Boolean)],j6.prototype,"menuActive",void 0);_.m([_.K(),_.L("design:type",Boolean)],j6.prototype,"menuFocused",void 0);_.m([_.K({value:"bottom"}),_.L("design:type",String)],j6.prototype,"buttonTooltipPosition",void 0);_.m([_.K(),_.L("design:type",Boolean)],j6.prototype,"overlayOpen",void 0);
_.m([_.K({value:!0}),_.L("design:type",Boolean)],j6.prototype,"forceIconButton",void 0);_.m([_.K(),_.L("design:type",Boolean)],j6.prototype,"styleActionButton",void 0);_.m([_.K(),_.L("design:type",Boolean)],j6.prototype,"disableTextTransformOnButtons",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],j6.prototype,"tonalOverride",void 0);_.m([_.K(),_.L("design:type",Object)],j6.prototype,"threeDotSize",void 0);
_.m([_.K(),_.L("design:type",Object)],j6.prototype,"threeDotButtonOverride",void 0);_.m([_.K(),_.L("design:type",Object)],j6.prototype,"isOverlay",void 0);_.m([_.K(),_.L("design:type",Object)],j6.prototype,"useOverlayDark",void 0);_.m([_.K({computed:"computeButtonOverride(tonalOverride)"}),_.L("design:type",Object)],j6.prototype,"buttonOverride",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],j6.prototype,"hasCustomIconColor",void 0);
_.m([_.K({reflectToAttribute:!0}),_.W("flexAsTopLevelButtons"),_.L("design:type",Object),_.L("design:paramtypes",[])],j6.prototype,"hasFlexibleItems",null);_.m([_.K({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.L("design:type",Boolean)],j6.prototype,"hasItems",void 0);_.m([_.K(),_.L("design:type",Object)],j6.prototype,"topLevelIconsOnly",void 0);
_.m([_.Gb("topLevelIconsOnly"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],j6.prototype,"updateButtonOverrides",null);_.m([_.W("topLevelIconsOnly"),_.L("design:type",Object),_.L("design:paramtypes",[])],j6.prototype,"buttonOverrides",null);_.m([_.zb("#top-level-buttons-computed"),_.L("design:type",HTMLElement)],j6.prototype,"topLevelButtonsContainer",void 0);_.m([_.kk(".top-level-buttons > *"),_.L("design:type",Array)],j6.prototype,"topLevelButtons",void 0);
_.m([_.zb("#flexible-item-buttons"),_.L("design:type",HTMLElement)],j6.prototype,"flexibleItemButtonsContainer",void 0);_.m([_.kk("#flexible-item-buttons > *"),_.L("design:type",Array)],j6.prototype,"flexibleItemButtons",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],j6.prototype,"iconButtonColorChanged",null);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],j6.prototype,"setupFlexibleMenu",null);_.m([_.Yk("topLevelIconsOnly"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],j6.prototype,"resetFlexibleItems",null);_.m([_.Gb("tonalOverride"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],j6.prototype,"tonalOverrideChanged",null);
_.m([_.ob("yt-popup-opened"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],j6.prototype,"onPopupOpened",null);_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],j6.prototype,"onPopupClosed",null);_.m([_.ob("yt-popup-canceled"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],j6.prototype,"onPopupCanceled",null);
_.I(j6,"ytd-menu-renderer",function(){if(Hg6===void 0){var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);Hg6=g}g=Hg6;return g},{mode:_.My("kevlar_poly_si_batch_j030")?1:2});var TEb;var g9D;_.AH=_.dG(function(g){var r=g.data;var E=function(){if(r().icon)a:{var B={iconName:r().icon};for(var w=_.rM().resolve(_.o3),O=_.U([12,24]),M=O.next();!M.done;M=O.next()){var u=M.value;M=Object.assign({},B,{iconStyle:"youtube_fill",iconSize:u});u=Object.assign({},B,{iconStyle:"youtube_outline",iconSize:u});if(w.resolveIcon(M)){B=M;break a}if(w.resolveIcon(u)){B=u;break a}}B=void 0}else B=void 0;return B};
g={};return _.G("badge-shape",{class:_.QY("badge-shape-wiz",function(){return $pB(r().type)},(g["badge-shape-wiz--overlay"]=function(){return r().isOverlay},g["badge-shape-wiz--ads-include-dot"]=function(){return r().adsIncludeDot},g["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(r().type){case 16:case 17:case 18:var B=!0;
break a;default:B=!1}return B},g["badge-shape-wiz--status-badge"]=function(){a:switch(r().type){case 11:case 12:case 13:case 14:case 15:var B=!0;
break a;default:B=!1}return B},g["badge-shape-wiz--no-text"]=function(){return!r().text},g["badge-shape-wiz--modern"]=function(){return r().modern||_.Y("web_modern_badge_shape")},g)),
style:_.Rl({"background-color":function(){var B;return(B=r().customColors)==null?void 0:B.backgroundColor}}),
role:function(){return r().accessibilityText?"img":void 0},
"aria-label":function(){return r().accessibilityText}},_.G(_.p,{cond:function(){return r().animation},
then:function(B){return _.G(_.rN,{className:"badge-shape-wiz__icon",data:B,animationName:function(){return B().animationConfig.name||""}})}}),_.G(_.p,{cond:function(){var B;
return E()&&!((B=r())==null?0:B.animation)},
then:function(){return _.G("div",{class:"badge-shape-wiz__icon"},_.G(L2P,{data:function(){return E()}}))}}),_.G("div",{class:"badge-shape-wiz__text"},function(){var B;
return(B=r())==null?void 0:B.text}))},"Q");
_.AH.idomCompat=!0;_.BK(_.AH,"badge-shape",{props:{data:_.cP}});var bo=function(){var g=_.a.apply(this,arguments)||this;g.systemIcons=_.Y("kevlar_system_icons");g.animated=_.Y("animated_live_badge_icon");g.useBadgeShape=_.Y("web_badge_shape_defrag");return g};
_.f(bo,_.a);_.S=bo.prototype;_.S.addTooltips=function(){for(var g=_.S3(this.hostElement).querySelectorAll(".badge"),r=0,E;E=g[r++];){var B=this.repeatElement.itemForElement(E);E=_.S3(E);E.lastChild&&E.lastChild.is==="tp-yt-paper-tooltip"&&E.removeChild(E.lastChild);if(B=B.metadataBadgeRenderer&&B.metadataBadgeRenderer.tooltip){var w=_.yx("tp-yt-paper-tooltip");(0,_.q1)(w).textContent=B;w.setAttribute("position","top");w.setAttribute("aria-hidden","true");E.appendChild(w)}}};
_.S.badgesChanged=function(){var g=this;_.ep().parkOrScheduleJob(function(){g.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.S.standaloneRoundedBadgeChanged=function(){var g=this.useRoundedBadge?this.useRoundedBadge:void 0;g&&(this.useRoundedBadge=g)};
_.S.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.S.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.S.computeStyle=function(g){_.Y("enable_html5_teal_ad_badge")&&g==="BADGE_STYLE_TYPE_AD"&&(g="badge-style-type-ad-alternate");_.Y("kevlar_ytb_live_badges")&&g==="BADGE_STYLE_TYPE_LIVE_NOW"&&(g="badge-style-type-live-now-alternate");return g?g.toLowerCase().replace(/_/g,"-"):""};
_.S.computeRole=function(g){return this.computeAriaLabel(g)?"img":"status"};
_.S.computeAriaLabel=function(g){var r;return(g==null?void 0:(r=g.accessibilityData)==null?void 0:r.label)||(g==null?void 0:g.label)};
_.S.computeBadgeShape=function(g){var r;if(g){var E,B=s_c(g.style),w=frX(g.style),O=g.label,M=((E=g.accessibilityData)==null?void 0:E.label)||g.label;g=(r=g.icon)==null?void 0:r.iconType;r={type:B,brNzRatingBadgeType:w,text:O,accessibilityText:M,icon:g!=="PREMIUM"?g:void 0}}else r={};return r};
_.S.updateComputedBadges=function(g,r,E){var B=this;(r=r?[r]:E?[E]:void 0)?this.computedBadges=r:this.computedBadges=g==null?void 0:g.filter(function(w){var O;if((O=w.metadataBadgeRenderer)==null?0:O.groups){O=!1;w=_.U(w.metadataBadgeRenderer.groups);for(var M=w.next();!M.done;M=w.next()){M=M.value;var u=void 0;O=O||((u=B.hiddenBadgeGroups)==null?void 0:u.includes(M))}return!O}return!0})};
_.S.useFilledIcons=function(g){return _.Y("kevlar_system_icons")&&(g==="AUDIO_BADGE"||g==="CHECK_CIRCLE_THICK"||g==="OFFICIAL_ARTIST_BADGE"||g==="SPONSORSHIP_STAR"||g==="PERSON_RADAR_FILLED"||g==="PERSON_RADAR")};
_.S.computeBadgeShapeStyle=function(g){return this.useBadgeShape?g==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||g==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.S.computeIcon=function(g){var r,E;g=g==null?void 0:(r=g.metadataBadgeRenderer)==null?void 0:(E=r.icon)==null?void 0:E.iconType;if(g!=="PREMIUM"&&g)return _.Dh(g)};
_.S.computeStandaloneBadge=function(g){var r;g=g==null?void 0:(r=g.icon)==null?void 0:r.iconType;return g==="PREMIUM_STANDALONE"||g==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
bo.prototype.hiddenBadgeGroupsChanged=bo.prototype.hiddenBadgeGroupsChanged;bo.prototype.standaloneBadgeChanged=bo.prototype.standaloneBadgeChanged;bo.prototype.standaloneRoundedBadgeChanged=bo.prototype.standaloneRoundedBadgeChanged;bo.prototype.badgesChanged=bo.prototype.badgesChanged;_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],bo.prototype,"hidden",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],bo.prototype,"componentBehavior",void 0);
_.m([_.K(),_.L("design:type",Array)],bo.prototype,"badges",void 0);_.m([_.K(),_.L("design:type",Object)],bo.prototype,"topStandaloneBadge",void 0);_.m([_.K(),_.L("design:type",Object)],bo.prototype,"bottomStandaloneBadge",void 0);_.m([_.K(),_.L("design:type",Object)],bo.prototype,"computedBadges",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],bo.prototype,"mediumFontAdBadge",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],bo.prototype,"useRoundedBadge",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],bo.prototype,"largeFontAdBadge",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],bo.prototype,"overlayAd",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],bo.prototype,"overlayPremium",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],bo.prototype,"noDotAdBadge",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],bo.prototype,"collectionTruncate",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],bo.prototype,"isThumbnailBadge",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],bo.prototype,"wrapBadges",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],bo.prototype,"systemIcons",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],bo.prototype,"animated",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],bo.prototype,"useBadgeShape",void 0);_.m([_.K({value:[]}),_.L("design:type",Array)],bo.prototype,"hiddenBadgeGroups",void 0);_.m([_.zb("#repeat"),_.L("design:type",JC)],bo.prototype,"repeatElement",void 0);_.m([_.Yk("badges"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],bo.prototype,"badgesChanged",null);
_.m([_.Yk("useRoundedBadge"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],bo.prototype,"standaloneRoundedBadgeChanged",null);_.m([_.Yk("topStandaloneBadge","bottomStandaloneBadge"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],bo.prototype,"standaloneBadgeChanged",null);_.m([_.Yk("hiddenBadgeGroups"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],bo.prototype,"hiddenBadgeGroupsChanged",null);
_.m([_.N({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],bo);
var rZZ=_.U2()(bo,"ytd-badge-supported-renderer",function(){if(g9D===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);g9D=g}g=g9D;return g},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.My("kevlar_poly_si_batch_j053")?1:2});var JH=function(){var g=_.a.apply(this,arguments)||this;g.iconType="STAR";g.standardizeIconSize=_.Y("kevlar_system_icons");g.mediaHoverOverlayInitialVisibility=_.Y("enable_top_landscape_image_button_command_web");g.noBottomMargin=!1;g.thumbnailObjectFit="CONTAIN";g.thumbnailFitHeight=!0;g.actionMap={"yt-mute-ad-action":"handleMuteAd"};return g};
_.f(JH,_.a);_.S=JH.prototype;
_.S.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"},params:{mediumFontAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.image":{id:"media",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.image.thumbnail]]",width:"[[mediaThumbnailWidth]]",fitHeight:"[[thumbnailFitHeight]]",objectFit:"[[thumbnailObjectFit]]"}}}},
"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",
notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.S.dataChanged=function(){this.clickCommand=this.get("data.clickCommand.commandExecutorCommand.commands.0");this.clickCommand||(this.clickCommand=this.get("data.clickCommand"));this.clickCommand&&(this.updateMediaBackgroundImage(),this.ytSparklesClickLocationBehavior.configureClickTargets("root",JH.JSC$12674_DEFAULT_CLICK_LOCATION_BEHAVIOR,JH.JSC$12674_CLICK_LOCATION_ID_MAP))};
_.S.onTap=function(g){if(!_.Y("use_on_click_for_desktop_display_ad"))this.onTapOrClick(g)};
_.S.onClick=function(g){if(_.Y("use_on_click_for_desktop_display_ad"))this.onTapOrClick(g)};
_.S.onTapOrClick=function(g){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,g,!1)};
_.S.updateMediaBackgroundImage=function(){var g=this.get("data.image.thumbnail.thumbnails");g&&(g=_.wt(g,0))&&_.ua(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+g+")"})};
_.S.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var g=0;g<this.data.impressionEndpoints.length;g++){var r=this.data.impressionEndpoints[g];r.clickTrackingParams&&delete r.clickTrackingParams;_.rM().resolve(_.Er).resolveCommand(r,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var E;((E=this.data)==null?0:E.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.S.handleMuteAd=function(){};
_.S.attached=function(){var g=this;_.Y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&g.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.S.detached=function(){_.Y("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.hx.Object.defineProperties(JH.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)==null||!g.titleText)return"";var r;return _.zn("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((r=this.data)==null?void 0:r.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?0:g.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?0:g.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?0:g.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?0:g.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?0:g.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 g;return!((g=this.data)==null||!g.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"}}});
JH.prototype.onClick=JH.prototype.onClick;JH.prototype.onTap=JH.prototype.onTap;JH.prototype.dataChanged=JH.prototype.dataChanged;
JH.JSC$12674_CLICK_LOCATION_ID_MAP=_.Y("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"]]);
JH.JSC$12674_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.Y("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"}];_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],JH.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],JH.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.P(_.Ji),_.L("design:type",Object)],JH.prototype,"ytdDismissibleItemBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],JH.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.hi.YtSparklesClickLocationBehavior),_.L("design:type",Object)],JH.prototype,"ytSparklesClickLocationBehavior",void 0);_.m([_.P(jb),_.L("design:type",Object)],JH.prototype,"ytdActiveViewBehavior",void 0);_.m([_.P([_.gN.YtActionHandlerBehavior]),_.L("design:type",Object)],JH.prototype,"actionHandlerBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],JH.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],JH.prototype,"clickCommand",void 0);_.m([_.K({reflectToAttribute:!0,selector:_.Jj}),_.L("design:type",Boolean)],JH.prototype,"miniMode",void 0);_.m([_.K(),_.L("design:type",String)],JH.prototype,"iconType",void 0);_.m([_.W("data.titleText"),_.L("design:type",String),_.L("design:paramtypes",[])],JH.prototype,"titleAriaLabel",null);
_.m([_.W("data.rating"),_.L("design:type",Object),_.L("design:paramtypes",[])],JH.prototype,"getRating",null);_.m([_.W("data.price"),_.L("design:type",Object),_.L("design:paramtypes",[])],JH.prototype,"getPrice",null);_.m([_.W("data.thirdLine"),_.L("design:type",Object),_.L("design:paramtypes",[])],JH.prototype,"getThirdLine",null);_.m([_.W("data.fourthLine"),_.L("design:type",Object),_.L("design:paramtypes",[])],JH.prototype,"getFourthLine",null);
_.m([_.W("data.fifthLine"),_.L("design:type",Object),_.L("design:paramtypes",[])],JH.prototype,"getFifthLine",null);_.m([_.W("getRating"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],JH.prototype,"computeRatingHidden",null);_.m([_.W("getPrice"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],JH.prototype,"computePriceHidden",null);_.m([_.W("getThirdLine"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],JH.prototype,"computeThirdLineHidden",null);
_.m([_.W("getFourthLine"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],JH.prototype,"computeFourthLineHidden",null);_.m([_.W("getFifthLine"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],JH.prototype,"computeFifthLineHidden",null);_.m([_.K({reflectToAttribute:!0}),_.W("data.energyIcon"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],JH.prototype,"hasEnergyIcon",null);
_.m([_.W("computePriceHidden","computeRatingHidden"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],JH.prototype,"computeSecondaryTextHidden",null);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],JH.prototype,"standardizeIconSize",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],JH.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],JH.prototype,"noBottomMargin",void 0);
_.m([_.K({reflectToAttribute:!0}),_.W("data.layout"),_.L("design:type",String),_.L("design:paramtypes",[])],JH.prototype,"layout",null);_.m([_.W("data.layout"),_.L("design:type",Object),_.L("design:paramtypes",[])],JH.prototype,"mediaThumbnailWidth",null);_.m([_.W("layout"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],JH.prototype,"useRoundedBadge",null);_.m([_.K(),_.L("design:type",String)],JH.prototype,"thumbnailObjectFit",void 0);
_.m([_.K(),_.L("design:type",Object)],JH.prototype,"thumbnailFitHeight",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],JH.prototype,"dataChanged",null);_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],JH.prototype,"onTap",null);_.m([_.ob("click"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],JH.prototype,"onClick",null);
_.m([_.N({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],JH);
_.I(JH,"ytd-display-ad-renderer",function(){if(TEb!==void 0)return TEb;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return TEb=g},{mode:1});var E9D;var BJw;var wQA;var j_V=new Map;var SEw=!1;var Ph=function(){var g=_.a.apply(this,arguments)||this;g.DEFAULT_TOOLTIP_OFFSET="10";g.TOOLTIP_OFFSET_NO_BANNER="-8";g.badges=null;g.noEndpoints=!1;g.wrapText=!1;g.forceVerified=!1;g.tooltipPosition="top";g.compactStyle=!1;g.height=0;g.lineHeight=0;return g};
_.f(Ph,_.a);_.S=Ph.prototype;_.S.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.S.attached=function(){var g=this;this.observer=new MutationObserver(function(r,E){g.handleResized();E.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.S.detached=function(){this.observer&&this.observer.disconnect()};
_.S.logTooltipEvent=function(){_.Y("kevlar_wiz_tooltip_event_killswitch")||SEw||(_.AZJ("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),SEw=!0)};
_.S.handleWindowResized=function(){this.handleResized()};
_.S.onChannelNameChanged=function(){this.verified?this.handleResized():(this.textEl&&this.textEl.style.removeProperty("width"),this.textContainerEl&&(this.textContainerEl.style.removeProperty("padding"),this.textContainerEl.style.removeProperty("margin-right"),this.textContainerEl.style.removeProperty("margin-left")))};
_.S.onHeightChanged=function(){if(this.verified){var g=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.Ca("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=g:this.textContainerEl.style.marginRight=g}};
_.S.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.Ca("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.S.handleResized=function(){var g=this;this.verified&&_.F6.addLowPriorityJob(function(){g.fitBackgroundToText();var r=getComputedStyle(g.hostElement).lineHeight;r&&(r=r.match(/\d+/))&&r.length&&(g.lineHeight=Number(r[0]));g.height=g.lineHeight&&!g.wrapText?g.lineHeight:g.textEl.offsetHeight})};
_.S.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var g=document.createRange(),r=_.S3(this.textEl).children;r.length>0?g.selectNodeContents(r[0]):g.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(g.getBoundingClientRect().width)+"px"}};
_.S.computeChannelBadgeStyle=function(g){var r;if((g==null?0:(r=g.runs)==null?0:r.length)&&g.runs[0].textColor)return"--ytd-badge-icon-color:"+_.aJ(g.runs[0].textColor)+";"};
_.hx.Object.defineProperties(Ph.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"?_.Lf(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var g=this.get("badges.0.metadataBadgeRenderer.tooltip");if(g)return g}return _.Vp(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
Ph.prototype.onLineHeightChanged=Ph.prototype.onLineHeightChanged;Ph.prototype.onHeightChanged=Ph.prototype.onHeightChanged;Ph.prototype.onChannelNameChanged=Ph.prototype.onChannelNameChanged;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Ph.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Ph.prototype,"badges",void 0);_.m([_.K(),_.L("design:type",Object)],Ph.prototype,"channelName",void 0);
_.m([_.K(),_.L("design:type",Object)],Ph.prototype,"noEndpoints",void 0);_.m([_.K(),_.L("design:type",Object)],Ph.prototype,"wrapText",void 0);_.m([_.K(),_.L("design:type",Object)],Ph.prototype,"forceVerified",void 0);_.m([_.K(),_.L("design:type",Object)],Ph.prototype,"tooltipPosition",void 0);_.m([_.K(),_.L("design:type",String)],Ph.prototype,"tooltip",void 0);_.m([_.K(),_.L("design:type",Boolean)],Ph.prototype,"hasChannelArt",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Ph.prototype,"compactStyle",void 0);_.m([_.zb("#text-container"),_.L("design:type",HTMLElement)],Ph.prototype,"textContainerEl",void 0);_.m([_.zb("#text"),_.L("design:type",Object)],Ph.prototype,"textEl",void 0);_.m([_.zb("#verified-tooltip"),_.L("design:type",HTMLElement)],Ph.prototype,"verifiedTooltip",void 0);_.m([_.K(),_.L("design:type",Object)],Ph.prototype,"height",void 0);
_.m([_.K(),_.L("design:type",Object)],Ph.prototype,"lineHeight",void 0);_.m([_.K({reflectToAttribute:!0}),_.W("badges","forceVerified"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Ph.prototype,"verified",null);_.m([_.W("badges","verified"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Ph.prototype,"hideBadges",null);_.m([_.W("channelName"),_.L("design:type",Object),_.L("design:paramtypes",[])],Ph.prototype,"formattedName",null);
_.m([_.W("badges","verified","formattedName"),_.L("design:type",String),_.L("design:paramtypes",[])],Ph.prototype,"tooltipText",null);_.m([_.W("hasChannelArt"),_.L("design:type",String),_.L("design:paramtypes",[])],Ph.prototype,"tooltipOffset",null);_.m([_.Gb("channelName"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Ph.prototype,"onChannelNameChanged",null);
_.m([_.Gb("height"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Ph.prototype,"onHeightChanged",null);_.m([_.Gb("lineHeight","height"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Ph.prototype,"onLineHeightChanged",null);_.m([_.N({is:"ytd-channel-name",disableElementRegistration:!0})],Ph);
_.I(Ph,"ytd-channel-name",function(){if(wQA!==void 0)return wQA;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return wQA=g},{mode:_.My("kevlar_poly_si_batch_j036")?1:2});var tH=function(){var g=_.a.apply(this,arguments)||this;g.standardizeIconSize=_.Y("kevlar_system_icons");return g};
_.f(tH,_.a);tH.prototype.basicPaletteChanged=function(){var g;(g=this.data.color)!=null&&g.basicColorPaletteData&&_.tR(this.hostElement,this.data.color.basicColorPaletteData)};
tH.prototype.useFilledIcons=function(g){return _.Y("kevlar_system_icons")&&(g==="CHECK_CIRCLE_THICK"||g==="OFFICIAL_ARTIST_BADGE")};
_.hx.Object.defineProperties(tH.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return this.data.authorCreator||((g=this.data)==null?void 0:(r=g.color)==null?void 0:(E=r.basicColorPaletteData)==null?void 0:E.backgroundColor)}}});
tH.prototype.basicPaletteChanged=tH.prototype.basicPaletteChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],tH.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],tH.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],tH.prototype,"standardizeIconSize",void 0);_.m([_.K({reflectToAttribute:!0}),_.W("data.authorUnifiedVerified"),_.L("design:type",Object),_.L("design:paramtypes",[])],tH.prototype,"verified",null);
_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],tH.prototype,"creator",null);_.m([_.Gb("data.color.basicColorPaletteData"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],tH.prototype,"basicPaletteChanged",null);_.m([_.N({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],tH);
_.I(tH,"ytd-author-comment-badge-renderer",function(){if(BJw!==void 0)return BJw;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return BJw=g},{mode:1});var OPb;var FG=function(){return _.a.apply(this,arguments)||this};
_.f(FG,_.a);FG.prototype.computeThumbnailWidth=function(g){if(g==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],FG.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],FG.prototype,"data",void 0);_.m([_.K({computed:"computeIcon_(data.icon)"}),_.L("design:type",String)],FG.prototype,"icon",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],FG.prototype,"surface",void 0);
_.m([_.K({reflectToAttribute:!0,value:_.Y("enable_shrink_image_size_on_web_posts_singleton")}),_.L("design:type",Boolean)],FG.prototype,"searchSxsUx",void 0);_.m([_.N({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],FG);
_.I(FG,"ytd-backstage-image-renderer",function(){if(OPb!==void 0)return OPb;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return OPb=g},{mode:1});var Up6;var e6=function(){var g=_.a.apply(this,arguments)||this;g.isLoading=!1;g.selectedItemIndex=-1;return g};
_.f(e6,_.a);_.S=e6.prototype;_.S.computeIsChannelOwner=function(g){if(!g)return!0;g=g[0];return!(g&&(g.signinEndpoint||g.selectServiceEndpoint))};
_.S.computeIsImagePoll=function(g){return(g==null?void 0:g.type)==="POLL_TYPE_IMAGE"};
_.S.computeIsTotalVotesDisabled=function(g){return!(g==null?0:g.totalVotes)};
_.S.thumbnailSrc=function(g){var r,E,B,w;return(g==null?0:(r=g.thumbnails)==null?0:(E=r[0])==null?0:E.url)?_.nI((B=g.thumbnails)==null?void 0:(w=B[0])==null?void 0:w.url):void 0};
_.S.progressWidth=function(g){return"width:"+(g?g*100:0)+"%;"};
_.S.textAreaWidth=function(g){return this.isImagePoll?null:"width:"+(g?g*100:0)+"%;"};
_.S.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.S.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var g=this.data.choices,r=0;r<g.length;r++)if(g[r].selected){this.selectedItemIndex=r;break}};
_.S.onPopupClosed=function(g,r){g=Number(this.pollVotes.selected);r.confirmed&&(this.selectChoice(g,!1),_.OS(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.S.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.S.onYtCommentPollRevert=function(g,r){r&&(this.selectChoice(r.selectedChoiceIndex,!0),this.set("data.totalVotes",r.totalVotes))};
_.S.onYtServiceRequestSent=function(g,r){if(r.actions)for(g=0;g<r.actions.length;g++){var E=r.actions[g];_.n(E,pY)&&this.set("data.totalVotes",_.n(E,pY).totalVotes)}};
_.S.onYtServiceRequestCompleted=function(g){var r=this.get("detail.data.actionResults.0.feedback",g);g=this.get("detail.data.actionResults.0.status",g);if(r==="FEEDBACK_DESELECT"||r==="FEEDBACK_SELECT")this.isLoading=!1,g==="STATUS_FAILED"?_.Sh(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.S.getEndpoint=function(g,r){return r===g?this.data.choices[r].deselectServiceEndpoint||null:this.data.choices[g].selectServiceEndpoint||null};
_.S.selectChoice=function(g,r){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var E=0;E<this.data.choices.length;E++){var B;if(g===this.selectedItemIndex){var w=!1;var O=B=null}else B=(w=E===g)?this.data.choices[E].voteRatioIfSelected:this.data.choices[E].voteRatioIfNotSelected,O=w?this.data.choices[E].votePercentageIfSelected:this.data.choices[E].votePercentageIfNotSelected;this.set("data.choices."+E+".voteRatio",B);
this.set("data.choices."+E+".votePercentage",O);this.set("data.choices."+E+".selected",w)}r||(this.isLoading=!0,(r=this.getEndpoint(g,this.selectedItemIndex))&&_.rM().resolve(_.Er).resolveCommand(r,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===g?-1:g};
_.hx.Object.defineProperties(e6.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
e6.prototype.onYtServiceRequestCompleted=e6.prototype.onYtServiceRequestCompleted;e6.prototype.onYtServiceRequestSent=e6.prototype.onYtServiceRequestSent;e6.prototype.onYtCommentPollRevert=e6.prototype.onYtCommentPollRevert;e6.prototype.onPopupClosed=e6.prototype.onPopupClosed;e6.prototype.dataChanged=e6.prototype.dataChanged;_.m([_.P(_.Ii),_.L("design:type",Object)],e6.prototype,"paperItemBehavior",void 0);
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],e6.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.cY),_.L("design:type",Object)],e6.prototype,"ytdOpenPopupBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],e6.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],e6.prototype,"isLoading",void 0);_.m([_.K({computed:"computeIsChannelOwner(data.choices)"}),_.L("design:type",Boolean)],e6.prototype,"isChannelOwner",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.L("design:type",Boolean)],e6.prototype,"isImagePoll",void 0);_.m([_.K({computed:"computeIsTotalVotesDisabled(data)"}),_.L("design:type",Boolean)],e6.prototype,"isTotalVotesDisabled",void 0);_.m([_.K(),_.L("design:type",Object)],e6.prototype,"previousPollInfo",void 0);_.m([_.K(),_.L("design:type",Object)],e6.prototype,"selectedItemIndex",void 0);_.m([_.zb("#poll-votes"),_.L("design:type",Object)],e6.prototype,"pollVotes",void 0);
_.m([_.W("isChannelOwner"),_.L("design:type",Object),_.L("design:paramtypes",[])],e6.prototype,"endpointStyle",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],e6.prototype,"dataChanged",null);_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],e6.prototype,"onPopupClosed",null);
_.m([_.ob("yt-comment-poll-revert"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],e6.prototype,"onYtCommentPollRevert",null);_.m([_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.XA]),_.L("design:returntype")],e6.prototype,"onYtServiceRequestSent",null);
_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],e6.prototype,"onYtServiceRequestCompleted",null);_.m([_.N({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],e6);
_.I(e6,"ytd-backstage-poll-renderer",function(){if(Up6!==void 0)return Up6;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Up6=g},{mode:2});var Miz;var qEn={autoplay:!1,loop:!1},u_w={simpleText:""},Wh=function(){var g=_.a.apply(this,arguments)||this;g.isLoading=!1;g.usesPanelLockup=!1;g.selectedItemIndex=-1;g.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},qEn,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});g.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},qEn,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});g.correctnessAnimationProps=[];g.correctnessAnimationRefs=[];return g};
_.f(Wh,_.a);_.S=Wh.prototype;_.S.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.S.computeIsChannelOwner=function(g){if(!g)return!0;g=g[0];return!(g&&(g.signinEndpoint||g.selectServiceEndpoint))};
_.S.computeIsTotalVotesDisabled=function(g){return!(g==null?0:g.totalVotes)};
_.S.computeIsImageQuiz=function(g){return(g==null?void 0:g.type)==="POLL_TYPE_IMAGE"};
_.S.onExplanationChanged=function(){this.expander.reset()};
_.S.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var g=this.data.choices;if(g){this.maybeInitializeQuizLotties(g);for(var r=0;r<g.length;r++)if(g[r].isSelected||this.isChannelOwner&&g[r].isCorrect){this.selectedItemIndex=r;return}this.selectedItemIndex=-1}}};
_.S.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var g=this.selectedItemIndex,r=Number(this.quizVotes.selected);this.selectChoice(r);this.sendVoteAction(r,g);this.quizVotes.selected=-1;var E;g=!((E=this.data)==null?0:E.enableAnimation);this.maybePlayAnswerAnimations(g)}};
_.S.onYtCommentPollRevert=function(g,r){r&&(this.selectChoice(r.selectedChoiceIndex),this.set("data.totalVotes",r.totalVotes))};
_.S.onYtServiceRequestSent=function(g,r){if(r.actions)for(g=_.U(r.actions),r=g.next();!r.done;r=g.next())(r=_.n(r.value,pY))&&this.set("data.totalVotes",r.totalVotes)};
_.S.onYtServiceRequestCompleted=function(g){var r=this.get("detail.data.actionResults.0.feedback",g);g=this.get("detail.data.actionResults.0.status",g);if(r==="FEEDBACK_DESELECT"||r==="FEEDBACK_SELECT")this.isLoading=!1,g==="STATUS_FAILED"?_.Sh(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.S.getAnimationPropsForChoiceIndex=function(g,r){return r[g]};
_.S.maybePlayAnswerAnimations=function(g){g=g===void 0?!1:g;var r;if((r=this.data)!=null&&r.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){r=_.U(this.correctnessAnimationRefs);for(var E=r.next();!E.done;E=r.next()){var B=void 0,w=void 0;(B=E.value)==null||(w=B.lottieEl)==null||w.stop()}if(!(this.selectedItemIndex<0)){r=0;g&&(r=this.isCorrect?37:25);var O,M;(O=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(M=O.lottieEl)==null||M.goToAndPlay(g?r:0,!0);if(!(this.isCorrect||
(O=this.data.choices.findIndex(function(z){return z.isCorrect}),O<0))){var u,l;
(l=(u=this.correctnessAnimationRefs[O])==null?void 0:u.lottieEl)==null||l.goToAndPlay(37,!0);var Q;u=(Q=this.fadeContainers)==null?void 0:Q.item(O);!g&&u&&this.fadeIn(u)}}}};
_.S.thumbnailSrc=function(g){var r,E,B,w;return(g==null?0:(r=g.thumbnails)==null?0:(E=r[0])==null?0:E.url)?_.nI((B=g.thumbnails)==null?void 0:(w=B[0])==null?void 0:w.url):void 0};
_.S.a11yVotedText=function(g,r){var E,B,w=((E=this.data)==null?void 0:(B=E.correctVotedText)==null?void 0:B.simpleText)||"",O,M;E=((O=this.data)==null?void 0:(M=O.votedText)==null?void 0:M.simpleText)||"";if(!r)return"";var u,l;if((u=this.data)==null?0:(l=u.choices)==null?0:l[g].isCorrect)return w;var Q,z;return((Q=this.data)==null?0:(z=Q.choices)==null?0:z[g].isSelected)?E:""};
_.S.getEndpoint=function(g,r){return r===g?this.data.choices[g].deselectServiceEndpoint||null:this.data.choices[g].selectServiceEndpoint||null};
_.S.sendVoteAction=function(g,r){if(g=this.getEndpoint(g,r))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(g)};
_.S.selectChoice=function(g){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var r=0;r<this.data.choices.length;r++)this.set("data.choices."+r+".isSelected",g===this.selectedItemIndex?!1:r===g);this.selectedItemIndex=this.selectedItemIndex===g?-1:g};
_.S.maybeInitializeQuizLotties=function(g){var r=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=g.map(function(E){return{animationConfig:E.isCorrect?r.baseCorrectLottiePlayerAnimationConfig:r.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){r.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(E){return E.animationRef||{}})};
_.S.fadeIn=function(g){g.classList.add("fade-in");_.Mh(_.F6,function(){g.classList.remove("fade-in")},900)};
_.hx.Object.defineProperties(Wh.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.Y("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.Vp(this.explanation).length>0&&this.showCorrectAnswer}},
showCorrectAnswer:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
isQuizAnsweringDisabled:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isQuizAnsweringDisabled?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}},
isAttempted:{configurable:!0,enumerable:!0,get:function(){var g,r;return((g=this.data)==null?void 0:(r=g.choices)==null?void 0:r.some(function(E){return E.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null||!g.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?u_w:this.data.choices[this.selectedItemIndex].explanation||u_w}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null||!g.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
Wh.prototype.onYtServiceRequestCompleted=Wh.prototype.onYtServiceRequestCompleted;Wh.prototype.onYtServiceRequestSent=Wh.prototype.onYtServiceRequestSent;Wh.prototype.onYtCommentPollRevert=Wh.prototype.onYtCommentPollRevert;Wh.prototype.dataChanged=Wh.prototype.dataChanged;Wh.prototype.onExplanationChanged=Wh.prototype.onExplanationChanged;_.m([_.P(_.Ii),_.L("design:type",Object)],Wh.prototype,"paperItemBehavior",void 0);
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Wh.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Wh.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.Zl.YtTaskEmitterBehavior),_.L("design:type",Object)],Wh.prototype,"ytTaskEmitterBehavior",void 0);_.m([_.P(_.cY),_.L("design:type",Object)],Wh.prototype,"ytdOpenPopupBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Wh.prototype,"data",void 0);
_.m([_.K(),_.L("design:type",Object)],Wh.prototype,"isLoading",void 0);_.m([_.K(),_.L("design:type",Object)],Wh.prototype,"usesPanelLockup",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.L("design:type",Boolean)],Wh.prototype,"isChannelOwner",void 0);_.m([_.K({computed:"computeIsTotalVotesDisabled(data)"}),_.L("design:type",Boolean)],Wh.prototype,"isTotalVotesDisabled",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.L("design:type",Boolean)],Wh.prototype,"isImageQuiz",void 0);_.m([_.K(),_.L("design:type",Object)],Wh.prototype,"previousQuizInfo",void 0);_.m([_.K(),_.L("design:type",Object)],Wh.prototype,"selectedItemIndex",void 0);_.m([_.K({reflectToAttribute:!0}),_.W("data","usesPanelLockup"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Wh.prototype,"shouldUseModernUi",null);
_.m([_.kk(".fade-container"),_.L("design:type",Object)],Wh.prototype,"fadeContainers",void 0);_.m([_.K(),_.L("design:type",Array)],Wh.prototype,"correctnessAnimationProps",void 0);_.m([_.W("explanation","showCorrectAnswer"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Wh.prototype,"showExplanation",null);_.m([_.W("isChannelOwner","isAttempted"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Wh.prototype,"showCorrectAnswer",null);
_.m([_.W("isChannelOwner","isAttempted","data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Wh.prototype,"isQuizAnsweringDisabled",null);_.m([_.W("isQuizAnsweringDisabled"),_.L("design:type",Object),_.L("design:paramtypes",[])],Wh.prototype,"endpointStyle",null);_.m([_.W("data","selectedItemIndex"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Wh.prototype,"isAttempted",null);
_.m([_.W("data","selectedItemIndex"),_.L("design:type",Object),_.L("design:paramtypes",[])],Wh.prototype,"explanation",null);_.m([_.W("data","selectedItemIndex"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Wh.prototype,"isCorrect",null);_.m([_.zb("ytd-expander"),_.L("design:type",Object)],Wh.prototype,"expander",void 0);_.m([_.zb("#quiz-votes"),_.L("design:type",Object)],Wh.prototype,"quizVotes",void 0);
_.m([_.Gb("explanation"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Wh.prototype,"onExplanationChanged",null);_.m([_.Gb("data","isChannelOwner"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Wh.prototype,"dataChanged",null);_.m([_.ob("yt-comment-quiz-revert"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],Wh.prototype,"onYtCommentPollRevert",null);
_.m([_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.XA]),_.L("design:returntype")],Wh.prototype,"onYtServiceRequestSent",null);_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],Wh.prototype,"onYtServiceRequestCompleted",null);_.m([_.N({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],Wh);
_.I(Wh,"ytd-backstage-quiz-renderer",function(){if(Miz!==void 0)return Miz;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return Miz=g},{mode:1});var lrb;var xn=function(){return _.a.apply(this,arguments)||this};
_.f(xn,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],xn.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],xn.prototype,"data",void 0);_.m([_.N({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],xn);
_.I(xn,"ytd-post-uploaded-video-renderer",function(){if(lrb!==void 0)return lrb;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return lrb=g},{mode:1});var DpD;var ah=function(){return _.a.apply(this,arguments)||this};
_.f(ah,_.a);ah.prototype.useFilledIcons=function(g){return g==="SPONSORSHIP_STAR"};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ah.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ah.prototype,"data",void 0);_.m([_.N({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],ah);
var o9T=_.U2()(ah,"ytd-sponsors-only-badge-renderer",function(){if(DpD===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);DpD=g}g=DpD;return g},{allowedProps:["data"],
mode:1});var Glw;var XG=function(){return _.a.apply(this,arguments)||this};
_.f(XG,_.a);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],XG.prototype,"componentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],XG.prototype,"data",void 0);_.m([_.N({is:"ytd-child-video-renderer",disableElementRegistration:!0})],XG);
_.I(XG,"ytd-child-video-renderer",function(){if(Glw!==void 0)return Glw;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Glw=g},{mode:1});var Q_I;var z_w;var NR=function(){var g=_.a.apply(this,arguments)||this;g.size=0;g.enableWebModernCollectionsV2=_.Y("web_modern_collections_v2");g.fallbackImageSize={height:void 0,width:9999};g.webModernCollections=!1;return g};
_.f(NR,_.a);_.S=NR.prototype;_.S.computeBlurredImageSize=function(g){return g?{height:g*2,width:g*2}:this.fallbackImageSize};
_.S.computeImageSize=function(g){return g?{height:g,width:g}:this.fallbackImageSize};
_.S.computeObjectFit=function(g){return g?"FILL":"CONTAIN"};
_.S.computePreserve=function(g){return g?!0:!1};
_.S.setBackground=function(){var g,r;_.Y("web_modern_collections_v2")&&((g=this.data)==null?0:(r=g.thumbnail)==null?0:r.sampledThumbnailColor)&&(g=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+g.red+","+g.green+","+g.blue+",1)")};
NR.prototype.setBackground=NR.prototype.setBackground;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],NR.prototype,"ytRendererBehavior",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],NR.prototype,"watchFeedThumbnail",void 0);_.m([_.K(),_.L("design:type",Object)],NR.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],NR.prototype,"size",void 0);
_.m([_.K({computed:"computeBlurredImageSize(size)"}),_.L("design:type",Object)],NR.prototype,"blurredImageSize",void 0);_.m([_.K({computed:"computeImageSize(size)"}),_.L("design:type",Object)],NR.prototype,"imageSize",void 0);_.m([_.K({computed:"computePreserve(size)"}),_.L("design:type",String)],NR.prototype,"preserve",void 0);_.m([_.K({computed:"computeObjectFit(size)"}),_.L("design:type",String)],NR.prototype,"objectFit",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],NR.prototype,"enableWebModernCollectionsV2",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],NR.prototype,"webModernCollections",void 0);_.m([_.Gb("data.thumbnail.sampledThumbnailColor"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],NR.prototype,"setBackground",null);_.m([_.N({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],NR);
_.I(NR,"ytd-playlist-custom-thumbnail-renderer",function(){if(z_w!==void 0)return z_w;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return z_w=g},{mode:1});var klD;var Ih=function(){return _.a.apply(this,arguments)||this};
_.f(Ih,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Ih.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Ih.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Number)],Ih.prototype,"width",void 0);_.m([_.N({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],Ih);
_.I(Ih,"ytd-playlist-video-thumbnail-renderer",function(){if(klD!==void 0)return klD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return klD=g},{mode:1});var HPD;var mL=function(){return _.a.apply(this,arguments)||this};
_.f(mL,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],mL.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],mL.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Number)],mL.prototype,"width",void 0);_.m([_.N({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],mL);
_.I(mL,"ytd-show-custom-thumbnail-renderer",function(){if(HPD!==void 0)return HPD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return HPD=g},{mode:1});var pQT;var ch=function(){return _.a.apply(this,arguments)||this};
_.f(ch,_.a);ch.prototype.useFilledIcons=function(g){return g==="MUSIC"||g==="COURSE"};
ch.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=N8(this.overlayColor,"0.8");else if(this.overlayColor){var g=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+g.red+","+g.green+","+g.blue+",0.8)"}};
_.hx.Object.defineProperties(ch.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)}}});
ch.prototype.overlayColorChanged=ch.prototype.overlayColorChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ch.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ch.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],ch.prototype,"overlayColor",void 0);_.m([_.K({reflectToAttribute:!0}),_.W("data.icon","data.text"),_.L("design:type",Object),_.L("design:paramtypes",[])],ch.prototype,"overlayStyle",null);
_.m([_.K({reflectToAttribute:!0}),_.W("data.icon","data.text"),_.L("design:type",Object),_.L("design:paramtypes",[])],ch.prototype,"overlayTextStyle",null);_.m([_.Gb("overlayColor"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ch.prototype,"overlayColorChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],ch);
_.I(ch,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(pQT!==void 0)return pQT;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return pQT=g},{mode:1});var YET;var io=function(){var g=_.a.apply(this,arguments)||this;g.active=!1;return g};
_.f(io,_.a);io.prototype.computeIsSpinnerHidden=function(g){return(g==null?void 0:g.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
io.prototype.computeOverlayIcon=function(g){return(g==null?void 0:g.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(g==null?void 0:g.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],io.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],io.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],io.prototype,"active",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],io);
_.I(io,"ytd-thumbnail-overlay-downloading-renderer",function(){if(YET!==void 0)return YET;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return YET=g},{mode:1});var R_4;var Lj=function(){return _.a.apply(this,arguments)||this};
_.f(Lj,_.a);_.hx.Object.defineProperties(Lj.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Lj.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Lj.prototype,"data",void 0);_.m([_.W("data.text"),_.L("design:type",Object),_.L("design:paramtypes",[])],Lj.prototype,"text",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],Lj);
_.I(Lj,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(R_4!==void 0)return R_4;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return R_4=g},{mode:1});var n9w,s_b=function(){if(n9w!==void 0)return n9w;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return n9w=g};var Vd=function(){return _.a.apply(this,arguments)||this};
_.f(Vd,_.a);_.hx.Object.defineProperties(Vd,{template:{configurable:!0,enumerable:!0,get:function(){return s_b()}}});
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Vd.prototype,"animateEqualizer",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],Vd);_.U2()(Vd,"ytd-thumbnail-overlay-equalizer",function(){return s_b()},{allowedProps:["animateEqualizer"],
mode:1});var frm;var hH=function(){var g=_.a.apply(this,arguments)||this;g.nowPlayingBadge=_.Y("web_now_playing_badge");g.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return g};
_.f(hH,_.a);hH.prototype.activeChanged=function(){var g=this;_.Y("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.Lk(this,function(){_.Sh(g.hostElement,"yt-playlist-lockup-now-playing-active",g)})};
hH.prototype.onMiniplayerPlayStateChanged=function(g){var r,E=(r=_.n(_.Di().currentEndpoint,_.LM))==null?void 0:r.videoId;this.isVideoPlaying=g&&(_.Y("web_limit_now_playing_animation_killswitch")||this.videoId===E)};
hH.prototype.activeChanged=hH.prototype.activeChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],hH.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],hH.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],hH.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Boolean)],hH.prototype,"isVideoPlaying",void 0);_.m([_.K(),_.L("design:type",String)],hH.prototype,"videoId",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],hH.prototype,"equalizerOnly",void 0);_.m([_.K(),_.L("design:type",Boolean)],hH.prototype,"isActive",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],hH.prototype,"nowPlayingBadge",void 0);_.m([_.Gb("isActive"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],hH.prototype,"activeChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],hH);
_.I(hH,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(frm!==void 0)return frm;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return frm=g},{mode:1});var $pn;var ZK=function(){return _.a.apply(this,arguments)||this};
_.f(ZK,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ZK.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ZK.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],ZK);
_.I(ZK,"ytd-thumbnail-overlay-playback-status-renderer",function(){if($pn!==void 0)return $pn;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return $pn=g},{mode:_.My("kevlar_poly_si_batch_j025")?1:2});var j_U;var yd=function(){return _.a.apply(this,arguments)||this};
_.f(yd,_.a);yd.prototype.onDurationChanged=function(){var g,r;_.S3(this.hostElement).querySelector("#progress").style.width=((r=(g=this.data)==null?void 0:g.percentDurationWatched)!=null?r:0)+"%"};
yd.prototype.onDurationChanged=yd.prototype.onDurationChanged;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],yd.prototype,"componentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],yd.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],yd.prototype,"isLive",void 0);_.m([_.Gb("data.percentDurationWatched"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],yd.prototype,"onDurationChanged",null);
_.m([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],yd);
_.I(yd,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(j_U!==void 0)return j_U;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return j_U=g},{mode:1});var AZ6;var vh=function(){var g=_.a.apply(this,arguments)||this;g.bottomPanel=!1;g.richGridOverlay=!1;g.watchFeedOverlay=!1;g.isCompact=!1;return g};
_.f(vh,_.a);vh.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.hx.Object.defineProperties(vh.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var g,r;return((g=this.data)==null?void 0:(r=g.icon)==null?void 0:r.iconType)==="PLAY_ALL"&&_.Y("kevlar_system_icons")}}});
vh.prototype.widthChanged=vh.prototype.widthChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],vh.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],vh.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Number)],vh.prototype,"width",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],vh.prototype,"bottomPanel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],vh.prototype,"richGridOverlay",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],vh.prototype,"watchFeedOverlay",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],vh.prototype,"isCompact",void 0);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],vh.prototype,"isIconFilled",null);_.m([_.Gb("width","watchFeedOverlay"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],vh.prototype,"widthChanged",null);
_.m([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],vh);
_.I(vh,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(AZ6!==void 0)return AZ6;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return AZ6=g},{mode:1});var bPn;var JZA=["CLIP","SHORTS"],dI=function(){var g=_.a.apply(this,arguments)||this;g.animated=_.Y("animated_live_badge_icon");g.hasIcon=!1;g.updateTimerIntervalId=0;g.timeSinceLive=0;return g};
_.f(dI,_.a);_.S=dI.prototype;_.S.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.S.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.S.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.S.hasIconOrText=function(){var g,r;return!!(((g=this.data)==null?0:g.icon)||((r=this.data)==null?0:r.text))};
_.S.initializeLiveBadgeTimer=function(){var g=this,r,E=(r=this.liveBadgeData)==null?void 0:r.startTimestampSec;if(E&&this.canShowLiveBadgeTimer()){var B;r=Number((B=this.liveBadgeData)==null?void 0:B.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(E);this.updateTimerIntervalId=_.qe(function(){g.canShowLiveBadgeTimer()?g.timeSinceLive++:(g.timeSinceLive=0,window.clearInterval(g.updateTimerIntervalId))},r)}else this.timeSinceLive=0};
_.S.canShowLiveBadgeTimer=function(){var g=Date.now(),r,E;return g<(Number((r=this.liveBadgeData)==null?void 0:r.endTimestampSec)-1)*1E3&&g>Number((E=this.liveBadgeData)==null?void 0:E.startTimestampSec)*1E3};
_.hx.Object.defineProperties(dI.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var g=this.data;var r=this.timeSinceLive;var E,B,w,O;a:{var M=g.style;if(M===void 0)M=16;else switch(M){case "LIVE":M=17;break a;default:M=16}}r={type:M,text:r?XyV({seconds:r}):_.Vp(g.text),accessibilityText:(E=g.text)==null?void 0:(B=E.accessibility)==null?void 0:(w=B.accessibilityData)==null?void 0:w.label,icon:(O=g.icon)==null?void 0:O.iconType}}else r={};return r}},
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 g;return(g=this.data)==null?void 0:g.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 JZA.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
dI.prototype.initializeLiveBadgeTimer=dI.prototype.initializeLiveBadgeTimer;dI.prototype.dataChanged=dI.prototype.dataChanged;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],dI.prototype,"componentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],dI.prototype,"data",void 0);_.m([_.K({computed:"computeIcon_(data.icon)"}),_.L("design:type",String)],dI.prototype,"icon",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],dI.prototype,"animated",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.L("design:type",Boolean)],dI.prototype,"hideTimeStatus",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],dI.prototype,"hasIcon",void 0);_.m([_.K(),_.L("design:type",Object)],dI.prototype,"timeSinceLive",void 0);_.m([_.W("data","timeSinceLive"),_.L("design:type",Object),_.L("design:paramtypes",[])],dI.prototype,"badgeShapeData",null);
_.m([_.W("data","overlayType"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],dI.prototype,"hideBadgeShape",null);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],dI.prototype,"dataChanged",null);_.m([_.K({reflectToAttribute:!0}),_.W("data.style"),_.L("design:type",Object),_.L("design:paramtypes",[])],dI.prototype,"overlayStyle",null);
_.m([_.W("data.liveBadgeData"),_.L("design:type",Object),_.L("design:paramtypes",[])],dI.prototype,"liveBadgeData",null);_.m([_.K({reflectToAttribute:!0}),_.W("data.type"),_.L("design:type",Object),_.L("design:paramtypes",[])],dI.prototype,"overlayType",null);_.m([_.W("overlayType","overlayStyle"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],dI.prototype,"useFilledIcon",null);
_.m([_.Yk("liveBadgeData"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],dI.prototype,"initializeLiveBadgeTimer",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],dI);
_.I(dI,"ytd-thumbnail-overlay-time-status-renderer",function(){if(bPn!==void 0)return bPn;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return bPn=g},{mode:_.My("kevlar_poly_si_batch_j035")?1:2});var PHT;var T4=function(){return _.a.apply(this,arguments)||this};
_.f(T4,_.a);T4.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"}}}}};
T4.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(g){if(this.hasPlaybackProgressBar)return{percentDurationWatched:g.percentDurationWatched}};
T4.prototype.computeHasPlaybackProgressBar=function(g){return!!g.percentDurationWatched&&g.percentDurationWatched>0};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],T4.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],T4.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],T4.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.L("design:type",Boolean)],T4.prototype,"hasPlaybackProgressBar",void 0);
_.m([_.N({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],T4);
_.I(T4,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(PHT!==void 0)return PHT;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return PHT=g},{mode:1});var tin;var Fd6=_.dG(function(g){var r=g.data;var E=g.children;var B=function(){return!!r().doubleStack};
return _.G("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!r().experimentEnabled}},_.G(_.p,{cond:r,
then:function(){return _.G("div",null,_.G(_.p,{cond:B,then:function(){var w={};return _.G("div",{class:_.QY("collections-stack-wiz__collection-stack2",function(){return r().customClassName2ndStack},(w["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return r().enableResponsiveMode},w)),
style:_.Rl({"background-color":function(){return JZl(r())}})})}}),_.G("div",{class:_.QY("collections-stack-wiz__collection-stack1",function(){return r().customClassName1stStack},function(){return bPA(r().thumbnailSize?r().thumbnailSize:"medium")}),
style:_.Rl({"background-color":function(){return JZl(r())}})}),E)}}))},"R");_.BK(Fd6,"yt-collections-stack",{props:{data:_.cP}});var g$=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};g.webModernCollections=!1;g.isSearch=!1;g.isDoubleStack=!1;g.thumbnailSize="medium";g.enableWebModernCollectionsV2=_.Y("web_modern_collections_v2");return g};
_.f(g$,_.a);_.S=g$.prototype;
_.S.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:"ytd-thumbnail-overlay-now-playing-renderer",tvfilmShowWatchForwardOverlayRenderer:"ytd-tvfilm-show-watch-forward-overlay-renderer"}},hoverOverlays_:{id:"hover-overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer"}},
"data.thumbnailRenderer":{id:"playlist-thumbnails",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",properties:{width:"[[width]]"}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",properties:{size:"[[customThumbnailSize]]",watchFeedThumbnail:"[[watchFeedThumbnail]]",webModernCollections:"[[webModernCollections]]"}},showCustomThumbnailRenderer:{component:"ytd-show-custom-thumbnail-renderer",properties:{width:"[[width]]"}}}}}};
_.S.getThumbnailDetails=function(g){if(g!=null&&g.thumbnailRenderer){var r=g.thumbnailRenderer,E;if((E=r.playlistVideoThumbnailRenderer)==null?0:E.thumbnail)return r.playlistVideoThumbnailRenderer.thumbnail;var B;if((B=r.playlistCustomThumbnailRenderer)==null?0:B.thumbnail)return r.playlistCustomThumbnailRenderer.thumbnail;g=g.thumbnailRenderer;var w;if((w=g.showCustomThumbnailRenderer)==null?0:w.thumbnail)return g.showCustomThumbnailRenderer.thumbnail}};
_.S.computeOverlayColor=function(g){var r,E;if((r=this.getThumbnailDetails(g))==null?0:(E=r.darkColorPalette)==null?0:E.section2Color)return this.getThumbnailDetails(g).darkColorPalette.section2Color;var B;return(B=this.getThumbnailDetails(g))==null?void 0:B.sampledThumbnailColor};
_.S.computeWebModernCollections=function(g){if(g==null||!g.thumbnailOverlays)return!1;g=_.U(g.thumbnailOverlays);for(var r=g.next();!r.done;r=g.next()){var E=void 0;if((E=r.value)==null?0:E.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.S.computeNavigationEndpoint=function(g){return m4J(g==null?void 0:g.navigationEndpoint)};
_.hx.Object.defineProperties(g$.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var g=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:g==null?void 0:g.sampledThumbnailColor,vibrantColorPalette:g==null?void 0:g.vibrantColorPalette,darkColorPalette:g==null?void 0:g.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],g$.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],g$.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(mYw),_.L("design:type",Object)],g$.prototype,"ytdThumbnailBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],g$.prototype,"componentBehavior",void 0);
_.m([_.K({value:!1}),_.L("design:type",Boolean)],g$.prototype,"watchFeedThumbnail",void 0);_.m([_.K(),_.L("design:type",Number)],g$.prototype,"customThumbnailSize",void 0);_.m([_.K({value:!0}),_.L("design:type",Boolean)],g$.prototype,"hideAria",void 0);_.m([_.K(),_.L("design:type",Object)],g$.prototype,"data",void 0);_.m([_.K({computed:"computeOverlayColor(data)"}),_.L("design:type",Object)],g$.prototype,"overlayColor",void 0);
_.m([_.K({computed:"computeWebModernCollections(data)"}),_.L("design:type",Object)],g$.prototype,"webModernCollections",void 0);_.m([_.K({computed:"computeNavigationEndpoint(data)"}),_.L("design:type",Object)],g$.prototype,"computedNavigationEndpoint",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],g$.prototype,"isSearch",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],g$.prototype,"isDoubleStack",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],g$.prototype,"thumbnailSize",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],g$.prototype,"enableWebModernCollectionsV2",void 0);_.m([_.W("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.L("design:type",Object),_.L("design:paramtypes",[])],g$.prototype,"collectionStack",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],g$);
_.I(g$,"ytd-playlist-thumbnail",function(){if(tin!==void 0)return tin;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return tin=g},{mode:_.My("kevlar_poly_si_batch_j025")?1:2});var e_w;var r$=function(){var g=_.a.apply(this,arguments)||this;g.noEndpoints=!1;g.amsterdamPostMvp=_.Y("web_amsterdam_post_mvp_playlists");g.badges=[];g.transferState="TRANSFER_STATE_UNKNOWN";return g};
_.f(r$,_.a);_.S=r$.prototype;_.S.getMetadata=function(g){if(!g)return[];var r=[],E=g.shortViewCountText||g.viewCountText;E&&r.push(_.Vp(E));g.publishedTimeText&&r.push(_.Vp(g.publishedTimeText));g.upcomingEventData&&g.upcomingEventData.upcomingEventText&&r.push(_.bL(_.Vp(g.upcomingEventData.upcomingEventText),Number(g.upcomingEventData.startTime)));return r};
_.S.observeDataForBylineSeparator=function(){this.data&&_.UN(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.S.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.aJ(this.metadataColor)};
_.S.getSimpleString=function(g){return _.Vp(g)};
_.S.isBylineHidden=function(g){return this.noByline||!((g==null?0:g.longBylineText)||(g==null?0:g.shortBylineText))};
_.S.isMetadataHidden=function(g){var r;return((r=this.getMetadata(g))==null?void 0:r.length)===0};
_.S.isBylineMetadataSeparatorHidden=function(g){return this.isMetadataHidden(g)||!this.shouldShowVideoInfo};
_.S.isLongByline=function(g,r){return r&&!(g==null||!g.longBylineText)};
_.hx.Object.defineProperties(r$.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var g;return this.amsterdamPostMvp&&!((g=this.data)==null||!g.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 _.Y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
r$.prototype.metadataColorChanged=r$.prototype.metadataColorChanged;r$.prototype.observeDataForBylineSeparator=r$.prototype.observeDataForBylineSeparator;_.m([_.P(_.Ai),_.L("design:type",Object)],r$.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],r$.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],r$.prototype,"noEndpoints",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],r$.prototype,"isSlimShort",void 0);
_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],r$.prototype,"radioMeta",void 0);_.m([_.K({selector:_.tf}),_.L("design:type",Object)],r$.prototype,"isGridViewEnabled",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],r$.prototype,"richMeta",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],r$.prototype,"amsterdamPostMvp",void 0);_.m([_.K(),_.L("design:type",Boolean)],r$.prototype,"noByline",void 0);
_.m([_.K({computed:"isLongByline(data, radioMeta)"}),_.L("design:type",Boolean)],r$.prototype,"longByline",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],r$.prototype,"truncateMetadataLine",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],r$.prototype,"miniMode",void 0);_.m([_.K(),_.L("design:type",Number)],r$.prototype,"metadataColor",void 0);_.m([_.K(),_.L("design:type",Array)],r$.prototype,"badges",void 0);
_.m([_.K({selector:_.Ws,selectorArgs:["data.videoId"]}),_.L("design:type",String)],r$.prototype,"transferState",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],r$.prototype,"isDownloading",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],r$.prototype,"typographyBump",void 0);_.m([_.zb("#metadata-line"),_.L("design:type",HTMLElement)],r$.prototype,"metadataLine",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],r$.prototype,"observeDataForBylineSeparator",null);_.m([_.Gb("metadataColor"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],r$.prototype,"metadataColorChanged",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],r$.prototype,"shouldShowVideoInfo",null);
_.m([_.W("badges"),_.L("design:type",String),_.L("design:paramtypes",[])],r$.prototype,"inlineBadgeClass",null);_.m([_.W("longByline"),_.L("design:type",String),_.L("design:paramtypes",[])],r$.prototype,"longBylineClass",null);_.m([_.W("data","longByline"),_.L("design:type",Object),_.L("design:paramtypes",[])],r$.prototype,"bylineText",null);_.m([_.W("isGridViewEnabled","data"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],r$.prototype,"watchFeedBigThumbs",null);
_.m([_.N({is:"ytd-video-meta-block",disableElementRegistration:!0})],r$);
_.I(r$,"ytd-video-meta-block",function(){if(e_w!==void 0)return e_w;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return e_w=g},{mode:_.My("kevlar_poly_si_batch_j080")?1:2});_.ek("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var EV=function(){var g=_.a.apply(this,arguments)||this;g.displayItemCount=2;g.isBackstagePlaylist=!1;g.isPostCompactPlaylist=!1;g.shouldShowChannelThumbnail=!1;g.useModernCollectionsV2=_.Y("web_modern_collections_v2");return g};
_.f(EV,_.a);_.S=EV.prototype;_.S.computeFirstVideos=function(g,r){return g===void 0||r===void 0?[]:g.slice(0,r)};
_.S.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var g=this.data.thumbnailRenderer;g.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",g.playlistVideoThumbnailRenderer.thumbnail);g.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",g.playlistCustomThumbnailRenderer.thumbnail)}};
_.S.computeThumbnailHeight=function(g,r,E,B,w){return B?w==="BIG"?280:w==="MASSIVE"?337:234:E?240:r?72:g?118:138};
_.S.computeThumbnailWidth=function(g,r,E,B,w){return B?w==="MEDIUM"?450:w==="BIG"?500:w==="MASSIVE"?600:420:E?360:r?128:g?210:246};
_.S.computeUseBiggerThumbs=function(g){return g&&_.Y("enable_desktop_search_bigger_thumbs")};
_.S.computeShouldShowChannelThumbnail=function(g,r){return g&&!(r==null||!r.channelThumbnail)};
_.hx.Object.defineProperties(EV.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
EV.prototype.dataChanged=EV.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],EV.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.K4),_.L("design:type",Object)],EV.prototype,"ytdLockupBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],EV.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],EV.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],EV.prototype,"displayItemCount",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],EV.prototype,"isBackstagePlaylist",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],EV.prototype,"isPostCompactPlaylist",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],EV.prototype,"isSearch",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.L("design:type",Boolean)],EV.prototype,"useBiggerThumbs",void 0);_.m([_.K({reflectToAttribute:!0,value:function(){return _.Sg("desktop_search_bigger_thumbs_style")}}),
_.L("design:type",String)],EV.prototype,"biggerThumbsStyle",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],EV.prototype,"isDownloads",void 0);_.m([_.K({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.L("design:type",Object)],EV.prototype,"shouldShowChannelThumbnail",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],EV.prototype,"useModernCollectionsV2",void 0);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],EV.prototype,"dataChanged",null);_.m([_.W("isSearch"),_.L("design:type",String),_.L("design:paramtypes",[])],EV.prototype,"stackThumbnailSize",null);_.m([_.N({is:"ytd-playlist-renderer",disableElementRegistration:!0})],EV);
_.I(EV,"ytd-playlist-renderer",function(){if(Q_I===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);Q_I=g}g=Q_I;return g},{mode:1});var WdD;var CHZ;var B4=function(){var g=_.a.apply(this,arguments)||this;g.collections=!!_.Y("web_modern_collections_v2");g.startX=0;return g};
_.f(B4,_.a);B4.prototype.onEndpointMouseDown=function(g){this.startX=g.clientX};
B4.prototype.onEndpointClick=function(g){this.startX!==g.clientX&&(g.preventDefault(),g.stopPropagation())};
B4.prototype.computeObjectFit=function(g){return g==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||g==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||g==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
B4.prototype.computeCardStyle=function(g){return g?g.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.hx.Object.defineProperties(B4.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var g,r;return this.collections&&((g=this.data)==null?void 0:(r=g.searchRefinementCardRendererStyle)==null?void 0:r.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}}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],B4.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],B4.prototype,"data",void 0);_.m([_.K({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.L("design:type",Number)],B4.prototype,"objectFit",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.L("design:type",String)],B4.prototype,"cardStyle",void 0);
_.m([_.K({reflectToAttribute:!0,value:!0}),_.L("design:type",Boolean)],B4.prototype,"roundContainer",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],B4.prototype,"collections",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],B4.prototype,"isAlbumCard",null);_.m([_.W("data","collections","isAlbumCard"),_.L("design:type",Object),_.L("design:paramtypes",[])],B4.prototype,"collectionStack",null);
_.m([_.N({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],B4);
_.I(B4,"ytd-search-refinement-card-renderer",function(){if(CHZ!==void 0)return CHZ;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return CHZ=g},{mode:1});var Kdb;var w$=function(){var g=_.a.apply(this,arguments)||this;g.isRichGrid=!1;return g};
_.f(w$,_.a);_.m([_.K(),_.L("design:type",Object)],w$.prototype,"data",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],w$.prototype,"componentBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],w$.prototype,"ytdReduxBehavior",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],w$.prototype,"isRichGrid",void 0);_.m([_.K({reflectToAttribute:!0,selector:_.Jj}),_.L("design:type",Boolean)],w$.prototype,"miniMode",void 0);
_.m([_.N({is:"ytd-game-details-renderer",disableElementRegistration:!0})],w$);
_.I(w$,"ytd-game-details-renderer",function(){if(Kdb!==void 0)return Kdb;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Kdb=g},{mode:1});var xpw;var arn;var SK=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return g};
_.f(SK,_.a);_.S=SK.prototype;_.S.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.S.currentStateData=function(g){var r=g||this.data;return r&&r.states&&r.currentStateId!=null?r.states.find(function(E){return E.stateId===r.currentStateId})||null:null};
_.S.currentStateRendererData=function(g){return(g=this.currentStateData(g))&&g.state&&g.state.buttonRenderer?g.state.buttonRenderer:null};
_.S.stateChanged=function(){this&&this.data&&(this.ytRenderButtonBehavior._setEndpoint(null),this.ytRenderButtonBehavior._setServiceEndpoint(this.computeServiceEndpoint(this.data)),this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data)),this.ytRenderButtonBehavior._setButtonText(null),this.ytRenderButtonBehavior._setButtonAccessibility(this.computeAccessibility(this.data)),this.ytRenderButtonBehavior._setButtonClass(this.computeButtonClass(this.data)),this.ytRenderButtonBehavior.updateRenderedElements())};
_.S.computeButtonIcon=function(g){g=this.currentStateRendererData(g);var r;return(g==null?0:(r=g.icon)==null?0:r.iconType)?g.icon.iconType.toLowerCase():null};
_.S.computeAccessibility=function(g){return(g=this.currentStateRendererData(g))&&g.accessibilityData?g.accessibilityData.accessibilityData||null:null};
_.S.computeButtonClass=function(g){var r=this.currentStateRendererData(g);if(!r)return"";g="";var E=r.style;E&&(g+=E.toLowerCase().replace(/_/g,"-")+" ");(r=r.size)&&(g+=r.toLowerCase().replace(/_/g,"-")+" ");return g.trim()};
_.S.computeServiceEndpoint=function(g){if(!g)return null;var r=g&&g.serviceEndpoint,E=this.get("command.commandMetadata.webCommandMetadata.sendPost",g);return r?r:E&&g.command?g.command:null};
_.S.computeBellMenuItemParams=function(g){var r;g=(r=_.n(g==null?void 0:g.command,_.D$))==null?void 0:r.commands;if(!g||g.length===0)return null;r=_.n(g[0],_.R1);var E,B;return(r==null?0:(E=r.popup)==null?0:(B=E.menuPopupRenderer)==null?0:B.items)?r.popup.menuPopupRenderer.items.map(function(w){return w.menuServiceItemRenderer.trackingParams}):null};
_.S.handleBellMenuOpenSelectedAction=function(g){var r=g.trackingParams,E=this.computeBellMenuItemParams(this.data);this.data&&r&&E&&E.includes(r)&&this.ytRenderButtonBehavior._setButtonIcon(g.icon.iconType.toLowerCase())};
_.S.onYtServiceRequestCompleted=function(g,r){(g=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",r))&&this.set("data",g)};
_.S.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.S.resetState=function(){this.set("data.currentStateId",3)};
_.S.onYtButtonTapHandler=function(){if(this.data){var g=this.currentStateRendererData(this.data);g&&this.ytRendererBehavior.logExplicitClick(g)}};
SK.prototype.onYtServiceRequestError=SK.prototype.onYtServiceRequestError;SK.prototype.onYtServiceRequestCompleted=SK.prototype.onYtServiceRequestCompleted;SK.prototype.stateChanged=SK.prototype.stateChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],SK.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],SK.prototype,"ytActionHandlerBehavior",void 0);
_.m([_.P(zp.YtRenderButtonBehavior),_.L("design:type",Object)],SK.prototype,"ytRenderButtonBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],SK.prototype,"data",void 0);_.m([_.Yk("data","data.currentStateId"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],SK.prototype,"stateChanged",null);
_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.hR]),_.L("design:returntype")],SK.prototype,"onYtServiceRequestCompleted",null);_.m([_.ob("yt-service-request-error"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],SK.prototype,"onYtServiceRequestError",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],SK);
_.I(SK,"ytd-subscription-notification-toggle-button-renderer",function(){if(arn!==void 0)return arn;var g=document.createElement("template");_.b(g,"\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");g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return arn=g},{mode:1});var XQn;var OV=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};g.tapHandler=function(){if(g.data){var r=g.currentStateRendererData();r&&g.ytRendererBehavior.logExplicitClick(r)}};
return g};
_.f(OV,_.a);_.S=OV.prototype;_.S.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.S.currentStateData=function(){var g=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(r){return r.stateId===g.data.currentStateId})||null:null};
_.S.currentStateRendererData=function(){var g=this.currentStateData();return g&&g.state&&g.state.buttonRenderer?g.state.buttonRenderer:null};
_.S.computeAccessibilityLabel=function(){var g,r,E;return(g=this.currentStateRendererData())==null?void 0:(r=g.accessibilityData)==null?void 0:(E=r.accessibilityData)==null?void 0:E.label};
_.S.computeBellMenuItemParams=function(){var g,r,E=(r=_.n((g=this.data)==null?void 0:g.command,_.D$))==null?void 0:r.commands;if(!E||E.length===0)return null;g=_.n(E[0],_.R1);var B,w;return(g==null?0:(B=g.popup)==null?0:(w=B.menuPopupRenderer)==null?0:w.items)?g.popup.menuPopupRenderer.items.map(function(O){return O.menuServiceItemRenderer.trackingParams}):null};
_.S.handleBellMenuOpenSelectedAction=function(g){var r=g.trackingParams,E=this.computeBellMenuItemParams();if(this.data&&r&&E&&E.includes(r)&&(g==null||!g.isDisabled)){var B;((B=_.n(g.serviceEndpoint,_.Gn))==null?void 0:B.signal)!=="CLIENT_SIGNAL"&&(this.icon=g.icon.iconType)}};
_.S.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.S.onYtServiceRequestCompleted=function(g,r){if(g=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",r))this.icon=void 0,this.set("data",g)};
_.S.onYtServiceRequestError=function(){this.icon=void 0};
_.hx.Object.defineProperties(OV.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var g=this.data,r=this.textLabel,E=this.hostElement,B=this.computeAccessibilityLabel(),w=this.tapHandler,O=this.isOverlay?"overlay":"mono",M=(g==null?0:g.disableButton)?"disabled":"active";r=r?_.e_(r):void 0;return{style:O,type:"tonal",state:M,size:"M",focused:!1,formattedButtonText:r,iconPosition:"leading-trailing",onTap:FdJ(g,w,E),accessibilityLabel:B}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var g=this.currentStateRendererData(),r,E,B=(E=this.icon)!=null?E:g==null?void 0:(r=g.icon)==null?void 0:r.iconType;if(B)return _.Dh(B)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var g,r,E=(g=this.data)==null?void 0:(r=g.secondaryIcon)==null?void 0:r.iconType;if(E)return _.Dh(E)}}});
OV.prototype.onYtServiceRequestError=OV.prototype.onYtServiceRequestError;OV.prototype.onYtServiceRequestCompleted=OV.prototype.onYtServiceRequestCompleted;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],OV.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],OV.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],OV.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],OV.prototype,"textLabel",void 0);
_.m([_.K(),_.L("design:type",String)],OV.prototype,"icon",void 0);_.m([_.K(),_.L("design:type",Boolean)],OV.prototype,"isOverlay",void 0);_.m([_.W("data.*","textLabel"),_.L("design:type",Object),_.L("design:paramtypes",[])],OV.prototype,"computedButtonShape",null);_.m([_.W("data.*","icon"),_.L("design:type",Object),_.L("design:paramtypes",[])],OV.prototype,"computedIcon",null);_.m([_.W("data.*"),_.L("design:type",Object),_.L("design:paramtypes",[])],OV.prototype,"computedSecondaryIcon",null);
_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.hR]),_.L("design:returntype")],OV.prototype,"onYtServiceRequestCompleted",null);_.m([_.ob("yt-service-request-error"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],OV.prototype,"onYtServiceRequestError",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],OV);
_.I(OV,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(XQn!==void 0)return XQn;var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return XQn=g},{mode:_.My("kevlar_poly_si_batch_j081")?1:2});var NJD;_.BK(X1z,"yt-animated-action",{props:{backgroundLottieRef:_.cP,foregroundLottieRef:_.cP,wrapperClass:_.cP,disableAnimation:_.cP},unsafeExternallySettableAttributes:new Set(["key"])});var UV=function(){var g=_.a.apply(this,arguments)||this;g.animatedActionEnabled=_.Y("web_animated_actions");g.foregroundLottieRef={};g.backgroundLottieRef={};g.forceIconOnly=!1;g.showTextWhileAnimating=!1;g.keyboardFocused=!1;g.isAnimating=!1;g.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return g};
_.f(UV,_.a);_.S=UV.prototype;_.S.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.S.configureRendererStamper=function(){return{"data.notificationPreferenceToggleButton":{id:"notification-preference-toggle-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{forceIconOnly:"[[forceIconOnly]]"}}}},"data.notificationPreferenceButton":{id:"notification-preference-button",mapping:{subscriptionNotificationToggleButtonRenderer:{component:"ytd-subscription-notification-toggle-button-renderer-next",properties:{textLabel:"[[subscribedButtonText]]",
forceIconOnly:"[[forceIconOnly]]",isOverlay:"[[overlayButton]]"}}}}}};
_.S.attached=function(){this.keyboardFocused=!1};
_.S.onYtServiceRequestSent=function(g,r){(this.get("endpoint.subscribeEndpoint",r)||this.get("endpoint.unsubscribeEndpoint",r))&&this.updateSubscriptionState(!this.subscribed)};
_.S.onYtServiceRequestCompleted=function(g,r){(g=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",r.data))&&this.bellButton&&(this.bellButton.data=g)};
_.S.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.ua(this.hostElement)};
_.S.onPlayerSubscribe=function(g){this.isCompactRed()||g!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.S.onPlayerUnsubscribe=function(g){this.isCompactRed()||g!==this.data.channelId||this.updateSubscriptionState(!1)};
_.S.handleUpdateSubscribeButtonAction=function(g){g=_.n(g,wg4);var r;g&&g.channelId===((r=this.data)==null?void 0:r.channelId)&&this.updateSubscriptionState(!!g.subscribed)};
_.S.computeButtonStyle=function(g){return this.get("style.styleType",g)||null};
_.S.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.S.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.S.updateSubscriptionState=function(g){if(g!==this.subscribed){this.set("data.subscribed",g);var r,E=(r=this.data)==null?void 0:r.subscribedEntityKey;E&&this.ytdReduxBehavior.dispatch(_.za("subscriptionStateEntity",E,{key:E,subscribed:g}));this.isCompactRed()||_.Sh(this.hostElement,"yt-subscription-changed",g);g||(_.OS(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!g),g&&this.hasBellButton&&this.startAnimation())}};
_.S.startAnimation=function(){var g=this;if(!this.isAnimating){var r=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var E;(E=this.backgroundLottieRef.lottieEl)==null||E.goToAndPlay(0);var B;(B=this.foregroundLottieRef.lottieEl)==null||B.goToAndPlay(0);_.F6.addJob(function(){g.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.F6.addJob(function(){g.updateContainerToFitContent(!!g.subscribed,!0)},2,1500);
_.F6.addJob(function(){g.isAnimating=!1},2,r)}};
_.S.maybeAnimateBellIcon=function(){var g=_.ON(this.hostElement).querySelector("yt-animated-icon");if(g){var r;(r=g.animationRef.lottieEl)==null||r.goToAndPlay(0)}};
_.S.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.S.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.S.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var g;this.unsubscribedWidth=(g=this.subscribeButtonShape)==null?void 0:g.getBoundingClientRect().width}var r;this.subscribedWidth=(r=this.bellButton)==null?void 0:r.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.S.updateContainerToFitContent=function(g,r){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(g?(g=this.subscribedWidth,r=this.isAnimating&&!r,this.subscribedIconOnlyWidth===void 0||r||(g=this.subscribedIconOnlyWidth),this.hostElement.style.width=g+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.S.clearContainerSize=function(){this.hostElement.style.width=""};
_.S.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.S.maybeSetSubscribedButtonIconOnlyWidth=function(){var g=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 r;g.subscribedIconOnlyWidth=(r=g.bellButton)==null?void 0:r.getBoundingClientRect().width;requestAnimationFrame(function(){if(g.bellButton){var E;g.bellButton.textLabel=
(E=g.data)==null?void 0:E.subscribedButtonText}})})))};
_.hx.Object.defineProperties(UV.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 g;return(g=this.data)==null?void 0:g.subscribedButtonText}var r;return this.forceIconOnly?void 0:(r=this.data)==null?void 0:r.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var g,r,E=((g=this.data)==null?void 0:(r=g.timedAnimationData)==null?void 0:r.animationTiming)||[];return{uniqueId:"subscribe",timings:E,enabled:E.length>0&&!this.subscribed,experimentEnabled:E.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var g;return!this.subscribed&&((g=this.data)==null?void 0:g.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 g={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var r=g.renderer;var E=g.element;var B=g.subscribed;var w=g.commandController;var O=g.isOverlay;g=g.stopPropagation;var M=Kdc(r,B);O&&(M.style="overlay");O=Object;var u=O.assign,l;a:switch((l=r.style)==null?void 0:l.styleType){case "COMPACT_GRAY":case "COMPACT_RED":l={size:"S"};break a;default:l={size:"M"}}var Q=CHY(r,
B);var z=(z=B?r.subscribedButtonText:r.unsubscribedButtonText)?_.e_(z):void 0;return u.call(O,{},M,l,{focused:!1,toggled:B,accessibilityLabel:Q,formattedButtonText:z,onTap:Wdt(r,B,E,w,g)})}}}});
UV.prototype.onMouseDown=UV.prototype.onMouseDown;UV.prototype.onDataChanged=UV.prototype.onDataChanged;UV.prototype.observedSubscribed=UV.prototype.observedSubscribed;UV.prototype.onYtServiceRequestCompleted=UV.prototype.onYtServiceRequestCompleted;UV.prototype.onYtServiceRequestSent=UV.prototype.onYtServiceRequestSent;UV.prototype.maybeUpdateBellButtonText=UV.prototype.maybeUpdateBellButtonText;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],UV.prototype,"ytComponentBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],UV.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],UV.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],UV.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],UV.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],UV.prototype,"data",void 0);
_.m([_.K({selectorArgs:["data.subscribedEntityKey"],selector:P7D}),_.L("design:type",Object)],UV.prototype,"subscriptionStateEntity",void 0);_.m([_.K({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.L("design:type",Boolean)],UV.prototype,"subscribed",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],UV.prototype,"branded",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],UV.prototype,"animatedActionEnabled",void 0);
_.m([_.K(),_.L("design:type",Object)],UV.prototype,"foregroundLottieRef",void 0);_.m([_.K(),_.L("design:type",Object)],UV.prototype,"backgroundLottieRef",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],UV.prototype,"overlayButton",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.L("design:type",Object)],UV.prototype,"buttonStyle",void 0);_.m([_.K(),_.L("design:type",Object)],UV.prototype,"forceIconOnly",void 0);
_.m([_.K(),_.L("design:type",Object)],UV.prototype,"showTextWhileAnimating",void 0);_.m([_.K({value:function(){return!!_.rM().resolve(_.gM(_.wN))&&_.Y("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.L("design:type",Boolean)],UV.prototype,"useKeyboardFocused",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],UV.prototype,"keyboardFocused",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],UV.prototype,"isAnimating",void 0);_.m([_.W("data.notificationPreferenceButton.*"),_.L("design:type",Object),_.L("design:paramtypes",[])],UV.prototype,"hasBellButton",null);
_.m([_.Gb("subscribedButtonText"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],UV.prototype,"maybeUpdateBellButtonText",null);_.m([_.W("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.L("design:type",Object),_.L("design:paramtypes",[])],UV.prototype,"subscribedButtonText",null);_.m([_.W("data.timedAnimationData.animationTiming","subscribed"),_.L("design:type",Object),_.L("design:paramtypes",[])],UV.prototype,"smartimationSettings",null);
_.m([_.K({reflectToAttribute:!0}),_.W("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.L("design:type",Object),_.L("design:paramtypes",[])],UV.prototype,"subscribeButtonHidden",null);_.m([_.K({reflectToAttribute:!0}),_.W("subscribed","hasBellButton"),_.L("design:type",Object),_.L("design:paramtypes",[])],UV.prototype,"subscribeButtonInvisible",null);
_.m([_.K({reflectToAttribute:!0}),_.W("subscribed"),_.L("design:type",Object),_.L("design:paramtypes",[])],UV.prototype,"unsubscribeButtonHidden",null);_.m([_.zb("ytd-subscription-notification-toggle-button-renderer-next"),_.L("design:type",Object)],UV.prototype,"bellButton",void 0);_.m([_.zb("#subscribe-button-shape"),_.L("design:type",HTMLElement)],UV.prototype,"subscribeButtonShape",void 0);
_.m([_.W("overlayButton","subscribed","data"),_.L("design:type",Object),_.L("design:paramtypes",[])],UV.prototype,"buttonShape",null);_.m([_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.XA]),_.L("design:returntype")],UV.prototype,"onYtServiceRequestSent",null);_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.hR]),_.L("design:returntype")],UV.prototype,"onYtServiceRequestCompleted",null);
_.m([_.Gb("subscribed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],UV.prototype,"observedSubscribed",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],UV.prototype,"onDataChanged",null);_.m([_.ob("mousedown"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],UV.prototype,"onMouseDown",null);
_.m([_.N({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],UV);
_.I(UV,"ytd-subscribe-button-renderer",function(){if(NJD!==void 0)return NJD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return NJD=g},{mode:1});var MZ=function(){var g=_.a.apply(this,arguments)||this;g.isRichGrid=!1;return g};
_.f(MZ,_.a);MZ.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"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],MZ.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],MZ.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],MZ.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],MZ.prototype,"isRichGrid",void 0);_.m([_.N({is:"ytd-game-card-renderer",disableElementRegistration:!0})],MZ);
_.I(MZ,"ytd-game-card-renderer",function(){if(xpw!==void 0)return xpw;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return xpw=g},{mode:1});var qZ={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.Y("defer_menus")&&!bHD?0:void 0,waitForSignal:"eocs"};var IrD;var mpT;var uI=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return g};
_.f(uI,_.a);_.S=uI.prototype;_.S.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.S.onSeriesReminderStateEntityChange=function(){var g,r,E;((g=this.eventReminderStateEntity)==null?0:g.key)&&((r=this.seriesReminderStateEntity)==null?void 0:r.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((E=this.eventReminderStateEntity)==null?void 0:E.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.za("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.S.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.S.onYtServiceRequestError=function(){var g;this.updateReminderStateEntitiesFromButtonState((g=this.data)==null?void 0:g.currentState)};
_.S.handleUpdateUpcomingEventReminderButtonStateCommand=function(g){if(g=_.n(g,fcw)){var r,E=(r=this.data)==null?void 0:r.targetId;E&&g.targetId===E&&_.N1(this.updateReminderStateEntitiesFromButtonState.bind(this,g.state))}};
_.S.getButtonStateFromReminderState=function(){var g;if(((g=this.seriesReminderStateEntity)==null?void 0:g.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var r;if(((r=this.eventReminderStateEntity)==null?void 0:r.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var E,B;if(((E=this.seriesReminderStateEntity)==null?void 0:E.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((B=this.eventReminderStateEntity)==
null?void 0:B.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var w;return(w=this.data)==null?void 0:w.currentState};
_.S.updateReminderStateEntitiesFromButtonState=function(g){if(g){switch(g){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":g="UPCOMING_EVENT_REMINDER_STATE_NONE";var r="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":g="UPCOMING_EVENT_REMINDER_STATE_SINGLE";r="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":g="UPCOMING_EVENT_REMINDER_STATE_NONE";r="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var E;
((E=this.eventReminderStateEntity)==null?0:E.key)&&this.ytdReduxBehavior.dispatch(_.za("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:g})));var B;((B=this.seriesReminderStateEntity)==null?0:B.key)&&this.ytdReduxBehavior.dispatch(_.za("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:r})))}};
_.hx.Object.defineProperties(uI.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var g=this.getButtonStateFromReminderState(),r,E;if(g&&((r=this.data)==null?0:(E=r.states)==null?0:E.length))for(r=_.U(this.data.states),E=r.next();!E.done;E=r.next()){E=E.value;var B=void 0;if(((B=_.n(E,$CD))==null?void 0:B.state)===g)return _.n(E,$CD)}}}});
uI.prototype.onYtServiceRequestError=uI.prototype.onYtServiceRequestError;uI.prototype.onYtServiceRequestCompleted=uI.prototype.onYtServiceRequestCompleted;uI.prototype.onSeriesReminderStateEntityChange=uI.prototype.onSeriesReminderStateEntityChange;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],uI.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],uI.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],uI.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],uI.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],uI.prototype,"data",void 0);_.m([_.K({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:FfX}),_.L("design:type",Object)],uI.prototype,"eventReminderStateEntity",void 0);
_.m([_.K({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(g,r){return _.u1(g.entities,"sportsSeriesReminderStateEntity",r)}}),
_.L("design:type",Object)],uI.prototype,"seriesReminderStateEntity",void 0);_.m([_.W("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.L("design:type",Object),_.L("design:paramtypes",[])],uI.prototype,"currentButtonStateRenderer",null);_.m([_.Gb("seriesReminderStateEntity"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],uI.prototype,"onSeriesReminderStateEntityChange",null);
_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],uI.prototype,"onYtServiceRequestCompleted",null);_.m([_.ob("yt-service-request-error"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],uI.prototype,"onYtServiceRequestError",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],uI);
_.I(uI,"ytd-upcoming-event-reminder-button-renderer",function(){if(mpT!==void 0)return mpT;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);
return mpT=g},{mode:1});var cZn;var lI=function(){return _.a.apply(this,arguments)||this};
_.f(lI,_.a);lI.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.hx.Object.defineProperties(lI.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}},
textAriaLabel:{configurable:!0,enumerable:!0,get:function(){if(_.Y("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],lI.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],lI.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],lI.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],lI.prototype,"shelfDismissal",void 0);_.m([_.W("data.responseText"),_.L("design:type",Object),_.L("design:paramtypes",[])],lI.prototype,"text",null);
_.m([_.W("data.responseText"),_.L("design:type",Object),_.L("design:paramtypes",[])],lI.prototype,"textAriaLabel",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],lI);
_.I(lI,"ytd-notification-multi-action-renderer",function(){if(cZn!==void 0)return cZn;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return cZn=g},{mode:1});var iPn;var DL=function(){return _.a.apply(this,arguments)||this};
_.f(DL,_.a);DL.prototype.ready=function(){var g=this;_.S3(this.hostElement).querySelector("#undo").addEventListener("tap",function(){g.onUndoTap()})};
DL.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.rM().resolve(_.Er).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],DL.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],DL.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],DL);
_.I(DL,"ytd-notification-text-renderer",function(){if(iPn!==void 0)return iPn;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return iPn=g},{mode:1});var Ldn;var oZ=function(){var g=_.a.apply(this,arguments)||this;g.mouseOverDelayJobId=0;g.fadeInImageDelayJobId=0;g.startTimeMs=-1;g.loadingStartTimeMs=-1;g.loadingEndTimeMs=-1;g.hasVideoPreview=!1;return g};
_.f(oZ,_.a);_.S=oZ.prototype;_.S.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.S.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.S.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.S.showThumbnail=function(){var g=this;this.csn=_.PE();_.eh("fmth");_.F6.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.Mh(_.F6,function(){g.loadingStartTimeMs=(0,_.g2)();var r=_.S3(g.hostElement).querySelector("#thumbnail");r.complete?g.displayMouseOverImage():r.addEventListener("load",_.Do(g,g.displayMouseOverImage))},150):_.UN(_.S3(this.hostElement).querySelector("#play"),"show",!0)};
_.S.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.S.onTap=function(){this.removeVideoPreview()};
_.S.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var g=this.videoId,r=this.csn,E=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,B=this.startTimeMs,w=this.hasVideoPreview,O=_.fW(this.trackingParams),M={isMovingThumbnail:w};w&&B>0&&(E>0&&(M.movingThumbnailLoadingDurationMs=Math.round(E)),M.durationHoveredMs=Math.round((0,_.g2)()-B));g&&(M.videoId=g);_.V_(r,O,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:M});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.S.removeVideoPreview=function(){_.F6.cancelJob(this.mouseOverDelayJobId);_.F6.cancelJob(this.fadeInImageDelayJobId);var g=_.S3(this.hostElement).querySelector("#thumbnail");_.UN(g,"fade-in",!1);g.removeEventListener("load",_.Do(this,this.displayMouseOverImage));g=_.S3(this.hostElement).querySelector("#play");_.UN(g,"fade-in",!1);_.UN(g,"show",!1)};
_.S.displayMouseOverImage=function(){var g=_.S3(this.hostElement).querySelector("#thumbnail"),r=_.S3(this.hostElement).querySelector("#play");this.isImageAvailable(g)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.g2)(),this.startTimeMs=(0,_.g2)(),this.fadeInImageDelayJobId=_.Mh(_.F6,function(){_.UN(g,"fade-in",!0)},50)):_.UN(r,"fade-in",!0)};
_.S.computeThumbnail=function(g,r){var E;g&&g.movingThumbnailDetails&&g.movingThumbnailDetails.thumbnails&&r?E=_.wt(g.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):E=r?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(E)return _.nI(E)};
_.S.isImageAvailable=function(g){return!(!g.src||g.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||g.naturalWidth===120)};
oZ.prototype.onTap=oZ.prototype.onTap;oZ.prototype.dataChanged=oZ.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],oZ.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],oZ.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],oZ.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],oZ.prototype,"csn",void 0);_.m([_.K(),_.L("design:type",Object)],oZ.prototype,"trackingParams",void 0);
_.m([_.K(),_.L("design:type",String)],oZ.prototype,"videoId",void 0);_.m([_.K(),_.L("design:type",Boolean)],oZ.prototype,"isAttachedAndDataSet",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],oZ.prototype,"dataChanged",null);_.m([_.ob("click"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],oZ.prototype,"onTap",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],oZ);
_.I(oZ,"ytd-moving-thumbnail-renderer",function(){if(Ldn!==void 0)return Ldn;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return Ldn=g},{mode:1});var ViD;_.U8=function(g){this.hostElement=g;this.eventSink=null;this.eventList=[]};
_.U8.prototype.shouldForward=function(){var g,r;return(r=(g=this.eventSink)==null?void 0:g.isConnected)!=null?r:document.body.contains(this.eventSink)};
_.U8.prototype.start=function(g,r){this.eventSink&&this.stop();for(var E=0;E<g.length;E++)this.hostElement.addEventListener(g[E],_.Do(this,this.forwardEvent));var B;this.eventSink=(B=r.hostElement)!=null?B:r;this.eventList=g};
_.U8.prototype.stop=function(){for(var g=0;g<this.eventList.length;g++)this.hostElement.removeEventListener(this.eventList[g],_.Do(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.U8.prototype.forwardEvent=function(g,r){this.shouldForward()&&(g.stopPropagation(),this.eventSink instanceof Element?_.Sh(this.eventSink,g.type,r):_.el(new _.Rj("eventSink is not an element")))};_.GV={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.U8(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(g,r){this.forwarder_.start(g,r)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var Qe=function(){return _.a.apply(this,arguments)||this};
_.f(Qe,_.a);_.S=Qe.prototype;_.S.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");this.tooltip.position=_.Ca("HTML_DIR")==="rtl"?"right":"left"};
_.S.dataChanged=function(){this.popupOpen=!1};
_.S.computeAriaLabel=function(g){return _.n(g,jxn).label};
_.S.onTap=function(g){g.stopPropagation();g.preventDefault();this.data.command&&_.rM().resolve(_.Er).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.S.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.S.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
Qe.prototype.onPopupClosed=Qe.prototype.onPopupClosed;Qe.prototype.onPopupOpened=Qe.prototype.onPopupOpened;Qe.prototype.onTap=Qe.prototype.onTap;Qe.prototype.dataChanged=Qe.prototype.dataChanged;_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],Qe.prototype,"eventForwardingBehavior",void 0);_.m([_.P(_.jP),_.L("design:type",Object)],Qe.prototype,"ironButtonState",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Qe.prototype,"componentBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],Qe.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,value:-1}),_.L("design:type",Number)],Qe.prototype,"tabindex",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.L("design:type",Object)],Qe.prototype,"ariaLabel",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],Qe.prototype,"disableTooltips",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Qe.prototype,"popupOpen",void 0);
_.m([_.K(),_.L("design:type",Element)],Qe.prototype,"eventSink",void 0);_.m([_.zb("#tooltip"),_.L("design:type",Object)],Qe.prototype,"tooltip",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Qe.prototype,"dataChanged",null);_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],Qe.prototype,"onTap",null);
_.m([_.ob("yt-popup-opened"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Qe.prototype,"onPopupOpened",null);_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Qe.prototype,"onPopupClosed",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],Qe);
_.I(Qe,"ytd-thumbnail-overlay-button-renderer",function(){if(ViD!==void 0)return ViD;var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return ViD=g},{mode:1});var h_n;var zV=function(){return _.a.apply(this,arguments)||this};
_.f(zV,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],zV.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],zV.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],zV.prototype,"disableAnimation",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],zV.prototype,"rounded",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],zV.prototype,"transparentBackground",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],zV.prototype,"noPadding",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],zV);
_.I(zV,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(h_n!==void 0)return h_n;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return h_n=g},{mode:1});var ZPT;var k1=function(){return _.a.apply(this,arguments)||this};
_.f(k1,_.a);k1.prototype.computeIconPosition=function(g){return this.get("iconPosition",g)||null};
k1.prototype.computeIconStyle=function(g){return this.get("iconStyle",g)||null};
k1.prototype.computeIsIconStyleFilled=function(g){if(!g)return!1;var r;return g.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((r=g.icon)==null?void 0:r.iconType)==="ERROR_BLACK"};
_.m([_.K(),_.L("design:type",Object)],k1.prototype,"data",void 0);_.m([_.K({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.L("design:type",Object)],k1.prototype,"iconPosition",void 0);_.m([_.K({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.L("design:type",Object)],k1.prototype,"iconStyle",void 0);_.m([_.K({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],k1.prototype,"iconStyleFilled",void 0);
_.m([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],k1);
_.I(k1,"ytd-thumbnail-overlay-icon-renderer",function(){if(ZPT!==void 0)return ZPT;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return ZPT=g},{mode:1});var yZZ;var H4=function(){return _.a.apply(this,arguments)||this};
_.f(H4,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],H4.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],H4.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],H4);
_.I(H4,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(yZZ!==void 0)return yZZ;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return yZZ=g},{mode:1});var v9b;var pO=function(){var g=_.a.apply(this,arguments)||this;g.isPreviewLoading=!1;return g};
_.f(pO,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],pO.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],pO.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],pO.prototype,"isPreviewLoading",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],pO);
_.I(pO,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(v9b!==void 0)return v9b;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return v9b=g},{mode:1});var dpT;var Y1=function(){return _.a.apply(this,arguments)||this};
_.f(Y1,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Y1.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Y1.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],Y1);
_.I(Y1,"ytd-thumbnail-overlay-pinking-renderer",function(){if(dpT!==void 0)return dpT;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return dpT=g},{mode:1});var TJD;var RZ=function(){var g=_.a.apply(this,arguments)||this;g.disableTooltips=!1;g.isLoading=!1;g.useExpandableTooltip=!1;g.toggled=!1;g.hovered=!1;g.mouseoverDelayJobId=0;g.toggleDelayJobId=0;g.expandAnimationDelayJobId=0;return g};
_.f(RZ,_.a);_.S=RZ.prototype;_.S.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");_.S3(this.hostElement).querySelector("#tooltip").position=_.Ca("HTML_DIR")==="rtl"?"right":"left"};
_.S.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.F6.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.F6.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.F6.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.S.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.F6.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.F6.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.F6.cancelJob(this.expandAnimationDelayJobId)};
_.S.computeIcon=function(g,r,E){return(g=E?r:g)&&g.iconType?_.Dh(g.iconType):void 0};
_.S.computeAriaLabel=function(g,r,E){return _.n(E?r:g,jxn).label};
_.S.computeTooltip=function(g,r,E){return E?r:g};
_.S.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.S.computeIconOnHover=function(g,r){if((g==null?0:g.iconType)&&!r)return _.Dh(g.iconType)};
_.S.onTap=function(g){var r=this;g.stopPropagation();g.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(g=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(g),this.useExpandableTooltip&&(this.toggleDelayJobId=_.Mh(_.F6,function(){r.hovered=!1;r.data&&!r.data.toggledServiceEndpoint&&(r.expandAnimationDelayJobId=_.Mh(_.F6,function(){r.set("data.isToggled",
!1)},200))},2E3))};
_.S.onMouseenter=function(){var g=this;this.mouseoverDelayJobId=_.Mh(_.F6,function(){g.hovered=!0},300)};
_.S.onMouseleave=function(){_.F6.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.S.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.S.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.S.onServiceRequestCompleted=function(g,r){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(r)||this.set("data.isToggled",!this.data.isToggled)};
_.S.serviceRequestWasSuccessful=function(g){return _.n(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.J9)?g.data.status==="STATUS_SUCCEEDED":!0};
RZ.prototype.onServiceRequestCompleted=RZ.prototype.onServiceRequestCompleted;RZ.prototype.onPopupClosed=RZ.prototype.onPopupClosed;RZ.prototype.onPopupOpened=RZ.prototype.onPopupOpened;RZ.prototype.onMouseleave=RZ.prototype.onMouseleave;RZ.prototype.dataChanged=RZ.prototype.dataChanged;_.m([_.P(_.jP),_.L("design:type",Object)],RZ.prototype,"ironButtonState",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],RZ.prototype,"ytComponentBehavior",void 0);
_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],RZ.prototype,"ytEventForwardingBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],RZ.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.L("design:type",Object)],RZ.prototype,"ariaLabel",void 0);_.m([_.K(),_.L("design:type",Object)],RZ.prototype,"disableTooltips",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],RZ.prototype,"popupOpen",void 0);_.m([_.K(),_.L("design:type",Object)],RZ.prototype,"isLoading",void 0);_.m([_.K(),_.L("design:type",Element)],RZ.prototype,"eventSink",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],RZ.prototype,"useExpandableTooltip",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.L("design:type",Object)],RZ.prototype,"toggled",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],RZ.prototype,"hovered",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.L("design:type",Object)],RZ.prototype,"iconOnHover",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],RZ.prototype,"dataChanged",null);
_.m([_.ob("mouseleave"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],RZ.prototype,"onMouseleave",null);_.m([_.ob("yt-popup-opened"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],RZ.prototype,"onPopupOpened",null);_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],RZ.prototype,"onPopupClosed",null);
_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.hR]),_.L("design:returntype")],RZ.prototype,"onServiceRequestCompleted",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],RZ);
_.I(RZ,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(TJD!==void 0)return TJD;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return TJD=g},{mode:_.My("kevlar_poly_si_batch_j053")?1:2});var gxw;var rzw=_.dG(function(g){var r=g.data;var E=g.thumbnailSize;var B=function(){return r().enableSegmentView};
return _.G("yt-thumbnail-overlay-progress-bar-view-model",{class:_.QY("ytThumbnailOverlayProgressBarHost",function(){return xpD(E==null?void 0:E())})},_.G(_.p,{cond:B,
then:function(){return _.G("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.G("div",{class:_.zw("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+r().startPercent+"%"}}),_.G("div",{class:_.zw("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+r().segmentDurationPercent+"%"}},_.G("div",{class:_.zw("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.G("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.G("div",null," ",function(){return r().segmentLabel})),_.G("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.G("div",{class:_.zw("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.G(_.p,{cond:function(){return!B()&&r().startPercent},
then:function(){var w={};return _.G("div",{class:_.zw("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(w.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.Y("web_enable_modern_progress_bar_overlay"),w))},_.G("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+r().startPercent+"%"}}))}}))},"S");
rzw.idomCompat=!0;var ExD=_.dG(function(g){var r=_.uL(),E=_.Ch(function(w){var O,M,u;a:{var l=(O=g.data())==null?void 0:O.animationActivationTargetId;O=((M=g.data())==null?void 0:M.animationActivationEntityKey)||"";M=(u=g.data())==null?void 0:u.animationActivationEntitySelectorType;if(O&&l)switch(M){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":w=_.u1(w.entities,"playerStateEntity",O);u=_.rM().resolve(_.gM(_.ea));l=!!(w&&w.videoId===l&&(u==null?0:u.isMiniplayerActive()));l={activated:l,playAnimation:l&&
w.playerState==="PLAYER_STATE_PLAYING"};break a}l=void 0}return l});
_.bQ(function(){var w;if((w=E())==null?0:w.activated){var O;if((O=E())==null?0:O.playAnimation){var M;(M=r.lottieEl)==null||M.goToAndPlay(0)}else{var u;(u=r.lottieEl)==null||u.goToAndStop(0)}}},"MDTl2e");
var B=function(){var w,O=!((w=E())==null||!w.activated);if(g.data()){w=g.data();var M=void 0;w.icon&&(M=_.QkS(w.icon),M=nhV(M));var u=void 0,l;if((l=w.backgroundColor)==null?0:l.lightTheme){var Q;u={backgroundColor:N8((Q=w.backgroundColor)==null?void 0:Q.lightTheme,"0.8")}}if(w.text||M||O){if(O&&w.lottieData&&r){Q=w.lottieData;var z,k,H;l={animationConfig:{name:Q.url,path:Q.url,autoplay:(z=Q.settings)==null?void 0:z.autoplay,loop:(H=(k=Q.settings)==null?void 0:k.loop)!=null?H:!0},animationRef:r}}else l=
void 0;if(O)z=16;else b:switch(w.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":z=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":z=18;break b;default:z=16}O={type:z,text:O&&w.animatedText?w.animatedText:w.text,icon:M,customColors:u,animation:l}}else O=void 0}else O=void 0;return O};
return _.G("yt-thumbnail-badge-view-model",{class:_.QY("yt-thumbnail-badge-view-model-wiz",g.class)},_.G(_.p,{cond:B,then:function(){return _.G(_.AH,{data:function(){return B()}})}}))},"T");var BQw=_.dG(function(g){var r={},E={};return _.G("yt-thumbnail-bottom-overlay-view-model",{class:_.QY("ytThumbnailBottomOverlayViewModelHost",(r.ytThumbnailBottomOverlayViewModelHostBackground=function(){return g.data().enableGradientBackground},r))},_.G(_.Af,{data:function(){return g.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(B){return _.G(rzw,{data:B.data,
thumbnailSize:g.thumbnailSize})}}),_.G("div",{class:_.QY("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var B;
return arB((B=g.thumbnailSize)==null?void 0:B.call(g))},(E.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var B;
return(B=g.isClip)==null?void 0:B.call(g)},E.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var B;
return!_.Y("web_enable_modern_progress_bar_overlay")&&((B=g.thumbnailSize)==null?void 0:B.call(g))==="small"},E))},_.G(_.Af,{data:function(){return g.data().badge}},{thumbnailBadgeViewModel:function(B){return _.G(ExD,{data:B.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.G(_.Af,{data:function(){return g.data().badges}},{thumbnailBadgeViewModel:function(B){return _.G(ExD,{data:B.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"U");
BQw.idomCompat=!0;_.BK(BQw,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.EB,thumbnailSize:_.EB,isClip:_.EB}});var ZPl={calledOnce:!1,state:"visible"},yZY={calledOnce:!1,state:"hidden"};var nO=_.dG(function(g){var r=g.data;var E=g.className;g=g.alwaysShow;var B=_.IrS(),w={};return _.G("thumbnail-hover-overlay-view-model",{el:_.T$(_.xo(function(){return r().rendererContext})),
class:_.QY("ytThumbnailHoverOverlayViewModelHost",E,(w.ytThumbnailHoverOverlayViewModelHostForceHover=g,w)),"aria-label":function(){var O;return(O=_.n(r().rendererContext,_.Gi))==null?void 0:O.label},
role:function(){return _.Cm(r().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.Cm(r().rendererContext)!==void 0?0:void 0},
"on:keypress":B},_.G("div",{class:_.QY("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(r().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var O="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:O="ytThumbnailHoverOverlayViewModelStyleCover"}return O})},_.G(_.p,{cond:function(){return r().icon},
then:function(O){return _.G(_.vw,{data:O,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.G(_.p,{cond:function(){return r().text},
then:function(O){return _.G(_.hf,{text:O,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"V");
nO.idomCompat=!0;var wWT=_.dG(function(g){var r=g.data;return _.G(_.Af,{data:function(){return r==null?void 0:r().overlays}},{thumbnailHoverOverlayViewModel:nO})},"W");
wWT.idomCompat=!0;var SI6={};var OGn=_.dG(function(g){var r=g.data;var E=g.image;var B=g.state;var w=g.iconType;var O=g.overlays;var M=g.isOverlay;var u=_.hn("div");g=_.U(_.Dk(!0,void 0,"sUzEZ"));var l=g.next().value,Q=g.next().value,z=function(){return!!r().onTap},k=_.Zo(w,"LIVE");
_.bQ(function(){var R=r();requestAnimationFrame(function(){if(u.value===null)var A=!0;else{var J=u.value;A=R.badgeText;var e=TJS(R.size);A in SI6?J=SI6[A]:(J=J.clientWidth,SI6[A]=J);(A=J>e)?u.value.style.display="none":u.value.style.visibility="visible"}Q(A)})},"SpVcNb");
var H=function(){var R={};return R["yt-spec-avatar-shape__image"]=!0,R["yt-spec-avatar-shape__image--ads-app"]=r().type===1,R};
return _.G("yt-avatar-shape",null,_.G("div",{el:_.T$(rzD(z,{keydown:function(R){if(R.key==="Enter"){var A;(A=R.currentTarget)==null||A.click()}},
click:function(R){var A,J;return void((J=(A=r()).onTap)==null?void 0:J.call(A,R))}})),
class:function(){var R={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},A=r();R=(R[A.clusterLayoutConfig?wWl(A.clusterLayoutConfig):SIJ(A.size)]=!0,R["yt-spec-avatar-shape__button--tappable"]=z(),R);(A=r().avatarButtonCustomClassName)&&(R[A]=!0);return _.zw(R)},
"aria-label":function(){return z()?r().accessibilityText:""},
role:function(){return z()?"button":void 0},
tabindex:function(){return z()?0:void 0}},_.G("div",{class:function(){var R,A=r(),J=B==null?void 0:B(),e=M==null?void 0:M(),C=!((R=A.decorations)==null||!R.includes(2)||A.size!=="medium"&&A.size!=="large"),X=A.size==="tiny"||A.size==="extra-small",Z,c,h,y,OD={};
R=(OD["yt-spec-avatar-shape--live-ring"]=!!(((Z=A.decorations)==null?0:Z.includes(0))&&Uxl(A.size)),OD["yt-spec-avatar-shape--stories-watched"]=C&&!(J==null||!J.storiesWatched),OD["yt-spec-avatar-shape--stories-unwatched"]=C&&!(J==null?0:J.storiesWatched),OD["yt-spec-avatar-shape--background-border"]=MZQ(A.decorations)&&!X,OD["yt-spec-avatar-shape--background-border-thin"]=MZQ(A.decorations)&&X,OD["yt-spec-avatar-shape__on-select-border"]=!((c=A.decorations)==null||!c.includes(4)),OD["yt-spec-avatar-shape__white-border"]=
!((h=A.decorations)==null||!h.includes(5)),OD["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((y=A.decorations)==null?0:y.includes(5))&&X),OD["yt-spec-avatar-shape--is-overlay"]=!!e,OD);return _.zw(R)},
style:function(){a:{var R=r().clusterLayoutConfig;if(R){b:{var A=R.numAvatarsInCluster;var J=R.avatarIndex;if(J!==A-1){switch(R.clusterSize){case "small":R="32";break;case "medium":R="36";break;case "40":R="40";break;default:A=void 0;break b}A="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+R+"x"+R+"_avatars_"+A+"_index_"+J+".svg"}else A=void 0}if(A){A=_.Rl({"-webkit-mask-image":"url("+A+")","mask-image":"url("+A+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}A=void 0}return A}},_.G("div",{class:function(){var R={};
var A=r();R=(R[A.clusterLayoutConfig?Ext(A.clusterLayoutConfig):BQD(A.size)]=!0,R["yt-spec-avatar-shape--no-margin"]=MZQ(r().decorations),R);return _.zw(R)}},_.G(_.vw,{data:E,
alt:function(){return!z()&&r().accessibilityText?r().accessibilityText:""},
targetWidth:function(){return OGB(r().size)},
targetHeight:function(){return OGB(r().size)},
className:function(){return _.zw(H())}}),_.G(_.p,{cond:function(){var R;
return((R=r().decorations)==null?void 0:R.includes(0))&&Uxl(r().size)},
then:function(){return _.G("div",{class:function(){var R={};R=(R["yt-spec-avatar-shape__live-badge"]=!0,R["yt-spec-avatar-shape__live-badge--badge-small"]=r().size==="small",R["yt-spec-avatar-shape__live-badge--badge-medium"]=r().size==="medium"||r().size==="48",R["yt-spec-avatar-shape__live-badge--badge-large"]=r().size==="large",R["yt-spec-avatar-shape__live-badge--badge-extra-large"]=r().size==="extra-large"||r().size==="extra-extra-large"||r().size==="giant",R);return _.zw(R)}},_.G(_.p,{cond:function(){return r().badgeText},
then:function(R){return _.G("div",{class:"yt-spec-avatar-shape__badge-text",el:u},R)}}),_.G(_.p,{cond:l,
then:function(){return _.G("div",{class:"yt-spec-avatar-shape__badge-icon"},_.G(_.nh,{icon:k,size:function(){a:switch(r().size){case "extra-large":var R=16;break a;default:R=13}return R}}))}}))}}),_.G(_.p,{cond:function(){var R,A;
return((R=r().decorations)==null?void 0:R.includes(1))||((A=r().decorations)==null?void 0:A.includes(0))&&!Uxl(r().size)},
then:function(){return _.G("div",{class:function(){var R=r(),A,J,e={};var C=(e["yt-spec-avatar-shape__live-dot"]=!((A=R.decorations)==null||!A.includes(0)||Uxl(R.size)),e["yt-spec-avatar-shape__new-content"]=!((J=R.decorations)==null||!J.includes(1)),e);return _.zw(C)}})}}),_.G(_.p,{cond:function(){return!!O},
then:function(){return _.G("div",{class:function(){var R={};R=Object.assign((R["yt-spec-avatar-shape__image-overlays"]=!0,R),H());return _.zw(R)}},O==null?void 0:O())}})))))},"X");
OGn.idomCompat={callbacks:{overlays:!0}};_.sV=_.dG(function(g){function r(){E().endpoint&&_.I3(E().endpoint)}
var E=g.data;var B=g.decorations;var w=g.avatarButtonCustomClassName;var O=g.isOverlay;var M=g.clusterLayoutConfig;return _.G("avatar-view-model",null,_.G(_.p,{cond:function(){return E().image},
then:function(u){return _.G(OGn,{data:function(){return uJl({data:E(),onTap:E().endpoint?r:void 0,decorations:B==null?void 0:B(),badgeText:void 0,accessibilityText:E().accessibilityText,avatarButtonCustomClassName:w==null?void 0:w(),clusterLayoutConfig:M==null?void 0:M()})},
image:u,iconType:"RADAR_LIVE",overlays:function(){return _.G(wWT,{data:E})},
isOverlay:O})}}))},"Y");
_.sV.idomCompat=!0;_.fO=_.dG(function(g){var r=g.data;g=g.className;var E=_.hn("yt-decorated-avatar-view-model"),B=function(){return _.n(r().avatar,_.a$)},w=_.kB(function(){var O,M=r(),u=B(),l=_.Cm(r().rendererContext),Q=(O=E.value)!=null?O:void 0,z;
if(u){Q={data:M,avatar:u,onTap:l,element:Q};O=Q.data;M=Q.avatar;u=Q.onTap;l=Q.element;Q=Q.commandController;u=u?GTA(u,l,Q):void 0;l=[];O.liveData&&l.push(0);var k;Q=(k=O.liveData)==null?void 0:k.liveBadgeText;k=(z=_.n(O.rendererContext,_.Gi))==null?void 0:z.label;z=uJl({data:M,onTap:u,decorations:l,badgeText:Q,accessibilityText:k?k:O.a11yLabel})}else z={size:"medium"};return z},void 0,"H8tk9d");
return _.G("yt-decorated-avatar-view-model",{class:_.QY("yt-decorated-avatar-view-model-wiz",g),el:E},_.G(_.p,{cond:function(){var O;return(O=B())==null?void 0:O.image},
then:function(O){return _.G(OGn,{data:w,image:O,iconType:"RADAR_LIVE",overlays:function(){return _.G(wWT,{data:B})}})}}))},"Z");
_.fO.idomCompat=!0;_.$1=_.dG(function(g){var r=function(){var u;return Object.assign({},g.data(),(u=g.overrides)==null?void 0:u.call(g))},E=function(){return _.Km(r().rendererContext)},B=function(){var u=r().avatars,l,Q;
return(Q=(l=(u==null?0:u[0])?_.n(u[0],_.a$):void 0)==null?void 0:l.avatarImageSize)!=null?Q:"AVATAR_SIZE_UNKNOWN"},w=function(){return oxY(r())},O=function(){if(r().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var u=void 0;
else if((u=g.decorations)==null?0:u.call(g))u=g.decorations();else{u=r();var l=0;u.avatars&&(l+=u.avatars.length);u.decoratedText&&(l+=1);u=l>1?[3]:[]}return u},M={};
return _.G("yt-avatar-stack-view-model",{el:_.T$(_.xo(function(){return r().rendererContext})),
class:_.QY("yt-avatar-stack-view-model-wiz",g.className,(M["yt-avatar-stack-view-model-wiz--tappable"]=E,M["yt-avatar-stack-view-model-wiz--is-overlay"]=g.isOverlay,M["yt-avatar-stack-view-model-wiz--medium-text"]=g.useMediumText,M)),tabindex:function(){return E()?0:void 0},
role:function(){return E()?"link":void 0},
"aria-label":function(){var u,l;return(l=(u=_.n(r().rendererContext,_.Gi))==null?void 0:u.label)!=null?l:""}},_.G(_.p,{cond:function(){var u;
return r().avatars&&!((u=g.hideAvatar)==null?0:u.call(g))},
then:function(){return _.G("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.G(_.p,{cond:function(){return r().decoratedText},
then:function(u){var l={};return _.G("div",{class:_.QY("yt-avatar-stack-view-model-wiz__text-container",(l["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return B()==="AVATAR_SIZE_XXS"||B()==="AVATAR_SIZE_XS"},l["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var Q;
return((Q=g.isOverlay)==null?void 0:Q.call(g))&&(B()==="AVATAR_SIZE_XXS"||B()==="AVATAR_SIZE_XS")},l)),
style:_.Rl({width:function(){return w().avatarSizeInPx+"px"},
height:function(){return w().avatarSizeInPx+"px"}})},_.G(_.hf,{text:u,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.G("div",{style:function(){return _.Rl(w().avatarStackStyle)()},
class:function(){return w().avatarStackClass}},_.G(_.Af,{data:function(){return w().avatars.reverse()}},{avatarViewModel:function(u,l){return _.G("div",{style:function(){var Q,z;
return _.Rl((z=(Q=w()).avatarStyle)==null?void 0:z.call(Q,l()))()},
class:function(){return w().avatarClass}},_.G(_.sV,{data:u.data,
decorations:O,avatarButtonCustomClassName:function(){return w().avatarButtonCustomClassName},
isOverlay:g.isOverlay,clusterLayoutConfig:function(){var Q,z;return(z=(Q=w()).clusterLayoutConfig)==null?void 0:z.call(Q,l())}}))},
decoratedAvatarViewModel:function(u,l){return _.G("div",{style:function(){var Q,z;return _.Rl((z=(Q=w()).avatarStyle)==null?void 0:z.call(Q,l()))()},
class:function(){return w().avatarClass}},_.G(_.fO,{data:u.data}))}})))}}),_.G(_.p,{cond:function(){return r().text},
then:function(u){return _.G(_.hf,{text:u,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"$");
_.$1.idomCompat=!0;_.BK(_.dG(function(g){var r=g.data;var E=g.thumbnailSize;return _.G("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.G("div",{class:_.QY("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return QDA(E==null?void 0:E())})},_.G(_.Af,{data:function(){return r().avatarStack}},{avatarStackViewModel:function(B){return _.G(_.$1,{data:B.data,
decorations:[5]})}})))},"aa"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.cP,
thumbnailSize:_.cP}});var UxT=_.dG(function(g){g=_.y7(g,{hidden:!1});var r=g.data;return _.G("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:g.hidden},_.G(_.hf,{text:function(){return r().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.G(_.p,{cond:function(){return r().subtitle},
then:function(){return _.G(_.hf,{text:function(){return r().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"ba");
UxT.idomCompat=!0;_.BK(UxT,"yt-thumbnail-overlay-title-view-model",{props:{data:_.cP,hidden:_.cP}});var MZI=_.dG(function(g){g=_.y7(g,{isClip:!1});var r=g.data,E=g.thumbnailSize,B={};return _.G("yt-thumbnail-overlay-badge-view-model",{class:_.QY("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(r().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var w="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:w="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return w},function(){return zll(E==null?void 0:E())},(B["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
g.isClip,B))},_.G(_.Af,{data:function(){return r().thumbnailBadges}},{thumbnailBadgeViewModel:function(w){return _.G(ExD,{data:w.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"ca");
MZI.idomCompat=!0;_.BK(MZI,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.cP,thumbnailSize:_.cP,isClip:_.cP}});_.rH(kTS);_.lW(kTS,"yt-page-indicator-view-model",{propNames:["data"]});var jK=function(){var g=_.a.apply(this,arguments)||this;g.eventSink=function(){return g};
g.disableInteraction=!1;g.noRoundedCorners=!1;g.isPreviewLoading=!1;g.isOriginalAspectRatio=!1;g.computedObjectFit=!1;g.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return g};
_.f(jK,_.a);_.S=jK.prototype;
_.S.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:{component:"ytd-thumbnail-overlay-resume-playback-renderer",properties:{isLive:"[[isLiveVideo]]"}},thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",richGridOverlay:"[[richGridThumbnail]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",properties:{isVideoPlaying:"[[isVideoPlaying]]",equalizerOnly:"[[nowPlayingEqualizerOnly]]",isActive:"[[data.selected]]",videoId:"[[data.videoId]]"}},thumbnailOverlayPinkingRenderer:"ytd-thumbnail-overlay-pinking-renderer",
thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayIconRenderer:"ytd-thumbnail-overlay-icon-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailBottomOverlayViewModel:"yt-thumbnail-bottom-overlay-view-model",thumbnailOverlayAvatarStackViewModel:"thumbnail-overlay-avatar-stack-view-model",thumbnailOverlayBadgeViewModel:{component:"yt-thumbnail-overlay-badge-view-model",
properties:{thumbnailSize:"[[thumbnailSize]]"}}},initialRenderPriority:_.Y("defer_overlays")?1:void 0,waitForSignal:void 0},hoverOverlays_:{id:"hover-overlays",reuseComponents:!1,mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayInlineUnplayableRenderer:"ytd-thumbnail-overlay-inline-unplayable-renderer",thumbnailOverlayToggleButtonRenderer:{component:"ytd-thumbnail-overlay-toggle-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",
eventSink:"[[eventSink]]",useExpandableTooltip:"[[useExpandableTooltip]]"}},thumbnailOverlayButtonRenderer:{component:"ytd-thumbnail-overlay-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",eventSink:"[[eventSink]]"}},thumbnailOverlayEndorsementRenderer:"ytd-thumbnail-overlay-endorsement-renderer",thumbnailOverlayLoadingPreviewRenderer:{component:"ytd-thumbnail-overlay-loading-preview-renderer",properties:{isPreviewLoading:"[[isPreviewLoading]]"}}}},richThumbnail:{id:"mouseover-overlay",
mapping:{movingThumbnailRenderer:{component:"ytd-moving-thumbnail-renderer",properties:{trackingParams:"[[data.trackingParams]]",videoId:"[[data.videoId]]"}}},renderPriority:2,waitForSignal:"eocs"}}};
_.S.onImageLoaded=function(){this.loaded=!0};
_.S.onImageUnloaded=function(){this.loaded=!1};
_.S.computeRichThumbnail=function(g,r,E,B){if(g&&r&&!B&&!_.Y("disable_moving_thumbs_handling")&&!E)return r};
_.S.computeImageWidth=function(g,r){return r||9999};
_.S.computeIsOriginalAspectRatio=function(g){return g};
_.S.computeIsLive=function(g){if(g==null?0:g.badges)for(var r=0;r<g.badges.length;r++){var E=g.badges[r];if(E.metadataBadgeRenderer&&E.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(g==null?0:g.thumbnailOverlays)for(r=0;r<g.thumbnailOverlays.length;r++)if(E=g.thumbnailOverlays[r],E.thumbnailOverlayTimeStatusRenderer&&E.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.S.computeObjectFit=function(g,r){return r||(g?"CONTAIN":"")};
_.S.computeNavigationEndpoint=function(g,r,E){return g?r:E};
_.S.computeHasClip=function(g){g=_.U(g||[]);for(var r=g.next();!r.done;r=g.next())if(r.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.S.computeOverlayColor=function(g){var r;return(g==null?0:(r=g.darkColorPalette)==null?0:r.section2Color)?g.darkColorPalette.section2Color:g==null?void 0:g.sampledThumbnailColor};
_.hx.Object.defineProperties(jK.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return Npl(this.width)}}});
jK.prototype.onImageUnloaded=jK.prototype.onImageUnloaded;jK.prototype.onImageLoaded=jK.prototype.onImageLoaded;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],jK.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],jK.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(mYw),_.L("design:type",Object)],jK.prototype,"ytdThumbnailBehavior",void 0);
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],jK.prototype,"componentBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],jK.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],jK.prototype,"data",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],jK.prototype,"circular",void 0);
_.m([_.K({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.L("design:type",Object)],jK.prototype,"richThumbnail",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.L("design:type",Boolean)],jK.prototype,"hasClip",void 0);_.m([_.K(),_.L("design:type",Object)],jK.prototype,"eventSink",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],jK.prototype,"queued",void 0);
_.m([_.K({value:!1}),_.L("design:type",Boolean)],jK.prototype,"richGridThumbnail",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],jK.prototype,"useExpandableTooltip",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],jK.prototype,"useUntranslatedNavigationEndpoint",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],jK.prototype,"disableInteraction",void 0);
_.m([_.K({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.L("design:type",Object)],jK.prototype,"computedNavigationEndpoint",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],jK.prototype,"nowPlayingEqualizerOnly",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],jK.prototype,"hidePlaybackStatus",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],jK.prototype,"objectFit",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],jK.prototype,"noRoundedCorners",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],jK.prototype,"watchFeedThumbnail",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],jK.prototype,"isPreviewLoading",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.L("design:type",Object)],jK.prototype,"isOriginalAspectRatio",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.L("design:type",Object)],jK.prototype,"computedObjectFit",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.L("design:type",Boolean)],jK.prototype,"isLiveVideo",void 0);
_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],jK.prototype,"loaded",void 0);_.m([_.K({computed:"computeOverlayColor(data.thumbnail)"}),_.L("design:type",Object)],jK.prototype,"overlayColor",void 0);_.m([_.K({selector:_.kiD}),_.L("design:type",Boolean)],jK.prototype,"inlinePreviewIsEnabled",void 0);_.m([_.K(),_.L("design:type",Number)],jK.prototype,"width",void 0);
_.m([_.W("inlinePreviewIsEnabled"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],jK.prototype,"isPreviewDisabled",null);_.m([_.W("width"),_.L("design:type",String),_.L("design:paramtypes",[])],jK.prototype,"thumbnailSize",null);_.m([_.ob("image-loaded"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],jK.prototype,"onImageLoaded",null);
_.m([_.ob("image-unloaded"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],jK.prototype,"onImageUnloaded",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-thumbnail"})],jK);
var qIw=_.U2()(jK,"ytd-thumbnail",function(){if(gxw===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);gxw=g}g=gxw;return g},{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 Rlt=function(g){var r=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12938_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12938_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(E){uJA(r,E)};
this.onLockupMouseLeaveFn=function(E){E=E.relatedTarget;var B,w;((B=document.getElementsByTagName("ytd-video-preview"))==null?0:(w=B.item(0))==null?0:w.contains(E))||(r.terminateVideoPreview(),AK(r))};
this.onThumbnailMouseDownFn=function(){r.terminateVideoPreview();AK(r)};
this.onTouchStart=function(){r.JSC$12938_touched=!0};
this.mediaRenderer=g.mediaRenderer;this.thumbnailElement=g.thumbnailElement;this.lockupElement=g.lockupElement;this.videoPreviewOptsInput=g.videoPreviewOpts;lFT(this);bI(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)):
_.el(Error("Hh")):_.el(Error("Ih")):Dxn(this)},Tu=function(g){Dxn(g);
var r;(r=g.lockupElement)==null||r.removeEventListener("mouseenter",g.onMouseMoveFn);var E;(E=g.lockupElement)==null||E.removeEventListener("mouseleave",g.onLockupMouseLeaveFn);var B;(B=g.lockupElement)==null||B.removeEventListener("touchstart",g.onTouchStart);var w;(w=g.thumbnailElement)==null||w.removeEventListener("mousedown",g.onThumbnailMouseDownFn);AK(g)},lFT=function(g){g.inlinePreviewIsEnabledForUser=_.Zz().getState().ui.inlinePreviewIsEnabled;
g.unsubscribeFromInlinePreviewIsEnabled=_.Gm(_.Zz(),_.kiD,function(r){(g.inlinePreviewIsEnabledForUser=r)||AK(g)});
g.JSC$12938_unsubscribeFromInlinePreviewIsActive=_.Gm(_.Zz(),_.z0o,function(r){(g.inlinePreviewIsActive=r)||AK(g)})},Dxn=function(g){g.unsubscribeFromInlinePreviewIsEnabled();
g.unsubscribeFromInlinePreviewIsEnabled=function(){};
g.JSC$12938_unsubscribeFromInlinePreviewIsActive();g.JSC$12938_unsubscribeFromInlinePreviewIsActive=function(){}},uJA=function(g,r){r.buttons>0||(r=_.wM("kevlar_lockup_hover_delay",-1),g.JSC$12938_touched&&r>=0?(_.F6.cancelJob(g.videoPreviewJobId),g.videoPreviewJobId=_.Mh(_.F6,function(){oxZ(g)},r),g.JSC$12938_touched=!1):oxZ(g))},RYD=function(g){g.videoPreviewJobId=_.Mh(_.F6,function(){var r,E,B,w;
return _.q(function(O){if(O.nextAddress==1){if(!bI(g))return O.return();r=g.getVideoPreviewOpts();if(!r)return O.return();r.isAutoplay=!0;return(B=(E=_.US(g.mediaRenderer.hostElement,"yt-open-video-preview-action",[r]))&&E[0])?_.D(O,E[0],3):O.jumpTo(2)}O.nextAddress!=2&&(B=O.yieldResult===1);B&&pWP((w=g.mediaRenderer)==null?void 0:w.data);_.Q3(O)})})},oxZ=function(g){!g.previewTriggered&&bI(g)&&(g.inlinePreviewIsActive&&g.terminateVideoPreview(),g.previewTriggered=!0,g.mediaRenderer.isInlinePreviewTriggered=
!0,_.F6.cancelJob(g.videoPreviewJobId),g.videoPreviewJobId=_.Mh(_.F6,function(){var r,E,B,w;
return _.q(function(O){if(O.nextAddress==1){if(!bI(g))return O.return();r=g.getVideoPreviewOpts();return r?(B=(E=_.US(g.mediaRenderer.hostElement,"yt-open-video-preview-action",[r]))&&E[0])?_.D(O,E[0],3):O.jumpTo(2):O.return()}O.nextAddress!=2&&(B=O.yieldResult===1);B&&pWP((w=g.mediaRenderer)==null?void 0:w.data);_.Q3(O)})}))};
Rlt.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var g,r;if((r=(g=this.videoPreviewOptsInput)==null?void 0:g.videoPreviewData)!=null)g=r;else if(g=this.mediaRenderer.data)if(HGL(g))g={inlinePlaybackEndpoint:_.xP(g.inlinePlayerData.onVisible),navigationEndpoint:_.xP(g.onTap),thumbnail:"image"in g?g.image:g.thumbnail,thumbnailOverlays:void 0,accessibilityText:YIQ(g)};else if("multipleInlinePlaybackEndpoint"in g){var E=_.n(_.n(g.multipleInlinePlaybackEndpoint,xfn),awn);if(E!=
null&&E.playerDescriptors){r=[];E=_.U(E.playerDescriptors);for(var B=E.next();!B.done;B=E.next())B=B.value,r.push({inlinePlaybackEndpoint:B.inlinePlaybackEndpoint,navigationEndpoint:B.navigationEndpoint,thumbnail:B.thumbnail,thumbnailOverlays:B.thumbnailOverlays,accessibilityText:YIQ(g)});g=r}else g=void 0}else g={inlinePlaybackEndpoint:g.inlinePlaybackEndpoint,navigationEndpoint:g.navigationEndpoint,thumbnail:g.thumbnail,thumbnailOverlays:g.thumbnailOverlays,accessibilityText:YIQ(g)};else g=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:g,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var bI=function(g){var r;if(r=g.inlinePreviewIsEnabledForUser)r=(g=g.mediaRenderer.data)?"inlinePlaybackEndpoint"in g&&g.inlinePlaybackEndpoint||HGL(g)&&g.inlinePlayerData||"multipleInlinePlaybackEndpoint"in g&&g.multipleInlinePlaybackEndpoint?!0:!1:!1;return r};
Rlt.prototype.terminateVideoPreview=function(){_.OS(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var AK=function(g){_.F6.cancelJob(g.videoPreviewJobId);g.inlinePreviewIsActive=!1;g.previewTriggered=!1;g.mediaRenderer.isInlinePreviewTriggered=!1};var GTn=_.me(["#"]),JK=function(){var g=_.a.apply(this,arguments)||this;g.isDisabled=!1;return g};
_.f(JK,_.a);_.S=JK.prototype;_.S.configureRendererStamper=function(){return{"data.menu":qZ,"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"}}}};
_.S.attached=function(){this.updateInlinePreviewHoverListeners()};
_.S.detached=function(){this.clearInlinePreviewHoverListeners()};
_.S.getMetadata=function(g){var r=[];if(g.metadataText&&Object.keys(g.metadataText).length>0){var E=this.ytRendererBehavior.getSimpleString(g.metadataText);g.upcomingEventData&&g.upcomingEventData.upcomingEventText&&(E=_.bL(E,Number(g.upcomingEventData.startTime)));r.push(E)}else g.shortViewCountText&&r.push(this.ytRendererBehavior.getSimpleString(g.shortViewCountText)),g.publishedTimeText&&r.push(this.ytRendererBehavior.getSimpleString(g.publishedTimeText)),g.upcomingEventData&&g.upcomingEventData.upcomingEventText&&
(E=this.ytRendererBehavior.getSimpleString(g.upcomingEventData.upcomingEventText),r.push(_.bL(E,Number(g.upcomingEventData.startTime))));return r};
_.S.calculateBylineText=function(g){return g.shortBylineText?g.shortBylineText:g.bylineText?g.bylineText:null};
_.S.calculateIsDisabled=function(g){return!!g.isDisabled};
_.S.computeHrefWithDefault=function(g){return this.ytComponentBehavior.computeHref_(g)||_.$U(GTn)};
_.S.onDetailsTap=function(g){var r=this.data&&this.data.navigationEndpoint;r&&!_.Zy(_.Z1(g)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.Y("kevlar_grid_video_renderer_killswitch")?_.Sh(this.hostElement,"yt-navigate",{endpoint:r}):this.ytComponentBehavior.resolveCommand(r))};
_.S.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.S.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12943_inlinePreviewHoverListener=XX({mediaRenderer:this,lockupElement:_.S3(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.S3(this.hostElement).querySelector("ytd-thumbnail")})};
_.S.clearInlinePreviewHoverListeners=function(){var g;(g=this.JSC$12943_inlinePreviewHoverListener)==null||Tu(g)};
_.S.computeThumbnailWidth=function(g,r){return r&&r>0?r:g?360:210};
_.S.computeShowChannelThumbnail=function(g,r){var E;return r&&!!(g==null?0:(E=g.channelThumbnailSupportedRenderers)==null?0:E.channelThumbnailWithLinkRenderer)};
_.hx.Object.defineProperties(JK.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.JSC$12943_inlinePreviewHoverListener)==null?0:bI(g))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
JK.prototype.dataChanged=JK.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],JK.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],JK.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],JK.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ji),_.L("design:type",Object)],JK.prototype,"ytdDismissibleItemBehavior",void 0);
_.m([_.P(_.K4),_.L("design:type",Object)],JK.prototype,"ytdLockupBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],JK.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],JK.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Boolean)],JK.prototype,"noEndpoints",void 0);_.m([_.K({computed:"calculateBylineText(data)"}),_.L("design:type",Object)],JK.prototype,"bylineText",void 0);
_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],JK.prototype,"isSearch",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],JK.prototype,"isDownloading",void 0);_.m([_.K({reflectToAttribute:!0,value:0}),_.L("design:type",Number)],JK.prototype,"width",void 0);_.m([_.K({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.L("design:type",Object)],JK.prototype,"isDisabled",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],JK.prototype,"dataChanged",null);_.m([_.W("lockupIsHovered"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],JK.prototype,"isHovered",null);_.m([_.N({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],JK);
_.I(JK,"ytd-grid-video-renderer",function(){if(IrD!==void 0)return IrD;var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return IrD=g},{mode:_.My("kevlar_poly_si_batch_j047")?1:2});var QDn;var P4=function(){var g=_.a.apply(this,arguments)||this;g.roundedContainer=!0;g.skipRoundingTop=!1;g.disableTopPadding=!1;g.amsterdamEnabled=_.Y("enable_desktop_amsterdam_info_panels");return g};
_.f(P4,_.a);P4.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
P4.prototype.onClick=function(g){var r,E=(r=this.data)==null?void 0:r.sourceEndpoint;!_.Zy(_.Z1(g),this.hostElement,["A".toString()])&&E&&_.Sh(this.hostElement,"yt-navigate",{endpoint:E})};
_.hx.Object.defineProperties(P4.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 g;return!((g=this.data)==null||!g.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var g,r;return(r=(g=this.data)==null?void 0:g.paragraphMaxLines)!=null?r:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],P4.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],P4.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],P4.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],P4.prototype,"showVerticalDividers",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],P4.prototype,"roundedContainer",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],P4.prototype,"skipRoundingTop",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],P4.prototype,"disableTopPadding",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],P4.prototype,"amsterdamEnabled",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],P4.prototype,"showMetadataAtTop",null);
_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],P4.prototype,"showMetadataBelowTitle",null);_.m([_.K({reflectToAttribute:!0}),_.W("data.menu"),_.L("design:type",Object),_.L("design:paramtypes",[])],P4.prototype,"hasMenu",null);_.m([_.K({reflectToAttribute:!0}),_.W("data.truncateParagraphs"),_.L("design:type",Object),_.L("design:paramtypes",[])],P4.prototype,"truncateParagraphs",null);
_.m([_.K({reflectToAttribute:!0}),_.W("data.paragraphMaxLines"),_.L("design:type",Number),_.L("design:paramtypes",[])],P4.prototype,"paragraphMaxLines",null);_.m([_.K({type:_.Y("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.W("data.background"),_.L("design:type",Object),_.L("design:paramtypes",[])],P4.prototype,"background",null);_.m([_.N({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],P4);
_.I(P4,"ytd-info-panel-content-renderer",function(){if(QDn!==void 0)return QDn;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return QDn=g},{mode:_.My("kevlar_poly_si_batch_j076")?1:2});var zlA;var kTD;var HGw;var pW4;var tK=function(){return _.a.apply(this,arguments)||this};
_.f(tK,_.a);tK.prototype.computeStyle=function(g){return g};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],tK.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],tK.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.L("design:type",String)],tK.prototype,"style_",void 0);_.m([_.e3({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],tK);
_.I(tK,"yt-channel-thumbnail-with-link-renderer",function(){if(pW4===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;HGw===void 0&&(HGw=document.createElement("template"));var B=HGw;E.call(r,B.content.cloneNode(!0),g.content.firstChild);pW4=g}g=pW4;return g},{mode:2});var F9=function(){var g=_.a.apply(this,arguments)||this;g.modernTypography=_.Y("web_modern_typography");return g};
_.f(F9,_.a);F9.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"}}}};
F9.prototype.computeTitleStyle=function(g){return g||null};
F9.prototype.computeAvatarStyle=function(g){return g||null};
F9.prototype.computeShowNavigationButton=function(g,r){return!(g==null||!g.navigationButton||r)};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],F9.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],F9.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],F9.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.L("design:type",String)],F9.prototype,"titleStyle",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.L("design:type",String)],F9.prototype,"avatarStyle",void 0);_.m([_.K(),_.L("design:type",Boolean)],F9.prototype,"hideNavigationButton",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],F9.prototype,"isModernSd",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],F9.prototype,"modernTypography",void 0);
_.m([_.N({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],F9);
_.I(F9,"ytd-rich-list-header-renderer",function(){if(kTD!==void 0)return kTD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return kTD=g},{mode:_.My("kevlar_poly_si_batch_j058")?1:2});var eK=function(){return _.a.apply(this,arguments)||this};
_.f(eK,_.a);eK.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]]"}}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],eK.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],eK.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],eK.prototype,"data",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],eK.prototype,"isSearch",void 0);_.m([_.N({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],eK);
_.I(eK,"ytd-preview-card-renderer",function(){if(zlA!==void 0)return zlA;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return zlA=g},{mode:1});var YII;var W4=function(){return _.a.apply(this,arguments)||this};
_.f(W4,_.a);W4.prototype.configureRendererStamper=function(){return{"data.menu":qZ}};
W4.prototype.dataChanged=function(){var g=this.get("colorExtractionPalette.section1Color",this.data);g=_.aJ(g);_.ua(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":g})};
W4.prototype.computeCardStyle=function(g){return this.get("style.value",g)||null};
W4.prototype.dataChanged=W4.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],W4.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],W4.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ji),_.L("design:type",Object)],W4.prototype,"ytdDismissibleItemBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],W4.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.L("design:type",String)],W4.prototype,"cardStyle",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],W4.prototype,"dataChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],W4);
_.I(W4,"ytd-compact-channel-recommendation-card-renderer",function(){if(YII!==void 0)return YII;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return YII=g},{mode:1});var RlD;var nxz;var CO=function(){var g=_.a.apply(this,arguments)||this;g.alignAuto=!1;g.collapsed=!0;g.isToggled=!1;g.alwaysCollapsed=!1;g.canToggle=!0;g.collapsedHeight=80;g.disableToggle=!1;g.alwaysToggleable=!1;g.reversed=!1;g.shouldUseNumberOfLines=!1;g.recomputeOnResize=!1;g.canToggleJobId=0;g.lastReversed=!1;return g};
_.f(CO,_.a);_.S=CO.prototype;_.S.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.S.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.S.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var g=_.S3(this.hostElement),r=g.childNodes,E=document.createDocumentFragment(),B=g.childNodes.length-1;B>=0;B--)_.S3(E).appendChild(r[B]);_.Y("enable_shadydom_free_scoped_node_methods")?_.ON(this.hostElement).appendChild(E):g.appendChild(E)}};
_.S.ready=function(){var g=this;_.N1(function(){g.initChildrenObserver()},1)};
_.S.detached=function(){this.detachObserver()};
_.S.toggle=function(g,r){this.canToggle&&(this.isToggled=r,_.Sh(this.hostElement,"yt-refit"),g&&g.stopPropagation())};
_.S.reset=function(){this.childrenChanged()};
_.S.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.S.computeIsMoreVisible=function(g,r){return g&&!r};
_.S.computeShouldUseNumberOfLines=function(g){try{return!!g&&window.CSS.supports("-webkit-line-clamp","1")}catch(r){}return!1};
_.S.computeIsLessVisible=function(g,r){return g&&r};
_.S.observeCollapsedHeightAndMaxLines=function(){var g=this.collapsedHeight,r=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.ua(this.hostElement,{"--ytd-expander-max-lines":""+r,"--ytd-expander-collapsed-height":""}):_.ua(this.hostElement,{"--ytd-expander-collapsed-height":g+"px","--ytd-expander-max-lines":""})};
_.S.handleMoreTap=function(g){this.disableToggle||(_.Sh(this.hostElement,"yt-expander-more-tapped"),this.toggle(g,!0))};
_.S.handleLessTap=function(g){_.Sh(this.hostElement,"yt-expander-less-tapped");this.toggle(g,!1)};
_.S.initChildrenObserver=function(){var g=this;this.observer=new MutationObserver(function(){g.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.S.childrenChanged=function(){var g=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){UB(function(){g.canToggleJobId=0;g.calculateCanCollapse()})}))};
_.S.calculateCanCollapse=function(){this.canToggle=this.shouldUseNumberOfLines?this.alwaysToggleable||this.isToggled||this.content&&this.content.offsetHeight<this.content.scrollHeight:this.alwaysToggleable||this.isToggled||this.content&&this.content.scrollHeight>this.collapsedHeight};
_.S.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.S.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.x8("collapsed-changed",this.collapsed))};
_.S.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.x8("is-toggled-changed",this.isToggled))};
_.S.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.x8("can-toggle-changed",this.canToggle))};
_.hx.Object.defineProperties(CO.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
CO.prototype.canToggleChangedForBinding=CO.prototype.canToggleChangedForBinding;CO.prototype.isToggledChangedForBinding=CO.prototype.isToggledChangedForBinding;CO.prototype.collapsedChangedForBinding=CO.prototype.collapsedChangedForBinding;CO.prototype.observeCollapsedHeightAndMaxLines=CO.prototype.observeCollapsedHeightAndMaxLines;CO.prototype.onIronResize=CO.prototype.onIronResize;CO.prototype.reversedChanged=CO.prototype.reversedChanged;CO.prototype.toggledChanged=CO.prototype.toggledChanged;
CO.prototype.alwaysToggleableChanged=CO.prototype.alwaysToggleableChanged;_.m([_.P(_.f7),_.L("design:type",Object)],CO.prototype,"ironResizableBehavior",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],CO.prototype,"alignAuto",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],CO.prototype,"collapsed",void 0);_.m([_.K(),_.L("design:type",Object)],CO.prototype,"isToggled",void 0);_.m([_.K(),_.L("design:type",Object)],CO.prototype,"alwaysCollapsed",void 0);
_.m([_.K(),_.L("design:type",Object)],CO.prototype,"canToggle",void 0);_.m([_.K(),_.L("design:type",Object)],CO.prototype,"collapsedHeight",void 0);_.m([_.K(),_.L("design:type",Object)],CO.prototype,"disableToggle",void 0);_.m([_.K(),_.L("design:type",Object)],CO.prototype,"alwaysToggleable",void 0);_.m([_.K(),_.L("design:type",Object)],CO.prototype,"reversed",void 0);_.m([_.K(),_.L("design:type",Number)],CO.prototype,"maxNumberOfLines",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.L("design:type",Object)],CO.prototype,"shouldUseNumberOfLines",void 0);_.m([_.K(),_.L("design:type",Object)],CO.prototype,"recomputeOnResize",void 0);_.m([_.zb("#content"),_.L("design:type",HTMLDivElement)],CO.prototype,"content",void 0);_.m([_.Yk("alwaysToggleable"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],CO.prototype,"alwaysToggleableChanged",null);
_.m([_.Yk("isToggled"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],CO.prototype,"toggledChanged",null);_.m([_.W("canToggleJobId"),_.L("design:type",Object),_.L("design:paramtypes",[])],CO.prototype,"isResetting",null);_.m([_.Gb("reversed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],CO.prototype,"reversedChanged",null);
_.m([_.ob("iron-resize"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],CO.prototype,"onIronResize",null);_.m([_.Gb("maxNumberOfLines","collapsedHeight"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],CO.prototype,"observeCollapsedHeightAndMaxLines",null);_.m([_.Gb("collapsed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],CO.prototype,"collapsedChangedForBinding",null);
_.m([_.Gb("isToggled"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],CO.prototype,"isToggledChangedForBinding",null);_.m([_.Gb("canToggle"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],CO.prototype,"canToggleChangedForBinding",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-expander"})],CO);
_.I(CO,"ytd-expander",function(){if(nxz!==void 0)return nxz;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return nxz=g},{mode:1});var KO=function(){return _.a.apply(this,arguments)||this};
_.f(KO,_.a);KO.prototype.computeIsCarousel=function(g){return!!g.isCarousel};
KO.prototype.observeLightsourcePalette=function(){var g,r=(g=this.data)==null?void 0:g.vibrantsourceColorPaletteData;r&&_.tR(this.hostElement,r)};
KO.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
KO.prototype.observeLightsourcePalette=KO.prototype.observeLightsourcePalette;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],KO.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],KO.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],KO.prototype,"data",void 0);_.m([_.K({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],KO.prototype,"isCarousel",void 0);
_.m([_.Gb("data.vibrantsourceColorPaletteData"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],KO.prototype,"observeLightsourcePalette",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],KO);
_.I(KO,"ytd-media-upsell-renderer",function(){if(RlD!==void 0)return RlD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return RlD=g},{mode:2});var sDD;var x1=function(){var g=_.a.apply(this,arguments)||this;g.JSC$12971_playerEvents=new Map;g.listeningToPlayer=!1;g.startX=0;g.active=!1;g.shouldShowButtons=_.Y("web_buttons_hidden_killswitch");g.isHighlighted=!1;g.useHighlightStyling=_.Y("web_enable_deeper_metadata_highlight_styling");g.modern=_.Y("kevlar_modern_sd");g.enableProblemWalkthrough=_.Y("problem_walkthrough_sd");return g};
_.f(x1,_.a);_.S=x1.prototype;
_.S.configureRendererStamper=function(){return{"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.repeatButton":{id:"repeat-button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.thumbnailOverlay":{id:"overlay",mapping:{thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",params:{isVideoPlaying:!0}}}}}};
_.S.created=function(){this.JSC$12971_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.S.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.Do(this,this.onRepeatButtonToggle));_.Y("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.Do(this,this.onActiveUpdate))};
_.S.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.Do(this,this.onRepeatButtonToggle));_.Y("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.Do(this,this.onActiveUpdate))};
_.S.onDataChanged=function(){this.removePlayerListeners()};
_.S.onColorPaletteChange=function(){var g={},r;if(_.bF()==="USER_INTERFACE_THEME_DARK"&&((r=this.data)==null?0:r.darkColorPalette)){var E=this.data.darkColorPalette;g["--ytd-macro-markers-list-item-background-color"]=_.XT(this.get("section2Color",E))}else{var B;_.bF()==="USER_INTERFACE_THEME_LIGHT"&&((B=this.data)==null?0:B.lightColorPalette)&&(E=this.data.lightColorPalette,g["--ytd-macro-markers-list-item-background-color"]=_.XT(this.get("section3Color",E)))}E?(g["--ytd-macro-markers-list-item-title-color"]=
_.XT(this.get("primaryTitleColor",E)),g["--ytd-macro-markers-list-item-secondary-color"]=_.XT(this.get("secondaryTitleColor",E)),g["--ytd-macro-markers-list-item-timestamp-background-color"]=_.XT(this.get("section1Color",E)),this.customButtonProperties={customColors:{color:_.XT(this.get("primaryTitleColor",E))}},this.useColorSampling=!0):(g["--ytd-macro-markers-list-item-background-color"]="initial",g["--ytd-macro-markers-list-item-title-color"]="initial",g["--ytd-macro-markers-list-item-secondary-color"]=
"initial",g["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.ua(this.hostElement,g)};
_.S.onEndpointMouseDown=function(g){this.startX=g.clientX};
_.S.onEndpointClick=function(g){var r=this,E,B,w;return _.q(function(O){if(O.nextAddress==1){if(r.startX!==g.clientX)return g.preventDefault(),O.return();r.data&&r.ytRendererBehavior.logExplicitClick(r.data);if(!r.seekWithAnimationOnClick)return O.jumpTo(0);if(g.button!==0||g.shiftKey||g.altKey||g.metaKey||g.ctrlKey||_.Zy(_.Z1(g),r.hostElement,["BUTTON".toString()]))return O.return();g.stopPropagation();g.preventDefault();return r.data?_.D(O,_.gr().getPlayerPromise(),3):O.return()}E=O.yieldResult;
w=(B=_.n(r.data.onTap,_.LM))==null?void 0:B.startTimeSeconds;w!==void 0&&E.seekToTimeWithAnimation(w*1E3,_.Vp(r.data.title));_.Q3(O)})};
_.S.computeLayout=function(g){return g};
_.S.computeIsHighlighted=function(g){return!!g};
_.S.computeCarouselType=function(g){return g};
_.S.hideModernCarousel=function(g){return this.modern&&this.hideThumbnail(g)};
_.S.hideThumbnail=function(g){return this.enableProblemWalkthrough&&g!==null&&g==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.S.onRepeatButtonToggle=function(g){var r=this;g.detail.toggled&&_.gr().getPlayerPromise().then(function(E){r.ytPlayerListenerBehavior.listenToPlayerEvents(E,r.JSC$12971_playerEvents);r.listeningToPlayer=!0})};
_.S.onLoopRangeChange=function(g){var r=_.S3(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(r){var E=r.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",r.polymerController.data);if(E){var B=Number(E.endTimeMs);if(Number(E.startTimeMs)!==(g==null?void 0:g.startTimeMs)||B!==(g==null?void 0:g.endTimeMs))r.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.S.removePlayerListeners=function(){var g=this;this.listeningToPlayer&&_.gr().getPlayerPromise().then(function(r){g.ytPlayerListenerBehavior.unlistenFromPlayerEvents(r,g.JSC$12971_playerEvents);g.listeningToPlayer=!1})};
_.S.onActiveUpdate=function(g){this.active=g.detail.active};
x1.prototype.onColorPaletteChange=x1.prototype.onColorPaletteChange;x1.prototype.onDataChanged=x1.prototype.onDataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],x1.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],x1.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.a9.YtPlayerListenerBehavior),_.L("design:type",_.X0)],x1.prototype,"ytPlayerListenerBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],x1.prototype,"data",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],x1.prototype,"useCustomColors",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],x1.prototype,"active",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],x1.prototype,"shouldShowButtons",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.L("design:type",String)],x1.prototype,"layout",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.L("design:type",Object)],x1.prototype,"isHighlighted",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],x1.prototype,"useHighlightStyling",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],x1.prototype,"modern",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],x1.prototype,"enableProblemWalkthrough",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.L("design:type",String)],x1.prototype,"carouselType",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],x1.prototype,"useColorSampling",void 0);_.m([_.K(),_.L("design:type",Boolean)],x1.prototype,"seekWithAnimationOnClick",void 0);_.m([_.K(),_.L("design:type",Object)],x1.prototype,"customButtonProperties",void 0);
_.m([_.zb("#repeat-button"),_.L("design:type",HTMLElement)],x1.prototype,"repeatButton",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],x1.prototype,"onDataChanged",null);_.m([_.Gb("data.lightColorPalette","data.darkColorPalette"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],x1.prototype,"onColorPaletteChange",null);_.m([_.N({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],x1);
_.I(x1,"ytd-macro-markers-list-item-renderer",function(){if(sDD!==void 0)return sDD;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return sDD=g},{mode:1});var fFz;var $xZ;var aZ=function(){var g=_.a.apply(this,arguments)||this;g.modernTypography=_.Y("web_modern_typography");return g};
_.f(aZ,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],aZ.prototype,"ytRendererBehavior",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],aZ.prototype,"modernTypography",void 0);_.m([_.K(),_.L("design:type",Object)],aZ.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],aZ);
_.I(aZ,"ytd-title-and-button-list-header-renderer",function(){if($xZ!==void 0)return $xZ;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return $xZ=g},{mode:1});var jDb;var Azn=new _.Vn("BUTTON_RENDERER_WIZ_TOKEN"),bGm=new _.Vn("BUTTON_RENDERER_TOKEN");_.X9=_.dG(function(g){var r=_.rM().resolve(_.gM(Azn));if(r)return _.G(r,Object.assign({},g));var E=_.rM().resolve(bGm);return E?_.G(zcP,null,function(){return _.G(Z8,null,function(){var B,w,O,M,u,l,Q,z,k,H,R,A;return void E(g.data(),{onButtonClickCallback:g.onButtonClickCallback,shouldShowIcons:(B=g.shouldShowIcons)==null?void 0:B.call(g),icon:(w=g.icon)==null?void 0:w.call(g),processAllEndpoints:(O=g.processAllEndpoints)==null?void 0:O.call(g),preventDefault:(M=g.preventDefault)==null?void 0:M.call(g),
stopPropagation:(u=g.stopPropagation)==null?void 0:u.call(g),disableButtonRendererClickHandling:(l=g.disableButtonRendererClickHandling)==null?void 0:l.call(g),className:(Q=g.className)==null?void 0:Q.call(g),buttonOverrides:(z=g.buttonOverrides)==null?void 0:z.call(g),forceModernIconButton:(k=g.forceModernIconButton)==null?void 0:k.call(g),isSubscribe:(H=g.isSubscribe)==null?void 0:H.call(g),alignByText:(R=g.alignByText)==null?void 0:R.call(g),forceDisabled:(A=g.forceDisabled)==null?void 0:A.call(g)})})}):
_.G(_.wW,null)},"da");
_.X9.idomCompat=!0;var Jzm=_.dG(function(g){var r=g.data,E=_.Zo(g.useSquareAspectRatio,!1);return _.G("dismissed-mini-game-card-view-model",null,_.G(_.p,{cond:function(){var B,w;return(B=r().responseText)==null?void 0:(w=B.runs)==null?void 0:w.length},
then:function(){var B={};return _.G("div",{class:_.QY("yt-mini-game-card-view-model__dismissed-card",(B["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!E()},B["yt-mini-game-card-view-model--dismissed-square-card"]=E,B))},_.G("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.G(_.p,{cond:function(){return r().responseText.runs[0].text},
then:function(w){return _.G("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:w},w)}}),_.G(_.Af,{data:function(){return r().buttons}},{buttonRenderer:_.X9,
buttonViewModel:_.MV})))}}))},"ea");var KkD=_.dG(function(g){g=_.y7(g,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var r=g.data,E=g.useFullWidth,B=g.isDesktopWeb,w=g.addSearchResultTopMargin,O=function(){return r().layout},M=function(){return r().title},u=function(){return r().metadataText?r().metadataText:r().genre},l=function(){return r().channelName},Q=function(){return r().image},z=function(){return r().colorPalette},k=function(){return r().actionButton},H=function(){return r().overflowButton},
R=function(){return r().avatar},A=function(){var X={};
X=_.QY("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(X["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return B()},X));
return _.G("div",{class:X},_.G(PrD,{imageData:Q,colorPalette:z}),_.G(tZ4,{onTap:function(){return r().onTap},
imageData:Q,accessibilityText:function(){return r().accessibilityText},
overlayBadgeText:function(){return r().overlayBadgeText},
iconName:function(){return r().iconName},
unplayableInlinePlaybackIconName:function(){return r().unplayableInlinePlaybackIconName},
isDesktopWeb:B}),_.G(_.p,{cond:function(){return!B()},
then:function(){return _.G(_.wW,null,_.G(FkT,{layout:O,colorPalette:z,isDesktopWeb:B,overflowButton:H,avatar:R,onTap:function(){return r().onTap},
genre:u,title:M,channelName:l}),_.G(elT,{actionButton:k}))}}))},J=function(){var X={};
X=_.QY((X["yt-mini-game-card-view-model--search-result-desktop"]=function(){return B()},X["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!B()},X["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return w()},X));
return _.G("div",{class:X},A(),_.G(Wkw,{description:function(){return r().description},
isDesktopWeb:B,title:M,genre:u,onTap:function(){return r().onTap},
actionButton:k,overflowButton:H,avatar:R,channelName:l}))},e=function(){var X={};
X=_.QY("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(X["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return B()},X["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return B()&&r().width===135},X["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return B()},X["yt-mini-game-card-view-model--big-metadata-font"]=function(){return r().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},X["yt-mini-game-card-view-model--use-full-width"]=
function(){return E()},X["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!k()},X));
return _.G("div",{class:X},_.G(CrD,{colorPalette:z,isDesktopWeb:B,onTap:function(){return r().onTap},
accessibilityText:function(){return r().accessibilityText},
overlayBadgeText:function(){return r().overlayBadgeText},
iconName:function(){return r().iconName},
unplayableInlinePlaybackIconName:function(){return r().unplayableInlinePlaybackIconName},
actionButton:k,imageData:Q}),_.G(FkT,{layout:O,colorPalette:z,isDesktopWeb:B,overflowButton:H,avatar:R,onTap:function(){return r().onTap},
genre:u,title:M,channelName:l}))},C=function(){var X={};
X=_.QY("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(X["yt-mini-game-card-view-model--square-card-desktop"]=function(){return B()},X["yt-mini-game-card-view-model--use-full-width"]=function(){return E()},X));
return _.G("div",{class:X},_.G(tZ4,{onTap:function(){return r().onTap},
imageData:Q,accessibilityText:function(){return r().accessibilityText},
overlayBadgeText:function(){return r().overlayBadgeText},
iconName:function(){return r().iconName},
unplayableInlinePlaybackIconName:function(){return r().unplayableInlinePlaybackIconName},
isDesktopWeb:B}),_.G(FkT,{layout:O,colorPalette:z,isDesktopWeb:B,overflowButton:H,avatar:R,onTap:function(){return r().onTap},
genre:u,title:M,channelName:l}))};
return _.G("mini-game-card-view-model",{class:g.className},_.G(_.fa,null,_.G(_.na,{when:function(){return O()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return e()}),_.G(_.na,{when:function(){return O()==="MINI_APP_LAYOUT_SQUARE"}},function(){return C()}),_.G(_.na,{when:function(){return O()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return J()})))},"fa");
KkD.idomCompat=!0;var elT=_.dG(function(g){var r=_.Zo(g.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.G(_.Af,{data:g.actionButton},{buttonViewModel:function(E){return _.G("div",{class:r},_.G(_.MV,{data:E.data}))}})},"ga"),tZ4=_.dG(function(g){var r=g.onTap;
var E=g.imageData;var B=g.accessibilityText;var w=g.overlayBadgeText;var O=g.iconName;var M=g.unplayableInlinePlaybackIconName;g=g.isDesktopWeb;return _.G(_.NQ,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:r},_.G(_.vw,{data:E,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(B==null?void 0:B())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.G(xxT,{overlayBadgeText:w,iconName:O,unplayableInlinePlaybackIconName:M,isDesktopWeb:g}))},"ha"),xxT=_.dG(function(g){var r=g.overlayBadgeText;
var E=g.iconName;var B=g.unplayableInlinePlaybackIconName;var w=g.isDesktopWeb;return _.G("div",{class:"yt-mini-game-card-view-model__badge-container"},_.G(_.p,{cond:E,then:function(O){return _.G("div",{class:"yt-mini-game-card-view-model__badge"},_.G("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.G(_.nh,{icon:O,className:"yt-mini-game-card-view-model__icon",size:12}),_.G("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},r)))}}),_.G(_.p,{cond:function(){return!E()&&
r()},
then:function(){return _.G("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},r)}}),_.G(_.p,{cond:function(){return B()&&w()},
then:function(){return _.G("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.G(_.nh,{icon:B,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ia"),PrD=_.dG(function(g){var r=g.colorPalette;
var E=g.imageData;var B=function(){return r().vibrantColorPalette?r().vibrantColorPalette.section2Color:r().sectionTwoColor};
return _.G(_.wW,null,_.G("div",{class:"yt-mini-game-card-view-model__background-base",style:_.Rl({"background-color":function(){return N8(B(),"1")}})}),_.G("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.Rl({"background-image":function(){return"url("+E().sources[0].url+")"}})}),_.G("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.Rl({background:function(){return"linear-gradient(180deg,\n    "+N8(B(),".8")+" 0%,\n    "+N8(B(),".4")+" 25%,\n    "+N8(r().vibrantColorPalette?r().vibrantColorPalette.section4Color:r().sectionFourColor,".8")+" 100%)"}})}))},"ja"),FkT=_.dG(function(g){var r=g.layout;
var E=g.colorPalette;var B=g.overflowButton;var w=g.avatar;var O=g.onTap;var M=g.title;var u=g.channelName;var l=g.genre;var Q=function(){var z;return r()!=="MINI_APP_LAYOUT_SQUARE"&&((z=E())==null?0:z.textPrimaryColor)?"color: "+N8(E().textPrimaryColor,".7"):""};
return _.G("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.G(_.p,{cond:w,then:function(){return _.G("div",{class:"yt-mini-game-card-view-model__avatar"},_.G(_.Af,{data:w},{avatarViewModel:_.sV}))}}),_.G(_.NQ,{command:O,
className:"yt-mini-game-card-view-model__metadata-details"},_.G("h3",{class:"yt-mini-game-card-view-model__title",title:M},M),_.G(_.p,{cond:w,then:function(){return _.G("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.G("span",{class:"yt-mini-game-card-view-model__genre",title:u,style:Q},u),_.G("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:Q},l))},
else:function(){return _.G("span",{class:"yt-mini-game-card-view-model__genre",title:l},l)}})),_.G("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.G(_.Af,{data:B},{buttonViewModel:function(z){var k=z.data;
return _.G(_.MV,{data:function(){return Object.assign({},k(),{customFontColor:r()==="MINI_APP_LAYOUT_SINGLETON"?k().customFontColor:void 0})}})}})))},"ka"),CrD=_.dG(function(g){var r=g.colorPalette;
var E=g.isDesktopWeb;var B=g.onTap;var w=g.accessibilityText;var O=g.overlayBadgeText;var M=g.iconName;var u=g.unplayableInlinePlaybackIconName;var l=g.actionButton;g=g.imageData;return _.G("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.G(PrD,{imageData:g,colorPalette:r}),_.G(tZ4,{onTap:B,imageData:g,accessibilityText:w,overlayBadgeText:O,iconName:M,unplayableInlinePlaybackIconName:u,isDesktopWeb:E}),_.G(_.p,{cond:function(){return l==null?void 0:l()},
then:function(){return _.G(elT,{actionButton:l})}}))},"la"),Wkw=_.dG(function(g){var r=g.description;
var E=g.isDesktopWeb;var B=g.title;var w=g.genre;var O=g.onTap;var M=g.actionButton;var u=g.overflowButton;var l=g.avatar;g=g.channelName;var Q={};Q=_.QY("yt-mini-game-card-view-model--search-result-metadata-wrapper",(Q["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=E,Q["yt-mini-game-card-view-model--show-unplayable-on-hover"]=E,Q["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!E()},Q));
var z={};z=_.QY("yt-mini-game-card-view-model__search-result-info-row",(z["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!E()},z));
return _.G("div",{class:Q},_.G("div",{class:z},_.G(_.NQ,{command:O,className:"yt-mini-game-card-view-model__metadata-details"},_.G("h3",{class:"yt-mini-game-card-view-model__title",title:B},B),_.G("span",{class:"yt-mini-game-card-view-model__genre",title:w},w)),_.G(elT,{actionButton:M,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.G("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.G(_.Af,{data:u},{buttonViewModel:_.MV}))),_.G("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.G("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.G("div",{class:"yt-mini-game-card-view-model__avatar"},_.G(_.Af,{data:l},{avatarViewModel:function(k){var H=k.data;return _.G(_.sV,{data:function(){return Object.assign({},H(),{avatarImageSize:E()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.G(_.NQ,{command:O,
className:"yt-mini-game-card-view-model__description"},_.G("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},g)),_.G(_.NQ,{command:O,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.G("div",null)))),_.G(_.p,{cond:E,then:function(){return _.G(_.NQ,{command:O,className:"yt-mini-game-card-view-model__description"},r)}}))},"ma");_.BK(KkD,"mini-game-card-view-model",{props:{data:_.cP,className:_.cP,useFullWidth:_.cP,isDesktopWeb:_.cP,addSearchResultTopMargin:_.cP}});_.BK(Jzm,"dismissed-mini-game-card-view-model",{props:{data:_.cP,useSquareAspectRatio:_.cP}});var NZ=function(){var g=_.a.apply(this,arguments)||this;g.isSearch=!1;g.isRichGrid=!1;return g};
_.f(NZ,_.a);_.S=NZ.prototype;_.S.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.S.dismissibleItemOnYtServiceRequestSent=function(g,r){r.actions&&this.dismissibleItemProcessActions(g,r.actions)};
_.S.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.S.dataChanged=function(){this.dismissibleItemReset()};
_.S.dismissibleItemProcessActions=function(g,r){for(var E=0;E<r.length;E++){var B=r[E];_.n(B,_.zi)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.n(B,_.zi)),g.stopPropagation())}};
_.S.dismissibleItemHandleReplaceEnclosingAction=function(g){this.dismissedRenderer=g.item;this.isDismissed=!0};
_.hx.Object.defineProperties(NZ.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var g;return!!this.data&&!((g=this.dismissedRenderer)==null?0:g.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.dismissedRenderer)==null||!g.notificationMultiActionRenderer)}}});
NZ.prototype.dataChanged=NZ.prototype.dataChanged;NZ.prototype.dismissibleItemOnRequestSent=NZ.prototype.dismissibleItemOnRequestSent;NZ.prototype.dismissibleItemOnYtServiceRequestSent=NZ.prototype.dismissibleItemOnYtServiceRequestSent;_.m([_.K(),_.L("design:type",Object)],NZ.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],NZ.prototype,"isSearch",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],NZ.prototype,"isDismissed",void 0);
_.m([_.K(),_.L("design:type",Object)],NZ.prototype,"dismissedRenderer",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],NZ.prototype,"isRichGrid",void 0);_.m([_.W("data.layout"),_.L("design:type",Object),_.L("design:paramtypes",[])],NZ.prototype,"useSquareAspectRatio",null);_.m([_.W("data","dismissedRenderer"),_.L("design:type",Object),_.L("design:paramtypes",[])],NZ.prototype,"showCard",null);
_.m([_.W("data","dismissedRenderer"),_.L("design:type",Object),_.L("design:paramtypes",[])],NZ.prototype,"showDismissed",null);_.m([_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.XA]),_.L("design:returntype")],NZ.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.m([_.ob("yt-service-request-sent-button-renderer"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],NZ.prototype,"dismissibleItemOnRequestSent",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],NZ.prototype,"dataChanged",null);_.m([_.e3({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],NZ);
_.I(NZ,"ytd-mini-game-card-view-model",function(){if(jDb!==void 0)return jDb;var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return jDb=g},{mode:_.My("kevlar_poly_si_batch_j081")?1:2});var aFD;var XWT;var IZ=function(){return _.ys.apply(this,arguments)||this};
_.f(IZ,_.ys);IZ.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
IZ.prototype.getContinuationUrl=function(g){var r={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(r.itct=this.data.clickTrackingParams);return _.Vg(g,r)};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],IZ.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],IZ.prototype,"data",void 0);_.m([_.e3({is:"yt-reload-continuation",noInjection:!0})],IZ);var NQD;var IFw;var mo=function(){var g=_.a.apply(this,arguments)||this;g.notificationData={};return g};
_.f(mo,_.a);_.S=mo.prototype;_.S.isMenuExpanded=function(g){return g&&g.length<=1?"undefined":"false"};
_.S.dataChanged_=function(){this.selected=void 0;var g=this.computeSelectedIndex_(this.data);g>=0&&(this.selected=g);g=this.data&&this.data.length>1;_.UN(this.hostElement,"has-items",g);_.S3(this.hostElement).querySelector("#label").tabIndex=g?0:-1};
_.S.onDropdownOpen=function(){var g=_.PE();if(this.parentTrackingParams&&this.data){var r=_.fW(this.parentTrackingParams);this.data.forEach(function(E){g&&r&&E.trackingParams&&(E=_.fW(E.trackingParams),_.N2(g,r,E),_.ck(g,[E]))})}else this.parentTrackingParams||_.el(new _.Rj("No parent tracking params passed in for yt-dropdown-menu."))};
_.S.hasNotification=function(g){var r;if(g.targetId&&((r=this.notificationData)==null?0:r.targetId)){var E;return g.targetId===((E=this.notificationData)==null?void 0:E.targetId)}};
_.S.computeSelectedIndex_=function(g){if(g)for(var r=0,E=g.length;r<E;r++)if(g[r].selected)return r;return-1};
_.S.computeLabel_=function(g){return this.data&&g!=void 0?this.data[g].title:""};
_.S.computeShowIcon_=function(g,r){return!r&&!!g};
_.S.computeVerticalOffset_=function(g){return g?36:0};
_.S.computeEndpoint_=function(g){return g.endpoint||g.navigationEndpoint};
_.S.onLabelClick_=function(g){this.data&&this.data.length<=1?g.stopPropagation():this.menuExpanded="true"};
_.S.onIronActivate_=function(g){g=g.detail.item;var r=_.S3(this.hostElement).querySelector("#repeat").itemForElement(g);if(r&&r.trackingParams){var E=_.PE(),B=_.fW(r.trackingParams);E&&_.Lu(E,B)}if(r&&r.serviceEndpoint)_.Y("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(r.serviceEndpoint):_.q2(this.hostElement,[r.serviceEndpoint]),_.Sh(this.hostElement,"yt-playlist-reloading");else a:{if((r=g.querySelector("yt-supported-renderers"))&&
(r=r.rendererElement)&&r.is=="yt-reload-continuation"){r.trigger();break a}(g=g.querySelector("yt-reload-continuation"))&&g.trigger()}};
_.S.onTap_=function(g){g.preventDefault()};
_.S.onItemTap_=function(g){this.ytEndpointBehavior.onEndpointTap_(g)};
_.S.onLinkFocus_=function(g){try{var r=g.target}catch(B){}if(r){var E=r.querySelector("tp-yt-paper-item");E&&_.Ib(this,"focus",function(){E.focus()})}};
_.S.onMenuClose_=function(){this.menuExpanded="false"};
_.S.isLabelIconActive_=function(g){return g==="true"};
_.S.computeHasSubtitle_=function(g){return!!g};
_.S.computeHrefForItem_=function(g){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(g))};
_.S.updateSelectedFromBinding=function(g){this.selected=g.detail.value};
_.hx.Object.defineProperties(mo.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
mo.prototype.onMenuClose_=mo.prototype.onMenuClose_;mo.prototype.onTap_=mo.prototype.onTap_;mo.prototype.onIronActivate_=mo.prototype.onIronActivate_;mo.prototype.onDropdownOpen=mo.prototype.onDropdownOpen;mo.prototype.dataChanged_=mo.prototype.dataChanged_;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],mo.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.DW.YtEndpointBehavior),_.L("design:type",Object)],mo.prototype,"ytEndpointBehavior",void 0);
_.m([_.K(),_.L("design:type",Array)],mo.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],mo.prototype,"parentTrackingParams",void 0);_.m([_.K(),_.L("design:type",Object)],mo.prototype,"selected",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],mo.prototype,"useLabel",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],mo.prototype,"useComputedAriaLabel",void 0);_.m([_.K(),_.L("design:type",String)],mo.prototype,"icon",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],mo.prototype,"iconLabel",void 0);_.m([_.K(),_.L("design:type",String)],mo.prototype,"ariaLabel",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],mo.prototype,"disabled",void 0);_.m([_.K({computed:"isMenuExpanded(data)"}),_.L("design:type",String)],mo.prototype,"menuExpanded",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],mo.prototype,"closeOnActivate",void 0);
_.m([_.K({reflectToAttribute:!0,value:_.Y("web_modern_buttons")}),_.L("design:type",Boolean)],mo.prototype,"modernButtons",void 0);_.m([_.K(),_.L("design:type",Object)],mo.prototype,"notificationData",void 0);_.m([_.W("ariaLabel, selected"),_.K(),_.L("design:type",String),_.L("design:paramtypes",[])],mo.prototype,"computedAriaLabel",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],mo.prototype,"dataChanged_",null);
_.m([_.ob("paper-dropdown-open"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],mo.prototype,"onDropdownOpen",null);_.m([_.ob("iron-activate"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],mo.prototype,"onIronActivate_",null);_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],mo.prototype,"onTap_",null);
_.m([_.ob("iron-overlay-closed"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],mo.prototype,"onMenuClose_",null);_.m([_.e3({is:"yt-dropdown-menu",disableElementRegistration:!0})],mo);
_.I(mo,"yt-dropdown-menu",function(){if(IFw===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;NQD===void 0&&(NQD=document.createElement("template"));var B=NQD;E.call(r,B.content.cloneNode(!0),g.content.firstChild);IFw=g}g=IFw;return g},{mode:2});var c4=function(){var g=_.a.apply(this,arguments)||this;g.hasNotification=!1;return g};
_.f(c4,_.a);c4.prototype.computeId=function(g){return g};
c4.prototype.computeHorizontalAlign=function(g){return g?"right":"left"};
c4.prototype.computeAccessibilityLabel=function(g){var r,E;return((r=g.accessibility)==null?void 0:(E=r.accessibilityData)==null?void 0:E.label)||null};
c4.prototype.notificationDataChanged=function(){var g;this.hasNotification=!!this.notificationData&&!((g=this.data)==null?0:g.icon)};
c4.prototype.notificationDataChanged=c4.prototype.notificationDataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],c4.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.CB.YtLiveChatTooltipTargetingBehavior),_.L("design:type",Object)],c4.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],c4.prototype,"data",void 0);_.m([_.K({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.L("design:type",String)],c4.prototype,"id",void 0);
_.m([_.K({value:!1}),_.L("design:type",Boolean)],c4.prototype,"isRightAligned",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],c4.prototype,"disabled",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],c4.prototype,"closeOnActivate",void 0);_.m([_.K(),_.L("design:type",Object)],c4.prototype,"notificationData",void 0);_.m([_.K(),_.L("design:type",Object)],c4.prototype,"hasNotification",void 0);
_.m([_.K({value:!1}),_.L("design:type",Boolean)],c4.prototype,"useComputedAriaLabel",void 0);_.m([_.Gb("notificationData"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],c4.prototype,"notificationDataChanged",null);_.m([_.e3({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],c4);
_.I(c4,"yt-sort-filter-sub-menu-renderer",function(){if(XWT===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;aFD===void 0&&(aFD=document.createElement("template"));var B=aFD;E.call(r,B.content.cloneNode(!0),g.content.firstChild);XWT=g}g=XWT;return g},{mode:2});var mxT=_.k3(nxo);_.rH(nxo);_.BK(mxT,"place-data-view-model",{props:{data:_.cP}});var czn=new _.Vn("INLINE_PLAYBACK_HOOK_TOKEN");var iGT=function(g){this.setActiveSlideIndex=g;this.jobIds=[];this.isSlideshowPlaying=!1},hlD=function(g,r){g.isSlideshowPlaying||(g.isSlideshowPlaying=!0,Lkm(g),VZD(g,r,0))},Lkm=function(g){_.Mh(_.F6,function(){g.setActiveSlideIndex(0)},1)},VZD=function(g,r,E){g.jobIds.push(_.Mh(_.F6,function(){var B=E<r-1?E+1:0;
g.setActiveSlideIndex(B);VZD(g,r,B)},1800))};var ZG6=new _.Vn("IMAGE_ON_LOAD_HANDLER_TOKEN");var yzD=_.dG(function(g){return _.G("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.G(_.p,{cond:function(){var r;return(r=g.data())==null?void 0:r.thumbnail},
then:function(r){return _.G(_.vw,{data:r,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"na");_.vxn=_.dG(function(g){var r=g.data;var E=g.lockupExperiments;g={};return _.G("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.G("div",{class:_.QY("ytThumbnailOverlayButtonViewModelButton",(g.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var B;return E&&((B=E())==null?void 0:B.useLegacySizedIconButton)},g))},_.G(_.Af,{data:function(){return r().overlayButton}},{buttonViewModel:function(B){return _.G(_.MV,{data:B.data,
buttonOverrides:function(){var w;return E&&((w=E())==null?0:w.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"oa");
_.vxn.idomCompat=!0;var dxz=_.dG(function(g){return _.G("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.HK(function(r){r.preventDefault();return!1})},_.G(_.Af,{data:function(){return g.data().buttons}},{toggleButtonViewModel:function(r){return _.G("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.G(_.RY,{data:r.data}))}}))},"pa");
dxz.idomCompat=!0;var TQ4=_.dG(function(g){var r=function(){var E;return((E=_.n(g.data().rendererContext,_.Gi))==null?void 0:E.label)||""};
return _.G("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.G(_.p,{cond:function(){return g.data().image},
then:function(){return _.G("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.G(_.vw,{data:function(){return g.data().image},
alt:r}))}}),_.G(_.p,{cond:function(){return g.data().text},
then:function(){return _.G("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return g.data().text})}}))},"qa");_.iI=_.dG(function(g){var r=[],E=function(){var H,R;return Npl((H=g.width)==null?void 0:H.call(g),(R=g.height)==null?void 0:R.call(g))},B=_.rM().resolve(_.gM(ZG6)),w=_.VI("yt-thumbnail-view-model",function(){r.push("elRef.value set");
var H;(H=g.playbackRef)==null||H.call(g,{thumbnailElRef:w,thumbnail:g.data().image,thumbnailOverlays:g.data().overlays,thumbnailSize:E()})});
_.Jk(function(){r.push("onInit");_.J5(function(){r.push("onCleanup")})});
var O=_.Ch(fFo),M=function(){var H,R;return(R=(H=g.aspectRatio)==null?void 0:H.call(g))!=null?R:0},u=function(){return(g.data().image?_.GqP(g.data().image):M())<=1&&M()===0},l=function(){return u()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},Q=function(){w.value||_.el(new _.Rj("Thumbnail elRef.value is null",r.join("\n")));
B&&w.value&&B(w.value)},z=function(){var H,R;
return((H=g.hovered)==null?void 0:H.call(g))&&E()!=="large"&&((R=g.data().overlays)==null?void 0:R.some(function(A){return _.n(A,L5n)}))},k={};
return _.G("yt-thumbnail-view-model",{class:_.QY("yt-thumbnail-view-model",g.className,function(){return AzA(M())},function(){var H,R;
a:{var A=E(),J=(H=g.disableRounding)==null?void 0:H.call(g);H=(R=g.isClip)==null?void 0:R.call(g);if(!J&&!H)switch(A){case "large":R="yt-thumbnail-view-model--large";break a;case "small":R="yt-thumbnail-view-model--small";break a;default:R="yt-thumbnail-view-model--medium";break a}R=void 0}return R},(k["yt-thumbnail-view-model--cinematic"]=u,k)),
style:_.Rl({"background-color":function(){var H,R=u()?(H=g.data().backgroundColor)==null?void 0:H.lightTheme:void 0;return R?N8(R,"1"):void 0}}),
el:w},_.G(_.p,{cond:u,then:function(){return _.G("div",{class:"yt-thumbnail-view-model__blurred-image"},_.G(_.vw,{data:function(){return g.data().image},
alt:"",contentMode:l,targetWidth:g.width,onload:Q}))}}),_.G("div",{class:"yt-thumbnail-view-model__image"},_.G(_.vw,{data:function(){return g.data().image},
alt:"",contentMode:l,targetWidth:g.width,onload:Q}),null),_.G(_.Af,{data:function(){return z()?void 0:g.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:UxT,thumbnailOverlayBadgeViewModel:function(H){return _.G(MZI,{data:H.data,thumbnailSize:E,isClip:g.isClip})},
thumbnailBottomOverlayViewModel:function(H){return _.G(BQw,{data:H.data,thumbnailSize:E,isClip:g.isClip})},
thumbnailOverlayFullViewModel:TQ4,thumbnailOverlayButtonViewModel:function(H){return _.G(_.vxn,{data:H.data,lockupExperiments:g.lockupExperiments})}}),_.G(_.Af,{data:function(){var H;
return((H=g.hovered)==null?0:H.call(g))?g.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(H){return _.G(nO,{data:H.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:dxz}),_.G(_.Af,{data:function(){var H;return((H=g.hovered)==null?0:H.call(g))&&O()?g.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:yzD}),_.G(_.p,{cond:g.isClip,then:function(){return _.G("div",{class:"yt-pinking"},_.G("svg",{class:"yt-pinking__pinking-left"},_.G("defs",null,_.G("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.G("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.G("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.G("svg",{class:"yt-pinking__pinking-right"},_.G("defs",null,_.G("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.G("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.G("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"ra");
_.iI.idomCompat={callbacks:{playbackRef:!0}};var gsn=_.dG(function(g){var r=_.U(_.Dk(-1,void 0,"IOLZ0b")),E=r.next().value,B=r.next().value;_.Jk(function(){var w=new iGT(B);hlD(w,g.data().thumbnails.length);_.J5(function(){if(w.isSlideshowPlaying){w.isSlideshowPlaying=!1;for(var O=w.jobIds,M=0,u=O.length;M<u;M++)_.F6.cancelJob(O[M]);w.jobIds.length=0}})});
return _.G("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.G(_.Af,{data:function(){return g.data().thumbnails}},{thumbnailViewModel:function(w,O){return _.G("div",{class:function(){var M=!g.data().primaryThumbnail,u=O(),l=E(),Q=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
M&&u===0&&Q.push("yt-collection-thumbnail-slideshow--first-slide");u<=l&&Q.push("yt-collection-thumbnail-slideshow--show-slide");return Q.join(" ")}},_.G(_.iI,{data:w.data,
disableRounding:g.disableRounding}))}}))},"sa");
gsn.idomCompat=!0;var bGX=new _.Vn("DWELL_DETECTOR_REGISTRY_TOKEN");var Es6=_.dG(function(g){var r=JzX(g.triggeringElement),E=function(){return!!g.data().primaryThumbnail};
return _.G("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.G(rbz,{stackEnabled:E,thumbnailSize:function(){var B,w;return Npl((B=g.width)==null?void 0:B.call(g),(w=g.height)==null?void 0:w.call(g))},
doubleStack:g.doubleStack,stackColor:function(){return g.data().stackColor}},_.G("div",null,_.G(_.Af,{data:function(){return g.data().primaryThumbnail}},{thumbnailViewModel:function(B){var w={};
return _.G(_.iI,{data:B.data,width:g.width,height:g.height,aspectRatio:g.aspectRatio,disableRounding:g.disableRounding,className:_.QY((w["yt-collection-thumbnail-view-model--has-stacks"]=E,w)),hovered:g.hovered,playbackRef:g.playbackRef})}}),_.G(_.p,{cond:function(){var B;
return r()&&((B=g.data().thumbnails)==null?void 0:B.length)},
then:function(){return _.G("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.G(gsn,{data:g.data,disableRounding:function(){return!E()}}))}}))))},"ta");
Es6.idomCompat={callbacks:{playbackRef:!0}};
var rbz=_.dG(function(g){var r=g.children;var E=g.stackEnabled;var B=g.thumbnailSize;var w=g.doubleStack;var O=g.stackColor;var M,u=(M=_.rM().resolve(_.gM(_.Vy)))==null?void 0:M();return _.G(_.p,{cond:E,then:function(){return _.G(Fd6,{data:function(){var l,Q;return{experimentEnabled:!0,thumbnailSize:B(),doubleStack:w==null?void 0:w(),color:u?O==null?void 0:(l=O())==null?void 0:l.darkTheme:O==null?void 0:(Q=O())==null?void 0:Q.lightTheme,enableResponsiveMode:!1}}},r)},
else:function(){return r}})},"ua");var BPn=new _.Vn("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var Ve;_.LO={calledOnce:!0,state:"visible"};Ve={calledOnce:!0,state:"hidden"};_.hK=_.dG(function(g){var r=g.data;var E=g.customCommandResolver;var B=g.className;var w=g.delayedClassName;var O=g.animationEntityKey;var M=g.isCompactWidth;var u=_.VI("ad-button-view-model"),l=_.Zo(O,""),Q=_.QU(F2J,l),z=function(){var uB,zS;return(zS=(uB=Q())==null?void 0:uB.value)!=null?zS:!1},k=function(){_.hC(_.za("booleanEntity",l(),{key:l(),
value:!0}));Z=void 0};
g=_.U(_.Y3(z));var H=g.next().value,R=g.next().value;g=_.U(_.Y3(z));var A=g.next().value,J=g.next().value;g=_.U(_.Y3(function(){var uB;return z()?(uB=r().styleTransitionConfig)==null?void 0:uB.destinationStyle:void 0}));
var e=g.next().value,C=g.next().value,X=function(){var uB=Object.assign({},r(),e()&&{style:e()}),zS,jV,PJ=uB.label,At=(zS=uB.interaction)==null?void 0:(jV=zS.accessibility)==null?void 0:jV.label;zS=uB.iconImage?uB.label&&uB.label.content?uB.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:PJ,accessibilityLabel:At,style:ell(uB.style),type:WkL(uB.style),state:"active",size:Fkl(uB.size),iconPosition:zS,disabled:!1,aTagConfig:tZP(uB,E)}},Z;
_.gH(u,{visibilityCallback:function(uB){var zS,jV=(zS=r().interaction)==null?void 0:zS.onFirstVisible;uB&&jV&&_.I3(jV)},
showOption:_.LO});var c=function(){return sB(X(),!!r().iconImage)};
g={};B=_.QY(function(){return"ytwAdButtonViewModelHost"},function(){return r().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var uB=!!r().delayedAppearanceConfig,zS=H();
return uB?zS?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var uB=!!r().delayedAppearanceConfig,zS=A();
return uB?zS?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!r().delayedAppearanceConfig||H()?w==null?void 0:w():""},(g.ytwAdButtonViewModelHostCompactWidth=function(){return M==null?void 0:M()},g),B!=null?B:"");
var h=function(){var uB,zS=(uB=r().delayedAppearanceConfig)==null?void 0:uB.delayedInvisibleSeconds;zS&&(Z=_.pm(_.F6,function(){R(!0);y()},zS*1E3))},y=function(){var uB,zS=(uB=r().delayedAppearanceConfig)==null?void 0:uB.delayedVisibleSeconds;
zS&&(Z=_.pm(_.F6,function(){J(!0);OD()},zS*1E3))},OD=function(){var uB,zS=(uB=r().styleTransitionConfig)==null?void 0:uB.styleTransitionSeconds,jV,PJ=(jV=r().styleTransitionConfig)==null?void 0:jV.destinationStyle;
zS&&PJ?Z=_.pm(_.F6,function(){C(PJ);k()},zS*1E3):k()};
_.Jk(function(){var uB;((uB=r().delayedAppearanceConfig)==null?0:uB.transitionDurationSeconds)&&u.value.style.setProperty("transition-duration",r().delayedAppearanceConfig.transitionDurationSeconds+"s");h()});
_.J5(function(){Z&&_.F6.cancelJob(Z)});
return _.G("ad-button-view-model",{class:B,el:u},_.G(_.p,{cond:X,then:function(){return _.G(ZB,{data:X,icon:function(){return _.G(_.p,{cond:function(){return r().iconImage},
then:function(uB){return _.G(_.vw,{data:uB,alt:"",targetWidth:c,targetHeight:c,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"va");var wl4=_.dG(function(g){var r=g.data;g=_.VI("ad-button-group-view-model");_.gH(g,{visibilityCallback:function(B){var w,O=(w=r().interaction)==null?void 0:w.onFirstVisible;B&&O&&_.I3(O)},
showOption:_.LO});var E={};return _.G("ad-button-group-view-model",{class:_.QY("ytwAdButtonGroupViewModelHost",(E.ytwAdButtonGroupViewModelHostCompactWidth=function(){return r().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"},E)),
el:g},_.G("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.G(_.Af,{data:function(){return r().secondaryAdButton}},{adButtonViewModel:function(B){return _.G(_.hK,{data:B.data})}})),_.G("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.G(_.Af,{data:function(){return r().primaryAdButton}},{adButtonViewModel:function(B){return _.G(_.hK,{data:B.data})}})))},"wa");var SJ6=_.dG(function(g){var r=function(){var E;return((E=g.data())==null?void 0:E.answers)||[]};
return _.G("yt-survey-icons",{class:"ytSurveyIconsHost"},_.G("div",{class:"ytSurveyIconsHeader"},_.G("div",{class:"ytSurveyIconsTitle"},function(){var E;return(E=g.data())==null?void 0:E.text}),_.G("div",null,_.G(ZB,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var E;(E=g.onDismiss)==null||E.call(g)}}},
iconName:"DISMISSAL"}))),_.G("div",null,_.G("div",{class:"ytSurveyIconsAnswers"},_.G(_.Ra,{each:function(){return r()},
keyBy:"INDEX"},function(E,B){return _.G("div",null,_.G(ZB,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var w;(w=g.onSelect)==null||w.call(g,E(),B)}}},
icon:function(){return _.G(_.nh,{icon:function(){var w,O;return(w=E())==null?void 0:(O=w.icon)==null?void 0:O.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.G("div",{class:"ytSurveyIconsAnswersText"},_.G("div",null,function(){return r().length?r()[0].text:""}),_.G("div",null,function(){return r().length?r()[r().length-1].text:""}))))},"xa");var ObI=_.dG(function(g){var r=_.T$(_.xo(function(){var l;return(l=g.data())==null?void 0:l.rendererContext},void 0,void 0,void 0,!0)),E=_.U(_.Dk(!1,void 0,"YxWRNc")),B=E.next().value,w=E.next().value,O=_.QU(YEl,function(){var l;
return(l=g.data().keys)==null?void 0:l.surveyEntityKey}),M=_.QU(R_P,function(){var l;
return(l=g.data().keys)==null?void 0:l.surveyStateEntityKey});
_.LC("ytd-slimline-survey-show-action",function(){w(!1)});
var u=function(){var l,Q;var z=(l=M())==null?void 0:(Q=l.questionStack)==null?void 0:Q[0];if(z!==void 0){var k,H;return(k=O())==null?void 0:(H=k.questions)==null?void 0:H[z]}};
E={};return _.G("yt-slimline-survey-view-model",{el:r,class:_.QY("ytSlimlineSurveyViewModelHost",(E.ytSlimlineSurveyViewModelCollapsed=function(){return B()},E))},_.G("div",{class:"ytSlimlineSurveyViewModelContainer"},_.G(_.p,{cond:function(){var l;
return((l=u())==null?void 0:l.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.G(SJ6,{data:function(){return u()},
onSelect:function(l,Q){var z,k;return _.q(function(H){w(!0);if(k=(z=g.data())==null?void 0:z.onSelectRating)_.I3(k),_.hC(Qhw(Q));_.Q3(H)})},
onDismiss:function(){w(!0);var l;var Q=(l=O())==null?void 0:l.dismissalFeedbackToken;l=Q?{feedbackEndpoint:{feedbackToken:Q}}:void 0;l&&_.a3(l,{form:{element:r.value}})}})}})))},"ya");var ULb=_.dG(function(g){return _.G("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.G(_.Af,{data:function(){var r;return(r=g.data())==null?void 0:r.attachments}},{flexibleActionsViewModel:function(r){return _.G("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.G(h2n,{data:r.data,
layout:function(){var E;return((E=g.lockupStyle())==null?void 0:E.arrangement)===1?0:1},
justifyContentOverride:function(){var E;return((E=g.lockupStyle())==null?void 0:E.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(r){return _.G("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.G(ObI,{data:r.data}))},
expandableMetadataViewModel:function(r){r=r.data;var E;return _.G("div",{class:_.QY("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(E=_.rM().resolve(_.gM(BPn)))==null?void 0:E({data:r}))},
adButtonGroupViewModel:function(r){return _.G("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.G(wl4,{data:r.data}))},
adButtonViewModel:function(r){return _.G("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.G(_.hK,{data:r.data,isCompactWidth:!0}))}}))},"za");var NQt=_.wM("rich_grid_min_item_width",310),aFS=_.wM("rich_grid_max_item_width",500);var MXn=_.dG(function(g){var r=g.data;return _.G("br-nz-badge-shape",{class:_.QY(function(){return ZGJ(r().brNzRatingBadgeType)}),
role:function(){return r().accessibilityText?"img":void 0},
"aria-label":function(){return r().accessibilityText}},function(){var E;
return(E=r())==null?void 0:E.text})},"Aa");_.ZL=_.dG(function(g){var r=function(){var E=g.data(),B,w;if(E){var O=!((B=g.workaroundShortsIsThumbnailBadge)==null||!B.call(g));B=(w=g.modern)==null?void 0:w.call(g);a:switch(E.badgeStyle){case "BADGE_OVERLAY":w=!0;break a;default:w=!1}E={type:O?16:yzS(E.badgeStyle),brNzRatingBadgeType:vxB(E.badgeStyle),text:E.badgeText,icon:E.iconName,isOverlay:w,modern:B||_.Y("web_modern_badge_view_model"),accessibilityText:E.accessibilityLabel}}else E=void 0;return E};
return _.G("yt-badge-view-model",{class:_.QY("yt-badge-view-model-wiz",g.class)},_.G(_.fa,null,_.G(_.na,{when:function(){var E;return!((E=r())==null||!E.brNzRatingBadgeType)}},function(){return _.G(MXn,{data:function(){return r()}})}),_.G(_.na,{when:function(){return!!r()&&!r().brNzRatingBadgeType}},function(){return _.G(_.AH,{data:function(){return r()}})})))},"Ba");
_.ZL.idomCompat=!0;var TQP,dxo;TQP=16/9;dxo=2/3;_.ye=_.dG(function(g){var r=g.data;var E=g.className;var B=g.imageSizeConfig;var w=g.notifyOnLoaded;var O=function(){return r().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},M=function(){var H;
return _.Km((H=r())==null?void 0:H.rendererContext)};
g={};g=(g["yt-content-preview-image-view-model-wiz"]=!0,g["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return O()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},g["yt-content-preview-image-view-model-wiz--tappable"]=function(){return M()},g);
var u=function(){var H,R;return(R=(H=_.n(r().rendererContext,_.Gi))==null?void 0:H.label)!=null?R:""},l=function(){return rbo(r())},Q=function(){var H=gsA(O(),r().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",B==null?void 0:B(),EsJ(l()),r().layoutWidth,r().layoutHeight),R=Object.assign({},H);
H.width&&(R.width=Math.round(H.width));H.height&&(R.height=Math.round(H.height));H.maxWidth&&(R.maxWidth=Math.round(H.maxWidth));H.maxHeight&&(R.maxHeight=Math.round(H.maxHeight));return R},z=_.kB(function(){return Q().height},void 0,"Cn10Ce"),k=_.kB(function(){return Q().width},void 0,"laoove");
return _.G("yt-content-preview-image-view-model",{el:_.T$(_.xo(function(){var H;return(H=r())==null?void 0:H.rendererContext})),
role:function(){return M()?"link":void 0},
tabindex:function(){return M()?0:void 0},
class:_.QY(E,g,function(){var H=O();var R=B==null?void 0:B();H=H==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||H==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||H==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||H==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(R==null?void 0:R.size)!=null&&R.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(R==null?void 0:R.size)!=null&&R.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return H}),
style:function(){var H=Q(),R=[];H.width&&R.push("width: "+H.width+"px");H.height&&R.push("height: "+H.height+"px");H.maxWidth&&R.push("max-width: "+H.maxWidth+"px");H.maxHeight&&R.push("max-height: "+H.maxHeight+"px");H.fullWidth&&R.push("width: 100%");return R.join(";")}},_.G(_.p,{cond:l,
then:function(H){return _.G(_.vw,{data:H,alt:u,"data-disabled$":function(){return!u()},
notifyOnLoaded:w,targetWidth:k,targetHeight:z,preserveWidth:function(){return!!k()},
preserveHeight:function(){return!!z()}})}}),_.G(_.Af,{data:function(){var H;
return(H=r())==null?void 0:H.overlays}},{thumbnailHoverOverlayViewModel:nO,
thumbnailOverlayButtonViewModel:_.vxn}))},"Ca");
_.ye.idomCompat=!0;var uqw=_.dG(function(g){var r=g.data;var E=g.className;var B=g.useSmallLayout;g=g.useMediumText;var w={};g=(w["yt-attribution-view-model-wiz"]=!0,w["yt-attribution-view-model-wiz--medium-text"]=g,w);return _.G("yt-attribution-view-model",{el:_.T$(_.xo(function(){var O;return(O=r())==null?void 0:O.rendererContext})),
class:_.QY(E,g)},_.G(_.p,{cond:function(){return _.Km(r().rendererContext)},
then:function(){return _.G("button",{class:"yt-attribution-view-model-wiz--tappable"},_.G(qJb,{data:r,useSmallLayout:B}))},
else:function(){return _.G(qJb,{data:r,useSmallLayout:B})}}))},"Da"),qJb=_.dG(function(g){var r=g.data;
var E=g.useSmallLayout;var B=function(){return{size:(E==null?0:E())?16:24}};
return _.G(_.wW,null,_.G(_.Af,{data:function(){return r().contentPreviewImage}},{contentPreviewImageViewModel:function(w){return _.G(_.ye,{data:w.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:B})}}),_.G(_.Af,{data:function(){return r().badge}},{badgeViewModel:function(w){return _.G(_.ZL,{data:w.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.G(_.p,{cond:function(){return r().text},
then:function(){return _.G(_.hf,{text:function(){return r().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.G(_.p,{cond:function(){return r().suffix},
then:function(){return _.G(_.hf,{text:function(){return r().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"Ea");
uqw.idomCompat=!0;var lvw,DLD,osD,Gcm,Qgz;lvw=_.dG(function(g){var r=g.delimiter;var E=g.max;var B=g.index;var w=g.isStandalone;return _.G(_.p,{cond:function(){return E()-1>B()},
then:function(){var O={};return _.G("span",{class:_.QY("yt-content-metadata-view-model-wiz__delimiter",(O["yt-content-metadata-view-model-wiz__delimiter--standalone"]=w,O)),"aria-hidden":!0},r)}})},"Fa");
DLD=_.dG(function(g){var r=g.metadataPart;var E=g.maxLines;return _.G(_.hf,{text:function(){return r().text},
linkInheritColor:!0,className:function(){return BPA(E())},
userInput:!0})},"Ga");
osD=_.dG(function(g){var r=g.metadataPart;var E=g.maxLines;return _.G(_.p,{cond:function(){return r().tooltip},
then:function(B){return _.G("span",{title:B,role:"tooltip"},_.G(DLD,{metadataPart:r,maxLines:E}))},
else:function(){return _.G(DLD,{metadataPart:r,maxLines:E})}})},"Ha");
Gcm=_.dG(function(g){var r=g.metadataPart;var E=g.isOverlay;var B=g.useMediumText;var w=g.hideAvatar;var O=function(){return r().maxLines!==void 0?r().maxLines:1};
return _.G(_.wW,null,_.G(_.Af,{data:function(){return r().avatarStack}},{avatarStackViewModel:function(M){return _.G(_.$1,{data:M.data,
isOverlay:E,useMediumText:B,hideAvatar:w})},
badgeViewModel:_.ZL}),_.G(_.p,{cond:function(){return r().leadingIcon},
then:function(M){return _.G(_.nh,{className:"yt-content-metadata-view-model-wiz__leading-icon",icon:function(){return M().name},
size:function(){return M().width}})}}),_.G(_.p,{cond:function(){return r().text},
then:function(){return _.G(osD,{metadataPart:r,maxLines:O})}}),_.G(_.p,{cond:function(){return r().icon},
then:function(M){return _.G(_.nh,{className:"yt-content-metadata-view-model-wiz__icon",icon:function(){return M().name},
size:function(){return M().width}})}}))},"Ia");
Qgz=_.dG(function(g){var r=g.metadataRow;var E=g.isInline;var B=g.delimiter;var w=g.isOverlay;var O=g.useMediumText;var M=g.extensions;var u=function(){var Q,z=M==null?void 0:(Q=M())==null?void 0:Q.lockupMetadata;Q=r();var k,H;return!!((z==null?0:(k=z.byline)==null?0:k.hideAvatar)&&((H=_.n(Q,xCn))==null?void 0:H.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},l=function(){return r().metadataParts||[]};
g={};return _.G("div",{class:_.QY("yt-content-metadata-view-model-wiz__metadata-row",(g["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=E,g["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var Q,z=M==null?void 0:(Q=M())==null?void 0:Q.lockupMetadata;Q=r();var k,H;return!!((z==null?0:(k=z.byline)==null?0:k.addPadding)&&((H=_.n(Q,xCn))==null?void 0:H.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},g["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
function(){var Q;
return!!(M==null?0:(Q=M())==null?0:Q.lockupMetadata)&&r().badges&&!r().metadataParts},g))},_.G(_.Af,{data:function(){return r().badges}},{badgeViewModel:function(Q){return _.G("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.G(_.ZL,{data:Q.data}))}}),_.G(_.Ra,{each:l},function(Q,z){return _.G(_.wW,null,_.G(Gcm,{metadataPart:Q,
isOverlay:w,useMediumText:O,hideAvatar:u}),_.G(lvw,{delimiter:B,max:function(){return l().length},
index:z,isStandalone:!1}))}),_.G(_.p,{cond:function(){return r().isSpacerRow&&!E()},
then:function(){return _.G("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ja");
_.v4=_.dG(function(g){g=_.y7(g,{layout:0,isOverlay:!1});var r=g.data,E=g.layout,B=g.isOverlay,w=g.useMediumText,O=g.extensions,M=function(){return E()===0},u=function(){var Q;
return((Q=r().metadataRows)==null?void 0:Q.filter(function(z){var k,H=O==null?void 0:(k=O())==null?void 0:k.lockupMetadata,R,A;k=!!((H==null?0:(R=H.description)==null?0:R.hideDescription)&&((A=_.n(z,xCn))==null?void 0:A.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var J,e;return!((H==null?0:(J=H.spacer)==null?0:J.hideSpacer)&&((e=_.n(z,xCn))==null?void 0:e.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||k)}))||[]},l={};
return _.G("yt-content-metadata-view-model",{class:_.QY(g.className,"yt-content-metadata-view-model-wiz",(l["yt-content-metadata-view-model-wiz--inline"]=M,l["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.Km(r().rendererContext)},l["yt-content-metadata-view-model-wiz--medium-text"]=w,l)),
el:_.T$(_.xo(function(){return r().rendererContext}))},_.G(_.Ra,{each:u},function(Q,z){return _.G(_.wW,null,_.G(Qgz,{metadataRow:Q,
isInline:M,delimiter:function(){return r().delimiter},
isOverlay:B,useMediumText:w,extensions:O}),_.G(_.p,{cond:function(){return M()&&!Q.isSpacerRow},
then:function(){return _.G(lvw,{delimiter:function(){return r().delimiter},
max:function(){return u().length},
index:z,isStandalone:!0})}}))}))},"Ka");
_.v4.idomCompat=!0;var zen=_.dG(function(g){var r={};return _.G("yt-lockup-metadata-view-model",{class:_.QY("yt-lockup-metadata-view-model-wiz",function(){a:{var E=g.lockupStyle();if(E==null?0:E.isOverlay)E="yt-lockup-metadata-view-model-wiz--overlay";else switch(E==null?void 0:E.arrangement){case 1:E="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:E="yt-lockup-metadata-view-model-wiz--vertical"}}return E},function(){a:{var E=g.lockupStyle();
if(E==null?0:E.isTiny)E="yt-lockup-metadata-view-model-wiz--tiny";else switch(E==null?void 0:E.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":E="yt-lockup-metadata-view-model-wiz--compact";break a;default:E="yt-lockup-metadata-view-model-wiz--standard"}}return E},(r["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var E;
return(E=g.lockupStyle())==null?void 0:E.isOverlay},r["yt-lockup-metadata-view-model-wiz--card"]=function(){var E;
return(E=g.lockupStyle())==null?void 0:E.isCard},r["yt-lockup-metadata-view-model-wiz--centered"]=function(){var E;
return(E=g.lockupStyle())==null?void 0:E.isCentered},r["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var E;
return(E=g.lockupStyle())==null?void 0:E.typographyBump},r["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var E;
return(E=g.lockupStyle())==null?void 0:E.useLegacyTypography},r["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var E;
return(E=g.lockupStyle())==null?void 0:E.useRichGridLegacyTypography},r))},_.G(_.Af,{data:function(){return g.data().image}},{avatarStackViewModel:function(E){return _.G("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.G(_.$1,{data:E.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(E){return _.G("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.G(_.sV,{data:E.data}))},
decoratedAvatarViewModel:function(E){return _.G("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.G(_.fO,{data:E.data}))}}),_.G("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.G("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var E;return(E=g.data().title)==null?void 0:E.content}},_.G(_.p,{cond:function(){return g.data().title},
then:function(E){return _.G(_.NQ,{command:g.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:g.lockupAccessibilityLabel},_.G(_.hf,{text:E}))}})),_.G("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.G(_.Af,{data:function(){return g.data().metadata}},{contentMetadataViewModel:function(E){return _.G(_.v4,{data:E.data,
layout:1,useMediumText:function(){var B,w;return((B=g.lockupStyle())==null?void 0:B.typographyBump)||((w=g.lockupStyle())==null?void 0:w.useRichGridLegacyTypography)},
extensions:function(){var B,w,O,M;return{lockupMetadata:{byline:{hideAvatar:((B=g.lockupStyle())==null?void 0:B.arrangement)===0,addPadding:((w=g.lockupStyle())==null?void 0:w.arrangement)===1},description:{hideDescription:!((O=g.lockupStyle())==null||!O.compactMetadata)},spacer:{hideSpacer:!((M=g.lockupStyle())==null||!M.compactMetadata)}}}}})}})),_.G(_.Af,{data:function(){return g.data().attribution}},{attributionViewModel:function(E){return _.G("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},
_.G(uqw,{data:E.data,
useSmallLayout:!0}))}})),_.G("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.G(_.Af,{data:function(){return g.data().menuButton}},{buttonViewModel:function(E){return _.G(_.MV,{data:E.data,
buttonOverrides:function(){var B;return((B=g.lockupStyle())==null?0:B.isOverlay)?{style:"overlay"}:void 0}})}})))},"La");
zen.idomCompat=!0;var kcZ=_.dG(function(g){var r=_.VI("notification-multi-action-renderer");_.jS(function(){requestAnimationFrame(function(){_.ZH(r.value)})});
var E={},B={},w={};return _.G("notification-multi-action-renderer",{class:_.QY("ytNotificationMultiActionRendererHost",(E.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var O;return(O=g.useLegacyShelfStyle)==null?void 0:O.call(g)},E)),
el:r},_.G("span",{"aria-live":"polite",class:_.QY("ytNotificationMultiActionRendererTextContainer",(B.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var O;return(O=g.useLegacyShelfStyle)==null?void 0:O.call(g)},B))},_.G(_.hf,{text:function(){return g.data().responseText}})),_.G("div",{class:_.QY("ytNotificationMultiActionRendererButtonContainer",(w.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var O;
return(O=g.useLegacyShelfStyle)==null?void 0:O.call(g)},w))},_.G(_.Af,{data:function(){var O;
return(O=g.data().buttons)==null?void 0:O.map(function(M){if(M=M.buttonRenderer){var u,l=Object,Q=l.assign,z=(u=M.icon)==null?void 0:u.iconType;u=(u=M.command||M.serviceEndpoint||M.navigationEndpoint)?{innertubeCommand:u}:void 0;M={buttonViewModel:Q.call(l,{},{iconName:z,onTap:u,trackingParams:M.trackingParams,titleFormatted:M.text?_.e_(M.text):void 0},wlP(M))}}else M=void 0;return M}).filter(function(M){return!!M})}},{buttonViewModel:function(O,M){return _.G("div",null,_.G(_.MV,{data:O.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var u;return((u=g.useModernStyles)==null?0:u.call(g))?{type:M()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ma");var Hbn=_.dG(function(g){var r=_.VI("notification-text-renderer");_.jS(function(){requestAnimationFrame(function(){_.ZH(r.value)})});
return _.G("notification-text-renderer",{el:r,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.G(_.hf,{text:function(){return g.data().successResponseText}}))},"Na");_.d$=_.dG(function(g){var r=_.QU(xiP,function(){var B;return SJJ((B=g.contentId)==null?void 0:B.call(g))}),E=function(){var B;
return _.n((B=r())==null?void 0:B.command,_.zi)};
return _.G(_.p,{cond:function(){var B;if(!(B=E())){var w;B=_.n((w=r())==null?void 0:w.command,eHZ)}return B},
then:function(){return _.G(_.p,{cond:E,then:function(){var B={};return _.G("div",{class:_.QY("ytDismissibleItemReplacedContent",function(){var w;return ObQ((w=g.aspectRatio)==null?void 0:w.call(g))})},_.G("div",{class:_.QY((B.ytDismissibleItemAspectRatioContainer=function(){var w;
return((w=g.aspectRatio)==null?void 0:w.call(g))!==void 0},B))},_.G(_.Af,{data:function(){var w;
return(w=E())==null?void 0:w.item}},{notificationMultiActionRenderer:function(w){return _.G(kcZ,{data:w.data,
useModernStyles:g.useModernStyle,useLegacyShelfStyle:g.useLegacyShelfStyle})},
notificationTextRenderer:Hbn})))}})},
else:g.children})},"Oa");_.plz=_.dG(function(g){var r=g.data;var E=g.customCommandResolver;g=_.hn("ad-avatar-view-model");var B=function(){var O;return((O=r().interaction)==null?0:O.onTap)?function(M){var u;Prt(M,(u=r().interaction)==null?void 0:u.onTap,E)}:void 0},w=function(){var O,M=r(),u=B(),l=(O=_.n(r().rendererContext,_.Gi))==null?void 0:O.label;
a:switch(M.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":O=1;break a;default:O=0}return{size:qJc(M.size),type:O,onTap:u,accessibilityText:l}};
_.gH(g,{visibilityCallback:function(O){var M,u=(M=r().interaction)==null?void 0:M.onFirstVisible;O&&u&&_.I3(u)},
showOption:_.LO});return _.G("ad-avatar-view-model",{class:function(){var O;return((O=r().interaction)==null?0:O.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:g},_.G(_.p,{cond:function(){return r().image},
then:function(O){return _.G(OGn,{data:w,image:O})}}))},"Pa");_.TV=_.dG(function(g){g=_.y7(g,{hasDot:!1});var r=Object.assign({},g),E=g.data,B=g.hasDot;g=g.customCommandResolver;var w=(delete r.data,delete r.hasDot,delete r.customCommandResolver,r);r=function(){return E().style};
r!==void 0&&r!==null||_.NX(Error("Jh"));r=_.VI("ad-badge-view-model");_.mz(r,function(){return E().interaction},g);
return _.G("ad-badge-view-model",{class:_.QY(function(){var O;return((O=E().interaction)==null?0:O.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var O=w.adRenderingContextType();
E();return O==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:r},_.G(_.AH,{data:function(){var O;E();return{type:2,text:(O=E().label)==null?void 0:O.content,adsIncludeDot:B(),isOverlay:E().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Qa");var YJD;_.gR=_.dG(function(g){var r=g.data;var E=g.customCommandResolver;var B=g.adRenderingContextType;g=_.VI("ad-details-line-view-model");_.mz(g,function(){return r().interaction},E);
_.gH(g,{visibilityCallback:function(w){var O,M=(O=r().interaction)==null?void 0:O.onFirstVisible;w&&M&&_.I3(M)},
showOption:_.LO});return _.G("ad-details-line-view-model",{class:function(){var w;return((w=r().interaction)==null?0:w.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:g},_.G(_.p,{cond:function(){return r().style},
then:function(w){return _.G(_.Ra,{each:function(){var O;return((O=r())==null?void 0:O.attributes)||[]},
keyBy:"INDEX"},function(O){return _.G(YJD,{attribute:O,style:w,adRenderingContextType:function(){return B()}})})}}))},"Ra");
YJD=_.dG(function(g){var r=g.attribute;var E=g.style;var B=g.adRenderingContextType;return _.G(_.p,{cond:function(){return r().text},
then:function(w){return _.G(_.hf,{text:w,className:function(){var O=B();E();return O==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Sa");var ReZ=_.dG(function(g){var r=g.data;var E=g.typographyBump;var B=function(){return r().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
g={};return _.G(_.wW,null,_.G("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.G(_.hf,{text:function(){return r().headline},
className:_.QY("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(g.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return B==null?void 0:B()},g.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(E==null?void 0:E())&&!(B==null?0:B())},g)),
linkInheritColor:!0}),_.G(_.p,{cond:function(){return r().description},
then:function(w){var O={};return _.G(_.hf,{text:w,className:_.QY("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(O.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return B==null?void 0:B()},O.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(E==null?void 0:E())&&!(B==null?0:B())},O)),
linkInheritColor:!0})}}),_.G(_.p,{cond:function(){return r().secondaryDescription},
then:function(w){var O={};return _.G(_.hf,{text:w,className:_.QY("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(O.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return E==null?void 0:E()},O)),
linkInheritColor:!0})}}),_.G("div",{class:function(){return B()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.G(_.p,{cond:function(){return r().adAvatar},
then:function(){return _.G("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.G(_.Af,{data:function(){return r().adAvatar}},{adAvatarViewModel:_.plz}))}}),_.G(_.Af,{data:function(){return r().adBadge}},{adBadgeViewModel:function(w){return _.G(_.TV,{data:w.data,
hasDot:function(){return!!r().adDetailsLine},
adRenderingContextType:function(){return r().adRenderingContextType}})}}),_.G(_.Af,{data:function(){return r().adDetailsLine}},{adDetailsLineViewModel:function(w){return _.G(_.gR,{data:w.data,
adRenderingContextType:function(){return r().adRenderingContextType}})}}))),_.G("div",{class:function(){return B()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.G(_.Af,{data:function(){return r().menu}},{buttonViewModel:function(w){return _.G(_.MV,{data:w.data,
buttonOverrides:function(){a:switch(r().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var O="S";break a;default:O="M"}return{size:O}}})}})))},"Ta"),nsD=_.dG(function(g){var r=g.data;
var E=g.noBottomMargin;var B=g.useVideoLockupTopPadding;var w=g.typographyBump;g={};g=_.QY("ytwFeedAdMetadataViewModelHostMetadata",(g.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return E==null?void 0:E()},g.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return B==null?void 0:B()},g));
var O=function(){return r().adBadge};
O!==void 0&&O!==null||_.NX(Error("Kh"));O={};var M={};return _.G(_.wW,null,_.G(_.p,{cond:function(){return r().adAvatar},
then:function(){return _.G("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.G(_.Af,{data:function(){return r().adAvatar}},{adAvatarViewModel:function(u){return _.G(_.plz,{data:u.data})}}))}}),_.G("div",{class:g},_.G("div",{class:_.QY("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(O.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return w==null?void 0:w()},O.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(w==
null?void 0:w())&&_.Y("web_enable_typography_bump_v2")},O))},_.G(_.hf,{text:function(){return r().headline},
linkInheritColor:!0})),_.G(_.p,{cond:function(){return r().description},
then:function(u){return _.G(_.hf,{text:u,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.G("div",{class:function(){return r().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.Y("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.G(_.Af,{data:function(){return r().adBadge}},
{adBadgeViewModel:function(u){return _.G(_.TV,{data:u.data,
hasDot:function(){return!!r().adDetailsLine},
adRenderingContextType:function(){return r().adRenderingContextType}})}}),_.G(_.Af,{data:function(){return r().adDetailsLine}},{adDetailsLineViewModel:function(u){return _.G(_.gR,{data:u.data,
adRenderingContextType:function(){return r().adRenderingContextType}})}})),_.G(_.p,{cond:function(){return r().secondaryDescription},
then:function(u){return _.G(_.hf,{text:u,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.G("div",{class:_.QY("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(M.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return B==null?void 0:B()},M))},_.G(_.Af,{data:function(){return r().menu}},{buttonViewModel:_.MV})))},"Ua"),sgw=_.dG(function(g){var r=g.data;
var E=g.noBottomMargin;var B=g.listenToTapEvent;var w=g.setTouchEndHandler;var O=g.useVideoLockupTopPadding;var M=g.typographyBump;var u=_.VI("feed-ad-metadata-view-model");_.mz(u,function(){return r().interaction},void 0,function(){return B==null?void 0:B()});
g=_.U(_.Dk(!1,void 0,"qjt0Xc"));var l=g.next().value,Q=g.next().value;g=_.HK(function(){(w==null?0:w())&&!l()&&(u.value.click(),Q(!0),setTimeout(function(){Q(!1)},100));
return!1});
_.gH(u,{visibilityCallback:function(z){var k,H=(k=r().interaction)==null?void 0:k.onFirstVisible;z&&H&&_.I3(H)},
showOption:_.LO});return _.G("feed-ad-metadata-view-model",{class:function(){var z;return((z=r().interaction)==null?0:z.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:u,"on:touchend":g},_.G(_.fa,null,_.G(_.na,{when:function(){return r().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.G(ReZ,{data:r,
typographyBump:M})}),_.G(_.na,{when:function(){return r().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.G(nsD,{data:r,
noBottomMargin:E,useVideoLockupTopPadding:O,typographyBump:M})})))},"Va");var fvD;_.rR=_.dG(function(g){return _.G("yt-lockup-view-model",{class:_.QY(g.className)},_.G(_.d$,{contentId:function(){return g.data().contentId},
useModernStyle:!0,aspectRatio:function(){var r,E;return((r=g.containerType)==null?void 0:r.call(g))!==3?VZt(g.data().contentType,(E=g.force16By9ThumbnailAspectRatio)==null?void 0:E.call(g)):void 0}},function(){return _.G(fvD,Object.assign({},g))}))},"Wa");
fvD=_.dG(function(g){g=_.y7(g,{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 r=g.data,E=g.containerLayoutConfig,B=g.containerType,w=g.sizing,O=g.protectBackground,M=g.typographyBump,u=g.force16By9ThumbnailAspectRatio,l=g.thumbnailFixedWidth,Q=g.thumbnailTargetWidth,z=g.lockupExperiments,k=g.elementsPerRow;
g=_.T$(_.xo(function(){var At;return(At=r())==null?void 0:At.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 H=_.Ch($xY),R=_.rM().resolve(_.gM(czn)),A=R?{}:void 0,J=function(){var At,XY,xc;return(xc=(XY=_.n((At=r())==null?void 0:At.rendererContext,_.Gi))==null?void 0:XY.label)!=null?xc:void 0},e=function(){var At=E==null?void 0:E(),XY;
if(At==null?0:At.containerType){var xc=(XY=r())==null?void 0:XY.contentType;XY=z();var rg=M(),$t=Q(),tD=O();At=Object.assign({},hlt(czB(At),IFD(At.responsiveSize),rg,xc,At.force16By9ThumbnailAspectRatio,$t,tD,XY),{thumbnailFixedWidth:At.contentPreviewWidth})}else At=hlt(B(),w(),M(),(xc=r())==null?void 0:xc.contentType,u(),Q(),O(),z());return At};
R&&A&&R({enabled:function(){return H()},
itemPlaybackModel:function(){return r().itemPlayback},
thumbnailElRef:function(){return A.thumbnailElRef},
containerElRef:g,options:function(){var At,XY=(At=_.n(r().metadata,acm))==null?void 0:At.endorsement;At=A.thumbnailOverlays||[];XY&&At.push(XY);var xc,rg;return{thumbnail:A.thumbnail,thumbnailOverlays:At,accessibilityText:J(),thumbnailSize:A.thumbnailSize,enableRounding:e().isCollection,containPlayerWithinThumbnail:e().isCollection,trackingParams:(xc=_.n(r().rendererContext,_.YP))==null?void 0:(rg=xc.loggingDirectives)==null?void 0:rg.trackingParams}}});
var C=0;R=_.U(_.Dk(!1,void 0,"GH4i8d"));var X=R.next().value,Z=R.next().value;R=_.U(_.Dk(!1,void 0,"hS52Ob"));var c=R.next().value,h=R.next().value;R=_.HK(function(){var At=H()&&r().itemPlayback;c()?(_.F6.cancelJob(C),C=_.F6.addJob(function(){Z(!At)},8,32)):Z(!At);
return!0});
var y=_.HK(function(){C&&(_.F6.cancelJob(C),C=0);Z(!1)});
_.J5(function(){C&&(_.F6.cancelJob(C),C=0)});
var OD=MXA(function(){h(!0)}),uB=OD.touchFeedbackEvents,zS=OD.touchFeedbackOnPointerUp,jV=OD.touchFeedbackOnPointerDown;
OD=OD.touchFeedbackOnPointerLeave;var PJ={};return _.G("div",{el:g,class:_.QY("yt-lockup-view-model-wiz",function(){a:{var At=e();if(At.isOverlay)At="yt-lockup-view-model-wiz--overlay";else switch(At.arrangement){case 1:At="yt-lockup-view-model-wiz--horizontal";break a;default:At="yt-lockup-view-model-wiz--vertical"}}return At},function(){a:{var At=e();
if(At.isOverlay)At="yt-lockup-view-model-wiz--overlay";else{switch(At.collectionStackNumber){case 1:At="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:At="yt-lockup-view-model-wiz--collection-stack-2";break a}At=void 0}}return At},(PJ["yt-lockup-view-model-wiz--card"]=function(){return e().isCard},PJ["yt-lockup-view-model-wiz--compact"]=function(){return e().isTiny||e().sizing!=="STANDARD"},PJ["yt-lockup-view-model-wiz--protect-background"]=O,PJ["yt-lockup-view-model-wiz--add-margins"]=
function(){return e().addMarginForFullbleed},PJ["yt-lockup-view-model-wiz--centered"]=function(){return e().isCentered},PJ["yt-lockup-view-model-wiz--fullbleed"]=function(){return e().fullbleed},PJ["yt-lockup-view-model-wiz--single-column-grid"]=function(){return k()===1&&B()===2},PJ["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var At;
return(At=z())==null?void 0:At.useRichGridLegacyMargin},PJ)),
"on:mousedown":jV,"on:mouseleave":y,"on:mouseup":zS,"on:mouseover":R,"on:touchstart":jV,"on:touchend":zS,"on:pointerleave":OD},_.G(_.NQ,{command:function(){var At;return _.Cm((At=r())==null?void 0:At.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return l()&&e().arrangement===1?"width: "+l():""}},_.G(_.Af,{data:function(){var At;
return(At=r())==null?void 0:At.contentImage}},{thumbnailViewModel:function(At){return _.G(_.iI,{data:At.data,
aspectRatio:function(){return e().aspectRatio},
disableRounding:function(){return e().disableRounding},
width:Q,hovered:X,isClip:function(){var XY;return((XY=r())==null?void 0:XY.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:sDt(A),lockupExperiments:function(){return z()}})},
collectionThumbnailViewModel:function(At){return _.G(Es6,{data:At.data,aspectRatio:function(){return e().aspectRatio},
disableRounding:function(){return e().disableRounding},
width:Q,doubleStack:function(){return e().collectionStackNumber===2},
hovered:X,playbackRef:sDt(A)})},
decoratedAvatarViewModel:_.fO})),_.G("div",{class:"yt-lockup-view-model-wiz__metadata"},_.G(_.Af,{data:function(){var At;return(At=r())==null?void 0:At.metadata}},{lockupMetadataViewModel:function(At){return _.G(zen,{data:At.data,
lockupStyle:e,lockupCommand:function(){var XY;return _.Cm((XY=r())==null?void 0:XY.rendererContext)},
lockupAccessibilityLabel:function(){return J()}})},
feedAdMetadataViewModel:function(At){return _.G(sgw,{data:At.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:M})}}),_.G(_.Af,{data:function(){var At;
return(At=r())==null?void 0:At.attachmentSlot}},{lockupAttachmentsViewModel:function(At){return _.G(ULb,{data:At.data,
lockupStyle:e})}})),_.G(_.jk,{model:function(){a:{switch(e().collectionStackNumber){case 1:var At=8;
break a;case 2:At=12;break a}At=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:At}},
pointerDownEvent:uB.pointerDownEvent,pointerUpEvent:uB.pointerUpEvent,pointerLeaveEvent:uB.pointerLeaveEvent}))},"Xa");
_.rR.idomCompat=!0;_.BK(_.rR,"yt-lockup-view-model",{props:{data:_.cP,containerLayoutConfig:_.cP,containerType:_.cP,sizing:_.cP,protectBackground:_.cP,typographyBump:_.cP,thumbnailFixedWidth:_.cP,thumbnailTargetWidth:_.cP,force16By9ThumbnailAspectRatio:_.cP,className:_.cP,lockupExperiments:_.cP,elementsPerRow:_.cP}});var ost;_.rH(HbA);var nsS,$Lm=_.dG(function(g){var r=_.y7(g,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),E=r.text,B=r.alwaysShowTruncationText;g=r.truncationText;var w=r.onTextClick,O=r.maxLines,M=r.disableTextMask,u=r.textStyle,l=r.accessibilityLabel,Q=r.textSize,z=r.alwaysTruncateAtMaxLines,k=r.expandOnClick;r=_.U(_.Dk(!1,void 0,"Qz8MWe"));var H=r.next().value,R=r.next().value;r=_.HK(function(){k()&&R(!H());w==null||w()});
var A=function(){a:switch(Q()){case "medium":var y=2;break a;case "large":y=2.2;break a;default:y=1.8}return y},J=jgY(E,function(){return H()?Infinity:O()},A,M,z),e=J.isTruncated;
E=J.displayText;z=J.contentRef;var C=J.hiddenRef,X=J.placeholderTruncationTextRef,Z=J.hiddenTruncationTextRef;J=J.truncationTextRef;var c={},h={};return _.G("truncated-text",{class:_.QY((c["truncated-text-wiz"]=!0,c["truncated-text-wiz--overlay"]=function(){return u()==="overlay"},c["truncated-text-wiz--medium-text"]=function(){return Q()==="medium"},c["truncated-text-wiz--large-text"]=function(){return Q()==="large"},c["truncated-text-wiz--primary-text"]=function(){return u()==="primary-text"},c)),
"on:click":r,style:function(){return"line-height: "+A()+"rem;"}},_.G("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",
el:z,style:function(){return H()?"":"max-height: "+O()*A()+"rem;"}},_.G(_.hf,{text:E}),_.G("button",{"aria-disabled":!0,
disabled:!0,class:"truncated-text-wiz__inline-button",el:X,style:function(){return"line-height: "+A()+"rem;"}},_.G(_.hf,{text:g}))),_.G("truncated-text-content",{class:_.QY("truncated-text-wiz__truncated-text-content","truncated-text-wiz__truncated-text-content--hidden-text-content"),
el:C,style:function(){return H()?"":"max-height: "+O()*A()+"rem;"},
"aria-hidden":"true"},_.G(_.hf,{text:E}),_.G("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:Z,style:function(){return"line-height: "+A()+"rem;"}},_.G(_.hf,{text:g}))),_.G("button",{"aria-label":l,
class:_.QY((h["truncated-text-wiz__absolute-button"]=function(){return!M()},h["truncated-text-wiz__bottom-button"]=function(){return M()},h["truncated-text-wiz--hidden"]=function(){return!(!H()&&(B!=null&&B()||e()))},h)),
el:J,style:function(){return"line-height: "+A()+"rem;"}},_.G(_.hf,{text:g})))},"Ya"),CxP=_.Y("web_enable_sink_truncated_text")?$Lm:HbA,jgZ=_.Y("web_enable_sink_truncated_text")?$Lm:_.k3(CxP,{callbacks:{onTextClick:!0}});
$Lm.idomCompat={callbacks:{onTextClick:!0}};_.rH(bbJ);
var Abn=_.dG(function(g){var r=g.children;var E=g.className;var B=g.style;var w=g.role;var O=g.ariaSelected;var M=g.ariaLabel;var u=g.ariaHidden;var l=g.ariaLabelledby;var Q=g.ariaDescribedby;var z=g.command;var k=g.elementsCommand;var H=g.forceNewState;var R=g.tabIdentifier;var A=g.target;var J=g.tabIndex;var e=g.stopPropagation;g=_.kB(function(){var C=_.XI({innertubeCommand:z==null?void 0:z(),elementsCommand:k==null?void 0:k(),forceNewState:H==null?void 0:H(),stopPropagation:(e==null?void 0:e())!==
!1});C||(C={});C["aria-hidden$"]=u==null?void 0:u();var X;C.tabindex$=(X=J==null?void 0:J())!=null?X:C.tabindex$;var Z;C["force-new-state$"]=(Z=H==null?void 0:H())!=null?Z:C["force-new-state$"];var c;C.role$=(c=w==null?void 0:w())!=null?c:C.role$;var h;C["aria-hidden$"]=(h=u==null?void 0:u())!=null?h:C["aria-hidden$"];var y;C.target$=(y=A==null?void 0:A())!=null?y:C.target$;return C},void 0,"SU0Mnc");
return _.G(_.NQ,{aTagConfig:g,className:E,style:B,ariaLabel:M,ariaLabelledby:l,ariaDescribedby:Q,ariaSelected:O,tabIdentifier:R},r)},"Za");var KVl=_.R$({buttonViewModel:_.MV});_.rH(eeX);_.rH(tXV);_.rH(FVV);var Pxn=_.dG(function(g){var r=g.data;g=g.className;var E=_.kB(function(){return avJ(r())},void 0,"Db3J3e");
return _.G("yt-video-attribute-view-model",{class:g},_.G("div",{class:function(){var B=r();a:switch(B.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var w="yt-video-attribute-view-model--vertical";break a;default:w="yt-video-attribute-view-model--horizontal"}a:switch(B.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var O="yt-video-attribute-view-model--image-small";break a;default:O="yt-video-attribute-view-model--image-large"}a:switch(B.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var M=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":M="yt-video-attribute-view-model--image-avatar";break a;default:M=""}a:switch(B.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var u="yt-video-attribute-view-model--metadata-header";break a;default:u=""}a:switch(B.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var l="yt-video-attribute-view-model--container-card";break a;default:l=""}return["yt-video-attribute-view-model",w,O,
M,u,l,avJ(B)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.Rl({"background-color":function(){var B=r();if(B.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var w="";else{w=B.lightColorPalette;B=B.darkColorPalette;var O,M=((O=_.rM().resolve(_.gM(_.Vy)))==null?0:O())&&B?B:w;w=(w=M==null?void 0:M.section2Color)?_.XT(w):""}return w}})},_.G(_.p,{cond:function(){return E()||!_.Y("web_video_attribute_view_model_a11y_fix")},
then:function(){return _.G(Abn,{className:"yt-video-attribute-view-model__content-container",useATagConfig:!0,stopPropagation:!1,command:E,role:"group",ariaLabel:function(){return r().title},
forceNewState:!0},_.G(_.p,{cond:function(){return r().heroText||r().image},
then:function(){return _.G(bb6,{data:r})}}),_.G(Jbn,{data:r,
sizeSmall:function(){return r().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))},
else:function(){return _.G("div",{class:"yt-video-attribute-view-model__content-container"},_.G(_.p,{cond:function(){return r().heroText||r().image},
then:function(){return _.G(bb6,{data:r})}}),_.G(Jbn,{data:r,
sizeSmall:function(){return r().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))}})))},"$a");
Pxn.idomCompat=!0;var tXU=_.Y("web_enable_sink_yt_video_attribute_view_model")?Pxn:_.k3(eeX),bb6=_.dG(function(g){var r=g.data;var E,B=(E=_.rM().resolve(_.gM(_.Vy)))==null?void 0:E(),w=function(){return B&&r().darkThemeImage?r().darkThemeImage:r().image},O=_.kB(function(){return XlD(r())},void 0,"MvXudb");
return _.G("div",{class:"yt-video-attribute-view-model__hero-section"},_.G(_.fa,null,_.G(_.na,{when:w},function(){return _.G(_.vw,{data:function(){return w()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.G(_.na,{when:function(){return r().heroText}},function(){return _.G("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.G("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return r().heroText}))})),_.G(_.p,{cond:function(){return r().overflowMenuOnTap},
then:function(){return _.G("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.G(ZB,{data:O,iconName:"MORE_VERT"}))}}))},"ab");
bb6.idomCompat=!0;var Jbn=_.dG(function(g){var r=g.data;g=g.sizeSmall;var E=function(){return r().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},B=_.kB(function(){return Ny(_.XI({innertubeCommand:avJ(r())}))?"link":"group"},void 0,"eWUHvb"),w={};
return _.G("div",{class:_.QY("yt-video-attribute-view-model__metadata",(w["yt-video-attribute-view-model--small-font"]=g,w)),role:B},_.G("h1",{class:"yt-video-attribute-view-model__title"},function(){return r().title}),_.G(_.p,{cond:function(){return r().subtitle},
then:function(){return _.G("h4",{class:"yt-video-attribute-view-model__subtitle"},_.G(_.p,{cond:E,then:function(){return _.G(jgZ,{text:function(){return xLL(r().subtitle)},
truncationText:function(){return xLL(r().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.G("span",null,function(){return r().subtitle})}}))}}),_.G(_.p,{cond:function(){return r().secondarySubtitle},
then:function(O){return _.G("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.G(_.hf,{text:function(){var M=O();if(M!=null&&M.attachmentRuns){for(var u=[],l=_.U(M.attachmentRuns),Q=l.next();!Q.done;Q=l.next())Q=Q.value,Q.element&&u.push(Object.assign({},Q,{element:Object.assign({},Q.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));M=Object.assign({},M,{attachmentRuns:u})}return M}}))}}),_.G(_.Af,
{data:function(){return r().buttonViewModel}},{buttonViewModel:function(O){return _.G(_.MV,{data:O.data,
className:"yt-video-attribute-view-model__button"})}}))},"bb");
Jbn.idomCompat=!0;_.BK(tXU,"yt-video-attribute-view-model",{props:{data:_.cP,className:_.cP}});var Ed=function(){var g=_.a.apply(this,arguments)||this;g.useHighlightStyling=_.Y("web_enable_deeper_metadata_highlight_styling");g.isSearch=!1;g.JSC$13178_lastScrollContainerWidth=NaN;g.pageLoadingFromNavigation=!1;g.currentIndex=0;g.supportComponentResize=!1;return g};
_.f(Ed,_.a);_.S=Ed.prototype;
_.S.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-horizontal-card-list-renderer lockup",containerType:4,sizing:"COMPACT"}},searchRefinementCardRenderer:"ytd-search-refinement-card-renderer",compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",videoCardRenderer:"ytd-grid-video-renderer",gameCardRenderer:"ytd-game-card-renderer",miniGameCardViewModel:"ytd-mini-game-card-view-model",mediaUpsellRenderer:"ytd-media-upsell-renderer",
infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",params:{showVerticalDividers:!0}},previewCardRenderer:{component:"ytd-preview-card-renderer",properties:{isSearch:"[[isSearch]]"}},macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"}},placeDataViewModel:"place-data-view-model",videoAttributeViewModel:{component:"yt-video-attribute-view-model",properties:{className:"[[is]]"}}}},"data.header":{id:"header",
mapping:{titleAndButtonListHeaderRenderer:"ytd-title-and-button-list-header-renderer",richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",properties:{hideNavigationButton:"[[hideNavigationButton]]",isModernSd:"[[modernChapters]]"}}}},"data.sortFilter":{id:"sort-filter",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.button":{id:"header-button",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.previousButton":{id:"left-arrow-button",
mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},attributes:{arrow:!0}}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},attributes:{arrow:!0}}}},"data.footerButton":{id:"footer-section",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},dismissedRenderer:{id:"dismissed",
mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.S.attached=function(){document.addEventListener("yt-page-type-changed",_.Do(this,this.onPageChange))};
_.S.detached=function(){document.removeEventListener("yt-page-type-changed",_.Do(this,this.onPageChange))};
_.S.getItemsPath=function(){return"data.cards"};
_.S.onIronResize=function(){this.updateListStyles()};
_.S.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var g;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(g=this.data)==null?void 0:g.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.Y("problem_walkthrough_sd")&&!!this.centerItems};
_.S.computeCardListStyle=function(g){return g||null};
_.S.computeEmpty=function(g){return!this.get("cards.length",g)};
_.S.computeThumbnailStyle=function(g){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",g)||null};
_.S.computeHasSubtitle=function(g){return!!this.get("header.richListHeaderRenderer.subtitle",g)};
_.S.computeInitialCountNumber=function(g){return this.hasSquareMiniApp&&g==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&g==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:g==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:g==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:g==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&g==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.S.computeUseFloorScrolling=function(g){return g==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.S.computeHasGameCard=function(g){return(g=this.get("cards",g))?g.some(function(r){return r.gameCardRenderer}):!1};
_.S.computeCenterHeaderTitle=function(g){return!(g==null||!g.centerHeaderTitle)};
_.S.computeHasPortraitMiniApp=function(g){return(g=g==null?void 0:g.cards)?g.some(function(r){return r.miniGameCardViewModel&&r.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.S.computeHasSquareMiniApp=function(g){return(g=g==null?void 0:g.cards)?g.some(function(r){return r.miniGameCardViewModel&&r.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.S.computeHasSkinnyWidthPortraitMiniApp=function(g){return(g=g==null?void 0:g.cards)?g.some(function(r){return r.miniGameCardViewModel&&r.miniGameCardViewModel.width===135}):!1};
_.S.computeCenterItems=function(g){return!!g};
_.S.computeHasInfoPanel=function(g){var r;return g==null?void 0:(r=g.cards)==null?void 0:r.some(function(E){return E.infoPanelContentRenderer})};
_.S.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.S.getItemByIndex=function(g){var r=this.items.children;return r&&r.length>g?r[g]:void 0};
_.S.onPageChange=function(){var g=this;this.pageLoadingFromNavigation=!0;_.F6.addJob(function(){g.pageLoadingFromNavigation=!1;_.US(g.hostElement,"yt-terminate-video-preview-action")},8)};
_.S.updateListStyles=function(){if(_.Y("problem_walkthrough_sd")&&this.JSC$13178_scrollContainer!==void 0){var g=this.JSC$13178_scrollContainer.clientWidth;g!==this.JSC$13178_lastScrollContainerWidth&&(this.JSC$13178_lastScrollContainerWidth=g,_.ua(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(g*.8,415)+"px"}),_.Sh(this.hostElement,"iron-resize"))}};
_.hx.Object.defineProperties(Ed.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.Y("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return!!((g=this.data)==null?0:(r=g.cards)==null?0:(E=r[0])==null?0:E.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return!!((g=this.data)==null?0:(r=g.cards)==null?0:(E=r[0])==null?0:E.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return _.Y("enable_desktop_amsterdam_info_panels")&&!!((g=this.data)==null?0:(r=g.cards)==null?0:(E=r[0])==null?0:E.infoPanelContentRenderer)}}});
Ed.prototype.dataChanged=Ed.prototype.dataChanged;Ed.prototype.onIronResize=Ed.prototype.onIronResize;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Ed.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Ed.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.yR.YtdHorizontalListBehavior),_.L("design:type",Object)],Ed.prototype,"ytdHorizontalListBehavior",void 0);
_.m([_.P(_.Ji),_.L("design:type",Object)],Ed.prototype,"ytdDismissibleItemBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Ed.prototype,"data",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],Ed.prototype,"useCustomColors",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Ed.prototype,"useHighlightStyling",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.L("design:type",Object)],Ed.prototype,"cardListStyle",void 0);_.m([_.K({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.L("design:type",Boolean)],Ed.prototype,"empty",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.L("design:type",Boolean)],Ed.prototype,"hasSubtitle",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.L("design:type",Boolean)],Ed.prototype,"thumbnailStyle",void 0);_.m([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.L("design:type",Boolean)],Ed.prototype,"hasGameCard",void 0);_.m([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.L("design:type",Boolean)],Ed.prototype,"centerHeaderTitle",void 0);
_.m([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.L("design:type",Boolean)],Ed.prototype,"hasPortraitMiniApp",void 0);_.m([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.L("design:type",Boolean)],Ed.prototype,"hasSquareMiniApp",void 0);_.m([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.L("design:type",Boolean)],Ed.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.m([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.L("design:type",Boolean)],Ed.prototype,"hasInfoPanel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Ed.prototype,"isSearch",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Ed.prototype,"inlineStructuredDescription",void 0);_.m([_.zb("#scroll-container"),_.L("design:type",HTMLDivElement)],Ed.prototype,"JSC$13178_scrollContainer",void 0);
_.m([_.K({computed:"computeInitialCountNumber(data.style.type)"}),_.L("design:type",Number)],Ed.prototype,"initialCount",void 0);_.m([_.K({computed:"computeUseFloorScrolling(data.style.type)"}),_.L("design:type",Boolean)],Ed.prototype,"useFloorScrolling",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.L("design:type",Boolean)],Ed.prototype,"centerItems",void 0);_.m([_.K(),_.L("design:type",Object)],Ed.prototype,"pageLoadingFromNavigation",void 0);
_.m([_.K(),_.L("design:type",Object)],Ed.prototype,"currentIndex",void 0);_.m([_.K(),_.L("design:type",Number)],Ed.prototype,"scrollCount",void 0);_.m([_.K(),_.L("design:type",Object)],Ed.prototype,"supportComponentResize",void 0);_.m([_.zb("#items"),_.L("design:type",HTMLDivElement)],Ed.prototype,"items",void 0);_.m([_.ob("iron-resize"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Ed.prototype,"onIronResize",null);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Ed.prototype,"dataChanged",null);_.m([_.K({reflectToAttribute:!0}),_.W("inlineStructuredDescription"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Ed.prototype,"hideNavigationButton",null);_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Ed.prototype,"modernChapters",null);
_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Ed.prototype,"hasVideoAttributeViewModels",null);_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Ed.prototype,"modernInfoPanels",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],Ed);
_.I(Ed,"ytd-horizontal-card-list-renderer",function(){if(fFz!==void 0)return fFz;var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return fFz=g},{mode:_.My("kevlar_poly_si_batch_j072")?1:2});var FVU=_.dG(function(g){var r=g.data;var E={};return _.G("video-summary-content-view-model",{class:_.QY("video-summary-content-view-model-wiz",g.className,(E["video-summary-content-view-model-wiz--is-search"]=g.isSearch,E))},_.G(_.Ra,{each:function(){var B=[],w=r().paragraphs;if(w==null||!w.length)return[];for(var O=0;O<w.length;O++){var M=_.n(w[O],mcA),u=void 0;O>0&&(u=_.n(w[O-1],mcA));u&&!!u.marker===!!M.marker?B[B.length-1].paragraphs.push(M):B.push({isList:!!M.marker,paragraphs:[M]})}return B},
keyBy:"INDEX"},function(B){return _.G(_.p,{cond:function(){return B().isList},
then:function(){return _.G("ul",{class:"video-summary-content-view-model-wiz__list"},_.G(_.Ra,{each:function(){return B().paragraphs},
keyBy:"INDEX"},function(w){return _.G("li",{class:"video-summary-content-view-model-wiz__list-item"},_.G(_.hf,{text:function(){return w().text}}))}))},
else:function(){return _.G(_.Ra,{each:function(){return B().paragraphs},
keyBy:"INDEX"},function(w){return _.G("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.G(_.hf,{text:function(){return w().text}}))})}})}),_.G(_.p,{cond:function(){return!!_.n(r().likeButtonViewModel,_.A9)&&!!_.n(r().dislikeButtonViewModel,_.jf)},
then:function(){return _.G("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.G("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.G(_.$n,{data:function(){return _.n(r().likeButtonViewModel,_.A9)},
disableIconAnimation:!0})),_.G(_.fj,{data:function(){return _.n(r().dislikeButtonViewModel,_.jf)}}))}}))},"cb");
FVU.idomCompat=!0;_.BK(FVU,"video-summary-content-view-model",{props:{data:_.cP,isSearch:_.cP,className:_.cP}});var Mv=function(){var g=_.a.apply(this,arguments)||this;var r,E;g.isExpanded=(E=(r=g.data)==null?void 0:r.isExpanded)!=null?E:!1;g.disableExpand=!1;g.showProminentLabel=!1;g.showRightSideLabel=!0;g.toggleExpandableContent=function(B){g.disableExpand||(B.stopPropagation(),_.yY(_.Z1(B),g.hostElement,["info","expanded-subtitle"])||(g.isExpanded=!g.isExpanded,g.ytRendererBehavior.logExplicitClick(g.data),g.JSC$13189_cardList&&!_.Y("expandable_metadata_a11y_fix_ks")&&_.Lk(g,function(){_.hp(g.hostElement)})))};
g.useSquareThumbnail=!1;g.contentHiddenWithDisplayNone=_.Y("web_expandable_metadata_content_hidden_with_display_none");g.startX=0;return g};
_.f(Mv,_.a);_.S=Mv.prototype;_.S.computeUseSquareThumbnail=function(){var g;return(g=this.data)==null?void 0:g.useSquareThumbnail};
_.S.configureRendererStamper=function(){return{"data.expandedContent":{id:"content",mapping:{horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]",useCustomColors:"[[useCustomColors]]"}},horizontalListRenderer:{component:"yt-horizontal-list-renderer",properties:{isSearch:"[[isSearch]]"},params:{isExpandableContent:!0}},videoSummaryContentViewModel:{component:"video-summary-content-view-model",params:{isExpandableContent:!0},properties:{isSearch:"[[isSearch]]"}},
lockupViewModel:{component:"yt-lockup-view-model",params:{isExpandableContent:!0,className:"ytd-expandable-metadata-renderer lockup",thumbnailFixedWidth:"168px",containerType:3,sizing:"COMPACT"}}}},"data.expandButton":{id:"expand",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.collapseButton":{id:"collapse",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.infoButton":{id:"info",
mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.expandedMenuFooter":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}}}};
_.S.dataChanged=function(){if(this.data){var g,r;this.isExpanded=(r=(g=this.data)==null?void 0:g.isExpanded)!=null?r:!1;var E,B,w,O;if(g=this.isDarkTheme()?(E=this.data)==null?void 0:(B=E.colorData)==null?void 0:B.darkColorPalette:(w=this.data)==null?void 0:(O=w.colorData)==null?void 0:O.lightColorPalette){var M,u;if((M=this.data)==null?0:(u=M.colorData)==null?0:u.vibrantColorPalette)g.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.tR(this.hostElement,g)}}};
_.S.isExpandedChanged=function(){this.isExpanded&&this.JSC$13189_cardList&&_.Sh(this.JSC$13189_cardList,"iron-resize")};
_.S.computeIsExpanded=function(g){return!!g.isExpanded};
_.S.computeShowProminentLabel=function(g,r){var E;return!!(g==null?0:(E=g.header)==null?0:E.showLeadingCollapsedLabel)&&!r};
_.S.computeShowRightSideLabel=function(g,r){var E;return!(g==null?0:(E=g.header)==null?0:E.showLeadingCollapsedLabel)&&!r};
_.S.captureContentClick=function(g){if(!this.disableExpand)if(_.Y("expandable_metadata_fix_killswitch")){var r=g.target;_.Qm4(r,"ytd-macro-markers-list-item-renderer")||g.stopPropagation();(r==null?void 0:r.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.yY(_.Z1(g),this.hostElement,["items"])||_.Zy(_.Z1(g),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.S.timestampClick=function(g){g.stopPropagation();var r,E;(g=(r=this.data)==null?void 0:(E=r.header)==null?void 0:E.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(g)};
_.S.onDown=function(g){g.stopPropagation();this.startX=g.detail?g.detail.x:0};
_.S.onUp=function(g){this.skipKeyInteraction(g)&&g.stopPropagation()};
_.S.skipKeyInteraction=function(g){var r=g.target;if((r==null?void 0:r.id)==="scroll-container"||(r==null?void 0:r.id)==="items"||g.detail&&g.detail.x!==this.startX)return!0;g=_.Z1(g);g=_.U(g);for(r=g.next();!r.done;r=g.next()){r=r.value;if(r===this.hostElement)break;if(r.hasAttribute&&r.hasAttribute("skip-key-interaction"))return!0}return!1};
_.S.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.hx.Object.defineProperties(Mv.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var g;return!!_.n((g=this.data)==null?void 0:g.expandedContent,IXI)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var g;return!!_.n((g=this.data)==null?void 0:g.expandedContent,_.XyU)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var g,r;return!((g=this.data)==null||!g.useCustomColors)&&!((r=this.data)==null||!r.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var g,r;return!!((g=this.data)==null?0:(r=g.header)==null?0:r.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var g,r;return!!((g=this.data)==null?0:(r=g.header)==null?0:r.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var g,r;return!!((g=this.data)==null?0:(r=g.header)==null?0:r.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}},
contentHidden:{configurable:!0,enumerable:!0,get:function(){return _.Y("web_expandable_metadata_content_hidden_with_display_none")&&!this.isExpanded}}});
Mv.prototype.onUp=Mv.prototype.onUp;Mv.prototype.onDown=Mv.prototype.onDown;Mv.prototype.isExpandedChanged=Mv.prototype.isExpandedChanged;Mv.prototype.dataChanged=Mv.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Mv.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Mv.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Mv.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Mv.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Mv.prototype,"isExpanded",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Mv.prototype,"disableExpand",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],Mv.prototype,"isSearch",void 0);
_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],Mv.prototype,"isWatch",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.L("design:type",Object)],Mv.prototype,"showProminentLabel",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.L("design:type",Object)],Mv.prototype,"showRightSideLabel",void 0);
_.m([_.K({value:!1,reflectToAttribute:!0}),_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Mv.prototype,"hasVideoSummary",null);_.m([_.K({value:!1,reflectToAttribute:!0}),_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Mv.prototype,"hasLockupViewModel",null);_.m([_.K({reflectToAttribute:!0}),_.W("data","isWatch"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Mv.prototype,"useCustomColors",null);
_.m([_.K({reflectToAttribute:!0}),_.W("data","isExpanded"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Mv.prototype,"showInfoButton",null);_.m([_.W("data","isExpanded"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Mv.prototype,"showTimestamp",null);_.m([_.W("data","isExpanded"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Mv.prototype,"showExpandedSubtitle",null);
_.m([_.W("data","isExpanded"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Mv.prototype,"showThumbnail",null);_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],Mv.prototype,"useVppShoppingDestinationStyle",null);_.m([_.K(),_.L("design:type",Object)],Mv.prototype,"toggleExpandableContent",void 0);_.m([_.zb("ytd-horizontal-card-list-renderer"),_.L("design:type",Object)],Mv.prototype,"JSC$13189_cardList",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.L("design:type",Object)],Mv.prototype,"useSquareThumbnail",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Mv.prototype,"contentHiddenWithDisplayNone",void 0);_.m([_.W("isExpanded"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Mv.prototype,"contentHidden",null);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Mv.prototype,"dataChanged",null);_.m([_.Gb("isExpanded"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Mv.prototype,"isExpandedChanged",null);_.m([_.ob("down"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],Mv.prototype,"onDown",null);
_.m([_.ob("up"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],Mv.prototype,"onUp",null);_.m([_.N({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],Mv);
_.I(Mv,"ytd-expandable-metadata-renderer",function(){if(WdD!==void 0)return WdD;var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[contentHidden]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return WdD=g},{mode:1});var eem,WVA=function(){if(eem!==void 0)return eem;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return eem=g};_.BK(_.$1,"yt-avatar-stack-view-model",{props:{className:_.cP,data:_.cP,overrides:_.cP,isOverlay:_.cP,useMediumText:_.cP,decorations:_.cP,hideAvatar:_.cP}});_.ek("itemSectionRenderer","videoRenderer","ytd-video-renderer");var qv=function(){var g=_.a.apply(this,arguments)||this;g.disableExpand=!1;g.shouldShowChannelInfo=!1;g.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return g};
_.f(qv,_.a);_.S=qv.prototype;_.S.computeUseSearchUi=function(){var g,r;return this.isSearch||((g=this.data)==null?void 0:(r=g.style)==null?void 0:r.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.S.computeUseThreeLineTitle=function(){var g;return((g=this.data)==null?void 0:g.maxTitleLines)===3};
_.S.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.Y("polymer_video_renderer_defer_menu")&&!bHD?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"}}}};
_.S.attached=function(){_.UN(this.hostElement,"blue-links",_.Y("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.S.detached=function(){this.clearInlinePreviewHoverListeners()};
_.S.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.M1(_.S3(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var g=this.get("data.buttons.buttonRenderer.serviceEndpoint"),r;g&&((r=_.n(g.commandMetadata,_.nY))==null?0:r.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(g);this.updateInlinePreviewHoverListeners()};
_.S.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13194_inlinePreviewHoverListener=XX({mediaRenderer:this,lockupElement:this.JSC$13194_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.S.clearInlinePreviewHoverListeners=function(){var g;(g=this.JSC$13194_inlinePreviewHoverListener)==null||Tu(g)};
_.S.onTextWrapperClick=function(g){var r,E,B=this.hideTranslation?(r=this.data)==null?void 0:r.untranslatedNavigationEndpoint:(E=this.data)==null?void 0:E.navigationEndpoint;r=_.yY(_.Z1(g),this.hostElement,["expandable-metadata"]);!B||r&&!_.Y("expandable_metadata_fix_killswitch")||_.Zy(_.Z1(g),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.Sh(this.hostElement,"yt-navigate",{endpoint:B})};
_.S.computeThumbnailWidth=function(g,r,E,B,w){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:B?w==="MASSIVE"?600:w==="BIG"?500:w==="MEDIUM"?450:420:E?360:r?128:g?210:246};
_.S.computeUseBiggerThumbs=function(g){return g&&_.Y("enable_desktop_search_bigger_thumbs")};
_.S.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.S.computeVideoStyle=function(){if(_.Y("enable_video_style")){var g,r;return(g=this.data)==null?void 0:(r=g.style)==null?void 0:r.value}};
_.S.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.S.handleHideItemSectionVideosByIdCommand=function(g){var r;g=(r=_.n(g,u8D))==null?void 0:r.videoId;this.data&&this.data.videoId===g&&(this.isHidden=!0)};
_.S.getMetadataSnippetContainerClass=function(g){return g?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.S.computeTitleText=function(g,r,E){return g?E:r};
_.S.computeDescriptionSnippet=function(g,r,E){return g?E:r};
_.S.computeSnippetText=function(g,r,E){return g?E:r};
_.S.computeNavigationEndpoint=function(g,r){return g?r==null?void 0:r.untranslatedNavigationEndpoint:r==null?void 0:r.navigationEndpoint};
_.S.hideInlineTitleIcon=function(g,r){return g||!r};
_.hx.Object.defineProperties(qv.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 g;return(g=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?g:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return!!(this==null?0:(g=this.data)==null?0:(r=g.channelThumbnailSupportedRenderers)==null?0:(E=r.channelThumbnailWithLinkRenderer)==null?0:E.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var g;return!!_.n((g=this.data)==null?void 0:g.avatar,NyI)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.JSC$13194_inlinePreviewHoverListener)==null?0:bI(g))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.hx.Object.defineProperties(qv,{template:{configurable:!0,enumerable:!0,get:function(){return WVA()}}});
qv.prototype.dataChanged=qv.prototype.dataChanged;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],qv.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],qv.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],qv.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ji),_.L("design:type",Object)],qv.prototype,"ytdDismissibleItemBehavior",void 0);
_.m([_.P(_.K4),_.L("design:type",Object)],qv.prototype,"ytdLockupBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],qv.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],qv.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],qv.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],qv.prototype,"isBackstageVideo",void 0);
_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],qv.prototype,"isPostCompactVideo",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],qv.prototype,"isHistory",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],qv.prototype,"isRichGridVideoPost",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],qv.prototype,"isHidden",void 0);
_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],qv.prototype,"isSearch",void 0);_.m([_.K({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.L("design:type",Boolean)],qv.prototype,"useSearchUi",void 0);_.m([_.K({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.L("design:type",Boolean)],qv.prototype,"useThreeLineTitle",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.L("design:type",Boolean)],qv.prototype,"useBiggerThumbs",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.L("design:type",Object)],qv.prototype,"videoStyle",void 0);_.m([_.K({computed:"computeDisableExpand(videoStyle)"}),_.L("design:type",Object)],qv.prototype,"disableExpand",void 0);
_.m([_.K({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.L("design:type",Object)],qv.prototype,"shouldShowChannelInfo",void 0);_.m([_.K({reflectToAttribute:!0,value:function(){return _.Sg("desktop_search_bigger_thumbs_style")}}),
_.L("design:type",String)],qv.prototype,"biggerThumbsStyle",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.L("design:type",String)],qv.prototype,"inlineTitleIcon",void 0);_.m([_.K({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.L("design:type",Object)],qv.prototype,"computedNavigationEndpoint",void 0);_.m([_.K({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(g,r){return _.u1(g.entities,"searchVideoResultEntity",r)}}),
_.L("design:type",Object)],qv.prototype,"searchVideoResultEntity",void 0);_.m([_.zb("ytd-thumbnail"),_.L("design:type",HTMLElement)],qv.prototype,"thumbnail",void 0);_.m([_.zb("#dismissible"),_.L("design:type",HTMLElement)],qv.prototype,"JSC$13194_dismissibleMedia",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],qv.prototype,"dataChanged",null);
_.m([_.W("searchVideoResultEntity"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],qv.prototype,"hideTranslation",null);_.m([_.W("searchVideoResultEntity"),_.L("design:type",Array),_.L("design:paramtypes",[])],qv.prototype,"hiddenBadgeGroups",null);_.m([_.W("data","useAvatar"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],qv.prototype,"shouldShowChannelThumbnail",null);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],qv.prototype,"useAvatar",null);
_.m([_.W("lockupIsHovered"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],qv.prototype,"isHovered",null);_.m([_.N({is:"ytd-video-renderer",disableElementRegistration:!0})],qv);_.I(qv,"ytd-video-renderer",function(){return WVA()},{mode:_.My("kevlar_poly_si_batch_j047")?1:2});var u9=function(){var g=_.a.apply(this,arguments)||this;g.editDialog=null;g.roundedContainer=!0;g.isLoading=!1;g.isRichGrid=!1;g.isRichGridRepost=!1;g.reduceSidePaddings=_.Y("reduce_side_paddings_in_shelf");g.JSC$13201_spinnerEl=null;return g};
_.f(u9,_.a);_.S=u9.prototype;
_.S.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",properties:{isPostCompactVideo:"[[usesCompactLockup]]",
isRichGridVideoPost:"[[isRichGrid]]"}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isPostCompactPlaylist:"[[usesCompactLockup]]"}},uploadedVideoRenderer:{component:"ytd-post-uploaded-video-renderer"}}},"data.voteButton":{id:"vote-button",mapping:{buttonRenderer:"ytd-button-renderer"}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},
dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.S.contentTextChanged=function(){this.expander.reset()};
_.S.dataChanged=function(){var g=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var r=0,E=this.data.actions&&this.data.actions.length;r<E;r++)this.openEditDialog(_.n(this.data.actions[r],ft6));if((r=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(r=this.get("buttonRenderer.hint.hintRenderer.hintId",r))&&r.startsWith("share-post-hint")){var B=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(B){_.yK.getInstance();var w=va(_.Lf(_.zn("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.F6.addLowPriorityJob(function(){_.uq(g.hostElement,w,B)})}}}};
_.S.updatePoll=function(g){g>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.S.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13201_spinnerEl||(this.JSC$13201_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.S3(this.hostElement).appendChild(this.JSC$13201_spinnerEl));this.JSC$13201_spinnerEl&&(this.JSC$13201_spinnerEl.active=this.isLoading)};
_.S.onYtNavigate=function(g){var r=this.get("updateCommentDialogEndpoint",g.detail.endpoint);r&&(this.openEditDialog(r),g.stopPropagation())};
_.S.onYtCommentboxDismiss=function(){this.editDialog=null};
_.S.onYtCommentPollRevert=function(g,r){r&&this.updatePoll(r.selectedChoiceIndex)};
_.S.onYtServiceRequestSent=function(g,r){var E;r.endpoint&&(_.n(r.endpoint,ETT)||_.n(r.endpoint,r9n)&&((E=_.n(r.endpoint,r9n))==null||!E.clientActions))&&(this.isLoading=!0);if(r.actions)for(g=0;g<r.actions.length;g++)E=r.actions[g],_.n(E,pY)&&(E=this.get("updateBackstagePollAction.selectedChoiceIndex",E),E==void 0&&(E=-1),this.updatePoll(E))};
_.S.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.S.openEditDialog=function(g){g&&g.dialog&&(this.editDialog=g.dialog,g=this.editDialogEl.firstElementChild)&&(g.focus(),g.openDialog&&g.openDialog())};
_.S.computeIsPostHidden=function(g,r){return!!g||r};
_.S.computeSurfaceType=function(g){return g?g.toLowerCase().replace(/_/g,"-"):""};
_.S.computeUsesCompactLockup=function(g){return g==="BACKSTAGE_SURFACE_TYPE_HOME"||g==="BACKSTAGE_SURFACE_TYPE_SEARCH"||g==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||g==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||g==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||g==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.S.computeShowWithoutToolbar=function(g){return!g.actionButtons&&!g.actionMenu};
_.S.computePostAttachment=function(g){if(g.backstageAttachment){if(_.n(g.backstageAttachment,tBA))return"poll";if(_.n(g.backstageAttachment,Q4A))return"quiz";if(_.n(g.backstageAttachment,_.Wy))return"video";if(_.n(g.backstageAttachment,zMb))return"uploaded-videos";if(_.n(g.backstageAttachment,ZZA))return g.contentText?"image":"image-only";if(_.n(g.backstageAttachment,l0Z))return"playlist"}return"none"};
_.S.computePostTabIndex=function(g){return g?0:-1};
_.S.computeButtonTooltipPosition=function(g){return this.computeUsesCompactLockup(g)?"top":"bottom"};
_.S.computeHasText=function(g){return!(g==null||!g.contentText)};
_.S.onTap=function(g){var r,E;if(((r=this.data)==null?0:r.navigationEndpoint)&&((E=this.data)==null?void 0:E.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var B;((B=this.data)==null?0:B.navigationEndpoint)&&!_.Zy(_.Z1(g)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.Sh(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.hx.Object.defineProperties(u9.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.voteCount)||_.Lf("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.n(this.data.backstageAttachment,tBA))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.n(this.data.backstageAttachment,zMb))}}});
u9.prototype.onYtServiceRequestCompleted=u9.prototype.onYtServiceRequestCompleted;u9.prototype.onYtServiceRequestSent=u9.prototype.onYtServiceRequestSent;u9.prototype.onYtCommentPollRevert=u9.prototype.onYtCommentPollRevert;u9.prototype.onYtCommentboxDismiss=u9.prototype.onYtCommentboxDismiss;u9.prototype.onYtNavigate=u9.prototype.onYtNavigate;u9.prototype.isLoadingChanged=u9.prototype.isLoadingChanged;u9.prototype.dataChanged=u9.prototype.dataChanged;u9.prototype.contentTextChanged=u9.prototype.contentTextChanged;
_.m([_.P(_.Ji),_.L("design:type",Object)],u9.prototype,"ytdDismissibleItemBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],u9.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],u9.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],u9.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],u9.prototype,"data",void 0);
_.m([_.K(),_.L("design:type",Object)],u9.prototype,"editDialog",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],u9.prototype,"roundedContainer",void 0);_.m([_.K(),_.L("design:type",Object)],u9.prototype,"isLoading",void 0);_.m([_.K({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.L("design:type",String)],u9.prototype,"surface",void 0);
_.m([_.K({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.L("design:type",Boolean)],u9.prototype,"usesCompactLockup",void 0);_.m([_.K({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],u9.prototype,"showWithoutToolbar",void 0);_.m([_.K({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.L("design:type",String)],u9.prototype,"attachment",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],u9.prototype,"isRichGrid",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],u9.prototype,"isRichGridRepost",void 0);_.m([_.K({reflectToAttribute:!0,value:_.Y("use_better_post_dismissals")}),_.L("design:type",Boolean)],u9.prototype,"useBetterPostDismissals",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],u9.prototype,"reduceSidePaddings",void 0);
_.m([_.K({computed:"computeHasText(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],u9.prototype,"hasText",void 0);_.m([_.zb("#expander"),_.L("design:type",Object)],u9.prototype,"expander",void 0);_.m([_.zb("#action-buttons"),_.L("design:type",Object)],u9.prototype,"actionButtons",void 0);_.m([_.zb("#edit-dialog"),_.L("design:type",HTMLElement)],u9.prototype,"editDialogEl",void 0);
_.m([_.Gb("data.contentText"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],u9.prototype,"contentTextChanged",null);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],u9.prototype,"dataChanged",null);_.m([_.Gb("isLoading"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],u9.prototype,"isLoadingChanged",null);
_.m([_.ob("yt-navigate"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],u9.prototype,"onYtNavigate",null);_.m([_.ob("yt-commentbox-dismiss"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],u9.prototype,"onYtCommentboxDismiss",null);_.m([_.ob("yt-comment-poll-revert"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],u9.prototype,"onYtCommentPollRevert",null);
_.m([_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.XA]),_.L("design:returntype")],u9.prototype,"onYtServiceRequestSent",null);_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.hR]),_.L("design:returntype")],u9.prototype,"onYtServiceRequestCompleted",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],u9.prototype,"voteCount",null);
_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],u9.prototype,"commentCount",null);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],u9.prototype,"hasPoll",null);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],u9.prototype,"hasUploadedVideo",null);_.m([_.N({is:"ytd-post-renderer",disableElementRegistration:!0})],u9);
_.I(u9,"ytd-post-renderer",function(){if(E9D!==void 0)return E9D;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return E9D=g},{mode:1});var Cx4;var KVT;var l9=function(){return _.a.apply(this,arguments)||this};
_.f(l9,_.a);l9.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],l9.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],l9.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.yR.YtdHorizontalListBehavior),_.L("design:type",Object)],l9.prototype,"ytdHorizontalListBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],l9.prototype,"componentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],l9.prototype,"data",void 0);
_.m([_.K({value:"$.items.children"}),_.L("design:type",String)],l9.prototype,"itemsPath",void 0);_.m([_.K({value:1}),_.L("design:type",Number)],l9.prototype,"initialCount",void 0);_.m([_.K(),_.L("design:type",String)],l9.prototype,"surface",void 0);_.m([_.N({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],l9);
_.I(l9,"ytd-post-multi-image-renderer",function(){if(KVT!==void 0)return KVT;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return KVT=g},{mode:_.My("kevlar_poly_si_batch_j079")?1:2});var xLw={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}},Dj=function(){var g=_.a.apply(this,arguments)||this;g.hasInlineCommentSection=!1;g.editDialog=null;g.isLoading=!1;g.shouldHideAuthor=!1;g.shouldShowVideoTime=!1;
g.isInEngagementPanel=!1;g.hideBorder=!1;g.usesFullLockup=!1;g.shouldShowMenuInCompactView=!1;g.JSC$13217_spinnerEl=null;g.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return g};
_.f(Dj,_.a);_.S=Dj.prototype;_.S.configureRendererStamper=function(){return xLw};
_.S.computeIsPollHeaderEnabled=function(g){return(g==null?void 0:g.pollMetadataIcon)!=null};
_.S.getPublishTimeStampString=function(g,r){r=new Date((Number(r)-60*((new Date).getTimezoneOffset()-(new Date(Number(r)*1E3)).getTimezoneOffset()))*1E3);r=(new cs(10)).format(r);if(g&&g.runs&&g.runs.length)for(var E=0;E<g.runs.length;E++)g.runs[E].text&&(g.runs[E].text=g.runs[E].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",r));return g};
_.S.created=function(){this.JSC$13217_spinnerEl=null};
_.S.contentTextChanged=function(){this.expander.reset()};
_.S.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var g;if((g=this.data)==null?0:g.actions){g=_.U(this.data.actions);for(var r=g.next();!r.done;r=g.next())this.openEditDialog(_.n(r.value,ft6))}};
_.S.handleSignalActionOpenPostCommentDialogAction=function(){_.S3(this.hostElement).querySelector("#action-buttons").reply()};
_.S.updatePoll=function(g,r){r&&this.set("data.pollMetadataVoteCountText",r);this.hasInlineCommentSection&&(g=g>=0,r=_.S3(this.hostElement).querySelector("#action-buttons"),g?r.reply():r.hideReplyDialog())};
_.S.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13217_spinnerEl||(this.JSC$13217_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.S3(this.hostElement).appendChild(this.JSC$13217_spinnerEl));this.JSC$13217_spinnerEl&&(this.JSC$13217_spinnerEl.active=this.isLoading)};
_.S.onYtNavigate=function(g){var r=this.get("updateCommentDialogEndpoint",g.detail.endpoint);r&&(this.openEditDialog(r),g.stopPropagation())};
_.S.onYtCommentboxDismiss=function(){this.editDialog=null};
_.S.onYtCommentPollRevert=function(g,r){r&&this.updatePoll(r.selectedChoiceIndex,r.totalVotes)};
_.S.onYtServiceRequestSent=function(g,r){g.stopPropagation();g=_.n(r.endpoint,r9n);if(_.n(r.endpoint,ETT)||g&&!g.clientActions)this.isLoading=!0;if(r.actions)for(g=0;g<r.actions.length;g++){var E=r.actions[g],B=_.n(E,pY);B&&(E=this.get("updateBackstagePollAction.selectedChoiceIndex",E),E===void 0&&(E=-1),this.updatePoll(E,B.totalVotes))}};
_.S.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.S.openEditDialog=function(g){g&&g.dialog&&(this.editDialog=g.dialog,g=this.editDialogElement.firstElementChild)&&(g.focus(),g.openDialog&&g.openDialog())};
_.S.computeIsBodyHidden=function(g,r){return!!g||r};
_.hx.Object.defineProperties(Dj.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var g,r;if((g=this.data)==null?0:(r=g.pollMetadataIcon)==null?0:r.iconType)return _.Dh(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.voteCount)||_.Lf("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.n(this.data.backstageAttachment,tBA))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.n(this.data.backstageAttachment,Q4A))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.n(this.data.backstageAttachment,zMb))}}});
Dj.prototype.onYtServiceRequestCompleted=Dj.prototype.onYtServiceRequestCompleted;Dj.prototype.onYtServiceRequestSent=Dj.prototype.onYtServiceRequestSent;Dj.prototype.onYtCommentPollRevert=Dj.prototype.onYtCommentPollRevert;Dj.prototype.onYtCommentboxDismiss=Dj.prototype.onYtCommentboxDismiss;Dj.prototype.onYtNavigate=Dj.prototype.onYtNavigate;Dj.prototype.isLoadingChanged=Dj.prototype.isLoadingChanged;Dj.prototype.dataChanged=Dj.prototype.dataChanged;Dj.prototype.contentTextChanged=Dj.prototype.contentTextChanged;
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Dj.prototype,"actionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Dj.prototype,"rendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Dj.prototype,"rendererstamperBehavior",void 0);_.m([_.zb("#contentTextExpander"),_.L("design:type",Object)],Dj.prototype,"expander",void 0);
_.m([_.zb("#edit-dialog"),_.L("design:type",Element)],Dj.prototype,"editDialogElement",void 0);_.m([_.K(),_.L("design:type",Object)],Dj.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],Dj.prototype,"hasInlineCommentSection",void 0);_.m([_.K(),_.L("design:type",Object)],Dj.prototype,"editDialog",void 0);_.m([_.K(),_.L("design:type",Object)],Dj.prototype,"isLoading",void 0);
_.m([_.K({computed:"computeIsPollHeaderEnabled(data)"}),_.L("design:type",Boolean)],Dj.prototype,"isPollHeaderEnabled",void 0);_.m([_.K(),_.L("design:type",Object)],Dj.prototype,"shouldHideAuthor",void 0);_.m([_.K(),_.L("design:type",Object)],Dj.prototype,"shouldShowVideoTime",void 0);_.m([_.K(),_.L("design:type",Object)],Dj.prototype,"isInEngagementPanel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Dj.prototype,"hideBorder",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Dj.prototype,"usesFullLockup",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Dj.prototype,"shouldShowMenuInCompactView",void 0);_.m([_.W("isInEngagementPanel"),_.L("design:type",Number),_.L("design:paramtypes",[])],Dj.prototype,"postTextMaxLines",null);_.m([_.W("data.icon.iconType"),_.L("design:type",Object),_.L("design:paramtypes",[])],Dj.prototype,"pollIcon",null);
_.m([_.Gb("data.contentText"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Dj.prototype,"contentTextChanged",null);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Dj.prototype,"dataChanged",null);_.m([_.Gb("isLoading"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Dj.prototype,"isLoadingChanged",null);
_.m([_.ob("yt-navigate"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],Dj.prototype,"onYtNavigate",null);_.m([_.ob("yt-commentbox-dismiss"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Dj.prototype,"onYtCommentboxDismiss",null);_.m([_.ob("yt-comment-poll-revert"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],Dj.prototype,"onYtCommentPollRevert",null);
_.m([_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.XA]),_.L("design:returntype")],Dj.prototype,"onYtServiceRequestSent",null);_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],Dj.prototype,"onYtServiceRequestCompleted",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],Dj.prototype,"voteCount",null);
_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],Dj.prototype,"commentCount",null);_.m([_.W("data.backstageAttachment"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Dj.prototype,"hasPoll",null);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Dj.prototype,"hasQuiz",null);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Dj.prototype,"hasUploadedVideo",null);
_.m([_.N({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],Dj);
_.I(Dj,"ytd-backstage-post-renderer",function(){if(Cx4!==void 0)return Cx4;var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Cx4=g},{mode:1});var av6;var oR=function(){var g=_.a.apply(this,arguments)||this;g.editDialog=null;g.showExpandButton=!1;g.isRichGrid=!1;g.usesFullLockup=!1;return g};
_.f(oR,_.a);_.S=oR.prototype;_.S.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.originalPost":{id:"original-post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}},postRenderer:{component:"ytd-post-renderer",properties:{isRichGridRepost:"[[isRichGrid]]"}}}},editDialog:{id:"repost-edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}}};
_.S.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.S.computeShowExpandButton=function(g){return this.usesCompactLockup||g&&g.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.S.computeUsesCompactLockup=function(g){return!!g.condensedContent};
_.S.computeShowFullContentText=function(g){return!g};
_.S.onYtNavigate=function(g){g=this.get("updateCommentDialogEndpoint",g.detail.endpoint);this.openEditDialog(g)};
_.S.onYtCommentboxDismiss=function(){this.editDialog=null};
_.S.openEditDialog=function(g){g&&g.dialog&&(this.editDialog=g.dialog,g=this.repostEditDialogEl.firstElementChild)&&(g.focus(),g.openDialog&&g.openDialog())};
_.S.onTap=function(g){if(this.data){var r=null;this.usesCompactLockup&&!_.Zy(_.Z1(g)||[],this.hostElement,["YT-IMG-SHADOW"])?r=this.get("navigationEndpoint",this.data):g.target===this.moreButtonEl&&(r=this.get("navigationEndpoint",g.target.data));r&&_.Sh(this.hostElement,"yt-navigate",{endpoint:r})}};
oR.prototype.onYtCommentboxDismiss=oR.prototype.onYtCommentboxDismiss;oR.prototype.onYtNavigate=oR.prototype.onYtNavigate;oR.prototype.dataChanged=oR.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],oR.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],oR.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],oR.prototype,"data",void 0);
_.m([_.K(),_.L("design:type",Object)],oR.prototype,"editDialog",void 0);_.m([_.K({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],oR.prototype,"usesCompactLockup",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],oR.prototype,"showExpandButton",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],oR.prototype,"isRichGrid",void 0);
_.m([_.K({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.L("design:type",Boolean)],oR.prototype,"showFullContentText",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],oR.prototype,"usesFullLockup",void 0);_.m([_.zb("#more"),_.L("design:type",Object)],oR.prototype,"moreButtonEl",void 0);_.m([_.zb("#repost-content-text"),_.L("design:type",HTMLElement)],oR.prototype,"repostContentTextEl",void 0);
_.m([_.zb("#repost-edit-dialog"),_.L("design:type",HTMLElement)],oR.prototype,"repostEditDialogEl",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],oR.prototype,"dataChanged",null);_.m([_.ob("yt-navigate"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],oR.prototype,"onYtNavigate",null);
_.m([_.ob("yt-commentbox-dismiss"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],oR.prototype,"onYtCommentboxDismiss",null);_.m([_.N({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],oR);
_.I(oR,"ytd-shared-post-renderer",function(){if(av6!==void 0)return av6;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return av6=g},{mode:1});var Xlw;var NPb;var G8=function(){return _.a.apply(this,arguments)||this};
_.f(G8,_.a);G8.prototype.attached=function(){var g=this;this.networkStatusManager||(this.networkStatusManager=new _.id,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){g.onlineHandler()}))};
G8.prototype.detached=function(){var g=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){g.onlineHandler()}),delete this.networkStatusManager)};
G8.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],G8.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],G8.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],G8.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],G8);
_.I(G8,"ytd-reload-page-button-renderer",function(){if(NPb!==void 0)return NPb;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);
return NPb=g},{mode:1});var IvZ={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"},QH=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return g};
_.f(QH,_.a);_.S=QH.prototype;_.S.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.S.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.S.computeHasBodyText=function(g){return!!g.bodyText};
_.S.computeButtons=function(g){var r=[];g.ctaButton&&r.push(g.ctaButton);g.secondaryButton&&r.push(g.secondaryButton);return r};
_.S.computeRendererStyle=function(g){return g.style?g.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():g.icon?"":"no-icon"};
_.S.getIconName=function(g,r){r=r===void 0?!1:r;if(g===void 0)return"";g=this.get("icon.iconType",g);var E;_.Y("enable_hlp_client_icon_pick")?E=this.getThemedIcon(g,r):E=g;(r=IvZ[E])||(r="yt-icons");return[r,E].join(":")};
_.S.getThemedIcon=function(g,r){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(g)?r?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(g)?r?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":g};
_.S.isThumbnail=function(g){return!!g.thumbnail};
_.S.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.S.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],QH.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],QH.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],QH.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],QH.prototype,"data",void 0);
_.m([_.K({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.L("design:type",String)],QH.prototype,"rendererStyle",void 0);_.m([_.K({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.L("design:type",String)],QH.prototype,"iconName",void 0);_.m([_.K({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],QH.prototype,"thumbnail",void 0);_.m([_.K({computed:"computeButtons(data)"}),_.L("design:type",Array)],QH.prototype,"buttons",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],QH.prototype,"isDarkTheme",void 0);_.m([_.K({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],QH.prototype,"hasBodyText",void 0);_.m([_.N({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],QH);
_.I(QH,"ytd-background-promo-renderer",function(){if(Xlw!==void 0)return Xlw;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Xlw=g},{mode:1});var mLb;var z8=function(){var g=_.a.apply(this,arguments)||this;g.collections=_.Y("web_modern_collections_v2");return g};
_.f(z8,_.a);_.hx.Object.defineProperties(z8.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var g,r,E,B,w,O;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(g=this.data)==null?void 0:(r=g.thumbnail)==null?void 0:r.sampledThumbnailColor,vibrantColorPalette:(E=this.data)==null?void 0:(B=E.thumbnail)==null?void 0:B.vibrantColorPalette,darkColorPalette:(w=this.data)==null?void 0:(O=w.thumbnail)==null?void 0:O.darkColorPalette,experimentEnabled:this.collections}}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],z8.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],z8.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],z8.prototype,"collections",void 0);_.m([_.W("data","collections"),_.L("design:type",Object),_.L("design:paramtypes",[])],z8.prototype,"collectionStack",null);_.m([_.N({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],z8);
_.I(z8,"ytd-compact-station-renderer",function(){if(mLb!==void 0)return mLb;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return mLb=g},{mode:1});var cb6;var kp=function(){var g=_.a.apply(this,arguments)||this;g.isRichGrid=!1;return g};
_.f(kp,_.a);kp.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]]"}}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],kp.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],kp.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],kp.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],kp.prototype,"isRichGrid",void 0);_.m([_.N({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],kp);
_.I(kp,"ytd-grid-channel-renderer",function(){if(cb6!==void 0)return cb6;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return cb6=g},{mode:1});var ibU;var HV=function(){return _.a.apply(this,arguments)||this};
_.f(HV,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],HV.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],HV.prototype,"data",void 0);_.m([_.N({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],HV);
_.I(HV,"ytd-grid-movie-playlist-renderer",function(){if(ibU!==void 0)return ibU;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return ibU=g},{mode:1});var LVZ;var pH=function(){var g=_.a.apply(this,arguments)||this;g.downloadProgress=0;g.transferState="TRANSFER_STATE_UNKNOWN";g.modernButtons=_.Y("web_modern_buttons");g.useModernCollectionsV2=_.Y("web_modern_collections_v2");return g};
_.f(pH,_.a);pH.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
pH.prototype.configureRendererStamper=function(){return{"data.menu":qZ}};
pH.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
pH.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.Y("woffle_playlist_renderer_killswitch")){var g,r=liJ(this.entityInfo,this.transferState,this.downloadProgress,(g=this.data)==null?void 0:g.playlistId,this.isOnline);g=r.viewPlaylistText;var E=r.badges;r=r.thumbnailOverlays;this.isDownloads=!!g||!!E;this.set("data.viewPlaylistText",g);E&&E.length>0&&this.set("data.badges",E);r&&r.length>0&&this.set("data.thumbnailOverlays",
r)}};
_.hx.Object.defineProperties(pH.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 g;return!((g=this.data)==null?0:g.menu)}}});
pH.prototype.transferStateChanged=pH.prototype.transferStateChanged;pH.prototype.dataChanged=pH.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],pH.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.K4),_.L("design:type",Object)],pH.prototype,"ytdLockupBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],pH.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],pH.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.K({selector:_.$Ct,selectorArgs:["data.playlistId"]}),_.L("design:type",Object)],pH.prototype,"downloadProgress",void 0);_.m([_.K({selector:_.Cf,selectorArgs:["data.playlistId"]}),_.L("design:type",Object)],pH.prototype,"transferState",void 0);_.m([_.K({selector:fcL,selectorArgs:["data.playlistId"]}),_.L("design:type",Object)],pH.prototype,"entityInfo",void 0);_.m([_.K({selector:_.e9}),_.L("design:type",Boolean)],pH.prototype,"isOnline",void 0);
_.m([_.K(),_.L("design:type",Object)],pH.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],pH.prototype,"downloadRenderData",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],pH.prototype,"modernButtons",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],pH.prototype,"isDownloads",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],pH.prototype,"useModernCollectionsV2",void 0);
_.m([_.W("transferState"),_.K({reflectToAttribute:!0}),_.L("design:type",String),_.L("design:paramtypes",[])],pH.prototype,"downloadState",null);_.m([_.W("data"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],pH.prototype,"menuHidden",null);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],pH.prototype,"dataChanged",null);
_.m([_.Yk("transferState","downloadProgress","isOnline"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],pH.prototype,"transferStateChanged",null);_.m([_.N({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],pH);
_.I(pH,"ytd-grid-playlist-renderer",function(){if(LVZ!==void 0)return LVZ;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return LVZ=g},{mode:1});var VXb;var Yp=function(){var g=_.a.apply(this,arguments)||this;g.collections=_.Y("web_modern_collections_v2");return g};
_.f(Yp,_.a);Yp.prototype.configureRendererStamper=function(){return{"data.menu":qZ,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.hx.Object.defineProperties(Yp.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var g,r,E,B,w,O;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(g=this.data)==null?void 0:(r=g.thumbnail)==null?void 0:r.sampledThumbnailColor,vibrantColorPalette:(E=this.data)==null?void 0:(B=E.thumbnail)==null?void 0:B.vibrantColorPalette,darkColorPalette:(w=this.data)==null?void 0:(O=w.thumbnail)==null?void 0:O.darkColorPalette,experimentEnabled:this.collections}}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Yp.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.Ji),_.L("design:type",Object)],Yp.prototype,"ytdDismissibleItemBehavior",void 0);_.m([_.P(_.K4),_.L("design:type",Object)],Yp.prototype,"ytdLockupBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Yp.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Yp.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Yp.prototype,"collections",void 0);_.m([_.W("data","collections"),_.L("design:type",Object),_.L("design:paramtypes",[])],Yp.prototype,"collectionStack",null);_.m([_.N({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],Yp);
_.I(Yp,"ytd-grid-radio-renderer",function(){if(VXb!==void 0)return VXb;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return VXb=g},{mode:1});var hem;var RR=function(){var g=_.a.apply(this,arguments)||this;g.useModernCollectionsV2=_.Y("web_modern_collections_v2");return g};
_.f(RR,_.a);RR.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
RR.prototype.computeNavigationEndpoint=function(g){return m4J(g==null?void 0:g.navigationEndpoint)};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],RR.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],RR.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.K4),_.L("design:type",Object)],RR.prototype,"ytdLockupBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],RR.prototype,"data",void 0);_.m([_.K({computed:"computeNavigationEndpoint(data)"}),_.L("design:type",Object)],RR.prototype,"computedNavigationEndpoint",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],RR.prototype,"useModernCollectionsV2",void 0);_.m([_.N({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],RR);
_.I(RR,"ytd-grid-show-renderer",function(){if(hem!==void 0)return hem;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return hem=g},{mode:1});var ZbZ;_.nH=function(g){this.playerClient=g};
_.ybw=function(g,r,E){E=E===void 0?{}:E;return g.playerClient.setOption("ad",r,E)};
_.nH.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.nH.prototype.executeCommand=function(g,r){this.getOptions().includes("executeCommand")?_.ybw(this,"executeCommand",{command:g,layoutId:r}):_.yU("Calling executeCommand when adModule is not loaded")};var sd=function(){return _.a.apply(this,arguments)||this};
_.f(sd,_.a);sd.prototype.getLayoutId=function(){var g=_.XS("yt.www.ads.eventcache.getLastCompanionData");return g?(g=g())&&g.layoutId:null};
sd.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var g=_.Tw(),r=this.getLayoutId(),E=this.data.clickthroughEndpoint;g&&r&&_.Y("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?g.getPlayerPromise().then(function(B){(new _.nH(B)).executeCommand(E,r)}):_.Sh(this.hostElement,"yt-navigate",{endpoint:E})}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],sd.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],sd.prototype,"data",void 0);_.m([_.N({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],sd);
_.I(sd,"ytd-shopping-companion-item-renderer",function(){if(ZbZ!==void 0)return ZbZ;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return ZbZ=g},{mode:1});var vsT;var fH=function(){var g=_.a.apply(this,arguments)||this;g.isExpandableContent=!1;return g};
_.f(fH,_.a);_.hx.Object.defineProperties(fH.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return((g=this.data)==null?void 0:g.price)||((r=this.data)==null?void 0:(E=r.dealsData)==null?void 0:E.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var g,r;if((g=this.data)!=null&&g.dealsData&&((r=this.data)==null||!r.priceReplacementText)){g=this.data.dealsData;var E,B,w;return((E=g.salesData)==null?void 0:E.originalPrice)||((B=g.priceDropData)==null?void 0:B.referencePrice)||((w=g.promotionData)==null?void 0:w.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var g,r;return(g=this.data)==null?void 0:(r=g.dealsData)==null?void 0:r.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],fH.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],fH.prototype,"componentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],fH.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],fH.prototype,"isExpandableContent",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],fH.prototype,"showCta",null);
_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],fH.prototype,"ctaText",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],fH.prototype,"hasPriceTopPosition",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],fH.prototype,"hasPriceBottomPosition",null);_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],fH.prototype,"useNewStyle",null);
_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],fH.prototype,"showPriceReplacementText",null);_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],fH.prototype,"priceValue",null);_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],fH.prototype,"showDeal",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],fH.prototype,"showAffiliateDisclaimer",null);
_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],fH.prototype,"useSaleStyle",null);_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],fH.prototype,"useFromBrandCtaStyle",null);_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],fH.prototype,"useFromVendorCtaStyle",null);
_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],fH.prototype,"useShoppingCollectionCtaStyle",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],fH);
_.I(fH,"ytd-vertical-product-card-renderer",function(){if(vsT!==void 0)return vsT;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return vsT=g},{mode:1});var dLD;var $p=function(){return _.a.apply(this,arguments)||this};
_.f($p,_.a);$p.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],$p.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],$p.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.K4),_.L("design:type",Object)],$p.prototype,"ytdLockupBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],$p.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],$p);
_.I($p,"ytd-grid-movie-renderer",function(){if(dLD!==void 0)return dLD;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return dLD=g},{mode:1});var TPU;var jO=function(){var g=_.a.apply(this,arguments)||this;g.rounded=!0;g.itemStyle="small-item";return g};
_.f(jO,_.a);jO.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var g,r,E,B,w=(r=_.n((g=this.data)==null?void 0:g.buttonCommand,_.QA))==null?void 0:(E=r.item)==null?void 0:(B=E.notificationTextRenderer)==null?void 0:B.successResponseText;w&&_.NPc(this.hostElement,w)}};
_.hx.Object.defineProperties(jO.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var g,r;return((g=this.data)==null?void 0:g.isProductPlaceholder)!==void 0&&((r=this.data)==null?void 0:r.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.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}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],jO.prototype,"ytRendererBehavior",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],jO.prototype,"rounded",void 0);_.m([_.K(),_.L("design:type",Object)],jO.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],jO.prototype,"itemStyle",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],jO.prototype,"hasPrice",null);
_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],jO.prototype,"hasPriceReplacementText",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],jO.prototype,"hasAdditionalFeesText",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],jO.prototype,"hasAffiliateDisclaimer",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],jO.prototype,"isProductPlaceholder",null);
_.m([_.K(),_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],jO.prototype,"hideOpenInNewIcon",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],jO.prototype,"ariaLabel",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],jO);
_.I(jO,"ytd-merch-shelf-item-renderer",function(){if(TPU!==void 0)return TPU;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return TPU=g},{mode:1});var gZA=_.dG(function(g){return _.G("button-card-view-model",{el:_.T$(_.xo(function(){return g.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return g.data().title},
role:"button"},_.G(_.jk,{model:{}}),_.G("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.G("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.G(_.p,{cond:function(){return g.data().image},
then:function(r){return _.G(_.vw,{data:r,alt:function(){var E;return(E=g.data().title)!=null?E:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.G("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return g.data().title})))},"db");_.Y("web_button_view_model_wcw_registration_killswitch")||_.BK(gZA,"button-card-view-model",{props:{data:_.cP}});_.BK(_.dG(function(g){g=_.y7(g,{className:void 0});var r=g.data;g=g.className;var E=_.kB(function(){return r().onTapCommand},void 0,"NprDr");
return _.G("ytd-shopping-item-card",{class:_.QY("ytdShoppingItemCardHost",g)},_.G(_.NQ,{command:E,className:"ytdShoppingItemCardHostLink"},_.G("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.G(_.Af,{data:function(){return r().thumbnailViewModel}},{thumbnailViewModel:function(B){return _.G(_.iI,{data:B.data,
aspectRatio:3})}})),_.G("div",null,_.G("p",{class:"ytdShoppingItemCardHostItemTitle"},_.G(_.hf,{text:function(){return r().itemTitle}})),_.G("p",{class:"ytdShoppingItemCardHostPrice"},_.G(_.hf,{text:function(){return r().priceOrStatus}})))))},"eb"),"ytd-shopping-item-card",{props:{data:_.cP,
className:_.cP}});var rJD={isAdsVideo:!0},EZT={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},B6Z={showPlayerControls:!1,videoPreviewDurationMs:15E3},wR4={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.Y("web_shorts_imp_fullwidth_killswitch")};var dr=null,IvY={};var ibV="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(" "),AI={},LVY=(AI.FEwhat_to_watch="home",AI.FEhashtag="hashtag",AI.FEtrending="trending",AI.FEhistory="history",AI.SPunlimited="premium",AI.FEmemberships_and_purchases="paid_memberships",AI.SPredeem_code="redeem",AI.SPverify_location="locate",AI.SPminor_moment="minor_moment",
AI.FEmini_app_container="mini_app",AI.FEnews_destination="news",AI.SPopen_in_app="open_in_app",AI.FEexplore="explore",AI.FEsubscriptions="subscriptions",AI.FEsfv_audio_pivot="sfv_audio_pivot",AI.FEplaylist_aggregation="playlist_aggregation",AI);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");_.lq("init");var SFI=function(){},qFz=_.dG(function(g){var r=g.data;
var E=g.inlineMetadata;var B=g.aspectRatio;var w=g.scrimStyle;var O=g.className;var M=g.useDefaultStyle;var u=new SFI,l=_.Y("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",Q=_.kB(function(){return(M==null?0:M())?l==="SHORTS_LOCKUP_STYLE_SLIM":r().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"gDCMs"),z=_.kB(function(){return _.t5(E)||Q()||!1},void 0,"x8cr8b"),k=function(){return(w==null?void 0:w())!==void 0?w==null?void 0:w():1},H=_.kB(function(){return r().belowThumbnailMetadata||
!z()},void 0,"Q84Mmb");
g=_.VI("ytm-shorts-lockup-view-model",function(h){u&&(u.hostElement=h,e())});
_.gH(g,{visibilityCallback:function(h){var y=r().onFirstVisible;h&&y&&_.I3(y)},
showOption:{calledOnce:!0,state:"visible"}});O=_.QY("shortsLockupViewModelHost",O);var R=_.VI("div"),A={};A=_.QY(function(){return Q(),"shortsLockupViewModelHostThumbnailContainer"},(A.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.t5(B)===1},A.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.t5(B)===2},A.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!Q()},A.shortsLockupViewModelHostThumbnailContainerCustomDimensions=
function(){return!_.Y("web_shorts_2_by_3_lockups_study")&&!_.Y("desktop_search_enable_two_by_three_shorts_aspect_ratio")},A));
var J,e=function(){if(u){var h;(h=J)==null||Tu(h);var y;u.hostElement&&((y=u.data)==null?0:y.inlinePlayerData)&&(J=XX({mediaRenderer:u,lockupElement:u.hostElement,thumbnailElement:R.value,videoPreviewOpts:wR4}))}};
_.bQ(function(){u&&(u.data=r(),e())},"M6Qdl");
var C=_.kB(function(){return r().thumbnail},void 0,"kpJjV"),X=_.kB(function(){return r().badge},void 0,"Uaw67"),Z=_.kB(function(){return r().onTap},void 0,"aZjcTb"),c={};
return _.G("ytm-shorts-lockup-view-model",{el:g,class:O},_.G(_.wW,null,_.G(_.NQ,{command:Z,className:_.QY("shortsLockupViewModelHostEndpoint",(c.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!H()},c),"reel-item-endpoint",""),
ariaHidden:function(){return!z()},
tabIndex:function(){return z()?0:-1}},_.G("div",{el:R,
class:A},_.G(_.p,{cond:C,then:function(){return _.G(_.vw,{data:function(){var h;return(h=C==null?void 0:C())!=null?h:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.G(_.p,{cond:z,
then:function(){return _.G(OQm,{data:r,scrimStyle:k,useDefaultStyle:M})}}),_.G(_.Af,{data:X},{badgeViewModel:function(h){return _.G(_.ZL,{data:h.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.G(_.p,{cond:function(){return z()&&r().menuOnTap},
then:function(){return _.G(UKn,{data:r,inlineMetadata:!0})}}),_.G(_.p,{cond:H,
then:function(){return _.G(M4n,{data:r,useDefaultStyle:M,inlineMetadata:z})}})))},"fb"),OQm=_.dG(function(g){var r=g.data;
var E=g.scrimStyle;var B=g.useDefaultStyle;var w=_.Y("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",O=B&&_.Y("web_hide_primary_text_for_pivot_panel"),M=_.kB(function(){return(B==null?0:B())?w==="SHORTS_LOCKUP_STYLE_SLIM":r().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"CmTtFd");
g={};g=_.QY("shortsLockupViewModelHostInlineMetadata",(g.shortsLockupViewModelHostMetadataRounded=function(){return!M()},g.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(E==null?void 0:E())===3&&!_.Y("enable_shorts_lockup_new_scrim")},g.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(E==null?void 0:E())===3&&_.Y("enable_shorts_lockup_new_scrim")},g.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(E==null?void 0:E())===2||(E==null?void 0:
E())===4},g.shortsLockupViewModelHostShowOverPlayer=function(){return!0},g),"image-overlay-text");
var u={};return _.G("div",{class:g},_.G("h3",{class:_.QY("shortsLockupViewModelHostMetadataTitle",(u.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(E==null?void 0:E())===4},u)),
"aria-label":function(){return r().accessibilityText}},_.G(_.p,{cond:function(){var l;
return!((l=r().overlayMetadata)==null||!l.primaryText)&&!O},
then:function(){return _.G(_.hf,{text:function(){var l;return(l=r().overlayMetadata)==null?void 0:l.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.G(_.p,{cond:function(){var l;
return(l=r().overlayMetadata)==null?void 0:l.secondaryText},
then:function(){return _.G(uCn,{data:r,scrimStyle:E,className:void 0})}}))},"gb"),M4n=_.dG(function(g){var r=g.data;
var E=g.useDefaultStyle;var B=g.inlineMetadata;var w=_.Y("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",O=_.kB(function(){return(E==null?0:E())?w==="SHORTS_LOCKUP_STYLE_SLIM":r().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"Oawb6e");
g=_.QY(function(){return O()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var M=_.VI("div"),u,l=_.HK(function(A){if(_.WX(_.eT(A),M.value,["AVATAR-VIEW-MODEL"]))return!1;var J;(J=u)==null||J.click();return!1}),Q=_.kB(function(){return r().belowThumbnailMetadata||r().overlayMetadata},void 0,"cXzqNe"),z=function(){return r().menuOnTap&&!B()},k=function(){var A;
return(A=Q())==null?void 0:A.avatar},H={},R={};
return _.G("div",{class:_.QY(g,(H.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!k()},H.shortsLockupViewModelHostOutsideMetadataHasMenu=z,H)),
"on:click":l,el:M},_.G(_.Af,{data:k},{avatarViewModel:function(A){return _.G("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.G(_.sV,{data:A.data}))}}),_.G("div",null,_.G("h3",{class:_.QY("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(R.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var A,J;
return!((A=Q())==null?0:(J=A.primaryText)==null?0:J.content)},R)),
"aria-label":function(){return r().accessibilityText}},_.G(_.NQ,{ref:function(A){return void(u=A)},
command:function(){return r().onTap},
className:_.QY("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var A,J;return(A=Q())==null?void 0:(J=A.primaryText)==null?void 0:J.content}},_.G(_.p,{cond:function(){var A;
return(A=Q())==null?void 0:A.primaryText},
then:function(A){return _.G(_.hf,{text:A,noEndpoints:!0,noStyleRuns:!0})}}))),_.G(_.p,{cond:function(){var A;
return(A=Q())==null?void 0:A.secondaryText},
then:function(A){return _.G("div",{class:_.QY("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead"),"aria-hidden":"true"},_.G(_.hf,{text:A,noStyleRuns:!0}))}})),_.G(_.p,{cond:z,
then:function(){return _.G(UKn,{data:r,inlineMetadata:!1})}}))},"hb"),uCn=_.dG(function(g){var r=g.data;
var E=g.scrimStyle;g=g.className;var B={};return _.G("div",{class:_.QY((B.shortsLockupViewModelHostMetadataSubhead=function(){return(E==null?void 0:E())!==4},B.shortsLockupViewModelHostMetadataSubheadNew=_.Y("enable_shorts_lockup_new_scrim"),B.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(E==null?void 0:E())===4},B),g),
"aria-hidden":"true"},_.G(_.hf,{text:function(){var w;return(w=r().overlayMetadata)==null?void 0:w.secondaryText},
noStyleRuns:!0}))},"ib"),UKn=_.dG(function(g){var r=g.data;
var E=g.inlineMetadata;g={};g=_.QY((g.shortsLockupViewModelHostInlineMetadataMenu=function(){return E()},g.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!E()},g.shortsLockupViewModelHostShowOverPlayer=function(){return!0},g),"image-overlay-text");
return _.G("div",{class:g},_.G(ZB,{data:function(){return{style:E()?"overlay":"mono",accessibilityLabel:r().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(B){B.preventDefault();B.stopPropagation();var w=_.XI({elementsCommand:r().menuOnTap,forceNewState:!0});if(w==null?0:w.onclick)w.onclick(B)}}},
iconName:"MORE_VERT"}))},"jb");var l5U=_.dG(function(g){var r=g.data;var E=g.inlineMetadata;var B=g.aspectRatio;var w=g.scrimStyle;var O=g.className;var M=g.useDefaultStyle;g=_.kB(function(){var u=r().entityId;return u?u.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.G("ytm-shorts-lockup-view-model-v2",{class:_.QY("shortsLockupViewModelHost",O)},_.G(_.d$,{contentId:g,aspectRatio:function(){return(B==null?void 0:B())===1?1:(B==null?void 0:B())===2?2:4}},function(){return _.G(qFz,{data:r,
inlineMetadata:E,aspectRatio:B,scrimStyle:w,className:O,useDefaultStyle:M})}))},"kb");_.BK(l5U,"ytm-shorts-lockup-view-model-v2",{props:{data:_.EB,inlineMetadata:_.EB,aspectRatio:_.EB,scrimStyle:_.EB,className:_.EB,useDefaultStyle:_.EB}});var DKT=16/9*210,b9=function(){var g=_.a.apply(this,arguments)||this;g.isExpandableContent=!1;g.hideShelfHeader=!1;g.engagementPanel=!1;g.buttonClasses=["arrow"];g.isSearch=!1;g.disableScrollEventListener=!1;g.containsLockup=!1;g.overrideArrowPositionForProductCard=!1;g.overrideArrowPositionForShoppingItemCard=!1;g.overrideArrowPositionForReelItems=!1;g.overrideArrowPositionForGridMovie=!1;g.overrideArrowPositionToCenter=!1;g.isSearchPostShelf=!1;g.overrideArrowPositionForMixedShelf=!1;g.overrideArrowPositionForMixedShelfShortsOnly=
!1;g.hasBigThumbsReelItems=!1;g.shouldUseMixedListHeight=!1;g.shouldUseShortsListHeight=!1;g.gridVideoWidth=0;g.isSearchVodShelf=!1;g.disableWheelScroll=!1;g.sizing="COMPACT";g.shortsLockupAspectRatio=0;return g};
_.f(b9,_.a);_.S=b9.prototype;
_.S.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"yt-horizontal-list-renderer lockup",containerType:4},properties:{force16By9ThumbnailAspectRatio:"[[data.force16By9ThumbnailAspectRatio]]",sizing:"[[sizing]]"}},backgroundPromoRenderer:"ytd-background-promo-renderer",compactStationRenderer:"ytd-compact-station-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",shoppingItemCardViewModel:{component:"ytd-shopping-item-card",
params:{className:"yt-horizontal-list-renderer"}},gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]",width:"[[gridVideoWidth]]"}},merchShelfItemRenderer:"ytd-merch-shelf-item-renderer",shoppingCompanionCarouselItemRenderer:"ytd-shopping-companion-item-renderer",displayAdRenderer:"ytd-display-ad-renderer",
compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",postRenderer:"ytd-post-renderer",reelItemRenderer:{component:"ytd-reel-item-renderer",properties:{isSearch:"[[isSearch]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",params:{className:"yt-horizontal-list-renderer"},properties:{aspectRatio:"[[shortsLockupAspectRatio]]"}},sharedPostRenderer:"ytd-shared-post-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",
properties:{isExpandableContent:"[[isExpandableContent]]"}},buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonCardViewModel:{component:"button-card-view-model"}}},"data.previousButton":{id:"left-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},classListBinding:"[[buttonClasses]]"}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"},classListBinding:"[[buttonClasses]]"}}}}};
_.S.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.Y("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.S.computeInitialCountNumber=function(g){if(!g)return 6;var r=g.items.some(function(O){return!!O.topicRecommendationsChipRenderer}),E=g.items.some(function(O){return!!O.displayAdRenderer}),B=this.computeShouldListItemsHaveEqualHeight(g),w=g.items.some(function(O){return!!O.gridPlaylistRenderer});
g=g.items.some(function(O){return!!O.shoppingItemCardViewModel});
return r?9:E?8:w||B?10:g?7:6};
_.S.computeContainsPost=function(g){return!!g&&!!g.items&&g.items.some(function(r){return!!r.postRenderer})};
_.S.computeContainsLockup=function(){if(_.Y("web_horizontal_list_lockup_arrow_killswitch"))return!1;var g,r;return(g=this.data)==null?void 0:(r=g.items)==null?void 0:r.some(function(E){return!!E.lockupViewModel})};
_.S.maybeUpdateLockupAspectRatio=function(){var g,r;if(this.computeContainsLockup()&&((g=this.data)==null?0:(r=g.items)==null?0:r.length)){var E;g=VZt((E=this.data.items[0].lockupViewModel)==null?void 0:E.contentType,this.data.force16By9ThumbnailAspectRatio);E=IAY(g);E=this.computeLockupWidth()/E;_.ua(this.hostElement,{"--yt-horizontal-list-content-height":E+"px"})}};
_.S.computeOverrideArrowPositionForProductCard=function(g){if(this.isExpandableContent)return!1;var r;return!!(g==null?0:(r=g.items)==null?0:r.some(function(E){return!!E.verticalProductCardRenderer}))};
_.S.computeOverrideArrowPositionForShoppingItemCard=function(g){var r;return!!(g==null?0:(r=g.items)==null?0:r.some(function(E){return!!E.shoppingItemCardViewModel}))};
_.S.computeOverrideArrowPositionForReelItemRenderer=function(g){return this.containsReelItemRenderer(g)};
_.S.computeHasBigThumbsReelItems=function(g,r){return g&&this.containsReelItemRenderer(r)};
_.S.computeShouldListItemsHaveEqualHeight=function(g){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(g==null?void 0:g.itemSizeConstraint)};
_.S.computeShouldListItemsHaveShortsHeight=function(g){return this.computeShouldListItemsHaveEqualHeight(g)&&!this.containsGridVideoRenderer(g)};
_.S.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.S.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.S.containsReelItemRenderer=function(g){var r;return!!(g==null?0:(r=g.items)==null?0:r.some(function(E){return!(!E.reelItemRenderer&&!E.shortsLockupViewModel)}))};
_.S.containsGridVideoRenderer=function(g){var r;return!!(g==null?0:(r=g.items)==null?0:r.some(function(E){return!!E.gridVideoRenderer||!!E.lockupViewModel}))};
_.S.computeContainsGridMovieRenderer=function(g){var r;return!!(g==null?0:(r=g.items)==null?0:r.some(function(E){return!!E.gridMovieRenderer}))};
_.S.computeOverrideArrowPositionToCenter=function(g){return this.computeIsSearchPostShelf(g)};
_.S.computeIsSearchPostShelf=function(g){var r;return!!(g==null?0:(r=g.items)==null?0:r.some(function(E){var B,w;return((w=(B=E.postRenderer)==null?void 0:B.surface)!=null?w:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.S.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(g){var r;return!!(g==null?0:(r=g.items)==null?0:r.some(function(E){var B,w,O;return((O=(B=E.backgroundPromoRenderer)==null?void 0:(w=B.style)==null?void 0:w.value)!=null?O:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.S.computeIsSearchVodShelf=function(g,r){return g&&this.containsGridVideoRenderer(r)};
_.S.computeDisableWheelScroll=function(g,r){return this.computeIsSearchVodShelf(g,r)};
_.S.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.S.computeShortsLockupAspectRatio=function(){return 1};
_.S.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.ua(this.hostElement,{"--ytd-reel-item-thumbnail-height":DKT+"px"})};
b9.prototype.dataChanged=b9.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],b9.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],b9.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.yR.YtdHorizontalListBehavior),_.L("design:type",Object)],b9.prototype,"ytdHorizontalListBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],b9.prototype,"data",void 0);
_.m([_.K(),_.L("design:type",Object)],b9.prototype,"isExpandableContent",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],b9.prototype,"hideShelfHeader",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],b9.prototype,"engagementPanel",void 0);_.m([_.K(),_.L("design:type",Array)],b9.prototype,"buttonClasses",void 0);_.m([_.K(),_.L("design:type",Object)],b9.prototype,"isSearch",void 0);
_.m([_.K(),_.L("design:type",Object)],b9.prototype,"disableScrollEventListener",void 0);_.m([_.K({computed:"computeInitialCountNumber(data)"}),_.L("design:type",Number)],b9.prototype,"initialCount",void 0);_.m([_.K({computed:"computeContainsPost(data)"}),_.L("design:type",Boolean)],b9.prototype,"supportComponentResize",void 0);_.m([_.K({computed:"computeContainsPost(data)"}),_.L("design:type",Boolean)],b9.prototype,"containsPost",void 0);
_.m([_.K({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.L("design:type",Object)],b9.prototype,"containsLockup",void 0);_.m([_.K({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],b9.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.m([_.K({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.L("design:type",Object)],b9.prototype,"overrideArrowPositionForProductCard",void 0);_.m([_.K({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.L("design:type",Object)],b9.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.m([_.K({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.L("design:type",Object)],b9.prototype,"overrideArrowPositionForReelItems",void 0);_.m([_.K({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.L("design:type",Object)],b9.prototype,"overrideArrowPositionForGridMovie",void 0);
_.m([_.K({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.L("design:type",Object)],b9.prototype,"overrideArrowPositionToCenter",void 0);_.m([_.K({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.L("design:type",Object)],b9.prototype,"isSearchPostShelf",void 0);_.m([_.K({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.L("design:type",Object)],b9.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.m([_.K({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.L("design:type",Object)],b9.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.m([_.K({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.L("design:type",Object)],b9.prototype,"hasBigThumbsReelItems",void 0);
_.m([_.K({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.L("design:type",Object)],b9.prototype,"shouldUseMixedListHeight",void 0);_.m([_.K({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.L("design:type",Object)],b9.prototype,"shouldUseShortsListHeight",void 0);_.m([_.K({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.L("design:type",Object)],b9.prototype,"gridVideoWidth",void 0);
_.m([_.K({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.L("design:type",Object)],b9.prototype,"isSearchVodShelf",void 0);_.m([_.K({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.L("design:type",Object)],b9.prototype,"disableWheelScroll",void 0);_.m([_.K({computed:"computeSizing(isSearch)"}),_.L("design:type",Object)],b9.prototype,"sizing",void 0);
_.m([_.K({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.L("design:type",Object)],b9.prototype,"shortsLockupAspectRatio",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],b9.prototype,"dataChanged",null);
_.I(b9,"yt-horizontal-list-renderer",function(){if(kIw===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);kIw=g}g=kIw;return g},{mode:1});var oZZ;var G9w=[10,12,14,16,18,20,24,28,32,36],QPn=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],JI=function(){var g=_.a.apply(this,arguments)||this;g.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";g.hideOverflow=!1;g.useRoboto=!1;g.fontClass="";g.overflown=!1;g.actionMap={"yt-window-resized":"resize"};return g};
_.f(JI,_.a);_.S=JI.prototype;
_.S.attached=function(){var g=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();_.Lk(this,function(){g.resize()});
if(!_.SI){var r,E,B;(r=document)==null||(E=r.fonts)==null||(B=E.ready)==null||B.then(function(){g.resize()})}};
_.S.dataChanged=function(){this.resize()};
_.S.guideIsExpandedChanged=function(){this.resize()};
_.S.resize=function(){if(this.textNode.offsetWidth||this.textNode.offsetWidth){this.overflown&&(this.overflown=!1,this.textNode.classList.remove("overflown"));this.textNode.style.visibility="hidden";var g=this.getMaxNumLines(),r=this.getMinFont(),E=this.getMaxFont(),B=this.useRoboto?G9w:QPn;for(B=B.filter(function(O){return O<=E&&O>=r});B.length>1;){var w=Math.floor(B.length/2);
this.updateFontSize(B[w]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=g)B=B.slice(w,B.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>g)B=B.slice(0,w);else break}this.updateFontSize(B[B.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(g)}};
_.S.handleOverflow=function(g){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>g&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",g.toString()))};
_.S.updateFontSize=function(g){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+g;this.textNode.classList.add(this.fontClass)};
_.S.getMaxFont=function(){var g=this.useRoboto?G9w:QPn;g=g[g.length-1];return this.maxFontSize&&this.maxFontSize<=g?this.maxFontSize:g};
_.S.getMinFont=function(){var g=(this.useRoboto?G9w:QPn)[0];return this.minFontSize&&this.minFontSize>=g?this.minFontSize:g};
_.S.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.S.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.S.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.Vp(this.text).split("\n").length-1:Infinity};
_.S.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Lh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
JI.prototype.guideIsExpandedChanged=JI.prototype.guideIsExpandedChanged;JI.prototype.dataChanged=JI.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],JI.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],JI.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],JI.prototype,"actionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],JI.prototype,"text",void 0);
_.m([_.K(),_.L("design:type",String)],JI.prototype,"fontFamily",void 0);_.m([_.K(),_.L("design:type",Number)],JI.prototype,"maxWidth",void 0);_.m([_.K(),_.L("design:type",Number)],JI.prototype,"maxHeight",void 0);_.m([_.K(),_.L("design:type",Number)],JI.prototype,"maxFontSize",void 0);_.m([_.K(),_.L("design:type",Number)],JI.prototype,"minFontSize",void 0);_.m([_.K(),_.L("design:type",Number)],JI.prototype,"maxLines",void 0);_.m([_.K(),_.L("design:type",Object)],JI.prototype,"hideOverflow",void 0);
_.m([_.K({selector:_.oTl}),_.L("design:type",Boolean)],JI.prototype,"guideIsExpanded",void 0);_.m([_.zb("#container"),_.L("design:type",HTMLElement)],JI.prototype,"containerNode",void 0);_.m([_.zb("#text"),_.L("design:type",HTMLElement)],JI.prototype,"textNode",void 0);_.m([_.Yk("text"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],JI.prototype,"dataChanged",null);
_.m([_.Yk("guideIsExpanded"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],JI.prototype,"guideIsExpandedChanged",null);_.m([_.N({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],JI);
_.I(JI,"yt-dynamic-sizing-formatted-string",function(){if(oZZ!==void 0)return oZZ;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return oZZ=g},{mode:1});var zyI;_.k9D=function(g){_.gl.call(this,g)};
_.f(_.k9D,_.gl);var HQw=function(g){_.gl.call(this,g)};
_.f(HQw,_.k9D);var PV=function(){return _.a.apply(this,arguments)||this};
_.f(PV,_.a);PV.prototype.onTapSuspendedChannel=function(){var g;if((g=this.data)!=null&&g.serviceEndpoint){var r,E;(g=(E=_.n((r=this.data)==null?void 0:r.serviceEndpoint,_.II))==null?void 0:E.url)?_.co(g,void 0,void 0,window.top):(r=new HQw("Did not handle suspended account tap. No appealUrl."),_.tn(r))}else r=new HQw("Did not handle suspended account tap. No serviceEndpoint."),_.tn(r)};
PV.prototype.onTap=function(){var g=this,r=_.pW(),E,B=(E=_.Hw(r,{veType:7116}))!=null?E:void 0;_.Nh(r,{visualElement:B});_.IJ();this.saveRoleText();var w;if((w=this.data)==null?0:w.youtubeSuspended)this.onTapSuspendedChannel();else{var O=!1,M,u;(r=(u=_.n((M=this.data)==null?void 0:M.serviceEndpoint,_.Mfz))==null?void 0:u.supportedTokens)&&r.forEach(function(l){if(l.accountSigninToken)if(O=!0,g.onAccountItemTap)g.onAccountItemTap(l.accountSigninToken.signinUrl);else _.co(l.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!O){if(M=this.get("serviceEndpoint",this.data))O=!0,this.ytComponentBehavior.resolveCommand(M);O||_.FR(new HQw("Did not handle account switch tap. No token."))}}};
PV.prototype.saveRoleText=function(){if(this.data){var g=this.data,r=g.channelDelegationRole;if(r){var E,B=(E=_.n(g==null?void 0:g.serviceEndpoint,_.Mfz))==null?void 0:E.supportedTokens;if(!B){var w,O,M,u;B=(w=_.n(g==null?void 0:g.serviceEndpoint,_.R1))==null?void 0:(O=w.popup)==null?void 0:(M=O.confirmDialogRenderer)==null?void 0:(u=M.confirmButton)==null?void 0:u.buttonRenderer;var l;B=(l=_.n(B==null?void 0:B.command,_.D$))==null?void 0:l.commands;if(!B)return;var Q;B=(Q=_.n(B[1],_.Mfz))==null?
void 0:Q.supportedTokens}if(B){l=void 0;Q=_.U(B);for(B=Q.next();!B.done;B=Q.next())if(B=B.value,B.datasyncIdToken){l=B.datasyncIdToken.datasyncIdToken;break}if(l){var z;a:{if(_.BDl()&&(Q=_.z6D(l+"::pom"))){Q=new nB(Q);break a}Q=void 0}(z=Q)==null||z.set("role_text",r);if((zxA?zxA:window.location).href.indexOf("studio")!==-1&&(z=wdQ())){Q=z.src?(new URL(z.src)).origin:"*";var k;(k=z.contentWindow)==null||k.postMessage({action:"save_pom_role",datasyncId:l,roleText:r},Q)}}}}}};
_.hx.Object.defineProperties(PV.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var g,r,E=(g=this.data)==null?void 0:(r=g.accountPhoto)==null?void 0:r.thumbnails;return E&&E.length>0&&(E[0].height===36||E[0].height===48)?E[0].height:40}}});
PV.prototype.onTap=PV.prototype.onTap;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],PV.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],PV.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],PV.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!1}),_.L("design:type",Function)],PV.prototype,"onAccountItemTap",void 0);
_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],PV.prototype,"enableRingForActiveAccount",null);_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Number),_.L("design:paramtypes",[])],PV.prototype,"thumbnailSize",null);_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],PV.prototype,"onTap",null);_.m([_.N({is:"ytd-account-item-renderer",disableElementRegistration:!0})],PV);
_.I(PV,"ytd-account-item-renderer",function(){if(zyI!==void 0)return zyI;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return zyI=g},{mode:1});var pRw;var tI=function(){return _.a.apply(this,arguments)||this};
_.f(tI,_.a);tI.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.rM().resolve(_.Er).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],tI.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],tI.prototype,"data",void 0);_.m([_.N({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],tI);
_.I(tI,"ytd-identity-chip-renderer",function(){if(pRw!==void 0)return pRw;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return pRw=g},{mode:1});var YFU;var RyD;var nZZ;var sPb;var Fe=function(){var g=_.a.apply(this,arguments)||this;g.richItemMinWidth=_.wM("wn_grid_min_item_width",310);g.isShorts=!1;g.isWatchNext=!1;g.isExploreHub=!1;return g};
_.f(Fe,_.a);_.hx.Object.defineProperties(Fe.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var g=[],r=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.ua(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var E;if(((E=this.data)==null?0:E.rows)&&r)for(r*=this.data.rows,E=0;E<r;E++)g.push({});return g}}});
_.m([_.P(_.Ai),_.L("design:type",Object)],Fe.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Fe.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Fe.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,selector:_.Ps,value:3}),_.L("design:type",Number)],Fe.prototype,"itemsPerRow",void 0);_.m([_.K({selector:_.DCY,value:6}),_.L("design:type",Number)],Fe.prototype,"slimItemsPerRow",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Number)],Fe.prototype,"richItemMinWidth",void 0);_.m([_.K({reflectToAttribute:!0,selector:_.Jj}),_.L("design:type",Boolean)],Fe.prototype,"miniMode",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Fe.prototype,"isShorts",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Fe.prototype,"isWatchNext",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Fe.prototype,"isExploreHub",void 0);
_.m([_.W("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.L("design:type",Array),_.L("design:paramtypes",[])],Fe.prototype,"cardItems",null);_.m([_.N({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],Fe);
_.f5n=_.U2()(Fe,"ytd-ghost-grid-renderer",function(){if(sPb===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);sPb=g}g=sPb;return g},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.BK(_.dG(function(g){var r=_.y7(g,{numberOfComments:3}).numberOfComments,E=_.y7(g,{isInitialLoad:!1}).isInitialLoad,B=_.y7(g,{engagementPanel:!1}).engagementPanel,w=function(){return Math.min(Number(r==null?void 0:r())||20,20)};
return _.G("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.G(_.p,{cond:function(){return!(B==null?0:B())&&(E==null?void 0:E())},
then:function(){return _.G("div",{class:"ytGhostCommentsComments"},_.G("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.G("div",{class:_.QY("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.G("div",{class:_.QY("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.G("div",{class:"ytGhostCommentsGhostCard"},_.G("div",{class:"ytGhostCommentsAvatar"},_.G("div",{class:"ytGhostCommentsCircle"})),_.G("div",{class:"ytGhostCommentsComments"},_.G("div",{class:"ytGhostCommentsMeta"},
_.G("div",{class:_.QY("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.G("div",{class:_.QY("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.G("div",{class:"ytGhostCommentsComments"},_.G(_.Ra,{each:function(){return Array((w==null?void 0:w())||3)}},function(){return _.G("div",{class:"ytGhostCommentsGhostCard"},_.G("div",{class:"ytGhostCommentsAvatar"},_.G("div",{class:"ytGhostCommentsCircle"})),_.G("div",{class:"ytGhostCommentsHost"},_.G("div",{class:"ytGhostCommentsMeta"},
_.G("div",{class:_.QY("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.G("div",{class:_.QY("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.G("div",{class:_.QY("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.G("div",{class:"ytGhostCommentsGhostLikeDislike"},_.G("div",{class:_.QY("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.G("div",{class:_.QY("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"lb"),"yt-ghost-comments",{props:{numberOfComments:_.cP,
isInitialLoad:_.cP,engagementPanel:_.cP}});_.ek("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var eO=function(){var g=_.a.apply(this,arguments)||this;g.isOverridable=!1;g.spinnerActive=!1;g.showButton=!1;g.isCommentsSection=!1;g.engagementPanel=!0;g.isShortsGrid=!1;g.isShortsPage=!1;g.isWatchPage=!1;g.ghostCardExperimentEnabled=_.Y("show_ghost_comments_shorts_watch")||_.Y("show_ghost_comments_desktop_watch");g.originalShowButton=!1;g.endOfList=!1;return g};
_.f(eO,_.a);_.S=eO.prototype;_.S.resetIntersectionObserver=function(){var g;(g=this.observer)==null||g.disconnect();this.observer=void 0};
_.S.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var g,r;((g=this.data)==null?void 0:g.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((r=this.data)==null?0:r.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.S.initializeIntersectionObserver=function(){var g=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(r){r=_.U(r);for(var E=r.next();!E.done;E=r.next())E.value.isIntersecting&&(g.triggerContinuation(),g.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.S.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},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]]"}}}}}};
_.S.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var g;((g=this.data)==null?0:g.continuationEndpoint)&&(g=_.n(this.data.continuationEndpoint,_.x3))&&this.ytdReduxBehavior.dispatch(_.Bs({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:g}}))};
_.S.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.S.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.S.onServiceRequestCompleted=function(g,r){if(!_.Y("kevlar_hide_spinner_on_empty_continuation_killswitch")){var E;(E=r.actions)!=null&&E.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.S.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.S.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.S.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.S.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var g=3;if(this.engagementPanel){var r,E,B;g=Math.floor(((((r=this.hostElement)==null?void 0:(E=r.parentElement)==null?void 0:(B=E.parentElement)==null?void 0:B.scrollHeight)||108)-108)/108);g=this.isInitialLoad?Math.max(g,3):3}r=[].concat(_.jW(this.hostElement.querySelectorAll("yt-ghost-comments")));r=_.U(r);for(E=r.next();!E.done;E=r.next())E=E.value,E.numberOfComments=g,E.isInitialLoad=this.isInitialLoad,E.engagementPanel=
this.engagementPanel}};
_.S.detached=function(){this.resetIntersectionObserver()};
_.hx.Object.defineProperties(eO.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.Y("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.Y("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
eO.prototype.numberOfGhostCommentsChanged=eO.prototype.numberOfGhostCommentsChanged;eO.prototype.continuationTriggerOffsetChanged=eO.prototype.continuationTriggerOffsetChanged;eO.prototype.showButtonChanged=eO.prototype.showButtonChanged;eO.prototype.onYtServiceRequestCompletedForButtonRenderer=eO.prototype.onYtServiceRequestCompletedForButtonRenderer;eO.prototype.onServiceRequestCompleted=eO.prototype.onServiceRequestCompleted;eO.prototype.onYtServiceRequestSentForButtonRenderer=eO.prototype.onYtServiceRequestSentForButtonRenderer;
eO.prototype.observeData=eO.prototype.observeData;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],eO.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],eO.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.XQ.YtVisibilityBehavior),_.L("design:type",Object)],eO.prototype,"ytVisibilityBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],eO.prototype,"ytComponentBehavior",void 0);
_.m([_.P(_.Ai),_.L("design:type",Object)],eO.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],eO.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],eO.prototype,"isOverridable",void 0);_.m([_.K(),_.L("design:type",Object)],eO.prototype,"spinnerActive",void 0);_.m([_.K(),_.L("design:type",Object)],eO.prototype,"showButton",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],eO.prototype,"isCommentsSection",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],eO.prototype,"engagementPanel",void 0);_.m([_.K(),_.L("design:type",Object)],eO.prototype,"isShortsGrid",void 0);_.m([_.K({reflectToAttribute:!0,selector:_.Q1D}),_.L("design:type",Object)],eO.prototype,"isShortsPage",void 0);_.m([_.K({reflectToAttribute:!0,selector:_.Fc}),_.L("design:type",Object)],eO.prototype,"isWatchPage",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],eO.prototype,"ghostCardExperimentEnabled",void 0);
_.m([_.K(),_.L("design:type",Number)],eO.prototype,"continuationTriggerOffset",void 0);_.m([_.K(),_.L("design:type",Object)],eO.prototype,"endOfList",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],eO.prototype,"isInitialLoad",void 0);_.m([_.zb("ytd-button-renderer"),_.L("design:type",_.Lo)],eO.prototype,"buttonRenderer",void 0);_.m([_.K(),_.L("design:type",Object)],eO.prototype,"buttonOverrides",void 0);
_.m([_.K(),_.W("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.L("design:type",Object),_.L("design:paramtypes",[])],eO.prototype,"isShortsCommentsSection",null);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],eO.prototype,"observeData",null);
_.m([_.ob("yt-service-request-sent-button-renderer"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],eO.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.hR]),_.L("design:returntype")],eO.prototype,"onServiceRequestCompleted",null);
_.m([_.ob("yt-service-request-completed-button-renderer"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],eO.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.m([_.Yk("showButton"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],eO.prototype,"showButtonChanged",null);
_.m([_.Yk("continuationTriggerOffset"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],eO.prototype,"continuationTriggerOffsetChanged",null);_.m([_.Gb("isInitialLoad","engagementPanel"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],eO.prototype,"numberOfGhostCommentsChanged",null);_.m([_.N({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],eO);
_.I(eO,"ytd-continuation-item-renderer",function(){if(nZZ!==void 0)return nZZ;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return nZZ=g},{mode:1});var $Kb;var WV=function(){var g=_.a.apply(this,arguments)||this;g.downloadProgress=0;g.transferState="TRANSFER_STATE_UNKNOWN";g.downloadState="DOWNLOAD_STATE_UNKNOWN";g.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";g.offlineVideoPolicyExpirationTimestamp=0;g.downloadedVideoPlaybackPosition=0;return g};
_.f(WV,_.a);WV.prototype.dataChanged=function(){var g;this.videoData=_.n((g=this.data)==null?void 0:g.renderer,K4D);this.transferStateChanged()};
WV.prototype.downloadProgressChanged=function(){if(this.entityInfo){var g=Object.assign({},this.videoData),r=DJD(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),E=r.publishedTimeText,B=r.badges;g.shortViewCountText=r.shortViewCountText;g.publishedTimeText=E;g.badges=B;this.set("videoData",g)}};
WV.prototype.transferStateChanged=function(){if(this.entityInfo){var g=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",r=_.pf(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Hs(this.entityInfo.policyEntity),E=Object.assign({},this.videoData),B=DJD(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),w=B.publishedTimeText,O=B.badges;E.shortViewCountText=
B.shortViewCountText;E.publishedTimeText=w;E.badges=O;E.isDisabled=r;E.isWatched=this.downloadedVideoPlaybackPosition>0;E.navigationEndpoint=r?void 0:N8J(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var M;g&&((M=this.videoData)==null?0:M.videoId)&&!_.Y("dl_resume_click_killswitch")&&(E.isDisabled=!1,E.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});E.thumbnailOverlays=uLc(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",E)}};
WV.prototype.transferStateChanged=WV.prototype.transferStateChanged;WV.prototype.downloadProgressChanged=WV.prototype.downloadProgressChanged;WV.prototype.dataChanged=WV.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],WV.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],WV.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],WV.prototype,"data",void 0);
_.m([_.K(),_.L("design:type",Object)],WV.prototype,"videoData",void 0);_.m([_.K({selector:Kf,selectorArgs:["videoData.videoId"]}),_.L("design:type",Object)],WV.prototype,"downloadProgress",void 0);_.m([_.K(),_.L("design:type",Number)],WV.prototype,"relativeDateReference",void 0);_.m([_.K({selector:_.Ws,selectorArgs:["videoData.videoId"]}),_.L("design:type",Object)],WV.prototype,"transferState",void 0);
_.m([_.K({selector:CwV,selectorArgs:["videoData.videoId"]}),_.L("design:type",Object)],WV.prototype,"downloadState",void 0);_.m([_.K({selector:Y7o,selectorArgs:["videoData.videoId"]}),_.L("design:type",Object)],WV.prototype,"offlinePolicyAction",void 0);_.m([_.K({selector:R0o,selectorArgs:["videoData.videoId"]}),_.L("design:type",Object)],WV.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.m([_.K({selector:xD,selectorArgs:["videoData.videoId"]}),_.L("design:type",Object)],WV.prototype,"downloadedVideoPlaybackPosition",void 0);_.m([_.K({selector:s1l,selectorArgs:["videoData.videoId"]}),_.L("design:type",Object)],WV.prototype,"entityInfo",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],WV.prototype,"isDownloading",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],WV.prototype,"dataChanged",null);
_.m([_.Yk("downloadProgress"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],WV.prototype,"downloadProgressChanged",null);_.m([_.Yk("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],WV.prototype,"transferStateChanged",null);
_.m([_.N({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],WV);
_.I(WV,"ytd-downloaded-video-grid-video-renderer",function(){if($Kb!==void 0)return $Kb;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return $Kb=g},{mode:_.My("kevlar_poly_si_batch_j025")?1:2});var jPm;var CH=function(){};
CH.prototype.resolve=function(g,r){var E=this;return _.q(function(B){return _.D(B,E.resolveCommand(g,r),0)})};var AJD,KH;AJD=wQl(function(g){return g.targetId},{shouldPersist:!1});
KH=AJD.updateData;_.bQz=AJD.useUpdatableData;var JJI,PSb;JJI=wQl(function(g){return g.targetId});
PSb=JJI.updateData;_.t44=JJI.useUpdatableData;var FP6=ZbY.bind(null,KH),eyT=ZbY.bind(null,PSb);(function(g,r,E){var B=_.n(E==null?void 0:E.updatedRenderer,_.DPI);return B?g({targetId:r},function(){return B}):!1}).bind(null,KH);var xp=function(){};
_.f(xp,CH);xp.prototype.resolveCommand=function(g){var r;return _.q(function(E){r=_.n(g,_.PMl);if(!r)return E.return();FP6(r.targetId,r);_.Q3(E)})};var aR=function(){var g=_.Hi.apply(this,arguments)||this;g.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return g};
_.f(aR,_.Hi);_.S=aR.prototype;_.S.configureContinuationPathMap=function(){return{}};
_.S.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.S.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.S.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.S.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.S.handleAppendContinuationItemsAction=function(g){var r=_.n(g,_.XLn);if(this.data&&this.data.targetId&&r&&this.continuationPathMap&&r.targetId===this.data.targetId){var E=Wcl(g),B=E&&this.continuationPathMap[E];if(B&&E)if(g=this.get(B,this.data)){a:{for(E=0;E<g.length;E++){var w=g[E],O=void 0,M=!!_.n((O=_.n(w,fwT))==null?void 0:O.content,_.F4D);if(_.n(w,_.gx)||M)break a}E=g.length}B="data."+B;r.continuationItems?E===g.length-1?(this.pop(B),this.push.apply(this,[B].concat(_.jW(r.continuationItems)))):
E===g.length?this.push.apply(this,[B].concat(_.jW(r.continuationItems))):this.splice.apply(this,[B,E,1].concat(_.jW(r.continuationItems))):this.splice(B,E,1);(_.Y("web_enable_voting_animation")||_.Y("enable_music_web_cairo_voting_animation"))&&_.Sh(this.hostElement,"yt-append-continuation-items-action-finished");_.Sh(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.el(new _.Rj("append continuation items does not exist",E));else _.el(new _.Rj("append continuation path does not exist",
E))}};
_.S.handleReloadContinuationItemsCommand=function(g){var r=_.n(g,_.PMl);if(this.data&&r){if(_.Y("web_explore_hub")||_.Y("web_client_explore_hub")||_.Y("web_explore_hub_on_hover")||_.Y("web_client_explore_hub_on_hover"))try{_.rM().resolve(xp).resolveCommand(g)}catch(O){}if(this.data.targetId&&this.continuationPathMap&&r.targetId===this.data.targetId&&(!_.Y("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||r.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var E,B=
(E=r.slot)==null?void 0:E.replace("RELOAD_CONTINUATION_SLOT_","");E=(g=Wcl(g)+"-"+(B==null?void 0:B.toLowerCase()))&&this.continuationPathMap[g];if(!E||!g||!B)_.el(new _.Rj("reload continuation path does not exist",g));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(r)){if(r.replaceWithFirstItem){var w;this.set("data."+E,((w=r.continuationItems)==null?0:w.length)?r.continuationItems[0]:{})}else this.set("data."+E,r.continuationItems?r.continuationItems:
[]);this.continuationIsReloading=!1;_.Sh(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.S.handleShowReloadUiCommand=function(g){g=_.n(g,rq6);var r;((r=this.data)==null?0:r.targetId)&&(g==null?0:g.targetId)&&g.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
aR.prototype.observeData=aR.prototype.observeData;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],aR.prototype,"actionHandlerBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],aR.prototype,"componentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],aR.prototype,"data",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],aR.prototype,"continuationIsReloading",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],aR.prototype,"observeData",null);_.m([_.pR()],aR);_.Xe=[_.KB.YtComponentBehavior,_.gN.YtActionHandlerBehavior,aR.prototype];_.Nv={};_.Nv.YtNextContinuationBehavior=[_.Zl.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",_.Do(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.Do(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(g,r){g.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,r,{}):(g={locationRetrieved:function(E){this.makeNextContinuationRequest_(E,r,{})}.bind(this)},_.Sh(this.hostElement,"yt-retrieve-location",g))},
makeNextContinuationRequest_:function(g,r,E){_.eh("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();g=r(g);var B;this.canUseContextualNetworkManager_()&&(B=this.getNetworkManager());B||(B=_.rM().resolve(_.eN));r=_.Il.instance;if(_.Ca("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&r){B=_.yp([g.startsWith("/")?g.substr(1):g]);var w,O;E=_.Pa(r,{},B,E==null?void 0:(w=E.context)==null?void 0:(O=w.clickTracking)==null?void 0:O.clickTrackingParams).then(function(M){return{response:M}})}else E=
this.nextContinuation.usePost?B.postData(g,E):B.fetchData(g);
E.then(this.updateNextContinuationData_.bind(this,g));this.pendingContinuationRequest_=E;this.startListeningForNavigate_()},
updateNextContinuationData_:function(g,r){var E=this;_.eh("ncl");this.pendingContinuationRequest_=void 0;if(r){var B={};this.nextContinuation&&(B=this.nextContinuation);if(r.response&&r.response.continuationContents&&r.response.continuationContents[B.continuationType]){g=r.response.continuationContents[B.continuationType];var w=B.header||"data.header",O=g[B.responseHeaderKey||"header"];O&&this.set(w,O);w=B.contentsArray||"data.contents";O=this.getContents_(g,B.responseContentsKey||"contents")||[];
this.pathExists_(w)?(O.unshift(w),this.push.apply(this,O)):this.set(w,O);O&&(ybD(_.pW(),r.response,this.hostElement,function(M){_.OS(E.hostElement,"yt-store-grafted-ve-action",[M])}),_.Sh(this.hostElement,"yt-next-continuation-data-updated",{continuationData:r,
page:this,contentsArray:w}));this.set(B.continuationsArray||"data.continuations",g[B.responseContinuationsKey||"continuations"]||[])}else r.reload?_.el(new _.Rj("Reloading from continuation is unsupported")):r.responseContext&&r.responseContext.errors||(delete r.xsrf_token,delete r.timing,delete r.endpoint,delete r.csn,r.responseContext&&delete r.responseContext.serviceTrackingParams,w={request:_.La(g,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(r).sort()},r.response&&(w.responseContentKeys=
Object.keys(r.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(w.continuationType=this.nextContinuation.continuationType.substr(0,256)),r=new _.Rj("Malformed continuation",w),g.indexOf("/comment_service_ajax")==0?_.el(r):_.tn(r)),this.set(B.continuationsArray||"data.continuations",[])}else _.FR(new _.Rj("Missing continuation response",g))},
getContents_:function(g,r){r=r.split(".");return _.jn.getValueByKeys(g,r)},
pathExists_:function(g){var r=this;g=g.toString().split(".");for(var E=0;E<g.length;E++)if(r=r[g[E]],r===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var WPm;var CST;var IR=function(){var g=_.a.apply(this,arguments)||this;g.triggered_=!1;return g};
_.f(IR,_.a);_.S=IR.prototype;_.S.attached=function(){this.maybeTriggerAutoload()};
_.S.detached=function(){this.hasBeenTriggered_=!1};
_.S.onPrescanVisible=function(){this.onShow()};
_.S.onShow=function(){this.showButton||this.trigger()};
_.S.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.Sh(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.S.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.S.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.S.computeLabel_=function(g,r){return g===void 0?null:g.label||!r?g.label:this.showMoreText_};
_.S.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.S.getContinuationUrl=function(g){var r={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(r.itct=this.data.clickTrackingParams);return _.Vg(g,r)};
_.S.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
IR.prototype.showButtonChanged_=IR.prototype.showButtonChanged_;IR.prototype.observeData_=IR.prototype.observeData_;_.m([_.P(_.XQ.YtVisibilityBehavior),_.L("design:type",Object)],IR.prototype,"ytVisibilityBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],IR.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],IR.prototype,"data",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],IR.prototype,"showButton",void 0);
_.m([_.K({value:!1}),_.L("design:type",Boolean)],IR.prototype,"showIcon",void 0);_.m([_.K({computed:"computeLabel_(data, showButton)"}),_.L("design:type",Object)],IR.prototype,"label",void 0);_.m([_.K({value:_.Lf(_.zn("SHOW_MORE",void 0,"Show More"))}),_.L("design:type",Object)],IR.prototype,"showMoreText_",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],IR.prototype,"spinnerActive_",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],IR.prototype,"hasBeenTriggered_",void 0);
_.m([_.K({value:void 0}),_.L("design:type",String)],IR.prototype,"observeVisibleOption",void 0);_.m([_.K({value:void 0}),_.L("design:type",String)],IR.prototype,"observeHiddenOption",void 0);_.m([_.K({value:"observe_once"}),_.L("design:type",Object)],IR.prototype,"observePrescanOption",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],IR.prototype,"observeData_",null);
_.m([_.Gb("showButton"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],IR.prototype,"showButtonChanged_",null);_.m([_.e3({is:"yt-next-continuation",disableElementRegistration:!0})],IR);
_.I(IR,"yt-next-continuation",function(){if(CST===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;WPm===void 0&&(WPm=document.createElement("template"));var B=WPm;E.call(r,B.content.cloneNode(!0),g.content.firstChild);CST=g}g=CST;return g},{mode:2});var KPw;var xKI;var mb=function(){return _.a.apply(this,arguments)||this};
_.f(mb,_.a);mb.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],mb.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],mb.prototype,"data",void 0);_.m([_.e3({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],mb);
_.I(mb,"yt-music-pass-small-feature-info-renderer",function(){if(xKI===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;KPw===void 0&&(KPw=document.createElement("template"));var B=KPw;E.call(r,B.content.cloneNode(!0),g.content.firstChild);xKI=g}g=xKI;return g},{mode:2});_.ek("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var cV=function(){var g=_.a.apply(this,arguments)||this;g.isCollapsible=!1;g.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return g};
_.f(cV,_.a);_.S=cV.prototype;_.S.computeIsCollapsible=function(g){return!!(((g==null?0:g.showMoreText)||(g==null?0:g.visibleRowCount))&&(g==null?0:g.isCollapsible))};
_.S.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-grid-renderer lockup",containerType:2,sizing:"COMPACT",force16By9ThumbnailAspectRatio:!0}},continuationItemRenderer:"ytd-continuation-item-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",
playlistRenderer:"ytd-playlist-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:"ytd-grid-video-renderer",downloadedVideoGridVideoRenderer:"ytd-downloaded-video-grid-video-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",musicPassSmallFeatureInfoRenderer:"yt-music-pass-small-feature-info-renderer",gameCardRenderer:"ytd-game-card-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",noInjection:!0}}},"data.continuations":{id:"continuations",
mapping:{nextContinuationData:"yt-next-continuation"}}}};
_.S.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.S.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.S.onIronResize=function(){var g=this;_.Ib(this,"updateGridInitItems",function(){g.maybeUpdateInitialItemsDisplayed()})};
_.S.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var g=this.getVisibleWidth();g!==0&&(g=Math.floor(g/214)*(this.data.visibleRowCount||2),g!==this.initialCount&&(this.initialCount=g,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.S.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.S.computeExpandVisible=function(g,r,E,B){return g&&r&&E&&!!B&&!!B.showMoreText};
_.S.computeShowMoreButton=function(g){return{text:g,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.S.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.S.initCollapsed=function(){var g=this;this.ytLazyListBehavior.canShowMore=!1;var r;(this.collapsed=!((r=this.data)==null||!r.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.Lk(this,function(){_.US(g.hostElement,"yt-refit-popups-action")})};
_.S.fillRestIfNotCollapsible=function(){var g=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!g||this.ytLazyListBehavior.fillRemainingListItems()};
_.S.computeViewAllHidden=function(g,r){return g||!r.viewAllEndpoint};
cV.prototype.fillRestIfNotCollapsible=cV.prototype.fillRestIfNotCollapsible;cV.prototype.initCollapsed=cV.prototype.initCollapsed;cV.prototype.onIronResize=cV.prototype.onIronResize;cV.prototype.persistentGuideChanged=cV.prototype.persistentGuideChanged;_.m([_.P(_.f7),_.L("design:type",Object)],cV.prototype,"ironResizableBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],cV.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],cV.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Zu.YtLazyListBehavior),_.L("design:type",Object)],cV.prototype,"ytLazyListBehavior",void 0);_.m([_.P(_.Nv.YtNextContinuationBehavior),_.L("design:type",Object)],cV.prototype,"ytNextContinuationBehavior",void 0);_.m([_.P(_.eb.YtdGuideStateAwareBehavior),_.L("design:type",Object)],cV.prototype,"ytdGuideStateAwareBehavior",void 0);
_.m([_.P(_.Xe),_.L("design:type",Object)],cV.prototype,"ytContinuationHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],cV.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Boolean)],cV.prototype,"collapsed",void 0);_.m([_.K(),_.L("design:type",Number)],cV.prototype,"initialCount",void 0);_.m([_.K({computed:"computeShowMoreButton(data.showMoreText)"}),_.L("design:type",Object)],cV.prototype,"showMoreButton",void 0);
_.m([_.K({computed:"computeIsCollapsible(data)"}),_.L("design:type",Object)],cV.prototype,"isCollapsible",void 0);_.m([_.zb("#items"),_.L("design:type",HTMLElement)],cV.prototype,"items",void 0);_.m([_.Yk("guidePersistentAndVisible"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],cV.prototype,"persistentGuideChanged",null);_.m([_.ob("iron-resize"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],cV.prototype,"onIronResize",null);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],cV.prototype,"initCollapsed",null);_.m([_.Yk("canShowMore"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],cV.prototype,"fillRestIfNotCollapsible",null);_.m([_.N({is:"ytd-grid-renderer",disableElementRegistration:!0})],cV);
_.I(cV,"ytd-grid-renderer",function(){if(jPm!==void 0)return jPm;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return jPm=g},{mode:_.My("kevlar_poly_si_batch_j025")?1:2});var i9=function(){return _.a.apply(this,arguments)||this};
_.f(i9,_.a);
i9.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"}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],i9.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],i9.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],i9.prototype,"data",void 0);_.m([_.N({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],i9);
_.I(i9,"ytd-carousel-ad-renderer",function(){if(RyD!==void 0)return RyD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return RyD=g},{mode:1});var a5A;var LH=function(){return _.a.apply(this,arguments)||this};
_.f(LH,_.a);_.S=LH.prototype;_.S.configureRendererStamper=function(){return{"data.content.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.content.adBadge]]"}}}},"data.content.closeButton":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,LH.JSC$13391_CLICK_LOCATION_ID_MAP))};
_.S.onSitelinkTap=function(g){g.stopPropagation();var r,E,B=g==null?void 0:(r=g.model)==null?void 0:(E=r.item)==null?void 0:E.onTap;B&&this.ytSparklesClickLocationBehavior.handleClick(B,g,!1)};
_.S.onTap=function(g){var r=this.data&&this.data.content&&this.data.content.navigationEndpoint;r&&this.ytSparklesClickLocationBehavior.handleClick(r,g,!1)};
_.S.sendImpression=function(){if(this.data&&this.data.content)for(var g=_.U(this.data.content.impressionEndpoints||[]),r=g.next();!r.done;r=g.next()){r=_.U(r.value.loggingUrls||[]);for(var E=r.next();!E.done;E=r.next())E=E.value,E.baseUrl&&c8(E.baseUrl,E.attributionSrcMode)}};
LH.prototype.onTap=LH.prototype.onTap;LH.prototype.dataChanged=LH.prototype.dataChanged;LH.JSC$13391_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"]]);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],LH.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],LH.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.hi.YtSparklesClickLocationBehavior),_.L("design:type",Object)],LH.prototype,"ytSparklesClickLocationBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],LH.prototype,"data",void 0);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],LH.prototype,"dataChanged",null);_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],LH.prototype,"onTap",null);_.m([_.N({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],LH);
_.I(LH,"ytd-promoted-sparkles-text-search-renderer",function(){if(a5A!==void 0)return a5A;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return a5A=g},{mode:1});var XRn;var VH=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-mute-ad-action":"handleMuteAd"};return g};
_.f(VH,_.a);_.S=VH.prototype;
_.S.configureRendererStamper=function(){return{"data.menu":{id:_.Y("fix_alignment_search_desktop_text_image_ads_small_screens")?"menu":"old-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge-search",
mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.adBadge":{id:"ad-badge-new",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.S.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.S.computeHasAdBadge=function(g){return!(g==null||!g.adBadge)};
_.S.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",VH.JSC$13400_DEFAULT_AD_BADGE_RENDERER),_.UN(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,VH.JSC$13400_CLICK_LOCATION_ID_MAP))};
_.S.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var g;(((g=this.data)==null?void 0:g.impressionCommands)||[]).forEach(function(r){r=_.U(r.loggingUrls||[]);for(var E=r.next();!E.done;E=r.next())E=E.value,E.baseUrl&&c8(E.baseUrl,E.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.S.onTap=function(g){var r,E=(r=this.data)==null?void 0:r.navigationEndpoint,B;(r=(B=this.data)==null?void 0:B.thumbnailNavigationEndpoint)&&_.yY(_.Z1(g),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(r,g,!1):E&&this.ytSparklesClickLocationBehavior.handleClick(E,g,!1)};
_.S.handleMuteAd=function(){this.collapsed=!0};
_.S.attached=function(){var g=this;_.Y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&g.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.S.detached=function(){_.Y("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.hx.Object.defineProperties(VH.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var g;return!(((g=this.data)==null?void 0:g.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var g;return!(((g=this.data)==null?void 0:g.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.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}}});
VH.prototype.dataChanged=VH.prototype.dataChanged;
VH.JSC$13400_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"]]);
VH.JSC$13400_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.zn("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],VH.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],VH.prototype,"ytRendererBehavior",void 0);_.m([_.P(jb),_.L("design:type",Object)],VH.prototype,"ytdActiveViewBehavior",void 0);
_.m([_.P([_.gN.YtActionHandlerBehavior]),_.L("design:type",Object)],VH.prototype,"actionHandlerBehavior",void 0);_.m([_.P(_.hi.YtSparklesClickLocationBehavior),_.L("design:type",Object)],VH.prototype,"ytSparklesClickLocationBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],VH.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],VH.prototype,"collapsed",void 0);_.m([_.K({reflectToAttribute:!0,value:function(){return _.Y("enable_desktop_search_bigger_thumbs")}}),
_.L("design:type",Boolean)],VH.prototype,"useBiggerThumbs",void 0);_.m([_.K({reflectToAttribute:!0,value:function(){return _.Sg("desktop_search_bigger_thumbs_style")}}),
_.L("design:type",String)],VH.prototype,"biggerThumbsStyle",void 0);_.m([_.K({reflectToAttribute:!0,value:function(){return _.Y("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.L("design:type",Boolean)],VH.prototype,"fixAlignmentSmallScreens",void 0);_.m([_.K({reflectToAttribute:!0,value:function(){return _.Y("enable_desktop_search_bigger_thumbs_square")}}),
_.L("design:type",Boolean)],VH.prototype,"useBiggerThumbsSquare",void 0);_.m([_.K({reflectToAttribute:!0}),_.W("data.mediaHoverOverlay"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],VH.prototype,"hideHoverOverlay",null);_.m([_.K({reflectToAttribute:!0}),_.W("data.promotedSparklesWebStyle"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],VH.prototype,"webSearchLayout",null);
_.m([_.K({reflectToAttribute:!0}),_.W("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],VH.prototype,"webSearchLayoutLandscape",null);_.m([_.K({reflectToAttribute:!0}),_.W("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],VH.prototype,"webSearchLayoutSquare",null);
_.m([_.K({reflectToAttribute:!0}),_.W("data.promotedSparklesWebStyle"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],VH.prototype,"sparklesCtaNoBackground",null);_.m([_.K({reflectToAttribute:!0}),_.W("data.actionButton"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],VH.prototype,"hideActionButton",null);_.m([_.K({computed:"computeButtonOverride(uiUpdate)"}),_.L("design:type",Object)],VH.prototype,"buttonOverride",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.L("design:type",Boolean)],VH.prototype,"hasNewAdBadge",void 0);_.m([_.W("data.promotedSparklesWebStyle"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],VH.prototype,"useRoundedBadge",null);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],VH.prototype,"dataChanged",null);_.m([_.N({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],VH);
_.I(VH,"ytd-promoted-sparkles-web-renderer",function(){if(XRn!==void 0)return XRn;var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return XRn=g},{mode:1});var N6w;var hI=function(){var g=_.a.apply(this,arguments)||this;g.isInlinePreviewTriggered=!1;g.enableMonoStyle=_.Y("enable_default_mono_cta_migration_web_client");return g};
_.f(hI,_.a);_.S=hI.prototype;_.S.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.ctaRenderer":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.S.computeShowCta=function(g){return!(g==null||!g.ctaRenderer)};
_.S.onCtaClick=function(){var g,r,E,B=(g=this.data)==null?void 0:(r=g.ctaRenderer)==null?void 0:(E=r.buttonRenderer)==null?void 0:E.command;B&&this.ytComponentBehavior.resolveCommand(B)};
_.S.onWatchButtonClick=function(){var g,r,E,B=(g=this.data)==null?void 0:(r=g.watchButtonRenderer)==null?void 0:(E=r.buttonRenderer)==null?void 0:E.command;B&&this.ytComponentBehavior.resolveCommand(B)};
_.S.onTap=function(){};
_.S.dataChanged=function(){if(this.data){var g;_.Y("enable_inline_muted_playback_on_web_search")&&((g=this.data)==null?0:g.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",hI.JSC$13404_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",hI.JSC$13404_DEFAULT_CLICK_LOCATION_BEHAVIOR,hI.JSC$13404_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(g=this.thumbnail.getElementsByTagName("a"),g.length>0&&(g=g.namedItem("thumbnail"))&&g.removeAttribute("href"))}};
_.S.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var g=_.U(this.data.impressionUrls),r=g.next();!r.done;r=g.next())r=r.value,HyV(r,YPP(r));this.data.impressionsFired=!0}};
_.S.maybeComputeHref=function(){return null};
_.S.computeIsShortDR=function(g){return!(g==null||!g.watchButtonRenderer)&&!(g==null||!g.ctaRenderer)&&!!this.enableShortDR};
_.S.computeIsNewUiOrShortDr=function(g){return!!this.enableUiUpdate||this.computeIsShortDR(g)};
_.S.computeIsNewUiAndNotShortDr=function(g){return!!this.enableUiUpdate&&!this.computeIsShortDR(g)};
_.S.computeHideAvatar=function(g){return!((g==null?0:g.channelThumbnail)&&this.computeIsNewUiOrShortDr(g))};
_.S.onClick=function(g){var r,E=(r=this.data)==null?void 0:r.navigationEndpoint;if(this.enableShortDR&&E&&(_.n(E,_.LM)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(E,g,!!_.n(E,_.LM)),g.stopPropagation();else if(E&&_.n(E,_.LM))this.ytSparklesClickLocationBehavior.handleClick(E,g,!0),g.stopPropagation();else if(E){var B,w;((B=this.data)==null?0:B.navigationEndpoint)&&((w=this.data)==null?0:w.adPlaybackContextParams)&&MYP(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(E)}};
_.S.computeButtonOverride=function(g){if(this.computeIsNewUiOrShortDr(g))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.S.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.S.onThumbnailContainerClick=function(g){this.onClick(g)};
_.S.computeThumbnailWidth=function(g,r){return g?r==="MASSIVE"?600:r==="BIG"?500:r==="MEDIUM"?450:420:360};
_.S.attached=function(){var g=this,r;_.Y("enable_inline_muted_playback_on_web_search")&&((r=this.data)==null?0:r.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.Y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&g.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.S.detached=function(){var g;_.Y("enable_inline_muted_playback_on_web_search")&&((g=this.data)==null?0:g.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.Y("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.S.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13405_inlinePreviewHoverListener=XX({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:rJD})};
_.S.clearInlinePreviewHoverListeners=function(){var g;(g=this.JSC$13405_inlinePreviewHoverListener)==null||Tu(g)};
hI.prototype.dataChanged=hI.prototype.dataChanged;hI.prototype.onTap=hI.prototype.onTap;hI.JSC$13404_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.zn("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};hI.JSC$13404_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
hI.JSC$13404_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"}];_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],hI.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],hI.prototype,"ytRendererBehavior",void 0);_.m([_.P(jb),_.L("design:type",Object)],hI.prototype,"ytdActiveViewBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],hI.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.hi.YtSparklesClickLocationBehavior),_.L("design:type",Object)],hI.prototype,"ytSparklesClickLocationBehavior",void 0);
_.m([_.zb("#main-container"),_.L("design:type",HTMLElement)],hI.prototype,"mainContainer",void 0);_.m([_.K(),_.L("design:type",Object)],hI.prototype,"isInlinePreviewTriggered",void 0);_.m([_.K(),_.L("design:type",Object)],hI.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,value:function(){return _.Y("enable_desktop_search_bigger_thumbs")}}),
_.L("design:type",Boolean)],hI.prototype,"useBiggerThumbs",void 0);_.m([_.K({reflectToAttribute:!0,value:function(){return _.Y("enable_video_display_compact_button_group_for_desktop_search")}}),
_.L("design:type",Boolean)],hI.prototype,"enableShortDR",void 0);_.m([_.K({reflectToAttribute:!0,value:function(){return _.Y("enable_vac_ui_update_for_desktop_search")}}),
_.L("design:type",Boolean)],hI.prototype,"enableUiUpdate",void 0);_.m([_.K({reflectToAttribute:!0,value:function(){return _.Sg("desktop_search_bigger_thumbs_style")}}),
_.L("design:type",String)],hI.prototype,"biggerThumbsStyle",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.L("design:type",Boolean)],hI.prototype,"showCta",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.L("design:type",Boolean)],hI.prototype,"isShortDr",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.L("design:type",Boolean)],hI.prototype,"isShortDrOrNewUi",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.L("design:type",Boolean)],hI.prototype,"isNewUiAndNotShortDr",void 0);_.m([_.K({computed:"computeButtonOverride(data)"}),_.L("design:type",Object)],hI.prototype,"buttonOverride",void 0);_.m([_.K({computed:"computeSecondaryButtonOverride(data)"}),_.L("design:type",Object)],hI.prototype,"secondaryButtonOverride",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],hI.prototype,"enableMonoStyle",void 0);
_.m([_.zb("ytd-thumbnail"),_.L("design:type",HTMLElement)],hI.prototype,"thumbnail",void 0);_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],hI.prototype,"onTap",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],hI.prototype,"dataChanged",null);_.m([_.N({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],hI);
_.I(hI,"ytd-promoted-video-renderer",function(){if(N6w!==void 0)return N6w;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return N6w=g},{mode:1});var I5b;var Zj=function(){var g=_.a.apply(this,arguments)||this;g.useRoundedBadge=!0;g.sitelinkIds=[];return g};
_.f(Zj,_.a);_.S=Zj.prototype;
_.S.configureRendererStamper=function(){return{"data.menu":{id:_.Y("enable_text_ad_web_thumbnail_scaling_fix")?"new-menu":"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},
"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.S.dataChanged=function(){var g;(g=this.data)!=null&&g.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Zj.JSC$13410_CLICK_LOCATION_ID_MAP)};
_.S.onTap=function(g){var r,E=(r=this.data)==null?void 0:r.navigationCommand;E&&!_.yY(_.Z1(g),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(E,g,!1)};
_.S.onSitelinkTap=function(g){var r,E,B=g==null?void 0:(r=g.model)==null?void 0:(E=r.item)==null?void 0:E.onTap;B&&this.ytSparklesClickLocationBehavior.handleClick(B,g,!1)};
_.S.configureSitelinkClickTargets=function(){var g=this,r,E,B=(r=this.data)==null?void 0:(E=r.clickLocationTargets)==null?void 0:E.find(function(w){return w.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
B&&_.S3(this.hostElement).querySelectorAll(".sitelink").forEach(function(w){_.UN(w,"yt-simple-endpoint",!0);g.sitelinkIds.push(w.id);var O,M;(O=g.ytSparklesClickLocationBehavior)==null||(M=O.clickTargetMap)==null||M.set(w.id,B)})};
_.S.sendImpression=function(){var g,r,E=((g=this.data)==null?void 0:(r=g.impressionCommand)==null?void 0:r.loggingUrls)||[];g=_.U(E);for(r=g.next();!r.done;r=g.next())r=r.value,r.baseUrl&&c8(r.baseUrl,r.attributionSrcMode)};
_.S.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.hx.Object.defineProperties(Zj.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
Zj.prototype.onTap=Zj.prototype.onTap;Zj.prototype.dataChanged=Zj.prototype.dataChanged;Zj.JSC$13410_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"]]);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Zj.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Zj.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.hi.YtSparklesClickLocationBehavior),_.L("design:type",Object)],Zj.prototype,"ytSparklesClickLocationBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Zj.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Zj.prototype,"showFavicon",null);_.m([_.K({reflectToAttribute:!0,value:function(){return _.Y("enable_desktop_search_bigger_thumbs")}}),
_.L("design:type",Boolean)],Zj.prototype,"useBiggerThumbs",void 0);_.m([_.K({reflectToAttribute:!0,value:function(){return _.Sg("desktop_search_bigger_thumbs_style")}}),
_.L("design:type",String)],Zj.prototype,"biggerThumbsStyle",void 0);_.m([_.K({reflectToAttribute:!0,value:function(){return _.Y("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.L("design:type",Boolean)],Zj.prototype,"enableThumbnailScalingFix",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Zj.prototype,"dataChanged",null);_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],Zj.prototype,"onTap",null);_.m([_.N({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],Zj);
_.I(Zj,"ytd-text-image-no-button-layout-renderer",function(){if(I5b!==void 0)return I5b;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return I5b=g},{mode:_.My("kevlar_poly_si_batch_j028")?1:2});var mK4;var yH=function(){var g=_.a.apply(this,arguments)||this;g.isInlinePlaybackState=!1;g.uiUpdate=_.Y("web_modern_buttons");g.hideCta=_.Y("hide_cta_for_home_web_video_ads");g.noBottomMargin=!1;g.animateInTimeStamp=_.wM("hide_cta_for_home_web_video_ads_animate_in_time");g.animateInCta=!1;g.isHovered=!1;g.enableMonoStyle=_.Y("enable_default_mono_cta_migration_web_client");g.player=null;g.JSC$13417_playerEvents=new Map;g.JSC$13417_preventProgressSaveTimer=null;g.delayedCtaJobId=null;return g};
_.f(yH,_.a);_.S=yH.prototype;_.S.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.adCtaButton":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.S.attached=function(){this.JSC$13417_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13417_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.Y("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.S.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13417_playerEvents)};
_.S.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",yH.JSC$13416_DEFAULT_CLICK_LOCATION_BEHAVIOR,yH.JSC$13416_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.S.hoverChanged=function(){var g=this;this.delayedCtaJobId&&(_.F6.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.Y("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.pm(_.F6,function(){g.buttonContainer.classList.add("show-delayed-buttons")},_.wM("delayed_cta_on_web_delay_milliseconds")))};
_.S.setPlayer=function(){var g=this,r;return _.q(function(E){if(E.nextAddress==1)return(r=_.US(g.hostElement,"yt-get-inline-preview-player-action"))&&r[0]?_.D(E,r[0].getPlayerPromise(),3):E.jumpTo(0);g.player=E.yieldResult;g.ytPlayerListenerBehavior.listenToPlayerEvents(g.player,g.JSC$13417_playerEvents);_.Q3(E)})};
_.S.onPlaybackStart=function(){var g=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13417_preventProgressSaveTimer=_.Mh(_.F6,function(){g.JSC$13417_preventProgressSaveTimer=null},1E4))};
_.S.onVideoProgress=function(g){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&g>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.S.resetPreventProgressSaveTimer=function(){_.F6.cancelJob(this.JSC$13417_preventProgressSaveTimer);this.JSC$13417_preventProgressSaveTimer=null};
_.S.getSimpleString=function(g){return _.Vp(g)};
_.S.onClick=function(g){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var r,E=(r=this.data)==null?void 0:r.navigationEndpoint,B;r=(B=this.data)==null?void 0:B.channelEndpoint;var w,O;(B=(O=_.n((w=this.data)==null?void 0:w.adCtaButton,_.Fd))==null?void 0:O.command)&&_.yY(_.Z1(g),this.hostElement,["call-to-action"])?_.Y("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(B,g,!1):r&&_.yY(_.Z1(g),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(r,g,!1):!_.yY(_.Z1(g),this.hostElement,["secondary-button"])&&E&&(_.Y("enable_short_dr_for_desktop_launchable")?(w=!!_.n(E,_.LM),this.isInlinePlaybackState&&w&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(E,g,w)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(E,g,!0)))}};
_.S.updateWatchEndpointStartTime=function(){var g,r;this.player&&((g=this.data)==null?0:g.inlinePlaybackEndpoint)&&((r=this.data)==null?0:r.navigationEndpoint)&&!this.JSC$13417_preventProgressSaveTimer&&(g=Math.floor(this.player.getCurrentTime()),_.n(this.data.navigationEndpoint,_.LM).startTimeSeconds=g,_.n(this.data.inlinePlaybackEndpoint,_.LM).startTimeSeconds=g)};
_.S.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.S.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.hx.Object.defineProperties(yH.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.Y("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var g,r;return!((g=this.data)==null||!g.watchButton)&&!((r=this.data)==null||!r.adCtaButton)}}});
yH.prototype.hoverChanged=yH.prototype.hoverChanged;yH.prototype.dataChanged=yH.prototype.dataChanged;
yH.JSC$13416_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"]]);
yH.JSC$13416_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"}];
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],yH.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],yH.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],yH.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.hi.YtSparklesClickLocationBehavior),_.L("design:type",Object)],yH.prototype,"ytSparklesClickLocationBehavior",void 0);
_.m([_.P(_.a9.YtPlayerListenerBehavior),_.L("design:type",_.X0)],yH.prototype,"ytPlayerListenerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],yH.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],yH.prototype,"isInlinePlaybackState",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],yH.prototype,"miniMode",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],yH.prototype,"uiUpdate",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],yH.prototype,"hideCta",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],yH.prototype,"noBottomMargin",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],yH.prototype,"animateInCta",void 0);_.m([_.K({computed:"computeButtonOverride(uiUpdate)"}),_.L("design:type",Object)],yH.prototype,"buttonOverride",void 0);
_.m([_.K({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.L("design:type",Object)],yH.prototype,"secondaryButtonOverride",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],yH.prototype,"isHovered",void 0);_.m([_.zb("#button-container"),_.L("design:type",HTMLElement)],yH.prototype,"buttonContainer",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],yH.prototype,"typographyBump",void 0);
_.m([_.K({reflectToAttribute:!0}),_.W("typographyBump"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],yH.prototype,"typographyBumpV2",null);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],yH.prototype,"enableMonoStyle",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],yH.prototype,"dataChanged",null);
_.m([_.Gb("isHovered"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],yH.prototype,"hoverChanged",null);_.m([_.W("data"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],yH.prototype,"isButtonGroup",null);_.m([_.N({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],yH);
_.I(yH,"ytd-ad-inline-playback-meta-block",function(){if(mK4!==void 0)return mK4;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return mK4=g},{mode:_.My("kevlar_poly_si_batch_j065")?1:2});var cJ6;var vV=function(){var g=_.a.apply(this,arguments)||this;g.noBottomMargin=!1;g.isInlinePreviewTriggered=!1;g.JSC$13422_activeViewMeasurementDataResolver=_.iW();return g};
_.f(vV,_.a);_.S=vV.prototype;_.S.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.S.attached=function(){var g=this;this.updateInlinePreviewHoverListeners();this.JSC$13422_activeViewMeasurementDataResolver.promise.then(function(r){g.ytdActiveViewBehavior.enableActiveViewMeasurement(r,15)});
_.Y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&g.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.S.detached=function(){this.clearInlinePreviewHoverListeners();_.Y("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.S.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13422_inlinePreviewHoverListener=XX({mediaRenderer:this,lockupElement:this.JSC$13422_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:rJD})};
_.S.clearInlinePreviewHoverListeners=function(){var g;(g=this.JSC$13422_inlinePreviewHoverListener)==null||Tu(g)};
_.S.onDataChanged=function(){var g;((g=this.data)==null?0:g.activeView)&&this.JSC$13422_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",vV.JSC$13421_DEFAULT_CLICK_LOCATION_BEHAVIOR,vV.JSC$13421_CLICK_LOCATION_ID_MAP);this.thumbnail&&(g=this.thumbnail.getElementsByTagName("a"),g.length>0&&(g=g.namedItem("thumbnail"))&&g.removeAttribute("href"));var r;if((r=this.data)==
null?0:r.forceImpAutoplay){var E;(E=this.JSC$13422_inlinePreviewHoverListener)==null||RYD(E)}};
_.S.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.S.onThumbnailContainerClick=function(g){if(this.data&&this.data.navigationEndpoint){var r,E=(r=this.data)==null?void 0:r.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(E,g,!!_.n(E,_.LM));g.stopPropagation()}};
_.S.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.S.impressionLog=function(){var g=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var r,E,B=(E=_.n((r=this.data)==null?void 0:r.onImpression,_.D$))==null?void 0:E.commands;B&&(B.forEach(function(w){w.clickTrackingParams&&delete w.clickTrackingParams;g.ytComponentBehavior.resolveCommand(w)}),this.data.impressionsFired=!0)}};
_.hx.Object.defineProperties(vV.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.JSC$13422_inlinePreviewHoverListener)==null?0:bI(g))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
vV.prototype.onTypographyBumpChanged=vV.prototype.onTypographyBumpChanged;vV.prototype.onDataChanged=vV.prototype.onDataChanged;vV.JSC$13421_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);vV.JSC$13421_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"}];
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],vV.prototype,"ytComponentBehavior",void 0);_.m([_.P(jb),_.L("design:type",Object)],vV.prototype,"ytdActiveViewBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],vV.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],vV.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ji),_.L("design:type",Object)],vV.prototype,"ytdDismissibleItemBehavior",void 0);
_.m([_.P(_.K4),_.L("design:type",Object)],vV.prototype,"ytdLockupBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],vV.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.hi.YtSparklesClickLocationBehavior),_.L("design:type",Object)],vV.prototype,"ytSparklesClickLocationBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],vV.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],vV.prototype,"noBottomMargin",void 0);
_.m([_.K(),_.L("design:type",Object)],vV.prototype,"isInlinePreviewTriggered",void 0);_.m([_.K({reflectToAttribute:!0,selector:_.Jj}),_.L("design:type",Boolean)],vV.prototype,"miniMode",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],vV.prototype,"typographyBump",void 0);_.m([_.zb("ytd-thumbnail"),_.L("design:type",HTMLElement)],vV.prototype,"thumbnail",void 0);_.m([_.zb("#dismissible"),_.L("design:type",HTMLElement)],vV.prototype,"JSC$13422_dismissibleMedia",void 0);
_.m([_.zb("ytd-ad-inline-playback-meta-block"),_.L("design:type",HTMLElement)],vV.prototype,"adInlinePlaybackMetaBlock",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],vV.prototype,"onDataChanged",null);_.m([_.Yk("typographyBump"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],vV.prototype,"onTypographyBumpChanged",null);
_.m([_.W("lockupIsHovered"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],vV.prototype,"isHovered",null);_.m([_.N({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],vV);
_.I(vV,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(cJ6!==void 0)return cJ6;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return cJ6=g},{mode:1});var iQb;var dR=function(){var g=_.a.apply(this,arguments)||this;g.isInlinePreviewTriggered=!1;g.JSC$13425_activeViewMeasurementDataResolver=_.iW();return g};
_.f(dR,_.a);_.S=dR.prototype;_.S.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.S.attached=function(){var g=this;this.updateInlinePreviewHoverListeners();this.JSC$13425_activeViewMeasurementDataResolver.promise.then(function(r){g.ytdActiveViewBehavior.enableActiveViewMeasurement(r,15)})};
_.S.detached=function(){this.clearInlinePreviewHoverListeners()};
_.S.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13425_inlinePreviewHoverListener=XX({mediaRenderer:this,lockupElement:this.JSC$13425_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:rJD})};
_.S.clearInlinePreviewHoverListeners=function(){var g;(g=this.JSC$13425_inlinePreviewHoverListener)==null||Tu(g)};
_.S.onDataChanged=function(){var g;((g=this.data)==null?0:g.activeView)&&this.JSC$13425_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",dR.JSC$13424_DEFAULT_CLICK_LOCATION_BEHAVIOR,dR.JSC$13424_CLICK_LOCATION_ID_MAP);this.thumbnail&&(g=this.thumbnail.getElementsByTagName("a"),g.length>0&&(g=g.namedItem("thumbnail"))&&g.removeAttribute("href"))};
_.S.onThumbnailContainerClick=function(g){if(this.data&&this.data.navigationEndpoint){var r,E=(r=this.data)==null?void 0:r.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(E,g,!0);g.stopPropagation()}};
_.S.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.S.impressionLog=function(){var g=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var r,E,B=(E=_.n((r=this.data)==null?void 0:r.onImpression,_.D$))==null?void 0:E.commands;B&&(B.forEach(function(w){w.clickTrackingParams&&delete w.clickTrackingParams;_.rM().resolve(_.Er).resolveCommand(w,{form:{element:g.hostElement}})}),this.data.impressionsFired=!0)}};
_.hx.Object.defineProperties(dR.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.JSC$13425_inlinePreviewHoverListener)==null?0:bI(g))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
dR.prototype.onDataChanged=dR.prototype.onDataChanged;dR.JSC$13424_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);dR.JSC$13424_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"}];_.m([_.P(jb),_.L("design:type",Object)],dR.prototype,"ytdActiveViewBehavior",void 0);
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],dR.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],dR.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ji),_.L("design:type",Object)],dR.prototype,"ytdDismissibleItemBehavior",void 0);_.m([_.P(_.K4),_.L("design:type",Object)],dR.prototype,"ytdLockupBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],dR.prototype,"ytdReduxBehavior",void 0);
_.m([_.P(_.hi.YtSparklesClickLocationBehavior),_.L("design:type",Object)],dR.prototype,"ytSparklesClickLocationBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],dR.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],dR.prototype,"isInlinePreviewTriggered",void 0);_.m([_.K({reflectToAttribute:!0,selector:_.Jj}),_.L("design:type",Boolean)],dR.prototype,"miniMode",void 0);_.m([_.zb("ytd-thumbnail"),_.L("design:type",HTMLElement)],dR.prototype,"thumbnail",void 0);
_.m([_.zb("#dismissible"),_.L("design:type",HTMLElement)],dR.prototype,"JSC$13425_dismissibleMedia",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],dR.prototype,"onDataChanged",null);_.m([_.W("lockupIsHovered"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],dR.prototype,"isHovered",null);_.m([_.N({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],dR);
_.I(dR,"ytd-video-display-full-buttoned-renderer",function(){if(iQb!==void 0)return iQb;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return iQb=g},{mode:1});var S7=function(g,r,E,B){B=B===void 0?!1:B;_.gl.call(this,g);this.adsClientErrorMessage=E;this.aggressivelySample=B;this.args=[];r&&this.args.push(r)};
_.f(S7,_.gl);var Bm=function(g,r,E,B){B=B===void 0?!1:B;_.gl.call(this,g);this.adsClientErrorMessage=E;this.aggressivelySample=B;this.args=[];r&&this.args.push(r)};
_.f(Bm,_.gl);var LP6=function(g){_.f5.call(this);var r=this;this.initializationFunction=g;this.instance=null;this.addOnDisposeCallback(function(){_.TM(r.instance);r.instance=null})};
_.f(LP6,_.f5);LP6.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.yU("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var wRP=function(){var g=new Map;[].forEach(function(r){g.set(r.JSC$27139_getType(),r)})};new Promise(function(){});var TPV=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"]]),vsl=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"}]]),V4z=function(g){this.experimentApiProvider=g;g=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=g<.1};var T8=function(g,r,E,B){_.f5.call(this);this.adsControlFlowEventListeners=r;this.adEventLogger=E;this.experimentApiProvider=B;this.adsControlFlowManagerHelper=g(this,this,this,this,this);_.oO(this,this.adsControlFlowManagerHelper);g=_.U(r);for(r=g.next();!r.done;r=g.next())_.oO(this,r.value)};
_.f(T8,_.f5);var hyD=function(g,r,E,B){g4(g.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",r,E,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,B);g=_.U(g.adsControlFlowEventListeners);for(B=g.next();!B.done;B=g.next())hyD(B.value,r,E)};
_.S=T8.prototype;_.S.onOpportunityProcessedExternallyManaged=function(g,r,E,B){g4(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",g,E,r,void 0,void 0,void 0,void 0,void 0,void 0,void 0,B)};
_.S.onSlotReceivedExternallyManaged=function(g,r){r4(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",g,r)};
_.S.onSlotEntered=function(g){if(Eu(this.adsControlFlowManagerHelper,g)!=null){r4(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",g);this.adsControlFlowManagerHelper.onSlotEntered(g);for(var r=_.U(this.adsControlFlowEventListeners),E=r.next();!E.done;E=r.next())E.value.onSlotEntered(g);if(Eu(this.adsControlFlowManagerHelper,g)!=null&&Eu(this.adsControlFlowManagerHelper,g).isOccupyingSlotType()&&Bc(this.adsControlFlowManagerHelper,g)&&!ZQw(this.adsControlFlowManagerHelper,g)){var B;w4(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",g,(B=Bc(this.adsControlFlowManagerHelper,g))!=null?B:void 0);g=Eu(this.adsControlFlowManagerHelper,g);g.slotLifecycleStage!=="entered"&&SR(g.slot,g.slotLifecycleStage,"enterLayoutForSlot");g.slotLifecycleStage="rendering";g.registeredLayoutRenderingAdapter.startRendering(g.layout)}}};
_.S.onSlotExited=function(g){if(Eu(this.adsControlFlowManagerHelper,g)!=null){r4(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",g);this.adsControlFlowManagerHelper.onSlotExited(g);for(var r=_.U(this.adsControlFlowEventListeners),E=r.next();!E.done;E=r.next())E.value.onSlotExited(g);Eu(this.adsControlFlowManagerHelper,g)!=null&&Eu(this.adsControlFlowManagerHelper,g).markedForUnscheduleAfterOutboundAdapterRequests&&yJn(this,g)}};
_.S.onLayoutReceivedExternallyManaged=function(g,r,E){g.managerLayer!=="core"&&w4(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",g,r,E)};
var vZ4=function(g,r,E){if(Eu(g.adsControlFlowManagerHelper,r)!=null){w4(g.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",r,E);g=_.U(g.adsControlFlowEventListeners);for(var B=g.next();!B.done;B=g.next())vZ4(B.value,r,E)}};
T8.prototype.onLayoutExited=function(g,r,E){if(Eu(this.adsControlFlowManagerHelper,g)!=null){w4(this.adEventLogger,dLt(E),g,r);this.adsControlFlowManagerHelper.onLayoutExited(g,r);for(var B=_.U(this.adsControlFlowEventListeners),w=B.next();!w.done;w=B.next())w.value.onLayoutExited(g,r,E);(E=Bc(this.adsControlFlowManagerHelper,g))&&r.layoutId===E.layoutId&&dKD(this,g)}};
T8.prototype.disposeInternal=function(){var g=T6I(this.adsControlFlowManagerHelper);g=_.U(g);for(var r=g.next();!r.done;r=g.next())yJn(this,r.value);_.f5.prototype.disposeInternal.call(this)};
var yJn=function(g,r){if(Eu(g.adsControlFlowManagerHelper,r)!=null)if(Eu(g.adsControlFlowManagerHelper,r).JSC$27170_isSlotExitRequested()||Eu(g.adsControlFlowManagerHelper,r).JSC$27170_isLayoutExitRequested())Eu(g.adsControlFlowManagerHelper,r).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(Eu(g.adsControlFlowManagerHelper,r).isOccupyingSlotType())Eu(g.adsControlFlowManagerHelper,r).markedForUnscheduleAfterOutboundAdapterRequests=!0,dKD(g,r);else if(Eu(g.adsControlFlowManagerHelper,r).JSC$27170_isSlotFillRequested())Eu(g.adsControlFlowManagerHelper,
r).markedForUnscheduleAfterOutboundAdapterRequests=!0,Eu(g.adsControlFlowManagerHelper,r)!=null&&(r4(g.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",r),r=Eu(g.adsControlFlowManagerHelper,r),r.fulfillmentLifecycleStage="fill_cancel_requested",r.registeredFulfillmentAdapter.cancelSlotFilling());else{var E=Bc(g.adsControlFlowManagerHelper,r),B;g.experimentApiProvider.get();(B=_.Y("h5_enable_layout_unscheduling_events"))&&(E?geZ(g,r,E):_.yU(Error("Nh"),r,E,void 0,!1));r4(g.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",r);var w=Eu(g.adsControlFlowManagerHelper,r),O=r.slotEntryTrigger,M=w.registeredSlotEntryTriggerAdapters.get(O.triggerId);M&&(M.unregisterTrigger(O),w.registeredSlotEntryTriggerAdapters.delete(O.triggerId));O=_.U(r.slotFulfillmentTriggers);for(M=O.next();!M.done;M=O.next()){M=M.value;var u=w.registeredFulfillmentTriggerAdapters.get(M.triggerId);u&&(u.unregisterTrigger(M),w.registeredFulfillmentTriggerAdapters.delete(M.triggerId))}O=_.U(r.slotExpirationTriggers);
for(M=O.next();!M.done;M=O.next())if(M=M.value,u=w.registeredExpirationTriggerAdapters.get(M.triggerId))u.unregisterTrigger(M),w.registeredExpirationTriggerAdapters.delete(M.triggerId);w.hasLayout()&&(O=w.layout,Ou(w,O.layoutExitNormalTriggers),Ou(w,O.layoutExitSkipTriggers),Ou(w,O.layoutExitMuteTriggers),Ou(w,O.layoutExitUserInputSubmittedTriggers),Ou(w,O.layoutExitUserCancelledTriggers));w.registeredFulfillmentAdapter=void 0;w.registeredSlotAdapter!=null&&(w.registeredSlotAdapter.release(),w.registeredSlotAdapter=
void 0);w.registeredLayoutRenderingAdapter!=null&&(w.registeredLayoutRenderingAdapter.release(),w.registeredLayoutRenderingAdapter=void 0);w=g.adsControlFlowManagerHelper;Eu(w,r)&&(w=rr6(w,r.slotType+"_"+r.slotPhysicalPosition))&&w.delete(r.slotId);r4(g.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",r);g=_.U(g.adsControlFlowEventListeners);for(w=g.next();!w.done;w=g.next())w=w.value,w.onSlotUnscheduled(r),E&&!B&&geZ(w,r,E)}},geZ=function(g,r,E){w4(g.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
r,E);
w4(g.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",r,E);g=_.U(g.adsControlFlowEventListeners);for(var B=g.next();!B.done;B=g.next())B=B.value,E&&geZ(B,r,E)},dKD=function(g,r){if(Eu(g.adsControlFlowManagerHelper,r)!=null&&Eu(g.adsControlFlowManagerHelper,r).isOccupyingSlotType()){var E=Bc(g.adsControlFlowManagerHelper,r);
if(E&&ZQw(g.adsControlFlowManagerHelper,r)){if(Eu(g.adsControlFlowManagerHelper,r)!=null){var B=g.adEventLogger,w;var O=((w=vsl.get("abandoned"))==null?void 0:w.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";w4(B,O,r,E);g=Eu(g.adsControlFlowManagerHelper,r);g.slotLifecycleStage!=="rendering"&&SR(g.slot,g.slotLifecycleStage,"exitLayout");g.slotLifecycleStage="rendering_stop_requested";g.registeredLayoutRenderingAdapter.stopRendering(E,"abandoned")}}else{r4(g.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
r);try{B=Eu(g.adsControlFlowManagerHelper,r);if(!B)throw new Bm("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");B.slotLifecycleStage!=="enter_requested"&&B.slotLifecycleStage!=="entered"&&B.slotLifecycleStage!=="rendering"&&SR(B.slot,B.slotLifecycleStage,"exitSlot");B.slotLifecycleStage="exit_requested";if(B.registeredSlotAdapter===void 0)throw B.slotLifecycleStage="scheduled",new Bm("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
B.registeredSlotAdapter.exit()}catch(M){M instanceof Bm&&M.adsClientErrorMessage?(EeD(g.adEventLogger,M.adsClientErrorMessage,r),_.yU(M,r,void 0,void 0,M.aggressivelySample)):(EeD(g.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",r),_.yU(M,r))}}}};var Uu=function(g,r,E,B,w,O){_.f5.call(this);this.registry=g;this.experimentApiProvider=O;this.slotMap=new Map};
_.f(Uu,_.f5);var rr6=function(g,r){return(g=g.slotMap.get(r))?g:new Map},Eu=function(g,r){return rr6(g,r.slotType+"_"+r.slotPhysicalPosition).get(r.slotId)},T6I=function(g){var r=[];
g.slotMap.forEach(function(E){E=_.U(E.values());for(var B=E.next();!B.done;B=E.next())r.push(B.value.slot)});
return r};
Uu.prototype.onSlotEntered=function(g){g=Eu(this,g);g.slotLifecycleStage!=="enter_requested"&&SR(g.slot,g.slotLifecycleStage,"onSlotEntered");g.slotLifecycleStage="entered"};
var ZQw=function(g,r){g=Eu(g,r);return g.hasLayout()&&g.isRendering()},Bc=function(g,r){(g=Eu(g,r))?g.hasLayout()&&!g.layout&&_.yU("Unexpected empty layout",r):_.yU("Unexpected undefined slotState",r);
return(g==null?void 0:g.layout)||null};
Uu.prototype.onSlotExited=function(g){g=Eu(this,g);g.slotLifecycleStage!=="exit_requested"&&SR(g.slot,g.slotLifecycleStage,"onSlotExited");g.slotLifecycleStage="scheduled"};
Uu.prototype.onLayoutExited=function(g,r){g=Eu(this,g);g.isPrimaryLayout(r)&&(g.slotLifecycleStage!=="rendering_stop_requested"&&SR(g.slot,g.slotLifecycleStage,"onLayoutExited"),g.slotLifecycleStage="entered")};
var Ou=function(g,r){r=_.U(r);for(var E=r.next();!E.done;E=r.next()){E=E.value;var B=g.registeredLayoutExitTriggerAdapters.get(E.triggerId);B&&(B.unregisterTrigger(E),g.registeredLayoutExitTriggerAdapters.delete(E.triggerId))}},SR=function(g,r,E){_.yU("Slot stage was "+r+" when calling method "+E,g)};var w9T=function(g){_.f5.call(this);this.deps=g;this.JSC$13474_adsControlFlowManager=Bow(this)};
_.f(w9T,_.f5);var Bow=function(g){var r=new T8(function(E,B,w,O){return new Uu(g.deps.registry,E,B,w,O,g.deps.experimentApiProvider)},new Set(B6Y(g.deps.registry).concat(g.deps.listeners)),g.deps.adEventLogger,g.deps.experimentApiProvider);
_.oO(g,r);return r};var S$Z=function(g,r){_.f5.call(this);this.experimentApiProvider=g;this.eventLoggingSettingsProvider=r;this.eventCount=0};
_.f(S$Z,_.f5);S$Z.prototype.logEvent=function(g){g4(this,g)};
var r4=function(g,r,E,B){g4(g,r,void 0,void 0,void 0,E,void 0,void 0,void 0,E.adSlotLoggingData,void 0,void 0,B)},w4=function(g,r,E,B,w){g4(g,r,void 0,void 0,void 0,E,B?B:void 0,void 0,void 0,E.adSlotLoggingData,B?B.adLayoutLoggingData:void 0,void 0,w)},EeD=function(g,r,E){g4(g,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,E,void 0,void 0,void 0,E.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:r})},g4=function(g,r,E,B,w,O,M,u,l,Q,z,k,H){H=H===void 0?0:H;
OJb(g.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+r,"slot:",O,"layout:",M,"ping:",u,"Opportunity:",{opportunityType:E,associatedSlotId:B,slotsFromOpportunity:w,triggerBundle:l,adSlotLoggingData:Q,adLayoutLoggingData:z});try{var R=function(){g.experimentApiProvider.get();if(r!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){r||_.yU("Empty PACF event type",O,M);var A=g.eventLoggingSettingsProvider.get();var J;(J=A.alwaysIncludeDebugData)||(A.experimentApiProvider.get(),J=
!1);A=J;J={eventType:r,eventOrder:++g.eventCount};var e={};O&&(e.slotData=rJS(A,O));if(M){var C={type:M.layoutType,controlFlowManagerLayer:TPV.get(M.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};A&&(C.debugData={layoutId:M.layoutId});e.layoutData=C}u&&(e.pingData={pingDispatchStatus:u.dispatchStatus,serializedAdPingMetadata:u.ping.serializedAdPingMetadata,pingIndex:u.index});l&&(e.triggerData=gZl(l.trigger,l.category));E&&(e.opportunityData=EZl(A,E,B,w));J.adClientData=e;Q&&(J.serializedSlotAdServingData=
Q.serializedSlotAdServingDataEntry);z&&(J.serializedAdServingData=z.serializedAdServingDataEntry);k&&(J.errorInfo=k);_.Jn("adsClientStateChange",{adsClientEvent:J})}};
H&&H>0?_.fC(_.s8(),function(){return R()},H):R()}catch(A){OJb(g.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.fC(_.s8(),function(){_.yU(A instanceof Error?A:String(A),O,M,{pacf_message:"exception during pacf logging"})})}};var UwD=function(g,r){S$Z.call(this,g,r)};
_.f(UwD,S$Z);var Mq4=function(){},OJb=function(g,r){return _.Y(r)};var uDn=function(){var g=new q$b;this.JSC$13493_adsControlFlowManager=(new w9T(g)).JSC$13474_adsControlFlowManager},q$b=function(){_.f5.call(this);
var g=this;this.experimentApiProvider=new LP6(function(){return new Mq4});
var r=new LP6(function(){return new V4z(g.experimentApiProvider)});
this.adEventLogger=new UwD(this.experimentApiProvider,r);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.f(q$b,_.f5);var lO4=function(){},DwU,M7=function(){DwU||(DwU=new lO4);
return DwU},q7=function(g){if(!g.JSC$13504_externallyManagedSlotAdapterCallback){var r=(new uDn).JSC$13493_adsControlFlowManager;
g.JSC$13504_externallyManagedSlotAdapterCallback=r}return g.JSC$13504_externallyManagedSlotAdapterCallback},oew=function(g,r,E){var B=r.opportunityType,w=Error("Oh");
if(B!==void 0){var O=q7(g);hyD(O,B,void 0,E)}else _.yU(w,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});O=[];if(r.adSlotAndLayoutMetadata!==void 0){r=_.U(r.adSlotAndLayoutMetadata);for(var M=r.next();!M.done;M=r.next()){var u=M.value;if(M=u.adSlotMetadata)if(O.push(M),g.onSlotReceivedExternallyManaged(M,E),u.adLayoutMetadata){u=_.U(u.adLayoutMetadata);for(var l=u.next();!l.done;l=u.next())g.onLayoutReceivedExternallyManaged(M,l.value,E)}else E>0&&_.yU("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
B,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else E>0&&_.yU("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+B,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else E>0&&_.yU("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+B,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(B!==void 0)g.onOpportunityProcessedExternallyManaged(B,O,void 0,E);else _.yU(w,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
lO4.prototype.onSlotReceivedExternallyManaged=function(g,r){g=w0(g);if(g instanceof Bm)_.yU(g,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else q7(this).onSlotReceivedExternallyManaged(g,r)};
lO4.prototype.onLayoutReceivedExternallyManaged=function(g,r,E){g=w0(g);r=SFQ(r);if(g instanceof Bm)_.yU(g,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(r instanceof S7)_.yU(r,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else q7(this).onLayoutReceivedExternallyManaged(g,r,E)};
lO4.prototype.onOpportunityProcessedExternallyManaged=function(g,r,E,B){var w=[];r=_.U(r);for(var O=r.next();!O.done;O=r.next())O=w0(O.value),O instanceof Bm?_.yU(O,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):w.push(O);q7(this).onOpportunityProcessedExternallyManaged(g,w,E,B)};
var Gd6=function(g,r){r=w0(r);if(r instanceof Bm)_.yU(r,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var E=q7(g);r4(E.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",r);E=_.U(E.adsControlFlowEventListeners);for(var B=E.next();!B.done;B=E.next())B=Eu(B.value,r),B.slotLifecycleStage!=="not_scheduled"&&SR(B.slot,B.slotLifecycleStage,"onSlotScheduled"),B.slotLifecycleStage="scheduled";g=q7(g);r4(g.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",r);g=_.U(g.adsControlFlowEventListeners);
for(E=g.next();!E.done;E=g.next())E.value.onSlotEntered(r)}},Qsn=function(g,r){r=w0(r);
if(r instanceof Bm)_.yU(r,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var E=q7(g);r4(E.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",r);E=_.U(E.adsControlFlowEventListeners);for(var B=E.next();!B.done;B=E.next())B.value.onSlotExited(r);g=q7(g);r4(g.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",r);g=_.U(g.adsControlFlowEventListeners);for(E=g.next();!E.done;E=g.next())E.value.onSlotUnscheduled(r)}},zmA=function(g,r,E){r=w0(r);
E=SFQ(E);if(r instanceof Bm)_.yU(r,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(E instanceof S7)_.yU(E,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var B=q7(g);w4(B.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",r,E);B=_.U(B.adsControlFlowEventListeners);for(var w=B.next();!w.done;w=B.next())w.value.onLayoutScheduled(r,E);g=q7(g);w4(g.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",r,E);g=_.U(g.adsControlFlowEventListeners);
for(B=g.next();!B.done;B=g.next())vZ4(B.value,r,E)}},uh=function(g,r,E){r=w0(r);
E=SFQ(E);if(r instanceof Bm)_.yU(r,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(E instanceof S7)_.yU(E,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var B=q7(g);w4(B.adEventLogger,dLt("normal"),r,E);B=_.U(B.adsControlFlowEventListeners);for(var w=B.next();!w.done;w=B.next())w.value.onLayoutExited(r,E,"normal");g=q7(g);g=_.U(g.adsControlFlowEventListeners);for(B=g.next();!B.done;B=g.next())geZ(B.value,r,E)}};_.lh=_.dG(function(g){var r=_.y7(g,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});g=Object.assign({},r);var E=r.data;r=r.customCommandResolver;var B=(delete g.data,delete g.customCommandResolver,g),w=_.VI("ad-image-view-model");_.mz(w,function(){return E().interaction},r,function(){var u;
return(u=B.listenToTapEvent)==null?void 0:u.call(B)});
_.gH(w,{visibilityCallback:function(u){var l,Q=(l=E().interaction)==null?void 0:l.onFirstVisible;u&&(Q&&_.I3(Q),B.setOnErrorHandler()&&OQX(w))},
showOption:_.LO});g=_.U(_.Dk(!1,void 0,"eiYvIe"));var O=g.next().value,M=g.next().value;return _.G("ad-image-view-model",{class:function(){var u,l=[((u=E().interaction)==null?0:u.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],Q;((Q=B.isGridViewEnabled)==null?0:Q.call(B))&&l.push("ytwAdImageViewModelHostInGridView");return l.join(" ")},
el:w,"on:touchend":_.HK(function(){var u;((u=B.setTouchEndHandler)==null?0:u.call(B))&&!O()&&(w.value.click(),M(!0),setTimeout(function(){M(!1)},100));
return!1})},_.G("div",{class:"ytwAdImageViewModelHostImageContainer"},_.G(_.vw,{data:function(){var u;
return{sources:E().imageSources,contentMode:(u=E().imageProperties)==null?void 0:u.contentMode}},
alt:function(){var u,l;return((u=E().interaction)==null?void 0:(l=u.accessibility)==null?void 0:l.label)||""},
targetHeight:B.targetHeight,targetWidth:B.targetWidth,preserveHeight:B.preserveHeight,preserveWidth:B.preserveWidth,useWidth:B.useWidth,style:function(){var u,l;return"vertical-align: bottom;"+(((u=E().background)==null?0:u.color)?"background-color:"+_.aJ((l=E().background)==null?void 0:l.color)+";":"")},
className:function(){return B.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var u,l;return(l=(u=B.setDraggable)==null?void 0:u.call(B))!=null?l:void 0}})))},"mb");var kdU=_.dG(function(g){var r=g.data,E=g.listenToTapEvent,B=_.VI("ad-button-hover-overlay-view-model");_.Y("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.mz(B,function(){return r().interaction},void 0,function(){return E==null?void 0:E()});
_.gH(B,{visibilityCallback:function(O){var M,u=(M=r().interaction)==null?void 0:M.onFirstVisible;O&&u&&_.I3(u)},
showOption:_.LO});var w=function(){};
return _.G("ad-button-hover-overlay-view-model",{"on:click":_.HK(function(){if(_.Y("enable_web_home_top_landscape_image_layout_legacy_click_command")){var O,M=(O=r().interaction)==null?void 0:O.onTap;M&&_.Sh(B.value,"yt-navigate",{endpoint:_.xP(M)})}}),
class:function(){var O;return((O=r().interaction)==null?0:O.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:B},function(){return _.Y("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.G(_.Af,{data:function(){return r().button}},{adButtonViewModel:function(O){return _.G(_.hK,{data:O.data,
customCommandResolver:w})}}):_.G(_.Af,{data:function(){return r().button}},{adButtonViewModel:_.hK})}())},"nb");var O0;_.BK(_.dG(function(g){var r=g.data;var E=_.VI("compact-landscape-no-button-layout-view-model");_.Y("stop_av_measurement_on_detach")&&_.J5(function(){Mq(E)});
_.mz(E,function(){return r().interaction},void 0,function(){return!0});
_.gH(E,{visibilityCallback:function(O){if(O){var M;(O=(M=r().interaction)==null?void 0:M.onFirstVisible)&&_.I3(O);var u;if(M=(u=r().adLayoutData)==null?void 0:u.activeViewData)U0(E,M),_.Y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Mq(E)})}else _.Y("stop_av_measurement_on_detach")&&Mq(E)},
showOption:_.LO,hideOption:Ve});g=_.U(_.Dk(!1,void 0,"yzu6qe"));var B=g.next().value,w=g.next().value;return _.G("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:E,"on:mouseenter":_.HK(function(){w(!0)}),
"on:mouseleave":_.HK(function(){w(!1)})},_.G("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",
style:_.Rl({"max-width":function(){return _.Y("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.G("div",{class:function(){var O;
a:{var M;switch((O=_.n(r().thumbnailImage,iZn))==null?void 0:(M=O.imageProperties)==null?void 0:M.renderingAspect){case "RENDERING_ASPECT_SQUARE":O="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":O="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}O=void 0}return O}},_.G(_.Af,{data:function(){return r().thumbnailImage}},{adImageViewModel:function(O){return _.G(_.lh,
{data:O.data,
listenToTapEvent:!0,setTouchEndHandler:_.Y("enable_top_landscape_image_experiment_dom_id_web")})}})),_.G("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.G(_.p,{cond:function(){var O,M,u;
return(O=_.n(r().thumbnailImage,iZn))==null?void 0:(M=O.imageProperties)==null?void 0:(u=M.overlayIcon)==null?void 0:u.iconImage},
then:function(O){return _.G(_.vw,{data:O,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.G("div",{class:function(){return B()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.G(_.Af,{data:function(){return r().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(O){return _.G(kdU,
{data:O.data,
listenToTapEvent:!0})}}))),_.G("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.G(_.Af,{data:function(){return r().feedAdMetadata}},{feedAdMetadataViewModel:function(O){return _.G(sgw,{data:O.data,
listenToTapEvent:!0,setTouchEndHandler:_.Y("enable_top_landscape_image_experiment_dom_id_web")})}})))},"ob"),"compact-landscape-no-button-layout-view-model",{props:{data:_.cP}});_.BK(_.dG(function(g){var r=g.data;var E=_.VI("square-image-layout-view-model");_.Y("stop_av_measurement_on_detach")&&_.J5(function(){Mq(E)});
var B=_.Ch(_.tf);_.mz(E,function(){return r().interaction});
_.gH(E,{visibilityCallback:function(M){if(M){var u;(M=(u=r().interaction)==null?void 0:u.onFirstVisible)&&_.I3(M);var l;if(u=(l=r().adLayoutData)==null?void 0:l.activeViewData)U0(E,u),_.Y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Mq(E)})}else _.Y("stop_av_measurement_on_detach")&&Mq(E)},
showOption:_.LO,hideOption:Ve});g={};var w={},O={};return _.G("square-image-layout-view-model",{class:_.QY("ytwSquareImageLayoutViewModelHost",(g.ytwSquareImageLayoutViewModelHostColumn=B,g)),el:E},_.G("div",{class:_.QY("ytwSquareImageLayoutViewModelHostImage",(w.ytwSquareImageLayoutViewModelHostColumnImage=B,w))},function(){return _.G(_.Af,{data:function(){return r().adImage}},{adImageViewModel:function(M){return _.G(_.lh,{data:M.data,
isGridViewEnabled:B,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.G("div",{class:_.QY("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(O.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=B,O))},_.G(_.Af,{data:function(){return r().feedAdMetadata}},{feedAdMetadataViewModel:sgw}),function(){return _.G(_.Af,{data:function(){return r().adButton}},{adButtonViewModel:function(M){var u={};
return _.G(_.hK,{data:M.data,className:_.QY((u.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,u.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=B,u))})}})}()))},"pb"),"square-image-layout-view-model",{props:{data:_.cP}});_.BK(_.dG(function(g){var r=g.data;var E=g.noBottomMargin;var B=g.typographyBump;var w=_.VI("top-landscape-image-layout-view-model");_.Y("stop_av_measurement_on_detach")&&_.J5(function(){Mq(w)});
_.Y("enable_web_home_top_landscape_image_layout_level_click")&&_.mz(w,function(){return r().interaction},void 0,function(){return!0});
g=function(){return r().interaction};
g!==void 0&&g!==null||_.NX(Error("Ph"));_.gH(w,{visibilityCallback:function(Q){if(Q){var z;(Q=(z=r().interaction)==null?void 0:z.onFirstVisible)&&_.I3(Q);var k;if(z=(k=r().adLayoutData)==null?void 0:k.activeViewData)U0(w,z),_.Y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Mq(w)})}else _.Y("stop_av_measurement_on_detach")&&Mq(w)},
showOption:_.LO,hideOption:Ve});var O=function(){var Q,z,k;return(Q=_.n(r().thumbnailImage,iZn))==null?void 0:(z=Q.background)==null?void 0:(k=z.backgroundImageSource)==null?void 0:k.imageSources};
g=_.U(_.Dk(!1,void 0,"GIwTMc"));var M=g.next().value,u=g.next().value,l=function(){return M()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.G("top-landscape-image-layout-view-model",{class:function(){var Q;return((Q=r().interaction)==null?0:Q.onTap)&&_.Y("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:w,"on:mouseenter":_.HK(function(){u(!0)}),
"on:mouseleave":_.HK(function(){u(!1)})},_.G("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.G(_.p,{cond:function(){return O()&&O().length>0},
then:function(){return _.G("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.Rl({top:"0","background-image":function(){return"url("+String(O()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.G(_.p,{cond:function(){return!!r().adButtonHoverOverlay},
then:function(){return _.G("div",{class:l},_.G(_.Af,{data:function(){return r().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:kdU}))}}),_.G("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.G(_.Af,{data:function(){return r().thumbnailImage}},{adImageViewModel:function(Q){return _.G(_.lh,{data:Q.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.Y("enable_web_home_top_landscape_image_layout_level_click")})}})),_.G("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.G(_.vw,{data:{sources:[{clientResource:{imageName:_.Y("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.G("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.G(_.Af,{data:function(){return r().feedAdMetadata}},{feedAdMetadataViewModel:function(Q){return _.G(sgw,{data:Q.data,
noBottomMargin:function(){return E==null?void 0:E()},
listenToTapEvent:function(){return _.Y("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return B==null?void 0:B()}})}})))},"qb"),"top-landscape-image-layout-view-model",{props:{data:_.cP,
noBottomMargin:_.cP,typographyBump:_.cP}});_.BK(_.dG(function(g){var r=g.data;var E=g.typographyBump;var B=_.VI("video-display-button-group-layout-view-model");_.gH(B,{visibilityCallback:function(w){if(w){var O;(w=(O=r().interaction)==null?void 0:O.onFirstVisible)&&_.I3(w);var M;O=(M=r().adLayoutData)==null?void 0:M.activeViewData;!_.Y("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&O&&U0(B,O)}},
showOption:_.LO,hideOption:Ve});return _.G("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:B},_.G("div",null,_.G(_.Af,{data:function(){return r().videoLockup}},{lockupViewModel:function(w){return _.G(_.rR,{data:w.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:E})}})))},"rb"),"video-display-button-group-layout-view-model",{props:{data:_.cP,
noBottomMargin:_.cP,typographyBump:_.cP}});_.BK(_.dG(function(g){var r=g.data;var E=g.className;var B=g.typographyBump;var w=_.VI("video-display-compact-button-group-layout-view-model");_.gH(w,{visibilityCallback:function(O){if(O){var M;(O=(M=r().interaction)==null?void 0:M.onFirstVisible)&&_.I3(O);var u;(M=(u=r().adLayoutData)==null?void 0:u.activeViewData)&&U0(w,M)}},
showOption:_.LO});return _.G("video-display-compact-button-group-layout-view-model",{el:w,class:_.QY("videoDisplayCompactButtonGroupLayoutViewModelHost",E)},_.G(_.Af,{data:function(){return r().videoLockup}},{lockupViewModel:function(O){return _.G(_.rR,{data:O.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:B})}}))},"sb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.cP,
className:_.cP,typographyBump:_.cP}});_.BK(_.dG(function(g){var r=g.data;var E=g.typographyBump;var B=_.VI("video-display-full-layout-view-model");_.gH(B,{visibilityCallback:function(w){if(w){var O;(w=(O=r().interaction)==null?void 0:O.onFirstVisible)&&_.I3(w);var M;O=(M=r().adLayoutData)==null?void 0:M.activeViewData;!_.Y("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&O&&U0(B,O)}},
showOption:_.LO,hideOption:Ve});return _.G("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:B},_.G("div",null,_.G(_.Af,{data:function(){return r().videoLockup}},{lockupViewModel:function(w){return _.G(_.rR,{data:w.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:E})}})))},"tb"),"video-display-full-layout-view-model",{props:{data:_.cP,
noBottomMargin:_.cP,typographyBump:_.cP}});_.HJ6=_.dG(function(g){var r=g.data;g=_.VI("ad-card-badge-view-model");return _.G("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:g},_.G(_.p,{cond:function(){return r().imageBadge},
then:function(E){return _.G(_.vw,{data:E,alt:""})}}))},"ub");var p9n=_.dG(function(g){var r=g.data;var E=g.customCommandResolver;g=_.VI("carousel-ad-card-image-view-model");_.mz(g,function(){return r().interaction},E);
_.gH(g,{visibilityCallback:function(B){var w,O=(w=r().interaction)==null?void 0:w.onFirstVisible;B&&O&&_.I3(O)},
showOption:_.LO});return _.G("carousel-ad-card-image-view-model",{class:function(){var B;return((B=r().interaction)==null?0:B.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:g,"aria-label":function(){var B,w;return(B=r().interaction)==null?void 0:(w=B.accessibility)==null?void 0:w.label}},_.G(_.Af,{data:function(){return r().adImage}},{adImageViewModel:function(B){return _.G(_.lh,{data:B.data,
customCommandResolver:E})}}),_.G("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.G(_.Af,{data:function(){return r().badge}},{adCardBadgeViewModel:_.HJ6})),_.G(_.jk,{model:{color:4}}))},"vb");var Y$m=_.dG(function(g){var r=_.U(_.Dk(0,void 0,"o9Bzd")),E=r.next().value;r.next();var B=r.next().value,w=_.U(_.Dk(!1,void 0,"KLdzYe"));r=w.next().value;var O=w.next().value,M;_.J5(function(){clearTimeout(M)});
w=_.HK(function(){var Q;((Q=g.animate)==null?0:Q.call(g))?(O(!0),M=setTimeout(function(){O(!1);u()},200)):u();
return!1});
var u=function(){B(function(Q){return(Q+g.numShownItems())%g.data().length})},l={};
return _.G("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.G("div",{class:_.QY("ytwHorizontalCarouselCarouselWrapper")},_.G("div",{class:_.QY("ytwHorizontalCarouselCarouselInnerWrapper",(l.ytwHorizontalCarouselAnimating=r,l))},_.G(_.Ra,{each:g.data,keyBy:"INDEX"},function(Q,z){return _.G("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.Rl({"flex-basis":function(){return"calc((100% - (8px * "+(g.numShownItems()-1)+")) / "+g.numShownItems()+")"},
order:function(){var k=z-E();k<0&&(k+=g.data().length);return k}})},g.children(Q,z))}))),_.G("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":w},g.nextButton()))},"wb");var RmT=_.dG(function(g){var r=g.data;var E=g.customCommandResolver;var B=g.expansive;g=_.VI("carousel-ad-card-collection-view-model");_.gH(g,{visibilityCallback:function(w){var O,M=(O=r().interaction)==null?void 0:O.onFirstVisible;w&&M&&_.I3(M)},
showOption:_.LO});return _.G("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:g},_.G(Y$m,{data:function(){var w;return((w=r())==null?void 0:w.carouselAdCards)||[]},
nextButton:function(){return _.G(_.Af,{data:function(){return r().nextButton}},{buttonViewModel:function(w){var O=w.data;
return _.G(_.MV,{data:function(){return(B==null?0:B())?Object.assign({},O(),{style:"mono"}):O()},
className:_.Y("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(w){return _.G(_.Af,{data:w},{carouselAdCardImageViewModel:function(O){return _.G(p9n,{data:O.data,customCommandResolver:E})}})}))},"xb");var nen=_.dG(function(g){var r=g.data;var E=g.customCommandResolver;var B=g.className;var w=g.buttonClassName;var O=g.animationEntityKey;var M=g.expansive;return _.G("carousel-button-view-model",{class:_.QY("ytwCarouselButtonViewModelHost",B)},_.G(_.Af,{data:function(){return r().carousel}},{carouselAdCardCollectionViewModel:function(u){return _.G(RmT,{data:u.data,
customCommandResolver:E,expansive:M})}}),_.G(_.Af,{data:function(){return r().button}},{adButtonViewModel:function(u){var l=u.data;
return _.G(_.hK,{data:function(){return(M==null?0:M())?Object.assign({},l(),{style:"AD_BUTTON_STYLE_TONAL"}):l()},
className:w,customCommandResolver:E,animationEntityKey:O})}}))},"yb");_.ssm=_.dG(function(g){var r=g.data;g=g.className;var E=_.VI("pivot-button-view-model");_.Jk(function(){var B;((B=r())==null?0:B.backgroundColor)&&E.value.setAttribute("data-background-color",String(r().backgroundColor))});
return _.G("pivot-button-view-model",{el:E,class:_.QY("ytwPivotButtonViewModelHost",g)},_.G(_.NQ,{command:function(){var B=r();B=B.onClickCommand?_.xP(B.onClickCommand):B.contentDescription?_.dz(B.contentDescription):void 0;return B},
ariaLabel:function(){return r().contentDescription}},_.G(_.p,{cond:function(){return r().thumbnail},
then:function(B){return _.G(_.vw,{data:B,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.G(_.p,{cond:function(){return r().icon},
then:function(B){return _.G(_.nh,{icon:function(){return B().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"zb");_.fOb=_.dG(function(g){var r=g.data;var E=g.buttonShapeOverrideables;return _.G("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.G(_.Af,{data:function(){return r().buttonViewModels}},{buttonViewModel:function(B){return _.G(_.MV,{data:B.data,
buttonOverrides:E})},
likeButtonViewModel:function(B){return _.G(_.$n,{data:B.data,buttonShapeOverrideables:E})},
dislikeButtonViewModel:function(B){return _.G(_.fj,{data:B.data,buttonShapeOverrideables:E})},
toggleButtonViewModel:function(B){return _.G(_.RY,{data:B.data,buttonShapeOverrides:E})}}))},"Ab");var $wT=_.dG(function(g){var r=g.avatar;var E=g.headline;var B=g.badge;var w=g.description;var O=g.expansive;g={};return _.G("yt-ad-metadata-shape",{class:_.QY("ytAdMetadataShapeHost",(g.ytAdMetadataShapeHostLarge=O,g))},_.G("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.G(_.p,{cond:r,then:function(M){return _.G(_.plz,{data:function(){return(O==null?0:O())?Object.assign({},M(),{size:"AD_AVATAR_SIZE_MPLUS"}):M()}})}}),_.G("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.G(_.hf,{text:E,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.G(_.p,{cond:B,then:function(M){return _.G(_.TV,{data:function(){return(O==null?0:O())?Object.assign({},M(),{style:"AD_BADGE_STYLE_STARK"}):M()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.G("h2",{class:"ytAdMetadataShapeHostDescription"},_.G(_.hf,{text:w,
linkInheritColor:!0})))},"Bb");var js6=_.dG(function(g){var r=g.data;var E=g.onShow;var B=g.expansive;g=_.VI("reels-ad-card-buttoned-view-model");_.mz(g,function(){return r().interaction});
_.Jk(function(){var O,M=(O=r().animatedRenderingConfig)==null?void 0:O.delayedSecondsToVisible;if(M){var u=setTimeout(E,M*1E3);_.J5(function(){clearTimeout(u)})}});
var w={};return _.G("reels-ad-card-buttoned-view-model",{class:_.QY(function(){var O;return((O=r().interaction)==null?0:O.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(w.ytwReelsAdCardButtonedViewModelHostExpansive=B,w)),
el:g},_.G($wT,{avatar:function(){return _.n(r().avatar,mSz)},
headline:function(){return r().headline},
badge:function(){return _.n(r().adBadge,cQZ)},
description:function(){return r().description},
expansive:B}),_.G(_.Af,{data:function(){return r().ctaButton}},{adButtonViewModel:function(O){var M=O.data;
return _.G(_.hK,{data:function(){return(B==null?0:B())?Object.assign({},M(),{style:"AD_BUTTON_STYLE_FILLED"}):M()}})}}))},"Cb");var ArD=_.dG(function(g){var r=g.data;g=g.expansive;var E=_.VI("reels-ad-metadata-view-model");_.Y("web_ad_metadata_clickable")&&_.mz(E,function(){return r().interaction});
var B={};B=_.zw("ytwReelsAdMetadataViewModelHost",(B.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.Y("web_ad_metadata_clickable"),B));return _.G("reels-ad-metadata-view-model",{class:B,el:E},_.G($wT,{avatar:function(){return _.n(r().avatar,mSz)},
headline:function(){return r().headline},
badge:function(){return _.n(r().adBadge,cQZ)},
description:function(){return r().description},
expansive:g}))},"Db");var bJT={iconPosition:"icon-with-label",size:"L"},Jrw=_.dG(function(g){var r=g.data;var E=g.overlayDensity;g=_.VI("reels-player-overlay-layout-view-model");var B=_.Zo(E,0),w=function(){var k;return(k=r().reelsAdCardButtonedEntityKey)!=null?k:""},O=function(){return w()+"/ad_button"},M=_.QU(F2J,w),u=function(){var k,H;
return(H=(k=M())==null?void 0:k.value)!=null?H:!1},l=_.Ch(oZY),Q=function(){return Object.assign({},bJT,(l()||B()===2)&&{style:"overlay-dark"})};
E={};var z={};return _.G("reels-player-overlay-layout-view-model",{class:_.QY("ytwReelsPlayerOverlayLayoutViewModelHost",(E.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!r().extension},E.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},E)),
"overlay-density":function(){return String(B())},
el:g},_.G("div",{class:_.QY("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(z.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},z))},_.G("div",{"aria-hidden":function(){return u()},
class:_.QY("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return u()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.Rl({"transition-duration":function(){return k9t(r())}})},_.G(_.Af,{data:function(){return r().adMetadata}},{reelsAdMetadataViewModel:function(k){return _.G(ArD,{data:k.data,
expansive:function(){return B()===1}})}}),_.G(_.p,{cond:function(){return r().extension},
then:function(k){return _.G("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.G(_.Af,{data:k},{adButtonViewModel:function(H){return _.G(_.hK,{data:H.data,animationEntityKey:O,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(H){return _.G(nen,{data:H.data,animationEntityKey:O,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return B()===1}})}}))}})),_.G("div",{"aria-hidden":function(){return!u()},
class:_.QY("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return u()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.Rl({"transition-duration":function(){return k9t(r())}})},_.G(_.Af,{data:function(){return r().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(k){return _.G(js6,{data:k.data,
onShow:function(){_.hC(_.za("booleanEntity",w(),{key:w(),value:!0}))},
expansive:function(){return B()===1}})}}))),_.G("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.G(_.Af,{data:function(){return r().actions}},{reelActionBarViewModel:function(k){return _.G(_.fOb,{data:k.data,
buttonShapeOverrideables:Q})}}),_.G(_.Af,{data:function(){return r().menu}},{buttonViewModel:function(k){return _.G(_.MV,{data:k.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},Q(),{type:"tonal"})}})}}),_.G(_.Af,{data:function(){return r().pivotButton}},{pivotButtonViewModel:function(k){return _.G(_.ssm,{data:k.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Eb");_.BK(Jrw,"reels-player-overlay-layout-view-model",{props:{data:_.cP,overlayDensity:_.cP}});var Dd=function(){var g=_.a.apply(this,arguments)||this;g.noBottomMargin=!1;g.overlayDensity=0;return g};
_.f(Dd,_.a);_.S=Dd.prototype;
_.S.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.Y("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]]"}}}}}};
_.S.ready=function(){var g=this;M$J(function(){g.isAttached&&r0(g.JSC$13547_storedAdSlotMetadata,g.JSC$13547_storedAdLayoutMetadata,g.adSlotMetadata,g.adLayoutMetadata)&&uh(M7(),g.JSC$13547_storedAdSlotMetadata,g.JSC$13547_storedAdLayoutMetadata)})};
_.S.attached=function(){r0(this.JSC$13547_storedAdSlotMetadata,this.JSC$13547_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&zmA(M7(),this.JSC$13547_storedAdSlotMetadata,this.JSC$13547_storedAdLayoutMetadata)};
_.S.detached=function(){r0(this.JSC$13547_storedAdSlotMetadata,this.JSC$13547_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&uh(M7(),this.JSC$13547_storedAdSlotMetadata,this.JSC$13547_storedAdLayoutMetadata)};
_.S.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.S.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13547_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13547_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13547_storedAdLayoutMetadata!==void 0&&this.JSC$13547_storedAdSlotMetadata!==void 0&&uh(M7(),this.JSC$13547_storedAdSlotMetadata,this.JSC$13547_storedAdLayoutMetadata),zmA(M7(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13547_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13547_storedAdSlotMetadata=this.adSlotMetadata)};
_.hx.Object.defineProperties(Dd.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.adLayoutMetadata}}});
Dd.prototype.onAdMetadataChanged=Dd.prototype.onAdMetadataChanged;Dd.prototype.onTypographyBumpChanged=Dd.prototype.onTypographyBumpChanged;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Dd.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Dd.prototype,"rendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Dd.prototype,"ytComponentBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],Dd.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],Dd.prototype,"noBottomMargin",void 0);_.m([_.K(),_.L("design:type",Object)],Dd.prototype,"overlayDensity",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],Dd.prototype,"typographyBump",void 0);_.m([_.W("data.adLayoutMetadata"),_.L("design:type",Object),_.L("design:paramtypes",[])],Dd.prototype,"adLayoutMetadata",null);_.m([_.K(),_.L("design:type",Object)],Dd.prototype,"adSlotMetadata",void 0);
_.m([_.zb("ytd-video-display-full-buttoned-and-button-group-renderer"),_.L("design:type",HTMLElement)],Dd.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.m([_.Gb("typographyBump"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Dd.prototype,"onTypographyBumpChanged",null);_.m([_.Gb("adLayoutMetadata","adSlotMetadata"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Dd.prototype,"onAdMetadataChanged",null);
_.m([_.N({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],Dd);
_.I(Dd,"ytd-in-feed-ad-layout-renderer",function(){if(YFU!==void 0)return YFU;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return YFU=g},
{mode:_.My("kevlar_poly_si_batch_j028")?1:2});var PbU;var tqw;var o0=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return g};
_.f(o0,_.a);_.S=o0.prototype;_.S.computeHasLiveDescription=function(g){return!(g==null||!g.liveDescription)};
_.S.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.S.onYtToggleButton=function(g){var r,E=(r=this.data)==null?void 0:r.videoReminderEntityKey;E&&this.ytdReduxBehavior.dispatch(_.za("upcomingEventReminderStateEntity",E,{key:E,state:g.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.S.attached=function(){this.updateChannelBanner()};
_.S.dataChanged=function(){this.updateChannelBanner()};
_.S.videoReminderStateChanged=function(){var g;this.videoReminderState&&_.n((g=this.data)==null?void 0:g.cta,_.ef)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.S.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var g=_.wt(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);g&&(g.startsWith("//")&&(g="https:"+g),this.hostElement.classList.add("channel-banner"),_.ua(this.hostElement,{"--ytvmh-channel-banner":"url("+g+")"}))}else _.Y("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.S.onPlayerReady=function(){this.onIronResize()};
_.S.maybeFlushDebouncer=function(){_.Y("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(g){var r;g=(r=g.getElementsByTagName("yt-attributed-string"))==null?void 0:r[0];bHt(g==null?void 0:g.polymerController)})};
_.S.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var g=_.S3(this.hostElement).querySelector("#live-description"),r;g&&((r=this.data)==null?0:r.shortLiveDescription)&&g.clientWidth<g.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
o0.prototype.onIronResize=o0.prototype.onIronResize;o0.prototype.videoReminderStateChanged=o0.prototype.videoReminderStateChanged;o0.prototype.dataChanged=o0.prototype.dataChanged;o0.prototype.onYtToggleButton=o0.prototype.onYtToggleButton;_.m([_.P(_.f7),_.L("design:type",Object)],o0.prototype,"ironResizableBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],o0.prototype,"ytActionHandlerBehavior",void 0);
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],o0.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],o0.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],o0.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],o0.prototype,"data",void 0);_.m([_.K({selectorArgs:["data.videoReminderEntityKey"],selector:FfX}),_.L("design:type",Object)],o0.prototype,"videoReminderState",void 0);
_.m([_.K({reflectToAttribute:!0,value:_.Y("web_modern_buttons")}),_.L("design:type",Boolean)],o0.prototype,"rounded",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.L("design:type",Boolean)],o0.prototype,"hasLiveDescription",void 0);_.m([_.K({reflectToAttribute:!0,value:_.Y("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.L("design:type",Boolean)],o0.prototype,"resizableAdBannerSafariFix",void 0);
_.m([_.K({reflectToAttribute:!0,value:_.Y("align_three_dot_menu_with_title_description")}),_.L("design:type",Boolean)],o0.prototype,"menuFix",void 0);_.m([_.kk("yt-formatted-string"),_.L("design:type",Array)],o0.prototype,"formattedStrings",void 0);_.m([_.zb("#cta-button"),_.L("design:type",HTMLElement)],o0.prototype,"ctaButton",void 0);_.m([_.ob("yt-toggle-button"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],o0.prototype,"onYtToggleButton",null);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],o0.prototype,"dataChanged",null);_.m([_.Gb("videoReminderState"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],o0.prototype,"videoReminderStateChanged",null);_.m([_.ob("iron-resize"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],o0.prototype,"onIronResize",null);
_.m([_.N({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],o0);
_.I(o0,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(tqw!==void 0)return tqw;var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n    </div>\n  </div>\n</div>\n');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return tqw=g},{mode:1});var FUT;var GQ=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};g.isLocked=!1;return g};
_.f(GQ,_.a);_.S=GQ.prototype;_.S.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.S.onExpandedChanged=function(){this.expanded&&_.US(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.S.onMouseOver=function(){this.maybeExpand()};
_.S.onTap=function(){this.maybeExpand()};
_.S.onExpandableTileExpanding=function(g){g!==this&&(this.expanded=!1)};
_.S.onExpandableTileLockAndCollapse=function(g){this.isLocked=!0;g!==this&&(this.expanded=!1)};
_.S.onExpandableTileUnlock=function(){this.isLocked=!1};
GQ.prototype.onTap=GQ.prototype.onTap;GQ.prototype.onMouseOver=GQ.prototype.onMouseOver;GQ.prototype.onExpandedChanged=GQ.prototype.onExpandedChanged;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],GQ.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],GQ.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],GQ.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],GQ.prototype,"expanded",void 0);_.m([_.Yk("expanded"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],GQ.prototype,"onExpandedChanged",null);_.m([_.ob("mouseover"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],GQ.prototype,"onMouseOver",null);_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],GQ.prototype,"onTap",null);
_.m([_.N({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],GQ);
_.I(GQ,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(FUT!==void 0)return FUT;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return FUT=g},{mode:1});var emn;var QM=function(){var g=_.a.apply(this,arguments)||this;g.buttonOverrides={style:"overlay"};g.useYtdPlayer=_.Y("use_ytd_player_for_desktop_masthead");g.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};g.playbackFinished=!1;g.JSC$13559_playerManager=null;g.JSC$13559_mastheadCounter=new mNA;return g};
_.f(QM,_.a);_.S=QM.prototype;_.S.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.S.created=function(){this.JSC$13559_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13559_playerManager=new sC)};
_.S.ready=function(){var g=this;this.JSC$13559_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var r=_.S3(this.hostElement).querySelector("#player");this.useYtdPlayer?r.style.display="none":(this.ytdPlayer.style.display="none",IjD(this.JSC$13559_playerManager,r,function(){g.onPlaybackEnded()}),_.S3(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var E;
((E=g.data)==null?0:E.navigationEndpoint)&&_.Sh(g.hostElement,"yt-navigate",{endpoint:g.data.navigationEndpoint})}))};
_.S.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13559_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.S.attached=function(){var g=this;_.N1(function(){g.maybePlayVideo()})};
_.S.maybePlayVideo=function(){var g=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$13559_playerManager.playVideo(),this.getPlayerPromise().then(function(){g.JSC$13559_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.S.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13559_playerManager.stopVideo()};
_.S.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var g,r={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((g=this.data.playbackStartMs)!=null?g:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(r);this.setupYtdPlayer()}else cIT(this.JSC$13559_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(mvT(this.JSC$13559_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.S.getPlayerPromise=function(){return this.JSC$13559_playerManager.getPlayerPromise()};
_.S.onYtToggleButton=function(g){this.useYtdPlayer?this.toggleMute(g.detail.toggled):g.detail.toggled?this.JSC$13559_playerManager.mute():this.JSC$13559_playerManager.unMute()};
_.S.onYtNavigate=function(g){var r=pdD(g.detail.endpoint),E=Y_l(this.data.clickthroughReportingData);r&&E&&(g.detail.endpoint.watchEndpoint?g.detail.tempData=E:_.yk(r,E,30))};
_.S.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.S.onExpandedChanged=function(){this.expanded?(_.US(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.S.onMouseOver=function(){this.maybeExpand()};
_.S.onTap=function(){this.maybeExpand()};
_.S.onExpandableTileExpanding=function(g){g!==this&&(this.stopVideo(),this.expanded=!1)};
_.S.onExpandableTileLockAndCollapse=function(g){g!==this&&(this.isLocked=!0,this.expanded=!1)};
_.S.onExpandableTileUnlock=function(){this.isLocked=!1};
_.S.lockAndCollapseExpandableTiles=function(){_.OS(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.S.unlockExpandableTiles=function(){_.OS(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.S.setupYtdPlayer=function(){var g=this,r;return _.q(function(E){if(E.nextAddress==1)return _.D(E,g.ytdPlayer.getPlayerPromise(),2);r=E.yieldResult;r.addEventListener("onStateChange",function(B){g.onPlayerStateChange(B)});
r.addEventListener("onCueRangeExit",function(B){g.onCueRangeExit(B)});
_.Q3(E)})};
_.S.onPlayerStateChange=function(g){if(g===1&&(g=this.ytdPlayer.getPlayer())){var r=g.getCurrentTime(),E,B,w=r+((B=(E=this.data)==null?void 0:E.playbackDurationMs)!=null?B:0)/1E3;g.addCueRange("playback",r,w);this.JSC$13559_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.S.onCueRangeExit=function(g){g==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.S.toggleMute=function(g){var r=this,E;return _.q(function(B){if(B.nextAddress==1)return _.D(B,r.ytdPlayer.getPlayerPromise(),2);E=B.yieldResult;g?E.mute():E.unMute();_.Q3(B)})};
QM.prototype.onTap=QM.prototype.onTap;QM.prototype.onMouseOver=QM.prototype.onMouseOver;QM.prototype.onExpandedChanged=QM.prototype.onExpandedChanged;QM.prototype.onYtNavigate=QM.prototype.onYtNavigate;QM.prototype.onYtToggleButton=QM.prototype.onYtToggleButton;QM.prototype.dataChanged=QM.prototype.dataChanged;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],QM.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],QM.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],QM.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],QM.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],QM.prototype,"expanded",void 0);_.m([_.K(),_.L("design:type",Object)],QM.prototype,"buttonOverrides",void 0);
_.m([_.K(),_.L("design:type",Object)],QM.prototype,"useYtdPlayer",void 0);_.m([_.zb("#ytd-player"),_.L("design:type",Object)],QM.prototype,"ytdPlayer",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],QM.prototype,"dataChanged",null);_.m([_.ob("yt-toggle-button"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],QM.prototype,"onYtToggleButton",null);
_.m([_.ob("yt-navigate"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],QM.prototype,"onYtNavigate",null);_.m([_.Yk("expanded"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],QM.prototype,"onExpandedChanged",null);_.m([_.ob("mouseover"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],QM.prototype,"onMouseOver",null);
_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],QM.prototype,"onTap",null);_.m([_.N({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],QM);
_.I(QM,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(emn!==void 0)return emn;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return emn=g},{mode:1});var WU6;var zQ=function(){return _.a.apply(this,arguments)||this};
_.f(zQ,_.a);zQ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
zQ.prototype.onShow=function(){var g=_.S3(this.hostElement).querySelector("#live-description"),r;g&&((r=this.data)==null?0:r.shortLiveDescription)&&g.clientWidth<g.scrollWidth&&this.hostElement.classList.add("short-live-description")};
zQ.prototype.onYtToggleButton=function(g){var r,E=(r=this.data)==null?void 0:r.videoReminderEntityKey;E&&this.ytdReduxBehavior.dispatch(_.za("upcomingEventReminderStateEntity",E,{key:E,state:g.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
zQ.prototype.videoReminderStateChanged=function(){var g;this.videoReminderState&&_.n((g=this.data)==null?void 0:g.cta,_.ef)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
zQ.prototype.videoReminderStateChanged=zQ.prototype.videoReminderStateChanged;zQ.prototype.onYtToggleButton=zQ.prototype.onYtToggleButton;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],zQ.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],zQ.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],zQ.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],zQ.prototype,"data",void 0);
_.m([_.K({selectorArgs:["data.videoReminderEntityKey"],selector:FfX}),_.L("design:type",Object)],zQ.prototype,"videoReminderState",void 0);_.m([_.ob("yt-toggle-button"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],zQ.prototype,"onYtToggleButton",null);_.m([_.Gb("videoReminderState"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],zQ.prototype,"videoReminderStateChanged",null);
_.m([_.N({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],zQ);
_.I(zQ,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(WU6!==void 0)return WU6;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return WU6=g},{mode:_.My("kevlar_poly_si_batch_j065")?1:2});var Cbw;var kV=function(){var g=_.a.apply(this,arguments)||this;g.useYtdPlayer=_.Y("use_ytd_player_for_desktop_masthead");g.buttonOverrides={style:"overlay"};g.JSC$13567_playerManager=null;g.JSC$13567_mastheadCounter=new mNA;g.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return g};
_.f(kV,_.a);_.S=kV.prototype;_.S.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.S.created=function(){this.JSC$13567_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13567_playerManager=new sC)};
_.S.ready=function(){var g=this;this.JSC$13567_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var r;(r=this.embeddedPlayer)==null||r.remove()}else{var E;(E=this.ytdPlayer)==null||E.remove();IjD(this.JSC$13567_playerManager,this.embeddedPlayer,function(){g.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){g.data&&g.data.navigationEndpoint&&_.Sh(g.hostElement,"yt-navigate",{endpoint:g.data.navigationEndpoint})})}};
_.S.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13567_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.S.dataChanged=function(){var g=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var r=!this.data.disableAutoPlayback,E,B={autoplay:r,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((E=this.data.playbackStartMs)!=null?E:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(r?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(B);this.setupYtdPlayer()}else cIT(this.JSC$13567_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(mvT(this.JSC$13567_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13567_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.OS(g.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");g.JSC$13567_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.S.getPlayerPromise=function(){return this.JSC$13567_playerManager.getPlayerPromise()};
_.S.onYtToggleButton=function(g){this.useYtdPlayer?this.toggleMute(g.detail.toggled):g.detail.toggled?this.JSC$13567_playerManager.mute():this.JSC$13567_playerManager.unMute()};
_.S.onYtNavigate=function(g){var r=pdD(g.detail.endpoint),E=Y_l(this.data.clickthroughReportingData);r&&E&&(g.detail.endpoint.watchEndpoint?g.detail.tempData=E:_.yk(r,E,30))};
_.S.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13567_playerManager.stopVideo()};
_.S.setupYtdPlayer=function(){var g=this,r;return _.q(function(E){if(E.nextAddress==1)return _.D(E,g.ytdPlayer.getPlayerPromise(),2);r=E.yieldResult;r.addEventListener("onStateChange",function(B){g.onPlayerStateChange(B)});
r.addEventListener("onCueRangeExit",function(B){g.onCueRangeExit(B)});
_.Q3(E)})};
_.S.onPlayerStateChange=function(g){if(g===1&&(g=this.ytdPlayer.getPlayer())){var r=g.getCurrentTime(),E,B,w=r+((B=(E=this.data)==null?void 0:E.playbackDurationMs)!=null?B:0)/1E3;g.addCueRange("playback",r,w);_.OS(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13567_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.S.onCueRangeExit=function(g){g==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.S.toggleMute=function(g){var r=this,E;return _.q(function(B){if(B.nextAddress==1)return _.D(B,r.ytdPlayer.getPlayerPromise(),2);E=B.yieldResult;g?E.mute():E.unMute();_.Q3(B)})};
_.hx.Object.defineProperties(kV.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var g,r;if(!((g=this.data)==null?0:(r=g.accessibilityData)==null?0:r.label))return"Ad primary link";var E,B;return _.zn("AD_TITLE",{title:(E=this.data)==null?void 0:(B=E.accessibilityData)==null?void 0:B.label})}}});
kV.prototype.onYtMastheadHidden=kV.prototype.onYtMastheadHidden;kV.prototype.onYtNavigate=kV.prototype.onYtNavigate;kV.prototype.onYtToggleButton=kV.prototype.onYtToggleButton;kV.prototype.dataChanged=kV.prototype.dataChanged;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],kV.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],kV.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],kV.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],kV.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],kV.prototype,"useYtdPlayer",void 0);_.m([_.zb("ytd-toggle-button-renderer"),_.L("design:type",Object)],kV.prototype,"muteButton",void 0);_.m([_.K(),_.L("design:type",Object)],kV.prototype,"buttonOverrides",void 0);
_.m([_.W("data.accessibilityData.label"),_.L("design:type",String),_.L("design:paramtypes",[])],kV.prototype,"titleAriaLabel",null);_.m([_.zb("#replay-button"),_.L("design:type",Object)],kV.prototype,"replayButton",void 0);_.m([_.zb("#player-container"),_.L("design:type",Object)],kV.prototype,"playerContainer",void 0);_.m([_.zb("#player"),_.L("design:type",Object)],kV.prototype,"embeddedPlayer",void 0);_.m([_.zb("#ytd-player"),_.L("design:type",Object)],kV.prototype,"ytdPlayer",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],kV.prototype,"dataChanged",null);_.m([_.ob("yt-toggle-button"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],kV.prototype,"onYtToggleButton",null);_.m([_.ob("yt-navigate"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],kV.prototype,"onYtNavigate",null);
_.m([_.ob("yt-masthead-hidden"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],kV.prototype,"onYtMastheadHidden",null);_.m([_.N({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],kV);
_.I(kV,"ytd-video-masthead-ad-primary-video-renderer",function(){if(Cbw!==void 0)return Cbw;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Cbw=g},{mode:2});var KUm;var Hc=function(){var g=_.a.apply(this,arguments)||this;g.collapsed=!1;g.impressionResolver=_.iW();g.JSC$13571_activeViewMeasurementDataResolver=_.iW();g.actionMap={"yt-mute-ad-action":"handleMuteAd"};return g};
_.f(Hc,_.a);_.S=Hc.prototype;_.S.configureRendererStamper=function(){return{"data.expandableTiles":{id:"expandable-tile-container",mapping:{videoMastheadAdExpandableThumbnailTileRenderer:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",videoMastheadAdExpandableVideoTileRenderer:"ytd-video-masthead-ad-expandable-video-tile-renderer"}},"data.showAdRenderer":{id:"show-ad",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S.ready=function(){var g=this;_.S3(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){g.expandAd()});
this.hostElement.addEventListener("yt-action",function(r){if(r.detail.actionName==="yt-service-request"){var E=r.detail.args[1];E.videoMastheadAdMuteCommand&&(g.collapseAd(E.videoMastheadAdMuteCommand.encryptedMastheadId),r.stopPropagation())}})};
_.S.attached=function(){var g=this;_.N1(function(){g.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(r){if(!g.collapsed){r=_.U(r);for(var E=r.next();!E.done;E=r.next())E=E.value,c8(E.baseUrl,E.attributionSrcMode);g.data.impressionCommand=void 0}});
this.JSC$13571_activeViewMeasurementDataResolver.promise.then(function(r){g.ytdActiveViewBehavior.enableActiveViewMeasurement(r,15)});
_.Y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&g.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.S.dataChanged=function(){var g;((g=this.data.impressionCommand)==null?0:g.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var r;((r=this.data)==null?0:r.activeView)&&this.JSC$13571_activeViewMeasurementDataResolver.resolve(this.data.activeView);(g=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(g.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.S.computeWidescreen=function(g){var r;return!!(g&&((r=_.n(g,xSU))==null?0:r.isWidescreen))};
_.S.computeExpandable=function(g){return!!(g&&g.length>0)};
_.S.onIronResize=function(){if(this.expandable){var g=_.S3(this.hostElement).querySelector("#expandable-tile-container :first-child");g&&!g.expanded&&(g.expanded=!0)}};
_.S.handleMuteAd=function(){this.collapseAd(null)};
_.S.restoreCollapsedState=function(g){this.collapsed=_.pu().get("HIDDEN_MASTHEAD_ID")===g};
_.S.collapseAd=function(g){if(g){var r=_.pu();r.set("HIDDEN_MASTHEAD_ID",g);r.save()}(g=_.S3(this.hostElement).querySelector("#video"))&&_.Sh(g,"yt-masthead-hidden");this.collapsed=!0};
_.S.expandAd=function(){var g=_.pu();g.set("HIDDEN_MASTHEAD_ID",!1);g.save();location.reload()};
_.S.detached=function(){_.Y("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
Hc.prototype.onIronResize=Hc.prototype.onIronResize;Hc.prototype.dataChanged=Hc.prototype.dataChanged;_.m([_.P(_.f7),_.L("design:type",Object)],Hc.prototype,"ironResizableBehavior",void 0);_.m([_.P(jb),_.L("design:type",Object)],Hc.prototype,"ytdActiveViewBehavior",void 0);_.m([_.P(_.ti),_.L("design:type",Object)],Hc.prototype,"ytdGridStateAwareBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Hc.prototype,"ytActionHandlerBehavior",void 0);
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Hc.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Hc.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Hc.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.L("design:type",Boolean)],Hc.prototype,"widescreen",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.L("design:type",Boolean)],Hc.prototype,"expandable",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Hc.prototype,"collapsed",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Hc.prototype,"dataChanged",null);
_.m([_.ob("iron-resize"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Hc.prototype,"onIronResize",null);_.m([_.N({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],Hc);
_.I(Hc,"ytd-video-masthead-ad-v3-renderer",function(){if(KUm!==void 0)return KUm;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return KUm=g},{mode:2});var pq=function(){return _.a.apply(this,arguments)||this};
_.f(pq,_.a);_.S=pq.prototype;_.S.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.S.ready=function(){var g=this;M$J(function(){g.isAttached&&r0(g.JSC$13576_storedAdSlotMetadata,g.JSC$13576_storedAdLayoutMetadata,g.adSlotMetadata,g.adLayoutMetadata)&&uh(M7(),g.JSC$13576_storedAdSlotMetadata,g.JSC$13576_storedAdLayoutMetadata)})};
_.S.attached=function(){r0(this.JSC$13576_storedAdSlotMetadata,this.JSC$13576_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&zmA(M7(),this.JSC$13576_storedAdSlotMetadata,this.JSC$13576_storedAdLayoutMetadata)};
_.S.detached=function(){r0(this.JSC$13576_storedAdSlotMetadata,this.JSC$13576_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&uh(M7(),this.JSC$13576_storedAdSlotMetadata,this.JSC$13576_storedAdLayoutMetadata)};
_.S.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13576_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13576_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13576_storedAdLayoutMetadata!==void 0&&this.JSC$13576_storedAdSlotMetadata!==void 0&&uh(M7(),this.JSC$13576_storedAdSlotMetadata,this.JSC$13576_storedAdLayoutMetadata),zmA(M7(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13576_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13576_storedAdSlotMetadata=this.adSlotMetadata)};
_.hx.Object.defineProperties(pq.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.adLayoutMetadata}}});
pq.prototype.onAdMetadataChanged=pq.prototype.onAdMetadataChanged;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],pq.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],pq.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],pq.prototype,"data",void 0);_.m([_.W("data.adLayoutMetadata"),_.L("design:type",Object),_.L("design:paramtypes",[])],pq.prototype,"adLayoutMetadata",null);
_.m([_.K(),_.L("design:type",Object)],pq.prototype,"adSlotMetadata",void 0);_.m([_.Gb("adLayoutMetadata","adSlotMetadata"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],pq.prototype,"onAdMetadataChanged",null);_.m([_.N({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],pq);
_.I(pq,"ytd-page-top-ad-layout-renderer",function(){if(PbU!==void 0)return PbU;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return PbU=
g},{mode:_.My("kevlar_poly_si_batch_j070")?1:2});var xwb;var YV=function(){var g=_.a.apply(this,arguments)||this;g.noBottomMargin=!1;g.overlayDensity=0;g.typographyBump=!1;return g};
_.f(YV,_.a);_.S=YV.prototype;
_.S.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},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]]"}}}}}};
_.S.ready=function(){var g=this;M$J(function(){g.isAttached&&g.adSlotMetadata&&Qsn(M7(),g.adSlotMetadata)})};
_.S.attached=function(){if(this.adSlotMetadata){var g;if(this.adSlotMetadata===((g=this.data)==null?void 0:g.adSlotMetadata))Gd6(M7(),this.adSlotMetadata);else{var r;_.el(Error("Qh`"+this.adSlotMetadata+"`"+((r=this.data)==null?void 0:r.adSlotMetadata)))}}};
_.S.detached=function(){this.adSlotMetadata&&Qsn(M7(),this.adSlotMetadata)};
_.S.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.S.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&Qsn(M7(),this.adSlotMetadata),Gd6(M7(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.hx.Object.defineProperties(YV.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var g,r,E=_.n((g=this.data)==null?void 0:(r=g.fulfillmentContent)==null?void 0:r.fulfilledLayout,_.Xv4),B;return(g=(B=_.n(E==null?void 0:E.renderingContent,aPD))==null?void 0:B.layout)?g.toLowerCase().replace(/_/g,"-"):""}}});
YV.prototype.onAdSlotMetadataChanged=YV.prototype.onAdSlotMetadataChanged;YV.prototype.onTypographyBumpChanged=YV.prototype.onTypographyBumpChanged;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],YV.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],YV.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],YV.prototype,"rendererBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],YV.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],YV.prototype,"noBottomMargin",void 0);_.m([_.K(),_.L("design:type",Object)],YV.prototype,"overlayDensity",void 0);_.m([_.K(),_.L("design:type",Object)],YV.prototype,"typographyBump",void 0);_.m([_.zb("ytd-in-feed-ad-layout-renderer"),_.L("design:type",HTMLElement)],YV.prototype,"inFeedAdLayoutRenderer",void 0);
_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",String),_.L("design:paramtypes",[])],YV.prototype,"layout",null);_.m([_.Gb("typographyBump"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],YV.prototype,"onTypographyBumpChanged",null);_.m([_.Gb("data.adSlotMetadata"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],YV.prototype,"onAdSlotMetadataChanged",null);
_.m([_.N({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],YV);
_.I(YV,"ytd-ad-slot-renderer",function(){if(xwb!==void 0)return xwb;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return xwb=g},{mode:_.My("kevlar_poly_si_batch_j077")?
1:2});var aOI;var R0=function(){return _.a.apply(this,arguments)||this};
_.f(R0,_.a);_.S=R0.prototype;_.S.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"},params:{noDotAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.S.maybeComputeHref=function(g){return _.Y("enable_handle_watch_endpoint_click_for_vdc")?null:this.ytComponentBehavior.computeOptionalHref_(g)};
_.S.onTap=function(){_.Y("enable_handle_watch_endpoint_click_for_vdc")||this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&MYP(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.S.onThumbnailContainerClick=function(g){this.onClick(g)};
_.S.onClick=function(g){if(_.Y("enable_handle_watch_endpoint_click_for_vdc")){var r,E=(r=this.data)==null?void 0:r.navigationEndpoint;E&&_.n(E,_.LM)&&(this.ytSparklesClickLocationBehavior.handleClick(E,g,!1),g.stopPropagation())}};
_.S.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var g=_.U(this.data.impressionUrls),r=g.next();!r.done;r=g.next())r=r.value,HyV(r,YPP(r));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);_.Y("enable_handle_watch_endpoint_click_for_vdc")&&(this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",R0.JSC$13584_DEFAULT_CLICK_LOCATION_BEHAVIOR,R0.JSC$13584_CLICK_LOCATION_ID_MAP),this.thumbnail&&(g=this.thumbnail.getElementsByTagName("a"),
g.length>0&&(g=g.namedItem("thumbnail"))&&g.removeAttribute("href")))}};
_.S.attached=function(){var g=this;_.Y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&g.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.S.detached=function(){_.Y("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.hx.Object.defineProperties(R0.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Y("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
R0.prototype.dataChanged=R0.prototype.dataChanged;R0.prototype.onTap=R0.prototype.onTap;R0.JSC$13584_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
R0.JSC$13584_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"}];_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],R0.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],R0.prototype,"ytRendererBehavior",void 0);_.m([_.P(jb),_.L("design:type",Object)],R0.prototype,"ytdActiveViewBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],R0.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],R0.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.hi.YtSparklesClickLocationBehavior),_.L("design:type",Object)],R0.prototype,"ytSparklesClickLocationBehavior",void 0);
_.m([_.K({selector:_.tf}),_.L("design:type",Object)],R0.prototype,"isGridViewEnabled",void 0);_.m([_.W("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],R0.prototype,"watchFeedBigThumbs",null);_.m([_.W("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.L("design:type",String),_.L("design:paramtypes",[])],R0.prototype,"thumbnailWidth",null);_.m([_.K(),_.L("design:type",Object)],R0.prototype,"data",void 0);
_.m([_.zb("ytd-thumbnail"),_.L("design:type",HTMLElement)],R0.prototype,"thumbnail",void 0);_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],R0.prototype,"onTap",null);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],R0.prototype,"dataChanged",null);_.m([_.N({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],R0);
_.I(R0,"ytd-compact-promoted-video-renderer",function(){if(aOI!==void 0)return aOI;var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return aOI=g},{mode:1});var X9U;_.ek("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var nq=function(){return _.a.apply(this,arguments)||this};
_.f(nq,_.a);nq.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],nq.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],nq.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],nq.prototype,"data",void 0);_.m([_.N({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],nq);
_.I(nq,"ytd-search-pyv-renderer",function(){if(X9U!==void 0)return X9U;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return X9U=g},{mode:1});var Nom;_.ek("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var su=function(){var g=_.a.apply(this,arguments)||this;g.roundedContainer=!0;g.JSC$13592_handleOpenPostCommentDialogActionAfterStamp=!1;g.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return g};
_.f(su,_.a);_.S=su.prototype;
_.S.configureRendererStamper=function(){return{"data.post":{id:"post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{shouldHideAuthor:"[[isInEngagementPanel]]",shouldShowVideoTime:"[[isInEngagementPanel]]",shouldShowMenuInCompactView:"[[isInEngagementPanel]]",isInEngagementPanel:"[[isInEngagementPanel]]",usesFullLockup:"[[usesFullLockup]]",hideBorder:"[[hideBorder]]"}},postRenderer:"ytd-post-renderer",sharedPostRenderer:{component:"ytd-shared-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}}}},
"data.commentDialog":{id:"comment-dialog",mapping:{commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"},events:!0}}};
_.S.onStampFinished=function(){this.JSC$13592_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.S.handleSignalActionOpenPostCommentDialogAction=function(){var g=_.S3(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");g?g.openDialog():this.JSC$13592_handleOpenPostCommentDialogActionAfterStamp=!0};
_.S.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.S.computeHideBorder=function(){return this.isInEngagementPanel};
_.S.computeIsCompact=function(){return this.isInEngagementPanel};
_.S.computeUsesCompactLockup=function(g){return g==="BACKSTAGE_SURFACE_TYPE_HOME"||g==="BACKSTAGE_SURFACE_TYPE_SEARCH"||g==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||g==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||g==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||g==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.S.computeUsesFullLockup=function(){var g,r=(g=this.data)==null?void 0:g.post,E;g=(E=_.n(r,yQI))==null?void 0:E.surface;var B;E=(B=_.n(r,Txw))==null?void 0:B.originalPost;var w;if(B=g||((w=_.n(E,yQI))==null?void 0:w.surface))return!this.computeUsesCompactLockup(B)&&this.useUpdatedRepostUi;var O;return((O=_.n(r,Txw))==null?void 0:O.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.hx.Object.defineProperties(su.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var g,r;return((r=_.n((g=this.data)==null?void 0:g.post,yQI))==null?void 0:r.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.useUpdatedRepostUi}}});
su.prototype.onYtCommentModerationPanelEmpty=su.prototype.onYtCommentModerationPanelEmpty;su.prototype.onStampFinished=su.prototype.onStampFinished;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],su.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],su.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],su.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],su.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],su.prototype,"roundedContainer",void 0);_.m([_.K({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.L("design:type",Boolean)],su.prototype,"hideBorder",void 0);_.m([_.K({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.L("design:type",Boolean)],su.prototype,"isCompact",void 0);
_.m([_.K({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.L("design:type",Boolean)],su.prototype,"usesFullLockup",void 0);_.m([_.ob("yt-rendererstamper-finished"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],su.prototype,"onStampFinished",null);
_.m([_.ob("ytd-comment-moderation-panel-empty"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],su.prototype,"onYtCommentModerationPanelEmpty",null);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],su.prototype,"isInEngagementPanel",null);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],su.prototype,"useUpdatedRepostUi",null);
_.m([_.N({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],su);
_.I(su,"ytd-backstage-post-thread-renderer",function(){if(Nom!==void 0)return Nom;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Nom=g},{mode:1});var IOw;var fq=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return g};
_.f(fq,_.a);fq.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
fq.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var g=this.data.thumbnail.thumbnails;this.isDarkTheme&&(g=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(g=_.wt(g,24,void 0,"height"))?g:void 0}};
fq.prototype.onDarkModeToggledAction=function(g){this.isDarkTheme=g};
fq.prototype.computeHasText=function(){var g;return!((g=this.data)==null||!g.text)};
_.hx.Object.defineProperties(fq.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.nI(this.bannerImageUrl))+'");'}}});
fq.prototype.computeHasText=fq.prototype.computeHasText;fq.prototype.computeBannerImageUrl=fq.prototype.computeBannerImageUrl;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],fq.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],fq.prototype,"actionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],fq.prototype,"ytRendererBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],fq.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Boolean)],fq.prototype,"isDarkTheme",void 0);_.m([_.K(),_.L("design:type",String)],fq.prototype,"bannerImageUrl",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.L("design:type",Boolean)],fq.prototype,"hasText",void 0);_.m([_.Gb("data","isDarkTheme"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],fq.prototype,"computeBannerImageUrl",null);
_.m([_.Gb("data.text"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],fq.prototype,"computeHasText",null);_.m([_.W("bannerImageUrl"),_.L("design:type",Object),_.L("design:paramtypes",[])],fq.prototype,"bannerStyle",null);_.m([_.N({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],fq);
_.I(fq,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(IOw!==void 0)return IOw;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return IOw=g},{mode:1});var mwA;var $V=function(){return _.a.apply(this,arguments)||this};
_.f($V,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],$V.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],$V.prototype,"data",void 0);_.m([_.N({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],$V);
_.I($V,"ytd-backstage-zero-state-renderer",function(){if(mwA!==void 0)return mwA;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return mwA=g},{mode:1});var crZ;var jR=function(){return _.a.apply(this,arguments)||this};
_.f(jR,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],jR.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],jR.prototype,"data",void 0);_.m([_.K({computed:"computeIcon_(data.icon)"}),_.L("design:type",String)],jR.prototype,"icon",void 0);_.m([_.N({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],jR);
_.I(jR,"ytd-post-filter-zero-state-renderer",function(){if(crZ!==void 0)return crZ;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return crZ=g},{mode:1});var iJm;var LUA={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},A3=function(){return _.a.apply(this,arguments)||this};
_.f(A3,_.a);A3.prototype.configureRendererStamper=function(){return LUA};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],A3.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],A3.prototype,"rendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],A3.prototype,"data",void 0);_.m([_.K({computed:"computeIcon_(data.icon)"}),_.L("design:type",String)],A3.prototype,"icon",void 0);_.m([_.N({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],A3);
_.I(A3,"ytd-post-scheduling-zero-state-renderer",function(){if(iJm!==void 0)return iJm;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return iJm=g},{mode:1});var Vq4;var bh=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return g};
_.f(bh,_.a);bh.prototype.onTabsActivate=function(g){this.data&&this.data.tabs&&_.Sh(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[g.detail.selected].navigationEndpoint})};
bh.prototype.shouldShowTotalCount=function(g){return g&&g.totalCount!==void 0};
bh.prototype.handleUpdatePostsTotalCountAction=function(g){var r=this.get(["data.tabs",1,"totalCount"]),E=this.get("updatePostsTotalCountAction.updateType",g);g=this.get("updatePostsTotalCountAction.number",g);r!==void 0&&E!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&g&&(E==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(r)+g):E==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(r)-g))};
_.hx.Object.defineProperties(bh.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var g=0,r=this.data.tabs.length;g<r;g++)if(this.data.tabs[g].selected)return g;return 0}}});
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],bh.prototype,"actionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],bh.prototype,"rendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],bh.prototype,"data",void 0);_.m([_.W("data.tabs"),_.L("design:type",Number),_.L("design:paramtypes",[])],bh.prototype,"selected",null);_.m([_.N({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],bh);
_.I(bh,"ytd-post-stream-filter-renderer",function(){if(Vq4!==void 0)return Vq4;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return Vq4=g},{mode:1});var hmn;var J3=function(){return _.a.apply(this,arguments)||this};
_.f(J3,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],J3.prototype,"kevlarBehaviors",void 0);_.m([_.K(),_.L("design:type",Object)],J3.prototype,"data",void 0);_.m([_.N({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],J3);
_.I(J3,"ytd-channel-age-gate-renderer",function(){if(hmn!==void 0)return hmn;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return hmn=g},{mode:1});var ZJz;_.ek("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var Pc=function(){var g=_.a.apply(this,arguments)||this;g.data=null;return g};
_.f(Pc,_.a);Pc.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.hx.Object.defineProperties(Pc.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return((g=this.data)==null?0:(r=g.title)==null?0:(E=r.runs)==null?0:E.length)?147:160}}});
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Pc.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Pc.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Number),_.L("design:paramtypes",[])],Pc.prototype,"imageSizePx",null);_.m([_.N({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],Pc);
_.I(Pc,"ytd-channel-owner-empty-state-renderer",function(){if(ZJz!==void 0)return ZJz;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return ZJz=g},{mode:1});var yrZ;var vez;var t3=function(){var g=_.a.apply(this,arguments)||this;g.boundSubmitSearch=function(){g.submitSearch()};
g.boundClearSearch=function(){g.clearSearch()};
return g};
_.f(t3,_.a);_.S=t3.prototype;_.S.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmitSearch]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundClearSearch]]"}}}}}};
_.S.toggleClearButton=function(){this.hideClearButton=$GQ||!this.input.value};
_.S.submitOnEnterKeyUp=function(g){g.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.S.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.S.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.S.submit=function(){_.Sh(this.hostElement,"search-query-changed",this.input.value)};
t3.prototype.toggleClearButton=t3.prototype.toggleClearButton;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],t3.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],t3.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],t3.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],t3.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],t3.prototype,"hideClearButton",void 0);_.m([_.K(),_.L("design:type",Object)],t3.prototype,"boundSubmitSearch",void 0);_.m([_.K(),_.L("design:type",Object)],t3.prototype,"boundClearSearch",void 0);_.m([_.zb("#input"),_.L("design:type",Object)],t3.prototype,"input",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],t3.prototype,"toggleClearButton",null);
_.m([_.N({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],t3);
_.I(t3,"ytd-channel-switcher-search-box-renderer",function(){if(vez!==void 0)return vez;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return vez=g},{mode:1});var dww;var Fb=function(){var g=_.a.apply(this,arguments)||this;g.boundSubmit=function(){g.submit()};
return g};
_.f(Fb,_.a);_.S=Fb.prototype;_.S.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmit]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.S.ready=function(){var g=this;this.form.addEventListener("submit",function(r){return g.onSubmit(r)})};
_.S.onSubmit=function(g){g.preventDefault();return!1};
_.S.toggleClearButton=function(){this.hideClearButton=$GQ||!this.input.value};
_.S.submitOnEnterKeyUp=function(g){g.keyCode===13&&this.submit()};
_.S.submit=function(){var g=this.data.endpoint,r=(0,_.jn.unsafeClone)(g);_.n(r,_.ka)?_.n(r,_.ka).query=this.input.value:_.n(r,_.Ya)&&(_.n(r,_.Ya).query=this.input.value);var E=_.n(r.commandMetadata,_.dU);(E==null?0:E.url)?(E.url=_.KC(E.url,"query",this.input.value),_.Sh(this.hostElement,"yt-navigate",{endpoint:r})):_.n(r,Fen)?(_.n(r,Fen).channelSwitcherQuery=this.input.value,_.rM().resolve(_.Er).resolveCommand(r,{form:{element:this.hostElement}})):(g=Error("Rh`"+JSON.stringify(g)),_.tn(g))};
_.S.getUrl=function(g){return this.get("commandMetadata.webCommandMetadata.url",g)};
Fb.prototype.toggleClearButton=Fb.prototype.toggleClearButton;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Fb.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Fb.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Fb.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Fb.prototype,"hideClearButton",void 0);
_.m([_.K(),_.L("design:type",Object)],Fb.prototype,"boundSubmit",void 0);_.m([_.zb("#form"),_.L("design:type",HTMLFormElement)],Fb.prototype,"form",void 0);_.m([_.zb("#input"),_.L("design:type",Object)],Fb.prototype,"input",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Fb.prototype,"toggleClearButton",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],Fb);
_.I(Fb,"ytd-search-box-renderer",function(){if(dww!==void 0)return dww;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return dww=g},{mode:2});var eR=function(){var g=_.a.apply(this,arguments)||this;g.showSearchBox=!0;return g};
_.f(eR,_.a);eR.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],eR.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],eR.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],eR.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],eR.prototype,"showSearchBox",void 0);_.m([_.N({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],eR);
_.I(eR,"ytd-channel-switcher-header-renderer",function(){if(yrZ!==void 0)return yrZ;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return yrZ=g},{mode:1});var ToD;var gXU;var Wc=function(){var g=_.a.apply(this,arguments)||this;g.isDisplayed=!0;return g};
_.f(Wc,_.a);_.S=Wc.prototype;_.S.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S.dataChanged=function(){this.isDisplayed=!0};
_.S.computeType=function(g){return g||"UNKNOWN"};
_.S.onYtServiceRequestCompleted=function(g){g.stopPropagation();this.isDisplayed=!1};
_.S.onClose=function(){this.isDisplayed=!1};
Wc.prototype.onYtServiceRequestCompleted=Wc.prototype.onYtServiceRequestCompleted;Wc.prototype.dataChanged=Wc.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Wc.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Wc.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Wc.prototype,"data",void 0);
_.m([_.K({computed:"computeType(data.type)",reflectToAttribute:!0}),_.L("design:type",String)],Wc.prototype,"type",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Wc.prototype,"isDisplayed",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Wc.prototype,"dataChanged",null);
_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],Wc.prototype,"onYtServiceRequestCompleted",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],Wc);
_.I(Wc,"ytd-alert-with-button-renderer",function(){if(gXU!==void 0)return gXU;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return gXU=g},{mode:1});var Cq=function(){var g=_.a.apply(this,arguments)||this;g.noResult=!1;g.enableAlertBanner=!1;g.dismissedAlertBanner=!1;g.hideCreateChannelButton=!1;g.boundDismissAlertBanner=function(){g.dismissAlertBanner()};
g.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return g};
_.f(Cq,_.a);_.S=Cq.prototype;_.S.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.S.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.S.updateChannelSwitcherAction=function(g){var r;g=(r=_.n(g,soD))==null?void 0:r.page;_.n(g,n4w)!==void 0&&(this.data=_.n(g,n4w))};
_.S.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{channelSwitcherHeaderRenderer:"ytd-channel-switcher-header-renderer"}},"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}},accountItemRenderer:"ytd-account-item-renderer",continuationItemRenderer:"ytd-continuation-item-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundDismissAlertBanner]]"}}}}}};
_.S.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.S.searchQueryChanged=function(g,r){if(this.data&&this.data.contents&&this.data.contents.length){g=[];var E=[];this.hideCreateChannelButton=this.noResult=!1;for(var B=document.querySelectorAll("ytd-account-item-renderer"),w=_.U(B),O=w.next();!O.done;O=w.next())O=O.value,E.push(O),O.style.display="block";this.resetRightBorder(E);if(r){this.hideCreateChannelButton=!0;for(E=1;E<this.data.contents.length;E++)if(O=this.data.contents[E],_.n(O,JQI)){var M=void 0,u=void 0;w=(M=_.n(O,JQI))==null?void 0:(u=
M.accountName)==null?void 0:u.simpleText;u=M=void 0;O=(M=_.n(O,JQI))==null?void 0:(u=M.channelHandle)==null?void 0:u.simpleText;(M=B[E-1])&&w&&_.DQ(w,r)?g.push(M):_.Y("enable_handle_search_on_channel_switcher")&&M&&O&&_.DQ(O.toString(),r.toString())?g.push(M):M.style.display="none"}g.length===0&&(this.noResult=!0);this.resetRightBorder(g)}}};
_.S.resetRightBorder=function(g){for(var r=0;r<g.length;r++)g[r].style.borderRight=!this.hideCreateChannelButton&&(r+2)%3===0||this.hideCreateChannelButton&&(r+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.S.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.S.setShowSearchBox=function(g){if(g&&g.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var r=0;r<g.contents.length;r++)_.n(g.contents[r],_.gx)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.S.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.hx.Object.defineProperties(Cq.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null?0:g.contents)}}});
Cq.prototype.onContinuationItemsUpdated=Cq.prototype.onContinuationItemsUpdated;Cq.prototype.searchQueryChanged=Cq.prototype.searchQueryChanged;Cq.prototype.onDataChanged=Cq.prototype.onDataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Cq.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Cq.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Cq.prototype,"actionHandlerBehavior",void 0);_.m([_.P(_.Xe),_.L("design:type",Object)],Cq.prototype,"ytContinuationHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Cq.prototype,"data",void 0);_.m([_.zb("ytd-channel-switcher-header-renderer"),_.L("design:type",Object)],Cq.prototype,"channelSwitcherHeaderRenderer",void 0);_.m([_.K(),_.L("design:type",Object)],Cq.prototype,"noResult",void 0);
_.m([_.K(),_.L("design:type",Object)],Cq.prototype,"enableAlertBanner",void 0);_.m([_.K(),_.L("design:type",Object)],Cq.prototype,"dismissedAlertBanner",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Cq.prototype,"hideCreateChannelButton",void 0);_.m([_.W("data.contents"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Cq.prototype,"isLoading",null);_.m([_.K(),_.L("design:type",Object)],Cq.prototype,"boundDismissAlertBanner",void 0);
_.m([_.K({computed:"computeButtonOverride()"}),_.L("design:type",Object)],Cq.prototype,"buttonOverride",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Cq.prototype,"onDataChanged",null);_.m([_.ob("search-query-changed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,String]),_.L("design:returntype")],Cq.prototype,"searchQueryChanged",null);
_.m([_.ob("yt-next-continuation-data-updated"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],Cq.prototype,"onContinuationItemsUpdated",null);_.m([_.N({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Cq);
_.I(Cq,"ytd-channel-switcher-page-renderer",function(){if(ToD!==void 0)return ToD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return ToD=g},{mode:1});var rcb;var EXZ;var Kq=function(){var g=_.a.apply(this,arguments)||this;g.images=[];g.selectedImageIndex=0;return g};
_.f(Kq,_.a);_.S=Kq.prototype;
_.S.ready=function(){_.j_(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.j_(this.JSC$13637_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.j_(this.JSC$13637_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.j_(this.JSC$13637_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.S.onThumbnailClick=function(g){if(g=g.event_.detail)this.selectedImageIndex=this.images.indexOf(g)};
_.S.updateImageThumbnails=function(g){g=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:g.event_.detail});this.images.splice(this.selectedImageIndex,1,g);this.images=[].concat(_.jW(this.images))};
_.S.cancelImageRepositions=function(){this.selectedImageIndex=0;_.Sh(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.S.saveImageRepositions=function(){this.selectedImageIndex=0;_.Sh(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.hx.Object.defineProperties(Kq.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var g=this;return(this.images||[]).map(function(r,E){return{image:r,selected:E===g.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Kq.prototype,"ytRendererstamperBehavior",void 0);_.m([_.zb("ytd-backstage-image-preview-renderer"),_.L("design:type",Object)],Kq.prototype,"JSC$13637_imagePreviewContainer",void 0);_.m([_.zb(".thumbnail-images-container"),_.L("design:type",HTMLElement)],Kq.prototype,"thumbnailImagesContainer",void 0);_.m([_.K(),_.L("design:type",Array)],Kq.prototype,"images",void 0);
_.m([_.K(),_.L("design:type",Object)],Kq.prototype,"repositionInstructions",void 0);_.m([_.K(),_.L("design:type",Object)],Kq.prototype,"selectedImageIndex",void 0);_.m([_.W("images","selectedImageIndex"),_.L("design:type",Array),_.L("design:paramtypes",[])],Kq.prototype,"thumbnailRendererDatas",null);_.m([_.W("images","selectedImageIndex"),_.L("design:type",Object),_.L("design:paramtypes",[])],Kq.prototype,"selectedImageData",null);
_.m([_.N({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],Kq);
_.I(Kq,"ytd-backstage-multi-image-reposition-renderer",function(){if(EXZ!==void 0)return EXZ;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return EXZ=g},{mode:1});var xV=function(g,r){_.ze.call(this);this.uploadUrl=g;this.channelId=r;this.imagesUploadData=[]};
_.f(xV,_.ze);xV.prototype.getAllUploadStatuses=function(){var g=this,r,E,B;return _.q(function(w){if(w.nextAddress==1)return _.D(w,Baz(g),2);r=w.yieldResult;E=r.get("succeed");B=r.get("failed");return w.return(E.concat(B))})};
var S4m=function(g){var r,E;return _.q(function(B){if(B.nextAddress==1)return _.D(B,Baz(g),2);r=B.yieldResult;E=r.get("failed");E.length>0&&w7A(g,E);return B.return(g.getAllUploadStatuses())})},Baz=function(g){var r,E,B,w,O,M,u;
return _.q(function(l){if(l.nextAddress==1)return r=new Map,_.D(l,Promise.allSettled(g.imagesUploadData.map(function(Q){return Q.uploadPromise})),2);
E=l.yieldResult;B=[];w=_.U(E);for(O=w.next();!O.done;O=w.next())M=O.value,M.status==="fulfilled"&&B.push(M.value);u=g.imagesUploadData.map(function(Q){return Q.image}).filter(function(Q){return B.every(function(z){return z.id!==Q.id})});
r.set("succeed",B);r.set("failed",u);return l.return(r)})},w7A=function(g,r){r=_.U(r);
for(var E=r.next();!E.done;E=r.next()){var B=g;E=E.value;O1D(B,E.id)>=0&&B.cancel(E.id);var w=new UAZ(E),O=_.kGZ(B.uploadUrl,{"X-YouTube-ChannelId":B.channelId},E.imageBlob);w.transfer=O;w.uploadPromise=MDT(O,E);B.imagesUploadData.push(w);O.run()}};
xV.prototype.cancel=function(g){var r=O1D(this,g);r!==-1&&((r=this.imagesUploadData[r].transfer)&&r.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(E){return E.image.id!==g}))};
var O1D=function(g,r){return g.imagesUploadData.findIndex(function(E){return E.image.id===r})},MDT=function(g,r){return new Promise(function(E,B){g.listen("l",function(){var w=g.getResponseText();
w?(w=JSON.parse(w).encryptedBlobId,r.encryptedBlobId=w,E(r)):B("upload failed")});
g.listen("n",function(){B("upload failed")})})},UAZ=function(g){this.image=g};var HQD=function(g,r,E,B,w){this.id=g;this.imageBlob=r;this.localImageSrc=E;this.naturalWidth=B;this.naturalHeight=w;this.previewCoordinates=this.naturalHeight>this.naturalWidth?{top:(this.naturalHeight-this.naturalWidth)/2/this.naturalHeight,right:1,bottom:(this.naturalHeight+this.naturalWidth)/2/this.naturalHeight,left:0}:{top:0,right:(this.naturalWidth+this.naturalHeight)/2/this.naturalWidth,bottom:1,left:(this.naturalWidth-this.naturalHeight)/2/this.naturalWidth}};var q4A=[".jpeg",".jpg",".png"],a0=function(){var g=_.a.apply(this,arguments)||this;g.showImagesPreview=!1;g.pollOptions=[];g.errorMessage="";g.optionPlaceholderText="";g.optionDefaultText="";g.JSC$13648_imageId=0;g.maxFileSizeMb=0;g.maxAspectRatio=0;g.invalidFileSizeError="";g.invalidAspectRatioError="";g.invalidFileTypeError="";g.imageSelector=new O7(null,"single_file",q4A);return g};
_.f(a0,_.a);_.S=a0.prototype;_.S.ready=function(){_.j_(this.imageSelector,"j",this.onImageSelect,!1,this);_.j_(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.j_(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.S.dataChanged=function(){var g,r,E=_.n((g=this.data)==null?void 0:(r=g.cellTemplate)==null?void 0:r.onEmptyCellTap,$4z);if(E&&E.uploadUrl&&E.channelId){var B;this.maxFileSizeMb=((B=E.imageValidationInfo)==null?void 0:B.maxFileSizeMb)||0;var w;this.maxAspectRatio=((w=E.imageValidationInfo)==null?void 0:w.allowedMaxAspectRatio)||0;var O;this.invalidFileSizeError=this.getSimpleString((O=this.data)==null?void 0:O.invalidFileSizeError);var M;this.invalidAspectRatioError=this.getSimpleString((M=this.data)==
null?void 0:M.invalidAspectRatioError);var u;this.invalidFileTypeError=this.getSimpleString((u=this.data)==null?void 0:u.invalidFileTypeError);this.uploadManager=new xV(E.uploadUrl,E.channelId)}};
_.S.onEditorInfoChange=function(){this.optionPlaceholderText=_.Vp(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.Vp(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.S.observeAddImageError=function(){this.errorMessage!==""&&_.Sh(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.S.onPollOptionsChange=function(){for(var g=!1,r=[],E=0;E<this.pollOptions.length;E++){var B=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(E+1);this.pollOptions[E].placeholderText!==B?(g=!0,r.push(Object.assign({},this.pollOptions[E],{placeholderText:B}))):r.push(this.pollOptions[E])}g&&(this.pollOptions=r);this.isValid()?_.Sh(this.hostElement,"yt-commentbox-post-enable"):_.Sh(this.hostElement,"yt-commentbox-post-disable")};
_.S.createPollOptions=function(g){var r=[],E;g=(E=g==null?void 0:g.minPollOptions)!=null?E:0;for(E=0;E<g;E++)r.push(this.createPollOption());return r};
_.S.onImageSelect=function(g){var r=this,E,B,w,O,M,u;return _.q(function(l){if(l.nextAddress==1){if(r.selectedImageIndex===void 0)return l.jumpTo(0);E=g.files[0];r.errorMessage="";B=r.validateImage(E);if(B!=="")return r.errorMessage=B,l.return();w=new m5(r.maxAspectRatio,!1,!0);return _.D(l,w.transform(E),3)}if(l.nextAddress!=4)return O=l.yieldResult,O.transformedData?O.invalidAspectRatio?(r.errorMessage=r.invalidAspectRatioError,l.return()):_.D(l,pRL(r.JSC$13648_imageId,g.files[0],O.transformedData),
4):(r.errorMessage=r.invalidFileTypeError,l.return());M=l.yieldResult;r.JSC$13648_imageId++;w7A(r.uploadManager,[M]);u=Object.assign({},r.pollOptions[r.selectedImageIndex],{image:M});r.pollOptions.splice(r.selectedImageIndex,1,u);r.refreshPollOptions();_.Sh(r.hostElement,"yt-backstage-poll-image-select");_.Q3(l)})};
_.S.validateImage=function(g){return g.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.S.refreshPollOptions=function(){this.pollOptions=[].concat(_.jW(this.pollOptions))};
_.S.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.jW(this.pollOptions),[this.createPollOption()]))};
_.S.onRemovePollOption=function(g){var r=this.pollOptions[g.model.index];r&&r.image&&this.uploadManager.cancel(r.image.id);this.pollOptions.splice(g.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.Sh(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.S.onTextInput=function(){this.refreshPollOptions()};
_.S.onImageButtonClick=function(g){this.selectedImageIndex=g.model.index;this.imageSelector.click()};
_.S.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.S.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.S.saveImageRepositions=function(g){g=g.event_.detail;for(var r=0,E=[],B=_.U(this.pollOptions),w=B.next();!w.done;w=B.next())w=w.value,w.image!==void 0?(w=Object.assign({},w,{image:g[r]}),E.push(w),r++):E.push(w);this.showImagesPreview=!1;this.pollOptions=[].concat(_.jW(E))};
_.S.isValid=function(){if(!this.editorInfo||this.showImagesPreview||this.pollOptions.length<Number(this.editorInfo.minPollOptions)||this.pollOptions.length>Number(this.editorInfo.maxPollOptions))return!1;for(var g=0,r=_.U(this.pollOptions),E=r.next();!E.done;E=r.next())if(E=E.value,E.optionText.trim()!==""||E.image!==void 0){if(!E.image||this.hasCustomOptionText&&E.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;g++}return g>=Number(this.editorInfo.minPollOptions)};
_.S.getAllUploadStatuses=function(){var g=this,r,E,B,w;return _.q(function(O){if(O.nextAddress==1)return _.D(O,g.uploadManager.getAllUploadStatuses(),2);r=O.yieldResult;E=_.U(r);for(B=E.next();!B.done;B=E.next())if(w=B.value,w.encryptedBlobId===void 0)return O.return(S4m(g.uploadManager));return O.return(r)})};
_.S.getPostCreateOptions=function(){for(var g=[],r=_.U(this.pollOptions),E=r.next();!E.done;E=r.next())E=E.value,E.image!==void 0&&g.push({text:this.hasCustomOptionText?E.optionText:E.placeholderText,image:E.image});return g};
_.S.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.S.createButtonRenderer=function(g,r){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:g,accessibilityData:{accessibilityData:{label:this.getSimpleString(g)}},isDisabled:r}};
_.S.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.S.computeThumbnailRendererData=function(g){return g?{image:g,selected:!1}:void 0};
_.S.getSimpleString=function(g){return _.Vp(g)};
_.S.updateOptionTextFromBinding=function(g){if(g.target){var r=Array.from(_.S3(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(g.target);if(r>=0){var E;this.pollOptions[r].optionText=(E=g.detail.value)!=null?E:""}}};
_.hx.Object.defineProperties(a0.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var g,r;return this.pollOptions.length<((r=(g=this.editorInfo)==null?void 0:g.maxPollOptions)!=null?r:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(g){return g.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(g){return g.image}).map(function(g){return g.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(g){return g.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var g,r=(g=this.data)==null?void 0:g.addOptionButtonText;return r?this.createButtonRenderer(r,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var g,r=(g=this.data)==null?void 0:g.repositionImagesButtonLabel;return r?this.createButtonRenderer(r,!this.hasImages):void 0}}});
a0.prototype.onPollOptionsChange=a0.prototype.onPollOptionsChange;a0.prototype.observeAddImageError=a0.prototype.observeAddImageError;a0.prototype.onEditorInfoChange=a0.prototype.onEditorInfoChange;a0.prototype.dataChanged=a0.prototype.dataChanged;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],a0.prototype,"ytRendererstamperBehavior",void 0);_.m([_.zb("ytd-backstage-multi-image-reposition-renderer"),_.L("design:type",Object)],a0.prototype,"imageRepositionContainer",void 0);
_.m([_.K(),_.L("design:type",Object)],a0.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],a0.prototype,"editorInfo",void 0);_.m([_.K(),_.L("design:type",xV)],a0.prototype,"uploadManager",void 0);_.m([_.K(),_.L("design:type",Object)],a0.prototype,"showImagesPreview",void 0);_.m([_.K(),_.L("design:type",Array)],a0.prototype,"pollOptions",void 0);_.m([_.K(),_.L("design:type",Object)],a0.prototype,"errorMessage",void 0);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],a0.prototype,"dataChanged",null);_.m([_.Yk("editorInfo"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],a0.prototype,"onEditorInfoChange",null);_.m([_.Gb("errorMessage"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],a0.prototype,"observeAddImageError",null);
_.m([_.Yk("pollOptions"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],a0.prototype,"onPollOptionsChange",null);_.m([_.W("pollOptions","editorInfo"),_.L("design:type",Object),_.L("design:paramtypes",[])],a0.prototype,"isAllowedToAddOption",null);_.m([_.W("pollOptions"),_.L("design:type",Object),_.L("design:paramtypes",[])],a0.prototype,"hasImages",null);
_.m([_.W("pollOptions"),_.L("design:type",Object),_.L("design:paramtypes",[])],a0.prototype,"imagesToReposition",null);_.m([_.W("pollOptions"),_.L("design:type",Object),_.L("design:paramtypes",[])],a0.prototype,"hasCustomOptionText",null);_.m([_.W("data","isAllowedToAddOption"),_.L("design:type",Object),_.L("design:paramtypes",[])],a0.prototype,"addOptionButton",null);_.m([_.W("data","hasImages"),_.L("design:type",Object),_.L("design:paramtypes",[])],a0.prototype,"repositionImagesButton",null);
_.m([_.N({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],a0);
_.I(a0,"ytd-backstage-image-poll-editor-renderer",function(){if(rcb!==void 0)return rcb;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return rcb=g},{mode:2});var uv4={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 l3b;var Xb=function(){var g=_.a.apply(this,arguments)||this;g.a11yConfig=uv4;g.imageDisplayOffsetTop=0;g.imageDisplayOffsetLeft=0;g.pickerDisplayOffsetTop=0;g.pickerDisplayOffsetLeft=0;g.showPreviewContainer=!0;g.startPicker=!1;g.repositionOptional=!1;g.editOnlyMode=!1;g.savedImageDisplayOffsetTop=0;g.savedImageDisplayOffsetLeft=0;return g};
_.f(Xb,_.a);_.S=Xb.prototype;_.S.created=function(){_.eP.requestAvailability()};
_.S.ready=function(){};
_.S.onArrowKeysDown=function(g){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){g.detail.keyboardEvent.preventDefault();var r=0,E=0,B="";switch(g.detail.keyboardEvent.key){case "ArrowUp":YFV(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?B=this.a11yConfig.reachBottomOfImage:r=this.imageHeight*.05*-1;break;case "ArrowDown":YFV(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?B=this.a11yConfig.reachTopOfImage:
r=this.imageHeight*.05;break;case "ArrowLeft":YFV(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?B=this.a11yConfig.reachRightOfImage:E=this.imageWidth*.05*-1;break;case "ArrowRight":YFV(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?B=this.a11yConfig.reachLeftOfImage:E=this.imageWidth*.05}B&&_.zn(B)&&_.Sh(this.hostElement,"iron-announce",{text:_.zn(B)});if(E||r)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+r)),g=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),g=_.zn(this.a11yConfig.imageVerticalPosition,{x_percent:""+g,y_percent:""+(100-g)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+E)),g=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),g=_.zn(this.a11yConfig.imageHorizontalPosition,{x_percent:""+g,y_percent:""+(100-g)})),g&&_.Sh(this.hostElement,"iron-announce",{text:g})}};
_.S.getPreviewPosition=function(g,r,E,B){return Math.round(100*(g+r*.5-E)/B)};
_.S.calculateDisplayPosition=function(){var g=this.imageData.naturalWidth,r=this.imageData.naturalHeight;this.displayScale=Math.max(200/g,200/r);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var E=g*this.displayScale*this.imageData.previewCoordinates.left,B=r*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=r>g?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-E;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=g>r?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-B;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=g*this.displayScale;this.imageHeight=r*this.displayScale};
_.S.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.S.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.S.getSignedPosition=function(g,r,E){return r==="X"&&_.Ca("HTML_DIR")==="rtl"?E==="-"?g+"px":g*-1+"px":E==="-"?g*-1+"px":g+"px"};
_.S.pickerMove=function(g){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var r=this.pickerOffsetX-g.clientX,E=this.pickerOffsetY-g.clientY;this.pickerOffsetX=g.clientX;this.pickerOffsetY=g.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
E)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-r))}};
_.S.pickerMoveStart=function(g){this.startPicker=!0;this.pickerOffsetX=g.clientX;this.pickerOffsetY=g.clientY};
_.S.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var g=this.generateCropPreview();g&&_.Sh(this.hostElement,"ytd-backstage-image-preview-coordinates-update",g)};
_.S.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.Sh(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.S.deleteImage=function(){_.Sh(this.hostElement,"ytd-backstage-image-preview-delete")};
_.S.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.S.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var g=this.generateCropPreview();g&&_.Sh(this.hostElement,"ytd-backstage-image-preview-coordinates-save",g)};
_.S.getPreviewOffset=function(g,r,E){return r&&g?(E==="X"&&_.Ca("HTML_DIR")==="rtl"?300/r*g:300/r*g*-1)+"px":"0px"};
_.S.getSimpleText=function(g){return g?_.Vp(g):""};
_.S.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize)return{top:this.cropOffsetTop/this.imageHeight,right:(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,bottom:(this.cropOffsetTop+this.pickerSize)/this.imageHeight,left:this.cropOffsetLeft/this.imageWidth}};
_.hx.Object.defineProperties(Xb.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var g=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.zn(this.a11yConfig.imageVerticalPosition,{x_percent:""+g,y_percent:""+(100-g)})+"\n"+_.zn(this.a11yConfig.verticalRepositionInstruction)}g=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.zn(this.a11yConfig.imageHorizontalPosition,{x_percent:""+g,y_percent:""+(100-g)})+"\n"+_.zn(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 g,r,E=(g=this.instruction)==null?void 0:(r=g.previewInstruction)==null?void 0:r.editButtonLabel;return E?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:E,accessibilityData:{accessibilityData:{label:this.getSimpleText(E)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var g,r,E,B,w=this.editOnlyMode?(g=this.instruction)==null?void 0:(r=g.editInstruction)==null?void 0:r.saveImagesButtonLabel:(E=this.instruction)==null?void 0:(B=E.editInstruction)==null?void 0:B.saveButtonLabel;return w?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:w,accessibilityData:{accessibilityData:{label:this.getSimpleText(w)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var g,r,E=(g=this.instruction)==null?void 0:(r=g.previewInstruction)==null?void 0:r.deleteButtonLabel;return E?{size:"SIZE_SMALL",text:E,accessibilityData:{accessibilityData:{label:this.getSimpleText(E)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var g,r,E=(g=this.instruction)==null?void 0:(r=g.editInstruction)==null?void 0:r.cancelButtonLabel;g=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return E?{style:g,size:"SIZE_SMALL",text:E,accessibilityData:{accessibilityData:{label:this.getSimpleText(E)}}}: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"}}});
Xb.prototype.onEditOnlyModeUpdate=Xb.prototype.onEditOnlyModeUpdate;Xb.prototype.onImageChange=Xb.prototype.onImageChange;_.m([_.K(),_.L("design:type",HQD)],Xb.prototype,"imageData",void 0);_.m([_.K(),_.L("design:type",Object)],Xb.prototype,"instruction",void 0);_.m([_.K(),_.L("design:type",Object)],Xb.prototype,"a11yConfig",void 0);_.m([_.K(),_.L("design:type",Number)],Xb.prototype,"imageWidth",void 0);_.m([_.K(),_.L("design:type",Number)],Xb.prototype,"imageHeight",void 0);
_.m([_.K(),_.L("design:type",Number)],Xb.prototype,"displayScale",void 0);_.m([_.K(),_.L("design:type",Object)],Xb.prototype,"imageDisplayOffsetTop",void 0);_.m([_.K(),_.L("design:type",Object)],Xb.prototype,"imageDisplayOffsetLeft",void 0);_.m([_.K(),_.L("design:type",Object)],Xb.prototype,"pickerDisplayOffsetTop",void 0);_.m([_.K(),_.L("design:type",Object)],Xb.prototype,"pickerDisplayOffsetLeft",void 0);_.m([_.K(),_.L("design:type",Object)],Xb.prototype,"showPreviewContainer",void 0);
_.m([_.K(),_.L("design:type",Object)],Xb.prototype,"startPicker",void 0);_.m([_.K(),_.L("design:type",Number)],Xb.prototype,"pickerOffsetX",void 0);_.m([_.K(),_.L("design:type",Number)],Xb.prototype,"pickerOffsetY",void 0);_.m([_.K(),_.L("design:type",Object)],Xb.prototype,"repositionOptional",void 0);_.m([_.K(),_.L("design:type",Object)],Xb.prototype,"editOnlyMode",void 0);_.m([_.zb("#picker-container"),_.L("design:type",HTMLElement)],Xb.prototype,"JSC$13661_pickerContainer",void 0);
_.m([_.zb("#picker"),_.L("design:type",HTMLElement)],Xb.prototype,"picker",void 0);_.m([_.zb("#preview-clipper"),_.L("design:type",HTMLElement)],Xb.prototype,"previewClipper",void 0);_.m([_.zb("#image-in-picker-background"),_.L("design:type",HTMLImageElement)],Xb.prototype,"JSC$13661_imageInBackground",void 0);_.m([_.zb("#image-in-picker"),_.L("design:type",HTMLImageElement)],Xb.prototype,"JSC$13661_imageInPicker",void 0);
_.m([_.zb("#image-in-preview-clipper"),_.L("design:type",HTMLImageElement)],Xb.prototype,"JSC$13661_imageInPreviewClipper",void 0);_.m([_.W("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.L("design:type",String),_.L("design:paramtypes",[])],Xb.prototype,"altLabelForImage",null);_.m([_.W("imageHeight","imageWidth"),_.L("design:type",Number),_.L("design:paramtypes",[])],Xb.prototype,"pickerSize",null);
_.m([_.W("imageHeight","imageWidth"),_.L("design:type",Object),_.L("design:paramtypes",[])],Xb.prototype,"imageOrientationStyle",null);_.m([_.W("instruction"),_.L("design:type",Object),_.L("design:paramtypes",[])],Xb.prototype,"editButton",null);_.m([_.W("instruction","editOnlyMode"),_.L("design:type",Object),_.L("design:paramtypes",[])],Xb.prototype,"saveButton",null);_.m([_.W("instruction"),_.L("design:type",Object),_.L("design:paramtypes",[])],Xb.prototype,"deleteButton",null);
_.m([_.W("instruction","editOnlyMode"),_.L("design:type",Object),_.L("design:paramtypes",[])],Xb.prototype,"cancelButton",null);_.m([_.W("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.L("design:type",Number),_.L("design:paramtypes",[])],Xb.prototype,"cropOffsetTop",null);_.m([_.W("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.L("design:type",Number),_.L("design:paramtypes",[])],Xb.prototype,"cropOffsetLeft",null);
_.m([_.W("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.L("design:type",String),_.L("design:paramtypes",[])],Xb.prototype,"pickerBackgroundStyle",null);_.m([_.W("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.L("design:type",String),_.L("design:paramtypes",[])],Xb.prototype,"pickerDisplayStyle",null);_.m([_.W("cropOffsetLeft","cropOffsetTop"),_.L("design:type",String),_.L("design:paramtypes",[])],Xb.prototype,"imageInPickerStyle",null);
_.m([_.W("cropOffsetLeft","cropOffsetTop","pickerSize"),_.L("design:type",String),_.L("design:paramtypes",[])],Xb.prototype,"previewClipperStyle",null);_.m([_.Yk("imageData"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Xb.prototype,"onImageChange",null);_.m([_.Yk("editOnlyMode"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Xb.prototype,"onEditOnlyModeUpdate",null);
_.m([_.W("showPreviewContainer"),_.L("design:type",String),_.L("design:paramtypes",[])],Xb.prototype,"pickerModeStyle",null);_.m([_.N({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],Xb);
_.I(Xb,"ytd-backstage-image-preview-renderer",function(){if(l3b!==void 0)return l3b;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return l3b=g},{mode:1});var DAI;var oXZ={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 GNZ;var Q7b;var N7=function(){var g=_.a.apply(this,arguments)||this;g.a11yConfig=oXZ;g.imageDisplayOffsetTop=0;g.imageDisplayOffsetLeft=0;g.pickerDisplayOffsetTop=0;g.pickerDisplayOffsetLeft=0;g.cropCoordinatesSaved=!1;g.previewSize=0;g.startPicker=!1;g.repositionOptional=!1;return g};
_.f(N7,_.a);_.S=N7.prototype;_.S.created=function(){_.eP.requestAvailability()};
_.S.ready=function(){};
_.S.onArrowKeysDown=function(g){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){g.detail.keyboardEvent.preventDefault();var r=0,E=0,B="";switch(g.detail.keyboardEvent.key){case "ArrowUp":Ryt(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?B=this.a11yConfig.reachBottomOfImage:r=this.imageHeight*.05*-1;break;case "ArrowDown":Ryt(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?B=this.a11yConfig.reachTopOfImage:
r=this.imageHeight*.05;break;case "ArrowLeft":Ryt(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?B=this.a11yConfig.reachRightOfImage:E=this.imageWidth*.05*-1;break;case "ArrowRight":Ryt(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?B=this.a11yConfig.reachLeftOfImage:E=this.imageWidth*.05}B&&_.zn(B)&&_.Sh(this.hostElement,"iron-announce",{text:_.zn(B)});if(E||r)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+r)),g=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),g=_.zn(this.a11yConfig.imageVerticalPosition,{x_percent:""+g,y_percent:""+(100-g)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+E)),g=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),g=_.zn(this.a11yConfig.imageHorizontalPosition,{x_percent:""+g,y_percent:""+(100-g)})),g&&_.Sh(this.hostElement,"iron-announce",{text:g})}};
_.S.getPreviewPosition=function(g,r,E,B){return Math.round(100*(g+r*.5-E)/B)};
_.S.displayImage=function(){var g=this.JSC$13672_pickerContainer.getBoundingClientRect().width,r=this.JSC$13672_pickerContainer.getBoundingClientRect().height,E=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),B=this.JSC$13672_imageInBackground.naturalWidth,w=this.JSC$13672_imageInBackground.naturalHeight;this.displayScale=Math.max(E/B,E/w);this.imageWidth=B*this.displayScale;this.imageHeight=w*this.displayScale;this.pickerDisplayOffsetLeft=(g-E)/2;this.pickerDisplayOffsetTop=
(r-E)/2;this.imageDisplayOffsetLeft=w>B?this.pickerDisplayOffsetLeft:(g-this.imageWidth)/2;this.imageDisplayOffsetTop=B>w?this.pickerDisplayOffsetTop:(r-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.S.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13672_imageInBackground.src=this.imageData.toString(),this.JSC$13672_imageInPicker.src=this.imageData.toString(),this.JSC$13672_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.S.getSignedPosition=function(g,r,E){return r==="X"&&_.Ca("HTML_DIR")==="rtl"?E==="-"?g+"px":g*-1+"px":E==="-"?g*-1+"px":g+"px"};
_.S.pickerMove=function(g){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var r=this.pickerOffsetX-g.clientX,E=this.pickerOffsetY-g.clientY;this.pickerOffsetX=g.clientX;this.pickerOffsetY=g.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
E)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-r))}};
_.S.pickerMoveStart=function(g){this.startPicker=!0;this.pickerOffsetX=g.clientX;this.pickerOffsetY=g.clientY};
_.S.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.S.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.Sh(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.S.getPreviewOffset=function(g,r,E,B){return r&&g&&E?(B==="X"&&_.Ca("HTML_DIR")==="rtl"?E/r*g:E/r*g*-1)+"px":"0px"};
_.S.getSimpleText=function(g){return g?_.Vp(g):""};
_.S.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var g=this.cropOffsetTop/this.imageHeight,r=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,E=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,B=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.S3(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.Sh(this.hostElement,"yt-img-crop-coordinates-update",{top:g,right:r,bottom:E,left:B})}};
_.hx.Object.defineProperties(N7.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var g=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.zn(this.a11yConfig.imageVerticalPosition,{x_percent:""+g,y_percent:""+(100-g)})+"\n"+_.zn(this.a11yConfig.verticalRepositionInstruction)}g=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.zn(this.a11yConfig.imageHorizontalPosition,{x_percent:""+g,y_percent:""+(100-g)})+"\n"+_.zn(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 g,r=(g=this.learnMore.runs[0])==null?void 0:g.navigationEndpoint,E;return((E=_.n(r,_.II))==null?void 0:E.url)||void 0}}}});
N7.prototype.onImageDataChange=N7.prototype.onImageDataChange;_.m([_.K(),_.L("design:type",Object)],N7.prototype,"imageData",void 0);_.m([_.K(),_.L("design:type",Object)],N7.prototype,"instruction",void 0);_.m([_.K(),_.L("design:type",Object)],N7.prototype,"a11yConfig",void 0);_.m([_.K(),_.L("design:type",Number)],N7.prototype,"imageWidth",void 0);_.m([_.K(),_.L("design:type",Number)],N7.prototype,"imageHeight",void 0);_.m([_.K(),_.L("design:type",Number)],N7.prototype,"displayScale",void 0);
_.m([_.K(),_.L("design:type",Object)],N7.prototype,"imageDisplayOffsetTop",void 0);_.m([_.K(),_.L("design:type",Object)],N7.prototype,"imageDisplayOffsetLeft",void 0);_.m([_.K(),_.L("design:type",Object)],N7.prototype,"pickerDisplayOffsetTop",void 0);_.m([_.K(),_.L("design:type",Object)],N7.prototype,"pickerDisplayOffsetLeft",void 0);_.m([_.K(),_.L("design:type",Object)],N7.prototype,"cropCoordinatesSaved",void 0);_.m([_.K(),_.L("design:type",Object)],N7.prototype,"previewSize",void 0);
_.m([_.K(),_.L("design:type",Object)],N7.prototype,"startPicker",void 0);_.m([_.K(),_.L("design:type",Number)],N7.prototype,"pickerOffsetX",void 0);_.m([_.K(),_.L("design:type",Number)],N7.prototype,"pickerOffsetY",void 0);_.m([_.K(),_.L("design:type",Object)],N7.prototype,"repositionOptional",void 0);_.m([_.zb("#picker-container"),_.L("design:type",HTMLElement)],N7.prototype,"JSC$13672_pickerContainer",void 0);_.m([_.zb("#picker"),_.L("design:type",HTMLElement)],N7.prototype,"picker",void 0);
_.m([_.zb("#image-in-picker-background"),_.L("design:type",HTMLImageElement)],N7.prototype,"JSC$13672_imageInBackground",void 0);_.m([_.zb("#image-in-picker"),_.L("design:type",HTMLImageElement)],N7.prototype,"JSC$13672_imageInPicker",void 0);_.m([_.zb("#image-in-preview-clipper"),_.L("design:type",HTMLImageElement)],N7.prototype,"JSC$13672_imageInPreviewClipper",void 0);_.m([_.zb("#full-image-as-preview"),_.L("design:type",HTMLImageElement)],N7.prototype,"imageAsPreview",void 0);
_.m([_.W("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.L("design:type",String),_.L("design:paramtypes",[])],N7.prototype,"altLabelForImage",null);_.m([_.W("imageHeight","imageWidth"),_.L("design:type",Number),_.L("design:paramtypes",[])],N7.prototype,"pickerSize",null);_.m([_.W("imageHeight","imageWidth"),_.L("design:type",Object),_.L("design:paramtypes",[])],N7.prototype,"imageOrientationStyle",null);
_.m([_.W("instruction.previewInstruction.editButtonLabel"),_.L("design:type",Object),_.L("design:paramtypes",[])],N7.prototype,"editButton",null);_.m([_.W("instruction.editInstruction.saveButtonLabel"),_.L("design:type",Object),_.L("design:paramtypes",[])],N7.prototype,"saveButton",null);_.m([_.W("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.L("design:type",Number),_.L("design:paramtypes",[])],N7.prototype,"cropOffsetTop",null);
_.m([_.W("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.L("design:type",Number),_.L("design:paramtypes",[])],N7.prototype,"cropOffsetLeft",null);_.m([_.W("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.L("design:type",String),_.L("design:paramtypes",[])],N7.prototype,"pickerBackgroundStyle",null);_.m([_.W("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.L("design:type",String),_.L("design:paramtypes",[])],N7.prototype,"pickerDisplayStyle",null);
_.m([_.W("cropOffsetLeft","cropOffsetTop"),_.L("design:type",String),_.L("design:paramtypes",[])],N7.prototype,"imageInPickerStyle",null);_.m([_.W("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.L("design:type",String),_.L("design:paramtypes",[])],N7.prototype,"previewClipperStyle",null);_.m([_.Gb("imageData"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],N7.prototype,"onImageDataChange",null);
_.m([_.W("cropCoordinatesSaved"),_.L("design:type",String),_.L("design:paramtypes",[])],N7.prototype,"pickerModeStyle",null);_.m([_.W("instruction.editInstruction.learnMore"),_.L("design:type",Object),_.L("design:paramtypes",[])],N7.prototype,"learnMore",null);_.m([_.W("learnMore"),_.L("design:type",Object),_.L("design:paramtypes",[])],N7.prototype,"learnMoreUrl",null);_.m([_.e3({is:"yt-img-crop-picker",disableElementRegistration:!0})],N7);
_.I(N7,"yt-img-crop-picker",function(){if(Q7b===void 0){var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;GNZ===void 0&&(GNZ=document.createElement("template"));var B=GNZ;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Q7b=g}g=Q7b;return g},{mode:2});var I0=function(){var g=_.a.apply(this,arguments)||this;g.errorMessage="";g.hasPreview=!1;g.isBackstagePost=!1;g.dismissButtonOverrides={size:"XS"};return g};
_.f(I0,_.a);_.S=I0.prototype;_.S.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},"data.selectButton":{id:"select",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S.detached=function(){this.removeOverlay()};
_.S.setPreview=function(g){_.S3(this.hostElement).querySelector("#preview-picker").imageData=g;this.hasPreview=!0;_.Sh(this.hostElement,"yt-backstage-image-select-preview")};
_.S.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var g=_.S3(this.hostElement).querySelector("#dropzone");g.classList.remove("dragover");g.classList.remove("error");_.Sh(this.hostElement,"yt-backstage-image-select-cancel")};
_.S.setupOverlay=function(){var g=this.imageUploadEndpoint;this.removeOverlay();if(g&&g.imageValidationInfo){var r=_.S3(this.hostElement).querySelector("#dropzone"),E=_.S3(this.hostElement).querySelector("#select");this.overlay=new iw(g.uploadUrl,g.channelId,g.imageValidationInfo.maxFileSizeMb,g.imageValidationInfo.allowedMaxAspectRatio,r,E,!0);_.j_(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.j_(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.j_(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.j_(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.j_(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.S.removeOverlay=function(){this.overlay&&(_.Qu(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.Qu(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.Qu(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.Qu(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.Qu(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.S.onDragOver=function(g){var r=_.S3(this.hostElement).querySelector("#dropzone");_.UN(r,"dragover",g.value)};
_.S.onPreview=function(g){this.setPreview(g.value)};
_.S.onImageError=function(g){if(g.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var r;g=(r=this.data)==null?void 0:r.fileSizeError}else if(g.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var E;g=(E=this.data)==null?void 0:E.invalidError}else if(g.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var B;g=(B=this.data)==null?void 0:B.invalidAspectRatioError}else return;this.errorMessage=_.Vp(g);_.S3(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.S.onImageAlert=function(g){this.onImageError(g)};
_.S.uploadPromise=function(){var g=this,r=this.overlay&&this.overlay.uploadPromise();if(r)return r.catch(function(){throw Error(g.data?_.Vp(g.data.uploadFailureError):"");})};
_.hx.Object.defineProperties(I0.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var g,r;if((g=this.data)==null?0:(r=g.icon)==null?0:r.iconType)return _.Dh(this.data.icon.iconType)}}});
I0.prototype.setupOverlay=I0.prototype.setupOverlay;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],I0.prototype,"rendererStamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],I0.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],I0.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],I0.prototype,"imageUploadEndpoint",void 0);_.m([_.K(),_.L("design:type",Object)],I0.prototype,"errorMessage",void 0);
_.m([_.K(),_.L("design:type",iw)],I0.prototype,"overlay",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],I0.prototype,"hasPreview",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],I0.prototype,"isBackstagePost",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],I0.prototype,"selectionCancel",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],I0.prototype,"previewCancel",null);
_.m([_.W("data.icon.iconType"),_.L("design:type",Object),_.L("design:paramtypes",[])],I0.prototype,"icon",null);_.m([_.K(),_.L("design:type",Object)],I0.prototype,"dismissButtonOverrides",void 0);_.m([_.Gb("imageUploadEndpoint"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],I0.prototype,"setupOverlay",null);_.m([_.N({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],I0);
_.I(I0,"ytd-backstage-image-select-renderer",function(){if(DAI!==void 0)return DAI;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return DAI=g},{mode:1});var zVz;var kNT;var mI=function(){var g=_.a.apply(this,arguments)||this;g.selected=!1;return g};
_.f(mI,_.a);_.S=mI.prototype;_.S.computeSelected=function(g){return g==null?void 0:g.selected};
_.S.computeTransform=function(g,r,E){var B,w,O=(w=(B=this.imageContainer)==null?void 0:B.getBoundingClientRect())!=null?w:{width:0,height:0};B=Math.max(O.width/r,O.height/E);E=E*B*g.top;return"translateX("+this.getSignedPosition(r*B*g.left,"X","-")+") translateY("+this.getSignedPosition(E,"Y","-")+")"};
_.S.getSignedPosition=function(g,r,E){return r==="X"&&_.Ca("HTML_DIR")==="rtl"?E==="-"?g+"px":g*-1+"px":E==="-"?g*-1+"px":g+"px"};
_.S.onClick=function(){var g;_.Sh(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(g=this.data)==null?void 0:g.image)};
_.S.onKeyPress=function(g){if(g.keyCode===13)this.onClick()};
_.hx.Object.defineProperties(mI.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var g,r;return((g=this.data)==null?void 0:(r=g.image)==null?void 0:r.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)!=null&&g.image){var r;g=(r=this.data)==null?void 0:r.image;return g.previewCoordinates.top!==0||g.previewCoordinates.left!==0?(r=this.computeTransform(g.previewCoordinates,g.naturalWidth,g.naturalHeight),g.naturalHeight>=g.naturalWidth?"width:inherit;transform:"+r+";":"height:inherit;transform:"+r+";"):g.naturalHeight>=g.naturalWidth?"width:inherit;":"height:inherit;"}}}});
mI.prototype.onKeyPress=mI.prototype.onKeyPress;_.m([_.zb(".image-container"),_.L("design:type",HTMLElement)],mI.prototype,"imageContainer",void 0);_.m([_.K(),_.L("design:type",Object)],mI.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.L("design:type",Object)],mI.prototype,"selected",void 0);_.m([_.W("data.image"),_.L("design:type",Object),_.L("design:paramtypes",[])],mI.prototype,"thumbnailUrl",null);
_.m([_.W("data.image","data.image.previewCoordinates"),_.L("design:type",Object),_.L("design:paramtypes",[])],mI.prototype,"thumbnailStyle",null);_.m([_.ob("keypress"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],mI.prototype,"onKeyPress",null);_.m([_.N({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],mI);
_.I(mI,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(kNT!==void 0)return kNT;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return kNT=g},{mode:2});var cc=function(g,r,E){E=E===void 0?!1:E;_.ze.call(this);var B=this;this.dropZoneOverlay=new Sf(g);this.selectOverlay=E?new O7(r,"multiple_file",["image/*"]):new O7(r,"single_file",["image/*"]);this.handler=new _.EQ(this);_.oO(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(r,"click",function(){B.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.f(cc,_.ze);cc.prototype.onChange=function(g){var r;(r=g.files)!=null&&r.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:g.files}))};var ih=function(){var g=_.a.apply(this,arguments)||this;g.addImageErrorMessage="";g.errorMessage="";g.images=[];g.selectedImageIndex=0;g.modern=_.Y("web_modern_buttons");g.maxNumImagesPerPost=_.wM("max_num_images_per_post_web_ui");g.JSC$13687_imageId=0;return g};
_.f(ih,_.a);_.S=ih.prototype;_.S.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.Sh(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.S.observeDragToReorder=function(){var g=this;if(this.showImagesPreview){var r,E=tK4(_.yK.getInstance(),(r=this.data)==null?void 0:r.dragToReorderTooltip);_.F6.addLowPriorityJob(function(){_.uq(g.hostElement,E,g.thumbnailDragDropArea)})}};
_.S.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dataForAddImageButton:{id:"add-image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},thumbnailRenderers:{id:"thumbnail-drag-drop-area",mapping:{renderer:"ytd-backstage-multi-image-thumbnail-renderer"},events:!0,reuseComponents:!0,stamperStableList:!0}}};
_.S.computeThumbnail=function(g){return(g==null?void 0:g.localImageSrc)||void 0};
_.S.onRendererstamperFinished=function(){_.YiT(this.ytReorderableBehavior,_.S3(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.S3(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.S.handleDrop=function(g){var r=g.currDragItem;if(r!=null&&r.data){g=this.images[this.selectedImageIndex];var E=r.data.image,B=this.images.indexOf(E)||0;r=_.IX(r.parentNode.children,r);this.images.splice(B,1);this.images.splice(r,0,E);this.images=[].concat(_.jW(this.images));this.selectedImageIndex=this.images.indexOf(g)}};
_.S.setUpImagePicker=function(){var g=this.imageUploadEndpoint;g&&g.imageValidationInfo&&(this.uploadManager=new xV(g.uploadUrl,g.channelId),this.initialPicker||(this.initialPicker=new cc(this.dropzone,this.selectLink,!0),_.j_(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new cc(this.addImageButtonContainer,this.addImageSelectButton),_.j_(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.j_(this.JSC$13687_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.j_(this.JSC$13687_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.j_(_.S3(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.S.detached=function(){this.initialPicker&&(_.Qu(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.Qu(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.S.onInitialSelectImages=function(g){var r=this;return _.q(function(E){return _.D(E,r.onSelectImages(g,!1),0)})};
_.S.onAddImage=function(g){var r=this;return _.q(function(E){return _.D(E,r.onSelectImages(g,!0),0)})};
_.S.onSelectImages=function(g,r){var E=this,B,w,O,M,u,l,Q,z,k,H,R,A,J,e,C,X,Z,c,h,y;return _.q(function(OD){switch(OD.nextAddress){case 1:r?E.addImageErrorMessage="":(E.images=[],E.errorMessage="");B=g.detail;w=E.validateImages([].concat(_.jW(B)));if(w!=="")return r?E.addImageErrorMessage=w:E.errorMessage=w,OD.return();O=[].concat(_.jW(B)).map(function(uB){return(new m5(E.maxAspectRatio,!1,!0)).transform(uB)});
return _.D(OD,Promise.allSettled(O),2);case 2:M=OD.yieldResult,u=_.U(M.entries()),l=u.next();case 3:if(l.done){OD.jumpTo(5);break}Q=l.value;z=_.U(Q);k=z.next().value;H=z.next().value;R=k;A=H;if(A.status!=="fulfilled"){C=e=J=void 0;r?E.addImageErrorMessage=_.Vp((J=E.data)==null?void 0:J.invalidError):E.errorMessage=E.errorMessage===""?_.Vp((e=E.data)==null?void 0:e.invalidError):_.Vp((C=E.data)==null?void 0:C.multiFileError);OD.jumpTo(4);break}X=A.value;X.cropped&&_.Sh(E.hostElement,"yt-backstage-multi-image-cropped");
if(X.invalidAspectRatio){h=c=Z=void 0;r?E.addImageErrorMessage=_.Vp((Z=E.data)==null?void 0:Z.invalidAspectRatioError):E.errorMessage=E.errorMessage===""?_.Vp((c=E.data)==null?void 0:c.invalidAspectRatioError):_.Vp((h=E.data)==null?void 0:h.multiFileError);OD.jumpTo(4);break}return _.D(OD,pRL(E.JSC$13687_imageId,g.detail[R],X.transformedData),8);case 8:y=OD.yieldResult,E.images.push(y),E.JSC$13687_imageId++;case 4:l=u.next();OD.jumpTo(3);break;case 5:if(E.errorMessage!==""||E.addImageErrorMessage!==
"")return OD.return();r?w7A(E.uploadManager,[E.images[E.images.length-1]]):w7A(E.uploadManager,E.images);E.images=[].concat(_.jW(E.images));E.selectedImageIndex=r?Math.max(E.images.length-1,0):0;_.Sh(E.hostElement,"yt-backstage-multi-image-select");_.Q3(OD)}})};
_.S.onThumbnailClick=function(g){if(g=g.event_.detail)this.selectedImageIndex=this.images.indexOf(g)};
_.S.validateImages=function(g){if(g.length>this.maxNumImagesPerPost){var r;return _.Vp((r=this.data)==null?void 0:r.multiImageExceedMaxImageCountError)}var E=1048576*this.maxFileSizeMb;g=g.filter(function(O){return O.size>E}).length;
if(g===0)return"";var B,w;g=g>1?(B=this.data)==null?void 0:B.multiFileError:(w=this.data)==null?void 0:w.fileSizeError;return _.Vp(g)};
_.S.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.jW(this.images));this.selectedImageIndex=0};
_.S.repositionImage=function(g){this.images[this.selectedImageIndex].previewCoordinates=g.event_.detail;this.images=[].concat(_.jW(this.images))};
_.S.getAllUploadStatuses=function(){var g=this,r,E,B,w;return _.q(function(O){if(O.nextAddress==1)return _.D(O,g.uploadManager.getAllUploadStatuses(),2);r=O.yieldResult;E=_.U(r);for(B=E.next();!B.done;B=E.next())if(w=B.value,w.encryptedBlobId===void 0)return O.return(S4m(g.uploadManager));return O.return(r)})};
_.S.hasImages=function(){return this.images.length>0};
_.S.cancel=function(){for(var g=this.uploadManager,r=_.U(g.imagesUploadData),E=r.next();!E.done;E=r.next())g.cancel(E.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.Sh(this.hostElement,"yt-backstage-multi-image-cancel")};
_.hx.Object.defineProperties(ih.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var g,r;return((g=this.imageUploadEndpoint)==null?void 0:(r=g.imageValidationInfo)==null?void 0:r.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var g,r;return((g=this.imageUploadEndpoint)==null?void 0:(r=g.imageValidationInfo)==null?void 0:r.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var g,r;if((g=this.data)==null?0:(r=g.icon)==null?0:r.iconType)return _.Dh(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.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 g=this;return(this.images||[]).map(function(r,E){return{renderer:{image:r,selected:E===g.selectedImageIndex}}})}}});
ih.prototype.setUpImagePicker=ih.prototype.setUpImagePicker;ih.prototype.onRendererstamperFinished=ih.prototype.onRendererstamperFinished;ih.prototype.observeDragToReorder=ih.prototype.observeDragToReorder;ih.prototype.observeAddImageError=ih.prototype.observeAddImageError;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],ih.prototype,"rendererStamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ih.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.RZZ),_.L("design:type",Object)],ih.prototype,"ytReorderableBehavior",void 0);_.m([_.zb("#dropzone"),_.L("design:type",HTMLElement)],ih.prototype,"dropzone",void 0);_.m([_.zb("#select-link"),_.L("design:type",HTMLElement)],ih.prototype,"selectLink",void 0);_.m([_.zb("#thumbnail-drag-drop-area"),_.L("design:type",HTMLElement)],ih.prototype,"thumbnailDragDropArea",void 0);_.m([_.zb("#add-image-button-container"),_.L("design:type",HTMLElement)],ih.prototype,"addImageButtonContainer",void 0);
_.m([_.zb("#add-image-button"),_.L("design:type",HTMLElement)],ih.prototype,"addImageSelectButton",void 0);_.m([_.zb("#image-preview-container"),_.L("design:type",Object)],ih.prototype,"JSC$13687_imagePreviewContainer",void 0);_.m([_.K(),_.L("design:type",Object)],ih.prototype,"addImageErrorMessage",void 0);_.m([_.K(),_.L("design:type",Object)],ih.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],ih.prototype,"errorMessage",void 0);
_.m([_.K(),_.L("design:type",Object)],ih.prototype,"imageUploadEndpoint",void 0);_.m([_.K(),_.L("design:type",Array)],ih.prototype,"images",void 0);_.m([_.K(),_.L("design:type",cc)],ih.prototype,"initialPicker",void 0);_.m([_.K(),_.L("design:type",cc)],ih.prototype,"addImagePicker",void 0);_.m([_.K(),_.L("design:type",xV)],ih.prototype,"uploadManager",void 0);_.m([_.K(),_.L("design:type",Object)],ih.prototype,"selectedImageIndex",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],ih.prototype,"modern",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],ih.prototype,"maxNumImagesPerPost",void 0);_.m([_.W("imageUploadEndpoint"),_.L("design:type",Number),_.L("design:paramtypes",[])],ih.prototype,"maxAspectRatio",null);_.m([_.W("imageUploadEndpoint"),_.L("design:type",Number),_.L("design:paramtypes",[])],ih.prototype,"maxFileSizeMb",null);
_.m([_.W("data.icon.iconType"),_.L("design:type",Object),_.L("design:paramtypes",[])],ih.prototype,"dropIcon",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],ih.prototype,"selectionCancel",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],ih.prototype,"previewCancel",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],ih.prototype,"dataForAddImageButton",null);
_.m([_.W("errorMessage"),_.L("design:type",String),_.L("design:paramtypes",[])],ih.prototype,"dropzoneClass",null);_.m([_.W("images"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],ih.prototype,"showImagesPreview",null);_.m([_.W("images"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],ih.prototype,"containMaxImages",null);_.m([_.Gb("addImageErrorMessage"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ih.prototype,"observeAddImageError",null);
_.m([_.Gb("showImagesPreview"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ih.prototype,"observeDragToReorder",null);_.m([_.W("images","selectedImageIndex"),_.L("design:type",Object),_.L("design:paramtypes",[])],ih.prototype,"selectedImageData",null);_.m([_.W("images","selectedImageIndex"),_.L("design:type",Array),_.L("design:paramtypes",[])],ih.prototype,"thumbnailRenderers",null);
_.m([_.ob("yt-rendererstamper-finished"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ih.prototype,"onRendererstamperFinished",null);_.m([_.Gb("imageUploadEndpoint"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ih.prototype,"setUpImagePicker",null);_.m([_.N({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],ih);
_.I(ih,"ytd-backstage-multi-image-select-renderer",function(){if(zVz!==void 0)return zVz;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return zVz=g},{mode:1});var H1m;var p7b;var Y4m;var Lq=function(){var g=_.a.apply(this,arguments)||this;g.boundCaptureFocus=function(r){g.onCaptureFocus(r)};
return g};
_.f(Lq,_.a);_.S=Lq.prototype;_.S.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.S.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.S.onCaptureFocus=function(g){_.Z1(g).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.S.getIconType=function(g){return g?"yt-icons:"+g.toLowerCase():null};
_.S.onSelect=function(){var g;if((g=this.data)==null?0:g.onSelectCommand)if(_.Y("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var r;((r=_.n(this.data.onSelectCommand.commandMetadata,_.dU))==null?0:r.url)?_.Sh(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.rM().resolve(_.Er).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.hx.Object.defineProperties(Lq.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.Vp(this.data.label):""}},
value:{configurable:!0,enumerable:!0,get:function(){return this.data?typeof this.data.stringValue==="string"?this.data.stringValue:typeof this.data.int32Value==="number"?this.data.int32Value:null:null}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Lq.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Lq.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Lq.prototype,"data",void 0);_.m([_.zb("#item"),_.L("design:type",HTMLElement)],Lq.prototype,"item",void 0);_.m([_.W("data.label"),_.L("design:type",String),_.L("design:paramtypes",[])],Lq.prototype,"label",null);
_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],Lq.prototype,"value",null);_.m([_.N({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],Lq);
_.I(Lq,"ytd-privacy-dropdown-item-renderer",function(){if(Y4m!==void 0)return Y4m;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Y4m=g},{mode:1});var VM=function(){var g=_.a.apply(this,arguments)||this;g.value="";g.label="";g.disabled=!1;return g};
_.f(VM,_.a);_.S=VM.prototype;_.S.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.S.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.S.dataChanged=function(){this.reset()};
_.S.valueChanged=function(){var g;if(this.value&&(g=this.data)!=null&&g.entries){g=_.U(this.data.entries);for(var r=g.next();!r.done;r=g.next())if((r=this.getRendererForEntry(r.value))&&this.getItemRendererValue(r)===this.value){this.label=this.ytComponentBehavior.getSimpleString(r.label);break}}};
_.S.setInitialLabel=function(){if(this.data&&this.data.entries)for(var g=_.U(this.data.entries),r=g.next();!r.done;r=g.next())if(r=this.getRendererForEntry(r.value)){if(r.isSelected){this.label=this.ytComponentBehavior.getSimpleString(r.label);break}this.data.label&&(this.label=this.data.label)}};
_.S.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var g=_.U(this.data.entries),r=g.next();!r.done;r=g.next()){r=this.getRendererForEntry(r.value);var E=void 0;if((E=r)==null?0:E.isSelected)return this.getItemRendererValue(r)||-1}return-1};
_.S.getItemRendererValue=function(g){return"stringValue"in g||"int32Value"in g?g.stringValue||g.int32Value||null:null};
_.S.getRendererForEntry=function(g){return g.dropdownItemRenderer||g.privacyDropdownItemRenderer||g.navigationDropdownItemRenderer||null};
_.S.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.x8("value-changed",this.value))};
_.S.updateValueFromBinding=function(g){this.value=g.detail.value};
VM.prototype.valueChangedForBinding=VM.prototype.valueChangedForBinding;VM.prototype.valueChanged=VM.prototype.valueChanged;VM.prototype.dataChanged=VM.prototype.dataChanged;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],VM.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],VM.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],VM.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],VM.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],VM.prototype,"value",void 0);_.m([_.K(),_.L("design:type",Object)],VM.prototype,"label",void 0);_.m([_.zb("#entries"),_.L("design:type",Object)],VM.prototype,"entries",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],VM.prototype,"disabled",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],VM.prototype,"dataChanged",null);
_.m([_.Yk("value"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],VM.prototype,"valueChanged",null);_.m([_.Gb("value"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],VM.prototype,"valueChangedForBinding",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],VM);
_.I(VM,"ytd-flat-dropdown-renderer",function(){if(p7b!==void 0)return p7b;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return p7b=g},{mode:1});var RVn;var h3=function(){var g=_.a.apply(this,arguments)||this;g.quizOptions=[];g.explanationPlaceholderText="";g.optionPlaceholderText="";g.correctAnswerIndex=-1;g.isMarkAnswerTooltipShown=!1;g.timer=0;return g};
_.f(h3,_.a);_.S=h3.prototype;_.S.dataChanged=function(){this.optionPlaceholderText=_.Vp(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.Vp(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.S.onMarkCorrectAnswer=function(g){var r,E=((r=this.quizOptions[this.correctAnswerIndex])==null?void 0:r.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[g.model.index]=Object.assign({},this.quizOptions[g.model.index],{explanationText:E,isCorrect:!0});this.correctAnswerIndex=g.model.index;this.quizOptions=[].concat(_.jW(this.quizOptions))};
_.S.updatePlaceholderTexts=function(){for(var g=!1,r=[],E=0;E<this.quizOptions.length;E++){var B=this.optionPlaceholderText+" "+(E+1),w=void 0;((w=this.quizOptions[E])==null?void 0:w.placeholderText)!==B?(g=!0,r.push(Object.assign({},this.quizOptions[E],{placeholderText:B}))):r.push(this.quizOptions[E])}g&&(this.quizOptions=r);this.isValid()?_.Sh(this.hostElement,"yt-commentbox-post-enable"):_.Sh(this.hostElement,"yt-commentbox-post-disable")};
_.S.getSimpleString=function(g){return _.Vp(g)};
_.S.createQuizOptions=function(g){var r=[],E;g=(E=g==null?void 0:g.minQuizOptions)!=null?E:0;for(E=0;E<g;E++)r.push(this.createQuizOption());return r};
_.S.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.jW(this.quizOptions),[this.createQuizOption()]))};
_.S.onInput=function(){this.quizOptions=[].concat(_.jW(this.quizOptions))};
_.S.onExplanationInput=function(){_.Sh(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.S.onRemoveQuizOption=function(g){this.quizOptions.splice(g.model.index,1);g.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:g.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.jW(this.quizOptions));this.quizOptions.length===0&&_.Sh(this.hostElement,"yt-quiz-attachment-dismiss")};
_.S.updateHintRenderer=function(){var g=this;clearTimeout(this.timer);this.timer=setTimeout(function(){g.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.S.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var g=0,r=0,E=_.U(this.quizOptions),B=E.next();!B.done;B=E.next()){B=B.value;var w=void 0;if(((w=B.optionText)==null?void 0:w.trim())!==""||B.isCorrect){B.isCorrect&&r++;w=void 0;if(this.hasCustomOptionText&&((w=B.optionText)==null?void 0:w.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;g++}}return g>=
Number(this.editorInfo.minQuizOptions)&&r===1};
_.S.getPostCreateOptions=function(){for(var g=[],r=_.U(this.quizOptions),E=r.next();!E.done;E=r.next()){E=E.value;var B=void 0;((B=E.optionText)==null?void 0:B.trim())!==""&&g.push({pollOption:{text:E.optionText,explanation:E.explanationText},isCorrect:E.isCorrect})}return g};
_.S.getExplanationText=function(){var g;return((g=this.quizOptions[this.correctAnswerIndex])==null?void 0:g.explanationText)||""};
_.S.maybeDisplayMarkAnswerEduToolTip=function(){var g,r,E,B,w,O,M;this.shouldShowMarkAnswerTooltip()&&((g=this.editorInfo)==null?0:(r=g.markAnswerButton)==null?0:(E=r.buttonRenderer)==null?0:(B=E.hint)==null?0:(w=B.hintRenderer)==null?0:(O=w.content)==null?0:(M=O.bubbleHintRenderer)==null?0:M.text)&&(_.yK.getInstance(),g=va(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,(g==null?void 0:g.length)>0&&this.optionSelectors&&_.Qy(g[0],this.optionSelectors[0]))};
_.S.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var g=0,r=_.U(this.quizOptions),E=r.next();!E.done;E=r.next()){E=E.value;var B=void 0;((B=E.optionText)==null?void 0:B.trim())!==""&&g++;if(E.isCorrect)return!1}return g<2?!1:!0};
_.S.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.S.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.S.updateOptionTextFromBinding=function(g){if(g.target){var r=Array.from(_.S3(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(g.target);if(r>=0){var E;this.quizOptions[r].optionText=(E=g.detail.value)!=null?E:""}}};
_.hx.Object.defineProperties(h3.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var g,r,E=(g=this.editorInfo)==null?void 0:(r=g.addOptionButton)==null?void 0:r.buttonRenderer;E&&(E.style="STYLE_SUGGESTIVE",E.size="SIZE_SMALL",E.isDisabled=!this.isAllowedToAddOption);return(E==null?0:E.text)?E:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var g,r;return this.quizOptions.length<((r=(g=this.editorInfo)==null?void 0:g.maxQuizOptions)!=null?r:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(g){var r;return(r=g.optionText)==null?void 0:r.trim()})}}});
h3.prototype.updatePlaceholderTexts=h3.prototype.updatePlaceholderTexts;h3.prototype.dataChanged=h3.prototype.dataChanged;_.m([_.K(),_.L("design:type",Object)],h3.prototype,"editorInfo",void 0);_.m([_.K(),_.L("design:type",Array)],h3.prototype,"quizOptions",void 0);_.m([_.K(),_.L("design:type",Object)],h3.prototype,"explanationPlaceholderText",void 0);_.m([_.kk(".option-selector-button"),_.L("design:type",Array)],h3.prototype,"optionSelectors",void 0);
_.m([_.Yk("editorInfo"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],h3.prototype,"dataChanged",null);_.m([_.W("editorInfo","isAllowedToAddOption","quizOptions"),_.L("design:type",Object),_.L("design:paramtypes",[])],h3.prototype,"addAnswerButton",null);_.m([_.W("editorInfo","quizOptions"),_.L("design:type",Object),_.L("design:paramtypes",[])],h3.prototype,"isAllowedToAddOption",null);
_.m([_.Yk("quizOptions"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],h3.prototype,"updatePlaceholderTexts",null);_.m([_.W("quizOptions"),_.L("design:type",Object),_.L("design:paramtypes",[])],h3.prototype,"hasCustomOptionText",null);_.m([_.N({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],h3);
_.I(h3,"ytd-backstage-quiz-editor-renderer",function(){if(RVn!==void 0)return RVn;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return RVn=g},{mode:2});var nXm;var s7A=(n0.FIRSTDAYOFWEEK+1)%7;var f3w;var $Aw=[],j7T=0,Ac6=0;j7T=0;Ac6=24;if(.25*(Ac6-j7T)<0)f3w=[];else{for(var b1D=j7T;b1D<Ac6;b1D+=.25)$Aw.push(b1D);f3w=$Aw}var JcD=f3w.map(function(g){g=g*60*60;return{secondsSinceMidnight:g,text:(new cs(7)).format(new Date(0,0,0,0,0,g))}});var P0w;var Zd=function(){var g=_.a.apply(this,arguments)||this;g.skipNextOpenDialog=!1;g.errorMessage="";return g};
_.f(Zd,_.a);_.S=Zd.prototype;_.S.attached=function(){var g=this,r=new MutationObserver(function(){g.JSC$13730_calendarMain.scrollHeight>0&&(r.disconnect(),g.calendarConfig&&g.calendarConfig.selectedDate&&g.scrollToDate())});
r.observe(this.JSC$13730_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){r.disconnect()},1E3)};
_.S.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.S.onDateTextChange=function(){if(this.calendarConfig){var g=this.validateDateText();g.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(g.details)):this.textbox.setAttribute("invalid","")}};
_.S.handleDayClick=function(g){g.model.day.date&&(this.commitDate(g.model.day.date),this.dialog.close())};
_.S.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var g=PSc(this.calendarConfig.selectedDate,this.renderData);g!==void 0&&this.JSC$13730_calendarMain.scrollToIndex(g)}};
_.S.scrollToNextMonth=function(){this.JSC$13730_calendarMain.scrollToIndex(this.JSC$13730_calendarMain.firstVisibleIndex+1)};
_.S.scrollToPrevMonth=function(){this.JSC$13730_calendarMain.firstVisibleIndex===0&&this.JSC$13730_calendarMain.scrollTo(0,0);this.JSC$13730_calendarMain.scrollToIndex(this.JSC$13730_calendarMain.firstVisibleIndex-1)};
_.S.onFormSubmit=function(g){g.preventDefault();this.calendarConfig&&(g=this.validateDateText(),g.isValid&&(this.commitDate(g.details),this.dialog.close()))};
_.S.onEscOrClickingOutside=function(g){g=g.detail.path&&!!g.detail.path.length&&g.detail.path[0];if(g.classList.contains("ytd-calendar-date-picker")){g===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var r=0;r<this.dropdownButton.children.length;r++)this.dropdownButton.children[r]===g&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}g=this.textbox.value!==this.dateText;r=this.validateDateText();g&&r.isValid&&this.commitDate(r.details);this.dialog.close();this.textbox.value=
this.dateText};
_.S.commitDate=function(g){this.calendarConfig&&(this.set("calendarConfig.selectedDate",g),_.Sh(this.hostElement,"ytd-calendar-date-selected",g))};
_.S.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var g=this.textbox.value;var r=new Date;g=(new yJA(2)).parse(g,r,{validate:!0})===g.length?bQo(r):void 0;if(!g)return this.errorMessage=_.zn("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};r=this.calendarConfig.start;var E=this.calendarConfig.end;if(sPc(g,r))return this.errorMessage=_.zn("ENTER_DATE_OR_LATER",{allowed_date:AJt(r)}),{isValid:!1,details:void 0};if(sPc(E,g))return this.errorMessage=
_.zn("ENTER_DATE_OR_EARLIER",{allowed_date:AJt(E)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:g}};
_.hx.Object.defineProperties(Zd.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?AJt(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var g=this.calendarConfig,r=[],E=0;E<7;E++)r.push(n0.NARROWWEEKDAYS[(E+s7A)%7]);E=[];for(var B=new Date(g.start.year,g.start.month);B.getFullYear()<g.end.year||B.getFullYear()===g.end.year&&B.getMonth()<=g.end.month;){var w=E,O=w.push,M=B.getFullYear(),u=B.getMonth(),l=g,Q=void 0,z=[],k=Object.freeze({extraCssClass:"invisible",debugClass:""}),H=new Date(M,u),R=bQo(H);H=H.getDay();for(var A=bQo(new Date);R.month===
u;){H!==s7A&&Q||(Q=Array.from({length:7}).fill(k),z.push(Q));var J={date:{year:M,month:u,day:R.day},extraCssClass:"",debugClass:""};l.selectedDate&&J.date&&nZY(J.date,l.selectedDate)&&(J.extraCssClass+=" selected");if(sPc(R,l.start)||sPc(l.end,R))J.extraCssClass+=" disabled";nZY(R,A)&&(J.extraCssClass+=" today");J.extraCssClass=J.extraCssClass.trim();Q[(H-s7A+7)%7]=J;R=$Kc(R);H=(H+1)%7}O.call(w,{weeks:z,monthLabel:n0.SHORTMONTHS[u]+" "+M,year:M,month:u,monthLabelExtraCssClass:z[0][2]===k?"shift-down-label":
""});B.setMonth(B.getMonth()+1)}return{months:E,daysOfWeekLabel:r}}}}});
Zd.prototype.onEscOrClickingOutside=Zd.prototype.onEscOrClickingOutside;Zd.prototype.scrollToDate=Zd.prototype.scrollToDate;_.m([_.K(),_.L("design:type",Object)],Zd.prototype,"calendarConfig",void 0);_.m([_.K(),_.L("design:type",Object)],Zd.prototype,"skipNextOpenDialog",void 0);_.m([_.K(),_.L("design:type",Object)],Zd.prototype,"errorMessage",void 0);_.m([_.zb("#textbox"),_.L("design:type",HTMLInputElement)],Zd.prototype,"textbox",void 0);
_.m([_.zb("#calendar-dialog"),_.L("design:type",Object)],Zd.prototype,"dialog",void 0);_.m([_.zb("#calendar-main"),_.L("design:type",Object)],Zd.prototype,"JSC$13730_calendarMain",void 0);_.m([_.zb("#date-picker"),_.L("design:type",HTMLElement)],Zd.prototype,"dropdownButton",void 0);_.m([_.W("calendarConfig.selectedDate"),_.L("design:type",String),_.L("design:paramtypes",[])],Zd.prototype,"dateText",null);
_.m([_.W("calendarConfig","calendarConfig.selectedDate"),_.L("design:type",Object),_.L("design:paramtypes",[])],Zd.prototype,"renderData",null);_.m([_.Gb("renderData","calendarConfig.selectedDate"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Zd.prototype,"scrollToDate",null);_.m([_.ob("iron-overlay-canceled"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],Zd.prototype,"onEscOrClickingOutside",null);
_.m([_.e3({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],Zd);
_.I(Zd,"ytd-calendar-date-picker",function(){if(P0w!==void 0)return P0w;var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return P0w=g},{mode:2});var tD4=_.zn("UTC_OFFSET_FORMAT",{utc_offset:(new cs("Z")).format(new Date)}),FNn=(new Date).getTimezoneOffset()*-60,eVU=new Date,WNU,C0n=mu(eVU.getTimezoneOffset());WNU=scT($r4(C0n,eVU));var KNw=_.zn("LOCAL_TIME_GMT_LABEL",{gmt_text:WNU.replace("+0","+").replace("-0","-").replace(":00","")}),yM=function(){var g=_.a.apply(this,arguments)||this;g.selectedTimeIndex=0;g.selectedTimezoneIndex=0;g.timeOfDayOptions=JcD;return g};
_.f(yM,_.a);_.S=yM.prototype;_.S.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var g=jPX();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=g,this.selectedTimeIndex=0;else{var r=JJQ(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},g,{selectedDate:r.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(E){return E.secondsSinceMidnight===r.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.S.onDatePicked=function(g){this.selectedDate=g.detail};
_.S.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.Sh(this.hostElement,"ytd-date-time-selection-cancelled")};
_.S.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var g=this.selectedDate;g=new Date(g.year,g.month,g.day);_.Sh(this.hostElement,"ytd-date-time-selection-update",Math.floor(g.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+g.getTimezoneOffset()*60))}};
_.S.getTimezoneFormat=function(g){return g.localizedDisplayText?g.localizedDisplayText:_.zn("TIMEZONE_FORMAT",{utc_offset_text:""+g.localizedUtcOffset,city_name:""+g.localizedName})};
_.S.updateSelectedTimeIndexFromBinding=function(g){this.selectedTimeIndex=g.detail.value};
_.S.updateSelectedTimezoneIndexFromBinding=function(g){this.selectedTimezoneIndex=g.detail.value};
_.hx.Object.defineProperties(yM.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var g=this.data.timezoneOptions;var r={name:"Etc/Unknown",localizedName:_.zn("LOCAL_TIME_LABEL"),localizedUtcOffset:tD4,utcOffsetSec:""+FNn,localizedDisplayText:KNw};g?g.length&&g[0].name!==r.name&&(g[0].localizedDisplayText||(r.localizedDisplayText=""),g.unshift(r)):g=[r];return g}}},
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]}}});
yM.prototype.onDateTimeTimezoneChange=yM.prototype.onDateTimeTimezoneChange;yM.prototype.onDatePicked=yM.prototype.onDatePicked;yM.prototype.updateDefaultSelectedValue=yM.prototype.updateDefaultSelectedValue;_.m([_.K(),_.L("design:type",Object)],yM.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],yM.prototype,"calendarConfig",void 0);_.m([_.K(),_.L("design:type",Object)],yM.prototype,"selectedDate",void 0);_.m([_.K(),_.L("design:type",Object)],yM.prototype,"selectedTimeIndex",void 0);
_.m([_.K(),_.L("design:type",Object)],yM.prototype,"selectedTimezoneIndex",void 0);_.m([_.zb("#time-listbox"),_.L("design:type",Object)],yM.prototype,"timeListBox",void 0);_.m([_.zb("#timezone-listbox"),_.L("design:type",Object)],yM.prototype,"timezoneListBox",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],yM.prototype,"rendererStamperBehavior",void 0);_.m([_.W("data.timezoneOptions"),_.L("design:type",Object),_.L("design:paramtypes",[])],yM.prototype,"timeZones",null);
_.m([_.Yk("data","timeZones"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],yM.prototype,"updateDefaultSelectedValue",null);_.m([_.W("selectedTimezoneIndex","timeZones"),_.L("design:type",Object),_.L("design:paramtypes",[])],yM.prototype,"selectedTimezone",null);_.m([_.W("selectedTimeIndex"),_.L("design:type",Object),_.L("design:paramtypes",[])],yM.prototype,"selectedTime",null);
_.m([_.ob("ytd-calendar-date-selected"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],yM.prototype,"onDatePicked",null);_.m([_.Gb("selectedTimezone","selectedTime","selectedDate"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],yM.prototype,"onDateTimeTimezoneChange",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],yM);
_.I(yM,"ytd-date-time-picker-renderer",function(){if(nXm!==void 0)return nXm;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return nXm=g},{mode:1});var xAD;var vc=function(){var g=_.a.apply(this,arguments)||this;g.boundOnTapDismissButton=function(){g.dismissTapHandler()};
g.dismissButtonOverrides={size:"XS"};return g};
_.f(vc,_.a);vc.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}}}}}};
vc.prototype.dismissTapHandler=function(){_.Sh(this.hostElement,"yt-backstage-attachment-dismissed")};
vc.prototype.computeAttachmentType=function(g){return g?g.backstageImageRenderer?"image":g.videoRenderer?"video":"none":"none"};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],vc.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],vc.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],vc.prototype,"attachmentPreview",void 0);_.m([_.K(),_.L("design:type",Object)],vc.prototype,"dismissButton",void 0);_.m([_.K(),_.L("design:type",Object)],vc.prototype,"boundOnTapDismissButton",void 0);
_.m([_.K(),_.L("design:type",Object)],vc.prototype,"dismissButtonOverrides",void 0);_.m([_.K({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.L("design:type",String)],vc.prototype,"attachmentType",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],vc);
_.I(vc,"ytd-backstage-dismissable-attachment",function(){if(xAD!==void 0)return xAD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return xAD=g},{mode:1});var a3w;var d4=function(){var g=_.a.apply(this,arguments)||this;g.selectedVideoId=void 0;g.picker=void 0;g.dismissButtonOverrides={size:"XS"};g.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return g};
_.f(d4,_.a);_.S=d4.prototype;_.S.onServiceRequestCompleted=function(g){g.stopPropagation()};
_.S.handleAddVideoPreviewAction=function(g){g=this.get("addVideoPreviewAction",g);this.onGetVideoPreviewSuccess(g)};
_.S.configureRendererStamper=function(){return{videoPreview:{id:"video-preview",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}}}},cancelButton:{id:"cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}}}};
_.S.onLaunchVideoPicker=function(g){var r=this,E=_.Vp(this.get("addVideoLinkAction.title",g)),B=this.get("addVideoLinkAction.onePickHostId",g);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",g);B&&(this.picker||(E=_.Hlm(_.n8c(B).setTitle(E).addView(GWD()).addView(oBA()),function(w){r.onPickVideo(w)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",g)||E.addView("youtube"),this.picker=E.build()),this.picker.setVisible(!0))};
_.S.onPickVideo=function(g){if(g)if(g.action==="cancel")_.Sh(this.hostElement,"yt-video-link-button-cancel");else if(g.action==="picked"){g=g.docs;if(!g||g.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(g=(g==null?0:g.length)?g[0]:void 0)?g.id:void 0;this.setVideoPreview()}};
_.S.setVideoPreview=function(){var g=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){g.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.S.onGetVideoPreviewSuccess=function(g){if(g&&g.videoPreview&&g.cancelButton)this.videoPreview=g.videoPreview,this.cancelButton=g.cancelButton,_.Sh(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.S.onGetVideoPreviewError=function(){this.cancel()};
_.S.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.Sh(this.hostElement,"yt-video-link-cancel")};
_.S.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
d4.prototype.onServiceRequestCompleted=d4.prototype.onServiceRequestCompleted;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],d4.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],d4.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],d4.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],d4.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],d4.prototype,"videoPreview",void 0);_.m([_.K(),_.L("design:type",Object)],d4.prototype,"cancelButton",void 0);_.m([_.K(),_.L("design:type",Object)],d4.prototype,"getVideoPreviewCommand",void 0);_.m([_.K(),_.L("design:type",Object)],d4.prototype,"dismissButtonOverrides",void 0);
_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],d4.prototype,"onServiceRequestCompleted",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],d4);
_.I(d4,"ytd-backstage-video-link-attachment",function(){if(a3w!==void 0)return a3w;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return a3w=g},{mode:1});var X7n;var NaD;var I3A;var TQ=function(){return _.a.apply(this,arguments)||this};
_.f(TQ,_.a);TQ.prototype.dataChanged=function(){this.active=!1};
TQ.prototype.onTap=function(){_.Sh(this.hostElement,"yt-select-emoji-suggestion",this.data)};
TQ.prototype.identity=function(g){return g};
_.hx.Object.defineProperties(TQ.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var g,r,E,B;if((g=this.data)==null?0:(r=g.image)==null?0:(E=r.thumbnails)==null?0:(B=E[0])==null?0:B.url)return g=this.data.image.thumbnails[0].url,g.startsWith("data:image/svg+xml")?Gh(g):_.nI(g)}}});
TQ.prototype.dataChanged=TQ.prototype.dataChanged;_.m([_.K(),_.L("design:type",Object)],TQ.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],TQ.prototype,"active",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],TQ.prototype,"dataChanged",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],TQ.prototype,"imageSrc",null);
_.m([_.N({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],TQ);
_.I(TQ,"ytd-emoji-suggestion",function(){if(I3A!==void 0)return I3A;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return I3A=g},{mode:1});var mAn=/.*([:@#].*?)$/,gd=function(){var g=_.a.apply(this,arguments)||this;g.suggestions=[];g.suggestionIndex=-1;g.JSC$13758_lastSuggestionRange=null;return g};
_.f(gd,_.a);_.S=gd.prototype;_.S.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.S.getSuggestions=function(g){var r=[],E=nJD(this.emojiManager,g.substr(0,3));if(E)for(var B in E)if(B.toLocaleLowerCase().indexOf(g)===0){var w=E[B];if(w&&w.emojiId){w=Fo(this.emojiManager,w.emojiId);var O=void 0,M=void 0,u=void 0,l=void 0,Q=((O=w)==null?0:O.isCustomEmoji)?(M=w)==null?void 0:(u=M.shortcuts)==null?void 0:u[0]:(l=w)==null?void 0:l.emojiId;O=void 0;r.push({suggestion:{image:(O=w)==null?void 0:O.image,alt:Q,text:B}});if(r.length>=64)break}}return r?r.sort(function(z,k){return k.suggestion.text<
z.suggestion.text?-1:k.suggestion.text===z.suggestion.text?0:1}):null};
_.S.insertSuggestion=function(g){_.Sh(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13758_lastSuggestionRange,text:g.alt});this.dropdown.opened=!1};
_.S.updateSuggestionsAtCaret=function(g){this.updateSuggestions(g,this.retrieveTextBeforeRange(g))};
_.S.offsetStartOfRangeBy=function(g,r){g.startOffset>=r&&g.setStart(g.startContainer,g.startOffset-r)};
_.S.updateSuggestions=function(g,r){var E=this;this.JSC$13758_lastSuggestionRange&&(this.JSC$13758_lastSuggestionRange.detach(),this.JSC$13758_lastSuggestionRange=null);if((r=mAn.exec(r))&&r.length&&(r=r[r.length-1].toLocaleLowerCase(),r.length>2||r===":_")&&(this.offsetStartOfRangeBy(g,r.length),this.JSC$13758_lastSuggestionRange=g,(g=this.getSuggestions(r))&&g.length)){this.suggestions=g;_.Lk(this,function(){E.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(g.length-1);return}this.dropdown.opened=!1};
_.S.onKeyDown=function(g){if(this.dropdown.opened)switch(g.key){case "Escape":this.dropdown.opened=!1;g.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);g.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);g.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),g.preventDefault()}};
_.S.onKeyUp=function(g,r){switch(g.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(r);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(r)}};
_.S.onKeyPress=function(g){g.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),g.preventDefault())};
_.S.changeSuggestionIndex=function(g){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(g+this.suggestions.length)%this.suggestions.length,g=this.dropdownContent.children[this.suggestionIndex],g.active=!0,this.dropdownContent.scrollTop=g.offsetTop)};
_.S.retrieveTextBeforeRange=function(g){var r=g.startContainer;return r&&r.nodeType===Node.TEXT_NODE?r.textContent.substr(0,g.startOffset):""};
gd.prototype.onKeyPress=gd.prototype.onKeyPress;gd.prototype.onKeyUp=gd.prototype.onKeyUp;gd.prototype.onKeyDown=gd.prototype.onKeyDown;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],gd.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Array)],gd.prototype,"suggestions",void 0);_.m([_.K(),_.L("design:type",_.PY)],gd.prototype,"emojiManager",void 0);_.m([_.K(),_.L("design:type",Number)],gd.prototype,"verticalSuggestionsOffset",void 0);
_.m([_.zb("#dropdown"),_.L("design:type",Object)],gd.prototype,"dropdown",void 0);_.m([_.zb("#dropdown-content"),_.L("design:type",HTMLDivElement)],gd.prototype,"dropdownContent",void 0);_.m([_.ob("keydown"),_.L("design:type",Function),_.L("design:paramtypes",[KeyboardEvent]),_.L("design:returntype")],gd.prototype,"onKeyDown",null);_.m([_.ob("keyup"),_.L("design:type",Function),_.L("design:paramtypes",[KeyboardEvent,Range]),_.L("design:returntype")],gd.prototype,"onKeyUp",null);
_.m([_.ob("keypress"),_.L("design:type",Function),_.L("design:paramtypes",[KeyboardEvent]),_.L("design:returntype")],gd.prototype,"onKeyPress",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-emoji-input"})],gd);
_.I(gd,"ytd-emoji-input",function(){if(NaD!==void 0)return NaD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return NaD=g},{mode:2});var cc6;var rd=function(){var g=_.a.apply(this,arguments)||this;g.hasMaxOptions=!1;return g};
_.f(rd,_.a);_.S=rd.prototype;_.S.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.S.setPrefilledChoices=function(g){var r=this;this.set("pollOptions",[]);var E;for(E=0;E<Math.min(g.length,this.data.maxPollOptions);E++)this.push("pollOptions",g[E].substring(0,this.data.maxPollOptionChars));for(;E<this.data.minPollOptions;E++)this.push("pollOptions","");this.hasMaxOptions=E>=this.data.maxPollOptions;_.Lk(this,function(){for(var B=r.pollOptions,w=_.S3(r.hostElement).querySelectorAll(".poll-option-input"),O=0;O<w.length;O++)w[O].value=B[O]})};
_.S.focusChanged=function(){_.ua(this.hostElement)};
_.S.onInput=function(){var g=this;_.Ib(this,"onInput",function(){g.isValid()?_.Sh(g.hostElement,"yt-commentbox-post-enable"):_.Sh(g.hostElement,"yt-commentbox-post-disable")},300)};
_.S.setPollOptions=function(){var g=[],r,E=((r=this.data)==null?0:r.minPollOptions)?this.data.minPollOptions:0;for(r=0;r<E;r++)g.push("");return g};
_.S.addPollOption=function(){var g=this;_.Sh(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.F6.addLowPriorityJob(function(){var r;(r=_.S3(g.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||r.focus()})};
_.S.onRemovePollOption=function(g){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.Sh(this.hostElement,"yt-poll-attachment-dismiss")):(g=this.repeat.indexForElement(g.target.parentNode),g!==null&&(this.splice("pollOptions",g,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.Sh(this.hostElement,"yt-commentbox-post-enable"))))};
_.S.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.S.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var g=0,r=this.pollOptions.length;g<r;g++)if(this.pollOptions[g].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.S.getPollOptions=function(){return this.pollOptions};
_.S.setPollOptionsFromInputs=function(){for(var g=_.S3(this.hostElement).querySelectorAll(".poll-option-input"),r=0;r<g.length;r++)this.pollOptions[r]=g[r].value.trim()};
_.S.clearPollOptions=function(){var g=_.S3(this.hostElement).querySelectorAll(".poll-option-input");g=_.U(g);for(var r=g.next();!r.done;r=g.next())r.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.S.getSimpleString=function(g){return _.Vp(g)};
_.S.updateValueFromBinding=function(g){if(g.target&&this.pollOptions){var r=Array.from(_.S3(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(g.target);if(r>=0){var E;this.pollOptions[r]=(E=g.detail.value)!=null?E:"";this.notifyPath("pollOptions."+r)}}};
rd.prototype.dataChanged=rd.prototype.dataChanged;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],rd.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],rd.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Array)],rd.prototype,"pollOptions",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],rd.prototype,"hasMaxOptions",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],rd.prototype,"enableCreationBox",void 0);
_.m([_.zb("#repeat"),_.L("design:type",JC)],rd.prototype,"repeat",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],rd.prototype,"dataChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-poll-attachment"})],rd);
_.I(rd,"ytd-poll-attachment",function(){if(cc6!==void 0)return cc6;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return cc6=g},{mode:2});var i1D;var LNm;var VD4;var hVm;var EH=function(){return _.a.apply(this,arguments)||this};
_.f(EH,_.a);_.hx.Object.defineProperties(EH.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],EH.prototype,"rendererBehaviors",void 0);_.m([_.K(),_.L("design:type",Object)],EH.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],EH.prototype,"focused",void 0);_.m([_.K({reflectToAttribute:!0}),_.W("focused"),_.L("design:type",Object),_.L("design:paramtypes",[])],EH.prototype,"ariaSelected",null);_.m([_.e3({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],EH);
_.I(EH,"yt-user-mention-suggestion-renderer",function(){if(hVm===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;VD4===void 0&&(VD4=document.createElement("template"));var B=VD4;E.call(r,B.content.cloneNode(!0),g.content.firstChild);hVm=g}g=hVm;return g},{mode:2});var Z1T;var ycb;var BO=function(){var g=_.a.apply(this,arguments)||this;g.focusedSuggestionIndex=-1;return g};
_.f(BO,_.a);_.S=BO.prototype;_.S.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.S.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.S.setFocusedSuggestionIndex=function(g){!this.data||!this.data.suggestions||g<0||g>=this.data.suggestions.length||(this.focusedSuggestionIndex=g,g=this.getSuggestionId(g),this._setFocusedSuggestionId(g))};
_.S.advanceSuggestion=function(g){this.focusedSuggestionIndex===-1||g!==-1&&g!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+g),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.S.ensureSuggestionVisible=function(g){g=this.getSuggestionId(g);g=_.S3(this.hostElement).querySelector("[id="+g+"]");g!=null&&(g.offsetTop<this.hostElement.scrollTop?g.scrollIntoView(!0):g.offsetTop+g.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&g.scrollIntoView(!1))};
_.S.getSuggestionId=function(g){return"user-mention-suggestion-"+g};
_.S.onSuggestionTap=function(g){var r=_.n(g.model.item,Y7z);this.ytRendererBehavior.logExplicitClick(r);_.Sh(this.hostElement,"yt-user-mention-suggestion-selected",{data:r,index:g.model.index})};
_.S.onSuggestionMouseMove=function(g){g.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(g.model.index)};
_.S.isSuggestionFocused=function(g,r){return g===r};
_.S.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.S.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.x8("focused-suggestion-id-changed",this.focusedSuggestionId))};
BO.prototype.focusedSuggestionIdChangedForBinding=BO.prototype.focusedSuggestionIdChangedForBinding;BO.prototype.onDomChange=BO.prototype.onDomChange;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],BO.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],BO.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],BO.prototype,"focusedSuggestionIndex",void 0);_.m([_.K({readOnly:!0}),_.L("design:type",String)],BO.prototype,"focusedSuggestionId",void 0);
_.m([_.ob("dom-change"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],BO.prototype,"onDomChange",null);_.m([_.Gb("focusedSuggestionId"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],BO.prototype,"focusedSuggestionIdChangedForBinding",null);_.m([_.e3({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],BO);
_.I(BO,"yt-user-mention-suggestions-dropdown",function(){if(ycb===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;Z1T===void 0&&(Z1T=document.createElement("template"));var B=Z1T;E.call(r,B.content.cloneNode(!0),g.content.firstChild);ycb=g}g=ycb;return g},{mode:2});var wd=function(){var g=_.a.apply(this,arguments)||this;g.suggestionsResponse=null;g.activeMention=null;g.selectionChangeListener=g.onSelectionChange.bind(g);g.handlesEnabled=_.Y("enable_handles_in_mention_suggest_posts");g.handlesInMentionSuggestionsEnabled=_.Y("handles_in_mention_suggest_posts");g.zeroPrefixMentionSuggestionEnabled=_.Y("enable_zero_prefix_mention_suggestion_web");g.pendingQuery=null;g.flowNonce=null;return g};
_.f(wd,_.a);_.S=wd.prototype;_.S.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.S.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.S.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.S.hasSuggestions=function(g){return!!(g&&g.suggestions&&g.suggestions.length>0)};
_.S.onInput=function(){var g=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var r=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),E=this.activeMention.JSC$9384_getText().slice(-1)===" ",B=this.activeMention.JSC$9384_getText().slice(-2,-1)===" ",w="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9384_getText().slice(-2,-1))>=
0;w=this.zeroPrefixMentionSuggestionEnabled&&w;if(this.activeMention.isCollapsed()||(r||B||w)&&E)this.cancelActiveMention();else{var O=this.activeMention.JSC$9384_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.Ib(this,"requestSuggestions",function(){g.requestSuggestions(O)},100)}}}};
_.S.onServiceRequestSent=function(g){g.stopPropagation()};
_.S.onServiceRequestCompleted=function(g){g.stopPropagation();g=g.detail.data;g.query&&(!this.pendingQuery||this.pendingQuery!==g.query)||!this.zeroPrefixMentionSuggestionEnabled&&g.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=g,this.hasSuggestions(g)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.S.onServiceRequestError=function(g){g.stopPropagation()};
_.S.onUserMentionSuggestionSelected=function(g){this.selectSuggestion(g.detail.data,g.detail.index)};
_.S.onSelectionChange=function(){if(this.activeMention){var g=_.kj(),r=this.activeMention.JSC$9384_containsRange(g);g=g&&this.containsHelper(this.dropdown,g.getContainer());r||g||this.cancelActiveMention()}};
_.S.containsHelper=function(g,r){var E;if(((E=window.ShadyDOM)==null?void 0:E.noPatch)===!0)return g.contains(r);for(;r;){if(r===g)return!0;r=r instanceof ShadowRoot?r.host:r.parentNode}return!1};
_.S.maybeStartSuggest=function(){var g=_.kj();if(g&&g.isCollapsed()){var r=g.JSC$9384_getStartNode(),E=g.JSC$9384_getStartOffset();if(r instanceof Text&&!(E<1)){var B=r.textContent;!(B=B&&B.charAt(E-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(B)<0||(this.activeMention=_.J2(r,E-1,g.JSC$9384_getEndNode(),g.JSC$9384_getEndOffset()),this.flowNonce=AF(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.S.updateActiveMention=function(){if(this.activeMention){var g=_.kj();g&&g.isCollapsed()&&(this.activeMention=_.J2(this.activeMention.JSC$9384_getStartNode(),this.activeMention.JSC$9384_getStartOffset(),g.JSC$9384_getEndNode(),g.JSC$9384_getEndOffset()))}};
_.S.requestSuggestions=function(g){if(this.activeMention){var r={suggestions_query:g};this.pendingQuery=g;_.q2(this.hostElement,[this.suggestionsEndpoint,r])}};
_.S.cancelActiveMention=function(){this.activeMention&&this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STOPPED");this.suggestionsResponse=this.pendingQuery=this.activeMention=null;this.dropdown.clearFocusedSuggestion()};
_.S.focusPreviousSuggestion=function(g){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),g.preventDefault())};
_.S.focusNextSuggestion=function(g){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),g.preventDefault())};
_.S.selectFocusedSuggestion=function(g){if(this.hasSuggestions(this.suggestionsResponse)){var r=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.n(r,Y7z)&&(this.selectSuggestion(_.n(r,Y7z),this.dropdown.focusedSuggestionIndex),g.preventDefault())}};
_.S.selectSuggestion=function(g,r){if(g){var E=this.activeMention;if(E){var B=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&g.handle?_.b6(B,"\u00a0\u2068@"+g.handle+"\u2069\u00a0"):this.handlesEnabled?_.b6(B,"\u00a0"+g.displayName+"\u00a0"):_.b6(B,"\u00a0@"+g.displayName+"\u00a0");Aa(B,"/channel/"+g.channelId);B.classList.add("yt-formatted-string","yt-simple-endpoint");B.setAttribute("spellcheck","false");E.isCollapsed()||E.JSC$9384_removeContents();E.insertNode(B,!0);g=document.createTextNode(" ");
B.parentNode.insertBefore(g,B.nextSibling);window.getSelection().collapse(g,1);r={suggestionSelected:{suggestionIndex:r}};if(this.zeroPrefixMentionSuggestionEnabled){var w;r.suggestionSelected.isZeroPrefix=((w=this.suggestionsResponse)==null?void 0:w.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",r);this.cancelActiveMention();_.Sh(this.hostElement,"yt-mention-inserted")}}};
_.S.getPositionTarget=function(g){return g&&g.getBrowserRangeObject()};
_.S.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.S.onFocusedSuggestionIdChanged=function(g){var r=_.jhP(this.hostElement)[0];r&&(g.detail.value?r.setAttribute("aria-activedescendant",g.detail.value):r.removeAttribute("aria-activedescendant"))};
_.S.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.S.logGELEvent=function(g,r){g={eventType:g,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};r&&(g=Object.assign(g,r));_.Jn("userMentionAutoCompleteBoxEvent",g)};
wd.prototype.onDomChange=wd.prototype.onDomChange;wd.prototype.onUserMentionSuggestionSelected=wd.prototype.onUserMentionSuggestionSelected;wd.prototype.onServiceRequestError=wd.prototype.onServiceRequestError;wd.prototype.onServiceRequestCompleted=wd.prototype.onServiceRequestCompleted;wd.prototype.onServiceRequestSent=wd.prototype.onServiceRequestSent;wd.prototype.onInput=wd.prototype.onInput;_.m([_.P(_.QV),_.L("design:type",Object)],wd.prototype,"ironA11yKeysBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],wd.prototype,"suggestionsEndpoint",void 0);_.m([_.K(),_.L("design:type",Object)],wd.prototype,"suggestionsResponse",void 0);_.m([_.K(),_.L("design:type",Object)],wd.prototype,"activeMention",void 0);_.m([_.zb("#dropdown"),_.L("design:type",Object)],wd.prototype,"dropdown",void 0);_.m([_.zb("#iron-dropdown"),_.L("design:type",Object)],wd.prototype,"ironDropdown",void 0);
_.m([_.ob("input"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],wd.prototype,"onInput",null);_.m([_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],wd.prototype,"onServiceRequestSent",null);_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],wd.prototype,"onServiceRequestCompleted",null);
_.m([_.ob("yt-service-request-error"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],wd.prototype,"onServiceRequestError",null);_.m([_.ob("yt-user-mention-suggestion-selected"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],wd.prototype,"onUserMentionSuggestionSelected",null);
_.m([_.ob("dom-change"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],wd.prototype,"onDomChange",null);_.m([_.e3({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],wd);
_.I(wd,"yt-user-mention-autosuggest-input",function(){if(LNm===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;i1D===void 0&&(i1D=document.createElement("template"));var B=i1D;E.call(r,B.content.cloneNode(!0),g.content.firstChild);LNm=g}g=LNm;return g},{mode:2});var S0=null;
_.ba({is:"ytd-commentbox",_template:function(){if(X7n!==void 0)return X7n;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return X7n=g},
behaviors:[_.w4l.YtHostElementBehavior,_.QV,_.gN.YtActionHandlerBehavior,_.KB.YtComponentBehavior,_.TR.YtRendererstamperBehavior,_.IAZ.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(g,r){return _.u1(g.entities,"aadcGuidelinesStateEntityPayload",r)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(g,r){return _.u1(g.entities,"commentboxStateEntity",r)},
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 _.et}},
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:_.Y("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.Y("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",_.Do(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(g){this.fire(g?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(g){this.set("submitButtonDisabled",void 0);this.clear();g&&this.computeIsEmojiButtonDisplayed_(g)&&(g=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&g.updateEmojiCategories()},
observePrefilledImage_:function(g,r,E){this.isValidPrefilledImage_(g,r,E)&&(this.prefilledAttachment_="image",this.prefilledImageData_=r,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(g,r){this.isValidPrefilledVideo_(g,r)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(g){g&&g.pollData&&g.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(g.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.SB();this.focus()},
detached:function(){document.removeEventListener("tap",_.Do(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(g){g=g.detail;g=g.isCustomEmoji?g.shortcuts[0]:g.emojiId;var r=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(r,g);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var g=_.kj();if(g){g=g.getBrowserRangeObject();for(var r=g.commonAncestorContainer;r;){if(r===this.getEditableTextArea_())return g;r=r.parentNode}}g=this.getEditableTextArea_();g=_.bz(g,g.childNodes.length);g.select();return g.getBrowserRangeObject()},
insertTextWithEmojis_:function(g,r,E){(r=this.emojiManager.createDocumentFragment(r,!0,!1,E===void 0?!0:E))&&r.childNodes.length!==0&&(g.collapsed||g.deleteContents(),E=r.lastChild,g.insertNode(r),_.iuD(E).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var g=_.kj();if(g){var r=g.JSC$9384_getStartNode(),E=g.JSC$9384_getEndNode();if(t4P(r)&&t4P(E)){var B=g.JSC$9384_getStartOffset(),w;if(_.qE&&r.nodeType===Node.ELEMENT_NODE&&(w=_.LA6(r)))_.bz(w,0).select();else{w=Gu(r)?r:_.CN(r,Gu);var O=Gu(E)?E:_.CN(E,Gu);if(w||O)if(g.isCollapsed()){if(r.nodeType===Node.TEXT_NODE){g=!0;B===r.length&&(g=!1);if(S0==="end"||S0==="right")g=!1;r=r.parentNode;g=[].concat(_.jW(r.parentNode.childNodes)).indexOf(r)+(g?0:1);_.bz(r.parentNode,g).select()}}else w?
w.previousSibling&&w.previousSibling.length>0?_.J2(E,g.JSC$9384_getEndOffset(),w.previousSibling,w.previousSibling.length-1).select():(r=document.createTextNode("\u200b"),w.parentNode.insertBefore(r,w),_.J2(E,g.JSC$9384_getEndOffset(),r,0).select()):O&&(O.nextSibling&&O.nextSibling.length>0?_.J2(r,g.JSC$9384_getStartOffset(),O.nextSibling,1).select():(E=document.createTextNode("\u200b"),O.parentNode.insertBefore(E,O.nextSibling),_.J2(r,g.JSC$9384_getStartOffset(),E,E.length).select()));S0=null}}else S0=
null}else S0=null},
leftKeyPressed_:function(){S0="left"},
rightKeyPressed_:function(){S0="right"},
endKeyPressed_:function(){S0="end"},
maybeDeleteChip_:function(){var g=xKQ(!0);if(g){var r=_.kj(),E=r.JSC$9384_getStartNode();r=r.JSC$9384_getStartOffset();_.sT(E,r,g,g.childNodes.length).select()}},
maybeBackspaceChip_:function(){var g=xKQ(!1);if(g){var r=_.kj(),E=r.JSC$9384_getStartNode();r=r.JSC$9384_getStartOffset();_.sT(E,r,g,0).select()}},
maybeBackspaceChipWordMode_:function(g){var r=_.kj();if(r.isCollapsed()){var E=r.JSC$9384_getStartNode();r=r.JSC$9384_getStartOffset();var B=a5l(E,r,!0);B&&(_.sT(E,r,B,0).select(),document.execCommand("delete"),g.preventDefault(),g.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(g){var r=_.kj();if(r.isCollapsed()){var E=r.JSC$9384_getStartNode();r=r.JSC$9384_getStartOffset();var B=a5l(E,r,!1);B&&(_.sT(E,r,B,B.childNodes.length).select(),document.execCommand("delete"),g.preventDefault(),g.stopImmediatePropagation())}},
onTap_:function(g){if(!g.defaultPrevented&&(g.currentTarget.tagName==="YTD-COMMENTBOX"&&Gu(g.target)&&g.preventDefault(),this.isEmojiPickerDisplayed)){var r=this.$$("#emojis"),E=this.$$("#emoji-button"),B=this.getEditableTextArea_();if((g=g.path?g.path:g.composedPath&&g.composedPath())&&!g.includes(r)&&!g.includes(B)&&!g.includes(E))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(g,r,E){return g==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&r!==void 0&&r.encryptedBlobId!==null&&r.sourceExternalVideoId!==null&&E!==void 0&&E.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(g,r){return g==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!r&&!!r.videoRenderer&&!!r.videoRenderer.videoId},
isValidPrefilledAttachment_:function(g,r,E){return this.isValidPrefilledImage_(g,r,E)||this.isValidPrefilledVideo_(g,E)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.Y("enable_multi_image_post_creation")){var g=this.$$("ytd-backstage-multi-image-select-renderer");g&&g.hasImages()&&g.cancel()}else(g=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&g.cancel();(g=this.$["poll-attachment"])&&this.hasPoll_&&g.clearPollOptions();(g=this.$["image-poll-attachment"])&&this.hasImagePoll_&&g.resetPollOptions();(g=this.$["quiz-attachment"])&&this.hasQuiz_&&g.resetQuizOptions();
(g=this.$["video-link-attachment"])&&this.hasVideo_&&g.cancel();(g=this.$["access-restrictions-selector"].firstElementChild)&&g.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 _.S3(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.S3(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(g,r){g=eyl(g,this.emojiManager,r).cloneNode(!0);for(r=g.firstChild;r;)if(r.nodeType!==1)r=r.nextSibling;else switch(r.tagName){case "BR":var E=_.nV();_.gbU(E,r);r=E.nextSibling;break;case "DIV":(E=r.lastChild)&&r.nextSibling&&_.j5(_.nV(),E);r.previousSibling&&(r.previousSibling.nodeType===1||r.previousSibling.nodeType===3&&!r.previousSibling.textContent.endsWith("\n"))&&_.$4(_.nV(),r);E&&E.nodeName==="BR"&&_.p5(E);E=r;r.hasChildNodes()?(r=r.firstChild,
_.rD6(E)):(r=r.nextSibling,_.p5(E));break;default:r=r.nextSibling}return XRA(g)},
onAddImageError_:function(g){g.stopPropagation();this.errorMessage_=_.Lf(g.detail)},
setTextAreaValue_:function(g){g||(g="");var r=this.getEditableFormattedString_();r.text="";this.getEditableTextArea_().innerText="";typeof g==="string"&&(g={runs:[{text:g}]});r.text=g},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();S0=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var g=this.getEditableTextArea_();g&&(_.bz(g,g.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Ca("HTML_DIR")==="rtl"){var g=this.getEditableTextArea_(),r=this.getTextAreaValue()!==""?"auto":"rtl";g.setAttribute("dir",r)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var g;return lfc((g=this.$["quiz-attachment"])==null?void 0:g.getExplanationText())||lfc(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var g=null;if(this.isEmojiButtonDisplayed){var r=this.getInputRange_();r&&(g=this.emojiInput.retrieveTextBeforeRange(r))}this.insertText_(g,!0);this.updateCharCount_();this.setSubmitButton_();g=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=g.scrollHeight>g.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var g=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:g})},
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(g){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(g)},
onPasteEmoji_:function(g){g.preventDefault();g.stopImmediatePropagation();g=g.clipboardData.getData("text/plain");this.insertText_(g,!1,!1)},
insertText_:function(g,r,E){r=r===void 0?!1:r;E=E===void 0?!0:E;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&g){var B=this.getInputRange_().cloneRange();this.emojiManager&&B&&(r&&this.emojiInput.offsetStartOfRangeBy(B,g.length),this.insertTextWithEmojis_(B,g,E),FPJ(this.getEditableTextArea_().lastChild)||(B=this.getInputRange_().cloneRange()),B&&(this.emojiInput.updateSuggestions(B,g),this.updateSuggestionOffset_(B)))}},
setSubmitButton_:function(){if(this.data){var g=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",r=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(g||r){var E=this.getTextAreaValue().trim();r=E===this.previousText_;E=!E||this.aboveCharLimit_;g&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(E=this.aboveCharLimit_);this.submitButtonDisabled=
r||E||!this.getTextLength();g&&_.Y("enable_post_scheduling")&&(this.submitButtonDisabled=r&&!this.scheduledPublishTimeSec_||E)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.Vp,computeCreationBoxClass_:function(g){return g?"focused":"not-focused"},
computeFooterMessageClass_:function(g,r){return r?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(g,r){return r?r:g},
computeFooterMessageHidden_:function(g,r){return!r&&!g},
computePlaceholderText_:function(g,r,E){return(E==="video"||E==="image")&&(g==null?0:g.prefilledPlaceholderText)?g==null?void 0:g.prefilledPlaceholderText:r==="poll"||r==="image-poll"?g==null?void 0:g.pollPostPlaceholderText:r==="quiz"?g==null?void 0:g.quizPostPlaceholderText:r==="image"?g==null?void 0:g.imagePostPlaceholderText:g==null?void 0:g.placeholderText},
computeHideAttachmentButtons_:function(g,r,E,B){return g===void 0?!1:B&&this.getSimpleString(B)===this.getSimpleString(g.rateLimitErrorMessage)?!0:r!=="none"||E!=="none"||!g.videoLinkButton&&!g.pollButton&&!g.imagePollButton&&!g.quizButton&&!g.imageButton},
computeHideDismissableAttachment_:function(g){return g!=="image"&&g!=="video"},
computeHasVideo_:function(g){return g==="video"},
computeHasImage_:function(g){return g==="image"},
computeHasPoll_:function(g){return g==="poll"},
computeHasImagePoll_:function(g){return g==="image-poll"},
computeHasQuiz_:function(g){return g==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(g){return g&&g.backstageAttachment?g.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!g.backstageAttachment.quizRenderer&&!g.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(g){if(this.isValidPrefilledAttachment_(g.purpose,g.prefilledImageData,g.backstageAttachment))return g.backstageAttachment},
computeEditAttachment_:function(g){if(this.computePrefilledContent_(g)===void 0)return g.backstageAttachment},
computeAuthorThumbnailDimension_:function(g,r){return g&&!r?24:40},
computeImageUploadEndpoint_:function(g){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",g)},
computeRateLimitErrorCommands_:function(g){var r,E;return g==null?void 0:(r=g.advancedTierFeatures)==null?void 0:(E=r.rateLimit)==null?void 0:E.rateLimitCommands},
computeIsBackstageComment_:function(g){return!(!g||g!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(g){return this.get("submitButton.buttonRenderer.serviceEndpoint",g)||this.get("replyButton.buttonRenderer.serviceEndpoint",g)||this.get("postButton.buttonRenderer.serviceEndpoint",g)},
computeSubmitButtonOverride:function(){if(_.Y("web_modern_buttons")){var g,r;return{segmentedPosition:this.dropdownSchedulePanel_||!((g=this.data)==null?0:(r=g.postOptionsMenu)==null?0:r.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.Y("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(g,r){g=this.get("submitButton.buttonRenderer",g)||this.get("replyButton.buttonRenderer",g)||this.get("postButton.buttonRenderer",g);r&&(g=r);g&&(g=Object.assign({},g),g.serviceEndpoint=void 0,g.isDisabled=this.submitButtonDisabled);return g},
computeHasExternalLinksAccess_:function(g){if(_.Y("enable_rfa_external_links")){var r,E,B;return(B=g==null?void 0:(r=g.advancedTierFeatures)==null?void 0:(E=r.externalLinks)==null?void 0:E.allowExternalLinks)!=null?B:!0}return!0},
computeIsEmojiButtonDisplayed_:function(g){return g.emojiButton&&g.emojiPicker&&g.emojiPicker.emojiPickerRenderer&&g.emojiPicker.emojiPickerRenderer.categories?g.emojiPicker.emojiPickerRenderer.categories.find(function(r){return r.emojiPickerCategoryRenderer?r.emojiPickerCategoryRenderer.emojiIds&&r.emojiPickerCategoryRenderer.emojiIds.length>0:r.emojiPickerUpsellCategoryRenderer?r.emojiPickerUpsellCategoryRenderer.emojis&&r.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(g){return g.charLimit?g.charLimit:null},
computeDropdownSchedulingPanel_:function(g,r){if(g==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&r)return r},
computeInlineSchedulingPanel_:function(g,r){if(g==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&r)return r},
computeHideAuthorThumbnail_:function(g,r){return g||this.computeUseIdentityChip_(r)},
computeHideIdentityChipRenderer_:function(g,r){return g||!this.computeUseIdentityChip_(r)},
computeUseIdentityChip_:function(g){return!!g&&!!g.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(g){var r,E,B,w;(g==null?0:(r=g.detail)==null?0:(E=r.endpoint)==null?0:E.ypcGetOffersEndpoint)||(g==null?0:(B=g.detail)==null?0:(w=B.endpoint)==null?0:w.ypcOffersEndpoint)?(g.stopPropagation(),_.q2(this,[g.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",g)&&(g.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(g){this.addedAttachment="video";this.selectedVideoId_=g.detail.videoId},
commentboxStateEntityChanged_:function(g){var r=this;(g==null?void 0:g.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(g==null?void 0:g.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){r.focus()})},
onYtServiceRequestSent_:function(g,r){if(r.actions)for(g=_.U(r.actions),r=g.next();!r.done;r=g.next())r.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(g){this.isLoading=!1;var r=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",g),E,B,w,O=g==null?void 0:(E=g.detail)==null?void 0:(B=E.data)==null?void 0:(w=B.actionResult)==null?void 0:w.commentboxStateEntityKey;if(r)this.errorMessage_=r;else if(O){var M;this.dismissData_=g==null?void 0:(M=g.detail)==null?void 0:M.data;this.commentboxStateKey_=O}else{this.clear();var u;this.fire("yt-commentbox-dismiss",g==null?void 0:(u=g.detail)==
null?void 0:u.data)}},
onYtServiceRequestError_:function(g){g.stopPropagation();this.isLoading=!1;var r,E;if(((r=this.data)==null?void 0:r.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((E=this.data)==null?void 0:E.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(r=this.get("detail.error.args",g)||[],r.length>1&&r[1].message){this.handlePostsServiceRequestError_(r[1].message);return}(g=this.get("detail.error.message",g))?this.errorMessage_=this.data.errorMessage||_.Lf(g):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(g){if(_.Y("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var r=_.U(this.rateLimitErrorCommands),E=r.next();!E.done;E=r.next())if(E=E.value,E.errorLabel===g){_.Qy(E.command,this.hostElement);return}this.errorMessage_=_.Lf(g)},
submitIfNotBackstagePost_:function(g){if(!this.isBackstagePost)this.onSubmit_(g)},
onSubmit_:function(g){var r=this,E,B,w,O,M,u,l,Q,z,k,H,R,A,J,e;return _.q(function(C){switch(C.nextAddress){case 1:g.stopPropagation();if(!r.serviceEndpoint||!r.isValidInput_())return C.return();if(r.shouldShowPostAadcNotice_())return r.showPostAadcNotice_(),C.return();if(r.shouldShowCommentAadcNotice_())return r.showCommentAadcNotice_(),C.return();if(!(r.$$("ytd-backstage-multi-image-select-renderer")&&r.hasImage_&&_.Y("enable_multi_image_post_creation"))){C.jumpTo(2);break}E=r.$$("ytd-backstage-multi-image-select-renderer");
return _.D(C,E.getAllUploadStatuses(),3);case 3:B=C.yieldResult;if(!B)return C.return();w=_.U(B);for(O=w.next();!O.done;O=w.next())if(M=O.value,M.encryptedBlobId===void 0)return r.isLoading=!1,l=u=void 0,r.errorMessage_=(l=(u=r.imageUploadEndpoint_)==null?void 0:u.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?l:null,C.return();return C.return(r.submitForm_(void 0,void 0,void 0,void 0,E.images,r.taggedVideoId_));case 2:if(!r.hasImagePoll_||!r.$["image-poll-attachment"]){C.jumpTo(4);
break}return _.D(C,r.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:Q=C.yieldResult;if(!Q)return C.return();z=_.U(Q);for(k=z.next();!k.done;k=z.next())if(H=k.value,!H.encryptedBlobId)return r.isLoading=!1,R=void 0,r.errorMessage_=(R=r.data.errorMessage)!=null?R:null,C.return();case 4:J=(A=r.$$("ytd-backstage-image-select-renderer"))&&A.uploadPromise(),e=r.getSharedPostId_(),J?J.then(function(){r.submitForm_.apply(r,_.jW(_.fI.apply(0,arguments)))}).catch(function(X){r.isLoading=!1;
r.errorMessage_=_.Lf(X.message)}):r.selectedVideoId_?r.submitForm_(void 0,r.selectedVideoId_):r.prefilledAttachment_==="image"?r.submitForm_(r.prefilledImageData_.encryptedBlobId,void 0,void 0,r.prefilledImageData_.sourceExternalVideoId,void 0,r.taggedVideoId_):r.prefilledAttachment_==="video"?r.submitForm_(void 0,r.data.backstageAttachment.videoRenderer.videoId):e?r.submitForm_(void 0,void 0,e):r.taggedVideoId_!==void 0?r.submitForm_(void 0,void 0,void 0,void 0,void 0,r.taggedVideoId_):r.submitForm_(),
_.Q3(C)}})},
openSchedulingPanel:function(g){g&&g.scheduleButton&&g.scheduleButton.buttonRenderer&&(this.scheduleButton_=g.scheduleButton.buttonRenderer);g&&g.dateTimePicker&&this.set("data.schedulingDateTimePicker",g.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(g){g.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(g){g.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(g){g.stopPropagation();g.detail.alertMessage&&(this.alertMessage_=g.detail.alertMessage)},
onImageSelected_:function(g){g.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(g){g.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(g){g.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(g.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(g){g.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(g){var r=this.$["video-link-attachment"];r&&r.onLaunchVideoPicker(g)},
onAttachmentDismiss_:function(g){g.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"&&_.Y("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.Y("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 g;if(this.addedAttachment==="image-poll"&&((g=this.$["image-poll-attachment"])==null||!g.isValid()))return!1;var r;if(this.addedAttachment==="quiz"&&((r=this.$["quiz-attachment"])==null||!r.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;g=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(g=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")g=!0;return g||!!this.getTextAreaValue().trim()},
submitForm_:function(g,r,E,B,w,O){var M=this.getTextAreaValue().trim(),u={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&M===this.previousText_&&(M=void 0);M!==void 0&&(u.comment_text=M);this.isLoading=!0;O!=void 0&&(u.tagged_video_id=O);g?(u.image_blob_id=g,this.imagePreviewCoordinates_&&(u.image_preview_coordinates=this.imagePreviewCoordinates_)):r?u.attached_video_id=r:E?u.shared_post_id=E:w&&w.length>0&&(u.images_data=w.map(function(l){return{encryptedBlobId:l.encryptedBlobId,
previewCoordinates:l.previewCoordinates}}));
B&&(u.source_video_id=B);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(u.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(u.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(u.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.Y("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(u.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.Y("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(u.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.q2(this,[this.serviceEndpoint,u])},
onIsInputFocusChanged_:function(g,r){g?this.fire("yt-autonav-pause-focus"):r!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(g){var r=this.getEditableTextArea_();[].concat(_.jW(g.dataTransfer.items)).forEach(function(E){E.kind==="string"&&E.type.match("^text/plain")&&E.getAsString(function(B){r.appendChild(document.createTextNode(B))})});
g.preventDefault()},
preventDefault_:function(g){g.preventDefault()},
onSuggestionInsert_:function(g){this.insertTextWithEmojis_(g.detail.range,g.detail.text)},
onEmojiSuggestionClick_:function(g){this.emojiInput.insertSuggestion(g.detail)},
computeSubmitButtonClass_:function(g,r){return!r||g?"":"with-options"},
updateSuggestionOffset_:function(g){if(this.emojiInput&&_.S3(this.emojiInput).querySelector("#dropdown")){var r=this.getEditableTextArea_().getBoundingClientRect().bottom,E=g.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(r-E)+5;r=this.getEditableTextArea_().getBoundingClientRect().left;g=g.getBoundingClientRect().left-r;_.S3(this.emojiInput).querySelector("#dropdown").style.marginLeft=g+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(g){if(_.Y("enable_post_scheduling")&&this.data&&this.data.purpose){g=g.detail;if(Math.floor(Date.now()/1E3)>=g)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var r=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(r)||r!==g?this.scheduledPublishTimeSec_=g:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=g;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var g=["image-button","image-poll-button","poll-button"];_.Y("enable_quiz_creation")&&g.push("quiz-button");_.Y("auto_convert_posts_video_tag")||g.push("video-link-button");return g},
getButtonRenderer:function(g,r){if(g)switch(r){case "video-link-button":var E;return((E=g.videoLinkButton)==null?void 0:E.buttonRenderer)||void 0;case "image-button":var B;return((B=g.imageButton)==null?void 0:B.buttonRenderer)||void 0;case "poll-button":var w;return((w=g.pollButton)==null?void 0:w.buttonRenderer)||void 0;case "image-poll-button":var O;return((O=g.imagePollButton)==null?void 0:O.buttonRenderer)||void 0;case "quiz-button":var M;return((M=g.quizButton)==null?void 0:M.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var g;return(g=this.data)==null||!g.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var g,r;return!((g=this.data)==null||!g.openAadcDialog)&&!((r=this.aadcGuidelinesState_)==null||!r.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.Ca("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var g;((g=this.data)==null?0:g.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.xR("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(g){g.clickTrackingParams&&_.pW().clickCommand(g);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.OS(this,"yt-close-popup-action")},
onHideIdentityChip:function(g){var r;this.set("data.placeholderText",(r=g.hideIdentityChipAction)==null?void 0:r.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var OH=function(){var g=_.a.apply(this,arguments)||this;g.isOpen=!1;g.modern=_.Y("web_modern_buttons");g.roundedContainer=!0;g.dropdownButtonOverride=_.Y("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;g.inPopupContainer=!1;g.isCommentboxLoading=!1;var r=["image-button","image-poll-button","poll-button"];_.Y("enable_quiz_creation")&&r.push("quiz-button");_.Y("auto_convert_posts_video_tag")||r.push("video-link-button");g.attachmentButtonIds=r;g.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 g};
_.f(OH,_.a);_.S=OH.prototype;_.S.computeButtonOverride=function(){var g;return((g=this.data)==null?0:g.postOptionsMenu)&&_.Y("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.S.configureRendererStamper=function(){var g={"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]]"}}}}};_.Y("auto_convert_posts_video_tag")||(g["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return g};
_.S.ready=function(){var g=this,r=_.S3(this.hostElement).querySelector("#placeholder-area"),E=function(B){g.onOpen(B)};
r.addEventListener("tap",E);r.addEventListener("keypress",E)};
_.S.showButtonEduTooltip=function(){var g,r,E,B,w,O,M;if(_.Y("enable_quiz_creation")&&((g=this.data)==null?0:(r=g.quizButton)==null?0:(E=r.buttonRenderer)==null?0:(B=E.hint)==null?0:(w=B.hintRenderer)==null?0:(O=w.content)==null?0:(M=O.bubbleHintRenderer)==null?0:M.text)&&(_.yK.getInstance(),g=va(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(g==null?void 0:
g.length)>0)){this.ytComponentBehavior.resolveCommand(g[0],{form:{element:this.quizButton}});return}var u;if((u=this.data)==null?0:u.imagePollButtonTooltip)if(_.yK.getInstance(),u=va(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(u==null?void 0:u.length)>0){this.ytComponentBehavior.resolveCommand(u[0],{form:{element:this.imagePollButton}});return}var l;_.Y("enable_multi_image_post_creation")&&
((l=this.data)==null?0:l.multiImageButtonTooltip)&&(_.yK.getInstance(),l=va(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(l==null?void 0:l.length)>0&&this.ytComponentBehavior.resolveCommand(l[0],{form:{element:this.imageButton}}))};
_.S.onCreatePollAction=function(g){_.n(g,n2w)&&(this.JSC$13813_commentbox.addedAttachment="poll",this.openDialog())};
_.S.onAddVideoLinkAction=function(g){if(_.n(g,HxA))this.JSC$13813_commentbox.onAddVideoLink(g)};
_.S.onShowSchedulingPanelCommand=function(g){(g=_.n(g,Van))&&this.openSchedulingPanel(g)};
_.S.onCreateImagePollCommand=function(g){_.n(g,oCb)&&(this.JSC$13813_commentbox.openImagePollComponent(),this.openDialog())};
_.S.onCreateQuizCommand=function(g){_.n(g,GAn)&&(this.JSC$13813_commentbox.openQuizComponent(),this.openDialog())};
_.S.openSchedulingPanel=function(g){_.Y("enable_post_scheduling")&&(this.openDialog(),this.JSC$13813_commentbox.openSchedulingPanel(g))};
_.S.onCreateCommentAction=function(g){this.get("createCommentAction.contents",g)&&(this.JSC$13813_commentbox.clear(),this.closeDialog())};
_.S.onOpen=function(g){g instanceof KeyboardEvent&&g.type==="keypress"&&g.keyCode!==13&&g.keyCode!==32||(this.data.prepareAccountEndpoint?_.Sh(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.S.onYtCommentboxDismiss=function(){this.closeDialog()};
_.S.onYtCommentboxLoadingStart=function(g){g.stopPropagation();this.isCommentboxLoading=!0};
_.S.onYtCommentboxLoadingEnd=function(g){g.stopPropagation();this.isCommentboxLoading=!1};
_.S.onYtVideoLinkButtonCancel=function(g){g.stopPropagation();this.onOpen(g)};
_.S.onYtVideoLinkSelected=function(g){g.stopPropagation();this.onOpen(g)};
_.S.onIronSelect=function(g){g.stopPropagation();g.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=g.detail.item.value&&(this.accessRestriction?(this.accessRestriction=g.detail.item.value,this.onOpen(g)):this.accessRestriction=g.detail.item.value)};
_.S.onYtNavigate=function(g){this.get("detail.endpoint.backstageImageUploadEndpoint",g)&&(this.JSC$13813_commentbox.addedAttachment="image",this.JSC$13813_commentbox.submitButtonDisabled=!0,this.onOpen(g))};
_.S.onRequestSent=function(g){if(_.Y("web_button_rework"))for(var r=_.U(g.detail),E=r.next();!E.done;E=r.next())_.n(E.value,$4z)&&(this.JSC$13813_commentbox.addedAttachment="image",this.JSC$13813_commentbox.submitButtonDisabled=!0,this.onOpen(g))};
_.S.openDialog=function(){this.JSC$13813_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13813_commentbox.focus()};
_.S.onPopupClosed=function(){_.yK.getInstance()};
_.S.computeCreationDisabled=function(g){return!!g};
_.S.computeIsCreationDialog=function(g){return!!g&&g==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.S.computeDisabledPostButton=function(g){if(!g)return null;g.isDisabled=!0;return g};
_.S.computeIsCreationDialogWithHeader=function(g){return!this.inPopupContainer&&!!g&&!!g.authorText&&g.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.S.computeIsHeaderHidden=function(g,r){return!g||r};
_.S.computeDropdownRendererClasses=function(g){return g?["text-secondary-style"]:[]};
_.S.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var g=_.S3(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;g&&g.reset()};
OH.prototype.onPopupClosed=OH.prototype.onPopupClosed;OH.prototype.onRequestSent=OH.prototype.onRequestSent;OH.prototype.onYtNavigate=OH.prototype.onYtNavigate;OH.prototype.onIronSelect=OH.prototype.onIronSelect;OH.prototype.onYtVideoLinkSelected=OH.prototype.onYtVideoLinkSelected;OH.prototype.onYtVideoLinkButtonCancel=OH.prototype.onYtVideoLinkButtonCancel;OH.prototype.onYtCommentboxLoadingEnd=OH.prototype.onYtCommentboxLoadingEnd;OH.prototype.onYtCommentboxLoadingStart=OH.prototype.onYtCommentboxLoadingStart;
OH.prototype.onYtCommentboxDismiss=OH.prototype.onYtCommentboxDismiss;OH.prototype.showButtonEduTooltip=OH.prototype.showButtonEduTooltip;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],OH.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],OH.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],OH.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],OH.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],OH.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],OH.prototype,"isOpen",void 0);_.m([_.K({computed:"computeButtonOverride(data)"}),_.L("design:type",Object)],OH.prototype,"buttonOverride",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],OH.prototype,"modern",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],OH.prototype,"roundedContainer",void 0);_.m([_.K(),_.L("design:type",Object)],OH.prototype,"dropdownButtonOverride",void 0);_.m([_.K({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.L("design:type",Boolean)],OH.prototype,"creationDisabled",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],OH.prototype,"enableCreationBox",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.L("design:type",Boolean)],OH.prototype,"isCreationDialog",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],OH.prototype,"inPopupContainer",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.L("design:type",Boolean)],OH.prototype,"isCreationDialogWithHeader",void 0);_.m([_.K(),_.L("design:type",Object)],OH.prototype,"accessRestriction",void 0);
_.m([_.K({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.L("design:type",Array)],OH.prototype,"dropdownRendererClasses",void 0);_.m([_.K(),_.L("design:type",Object)],OH.prototype,"isCommentboxLoading",void 0);_.m([_.K(),_.L("design:type",Array)],OH.prototype,"attachmentButtonIds",void 0);_.m([_.zb("#image-button"),_.L("design:type",HTMLElement)],OH.prototype,"imageButton",void 0);
_.m([_.zb("#image-poll-button"),_.L("design:type",HTMLElement)],OH.prototype,"imagePollButton",void 0);_.m([_.zb("#quiz-button"),_.L("design:type",HTMLElement)],OH.prototype,"quizButton",void 0);_.m([_.zb("#commentbox"),_.L("design:type",Object)],OH.prototype,"JSC$13813_commentbox",void 0);_.m([_.Gb("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],OH.prototype,"showButtonEduTooltip",null);
_.m([_.ob("yt-commentbox-dismiss"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],OH.prototype,"onYtCommentboxDismiss",null);_.m([_.ob("yt-commentbox-loading-start"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],OH.prototype,"onYtCommentboxLoadingStart",null);
_.m([_.ob("yt-commentbox-loading-end"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],OH.prototype,"onYtCommentboxLoadingEnd",null);_.m([_.ob("yt-video-link-button-cancel"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],OH.prototype,"onYtVideoLinkButtonCancel",null);
_.m([_.ob("yt-video-link-selected"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],OH.prototype,"onYtVideoLinkSelected",null);_.m([_.ob("iron-select"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],OH.prototype,"onIronSelect",null);_.m([_.ob("yt-navigate"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],OH.prototype,"onYtNavigate",null);
_.m([_.ob("yt-service-request-sent-button-renderer"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],OH.prototype,"onRequestSent",null);_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],OH.prototype,"onPopupClosed",null);_.m([_.N({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],OH);
_.I(OH,"ytd-backstage-post-dialog-renderer",function(){if(H1m!==void 0)return H1m;var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n  [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n    <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return H1m=g},{mode:1});var vXT;var dAZ;var UH=function(){return _.a.apply(this,arguments)||this};
_.f(UH,_.a);_.S=UH.prototype;_.S.computeHeartButtonStyle=function(g){return(g==null?0:g.styleType)?g.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.S.onYtButtonTap=function(){if(this.data.isEnabled){var g=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(g=this.getEndpoint(g))&&_.rM().resolve(_.Er).resolveCommand(g,{form:{element:this.hostElement}})}else(g=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(g)};
_.S.toggle=function(g){this.set("data.isHearted",g!==void 0?g:!this.data.isHearted)};
_.S.getEndpoint=function(g){var r,E=(r=this.data)==null?void 0:r.heartEndpoint,B;r=(B=this.data)==null?void 0:B.unheartEndpoint;if(E&&r)return g?r:E};
_.S.computeButtonAccessibility=function(g,r){var E,B,w=g==null?void 0:(E=g.heartedAccessibility)==null?void 0:(B=E.accessibilityData)==null?void 0:B.label,O,M;g=g==null?void 0:(O=g.unheartedAccessibility)==null?void 0:(M=O.accessibilityData)==null?void 0:M.label;return r?w:g};
_.hx.Object.defineProperties(UH.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 g;return _.Y("kevlar_system_icons")&&!((g=this.data)==null||!g.isHearted)}}});
UH.prototype.onYtButtonTap=UH.prototype.onYtButtonTap;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],UH.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.cY),_.L("design:type",Object)],UH.prototype,"ytdOpenPopupBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],UH.prototype,"data",void 0);_.m([_.W("data.isHearted"),_.L("design:type",Object),_.L("design:paramtypes",[])],UH.prototype,"heartTooltip",null);
_.m([_.W("data.isHearted"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],UH.prototype,"iconFilled",null);_.m([_.K({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.L("design:type",String)],UH.prototype,"buttonAccessibility",void 0);_.m([_.K({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.L("design:type",String)],UH.prototype,"heartButtonStyle",void 0);
_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],UH.prototype,"onYtButtonTap",null);_.m([_.N({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],UH);
_.I(UH,"ytd-creator-heart-renderer",function(){if(dAZ!==void 0)return dAZ;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return dAZ=g},{mode:1});var MB=function(){var g=_.a.apply(this,arguments)||this;g.hasCreatorReply=!1;g.buttonOverrides={size:"S",iconPosition:"icon-only"};g.replyButtonOverrides={size:"S",type:"text"};g.forceIconButton=!_.Y("web_modern_buttons");g.modern=_.Y("web_modern_buttons");g.buttonTooltipPosition="bottom";g.systemIcons=_.Y("kevlar_system_icons");g.replyDialog=null;return g};
_.f(MB,_.a);_.S=MB.prototype;
_.S.configureRendererStamper=function(){return{"data.creatorHeart":{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}},replyButtonBeginning:{id:"reply-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}},replyButtonEnd:{id:"reply-button-end",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{forceIconButton:!0},properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]",overrides:"[[replyButtonOverrides]]",forceIconButton:"[[forceIconButton]]"}}}},
"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]"}}}}}};
_.S.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.S.dataChange=function(){this.replyDialog&&_.S3(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var g,r,E;this.isLiked=this.systemIcons&&!!((g=this.data)==null?0:(r=g.likeButton)==null?0:(E=r.toggleButtonRenderer)==null?0:E.isToggled)};
_.S.computeShowVoteCountBeginning=function(g,r){return g===void 0||r===void 0?!0:g.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!r&&this.ytRendererBehavior.getSimpleString(r)!=="0"};
_.S.computeShowVoteCountEnd=function(g,r){return g===void 0||r===void 0?!0:g.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!r&&this.ytRendererBehavior.getSimpleString(r)!=="0"};
_.S.computeShowCommentCount=function(g,r){return g===void 0||r===void 0?!0:g.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!r&&this.ytRendererBehavior.getSimpleString(r)!=="0"};
_.S.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.S.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.S.showReplyDialog=function(g){g&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.S3(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=g,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.S.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.S.onRequestSent=function(g){if(_.Y("web_button_rework")){g=_.U(g.detail);for(var r=g.next();!r.done;r=g.next())(r=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",r.value))&&this.showReplyDialog(r)}};
_.S.onYtNavigate=function(g){var r,E;(g=(r=_.n(g.detail.endpoint,_.AhT))==null?void 0:(E=r.dialog)==null?void 0:E.commentReplyDialogRenderer)&&this.showReplyDialog(g)};
_.S.onYtServiceRequestSent=function(g,r){g.stopPropagation();if(r.actions)for(g=0;g<r.actions.length;g++){var E=_.n(r.actions[g],bxn);E&&this.handleUpdateCommentVoteAction(E)}};
_.S.handleUpdateCommentVoteAction=function(g){this.voteCount=g.voteCount||_.Lf("0");g.voteStatus==="LIKE"?this.JSC$13824_ytdDislikeToggleButtonRenderer.toggle(!1):g.voteStatus==="DISLIKE"?this.JSC$13824_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13824_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13824_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.S.computeReplyButtonHidden=function(g){return g};
_.S.computeReplyButtonBeginning=function(g){return(g==null?0:g.replyButton)&&g.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?g.replyButton:void 0};
_.S.computeReplyButtonEnd=function(g){return(g==null?0:g.replyButton)&&g.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?g.replyButton:void 0};
_.S.computeActionButtonStyle=function(g){return(g==null?0:g.style)?g.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.S.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.S.onYtToggleButton=function(g){var r,E;this.isLiked=this.systemIcons&&!!((r=g.detail)==null?0:(E=r.actions)==null?0:E.like)};
MB.prototype.onYtToggleButton=MB.prototype.onYtToggleButton;MB.prototype.onButtonTooltipPositionChanged=MB.prototype.onButtonTooltipPositionChanged;MB.prototype.onYtServiceRequestSent=MB.prototype.onYtServiceRequestSent;MB.prototype.onYtNavigate=MB.prototype.onYtNavigate;MB.prototype.onRequestSent=MB.prototype.onRequestSent;MB.prototype.onYtCommentboxDismiss=MB.prototype.onYtCommentboxDismiss;MB.prototype.dataChange=MB.prototype.dataChange;
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],MB.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],MB.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],MB.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],MB.prototype,"voteCount",void 0);_.m([_.K(),_.L("design:type",Object)],MB.prototype,"commentCount",void 0);_.m([_.K(),_.L("design:type",Object)],MB.prototype,"replyThumbnail",void 0);
_.m([_.K(),_.L("design:type",Object)],MB.prototype,"hasCreatorReply",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],MB.prototype,"enableCreationBox",void 0);_.m([_.K({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.L("design:type",String)],MB.prototype,"actionButtonsStyle",void 0);_.m([_.K({computed:"computeReplyButtonBeginning(data)"}),_.L("design:type",Object)],MB.prototype,"replyButtonBeginning",void 0);
_.m([_.K({computed:"computeReplyButtonEnd(data)"}),_.L("design:type",Object)],MB.prototype,"replyButtonEnd",void 0);_.m([_.K(),_.L("design:type",Object)],MB.prototype,"buttonOverrides",void 0);_.m([_.K(),_.L("design:type",Object)],MB.prototype,"replyButtonOverrides",void 0);_.m([_.K(),_.L("design:type",Object)],MB.prototype,"forceIconButton",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],MB.prototype,"useCommentIcon",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],MB.prototype,"modern",void 0);_.m([_.K(),_.L("design:type",Object)],MB.prototype,"buttonTooltipPosition",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],MB.prototype,"systemIcons",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],MB.prototype,"isLiked",void 0);_.m([_.zb("ytd-button-renderer"),_.L("design:type",Object)],MB.prototype,"ytdReplyButtonRenderer",void 0);
_.m([_.zb("#like-button"),_.L("design:type",Object)],MB.prototype,"JSC$13824_ytdLikeToggleButtonRenderer",void 0);_.m([_.zb("#dislike-button"),_.L("design:type",Object)],MB.prototype,"JSC$13824_ytdDislikeToggleButtonRenderer",void 0);_.m([_.zb("#reply-dialog"),_.L("design:type",HTMLElement)],MB.prototype,"replyDialogElement",void 0);_.m([_.zb("#reply-button"),_.L("design:type",HTMLElement)],MB.prototype,"replyButtonElement",void 0);
_.m([_.zb("#reply-button-end"),_.L("design:type",HTMLElement)],MB.prototype,"replyButtonEndElement",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],MB.prototype,"dataChange",null);_.m([_.ob("yt-commentbox-dismiss"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],MB.prototype,"onYtCommentboxDismiss",null);
_.m([_.ob("yt-service-request-sent-button-renderer"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],MB.prototype,"onRequestSent",null);_.m([_.ob("yt-navigate"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],MB.prototype,"onYtNavigate",null);
_.m([_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.XA]),_.L("design:returntype")],MB.prototype,"onYtServiceRequestSent",null);_.m([_.Gb("buttonTooltipPosition"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],MB.prototype,"onButtonTooltipPositionChanged",null);
_.m([_.ob("yt-toggle-button"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],MB.prototype,"onYtToggleButton",null);_.m([_.N({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],MB);
_.I(MB,"ytd-comment-action-buttons-renderer",function(){if(vXT!==void 0)return vXT;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return vXT=g},{mode:1});var Tan;var qB=function(){return _.a.apply(this,arguments)||this};
_.f(qB,_.a);qB.prototype.focus=function(){_.S3(this.hostElement).querySelector("#commentbox").focus()};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],qB.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],qB.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],qB.prototype,"zeroStepChannelCreationRenderer",void 0);_.m([_.N({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],qB);
_.I(qB,"ytd-comment-dialog-renderer",function(){if(Tan!==void 0)return Tan;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Tan=g},{mode:1});var g6U;var uJ=function(){var g=_.a.apply(this,arguments)||this;g.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.Y("enable_web_delhi_icons")};g.replyButtonOverrides={size:"S",type:"text"};return g};
_.f(uJ,_.a);_.S=uJ.prototype;_.S.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.S.detached=function(){this.replyBox&&this.replyBox.remove()};
_.S.showReplyDialog=function(g){if(g){var r=this.replyBox;r||(r=document.createElement("ytd-comment-reply-dialog-renderer"),r.id="replybox",_.S3(this.replyDialogDiv).appendChild(r));r.data=g;this.replyDialogDiv.hidden=!1;r.openDialog()}};
_.S.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.S.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var g,r=_.n((g=this.toolbarSurface)==null?void 0:g.subscribersOnlyDisclaimerSnackbarCommand,_.KW);r&&_.Sh(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:r})}};
_.S.onYtServiceRequestSent=function(g,r){g.stopPropagation();if(r.actions)for(var E=0;E<r.actions.length;E++){var B=_.n(r.actions[E],bxn);B?this.handleUpdateCommentVoteAction(B):g.target===this.heartButton&&this.toggleHeartState()}};
_.S.handleUpdateCommentVoteAction=function(g){var r;(r=this.toolbarState)!=null&&r.key&&this.ytdReduxBehavior.dispatch(_.C0("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:g.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":g.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.S.toggleHeartState=function(){var g;(g=this.toolbarState)!=null&&g.key&&this.ytdReduxBehavior.dispatch(_.C0("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.hx.Object.defineProperties(uJ.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return(((g=this.toolbarState)==null?void 0:g.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(r=this.toolbarData)==null?void 0:r.likeCountLiked:(E=this.toolbarData)==null?void 0:E.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.toolbarSurface)==null?void 0:g.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.toolbarSurface)==null?void 0:g.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.toolbarSurface)==null?void 0:g.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.toolbarSurface)==null?void 0:g.prepareAccountCommand)!==void 0&&!_.Y("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var g,r=_.n((g=this.toolbarSurface)==null?void 0:g.prepareAccountCommand,_.KW),E,B,w,O,M,u,l,Q,z;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((E=this.toolbarSharedData)==null||!E.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((B=this.toolbarState)==null?void 0:B.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:r!=null?r:_.n((w=this.toolbarSurface)==null?void 0:w.likeCommand,_.KW),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:r!=null?r:_.n((O=this.toolbarSurface)==null?void 0:O.unlikeCommand,_.KW),defaultCommand:this.isVisiblyDisabled?_.n((M=this.toolbarSurface)==null?void 0:M.commentDisabledActionCommand,_.KW):void 0,defaultTooltip:(u=this.toolbarData)==null?void 0:u.likeInactiveTooltip,toggledTooltip:(l=this.toolbarData)==null?void 0:l.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(Q=this.toolbarData)==null?void 0:Q.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(z=this.toolbarSharedData)==null?void 0:z.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var g,r=_.n((g=this.toolbarSurface)==null?void 0:g.prepareAccountCommand,_.KW),E,B,w,O,M,u,l,Q,z,k;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((E=this.toolbarSharedData)==null||!E.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((B=this.toolbarState)==null?void 0:B.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:r!=null?r:_.n((w=this.toolbarSurface)==null?void 0:w.dislikeCommand,_.KW),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:r!=null?r:_.n((O=this.toolbarSurface)==null?void 0:O.undislikeCommand,_.KW),defaultCommand:this.isVisiblyDisabled?_.n((M=this.toolbarSurface)==null?void 0:M.commentDisabledActionCommand,_.KW):void 0,defaultTooltip:(u=this.toolbarData)==null?void 0:u.dislikeInactiveTooltip,toggledTooltip:(l=this.toolbarData)==null?void 0:
l.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(Q=this.toolbarSharedData)==null?void 0:Q.dislikeReplyButtonA11y:(z=this.toolbarSharedData)==null?void 0:z.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(k=this.toolbarSharedData)==null?void 0:k.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var g,r,E;if(((g=this.toolbarState)==null?void 0:g.heartState)!==void 0&&((r=this.toolbarState)==null?void 0:r.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((E=this.toolbarState)==null?void 0:E.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var B,w,O,M,u,l,Q,z,k,H,R,A,J,e;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(B=this.toolbarData)==null?void 0:B.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((w=this.toolbarState)==null?void 0:w.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((O=this.toolbarState)==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((M=this.toolbarState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((u=this.toolbarState)==null?void 0:u.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.n((l=this.toolbarSurface)==null?void 0:l.heartCommand,
_.KW),unheartEndpoint:this.isVisiblyDisabled?void 0:_.n((Q=this.toolbarSurface)==null?void 0:Q.unheartCommand,_.KW),disabledEndpoint:this.isVisiblyDisabled?_.n((z=this.toolbarSurface)==null?void 0:z.commentDisabledActionCommand,_.KW):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(k=this.toolbarData)==null?void 0:k.heartActiveTooltip,unheartedTooltip:(H=this.toolbarData)==null?void 0:H.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((R=
this.toolbarState)==null?void 0:R.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(A=this.toolbarSharedData)==null?void 0:A.unheartButtonA11y:(J=this.toolbarSharedData)==null?void 0:J.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(e=this.toolbarSharedData)==null?void 0:e.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.toolbarSurface)==null||!g.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var g,r,E,B;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(g=this.commentStrings)==null?void 0:g.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.n((r=this.toolbarSurface)==null?void 0:r.replyCommand,_.KW),command:this.isVisiblyDisabled?_.n((E=this.toolbarSurface)==null?
void 0:E.commentDisabledActionCommand,_.KW):this.isSubsOnlyCommentsIneligibleUser?_.n((B=this.toolbarSurface)==null?void 0:B.subscribersOnlySnackbarCommand,_.KW):void 0}}}});
uJ.prototype.onYtServiceRequestSent=uJ.prototype.onYtServiceRequestSent;uJ.prototype.hideReplyDialogDiv=uJ.prototype.hideReplyDialogDiv;_.m([_.K(),_.L("design:type",Object)],uJ.prototype,"commentStrings",void 0);_.m([_.K(),_.L("design:type",Boolean)],uJ.prototype,"isReply",void 0);_.m([_.K(),_.L("design:type",Object)],uJ.prototype,"toolbarData",void 0);_.m([_.K(),_.L("design:type",Object)],uJ.prototype,"toolbarSharedData",void 0);
_.m([_.K(),_.L("design:type",String)],uJ.prototype,"toolbarStateKey",void 0);_.m([_.K(),_.L("design:type",String)],uJ.prototype,"toolbarSurfaceKey",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],uJ.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],uJ.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],uJ.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.P(_.cY),_.L("design:type",Object)],uJ.prototype,"ytdOpenPopupBehavior",void 0);_.m([_.zb("#reply-dialog"),_.L("design:type",HTMLElement)],uJ.prototype,"replyDialogDiv",void 0);_.m([_.zb("#replybox"),_.L("design:type",Object)],uJ.prototype,"replyBox",void 0);_.m([_.zb("ytd-creator-heart-renderer"),_.L("design:type",Object)],uJ.prototype,"heartButton",void 0);_.m([_.K({selector:function(g,r){return _.u1(g.entities,"engagementToolbarStateEntityPayload",r)},
selectorArgs:["toolbarStateKey"]}),_.L("design:type",Object)],uJ.prototype,"toolbarState",void 0);_.m([_.K({selector:eZL,selectorArgs:["toolbarSurfaceKey"]}),_.L("design:type",Object)],uJ.prototype,"toolbarSurface",void 0);_.m([_.K(),_.L("design:type",Object)],uJ.prototype,"buttonOverrides",void 0);_.m([_.ob("yt-commentbox-dismiss"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],uJ.prototype,"hideReplyDialogDiv",null);
_.m([_.W("toolbarData","toolbarState"),_.L("design:type",String),_.L("design:paramtypes",[])],uJ.prototype,"likeCount",null);_.m([_.W("likeCount"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],uJ.prototype,"showLikeCount",null);_.m([_.W("toolbarSurface"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],uJ.prototype,"isVisiblyDisabled",null);_.m([_.W("toolbarSurface"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],uJ.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.m([_.W("toolbarSurface"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],uJ.prototype,"isSubsOnlyCommentsEligibleUser",null);_.m([_.W("toolbarSurface"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],uJ.prototype,"hasPrepareAccountCommand",null);_.m([_.W("toolbarData","toolbarState","toolbarSurface"),_.L("design:type",Object),_.L("design:paramtypes",[])],uJ.prototype,"likeToggleButtonRenderer",null);
_.m([_.W("isReply","toolbarData","toolbarState","toolbarSurface"),_.L("design:type",Object),_.L("design:paramtypes",[])],uJ.prototype,"dislikeToggleButtonRenderer",null);_.m([_.W("toolbarData","toolbarState","toolbarSurface"),_.L("design:type",Object),_.L("design:paramtypes",[])],uJ.prototype,"creatorHeartSupportedRenderer",null);_.m([_.W("toolbarSurface"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],uJ.prototype,"hasReplyCommand",null);
_.m([_.W("toolbarSurface","commentStrings","isVisiblyDisabled"),_.L("design:type",Object),_.L("design:paramtypes",[])],uJ.prototype,"replyButtonRenderer",null);_.m([_.K(),_.L("design:type",Object)],uJ.prototype,"replyButtonOverrides",void 0);_.m([_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.XA]),_.L("design:returntype")],uJ.prototype,"onYtServiceRequestSent",null);_.m([_.N({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],uJ);
_.I(uJ,"ytd-comment-engagement-bar",function(){if(g6U!==void 0)return g6U;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return g6U=g},{mode:1});var rdA;var lJ=function(){return _.a.apply(this,arguments)||this};
_.f(lJ,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],lJ.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],lJ.prototype,"data",void 0);_.m([_.N({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],lJ);
_.I(lJ,"ytd-comment-inline-thumbnail-renderer",function(){if(rdA!==void 0)return rdA;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return rdA=g},{mode:1});var E6D;var DV=function(){return _.a.apply(this,arguments)||this};
_.f(DV,_.a);DV.prototype.onMessageTap=function(){if(this.onTapCommand){var g=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);g&&this.ytdOpenPopupBehavior.openPopup(g)}};
_.hx.Object.defineProperties(DV.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return(g=this.data)==null?void 0:(r=g.button)==null?void 0:(E=r.buttonRenderer)==null?void 0:E.command}}});
_.m([_.P(_.cY),_.L("design:type",Object)],DV.prototype,"ytdOpenPopupBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],DV.prototype,"data",void 0);_.m([_.W("data.button.buttonRenderer.command"),_.L("design:type",Object),_.L("design:paramtypes",[])],DV.prototype,"onTapCommand",null);_.m([_.N({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],DV);
_.I(DV,"ytd-comment-pause-composer-renderer",function(){if(E6D!==void 0)return E6D;var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return E6D=g},{mode:1});var Bfb;var wII;var or=function(){var g=_.a.apply(this,arguments)||this;g.isOpen=!1;return g};
_.f(or,_.a);_.S=or.prototype;_.S.dataChanged=function(){this.isOpen=!1};
_.S.onTap=function(){this.data&&(this.data.navigationEndpoint?_.Sh(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.S.focus=function(){this.JSC$13854_commentbox.focus()};
_.S.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.S.openDialog=function(){this.isOpen=!0;this.JSC$13854_commentbox.focus();this.JSC$13854_commentbox.maybeHeightChanged()};
or.prototype.onYtCommentboxDismiss=or.prototype.onYtCommentboxDismiss;or.prototype.dataChanged=or.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],or.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],or.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],or.prototype,"isOpen",void 0);_.m([_.zb("#commentbox"),_.L("design:type",Object)],or.prototype,"JSC$13854_commentbox",void 0);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],or.prototype,"dataChanged",null);_.m([_.ob("yt-commentbox-dismiss"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],or.prototype,"onYtCommentboxDismiss",null);_.m([_.N({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],or);
_.I(or,"ytd-comment-reply-dialog-renderer",function(){if(wII!==void 0)return wII;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return wII=g},{mode:1});var Ss6;var GO=function(){return _.a.apply(this,arguments)||this};
_.f(GO,_.a);_.hx.Object.defineProperties(GO.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var g,r,E=(g=this.data)==null?void 0:(r=g.icon)==null?void 0:r.iconType;return E?"yt-icons:"+E.toLowerCase():null}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],GO.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],GO.prototype,"data",void 0);_.m([_.K(),_.W("data.icon"),_.L("design:type",Object),_.L("design:paramtypes",[])],GO.prototype,"icon",null);_.m([_.N({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],GO);
_.I(GO,"ytd-pinned-comment-badge-renderer",function(){if(Ss6!==void 0)return Ss6;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Ss6=g},{mode:1});var OFm;var U56={},MFn={input:!0,meta:!0,br:!0,link:!0,img:!0},Q8=null;U56.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(){Q8==null&&(Q8=document.createElement("tp-yt-paper-tooltip"),Q8.offset=8,Q8.fitToVisibleBounds=!0)},
onMouseOver_:function(g){if(g=_.CN(g.target,function(w){return w==this||w.getAttribute&&w.getAttribute("shared-tooltip-text")}.bind(this),!0)){var r=g.getAttribute("shared-tooltip-text");
if(r){var E=this,B=null;g!=this&&(g.tagName.toLowerCase()in MFn?E=g.parentElement:E=g,g.id&&(B=g.id));this.polymerController.createTooltipIfRequired_();if(Q8.parentElement!=E||Q8.for!=B)(0,_.q1)(Q8).textContent=r,_.S3(E).appendChild(Q8),Q8.for=B,Q8.animationDelay=this.polymerController.sharedTooltipAnimationDelay,Q8.position=this.polymerController.sharedTooltipPosition}}}};var zO=function(){return _.a.apply(this,arguments)||this};
_.f(zO,_.a);zO.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]]"}}}}}};
zO.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
zO.prototype.colorChanged=function(){var g,r,E,B=(g=this.data)==null?void 0:(r=g.color)==null?void 0:(E=r.basicColorPaletteData)==null?void 0:E.foregroundBodyColor;B&&(this.rgbBadgeColor=_.aJ(B));_.S3(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
zO.prototype.tooltipChanged=function(){var g;((g=this.data)==null?0:g.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
zO.prototype.tooltipChanged=zO.prototype.tooltipChanged;zO.prototype.colorChanged=zO.prototype.colorChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],zO.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],zO.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(U56.YtSharedTooltipBehavior),_.L("design:type",Object)],zO.prototype,"ytSharedTooltipBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],zO.prototype,"data",void 0);
_.m([_.K({value:"#4285F4"}),_.L("design:type",String)],zO.prototype,"rgbBadgeColor",void 0);_.m([_.Gb("data.color"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],zO.prototype,"colorChanged",null);_.m([_.Gb("data.tooltip"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],zO.prototype,"tooltipChanged",null);_.m([_.N({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],zO);
_.I(zO,"ytd-sponsor-comment-badge-renderer",function(){if(OFm!==void 0)return OFm;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return OFm=g},{mode:1});var qsU;var uUz;var kw=function(){return _.a.apply(this,arguments)||this};
_.f(kw,_.a);kw.prototype.computeState=function(g){switch(g==null?void 0:g.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"}};
kw.prototype.updateStateIdentifier=function(g){if(this.viewModel.triStateKey){var r=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.C0("triStateButtonStateEntityPayload",r,{key:r,stateIdentifier:g}))}};
kw.prototype.onClick=function(){var g=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(){g.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){g.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.hx.Object.defineProperties(kw.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 g;return((g=this.data)==null?void 0:g.buttonText)||""}}});
_.m([_.K(),_.L("design:type",Object)],kw.prototype,"viewModel",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],kw.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],kw.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],kw.prototype,"ytRendererBehavior",void 0);_.m([_.K({selector:WfA,selectorArgs:["viewModel.triStateKey"]}),_.L("design:type",Object)],kw.prototype,"triStateButtonStateEntity",void 0);
_.m([_.K({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.L("design:type",String)],kw.prototype,"state",void 0);_.m([_.W("viewModel","state"),_.L("design:type",Object),_.L("design:paramtypes",[])],kw.prototype,"data",null);_.m([_.W("data"),_.L("design:type",String),_.L("design:paramtypes",[])],kw.prototype,"buttonText",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],kw);
_.I(kw,"ytd-tri-state-button-view-model",function(){if(uUz!==void 0)return uUz;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return uUz=g},{mode:1});var lMU;var D5U;var HO=function(){var g=_.a.apply(this,arguments)||this;g.defaultIconToFilled=!_.Y("kevlar_fill_comment_chip_icon_killswitch");return g};
_.f(HO,_.a);HO.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
HO.prototype.dataChanged=function(){if(this.data){var g,r;((g=this.data.chipColorPalette)==null?0:g.backgroundColor)&&((r=this.data.chipColorPalette)==null?0:r.foregroundTitleColor)&&_.ua(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.XT(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.XT(this.data.chipColorPalette.foregroundTitleColor)});var E;((E=this.data)==null?0:E.command)?(_.ua(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.ua(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}};
HO.prototype.onTap=function(){var g;if(this.data&&(g=this.data)!=null&&g.command){var r;this.ytComponentBehavior.resolveCommand((r=this.data)==null?void 0:r.command)}};
HO.prototype.getIconSize=function(){return _.Y("kevlar_fill_comment_chip_icon_killswitch")?24:12};
HO.prototype.onTap=HO.prototype.onTap;HO.prototype.dataChanged=HO.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],HO.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],HO.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.QV),_.L("design:type",Object)],HO.prototype,"ironA11yKeysBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],HO.prototype,"data",void 0);
_.m([_.K(),_.L("design:type",Object)],HO.prototype,"basePriceText",void 0);_.m([_.K(),_.L("design:type",Object)],HO.prototype,"chipIcon",void 0);_.m([_.K(),_.L("design:type",Object)],HO.prototype,"defaultIconToFilled",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],HO.prototype,"dataChanged",null);_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],HO.prototype,"onTap",null);
_.m([_.e3({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],HO);
_.I(HO,"yt-pdg-comment-chip-renderer",function(){if(D5U===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;lMU===void 0&&(lMU=document.createElement("template"));var B=lMU;E.call(r,B.content.cloneNode(!0),g.content.firstChild);D5U=g}g=D5U;return g},{mode:2});var pK=function(){var g=_.a.apply(this,arguments)||this;g.useSmallAvatars=_.Y("small_avatars_for_comments");g.webWatchCompactComments=_.Y("web_watch_compact_comments");g.editDialog=null;return g};
_.f(pK,_.a);_.S=pK.prototype;_.S.onShow=function(){_.eh("cmv",void 0,"wn_comments")};
_.S.configureRendererStamper=function(){return{authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},linkedCommentBadge:{id:"linked-comment-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[linkedCommentBadge]]"}}}},pinnedCommentBadge:{id:"pinned-comment-badge",mapping:{renderer:"ytd-pinned-comment-badge-renderer"}},sponsorCommentBadge:{id:"sponsor-comment-badge",mapping:{renderer:"ytd-sponsor-comment-badge-renderer"}},
editDialog:{id:"edit-dialog",mapping:{commentDialogRenderer:"ytd-comment-dialog-renderer",commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"}}}};
_.S.detached=function(){this.editDialog=null;this.expander.reset()};
_.S.updateBackgroundColor=function(){if(this.backgroundColor){var g={"--ytd-comment-paid-background-color":_.XT(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.ua(this.hostElement,g)}else _.ua(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.S.resetExpander=function(){var g;(g=this.expander)==null||g.reset()};
_.S.openEditDialog=function(g){g.dialog&&(this.editDialog=g.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.S.onYtNavigate=function(g){var r=g.detail.endpoint;if(r=_.n(r,_.bdT)||_.n(r,_.JhA))g.stopPropagation(),this.openEditDialog(r)};
_.S.onYtCommentboxDismiss=function(){this.editDialog=null;_.ua(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.S.onAuthorThumbnailClicked=function(){var g=this;_.Y("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(r,E){g.onAuthorThumbnailEndpointSuccess(E)},
onServerError:function(r,E){_.el(new _.Rj("Failed to resolve the command",E))}}})};
_.S.onAuthorThumbnailEndpointSuccess=function(g){if((g=g==null?void 0:g.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(g,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();g=g==null?void 0:g.clickTrackingParams;var r=_.JF();g&&r&&_.pW().graftServerVe(g,r)}};
_.S.logScreenVe=function(){_.wT(_.pW(),66557)};
_.S.onYtCommentboxResize=function(g){var r;(g==null?0:(r=g.detail)==null?0:r.height)&&_.ua(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":g.detail.height+"px"})};
_.hx.Object.defineProperties(pK.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 g,r=(g=this.commentEntity)==null?void 0:g.author;return r&&(r.isCreator||r.isVerified||r.isArtist)?{renderer:{authorEndpoint:r.channelPageEndpoint?_.n(r.channelPageEndpoint,_.KW):_.n(r.channelCommand,_.KW),authorText:{runs:[{text:r.displayName}]},color:r.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:r.isArtist?{iconType:"AUDIO_BADGE"}:
r.isVerified?{iconType:r.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:r.isArtist||r.isVerified?r.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var g,r=(g=this.commentEntity)==null?void 0:g.author;return r!=null&&r.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:r.sponsorBadgeUrl}]},tooltip:r.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var g;return _.n((g=this.commentSurfaceEntity)==null?void 0:g.pdgCommentChip,_.wU4)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var g;return this.voiceReplyContainerViewModel&&((g=this.voiceReplyContainerViewModel)==null?void 0:g.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var g;return _.n((g=this.commentSurfaceEntity)==null?void 0:g.voiceReplyContainerViewModel,xEw)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var g;return this.voiceReplyContainerViewModel&&(g=this.voiceReplyContainerViewModel)!=null&&g.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var g,r;return(r=(g=this.commentSurfaceEntity)==null?void 0:g.commentBackgroundColor)!=null?r:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.Y("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var g,r;return(((g=this.commentEntity)==null?void 0:(r=g.properties)==null?void 0:r.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var g,r;if(_.Y("enable_profile_cards_on_comments")&&((g=this.commentEntity)==null?0:(r=g.author)==null?0:r.profileCardEndpoint)&&this.viewModel.allowProfileCard){var E,B;return _.n((E=this.commentEntity)==null?void 0:(B=E.author)==null?void 0:B.profileCardEndpoint,_.KW)}var w,O;return _.n((w=this.commentEntity)==null?void 0:(O=w.avatar)==null?void 0:O.endpoint,_.KW)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var g,r;if(_.Y("enable_profile_cards_on_comments")&&((g=this.commentEntity)==null?0:(r=g.author)==null?0:r.channelPageEndpoint)){var E,B;return _.n((E=this.commentEntity)==null?void 0:(B=E.author)==null?void 0:B.channelPageEndpoint,_.KW)}var w,O;return _.n((w=this.commentEntity)==null?void 0:(O=w.avatar)==null?void 0:O.endpoint,_.KW)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var g,r,E,B,w=(g=this.commentEntity)==null?void 0:(r=g.avatar)==null?void 0:(E=r.image)==null?void 0:(B=E.sources)==null?void 0:B[0];return w?{thumbnails:[{url:w.url,width:w.width,height:w.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var g,r;return((g=this.commentEntity)==null?0:(r=g.author)==null?0:r.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var g,r;return((g=this.commentEntity)==null?void 0:(r=g.author)==null?void 0:r.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var g,r;return((g=this.commentEntity)==null?void 0:(r=g.properties)==null?void 0:r.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var g;return _.n((g=this.commentSurfaceEntity)==null?void 0:g.publishedTimeCommand,_.KW)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var g,r;if(((g=this.commentEntity)==null?0:g.translatedContent)&&((r=this.translateButtonState)==null?void 0:r.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var E;if((E=this.voiceReplyContainerViewModel)==null?0:E.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var B,w;return((B=this.commentEntity)==null?void 0:(w=B.properties)==null?void 0:w.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var g,r;return((g=this.commentSharedEntity)==null?void 0:(r=g.strings)==null?void 0:r.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var g,r;return((g=this.commentSharedEntity)==null?void 0:(r=g.strings)==null?void 0:r.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.commentEntity)==null||!g.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var g,r,E=(r=_.n((g=this.viewModel)==null?void 0:g.translateButton,KqA))!=null?r:{},B,w,O,M,u,l,Q,z,k,H,R;return Object.assign({},E,{untoggledStateData:Object.assign({},E.untoggledStateData,{buttonText:(B=this.commentEntity)==null?void 0:(w=B.translateData)==null?void 0:w.text}),togglingStateData:Object.assign({},E.togglingStateData,{buttonText:(O=this.commentSharedEntity)==null?
void 0:(M=O.strings)==null?void 0:M.translatingText}),toggledStateData:Object.assign({},E.toggledStateData,{buttonText:(u=this.commentSharedEntity)==null?void 0:(l=u.strings)==null?void 0:l.seeOriginalText}),transitionCommand:((Q=this.commentEntity)==null?0:Q.translatedContent)?void 0:_.n((z=this.commentEntity)==null?void 0:(k=z.translateData)==null?void 0:k.translateComment,_.KW),triStateKey:(H=this.commentEntity)==null?void 0:(R=H.properties)==null?void 0:R.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return((r=_.n(_.n((g=this.toolbarSurface)==null?void 0:g.menuCommand,_.KW),Pv4))==null?void 0:(E=r.menu)==null?void 0:E.menuRenderer)||null}}});
pK.prototype.onYtCommentboxResize=pK.prototype.onYtCommentboxResize;pK.prototype.onYtCommentboxDismiss=pK.prototype.onYtCommentboxDismiss;pK.prototype.onYtNavigate=pK.prototype.onYtNavigate;pK.prototype.resetExpander=pK.prototype.resetExpander;pK.prototype.updateBackgroundColor=pK.prototype.updateBackgroundColor;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],pK.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],pK.prototype,"ytdReduxBehavior",void 0);
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],pK.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],pK.prototype,"ytRendererstamperBehavior",void 0);_.m([_.zb("#author-thumbnail > button"),_.L("design:type",HTMLElement)],pK.prototype,"authorThumbnailAnchor",void 0);_.m([_.K({reflectToAttribute:!0}),_.W("viewModel"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],pK.prototype,"linked",null);
_.m([_.W("viewModel","linked"),_.L("design:type",Object),_.L("design:paramtypes",[])],pK.prototype,"linkedCommentBadge",null);_.m([_.K({reflectToAttribute:!0}),_.W("viewModel"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],pK.prototype,"pinned",null);_.m([_.W("viewModel","pinned"),_.L("design:type",Object),_.L("design:paramtypes",[])],pK.prototype,"pinnedCommentBadge",null);
_.m([_.W("commentEntity","commentSharedEntity"),_.L("design:type",Object),_.L("design:paramtypes",[])],pK.prototype,"authorCommentBadge",null);_.m([_.K({reflectToAttribute:!0}),_.W("authorCommentBadge"),_.L("design:type",Object),_.L("design:paramtypes",[])],pK.prototype,"hasAuthorBadge",null);_.m([_.W("commentEntity"),_.L("design:type",Object),_.L("design:paramtypes",[])],pK.prototype,"sponsorCommentBadge",null);
_.m([_.K({reflectToAttribute:!0}),_.W("sponsorCommentBadge"),_.L("design:type",Object),_.L("design:paramtypes",[])],pK.prototype,"hasSponsorBadge",null);_.m([_.W("commentSurfaceEntity"),_.L("design:type",Object),_.L("design:paramtypes",[])],pK.prototype,"pdgCommentChipRenderer",null);_.m([_.K({reflectToAttribute:!0}),_.W("voiceReplyContainerViewModel"),_.L("design:type",Object),_.L("design:paramtypes",[])],pK.prototype,"hasVoiceReply",null);
_.m([_.W("commentSurfaceEntity"),_.L("design:type",Object),_.L("design:paramtypes",[])],pK.prototype,"voiceReplyContainerViewModel",null);_.m([_.W("voiceReplyContainerViewModel"),_.L("design:type",Object),_.L("design:paramtypes",[])],pK.prototype,"voiceReplyUnavailableText",null);_.m([_.K(),_.L("design:type",Object)],pK.prototype,"data",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],pK.prototype,"viewModel",null);
_.m([_.K({selector:function(g,r){return _.u1(g.entities,"commentSharedEntityPayload",r)},
selectorArgs:["viewModel.sharedKey"]}),_.L("design:type",Object)],pK.prototype,"commentSharedEntity",void 0);_.m([_.K({selector:function(g,r){return _.u1(g.entities,"commentEntityPayload",r)},
selectorArgs:["viewModel.commentKey"]}),_.L("design:type",Object)],pK.prototype,"commentEntity",void 0);_.m([_.K({selector:function(g,r){return _.u1(g.entities,"commentSurfaceEntityPayload",r)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.L("design:type",Object)],pK.prototype,"commentSurfaceEntity",void 0);_.m([_.K({selector:eZL,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.L("design:type",Object)],pK.prototype,"toolbarSurface",void 0);_.m([_.K({selector:WfA,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.L("design:type",Object)],pK.prototype,"translateButtonState",void 0);
_.m([_.W("commentSurfaceEntity"),_.L("design:type",Object),_.L("design:paramtypes",[])],pK.prototype,"backgroundColor",null);_.m([_.K({reflectToAttribute:!0}),_.W("viewModel"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],pK.prototype,"optimalReadingWidthComments",null);_.m([_.zb("ytd-expander"),_.L("design:type",Object)],pK.prototype,"expander",void 0);
_.m([_.Gb("backgroundColor"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],pK.prototype,"updateBackgroundColor",null);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],pK.prototype,"useSmallAvatars",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],pK.prototype,"webWatchCompactComments",void 0);_.m([_.K({reflectToAttribute:!0}),_.W("commentEntity"),_.L("design:type",Object),_.L("design:paramtypes",[])],pK.prototype,"isReply",null);
_.m([_.W("commentEntity"),_.L("design:type",Object),_.L("design:paramtypes",[])],pK.prototype,"authorThumbnailEndpoint",null);_.m([_.W("commentEntity"),_.L("design:type",Object),_.L("design:paramtypes",[])],pK.prototype,"authorNameEndpoint",null);_.m([_.W("commentEntity"),_.L("design:type",Object),_.L("design:paramtypes",[])],pK.prototype,"authorThumbnail",null);_.m([_.W("commentEntity"),_.L("design:type",String),_.L("design:paramtypes",[])],pK.prototype,"authorTextClass",null);
_.m([_.W("commentEntity"),_.L("design:type",String),_.L("design:paramtypes",[])],pK.prototype,"authorChannelName",null);_.m([_.W("commentEntity"),_.L("design:type",Object),_.L("design:paramtypes",[])],pK.prototype,"publishedTime",null);_.m([_.W("commentSurfaceEntity"),_.L("design:type",Object),_.L("design:paramtypes",[])],pK.prototype,"publishedTimeCommand",null);
_.m([_.W("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.L("design:type",Object),_.L("design:paramtypes",[])],pK.prototype,"contentText",null);_.m([_.Gb("contentText"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],pK.prototype,"resetExpander",null);_.m([_.W("commentEntity"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],pK.prototype,"shouldShowReadMoreInitially",null);
_.m([_.W("commentSharedEntity"),_.L("design:type",String),_.L("design:paramtypes",[])],pK.prototype,"expandText",null);_.m([_.W("commentSharedEntity"),_.L("design:type",String),_.L("design:paramtypes",[])],pK.prototype,"collapseText",null);_.m([_.W("commentEntity"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],pK.prototype,"shouldShowTranslateButton",null);
_.m([_.W("commentEntity","commentSharedEntity"),_.L("design:type",Object),_.L("design:paramtypes",[])],pK.prototype,"translateButton",null);_.m([_.W("toolbarSurface"),_.L("design:type",Object),_.L("design:paramtypes",[])],pK.prototype,"overflowMenuRenderer",null);_.m([_.K(),_.L("design:type",Object)],pK.prototype,"editDialog",void 0);_.m([_.zb("ytd-comment-dialog-renderer"),_.L("design:type",Object)],pK.prototype,"editCommentDialogContainer",void 0);
_.m([_.zb("ytd-comment-reply-dialog-renderer"),_.L("design:type",Object)],pK.prototype,"editReplyDialogContainer",void 0);_.m([_.ob("yt-navigate"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],pK.prototype,"onYtNavigate",null);_.m([_.ob("yt-commentbox-dismiss"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],pK.prototype,"onYtCommentboxDismiss",null);
_.m([_.ob("yt-commentbox-resize"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],pK.prototype,"onYtCommentboxResize",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-comment-view-model"})],pK);
_.I(pK,"ytd-comment-view-model",function(){if(qsU!==void 0)return qsU;var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model">\n      </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model"> \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model">\n              [[authorChannelName]]\n            </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n\n');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return qsU=g},{mode:_.My("kevlar_poly_si_batch_j025")?1:2});var Yw=function(){var g=_.a.apply(this,arguments)||this;g.modern=_.Y("web_modern_buttons");g.isWatchGrid=_.Y("kevlar_watch_grid");g.buttonOverrides={style:"call-to-action"};g.JSC$13900_spinnerEl=null;return g};
_.f(Yw,_.a);_.S=Yw.prototype;_.S.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.S.configureRendererStamper=function(){return{"data.teaserContents":{id:"teaser-replies",mapping:{commentViewModel:{component:"ytd-comment-view-model"}}},"data.contents":{id:"contents",mapping:{commentViewModel:{component:"ytd-comment-view-model"},continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0,isCommentsSection:!1},properties:{buttonOverrides:"[[buttonOverrides]]"}}}}}};
_.S.attached=function(){this.isShowRepliesVisible=!0};
_.S.dataChanged=function(){var g=this.expanderContents;g&&(g.hidden=!0);this.isLoading=!1};
_.S.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.S.isLoadingChanged=function(){this.isLoading&&!this.JSC$13900_spinnerEl&&(this.JSC$13900_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.S3(this.expanderContents).appendChild(this.JSC$13900_spinnerEl));this.JSC$13900_spinnerEl&&(this.JSC$13900_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var g;(g=this.contents)==null||g.classList.remove("reloading")}};
_.S.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var g=_.n(this.data.viewReplies,_.Fd);g&&this.ytRendererBehavior.logExplicitClick(g)};
_.S.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var g=_.n(this.data.hideReplies,_.Fd);g&&this.ytRendererBehavior.logExplicitClick(g)};
_.S.isShowMoreChanged=function(){var g=_.S3(this.hostElement).querySelector("#expander-contents");g&&(g.hidden=this.isShowRepliesVisible)};
_.S.computeAlign=function(){if(this.modern){var g;return!((g=this.data)==null?0:g.viewRepliesCreatorThumbnail)}};
_.hx.Object.defineProperties(Yw.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var g,r=(g=this.data)==null?void 0:g.contents;return!!r&&r.length>0&&!!r[r.length-1].continuationItemRenderer}}});
Yw.prototype.isShowMoreChanged=Yw.prototype.isShowMoreChanged;Yw.prototype.isLoadingChanged=Yw.prototype.isLoadingChanged;Yw.prototype.triggerFirstContinuation=Yw.prototype.triggerFirstContinuation;Yw.prototype.dataChanged=Yw.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Yw.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Yw.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.P(_.Xe),_.L("design:type",Object)],Yw.prototype,"ytContinuationHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Yw.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Yw.prototype,"modern",void 0);_.m([_.K(),_.L("design:type",Boolean)],Yw.prototype,"isLoading",void 0);_.m([_.K({value:!0}),_.L("design:type",Boolean)],Yw.prototype,"isShowRepliesVisible",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],Yw.prototype,"useNewFormatting",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Yw.prototype,"isWatchGrid",void 0);_.m([_.K(),_.L("design:type",Object)],Yw.prototype,"buttonOverrides",void 0);_.m([_.zb("#expander-contents"),_.L("design:type",HTMLElement)],Yw.prototype,"expanderContents",void 0);_.m([_.zb("ytd-continuation-item-renderer"),_.L("design:type",Object)],Yw.prototype,"continuationItemRenderer",void 0);_.m([_.zb("#contents"),_.L("design:type",HTMLElement)],Yw.prototype,"contents",void 0);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Yw.prototype,"dataChanged",null);_.m([_.W("data.contents"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Yw.prototype,"hasContinuation",null);_.m([_.ob("yt-expander-more-tapped"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Yw.prototype,"triggerFirstContinuation",null);
_.m([_.Gb("isLoading"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Yw.prototype,"isLoadingChanged",null);_.m([_.Gb("isShowRepliesVisible"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Yw.prototype,"isShowMoreChanged",null);_.m([_.N({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],Yw);
_.I(Yw,"ytd-comment-replies-renderer",function(){if(Bfb!==void 0)return Bfb;var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[!hasContinuation]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return Bfb=g},{mode:1});var o6w;var Rr=function(){var g=_.a.apply(this,arguments)||this;g.isOpen=!1;g.commentDialog=null;g.useSmallAvatars=_.Y("small_avatars_for_comments");g.useSmallAvatarsEngagementPanelOnly=_.Y("small_avatars_for_comments_ep");g.placeholderFocusListener=null;g.hasOpenedDialog=!1;g.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return g};
_.f(Rr,_.a);_.S=Rr.prototype;_.S.configureRendererStamper=function(){return{"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},commentDialog:{id:"comment-dialog",mapping:{commentDialogRenderer:{component:"ytd-comment-dialog-renderer",properties:{zeroStepChannelCreationRenderer:"[[data.zeroStep.zeroStepChannelCreationRenderer]]"}}}}}};
_.S.ready=function(){var g=this,r=_.S3(this.hostElement).querySelector("#placeholder-area"),E=_.S3(this.hostElement).querySelector("#simplebox-placeholder"),B=function(w){w.stopPropagation();w instanceof KeyboardEvent&&w.type==="keypress"&&w.keyCode!==13&&w.keyCode!==32||g.openDialog()};
this.placeholderFocusListener=B;E.addEventListener("focus",this.placeholderFocusListener);r.addEventListener("tap",B);r.addEventListener("keypress",B)};
_.S.maybeRemoveFocusEventListener=function(){var g;(g=this.data)!=null&&g.prepareAccountEndpoint&&!_.Y("web_comments_simplebox_modal_focus_on_tap_ks")&&(g=_.S3(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(g.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.S.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.S.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.Y("web_comment_simplebox_resolve_polymer_command_ks")?_.G$.instance.resolveCommand(this.data.prepareAccountEndpoint):_.Qy(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var g=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);g&&this.ytdOpenPopupBehavior.openPopup(g);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.S3(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.S.onYtCommentboxDismiss=function(g){g.stopPropagation();this.isOpen=!1};
_.S.onCreateCommentAction=function(g){this.get("createCommentAction.contents",g)&&(this.isOpen=!1)};
_.S.computeCommentDialog=function(g){return{placeholderText:g.placeholderText,authorThumbnail:g.authorThumbnail,submitButton:g.submitButton,imageButton:g.imageButton,cancelButton:g.cancelButton,emojiButton:g.emojiButton,emojis:g.emojis,emojiPicker:g.emojiPicker,aadcGuidelinesStateEntityKey:g.aadcGuidelinesStateEntityKey,openAadcDialog:g.openAadcDialog,unicodeEmojisUrl:g.unicodeEmojisUrl}};
_.S.onHideIdentityChip=function(g){_.n(g,sUn)&&this.set("data.placeholderText",_.n(g,sUn).placeholderText)};
Rr.prototype.onYtCommentboxDismiss=Rr.prototype.onYtCommentboxDismiss;Rr.prototype.dataChanged=Rr.prototype.dataChanged;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Rr.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.cY),_.L("design:type",Object)],Rr.prototype,"ytdOpenPopupBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Rr.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Rr.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Rr.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],Rr.prototype,"isOpen",void 0);_.m([_.K(),_.L("design:type",Object)],Rr.prototype,"commentDialog",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Rr.prototype,"engagementPanel",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Rr.prototype,"useSmallAvatars",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Rr.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Rr.prototype,"enableCreationBox",void 0);_.m([_.K(),_.L("design:type",Boolean)],Rr.prototype,"showCreateDialog",void 0);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Rr.prototype,"dataChanged",null);_.m([_.ob("yt-commentbox-dismiss"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],Rr.prototype,"onYtCommentboxDismiss",null);_.m([_.N({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],Rr);
_.I(Rr,"ytd-comment-simplebox-renderer",function(){if(o6w!==void 0)return o6w;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return o6w=g},{mode:1});var GXU;_.ek("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var nK=function(){var g=_.a.apply(this,arguments)||this;g.addHoverEffect=_.Y("swatcheroo_comments_hover_effect");return g};
_.f(nK,_.a);nK.prototype.onTap=function(g){if(this.addHoverEffect&&!this.engagementPanel&&!_.Zy(_.Z1(g)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var r;((r=window.getSelection())==null?0:r.toString().length)||_.Qy({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
nK.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.hx.Object.defineProperties(nK.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)!=null&&g.commentViewModel)return _.n(this.data.commentViewModel,CRD)}}});
nK.prototype.onTap=nK.prototype.onTap;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],nK.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],nK.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],nK.prototype,"addHoverEffect",void 0);_.m([_.K(),_.L("design:type",Object)],nK.prototype,"data",void 0);
_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],nK.prototype,"commentViewModel",null);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],nK.prototype,"engagementPanel",void 0);_.m([_.ob("tap"),_.ob("click"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],nK.prototype,"onTap",null);_.m([_.N({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],nK);
_.I(nK,"ytd-comment-thread-renderer",function(){if(GXU!==void 0)return GXU;var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return GXU=g},{mode:_.My("kevlar_poly_si_batch_j025")?1:2});var QuT;var sH=function(){var g=_.a.apply(this,arguments)||this;g.modernTypography=_.Y("web_modern_typography");g.compactHeader=_.Y("web_watch_compact_comments_header");g.hidePanelButton=!1;g.isPostSchedulingEnabled=_.Y("enable_post_scheduling");g.hasFinishedStamping=!1;g.JSC$13918_handleOpenPostCommentDialogActionAfterStamp=!1;g.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return g};
_.f(sH,_.a);_.S=sH.prototype;
_.S.configureRendererStamper=function(){return{"data.createRenderer":{id:"simple-box",mapping:{commentSimpleboxRenderer:{component:"ytd-comment-simplebox-renderer",properties:{engagementPanel:"[[engagementPanel]]",showCreateDialog:"[[data.showCreateDialog]]"}}}},"data.pausedCommentsMessage":{id:"paused-comments-message",mapping:{messageRenderer:"ytd-comment-pause-composer-renderer"}},backstagePostDialog:{id:"backstage-post-dialog",mapping:{backstagePostDialogRenderer:{component:"ytd-backstage-post-dialog-renderer"}},events:!0},
"data.sortMenu":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.alerts":{id:"alert",mapping:{alertWithButtonRenderer:"ytd-alert-with-button-renderer"},renderPriority:0,waitForSignal:"eocs"},"data.zeroStateMessage":{id:"zero-state-message",mapping:{backstageZeroStateRenderer:"ytd-backstage-zero-state-renderer",postFilterZeroStateRenderer:"ytd-post-filter-zero-state-renderer"}},"data.prefilledCreateDialogHeaderMessage":{id:"prefilled-dialog-header",mapping:{backstagePrefilledPostDialogHeaderRenderer:"ytd-backstage-prefilled-post-dialog-header-renderer"}},
"data.postStreamFilter":{id:"post-stream-filter",mapping:{postStreamFilterRenderer:"ytd-post-stream-filter-renderer"}},"data.schedulingZeroStateMessage":{id:"scheduling-zero-state-message",mapping:{postSchedulingZeroStateRenderer:"ytd-post-scheduling-zero-state-renderer"}}}};
_.S.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.S.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13918_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.S.onYtServiceRequestSent=function(g,r){if(!_.Y("kevlar_command_handler")&&r.actions)for(g=0;g<r.actions.length;g++){var E=r.actions[g];_.n(E,Van)&&_.S3(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.n(E,Van))}};
_.S.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var g;if(this.getPrefilledBackstagePostDialog((g=this.data)==null?void 0:g.actions)){_.S3(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var r=_.S3(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;r&&_.Lk(this,function(){r.focus();r.openDialog&&r.openDialog()})}}else this.hasActionsChange=!0};
_.S.computeIsBackstage=function(g){return g};
_.S.onYtCommentboxDismiss=function(){_.S3(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.S.removePrefilledDialog=function(g){if(g==null?0:g.actions){for(var r=g.actions.length-1;r>=0;r--){var E=void 0;((E=_.n(g.actions[r],jMZ))==null?0:E.dialog)&&delete g.actions[r]}this.set("data",void 0);this.set("data",g)}};
_.S.getPrefilledBackstagePostDialog=function(g){if(g)for(var r=0;r<g.length;r++){var E=g[r],B=void 0;if((B=_.n(E,jMZ))==null?0:B.dialog)return _.n(E,jMZ).dialog}return null};
_.S.computeBackstagePostDialog=function(g){return g&&(this.getPrefilledBackstagePostDialog(g.actions)||g.createRenderer)};
_.S.dataChanged=function(){if(this.data){var g=this.data.customEmojis,r=this.data.unicodeEmojisUrl;_.et.clear();r&&_.ksz(_.et,r);g&&_.et.load(g)}};
_.S.handleSignalActionOpenPostCommentDialogAction=function(){var g=_.S3(this.hostElement).querySelector("ytd-comment-simplebox-renderer");g?g.openDialog():this.JSC$13918_handleOpenPostCommentDialogActionAfterStamp=!0};
_.hx.Object.defineProperties(sH.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.Y("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var g,r,E,B,w,O,M;return!this.hidePanelButton&&_.Y("kevlar_watch_comments_panel_button")&&((M=_.n((g=this.data)==null?void 0:(r=g.sortMenu)==null?void 0:(E=r.sortFilterSubMenuRenderer)==null?void 0:(B=E.subMenuItems)==null?void 0:(w=B[0])==null?void 0:(O=w.serviceEndpoint)==null?void 0:O.commandMetadata,_.dU))==null?void 0:M.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.zn("MINIPLAYER_EXPAND_LABEL"),text:_.Lf(_.zn("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
sH.prototype.dataChanged=sH.prototype.dataChanged;sH.prototype.onYtCommentboxDismiss=sH.prototype.onYtCommentboxDismiss;sH.prototype.observePrefilledBackstagePostDialog=sH.prototype.observePrefilledBackstagePostDialog;sH.prototype.onYtServiceRequestSent=sH.prototype.onYtServiceRequestSent;sH.prototype.onStampFinished=sH.prototype.onStampFinished;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],sH.prototype,"ytActionHandlerBehavior",void 0);
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],sH.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],sH.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],sH.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],sH.prototype,"modernTypography",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],sH.prototype,"compactHeader",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],sH.prototype,"engagementPanel",void 0);_.m([_.K(),_.L("design:type",Object)],sH.prototype,"hidePanelButton",void 0);_.m([_.K({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.L("design:type",Boolean)],sH.prototype,"isBackstage",void 0);_.m([_.K({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.L("design:type",Object)],sH.prototype,"backstagePostDialog",void 0);
_.m([_.K(),_.L("design:type",Object)],sH.prototype,"isPostSchedulingEnabled",void 0);_.m([_.K({reflectToAttribute:!0}),_.W("data","showCommentsPanelButton"),_.L("design:type",Object),_.L("design:paramtypes",[])],sH.prototype,"useSpaceBetween",null);_.m([_.K({reflectToAttribute:!0}),_.W("data","hidePanelButton"),_.L("design:type",Object),_.L("design:paramtypes",[])],sH.prototype,"showCommentsPanelButton",null);
_.m([_.W("data","showCommentsPanelButton"),_.L("design:type",Object),_.L("design:paramtypes",[])],sH.prototype,"commentsPanelButtonData",null);_.m([_.ob("yt-rendererstamper-finished"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],sH.prototype,"onStampFinished",null);_.m([_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.XA]),_.L("design:returntype")],sH.prototype,"onYtServiceRequestSent",null);
_.m([_.Gb("data.actions"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],sH.prototype,"observePrefilledBackstagePostDialog",null);_.m([_.ob("yt-commentbox-dismiss"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],sH.prototype,"onYtCommentboxDismiss",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],sH.prototype,"dataChanged",null);
_.m([_.N({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],sH);
_.I(sH,"ytd-comments-header-renderer",function(){if(QuT!==void 0)return QuT;var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return QuT=g},{mode:1});var zAb;var fK=function(){return _.a.apply(this,arguments)||this};
_.f(fK,_.a);_.m([_.K(),_.L("design:type",Object)],fK.prototype,"data",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],fK.prototype,"ytRendererBehavior",void 0);_.m([_.N({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],fK);
_.I(fK,"ytd-destination-button-renderer",function(){if(zAb!==void 0)return zAb;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return zAb=g},{mode:1});var kX6;var $w=function(){var g=_.a.apply(this,arguments)||this;g.isRichGrid=!1;g.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};g.modernTypography=_.Y("web_modern_typography");return g};
_.f($w,_.a);_.S=$w.prototype;_.S.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.S.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.S.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.S.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var g;if((g=this.data)==null||!g.isExpanded){g=this.hostElement.clientWidth;var r;if(g&&(r=this.data)!=null&&r.destinationButtons){r=Math.floor((g+4)/214);g=this.data.destinationButtons.length;var E=Math.ceil(g/r);this.fullyVisibleRows=g%r===1&&E===2?1:Math.min(E,2);this.isShowMoreVisible=this.fullyVisibleRows<E}}}};
_.S.updateRichGridDestinationButtonsVisibility=function(){var g,r;if(this.isRichGrid&&((g=this.data)==null||!g.isExpanded)&&(r=this.data)!=null&&r.destinationButtons){g=this.richGridItemsPerRow+1;r=this.data.destinationButtons.length;var E=Math.ceil(r/g);this.fullyVisibleRows=r%g===1&&E===2?1:Math.min(E,2);this.isShowMoreVisible=this.fullyVisibleRows<E}};
_.S.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
$w.prototype.updateRichGridDestinationButtonsVisibility=$w.prototype.updateRichGridDestinationButtonsVisibility;_.m([_.K(),_.L("design:type",Object)],$w.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Number)],$w.prototype,"fullyVisibleRows",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],$w.prototype,"isShowMoreVisible",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],$w.prototype,"isRichGrid",void 0);
_.m([_.K({selector:_.Ps,value:0}),_.L("design:type",Number)],$w.prototype,"richGridItemsPerRow",void 0);_.m([_.K(),_.L("design:type",Object)],$w.prototype,"gridStateActionMap",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],$w.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],$w.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],$w.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],$w.prototype,"ytdReduxBehavior",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],$w.prototype,"modernTypography",void 0);_.m([_.Gb("data","richGridItemsPerRow"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],$w.prototype,"updateRichGridDestinationButtonsVisibility",null);
_.m([_.N({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],$w);
_.I($w,"ytd-destination-shelf-renderer",function(){if(kX6!==void 0)return kX6;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return kX6=g},{mode:1});var HF6;var j0=function(){return _.a.apply(this,arguments)||this};
_.f(j0,_.a);j0.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"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],j0.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],j0.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],j0.prototype,"data",void 0);_.m([_.N({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],j0);
_.I(j0,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(HF6!==void 0)return HF6;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return HF6=g},{mode:1});var pIb;var AT=function(){var g=_.a.apply(this,arguments)||this;g.disableAnimation=!1;g.isSlimlineSurvey=!1;g.isSlimlineSurveyFollowUp=!1;g.isShortsStyle=!1;return g};
_.f(AT,_.a);AT.prototype.onTap=function(g){g.preventDefault();this.data&&_.Sh(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.hx.Object.defineProperties(AT.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 g,r,E,B,w;return((g=this.data)==null?0:g.checked)?(r=this.data)==null?void 0:(E=r.onStateIcon)==null?void 0:E.iconType:(B=this.data)==null?void 0:(w=B.defaultStateIcon)==null?void 0:w.iconType}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],AT.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],AT.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],AT.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],AT.prototype,"disableAnimation",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],AT.prototype,"isSlimlineSurvey",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],AT.prototype,"isSlimlineSurveyFollowUp",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],AT.prototype,"isShortsStyle",void 0);_.m([_.W("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],AT.prototype,"isAnimatedIcon",null);
_.m([_.W("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.L("design:type",Number),_.L("design:paramtypes",[])],AT.prototype,"iconSize",null);_.m([_.W("isShortsStyle"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],AT.prototype,"isDarkTheme",null);_.m([_.W("data.checked"),_.L("design:type",Object),_.L("design:paramtypes",[])],AT.prototype,"icon",null);_.m([_.N({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],AT);
_.I(AT,"ytd-rating-survey-option-renderer",function(){if(pIb!==void 0)return pIb;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return pIb=g},{mode:2});var Ys4;var bJ=function(){var g=_.a.apply(this,arguments)||this;g.firstResponseText=null;g.lastResponseText=null;g.selectedNonStarOption=null;g.hideOptions=!1;g.hideUndoButton=!0;g.disableAnimation=!1;g.showResponseRangeText=!1;g.selectedRatingIndex=-1;g.isSlimlineSurvey=!1;g.isSlimlineSurveyFollowUp=!1;g.isShortsStyle=!1;g.slimlineSurveyRatingSelectedIndex=-1;return g};
_.f(bJ,_.a);_.S=bJ.prototype;_.S.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.S.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.S.onOptionChange=function(g,r){var E=this;g=r.onStateIcon&&r.defaultStateIcon&&r.onStateIcon.iconType===r.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(M,u){M.responseText===r.responseText?E.isSlimlineSurvey?(E.selectedRatingIndex=u,E.ytdReduxBehavior.dispatch(Qhw(u))):(E.setSurveyOptionValue(u,!0,"checked"),E.setSurveyOptionValue(u,!0,"selected")):(E.setSurveyOptionValue(u,!1,"checked"),E.setSurveyOptionValue(u,
!1,"selected"))});
else if(g)this.selectedNonStarOption=r,this.hideOptions=!0;else{var B=this.ytRendererBehavior.getSimpleString(r.responseText),w=!0;this.getOptionRenderers().forEach(function(M,u){E.setSurveyOptionValue(u,w,"checked");E.setSurveyOptionValue(u,!1,"selected");E.ytRendererBehavior.getSimpleString(M.responseText)===B&&(w=!1,E.setSurveyOptionValue(u,!0,"selected"))})}g=r.responseEndpoint;
var O;r.followUpCommand&&(O=_.n(r.followUpCommand,v4n));this.isSlimlineSurvey?(this.resetComponent(),_.OS(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.OS(this.hostElement,"ytd-inline-survey-rating-select-action",[g,O])};
_.S.showSelectedOption=function(){var g=this;_.F6.addJob(function(){var r=g.getOptionRenderers()[g.slimlineSurveyRatingSelectedIndex];g.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),r)},8,100)};
_.S.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(g){var r;return(r=_.n(g,T5T))!=null?r:{}}):[]};
_.S.onUndoClick=function(){this.resetComponent();_.OS(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.S.setSurveyOptionValue=function(g,r,E){this.notifyPath("data.ratings."+g+".ratingSurveyOptionRenderer."+E);this.set("data.ratings."+g+".ratingSurveyOptionRenderer."+E,r)};
_.S.resetComponent=function(){var g=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var r=this.getOptionRenderers(),E,B;this.firstResponseText=(B=(E=r[0])==null?void 0:E.responseText)!=null?B:null;var w,O;this.lastResponseText=(O=(w=r[r.length-1])==null?void 0:w.responseText)!=null?O:null;r.forEach(function(M,u){g.setSurveyOptionValue(u,!1,"checked");g.setSurveyOptionValue(u,!1,"selected")})};
_.hx.Object.defineProperties(bJ.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
bJ.prototype.onOptionChange=bJ.prototype.onOptionChange;bJ.prototype.dataChanged=bJ.prototype.dataChanged;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],bJ.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],bJ.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],bJ.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],bJ.prototype,"data",void 0);
_.m([_.K(),_.L("design:type",Object)],bJ.prototype,"firstResponseText",void 0);_.m([_.K(),_.L("design:type",Object)],bJ.prototype,"lastResponseText",void 0);_.m([_.K(),_.L("design:type",Object)],bJ.prototype,"selectedNonStarOption",void 0);_.m([_.K(),_.L("design:type",Object)],bJ.prototype,"hideOptions",void 0);_.m([_.K(),_.L("design:type",Object)],bJ.prototype,"hideUndoButton",void 0);_.m([_.K(),_.L("design:type",Object)],bJ.prototype,"disableAnimation",void 0);
_.m([_.K(),_.L("design:type",Object)],bJ.prototype,"showResponseRangeText",void 0);_.m([_.K(),_.L("design:type",Object)],bJ.prototype,"selectedRatingIndex",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],bJ.prototype,"isSlimlineSurvey",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],bJ.prototype,"isSlimlineSurveyFollowUp",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],bJ.prototype,"isShortsStyle",void 0);_.m([_.K({selector:function(g){return g.ui.slimlineSurveyRatingSelectedIndex}}),
_.L("design:type",Object)],bJ.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.m([_.W("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],bJ.prototype,"isSingleSelect",null);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],bJ.prototype,"dataChanged",null);
_.m([_.ob("ytd-rating-survey-option-changed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],bJ.prototype,"onOptionChange",null);_.m([_.N({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],bJ);
_.I(bJ,"ytd-rating-survey-renderer",function(){if(Ys4!==void 0)return Ys4;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Ys4=g},{mode:1});var RAn;var n6Z;var sum;var V4o=(n0.FIRSTDAYOFWEEK+1)%7,fMI=function(g,r,E,B){var w="";if(B.selection&&mKP(B.selection))p0(g,B.selection)&&(w+=" selected");else if(B.selection&&cJJ(B.selection)){var O=B.selection.selectionState||"START_DATE";p0(g,B.selection.start)&&(w+=" period-start ",O==="START_DATE"&&(w+="selected"));p0(g,B.selection.end)&&(w+=" period-end ",O==="END_DATE"&&(w+="selected"));Yj(g,B.selection.start)||Yj(B.selection.end,g)||(w+=" highlighted")}if(Yj(r,B.start)||Yj(B.end,r))w+=" disabled";B.circleToday&&
p0(r,E)&&(w+=" today");return w};var JT=function(){return _.a.apply(this,arguments)||this};
_.f(JT,_.a);_.S=JT.prototype;_.S.attached=function(){var g=this;_.Lk(this,function(){g.JSC$13952_calendarMain.scrollHeight>0&&(g.calendarConfig.selection?g.scrollToDate(iQc(g.calendarConfig.selection)):g.scrollToDate(g.calendarConfig.end))})};
_.S.updateSelection=function(g){g=hyt(Object.assign({},this.calendarConfig,{selection:g}),fMI);this.splice.apply(this,["renderData.months",0,g.length].concat(_.jW(g)))};
_.S.scrollToDate=function(g){this.renderData&&(g=ZQL(g,this.renderData),g!==void 0&&this.JSC$13952_calendarMain.scrollToIndex(g))};
_.S.scrollToNextMonth=function(){this.JSC$13952_calendarMain.scrollToIndex(this.JSC$13952_calendarMain.firstVisibleIndex+1)};
_.S.scrollToPrevMonth=function(){this.JSC$13952_calendarMain.firstVisibleIndex===0&&this.JSC$13952_calendarMain.scrollTo(0,0);this.JSC$13952_calendarMain.scrollToIndex(this.JSC$13952_calendarMain.firstVisibleIndex-1)};
_.S.handleDayClick=function(g){_.OS(this.hostElement,"ytd-calendar-date-clicked",[g.model.day.date])};
_.S.handleDayMouseDown=function(g){g.preventDefault();_.OS(this.hostElement,"ytd-calendar-date-mousedown",[g.model.day.date])};
_.S.handleDayMouseUp=function(g){_.OS(this.hostElement,"ytd-calendar-date-mouseup",[g.model.day.date])};
_.S.handleDayMouseEnter=function(g){g.preventDefault();_.OS(this.hostElement,"ytd-calendar-date-mouseenter",[g.model.day.date])};
_.S.handleDayMouseLeave=function(g){_.OS(this.hostElement,"ytd-calendar-date-mouseleave",[g.model.day.date])};
_.hx.Object.defineProperties(JT.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var g=this.calendarConfig,r=fMI;r=r===void 0?fMI:r;for(var E=[],B=0;B<7;B++)E.push(n0.NARROWWEEKDAYS[(B+V4o)%7]);return{months:hyt(g,r),daysOfWeekLabel:E}}}});
_.m([_.K(),_.L("design:type",Object)],JT.prototype,"calendarConfig",void 0);_.m([_.zb("#calendar-main"),_.L("design:type",Object)],JT.prototype,"JSC$13952_calendarMain",void 0);_.m([_.W("calendarConfig"),_.L("design:type",Object),_.L("design:paramtypes",[])],JT.prototype,"renderData",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],JT);
_.I(JT,"ytd-scrollable-calendar",function(){if(sum!==void 0)return sum;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return sum=g},{mode:2});var $5A;var jun;var PO=function(){var g=_.a.apply(this,arguments)||this;g.hideCharCounter=!1;g.hideLabel=!1;g.noLabelFloat=!1;g.autoValidate=!0;g.invalid=!1;g.disabled=!1;g.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return g};
_.f(PO,_.a);_.S=PO.prototype;_.S.reset=function(g){this.value=g&&this.data?this.data.value=g:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.S.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.S.focusTextInput=function(){this.input.focus()};
_.S.validate=function(){if(!this.autoValidate)return!this.invalid;if(!this.input)return!1;if(this.isMultiline&&this.data&&this.value!=null&&this.data.validValueRegexp&&!RegExp("^"+this.data.validValueRegexp+"$").test(this.input.value))return this.input.autoValidate=!1,this.invalid=!0,!1;this.input.autoValidate=!0;return this.input.validate()};
_.S.valueChanged=function(){var g,r;if(((g=this.data)==null?0:g.value)||((r=this.data)==null?void 0:r.value)==="")this.value=this.data.value;else{var E;((E=this.data)==null?void 0:E.value)!==void 0||this.value||(this.value="")}};
_.S.computeLabel=function(g,r){return r?"":_.Vp(g)};
_.S.computeAriaLabel=function(g,r){return r?_.Vp(g):""};
_.S.computeErrorMessage=function(g,r,E,B){!g&&r?g=E||this.strings.REQUIRED_LABEL:(g=_.Vp(B),g=_.lB(g,"&")?"document"in _.ED?xmc(g):aNJ(g):g);return g};
_.S.computeType=function(g){return g==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.S.onTextValueChanged=function(g){this.value=g.detail.value;var r;(r=this.onValueChanged)==null||r.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.S.handleUpdateTextInputFormFieldRendererCommand=function(g){(g=_.n(g,HVn))&&this.data&&this.data.id===g.id&&(g.invalid!==void 0&&(this.invalid=g.invalid),g.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",g.invalidValueErrorMessage))};
_.S.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.x8("value-changed",this.value))};
_.S.updateInvalidFromBinding=function(g){this.invalid=g.detail.value};
_.hx.Object.defineProperties(PO.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var g;return!((g=this.data)==null||!g.isMultiline)}}});
PO.prototype.valueChangedForBinding=PO.prototype.valueChangedForBinding;PO.prototype.valueChanged=PO.prototype.valueChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],PO.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],PO.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],PO.prototype,"ytActionHandlerBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],PO.prototype,"data",void 0);_.m([_.K(),_.L("design:type",String)],PO.prototype,"value",void 0);_.m([_.K(),_.L("design:type",String)],PO.prototype,"pattern",void 0);_.m([_.K(),_.L("design:type",String)],PO.prototype,"errorMessage",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],PO.prototype,"componentStyle",void 0);_.m([_.K(),_.L("design:type",Object)],PO.prototype,"hideCharCounter",void 0);
_.m([_.K(),_.L("design:type",Object)],PO.prototype,"hideLabel",void 0);_.m([_.K(),_.L("design:type",Object)],PO.prototype,"noLabelFloat",void 0);_.m([_.K(),_.L("design:type",Function)],PO.prototype,"onValueChanged",void 0);_.m([_.K(),_.L("design:type",Boolean)],PO.prototype,"isMultilineOverride",void 0);_.m([_.K(),_.L("design:type",Object)],PO.prototype,"autoValidate",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],PO.prototype,"invalid",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],PO.prototype,"disabled",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],PO.prototype,"enableOverlayTheme",void 0);_.m([_.K({value:{REQUIRED_LABEL:_.zn("REQUIRED_LABEL",void 0,"Required")}}),_.L("design:type",Object)],PO.prototype,"strings",void 0);_.m([_.zb("#input"),_.L("design:type",Object)],PO.prototype,"input",void 0);
_.m([_.W("data","isMultilineOverride"),_.L("design:type",Object),_.L("design:paramtypes",[])],PO.prototype,"isMultiline",null);_.m([_.Yk("data.value"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],PO.prototype,"valueChanged",null);_.m([_.Gb("value"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],PO.prototype,"valueChangedForBinding",null);_.m([_.e3({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],PO);
_.I(PO,"yt-text-input-form-field-renderer",function(){if(jun===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;$5A===void 0&&($5A=document.createElement("template"));var B=$5A;E.call(r,B.content.cloneNode(!0),g.content.firstChild);jun=g}g=jun;return g},{mode:2});var tT=function(){var g=_.a.apply(this,arguments)||this;g.data=void 0;g.selectionState="START_DATE";g.isStartDateInvalid=!1;g.isEndDateInvalid=!1;g.autoapply=!1;g.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 g};
_.f(tT,_.a);_.S=tT.prototype;_.S.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.applyButton":{id:"apply-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.S.focus=function(){this.startDateInput.focus()};
_.S.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:Rz(this.data.selection.start),end:Rz(this.data.selection.end)})};
_.S.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.S.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.MM(this.selectionState)}};
_.S.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.S.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.S.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.S.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var g=this.calendar.calendarConfig,r=g.end;g=vZP({start:g.start,end:this.endDate||r},this.startDateInput.value||"");this.isStartDateInvalid=!g.isValid;g.isValid&&(g=g.value,this.selection=this.endDate?{start:g,end:this.endDate}:g,this.calendar.scrollToDate(g));this.updateInvalidState()}};
_.S.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var g=this.calendar.calendarConfig,r=g.start;g=vZP({start:this.startDate||r,end:g.end},this.endDateInput.value||"");this.isEndDateInvalid=!g.isValid;g.isValid&&(g=g.value,this.selection={start:this.startDate,end:g},this.calendar.scrollToDate(g));this.updateInvalidState()}};
_.S.handleCalendarDateClicked=function(g){var r=this.selection&&iQc(this.selection),E=this.selection&&LPJ(this.selection);r&&!Yj(g,r)&&this.selectionState==="END_DATE"?(this.selection={start:r,end:g},this.selectionState="START_DATE"):(E&&!Yj(E,g)?this.selection={start:g,end:E}:this.selection=g,this.selectionState="END_DATE")};
_.S.handleCalendarDateMouseDown=function(g){this.selection&&!mKP(this.selection)&&(this.dragPivot=p0(g,this.selection.start)?this.selection.end:p0(g,this.selection.end)?this.selection.start:g)};
_.S.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.S.handleCalendarDateMouseEnter=function(g){this.dragPivot&&(this.selection={start:function(r,E){return Yj(r,E)?r:E}(this.dragPivot,g),
end:function(r,E){return Yj(r,E)?E:r}(this.dragPivot,g)},this.dragPivot||(this.selectionState="START_DATE"))};
_.S.handleCalendarDateMouseLeave=function(){};
_.S.handleCalendarSubmitDateRange=function(){this.selection&&!mKP(this.selection)&&_.OS(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.S.updateInvalidState=function(){var g=function(r,E){E?r.setAttribute("invalid",""):r.removeAttribute("invalid")};
g(this.startDateInput,this.isStartDateInvalid);g(this.endDateInput,this.isEndDateInvalid)};
_.S.updateDateStrings=function(){this.selection&&(mKP(this.selection)?I5c(this.selection):(I5c(this.selection.start),I5c(this.selection.end)))};
_.S.updateCalendarSelection=function(g){this.calendar.updateSelection(Object.assign({},g,{selectionState:this.selectionState}))};
_.S.updateIsStartDateInvalidFromBinding=function(g){this.isStartDateInvalid=g.detail.value};
_.S.updateIsEndDateInvalidFromBinding=function(g){this.isEndDateInvalid=g.detail.value};
_.S.updateStartDateStringFromBinding=function(){};
_.S.updateEndDateStringFromBinding=function(){};
_.hx.Object.defineProperties(tT.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:Rz(this.data.dateRangeStart),end:Rz(this.data.dateRangeEnd),selection:{start:Rz(this.data.selection.start),end:Rz(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&iQc(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&LPJ(this.selection)}}});
tT.prototype.resetTextboxes=tT.prototype.resetTextboxes;tT.prototype.observeSelection=tT.prototype.observeSelection;tT.prototype.dataChanged=tT.prototype.dataChanged;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],tT.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],tT.prototype,"ytRendererstamperBehavior",void 0);_.m([_.zb("#calendar"),_.L("design:type",Object)],tT.prototype,"calendar",void 0);
_.m([_.zb("#start-date"),_.L("design:type",Object)],tT.prototype,"startDateInput",void 0);_.m([_.zb("#end-date"),_.L("design:type",Object)],tT.prototype,"endDateInput",void 0);_.m([_.K(),_.L("design:type",Object)],tT.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],tT.prototype,"selection",void 0);_.m([_.K(),_.L("design:type",String)],tT.prototype,"selectionState",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],tT.prototype,"calendarConfig",null);
_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],tT.prototype,"errorMessage",null);_.m([_.W("selection"),_.L("design:type",Object),_.L("design:paramtypes",[])],tT.prototype,"startDate",null);_.m([_.W("selection"),_.L("design:type",Object),_.L("design:paramtypes",[])],tT.prototype,"endDate",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],tT.prototype,"dataChanged",null);
_.m([_.Gb("selection","selectionState"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],tT.prototype,"observeSelection",null);_.m([_.Gb("selectionState"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],tT.prototype,"resetTextboxes",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],tT);
_.I(tT,"ytd-date-period-picker-renderer",function(){if(n6Z!==void 0)return n6Z;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return n6Z=g},{mode:1});var FW=function(){var g=_.a.apply(this,arguments)||this;var r={};g.actionMap=(r["ytd-date-period-picker-apply"]="handleDateRangeUpdated",r);return g};
_.f(FW,_.a);FW.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
FW.prototype.handleDateRangeUpdated=function(){};
_.m([_.K(),_.L("design:type",Object)],FW.prototype,"data",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],FW.prototype,"actionHandlerBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],FW.prototype,"rendererstamperBehavior",void 0);_.m([_.N({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],FW);
_.I(FW,"ytd-report-history-section-header-renderer",function(){if(RAn!==void 0)return RAn;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return RAn=g},{mode:1});var AdU;var bFT;var JdD;var e0=function(){return _.a.apply(this,arguments)||this};
_.f(e0,_.a);_.hx.Object.defineProperties(e0.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var g,r;return((g=this.data)==null?0:(r=g.icon)==null?0:r.iconType)?_.Dh(this.data.icon.iconType):""}}});
_.m([_.K(),_.L("design:type",Object)],e0.prototype,"data",void 0);_.m([_.W("data"),_.L("design:type",String),_.L("design:paramtypes",[])],e0.prototype,"icon",null);_.m([_.N({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],e0);
_.I(e0,"ytd-report-history-table-text-cell-renderer",function(){if(JdD!==void 0)return JdD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return JdD=g},{mode:1});var WO=function(){return _.a.apply(this,arguments)||this};
_.f(WO,_.a);WO.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],WO.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],WO.prototype,"data",void 0);_.m([_.N({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],WO);
_.I(WO,"ytd-report-history-table-reason-cell-renderer",function(){if(bFT!==void 0)return bFT;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return bFT=g},{mode:1});var CK=function(){return _.a.apply(this,arguments)||this};
_.f(CK,_.a);CK.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"}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],CK.prototype,"rendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],CK.prototype,"data",void 0);_.m([_.N({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],CK);
_.I(CK,"ytd-report-history-table-cell-renderer",function(){if(AdU!==void 0)return AdU;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);
return AdU=g},{mode:1});var Ptn;var KK=function(){var g=_.a.apply(this,arguments)||this;g.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 g};
_.f(KK,_.a);KK.prototype.onDataChanged=function(){var g;if((g=this.data)==null?0:g.style)this.componentStyle=this.getStyleName(this.data.style)};
KK.prototype.getCellForColumn=function(g){return this.cells.find(function(r){var E;return((E=_.n(r==null?void 0:r.cell,E$4)||_.n(r==null?void 0:r.cell,ren))==null?void 0:E.columnId)===g.type})};
KK.prototype.getClassForColumn=function(g){switch(g){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
KK.prototype.getStyleName=function(g){switch(g){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.hx.Object.defineProperties(KK.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var g;return(((g=this.data)==null?void 0:g.cells)||[]).map(function(r){return _.n(r,g$n)})}}});
KK.prototype.onDataChanged=KK.prototype.onDataChanged;_.m([_.K(),_.L("design:type",Object)],KK.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Array)],KK.prototype,"columnRenderData",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],KK.prototype,"componentStyle",void 0);_.m([_.W("data"),_.L("design:type",Array),_.L("design:paramtypes",[])],KK.prototype,"cells",null);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],KK.prototype,"onDataChanged",null);_.m([_.N({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],KK);
_.I(KK,"ytd-report-history-table-row-renderer",function(){if(Ptn!==void 0)return Ptn;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Ptn=g},{mode:1});var tFn;var FOw;var dKS={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},T6Q={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var xw=function(){return _.a.apply(this,arguments)||this};
_.f(xw,_.a);xw.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"}}}}}};
xw.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.hx.Object.defineProperties(xw.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?0:g.columns)?w9l(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return Eet(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var g=this.tableSpec,r=dKS;r=r===void 0?T6Q:r;r=BoL(g.columnDimensions,g.columnsToShow||[],r);g=0;r=_.U(r);for(var E=r.next();!E.done;E=r.next())E=E.value,g+=E.minWidth+E.paddingLeft+E.paddingRight;return g}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.m([_.P(_.Xe),_.L("design:type",Object)],xw.prototype,"ytContinuationHandlerBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],xw.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],xw.prototype,"data",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],xw.prototype,"tableSpec",null);_.m([_.W("tableSpec"),_.L("design:type",Array),_.L("design:paramtypes",[])],xw.prototype,"columnRenderData",null);
_.m([_.W("tableSpec"),_.L("design:type",Number),_.L("design:paramtypes",[])],xw.prototype,"totalMinWidth",null);_.m([_.W("totalMinWidth"),_.L("design:type",String),_.L("design:paramtypes",[])],xw.prototype,"tableWidthStyle",null);_.m([_.N({is:"ytd-table-renderer",disableElementRegistration:!0})],xw);
_.I(xw,"ytd-table-renderer",function(){if(FOw!==void 0)return FOw;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return FOw=g},{mode:1});var ar=function(){return _.a.apply(this,arguments)||this};
_.f(ar,_.a);ar.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}}}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],ar.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ar.prototype,"data",void 0);_.m([_.N({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],ar);
_.I(ar,"ytd-report-reason-history-modal-renderer",function(){if(tFn!==void 0)return tFn;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return tFn=g},{mode:1});var eA6;var WO4;var CtT;var XW=function(){return _.a.apply(this,arguments)||this};
_.f(XW,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],XW.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],XW.prototype,"data",void 0);_.m([_.N({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],XW);
_.I(XW,"ytd-profile-column-stats-entry-renderer",function(){if(CtT!==void 0)return CtT;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return CtT=g},{mode:1});var KO6;var NB=function(){return _.a.apply(this,arguments)||this};
_.f(NB,_.a);NB.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],NB.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],NB.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],NB.prototype,"data",void 0);_.m([_.N({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],NB);
_.I(NB,"ytd-profile-column-stats-renderer",function(){if(KO6!==void 0)return KO6;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return KO6=g},{mode:1});var x5A;var Ir=function(){return _.a.apply(this,arguments)||this};
_.f(Ir,_.a);_.hx.Object.defineProperties(Ir.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)==null||!g.useThumbnailSize)return 80;var r,E;g=(r=this.data)==null?void 0:(E=r.thumbnail)==null?void 0:E.thumbnails;var B;return g&&((B=g[0])==null?void 0:B.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)==null||!g.useThumbnailSize)return 80;var r,E;g=(r=this.data)==null?void 0:(E=r.thumbnail)==null?void 0:E.thumbnails;var B;return g&&((B=g[0])==null?void 0:B.height)||80}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Ir.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Ir.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],Ir.prototype,"componentStyle",void 0);_.m([_.W("data.useThumbnailSize"),_.L("design:type",Object),_.L("design:paramtypes",[])],Ir.prototype,"thumbnailWidth",null);
_.m([_.W("data.useThumbnailSize"),_.L("design:type",Object),_.L("design:paramtypes",[])],Ir.prototype,"thumbnailHeight",null);_.m([_.N({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],Ir);
_.I(Ir,"ytd-profile-column-user-info-renderer",function(){if(x5A!==void 0)return x5A;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return x5A=g},{mode:1});var mQ=function(){return _.a.apply(this,arguments)||this};
_.f(mQ,_.a);mQ.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]]"}}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],mQ.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],mQ.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],mQ.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],mQ.prototype,"componentStyle",void 0);_.m([_.N({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],mQ);
_.I(mQ,"ytd-profile-column-renderer",function(){if(WO4!==void 0)return WO4;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return WO4=g},{mode:1});var cO=function(){var g=_.a.apply(this,arguments)||this;g.componentStyle="NON_CENTERED_PROFILE";return g};
_.f(cO,_.a);cO.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
cO.prototype.getIcon=function(g){return g?"settings:"+g.toLowerCase():null};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],cO.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],cO.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],cO.prototype,"data",void 0);_.m([_.N({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],cO);
_.I(cO,"ytd-page-introduction-renderer",function(){if(eA6!==void 0)return eA6;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return eA6=g},{mode:1});var aMU;var iJ=function(){return _.a.apply(this,arguments)||this};
_.f(iJ,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],iJ.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],iJ.prototype,"data",void 0);_.m([_.N({is:"ytd-report-description-renderer",disableElementRegistration:!0})],iJ);
_.I(iJ,"ytd-report-description-renderer",function(){if(aMU!==void 0)return aMU;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return aMU=g},{mode:1});var XI6;var NfD;var LK=function(){return _.a.apply(this,arguments)||this};
_.f(LK,_.a);LK.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],LK.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],LK.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],LK.prototype,"data",void 0);_.m([_.N({is:"ytd-video-report-renderer",disableElementRegistration:!0})],LK);
_.I(LK,"ytd-video-report-renderer",function(){if(NfD!==void 0)return NfD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return NfD=g},{mode:1});var IMb;_.ek("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.ek("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var V8=function(){return _.a.apply(this,arguments)||this};
_.f(V8,_.a);V8.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]]"}}}}}};
V8.prototype.computeMessageStyle=function(g){return g};
V8.prototype.computeButtonOverride=function(g){var r;if((g==null?0:(r=g.style)==null?0:r.value)&&g.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],V8.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],V8.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],V8.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],V8.prototype,"shelf",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],V8.prototype,"panel",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.L("design:type",Boolean)],V8.prototype,"componentStyle",void 0);_.m([_.K({computed:"computeButtonOverride(data)"}),_.L("design:type",Object)],V8.prototype,"buttonOverride",void 0);_.m([_.N({is:"ytd-message-renderer",disableElementRegistration:!0})],V8);
_.I(V8,"ytd-message-renderer",function(){if(IMb!==void 0)return IMb;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return IMb=g},{mode:1});var hT=function(){return _.a.apply(this,arguments)||this};
_.f(hT,_.a);hT.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"}}}};
hT.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
hT.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.hx.Object.defineProperties(hT.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var g,r;return!!(((g=this.data)==null?0:g.header)&&((r=this.data)==null?0:r.table))}}});
hT.prototype.onRequestError=hT.prototype.onRequestError;_.m([_.P(_.Xe),_.L("design:type",Object)],hT.prototype,"ytContinuationHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],hT.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],hT.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],hT.prototype,"data",void 0);
_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],hT.prototype,"isUnifiedReportHistory",null);_.m([_.ob("yt-service-request-error"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],hT.prototype,"onRequestError",null);_.m([_.N({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],hT);
_.I(hT,"ytd-report-history-section-renderer",function(){if(XI6!==void 0)return XI6;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return XI6=g},{mode:1});var m5T;var ZV=function(){var g=_.a.apply(this,arguments)||this;g.answerExpanded=!1;return g};
_.f(ZV,_.a);ZV.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ZV.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],ZV.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ZV.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],ZV.prototype,"answerExpanded",void 0);_.m([_.N({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],ZV);
_.I(ZV,"ytd-handles-claiming-faq-renderer",function(){if(m5T!==void 0)return m5T;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return m5T=g},{mode:1});var cdn;var iFU=function(){return _.a.apply(this,arguments)||this};
_.f(iFU,_.a);_.m([_.K(),_.L("design:type",Object)],iFU.prototype,"data",void 0);_.m([_.N({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],iFU);
_.I(iFU,"ytd-handles-claiming-faq-section-renderer",function(){if(cdn!==void 0)return cdn;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return cdn=g},{mode:1});var LOU;var y8=function(){var g=_.a.apply(this,arguments)||this;g.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";g.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";g.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";g.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";g.leftSquiggly=g.leftSquigglyLight;g.rightSquiggly=g.rightSquigglyLight;
g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};g.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return g};
_.f(y8,_.a);_.S=y8.prototype;_.S.updateLeftSquigglyStyle=function(){_.ua(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.S.updateRightSquigglyStyle=function(){_.ua(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.S.ready=function(){var g=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(g)};
_.S.onDarkModeToggledAction=function(g){g!==this.isDarkTheme&&(this.set("isDarkTheme",g),g?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.S.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
y8.prototype.updateRightSquigglyStyle=y8.prototype.updateRightSquigglyStyle;y8.prototype.updateLeftSquigglyStyle=y8.prototype.updateLeftSquigglyStyle;_.m([_.K(),_.L("design:type",Object)],y8.prototype,"data",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],y8.prototype,"isDarkTheme",void 0);_.m([_.K(),_.L("design:type",String)],y8.prototype,"leftSquiggly",void 0);_.m([_.K(),_.L("design:type",String)],y8.prototype,"rightSquiggly",void 0);
_.m([_.Gb("leftSquiggly"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],y8.prototype,"updateLeftSquigglyStyle",null);_.m([_.Gb("rightSquiggly"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],y8.prototype,"updateRightSquigglyStyle",null);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],y8.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],y8.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],y8.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],y8.prototype,"actionButtonOverride",void 0);_.m([_.N({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],y8);
_.I(y8,"ytd-handles-claiming-header-renderer",function(){if(LOU!==void 0)return LOU;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return LOU=g},{mode:1});var VFn;var vO=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};g.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";g.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";g.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";g.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
g.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";g.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";g.image0SquigglyBackground=g.image0LightSquigglyBackground;g.image1SquigglyBackground=g.image1LightSquigglyBackground;g.image3SquigglyBackground=g.image3LightSquigglyBackground;return g};
_.f(vO,_.a);_.S=vO.prototype;_.S.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.S.onDataChanged=function(){this.updateTitleAndImages()};
_.S.onThemeChanged=function(){this.updateTitleAndImages()};
_.S.onDarkModeToggledAction=function(g){g!==this.isDarkTheme&&(this.isDarkTheme=g)};
_.S.updateImage0SquigglyBackground=function(){_.ua(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.S.updateImage1SquigglyBackground=function(){_.ua(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.S.updateImage3SquigglyBackground=function(){_.ua(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.S.updateTitleAndImages=function(){var g,r;((g=this.data)==null?void 0:(r=g.titleImages)==null?void 0:r.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))};
vO.prototype.updateImage3SquigglyBackground=vO.prototype.updateImage3SquigglyBackground;vO.prototype.updateImage1SquigglyBackground=vO.prototype.updateImage1SquigglyBackground;vO.prototype.updateImage0SquigglyBackground=vO.prototype.updateImage0SquigglyBackground;vO.prototype.onThemeChanged=vO.prototype.onThemeChanged;vO.prototype.onDataChanged=vO.prototype.onDataChanged;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],vO.prototype,"ytActionHandlerBehavior",void 0);
_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],vO.prototype,"isDarkTheme",void 0);_.m([_.K(),_.L("design:type",Object)],vO.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],vO.prototype,"title0",void 0);_.m([_.K(),_.L("design:type",Object)],vO.prototype,"title1",void 0);_.m([_.K(),_.L("design:type",Object)],vO.prototype,"title2",void 0);_.m([_.K(),_.L("design:type",Object)],vO.prototype,"title3",void 0);
_.m([_.K(),_.L("design:type",Object)],vO.prototype,"title4",void 0);_.m([_.K(),_.L("design:type",Object)],vO.prototype,"image0",void 0);_.m([_.K(),_.L("design:type",Object)],vO.prototype,"image1",void 0);_.m([_.K(),_.L("design:type",Object)],vO.prototype,"image2",void 0);_.m([_.K(),_.L("design:type",Object)],vO.prototype,"image3",void 0);_.m([_.K(),_.L("design:type",Object)],vO.prototype,"image4",void 0);_.m([_.K(),_.L("design:type",String)],vO.prototype,"image0SquigglyBackground",void 0);
_.m([_.K(),_.L("design:type",String)],vO.prototype,"image1SquigglyBackground",void 0);_.m([_.K(),_.L("design:type",String)],vO.prototype,"image3SquigglyBackground",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],vO.prototype,"onDataChanged",null);_.m([_.Gb("isDarkTheme"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],vO.prototype,"onThemeChanged",null);
_.m([_.Gb("image0SquigglyBackground"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],vO.prototype,"updateImage0SquigglyBackground",null);_.m([_.Gb("image1SquigglyBackground"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],vO.prototype,"updateImage1SquigglyBackground",null);
_.m([_.Gb("image3SquigglyBackground"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],vO.prototype,"updateImage3SquigglyBackground",null);_.m([_.N({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],vO);
_.I(vO,"ytd-handles-claiming-title-images-section-renderer",function(){if(VFn!==void 0)return VFn;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return VFn=g},{mode:1});var hAz;var dd=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return g};
_.f(dd,_.a);dd.prototype.ready=function(){var g=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(g)};
dd.prototype.onDarkModeToggledAction=function(g){g!==this.isDarkTheme&&this.set("isDarkTheme",g)};
dd.prototype.onCopyButtonClick=function(){var g=this,r,E,B;return _.q(function(w){return(r=g.data)!=null&&r.primaryChannelUrl?_.D(w,navigator.clipboard.writeText(((E=g.data)==null?0:E.encodedChannelUrl)?g.data.encodedChannelUrl:"https://"+_.Vp((B=g.data)==null?void 0:B.primaryChannelUrl)),0):w.jumpTo(0)})};
_.m([_.K(),_.L("design:type",Object)],dd.prototype,"data",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],dd.prototype,"ytComponentBehavior",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],dd.prototype,"isDarkTheme",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],dd.prototype,"ytActionHandlerBehavior",void 0);_.m([_.N({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],dd);
_.I(dd,"ytd-handles-claiming-update-social-renderer",function(){if(hAz!==void 0)return hAz;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return hAz=g},{mode:1});var ZFw;var TO=function(){var g=_.a.apply(this,arguments)||this;g.JSC$14046_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";g.JSC$14046_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};g.squigglyBackground=g.JSC$14046_squigglyBackgroundLight;return g};
_.f(TO,_.a);TO.prototype.updateSquigglyBackgroundStyle=function(){_.ua(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
TO.prototype.ready=function(){var g=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",g);this.squigglyBackground=g?this.JSC$14046_squigglyBackgroundDark:this.JSC$14046_squigglyBackgroundLight};
TO.prototype.onDarkModeToggledAction=function(g){g!==this.isDarkTheme&&(this.set("isDarkTheme",g),this.squigglyBackground=g?this.JSC$14046_squigglyBackgroundDark:this.JSC$14046_squigglyBackgroundLight)};
TO.prototype.updateSquigglyBackgroundStyle=TO.prototype.updateSquigglyBackgroundStyle;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],TO.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],TO.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],TO.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],TO.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],TO.prototype,"isDarkTheme",void 0);_.m([_.K(),_.L("design:type",String)],TO.prototype,"squigglyBackground",void 0);_.m([_.Gb("squigglyBackground"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],TO.prototype,"updateSquigglyBackgroundStyle",null);_.m([_.N({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],TO);
_.I(TO,"ytd-handles-claiming-vanity-info-renderer",function(){if(ZFw!==void 0)return ZFw;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return ZFw=g},{mode:1});var ydD;var gS=function(){var g=_.a.apply(this,arguments)||this;g.JSC$14049_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";g.JSC$14049_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";g.squigglyBackground=g.JSC$14049_squigglyBackgroundLight;g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return g};
_.f(gS,_.a);_.S=gS.prototype;_.S.ready=function(){var g=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(g)};
_.S.onDarkModeToggledAction=function(g){g!==this.isDarkTheme&&(this.set("isDarkTheme",g),this.squigglyBackground=g?this.JSC$14049_squigglyBackgroundDark:this.JSC$14049_squigglyBackgroundLight)};
_.S.updateSquigglyBackgroundStyle=function(){_.ua(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.S.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.S.detached=function(){this.stop()};
_.S.stop=function(){this.playerElement.stop()};
_.S.setupVideoPlayer=function(){var g=this,r,E;return _.q(function(B){r=g.data.videoId;E="http://i1.ytimg.com/vi/"+r+"/maxresdefault.jpg";g.playerElement.loadVideoWithPlayerVars({video_id:r,iurlhq:E});_.Q3(B)})};
gS.prototype.onDataChanged=gS.prototype.onDataChanged;gS.prototype.updateSquigglyBackgroundStyle=gS.prototype.updateSquigglyBackgroundStyle;_.m([_.K({value:!1}),_.L("design:type",Boolean)],gS.prototype,"isDarkTheme",void 0);_.m([_.K(),_.L("design:type",String)],gS.prototype,"squigglyBackground",void 0);_.m([_.zb("#player"),_.L("design:type",Object)],gS.prototype,"playerElement",void 0);_.m([_.K(),_.L("design:type",Object)],gS.prototype,"data",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],gS.prototype,"ytActionHandlerBehavior",void 0);_.m([_.Gb("squigglyBackground"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],gS.prototype,"updateSquigglyBackgroundStyle",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],gS.prototype,"onDataChanged",null);
_.m([_.N({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],gS);
_.I(gS,"ytd-handles-claiming-video-item-renderer",function(){if(ydD!==void 0)return ydD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return ydD=g},{mode:1});var v6n;var E3=function(){var g=_.Hi.apply(this,arguments)||this;g.dragging=!1;g.dragMouseStart=0;g.dragOffsetStart=0;g.containerWidthDiff=0;g.boundPrevClick=function(){g.set("offset",rS(g,g.offset-(g.scrollDistance||320)))};
g.boundNextClick=function(){g.set("offset",rS(g,g.offset+(g.scrollDistance||320)))};
g.boundScrollContainerMouseDown=function(r){g.dragMouseStart=r.clientX;g.dragOffsetStart=g.offset;g.dragging=!0};
g.boundScrollContainerDrag=function(r){g.dragging&&g.set("offset",rS(g,g.dragOffsetStart-(r.clientX-g.dragMouseStart)))};
g.boundMouseUp=function(){g.onMouseUp()};
g.boundWheelScroll=function(r){var E=0;Math.abs(r.deltaX)>=Math.abs(r.deltaY)?E=r.deltaX:r.shiftKey&&(E=r.deltaY);E!==0&&(g.offset+=E,r.stopPropagation(),r.preventDefault())};
g.boundChipCloudChipScrollIntoView=function(r){(r=r.detail)&&g.scrollChipIntoView(r)};
return g};
_.f(E3,_.Hi);E3.prototype.attached=function(){var g=_.S3(this.hostElement).querySelector("#scroll-container");g.addEventListener("wheel",this.boundWheelScroll);g.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);g.style.touchAction="pan-y";g.addEventListener("pointerdown",this.boundScrollContainerMouseDown);g.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
E3.prototype.detached=function(){var g=_.S3(this.hostElement).querySelector("#scroll-container");g.removeEventListener("wheel",this.boundWheelScroll);g.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);g.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);g.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
E3.prototype.reset=function(){this.set("offset",0);_.Lk(this,this.setContainerWidthDiff);B5(this)};
var rS=function(g,r){return Math.min(Math.max(r,0),g.containerWidthDiff)};
E3.prototype.onMouseUp=function(){this.dragging=!1};
E3.prototype.transformContainer=function(){this.offset=rS(this,this.offset);var g=_.Ca("HTML_DIR")==="rtl"?"":"-";_.S3(this.hostElement).querySelector("#chips").style.transform="translateX("+g+this.offset+"px)";B5(this)};
var B5=function(g){_.Lk(g,g.setButtonsState)};
E3.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=rS(this,this.offset));this.atStart=this.offset<=0};
E3.prototype.setContainerWidthDiff=function(){var g=_.S3(this.hostElement).querySelector("#scroll-container"),r=_.S3(this.hostElement).querySelector("#chips");g&&r&&(this.containerWidthDiff=r.clientWidth-g.clientWidth)};
E3.prototype.scrollChipIntoView=function(g){var r=_.S3(this.hostElement).querySelector("#scroll-container");if(r){var E=this.atStart?0:106,B=this.atEnd?0:106;g.offsetLeft<this.offset+E?this.offset=rS(this,g.offsetLeft-E):g.offsetLeft+g.clientWidth>this.offset+r.clientWidth-B&&(this.offset=rS(this,g.offsetLeft+g.clientWidth+B-r.clientWidth))}};
E3.prototype.transformContainer=E3.prototype.transformContainer;_.m([_.K({value:0}),_.L("design:type",Number)],E3.prototype,"offset",void 0);_.m([_.K({value:!0,reflectToAttribute:!0}),_.L("design:type",Boolean)],E3.prototype,"atStart",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],E3.prototype,"atEnd",void 0);_.m([_.K(),_.L("design:type",Number)],E3.prototype,"scrollDistance",void 0);
_.m([_.Gb("offset"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],E3.prototype,"transformContainer",null);_.m([_.pR()],E3);var d5w;var Tfm;var EGm=_.dG(function(g){var r=g.data;g=_.U(_.Dk(!1,void 0,"icHmSe"));var E=g.next().value,B=g.next().value;g={};g=_.QY("ytChipShapeChip",function(){a:switch(r==null?void 0:r().state){case 0:var O="ytChipShapeActive";break a;case 1:O="ytChipShapeDisabled";break a;default:O="ytChipShapeInactive"}return O},function(){var O=r().type===1||r().type===2,M=r();
return O||M!=null&&M.startIcon?M==null||!M.startIcon||M!=null&&M.text?O?"ytChipShapeEndIconPadding":(M==null?0:M.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(g.ytChipShapeFocused=function(){var O;
return E()&&((O=r())==null?void 0:O.state)!==1},g));
var w=function(O){if((r==null?void 0:r().state)!==1){var M,u;(u=(M=r()).onTap)==null||u.call(M,O)}};
return _.G("chip-shape",{class:"ytChipShapeHost","on:focusin":_.HK(function(){var O=_.rM().resolve(_.gM(_.wN));if(O){B(O.isKeyBoardInUse());var M,u;(u=(M=r()).onFocusIn)==null||u.call(M)}return!1}),
"on:focusout":_.HK(function(){B(!1);return!1})},_.G(gGA,{shouldWrapInButton:function(){return r().type!==2},
selected:function(){return r().state===0},
onClick:w,isDropdown:function(){return r().type===1},
accessibilityLabel:function(){return r().accessibilityLabel}},_.G("div",{class:g},_.G(_.p,{cond:function(){return r().startIcon},
then:function(){return _.G(_.nh,{icon:function(){var O;return(O=r())==null?void 0:O.startIcon},
className:function(){return r().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return r().text},_.G(rUn,{shape:r,
onClick:w}))))},"Fb");
EGm.idomCompat=!0;var gGA=_.dG(function(g){var r=_.HK(function(E){g.onClick(E);return!1});
return _.G(_.p,{cond:g.shouldWrapInButton,then:function(){return _.G("button",{class:"ytChipShapeButtonReset","on:click":r,role:function(){return g.isDropdown()?"combobox":"tab"},
"aria-label":g.accessibilityLabel,"aria-selected":g.selected},g.children)},
else:function(){return g.children}})},"Gb"),rUn=_.dG(function(g){var r=g.shape;
var E=g.onClick;var B=_.HK(function(w){E(w);return!1});
return _.G(_.fa,null,_.G(_.na,{when:function(){return r().type===1}},function(){return _.G(_.nh,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.G(_.na,{when:function(){return r().type===2}},function(){return _.G("button",{class:"ytChipShapeButtonReset",
"on:click":B},_.G(_.nh,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.G(_.na,{when:function(){return r().type===0}},function(){return _.G(_.wW,null)}))},"Hb");_.BK(EGm,"chip-shape",{props:{data:_.cP}});var wS=function(){var g=_.a.apply(this,arguments)||this;g.disableDeselectEvent=!1;g.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return g};
_.f(wS,_.a);_.S=wS.prototype;_.S.onSelectChipCommand=function(g){if(!this.selected&&this.data&&(g=_.n(g,qhn),g.targetId&&g.targetId===this.data.targetId))this.onTap()};
_.S.onFilterChipTransformCommand=function(g){if(!this.selected&&this.data){var r;(g=(r=_.n(g,BcI))==null?void 0:r.chipUniqueId)&&g===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.S.dataChanged=function(){var g=this;_.Lk(this,function(){g.data&&g.data.isSelected&&!g.selected&&(g.scrollChipIntoView(),g.onTap())})};
_.S.computeChipStyle=function(g){return g!=null?g:"STYLE_DEFAULT"};
_.S.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.OS(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.OS(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.S.onFocus=function(){var g=_.rM().resolve(_.gM(_.wN));g&&g.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.S.scrollChipIntoView=function(){_.Sh(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.hx.Object.defineProperties(wS.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return uDB({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
wS.prototype.onFocus=wS.prototype.onFocus;wS.prototype.onTap=wS.prototype.onTap;wS.prototype.dataChanged=wS.prototype.dataChanged;_.m([_.P(_.HA),_.L("design:type",Object)],wS.prototype,"ironButtonState",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],wS.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],wS.prototype,"ytActionHandlerBehavior",void 0);
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],wS.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.QV),_.L("design:type",Object)],wS.prototype,"ironA11yKeysBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],wS.prototype,"disableDeselectEvent",void 0);_.m([_.K(),_.L("design:type",Object)],wS.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.W("data.icon"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],wS.prototype,"hasIcon",null);
_.m([_.K({reflectToAttribute:!0}),_.W("data.uniqueId"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],wS.prototype,"isGnomeChip",null);_.m([_.K({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.L("design:type",String)],wS.prototype,"chipStyle",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],wS.prototype,"selected",void 0);
_.m([_.W("data","selected"),_.L("design:type",Object),_.L("design:paramtypes",[])],wS.prototype,"chipShapeData",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],wS.prototype,"dataChanged",null);_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],wS.prototype,"onTap",null);
_.m([_.ob("focus"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],wS.prototype,"onFocus",null);_.m([_.e3({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],wS);
_.I(wS,"yt-chip-cloud-chip-renderer",function(){if(Tfm===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;d5w===void 0&&(d5w=document.createElement("template"));var B=d5w;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Tfm=g}g=Tfm;return g},{mode:2});var Sd=function(){var g=_.a.apply(this,arguments)||this;g.isDarkTheme=!1;g.notSticky=!1;g.transparentBackground=!1;g.shouldHide=!1;g.disableSticky=!1;g.fluidWidth=!1;g.isClipList=!1;g.defaultChipIndex=0;g.isPlaylist=!1;g.playlistVotingAnimationEnabled=_.Y("web_enable_voting_animation");g.toolbarHeight=0;g.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return g};
_.f(Sd,_.a);_.S=Sd.prototype;
_.S.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.S.attached=function(){var g=this;document.addEventListener("scroll",_.Do(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var r;this.toolbarHeight=((r=document.querySelector("ytd-masthead"))==null?void 0:r.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(E){g.handleIntersect(E)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){g.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.S.detached=function(){var g;(g=this.intersectionObserver)==null||g.disconnect();var r;(r=this.resizeObserver)==null||r.disconnect();document.removeEventListener("scroll",_.Do(this,this.updateChipBarWidthAndTop))};
_.S.dataChanged=function(){var g=this,r,E,B;((B=_.n((r=this.data)==null?void 0:(E=r.contents)==null?void 0:E[0],W4U))==null?void 0:B.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var w=this.findSelectedChipIndex();this.selectedIndex!==w&&(this.selectedIndex=-1);_.Lk(this,function(){g.selectedIndex=w;g.updating=!1;g.ytScrollableChipCloudBehavior.reset()})};
_.S.findSelectedChipIndex=function(){var g;if((g=this.data)==null||!g.contents)return 0;g=this.data.contents;for(var r=0;r<g.length;r++){var E=void 0;if((E=_.n(g[r],W4U))==null?0:E.isSelected)return r}return 0};
_.S.computeStyle=function(g){return g};
_.S.handleChipCloudChipSelectAction=function(g){g=this.JSC$14069_chipsSelector.indexOf(g);g>-1&&this.JSC$14069_chipsSelector.selectIndex(g)};
_.S.handleChipCloudChipDeselectAction=function(){if(_.Y("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var g,r,E,B=(E=_.n((g=this.data)==null?void 0:(r=g.contents)==null?void 0:r[0],W4U))==null?void 0:E.navigationEndpoint;B&&_.OS(this.hostElement,"yt-browse-section-list-reload-endpoint",[B]);this.JSC$14069_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.S.onGuideIsExpandedChanged=function(){var g=this.ytScrollableChipCloudBehavior;_.Lk(g,g.setContainerWidthDiff);B5(this.ytScrollableChipCloudBehavior)};
_.S.onResize=function(){var g=this.ytScrollableChipCloudBehavior;_.Lk(g,g.setContainerWidthDiff);B5(this.ytScrollableChipCloudBehavior)};
_.S.onDarkModeToggledAction=function(g){this.isDarkTheme=g};
_.S.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.S.handleIntersect=function(g){this.notSticky=this.isChannelPageGrid||this.disableSticky||g[0].intersectionRatio===1};
_.S.updateDimensions=function(){var g=this.ytRendererBehavior.parentComponent;if(g){var r,E=(r=g.headerElement)!=null?r:g;_.ua(this.hostElement,{"--ytd-rich-grid-chips-bar-width":E.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.S.updateSelectedIndexFromBinding=function(g){this.selectedIndex=g.detail.value};
_.S.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var g;(g=this.sortFilterHeaderRendererElement)==null||g.setAttribute("is-playlist-page-with-filters","")}};
_.S.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(HjD(!this.notSticky))};
_.hx.Object.defineProperties(Sd.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 g,r,E=(g=this.data)==null?void 0:(r=g.contents)==null?void 0:r.find(function(B){return _.n(B,XUn)});
return{sortFilterHeaderRenderer:_.n(E,XUn)}}}});
Sd.prototype.dispatchChipBarIsSticky=Sd.prototype.dispatchChipBarIsSticky;Sd.prototype.isPlaylistPageChanged=Sd.prototype.isPlaylistPageChanged;Sd.prototype.updateChipBarWidthAndTop=Sd.prototype.updateChipBarWidthAndTop;Sd.prototype.onResize=Sd.prototype.onResize;Sd.prototype.onGuideIsExpandedChanged=Sd.prototype.onGuideIsExpandedChanged;Sd.prototype.dataChanged=Sd.prototype.dataChanged;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Sd.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Sd.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Sd.prototype,"actionHandlerBehavior",void 0);_.m([_.P(_.f7),_.L("design:type",Object)],Sd.prototype,"ironResizableBehavior",void 0);_.m([_.P(),_.L("design:type",E3)],Sd.prototype,"ytScrollableChipCloudBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],Sd.prototype,"ytdReduxBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],Sd.prototype,"data",void 0);_.m([_.K({value:0}),_.L("design:type",Number)],Sd.prototype,"selectedIndex",void 0);_.m([_.K({value:320}),_.L("design:type",Number)],Sd.prototype,"scrollDistance",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Sd.prototype,"isDarkTheme",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Sd.prototype,"notSticky",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Sd.prototype,"transparentBackground",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.L("design:type",String)],Sd.prototype,"componentStyle",void 0);_.m([_.K({selector:_.oTl}),_.L("design:type",Boolean)],Sd.prototype,"guideIsExpanded",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Sd.prototype,"shouldHide",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Sd.prototype,"disableSticky",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Sd.prototype,"fluidWidth",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Sd.prototype,"isClipList",void 0);_.m([_.K(),_.L("design:type",Object)],Sd.prototype,"defaultChipIndex",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Sd.prototype,"isPlaylist",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Sd.prototype,"playlistVotingAnimationEnabled",void 0);_.m([_.zb("#chips"),_.L("design:type",Object)],Sd.prototype,"JSC$14069_chipsSelector",void 0);_.m([_.zb("ytd-sort-filter-header-renderer"),_.L("design:type",HTMLElement)],Sd.prototype,"sortFilterHeaderRendererElement",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],Sd.prototype,"updating",void 0);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Sd.prototype,"dataChanged",null);_.m([_.Gb("guideIsExpanded"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Sd.prototype,"onGuideIsExpandedChanged",null);_.m([_.ob("iron-resize"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Sd.prototype,"onResize",null);
_.m([_.Yk("isChannelPageGrid","disableSticky","data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Sd.prototype,"updateChipBarWidthAndTop",null);_.m([_.W("componentStyle"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Sd.prototype,"isChannelPageGrid",null);_.m([_.W("componentStyle"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Sd.prototype,"isHashtagLandingPage",null);
_.m([_.Gb("isPlaylistPage"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Sd.prototype,"isPlaylistPageChanged",null);_.m([_.W("componentStyle"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Sd.prototype,"isPlaylistPage",null);_.m([_.W("componentStyle"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Sd.prototype,"isDisableDeselectEvent",null);
_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],Sd.prototype,"sortFilterHeaderRendererData",null);_.m([_.K({reflectToAttribute:!0,selector:_.pyL}),_.L("design:type",String)],Sd.prototype,"frostedGlassMode",void 0);_.m([_.Gb("notSticky"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Sd.prototype,"dispatchChipBarIsSticky",null);_.m([_.N({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],Sd);
_.I(Sd,"ytd-feed-filter-chip-bar-renderer",function(){if(v6n!==void 0)return v6n;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return v6n=g},{mode:1});var BZZ;var wnb=_.dG(function(g){var r=g.data;var E=g.buttonIndex;var B=g.selectedIndex;var w=g.onSelect;var O=function(){return E()===B()},M=function(){var u,l;
return(l=(u=r().text)==null?void 0:u.content)!=null?l:""};
g=_.NJt();return _.G("yt-toggleable-image-button-view-model",{class:function(){var u={};u=(u["toggleable-image-button-view-model-wiz"]=!0,u[""]=!0,u["toggleable-image-button-view-model-wiz__semi-transparent"]=B()!==-1&&!O(),u);return _.zw(u)},
tabindex:0,"aria-label":M,"aria-pressed":O,role:"button","on:keydown":g,"on:click":_.HK(function(){w(r().onSubmitCommand);return!1})},_.G(_.p,{cond:function(){return r().logo},
then:function(u){return _.G(_.vw,{data:u,className:function(){var l={};l=(l["toggleable-image-button-view-model-wiz__image"]=!0,l["toggleable-image-button-view-model-wiz__circular-radius"]=!(!r().backgroundColor||!r().backgroundColorDarkMode),l["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(O()&&r().backgroundColor&&r().backgroundColorDarkMode),l);return _.zw(l)},
alt:M,useWidth:!1,style:function(){if(O()&&r().backgroundColor&&r().backgroundColorDarkMode){var l=N8(Number(r().backgroundColorDarkMode),"1");var Q=N8(Number(r().backgroundColor),"1");l="background: linear-gradient(180deg,"+l+","+Q+") border-box;"}else l="";return l}})}}),_.G(_.jk,{model:{borderRadius:"16px"}}),_.G("p",{class:function(){var u={};
u=(u["toggleable-image-button-view-model-wiz__label"]=!0,u["toggleable-image-button-view-model-wiz__bold-text"]=O(),u);return _.zw(u)}},_.G(_.hf,{text:function(){return r().text}})))},"Ib");
wnb.idomCompat=!0;var O6n=_.dG(function(g){var r=g.data;g=_.U(_.Dk({index:-1,command:{}},void 0,"Zcqtsb"));var E=g.next().value,B=g.next().value;return _.G("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.G("div",{class:"nudge-form-view-model-wiz__form-options"},_.G(_.Af,{data:function(){return r().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(w,O){return _.G(wnb,{data:w.data,buttonIndex:O,selectedIndex:function(){return E().index},
onSelect:function(M){B({index:O(),command:M})}})}})),_.G(_.hf,{text:function(){return r().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.G("div",{class:"nudge-form-view-model-wiz__submit"},_.G(_.Af,{data:function(){return r().submitButton}},{buttonViewModel:function(w){return _.G(S14,{data:w.data,
isDisabled:function(){return E().index===-1},
onClick:function(){_.I3(E().command)}})}})))},"Jb");
O6n.idomCompat=!0;var S14=_.dG(function(g){var r=_.kB(function(){return Object.assign({},g.data(),{state:g.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.G(_.MV,{data:r,onClick:g.onClick})},"Kb");_.BK(O6n,"yt-nudge-form-view-model",{props:{data:_.cP}});var O3=function(){var g=_.a.apply(this,arguments)||this;g.roundedContainer=!0;g.buttonUpdate=_.Y("web_modern_buttons");g.isDarkMode=!1;g.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return g};
_.f(O3,_.a);_.S=O3.prototype;_.S.computeNudgeStyle=function(g){return g?"modernized-nudge":""};
_.S.handleDarkModeToggledAction=function(g){this.isDarkMode=g};
_.S.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.S.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{chipCloudChipRenderer:"yt-chip-cloud-chip-renderer",nudgeFormViewModel:"yt-nudge-form-view-model"}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",
mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.S.computeIsHorizontalButtons=function(g){return g?!!g.applyModernizedStyle&&!!g.enableHorizontalButtons&&!!g.secondaryButton:!1};
_.hx.Object.defineProperties(O3.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var g,r;return(r=(g=this.data)==null?void 0:g.backgroundStyle)!=null?r:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var g,r;return(r=(g=this.data)==null?void 0:g.contentsLocation)!=null?r:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null?0:g.lightIconImage)}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],O3.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],O3.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ji),_.L("design:type",Object)],O3.prototype,"ytdDismissibleItemBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],O3.prototype,"actionHandlerBehavior",void 0);
_.m([_.K({reflectToAttribute:!0}),_.W("isHideEnclosingAction"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],O3.prototype,"isHidden",null);_.m([_.K(),_.L("design:type",Object)],O3.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],O3.prototype,"roundedContainer",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],O3.prototype,"buttonUpdate",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.L("design:type",String)],O3.prototype,"nudgeStyle",void 0);_.m([_.K({reflectToAttribute:!0}),_.W("data.trimStyle"),_.L("design:type",String),_.L("design:paramtypes",[])],O3.prototype,"trimStyle",null);_.m([_.K({reflectToAttribute:!0}),_.W("data.backgroundStyle"),_.L("design:type",String),_.L("design:paramtypes",[])],O3.prototype,"backgroundStyle",null);
_.m([_.K({reflectToAttribute:!0}),_.W("data.contentsLocation"),_.L("design:type",String),_.L("design:paramtypes",[])],O3.prototype,"contentsLocation",null);_.m([_.K({reflectToAttribute:!0}),_.W("data.disableDropShadow"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],O3.prototype,"noShadow",null);_.m([_.K({reflectToAttribute:!0}),_.W("data.lightIconImage"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],O3.prototype,"noIcon",null);
_.m([_.K({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.L("design:type",Boolean)],O3.prototype,"isHorizontalButtons",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Object)],O3.prototype,"isDarkMode",void 0);_.m([_.N({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],O3);
_.I(O3,"ytd-feed-nudge-renderer",function(){if(BZZ!==void 0)return BZZ;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return BZZ=g},{mode:_.My("kevlar_poly_si_batch_j028")?1:2});var UI6;var MA4;var U3=function(){var g=_.a.apply(this,arguments)||this;g.collapsed=!1;g.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return g};
_.f(U3,_.a);U3.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"}}}};
U3.prototype.handleRatingSelect=function(){var g;((g=this.data)==null?0:g.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
U3.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],U3.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],U3.prototype,"actionHandlerBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],U3.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],U3.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.Ji),_.L("design:type",Object)],U3.prototype,"ytdDismissibleItemBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],U3.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],U3.prototype,"collapsed",void 0);_.m([_.N({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],U3);
_.I(U3,"ytd-slimline-survey-renderer",function(){if(MA4!==void 0)return MA4;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return MA4=g},{mode:1});var q1U;var M6=function(){return _.a.apply(this,arguments)||this};
_.f(M6,_.a);M6.prototype.maybeGetBackgroundColor=function(g){return this.isDarkMode?g.section2Color:g.section3Color};
M6.prototype.colorPaletteChanged=function(){var g=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;g&&(g==null?0:g.secondaryTitleColor)&&this.maybeGetBackgroundColor(g)?(this.hostElement.style.backgroundColor=_.aJ(this.maybeGetBackgroundColor(g)),this.hostElement.style.color=_.aJ(g.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
M6.prototype.colorPaletteChanged=M6.prototype.colorPaletteChanged;_.m([_.P(_.Ai),_.L("design:type",Object)],M6.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],M6.prototype,"data",void 0);_.m([_.K({selector:function(g){return g.ui.darkModeIsEnabled}}),
_.L("design:type",Boolean)],M6.prototype,"isDarkMode",void 0);_.m([_.K(),_.L("design:type",Object)],M6.prototype,"lightColorPalette",void 0);_.m([_.K(),_.L("design:type",Object)],M6.prototype,"darkColorPalette",void 0);_.m([_.Gb("darkColorPalette","lightColorPalette","data","isDarkMode"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],M6.prototype,"colorPaletteChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],M6);
_.I(M6,"ytd-endorsement-header-renderer",function(){if(q1U!==void 0)return q1U;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return q1U=g},{mode:1});_.BK(_.fO,"yt-decorated-avatar-view-model",{props:{data:_.cP,className:_.cP}});var q6=function(){var g=_.a.apply(this,arguments)||this;g.fullHeight=_.Y("web_rich_grid_media_full_height");g.showChannelAvatar=!0;g.hasPlaylistThumbnail=!1;g.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};g.prepareThumbnailForPageTransition=function(){_.Y("web_thumbnail_to_watch_transition")&&(g.thumbnail.style.viewTransitionName="thumbnail-to-watch",g.cleanupThumbnailAfterPageTransition(g.thumbnail))};
return g};
_.f(q6,_.a);_.S=q6.prototype;
_.S.configureRendererStamper=function(){return{lazyLoadMenu:qZ,immediateLoadMenu:{id:"immediate-load-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.thumbnailUnderlay":{id:"thumbnail-underlay",mapping:{endorsementHeaderRenderer:{component:"ytd-endorsement-header-renderer",properties:{lightColorPalette:"[[data.thumbnail.lightColorPalette]]",darkColorPalette:"[[data.thumbnail.darkColorPalette]]"}}}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyRenderer:"ytd-slimline-survey-renderer"}},"data.buttons":{id:"buttons",
mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model",properties:{overrides:"[[avatarStackViewModelOverrides]]"}},
decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.S.attached=function(){this.updateInlinePreviewHoverListeners()};
_.S.detached=function(){this.clearInlinePreviewHoverListeners()};
_.S.shouldLazyLoadMenu=function(){var g=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.Y("kevlar_modern_downloads_page")||!g};
_.S.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14095_inlinePreviewHoverListener=XX({mediaRenderer:this,lockupElement:this.JSC$14095_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.S.getVideoPreviewOpts=function(){var g={},r;if((r=this.data)==null?0:r.multipleInlinePlaybackEndpoint)g=B6Z;this.isRadio&&(g=EZT);return _.Y("web_thumbnail_to_watch_transition")?Object.assign({},g,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):g};
_.S.clearInlinePreviewHoverListeners=function(){var g;(g=this.JSC$14095_inlinePreviewHoverListener)==null||Tu(g)};
_.S.getOwner=function(){var g,r,E;return((g=this.data)==null?void 0:(r=g.channelThumbnailSupportedRenderers)==null?void 0:r.channelThumbnailWithLinkRenderer)||_.n((E=this.data)==null?void 0:E.showProviderChannelThumbnail,GEb)};
_.S.updateLockupSize=function(){var g;((g=this.getOwner())==null?0:g.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.S.getFeedbackEndpoint=function(g){if(_.n(g,_.AQ))return g;var r,E;g=(E=(r=_.n(g,_.D$))==null?void 0:r.commands)!=null?E:[];r=_.U(g);for(E=r.next();!E.done;E=r.next())if(E=this.getFeedbackEndpoint(E.value))return E;return null};
_.S.computeNavigationEndpoint=function(g){return m4J(g==null?void 0:g.navigationEndpoint)};
_.S.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var g=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(g)!==JSON.stringify(this.data)&&this.set("data",g)}};
_.S.onDataChanged=function(){var g=this,r=this.getOwner();if(r){this.set("data.owner",r);var E,B,w,O,M,u=((E=this.data)==null?void 0:(B=E.shortBylineText)==null?void 0:(w=B.runs)==null?void 0:(O=w[0])==null?void 0:O.text)||((M=r.name)==null?void 0:M.simpleText);this.set("data.owner.title",u)}var l,Q,z,k,H,R;r=((l=this.data)==null?void 0:(Q=l.thumbnailRenderer)==null?void 0:Q.playlistVideoThumbnailRenderer)||((z=this.data)==null?void 0:(k=z.thumbnailRenderer)==null?void 0:k.playlistCustomThumbnailRenderer)||
((H=this.data)==null?void 0:(R=H.thumbnailRenderer)==null?void 0:R.showCustomThumbnailRenderer);var A;((A=this.data)==null?0:A.thumbnail)||!r||this.set("data.thumbnail",r.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){g.updateLockupSize()});
var J;if(l=((J=this.data)==null?void 0:J.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(l);var e;((e=this.dismissActionToReplayEntity)==null?0:e.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.S.onHiddenChanged=function(){this.updateLockupSize()};
_.S.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.OS(this.hostElement,"yt-terminate-video-preview-action");else{var g;(g=this.videoTitleLink)==null||g.focus()}};
_.S.metadataColorChanged=function(){var g;if(this.metadataColor&&((g=this.videoTitle)==null?0:g.style))this.videoTitle.style.color=_.aJ(this.metadataColor);else{var r,E;!this.metadataColor&&((r=this.videoTitle)==null?0:(E=r.style)==null?0:E.color)&&(this.videoTitle.style.color="")}};
_.S.onDetailsClick=function(g){var r=this.computedNavigationEndpoint;r&&(_.Zy(_.Z1(g),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.Sh(this.hostElement,"yt-navigate",{endpoint:r}))};
_.S.cleanupThumbnailAfterPageTransition=function(g){_.cOD(document,"yt-page-type-changed",function(){g.style.viewTransitionName=""})};
_.S.onRendererTap=function(){this.prepareThumbnailForPageTransition();var g,r,E=((g=this.data)==null?void 0:g.serviceEndpoint)||this.getFeedbackEndpoint((r=this.data)==null?void 0:r.navigationEndpoint);E&&_.n(E,_.AQ)&&this.ytComponentBehavior.resolveCommand(E)};
_.S.onMouseDown=function(g){var r=g.target,E=this.computedNavigationEndpoint,B;g=r.href||((B=_.n(E==null?void 0:E.commandMetadata,_.dU))==null?void 0:B.url);B=r.data||E;g&&B&&y$l(g,B)};
_.S.computeVideoTitleText=function(){var g;if((g=this.data)==null?0:g.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.S.computeHasPlaylistThumbnail=function(g){var r,E,B,w,O;if((((r=g.thumbnailRenderer)==null?0:r.playlistVideoThumbnailRenderer)||((E=g.thumbnailRenderer)==null?0:E.playlistCustomThumbnailRenderer)||((B=g.thumbnailRenderer)==null?0:B.showCustomThumbnailRenderer)||((w=g.thumbnailRenderer)==null?0:w.playlistVideoThumbnailRenderer)||((O=g.thumbnailRenderer)==null?0:O.playlistCustomThumbnailRenderer))&&g.thumbnailOverlays)for(r=0;r<g.thumbnailOverlays.length;r++)if(E=void 0,(E=g.thumbnailOverlays[r])==
null?0:E.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.hx.Object.defineProperties(q6.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.Y("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var g;return(g=this.data)==null?void 0:g.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var g;return(g=this.data)==null?void 0:g.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.JSC$14095_inlinePreviewHoverListener)==null?0:bI(g))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.QP(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var g,r;return((g=this.data)==null?void 0:g.videoId)||((r=this.data)==null?void 0:r.playlistId)||""}}});
q6.prototype.onMouseDown=q6.prototype.onMouseDown;q6.prototype.metadataColorChanged=q6.prototype.metadataColorChanged;q6.prototype.onIsDismissedChanged=q6.prototype.onIsDismissedChanged;q6.prototype.onHiddenChanged=q6.prototype.onHiddenChanged;q6.prototype.onDataChanged=q6.prototype.onDataChanged;q6.prototype.handleReloadDownloadsInfo=q6.prototype.handleReloadDownloadsInfo;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],q6.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],q6.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],q6.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.Ji),_.L("design:type",Object)],q6.prototype,"ytdDismissibleItemBehavior",void 0);_.m([_.P(_.K4),_.L("design:type",Object)],q6.prototype,"ytdLockupBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],q6.prototype,"ytdReduxBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],q6.prototype,"data",void 0);_.m([_.K(),_.L("design:type",String)],q6.prototype,"entitySelectorType",void 0);_.m([_.K(),_.L("design:type",Boolean)],q6.prototype,"noEndpoints",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],q6.prototype,"isRadio",void 0);_.m([_.K({reflectToAttribute:!0,selector:_.Jj}),_.L("design:type",Boolean)],q6.prototype,"miniMode",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],q6.prototype,"fullHeight",void 0);
_.m([_.K(),_.L("design:type",Boolean)],q6.prototype,"showDarkVideoMetadata",void 0);_.m([_.K(),_.L("design:type",Boolean)],q6.prototype,"showLightVideoMetadata",void 0);_.m([_.K(),_.L("design:type",Number)],q6.prototype,"metadataColor",void 0);_.m([_.K(),_.L("design:type",Object)],q6.prototype,"showChannelAvatar",void 0);_.m([_.K(),_.L("design:type",Boolean)],q6.prototype,"hidden",void 0);_.m([_.K({value:!0}),_.L("design:type",Boolean)],q6.prototype,"showYtInteraction",void 0);
_.m([_.K(),_.L("design:type",String)],q6.prototype,"dismissedContentId",void 0);_.m([_.K({selectorArgs:["dismissedContentId"],selector:xiP}),_.L("design:type",Object)],q6.prototype,"dismissActionToReplayEntity",void 0);
_.m([_.K({selectorArgs:["entitySelectorType","mediaId"],selector:function(g,r,E){if(_.Y("kevlar_modern_downloads_page")&&E&&r&&r!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(r){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var B=s1l(g,E);if(B){r=_.Ws(g,E);var w=Kf(g,E),O=CwV(g,E);g=xD(g,E);var M=DJD(B,r,w,O);w=M.shortViewCountText;var u=M.publishedTimeText;M=M.badges;var l=g>0;O=uLc(B,r,O,g);B=_.pf(r)||r==="TRANSFER_STATE_FAILED"||r==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Hs(B.policyEntity)?
void 0:N8J(E,g,B.videoEntity.lengthSeconds);r==="TRANSFER_STATE_PAUSED_BY_USER"&&E&&!_.Y("dl_resume_click_killswitch")&&(B={offlineVideoEndpoint:{videoId:E,action:"ACTION_RESUME"}});E={shortViewCountText:w,publishedTimeText:u,badges:M,isWatched:l,navigationEndpoint:B,thumbnailOverlays:O}}else E=void 0;return E;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(r=fcL(g,E))if(B=_.Cf(g,E),O=_.$Ct(g,E),B!=="TRANSFER_STATE_UNKNOWN"){E=liJ(r,B,O,E,_.e9(g));break a}E=void 0}return E;default:_.el(new _.Rj("Error: entitySelectorType defined but not matched in selector.",
g,r))}}}),
_.L("design:type",Object)],q6.prototype,"entityDrivenState",void 0);_.m([_.K({computed:"computeVideoTitleText(data)"}),_.L("design:type",Object)],q6.prototype,"videoTitleText",void 0);_.m([_.K({computed:"computeHasPlaylistThumbnail(data)"}),_.L("design:type",Object)],q6.prototype,"hasPlaylistThumbnail",void 0);_.m([_.K({computed:"computeNavigationEndpoint(data)"}),_.L("design:type",Object)],q6.prototype,"computedNavigationEndpoint",void 0);
_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],q6.prototype,"typographyBump",void 0);_.m([_.K({reflectToAttribute:!0}),_.W("typographyBump"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],q6.prototype,"typographyBumpV2",null);_.m([_.zb("#video-title"),_.L("design:type",HTMLElement)],q6.prototype,"videoTitle",void 0);_.m([_.zb("#video-title-link"),_.L("design:type",HTMLElement)],q6.prototype,"videoTitleLink",void 0);
_.m([_.zb("#thumbnail"),_.L("design:type",HTMLElement)],q6.prototype,"thumbnail",void 0);_.m([_.zb("#dismissible"),_.L("design:type",HTMLElement)],q6.prototype,"JSC$14095_dismissibleMedia",void 0);_.m([_.W("data.menu"),_.L("design:type",Object),_.L("design:paramtypes",[])],q6.prototype,"lazyLoadMenu",null);_.m([_.W("data.menu"),_.L("design:type",Object),_.L("design:paramtypes",[])],q6.prototype,"immediateLoadMenu",null);
_.m([_.Yk("entityDrivenState"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],q6.prototype,"handleReloadDownloadsInfo",null);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],q6.prototype,"onDataChanged",null);_.m([_.Yk("hidden"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],q6.prototype,"onHiddenChanged",null);
_.m([_.Gb("isDismissed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],q6.prototype,"onIsDismissedChanged",null);_.m([_.Gb("metadataColor"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],q6.prototype,"metadataColorChanged",null);_.m([_.ob("mousedown"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],q6.prototype,"onMouseDown",null);
_.m([_.W("lockupIsHovered"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],q6.prototype,"isHovered",null);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],q6.prototype,"useAvatar",null);_.m([_.W("data","entitySelectorType"),_.L("design:type",String),_.L("design:paramtypes",[])],q6.prototype,"mediaId",null);_.m([_.N({is:"ytd-rich-grid-media",disableElementRegistration:!0})],q6);
var unU=_.U2()(q6,"ytd-rich-grid-media",function(){if(UI6!==void 0)return UI6;var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return UI6=g},{mode:_.My("kevlar_poly_si_batch_j072")?1:2});var lTT;var u$=function(){var g=_.a.apply(this,arguments)||this;g.removeMaxWidth=!0;g.insetMetadata=!1;return g};
_.f(u$,_.a);_.S=u$.prototype;_.S.configureRendererStamper=function(){return{innerMenu:qZ,outerMenu:Object.assign({},qZ,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.S.onDataChanged=function(){var g,r=((g=this.data)==null?void 0:g.trackingParams)||"";r&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(r));var E;((E=this.dismissActionToReplayEntity)==null?0:E.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.S.attached=function(){this.updateInlinePreviewHoverListeners()};
_.S.detached=function(){this.clearInlinePreviewHoverListeners()};
_.S.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$14100_inlinePreviewHoverListener=XX({mediaRenderer:this,lockupElement:this.JSC$14100_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:wR4})};
_.S.clearInlinePreviewHoverListeners=function(){var g;(g=this.JSC$14100_inlinePreviewHoverListener)==null||Tu(g)};
_.S.onRendererTap=function(){var g,r,E=(g=this.data)==null?void 0:(r=g.serviceEndpoints)==null?void 0:r[0];_.n(E,_.AQ)&&this.componentBehavior.resolveCommand(E)};
_.S.onDetailsClick=function(g){var r,E=(r=this.data)==null?void 0:r.navigationEndpoint;E&&(_.Zy(_.Z1(g),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(E))};
_.S.onShow=function(){var g=this.data;g.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(g.onFirstVisibleCommand),delete g.onFirstVisibleCommand)};
_.hx.Object.defineProperties(u$.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var g;return this.insetMetadata?void 0:(g=this.data)==null?void 0:g.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var g;return this.insetMetadata?(g=this.data)==null?void 0:g.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var g=this.data;if(g!=null&&g.badge&&(g=_.n(g.badge,A2A))){var r,E,B;return[{metadataBadgeRenderer:{label:((r=g.label)==null?void 0:(E=r.runs)==null?void 0:E[0].text)||((B=g.label)==null?void 0:B.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var g=this.data;return Object.assign({},g.headline,{accessibility:g.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return this.isSlimShort?(g=this.computedTitle)==null?void 0:(r=g.accessibility)==null?void 0:(E=r.accessibilityData)==null?void 0:E.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.Y("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.JSC$14100_inlinePreviewHoverListener)==null?0:bI(g))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
u$.prototype.onDataChanged=u$.prototype.onDataChanged;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],u$.prototype,"componentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],u$.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.K4),_.L("design:type",Object)],u$.prototype,"ytdLockupBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],u$.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.P(_.Ji),_.L("design:type",Object)],u$.prototype,"ytdDismissibleItemBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],u$.prototype,"ytdReduxBehavior",void 0);_.m([_.zb("ytd-thumbnail"),_.L("design:type",HTMLElement)],u$.prototype,"thumbnail",void 0);_.m([_.zb("#dismissible"),_.L("design:type",HTMLElement)],u$.prototype,"JSC$14100_dismissibleMedia",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],u$.prototype,"removeMaxWidth",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],u$.prototype,"insetMetadata",void 0);_.m([_.K(),_.L("design:type",String)],u$.prototype,"dismissedContentId",void 0);_.m([_.K({selectorArgs:["dismissedContentId"],selector:xiP}),_.L("design:type",Object)],u$.prototype,"dismissActionToReplayEntity",void 0);_.m([_.W("insetMetadata"),_.L("design:type",Object),_.L("design:paramtypes",[])],u$.prototype,"thumbnailObjectFit",null);
_.m([_.W("data","insetMetadata"),_.L("design:type",Object),_.L("design:paramtypes",[])],u$.prototype,"innerMenu",null);_.m([_.W("data","insetMetadata"),_.L("design:type",Object),_.L("design:paramtypes",[])],u$.prototype,"outerMenu",null);_.m([_.K(),_.L("design:type",Object)],u$.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,selector:_.Jj}),_.L("design:type",Boolean)],u$.prototype,"miniMode",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],u$.prototype,"onDataChanged",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],u$.prototype,"shortsBadges",null);_.m([_.W("data"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],u$.prototype,"isShort",null);
_.m([_.W("data"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],u$.prototype,"isSlimShort",null);_.m([_.W("data","isShort"),_.L("design:type",Object),_.L("design:paramtypes",[])],u$.prototype,"computedTitle",null);_.m([_.W("isSlimShort","computedTitle"),_.L("design:type",Object),_.L("design:paramtypes",[])],u$.prototype,"computedAccessibilityLabel",null);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],u$.prototype,"shouldForce2By3",null);_.m([_.W("lockupIsHovered"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],u$.prototype,"isHovered",null);_.m([_.N({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],u$);
_.I(u$,"ytd-rich-grid-slim-media",function(){if(lTT!==void 0)return lTT;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return lTT=g},{mode:_.My("kevlar_poly_si_batch_j063")?1:2});var DII;var oGw;var l$=function(){var g=_.a.apply(this,arguments)||this;g.darkerDarkTheme=_.Y("web_darker_dark_theme");return g};
_.f(l$,_.a);l$.prototype.computeIcon=function(g){return g&&g.iconType?"yt-sys-icons:"+g.iconType.toLowerCase():""};
l$.prototype.onMouseEnter=function(){this.isHovered=!0};
l$.prototype.onMouseLeave=function(){this.isHovered=!1};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],l$.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],l$.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],l$.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],l$.prototype,"data",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],l$.prototype,"isHovered",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],l$.prototype,"darkerDarkTheme",void 0);_.m([_.N({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],l$);
_.I(l$,"ytd-expand-on-hover-card-renderer",function(){if(oGw!==void 0)return oGw;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return oGw=g},{mode:1});var GHw,QG6=function(){if(GHw!==void 0)return GHw;var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return GHw=g};_.ek("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var DJ=function(){var g=_.a.apply(this,arguments)||this;g.compactStyle=!1;g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return g};
_.f(DJ,_.a);_.S=DJ.prototype;_.S.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.S.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.channelMembershipsButton":{id:"channel-memberships-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S.computeHideDot=function(g){return!(g&&g.subscriberCountText&&g.videoCountText)||this.compactStyle};
_.S.hasDualButtons=function(g){return g&&g.purchaseButton&&g.subscribeButton};
_.S.backgroundColorChanged=function(){if(this.data!==void 0){var g=this.data.backgroundColor;this.isDarkTheme&&(g=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=g!=null?_.aJ(g):"transparent"}};
_.S.onDarkModeToggledAction=function(g){this.isDarkTheme=g};
_.S.onTap=function(g){var r,E,B=((r=this.data)==null?void 0:r.navigationEndpoint)||((E=this.data)==null?void 0:E.serviceEndpoint);_.n(B,_.g0)&&(B&&_.rM().resolve(_.Er).resolveCommand(B,{form:{element:this.hostElement}}),g.preventDefault())};
_.S.computeChannelEndpoint=function(g){return _.n(g,_.g0)?null:g};
_.S.computeHrefEndpoint=function(g){return _.n(g,_.g0)?null:this.componentBehavior.computeHref_(g)};
_.S.computeChannelRendererStyle=function(g){return g};
_.S.computeIconSize=function(g){return g?108:136};
_.hx.Object.defineProperties(DJ,{template:{configurable:!0,enumerable:!0,get:function(){return QG6()}}});
DJ.prototype.backgroundColorChanged=DJ.prototype.backgroundColorChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],DJ.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],DJ.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.cY),_.L("design:type",Object)],DJ.prototype,"ytdOpenPopupBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],DJ.prototype,"componentBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],DJ.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Boolean)],DJ.prototype,"isDarkTheme",void 0);_.m([_.K({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.L("design:type",String)],DJ.prototype,"channelRendererStyle",void 0);_.m([_.K({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],DJ.prototype,"dualButtons",void 0);_.m([_.K({reflectToAttribute:!0,value:function(){return _.Y("enable_desktop_search_bigger_thumbs")}}),
_.L("design:type",Boolean)],DJ.prototype,"useBiggerThumbs",void 0);_.m([_.K({reflectToAttribute:!0,value:function(){return _.Sg("desktop_search_bigger_thumbs_style")}}),
_.L("design:type",String)],DJ.prototype,"biggerThumbStyle",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],DJ.prototype,"compactStyle",void 0);_.m([_.Gb("data","isDarkTheme"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],DJ.prototype,"backgroundColorChanged",null);_.m([_.N({is:"ytd-channel-renderer",disableElementRegistration:!0})],DJ);_.I(DJ,"ytd-channel-renderer",function(){return QG6()},{mode:1});var zYD;var kHA;_.ek("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var oV=function(){var g=_.a.apply(this,arguments)||this;g.displayItemCount=2;g.collections=_.Y("web_modern_collections_v2");g.hasPlaylistThumbnail=!1;g.stackThumbnailSize="large";return g};
_.f(oV,_.a);_.S=oV.prototype;_.S.attached=function(){this.updateInlinePreviewHoverListeners()};
_.S.detached=function(){this.clearInlinePreviewHoverListeners()};
_.S.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.S.computeFirstVideos=function(g,r){return g&&r?g.slice(0,r):[]};
_.S.computeThumbnailWidth=function(g,r){return g?r==="BIG"?500:r==="MASSIVE"?600:r==="MEDIUM"?450:420:360};
_.S.computeThumbnailHeight=function(g,r){return g?r==="BIG"?280:r==="MASSIVE"?337:234:202};
_.S.clearInlinePreviewHoverListeners=function(){var g;(g=this.JSC$14113_inlinePreviewHoverListener)==null||Tu(g)};
_.S.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14113_inlinePreviewHoverListener=XX({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:B6Z,thumbnailElement:this.thumbnail})};
_.S.computeHasPlaylistThumbnail=function(g){var r,E;if((((r=g.thumbnailRenderer)==null?0:r.playlistVideoThumbnailRenderer)||((E=g.thumbnailRenderer)==null?0:E.playlistCustomThumbnailRenderer))&&g.thumbnailOverlays)for(r=0;r<g.thumbnailOverlays.length;r++)if(E=void 0,(E=g.thumbnailOverlays[r])==null?0:E.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.hx.Object.defineProperties(oV.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.JSC$14113_inlinePreviewHoverListener)==null?0:bI(g))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
oV.prototype.dataChanged=oV.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],oV.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.K4),_.L("design:type",Object)],oV.prototype,"ytdLockupBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],oV.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],oV.prototype,"displayItemCount",void 0);_.m([_.K({reflectToAttribute:!0,value:function(){return _.Y("enable_desktop_search_bigger_thumbs")}}),
_.L("design:type",Boolean)],oV.prototype,"useBiggerThumbs",void 0);_.m([_.K({reflectToAttribute:!0,value:function(){return _.Sg("desktop_search_bigger_thumbs_style")}}),
_.L("design:type",String)],oV.prototype,"biggerThumbsStyle",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],oV.prototype,"collections",void 0);_.m([_.K({computed:"computeHasPlaylistThumbnail(data)"}),_.L("design:type",Object)],oV.prototype,"hasPlaylistThumbnail",void 0);_.m([_.K(),_.L("design:type",String)],oV.prototype,"stackThumbnailSize",void 0);_.m([_.zb("ytd-thumbnail"),_.L("design:type",HTMLElement)],oV.prototype,"thumbnail",void 0);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],oV.prototype,"dataChanged",null);_.m([_.W("lockupIsHovered"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],oV.prototype,"isHovered",null);_.m([_.N({is:"ytd-radio-renderer",disableElementRegistration:!0})],oV);
_.I(oV,"ytd-radio-renderer",function(){if(kHA!==void 0)return kHA;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return kHA=g},{mode:_.My("kevlar_poly_si_batch_j058")?1:2});var H6w;_.ek("itemSectionRenderer","showRenderer","ytd-show-renderer");var G6=function(){return _.a.apply(this,arguments)||this};
_.f(G6,_.a);G6.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
G6.prototype.computeThumbnailWidth=function(g){return g?360:246};
G6.prototype.computeUseProminentThumbs=function(g){return g};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],G6.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],G6.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],G6.prototype,"data",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],G6.prototype,"isSearch",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.L("design:type",Boolean)],G6.prototype,"useProminentThumbs",void 0);_.m([_.N({is:"ytd-show-renderer",disableElementRegistration:!0})],G6);
_.I(G6,"ytd-show-renderer",function(){if(H6w!==void 0)return H6w;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return H6w=g},{mode:1});_.ek("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var Q1=function(){var g=_.a.apply(this,arguments)||this;g.isRichGrid=!1;return g};
_.f(Q1,_.a);Q1.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"}}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Q1.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Q1.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Q1.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Q1.prototype,"isRichGrid",void 0);_.m([_.N({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],Q1);
_.I(Q1,"ytd-feed-entry-renderer",function(){if(zYD!==void 0)return zYD;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return zYD=g},{mode:1});var pnn;var z6=function(){return _.a.apply(this,arguments)||this};
_.f(z6,_.a);z6.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.m([_.P(_.Ai),_.L("design:type",Object)],z6.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],z6.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],z6.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],z6.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,selector:_.Ps,value:3}),_.L("design:type",Number)],z6.prototype,"itemsPerRow",void 0);
_.m([_.N({is:"ytd-link-card-renderer",disableElementRegistration:!0})],z6);
_.I(z6,"ytd-link-card-renderer",function(){if(pnn!==void 0)return pnn;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return pnn=g},{mode:1});var Y1U;var km=function(){return _.a.apply(this,arguments)||this};
_.f(km,_.a);_.S=km.prototype;_.S.configureRendererStamper=function(){return{"data.menu":qZ,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.S.onRendererTap=function(g){if(!this.ytdDismissibleItemBehavior.isDismissed){var r,E=(r=this.data)==null?void 0:r.navigationEndpoint;E&&!_.Zy(_.Z1(g),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(E)?_.Zy(_.Z1(g),this.hostElement,["A"])||_.Sh(this.hostElement,"yt-navigate",{endpoint:E}):this.ytComponentBehavior.resolveCommand(E,{}))}};
_.S.maybeComputeHref=function(g){return this.ytComponentBehavior.computeHref_(g,!0)};
_.S.getNavigationCommand=function(g){return this.isNavigationCommand(g)?g:null};
_.S.isNavigationCommand=function(g){return g?_.n(g,_.ka)||_.n(g,_.LM)||_.n(g,_.II)?!0:!1:!1};
km.prototype.onRendererTap=km.prototype.onRendererTap;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],km.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],km.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ji),_.L("design:type",Object)],km.prototype,"ytdDismissibleItemBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],km.prototype,"ytComponentBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],km.prototype,"data",void 0);_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],km.prototype,"onRendererTap",null);_.m([_.N({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],km);
_.I(km,"ytd-lumiere-promo-item-image-renderer",function(){if(Y1U!==void 0)return Y1U;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Y1U=g},{mode:1});var RYw;var H5=function(){return _.a.apply(this,arguments)||this};
_.f(H5,_.a);H5.prototype.computeLandscapeThumbnail=function(){var g;return((g=this.data)==null?void 0:g.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],H5.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],H5.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],H5.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,selector:_.Jj}),_.L("design:type",Boolean)],H5.prototype,"miniMode",void 0);_.m([_.K({reflectToAttribute:!0,selector:_.Ps}),_.L("design:type",Number)],H5.prototype,"itemsPerRow",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.L("design:type",Boolean)],H5.prototype,"landscapeThumbnail",void 0);_.m([_.N({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],H5);
_.I(H5,"ytd-lumiere-shelf-details-renderer",function(){if(RYw!==void 0)return RYw;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return RYw=g},{mode:_.My("kevlar_poly_si_batch_j076")?1:2});var nGn;var p2=function(){return _.a.apply(this,arguments)||this};
_.f(p2,_.a);p2.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],p2.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],p2.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],p2.prototype,"data",void 0);_.m([_.N({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],p2);
_.I(p2,"ytd-primetime-promo-details-renderer",function(){if(nGn!==void 0)return nGn;var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return nGn=g},{mode:1});var sGD;var Ym=function(){return _.a.apply(this,arguments)||this};
_.f(Ym,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Ym.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Ym.prototype,"data",void 0);_.m([_.N({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],Ym);
_.I(Ym,"ytd-panel-show-style-metadata-renderer",function(){if(sGD!==void 0)return sGD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return sGD=g},{mode:1});var fTw;var RV=function(){return _.a.apply(this,arguments)||this};
_.f(RV,_.a);_.S=RV.prototype;_.S.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.S.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.S.computeThumbnail=function(g){if(g)return g.smallFormFactorBackgroundThumbnail||g.largeFormFactorBackgroundThumbnail};
_.S.maybeComputeHref=function(g){return this.ytComponentBehavior.computeHref_(g,!0)};
_.S.isNavigationCommand=function(g){return g?_.n(g,_.ka)||_.n(g,_.LM)||_.n(g,_.II)?!0:!1:!1};
_.S.getNavigationCommand=function(g){return this.isNavigationCommand(g)?g:null};
RV.prototype.onPanelTap=RV.prototype.onPanelTap;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],RV.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],RV.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],RV.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],RV.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0,value:!0}),_.L("design:type",Boolean)],RV.prototype,"roundedContainer",void 0);_.m([_.K({reflectToAttribute:!0,value:_.Y("web_modern_buttons")}),_.L("design:type",Boolean)],RV.prototype,"modernButtons",void 0);_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],RV.prototype,"onPanelTap",null);_.m([_.N({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],RV);
_.I(RV,"ytd-primetime-promo-panel-renderer",function(){if(fTw!==void 0)return fTw;var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return fTw=g},{mode:1});_.BK(_.dG(function(g){g=_.y7(g,{data:{},useFullWidth:!1});var r=g.data,E=g.useFullWidth;g={};return _.G("teaser-card-view-model",{class:_.QY("ytTeaserCardViewModelHost",(g.ytTeaserCardViewModelUseFullWidth=function(){return E()},g))},_.G(_.p,{cond:function(){return r().onTap},
then:function(B){return _.G(_.NQ,{className:"ytTeaserCardViewModelLink",command:B},_.G("div",{class:"ytTeaserCardViewModelImageContainer"},_.G(_.p,{cond:function(){return r().image},
then:function(w){return _.G(_.vw,{data:w,className:"ytTeaserCardViewModelImage",alt:""})}})),_.G("p",{class:"ytTeaserCardViewModelCaption"},function(){return r().caption}))}}))},"Lb"),"teaser-card-view-model",{props:{data:_.cP,
useFullWidth:_.cP}});var $I4=new _.Vn("RICH_GRID_VIDEO_RENDERER_TOKEN");_.BK(_.dG(function(g){var r=g.data;var E=g.showYtInteractionInContent;var B=function(){return!!r().selectableFeedback};
g=_.U(_.Dk(!1,void 0,"nblDw"));var w=g.next().value,O=g.next().value;_.Jk(function(){var H=_.n(r().primaryButton,_.sg);(H==null?0:H.isToggled)&&O(H.isToggled)});
g=_.HK(function(H){if(!B())return!1;if(w()){var R;var A=(R=r().selectableFeedback)==null?void 0:R.onDeselect}else{var J;A=(J=r().selectableFeedback)==null?void 0:J.onSelect}A&&_.I3(A,{form:{element:H.target}});O(!w());if(H=_.n(r().primaryButton,_.sg))H.isToggled=w();return!1});
var M=function(){if(!B()){var H,R=(H=r().loggingDirectives)==null?void 0:H.trackingParams;R&&_.MJ(_.rM().resolve(_.Y8),R)}},u=_.IrS(),l=function(){var H;
return B()?(H=r().selectableFeedback)==null?void 0:H.a11yLabel:void 0},Q=function(){return B()?{toggled:w()}:{}},z=_.rM().resolve(_.gM($I4)),k={};
return _.G("yt-feedback-item-renderer",{class:_.QY("ytFeedbackItemRendererHost",(k.ytFeedbackItemRendererSelectableFeedback=B,k)),"on:click":g,"on:keydown":u,title:l,"aria-label":l,"aria-pressed":function(){return B()?w():void 0},
tabindex:function(){return B()?0:void 0},
role:function(){return B()?"button":void 0}},_.G("div",{class:"ytFeedbackItemRendererContentContainer"},_.G(_.Af,{data:function(){return r().content}},{videoRenderer:function(H){return _.G(z,{data:H.data,
showYtInteraction:E})},
lockupViewModel:function(H){return _.G(_.rR,{data:H.data,containerType:2})}})),_.G("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.G(_.Af,{data:function(){return r().primaryButton}},{toggleButtonViewModel:function(H){return _.G(_.RY,{data:H.data,
buttonShapeOverrides:Q,disableExplicitClickLogging:!0,onToggle:M})}})))},"Mb"),"yt-feedback-item-renderer",{props:{data:_.cP,
showYtInteractionInContent:_.cP}});var n2=function(){var g=_.a.apply(this,arguments)||this;g.isShortsGrid=!1;g.isCompactGrid=!1;g.isShortsPanelGrid=!1;g.renderedFromRichGrid=!1;g.isInFirstColumn=!1;g.noGutterMargins=!1;g.isInlineGroupItem=!1;g.insetMetadata=!1;g.noBottomMarginInAds=_.Y("web_no_bottom_margin_for_home_ad_buttons");g.force16By9ThumbnailAspectRatio=!1;g.useCompactList=!1;g.containerType=2;g.thumbnailTargetWidth=9999;g.isResponsiveGrid=!1;g.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};g.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};g.hoverListener=g.hover.bind(g);g.leaveListener=g.leave.bind(g);g.highlighted=!1;g.JSC$14148_unsubscribeFromInlinePreviewIsActive=function(){};
return g};
_.f(n2,_.a);_.S=n2.prototype;_.S.computeContainerType=function(){return this.useCompactList?3:2};
_.S.computeThumbnailTargetWidth=function(){var g;return(g=this.itemWidth)!=null?g:9999};
_.S.updateIsInFirstColumn=function(){var g;this.isInFirstColumn=((g=this.data)==null?void 0:g.colIndex)===0};
_.S.observerContainerType=function(){if(this.lockup){var g=this.lockup;g.containerType=this.containerType;g.sizing=this.sizing;g.typographyBump=this.typographyBump;g.itemWidth=this.itemWidth}this.richGridMedia&&_.Y("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.Y("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.S.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.S.leave=function(g){g=g.relatedTarget;var r=document.querySelector("ytd-video-preview");g&&r&&_.ON(r).contains(g)||this.removeAndCleanupHighlight()};
_.S.hover=function(){var g;if(!this.highlighted&&(!_.Y("web_enable_rich_item_on_focus_effect")||(g=this.data)!=null&&g.onFocusEffect)){var r,E;((r=this.data)==null?void 0:(E=r.onFocusEffect)==null?void 0:E.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(g=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:g,boxShadow:"0 0 0 10px "+g}));var B,w;((B=this.data)==null?void 0:(w=B.onFocusEffect)==null?void 0:
w.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.S.removeAndCleanupHighlight=function(){this.hostElement.classList.remove("ytd-rich-item-renderer-highlight");this.hostElement.classList.remove("ytd-rich-item-renderer-highlight-border");Object.assign(this.hostElement.style,{backgroundColor:"",boxShadow:""});this.highlighted=!1};
_.S.registerHoverHighlightListeners=function(){var g=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$14148_unsubscribeFromInlinePreviewIsActive=_.Gm(_.Zz(),_.z0o,function(r){g.highlighted&&!r&&g.removeAndCleanupHighlight()})};
_.S.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$14148_unsubscribeFromInlinePreviewIsActive()};
_.S.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.S.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.S.getBackgroundColor=function(){var g,r,E=(g=this.data)==null?void 0:(r=g.onFocusEffect)==null?void 0:r.onFocusColor;if(E){if(document.documentElement.hasAttribute("dark")&&(E==null?0:E.darkTheme))return _.aJ(E==null?void 0:E.darkTheme);if(E==null?0:E.lightTheme)return _.aJ(E==null?void 0:E.lightTheme)}};
_.S.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var g=_.PE(),r,E,B;g&&((r=this.data)==null?0:r.trackingParams)&&((E=this.data)==null?void 0:E.colIndex)!=null&&((B=this.data)==null?void 0:B.rowIndex)!=null&&_.hg(g,_.fW(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.S.isSlimMediaRenderer=function(g){return!!_.n(g==null?void 0:g.content,_.wj4)||!!_.n(g==null?void 0:g.content,B8z)||!!_.n(g==null?void 0:g.content,_.t9)||!!_.n(g==null?void 0:g.content,f04)};
_.S.isPostRenderer=function(){var g,r;return!!_.n((g=this.data)==null?void 0:g.content,dSw)||!!_.n((r=this.data)==null?void 0:r.content,Txw)};
_.S.computeIsGameCardShelf=function(){var g;return!!_.n((g=this.data)==null?void 0:g.content,MwZ)};
_.S.computeIsMiniGameCardShelf=function(){var g,r;return!!_.n((g=this.data)==null?void 0:g.content,swz)||!!_.n((r=this.data)==null?void 0:r.content,ffU)};
_.S.computeIsTeaserCard=function(){var g;return!!_.n((g=this.data)==null?void 0:g.content,ffU)};
_.S.computeIsSelectableFeedbackItem=function(){var g,r;return!((r=_.n((g=this.data)==null?void 0:g.content,_.jwT))==null||!r.selectableFeedback)};
_.S.computeContainsLumierePosters=function(){var g,r;return((r=_.n((g=this.data)==null?void 0:g.content,qzZ))==null?void 0:r.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.S.computeIsExpandOnHoverCardShelf=function(){var g;return!!_.n((g=this.data)==null?void 0:g.content,MIn)};
_.S.computeIsLinkCardShelf=function(){var g;return!!_.n((g=this.data)==null?void 0:g.content,etb)};
_.S.computeIsReelItemStyleAvatarCircle=function(g){var r;return((r=_.n(g==null?void 0:g.content,_.t9))==null?void 0:r.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.S.computeIsLinkCardFullWidth=function(g,r){var E;return((E=_.n(g==null?void 0:g.content,etb))==null?void 0:E.useFullWidth)||r<=2};
_.hx.Object.defineProperties(n2.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.Y("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.Y("web_enable_rich_item_on_focus_effect")||_.Y("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}}});
n2.prototype.richGridHoverHighlightChanged=n2.prototype.richGridHoverHighlightChanged;n2.prototype.observerContainerType=n2.prototype.observerContainerType;n2.prototype.updateIsInFirstColumn=n2.prototype.updateIsInFirstColumn;_.m([_.P(_.Ai),_.L("design:type",Object)],n2.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],n2.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],n2.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],n2.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.K4),_.L("design:type",Object)],n2.prototype,"ytdLockupBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],n2.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.L("design:type",Boolean)],n2.prototype,"isPost",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.L("design:type",Boolean)],n2.prototype,"containsLumierePosters",void 0);_.m([_.K({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.L("design:type",Boolean)],n2.prototype,"isSlimMedia",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.L("design:type",Boolean)],n2.prototype,"isGameCardShelf",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.L("design:type",Boolean)],n2.prototype,"isMiniGameCardShelf",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.L("design:type",Boolean)],n2.prototype,"isTeaserCard",void 0);_.m([_.K({computed:"computeIsSelectableFeedbackItem(data)"}),_.L("design:type",Boolean)],n2.prototype,"isSelectableFeedbackItem",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],n2.prototype,"isShortsGrid",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],n2.prototype,"isSlimGrid",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],n2.prototype,"isCompactGrid",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],n2.prototype,"isShortsPanelGrid",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.L("design:type",Boolean)],n2.prototype,"isExpandOnHoverCardShelf",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.L("design:type",Boolean)],n2.prototype,"isLinkCardShelf",void 0);_.m([_.K({reflectToAttribute:!0,selector:_.Ps,value:3}),_.L("design:type",Number)],n2.prototype,"itemsPerRow",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],n2.prototype,"renderedFromRichGrid",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],n2.prototype,"isInFirstColumn",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],n2.prototype,"noGutterMargins",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],n2.prototype,"isInlineGroupItem",void 0);_.m([_.K(),_.L("design:type",Object)],n2.prototype,"insetMetadata",void 0);
_.m([_.K(),_.L("design:type",Object)],n2.prototype,"noBottomMarginInAds",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],n2.prototype,"isShelfItem",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.L("design:type",Boolean)],n2.prototype,"isReelItemStyleAvatarCircle",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.L("design:type",Boolean)],n2.prototype,"isLinkCardFullWidth",void 0);
_.m([_.K(),_.L("design:type",Object)],n2.prototype,"force16By9ThumbnailAspectRatio",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],n2.prototype,"useCompactList",void 0);_.m([_.K(),_.L("design:type",String)],n2.prototype,"sizing",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],n2.prototype,"typographyBump",void 0);_.m([_.K(),_.L("design:type",Number)],n2.prototype,"itemWidth",void 0);_.m([_.K(),_.L("design:type",Boolean)],n2.prototype,"isHomeShelf",void 0);
_.m([_.K(),_.L("design:type",Boolean)],n2.prototype,"isHomeGrid",void 0);_.m([_.zb("yt-lockup-view-model"),_.L("design:type",HTMLElement)],n2.prototype,"lockup",void 0);_.m([_.zb("ytd-rich-grid-media"),_.L("design:type",HTMLElement)],n2.prototype,"richGridMedia",void 0);_.m([_.zb("ytd-ad-slot-renderer"),_.L("design:type",HTMLElement)],n2.prototype,"adSlotRenderer",void 0);_.m([_.K({computed:"computeContainerType(useCompactList)"}),_.L("design:type",Object)],n2.prototype,"containerType",void 0);
_.m([_.K({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.L("design:type",Object)],n2.prototype,"thumbnailTargetWidth",void 0);_.m([_.W("showYtInteractionOnRichItem"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],n2.prototype,"showYtInteractionOnRichGridMedia",null);_.m([_.W("isSelectableFeedbackItem","richGridHoverHighlight"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],n2.prototype,"showYtInteractionOnRichItem",null);
_.m([_.W("typographyBump","isHomeGrid"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],n2.prototype,"richTypographyBump",null);_.m([_.K({reflectToAttribute:!0}),_.W("isShortsGrid","isCompactGrid"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],n2.prototype,"richGridHoverHighlight",null);_.m([_.W("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.L("design:type",Number),_.L("design:paramtypes",[])],n2.prototype,"shortsLockupViewModelAspectRatio",null);
_.m([_.W("isInlineGroupItem"),_.L("design:type",Number),_.L("design:paramtypes",[])],n2.prototype,"shortsLockupViewModelScrimStyle",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],n2.prototype,"updateIsInFirstColumn",null);_.m([_.Gb("containerType","sizing","typographyBump"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],n2.prototype,"observerContainerType",null);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],n2.prototype,"isResponsiveGrid",void 0);_.m([_.K(),_.L("design:type",Object)],n2.prototype,"lockupExperiments",void 0);_.m([_.Gb("richGridHoverHighlight"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],n2.prototype,"richGridHoverHighlightChanged",null);_.m([_.N({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],n2);
_.jG6=_.U2()(n2,"ytd-rich-item-renderer",function(){if(DII===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);DII=g}g=DII;return g},{mode:_.My("kevlar_poly_si_batch_j028")?1:2});var HJJ={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var JrD=_.Lf(_.zn("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Y$X={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var AUb;var s3=function(){var g=_.a.apply(this,arguments)||this;g.useResponsiveGrid=!1;g.hidden=!1;g.standardShelfMargins=_.Y("web_rich_grid_standard_shelf_margins");g.isShowMoreHidden=!1;g.isExpanded=!1;g.isInnerShelf=!1;g.allVideosCount=0;g.allPlaylistCount=0;g.haveSmartDownloadsCompleted=!1;g.isShowLessHidden=!0;g.restrictContentsOverflow=!1;g.firstShownIndex=0;g.horizontalOffset=0;g.atEnd=!0;g.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};g.nextClick=function(){var r;(r=g.data)!=null&&r.contents&&(g.firstShownIndex+=g.currentElementsPerRow,g.updateHorizontalOffset(),g.updateHorizontalItemVisibility())};
g.previousClick=function(){var r;(r=g.data)!=null&&r.contents&&(g.firstShownIndex-=g.currentElementsPerRow,g.updateHorizontalOffset(),g.updateHorizontalItemVisibility())};
return g};
_.f(s3,_.a);_.S=s3.prototype;
_.S.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.Ca("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.S.attached=function(){this.requestElementsPerRow()};
_.S.refreshGridLayoutNew=function(){var g;if((g=this.data)!=null&&g.contents&&this.containerWidth){var r;((r=this.data.responsiveContainerConfiguration)==null?0:r.responsiveSize)?(g=_.FUl(this.data.responsiveContainerConfiguration,this.containerWidth),g=_.cX(Object.assign({},g,{standardUnitMinWidth:this.standardUnitMinWidth}))):g=_.cX({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=g.typographyBump;if(this.elementsPerRow!==
g.numItems||this.gutter!==g.gutter)this.elementsPerRow=g.numItems,this.gutter=g.gutter,this.itemWidth=g.itemWidth,_.ua(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":g.gutter+"px"})}};
_.S.computeSizing=function(){if(!this.isLumiere){var g=_.mxl(this.data);if(g)return g;if(_.Y("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.S.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.S.computeButton=function(g){var r=_.n(g,_.Fd);g=Object.assign({},_.n(g,_.Fd));return r?(g.text||(g.text={simpleText:g.tooltip}),g.style="STYLE_MONO_OUTLINE",g.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",g):r};
_.S.onRowIndexChange=function(){var g=_.PE(),r,E;((r=this.data)==null?0:r.trackingParams)&&((E=this.data)==null?void 0:E.rowIndex)!=null&&g&&_.hg(g,_.fW(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.S.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var g,r=((g=this.getRichItemRenderers()[0])==null?void 0:g.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*r;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.S.requestElementsPerRow=function(){_.Sh(this.hostElement,"yt-request-elements-per-row")};
_.S.onUpdateElementsPerRowAction=function(g,r,E,B,w,O){if(this.containerWidth!==O&&(this.containerWidth=O,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&g&&r&&E&&B&&w&&(this.elementsPerRow!==g||this.postsPerRow!==r||this.slimItemsPerRow!==E||this.gameCardsPerRow!==B||this.miniGameCardsPerRow!==w)&&(this.elementsPerRow=g,this.postsPerRow=r,this.slimItemsPerRow=E,this.gameCardsPerRow=B,this.miniGameCardsPerRow=w,this.updateItemVisibility())};
_.S.getRichItemRenderers=function(){return _.S3(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.S.updateItemVisibility=function(){var g=this;if(this.data&&this.data.contents){var r=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(B,w){var O;((O=g.data)==null?0:O.isExpanded)?(B.hidden=w>r-1,B.ytRendererBehavior.markDirty()):B.hidden=w>g.currentElementsPerRow-1||w>r-1});
var E=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||E||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||E||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.S.setHeightToSingleRow=function(){var g=this.getRichItemRenderers(),r=Number.parseInt(getComputedStyle(g[0]).marginBottom,10)||0;g=g.slice(0,this.currentElementsPerRow).reduce(function(E,B){return Math.max(E,B.getBoundingClientRect().height+r)},0);
this.contents.style.height=g+"px"};
_.S.focusNextExpandedItem=function(){var g;((g=this.data)==null?0:g.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.S.focusItem=function(g,r){var E=this.getRichItemRenderers();if(E[g]&&(g=E[g].querySelector(".focus-on-expand"))){if(r){var B;(B=E[this.currentElementsPerRow])==null||B.scrollIntoView({behavior:"smooth",block:"center"})}g.focus({preventScroll:!0})}};
_.S.onDataChange=function(){var g=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var r;if((r=this.data)==null?0:r.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.Lk(this,function(){g.updateItemVisibility()});
var E;if((E=this.data)==null?0:E.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.ua(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),r=0;r<this.data.contents.length;r++)E=_.n(this.data.contents[r],_.s7)||{},E.colIndex=r,E.rowIndex=this.data.rowIndex};
_.S.handleRerenderDownloadsData=function(){_.Y("kevlar_modern_downloads_page")&&this.entityDrivenRichShelfData&&(this.set("data.contents",this.entityDrivenRichShelfData.contents),this.entityDrivenRichShelfData.subtitle&&this.set("data.subtitle",this.entityDrivenRichShelfData.subtitle),this.updateItemVisibility())};
_.S.blockInlinePreview=function(g){var r=this,E;return _.q(function(B){(E=r.inlinePreviewIsEnabled)&&r.ytdReduxBehavior.dispatch(_.k4b(!1));return B.return(new Promise(function(w){g(function(){E&&r.ytdReduxBehavior.dispatch(_.k4b(!0));w()})}))})};
_.S.expandShelf=function(){var g=this;if(this.data){var r,E=(r=_.n(this.data.showMoreButton,_.Fd))==null?void 0:r.trackingParams;E&&_.MJ(_.pW(),E);this.data.isExpanded=!0;this.blockInlinePreview(function(B){g.setHeightToSingleRow();g.updateItemVisibility();g.contents.style.height=g.contents.scrollHeight+"px";_.F6.addJob(function(){g.contents.style.height="auto";g.focusNextExpandedItem();B()},2,200)})}};
_.S.collapseShelf=function(){var g=this;return _.q(function(r){if(r.nextAddress==1){if(!g.data)return r.return();g.data.isExpanded=!1;return _.D(r,g.blockInlinePreview(function(E){g.contents.style.height=g.contents.scrollHeight+"px";g.setHeightToSingleRow();_.F6.addJob(function(){g.updateItemVisibility();g.contents.style.height="auto";E()},2,200)}),2)}_.Sh(g.hostElement,"yt-rich-shelf-renderer-collapse",g.data.trackingParams);
g.focusItem(0,!1);_.Q3(r)})};
_.S.updateArrowButtonStatus=function(){var g=this.getRichItemRenderers().length;if(!_.Y("web_rich_shelf_renderer_use_data_contents_killswitch")){var r,E;g=((r=this.data)==null?void 0:(E=r.contents)==null?void 0:E.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=g};
_.S.onChildElementFocus=function(g){this.hasChevronButtons&&(g=g.target.closest("#contents > *"),this.contents.contains(g)&&(g.offsetLeft<this.horizontalOffset?this.previousClick():g.offsetLeft+g.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.S.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.Ca("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.S.updateHorizontalOffset=function(){var g=this.getRichItemRenderers(),r=g.length;if(!_.Y("web_rich_shelf_renderer_use_data_contents_killswitch")){var E,B;r=((E=this.data)==null?void 0:(B=E.contents)==null?void 0:B.length)||0}var w;g=((w=g[0])==null?void 0:w.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>r?this.firstShownIndex=r-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*g};
_.S.isSlimMediaShelfRenderer=function(){var g,r,E,B=(E=_.n((g=this.data)==null?void 0:(r=g.contents)==null?void 0:r[0],_.s7))==null?void 0:E.content;return!!(_.n(B,_.wj4)||_.n(B,B8z)||_.n(B,_.t9)||_.n(B,f04))};
_.S.isGameCardShelf=function(){var g,r,E,B=(E=_.n((g=this.data)==null?void 0:(r=g.contents)==null?void 0:r[0],_.s7))==null?void 0:E.content;return!!_.n(B,MwZ)};
_.S.isGnomeShelf=function(){var g,r,E,B=(E=_.n((g=this.data)==null?void 0:(r=g.contents)==null?void 0:r[0],_.s7))==null?void 0:E.content;return!!_.n(B,_.jwT)};
_.S.isMiniGameCardShelf=function(){var g,r,E,B=(E=_.n((g=this.data)==null?void 0:(r=g.contents)==null?void 0:r[0],_.s7))==null?void 0:E.content;return!!_.n(B,swz)||!!_.n(B,ffU)};
_.S.hasGameBoxArtAvatarStyle=function(){var g;return((g=this.data)==null?void 0:g.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.S.hasRoundedGameBoxArtAvatarStyle=function(){var g;return((g=this.data)==null?void 0:g.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.S.isShortsShelf=function(){var g,r,E,B=(E=_.n((g=this.data)==null?void 0:(r=g.contents)==null?void 0:r[0],_.s7))==null?void 0:E.content;return!!_.n(B,_.t9)||!!_.n(B,f04)};
_.S.isPostShelfRenderer=function(){var g,r,E,B=(E=_.n((g=this.data)==null?void 0:(r=g.contents)==null?void 0:r[0],_.s7))==null?void 0:E.content;return!(!_.n(B,dSw)&&!_.n(B,Txw))};
_.S.isLumiereShelf=function(){var g,r,E=_.n((g=this.data)==null?void 0:(r=g.contents)==null?void 0:r[0],_.s7);return!!_.n(E==null?void 0:E.content,qzZ)};
_.S.isLumiereShelfWithPosters=function(){var g,r,E=_.n((g=this.data)==null?void 0:(r=g.contents)==null?void 0:r[0],_.s7),B;return((B=_.n(E==null?void 0:E.content,qzZ))==null?void 0:B.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.S.isExpandOnHoverCardShelf=function(){var g,r,E,B=(E=_.n((g=this.data)==null?void 0:(r=g.contents)==null?void 0:r[0],_.s7))==null?void 0:E.content;return!!_.n(B,MIn)};
_.S.computeHasFeaturedBadge=function(){var g,r,E=_.n((g=this.data)==null?void 0:(r=g.badges)==null?void 0:r[0],_.joD);return E?E.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.S.computeHasPaygatedFeaturedBadge=function(){var g,r,E=_.n((g=this.data)==null?void 0:(r=g.badges)==null?void 0:r[0],_.joD);return E?(E==null?void 0:E.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.S.computeHeaderHidden=function(){var g,r,E,B,w,O;return!((g=this.data)==null?0:g.icon)&&!((r=this.data)==null?0:r.title)&&!((E=this.data)==null?0:E.subtitle)&&!((B=this.data)==null?0:B.thumbnail)&&!((w=this.data)==null?0:w.badges)&&!((O=this.data)==null?0:O.menu)};
_.S.showCtaButton=function(){var g;return!((g=this.data)==null||!g.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.S.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.S.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.S.computeForce16By9ThumbnailAspectRatio=function(){var g,r;return((g=this.data)==null?void 0:(r=g.responsiveContainerConfiguration)==null?void 0:r.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.S.onSectionReactiveDismissal=function(g,r,E){var B,w;var O=(B=this.data)==null?void 0:(w=B.targetingContext)==null?void 0:w.targetGroupId;this&&O&&r.targetGroupId&&O.includes(r.targetGroupId)?(B=this.rowIndex,g=B===void 0?!1:!(r.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&B<=g)):g=!1;g&&(this.hidden=E)};
_.hx.Object.defineProperties(s3.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var g=this.elementsPerRow;this.isPostShelfRenderer()?g=this.postsPerRow:this.isSlimMediaShelfRenderer()?g=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?g=this.slimItemsPerRow-1:this.isGameCardShelf()?g=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(g=this.miniGameCardsPerRow);return g}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.Y("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var g,r;return!((g=this.data)==null||!g.previousButton)&&!((r=this.data)==null||!r.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 g;return((g=_.rM().resolve(_.vK).getCurrentPage())==null?void 0:g.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var g,r,E,B;return!((g=this.data)==null?0:(r=g.thumbnail)==null?0:(E=r.accessibility)==null?0:(B=E.accessibilityData)==null?0:B.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
s3.prototype.onChildElementFocus=s3.prototype.onChildElementFocus;s3.prototype.handleRerenderDownloadsData=s3.prototype.handleRerenderDownloadsData;s3.prototype.onDataChange=s3.prototype.onDataChange;s3.prototype.onRowIndexChange=s3.prototype.onRowIndexChange;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],s3.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],s3.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.Ji),_.L("design:type",Object)],s3.prototype,"ytdDismissibleItemBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],s3.prototype,"actionHandlerBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],s3.prototype,"ytdReduxBehavior",void 0);_.m([_.K({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.L("design:type",Object)],s3.prototype,"useResponsiveGrid",void 0);_.m([_.K(),_.L("design:type",Object)],s3.prototype,"data",void 0);
_.m([_.K(),_.L("design:type",Number)],s3.prototype,"standardUnitMinWidth",void 0);_.m([_.K({reflectToAttribute:!0,value:3}),_.L("design:type",Number)],s3.prototype,"elementsPerRow",void 0);_.m([_.K({value:3}),_.L("design:type",Number)],s3.prototype,"postsPerRow",void 0);_.m([_.K({value:6}),_.L("design:type",Number)],s3.prototype,"slimItemsPerRow",void 0);_.m([_.K({value:6}),_.L("design:type",Number)],s3.prototype,"gameCardsPerRow",void 0);
_.m([_.K({value:6}),_.L("design:type",Number)],s3.prototype,"miniGameCardsPerRow",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],s3.prototype,"hidden",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],s3.prototype,"standardShelfMargins",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],s3.prototype,"isShowMoreHidden",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],s3.prototype,"isExpanded",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],s3.prototype,"isInnerShelf",void 0);_.m([_.K({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.L("design:type",Boolean)],s3.prototype,"isShorts",void 0);_.m([_.K({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.L("design:type",Boolean)],s3.prototype,"isLumiere",void 0);_.m([_.K({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.L("design:type",Boolean)],s3.prototype,"hasBoxArtThumbnailStyle",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.L("design:type",Boolean)],s3.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.L("design:type",Boolean)],s3.prototype,"hasFeaturedBadge",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.L("design:type",Boolean)],s3.prototype,"hasPaygatedFeaturedBadge",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.L("design:type",Boolean)],s3.prototype,"isHeaderHidden",void 0);_.m([_.K({selector:_.nTD}),_.L("design:type",Object)],s3.prototype,"allVideosCount",void 0);_.m([_.K({selector:tqL}),_.L("design:type",Object)],s3.prototype,"allPlaylistCount",void 0);_.m([_.K({selector:F5t}),_.L("design:type",Object)],s3.prototype,"haveSmartDownloadsCompleted",void 0);
_.m([_.K({selectorArgs:["entitySelectorType"],selector:function(g,r){if(_.Y("kevlar_modern_downloads_page")&&r&&r!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var E=g.entities;switch(r){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":r=_.j9(E);g=f0(r);var B=_.YD(r);E=_.b1(E);E=_.gz(ssX(B,E,r.length));return{contents:g,subtitle:E};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return E=_.j9(E),{contents:f0(E)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return E=
_.Aj(E),{contents:f0(E)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return E=_.gTX(E),{contents:f0(E)};default:_.el(new _.Rj("Error: entitySelectorType defined but not matched in selector.",g,r))}}}}),
_.L("design:type",Object)],s3.prototype,"entityDrivenRichShelfData",void 0);_.m([_.K({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.L("design:type",Boolean)],s3.prototype,"hasTopCtaButton",void 0);_.m([_.K({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.L("design:type",Boolean)],s3.prototype,"hasBottomCtaButton",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.L("design:type",Boolean)],s3.prototype,"force16By9ThumbnailAspectRatio",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],s3.prototype,"isShowLessHidden",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],s3.prototype,"restrictContentsOverflow",void 0);_.m([_.K({selector:_.kiD}),_.L("design:type",Boolean)],s3.prototype,"inlinePreviewIsEnabled",void 0);
_.m([_.K({computed:"computeSizing(data)"}),_.L("design:type",String)],s3.prototype,"sizing",void 0);_.m([_.K(),_.L("design:type",Boolean)],s3.prototype,"typographyBump",void 0);_.m([_.K(),_.L("design:type",Number)],s3.prototype,"itemWidth",void 0);_.m([_.K(),_.L("design:type",Object)],s3.prototype,"firstShownIndex",void 0);_.m([_.K(),_.L("design:type",Object)],s3.prototype,"horizontalOffset",void 0);_.m([_.K(),_.L("design:type",Object)],s3.prototype,"atEnd",void 0);
_.m([_.zb("#contents"),_.L("design:type",HTMLElement)],s3.prototype,"contents",void 0);_.m([_.Gb("data.rowIndex"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],s3.prototype,"onRowIndexChange",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],s3.prototype,"onDataChange",null);
_.m([_.Gb("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],s3.prototype,"handleRerenderDownloadsData",null);_.m([_.ob("focusin"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],s3.prototype,"onChildElementFocus",null);_.m([_.K({reflectToAttribute:!0}),_.W("data","isHomePage"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],s3.prototype,"isTruncated",null);
_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],s3.prototype,"hideBottomDivider",null);_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],s3.prototype,"hasChevronButtons",null);_.m([_.W("firstShownIndex"),_.L("design:type",Object),_.L("design:paramtypes",[])],s3.prototype,"previousButtonOverride",null);
_.m([_.W("atEnd"),_.L("design:type",Object),_.L("design:paramtypes",[])],s3.prototype,"nextButtonOverride",null);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],s3.prototype,"isHomePage",null);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],s3.prototype,"thumbnailAriaHidden",null);_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],s3.prototype,"initiallyIsExpanded",null);
_.m([_.W("data"),_.L("design:type",String),_.L("design:paramtypes",[])],s3.prototype,"entitySelectorType",null);_.m([_.N({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],s3);
_.b66=_.U2()(s3,"ytd-rich-shelf-renderer",function(){if(AUb===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);AUb=g}g=AUb;return g},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.My("kevlar_poly_si_batch_j028")?1:2});var JU4;_.BK(ObI,"yt-slimline-survey-view-model",{props:{data:_.cP}});var f2=function(){var g=_.a.apply(this,arguments)||this;g.tileLottieAnimationRef={};g.backgroundLottieAnimationRef={};g.isOnHoverBehaviorForLottieEnabled=!0;g.useBiggerShowcaseImage=_.Y("enable_desktop_search_bigger_thumbs");g.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return g};
_.f(f2,_.a);_.S=f2.prototype;_.S.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.S.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.S.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var g=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);g!==this.hasTile&&this.set("hasTile",g);g=this.hasLogo(this.data)||!!this.data.badgeText;g!==this.hasMetadata&&this.set("hasMetadata",g);g=this.data.overflowButton?!1:g;g!==this.showLogoImage&&this.set("showLogoImage",g);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.S.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.S.currentColorChanged=function(){this.updateButtonPalette()};
_.S.computeBackgroundStyle=function(g){if(g&&this.data){var r=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var E=_.Sk((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);E&&r.push('background-image: url("'+E+'");')}var B;((B=g.basicColorData)==null?void 0:B.backgroundColor)!==void 0&&r.push("background-color: "+_.XT(g.basicColorData.backgroundColor)+";");return r.join("")}};
_.S.onDarkModeToggledAction=function(g){g!==this.isDarkTheme&&this.set("isDarkTheme",g)};
_.S.getCurrentLogo=function(g,r){if(g)return r?g.darkLogoImage:g.lightLogoImage};
_.S.getCurrentStaticTileImage=function(g,r){if(this.hasStaticTile(g))return g.darkTileImage?r?g.darkTileImage:g.tileImage:g.tileImage};
_.S.computeTitleStyle=function(g){if(this.data&&this.data.title&&g&&g.basicColorData&&g.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.aJ(g.basicColorData.foregroundTitleColor)+";"};
_.S.computeSubtitleStyle=function(g){if(this.data&&this.data.subtitle&&g&&g.basicColorData&&g.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.aJ(g.basicColorData.foregroundBodyColor)+";"};
_.S.computeSupplementalStyle=function(g){if(this.data&&this.data.supplementalText&&g&&g.supplementalTextColor!==void 0)return g=_.aJ(g.supplementalTextColor),"color:"+g+";--yt-endpoint-color:"+g+";--yt-endpoint-hover-color:"+g+";--yt-endpoint-visited-color:"+g+";--yt-formatted-string-bold-font-weight:700;"};
_.S.computeBadgeStyle=function(g){if(this.data&&this.data.badgeText&&g&&g.basicColorData&&g.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.aJ(g.basicColorData.foregroundActivatedColor)+";"};
_.S.computeDismissIconStyle=function(g){var r,E;if((g==null?0:(r=g.dismissButtonColorData)==null?0:r.foregroundTitleColor)&&(g==null?0:(E=g.dismissButtonColorData)==null?0:E.backgroundColor))return"--yt-button-color:"+_.XT(g.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.XT(g.dismissButtonColorData.backgroundColor)+";"};
_.S.computeOverflowIconStyle=function(g){var r,E;if((g==null?0:(r=g.dismissButtonColorData)==null?0:r.foregroundTitleColor)&&(g==null?0:(E=g.dismissButtonColorData)==null?0:E.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.XT(g.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.XT(g.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.XT(g.dismissButtonColorData.foregroundTitleColor)+";"};
_.S.computeBannerStyle=function(g){return g?g.toLowerCase().replace(/_/g,"-"):""};
_.S.computeLocation=function(g){switch(g==null?void 0:g.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.S.shouldShowTileSection=function(g,r,E){return!this.shouldExpandLogo(g,r,E)&&r};
_.S.shouldShowExpandedLogoSection=function(g,r,E){return this.shouldExpandLogo(g,r,E)&&g!==void 0&&this.hasLogo(g)};
_.S.shouldExpandLogo=function(g,r,E){return g&&r?!1:E>=2};
_.S.hasStaticTile=function(g){return!(g==null||!g.tileImage)};
_.S.hasTileLottie=function(g){var r;return!!(g==null?0:(r=g.tileLottie)==null?0:r.url)};
_.S.hasLogo=function(g){return this.getCurrentLogo(g,this.isDarkTheme)!==void 0};
_.S.getLogoHeight=function(g){return this.logoWithPadding(g)?"26":"20"};
_.S.getExpandedLogoHeight=function(g){return this.logoWithPadding(g)?"31":"24"};
_.S.getLogoImageId=function(g){return this.logoWithPadding(g)?"logo-image-with-padding":"logo-image"};
_.S.hasBackgroundLottie=function(g){var r;return!!(g==null?0:(r=g.backgroundLottie)==null?0:r.url)};
_.S.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var g,r;(g=this.tileLottieAnimationRef)==null||(r=g.lottieEl)==null||r.play();var E,B;(E=this.backgroundLottieAnimationRef)==null||(B=E.lottieEl)==null||B.play()}};
_.S.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var g,r;(g=this.tileLottieAnimationRef)==null||(r=g.lottieEl)==null||r.pause();var E,B;(E=this.backgroundLottieAnimationRef)==null||(B=E.lottieEl)==null||B.pause()}};
_.S.pauseLottie=function(){var g,r;(g=this.tileLottieAnimationRef)==null||(r=g.lottieEl)==null||r.pause();var E,B;(E=this.backgroundLottieAnimationRef)==null||(B=E.lottieEl)==null||B.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.S.performPrimaryButtonAction=function(){var g,r,E;((g=this.data)==null?0:(r=g.primaryButton)==null?0:(E=r.buttonRenderer)==null?0:E.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.S.requestElementsPerRow=function(){_.Sh(this.hostElement,"yt-request-elements-per-row")};
_.S.updateButtonPalette=function(){if(this.data&&this.currentColorData){var g;((g=this.data.dismissButton)==null?0:g.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 r;if((r=this.data.primaryButton)==null?0:r.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 E;if((E=this.data.secondaryButton)==
null?0:E.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 B;((B=this.data.primaryButton)==null?0:B.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var w;((w=this.data.secondaryButton)==null?0:w.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.S.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var g=this.getTileLottieDataBasedOnTheme(),r,E;if(g.url!==((r=this.tileLottiePlayerProps)==null?void 0:(E=r.animationConfig)==null?void 0:E.path)){var B,w;(B=this.tileLottieAnimationRef)==null||(w=B.lottieEl)==null||w.destroy();var O;this.isOnHoverBehaviorForLottieEnabled=!((O=g.settings)==null?0:O.autoplay);var M,u;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(u=(M=g.settings)==null?void 0:M.autoplay)!=null?u:!1,loop:this.getLottieLoopValue(g.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof g.url==="string"?this.tileLottiePlayerProps.animationConfig.path=g.url:this.tileLottiePlayerProps.animationConfig.animationData=g.url}}};
_.S.getOverflowButton=function(g){return _.n(g.overflowButton,J2w)};
_.S.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var g=this.getBackgroundLottieDataBasedOnTheme(),r,E;if(g.url!==((r=this.backgroundLottiePlayerProps)==null?void 0:(E=r.animationConfig)==null?void 0:E.path)){var B,w;(B=this.backgroundLottieAnimationRef)==null||(w=B.lottieEl)==null||w.destroy();var O;this.isOnHoverBehaviorForLottieEnabled=!((O=g.settings)==null?0:O.autoplay);var M,u;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(u=(M=g.settings)==null?void 0:M.autoplay)!=null?u:!1,loop:this.getLottieLoopValue(g.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof g.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=g.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
g.url}}};
_.S.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var g;((g=this.tileLottieAnimationRef)==null?void 0:g.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var r;((r=this.backgroundLottieAnimationRef)==null?void 0:r.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.S.getTileLottieDataBasedOnTheme=function(){var g;if(this.isDarkTheme&&((g=this.data)==null?0:g.darkThemeTileLottie))return this.data.darkThemeTileLottie;var r;return((r=this.data)==null?0:r.tileLottie)?this.data.tileLottie:{}};
_.S.getBackgroundLottieDataBasedOnTheme=function(){var g;if(this.isDarkTheme&&((g=this.data)==null?0:g.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var r;return((r=this.data)==null?0:r.backgroundLottie)?this.data.backgroundLottie:{}};
_.S.onUpdateElementsPerRowAction=function(g){g&&this.elementsPerRow!==g&&(this.elementsPerRow=g)};
_.S.getLottieLoopValue=function(g){return g?g.loop!==void 0?g.loop:g.loopCount?g.loopCount-1:!0:!0};
_.S.logoWithPadding=function(g){var r,E,B;return(g=(r=this.getCurrentLogo(g,this.isDarkTheme))==null?void 0:(E=r.thumbnails)==null?void 0:(B=E[0])==null?void 0:B.height)&&g%31===0?!0:!1};
f2.prototype.currentColorChanged=f2.prototype.currentColorChanged;f2.prototype.themeChanged=f2.prototype.themeChanged;f2.prototype.dataChanged=f2.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],f2.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],f2.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ji),_.L("design:type",Object)],f2.prototype,"ytdDismissibleItemBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],f2.prototype,"actionHandlerBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],f2.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],f2.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],f2.prototype,"primaryButton",void 0);_.m([_.K(),_.L("design:type",Object)],f2.prototype,"secondaryButton",void 0);
_.m([_.K({reflectToAttribute:!0,value:3}),_.L("design:type",Number)],f2.prototype,"elementsPerRow",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],f2.prototype,"isDarkTheme",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],f2.prototype,"hasTile",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],f2.prototype,"hasMetadata",void 0);
_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],f2.prototype,"showLogoImage",void 0);_.m([_.K(),_.L("design:type",Object)],f2.prototype,"currentColorData",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.L("design:type",String)],f2.prototype,"bannerStyle",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.L("design:type",String)],f2.prototype,"location",void 0);
_.m([_.K(),_.L("design:type",Object)],f2.prototype,"tileLottiePlayerProps",void 0);_.m([_.K(),_.L("design:type",Object)],f2.prototype,"tileLottieAnimationRef",void 0);_.m([_.K(),_.L("design:type",Object)],f2.prototype,"backgroundLottiePlayerProps",void 0);_.m([_.K(),_.L("design:type",Object)],f2.prototype,"backgroundLottieAnimationRef",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],f2.prototype,"useBiggerShowcaseImage",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],f2.prototype,"isHideEnclosingAction",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],f2.prototype,"dataChanged",null);_.m([_.Yk("isDarkTheme"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],f2.prototype,"themeChanged",null);
_.m([_.Yk("currentColorData"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],f2.prototype,"currentColorChanged",null);_.m([_.N({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],f2);
_.I(f2,"ytd-statement-banner-renderer",function(){if(JU4!==void 0)return JU4;var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-img-shadow>\n            <div id="badge-container" style$="[[computeBadgeStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="36" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[!data.overflowButton]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return JU4=g},{mode:1});var PEw;var $m=function(){var g=_.a.apply(this,arguments)||this;g.isSearch=!1;g.hideShelfHeader=!1;g.engagementPanel=!1;g.disableMouseScroll=!0;g.useFloorScrolling=!0;g.modernTypography=_.Y("web_modern_typography");return g};
_.f($m,_.a);$m.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.zn("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.zn("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
$m.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
$m.prototype.onDataChanged=$m.prototype.onDataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],$m.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],$m.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],$m.prototype,"isSearch",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],$m.prototype,"hideShelfHeader",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],$m.prototype,"engagementPanel",void 0);_.m([_.K(),_.L("design:type",Object)],$m.prototype,"disableMouseScroll",void 0);_.m([_.K(),_.L("design:type",Object)],$m.prototype,"useFloorScrolling",void 0);_.m([_.K(),_.L("design:type",Object)],$m.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],$m.prototype,"modernTypography",void 0);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],$m.prototype,"onDataChanged",null);_.m([_.N({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],$m);
_.I($m,"ytd-reel-shelf-renderer",function(){if(PEw!==void 0)return PEw;var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return PEw=g},{mode:_.My("kevlar_poly_si_batch_j028")?1:2});var tAm;var FBU=_.dG(function(g){var r=g.data;g=g.useSmallFont;var E={},B={};return _.G("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.G(_.p,{cond:function(){return r().favicon},
then:function(w){return _.G(_.vw,{data:w,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.G("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.G(_.hf,{text:function(){return r().title},
className:_.QY("yt-channel-external-link-view-model-wiz__title",(E["yt-channel-external-link-view-model-wiz__title--title-small-font"]=g,E)),ellipsisTruncate:!0,userInput:!0}),_.G(_.hf,{text:function(){return r().link},
className:_.QY("yt-channel-external-link-view-model-wiz__link",(B["yt-channel-external-link-view-model-wiz__link--link-small-font"]=g,B)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Nb");
FBU.idomCompat=!0;_.BK(FBU,"yt-channel-external-link-view-model",{props:{data:_.cP,useSmallFont:_.cP}});_.ek("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var jd=function(){var g=_.a.apply(this,arguments)||this;g.revealButtonClass="button";g.businessEmailDisplayState="HIDE_SECTION";return g};
_.f(jd,_.a);_.S=jd.prototype;_.S.refit=function(){var g=this;_.N1(function(){_.US(g.hostElement,"yt-refit-popups-action")});
_.Lk(this,function(){_.US(g.hostElement,"yt-refit-popups-action")})};
_.S.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.xy("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.S.businessEmailMetadataChanged=function(){this.revealButton||this.businessEmail||this.metadata.signInForBusinessEmail?this.metadata.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.metadata.businessEmail&&(this.businessEmail=this.metadata.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.S.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.S.configureRendererStamper=function(){return{"data.flaggingButton":{id:"flagging-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.shareChannel":{id:"share-channel",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"metadata.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:"yt-channel-external-link-view-model"}}}};
_.S.computeEmailHref=function(g){return"mailto:"+g};
_.S.computeSafeUrl=function(g){if(g)return _.nI(g)};
_.S.linkEndpoint=function(g){return _.n(g.onTap,_.KW)};
_.S.linkEndpointToHref=function(g){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(g))};
_.S.onYtServiceRequestCompleted=function(g){var r;if((r=g.detail.data)==null?0:r.businessEmail)this.businessEmail=g.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var E;if((E=g.detail.data)==null?0:E.errorMessage)this.businessEmailErrorMessage=g.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.S.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var g=this.JSC$14259_captchaTextarea.value;if(g){g={recaptcha_response_token:g,channel_id:this.metadata.channelId};var r=_.n(this.metadata.onBusinessEmailRevealClickCommand,_.KW);r&&this.ytComponentBehavior.resolveCommand(r,{form:g})}}};
_.S.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.hx.Object.defineProperties(jd.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var g;return _.n((g=this.data)==null?void 0:g.metadata,o2T)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.n(this.metadata.businessEmailRevealButton,_.nm)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var g=new URL(this.metadata.canonicalChannelUrl);return g.host+g.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 _.n(this.metadata.learnMoreOnTap,_.KW)}}});
jd.prototype.onYtServiceRequestCompleted=jd.prototype.onYtServiceRequestCompleted;jd.prototype.businessEmailMetadataChanged=jd.prototype.businessEmailMetadataChanged;jd.prototype.refit=jd.prototype.refit;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],jd.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],jd.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],jd.prototype,"ytRendererstamperBehavior",void 0);_.m([_.zb("#g-recaptcha-response"),_.L("design:type",HTMLTextAreaElement)],jd.prototype,"JSC$14259_captchaTextarea",void 0);_.m([_.K(),_.L("design:type",Object)],jd.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],jd.prototype,"revealButtonClass",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],jd.prototype,"metadata",null);
_.m([_.W("metadata"),_.L("design:type",Object),_.L("design:paramtypes",[])],jd.prototype,"revealButton",null);_.m([_.W("metadata"),_.L("design:type",Object),_.L("design:paramtypes",[])],jd.prototype,"channelDisplayUrl",null);_.m([_.Yk("metadata"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],jd.prototype,"refit",null);_.m([_.W("metadata"),_.L("design:type",Object),_.L("design:paramtypes",[])],jd.prototype,"formattedDescription",null);
_.m([_.W("metadata","learnMoreCommand"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],jd.prototype,"shouldRendereVerifiedPhoneStatus",null);_.m([_.W("metadata"),_.L("design:type",Object),_.L("design:paramtypes",[])],jd.prototype,"learnMoreCommand",null);_.m([_.K(),_.L("design:type",String)],jd.prototype,"businessEmailDisplayState",void 0);_.m([_.K(),_.L("design:type",String)],jd.prototype,"businessEmail",void 0);
_.m([_.K(),_.L("design:type",String)],jd.prototype,"businessEmailErrorMessage",void 0);_.m([_.Yk("metadata"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],jd.prototype,"businessEmailMetadataChanged",null);_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],jd.prototype,"onYtServiceRequestCompleted",null);_.m([_.N({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],jd);
_.I(jd,"ytd-about-channel-renderer",function(){if(tAm!==void 0)return tAm;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return tAm=g},{mode:1});var eYz;var A7=function(){return _.a.apply(this,arguments)||this};
_.f(A7,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],A7.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],A7.prototype,"data",void 0);_.m([_.N({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],A7);
_.I(A7,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(eYz!==void 0)return eYz;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return eYz=g},{mode:1});var WBT;var b$=function(){return _.a.apply(this,arguments)||this};
_.f(b$,_.a);b$.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],b$.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],b$.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],b$.prototype,"aligment",void 0);_.m([_.N({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],b$);
_.I(b$,"ytd-channel-list-sub-menu-renderer",function(){if(WBT!==void 0)return WBT;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return WBT=
g},{mode:1});var CE4;var J7=function(){return _.a.apply(this,arguments)||this};
_.f(J7,_.a);J7.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}}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],J7.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],J7.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],J7.prototype,"data",void 0);_.m([_.N({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],J7);
_.I(J7,"ytd-channel-sub-menu-renderer",function(){if(CE4!==void 0)return CE4;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return CE4=g},{mode:1});var KB4;var xI6;var P5=function(){var g=_.a.apply(this,arguments)||this;g.isCompact=!1;return g};
_.f(P5,_.a);_.hx.Object.defineProperties(P5.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var g,r;return((r=_.n((g=this.data)==null?void 0:g.endpoint,_.II))==null?void 0:r.target)==="TARGET_NEW_WINDOW"}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],P5.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],P5.prototype,"componentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],P5.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],P5.prototype,"isCompact",void 0);_.m([_.W("isCompact"),_.L("design:type",Number),_.L("design:paramtypes",[])],P5.prototype,"thumbnailWidth",null);
_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],P5.prototype,"openNewWindow",null);_.m([_.N({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],P5);
_.I(P5,"ytd-media-lockup-renderer",function(){if(xI6!==void 0)return xI6;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return xI6=g},{mode:1});var aTb;var t7=function(){return _.a.apply(this,arguments)||this};
_.f(t7,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],t7.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],t7.prototype,"componentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],t7.prototype,"data",void 0);_.m([_.N({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],t7);
_.I(t7,"ytd-structured-description-channel-lockup-renderer",function(){if(aTb!==void 0)return aTb;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return aTb=g},{mode:1});var Xnm;var Fh=function(){var g=_.a.apply(this,arguments)||this;g.isCompact=!1;g.collections=_.Y("web_modern_collections_v2");g.collectionsStackColor=_.Y("modernize_structured_description_playlist_lockups_v2");return g};
_.f(Fh,_.a);Fh.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:_.Y("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.hx.Object.defineProperties(Fh.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var g,r,E,B,w,O;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(g=this.data)==null?void 0:(r=g.thumbnail)==null?void 0:r.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(E=this.data)==null?void 0:(B=E.thumbnail)==null?void 0:B.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(w=this.data)==null?void 0:(O=w.thumbnail)==
null?void 0:O.vibrantColorPalette:void 0}}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Fh.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Fh.prototype,"componentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Fh.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Fh.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Fh.prototype,"showSidePanelThumbnailOverlay",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Fh.prototype,"isCompact",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Fh.prototype,"collections",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Fh.prototype,"collectionsStackColor",void 0);_.m([_.W("data"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Fh.prototype,"twoLineTitle",null);
_.m([_.W("data","collections","collectionsStackColor"),_.L("design:type",Object),_.L("design:paramtypes",[])],Fh.prototype,"collectionStack",null);_.m([_.N({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],Fh);
_.I(Fh,"ytd-structured-description-playlist-lockup-renderer",function(){if(Xnm!==void 0)return Xnm;var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Xnm=g},{mode:1});var NZD;var ed=function(){return _.a.apply(this,arguments)||this};
_.f(ed,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ed.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],ed.prototype,"componentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ed.prototype,"data",void 0);_.m([_.N({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],ed);
_.I(ed,"ytd-structured-description-video-lockup-renderer",function(){if(NZD!==void 0)return NZD;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return NZD=g},{mode:2});var W5=function(){return _.a.apply(this,arguments)||this};
_.f(W5,_.a);
W5.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}}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],W5.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],W5.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],W5.prototype,"data",void 0);_.m([_.N({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],W5);
_.I(W5,"ytd-compact-infocard-renderer",function(){if(KB4!==void 0)return KB4;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return KB4=g},{mode:1});var ITw;var C2=function(){var g=_.a.apply(this,arguments)||this;g.useModernCollectionsV2=_.Y("web_modern_collections_v2");return g};
_.f(C2,_.a);C2.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.hx.Object.defineProperties(C2.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Y("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Y("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],C2.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],C2.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ji),_.L("design:type",Object)],C2.prototype,"ytdDismissibleItemBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],C2.prototype,"ytdReduxBehavior",void 0);_.m([_.K({selector:_.tf}),_.L("design:type",Object)],C2.prototype,"isGridViewEnabled",void 0);
_.m([_.W("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],C2.prototype,"watchFeedBigThumbs",null);_.m([_.W("isGridViewEnabled","data"),_.K({reflectToAttribute:!0,value:"168"}),_.L("design:type",String),_.L("design:paramtypes",[])],C2.prototype,"thumbnailWidth",null);_.m([_.W("isGridViewEnabled","data"),_.K({reflectToAttribute:!0,value:"94"}),_.L("design:type",String),_.L("design:paramtypes",[])],C2.prototype,"customThumbnailSize",null);
_.m([_.K(),_.L("design:type",Object)],C2.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],C2.prototype,"useModernCollectionsV2",void 0);_.m([_.N({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],C2);
_.I(C2,"ytd-compact-playlist-renderer",function(){if(ITw!==void 0)return ITw;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return ITw=g},{mode:1});var mID;var K2=function(){var g=_.a.apply(this,arguments)||this;g.darkerDarkTheme=_.Y("web_darker_dark_theme");g.roundedContainer=!0;g.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return g};
_.f(K2,_.a);_.S=K2.prototype;_.S.attached=function(){this.requestElementsPerRow()};
_.S.configureRendererStamper=function(){return{"data.actionButton":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.S.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.S.computeViewStyle=function(g){return g.style?g.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.S.onUpdateElementsPerRowAction=function(g){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&g===1};
_.S.requestElementsPerRow=function(){_.Sh(this.hostElement,"yt-request-elements-per-row")};
K2.prototype.dataChanged=K2.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],K2.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],K2.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ji),_.L("design:type",Object)],K2.prototype,"ytdDismissibleItemBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],K2.prototype,"actionHandlerBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],K2.prototype,"data",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],K2.prototype,"hideThumbnail",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.L("design:type",String)],K2.prototype,"viewStyle",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],K2.prototype,"darkerDarkTheme",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],K2.prototype,"roundedContainer",void 0);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],K2.prototype,"dataChanged",null);_.m([_.N({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],K2);
_.I(K2,"ytd-compact-promoted-item-renderer",function(){if(mID!==void 0)return mID;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return mID=g},{mode:1});var cUD;var xm=function(){var g=_.a.apply(this,arguments)||this;g.collections=_.Y("web_modern_collections_v2");return g};
_.f(xm,_.a);xm.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
xm.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
xm.prototype.onYtNavigate=function(g,r){var E=this;if(r.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",r)){var B=this.get("watchEndpoint.videoId",r.endpoint),w=_.US(this.hostElement,"yt-get-current-video-id-action")[0];_.Y("kevlar_mix_handle_first_endpoint_different")&&B&&w&&B!==w||(g.stopPropagation(),_.gr().getPlayerPromise().then(function(O){if(O.getPlayerState()===0&&E.data.secondaryNavigationEndpoint)var M=E.data.secondaryNavigationEndpoint;else{M=
Object.assign({},r.endpoint);var u=_.n(M.commandMetadata,_.dU);u&&(O=Math.floor(O.getCurrentTime()),u.url=_.Vg(u.url,{t:O}),!_.Y("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(u=_.n(M,_.LM)))&&(u.startTimeSeconds=O)}_.Sh(E.hostElement,"yt-navigate",{endpoint:M})}))}};
_.hx.Object.defineProperties(xm.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Y("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var g,r,E,B,w,O;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(g=this.data)==null?void 0:(r=g.thumbnail)==null?void 0:r.sampledThumbnailColor,vibrantColorPalette:(E=this.data)==null?void 0:(B=E.thumbnail)==null?void 0:B.vibrantColorPalette,darkColorPalette:(w=this.data)==null?void 0:(O=w.thumbnail)==null?void 0:O.darkColorPalette,experimentEnabled:this.collections}}}});
xm.prototype.onYtNavigate=xm.prototype.onYtNavigate;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.DW.YtEndpointBehavior),_.L("design:type",Object)],xm.prototype,"ytEndpointBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],xm.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ji),_.L("design:type",Object)],xm.prototype,"ytdDismissibleItemBehavior",void 0);
_.m([_.P(_.K4),_.L("design:type",Object)],xm.prototype,"ytdLockupBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],xm.prototype,"ytdReduxBehavior",void 0);_.m([_.K({selector:_.tf}),_.L("design:type",Object)],xm.prototype,"isGridViewEnabled",void 0);_.m([_.W("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],xm.prototype,"watchFeedBigThumbs",null);
_.m([_.W("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.L("design:type",String),_.L("design:paramtypes",[])],xm.prototype,"thumbnailWidth",null);_.m([_.K(),_.L("design:type",Object)],xm.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],xm.prototype,"collections",void 0);_.m([_.W("data","collections"),_.L("design:type",Object),_.L("design:paramtypes",[])],xm.prototype,"collectionStack",null);
_.m([_.ob("yt-navigate"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],xm.prototype,"onYtNavigate",null);_.m([_.N({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],xm);
_.I(xm,"ytd-compact-radio-renderer",function(){if(cUD!==void 0)return cUD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return cUD=g},{mode:1});var i6Z;var aV=function(){return _.a.apply(this,arguments)||this};
_.f(aV,_.a);aV.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
aV.prototype.computeRendererStyle=function(g){return g.style?g.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.m([_.K(),_.L("design:type",Object)],aV.prototype,"data",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],aV.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],aV.prototype,"rendererBehavior",void 0);_.m([_.K({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.L("design:type",String)],aV.prototype,"rendererStyle",void 0);_.m([_.N({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],aV);
_.I(aV,"ytd-compact-text-promo-renderer",function(){if(i6Z!==void 0)return i6Z;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return i6Z=g},{mode:1});var LBU;var Xh=function(){var g=_.a.apply(this,arguments)||this;g.isShortsStyle=!1;return g};
_.f(Xh,_.a);_.S=Xh.prototype;_.S.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.S.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.Sh(this.hostElement,"yt-disable-lockup-interaction"):_.Sh(this.hostElement,"yt-enable-lockup-interaction"))};
_.S.isMetaBlockEmpty=function(g){return!g||!g.longBylineText&&!g.shortBylineText&&!g.shortViewCountText&&!g.viewCountText};
_.S.computeHasOneLineTitle=function(g){return this.forceOneLineTitle||!(g==null||!g.buttons)};
_.S.computeDisableInteraction=function(){var g;return!((g=this.data)==null?0:g.navigationEndpoint)};
_.S.hasSingularTopStandaloneBadge=function(){var g;return!((g=this.data)==null||!g.topStandaloneBadge)};
_.hx.Object.defineProperties(Xh.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Y("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 g;return this.hasSingularTopStandaloneBadge()?[(g=this.data)==null?void 0:g.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var g;return this.shouldShowTopBadges?((g=this.data)==null?void 0:g.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
Xh.prototype.disableInteractionChanged=Xh.prototype.disableInteractionChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Xh.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Xh.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ji),_.L("design:type",Object)],Xh.prototype,"ytdDismissibleItemBehavior",void 0);_.m([_.P(_.K4),_.L("design:type",Object)],Xh.prototype,"ytdLockupBehavior",void 0);
_.m([_.P(_.Ai),_.L("design:type",Object)],Xh.prototype,"ytdReduxBehavior",void 0);_.m([_.K({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.L("design:type",Boolean)],Xh.prototype,"metaBlockEmpty",void 0);_.m([_.K({selector:_.tf}),_.L("design:type",Object)],Xh.prototype,"isGridViewEnabled",void 0);_.m([_.W("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Xh.prototype,"watchFeedBigThumbs",null);
_.m([_.W("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.L("design:type",String),_.L("design:paramtypes",[])],Xh.prototype,"thumbnailWidth",null);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Xh.prototype,"isShortsStyle",void 0);_.m([_.K(),_.L("design:type",Object)],Xh.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.L("design:type",Boolean)],Xh.prototype,"hasOneLineTitle",void 0);
_.m([_.K(),_.L("design:type",Boolean)],Xh.prototype,"hideThumbnail",void 0);_.m([_.K(),_.L("design:type",Boolean)],Xh.prototype,"forceOneLineTitle",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.L("design:type",Boolean)],Xh.prototype,"disableInteraction",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Xh.prototype,"musicMetadataVideoLockup",void 0);
_.m([_.Gb("disableInteraction"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Xh.prototype,"disableInteractionChanged",null);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Xh.prototype,"shouldShowTopBadges",null);_.m([_.W("data"),_.L("design:type",Array),_.L("design:paramtypes",[])],Xh.prototype,"topBadges",null);
_.m([_.W("shouldShowTopBadges","data"),_.L("design:type",Array),_.L("design:paramtypes",[])],Xh.prototype,"inlineMetadataBadges",null);_.m([_.W("shouldShowTopBadges"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Xh.prototype,"shouldShowBadgesBelowMetadata",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],Xh.prototype,"compactTitleClass",null);_.m([_.N({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],Xh);
_.I(Xh,"ytd-compact-video-renderer",function(){if(LBU!==void 0)return LBU;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return LBU=g},{mode:_.My("kevlar_poly_si_batch_j067")?1:2});var VAn;_.ek("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var N6=function(){return _.a.apply(this,arguments)||this};
_.f(N6,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],N6.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],N6.prototype,"data",void 0);_.m([_.N({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],N6);
_.I(N6,"ytd-counterfactual-renderer",function(){if(VAn!==void 0)return VAn;var g=document.createElement("template");_.b(g,"\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");g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return VAn=g},{mode:1});var hY6;var IV=function(){var g=_.a.apply(this,arguments)||this;g.hidden=!1;return g};
_.f(IV,_.a);IV.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.rM().resolve(_.Er).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
IV.prototype.computeHidden=function(g){return!!g};
_.hx.Object.defineProperties(IV.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}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],IV.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],IV.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.L("design:type",Object)],IV.prototype,"hidden",void 0);_.m([_.W("data.label"),_.L("design:type",String),_.L("design:paramtypes",[])],IV.prototype,"label",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],IV.prototype,"value",null);
_.m([_.N({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],IV);
_.I(IV,"ytd-dropdown-item-renderer",function(){if(hY6!==void 0)return hY6;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return hY6=g},{mode:1});var Z6T;var yUD;var m3=function(){return _.a.apply(this,arguments)||this};
_.f(m3,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],m3.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],m3.prototype,"data",void 0);_.m([_.K({computed:"getSimpleString(data.label)"}),_.L("design:type",String)],m3.prototype,"label",void 0);_.m([_.N({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],m3);
_.I(m3,"ytd-navigation-dropdown-item-renderer",function(){if(yUD!==void 0)return yUD;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return yUD=g},{mode:1});var c5=function(){var g=_.a.apply(this,arguments)||this;g.disabled=!1;g.value="";g.noLabelFloat=!1;g.noUnderline=!1;g.usePrimaryColor=!1;g.hasBackground=!1;g.verticalAlign="top";g.autosize=!1;g.minAutosizeWidth=100;g.autosizeFont="14px Roboto";return g};
_.f(c5,_.a);_.S=c5.prototype;_.S.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.S.open=function(){this.inputEl.open()};
_.S.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.S.dataChanged=function(){this.reset()};
_.S.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.x8("value-changed",this.value))};
_.S.stopPropagation=function(g){g.stopPropagation()};
_.S.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var g=this.canvas.getContext("2d");g&&(g.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(g.measureText(this.inputEl.value).width)+24)+"px")}};
_.S.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var g=0,r=this.data.entries.length;g<r;g++){var E=this.data.entries[g],B;for(B in E)if(E.hasOwnProperty(B)){var w=E[B];if("isSelected"in w&&w.isSelected)return"stringValue"in w?w.stringValue||"":"int32Value"in w?w.int32Value||0:0}}return null};
_.S.updateValueFromBinding=function(g){this.value=g.detail.value};
_.hx.Object.defineProperties(c5.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 g=0,r=this.data.entries.length;g<r;g++){var E=this.data.entries[g],B;for(B in E)if(E.hasOwnProperty(B)){var w=E[B];if("isSelected"in w&&w.isSelected&&"label"in w)return this.ytRendererBehavior.getSimpleString(w.label)}}return null}}});
c5.prototype.autoSizeLabel=c5.prototype.autoSizeLabel;c5.prototype.stopPropagation=c5.prototype.stopPropagation;c5.prototype.valueChangedForBinding=c5.prototype.valueChangedForBinding;c5.prototype.dataChanged=c5.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],c5.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],c5.prototype,"ytRendererStamperBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],c5.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],c5.prototype,"disabled",void 0);_.m([_.K(),_.L("design:type",Object)],c5.prototype,"value",void 0);_.m([_.K(),_.L("design:type",Object)],c5.prototype,"noLabelFloat",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],c5.prototype,"noUnderline",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],c5.prototype,"theme",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],c5.prototype,"usePrimaryColor",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],c5.prototype,"hasBackground",void 0);_.m([_.K(),_.L("design:type",Object)],c5.prototype,"verticalAlign",void 0);_.m([_.K(),_.L("design:type",Object)],c5.prototype,"autosize",void 0);_.m([_.K(),_.L("design:type",Object)],c5.prototype,"minAutosizeWidth",void 0);_.m([_.K(),_.L("design:type",Object)],c5.prototype,"autosizeFont",void 0);
_.m([_.zb("#entries"),_.L("design:type",Object)],c5.prototype,"entries",void 0);_.m([_.zb("#input"),_.L("design:type",Object)],c5.prototype,"inputEl",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],c5.prototype,"dataChanged",null);_.m([_.Yk("value"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],c5.prototype,"valueChangedForBinding",null);
_.m([_.ob("iron-overlay-opened"),_.ob("iron-overlay-closed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],c5.prototype,"stopPropagation",null);_.m([_.ob("iron-select"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],c5.prototype,"autoSizeLabel",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],c5.prototype,"label",null);
_.m([_.N({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],c5);
_.I(c5,"ytd-dropdown-renderer",function(){if(Z6T!==void 0)return Z6T;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Z6T=g},{mode:1});var vGU;var i$=function(){var g=_.a.apply(this,arguments)||this;g.isConstrainedList=!1;return g};
_.f(i$,_.a);i$.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"}}}};
i$.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
i$.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
i$.prototype.computeViewAllHidden=function(g,r){return g||!r.viewAllEndpoint};
i$.prototype.fillRestIfNoShowMore=i$.prototype.fillRestIfNoShowMore;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],i$.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],i$.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Zu.YtLazyListBehavior),_.L("design:type",Object)],i$.prototype,"ytLazyListBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],i$.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],i$.prototype,"isConstrainedList",void 0);_.m([_.Yk("data","canShowMore"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],i$.prototype,"fillRestIfNoShowMore",null);_.m([_.N({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],i$);
_.I(i$,"ytd-expanded-shelf-contents-renderer",function(){if(vGU!==void 0)return vGU;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return vGU=g},{mode:_.My("kevlar_poly_si_batch_j025")?1:2});var dIn;var L2=function(){return _.a.apply(this,arguments)||this};
_.f(L2,_.a);L2.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}}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],L2.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],L2.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],L2.prototype,"data",void 0);_.m([_.N({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],L2);
_.I(L2,"ytd-feed-channel-filter-header-renderer",function(){if(dIn!==void 0)return dIn;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return dIn=g},{mode:1});var TZT;var gz4;var rSZ;var V1=function(){return _.a.apply(this,arguments)||this};
_.f(V1,_.a);_.S=V1.prototype;_.S.onClick=function(g){var r,E=(r=this.data)==null?void 0:r.sectionEndpoint;!_.Zy(_.Z1(g),this.hostElement,["A".toString()])&&E&&_.Sh(this.hostElement,"yt-navigate",{endpoint:E})};
_.S.computeHasSectionEndpoint=function(g){return(g==null?void 0:g.sectionEndpoint)!==void 0};
_.S.computeShowHeaderAsLink=function(g){return(g==null?void 0:g.header)!==void 0&&(g==null?void 0:g.sectionEndpoint)!==void 0};
_.S.computeShowSubheaderAsLink=function(g){return(g==null?void 0:g.subheader)!==void 0&&(g==null?void 0:g.sectionEndpoint)!==void 0&&(g==null?void 0:g.header)===void 0};
_.S.getHeaderAsLinkClass=function(g){var r=[],E;(g==null?0:(E=g.headerIcon)==null?0:E.iconType)&&r.push("header-link-active");return r.join(" ")};
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],V1.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],V1.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],V1.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],V1.prototype,"data",void 0);
_.m([_.K({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],V1.prototype,"hasSectionEndpoint",void 0);_.m([_.K({computed:"computeShowHeaderAsLink(data)"}),_.L("design:type",Boolean)],V1.prototype,"showHeaderAsLink",void 0);_.m([_.K({computed:"computeShowSubheaderAsLink(data)"}),_.L("design:type",Boolean)],V1.prototype,"showSubheaderAsLink",void 0);_.m([_.N({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],V1);
_.I(V1,"ytd-medical-panel-section-renderer",function(){if(rSZ!==void 0)return rSZ;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return rSZ=g},{mode:1});var h7=function(){var g=_.a.apply(this,arguments)||this;g.isExpanded=!1;g.roundedContainer=!0;g.skipRoundingTop=!1;g.toggleExpandableSection=function(){g.isExpanded=!g.isExpanded};
return g};
_.f(h7,_.a);
h7.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]]"}}}}}};
h7.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
h7.prototype.dataChanged=h7.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],h7.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],h7.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],h7.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],h7.prototype,"isExpanded",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],h7.prototype,"roundedContainer",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],h7.prototype,"skipRoundingTop",void 0);_.m([_.K(),_.L("design:type",Object)],h7.prototype,"toggleExpandableSection",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],h7.prototype,"dataChanged",null);_.m([_.N({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],h7);
_.I(h7,"ytd-medical-panel-content-renderer",function(){if(gz4!==void 0)return gz4;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return gz4=g},{mode:1});_.ek("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var ZJ=function(){var g=_.a.apply(this,arguments)||this;g.roundedContainer=!0;g.amsterdamEnabled=_.Y("enable_desktop_amsterdam_info_panels");g.hasTitle=!1;g.linkIcon="OPEN_IN_NEW";g.isDismissed=!1;return g};
_.f(ZJ,_.a);
ZJ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",roundedContainer:"[[roundedContainer]]"}},
horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
ZJ.prototype.computeHasTitle=function(g){return!(g==null||!g.title)};
ZJ.prototype.onClick=function(g){var r,E=(r=this.data)==null?void 0:r.headerEndpoint;!_.Zy(_.Z1(g),this.hostElement,["BUTTON".toString()])&&E&&this.ytComponentBehavior.resolveCommand(E)};
_.hx.Object.defineProperties(ZJ.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 g;return((g=this.data)==null?void 0:g.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var g,r;return((g=this.data)==null?void 0:g.disableBottomDivider)||!((r=this.data)==null?0:r.title)}}});
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],ZJ.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ZJ.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],ZJ.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],ZJ.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ZJ.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],ZJ.prototype,"roundedContainer",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],ZJ.prototype,"amsterdamEnabled",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.L("design:type",Object)],ZJ.prototype,"hasTitle",void 0);
_.m([_.K({type:_.Y("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.W("data.background"),_.L("design:type",Object),_.L("design:paramtypes",[])],ZJ.prototype,"background",null);_.m([_.K({type:_.Y("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.W("data.titleStyle"),_.L("design:type",Object),_.L("design:paramtypes",[])],ZJ.prototype,"titleStyle",null);
_.m([_.K({type:_.Y("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.W("data.titleStyle"),_.L("design:type",Object),_.L("design:paramtypes",[])],ZJ.prototype,"showLinkIcon",null);_.m([_.K(),_.L("design:type",String)],ZJ.prototype,"linkIcon",void 0);_.m([_.K({type:_.Y("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],ZJ.prototype,"hideDivider",null);
_.m([_.K({selectorArgs:["data.dismissStateEntityKey"],selector:function(g,r){g=_.u1(g.entities,"dismissState",r);return(g==null?void 0:g.isDismissed)||(g==null?void 0:g.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(g==null?void 0:g.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.L("design:type",Object)],ZJ.prototype,"isDismissed",void 0);_.m([_.N({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],ZJ);
_.I(ZJ,"ytd-info-panel-container-renderer",function(){if(TZT!==void 0)return TZT;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return TZT=g},{mode:1});var EzD;_.ek("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var y1=function(){var g=_.a.apply(this,arguments)||this;g.modernTypography=_.Y("web_modern_typography");return g};
_.f(y1,_.a);y1.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
y1.prototype.computeStyle=function(g){return g?g:""};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],y1.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],y1.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],y1.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.L("design:type",String)],y1.prototype,"titleStyle",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],y1.prototype,"modernTypography",void 0);_.m([_.N({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],y1);
_.I(y1,"ytd-item-section-header-renderer",function(){if(EzD!==void 0)return EzD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return EzD=g},{mode:1});var Bwm;var wzA,SWZ=function(){return wzA!==void 0?wzA:wzA=document.createElement("template")};
document.head.appendChild(SWZ().content);var OsD;_.v5=new _.Vn("VOTING_ANIMATION_CONTROLLER_TOKEN");var MH6=_.dG(function(g){var r=g.data;var E=_.VI("div"),B=_.VI("div");g=_.U(_.Dk("VOTE_STATUS_NONE",void 0,"FVF7mc"));var w=g.next().value,O=g.next().value,M=_.QU(emA,function(){var H;return(H=r())==null?void 0:H.entityKey}),u=_.Y("web_enable_voting_animation")||_.Y("enable_music_web_cairo_voting_animation");
_.Jk(function(){var H;((H=r().initialState)==null?0:H.status)&&O(r().initialState.status)});
var l=function(){var H,R,A=(R=(H=r().initialState)==null?void 0:H.votes)!=null?R:0,J;H=(J=r().initialState)==null?void 0:J.status;return H==="VOTE_STATUS_UPVOTED"?A-1:H==="VOTE_STATUS_DOWNVOTED"?A+1:A},Q=function(){return w()==="VOTE_STATUS_UPVOTED"?l()+1:w()==="VOTE_STATUS_DOWNVOTED"?l()-1:l()},z=function(H){var R=H?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
O(R);var A=Q(),J=_.rM().resolve(_.gM(_.v5)),e=M();e&&(H&&(e==null?0:e.upvoteDefaultButtonOnTap)?_.I3(e.upvoteDefaultButtonOnTap,{form:{element:E.value},disableClickTracking:!0}):(e==null?0:e.upvoteToggledButtonOnTap)&&_.I3(e.upvoteToggledButtonOnTap,{form:{element:E.value},disableClickTracking:!0}));var C;H=(C=e==null?void 0:e.enableOptimisticReordering)!=null?C:r().enableOptimisticReordering;u&&J&&r().itemId&&H&&U3w(J,r().itemId,A,R)},k=function(H){var R=H?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
O(R);var A=Q(),J=_.rM().resolve(_.gM(_.v5)),e=M();e&&(H&&(e==null?0:e.downvoteDefaultButtonOnTap)?_.I3(e.downvoteDefaultButtonOnTap,{form:{element:B.value},disableClickTracking:!0}):(e==null?0:e.downvoteToggledButtonOnTap)&&_.I3(e.downvoteToggledButtonOnTap,{form:{element:B.value},disableClickTracking:!0}));var C;H=(C=e==null?void 0:e.enableOptimisticReordering)!=null?C:r().enableOptimisticReordering;u&&J&&r().itemId&&H&&U3w(J,r().itemId,A,R)};
g={};g=_.QY("ytVotingViewModelVoteCount",(g.ytVotingViewModelVoteCountDisabled=function(){return r().isDisabled},g));
return _.G("voting-view-model",{class:"ytVotingViewModelHost"},_.G("div",{el:E},_.G(_.Af,{data:function(){var H=_.n(r().upvoteButton,_.sg);return{toggleButtonViewModel:Object.assign({},H,{isToggled:w()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(H){return _.G(_.RY,{data:H.data,
onToggle:z})}})),_.G("div",{class:g},function(){var H,R,A;
return w()==="VOTE_STATUS_UPVOTED"?(H=r().initialState)==null?void 0:H.compactVotesUpvoted:w()==="VOTE_STATUS_DOWNVOTED"?(R=r().initialState)==null?void 0:R.compactVotesDownvoted:(A=r().initialState)==null?void 0:A.compactVotes}),_.G("div",{el:B},_.G(_.Af,{data:function(){var H=_.n(r().downvoteButton,_.sg);
return{toggleButtonViewModel:Object.assign({},H,{isToggled:w()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(H){return _.G(_.RY,{data:H.data,
onToggle:k})}})))},"Ob");_.BK(_.dG(function(g){var r=g.data;return _.G("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.G("div",{class:_.QY("ytEngagementBarViewModelEngagementBarWrapper",g.className)},_.G(_.Af,{data:function(){return r().actions}},{votingViewModel:MH6})))},"Pb"),"engagement-bar-view-model",{props:{data:_.cP,
className:_.cP}});var dS=function(){var g=_.a.apply(this,arguments)||this;g.playlistVotingAnimationEnabled=_.Y("web_enable_voting_animation");g.downloadProgress=0;g.transferState="TRANSFER_STATE_UNKNOWN";g.downloadState="DOWNLOAD_STATE_UNKNOWN";g.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";g.offlineVideoPolicyExpirationTimestamp=0;return g};
_.f(dS,_.a);_.S=dS.prototype;_.S.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.engagementBar":{id:"engagement-bar",mapping:{engagementBarViewModel:"engagement-bar-view-model"}}}};
_.S.canReorderChanged=function(){this.persistentDragHandle=_.Y("kevlar_playlist_drag_handles")&&this.canReorder};
_.S.onDrag=function(){if(this.thumbnail){var g=_.S3(this.thumbnail).querySelector("yt-image");g&&(g.shouldRenderLazy=!1)}};
_.S.onMenuOverlayChanged=function(g,r){this.menuOpened=r};
_.S.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.S.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.S.onContentsTap=function(g){var r,E=(r=this.data)==null?void 0:r.serviceEndpoints;if(E&&E.length===1&&_.n(E[0],VXc)&&!_.Zy(_.Z1(g),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(E[0]);else{var B;(r=(B=this.data)==null?void 0:B.navigationEndpoint)&&_.Y("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?qWU(_.rM().resolve(_.ea),r):(_.Di().playlistSuggestionsShelfActivation=
!0,_.uH4(_.rM().resolve(_.ea),r)):r&&!_.Zy(_.Z1(g),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.Y("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.Sh(this.hostElement,"yt-navigate",{endpoint:r}):this.ytComponentBehavior.resolveCommand(r))}};
_.S.computeStyle=function(g){return g?g.toLowerCase().replace(/_/g,"-"):""};
_.S.computeThumbnailWidth=function(g){return g==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.S.downloadStateChanged=function(){this.isDownloads=!1;if(this.entityInfo||this.downloadRenderData){if(!this.entityInfo&&this.downloadRenderData)this.downloadRenderData={shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};else{if(!this.entityInfo)return;this.downloadRenderData=DJD(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference,!0);this.isDownloads=Object.keys(this.downloadRenderData).length>0}this.set("data",
Object.assign({},this.data,this.downloadRenderData))}};
_.S.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.S.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.S.dataChanged=function(){if(this.data){var g,r,E,B=((g=this.downloadRenderData)==null?void 0:g.badges)&&((r=this.downloadRenderData)==null?void 0:r.badges)!==((E=this.data)==null?void 0:E.badges),w,O,M;g=((w=this.downloadRenderData)==null?void 0:w.thumbnailOverlays)&&((O=this.downloadRenderData)==null?void 0:O.thumbnailOverlays)!==((M=this.data)==null?void 0:M.thumbnailOverlays);(!this.downloadRenderData||B||g)&&this.downloadStateChanged()}};
_.S.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var g,r,E=(g=this.data.menu)==null?void 0:(r=g.menuRenderer)==null?void 0:r.items;if(E)for(g=_.U(E),r=g.next();!r.done;r=g.next())if(r=r.value,E=void 0,_.n((E=r.menuServiceItemRenderer)==null?void 0:E.serviceEndpoint,_.J9)){var B=E=void 0,w=void 0;r=(E=r)==null?void 0:(B=E.menuServiceItemRenderer)==null?void 0:(w=B.serviceEndpoint)==null?void 0:w.playlistEditEndpoint;w=B=void 0;if(E=(B=r)==null?void 0:(w=B.actions)==null?void 0:
w[0])B=void 0,E.setVideoId=(B=this.data)==null?void 0:B.setVideoId;w=B=E=void 0;if(r=(E=r)==null?void 0:(B=E.clientActions)==null?void 0:(w=B[0])==null?void 0:w.playlistRemoveVideosAction)E=void 0,r.setVideoIds=[(E=this.data)==null?void 0:E.setVideoId]}}};
_.hx.Object.defineProperties(dS.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
dS.prototype.setVideoIdChanged=dS.prototype.setVideoIdChanged;dS.prototype.dataChanged=dS.prototype.dataChanged;dS.prototype.downloadStateChanged=dS.prototype.downloadStateChanged;dS.prototype.onMenuOverlayChanged=dS.prototype.onMenuOverlayChanged;dS.prototype.canReorderChanged=dS.prototype.canReorderChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],dS.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],dS.prototype,"ytdReduxBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],dS.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.K4),_.L("design:type",Object)],dS.prototype,"ytdLockupBehavior",void 0);_.m([_.P(_.Ji),_.L("design:type",Object)],dS.prototype,"ytdDismissibleItemBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],dS.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],dS.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],dS.prototype,"canReorder",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],dS.prototype,"menuOpened",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],dS.prototype,"handleIsHovered",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],dS.prototype,"persistentDragHandle",void 0);_.m([_.K(),_.L("design:type",Object)],dS.prototype,"downloadRenderData",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.L("design:type",String)],dS.prototype,"styleType",void 0);_.m([_.K({computed:"computeThumbnailWidth(data.style)"}),_.L("design:type",Number)],dS.prototype,"thumbnailWidth",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],dS.prototype,"isDownloads",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],dS.prototype,"playlistVotingAnimationEnabled",void 0);
_.m([_.K({selector:Kf,selectorArgs:["data.videoId"]}),_.L("design:type",Object)],dS.prototype,"downloadProgress",void 0);_.m([_.K(),_.L("design:type",Number)],dS.prototype,"relativeDateReference",void 0);_.m([_.K({selector:_.Ws,selectorArgs:["data.videoId"]}),_.L("design:type",Object)],dS.prototype,"transferState",void 0);_.m([_.K({selector:CwV,selectorArgs:["data.videoId"]}),_.L("design:type",Object)],dS.prototype,"downloadState",void 0);
_.m([_.K({selector:Y7o,selectorArgs:["data.videoId"]}),_.L("design:type",Object)],dS.prototype,"offlinePolicyAction",void 0);_.m([_.K({selector:R0o,selectorArgs:["data.videoId"]}),_.L("design:type",Object)],dS.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.m([_.K({selector:s1l,selectorArgs:["data.videoId"]}),_.L("design:type",Object)],dS.prototype,"entityInfo",void 0);_.m([_.K({selector:_.tj}),_.L("design:type",Boolean)],dS.prototype,"miniplayerIsActive",void 0);
_.m([_.W("data"),_.L("design:type",String),_.L("design:paramtypes",[])],dS.prototype,"playlistVideoId",null);_.m([_.zb("#thumbnail"),_.L("design:type",Object)],dS.prototype,"thumbnail",void 0);_.m([_.Yk("canReorder"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],dS.prototype,"canReorderChanged",null);
_.m([_.ob("yt-menu-overlay-changed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Boolean]),_.L("design:returntype")],dS.prototype,"onMenuOverlayChanged",null);_.m([_.Yk("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],dS.prototype,"downloadStateChanged",null);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],dS.prototype,"dataChanged",null);_.m([_.Yk("data.setVideoId"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],dS.prototype,"setVideoIdChanged",null);_.m([_.N({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],dS);
_.I(dS,"ytd-playlist-video-renderer",function(){if(OsD!==void 0)return OsD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);g.content.insertBefore(SWZ().content.cloneNode(!0),g.content.firstChild);return OsD=g},{mode:1});var len;var T6=function(){return _.a.apply(this,arguments)||this};
_.f(T6,_.a);_.m([_.K(),_.L("design:type",Object)],T6.prototype,"data",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],T6.prototype,"rendererBehavior",void 0);_.m([_.N({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],T6);
_.I(T6,"ytd-premium-browse-footer-renderer",function(){if(len!==void 0)return len;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return len=g},{mode:1});var D3I;var gm=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return g};
_.f(gm,_.a);_.S=gm.prototype;_.S.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.S.handleDarkModeToggledAction=function(g){this.isDarkTheme=g};
_.S.computeHeaderLogoThumbnail=function(g,r){if(g)return r?g.darkLogo:g.lightLogo};
_.S.computeHeaderLogoHeight=function(g,r){var E,B,w;return(g=(E=this.computeHeaderLogoThumbnail(g,r))==null?void 0:(B=E.thumbnails)==null?void 0:(w=B[0])==null?void 0:w.height)&&g%31===0?"31":"24"};
_.S.computeHeaderLogoMarginBottom=function(g,r){return this.computeHeaderLogoHeight(g,r)==="24"?"0":"-7"};
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],gm.prototype,"actionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],gm.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],gm.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Boolean)],gm.prototype,"isDarkTheme",void 0);_.m([_.K({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.L("design:type",Object)],gm.prototype,"themeLogo",void 0);
_.m([_.K({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.L("design:type",String)],gm.prototype,"logoHeight",void 0);_.m([_.K({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.L("design:type",String)],gm.prototype,"logoMarginBottom",void 0);_.m([_.N({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],gm);
_.I(gm,"ytd-primetime-promo-header-renderer",function(){if(D3I!==void 0)return D3I;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return D3I=g},{mode:1});var oz4;var Q5A=_.dG(function(g){var r=_.HK(function(w){var O;(O=g.onClick)==null||O.call(g,w)}),E={},B={};
return _.G("yt-shelf-header-layout",{class:_.QY("shelf-header-layout-wiz",(E["shelf-header-layout-wiz--disable-horizontal-padding"]=g.disableHorizontalPadding,E["shelf-header-layout-wiz--disable-vertical-padding"]=g.disableVerticalPadding,E["shelf-header-layout-wiz--responsive"]=g.useResponsiveLayout,E["shelf-header-layout-wiz--narrow"]=function(){var w,O;return((w=g.useResponsiveLayout)==null?void 0:w.call(g))&&((O=g.forceSmallLayout)==null?void 0:O.call(g))},E["shelf-header-layout-wiz--is-overlay"]=
g.isOverlay,E["shelf-header-layout-wiz--tappable"]=!!g.onClick,E)),
"on:click":r,tabindex:function(){var w;return((w=g.isInteractive)==null?0:w.call(g))?0:void 0}},_.G(_.p,{cond:g.leadingIcon,
then:function(w){return _.G("div",{class:"shelf-header-layout-wiz__leading-icon"},_.G(_.nh,{icon:w}))},
else:function(){return _.G(_.p,{cond:g.hasLeadingImage,then:function(){var w,O={};return _.G("div",{class:_.QY("shelf-header-layout-wiz__leading-image",(O["shelf-header-layout-wiz__leading-image--circular-image"]=g.circularImage,O))},(w=g.leadingImage)==null?void 0:w.call(g))}})}}),_.G("div",{class:"shelf-header-layout-wiz__label-container"},_.G(_.p,{cond:g.hasSuperlabel,
then:function(){var w;return _.G("div",{class:"shelf-header-layout-wiz__superlabel"},(w=g.superlabel)==null?void 0:w.call(g))}}),_.G("div",{class:"shelf-header-layout-wiz__title-row"},_.G(GBD,{text:g.title,
className:_.QY("shelf-header-layout-wiz__title",(B["shelf-header-layout-wiz__title--small-title"]=g.forceSmallLayout,B)),tagLevel:g.tagLevel}),_.G(_.p,{cond:g.hasDetail,then:function(){var w;return _.G("div",{class:"shelf-header-layout-wiz__detail"},(w=g.detail)==null?void 0:w.call(g))}})),_.G(_.p,{cond:g.hasSublabel,
then:function(){var w;return _.G("div",{class:"shelf-header-layout-wiz__sublabel"},(w=g.sublabel)==null?void 0:w.call(g))}})),_.G(_.p,{cond:g.hasTrailingActions,
then:function(){var w;return _.G("div",{class:"shelf-header-layout-wiz__trailing-actions"},(w=g.trailingActions)==null?void 0:w.call(g))}}))},"Qb");
Q5A.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var GBD=_.dG(function(g){var r=g.text;var E=g.className;var B=g.tagLevel;return _.G(_.fa,null,_.G(_.na,{when:function(){return(B==null?void 0:B())===0}},function(){return _.G("h2",{class:E},r())}),_.G(_.na,{when:function(){return(B==null?void 0:B())===1}},function(){return _.G("h3",{class:E},r())}),_.G(_.na,{when:function(){return(B==null?void 0:B())===2}},function(){return _.G("h4",{class:E},r())}),_.G(_.s6,null,function(){return _.G("h2",{class:E},r())}))},"Rb");var HsZ,zWI,kBZ;_.rm=_.dG(function(g){var r=g.className;var E=g.data;var B=g.disableHorizontalPadding;var w=g.disableVerticalPadding;var O=g.forceSmallLayout;var M=g.useResponsiveLayout;g=g.isOverlay;return _.G("yt-section-header-view-model",{class:_.QY("ytSectionHeaderViewModelHost",r),style:_.Rl({"background-color":function(){return WUJ(E().backgroundColor)?_.XT(WUJ(E().backgroundColor)):void 0}})},_.G(Q5A,{hasDetail:!1,
title:function(){return _.G(_.hf,{text:function(){return E().headline}})},
hasTitle:!0,sublabel:function(){return _.G(zWI,{data:E})},
hasSublabel:function(){return!!E().sublabel||!!E().bottomBadge},
superlabel:function(){return _.G(kBZ,{data:E})},
hasSuperlabel:function(){return!!E().superlabel||!!E().topBadge},
leadingImage:function(){return _.G(HsZ,{leadingAccessory:function(){return E().leadingAccessory}})},
hasLeadingImage:function(){return!!E().leadingAccessory},
trailingActions:function(){return _.G(_.Af,{data:function(){return E().trailingActions}},{flexibleActionsViewModel:sn})},
hasTrailingActions:function(){return!!E().trailingActions},
disableHorizontalPadding:B,disableVerticalPadding:w,forceSmallLayout:O,useResponsiveLayout:M,isOverlay:g,isInteractive:function(){return!!_.Cm(E().rendererContext)},
onClick:function(u){if(_.Km(E().rendererContext)){var l=_.Cm(E().rendererContext);l&&_.a3(l,{form:{element:u.target,event:u}})}}}))},"Sb");
HsZ=_.dG(function(g){var r=g.leadingAccessory;return _.G(_.wW,null,_.G(_.p,{cond:function(){var E;return(E=r().image)!=null?E:_.iL(r().themedImage)},
then:function(E){return _.G(_.vw,{data:E,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.G(_.p,{cond:function(){return _.n(r().avatar,_.a$)},
then:function(E){return _.G(_.sV,{data:E})}}))},"Tb");
zWI=_.dG(function(g){var r=g.data;return _.G(_.wW,null,_.G(_.p,{cond:function(){return _.n(r().bottomBadge,e0m)},
then:function(E){var B={};return _.G(_.ZL,{data:E,class:_.QY((B.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!E()&&!!r().sublabel},B))})}}),_.G(_.p,{cond:function(){return r().sublabel},
then:function(E){return _.G(_.hf,{text:E})}}))},"Ub");
kBZ=_.dG(function(g){var r=g.data;return _.G(_.wW,null,_.G(_.p,{cond:function(){return _.n(r().topBadge,e0m)},
then:function(E){var B={};return _.G(_.ZL,{data:E,class:_.QY((B.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!E()&&!!r().superlabel},B))})}}),_.G(_.p,{cond:function(){return r().superlabel},
then:function(E){return _.G(_.hf,{text:E})}}))},"Vb");_.BK(_.rm,"yt-section-header-view-model",{props:{data:_.cP,className:_.cP,disableHorizontalPadding:_.cP,disableVerticalPadding:_.cP,forceSmallLayout:_.cP,useResponsiveLayout:_.cP,isOverlay:_.cP}});_.ek("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var Ev=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return g};
_.f(Ev,_.a);_.S=Ev.prototype;_.S.attached=function(){this.requestElementsPerRow()};
_.S.configureRendererStamper=function(){return{"data.panels":{id:"panels",mapping:{richItemRenderer:"ytd-rich-item-renderer"}},"data.header":{id:"header-contents",mapping:{primetimePromoHeaderRenderer:"ytd-primetime-promo-header-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.sectionHeader":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.details":{id:"details-panel",mapping:{primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer"}}}};
_.S.onDataChange=function(){var g=this;_.Lk(this,function(){g.updateItemVisibility()})};
_.S.onUpdateElementsPerRowAction=function(g){g&&this.elementsPerRow!==g&&(this.elementsPerRow=g,this.updateItemVisibility())};
_.S.updateItemVisibility=function(){var g=this;this.data&&this.data.panels&&_.S3(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(r,E){r.hidden=E>g.elementsPerRow-1})};
_.S.requestElementsPerRow=function(){_.Sh(this.hostElement,"yt-request-elements-per-row")};
Ev.prototype.onDataChange=Ev.prototype.onDataChange;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Ev.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ji),_.L("design:type",Object)],Ev.prototype,"ytdDismissibleItemBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Ev.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Ev.prototype,"actionHandlerBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],Ev.prototype,"data",void 0);_.m([_.K({value:3}),_.L("design:type",Number)],Ev.prototype,"elementsPerRow",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Ev.prototype,"onDataChange",null);_.m([_.N({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],Ev);
_.I(Ev,"ytd-primetime-promo-renderer",function(){if(oz4!==void 0)return oz4;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return oz4=g},{mode:1});var pzZ;var Br=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return g};
_.f(Br,_.a);Br.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
Br.prototype.handleButtonRefreshAction=function(g){if(g=_.n(g,WeI))this.set("data.button",g.membershipButton),this.notifyPath("data.button")};
_.hx.Object.defineProperties(Br.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var g,r;return((g=this.data)==null?void 0:(r=g.avatars)==null?void 0:r.slice(0,8))||[]}}});
_.m([_.K(),_.L("design:type",Object)],Br.prototype,"data",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Br.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Br.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Br.prototype,"rendererBehavior",void 0);_.m([_.W("data"),_.L("design:type",Array),_.L("design:paramtypes",[])],Br.prototype,"avatars",null);
_.m([_.N({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],Br);
_.I(Br,"ytd-recognition-shelf-renderer",function(){if(pzZ!==void 0)return pzZ;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return pzZ=g},{mode:1});var YWm;var RWA;var wm=function(){var g=_.a.apply(this,arguments)||this;g.modernButtons=_.Y("web_modern_buttons");return g};
_.f(wm,_.a);_.S=wm.prototype;
_.S.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]",lockupExperiments:"[[lockupExperiments]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",
showRenderer:"ytd-show-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.S.dataChanged=function(){this.collapsed=!0};
_.S.computeVisibleItems=function(g,r){return g!==void 0&&g.items?r?g.items.slice(0,this.data.collapsedItemCount):g.items:[]};
_.S.computeHideShowMore=function(g,r,E){return g>=r||!E};
_.S.computeHideShowAll=function(g,r,E){return!(g&&r)||E};
_.S.onMoreClick=function(){this.collapsed=!1};
_.hx.Object.defineProperties(wm.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.Y("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.Sg("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.Y("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
wm.prototype.dataChanged=wm.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],wm.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],wm.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],wm.prototype,"data",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],wm.prototype,"isSearch",void 0);
_.m([_.K({computed:"computeVisibleItems(data,collapsed)"}),_.L("design:type",Array)],wm.prototype,"visibleItems",void 0);_.m([_.K({value:!0}),_.L("design:type",Boolean)],wm.prototype,"collapsed",void 0);_.m([_.K({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.L("design:type",Boolean)],wm.prototype,"hideShowMore",void 0);
_.m([_.K({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.L("design:type",Boolean)],wm.prototype,"hideShowAll",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],wm.prototype,"modernButtons",void 0);_.m([_.W("isSearch"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],wm.prototype,"typographyBump",null);
_.m([_.W("isSearch"),_.L("design:type",Object),_.L("design:paramtypes",[])],wm.prototype,"lockupExperiments",null);_.m([_.W("isSearch"),_.L("design:type",String),_.L("design:paramtypes",[])],wm.prototype,"thumbnailWidth",null);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],wm.prototype,"dataChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],wm);
_.I(wm,"ytd-vertical-list-renderer",function(){if(RWA!==void 0)return RWA;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return RWA=g},{mode:1});var nzD=_.me(["#"]);_.ek("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var SM=function(){var g=_.a.apply(this,arguments)||this;g.isConstrainedList=!1;g.modernTypography=_.Y("web_modern_typography");return g};
_.f(SM,_.a);_.S=SM.prototype;
_.S.configureRendererStamper=function(){return{"data.content":{id:"contents",mapping:{gridRenderer:"ytd-grid-renderer",horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:118},properties:{isSearch:"[[isSearch]]"}},horizontalMovieListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:302}},expandedShelfContentsRenderer:{component:"ytd-expanded-shelf-contents-renderer",properties:{isConstrainedList:"[[isConstrainedList]]"}},messageRenderer:{component:"ytd-message-renderer",
params:{shelf:!0}},verticalListRenderer:{component:"ytd-vertical-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.playAllButton":{id:"play-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",attributes:{condensed:!0},properties:{icon:"[[menuIcon]]"}}}},"data.sortFilter":{id:"sort-filter",
mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.S.computeThumbnailStyle=function(g){return g||""};
_.S.computePlaceAnnotationUnderTitle=function(){var g;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((g=this.data)==null?void 0:g.thumbnailStyle)||"")};
_.S.computeHrefWithDefault=function(g){return this.ytComponentBehavior.computeHref_(g)||_.$U(nzD)};
_.S.computeIsPromoShelf=function(g){var r;return(g=g==null?void 0:(r=g[0])==null?void 0:r.metadataBadgeRenderer)?g.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.S.computePlaceBadgeBesideTitle=function(g){var r;return(g==null?0:(r=g[0])==null?0:r.metadataBadgeRenderer)?!this.computeIsPromoShelf(g):!1};
_.S.computeMenuIcon=function(g){return this.computeIsPromoShelf(g)?"yt-icons:more_vert":"yt-icons:more"};
_.S.onDataChange=function(){var g,r;((g=this.data)==null?0:(r=g.content)==null?0:r.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.S.onLockupRequested=function(g){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&g.detail&&g.detail.videoIds){for(var r=this.data.content.gridRenderer.items,E=new Set,B=_.U(g.detail.videoIds),w=B.next();!w.done;w=B.next())E.add(w.value);g.detail.returnValue=r.filter(function(O){return O.gridVideoRenderer&&O.gridVideoRenderer.videoId&&E.has(O.gridVideoRenderer.videoId)}).map(function(O){return O.gridVideoRenderer})}};
_.S.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
SM.prototype.onLockupRequested=SM.prototype.onLockupRequested;SM.prototype.onDataChange=SM.prototype.onDataChange;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],SM.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ji),_.L("design:type",Object)],SM.prototype,"ytdDismissibleItemBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],SM.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],SM.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.f7),_.L("design:type",Object)],SM.prototype,"ironResizableBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],SM.prototype,"data",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],SM.prototype,"isSearch",void 0);_.m([_.K(),_.L("design:type",Object)],SM.prototype,"isConstrainedList",void 0);_.m([_.K({reflectToAttribute:!0,value:function(){return _.Y("kevlar_fluid_dismiss")}}),
_.L("design:type",Boolean)],SM.prototype,"enableFluidDismiss",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.L("design:type",String)],SM.prototype,"thumbnailStyle",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],SM.prototype,"modernTypography",void 0);_.m([_.K({computed:"computeMenuIcon(data.badges)"}),_.L("design:type",String)],SM.prototype,"menuIcon",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],SM.prototype,"onDataChange",null);_.m([_.ob("yt-lockup-requested"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],SM.prototype,"onLockupRequested",null);_.m([_.N({is:"ytd-shelf-renderer",disableElementRegistration:!0})],SM);
_.I(SM,"ytd-shelf-renderer",function(){if(YWm!==void 0)return YWm;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return YWm=g},{mode:1});var s5U;var Ov=function(){return _.a.apply(this,arguments)||this};
_.f(Ov,_.a);Ov.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.hx.Object.defineProperties(Ov.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Ov.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Ov.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Ov.prototype,"data",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],Ov.prototype,"isPlaylist",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],Ov.prototype,"isClipList",void 0);
_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],Ov.prototype,"isPlaylistPageWithFilters",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],Ov.prototype,"hasTitle",null);_.m([_.K(),_.W("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.L("design:type",Object),_.L("design:paramtypes",[])],Ov.prototype,"isRightAligned",null);
_.m([_.N({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],Ov);
_.I(Ov,"ytd-sort-filter-header-renderer",function(){if(s5U!==void 0)return s5U;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return s5U=g},{mode:1});var feD;var Uv=function(){var g=_.a.apply(this,arguments)||this;g.enableRightArrowHidden=_.Y("channel_details_shelf_resize_observer");return g};
_.f(Uv,_.a);Uv.prototype.attached=function(){var g=this;this.enableRightArrowHidden&&(this.JSC$14390_throttledOnResize=new _.VU(function(){var r;(r=g.ytdHorizontalListBehavior)==null||r.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var r;
(r=g.JSC$14390_throttledOnResize)==null||r.fire()}),this.resizeObserver.observe(this.hostElement))};
Uv.prototype.detached=function(){if(this.enableRightArrowHidden){var g;(g=this.resizeObserver)==null||g.disconnect();var r;(r=this.JSC$14390_throttledOnResize)==null||r.dispose()}};
Uv.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]]"}}}}}};
Uv.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.hx.Object.defineProperties(Uv.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.Y("enable_creator_details_shelf_m2")){var g=[],r;((r=this.data)==null?0:r.creatorVideosButton)&&g.push(this.data.creatorVideosButton);var E;((E=this.data)==null?0:E.creatorAboutButton)&&g.push(this.data.creatorAboutButton);r=_.U(this.data.creatorCustomUrlButtons||[]);for(E=r.next();!E.done;E=r.next())g.push(E.value);return g}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.Y("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Uv.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Uv.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.yR.YtdHorizontalListBehavior),_.L("design:type",Object)],Uv.prototype,"ytdHorizontalListBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Uv.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Uv.prototype,"engagementPanel",void 0);
_.m([_.K(),_.L("design:type",Object)],Uv.prototype,"enableRightArrowHidden",void 0);_.m([_.W("enableRightArrowHidden","atEnd"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Uv.prototype,"hideRightArrow",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],Uv.prototype,"creatorCustomUrlButtons",null);
_.m([_.K({reflectToAttribute:!0}),_.W("data","creatorCustomUrlButtons"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Uv.prototype,"showCreatorCustomUrlButtons",null);_.m([_.W("showCreatorCustomUrlButtons"),_.L("design:type",Number),_.L("design:paramtypes",[])],Uv.prototype,"channelAvatarSize",null);_.m([_.N({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],Uv);
_.I(Uv,"ytd-video-description-infocards-section-renderer",function(){if(feD!==void 0)return feD;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return feD=g},{mode:_.My("kevlar_poly_si_batch_j067")?1:2});var $3n;var MU=function(){return _.a.apply(this,arguments)||this};
_.f(MU,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],MU.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],MU.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],MU.prototype,"data",void 0);_.m([_.K({computed:"computeIcon_(data.infoIcon)"}),_.L("design:type",Object)],MU.prototype,"infoIcon",void 0);_.m([_.N({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],MU);
_.I(MU,"ytd-eom-settings-disclaimer-renderer",function(){if($3n!==void 0)return $3n;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return $3n=g},{mode:1});var j5z;var qU=function(){return _.a.apply(this,arguments)||this};
_.f(qU,_.a);_.hx.Object.defineProperties(qU.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.suppressPaddingDisclaimer)}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],qU.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],qU.prototype,"componentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],qU.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],qU.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],qU.prototype,"suppressPaddingDisclaimer",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],qU);
_.I(qU,"ytd-product-list-header-renderer",function(){if(j5z!==void 0)return j5z;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return j5z=g},{mode:1});var ASn;var u_=function(){return _.a.apply(this,arguments)||this};
_.f(u_,_.a);u_.prototype.computeThumbnailStyle=function(g){if(g&&(g=_.aJ(g)))return"background-color:"+g+";"};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],u_.prototype,"rendererBehaviors",void 0);_.m([_.K(),_.L("design:type",Object)],u_.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],u_);
_.I(u_,"ytd-hashtag-tile-renderer",function(){if(ASn!==void 0)return ASn;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return ASn=g},{mode:1});var bsw;var l_=function(){return _.a.apply(this,arguments)||this};
_.f(l_,_.a);l_.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}}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],l_.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],l_.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],l_.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],l_);
_.I(l_,"ytd-sponsorships-alert-renderer",function(){if(bsw!==void 0)return bsw;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return bsw=g},{mode:1});var JSA;var D7=function(){return _.a.apply(this,arguments)||this};
_.f(D7,_.a);D7.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.hx.Object.defineProperties(D7.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Y("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.m([_.P(_.Ji),_.L("design:type",Object)],D7.prototype,"ytdDismissibleItemBehavior",void 0);_.m([_.P(_.K4),_.L("design:type",Object)],D7.prototype,"ytdLockupBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],D7.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],D7.prototype,"ytRendererBehavior",void 0);_.m([_.K({selector:_.tf}),_.L("design:type",Object)],D7.prototype,"isGridViewEnabled",void 0);
_.m([_.W("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],D7.prototype,"watchFeedBigThumbs",null);_.m([_.W("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.L("design:type",String),_.L("design:paramtypes",[])],D7.prototype,"thumbnailWidth",null);_.m([_.K(),_.L("design:type",Object)],D7.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],D7);
_.I(D7,"ytd-compact-movie-renderer",function(){if(JSA!==void 0)return JSA;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return JSA=g},{mode:1});var PUD;var tHZ;var Fa4=_.Ca("HTML_DIR")==="rtl",ok=function(){var g=_.a.apply(this,arguments)||this;g.engagementPanel=!1;g.maxLines=2;g.expandButtonOffset=0;g.showExpandButton=!1;g.isTruncated=!1;g.isExpanded=!1;g.currentSnippetType=2;g.alwaysShowExpandButton=!1;g.JSC$14407_lastWidth=NaN;g.observer=null;g.left=0;g.right=0;g.mid=0;g.longestSnippetLength=0;g.isFinalSnippet=!1;g.isFirstMutation=!1;g.isResetMutation=!1;g.OVERFLOW_THRESHOLD=5;return g};
_.f(ok,_.a);_.S=ok.prototype;_.S.onClick=function(g){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.Zy(_.Z1(g)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var r;if((r=window.getSelection())==null||!r.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.S.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.S.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.S.updateTextOnSnippetTypeChange=function(){_.Y("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.S.setUpBinarySearch=function(g){g=g*this.maxLines/8;this.left=0;var r,E;this.right=Math.min(g*2,(E=(r=this.simpleText)==null?void 0:r.length)!=null?E:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.S.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.S.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.el(new _.Rj("AttributedSnippet is empty when the description is not empty",this.text))};
_.S.mutationCallback=function(){if(this.observer!=null){var g=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var r=Math.floor(g*this.maxLines/8);this.setSnippetText(this.text,r);r!==0||this.attributedTextIsEmpty()||_.el(new _.Rj("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;g=g*this.maxLines/8;this.left=0;var E;this.right=Math.min(g*2,(E=(r=this.simpleText)==null?void 0:r.length)!=null?E:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=
0;this.setSnippetText(this.text,this.mid);this.isFirstMutation=!1}else this.isTruncated=!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset()),this.isFinalSnippet=!0,this.isFirstMutation=!1,this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else{this.isOverflowing()?this.right=this.mid-1:(this.left=this.mid+1,this.longestSnippetLength=this.mid);if(this.left>this.right){if(this.mid===this.longestSnippetLength){this.expandButtonOffset=this.computeExpandButtonOffset();
this.observer.disconnect();this.maybeLogWarningForEmptyAttributedSnippet();return}this.setSnippetText(this.text,this.longestSnippetLength);this.isFinalSnippet=!0}this.mid=Math.floor(this.left+(this.right-this.left)/2);this.setSnippetText(this.text,this.mid)}}};
_.S.mutationObserve=function(g){var r=this;this.observer||(this.observer=new MutationObserver(function(){r.mutationCallback()}));
this.observer.observe(g,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.S.attached=function(){var g=this;_.Lk(this,function(){g.resize()})};
_.S.isExpandedChanged=function(){_.Sh(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.S.updateSnippetContainerMaxHeight=function(){this.isExpanded?(this.snippetContainer.style.setProperty("overflow",""),this.snippetContainer.style.setProperty("max-height","")):(this.snippetContainer.style.setProperty("overflow","hidden"),this.snippetContainer.style.setProperty("max-height",2*this.maxLines+"rem"));this.resize(!0)};
_.S.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var g="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((Fa4?"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",g);this.snippetContainer.style.setProperty("mask-image",
g)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(Fa4?"right":"left",this.expandButtonOffset+"px")};
_.S.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.S.setSnippetText=function(g,r){g||(g={});if(_.hM(g)){var E=LW(g,r);E.attachmentRuns||E.commandRuns||E.decorationRuns||E.styleRuns||E.alignment||E.lineBreakMode?this.attributedSnippetTextEl?(_.Y("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=LW(g,r),this.attributedSnippetTextEl.headerRuns=i2Y(r,this.headerRuns)):this.attributedSnippetText={data:LW(g,r),headerRuns:i2Y(r,this.headerRuns)},this.currentSnippetType=0):_.el(new _.Rj("Tried to set snippet text when HTML element was null",
g)):(this.plainSnippetText.textContent=cw(g.content||"",r),this.currentSnippetType=2)}else{a:{E=CbL(g,r);if(E.runs){E=_.U(E.runs);for(var B=E.next();!B.done;B=E.next())if(B=B.value,B.bold||B.deemphasize||B.italics||B.strikethrough||B.textColor||B.navigationEndpoint||_.n(B,Ww)){E=!0;break a}}E=!1}E?this.formattedSnippetText?(this.formattedSnippetText.text=CbL(g,r),this.currentSnippetType=1):_.el(new _.Rj("Tried to set snippet text when HTML element was null",g)):(this.plainSnippetText.textContent=
cw(_.Vp(g),r),this.currentSnippetType=2)}};
_.S.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.S.attributedTextIsEmpty=function(){var g=this.text;if(!_.hM(g))return!0;var r;return((r=g.content)==null?void 0:r.length)===0?!0:!1};
_.S.resize=function(g){if(this.snippetText){if(g===void 0?0:g)this.JSC$14407_lastWidth=NaN;var r=this.hostElement.offsetWidth;if(r!==this.JSC$14407_lastWidth&&!this.isExpanded)if(this.JSC$14407_lastWidth=r,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;g=0;var E,B;r=Math.min(r*this.maxLines/8*2,(B=(E=this.simpleText)==null?void 0:E.length)!=null?B:0)-1;for(E=0;g<=r;)B=Math.floor(g+(r-g)/2),this.setSnippetText(this.text,B),this.isOverflowing()?r=B-1:(g=B+1,E=B);this.setSnippetText(this.text,E);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.S.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.S.onExpandClick=function(){var g=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.Y("inline_expander_reset_focus_killswitch")||_.Lk(this,function(){var r;((r=_.rM().resolve(_.gM(_.wN)))==null?0:r.isKeyBoardInUse())&&_.hp(g.hostElement)});
_.Sh(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.S.onCollapseClick=function(){this.collapse();_.Sh(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.S.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.S.computeExpandButtonOffset=function(){var g=this.expandSizer;return g?Fa4?g.offsetParent?g.offsetParent.offsetWidth-g.offsetWidth-g.offsetLeft:0:g.offsetLeft:0};
_.hx.Object.defineProperties(ok.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.hM(this.text)?this.text.content||"":_.Vp(this.text):""}},
expandedText:{configurable:!0,enumerable:!0,get:function(){return this.isExpanded?this.text:void 0}},
expandedHeaderRuns:{configurable:!0,enumerable:!0,get:function(){return this.isExpanded?this.headerRuns:void 0}},
hasAttributedStringText:{configurable:!0,enumerable:!0,get:function(){return _.hM(this.text)?!0:this.text&&_.Y("web_replace_formatted_with_attributed_string")&&omP(this.text)?(this.text=_.e_(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}}});
ok.prototype.onTextChanged=ok.prototype.onTextChanged;ok.prototype.updateMaskAndExpandButtonOffset=ok.prototype.updateMaskAndExpandButtonOffset;ok.prototype.updateSnippetContainerMaxHeight=ok.prototype.updateSnippetContainerMaxHeight;ok.prototype.isExpandedChanged=ok.prototype.isExpandedChanged;ok.prototype.updateTextOnSnippetTypeChange=ok.prototype.updateTextOnSnippetTypeChange;ok.prototype.updateIsFormattedExpanded=ok.prototype.updateIsFormattedExpanded;ok.prototype.updateIsAttributedExpanded=ok.prototype.updateIsAttributedExpanded;
ok.prototype.onClick=ok.prototype.onClick;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],ok.prototype,"componentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ok.prototype,"text",void 0);_.m([_.K(),_.L("design:type",Array)],ok.prototype,"headerRuns",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],ok.prototype,"engagementPanel",void 0);_.m([_.K(),_.L("design:type",Object)],ok.prototype,"maxLines",void 0);
_.m([_.K(),_.L("design:type",String)],ok.prototype,"expandLabel",void 0);_.m([_.K(),_.L("design:type",String)],ok.prototype,"collapseLabel",void 0);_.m([_.K(),_.L("design:type",Object)],ok.prototype,"expandCommand",void 0);_.m([_.K(),_.L("design:type",Object)],ok.prototype,"expandButtonOffset",void 0);_.m([_.W("text"),_.L("design:type",String),_.L("design:paramtypes",[])],ok.prototype,"simpleText",null);
_.m([_.ob("click"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],ok.prototype,"onClick",null);_.m([_.W("text","isExpanded"),_.L("design:type",Object),_.L("design:paramtypes",[])],ok.prototype,"expandedText",null);_.m([_.W("headerRuns","isExpanded"),_.L("design:type",Object),_.L("design:paramtypes",[])],ok.prototype,"expandedHeaderRuns",null);
_.m([_.W("text"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],ok.prototype,"hasAttributedStringText",null);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],ok.prototype,"showExpandButton",void 0);_.m([_.W("collapseLabel","isExpanded"),_.L("design:type",Object),_.L("design:paramtypes",[])],ok.prototype,"showCollapseButton",null);_.m([_.K(),_.L("design:type",Object)],ok.prototype,"isTruncated",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],ok.prototype,"isExpanded",void 0);_.m([_.K(),_.L("design:type",Boolean)],ok.prototype,"isAttributedExpanded",void 0);_.m([_.Gb("isExpanded","hasAttributedStringText"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ok.prototype,"updateIsAttributedExpanded",null);_.m([_.K(),_.L("design:type",Boolean)],ok.prototype,"isFormattedExpanded",void 0);
_.m([_.Gb("isExpanded","hasAttributedStringText"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ok.prototype,"updateIsFormattedExpanded",null);_.m([_.K(),_.L("design:type",Number)],ok.prototype,"currentSnippetType",void 0);_.m([_.W("currentSnippetType"),_.L("design:type",Object),_.L("design:paramtypes",[])],ok.prototype,"useAttributedSnippet",null);
_.m([_.W("currentSnippetType"),_.L("design:type",Object),_.L("design:paramtypes",[])],ok.prototype,"useFormattedSnippet",null);_.m([_.W("currentSnippetType"),_.L("design:type",Object),_.L("design:paramtypes",[])],ok.prototype,"usePlainSnippet",null);_.m([_.K(),_.L("design:type",Object)],ok.prototype,"alwaysShowExpandButton",void 0);_.m([_.Gb("currentSnippetType"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ok.prototype,"updateTextOnSnippetTypeChange",null);
_.m([_.K(),_.L("design:type",Object)],ok.prototype,"attributedSnippetText",void 0);_.m([_.zb("#snippet"),_.L("design:type",HTMLElement)],ok.prototype,"snippetContainer",void 0);_.m([_.zb("#snippet-text"),_.L("design:type",HTMLElement)],ok.prototype,"snippetText",void 0);_.m([_.zb("#plain-snippet-text"),_.L("design:type",HTMLElement)],ok.prototype,"plainSnippetText",void 0);_.m([_.zb("#formatted-snippet-text"),_.L("design:type",Object)],ok.prototype,"formattedSnippetText",void 0);
_.m([_.zb("#attributed-snippet-text"),_.L("design:type",Object)],ok.prototype,"attributedSnippetTextEl",void 0);_.m([_.zb("#expand"),_.L("design:type",HTMLElement)],ok.prototype,"expandButton",void 0);_.m([_.zb("#expand-sizer"),_.L("design:type",HTMLElement)],ok.prototype,"expandSizer",void 0);_.m([_.Yk("isExpanded"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ok.prototype,"isExpandedChanged",null);
_.m([_.Gb("isExpanded","maxLines"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ok.prototype,"updateSnippetContainerMaxHeight",null);_.m([_.Gb("isTruncated","showExpandButton","expandButtonOffset"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ok.prototype,"updateMaskAndExpandButtonOffset",null);
_.m([_.Yk("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ok.prototype,"onTextChanged",null);_.m([_.N({is:"ytd-text-inline-expander",disableElementRegistration:!0})],ok);
_.I(ok,"ytd-text-inline-expander",function(){if(tHZ===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);tHZ=g}g=tHZ;return g},{mode:2});var Gq=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return g};
_.f(Gq,_.a);Gq.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
Gq.prototype.handleUpdateDescriptionAction=function(g){if(g=_.n(g,_.Skw))if(g.attributedDescription)this.set("data.attributedDescriptionBodyText",g.attributedDescription);else if(g.description){var r;((r=this.data)==null?0:r.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.e_(g.description)):this.set("data.descriptionBodyText",g.description)}};
_.hx.Object.defineProperties(Gq.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var g,r;return!((g=this.data)==null||!g.attributedDescriptionBodyText)||!((r=this.data)==null||!r.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)==null?0:g.collapsedLineCount){var r;return(r=this.data)==null?void 0:r.collapsedLineCount}g=_.wM("web_watch_description_collapsed_default_lines",12);if(_.Y("ww_desc_line_page_size_ks"))return g;r=Math.round(_.ny().height*_.wM("web_watch_description_screen_height_percentage",.5)/20);return Math.max(r,g)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return(E=(g=this.data)==null?void 0:g.descriptionBodyText)!=null?E:(r=this.data)==null?void 0:r.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.sourceAttributions}}});
Gq.prototype.panelContentVisibleChanged=Gq.prototype.panelContentVisibleChanged;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Gq.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Gq.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Gq.prototype,"componentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Gq.prototype,"data",void 0);
_.m([_.K(),_.L("design:type",Boolean)],Gq.prototype,"panelContentVisible",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Gq.prototype,"engagementPanel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Gq.prototype,"shortsPanel",void 0);_.m([_.zb("#inline-expander"),_.L("design:type",Object)],Gq.prototype,"inlineExpander",void 0);
_.m([_.Gb("panelContentVisible"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Gq.prototype,"panelContentVisibleChanged",null);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Gq.prototype,"hasDescriptionText",null);_.m([_.W("data"),_.L("design:type",Number),_.L("design:paramtypes",[])],Gq.prototype,"collapsedLines",null);
_.m([_.W("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.L("design:type",Object),_.L("design:paramtypes",[])],Gq.prototype,"descriptionText",null);_.m([_.W("data","data.headerRuns"),_.L("design:type",Object),_.L("design:paramtypes",[])],Gq.prototype,"headerRuns",null);_.m([_.W("data","data.sourceAttributions"),_.L("design:type",Object),_.L("design:paramtypes",[])],Gq.prototype,"sourceAttributions",null);
_.m([_.N({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],Gq);
_.I(Gq,"ytd-expandable-video-description-body-renderer",function(){if(PUD!==void 0)return PUD;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return PUD=g},{mode:_.My("kevlar_poly_si_batch_j028")?1:2});var eWw;var Waw=_.dG(function(g){var r=g.data;return _.G("factoid-renderer",{class:"ytwFactoidRendererHost"},_.G("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return r().accessibilityText}},_.G("span",{class:"ytwFactoidRendererValue"},_.G(_.hf,{text:function(){return r().value}})),_.G("span",{class:"ytwFactoidRendererLabel"},_.G(_.hf,{text:function(){return r().label}}))))},"Wb");_.BK(Waw,"factoid-renderer",{props:{data:_.cP}});_.BK(_.dG(function(g){var r=g.data;return _.G("upload-time-factoid-renderer",null,_.G(_.Af,{data:function(){return r().factoid}},{factoidRenderer:Waw}))},"Xb"),"upload-time-factoid-renderer",{props:{data:_.EB}});_.BK(_.dG(function(g){var r=g.data;return _.G("view-count-factoid-renderer",null,_.G(_.Af,{data:function(){return r().factoid}},{factoidRenderer:Waw}))},"Yb"),"view-count-factoid-renderer",{props:{data:_.EB}});var Qq=function(){var g=_.a.apply(this,arguments)||this;g.shortsPanel=!1;g.engagementPanel=!1;g.watchWhileSdp=_.Y("shorts_desktop_watch_while_sdp");return g};
_.f(Qq,_.a);Qq.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"}}}}};
_.hx.Object.defineProperties(Qq.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var g;return(g=this.data)==null?void 0:g.channel}}});
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Qq.prototype,"componentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Qq.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Qq.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Qq.prototype,"shortsPanel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Qq.prototype,"engagementPanel",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Qq.prototype,"watchWhileSdp",void 0);_.m([_.W("shortsPanel","engagementPanel","data.channel"),_.L("design:type",Object),_.L("design:paramtypes",[])],Qq.prototype,"showChannelInfo",null);_.m([_.N({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],Qq);
_.I(Qq,"ytd-video-description-header-renderer",function(){if(eWw!==void 0)return eWw;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return eWw=g},{mode:1});var CUb;var zq=function(){return _.a.apply(this,arguments)||this};
_.f(zq,_.a);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],zq.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],zq.prototype,"ytRendererBehavior",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],zq.prototype,"noPadding",void 0);_.m([_.K(),_.L("design:type",Object)],zq.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],zq);
_.I(zq,"ytd-list-item-view-model",function(){if(CUb!==void 0)return CUb;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return CUb=g},{mode:1});var Kab;var x3D;var aeZ;var XzZ;var kh=function(){var g=_.a.apply(this,arguments)||this;g.adaptiveFullWidth=!1;g.modernButtons=_.Y("web_modern_buttons");g.buttonOverrides={style:"call-to-action",type:"filled"};g.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return g};
_.f(kh,_.a);kh.prototype.handleSetTimestamp_=function(g){this.data&&this.data.shortUrl&&(_.S3(this.hostElement).querySelector("#share-url").value=g.isSet?_.KV(this.data.shortUrl,"t",g.timestamp):this.data.shortUrl)};
kh.prototype.handleSignalActionCopyShareUrl_=function(g,r){(_.Y("killswitch_copy_link_target_check")||_.S3(this.hostElement).querySelector("#copy-button")===r)&&this.copyUrlToClipboard()};
kh.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.S3(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
kh.prototype.computeStyle_=function(g){return g?g.toLowerCase().replace(/_/g,"-"):""};
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],kh.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],kh.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],kh.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.L("design:type",String)],kh.prototype,"rendererStyle",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],kh.prototype,"adaptiveFullWidth",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],kh.prototype,"modernButtons",void 0);_.m([_.K(),_.L("design:type",Object)],kh.prototype,"buttonOverrides",void 0);_.m([_.e3({is:"yt-copy-link-renderer",disableElementRegistration:!0})],kh);
_.I(kh,"yt-copy-link-renderer",function(){if(XzZ===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;aeZ===void 0&&(aeZ=document.createElement("template"));var B=aeZ;E.call(r,B.content.cloneNode(!0),g.content.firstChild);XzZ=g}g=XzZ;return g},{mode:2});_.ek("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var Hr=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return g};
_.f(Hr,_.a);_.S=Hr.prototype;_.S.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.S.attached=function(){this.keyboardFocused=!1};
_.S.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var g=_.rM().resolve(_.gM(_.wN));g&&(this.keyboardFocused=g.isKeyBoardInUse())}};
_.S.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.S.computeDescription_=function(){if(this.data){if(this.data.toggled&&this.data.toggledDescription)return this.data.toggledDescription;if(!this.data.toggled&&this.data.description)return this.data.description}};
_.S.onChange_=function(){if(this.data){var g=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;g&&this.ytComponentBehavior.resolveCommand(g);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.S.handleUpdateToggleAction_=function(g){(g=_.n(g,ShU))&&this.data&&g.targetId==this.data.targetId&&this.set("data.toggled",g.toggled)};
_.S.toBoolean_=function(g){return!!g};
_.S.reset=function(){};
_.S.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.x8("data-changed",this.data))};
_.S.updateDataToggledFromBinding=function(g){this.set("data.toggled",g.detail.value)};
Hr.prototype.dataChangedForBinding=Hr.prototype.dataChangedForBinding;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Hr.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Hr.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Hr.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Hr.prototype,"ytRendererBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],Hr.prototype,"data",void 0);_.m([_.K({computed:"computeDescription_(data.*)"}),_.L("design:type",Object)],Hr.prototype,"description_",void 0);_.m([_.K({value:function(){return!!_.rM().resolve(_.gM(_.wN))&&_.Y("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.L("design:type",Boolean)],Hr.prototype,"useKeyboardFocused",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],Hr.prototype,"keyboardFocused",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Hr.prototype,"dataChangedForBinding",null);_.m([_.e3({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],Hr);
_.I(Hr,"yt-toggle-form-field-renderer",function(){if(x3D===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;Kab===void 0&&(Kab=document.createElement("template"));var B=Kab;E.call(r,B.content.cloneNode(!0),g.content.firstChild);x3D=g}g=x3D;return g},{mode:2});var NwT;var Iew;var pv=function(){var g=_.a.apply(this,arguments)||this;g.isDarkTheme=!1;g.isSearch=!1;g.darkerDarkTheme=_.Y("web_darker_dark_theme");g.noTopMargin=_.Y("kevlar_watch_no_top_margin");g.maskFade=_.Y("web_watch_chips_mask_fade");g.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 g};
_.f(pv,_.a);_.S=pv.prototype;_.S.configureRendererStamper=function(){return{"data.chips":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer"}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.S.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.S.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.S.dataChanged=function(){var g=this.getSelectedIndex();if(g>0)this.selected=g;else{this.selected=0;var r,E;(r=this.ytScrollableChipCloudBehavior)==null||(E=r.reset)==null||E.call(r)}};
_.S.getSelectedIndex=function(){var g;if((g=this.data)==null||!g.chips)return-1;g=-1;for(var r,E=0;E<((r=this.data)==null?void 0:r.chips.length);E++){var B=void 0,w=void 0;if((B=this.data)==null?0:(w=B.chips[E].chipCloudChipRenderer)==null?0:w.isSelected){g=E;break}}return g};
_.S.onResize=function(){var g=this.ytScrollableChipCloudBehavior;_.Lk(g,g.setContainerWidthDiff);B5(this.ytScrollableChipCloudBehavior)};
_.S.onDarkModeToggledAction=function(g){this.isDarkTheme=g};
_.S.handleRelatedChipCommand=function(g,r){g=this.JSC$14434_chipsSelector.indexOf(r);g!==-1&&this.JSC$14434_chipsSelector.selectIndex(g)};
_.S.handleChipCloudChipSelectAction=function(g){g=this.JSC$14434_chipsSelector.indexOf(g);g>-1&&this.JSC$14434_chipsSelector.selectIndex(g)};
_.S.handleChipCloudChipDeselectAction=function(){var g=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14434_chipsSelector&&((g==null?0:g.continuationCommand)?_.q2(this.hostElement,[g]):(g==null?0:g.searchEndpoint)?this.ytComponentBehavior.resolveCommand(g):g&&_.uq(this.hostElement,[g],this.hostElement),this.JSC$14434_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.S.updateSelectedFromBinding=function(g){this.selected=g.detail.value};
pv.prototype.onResize=pv.prototype.onResize;pv.prototype.dataChanged=pv.prototype.dataChanged;pv.prototype.isSearchChanged=pv.prototype.isSearchChanged;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],pv.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],pv.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],pv.prototype,"actionHandlerBehavior",void 0);
_.m([_.P(_.f7),_.L("design:type",Object)],pv.prototype,"ironResizableBehavior",void 0);_.m([_.P(),_.L("design:type",E3)],pv.prototype,"ytScrollableChipCloudBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],pv.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],pv.prototype,"data",void 0);_.m([_.K({value:0}),_.L("design:type",Number)],pv.prototype,"selected",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],pv.prototype,"isDarkTheme",void 0);_.m([_.K({value:160}),_.L("design:type",Number)],pv.prototype,"scrollDistance",void 0);_.m([_.K(),_.L("design:type",Object)],pv.prototype,"isSearch",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],pv.prototype,"darkerDarkTheme",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],pv.prototype,"noTopMargin",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],pv.prototype,"maskFade",void 0);_.m([_.zb("#chips"),_.L("design:type",Object)],pv.prototype,"JSC$14434_chipsSelector",void 0);_.m([_.Gb("isSearch"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],pv.prototype,"isSearchChanged",null);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],pv.prototype,"dataChanged",null);
_.m([_.ob("iron-resize"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],pv.prototype,"onResize",null);_.m([_.e3({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],pv);
_.I(pv,"yt-chip-cloud-renderer",function(){if(Iew===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;NwT===void 0&&(NwT=document.createElement("template"));var B=NwT;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Iew=g}g=Iew;return g},{mode:2});var m3w,cSb=function(){return m3w!==void 0?m3w:m3w=document.createElement("template")};
document.head.appendChild(cSb().content);var is6;var Lan=document.head,VHn=Lan.appendChild,hWD;if(is6===void 0){var ZsA=document.createElement("template");_.b(ZsA,"");ZsA.content.insertBefore(cSb().content.cloneNode(!0),ZsA.content.firstChild);is6=ZsA}hWD=is6;VHn.call(Lan,hWD.content);var ySZ=_.dG(function(g){var r=g.data;return _.G("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.G("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.G("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.G(_.p,{cond:function(){return _.iL(r().image)},
then:function(E){return _.G("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.G(_.vw,{data:E,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.G("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.G(_.hf,{text:function(){return r().title}})),_.G("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.G(_.hf,{text:function(){return r().subtitle}})))),_.G(_.p,{cond:function(){var E;
return(E=r())==null?void 0:E.hasBottomDivider},
then:function(){return _.G("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Zb");var vzn=_.dG(function(g){var r=g.data;return _.G("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.G("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.G(_.Af,{data:function(){var E;return(E=r().offerPlanDetailsItem)!=null?E:[]}},{offerPlanDetailsItemViewModel:function(E){return _.G("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.G(ySZ,{data:E.data}))}})),_.G("div",null,_.G(_.p,{cond:function(){return r().hasBottomDivider},
then:function(){return _.G("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.G("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.G("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.G("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.G("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"$b");var d3T=_.dG(function(g){var r=g.data;g=_.U(_.Dk(!1,void 0,"SpEGQd"));var E=g.next().value,B=g.next().value,w=_.HK(function(){B(!E());return!1}),O=function(){var M;
return(M=r().offerPlanDetailsContainer)!=null?M:[]};
return _.G("lp-complex-offer-card-details-view-model",null,_.G("div",null,_.G(_.p,{cond:function(){return E()},
then:function(){return _.G("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.G("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":w,"aria-expanded":E},_.G(_.hf,{text:function(){return r().expandedTitle}})),_.G("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.G(_.Af,{data:O},{offerPlanDetailsContainerViewModel:function(M){return _.G("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.G(vzn,{data:M.data}))}})),_.G("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.G(_.hf,{text:function(){return r().legalText}})))},
else:function(){return _.G("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":w,"aria-expanded":E},_.G(_.hf,{text:function(){return r().collapsedTitle}}),_.G("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.G(_.nh,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"ac");var Twz=_.dG(function(g){var r=g.data;return _.G("lp-complex-offer-card-option-view-model",null,_.G("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.G(_.p,{cond:function(){return r().topDividerText},
then:function(){return _.G("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.G("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.G("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.G("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.G(_.hf,{text:function(){return r().topDividerText}}))))}}),_.G(_.p,{cond:function(){return r().description},
then:function(){return _.G("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.G(_.hf,{text:function(){return r().description}}))}}),_.G(_.p,{cond:function(){return r().planPricingPrimary},
then:function(){return _.G("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.G(_.hf,{text:function(){return r().planPricingPrimary}}))}}),_.G(_.p,{cond:function(){return r().planPricingSecondary},
then:function(){return _.G("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.G(_.hf,{text:function(){return r().planPricingSecondary}}))}}),_.G(_.p,{cond:function(){return r().primaryButton},
then:function(){return _.G("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.G(_.Af,{data:function(){return r().primaryButton}},{buttonViewModel:function(E){return _.G(_.MV,{data:E.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"bc");var gNA=_.dG(function(g){var r=g.data;var E=function(){var O;return((O=r())==null?void 0:O.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
g={};var B={},w={};return _.G("ytm-lp-complex-offer-card-view-model",null,_.G("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.G("div",{class:_.QY((g.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=E,g),"ytmLpComplexOfferCardViewModelCardContainer")},_.G(_.p,{cond:function(){var O;return(O=r())==null?void 0:O.bannerText},
then:function(){return _.G("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.G("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.G(_.hf,{text:function(){return r().bannerText}})))}}),_.G(_.p,{cond:function(){return _.iL(r().logo)},
then:function(O){var M={};return _.G("div",{class:_.QY((M.ytmLpComplexOfferCardViewModelLogoAlignLeft=E,M),"ytmLpComplexOfferCardViewModelLogo")},_.G(_.vw,{data:O,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.G("div",{class:_.QY((B.ytmLpComplexOfferCardViewModelTitleAlignLeft=E,B),"ytmLpComplexOfferCardViewModelTitle")},_.G(_.hf,{text:function(){return r().title}})),_.G(_.p,{cond:function(){var O;
return(O=r())==null?void 0:O.subtitle},
then:function(){var O={};return _.G("div",{class:_.QY((O.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=E,O),"ytmLpComplexOfferCardViewModelSubtitle")},_.G(_.hf,{text:function(){return r().subtitle}}))}}),_.G(_.p,{cond:function(){return r().planPricingPrimary},
then:function(){return _.G("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.G(_.hf,{text:function(){return r().planPricingPrimary}}))}}),_.G(_.p,{cond:function(){return r().planPricingSecondary},
then:function(){return _.G("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.G(_.hf,{text:function(){return r().planPricingSecondary}}))}}),_.G(_.p,{cond:function(){return r().purchaseButton},
then:function(){return _.G("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.G(_.Af,{data:function(){return r().purchaseButton}},{buttonViewModel:function(O){return _.G(_.MV,{data:O.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.G(_.p,{cond:function(){var O;
return(O=r())==null?void 0:O.offerOptions},
then:function(){return _.G("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.G(_.Af,{data:function(){return r().offerOptions}},{lpComplexOfferCardOptionViewModel:Twz}))}}),_.G("div",{class:_.QY((w.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=E,w),"ytmLpComplexOfferCardViewModelLegalText")},_.G(_.hf,{text:function(){return r().legalText}})),_.G(_.p,{cond:function(){var O;
return(O=r())==null?void 0:O.offerCardDetails},
then:function(){return _.G("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.G(_.Af,{data:function(){return r().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:d3T}))}}))))},"cc");var rWn=_.dG(function(g){var r=g.data;var E=function(){var M;return((M=r())==null?void 0:M.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
g={};var B={},w={},O={};return _.G("ytm-lp-complex-offer-card-section-view-model",null,_.G("div",{class:_.QY("ytmLpComplexOfferCardSectionViewModelHost")},_.G("div",{class:_.QY((g.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=E,g),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.G("div",{class:_.QY((B.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=E,B),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.G("h2",{class:_.QY((w.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
E,w),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.G(_.hf,{text:function(){return r().title}}))),_.G(_.p,{cond:function(){var M;
return(M=r())==null?void 0:M.subtitle},
then:function(){var M={},u={};return _.G("div",{class:_.QY((M.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=E,M),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.G("div",{class:_.QY((u.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=E,u),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.G(_.hf,{text:function(){return r().subtitle}})))}}),_.G("div",{class:_.QY((O.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=E,O),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.G(_.Af,{data:function(){var M;
return(M=r().offerPlans)!=null?M:[]}},{lpComplexOfferCardViewModel:function(M){return _.G("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.G(gNA,{data:M.data}))}})))))},"dc");var ENn=_.dG(function(g){return _.G("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.G("div",{class:"ytLpCouponBannerViewModelIcon"},_.G(_.nh,{icon:function(){return"price_tag"}})),_.G("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.G("div",{class:"ytLpCouponBannerViewModelContent"},_.G("div",{class:"ytLpCouponBannerViewModelHeading"},_.G(_.hf,{text:function(){var r;
return(r=g.data())==null?void 0:r.title}})),_.G("div",{class:"ytLpCouponBannerViewModelBody"},_.G(_.hf,{text:function(){var r;
return(r=g.data())==null?void 0:r.subtitle}})))))},"ec");
ENn.idomCompat=!0;_.Yh=UX6.getInstance();var Bvw=_.dG(function(g){return _.G("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":g.shouldAriaHideContent},_.G("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:g.questionId},_.G(_.hf,{text:g.question})))},"fc"),wtD=_.dG(function(g){var r=g.data;
var E=g.themeOverride;g=_.U(_.Dk(!1,void 0,"ljTVPd"));var B=g.next().value,w=g.next().value;g=_.HK(function(){w(!B());return!1});
var O=function(){return B()?"EXPAND_LESS":"EXPAND_MORE"},M=("faq-container"+_.jY(_.Yh)).toString(),u="faq-question-and-answers-section-question"+_.jY(_.Yh),l={},Q={};
return _.G("faq-entry-view-model-c3",null,_.G("div",{class:_.QY("yt-lp-faq-entry-view-model",(l["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return E==null?void 0:E().useDarkTheme},l))},_.G("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":g,role:"button","aria-expanded":B,"aria-labelledby":u.toString(),"tab-index":"0"},_.G(Bvw,{question:function(){return r().question},
questionId:u,shouldAriaHideContent:!0}),_.G(_.p,{cond:function(){return B()!==void 0},
then:function(){return _.G("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.G(_.nh,{icon:O,ariaHidden:!0}),_.G("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.G("div",{class:_.QY("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(Q["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!B()},Q))},_.G("div",{id:M},_.G(_.Ra,{each:function(){return r().answers||[]}},function(z){return _.G("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.G(_.hf,{text:z}))})))))},"gc");
wtD.idomCompat=!0;var SyA=_.dG(function(g){var r=g.data;var E=g.themeOverride;g={};return _.G("lp-faq-section-view-model-c3",null,_.G("div",{class:_.QY("yt-lp-faq-section-view-model",(g["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return r().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},g["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(E==null||!E().useDarkTheme)},g))},_.G("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.G(_.p,{cond:function(){return r().header},
then:function(B){return _.G("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.G(_.hf,{text:B}))}}),_.G("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.G(_.Af,{data:function(){return r().faqs}},{faqEntryViewModel:function(B){return _.G(wtD,{data:B.data,
themeOverride:E})}})),_.G("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.G(_.Ra,{each:function(){return r().footers||[]}},function(B){return _.G(_.hf,{text:B})})),_.G(_.p,{cond:function(){return r().legal},
then:function(B){return _.G("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.G(_.hf,{text:B}))}}))))},"hc");
SyA.idomCompat=!0;var OAT=_.dG(function(g){var r=g.data;var E=g.themeOverride;_.Jk(function(){var M=r().gtmId;M&&_.fB(M,_.Ca("GL",""))});
var B={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var M,u,l;return(l=(M=r().logo)==null?void 0:(u=M.accessibilityData)==null?void 0:u.label)!=null?l:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},w=_.rM().resolve(_.gM(_.Vy)),O=function(){return w&&w()||(E==null?void 0:E().useDarkTheme)};
return _.G("lp-header-section-view-model",null,_.G("div",{class:function(){var M=r().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",u=r().marginType==="LP_SECTION_MARGIN_TYPE_TOP",l=E==null?void 0:E().useDarkTheme,Q=["lp-header-section-view-model"];M&&Q.push("lp-header-section-view-model--ptc-layout-type");u&&Q.push("lp-header-section-view-model__lp-header-section-margin");l&&Q.push("lp-header-section-view-model--premium-force-dark-mode");return Q.join(" ")}},_.G(_.p,{cond:function(){return r().logo},
then:function(){return _.G("div",null,_.G(_.p,{cond:O,then:function(){return _.G(_.p,{cond:function(){var M;return(M=r().logo)==null?void 0:M.imageDark},
then:function(M){return _.G(_.vw,Object.assign({},{data:M},B))}})},
else:function(){return _.G(_.p,{cond:function(){var M;return(M=r().logo)==null?void 0:M.imageLight},
then:function(M){return _.G(_.vw,Object.assign({},{data:M},B))}})}}))}}),_.G(_.p,{cond:function(){return r().title},
then:function(M){return _.G("div",{class:"lp-header-section-view-model__lp-header-title"},_.G(_.hf,{text:M}))}}),_.G("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.G(_.p,{cond:function(){return r().subtitles},
then:function(M){return _.G(_.Ra,{each:M},function(u){return _.G("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.G(_.hf,{text:u}))})}})),_.G(_.p,{cond:function(){return r().additionalInfo},
then:function(M){return _.G("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.G(_.hf,{text:M}))}}),_.G("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.G(_.p,{cond:function(){return r().primaryButton},
then:function(M){return _.G("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.G(_.Af,{data:M},{buttonViewModel:_.MV}))}}),_.G(_.p,{cond:function(){return r().secondaryButton},
then:function(M){return _.G("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.G(_.Af,{data:M},{buttonViewModel:_.MV}))}})),_.G(_.p,{cond:function(){return r().otherOffersInfo},
then:function(M){return _.G("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.G(_.hf,{text:M}))}}),_.G("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.G(_.p,{cond:function(){return r().billingInfo},
then:function(M){return _.G(_.Ra,{each:M},function(u){return _.G("div",null,_.G(_.hf,{text:u}))})}}))))},"ic");
OAT.idomCompat=!0;var UkA=_.dG(function(g){var r=g.data;var E=_.Zo(g.themeOverride,{useDarkTheme:!1});g={};g=_.QY("ytm-lp-headline-section-view-model",(g["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return E().useDarkTheme},g));
return _.G("lp-headline-section-view-model",null,_.G("div",{class:g},_.G("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.G(_.hf,{text:function(){return r().title}})),_.G(_.p,{cond:function(){return r().subtitle},
then:function(B){return _.G("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.G(_.hf,{text:B}))}})))},"jc");var MeU=_.dG(function(g){var r=g.data;var E=g.themeOverride;var B=_.rM().resolve(_.gM(_.Vy)),w=function(){return B&&B()||(E==null?void 0:E().useDarkTheme)},O=function(){var Q,z;
var k=w()?(Q=r().textBackgroundImage)==null?void 0:Q.imageDark:(z=r().textBackgroundImage)==null?void 0:z.imageLight;return ohS((k==null?void 0:k.sources)||[])},M=function(){var Q,z;
return w()?(Q=r().featureImage)==null?void 0:Q.imageDark:(z=r().featureImage)==null?void 0:z.imageLight},u=function(){return r().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},l=function(){var Q,z;
return w()?(Q=r().logo)==null?void 0:Q.imageDark:(z=r().logo)==null?void 0:z.imageLight};
return _.G("ytm-lp-large-feature-section-view-model",null,_.G("div",{class:function(){var Q=r().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",z=r().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",k=(r().index||0)%2===1,H=E==null?void 0:E().useDarkTheme,R=["yt-lp-large-feature-section-view-model"];Q?R.push("yt-lp-large-feature-section-view-model--music-feature-type"):z?R.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):k||R.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
H&&R.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return R.join(" ")}},_.G("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.G(_.p,{cond:M,
then:function(){return _.G(_.vw,{data:function(){return M()},
alt:function(){var Q,z,k;return(k=(Q=r().featureImage)==null?void 0:(z=Q.accessibilityData)==null?void 0:z.label)!=null?k:""},
contentMode:u})}})),_.G("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var Q;return((Q=O())==null?0:Q.url)?"background-image: url("+_.nI(O().url)+");":""}},_.G("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.G(_.p,{cond:l,
then:function(){return _.G(_.vw,{data:function(){return l()},
alt:function(){var Q,z,k;return(k=(Q=r().logo)==null?void 0:(z=Q.accessibilityData)==null?void 0:z.label)!=null?k:""},
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"})}}),_.G(_.p,{cond:function(){return r().eyebrowText},
then:function(){return _.G("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.G(_.hf,{text:function(){return r().eyebrowText}}))}}),_.G(_.p,{cond:function(){return r().title},
then:function(){return _.G("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.G(_.hf,{text:function(){return r().title}}))}}),_.G(_.p,{cond:function(){return r().subtitles},
then:function(){return _.G("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.G(_.Ra,{each:function(){return r().subtitles||[]}},function(Q){return _.G(_.hf,{text:Q})}))}})))))},"kc");
MeU.idomCompat=!0;var qyT=_.dG(function(g){return _.G("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.G("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.G(_.nh,{icon:function(){var r;return(r=g.data())==null?void 0:r.iconType},
className:function(){var r;switch((r=g.data())==null?void 0:r.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 r;return((r=g.data())==null?void 0:r.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.G("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.G(_.hf,{text:function(){var r;
return(r=g.data())==null?void 0:r.text},
className:function(){var r;return((r=g.data())==null?void 0:r.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"lc");var utb=_.dG(function(g){g=_.y7(g,{config:void 0,themeOverride:void 0});var r=g.data,E=g.config,B=g.themeOverride;g={};g=_.QY("ytm-lp-offer-card-option-view-model",(g["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var u;return(u=B())==null?void 0:u.useDarkTheme},g));
var w=_.HK(function(){var u,l;(u=E())==null||(l=u.handleRadioButtonClick)==null||l.call(u,r());return!1}),O=function(){var u;
return(u=E())==null?void 0:u.shouldDisplayRadioButton},M=function(){var u;
return(u=r().featureListItems)!=null?u:[]};
return _.G("ytm-lp-offer-card-option-view-model",null,_.G("div",{class:g,"on:click":_.HK(function(){if(O()){var u,l;(u=E())==null||(l=u.handleRadioButtonClick)==null||l.call(u,r())}return!1})},_.G(_.p,{cond:O,
then:function(){return _.G("div",null,_.G("input",{type:"radio","on:click":w,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var u;return!((u=E())==null||!u.isOptionSelected)}}))}}),_.G("div",null,_.G("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.G(_.hf,{text:function(){return r().eyebrowText}})),_.G("div",{class:"ytm-lp-offer-card-option-view-model__title"},_.G(_.hf,{text:function(){return r().title}})),_.G("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},
_.G(_.hf,{text:function(){return r().subtitle}})),_.G(_.p,{cond:function(){return M().length>0},
then:function(){return _.G("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.G(_.Af,{data:M},{lpFeatureListItemViewModel:qyT}))}}),_.G("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.G(_.hf,{text:function(){return r().description}})))))},"mc");
utb.idomCompat=!0;var lRm=_.dG(function(g){var r=g.data;var E=g.themeOverride;g=_.U(_.Y3(function(){var O,M=(O=r().offerOptions)==null?void 0:O[0];return _.n(M,Hiw)||{}}));
var B=g.next().value,w=g.next().value;g={};return _.G("ytm-lp-offer-card-view-model",null,_.G("div",{class:_.QY("ytm-lp-offer-card-view-model",(g["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(E==null||!E().useDarkTheme)},g))},_.G("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.G(_.p,{cond:function(){return r().titleIconType},
then:function(){return _.G("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.G(_.nh,{icon:function(){var O;return((O=r().titleIconType)==null?void 0:O.toString())||""}}))}}),_.G("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.G(_.hf,{text:function(){return r().title}})),_.G(_.Af,{data:function(){return r().titleBadge}},{badgeViewModel:function(O){return _.G("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.G(_.ZL,{data:O.data}))}})),_.G("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.G(_.Af,{data:function(){return r().offerOptions}},{lpOfferCardOptionViewModel:function(O){var M=O.data;
return _.G(_.wW,null,_.G("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.G(utb,{data:M,config:function(){var u;return{shouldDisplayRadioButton:(r().offerOptions||[]).length>1,isOptionSelected:M().id===((u=B())==null?void 0:u.id),handleRadioButtonClick:function(l){return void w(l)}}},
themeOverride:E}))}})),_.G("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.G(_.Af,{data:function(){var O;
return(O=B())==null?void 0:O.purchaseButtonOverride}},{buttonViewModel:_.MV}))))},"nc");
lRm.idomCompat=!0;var Dk6=_.dG(function(g){var r=g.data;var E=g.themeOverride;g={};g=_.QY("ytm-lp-offer-card-section-view-model",(g["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var B;return E==null?void 0:(B=E())==null?void 0:B.useDarkTheme},g));
return _.G("ytm-lp-offer-card-section-view-model",null,_.G("div",{class:g},_.G(_.p,{cond:function(){return r().title!==void 0},
then:function(){return _.G("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.G("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.G(_.hf,{text:function(){return r().title}})),_.G(_.p,{cond:function(){return r().subtitle},
then:function(){return _.G("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.G(_.hf,{text:function(){return r().subtitle}}))}}))}}),_.G("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.G(_.Af,{data:function(){return r().offerCards}},{lpOfferCardViewModel:function(B){return _.G("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.G(lRm,{data:B.data,
themeOverride:E}))}})),_.G(_.p,{cond:function(){return r().footer},
then:function(){return _.G("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.G(_.hf,{text:function(){return r().footer}}))}})))},"oc");var oNz=_.dG(function(g){var r=g.data;return _.G("lp-offer-table-cell-content-view-model",null,_.G("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.G(_.fa,null,_.G(_.na,{when:function(){return r().title}},function(){return _.G(_.hf,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return r().title}})}),_.G(_.na,{when:function(){return r().subTitle}},function(){return _.G(_.hf,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return r().subTitle}})}),_.G(_.na,{when:function(){return r().featureDescription}},function(){return _.G(_.hf,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return r().featureDescription}})}),_.G(_.na,{when:function(){return r().description}},function(){return _.G(_.hf,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return r().description}})}),_.G(_.na,{when:function(){return r().iconType}},function(){return _.G("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.G(_.nh,{icon:function(){return r().iconType.toString()}}))}),_.G(_.na,{when:function(){return r().purchaseButton}},function(){return _.G(_.Af,{data:function(){return r().purchaseButton}},{buttonViewModel:function(E){return _.G("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.G(_.MV,{data:E.data}))}})}),_.G(_.na,{when:function(){return r().note}},function(){return _.G(_.hf,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return r().note}})}),_.G(_.na,{when:function(){return r().featureDetail}},function(){return _.G(_.hf,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return r().featureDetail}})}),_.G(_.na,{when:function(){return r().badge}},function(){return _.G(_.Af,{data:function(){return r().badge}},{badgeViewModel:_.ZL})}))))},"pc");
oNz.idomCompat=!0;var Gyw=_.dG(function(g){var r=g.data;return _.G("lp-offer-table-cell-view-model",null,_.G("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(r().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;"}}},_.G(_.Af,{data:function(){return r().contents}},{lpOfferTableCellContentViewModel:oNz})))},
"qc");
Gyw.idomCompat=!0;var QEw=_.dG(function(g){var r=g.data;var E=g.lpTableIsFirstRow;var B=g.lpTableIsLastRow;var w=function(){return(E==null?0:E())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-header-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-header-cell"},O=function(){return(E==null?0:E())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(B==null?0:B())?"yt-lp-offer-table-row-view-model__lp-offer-table-last-row-content-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-content-cell"};
return _.G("ytm-lp-offer-table-row-view-model",null,_.G("div",{class:"yt-lp-offer-table-row-view-model"},_.G(_.Af,{data:function(){return r().rowHeaderCell}},{lpOfferTableCellViewModel:function(M){return _.G("div",{class:w},_.G(Gyw,{data:M.data}))}}),_.G(_.Af,{data:function(){return r().contentCells}},{lpOfferTableCellViewModel:function(M){return _.G("div",{class:O},_.G(Gyw,{data:M.data}))}})))},"rc");
QEw.idomCompat=!0;var zvb=_.dG(function(g){var r=g.data;var E=g.themeOverride;var B=_.rM().resolve(_.gM(_.Vy)),w=function(){return _.n(r().logo,CTw)||{}};
g={};return _.G("ytm-lp-offer-table-section-view-model",null,_.G("div",{class:"yt-lp-offer-table-view-model"},_.G(_.p,{cond:function(){var O,M;return B&&B()||(E==null?0:E().useDarkTheme)?(O=w())==null?void 0:O.imageDark:(M=w())==null?void 0:M.imageLight},
then:function(O){return _.G(_.vw,{data:O,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var M,u,l;return(l=(M=w())==null?void 0:(u=M.accessibilityData)==null?void 0:u.label)!=null?l:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.G("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.G(_.hf,{text:function(){return r().title}})),_.G("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.G(_.hf,{text:function(){return r().subtitle}})),_.G(_.p,{cond:function(){return r().disclaimers},
then:function(O){return _.G("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.G(_.Ra,{each:O},function(M){return _.G("div",null,_.G(_.hf,{text:M}))}))}}),_.G("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.G(_.Af,{data:function(){return r().rows}},{lpOfferTableRowViewModel:function(O,M){return _.G(QEw,{data:O.data,
lpTableIsFirstRow:function(){return M()===0},
lpTableIsLastRow:function(){return M()===r().rows.length-1}})}})),_.G("div",{class:_.QY((g["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return r().hasFooterBackground},g))},_.G(_.p,{cond:function(){return r().footer},
then:function(){return _.G("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.G(_.hf,{text:function(){return r().footer}}))}}),_.G(_.p,{cond:function(){return r().footerTitle},
then:function(){return _.G("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.G(_.hf,{text:function(){return r().footerTitle}}))}}),_.G(_.p,{cond:function(){return r().footerDescription},
then:function(){return _.G("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.G(_.hf,{text:function(){return r().footerDescription}}))}}))))},"sc");
zvb.idomCompat=!0;var kyU=_.dG(function(g){var r=g.data;var E=g.themeOverride;var B=_.rM().resolve(_.gM(_.Vy)),w=function(){var u;return E==null?void 0:(u=E())==null?void 0:u.useDarkTheme},O=function(){var u,l;
return B&&B()||w()?(u=r().image)==null?void 0:u.imageDark:(l=r().image)==null?void 0:l.imageLight};
g={};g=_.QY("ytm-lp-small-feature-section-view-model",(g["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=w,g));var M=function(){var u,l,Q;return(Q=(u=r().image)==null?void 0:(l=u.accessibilityData)==null?void 0:l.label)!=null?Q:""};
return _.G("ytm-lp-small-feature-section-view-model",{class:g},_.G(_.p,{cond:function(){return O()&&!Lm},
then:function(){return _.G("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.G(_.vw,{data:function(){return O()},
alt:M,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.G("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.G("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.G(_.p,{cond:function(){return r().title},
then:function(u){return _.G(_.hf,{text:u})}})),_.G("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.G(_.hf,{text:function(){return r().description}}))))},"tc");
kyU.idomCompat=!0;var HAw=_.dG(function(g){var r=g.data;var E=g.themeOverride;g={};return _.G("ytm-lp-small-feature-section-group-view-model",null,_.G("div",{class:_.QY("ytm-lp-small-feature-section-group-view-model",(g["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(E==null||!E().useDarkTheme)},g))},_.G("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.G(_.Af,{data:function(){return r().smallFeatures}},{lpSmallFeatureSectionViewModel:function(B){return _.G("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.G(kyU,{data:B.data,
themeOverride:E}))}}))))},"uc");
HAw.idomCompat=!0;_.BK(_.dG(function(g){var r=g.data;var E=function(){return r().forcedTheme==="USER_INTERFACE_THEME_DARK"},B=function(){return r().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},w=function(){var M="",u,l;
var Q=_.rM().resolve(_.gM(_.Vy));Q=E()||(Q==null?0:Q())?(u=r().themedImageViewModel)==null?void 0:u.imageDark:(l=r().themedImageViewModel)==null?void 0:l.imageLight;(u=ohS((Q==null?void 0:Q.sources)||[]))&&u.url&&(M=B()?"background-image: linear-gradient(to bottom, transparent, "+(r().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.nI(u.url)+");":"background-image: url("+_.nI(u.url)+");");return M},O=function(){return{useDarkTheme:E()}};
g={};return _.G("yt-section-group-view-model",null,_.G("div",{class:_.QY("yt-lp-section-group-view-model",(g["yt-lp-section-group-view-model--premium-force-dark-mode"]=E,g["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return r().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},g))},_.G(_.p,{cond:function(){return w().length},
then:function(){var M={};return _.G("div",{class:_.QY("yt-lp-section-group-view-model__bg-image",(M["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=B,M)),style:w})}}),_.G("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.G(_.Af,{data:function(){return r().sections}},{lpFaqSectionViewModel:function(M){return _.G(SyA,{data:M.data,
themeOverride:O})},
lpHeaderSectionViewModel:function(M){return _.G(OAT,{data:M.data,themeOverride:O})},
lpHeadlineSectionViewModel:function(M){return _.G(UkA,{data:M.data,themeOverride:O})},
lpLargeFeatureSectionViewModel:function(M){return _.G(MeU,{data:M.data,themeOverride:O})},
lpOfferCardSectionViewModel:function(M){return _.G(Dk6,{data:M.data,themeOverride:O})},
lpComplexOfferCardSectionViewModel:function(M){return _.G(rWn,{data:M.data})},
lpOfferTableSectionViewModel:function(M){return _.G(zvb,{data:M.data,themeOverride:O})},
lpSmallFeatureSectionGroupViewModel:function(M){return _.G(HAw,{data:M.data,themeOverride:O})},
lpCouponBannerViewModel:function(M){return _.G(ENn,{data:M.data})}}))))},"vc"),"yt-section-group-view-model",{props:{data:_.cP}});var aOQ=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.Rk=_.dG(function(g){function r(){if(aOQ.has(g.data().displayType)){var Q=!B(),z;if((z=g.disableDeselection)==null||!z.call(g)||Q){g.data().selected=Q;z=Object.assign({},M(),{selected:Q});u(z);var k;(k=g.callback)==null||k.call(g,z,Q)}}}
var E=_.VI("chip-view-model"),B=function(){var Q,z;return!!(((Q=g.selected)==null?void 0:Q.call(g))!==void 0?(z=g.selected)==null?0:z.call(g):M().selected)},w=_.U(_.Y3(g.data)),O=w.next().value;
w=w.next().value;var M=O,u=w,l=_.QU(xwc,function(){return g.data().chipEntityKey||""});
return _.G("chip-view-model",{class:"ytChipViewModelHost",el:E},_.G(EGm,{data:function(){var Q,z=Object.assign({},M(),{selected:B()}),k=l(),H=(Q=g.disableDeselection)==null?void 0:Q.call(g);a:switch(z.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":Q=1;break a;default:Q=0}return{text:(k==null?void 0:k.text)||z.text,state:z.disabled?1:z.selected?0:2,type:Q,onTap:X9V(z,E,r,H),accessibilityLabel:z.accessibilityLabel||z.text}}}))},"wc");
_.Rk.idomCompat={callbacks:{callback:!0}};_.ptb=_.dG(function(g){var r=_.QU(KUX,function(){var M;return(M=g.data())==null?void 0:M.chipBarStateEntityKey}),E=function(){return g.data().disableDeselection},B=_.U(_.Y3(function(){var M;
if(((M=r())==null?void 0:M.selectedIndex)!=void 0)return r().selectedIndex;var u,l;M=_.U(((u=g.data())==null?void 0:(l=u.chips)==null?void 0:l.entries())||[]);for(u=M.next();!u.done;u=M.next()){u=_.U(u.value);l=u.next().value;u=u.next().value;var Q=void 0;if((Q=_.n(u,_.KY))==null?0:Q.selected)return l}return-1})),w=B.next().value,O=B.next().value;
return _.G("chip-bar-view-model",{class:_.QY("ytChipBarViewModelHost",g.className),role:"tablist"},_.G(_.Af,{data:function(){return g.data().chips}},{chipViewModel:function(M,u){return _.G("div",{class:"ytChipBarViewModelChipWrapper"},_.G(_.Rk,{data:M.data,
selected:function(){return u()===w()},
callback:function(l,Q){l=!!Q;Q=u();O(l?Q:-1);var z,k=(z=g.data())==null?void 0:z.chipBarStateEntityKey;k&&l&&_.hC(_.za("chipBarStateEntity",k,{key:k,selectedIndex:Q}))},
disableDeselection:g.disableDeselection||E}))}}))},"xc");_.BK(_.ptb,"chip-bar-view-model",{props:{data:_.EB,className:_.EB,disableDeselection:_.EB}});_.Yyz=_.dG(function(g){var r=g.data;g={};return _.G("divider-view-model",{class:_.QY("divider-view-model-wiz",(g["divider-view-model-wiz__inset-thin-padding"]=function(){return r().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},g))},_.G("div",{class:_.QY("divider-view-model-wiz__base-divider",function(){return NoX(r().dividerStyle)}),
style:_.Rl({"background-color":function(){return r().backgroundColor?_.aJ(r().backgroundColor):void 0}})}))},"yc");
_.Yyz.idomCompat=!0;_.BK(_.Yyz,"divider-view-model",{props:{data:_.cP}});var Al=new Map,j7=new Map,crY=0,bP;var veo=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],gXV={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var Rv6,nNb;Rv6=function(g){return function(r){return function(){return String(r())+g}}};
_.nv=Rv6("px");nNb=Rv6("s");var fRb=_.dG(function(g){function r(h){return function(){var y=R().numItemsPerGridRow,OD=h()*y;y=OD+y;var uB,zS;return(zS=(uB=B().contents)==null?void 0:uB.slice(OD,y))!=null?zS:[]}}
var E=_.y7(g,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),B=E.data,w=E.layoutContainerWidth,O=E.shouldUseOwnContainerSize,M=E.marginSettings;E=_.U(_.Dk(!0,void 0,"qgr2Je"));var u=E.next().value,l=E.next().value,Q=function(){var h,y=(h=_.n(B().showMoreButton,_.nm))==null?void 0:h.trackingParams;y&&_.MJ(_.pW(),y);l(!1)},z=function(){var h,y=(h=_.n(B().showLessButton,_.nm))==null?void 0:h.trackingParams;
y&&_.MJ(_.pW(),y);l(!0)};
E=_.VI("grid-shelf-view-model");var k=_.EXY(E,{canHaveZeroSize:!1}),H=function(){var h;return(h=B().contentAspectRatio)!=null?h:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},R=_.kB(function(){var h=_.cX({containerWidth:O()&&k.width()>0?k.width()||w():w(),
sizing:"EXTRA_COMPACT",marginSettings:M(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:h.maxContainerWidth,numItemsPerGridRow:h.numItems,contentPadding:O()?h.margin:h.contentMargin,itemWidth:h.itemWidth,itemMargin:h.gutter/2}},void 0,"pqVdjc"),A=function(){if(B().enableVerticalExpansion){if(u())return J();
var h,y,OD=(y=(h=B().contents)==null?void 0:h.length)!=null?y:0;return Math.ceil(OD/R().numItemsPerGridRow)}return R().numItemsPerGridRow<=2?2:1},J=function(){var h;
return Math.ceil(((h=B().minCollapsedItemCount)!=null?h:1)/R().numItemsPerGridRow)},e=function(){return B().enableVerticalExpansion&&B().showLessButton&&!u()&&A()>J()},C=function(){var h,y;
return B().enableVerticalExpansion&&B().showMoreButton&&u()&&((y=(h=B().contents)==null?void 0:h.length)!=null?y:0)>R().numItemsPerGridRow*J()},X=function(){return!e()},Z=function(){return!C()},c={};
return _.G("grid-shelf-view-model",{class:_.QY("ytGridShelfViewModelHost",g.className,(c.ytGridShelfViewModelHostHasBottomButton=function(){return e()||C()},c)),
el:E,style:_.Rl({"margin-left":(0,_.nv)(function(){return R().contentPadding}),
"margin-right":(0,_.nv)(function(){return R().contentPadding})})},_.G(_.p,{cond:function(){return _.n(B().header,h06)},
then:function(h){return _.G(_.rm,{data:h,disableHorizontalPadding:!0})}}),_.G("div",null,_.G(_.Ra,{each:function(){return Array(A())}},function(h,y){return _.G(sE6,{className:g.className,
items:r(y),responsiveGridShelfLayout:R,contentAspectRatio:H})})),_.G("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.G(_.Af,{data:function(){return B().showMoreButton}},{buttonViewModel:function(h){return _.G("div",{hidden:Z},_.G(_.MV,{data:h.data,
onClick:Q}))}}),_.G(_.Af,{data:function(){return B().showLessButton}},{buttonViewModel:function(h){return _.G("div",{hidden:X},_.G(_.MV,{data:h.data,
onClick:z}))}})))},"zc");
fRb.idomCompat=!0;var sE6=_.dG(function(g){var r=g.items;var E=g.responsiveGridShelfLayout;var B=g.contentAspectRatio;g=g.className;var w=_.VI("div");mwl(w,function(){a:{var M=w.value;for(var u=r(),l=[],Q=0;Q<u.length;Q++){var z=_.n(u[Q],f04);if(!z||z==null||!z.inlinePlayerData){M=null;break a}var k=M.children.item(Q);if(!k){M=null;break a}l.push({thumbnailElement:k,videoData:z})}M={gridVideoPreviewData:{gridItems:l}}}return M});
var O=(0,_.nv)(function(){return-E().itemMargin});
return _.G("div",{el:w,class:_.QY("ytGridShelfViewModelGridShelfRow",g),style:_.Rl({"margin-left":O,"margin-right":O})},_.G(_.Af,{data:r,replacementWrapper:function(M){return _.G($kD,{responsiveGridShelfLayout:E},M)}},{shortsLockupViewModel:function(M){return _.G($kD,{responsiveGridShelfLayout:E},_.G(l5U,{data:M.data,
aspectRatio:function(){return B()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"Ac"),$kD=_.dG(function(g){return _.G("div",{style:_.Rl({width:(0,_.nv)(function(){return g.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+g.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},g.children)},"Bc");
fRb.idomCompat=!0;_.BK(fRb,"grid-shelf-view-model",{props:{data:_.cP,layoutContainerWidth:_.cP,shouldUseOwnContainerSize:_.cP,marginSettings:_.cP,className:_.cP}});_.jEw=_.dG(function(g){var r=_.U(_.Dk(!1,void 0,"YYtxR")),E=r.next().value,B=r.next().value;r={};return _.G("yt-alert-banner-view-model",{class:_.QY("ytAlertBannerViewModelHost",g.className,function(){var w;a:switch((w=g.data())==null?void 0:w.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":w="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":w="ytAlertBannerViewModelWarning";break a;default:w="ytAlertBannerViewModelInformational"}return w},(r.ytAlertBannerViewModelDismissed=
E,r.ytAlertBannerViewModelFullbleed=g.fullbleed,r.ytAlertBannerViewModelNarrow=g.narrow,r.ytAlertBannerViewModelIsInRichGrid=g.isInRichGrid,r))},_.G(_.p,{cond:function(){var w;
return!((w=g.data())==null?0:w.hideIcon)},
then:function(){return _.G("div",{class:"ytAlertBannerViewModelIcon"},_.G(_.nh,{icon:function(){return"info_circle"}}))}}),_.G("div",{class:"ytAlertBannerViewModelOuterContainer"},_.G("div",{class:"ytAlertBannerViewModelContainer"},_.G("div",{class:"ytAlertBannerViewModelContent"},_.G("div",{class:"ytAlertBannerViewModelHeading"},_.G(_.hf,{text:function(){var w;
return(w=g.data())==null?void 0:w.heading}})),_.G("div",{class:"ytAlertBannerViewModelBody"},_.G(_.hf,{text:function(){var w;
return(w=g.data())==null?void 0:w.body}})))),_.G(_.Af,{data:function(){var w;
return(w=g.data())==null?void 0:w.actionButton}},{buttonViewModel:function(w){return _.G(_.MV,{data:w.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.G(_.Af,{data:function(){var w;
return(w=g.data())==null?void 0:w.dismissButton}},{buttonViewModel:function(w){return _.G(_.MV,{data:w.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var O;((O=g.data())==null?0:O.disableLocalDismissBehavior)||B(!0)}})}}))},"Cc");_.BK(_.jEw,"yt-alert-banner-view-model",{props:{data:_.cP,fullbleed:_.cP,narrow:_.cP,isInRichGrid:_.cP,className:_.cP}});var Bao=_.R$({chipViewModel:_.Rk,buttonViewModel:_.MV});_.rH(w7l);var AWZ;AWZ=_.dG(function(g){var r=g.data;var E=g.callback;var B=g.enableSingleChipSelection;var w=g.disableChipsScrollAnimation;var O=_.hn("div");g=_.U(_.Dk(!0,void 0,"ULL8g"));var M=g.next().value,u=g.next().value;g=_.U(_.Dk(!1,void 0,"cWhQn"));var l=g.next().value,Q=g.next().value,z=!1,k=0;_.jS(function(){u(A());Q(J())});
g=_.U(_.Y3(function(){var OD={};return r().autoselectedChipIndex!=null?(OD[r().autoselectedChipIndex]=!0,OD):{}}));
var H=g.next().value,R=g.next().value,A=function(){var OD=O.value;return OD==null||OD.scrollLeft-1<=0},J=function(){var OD=O.value;
return OD==null?!1:OD.scrollLeft+1>=(OD==null?NaN:OD.scrollWidth)-(OD==null?NaN:OD.clientWidth)},e=function(){return r().isHorizontallyScrollable},C=function(OD){O.value!=null&&(_.Ca("HTML_DIR")==="rtl"&&(OD=-OD),O.value.scrollBy({left:OD,
behavior:(w==null?0:w())?"instant":"smooth"}))},X=function(){C(-320)},Z=function(){C(320)},c=_.HK(function(OD){z=!0;
k=OD.clientX}),h=_.HK(function(OD){if(z){OD=OD.clientX;
var uB=OD-k;k=OD;var zS;(zS=O.value)==null||zS.scrollBy({left:-uB})}}),y=_.HK(function(){var OD=A(),uB=J();
OD!==M()&&u(OD);uB!==l()&&Q(uB)});
du("pointerup",function(){z&&(z=!1)});
return _.G("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.G(_.d$,{contentId:function(){return r().contentId},
useModernStyle:!0},function(){var OD={},uB={};return _.G("div",null,_.G(_.p,{cond:function(){return r().title},
then:function(){return _.G("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.G("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return r().title}),_.G(_.Af,{data:function(){return r().overflowButton}},{buttonViewModel:_.MV}))}}),_.G("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.G(_.p,{cond:function(){return r().previousButton},
then:function(){var zS={};return _.G("div",{class:_.QY("ytChipsShelfViewModelLeftArrowContainer",(zS.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return M()},zS))},_.G(_.Af,{data:function(){return r().previousButton}},{buttonViewModel:function(jV){return _.G(_.MV,{data:jV.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:X})}}))}}),_.G("div",{el:O,
"on:pointerdown":c,"on:pointermove":h,"on:scroll":y,class:_.QY("ytChipsShelfViewModelChipsScrollContainer",(OD.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=e,OD))},_.G("div",{class:_.QY("ytChipsShelfViewModelChipsContainer",(uB.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=e,uB.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,uB)),role:"tablist"},_.G(_.Af,{data:function(){return r().contents}},{chipViewModel:function(zS,jV){return _.G("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.G(_.Rk,{data:zS.data,
callback:function(PJ,At){var XY=jV();if(B==null?0:B()){var xc={};R((xc[XY]=At,xc))}else xc={},R(Object.assign({},H(),(xc[XY]=At,xc)));E==null||E(PJ,At,XY)},
disableDeselection:B,selected:function(){return!!H()[jV()]}}))}}))),_.G(_.p,{cond:function(){return r().nextButton},
then:function(){var zS={};return _.G("div",{class:_.QY("ytChipsShelfViewModelRightArrowContainer",(zS.ytChipsShelfViewModelRightArrowContainerIsHidden=l,zS))},_.G(_.Af,{data:function(){return r().nextButton}},{buttonViewModel:function(jV){return _.G(_.MV,{data:jV.data,
className:"ytChipsShelfViewModelRightArrow",onClick:Z})}}))}})))}))},"Dc");
_.bAm=_.Y("enable_chips_shelf_view_model_fully_reactive")?AWZ:_.k3(w7l,{callbacks:{callback:!0}});AWZ.idomCompat={callbacks:{callback:!0}};_.BK(_.bAm,"chips-shelf-view-model",{props:{data:_.cP,callback:_.EB,enableSingleChipSelection:_.cP,disableChipsScrollAnimation:_.cP}});var JWz=_.dG(function(g){g=_.y7(g,{disabled:!1});var r=g.active,E=g.disabled;g={};g=_.QY("ytSwitchShapeTrack",(g.ytSwitchShapeTrackActive=function(){return r()},g.ytSwitchShapeTrackDisabled=function(){return E()},g));
var B={};B=_.QY("ytSwitchShapeKnob",(B.ytSwitchShapeKnobActive=function(){return r()},B));
return _.G("switch-shape",{class:"ytSwitchShapeHost"},_.G("div",{class:g}),_.G("div",{class:B}))},"Ec");var Pfb=_.dG(function(g){var r=_.y7(g,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),E=r.data;g=r.className;var B=r.handleOnTapEventInParent,w=r.parentActive;r=_.U(_.Y3(function(){var k;return(k=w())!=null?k:E().switchedOnByDefault||!1}));
var O=r.next().value,M=r.next().value,u=function(){return E().isDisabled},l=_.VI("button");
r=_.HK(function(k){return k.key==="Enter"?(k.preventDefault(),l.value.click(),!1):!0});
var Q=_.HK(function(k){if(E().handleOnTapEventInParent||B())return!0;if(u())return!1;O1t(E(),O(),k);M(!O());return!1}),z={};
z=_.QY("ytSwitchButtonViewModelButton",(z.ytSwitchButtonViewModelTappable=function(){return!u()},z));
return _.G("switch-button-view-model",{class:_.QY("ytSwitchButtonViewModelHost",g)},_.G("button",{el:l,class:z,"on:click":Q,"on:keydown":r,"aria-label":function(){return O()?E().a11yLabelSwitchedOn:E().a11yLabelSwitchedOff},
"aria-checked":O,"aria-disabled":u,role:"switch"},_.G(JWz,{active:O,disabled:u})))},"Fc");var FW6=_.dG(function(g){var r=_.y7(g,{checked:!1});g=r.name;var E=r.onChange,B=r.onClick,w=r.checked,O=r.labelRenderable,M=r.hasLeadingLabel,u=r.labelClass,l=r.isCompact,Q=r.selectElementClass;r=r.disableHorizontalPadding;var z="checkbox"+_.jY(_.Yh),k=_.HK(function(A){B==null||B(A);return!1}),H=_.HK(function(A){E==null||E(A);
return!1}),R={};
return _.G("checkbox-shape",null,_.G("label",{class:_.QY("checkbox-shape-wiz",u,(R["checkbox-shape-wiz--compact"]=l,R["checkbox-shape-wiz--disable-horizontal-padding"]=r,R))},_.G("input",{class:"checkbox-shape-wiz__input",id:z,checked:w,name:g,type:"checkbox","prop:checked":w,"on:change":H,"on:click":k}),_.G(_.p,{cond:function(){return!(M==null?0:M())},
then:function(){return _.G(te6,{isLeading:!0,selectElementClass:Q})}}),_.G(_.p,{cond:function(){return!!O},
then:function(){return _.G("div",{class:"checkbox-shape-wiz__label"},O==null?void 0:O())}}),_.G(_.p,{cond:M,
then:function(){return _.G(te6,{isLeading:!1,selectElementClass:Q})}})))},"Gc");
FW6.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var te6=_.dG(function(g){var r=g.selectElementClass;g={};return _.G("div",{class:_.QY("checkbox-shape-wiz__checkbox",r,(g["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(r==null?0:r())},g)),
"aria-hidden":"true"},_.G(_.nh,{icon:_.Y("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.G(_.nh,{icon:_.Y("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Hc");_.sv=_.dG(function(g){var r=g.name;var E=g.onChange;var B=g.onClick;var w=g.checked;var O=g.labelRenderable;var M=g.useCheckIcon;var u=g.hasLeadingLabel;var l=g.labelClass;var Q=g.isCompact;var z=g.selectElementClass;var k=g.ariaLabel;g=g.className;var H="radio"+_.jY(_.Yh),R=_.VI("input"),A=_.HK(function(h){R.value.checked=!(w==null||!w());E==null||E(h);return!1}),J=_.HK(function(h){B==null||B(h);
return!1}),e=_.U(_.Dk(!1,void 0,"v5AMrb")),C=e.next().value,X=e.next().value;
e=_.HK(function(){var h;((h=_.rM().resolve(_.gM(_.wN)))==null?0:h.isKeyBoardInUse())&&X(!0)});
var Z=_.HK(function(){X(!1)}),c={};
return _.G("radio-shape",{class:_.QY("radio-shape-wiz",g)},_.G("input",{el:R,class:"radio-shape-wiz__input",id:H,"prop:checked":w,name:r,type:"radio","on:change":A,"on:click":J,"aria-label":k,"on:focusin":e,"on:focusout":Z}),_.G("label",{class:_.QY("radio-shape-wiz__label-container",l,(c["radio-shape-wiz--compact"]=Q,c["radio-shape-wiz__label-container--keyboard-focused"]=C,c)),for:H},_.G(_.p,{cond:function(){return!(u==null?0:u())},
then:function(){return _.G(evw,{checked:w,useCheckIcon:M,isLeading:!0,selectElementClass:z})}}),_.G(_.p,{cond:function(){return!!O},
then:function(){return _.G("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(k==null?0:k())?"true":"false"}},O==null?void 0:O())}}),_.G(_.p,{cond:u,
then:function(){return _.G(evw,{checked:w,useCheckIcon:M,isLeading:!1,selectElementClass:z})}})))},"Ic");
_.sv.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var evw=_.dG(function(g){var r=g.useCheckIcon;var E=g.selectElementClass;g=function(){return(r==null?0:r())?"CHECK":_.Y("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var B={};return _.G("div",{class:_.QY("radio-shape-wiz__radio",E,(B["radio-shape-wiz__radio--check-icon"]=r,B["radio-shape-wiz__radio--radio-default-style"]=function(){return!(E==null?0:E())},B)),
"aria-hidden":"true"},_.G(_.nh,{icon:g}),_.G(_.nh,{icon:g,active:function(){return!(r==null?0:r())}}))},"Jc");_.fv=_.dG(function(g){function r(){var XY;((XY=_.rM().resolve(_.gM(_.wN)))==null?0:XY.isKeyBoardInUse())&&At(!0)}
function E(){At(!1)}
var B=g.data;var w=g.isMenuItem;var O=g.isCompact;var M=g.onTap;var u=g.trailingAccessory;var l=g.hideSelectionTextChevron;var Q=g.disabled;var z=g.inPopup;var k=g.disableHorizontalPadding;var H=g.isOverlay;var R=g.isToggled;var A=_.Y("apply_button_role_to_list_item"),J=_.Ch(function(XY){a:{var xc=B();if((xc==null?0:xc.entitySelectorType)&&(xc==null?0:xc.entityKey))switch(xc.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":XY=_.MQD(XY,xc.entityKey);
XY=XY==null?void 0:XY.value;xc=!1;XY==="CAPTIONS_UNAVAILABLE"&&(xc=!0,XY="");XY=Object.assign({},!!XY&&{selectionText:{content:XY}},!!XY&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:xc});break a;default:XY={}}else XY={}}return XY}),e=function(){return _.Y("enable_web_shorts_captions_language_command")?Object.assign({},B(),J()):B()},C=function(){return!(e().isSelected===void 0||!e().selectionStyle||e().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
X=function(){return(_.Km(e().rendererContext)||M)&&!C()},Z=function(){return _.Km(e().rendererContext)||C()};
g={};H=_.QY("yt-list-item-view-model-wiz",(g["yt-list-item-view-model-wiz--is-overlay"]=H,g["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!A&&PJ()},g));
g={};var c=_.QY("yt-list-item-view-model-wiz__label",(g["yt-list-item-view-model-wiz__container"]=function(){return!C()},g["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!e().isDisabled||!(Q==null||!Q())},g["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!e().subtitle},g["yt-list-item-view-model-wiz__container--compact"]=O,g["yt-list-item-view-model-wiz__container--tappable"]=X,g["yt-list-item-view-model-wiz__container--in-popup"]=z,g["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return A&&PJ()},g["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(k==null?void 0:k())&&!C()},g));
g={};var h=_.QY("yt-list-item-view-model-wiz__container",(g["yt-list-item-view-model-wiz__container--tappable"]=Z,g["yt-list-item-view-model-wiz__container--compact"]=O,g["yt-list-item-view-model-wiz__container--in-popup"]=z,g["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(k==null?void 0:k())&&C()},g)),y=function(){return e().leadingImage||e().leadingAccessory},OD=_.QY("yt-list-item-view-model-wiz__image-container",function(){return y()?"yt-list-item-view-model-wiz__trailing":
"yt-list-item-view-model-wiz__leading"}),uB=_.dG(function(){return _.G(_.p,{cond:function(){return A},
then:function(){return _.G("div",{class:c,el:_.T$(rzD(function(){return A&&X()},{focusin:r,
focusout:E})),role:function(){return Z()||X()?"button":void 0},
tabindex:function(){return M||X()?0:void 0},
"on:keydown":jV,"on:click":zS},_.G(WWA,{data:e,hideSelectionTextChevron:l,trailingAccessory:u,isToggled:R}))},
else:function(){return _.G("div",{class:c},_.G(WWA,{data:e,hideSelectionTextChevron:l,trailingAccessory:u,isToggled:R}))}})},"Kc");
uB.idomCompat=!0;var zS=_.HK(function(XY){return void(M==null?void 0:M(XY))}),jV=_.NJt();
g=_.U(_.Dk(!1,void 0,"ewwfmd"));z=g.next().value;g=g.next().value;var PJ=z,At=g;g=_.HK(function(){return!0});
z=A?g:jV;g=A?g:zS;return _.G("yt-list-item-view-model",{el:_.T$(_.xo(function(){return e().rendererContext}),rzD(function(){return!A&&(X==null?void 0:X())},{focusin:r,
focusout:E})),class:H,role:function(){return(w==null?0:w())?"menuitem":"listitem"},
tabindex:function(){var XY=X();XY=A?void 0:M||XY?0:void 0;return XY},
"on:keydown":z,"on:click":g},_.G(_.p,{cond:C,then:function(){return _.G(_.fa,null,_.G(_.na,{when:function(){return e().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.G(FW6,{labelRenderable:function(){return _.G(uB,null)},
isCompact:O,checked:function(){return e().isSelected},
hasLeadingLabel:function(){return!!y()},
labelClass:h,selectElementClass:OD,disableHorizontalPadding:k})}),_.G(_.na,{when:function(){return e().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.G(_.sv,{labelRenderable:function(){return _.G(uB,null)},
isCompact:O,checked:function(){return e().isSelected},
hasLeadingLabel:function(){return!!y()},
labelClass:h,selectElementClass:OD})}),_.G(_.na,{when:function(){return e().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.G(_.sv,{labelRenderable:function(){return _.G(uB,null)},
isCompact:O,checked:function(){return e().isSelected},
hasLeadingLabel:function(){return!!y()},
labelClass:h,selectElementClass:OD,useCheckIcon:!0})}),_.G(_.s6,null,function(){return _.G(uB,null)}))},
else:function(){return _.G(uB,null)}}))},"Lc");
_.fv.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var WWA=_.dG(function(g){var r=g.data;var E=g.hideSelectionTextChevron;var B=g.trailingAccessory;var w=g.isToggled;return _.G(_.wW,null,_.G(CfI,{data:r,isLeading:!0,hideSelectionTextChevron:function(){return!(E==null||!E())},
isToggled:w}),_.G(KWU,{data:r}),_.G(_.p,{cond:function(){return!!B},
then:function(){return _.G("div",{class:"yt-list-item-view-model-wiz__trailing"},B==null?void 0:B())},
else:function(){return _.G(CfI,{data:r,isLeading:!1,hideSelectionTextChevron:function(){return!(E==null||!E())},
isToggled:w})}}))},"Mc"),CfI=_.dG(function(g){var r=g.data;
var E=g.isLeading;var B=g.hideSelectionTextChevron;var w=g.isToggled;var O=_.QY("yt-list-item-view-model-wiz__button-container");g={};var M=_.QY("yt-list-item-view-model-wiz__image-container",(g["yt-list-item-view-model-wiz__leading"]=E,g["yt-list-item-view-model-wiz__trailing"]=function(){return!E()},g)),u=function(){return E()?r().leadingImage:r().trailingImage},l=_.QY("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
g={};var Q=_.QY("yt-list-item-view-model-wiz__accessory",(g["yt-list-item-view-model-wiz__leading"]=E,g["yt-list-item-view-model-wiz__trailing"]=function(){return!E()},g)),z=function(){a:switch(r().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var k="expand_more";
break a;default:k="chevron_right"}return k};
return _.G(_.p,{cond:function(){var k=r(),H=E();return!!(H&&(k.leadingImage||k.leadingAccessory)||!H&&(k.trailingImage||k.trailingButton||k.trailingButtons||k.selectionText))},
then:function(){return _.G(_.wW,null,_.G(_.p,{cond:u,then:function(k){return _.G("div",{class:M,"aria-hidden":"true"},_.G(_.vw,{data:k,alt:"",preserveWidth:!0,preserveHeight:!0,className:l,isToggled:w}))}}),_.G(_.p,{cond:function(){return E()&&r().leadingAccessory},
then:function(){return _.G("div",{class:M},_.G(_.Af,{data:function(){return r().leadingAccessory}},{avatarViewModel:function(k){return _.G(_.sV,{data:k.data,
avatarButtonCustomClassName:l})},
collectionThumbnailViewModel:Es6}))}}),_.G(_.p,{cond:function(){return!E()&&r().trailingButton},
then:function(){return _.G("div",{class:O},_.G(_.Af,{data:function(){return r().trailingButton}},{buttonViewModel:function(k){return _.G(_.MV,{data:k.data,
className:Q})}}))}}),_.G(_.p,{cond:function(){var k;
return!E()&&((k=r().trailingButtons)==null?void 0:k.buttons)},
then:function(){return _.G("div",{class:O},_.G(_.Af,{data:function(){var k;return(k=r().trailingButtons)==null?void 0:k.buttons}},{buttonViewModel:function(k){return _.G(_.MV,{data:k.data,
className:Q})},
accountLinkButtonViewModel:function(k){return _.G(yow,{data:k.data,className:Q})},
switchButtonViewModel:function(k){return _.G(Pfb,{data:k.data,className:Q})},
subscribeButtonViewModel:function(k){return _.G(_.Rh,{data:k.data,isOverlay:!1,animateWidth:!1,className:Q})},
toggleButtonViewModel:function(k){return _.G(_.RY,{data:k.data,className:Q})}}))}}),_.G(_.p,{cond:function(){return!E()&&!!r().selectionText},
then:function(){return _.G(_.wW,null,_.G(_.hf,{text:function(){return r().selectionText},
className:_.QY("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.G(_.p,{cond:function(){return!B()},
then:function(){return _.G(_.nh,{icon:z,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Nc"),KWU=_.dG(function(g){var r=g.data;
return _.G(_.p,{cond:function(){return r().title||r().subtitle},
then:function(){return _.G("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.G("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.G(_.p,{cond:function(){return r().title},
then:function(E){return _.G(_.hf,{text:E,className:"yt-list-item-view-model-wiz__title"})}})),_.G(_.p,{cond:function(){return r().subtitle},
then:function(E){return _.G(_.hf,{text:E,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Oc");_.xkw=_.dG(function(g){var r=g.data;var E=g.onTap;var B=g.onSwitch;var w=g.overrideDisabled;g=g.disableHorizontalPadding;var O=_.U(_.Y3(function(){var k;return((k=MDl(z()))==null?void 0:k.switchedOnByDefault)||!1})),M=O.next().value,u=O.next().value;
O=_.U(_.Dk(!1,void 0,"ZHBkbb"));var l=O.next().value,Q=O.next().value,z=function(){var k;if(!(k=r().switchButton)){var H=r();k=w==null?void 0:w();H={switchOnCommand:H.switchOnCommand,switchOffCommand:H.switchOffCommand,switchedOnByDefault:H.switchedOnByDefault,isDisabled:H.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:H.a11yLabelSwitchedOn,a11yLabelSwitchedOff:H.a11yLabelSwitchedOff};k!==void 0&&(H.isDisabled=k);k={switchButtonViewModel:H}}return k};
return _.G("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.G(_.fv,{data:function(){return{title:r().title,subtitle:r().attributedSubtitle,leadingImage:r().leadingImage,leadingAccessory:r().leadingAccessory,isDisabled:r().isDisabled}},
onTap:function(k){var H=MDl(z());!H||H.isDisabled||r().ignoreTapUntilCommandCompletes&&l()||(E==null||E(k),O1t(H,M(),k,r().ignoreTapUntilCommandCompletes,Q),u(!M()),B==null||B(M()))},
trailingAccessory:function(){return _.G(_.Af,{data:z},{switchButtonViewModel:function(k){return _.G(Pfb,{data:k.data,parentActive:M,handleOnTapEventInParent:!!E})}})},
disableHorizontalPadding:g}))},"Pc");var aRn=_.dG(function(g){var r=_.U(_.Y3(function(){var w,O;return!!((w=g.data())==null?0:(O=w.initialState)==null?0:O.isToggled)})),E=r.next().value,B=r.next().value;
r=_.HK(function(){B(!E())});
return _.G("toggleable-list-item-view-model",{el:_.T$(_.xo(function(){return g.data().rendererContext})),
class:_.QY("toggleableListItemViewModelHost",g.className),"on:click":r,role:"button","aria-pressed":function(){return E()},
"aria-label":function(){var w=E()?g.data().toggledListItem:g.data().defaultListItem,O;w=(O=_.n(w,_.HX))==null?void 0:O.rendererContext;var M;return(M=_.n(w,_.Gi))==null?void 0:M.label}},_.G(_.p,{cond:E,
then:function(){return _.G(_.Af,{data:function(){return g.data().toggledListItem}},{listItemViewModel:function(w){return _.G(_.fv,{data:w.data,
isToggled:E})}})},
else:function(){return _.G(_.Af,{data:function(){return g.data().defaultListItem}},{listItemViewModel:_.fv})}}))},"Qc");var XtU=_.zn("DOWNLOAD",{},"Download"),NvI=_.zn("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),IRI=_.zn("RETRY",{},"Retry"),mkZ=_.zn("PAUSE_DOWNLOADING",{},"Pause downloading"),cWT=_.zn("RESUME_DOWNLOAD",{},"Resume download"),q4l={text:XtU,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},Jl={text:NvI,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},DAQ={text:IRI,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
uvP={text:mkZ,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},l3c={text:cWT,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var iAw=_.dG(function(g){var r=function(){var u=g.data();u=_.Cm(u.rendererContext);var l;return(l=_.n(u,_.DB))==null?void 0:l.videoId},E=_.Ch(function(u){var l=r(),Q=Q7c(g.data());
return l?_.Ws(u,l):Q?_.Cf(u,Q):"TRANSFER_STATE_UNKNOWN"}),B=_.QU(_.W5Q,r),w=_.Ch(function(u){return _.A9A(u,r(),Q7c(g.data()))}),O=function(){return GNY(E(),B(),_.Cm(g.data().rendererContext),!!Q7c(g.data()))},M=function(){return w()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.G("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:M},_.G(_.p,{cond:function(){return!M()},
then:function(){return _.G(_.p,{cond:O,then:function(u){return _.G(_.Ra,{each:u},function(l){return _.G(_.fv,{data:l,isCompact:g.isCompact,isMenuItem:g.isMenuItem,inPopup:g.inPopup,disableHorizontalPadding:g.disableHorizontalPadding})})}})}}))},"Rc");
iAw.idomCompat=!0;_.LWb=_.dG(function(g){var r=g.data;var E=g.isCompact;var B=g.hideSelectionTextChevron;var w=g.inPopup;var O=g.isOverlay;var M=g.disableHorizontalPadding;var u=function(){return zVo(r())&&(w==null?void 0:w())};
g={};return _.G("yt-list-view-model",{class:_.QY("yt-list-view-model-wiz",(g["yt-list-view-model-wiz--kaios-spat-nav"]=Lm&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",g)),role:function(){return u()?"menu":"list"},
style:_.Rl({"max-height":function(){var l,Q=(l=r())==null?void 0:l.visibleElementCount;if(Q)return H1X(r())?(Q+.5)*48+"px":(Q+.5)*40+"px"}})},_.G(_.Af,{data:function(){return r().listItems}},{listItemViewModel:function(l){return _.G(_.fv,{data:l.data,
isMenuItem:u,isCompact:E,hideSelectionTextChevron:B,inPopup:w,isOverlay:O,disableHorizontalPadding:M})},
toggleableListItemViewModel:function(l){return _.G(aRn,{data:l.data})},
downloadListItemViewModel:function(l){return _.G(iAw,{data:l.data,isMenuItem:u,isCompact:E,inPopup:w,disableHorizontalPadding:M})},
switchListItemViewModel:function(l){return _.G(_.xkw,{data:l.data,disableHorizontalPadding:M})}}))},"Sc");
_.LWb.idomCompat=!0;var Vew=_.dG(function(g){var r=g.data;var E=g.isOverlay;g={};return _.G("yt-course-perks-view-model",{class:_.QY("ytwCoursePerksViewModelHost",(g.ytwCoursePerksViewModelHostOverlay=E,g))},_.G("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.G(_.hf,{text:function(){return r().title}})),_.G("div",null,_.G(_.p,{cond:function(){return r().perks},
then:function(B){return _.G(_.LWb,{data:function(){return{listItems:B()}},
isCompact:!0,isOverlay:E})}})))},"Tc");_.BK(Vew,"yt-course-perks-view-model",{props:{data:_.EB,isOverlay:_.EB}});_.BK(_.dG(function(g){var r=g.data;return _.G("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.G("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.G(_.hf,{text:function(){return r().title}})),_.G("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.G(_.hf,{text:function(){return r().progressSummary}})),_.G("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.G("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.Rl({width:function(){return r().progressPercentage*100+"%"}})})))},"Uc"),"yt-course-progress-view-model",{props:{data:_.cP}});var hvA=_.dG(function(g){var r={};return _.G("yt-progress-view-model",{class:_.QY("ytwProgressViewModelHost",(r.ytwProgressViewModelHostOverlay=_.Zo(g.isOverlay,!1),r))},_.G(_.p,{cond:function(){return g.data().progressSummary},
then:function(E){return _.G("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.G(_.hf,{text:E}))}}),_.G("div",{class:"ytwProgressViewModelHostProgressContainer"},_.G(_.p,{cond:function(){return g.data().leadingLabel},
then:function(E){return _.G("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.G(_.hf,{text:E}))}}),_.G("div",{class:"ytwProgressViewModelHostProgressBar"},_.G("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(g.data().progressPercentage||0)*100+"%"}}))))},"Vc");var $h=_.dG(function(g){var r=g.starNumber;var E=g.data;var B=function(){var w;return((w=E())==null?void 0:w.rating)||0};
return _.G(_.p,{cond:function(){return r()},
then:function(w){return _.G(_.fa,null,_.G(_.na,{when:function(){return B()>=w()-.25}},function(){return _.G("div",{class:"ytStarRatingViewModelHostStar"},_.G(_.nh,{icon:"STAR_FILLED"}))}),_.G(_.na,{when:function(){return B()>=w()-.75}},function(){return _.G("div",{class:"ytStarRatingViewModelHostStar"},_.G(_.nh,{icon:"STAR_HALF"}))}),_.G(_.s6,null,function(){return _.G("div",{class:"ytStarRatingViewModelHostStar"},_.G(_.nh,{icon:"STAR_BORDER"}))}))}})},"Wc"),ZAZ=_.dG(function(g){g=g.data;
return _.G("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.G($h,{starNumber:1,data:g}),_.G($h,{starNumber:2,data:g}),_.G($h,{starNumber:3,data:g}),_.G($h,{starNumber:4,data:g}),_.G($h,{starNumber:5,data:g}))},"Xc");_.BK(_.dG(function(g){var r=_.y7(g,{}).data;return _.G("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.G("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.G(_.hf,{text:function(){var E;return(E=r())==null?void 0:E.title}})),_.G("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.G(_.p,{cond:function(){return r().starProgressViewModels},
then:function(E){return _.G("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.G(_.Af,{data:E},{progressViewModel:hvA}))}}),_.G("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.G("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.G(_.hf,{text:function(){var E;
return(E=r())==null?void 0:E.averageRatingLabel}})),_.G(_.p,{cond:function(){return r().zeroStateText},
then:function(E){return _.G("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.G(_.hf,{text:E}))}}),_.G(_.p,{cond:function(){return r().starRatingViewModel},
then:function(E){return _.G("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.G(_.Af,{data:E},{starRatingViewModel:ZAZ}))}}),_.G("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.G(_.hf,{text:function(){var E;
return(E=r())==null?void 0:E.totalRatingsCountLabel}})))))},"Yc"),"yt-course-ratings-view-model",{props:{data:_.EB}});var yW4;yW4={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"}};_.vNw=_.dG(function(g){var r=_.VI("yt-learning-journey-loader-view-model"),E=_.uL();_.jS(function(){requestAnimationFrame(function(){var w;(w=E.lottieEl)==null||w.addEventListener("DOMLoaded",function(){var O;(O=g.onLottieLoaded)==null||O.call(g)})});
var B=g.data().browseEndpoint;B&&_.I3(B)});
return _.G("yt-learning-journey-loader-view-model",{class:_.QY("learningJourneyLoaderViewModelHost",g.className),"data-target-id":function(){var B;return((B=g.data)==null?void 0:B.call(g).targetId)||""},
el:r},_.G(_.rN,{className:_.QY("learningJourneyLoaderViewModelLoader",g.className),animationName:function(){return yW4.animationConfig.name},
data:yW4,animationRef:E}))},"Zc");_.BK(_.vNw,"yt-learning-journey-loader-view-model",{props:{data:_.cP,className:_.EB,onLottieLoaded:_.EB}});var Y4X=new Set,p7c=null;_.dkw=_.dG(function(g){var r=null,E=null,B=null,w=function(){return g.data()},O=function(){var C=w();
var X=_.rM().resolve(_.gM(_.Vy));C=X!=null&&X()?C.darkThemeColorPalette:C.lightThemeColorPalette;return{primaryTextColor:tl(C,0),secondaryTextColor:tl(C,1),optionColor:tl(C,2),backgroundColor:tl(C,3),videoBackgroundColor:tl(C,4)}},M=function(){return!!O().optionColor},u=_.U(_.Dk(-1,void 0,"KCCUDb")),l=u.next().value,Q=u.next().value,z=function(C){return l()===C},k=function(C){return w().correctAnswerIndex===C},H=function(){return l()!==-1},R=function(){return l()===w().correctAnswerIndex},A=_.HK(function(){Q(-1);
return!1}),J=function(){var C=H(),X=R();
return C?X?264685:264684:264683},e=function(C){return R()&&k(C)};
return _.G("learning-journey-quiz-view-model",{class:_.QY("learningJourneyQuizViewModelHost",g.className),style:_.Rl({background:function(){return O().backgroundColor}})},_.G(_.p,{cond:function(){return!!w().video},
then:function(){return _.G("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.Rl({background:function(){return O().videoBackgroundColor}})},_.G(_.Af,{data:function(){return w().video}},{lockupViewModel:function(C){return _.G(_.rR,{data:C.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.G("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.G("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.G("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.G(_.p,{cond:function(){return!!w().aiGeneratedQuizLabel},
then:function(){return _.G("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.G(_.hf,{text:function(){return w().aiGeneratedQuizLabel}}))}}),_.G("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.Rl({"align-items":function(){return w().overflowMenu?"start":"center"}})},_.G("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.Rl({"min-height":function(){return w().overflowMenu?"48px":"26px"}})},_.G("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.T$(function(C){_.Pm(J(),C,r,function(X){r=X})}),
style:_.Rl({color:function(){return O().primaryTextColor}}),
"client-ve-type":J},_.G(_.hf,{text:function(){var C=w(),X=H(),Z=R();return X?Z?C.successTitle:C.failureTitle:C.questionHeaderText}}))),_.G("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.G(_.p,{cond:H,
then:function(){return _.G("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.T$(function(C){_.Pm(264687,C,E,function(X){E=X})}),
"on:click":A,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.G("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.Rl({fill:function(){return O().primaryTextColor}})},_.G("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"})))}}),
_.G(_.Af,{data:function(){return w().overflowMenu}},{buttonViewModel:function(C){return _.G(_.MV,{data:C.data})}}))),_.G("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.T$(function(C){_.Pm(264688,C,B,function(X){B=X})}),
style:_.Rl({color:function(){return O().secondaryTextColor}}),
"client-ve-type":264688},_.G(_.hf,{text:function(){var C=w();return H()?C.explanationText:C.questionSubheaderText}}))),_.G("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.G(_.Ra,{each:function(){return w().optionsData||[]}},function(C,X){var Z={};
return _.G("div",{class:_.QY("learningJourneyQuizViewModelHostQuizOptions",(Z.learningJourneyQuizViewModelHostQuizHover=function(){return!H()},Z.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return e(X())},Z.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!R()&&z(X())},Z.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return H()&&!z(X())},Z.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=M,Z)),
"on:click":_.HK(function(){if(H())return!1;Q(X());return!1}),
style:_.Rl({background:function(){var c=X();return H()&&z(c)?"":M()?O().optionColor:"transparent"}}),
role:"button","aria-disabled":H,"tab-index":"0","client-ve-type":264686},_.G(_.p,{cond:H,then:function(){var c={};return _.G("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var h=X();return k(h)?"0 0 24 24":"0 -960 960 960"},
class:_.QY("learningJourneyQuizViewModelHostQuizOptionIcon",(c.learningJourneyQuizViewModelHostQuizOptionIconPulse=function(){return e(X())},c)),
style:_.Rl({fill:function(){return O().primaryTextColor}})},_.G("path",{d:function(){var h=X();
return k(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"}}))}}),_.G(_.hf,{text:C.optionText}))})))))},"$c");
_.dkw.idomCompat=!0;_.BK(_.dkw,"learning-journey-quiz-view-model",{props:{data:_.cP,className:_.cP}});var Tvn=_.dG(function(g){var r=_.y7(g,{palette:void 0,isLastItem:!1}),E=r.palette,B=r.isLastItem,w=function(){return g.data().isHighlighted},O=function(){var l;
return nXX((l=E())==null?void 0:l.iconDisabledColor)},M=function(){var l;
return nXX((l=E())==null?void 0:l.primaryTitleColor)},u=function(){var l;
return nXX((l=E())==null?void 0:l.secondaryTitleColor)};
r={};return _.G("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.T$(_.xo(function(){return g.data().rendererContext}))},_.G(_.Af,{data:function(){return g.data().thumbnail}},{thumbnailViewModel:_.iI}),_.G("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.G("div",{class:_.QY("ytMacroMarkerListItemViewModelTimeDescription",(r.ytMacroMarkerListItemViewModelHighlighted=w,r)),
style:_.Rl({"background-color":function(){return w()?M():O()},
color:function(){return w()?"":u()}})},_.G(_.hf,{text:function(){return g.data().timestamp}})),_.G("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.Rl({"background-color":function(){return B()?"transparent":O()}})}),_.G("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(w()?M():u())}},_.G(_.hf,{text:function(){return g.data().title}}))))},"ad");_.jM=_.dG(function(g){function r(Mo){X("transform:translateX("+(_.Ca("HTML_DIR")==="rtl"?"":"-")+Mo+"px)")}
function E(Mo){return Math.min(Math.max(Mo,0),C()-OD())}
function B(){var Mo=h()+PJ();return w()?(Math.round(OD()/Mo)||1)*Mo:0}
var w=function(){return g.data().items||[]},O=function(){return g.data().previousButton},M=function(){return g.data().nextButton},u=function(){var Mo,un;
return(un=(Mo=g.disableArrows)==null?void 0:Mo.call(g))!=null?un:!1},l=function(){var Mo;
return!((Mo=g.forceNarrowLayout)==null||!Mo.call(g))},Q=_.kB(function(){var Mo;
return!((Mo=g.centerAlignItems)==null||!Mo.call(g))&&C()<=OD()},void 0,"iGOqxd"),z=_.VI("horizontal-shelf-view-model"),k=_.VI("div"),H=_.U(_.Dk(0,void 0,"tieKmf")),R=H.next().value,A=H.next().value;
H=_.U(_.Dk(0,void 0,"W2lvv"));var J=H.next().value,e=H.next().value,C=J;J=_.U(_.Dk("",void 0,"PEePkc"));H=J.next().value;var X=J.next().value;J=_.U(_.Dk(0,void 0,"c7a4W"));var Z=J.next().value,c=J.next().value,h=Z;J=_.U(_.Dk(0,void 0,"KGhRJf"));Z=J.next().value;var y=J.next().value,OD=Z;J=_.U(_.Dk(!1,void 0,"fgWgyc"));var uB=J.next().value,zS=J.next().value;J=_.U(_.Dk(0,void 0,"pe79rc"));Z=J.next().value;var jV=J.next().value,PJ=Z;J=_.U(_.Dk(0,void 0,"CTqisc"));var At=J.next().value,XY=J.next().value;
J=_.U(_.Dk("50%",void 0,"XxAwcc"));var xc=J.next().value,rg=J.next().value,$t=function(){var Mo,un=(Mo=g.data())==null?void 0:Mo.responsiveContainerConfiguration,sw,J8;return un?IFD(un==null?void 0:un.responsiveSize):(J8=(sw=g.sizing)==null?void 0:sw.call(g))!=null?J8:"STANDARD"};
J=_.kB(function(){return!u()&&R()>0},void 0,"OBXFae");
Z=_.kB(function(){return!u()&&R()<C()-OD()},void 0,"TmwsWc");
var tD=function(){A(E(R()-B()));r(R())},GD=function(){A(E(R()+B()));
r(R())},xb=function(){z.value!==null&&AD()},zL;
_.Jk(function(){AD();window.ResizeObserver?(zL=new ResizeObserver(_.QW(xb,0)),zL.observe(z.value)):window.addEventListener("resize",xb)});
_.J5(function(){if(window.ResizeObserver){var Mo;(Mo=zL)==null||Mo.disconnect()}else window.removeEventListener("resize",xb)});
var AD=function(){var Mo=z.value.clientWidth,un=g.includeMargin!==void 0?g.includeMargin():!1,sw;var J8=g.hasPeek!==void 0?g.hasPeek():!((sw=g.data())==null||!sw.hasPeek);Mo=_.cX({containerWidth:Mo,hasPeek:J8,sizing:$t(),marginSettings:un?l()?4:1:0});jV(Mo.gutter);XY(Mo.margin);c(Mo.itemWidth);zS(Mo.maxContainerWidth<528||l());y(Mo.maxContainerWidth);w()&&e((Mo.itemWidth+Mo.gutter)*w().length-Mo.gutter);if(w()){var Rm;if(((Rm=g.thumbnailAspectRatio)==null?void 0:Rm.call(g))!==void 0){var Lw;rg(h()/
X_A((Lw=g.thumbnailAspectRatio)==null?void 0:Lw.call(g))/2+"px")}else rg("50%")}},lA={},pt={};
return _.G("horizontal-shelf-view-model",{class:_.QY("ytwHorizontalShelfViewModelHost",g.className),el:z},_.G(_.p,{cond:function(){var Mo;return g.data().header&&!((Mo=g.horizontalShelfExperiments)==null?0:Mo.call(g).hideHeader)},
then:function(){return _.G("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.Rl({width:function(){return OD()+"px"},
padding:function(){return"0 "+At()+"px"}})},_.G(_.Af,{data:function(){return g.data().header}},{sectionHeaderViewModel:function(Mo){return _.G(_.rm,{data:Mo.data,
disableHorizontalPadding:!0,forceSmallLayout:uB,useResponsiveLayout:!0})}}))}}),_.G("div",{class:_.QY("ytwHorizontalShelfViewModelOuterContainer",(lA.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return Q()},lA)),
style:_.Rl({"margin-top":function(){var Mo,un=g.data().header&&!((Mo=g.horizontalShelfExperiments)==null?0:Mo.call(g).hideHeader),sw;return(((sw=g.ensureMarginTop)==null?0:sw.call(g))&&!un?12:0)+"px"}})},_.G("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.Rl({width:function(){return OD()+"px"},
padding:function(){return"0 "+At()+"px"},
overflow:function(){return u()?"auto":"hidden"}})},_.G("div",{class:_.QY("ytwHorizontalShelfViewModelItems",(pt.ytwHorizontalShelfViewModelCenterAlignItems=function(){return Q()},pt)),
el:k,style:H},_.G(_.Af,{data:w},{macroMarkerListItemViewModel:function(Mo,un){return _.G("div",{style:_.Rl({width:function(){return h()+"px"},
"margin-right":function(){return(un()===w().length-1?0:PJ())+"px"}})},_.G(Tvn,{data:Mo.data,
palette:_.Zo(g.palette),isLastItem:function(){return un()===w().length-1}}))},
lockupViewModel:function(Mo,un){var sw=Mo.data;return _.G("div",{style:_.Rl({width:function(){return h()+"px"},
"margin-right":function(){return(un()===w().length-1?0:PJ())+"px"}})},_.G(_.rR,{data:sw,
containerType:4,sizing:$t,protectBackground:g.protectBackground,thumbnailFixedWidth:function(){return s7l(sw())+"px"},
thumbnailTargetWidth:function(){return s7l(sw())}}))}}))),_.G(_.p,{cond:J,
then:function(){return _.G("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.Rl({top:function(){return xc()}})},_.G(_.Af,{data:O},{buttonViewModel:function(Mo){return _.G(_.MV,{data:Mo.data,
onClick:tD})}}))}}),_.G(_.p,{cond:Z,
then:function(){return _.G("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.Rl({top:function(){return xc()}})},_.G(_.Af,{data:M},{buttonViewModel:function(Mo){return _.G(_.MV,{data:Mo.data,
onClick:GD})}}))}})))},"bd");
_.jM.idomCompat=!0;var gq6=_.dG(function(g){var r=function(){return g.data().targetId||""},E=function(){var J;
return((J=g.data())==null?void 0:J.expansionEntityKey)||""},B=_.QU(_.MQD,E),w=!0,O=function(){var J;
return((J=B())==null?void 0:J.value)===r()},M=function(J){_.hC(_.za("stringEntity",E(),{key:E(),
value:J?r():""}))};
_.jS(function(){w=!1;g.data().isExpanded&&M(!0)});
var u=function(){if(O()){var J=!0;g.onCollapse!==void 0&&(J=g.onCollapse());J&&M(!1)}else M(!0)},l=_.HK(u),Q=function(){var J;
return(((J=g.accordionStyle)==null?void 0:J.call(g))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},z=_.VI("div"),k=function(){var J,e;
return(e=(J=_.n(g.data().rendererContext,_.Gi))==null?void 0:J.label)!=null?e:""},H=function(){var J,e;
return{disabled:(J=g.hideIfNotExpanded)==null?void 0:J.call(g),ariaHidden:(e=g.hideIfNotExpanded)==null?void 0:e.call(g)}},R={},A={};
return _.G("yt-accordion-item-view-model",{class:_.QY("ytAccordionItemViewModelHost",g.className,(R.ytAccordionItemViewModelExpanded=function(){return O()},R.ytAccordionItemViewModelHidden=function(){var J;
return(J=g.hideIfNotExpanded)==null?void 0:J.call(g)},R.ytAccordionItemViewModelMini=Q,R)),
"data-target-id":r},_.G("div",{class:"ytAccordionItemViewModelContainer"},_.G("div",{class:"ytAccordionItemViewModelLeftSection","on:click":l,title:k,"aria-hidden":function(){var J;return(J=g.hideIfNotExpanded)==null?void 0:J.call(g)}},_.G(_.hf,{text:function(){return g.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:k})),_.G("div",{class:"ytAccordionItemViewModelRightSection"},_.G(_.Af,{data:function(){return O()?g.data().expandButton:g.data().collapseButton}},{buttonViewModel:function(J){return _.G(_.MV,{data:J.data,
className:"ytAccordionItemViewModelToggleButton",onClick:u,buttonOverrides:H})}}))),_.G("div",{class:"ytAccordionItemViewModelContainer"},_.G("div",{class:_.QY("ytAccordionItemViewModelContent",(A.ytAccordionItemViewModelExpandedSubtitle=function(){return O()},A)),
el:z,style:_.Rl({"max-height":function(){return w?"auto":O()?z.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!O()}},_.G(_.p,{cond:function(){return!Q()},
then:function(){return _.G(_.hf,{text:function(){return g.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.G(_.Af,{data:function(){return g.data().content}},{horizontalShelfViewModel:function(J){return _.G(_.jM,{data:J.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"cd");_.rYA=_.dG(function(g){var r=_.U((0,_.bQz)(g.data)).next().value,E=function(){return g.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},B=function(){return E()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},w=_.U(_.Dk(!0,void 0,"FVec2e")),O=w.next().value,M=w.next().value,u=function(){return B()&&O()},l=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){M(!O())}}},Q=_.HK(function(){r().onTitleTap&&_.I3(r().onTitleTap||{})});
w={};return _.G("yt-accordion-view-model",{class:_.QY("ytAccordionViewModelHost",(w.ytAccordionViewModelMinimized=function(){return u()},w)),
"data-target-id":function(){return g.data().targetId||""}},_.G(_.p,{cond:function(){return B()||!!r().title},
then:function(){return _.G("div",{class:"ytAccordionViewModelHeader"},_.G("div",{class:"ytAccordionViewModelTitleSection"},_.G("div",{class:"ytAccordionViewModelTitleWrapper"},_.G(_.p,{cond:function(){return!!g.data().headerIcon},
then:function(){return _.G(_.nh,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var z;return(z=g.data().headerIcon)==null?void 0:z.iconType}})}}),_.G("div",{class:"ytAccordionViewModelTitle",
"on:click":Q},_.G(_.hf,{className:"ytAccordionViewModelTitleText",text:function(){return r().title}})))),_.G("div",{class:"ytAccordionViewModelButtonSection"},_.G(_.p,{cond:B,
then:function(){return _.G(ZB,{data:l,iconName:function(){return u()?"chevron_down":"chevron_collapse"}})}})))}}),_.G("div",{class:"ytAccordionViewModelContent"},_.G(_.Af,{data:function(){return r().contents}},{accordionItemViewModel:function(z){return _.G(gq6,{data:z.data,
className:"ytAccordionViewModelRow",accordionStyle:E,hideIfNotExpanded:u,onCollapse:function(){return B()?(M(!0),!1):!0}})}})),_.G("div",null,_.G(_.p,{cond:function(){return!B()&&(!!r().disclaimerFooter||!!r().footer)},
then:function(){return _.G("div",{class:"ytAccordionViewModelFooter"},_.G(_.hf,{text:function(){return r().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.G(_.Af,{data:function(){return g.data().footer}},{flexibleActionsViewModel:function(z){return _.G(sn,{data:z.data,
layout:0})}}))}})))},"dd");_.BK(_.rYA,"yt-accordion-view-model",{props:{data:_.cP}});_.BK(_.dG(function(g){var r=null,E=null,B,w=(B=_.rM().resolve(_.gM(_.Vy)))==null?void 0:B(),O=_.U(_.Dk(!1,void 0,"EVXQGb"));B=O.next().value;var M=O.next().value;O=_.U(_.Dk(!0,void 0,"W9FIJf"));var u=O.next().value,l=O.next().value,Q=_.VI("textarea",function(e){_.Pm(264503,e,r,function(C){r=C})}),z=function(e){M(!0);
e={learningJourneyFormData:{query:e}};_.I3(g.data().searchEndpoint||{},{form:{formData:e}});return!1},k=_.HK(function(e){e.target.closest("button-view-model")&&M(!0)});
O=_.HK(function(){l(Q.value.value.length===0)});
var H=_.HK(function(e){if(e.key==="Enter"&&!e.shiftKey&&!u()){var C=e.target;e.preventDefault();z(C.value)}}),R={},A={},J={};
return _.G("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.G("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.G(_.vw,{data:function(){return g.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.G("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.G("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.G("div",{class:_.QY("ytLearningJourneyZeroStateSearchBar",(R.ytLearningJourneyZeroStateSearchBarDark=w,R))},_.G("textarea",{class:_.QY("ytLearningJourneyZeroStateTextInput",(A.ytLearningJourneyZeroStateTextInputDark=w,A)),el:Q,"on:keyup":O,"on:keydown":H,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.G("div",{class:_.QY("ytLearningJourneyZeroStateSearchButtonContainer",(J.ytLearningJourneyZeroStateSearchButtonContainerDark=w,J))},_.G(_.MV,{data:function(){return _.n(g.data().searchButton,_.nm)},
className:"search-button",onClick:function(){return z(Q.value.value)},
buttonOverrides:function(){return{disabled:u(),style:w?"mono-inverse":"mono",size:"XL"}}}))),_.G(_.p,{cond:function(){return!!g.data().errorBanner},
then:function(){return _.G("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.T$(function(e){_.Pm(264617,e,E,function(C){E=C})})},_.G(_.Af,{data:function(){return g.data().errorBanner}},{alertBannerViewModel:function(e){return _.G(_.jEw,{data:e.data,
"client-ve-type":264617})}}))}})),_.G(_.p,{cond:B,
then:function(){return _.G("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.G(_.Af,{data:function(){return g.data().loader}},{learningJourneyLoaderViewModel:function(e){return _.G(_.vNw,{data:e.data})}}))},
else:function(){return _.G("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.G(_.p,{cond:function(){return!!g.data().learningJourneyShelf},
then:function(){return _.G("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.G("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return g.data().learningJourneySectionTitle}),_.G(_.Af,{data:function(){return g.data().learningJourneyShelf}},{horizontalShelfViewModel:function(e){return _.G(_.jM,{data:e.data,
centerAlignItems:!0})}}))}}),_.G("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.G("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return g.data().suggestedJourneySectionTitle}),_.G("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":k},_.G(_.Af,{data:function(){return g.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(e){return _.G(sn,{data:e.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"ed"),"yt-learning-journey-zero-state",{props:{data:_.cP}});var EqZ=_.dG(function(g){var r=g.data;return _.G("ytvl-live-leaderboard-item-action-content-view-model",{class:_.QY("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.G(_.hf,{text:function(){var E;return(E=r())==null?void 0:E.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.G(_.Af,{data:function(){return r().actionButton}},{buttonViewModel:function(E){return _.G(_.MV,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:E.data})}}))},"fd");var B7D=_.dG(function(g){var r=g.data;return _.G("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.QY("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.G(_.hf,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var E;return(E=r())==null?void 0:E.displayName},
ellipsisTruncate:!0}),_.G(_.Af,{data:function(){return r().badge}},{buttonViewModel:function(E){return _.G(_.MV,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:E.data})}}))},"gd");_.BK(_.dG(function(g){var r=g.data;return _.G("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.G("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.G(_.hf,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var E;return(E=r())==null?void 0:E.rank}})),_.G("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.G(_.Af,{data:function(){return r().avatar}},{avatarViewModel:_.sV})),_.G("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.G(_.Af,{data:function(){return r().content}},{liveLeaderboardItemChannelContentViewModel:B7D,
liveLeaderboardItemActionContentViewModel:EqZ})),_.G(_.hf,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var E;return(E=r())==null?void 0:E.points}}))},"hd"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.cP}});_.BK(_.dG(function(g){var r=g.data;return _.G("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.G(_.hf,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var E,B;return(E=r())==null?void 0:(B=E.ranking)==null?void 0:B.rank}}),_.G("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.G(_.Af,{data:function(){return r().avatar}},{avatarViewModel:_.sV})),_.G(_.hf,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var E,B;return(E=r())==null?void 0:(B=E.channelContent)==null?void 0:B.channelName}}),_.G(_.hf,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var E;return(E=r())==null?void 0:E.points}}))},"id"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.cP}});var weU=_.dG(function(g){g=_.y7(g,{wrapper:!1}).wrapper;return _.G(_.p,{cond:g,then:function(){return _.G("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.G("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.G("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"jd");
weU.idomCompat=!0;var SAI=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],O84=_.dG(function(g){var r=g.data;var E=_.VI("div"),B=_.kB(function(){return r().command},void 0,"tJY20c");
_.bQ(function(){B()&&_.a3(B(),{form:{element:E.value}})},"qs6Sof");
return _.G("div",{el:E,class:"YtQrCodeRendererHostContainer"},_.G(_.p,{cond:function(){return r().qrCodeImage},
then:function(w){return _.G(_.vw,{data:w,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.G(_.p,{cond:function(){return r().spinner},
then:function(){return _.G(weU,null)}})}}),_.G(_.p,{cond:function(){return r().label},
then:function(w){return _.G(_.hf,{text:w,className:"YtQrCodeRendererHostLabel"})}}),_.G(_.p,{cond:function(){return r().labels},
then:function(w){return _.G("div",{class:"YtQrCodeRendererHostLabels"},_.G(_.Ra,{each:w},function(O){return _.G(_.hf,{text:O})}))}}))},"ld");_.BK(_.dG(function(g){var r=g.data;var E=_.kB(function(){return r().qrEntityKey},void 0,"joYCxd"),B=_.kB(function(){return r().deleteEntityOnDismiss},void 0,"x3yAde"),w=_.kB(function(){return r().command},void 0,"dJe1Re"),O=_.QU(eBL,E);
g=_.kB(function(){return r().qrCodeImage},void 0,"qM5dZe");
var M=_.kB(function(){return r().style&&SAI.includes(r().style)},void 0,"CaNEkf"),u=_.VI("yt-qr-code-renderer");
_.gH(u,{visibilityCallback:function(l){l&&w()&&_.a3(w())},
showOption:{calledOnce:!0,state:"visible"}});_.Jk(function(){_.J5(function(){B()&&E()&&_.V7().dispatch(_.za("qrCodeEntity",E()))})});
return _.G("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:u},_.G(_.p,{cond:M,then:function(){return _.G(_.p,{cond:O,then:function(l){return _.G(O84,{data:l})}})}}),_.G(_.p,{cond:g,
then:function(l){return _.G(_.vw,{data:l,alt:""})}}))},"kd"),"yt-qr-code-renderer",{props:{data:_.cP}});_.UTw=_.dG(function(g){var r=g.data;var E=g.topbarOffset;var B,w=((B=_.rM().resolve(_.gM(_.Vy)))==null?void 0:B())||!1;return _.G("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var O=r();var M,u,l=w?(M=O.config)==null?void 0:M.darkThemeBackgroundColor:(u=O.config)==null?void 0:u.lightThemeBackgroundColor;O=l?_.aJ(l):void 0;O="background-color: "+O+";";E!==void 0&&(O+="top: -"+E()+"px;");return O},
"aria-hidden":!0},_.G(_.p,{cond:function(){var O,M,u;return!!((O=r().backgroundImageConfig)==null?0:(M=O.image)==null?0:(u=M.sources)==null?0:u.length)},
then:function(){return _.G(_.vw,{data:function(){var O;return(O=r().backgroundImageConfig)==null?void 0:O.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.G("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+f3D(w,r().gradientColorConfig)+";"}}))},"md");
_.UTw.idomCompat=!0;var AG=_.dG(function(g){var r=g.className;var E=g.data;var B=g.isOverlay;var w=g.maxLinesOverride;var O=g.useMediumText;var M=function(){return E().alwaysShowTruncationText},u=function(){return E().truncationText},l=function(){return O!==void 0&&O()?"medium":"small"},Q=function(){return B!==void 0&&B()?"overlay":"default"},z=function(){var A,J;
return(J=(A=_.n(E().rendererContext,_.Gi))==null?void 0:A.label)!=null?J:""};
g=_.U(_.Dk(!1,void 0,"xVwzHf"));var k=g.next().value,H=g.next().value;g=_.HK(function(){E().expandOnTap&&H(!k());return!1});
var R={};return _.G("yt-description-preview-view-model",{el:_.T$(_.xo(function(){return E().rendererContext})),
class:_.QY("yt-description-preview-view-model-wiz",r,(R["yt-description-preview-view-model-wiz--clickable"]=function(){var A;return!((A=_.n(E().rendererContext,dpl))==null||!A.onTap)},R["yt-description-preview-view-model-wiz--is-overlay"]=B,R)),
"on:click":g},_.G(_.p,{cond:function(){return E().description},
then:function(A){return _.G(_.p,{cond:k,then:function(){var J={};return _.G("div",{class:_.QY("yt-description-preview-view-model-wiz__description",(J["yt-description-preview-view-model-wiz__description--medium-text"]=O,J))},_.G(_.hf,{text:A}))},
else:function(){return _.G(jgZ,{text:A,alwaysShowTruncationText:M,truncationText:u,maxLines:function(){var J;return(J=w==null?void 0:w())!=null?J:E().maxLines},
textStyle:Q,accessibilityLabel:z,textSize:l})}})}}))},"nd");
AG.idomCompat=!0;var Mxn=_.dG(function(g){var r=g.data;var E=g.isOverlay;return _.G("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.G("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.G(_.Af,{data:function(){return r().header}},{sectionHeaderViewModel:function(B){return _.G(_.rm,{data:B.data,
isOverlay:E})}})),_.G("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.G(_.Af,{data:function(){return r().channelInfoButtons}},{flexibleActionsViewModel:sn})),_.G("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.G(_.Af,{data:function(){return r().description}},{descriptionPreviewViewModel:function(B){return _.G(AG,{data:B.data,
isOverlay:E})}})))},"od");
Mxn.idomCompat=!0;var qAw=_.dG(function(g){var r=g.data;var E={};return _.G("factoid-view-model",{class:_.QY("ytwFactoidViewModelHost",(E.ytwFactoidViewModelHostOverlay=g.isOverlay,E))},_.G(_.hf,{text:function(){return r().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.G(_.hf,{text:function(){return r().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"pd");
qAw.idomCompat=!0;var ukZ=_.dG(function(g){var r=g.data;var E=g.isOverlay;return _.G("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.G(_.Af,{data:function(){return r().factoids}},{factoidViewModel:function(B){return _.G(qAw,{data:B.data,
isOverlay:E})}}))},"qd");
ukZ.idomCompat=!0;_.l9z=_.dG(function(g){var r=g.data;var E=g.isOverlay;return _.G("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.G(_.Af,{data:function(){return r().items}},{channelInfoViewModel:function(B){return _.G("div",{class:"ytwCourseMetadataViewModelHostItem"},_.G(Mxn,{data:B.data,
isOverlay:E}))},
coursePerksViewModel:function(B){return _.G("div",{class:"ytwCourseMetadataViewModelHostItem"},_.G(Vew,{data:B.data,isOverlay:E}))},
descriptionPreviewViewModel:function(B){return _.G("div",{class:"ytwCourseMetadataViewModelHostItem"},_.G(AG,{data:B.data,isOverlay:E}))},
factoidsRowViewModel:function(B){return _.G("div",{class:"ytwCourseMetadataViewModelHostItem"},_.G(ukZ,{data:B.data,isOverlay:E}))},
progressViewModel:function(B){return _.G("div",{class:"ytwCourseMetadataViewModelHostItem"},_.G(hvA,{data:B.data,isOverlay:E}))}}))},"rd");var DTb=_.dG(function(g){return _.G("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.G(_.Af,{data:function(){return g.data().content}},{courseMetadataViewModel:function(r){return _.G(_.l9z,{data:r.data,
isOverlay:g.isOverlay})},
progressViewModel:function(r){return _.G(hvA,{data:r.data})}}))},"sd");var oqI=_.dG(function(g){var r=g.data;g=g.className;var E=function(){var w;return _.Km((w=r())==null?void 0:w.rendererContext)},B={};
B=(B["dynamic-text-view-model-wiz"]=!0,B["dynamic-text-view-model-wiz--tappable"]=function(){return E()},B);
return _.G("yt-dynamic-text-view-model",{el:_.T$(_.xo(function(){var w;return(w=r())==null?void 0:w.rendererContext})),
role:function(){return E()?"link":void 0},
tabindex:function(){return E()?0:void 0},
class:_.QY(g,B)},_.G("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var w,O,M;return(M=(O=_.n((w=r())==null?void 0:w.rendererContext,_.Gi))==null?void 0:O.label)!=null?M:""}},_.G(_.hf,{text:function(){return r().text},
userInput:!0})))},"td");
oqI.idomCompat=!0;_.GvU=_.dG(function(g){var r=g.data;var E=g.isPositionRelative;var B=_.j7l("(max-width: 527.9px)"),w=function(){var O,M;return(M=(O=r())==null?void 0:O.style)!=null?M:"IMAGE_BANNER_STYLE_FULL_BLEED"};
g={};return _.G("yt-image-banner-view-model",{el:_.T$(_.xo(function(){var O;return(O=r())==null?void 0:O.rendererContext})),
class:_.QY((g["yt-image-banner-view-model-wiz"]=!0,g["yt-image-banner-view-model-wiz--inset"]=function(){return AcJ(w())},g["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.t5(!0)&&!(E==null?0:E())},g["yt-image-banner-view-model-wiz--small-inset"]=function(){return AcJ(w())&&B()},g["yt-image-banner-view-model-wiz--tappable"]=function(){var O;
return _.Km((O=r())==null?void 0:O.rendererContext)},g))},_.G(_.p,{cond:function(){var O;
return(O=r())==null?void 0:O.image},
then:function(){return _.G(_.vw,{data:function(){return r().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.G(_.Af,{data:function(){var O;
return(O=r())==null?void 0:O.overlays}},{thumbnailHoverOverlayViewModel:nO}))},"ud");
_.GvU.idomCompat=!0;var QLD;QLD=_.dG(function(g){var r=g.condition;var E=g.content;return _.G(_.p,{cond:r,then:function(){return _.G("div",{class:"page-header-view-model-wiz__scroll-container"},E())},
else:function(){return E()}})},"vd");
_.zD6=_.dG(function(g){var r=g.data;var E=g.noPadding;var B=g.enableBanner;var w=g.cinematicContainerTopbarOffset;var O=g.allowCinematicContainerOverflow;var M=g.displayAsSidebar;var u=g.displayAsPanel;var l=b1S(),Q=function(){return!!r().image||!!r().animatedImage},z=function(){return!!r().background},k=function(){return(M==null?0:M())||(u==null?0:u())?1:l()},H=function(){return k()===1},R=function(){return H()||k()===2},A=function(){return k()===4},J=function(){var PJ=r();
var At=!!r().heroImage;var XY=k(),xc=JcS(r()),rg=M==null?void 0:M(),$t=!PJ.metadata,tD;if(tD=At?_.n(PJ.heroImage,W5I):_.n(PJ.animatedImage||PJ.image,W5I)){PJ=tD.style;var GD=tD.layoutMode;if(GD!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(tD=EsJ(rbo(tD)),At)At=$AL(XY,PJ,GD,tD,rg);else b:if($t)At=XY===1?{size:48}:{size:72};else switch(XY){case 1:At={size:72};break b;case 2:At={size:120};break b;default:At=xc<4?{size:120}:{size:160}}else At=void 0}else At={size:0};return At};
g={};g=_.QY((g["page-header-view-model-wiz"]=!0,g["page-header-view-model-wiz--no-padding"]=function(){return!(E==null||!E())},g["page-header-view-model-wiz--small-top-padding"]=function(){return H()&&!r().actions&&!(u==null?0:u())||k()===2&&!(Q()||r().heroImage)},g["page-header-view-model-wiz--small-bottom-padding"]=function(){return R()&&!r().actions&&!(u==null?0:u())},g["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(O==null?0:O())},g["page-header-view-model-wiz--display-as-sidebar"]=
M,g));
var e={},C=_.QY((e["page-header-view-model-wiz__page-header-headline"]=!0,e["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var PJ;return(PJ=J())==null?void 0:PJ.allowFullWidth},e)),X=function(){var PJ;
return R()&&!((PJ=J())==null?0:PJ.allowFullWidth)},Z=function(){return H()&&(!!r().heroImage||Q())&&JcS(r())>0},c=function(){return Z()&&(u==null?void 0:u())};
e={};var h=_.QY((e["page-header-view-model-wiz__page-header-title"]=!0,e["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!Z()},e["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return Z()&&!c()},e["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=c,e["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=z,e));
e={};var y=_.QY((e["page-header-view-model-wiz__page-header-headline-image"]=!0,e["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!r().heroImage&&R()},e));
e={};var OD=_.QY((e["page-header-view-model-wiz__page-header-banner-container"]=B,e["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var PJ;return(B==null?void 0:B())&&((PJ=_.n(r().banner,_.K5U))==null?void 0:PJ.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},e));
e={};var uB=_.QY((e["page-header-view-model-wiz__page-header-content-metadata"]=!0,e["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=z,e));e={};var zS=_.QY((e["page-header-view-model-wiz__page-header-flexible-actions"]=!0,e["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!r().metadata||R()},e["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!R()},e));
e={};var jV=_.QY((e["page-header-view-model-wiz__page-header-attribution"]=!0,e["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=z,e));return _.G("yt-page-header-view-model",{class:g},_.G(_.p,{cond:z,then:function(){return _.G("div",{class:"page-header-view-model-wiz__page-header-background"},_.G(_.Af,{data:function(){return r().background}},{cinematicContainerViewModel:function(PJ){return _.G(_.UTw,{data:PJ.data,
topbarOffset:w})}}))}}),_.G(QLD,{condition:function(){return!(M==null||!M())},
content:function(){return _.G("div",{class:"page-header-view-model-wiz__page-header-content"},_.G(_.p,{cond:function(){return(B==null?void 0:B())&&r().banner},
then:function(){return _.G("div",{class:OD},_.G(_.Af,{data:function(){return r().banner}},{imageBannerViewModel:_.GvU}))}}),_.G("div",{class:C},_.G(_.p,{cond:Q,
then:function(){return _.G(_.Af,{data:function(){var PJ;if(!(PJ=r().animatedImage)){PJ=r();if(Q()){var At=PJ=Object.assign({},PJ),XY=k(),xc=JcS(r()),rg=At.image,$t=_.n(rg,CwU),tD=$t==null?void 0:$t.avatar,GD=_.n(tD,_.a$);if(rg&&tD&&GD){switch(XY){case 1:GD.avatarImageSize="AVATAR_SIZE_XL";break;case 2:GD.avatarImageSize="AVATAR_SIZE_XXL";break;default:xc<4?GD.avatarImageSize="AVATAR_SIZE_XXL":GD.avatarImageSize="AVATAR_SIZE_XXXL"}_.Y("web_enable_sink_page_header_view_model")&&(_.FI(tD,_.a$,Object.assign({},
GD)),$t.avatar=Object.assign({},tD),_.FI(rg,CwU,Object.assign({},$t)),At.image=Object.assign({},rg))}}PJ=PJ.image}return PJ}},{contentPreviewImageViewModel:function(PJ){return _.G(_.ye,{data:PJ.data,
className:y,imageSizeConfig:J})},
decoratedAvatarViewModel:function(PJ){return _.G(_.fO,{data:PJ.data,className:y})}})}}),_.G(_.p,{cond:function(){return!!r().heroImage&&!X()},
then:function(){return _.G(_.Af,{data:function(){return r().heroImage}},{contentPreviewImageViewModel:function(PJ){return _.G(_.ye,{data:PJ.data,
className:y,imageSizeConfig:J})}})}}),_.G("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.G(_.p,{cond:function(){return!!r().heroImage&&X()},
then:function(){return _.G("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.G(_.Af,{data:function(){return r().heroImage}},{contentPreviewImageViewModel:function(PJ){return _.G(_.ye,{data:PJ.data,
className:y,imageSizeConfig:J})}}))}}),_.G(_.Af,{data:function(){return r().title}},{dynamicTextViewModel:function(PJ){return _.G(oqI,{data:PJ.data,
className:h})}}),_.G(_.Af,{data:function(){return r().metadata}},{contentMetadataViewModel:function(PJ){return _.G(_.v4,{data:PJ.data,
layout:function(){return H()?1:0},
className:uB,isOverlay:z,useMediumText:A})}}),_.G(_.p,{cond:function(){return r().description&&!H()},
then:function(){return _.G(_.Af,{data:function(){return r().description}},{descriptionPreviewViewModel:function(PJ){return _.G(AG,{data:PJ.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:z,maxLinesOverride:function(){return H()?void 0:1},
useMediumText:A})}})}}),_.G(_.p,{cond:function(){return r().attribution&&!R()},
then:function(){return _.G(_.Af,{data:function(){return r().attribution}},{attributionViewModel:function(PJ){return _.G(uqw,{data:PJ.data,
className:jV,useMediumText:A})}})}}),_.G(_.p,{cond:function(){return r().actions&&!R()},
then:function(){return _.G(_.Af,{data:function(){return r().actions}},{flexibleActionsViewModel:function(PJ){return _.G(sn,{data:PJ.data,
layout:function(){return P0L(k())},
className:zS})}})}}))),_.G("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.G(_.p,{cond:function(){return r().description&&H()},
then:function(){return _.G(_.Af,{data:function(){return r().description}},{descriptionPreviewViewModel:function(PJ){return _.G(AG,{data:PJ.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:z,maxLinesOverride:function(){return H()?void 0:1},
useMediumText:A})}})}}),_.G(_.p,{cond:function(){return r().attribution&&R()},
then:function(){return _.G(_.Af,{data:function(){return r().attribution}},{attributionViewModel:function(PJ){return _.G(uqw,{data:PJ.data,
className:jV,useMediumText:A})}})}}),_.G(_.p,{cond:function(){return r().actions&&R()},
then:function(){return _.G(_.Af,{data:function(){return r().actions}},{flexibleActionsViewModel:function(PJ){return _.G(sn,{data:PJ.data,
layout:function(){return P0L(k())},
className:zS})}})}})),_.G("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.G(_.Af,{data:function(){return r().bottomMetadataFlexibleContainer}},{flexibleContainer:function(PJ){return _.G(DTb,{data:PJ.data,
isOverlay:z})}})))}}))},"wd");
_.zD6.idomCompat=!0;_.BK(_.dG(function(g){var r=_.U(_.Dk(!1,void 0,"j5qbkc")),E=r.next().value,B=r.next().value;return _.G("yt-official-card-view-model",{class:_.QY("ytOfficialCardViewModelHost",g.className),style:_.Rl({"background-color":function(){var w,O=WUJ((w=g.data())==null?void 0:w.backgroundColor);return O?_.XT(O):void 0}})},_.G(_.Af,{data:function(){return g.data().header}},{pageHeaderViewModel:function(w){return _.G(_.zD6,{data:w.data,
noPadding:!0})}}),_.G(_.Af,{data:function(){return g.data().contents}},{horizontalShelfViewModel:function(w){return _.G(_.jM,{data:w.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.G(_.p,{cond:E,
then:function(){return _.G("div",{class:"ytOfficialCardViewModelExpandedContent"},_.G(_.Af,{data:function(){return g.data().expandedContents}},{horizontalShelfViewModel:function(w){return _.G(_.jM,{data:w.data,
sizing:"MINI"})}}),_.G("div",{class:"ytOfficialCardViewModelCollapseButton"},_.G(_.Af,{data:function(){return g.data().collapseButton}},{buttonViewModel:function(w){return _.G(_.MV,{data:w.data,
onClick:function(){B(!E())}})}})))},
else:function(){return _.G("div",{class:"ytOfficialCardViewModelExpandButton"},_.G(_.Af,{data:function(){return g.data().expandButton}},{buttonViewModel:function(w){return _.G(_.MV,{data:w.data,
onClick:function(){B(!E())}})}}))}}))},"xd"),"yt-official-card-view-model",{props:{data:_.cP,
className:_.cP}});var tDP=_.R$({buttonViewModel:_.MV});_.rH(FNB);_.lW(FNB,"ytw-search-friction-view-model",{propNames:["data"]});_.b_=_.dG(function(g){var r=_.VI("markdown-div"),E,B=(E=_.rM().resolve(_.gM(_.Vy)))==null?void 0:E();_.bQ(function(){var w=r.value;var O=new WAD,M=new Map(O.JSC$7389_sanitizerTable.globalAttributePolicies);M.set("style",{policyAction:4});O.JSC$7389_sanitizerTable=new zk(O.JSC$7389_sanitizerTable.allowedElements,O.JSC$7389_sanitizerTable.elementPolicies,O.JSC$7389_sanitizerTable.allowedGlobalAttributes,M,O.JSC$7389_sanitizerTable.globallyAllowedAttributePrefixes);var u=["data-time"];if(u===void 0)M=
new Set(O.JSC$7389_sanitizerTable.globallyAllowedAttributePrefixes),M.add("data-"),O.JSC$7389_sanitizerTable=new zk(O.JSC$7389_sanitizerTable.allowedElements,O.JSC$7389_sanitizerTable.elementPolicies,O.JSC$7389_sanitizerTable.allowedGlobalAttributes,O.JSC$7389_sanitizerTable.globalAttributePolicies,M);else{M=new Set(O.JSC$7389_sanitizerTable.allowedGlobalAttributes);u=_.U(u);for(var l=u.next();!l.done;l=u.next()){l=l.value;if(l.indexOf("data-")!==0)throw Error("ra`"+l);M.add(l)}O.JSC$7389_sanitizerTable=
new zk(O.JSC$7389_sanitizerTable.allowedElements,O.JSC$7389_sanitizerTable.elementPolicies,M,O.JSC$7389_sanitizerTable.globalAttributePolicies,O.JSC$7389_sanitizerTable.globallyAllowedAttributePrefixes)}M=new Set(O.JSC$7389_sanitizerTable.allowedGlobalAttributes);M.add("class");O.JSC$7389_sanitizerTable=new zk(O.JSC$7389_sanitizerTable.allowedElements,O.JSC$7389_sanitizerTable.elementPolicies,M,O.JSC$7389_sanitizerTable.globalAttributePolicies,O.JSC$7389_sanitizerTable.globallyAllowedAttributePrefixes);
_.cu(w,_.JtT(O.build(),WNV(g.text())));C0B(r.value)},"FI2gYe");
E={};return _.G("div",null,_.G("markdown-div",{class:_.QY("ytwMarkdownDivHost",(E.ytwMarkdownDivDark=B,E.ytwMarkdownDivHostSmall=function(){var w;return((w=g.isSmallText)==null?void 0:w.call(g))||!1},E)),
el:r}))},"yd");
_.b_.idomCompat=!0;var kv4=_.dG(function(g){var r=g.imageData;var E=_.Zo(g.isInList,!1),B=function(){return E()?{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 _.G("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.G(_.p,{cond:function(){return r().image},
then:function(w){return _.G(_.vw,{data:w,alt:function(){return B().alt},
contentMode:function(){return B().contentMode},
targetWidth:function(){return B().targetWidth},
targetHeight:function(){return B().targetHeight},
className:function(){return B().className}})}}),_.G("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.G("div",{class:_.QY("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.G(_.hf,{text:function(){return r().title}})),_.G(_.Ra,{each:function(){var w;
return(w=r().description)!=null?w:[]}},function(w){return _.G("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.G(JG,{content:w}))})))},"zd"),H8A=_.dG(function(g){var r=g.list;
var E=function(){var B;return(B=r().items)!=null?B:[]};
return _.G("div",{class:"ytwGenAiRichTextViewModelListContent"},_.G(_.p,{cond:function(){return r().title},
then:function(B){return _.G("div",{class:_.QY("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.G(_.hf,{text:B}))}}),_.G(_.p,{cond:function(){return r().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.G("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.G(_.Ra,{each:E},function(B){return _.G("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.G(JG,{content:B,isInList:!0}))}))}}),_.G(_.p,{cond:function(){return r().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.G("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.G(_.Ra,{each:E},function(B){return _.G("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.G(JG,{content:B,isInList:!0}))}))}}),_.G(_.p,{cond:function(){return r().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.G("div",{class:"ytwGenAiRichTextViewModelImageList"},_.G(_.Ra,{each:E},function(B){return _.G("div",{class:"ytwGenAiRichTextViewModelListItem"},_.G(JG,{content:B,isInList:!0}))}))}}))},"Ad"),peU=_.dG(function(g){var r=g.table;
return _.G("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.G("thead",null,_.G("tr",null,_.G(_.Ra,{each:function(){var E,B;return(B=(E=r().header)==null?void 0:E.cells)!=null?B:[]}},function(E){return _.G("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.G(_.Ra,{each:function(){return E.contents}},function(B){return _.G(JG,{content:B})}))}))),_.G("tbody",null,_.G(_.Ra,{each:function(){var E;
return(E=r().rows)!=null?E:[]}},function(E){return _.G("tr",null,_.G(_.Ra,{each:function(){return E.cells}},function(B){return _.G("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.G(_.Ra,{each:function(){return B.contents}},function(w){return _.G(JG,{content:w})}))}))})))},"Bd"),JG=_.dG(function(g){var r=g.content;
var E=_.Zo(g.isInList,!1),B=function(){var w,O;return(O=(w=r().contentBlock)==null?void 0:w.contents)!=null?O:[]};
return _.G("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.G(_.p,{cond:function(){return r().text},
then:function(w){return _.G(_.hf,{className:"ytwGenAiRichTextViewModelText",text:w})}}),_.G(_.p,{cond:function(){return r().image},
then:function(w){return _.G(kv4,{imageData:w,isInList:E})}}),_.G(_.p,{cond:function(){return r().list},
then:function(w){return _.G(H8A,{list:w})}}),_.G(_.p,{cond:function(){return r().contentBlock},
then:function(){return _.G("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.G(_.Ra,{each:B},function(w){return _.G(JG,{content:w,isInList:!1})}))}}),_.G(_.p,{cond:function(){return r().table},
then:function(w){return _.G(peU,{table:w})}}))},"Cd"),YAI=_.dG(function(g){var r={};
r=_.zw("ytwGenAiRichTextViewModelHost",(r.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.Sg("search_overview_link_style")),r));return _.G("gen-ai-rich-text-view-model",{class:r},_.G(JG,{content:function(){return g.data().content}}))},"Dd");_.rH(KNL);_.rH(Fu);_.RDT=_.dG(function(g){var r=g.data;var E=function(){var J;return((J=r().loadingUi)!=null?J:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},B=function(){return r().isLoading&&(E()==="UNSPECIFIED"||E()==="GHOST_CARD")},w=function(){return!r().isLoading},O=function(){return!!r().content&&!r().contents},M=function(){return!!r().contents},u=function(){return!!r().nextQueryButtons},l=function(){return r().isLoading&&E()==="INVISIBLE"},Q=function(){var J,e;
return(e=(J=r().headerIcon)==null?void 0:J.iconType)!=null?e:""},z=function(){var J;
return(J=r().content)!=null?J:""},k=function(){return!!r().sourcesSection},H,R=!((H=_.rM().resolve(_.gM(_.Vy)))==null||!H()),A=_.kB(function(){var J=[],e=r().contents;
if(e)for(var C=0;C<e.length;C++){var X=_.n(e&&e[C],c2U);X&&J.push(X)}return J},void 0,"ycU97e");
_.Jk(function(){r().isLoading||_.F4("so_re",void 0,"search_overview_answer")});
return _.G("ytd-overview-answer-view-model",{class:function(){var J={};J=(J.ytdOverviewAnswerViewModelHost=!0,J.ytdOverviewAnswerViewModelDarkBackground=R&&!l(),J.ytdOverviewAnswerViewModelLightBackground=!R&&!l(),J);return _.zw(J)}},_.G(_.p,{cond:function(){return!l()},
then:function(){return _.G(_.wW,null,_.G("h2",null,_.G("div",{class:"ytdOverviewAnswerViewModelHeader"},_.G(_.p,{cond:Q,then:function(J){return _.G("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.G(_.nh,{icon:J}))}}),_.G("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.G("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return r().headerText}),_.G("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.G(_.hf,{text:function(){return r().headerSubtext}}))))),_.G(_.p,{cond:B,
then:function(){return KNL()}}),_.G(_.p,{cond:w,
then:function(){return _.G(_.wW,null,_.G(_.p,{cond:O,then:function(){return _.G("div",{class:"ytdOverviewAnswerViewModelText"},_.G(_.b_,{text:z,isSmallText:!0}))}}),_.G(_.p,{cond:M,
then:function(){return _.G("div",{class:"ytdOverviewAnswerViewModelRichText"},_.G(_.Ra,{each:A},function(J){return _.G(YAI,{data:J})}))}}),_.G(_.p,{cond:u,
then:function(){return _.G("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.G(_.Af,{data:function(){return r().nextQueryButtons}},{buttonViewModel:function(J){return _.G(_.MV,{data:J.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.jM}))}}),_.G("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.G("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.G(_.p,{cond:function(){return!!_.n(r().likeButtonViewModel,_.A9)&&!!_.n(r().dislikeButtonViewModel,_.jf)},
then:function(){return _.G("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.G(_.$n,{data:function(){return _.n(r().likeButtonViewModel,_.A9)},
disableIconAnimation:!0}),_.G(_.fj,{data:function(){return _.n(r().dislikeButtonViewModel,_.jf)}}))}})),_.G(_.p,{cond:function(){var J;
return(J=r().sourcesSection)==null?void 0:J.headerText},
then:function(J){return _.G("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.G(_.hf,{text:J}))}})),_.G(_.p,{cond:k,
then:function(){return _.G("div",{class:"ytdOverviewAnswerViewModelSources"},_.G(_.Af,{data:function(){var J;return(J=r().sourcesSection)==null?void 0:J.sourcesShelf}},{buttonViewModel:_.MV,
horizontalShelfViewModel:function(J){return _.G(_.jM,{data:J.data,includeMargin:!0,hasPeek:!0})}}))}}),_.G(_.p,{cond:function(){return r().disclaimerText},
then:function(){return _.G("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.G(_.hf,{text:function(){return r().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Ed");var nq4=_.dG(function(g){var r=g.data;var E=g.active;var B=_.VI("transcript-segment-view-model");_.bQ(function(){var w,O,M,u=((w=_.rM().resolve(_.gM(_.Vy)))==null?0:w())?(O=r())==null?void 0:O.darkThemeColorPalette:(M=r())==null?void 0:M.lightThemeColorPalette;u&&(u.additiveBackground&&B.value.style.setProperty("--timestamp-active-background-color",_.XT(u.additiveBackground)),u.textSecondary&&B.value.style.setProperty("--timestamp-active-color",_.aJ(u.textSecondary)))},"KHcbwb");
g={};return _.G("transcript-segment-view-model",{class:_.QY("ytwTranscriptSegmentViewModelHost",(g.ytwTranscriptSegmentViewModelHostActive=E,g.ytwTranscriptSegmentViewModelHostModern=_.Y("enable_timeline_view_modern_transcript")||_.Y("enable_timeline_view_modern_transcript_fe"),g)),el:B},_.G(_.p,{cond:function(){var w;return(w=r())==null?void 0:w.timestamp},
then:function(w){var O={};return _.G("div",{class:_.QY("ytwTranscriptSegmentViewModelTimestamp",(O.ytwTranscriptSegmentViewModelTimestampActive=E,O))},w)}}),_.G(_.hf,{text:function(){var w,O,M;
return(M=(w=r())==null?void 0:w.attributedText)!=null?M:{content:(O=r())==null?void 0:O.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"Fd");var sLD=_.dG(function(g){var r=g.data;return _.G("div",{class:"yt-video-attributes-section-view-model__header"},_.G("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return r().headerTitle}),_.G(_.p,{cond:function(){return r().headerSubtitle},
then:function(){return _.G("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return r().headerSubtitle})}}))},"Gd"),f9D=_.dG(function(g){function r(J){return Math.max(Math.min(J,0),Q()-u())}
var E=g.data;var B,w=_.VI("div",function(J){if(_.Y("web_metadata_carousel_elref_bugfix")){var e=function(){z(J.clientWidth)};
e();window.ResizeObserver&&(B=new ResizeObserver(e),B.observe(J))}}),O=_.VI("div",function(J){l(J.scrollWidth)}),M=_.U(_.Dk(0,void 0,"I9GbH"));
g=M.next().value;M=M.next().value;var u=g,l=M;M=_.U(_.Dk(0,void 0,"eQAn5b"));g=M.next().value;M=M.next().value;var Q=g,z=M;g=_.U(_.Dk(0,void 0,"VU3lg"));var k=g.next().value,H=g.next().value;_.Jk(function(){if(!_.Y("web_metadata_carousel_elref_bugfix")){var J=function(){l(O.value.scrollWidth);z(w.value.clientWidth)};
J();if(window.ResizeObserver){var e=new ResizeObserver(J);e.observe(w.value);_.J5(function(){e.disconnect()})}}});
_.J5(function(){if(_.Y("web_metadata_carousel_elref_bugfix")){var J;(J=B)==null||J.disconnect()}});
var R=function(){H(r(k()+Q()))},A=function(){H(r(k()-Q()))};
return _.G("yt-video-attributes-section-view-model",null,_.G("div",{class:"yt-video-attributes-section-view-model"},_.G(_.p,{cond:function(){return E().headerTitle},
then:function(){return _.G(sLD,{data:E})}}),_.G("div",{class:_.QY("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:w},_.G("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.Rl({transform:function(){var J=k();_.Ca("HTML_DIR")==="rtl"&&(J*=-1);return"translateX("+J+"px)"}}),
el:O},_.G(_.Af,{data:function(){return E().videoAttributeViewModels}},{videoAttributeViewModel:tXU}))),_.G(_.Af,{data:function(){return E().footerButton}},{buttonViewModel:function(J){return _.G(_.MV,{data:J.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.G(_.p,{cond:function(){return k()<0&&E().previousButton},
then:function(){return _.G("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.G(_.Af,{data:function(){return E().previousButton}},{buttonViewModel:function(J){return _.G(_.MV,{data:J.data,
onClick:R})}}))}}),_.G(_.p,{cond:function(){return k()>Q()-u()&&E().nextButton},
then:function(){return _.G("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.G(_.Af,{data:function(){return E().nextButton}},{buttonViewModel:function(J){return _.G(_.MV,{data:J.data,
onClick:A})}}))}})))},"Hd");
f9D.idomCompat=!0;var $TD=_.dG(function(g){var r=g.data;var E=g.active;var B={},w={};return _.G("timeline-item-view-model",{class:_.QY("ytwTimelineItemViewModelHost",(B.ytwTimelineItemViewModelHostChapterChild=g.chapterChild,B.ytwTimelineItemViewModelModern=_.Y("enable_timeline_view_modern_transcript")||_.Y("enable_timeline_view_modern_transcript_fe"),B))},_.G("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.G("div",{class:_.QY("ytwTimelineItemViewModelTimestamp",(w.ytwTimelineItemViewModelTimestampActive=
E,w))},function(){return r().timestamp})),_.G("div",{class:"ytwTimelineItemViewModelContentItems"},_.G(_.Af,{data:function(){return r().contentItems}},{transcriptSegmentViewModel:function(O){return _.G(nq4,{data:O.data,
active:E})},
videoAttributesSectionViewModel:f9D})))},"Id");var jLT=_.dG(function(g){var r=g.data;g={};return _.G("timeline-chapter-view-model",{class:_.QY("ytwTimelineChapterViewModelHost")},_.G("div",{class:_.QY("ytwTimelineChapterViewModelTitle",(g.ytwTimelineChapterViewModelModern=_.Y("enable_timeline_view_modern_transcript")||_.Y("enable_timeline_view_modern_transcript_fe"),g))},function(){return r().title}),_.G(_.Af,{data:function(){return r().contents}},{timelineItemViewModel:function(E){return _.G($TD,{data:E.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(E){return _.G(f9D,{data:E.data})}}))},"Jd");var AYn=_.dG(function(g){var r=g.data;var E=_.VI("macro-markers-panel-item-view-model"),B=_.QU(_.brP,function(){var O;return(O=r().markersEngagementPanelSyncEntityKey)!=null?O:""}),w=function(){var O;
return((O=B())==null?void 0:O.activeItemIndex)===r().index};
g=_.HK(function(O){var M,u,l,Q,z;return _.q(function(k){if(k.nextAddress==1)return O.stopPropagation(),_.WX(_.eT(O),E.value,["A".toString(),"BUTTON".toString()])?k.return():(M=_.xP(r().onTap))?_.D(k,_.MQ(),2):k.return();u=k.yieldResult;Q=(l=_.n(M,_.LM))==null?void 0:l.startTimeSeconds;Q===void 0||(z=u)!=null&&z.seekTo(Q,!0);_.Q3(k)})});
return _.G("macro-markers-panel-item-view-model",{class:_.QY("ytwMacroMarkersPanelItemViewModelHost",{"is-active":w}),el:E,"on:click":g,tabindex:0},_.G(_.Af,{data:function(){var O;return(O=r())==null?void 0:O.item}},{timelineChapterViewModel:function(O){return _.G(jLT,{data:O.data,
active:w})},
timelineItemViewModel:function(O){return _.G($TD,{data:O.data,active:w})},
videoAttributeViewModel:tXU}))},"Kd");
AYn.idomCompat=!0;_.BK(AYn,"macro-markers-panel-item-view-model",{props:{data:_.cP}});_.BK(f9D,"yt-video-attributes-section-view-model",{props:{data:_.cP}});var b8D=_.dG(function(g){var r=function(){var E,B,w;return(w=(E=g.data().leadingLogoAccessibility)==null?void 0:(B=E.accessibilityData)==null?void 0:B.label)!=null?w:""};
return _.G("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.G(_.p,{cond:function(){return g.data().leadingLogo},
then:function(E){return _.G(_.vw,{className:"ytwFantasySectionHeaderViewModelLogo",data:E,alt:r})}}),_.G("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.G(_.hf,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return g.data().title}}),_.G(_.hf,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return g.data().subtitle}})),_.G(_.Af,{data:function(){return g.data().trailingButton}},{buttonViewModel:function(E){return _.G(_.MV,{data:E.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Ld");var JYD=_.dG(function(g){var r={};r=_.QY("ytwFantasyTeamViewModelHost",(r.ytwFantasyTeamViewModelCompact=function(){var w;return!((w=g.compact)==null||!w.call(g))},r.ytwFantasyTeamViewModelUser=function(){return g.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},r.ytwFantasyTeamViewModelOpponent=function(){return g.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},r));
var E=function(){var w,O,M;return(M=(w=g.data().teamLogoAccessibility)==null?void 0:(O=w.accessibilityData)==null?void 0:O.label)!=null?M:""},B=_.QU(P4P,function(){return g.data().teamEntityKey});
return _.G("ytw-fantasy-team-view-model",{class:r},_.G(_.p,{cond:function(){return g.data().teamLogo},
then:function(w){return _.G(_.vw,{className:"ytwFantasyTeamViewModelLogo",data:w,alt:E})}}),_.G("div",{class:"ytwFantasyTeamViewModelMetadata"},_.G("div",{class:"ytwFantasyTeamViewModelHeader"},_.G(_.hf,{className:"ytwFantasyTeamViewModelScore",
text:function(){var w;return(w=B())==null?void 0:w.score}}),_.G(_.nh,{icon:function(){var w;
return(w=B())==null?void 0:w.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.G(_.hf,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var w;return(w=B())==null?void 0:w.projectedScore}})),_.G(_.hf,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return g.data().primaryText}}),_.G(_.hf,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return g.data().secondaryText}}),_.G(_.hf,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return g.data().tertiaryText}})),_.G(_.hf,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var w;return(w=B())==null?void 0:w.score}}))},"Md");_.BK(_.dG(function(g){return _.G("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.G("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.G(_.Af,{data:function(){return g.data().summaryHeader}},{fantasySectionHeaderViewModel:b8D})),_.G(_.Af,{data:function(){return g.data().userTeam}},{fantasyTeamViewModel:JYD}),_.G(_.Af,{data:function(){return g.data().opponentTeam}},{fantasyTeamViewModel:JYD}))},"Nd"),"fantasy-league-summary-view-model",{props:{data:_.cP}});var PCb=_.dG(function(g){var r=_.y7(g,{shape:{},useCustomTabRenderable:!1}),E=r.shape;r=r.useCustomTabRenderable;var B=g.customTabRenderable,w=function(){return E().disabled},O=function(){return E().selected},M=function(){return E().title},u=function(){return E().icon},l=_.VI("yt-tab-shape");
g=_.HK(function(k){var H;if(!w()&&((H=E().aTagConfig)==null?0:H.onclick))E().aTagConfig.onclick(k);return!1});
var Q=_.HK(function(k){if(k.key==="Enter"||k.key==="ArrowUp"||k.key==="ArrowDown")k.preventDefault(),l.value.click();return!1}),z={};
return _.G("yt-tab-shape",{class:_.QY("yt-tab-shape-wiz",function(){return E().className},(z["yt-tab-shape-wiz__tab--last-tab"]=function(){return E().isLastTab},z["yt-tab-shape-wiz--host-disabled"]=w,z["yt-tab-shape-wiz--host-clickable"]=!B,z)),
role:B?void 0:"tab","aria-selected":O!=null?O:!1,"aria-disabled":w,tabindex:B?void 0:0,"on:click":g,"on:keydown":Q,el:l,"tab-identifier":function(){return E().identifier},
"tab-title":M},_.G(_.p,{cond:r,then:function(){return B()},
else:function(){var k={},H={};return _.G(_.wW,null,_.G("div",{class:_.QY("yt-tab-shape-wiz__tab",(k["yt-tab-shape-wiz__tab--tab-selected"]=O,k))},_.G(_.p,{cond:u,then:function(R){return _.G(_.nh,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return R().iconType}})}}),M),_.G("div",{class:_.QY("yt-tab-shape-wiz__tab-bar",(H["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=O,H))}))}}))},"Od");
PCb.idomCompat={callbacks:{customTabRenderable:!0}};_.FsZ=_.dG(function(g){var r=g.shape;g=_.U(_.Dk(48,void 0,"r9IBlb"));var E=g.next().value,B=g.next().value;g=_.U(_.Dk(0,void 0,"Bd7rmd"));var w=g.next().value,O=g.next().value,M=function(){return r().tabs},u=_.VI("yt-tab-group-shape"),l=function(){var Q,z;
return(z=(Q=M())==null?void 0:Q.findIndex(function(k){return k.selected}))!=null?z:-1};
_.Jk(function(){var Q=u.value.querySelectorAll("yt-tab-shape"),z=l()>-1?Q[l()]:void 0;_.F6.addJob(function(){B((z==null?void 0:z.getBoundingClientRect().width)||0)},8,0)});
_.bQ(function(){var Q=l(),z=_.F6.addJob(function(){var k,H=((k=u.value)==null?void 0:k.querySelectorAll("yt-tab-shape"))||[],R;B(((R=Q>-1?H[Q]:void 0)==null?void 0:R.getBoundingClientRect().width)||0);for(R=k=0;R<Q;R++)k+=H[R].offsetWidth+24;_.Ca("HTML_DIR")==="rtl"&&(k=-k);O(k)},8,0);
_.J5(function(){_.F6.cancelJob(z)})},"EHixkc");
g={};return _.G("yt-tab-group-shape",{class:_.QY("yt-tab-group-shape-wiz",(g["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return r().isOverflowHidden},g)),
el:u},_.G(_.p,{cond:M,then:function(Q){return _.G(_.wW,null,_.G("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.G(_.Ra,{each:Q},function(z,k){return _.G(PCb,{shape:function(){return Object.assign({},z,{isLastTab:k()===Q().length-1})},
customTabRenderable:z.customTabRenderable,useCustomTabRenderable:!!z.customTabRenderable})})),_.G(txT,{width:E,
sliderOffset:w}))}}))},"Pd");
_.FsZ.idomCompat=!0;var txT=_.dG(function(g){var r=_.Zo(g.sliderOffset,0),E=g.width;return _.G("div",{class:"yt-tab-group-shape-wiz__slider",style:_.Rl({width:function(){return E()+"px"},
transform:function(){return"translateX("+r()+"px)"}})})},"Qd");var eDD=_.dG(function(g){var r=function(){var O,M,u;return(u=(O=g.data().playerLogoAccessibility)==null?void 0:(M=O.accessibilityData)==null?void 0:M.label)!=null?u:""},E=_.QU(tJA,function(){return g.data().playerEntityKey}),B={};
B=_.QY("ytwFantasyPlayerViewModelHost",(B.ytwFantasyPlayerViewModelPlaying=function(){var O;return!((O=E())==null||!O.isPlayerPlaying)},B.ytwFantasyPlayerViewModelOnField=function(){var O;
return((O=E())==null?void 0:O.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},B.ytwFantasyPlayerViewModelRedZone=function(){var O;
return((O=E())==null?void 0:O.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},B));
var w=function(){var O,M,u,l=((O=_.rM().resolve(_.gM(_.Vy)))==null?0:O())?(M=g.data().playerLogoBackgroundColor)==null?void 0:M.darkTheme:(u=g.data().playerLogoBackgroundColor)==null?void 0:u.lightTheme;return l===void 0?"":_.XT(l)};
return _.G("ytw-fantasy-player-view-model",{class:B},_.G(_.p,{cond:function(){return g.data().playerLogo},
then:function(O){return _.G("div",{class:"ytwFantasyPlayerViewModelLogo"},_.G("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.G(_.vw,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.Rl({"background-color":w}),data:O,alt:r})),_.G("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.G(_.nh,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.G("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.G("div",{class:"ytwFantasyPlayerViewModelHeader"},_.G(_.hf,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var O;return(O=g.data())==null?void 0:O.playerNameText}}),_.G(_.hf,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var O;return(O=g.data())==null?void 0:O.playerDescriptionText}})),_.G("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.G(_.hf,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var O;return(O=E())==null?void 0:O.gamePeriodText}}),_.G(_.hf,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var O;return(O=g.data())==null?void 0:O.opponentTeamText}}),_.G(_.hf,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var O;return(O=E())==null?void 0:O.gameStatusText}}),_.G(_.hf,{className:_.QY("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var O;return(O=E())==null?void 0:O.playerStatusText}})),_.G("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.G(_.hf,{text:function(){var O;
return(O=E())==null?void 0:O.playerStatsText}}))),_.G(_.hf,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var O;return(O=E())==null?void 0:O.fantasyScore}}))},"Rd");var Wsn=_.dG(function(g){return _.G("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.G(_.p,{cond:function(){return g.data().players},
then:function(r){return _.G(_.Af,{data:r},{fantasyPlayerViewModel:eDD})}}))},"Sd");var CC4=_.dG(function(g){var r=_.U(_.Y3(function(){var w;return(w=g.data().selectedTabIdentifierKey)!=null?w:""})),E=r.next().value,B=r.next().value;
_.jS(function(){var w;(w=g.setSelectedTabSignal)==null||w.call(g,E)});
return _.G("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.G("div",{class:"ytTabbedViewModelTabGroup"},_.G(_.FsZ,{shape:function(){var w=g.data(),O=[],M={tabs:O};if(!w.tabs)return M;w=_.U(w.tabs);for(var u=w.next(),l={};!u.done;l={tabViewModel:void 0},u=w.next())if(l.tabViewModel=_.n(u.value,EQ4),l.tabViewModel){var Q=u=void 0;O.push({aTagConfig:{onclick:function(z){return function(){var k;B((k=z.tabViewModel.tabIdentifier)!=null?k:"")}}(l)},
identifier:l.tabViewModel.tabIdentifier,selected:E()===l.tabViewModel.tabIdentifier,title:(Q=(u=l.tabViewModel.title)==null?void 0:u.content)!=null?Q:""})}return M}})),_.G(_.Af,{data:function(){var w,O=_.U((w=g.data().tabs)!=null?w:[]);
for(w=O.next();!w.done;w=O.next())if((w=_.n(w.value,EQ4))&&w.tabIdentifier===E())return w.content}},{fantasyRosterViewModel:Wsn}))},"Td");_.BK(_.dG(function(g){var r=_.U(xAt()),E=r.next().value,B=r.next().value;return _.G("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.G(_.hf,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return g.data().title}}),_.G(_.p,{cond:function(){return g.data().tabbedViewModel},
then:function(w){return _.G(_.Af,{data:w},{tabbedViewModel:function(O){return _.G(CC4,{data:O.data,setSelectedTabSignal:B})}})}}),_.G(_.p,{cond:function(){var w,O=(w=_.n(g.data().tabbedViewModel,BTw))==null?void 0:w.tabs;
w=_.n(O==null?void 0:O[0],EQ4);O=_.n(O==null?void 0:O[1],EQ4);var M=w==null?void 0:w.tabIdentifier;if(E()===M){var u,l;if(!((u=_.n(w==null?void 0:w.content,yqI))==null?0:(l=u.players)==null?0:l.length))return g.data().noUserTeamPlayersText}else{var Q,z;if(!((Q=_.n(O==null?void 0:O.content,yqI))==null?0:(z=Q.players)==null?0:z.length))return g.data().noOpponentTeamPlayersText}},
then:function(w){return _.G(_.hf,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:w})}}))},"Ud"),"ytw-fantasy-matchup-view-model",{props:{data:_.cP}});_.BK(_.dG(function(g){return _.G("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.G(_.hf,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return g.data().title}}),_.G(_.p,{cond:function(){return g.data().matchupTeamPairs},
then:function(r){return _.G(_.Ra,{each:r,keyBy:"INDEX"},function(E){return _.G("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.G(_.Af,{data:function(){return[E().firstTeam,E().secondTeam]}},{fantasyTeamViewModel:function(B){return _.G(JYD,{data:B.data,
compact:!0})}}))})}}))},"Vd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.cP}});_.BK(_.dG(function(g){var r=function(){var w,O,M;return(M=(w=g.data().userLogoAccessibility)==null?void 0:(O=w.accessibilityData)==null?void 0:O.label)!=null?M:""},E=function(){var w,O,M;
return(M=(w=g.data().opponentLogoAccessibility)==null?void 0:(O=w.accessibilityData)==null?void 0:O.label)!=null?M:""},B=_.QU(JES,function(){return g.data().entityKey});
return _.G("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.G("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.G(_.p,{cond:function(){return g.data().userLogo},
then:function(w){return _.G(_.vw,{className:"ytwFantasyWinProbabilityViewModelLogo",data:w,alt:r})}}),_.G("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.G(_.hf,{text:function(){return g.data().title}})),_.G(_.p,{cond:function(){return g.data().opponentLogo},
then:function(w){return _.G(_.vw,{className:"ytwFantasyWinProbabilityViewModelLogo",data:w,alt:E})}})),_.G("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.G("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.G(_.hf,{text:function(){var w;
return(w=B())==null?void 0:w.userWinNumberLabel}})),_.G("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.G("div",{class:_.QY("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.Rl({flex:function(){var w,O;return(O=(w=B())==null?void 0:w.userWinNumber)!=null?O:50}})}),_.G("div",{class:_.QY("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.Rl({flex:function(){var w,O;return(O=(w=B())==null?void 0:w.opponentWinNumber)!=null?O:50}})})),_.G("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.G(_.hf,{text:function(){var w;
return(w=B())==null?void 0:w.opponentWinNumberLabel}}))))},"Wd"),"fantasy-win-probability-view-model",{props:{data:_.cP}});var KsD={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},xTA=_.dG(function(g){return _.G(_.Af,{data:g.button},{buttonViewModel:function(r){return _.G(_.MV,{data:r.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"Xd"),a9A=_.dG(function(g){return _.G("ytd-backstage-locked-post-view-model",{class:_.QY("ytdBackstageLockedPostViewModelHost",g.className)},_.G("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.G("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.G(_.Af,
{data:function(){return g.data().authorAvatar}},{decoratedAvatarViewModel:_.fO})),_.G("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.G("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.G(_.hf,{text:function(){return g.data().authorText}})),_.G("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.G(_.hf,{text:function(){return g.data().publishedTimeText}}),_.G(_.Af,{data:function(){return g.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(r){return _.G(o9T,
{data:r.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.G("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.G(_.hf,{text:function(){return g.data().contentText}})),_.G(_.fa,null,_.G(_.na,{when:function(){return g.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.G("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.G(_.vw,{data:KsD,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.G(_.hf,{text:function(){return g.data().lockedText}}))}),_.G(_.na,{when:function(){return g.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.G("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.G("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.G(_.vw,{data:KsD,
alt:""})),_.G(_.hf,{text:function(){return g.data().lockedText}}))})),_.G("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.G(xTA,{button:function(){return g.data().likeButton}}),_.G("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return g.data().voteCountA11y}},_.G(_.hf,{text:function(){return g.data().voteCount}})),_.G(xTA,{button:function(){return g.data().dislikeButton}}),_.G(xTA,{button:function(){return g.data().commentButton}}),_.G("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return g.data().commentCountA11y}},_.G(_.hf,{text:function(){return g.data().commentCount}}))))},"Yd");
a9A.idomCompat=!0;_.BK(a9A,"ytd-backstage-locked-post-view-model",{props:{data:_.cP,className:_.cP}});_.ek("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var Pr=function(){var g=_.a.apply(this,arguments)||this;g.darkerPanels=_.Y("web_watch_darker_panels");g.commentsHidePanelButton=!1;g.isWatchGrid=!1;g.continuationShowButton=!1;g.isSearch=!1;g.isConstrainedList=!1;g.isWatch=!1;g.eligibleToSwitchToGrid=!1;g.notSticky=!1;g.epRestyle=!1;g.isCarouselInFeed=!0;g.topSpacingZero=!1;g.continuationIsInitialLoad=!0;g.enableSqueezebackPanels=_.Y("web_shorts_enable_squeezeback_panels");g.enableAnchoredPanel=_.Y("desktop_shorts_v2_anchored_panel");g.mastheadHeight=
0;g.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};g.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return g};
_.f(Pr,_.a);_.S=Pr.prototype;_.S.updateLockupContainerTypes=function(g){if(this.eligibleToSwitchToGrid){var r;(r=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||r.forEach(function(E){E.containerType=g})}};
_.S.getItemsPath=function(){return"data.contents"};
_.S.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.S.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",
carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",lockupContainerType:"[[lockupContainerType]]"}},
channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",
connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",
fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",
handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",
properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",
properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",
offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",
productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",
properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",
searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",
properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",
unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",
properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",
courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",
liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},
"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.Y("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.Y("kevlar_low_priority_continuation")}}};
_.S.created=function(){};
_.S.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.S.handleIntersect=function(g){this.notSticky=g[0].intersectionRatio===1};
_.S.attached=function(){var g=this;document.addEventListener("scroll",_.Do(this,this.updateHeaderState));var r;this.mastheadHeight=((r=document.querySelector("ytd-masthead"))==null?void 0:r.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(E){g.handleIntersect(E)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){g.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.S.detached=function(){document.removeEventListener("scroll",_.Do(this,this.updateHeaderState));var g;(g=this.intersectionObserver)==null||g.disconnect();var r;(r=this.resizeObserver)==null||r.disconnect()};
_.S.updated=function(g){g.has("data")&&this.updateHeaderState()};
_.S.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(HjD(!this.notSticky))};
_.S.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var g=_.S3(this.hostElement).querySelector("ytd-comments-header-renderer");g&&(g.hidePanelButton=this.commentsHidePanelButton)}};
_.S.onRetrieveLocation=function(g,r){this.containsComments()&&(this.firstCommentsLoaded=r.hasComments=!0)};
_.S.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.S.onLoadReloadContinuation=function(g,r){var E=this;g.stopPropagation();this.isReloading=!0;_.Sh(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(B){var w=_.rM().resolve(_.eN);B=r(B);w.postData(B).then(function(O){E.onReloadContinuationData(O)})}})};
_.S.onReloadContinuationData=function(g){if(g=this.get("response.continuationContents.itemSectionContinuation",g)||this.get("response.contents.itemSectionRenderer",g)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",g)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",g))this.set("data.contents",g.contents||g.results),g.header&&this.set("data.header",g.header),this.set("data.continuations",
g.continuations||[]);this.isReloading=!1};
_.S.computeContentsClass=function(g){return g?"reloading":""};
_.S.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.S.computeSectionIdentifier=function(g){return g==null?void 0:g.sectionIdentifier};
_.S.computeFitContainer=function(g){return(g==null?void 0:g.sectionIdentifier)==="youchat-item-section"};
_.S.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.Y("kevlar_disable_comments_auto_load")};
_.S.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.S.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.S.computeHasDestinationShelfRenderer=function(g){var r,E;return!!(g==null?0:(r=g.contents)==null?0:(E=r[0])==null?0:E.destinationShelfRenderer)};
_.S.computeHasSectionGroupViewModel=function(g){var r,E;return!!(g==null?0:(r=g.contents)==null?0:(E=r[0])==null?0:E.sectionGroupViewModel)};
_.S.computeHasQrCodeRenderer=function(g){var r,E;return!!(g==null?0:(r=g.contents)==null?0:(E=r[0])==null?0:E.qrCodeRenderer)};
_.S.computeStaticCommentsHeader=function(g){return g&&this.containsComments()};
_.S.computeEpRestyle=function(g){return _.Y("web_ep_restyling")&&g&&this.containsComments()};
_.S.computeIsContinuationCommentSection=function(g){return(g==null?void 0:g.targetId)==="shorts-engagement-panel-comments-section"||(g==null?void 0:g.targetId)==="comments-section"||(g==null?void 0:g.targetId)==="engagement-panel-comments-section"};
_.S.computeSuppressPaddingDisclaimer=function(){var g,r,E,B;return!!((g=this.data)==null?0:(r=g.contents)==null?0:(E=r[0])==null?0:(B=E.productListHeaderRenderer)==null?0:B.suppressPaddingDisclaimer)};
_.S.computeHeaderStyle=function(g){switch(g==null?void 0:g.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.S.dataChanged=function(){this.firstCommentsLoaded=!1};
_.S.observeDataContentsLength=function(){var g,r;((g=this.data)==null?0:(r=g.contents)==null?0:r.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.S.onYtDismissibleItemDismissedChange=function(g){this._setItemDismissed(g.type==="yt-dismissible-item-dismissed")};
_.S.triggerContinuations=function(){for(var g=_.S3(this.hostElement).querySelector("#continuations").children,r=0;r<g.length;r++)g[r].trigger()};
_.S.triggerInitialContinuations=function(){for(var g=_.S3(this.hostElement).querySelector("#continuations").children,r=0;r<g.length;r++)g[r].triggerIfNotPreviouslyTriggered()};
_.S.handleYtItemSectionContinuation=function(g,r){var E;r&&((E=this.data)==null?void 0:E.sectionIdentifier)!==r||(this.set("data.continuations",[g]),this.triggerContinuations())};
_.S.handleYtItemSectionReplace=function(g,r){var E;r&&((E=this.data)==null?void 0:E.sectionIdentifier)!==r||(this.set("data.contents",g),this.set("data.continuations",[]))};
_.S.computeUseHeightHack=function(g){return g&&!_.Y("kevlar_disable_height_hack")};
_.S.computeTopSpacingZero=function(g){return g};
_.S.continuationShowButtonChanged=function(){var g=_.S3(this.hostElement).querySelector("ytd-continuation-item-renderer");g&&(g.showButton=this.continuationShowButton)};
_.S.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.x8("data-changed",this.data))};
_.hx.Object.defineProperties(Pr.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.Y("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return!!((g=this.data)==null?0:(r=g.contents)==null?0:(E=r[0])==null?0:E.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var g,r,E,B,w,O,M;return!!((g=this.data)==null?0:(r=g.contents)==null?0:(E=r[0])==null?0:(B=E.shelfRenderer)==null?0:(w=B.content)==null?0:(O=w.gridRenderer)==null?0:(M=O.targetId)==null?0:M.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return!!((g=this.data)==null?0:(r=g.contents)==null?0:(E=r[0])==null?0:E.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return!!((g=this.data)==null?0:(r=g.contents)==null?0:(E=r[0])==null?0:E.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.Sg("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.Y("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.Y("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
Pr.prototype.dataChangedForBinding=Pr.prototype.dataChangedForBinding;Pr.prototype.continuationShowButtonChanged=Pr.prototype.continuationShowButtonChanged;Pr.prototype.onYtDismissibleItemDismissedChange=Pr.prototype.onYtDismissibleItemDismissedChange;Pr.prototype.observeDataContentsLength=Pr.prototype.observeDataContentsLength;Pr.prototype.dataChanged=Pr.prototype.dataChanged;Pr.prototype.onServiceRequestCompleted=Pr.prototype.onServiceRequestCompleted;Pr.prototype.onLoadReloadContinuation=Pr.prototype.onLoadReloadContinuation;
Pr.prototype.onRetrieveLocation=Pr.prototype.onRetrieveLocation;Pr.prototype.commentsHidePanelButtonChanged=Pr.prototype.commentsHidePanelButtonChanged;Pr.prototype.dispatchChipBarIsSticky=Pr.prototype.dispatchChipBarIsSticky;Pr.prototype.updateLockupContainerTypes=Pr.prototype.updateLockupContainerTypes;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Pr.prototype,"ytActionHandlerBehavior",void 0);
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Pr.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Pr.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Zu.YtLazyListBehavior),_.L("design:type",Object)],Pr.prototype,"ytLazyListBehavior",void 0);_.m([_.P(_.Nv.YtNextContinuationBehavior),_.L("design:type",Object)],Pr.prototype,"ytNextContinuationBehavior",void 0);
_.m([_.P(_.Xe),_.L("design:type",Object)],Pr.prototype,"ytContinuationHandlerBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Pr.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],Pr.prototype,"ytdReduxBehavior",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Pr.prototype,"darkerPanels",void 0);_.m([_.K(),_.L("design:type",Object)],Pr.prototype,"data",void 0);
_.m([_.K(),_.L("design:type",Boolean)],Pr.prototype,"engagementPanel",void 0);_.m([_.K(),_.L("design:type",Object)],Pr.prototype,"commentsHidePanelButton",void 0);_.m([_.K(),_.L("design:type",Object)],Pr.prototype,"isWatchGrid",void 0);_.m([_.K(),_.L("design:type",Object)],Pr.prototype,"continuationShowButton",void 0);_.m([_.K({computed:"computeIsContinuationCommentSection(data)"}),_.L("design:type",Boolean)],Pr.prototype,"continuationIsCommentsSection",void 0);
_.m([_.K({value:!0}),_.L("design:type",Boolean)],Pr.prototype,"autoFill",void 0);_.m([_.K(),_.L("design:type",Boolean)],Pr.prototype,"continuationDisablePrescanVisibility",void 0);_.m([_.K(),_.L("design:type",Boolean)],Pr.prototype,"isReloading",void 0);_.m([_.K(),_.L("design:type",Object)],Pr.prototype,"isSearch",void 0);_.m([_.K(),_.L("design:type",Object)],Pr.prototype,"isConstrainedList",void 0);_.m([_.K(),_.L("design:type",Object)],Pr.prototype,"isWatch",void 0);
_.m([_.K(),_.L("design:type",Object)],Pr.prototype,"eligibleToSwitchToGrid",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Pr.prototype,"notSticky",void 0);_.m([_.K({selector:_.tf}),_.L("design:type",Object)],Pr.prototype,"isGridViewEnabled",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.L("design:type",Object)],Pr.prototype,"epRestyle",void 0);
_.m([_.W("isWatch"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Pr.prototype,"hideShortsShelfHeader",null);_.m([_.W("isSearch","isWatch"),_.L("design:type",String),_.L("design:paramtypes",[])],Pr.prototype,"thumbnailWidth",null);_.m([_.W("isSearch","isWatch"),_.L("design:type",String),_.L("design:paramtypes",[])],Pr.prototype,"sizing",null);
_.m([_.W("isWatch","isGridViewEnabled","data"),_.K({reflectToAttribute:!0}),_.L("design:type",Number),_.L("design:paramtypes",[])],Pr.prototype,"lockupContainerType",null);_.m([_.Gb("lockupContainerType","data"),_.L("design:type",Function),_.L("design:paramtypes",[Number]),_.L("design:returntype")],Pr.prototype,"updateLockupContainerTypes",null);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],Pr.prototype,"pageSubtype",void 0);
_.m([_.K({computed:"computeContainerWidth()"}),_.L("design:type",Number)],Pr.prototype,"containerWidth",void 0);_.m([_.K(),_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Pr.prototype,"isPlaylist",null);_.m([_.K(),_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Pr.prototype,"isClipList",null);_.m([_.K(),_.L("design:type",Object)],Pr.prototype,"isCarouselInFeed",void 0);
_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Pr.prototype,"isPlaylistVideoContainer",null);_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Pr.prototype,"isSearchFrictionPage",null);_.m([_.K({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.L("design:type",Boolean)],Pr.prototype,"useHeightHack",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.L("design:type",Object)],Pr.prototype,"topSpacingZero",void 0);_.m([_.K({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.L("design:type",Boolean)],Pr.prototype,"showButton",void 0);_.m([_.K(),_.L("design:type",Boolean)],Pr.prototype,"firstCommentsLoaded",void 0);_.m([_.K(),_.L("design:type",Object)],Pr.prototype,"continuationIsInitialLoad",void 0);
_.m([_.K({reflectToAttribute:!0,readOnly:!0}),_.L("design:type",Boolean)],Pr.prototype,"itemDismissed",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.L("design:type",String)],Pr.prototype,"sectionIdentifier",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.L("design:type",String)],Pr.prototype,"fitContainer",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.L("design:type",Boolean)],Pr.prototype,"hasDestinationShelfRenderer",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.L("design:type",Boolean)],Pr.prototype,"staticCommentsHeader",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Pr.prototype,"enableSqueezebackPanels",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Pr.prototype,"enableAnchoredPanel",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.L("design:type",Boolean)],Pr.prototype,"hasSectionGroupViewModel",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.L("design:type",Boolean)],Pr.prototype,"hasQrCodeRenderer",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.L("design:type",Boolean)],Pr.prototype,"suppressDisclaimerSeparator",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.L("design:type",String)],Pr.prototype,"headerStyle",void 0);_.m([_.W("isSearch"),_.L("design:type",Object),_.L("design:paramtypes",[])],Pr.prototype,"lockupExperiments",null);
_.m([_.W("isSearch"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Pr.prototype,"typographyBump",null);_.m([_.zb("#header"),_.L("design:type",HTMLElement)],Pr.prototype,"header",void 0);_.m([_.Gb("notSticky"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Pr.prototype,"dispatchChipBarIsSticky",null);
_.m([_.Gb("commentsHidePanelButton"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Pr.prototype,"commentsHidePanelButtonChanged",null);_.m([_.ob("yt-retrieve-location"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],Pr.prototype,"onRetrieveLocation",null);
_.m([_.ob("yt-load-reload-continuation"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Function]),_.L("design:returntype")],Pr.prototype,"onLoadReloadContinuation",null);_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Pr.prototype,"onServiceRequestCompleted",null);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Pr.prototype,"dataChanged",null);
_.m([_.Yk("data.contents.length"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Pr.prototype,"observeDataContentsLength",null);_.m([_.ob("yt-dismissible-item-dismissed"),_.ob("yt-dismissible-item-undismissed"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],Pr.prototype,"onYtDismissibleItemDismissedChange",null);
_.m([_.Gb("continuationShowButton"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Pr.prototype,"continuationShowButtonChanged",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Pr.prototype,"dataChangedForBinding",null);_.m([_.N({is:"ytd-item-section-renderer",disableElementRegistration:!0})],Pr);
_.I(Pr,"ytd-item-section-renderer",function(){if(Bwm!==void 0)return Bwm;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return Bwm=g},{mode:1});var XeT;var NaS=_.Lf(_.zn("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var N7n={},X7A=(N7n[0]={title:_.gz(_.zn("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.gz(_.zn("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:dX("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},N7n[1]={title:_.gz(_.zn("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:dX("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},N7n);_.ek("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var tG=function(){var g=_.a.apply(this,arguments)||this;g.allVideosCount=0;g.allPlaylistCount=0;g.isOnline=!1;g.shouldRenderDownloadsBanner=!1;g.shouldRenderDownloadsBannerUpsell=!1;g.hasOptedIntoSmartDownloads=!1;g.areAllSmartDownloadsDeleted=!1;g.smartDownloadsCompleted=!1;return g};
_.f(tG,_.a);tG.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
tG.prototype.attached=function(){this.downloadsToRenderChanged()};
tG.prototype.detached=function(){this.set("renderableData",{})};
tG.prototype.downloadsToRenderChanged=function(){var g=_.Zz().getState().entities,r=_.j9(g),E=_.Y("kevlar_playlist_dl_page_killswitch")?udJ(g):_.Aj(g),B=_.Byt(g),w=_.UCL(g),O=_.YD(r);g=_.b1(g);this.set("renderableData",mAA(E,r,B,w,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,O,g))};
tG.prototype.downloadsToRenderChanged=tG.prototype.downloadsToRenderChanged;_.m([_.P(_.Ai),_.L("design:type",Object)],tG.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],tG.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],tG.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],tG.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],tG.prototype,"renderableData",void 0);_.m([_.K({selector:_.nTD}),_.L("design:type",Object)],tG.prototype,"allVideosCount",void 0);_.m([_.K({selector:tqL}),_.L("design:type",Object)],tG.prototype,"allPlaylistCount",void 0);_.m([_.K({selector:_.e9}),_.L("design:type",Object)],tG.prototype,"isOnline",void 0);_.m([_.K({selector:_.J9S}),_.L("design:type",Object)],tG.prototype,"shouldRenderDownloadsBanner",void 0);
_.m([_.K({selector:_.e0X}),_.L("design:type",Object)],tG.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.m([_.K({selector:_.PwB}),_.L("design:type",Object)],tG.prototype,"hasOptedIntoSmartDownloads",void 0);_.m([_.K({selector:_.tfo}),_.L("design:type",Object)],tG.prototype,"areAllSmartDownloadsDeleted",void 0);_.m([_.K({selector:F5t}),_.L("design:type",Object)],tG.prototype,"smartDownloadsCompleted",void 0);
_.m([_.Yk("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],tG.prototype,"downloadsToRenderChanged",null);_.m([_.N({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],tG);
_.I(tG,"ytd-offline-item-section-renderer",function(){if(XeT!==void 0)return XeT;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return XeT=g},
{mode:1});var I9b;var mTm;var Ff=function(){return _.a.apply(this,arguments)||this};
_.f(Ff,_.a);
Ff.prototype.onDataChanged=function(){if(this.JSC$14672_lastData){var g=this.getFilterClass(this.JSC$14672_lastData.status);g&&this.hostElement.classList.remove(g)}var r;(g=this.getFilterClass((r=this.data)==null?void 0:r.status))&&this.hostElement.classList.add(g);g==="selected"?_.S3(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.S3(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");g==="disabled"?_.S3(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.S3(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14672_lastData=this.data};
Ff.prototype.getFilterClass=function(g){switch(g){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
Ff.prototype.onDataChanged=Ff.prototype.onDataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Ff.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Ff.prototype,"data",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Ff.prototype,"onDataChanged",null);_.m([_.N({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],Ff);
_.I(Ff,"ytd-search-filter-renderer",function(){if(mTm!==void 0)return mTm;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return mTm=g},{mode:_.My("kevlar_poly_si_batch_j075")?1:2});var eM=function(){return _.a.apply(this,arguments)||this};
_.f(eM,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],eM.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],eM.prototype,"data",void 0);_.m([_.N({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],eM);
_.I(eM,"ytd-search-filter-group-renderer",function(){if(I9b!==void 0)return I9b;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return I9b=g},{mode:_.My("kevlar_poly_si_batch_j075")?1:2});var cYz;var Wr=function(){return _.a.apply(this,arguments)||this};
_.f(Wr,_.a);Wr.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.SB());this.isCollapsed=!this.isCollapsed};
Wr.prototype.navigateToAboutTheseResultsPage=function(){var g=YU("https://www.youtube.com/howyoutubeworks/product-features/search/");g?_.Wu(window,g,"_blank"):_.xF(Error("Wh"))};
Wr.prototype.dataChanged=function(){this.isCollapsed=!0};
Wr.prototype.computeShowBottomBorder=function(){var g,r,E;return!!((g=this.data)==null?0:(r=g.button)==null?0:r.toggleButtonRenderer)||!((E=this.data)==null||!E.aboutTheseResultsButton)};
Wr.prototype.dataChanged=Wr.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Wr.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Wr.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.L("design:type",Boolean)],Wr.prototype,"showBottomBorder",void 0);_.m([_.K(),_.L("design:type",Boolean)],Wr.prototype,"renderCollapsibleMenu",void 0);
_.m([_.K(),_.L("design:type",Boolean)],Wr.prototype,"isCollapsed",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Wr.prototype,"dataChanged",null);_.m([_.N({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],Wr);
_.I(Wr,"ytd-search-sub-menu-renderer",function(){if(cYz!==void 0)return cYz;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return cYz=g},{mode:1});var i8U;var LsZ=new _.Vn("SECTION_LIST_RENDERER_TOKEN");var VxD;var Cv=function(){return _.a.apply(this,arguments)||this};
_.f(Cv,_.a);Cv.prototype.computeStyle=function(g){return g?g.toLowerCase().replace(/_/g,"-"):""};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Cv.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Cv.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.L("design:type",String)],Cv.prototype,"headerStyle",void 0);_.m([_.N({is:"ytd-text-header-renderer",disableElementRegistration:!0})],Cv);
_.I(Cv,"ytd-text-header-renderer",function(){if(VxD!==void 0)return VxD;var g=document.createElement("template");_.b(g,"\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");g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return VxD=g},{mode:1});var hDI;var Kv=function(){return _.a.apply(this,arguments)||this};
_.f(Kv,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Kv.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Kv.prototype,"data",void 0);_.m([_.N({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],Kv);
_.I(Kv,"ytd-minor-moment-header-renderer",function(){if(hDI!==void 0)return hDI;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return hDI=g},{mode:1});var Z8I;var xh=function(){return _.a.apply(this,arguments)||this};
_.f(xh,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],xh.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],xh.prototype,"data",void 0);_.m([_.N({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],xh);
_.I(xh,"ytd-minor-moment-setting-alert-renderer",function(){if(Z8I!==void 0)return Z8I;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Z8I=g},{mode:1});var yYI;var vqw;var ak=function(){var g=_.a.apply(this,arguments)||this;g.booleanSettingById=!1;g.smartDownloadsEnabledVE=_.bW(128287);g.smartDownloadsDisabledVE=_.bW(128286);g.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return g};
_.f(ak,_.a);_.S=ak.prototype;_.S.attachSmartDownloadsSettingVes=function(){var g;this.activeVeForLogging||((g=this.data)==null?void 0:g.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.Sp(_.pW(),this.smartDownloadsEnabledVE),_.Sp(_.pW(),this.smartDownloadsDisabledVE))};
_.S.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.Sh(this.hostElement,"yt-settings-switch-ready")};
_.S.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.S.onSwitchChange=function(g){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(g=_.yP(g).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.Y("kevlar_settings_switch_resolve_command_killswitch")?_.rM().resolve(_.Er).resolveCommand(g,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(g)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.S.handleUpdateSettingsSwitch=function(g){(g=_.n(g,zaD))&&this.data&&this.data.id===g.id&&this.set("data.enabled",!!g.enabled)};
_.S.onToggleSettingsSwitch=function(g,r){this.data&&this.data.id===g&&this.set("data.enabled",r!=null?r:!this.data.enabled)};
_.S.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.h9.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.S.maybeLogSmartDownloadsSettingVisibility=function(){var g=_.PE(),r;g&&((r=this.data)==null?void 0:r.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.ck(g,[this.smartDownloadsEnabledVE]),_.iq(g,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.ck(g,[this.smartDownloadsDisabledVE]),_.iq(g,[this.smartDownloadsEnabledVE])))};
_.S.maybeLogSmartDownloadsSettingClick=function(){var g;((g=this.data)==null?void 0:g.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.Uk(_.pW(),this.activeVeForLogging)};
_.S.updateDataEnabledFromBinding=function(g){this.set("data.enabled",g.detail.value)};
_.hx.Object.defineProperties(ak.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var g=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!g&&(g=this.ytRendererBehavior.getSimpleString(this.data.title));return g}}});
ak.prototype.dataChanged=ak.prototype.dataChanged;_.m([_.P(_.Ai),_.L("design:type",Object)],ak.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ak.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],ak.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],ak.prototype,"ytComponentBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],ak.prototype,"data",void 0);_.m([_.K({selector:function(g,r){if(Object.keys(g==null?void 0:g.entities).length)switch(r){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return lcl(g.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.L("design:type",Object)],ak.prototype,"booleanSettingById",void 0);_.m([_.K(),_.L("design:type",_.bG)],ak.prototype,"activeVeForLogging",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],ak.prototype,"toggleAriaLabel",null);_.m([_.Yk("data"),_.Yk("booleanSettingById"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ak.prototype,"dataChanged",null);
_.m([_.N({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],ak);
_.I(ak,"ytd-settings-switch-renderer",function(){if(vqw!==void 0)return vqw;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return vqw=g},{mode:1});var Xf=function(){return _.a.apply(this,arguments)||this};
_.f(Xf,_.a);Xf.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}}}}};
_.hx.Object.defineProperties(Xf.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var g=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(g+=" remove-left-margin");this.data.extraBottomSpace&&(g+=" extra-bottom-space");return g}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Xf.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Xf.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Xf.prototype,"data",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],Xf.prototype,"contentsClassName",null);_.m([_.N({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],Xf);
_.I(Xf,"ytd-minor-moment-setting-section-renderer",function(){if(yYI!==void 0)return yYI;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return yYI=g},{mode:1});var dTn;var NU=function(){return _.a.apply(this,arguments)||this};
_.f(NU,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],NU.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],NU.prototype,"componentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],NU.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],NU);
_.I(NU,"ytd-empty-product-details-renderer",function(){if(dTn!==void 0)return dTn;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return dTn=g},{mode:1});var T7D;var gSw;var Ik=function(){var g=_.a.apply(this,arguments)||this;g.expanded=!0;return g};
_.f(Ik,_.a);Ik.prototype.getBadgeRowClass=function(g,r,E){for(var B=_.U(this.hostElement.querySelectorAll("yt-img-shadow")),w=B.next();!w.done;w=B.next())w.value.onShow();g=g.selected;return E?g!==-1?g===r?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(g!==void 0?g:0)===r?"badge-line":"badge-hidden"};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Ik.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Ik.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],Ik.prototype,"expanded",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],Ik);
_.I(Ik,"ytd-sponsorships-loyalty-badges-renderer",function(){if(gSw!==void 0)return gSw;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return gSw=g},{mode:1});var rPZ;var mw=function(){var g=_.a.apply(this,arguments)||this;g.expanded=!0;return g};
_.f(mw,_.a);mw.prototype.getContainerClasses=function(g,r){g=g?"expanded":"collapsed";r&&(g+=" item");return g};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],mw.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],mw.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],mw.prototype,"expanded",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],mw);
_.I(mw,"ytd-sponsorships-perk-renderer",function(){if(rPZ!==void 0)return rPZ;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return rPZ=g},{mode:1});var EST;var cr=function(){var g=_.a.apply(this,arguments)||this;g.expanded=!0;return g};
_.f(cr,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],cr.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],cr.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],cr.prototype,"expanded",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],cr);
_.I(cr,"ytd-sponsorships-perks-renderer",function(){if(EST!==void 0)return EST;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return EST=g},{mode:1});var i_=function(){var g=_.a.apply(this,arguments)||this;g.isCollapsed=!1;return g};
_.f(i_,_.a);i_.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
i_.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
i_.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var g;this.expandCollapseButton=_.n((g=this.data)==null?void 0:g.expandButton,_.Fd)}else{var r;this.expandCollapseButton=_.n((r=this.data)==null?void 0:r.collapseButton,_.Fd)}};
i_.prototype.updateExpandCollapseButton=i_.prototype.updateExpandCollapseButton;i_.prototype.onDataChanged=i_.prototype.onDataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],i_.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],i_.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],i_.prototype,"isCollapsed",void 0);_.m([_.K(),_.L("design:type",Object)],i_.prototype,"expandCollapseButton",void 0);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],i_.prototype,"onDataChanged",null);_.m([_.Yk("data","isCollapsed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],i_.prototype,"updateExpandCollapseButton",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],i_);
_.I(i_,"ytd-sponsorships-expandable-perks-renderer",function(){if(T7D!==void 0)return T7D;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return T7D=g},{mode:1});var BKm;var Lv=function(){return _.a.apply(this,arguments)||this};
_.f(Lv,_.a);Lv.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Lv.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Lv.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Lv.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],Lv);
_.I(Lv,"ytd-sponsorships-actionable-message-renderer",function(){if(BKm!==void 0)return BKm;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return BKm=g},{mode:1});var wBn;var Vq=function(){return _.a.apply(this,arguments)||this};
_.f(Vq,_.a);_.S=Vq.prototype;_.S.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.S.getExpansionIcon=function(g){return g?"COLLAPSE":"EXPAND"};
_.S.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.S.computeMessageContainerStyle=function(g){var r=g.expandableItems?" style-clickable":"";return g.messageContainerStyle?g.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+r:"style-unspecified"+r};
_.S.isSinglePerk=function(g){return!!g.messageContainerStyle&&(g.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||g.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.S.onExpandedChanged=function(){var g=this;if(this.expanded)for(var r=_.U(this.hostElement.querySelectorAll("yt-img-shadow")),E=r.next();!E.done;E=r.next())E.value.onShow();_.Lk(this,function(){_.Sh(g.hostElement,"yt-refit")})};
_.S.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
Vq.prototype.onDataChanged=Vq.prototype.onDataChanged;Vq.prototype.onExpandedChanged=Vq.prototype.onExpandedChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Vq.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Vq.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Vq.prototype,"data",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],Vq.prototype,"expanded",void 0);
_.m([_.Gb("expanded"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Vq.prototype,"onExpandedChanged",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Vq.prototype,"onDataChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],Vq);
_.I(Vq,"ytd-sponsorships-expandable-message-renderer",function(){if(wBn!==void 0)return wBn;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return wBn=g},{mode:_.My("kevlar_poly_si_batch_j028")?1:2});var SfT;var hG=function(){return _.a.apply(this,arguments)||this};
_.f(hG,_.a);hG.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"}}}}};
hG.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.n(this.data.endButton,_.Fd).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
hG.prototype.onDataChanged=hG.prototype.onDataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],hG.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],hG.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],hG.prototype,"data",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],hG.prototype,"onDataChanged",null);
_.m([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],hG);
_.I(hG,"ytd-sponsorships-heading-renderer",function(){if(SfT!==void 0)return SfT;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return SfT=g},{mode:1});var OSw;var Z7=function(){return _.a.apply(this,arguments)||this};
_.f(Z7,_.a);_.m([_.K(),_.L("design:type",Object)],Z7.prototype,"data",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Z7.prototype,"ytRendererBehavior",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],Z7);
_.I(Z7,"ytd-sponsorships-links-renderer",function(){if(OSw!==void 0)return OSw;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return OSw=g},{mode:1});var U$U;var yq=function(){return _.a.apply(this,arguments)||this};
_.f(yq,_.a);_.S=yq.prototype;_.S.onDataChanged=function(){if(this.data&&this.data.expandableItems){var g;(g=_.S3(this.hostElement).querySelector("tp-yt-paper-button"))==null||g.setAttribute("role","button")}else{var r;(r=_.S3(this.hostElement).querySelector("tp-yt-paper-button"))==null||r.removeAttribute("role")}};
_.S.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.S.getExpansionIcon=function(g){return g?"COLLAPSE":"EXPAND"};
_.S.getTileClasses=function(g){return g?"tile expandable-tile":"tile"};
_.S.getButtonDisabled=function(g){return g?void 0:""};
yq.prototype.onDataChanged=yq.prototype.onDataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],yq.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],yq.prototype,"data",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],yq.prototype,"expanded",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],yq.prototype,"onDataChanged",null);
_.m([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],yq);
_.I(yq,"ytd-sponsorships-list-tile-renderer",function(){if(U$U!==void 0)return U$U;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return U$U=g},{mode:1});var Mj6;var qfn;var vr=function(){return _.a.apply(this,arguments)||this};
_.f(vr,_.a);vr.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],vr.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],vr.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],vr.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],vr);
_.I(vr,"ytd-sponsorships-promotion-renderer",function(){if(qfn!==void 0)return qfn;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return qfn=g},{mode:1});var ug4;var dm=function(){return _.a.apply(this,arguments)||this};
_.f(dm,_.a);dm.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],dm.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],dm.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],dm.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],dm);
_.I(dm,"ytd-sponsorships-purchase-option-renderer",function(){if(ug4!==void 0)return ug4;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return ug4=g},{mode:1});var l_6;var D$A;var oSZ=function(){return _.a.apply(this,arguments)||this};
_.f(oSZ,_.a);_.m([_.K(),_.L("design:type",Object)],oSZ.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],oSZ);
_.I(oSZ,"ytd-ypc-offer-promo-renderer",function(){if(D$A!==void 0)return D$A;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return D$A=g},{mode:1});var Tq=function(){return _.a.apply(this,arguments)||this};
_.f(Tq,_.a);_.S=Tq.prototype;
_.S.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.expandableMessage":{id:"expandable-message",mapping:{sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.purchaseOption":{id:"purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},"data.alternativePurchaseOption":{id:"alternative-purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},
"data.offerPromoCard":{id:"offer-promo",mapping:{ypcOfferPromoRenderer:{component:"ytd-ypc-offer-promo-renderer"}}}}};
_.S.expansionCTA=function(g,r){return g&&(r?g.collapseCallToAction:g.expansionCallToAction)};
_.S.getExpansionIcon=function(g){return g?"COLLAPSE":"EXPAND"};
_.S.expansionCallToActionTap=function(){var g=this;this.expanded=!this.expanded;_.Lk(this,function(){_.Sh(g.hostElement,"yt-refit")})};
_.S.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var g,r=(g=this.data)==null?void 0:g.onVisible;r&&this.ytComponentBehavior.resolveCommand(r)};
_.S.computeDisplayTitle=function(g){return!(!g||this.titledisplaystatus!=="show")};
_.S.computeDisplaySeparator=function(){return!1};
_.S.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
Tq.prototype.onDataChanged=Tq.prototype.onDataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Tq.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Tq.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Tq.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Tq.prototype,"data",void 0);
_.m([_.K({value:!1}),_.L("design:type",Boolean)],Tq.prototype,"expanded",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],Tq.prototype,"purchaseButtonClicked",void 0);_.m([_.K({reflectToAttribute:!0,value:"show"}),_.L("design:type",String)],Tq.prototype,"titledisplaystatus",void 0);_.m([_.K({computed:"computeDisplayTitle(data.title)"}),_.L("design:type",Boolean)],Tq.prototype,"displayTitle",void 0);
_.m([_.K({computed:"computeDisplaySeparator(data)"}),_.L("design:type",Boolean)],Tq.prototype,"displaySeparator",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Tq.prototype,"onDataChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],Tq);
_.I(Tq,"ytd-sponsorships-tier-renderer",function(){if(l_6!==void 0)return l_6;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return l_6=g},{mode:2});var gC=function(){return _.a.apply(this,arguments)||this};
_.f(gC,_.a);
gC.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"}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],gC.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],gC.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],gC.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],gC);
_.I(gC,"ytd-sponsorships-management-renderer",function(){if(Mj6!==void 0)return Mj6;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return Mj6=g},{mode:1});var GfU;var rC=function(){return _.a.apply(this,arguments)||this};
_.f(rC,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],rC.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],rC.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],rC);
_.I(rC,"ytd-open-in-native-app-view-model",function(){if(GfU!==void 0)return GfU;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return GfU=g},{mode:_.My("kevlar_poly_si_batch_j028")?1:2});var QKn;var zdU;var kfw=_.me(["top-"]),HSm=_.me(["bottom-"]),pBn=_.me(["left-"]),YfD=_.me(["right-"]),RdD={},nSA=function(g,r,E){g.removeAttribute("top-"+E);g.removeAttribute("bottom-"+E);g.removeAttribute("left-"+E);g.removeAttribute("right-"+E);r&&(r.top&&_.ii([_.EY(kfw)],g,"top-"+E,r.top),r.bottom&&_.ii([_.EY(HSm)],g,"bottom-"+E,r.bottom),r.left&&_.ii([_.EY(pBn)],g,"left-"+E,r.left),r.right&&_.ii([_.EY(YfD)],g,"right-"+E,r.right))};
RdD.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(g){var r,E=_.S3((r=this.hostElement)!=null?r:this),B;r=this.cardItemBoxBehaviorMarginTargetId&&E?E.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(B=this.hostElement)!=null?B:this;nSA(r,g,"margin")},
cardItemContainerPaddingChanged_:function(g){var r,E=_.S3((r=this.hostElement)!=null?r:this),B;r=this.cardItemBoxBehaviorPaddingTargetId&&E?E.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(B=this.hostElement)!=null?B:this;nSA(r,g,"padding")}}];var Ep={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 sKD;var f_n;var BD=function(){return _.a.apply(this,arguments)||this};
_.f(BD,_.a);BD.prototype.textColorChanged_=function(){this.hostElement.style.color=Ep[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
BD.prototype.textColorChanged_=BD.prototype.textColorChanged_;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],BD.prototype,"ytRendererBehavior",void 0);_.m([_.P(RdD.YtCardItemBoxBehavior),_.L("design:type",Object)],BD.prototype,"ytCardItemBoxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],BD.prototype,"data",void 0);_.m([_.Gb("data.textColor"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],BD.prototype,"textColorChanged_",null);
_.m([_.e3({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],BD);
_.I(BD,"yt-card-item-text-renderer",function(){if(f_n===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;sKD===void 0&&(sKD=document.createElement("template"));var B=sKD;E.call(r,B.content.cloneNode(!0),g.content.firstChild);f_n=g}g=f_n;return g},{mode:2});var $$b;var jKI;var wC=function(){return _.a.apply(this,arguments)||this};
_.f(wC,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],wC.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],wC.prototype,"data",void 0);_.m([_.e3({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],wC);
_.I(wC,"yt-card-item-badge-renderer",function(){if(jKI===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;$$b===void 0&&($$b=document.createElement("template"));var B=$$b;E.call(r,B.content.cloneNode(!0),g.content.firstChild);jKI=g}g=jKI;return g},{mode:2});var APb;var bSn;var SJ=function(){return _.a.apply(this,arguments)||this};
_.f(SJ,_.a);SJ.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],SJ.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],SJ.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],SJ.prototype,"data",void 0);_.m([_.e3({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],SJ);
_.I(SJ,"yt-card-item-text-collection-renderer",function(){if(bSn===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;APb===void 0&&(APb=document.createElement("template"));var B=APb;E.call(r,B.content.cloneNode(!0),g.content.firstChild);bSn=g}g=bSn;return g},{mode:2});var JP4;var P3I;var Op=function(){return _.a.apply(this,arguments)||this};
_.f(Op,_.a);Op.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]]"}}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Op.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Op.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Op.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Number)],Op.prototype,"iconSize",void 0);_.m([_.e3({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],Op);
_.I(Op,"yt-card-item-text-with-button-renderer",function(){if(P3I===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;JP4===void 0&&(JP4=document.createElement("template"));var B=JP4;E.call(r,B.content.cloneNode(!0),g.content.firstChild);P3I=g}g=P3I;return g},{mode:2});var Up=function(){return _.a.apply(this,arguments)||this};
_.f(Up,_.a);Up.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"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Up.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Up.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Up.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Up.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],Up);
_.I(Up,"ytd-commerce-cart-summary-line-item-renderer",function(){if(zdU!==void 0)return zdU;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return zdU=g},{mode:1});_.ek("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Mj=function(){var g=_.a.apply(this,arguments)||this;g.hidden=!1;return g};
_.f(Mj,_.a);_.S=Mj.prototype;_.S.configureRendererStamper=function(){return{"data.estimatedTotalLineItem":{id:"estimated-total-line-item",mapping:{commerceCartSummaryLineItemRenderer:"ytd-commerce-cart-summary-line-item-renderer"}},"data.checkoutButton":{id:"checkout-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.cartButton":{id:"cart-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.S.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.S.updateSummary=function(){var g=this.commerceCartCheckoutButtonEntity,r;if(((r=this.data)==null?0:r.cartButton)&&g.checkoutSummaryText){var E,B=e7((E=this.data)==null?void 0:E.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+B+".cardItemTextRenderer.text",Wm(g.checkoutSummaryText));if(g.checkoutDetailText){var w;E=e7((w=this.data)==null?void 0:w.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+E+".cardItemTextRenderer.text",Wm(g.checkoutDetailText))}if(g.checkoutAdditionalMetadataText){var O;
w=e7((O=this.data)==null?void 0:O.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+w+".cardItemTextRenderer.text",Wm(g.checkoutAdditionalMetadataText))}}else g.estimatedTotalPrice&&(O=e7((B=this.data)==null?void 0:B.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+O+".cardItemTextRenderer.text",Wm(g.estimatedTotalPrice)))};
_.S.updateIsHidden=function(){var g,r=(g=this.commerceCartCheckoutButtonEntity)==null?void 0:g.isHidden;r!==void 0&&(this.hidden=r)};
_.S.updateCheckoutButton=function(){var g,r=(g=this.commerceCartCheckoutButtonEntity)==null?void 0:g.isDisabled;r!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",r);var E;g=(E=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:E.innertubeCommand;g!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",g);var B;E=(B=this.commerceCartCheckoutButtonEntity)==null?void 0:B.checkoutButtonText;E!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:E})};
Mj.prototype.entityChanged=Mj.prototype.entityChanged;_.m([_.P(_.Ai),_.L("design:type",Object)],Mj.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Mj.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Mj.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Mj.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Mj.prototype,"fullWidth",void 0);_.m([_.K(),_.L("design:type",Object)],Mj.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Mj.prototype,"compact",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Mj.prototype,"hidden",void 0);
_.m([_.K({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:C7P}),_.L("design:type",Object)],Mj.prototype,"commerceCartCheckoutButtonEntity",void 0);_.m([_.Gb("commerceCartCheckoutButtonEntity","data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Mj.prototype,"entityChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],Mj);
_.I(Mj,"ytd-commerce-cart-checkout-button-renderer",function(){if(QKn!==void 0)return QKn;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return QKn=g},{mode:2});var tjU;_.FiT={};
_.FiT.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",_.Do(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.Do(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(g){!this.tappableItemBehaviorTapEnabled||g.keyCode!==13&&g.keyCode!==32||g.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var g=this.data.onTap;g.ypcGetCartEndpoint?(_.q2(this.hostElement,[g]),this.tappableItemBehaviorTapEnabled=!1):g.ypcOffersEndpoint?_.q2(this.hostElement,[g]):_.uq(this.hostElement,[g],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(g){this.tappableItemBehaviorTapEnabled=!!g},
tappableItemBehaviorOnTapEnabledChanged_:function(){var g=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(g.setAttribute("tabIndex",0),g.setAttribute("role","button")):(g.removeAttribute("tabIndex"),g.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(g){g.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var edn;var Wi6;var qj=function(){return _.a.apply(this,arguments)||this};
_.f(qj,_.a);qj.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.WK("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.WK("sharingToggleButtonAndDefaultButton")}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],qj.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],qj.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],qj.prototype,"data",void 0);_.m([_.e3({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],qj);
_.I(qj,"yt-card-item-actions-renderer",function(){if(Wi6===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;edn===void 0&&(edn=document.createElement("template"));var B=edn;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Wi6=g}g=Wi6;return g},{mode:2});var C3A;var KiT;var x$6;var a_T;var XBw;var NKn;var u4=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return g};
_.f(u4,_.a);u4.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
u4.prototype.handleDarkModeToggledAction_=function(g){this.isDarkTheme_=g};
u4.prototype.computeThemeImage_=function(g,r){if(!g||!g.imageLight)return!1;this.isCircular_=g.isCircular;g.imageWidth&&(this.hostElement.style.width=g.imageWidth+"px");g.imageHeight&&(this.hostElement.style.height=g.imageHeight+"px");g.borderWidth&&(this.image.style.borderWidth=g.borderWidth+"px",this.image.style.borderStyle="solid");g.borderColor&&(this.image.style.borderColor=_.XT(g.borderColor));return r&&g.imageDark?g.imageDark:g.imageLight};
u4.prototype.computeThemeIcon_=function(g){var r,E;if(!(g==null?0:(r=g.themedIcon)==null?0:(E=r.icon)==null?0:E.iconType))return!1;this.icon.style.color=Ep[g.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(g.imageWidth||18)+"px";this.icon.style.height=(g.imageHeight||18)+"px";return _.Dh(g.themedIcon.icon.iconType)};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],u4.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],u4.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(RdD.YtCardItemBoxBehavior),_.L("design:type",Object)],u4.prototype,"ytCardItemBoxBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],u4.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],u4.prototype,"data",void 0);
_.m([_.K({value:!1}),_.L("design:type",Boolean)],u4.prototype,"fit",void 0);_.m([_.K(),_.L("design:type",Boolean)],u4.prototype,"isDarkTheme_",void 0);_.m([_.K({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.L("design:type",Object)],u4.prototype,"themeImage_",void 0);_.m([_.K({computed:"computeThemeIcon_(data)"}),_.L("design:type",Object)],u4.prototype,"themeIcon_",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Object)],u4.prototype,"isCircular_",void 0);
_.m([_.zb("#image"),_.L("design:type",Object)],u4.prototype,"image",void 0);_.m([_.zb("#icon"),_.L("design:type",Object)],u4.prototype,"icon",void 0);_.m([_.e3({is:"yt-themed-image-renderer",disableElementRegistration:!0})],u4);
_.I(u4,"yt-themed-image-renderer",function(){if(NKn===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;XBw===void 0&&(XBw=document.createElement("template"));var B=XBw;E.call(r,B.content.cloneNode(!0),g.content.firstChild);NKn=g}g=NKn;return g},{mode:2});var l4=function(){return _.a.apply(this,arguments)||this};
_.f(l4,_.a);l4.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"}}}}};
l4.prototype.computeImagePlacement_=function(g){return g||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],l4.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],l4.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],l4.prototype,"data",void 0);_.m([_.K({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.L("design:type",String)],l4.prototype,"imagePlacement",void 0);
_.m([_.e3({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],l4);
_.I(l4,"yt-card-item-text-with-image-renderer",function(){if(a_T===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;x$6===void 0&&(x$6=document.createElement("template"));var B=x$6;E.call(r,B.content.cloneNode(!0),g.content.firstChild);a_T=g}g=a_T;return g},{mode:2});var DG=function(){return _.a.apply(this,arguments)||this};
_.f(DG,_.a);DG.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"}}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],DG.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],DG.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],DG.prototype,"data",void 0);_.m([_.e3({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],DG);
_.I(DG,"yt-card-item-error-renderer",function(){if(KiT===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;C3A===void 0&&(C3A=document.createElement("template"));var B=C3A;E.call(r,B.content.cloneNode(!0),g.content.firstChild);KiT=g}g=KiT;return g},{mode:2});var I_w;var m$n;_.ek("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var od=function(){return _.a.apply(this,arguments)||this};
_.f(od,_.a);_.S=od.prototype;
_.S.configureRendererStamper=function(){return{"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",
mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"},cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},themedImageRenderer:{component:"yt-themed-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}},"data.errorRenderer":{id:"error-renderer",mapping:{cardItemErrorRenderer:{component:"yt-card-item-error-renderer"}}},"data.headerPromoRenderer":{id:"header-promo-renderer",
mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.footerRenderer":{id:"footer-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.S.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.S.backgroundColorChanged_=function(){var g,r=(g=this.data)==null?void 0:g.backgroundColor;g=Ep[r||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.S3(this.hostElement).querySelector("#main-content").style.backgroundColor=g};
_.S.headerPromoBackgroundColorChanged_=function(){var g,r=(g=this.data)==null?void 0:g.headerPromoBackgroundColor;g=Ep[r||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.S3(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=g};
_.S.errorRendererVisibilityChanged_=function(){var g=this.isExpanded_,r;this.isErrorRendererVisible_=!((r=this.data)==null||!r.errorRenderer)&&!g};
_.S.onYtToggleButton_=function(g,r){this.isExpanded_=r.toggled};
od.prototype.onYtToggleButton_=od.prototype.onYtToggleButton_;od.prototype.errorRendererVisibilityChanged_=od.prototype.errorRendererVisibilityChanged_;od.prototype.headerPromoBackgroundColorChanged_=od.prototype.headerPromoBackgroundColorChanged_;od.prototype.backgroundColorChanged_=od.prototype.backgroundColorChanged_;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],od.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],od.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(RdD.YtCardItemBoxBehavior),_.L("design:type",Object)],od.prototype,"ytCardItemBoxBehavior",void 0);_.m([_.P(_.FiT.YtTappableItemBehavior),_.L("design:type",Object)],od.prototype,"ytTappableItemBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],od.prototype,"data",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],od.prototype,"isExpanded_",void 0);
_.m([_.K({value:!1}),_.L("design:type",Boolean)],od.prototype,"isErrorRendererVisible_",void 0);_.m([_.Gb("data.backgroundColor"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],od.prototype,"backgroundColorChanged_",null);_.m([_.Gb("data.headerPromoBackgroundColor"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],od.prototype,"headerPromoBackgroundColorChanged_",null);
_.m([_.Gb("data.errorRenderer","isExpanded_"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],od.prototype,"errorRendererVisibilityChanged_",null);_.m([_.ob("yt-toggle-button"),_.L("design:type",Function),_.L("design:paramtypes",[Event,Object]),_.L("design:returntype")],od.prototype,"onYtToggleButton_",null);_.m([_.e3({is:"yt-card-item-renderer",disableElementRegistration:!0})],od);
_.I(od,"yt-card-item-renderer",function(){if(m$n===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;I_w===void 0&&(I_w=document.createElement("template"));var B=I_w;E.call(r,B.content.cloneNode(!0),g.content.firstChild);m$n=g}g=m$n;return g},{mode:2});_.ek("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var Gs=function(){var g=_.a.apply(this,arguments)||this;g.hidden=!1;return g};
_.f(Gs,_.a);_.S=Gs.prototype;_.S.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.S.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.S.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var g,r=(g=this.commerceCartHeaderEntity)==null?void 0:g.isHidden;r!==void 0&&(this.hidden=r)}};
_.S.updateTitle=function(){var g=this.commerceCartHeaderEntity.isDisabled,r,E,B=(E=_.n((r=this.data)==null?void 0:r.item,PTn))==null?void 0:E.headingRenderer;B&&(r=e7(B,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+r+".0.cardItemTextRenderer.textColor",g?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.S.updateSummaryText=function(){var g=this.commerceCartHeaderEntity;if(this.compact){var r,E,B=(E=_.n((r=this.data)==null?void 0:r.item,PTn))==null?void 0:E.headingRenderer;B&&(r=e7(B,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+r+".1.cardItemTextRenderer.text",g.shortHeaderSummaryText?Wm(g.shortHeaderSummaryText):g.headerSummaryText?Wm(g.headerSummaryText):""))}else{var w;if(r=(w=_.n((B=this.data)==null?void 0:B.item,PTn))==null?void 0:w.additionalInfoRenderer)r=e7(r,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+r+".text",g.headerSummaryText?Wm(g.headerSummaryText):"")}};
_.S.updateCheckoutButton=function(){var g=this.commerceCartHeaderEntity,r,E,B=(E=_.n((r=this.data)==null?void 0:r.item,PTn))==null?void 0:E.additionalInfoRenderer;r=e7(B,"buttonRenderer");var w;E=(w=this.commerceCartHeaderEntity)==null?void 0:w.isButtonDisabled;var O;w=(O=this.commerceCartHeaderEntity)==null?void 0:O.isButtonHidden;E!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+r+".buttonRenderer.isDisabled",E);w!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
w);var M;g=(M=g.checkoutButtonCommand)==null?void 0:M.innertubeCommand;g!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+r+".buttonRenderer.command",g)};
Gs.prototype.entityChanged=Gs.prototype.entityChanged;_.m([_.P(_.Ai),_.L("design:type",Object)],Gs.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Gs.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Gs.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Gs.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Gs.prototype,"compact",void 0);_.m([_.K({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(g,r){return _.u1(g.entities,"commerceCartHeaderEntity",r)}}),
_.L("design:type",Object)],Gs.prototype,"commerceCartHeaderEntity",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Gs.prototype,"hidden",void 0);_.m([_.Gb("commerceCartHeaderEntity","data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Gs.prototype,"entityChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],Gs);
_.I(Gs,"ytd-commerce-cart-header-renderer",function(){if(tjU!==void 0)return tjU;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return tjU=g},{mode:1});var cPD;var iSD=_.QW(function(g,r){var E;return(E=g.onChangeCallback)==null?void 0:E.call(g,r)},1E3),LiU=_.dG(function(g){var r=g.data;
var E=g.iconMinus;g=g.iconPlus;var B=function(){return!!r().disabled},w=_.U(_.Dk(0,void 0,"r56zNb")),O=w.next().value,M=w.next().value;
w={};w=_.QY("yt-spec-quantity-incrementer-shape__icon",(w["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return B()||O()===(r().onRemoveCommand?0:1)},w));
var u={};u=_.QY("yt-spec-quantity-incrementer-shape__icon",(u["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return O()>=r().maxValue||B()},u));
var l={};l=_.QY("yt-spec-quantity-incrementer-shape__text",(l["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return O()>r().maxValue},l["yt-spec-quantity-incrementer-shape__text--text-disabled"]=B,l));
var Q=_.HK(function(){if(O()===1){var k,H;(H=(k=r()).onRemoveCommand)==null||H.call(k)}k=O()>r().maxValue?r().maxValue:O()-1;M(k);iSD(r(),k);return!1}),z=_.HK(function(){if(O()===r().maxValue)return!1;
var k=O()+1;M(k);iSD(r(),k);return!1});
_.jS(function(){M(r().value)});
return _.G("quantity-incrementer-shape",null,_.G("div",{class:"yt-spec-quantity-incrementer-shape"},_.G("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return O()===(r().onRemoveCommand?0:1)||B()},
"aria-label":function(){return O()!==1?r().minusLabel:r().minimumReachedLabel},
"on:click":Q},_.G(_.jk,{model:{circular:!0}}),_.G("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.G("div",{class:w},E()))),_.G("div",{class:l},O),_.G("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return O()>=r().maxValue||B()},
"aria-label":function(){return O()!==r().maxValue?r().plusLabel:r().maximumReachedLabel},
"on:click":z},_.G(_.jk,{model:{circular:!0}}),_.G("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.G("div",{class:u},g())))))},"Zd");_.BK(_.dG(function(g){function r(){E().onRemoveCommand&&_.I3(E().onRemoveCommand)}
var E=g.data;var B=_.QU(n9D,function(){return E().quantityIncrementerEntityKey});
return _.G("yt-quantity-incrementer-view-model",null,_.G(LiU,{data:function(){var w=E(),O;var M=B()?!((O=B())==null||!O.disabled):!1;var u;O=B()?(u=B())==null?void 0:u.quantity:E().quantity;return LNX(w,M,r,O)},
iconMinus:function(){return _.G(_.nh,{icon:"BAR_HORIZONTAL",className:_.zw("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.G(_.nh,{icon:"ADD",className:_.zw("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"$d"),"yt-quantity-incrementer-view-model",{props:{data:_.cP}});var QE=function(){var g=_.a.apply(this,arguments)||this;g.compact=!1;g.hasQuantityIncrementer=!1;return g};
_.f(QE,_.a);QE.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"}}}};
QE.prototype.computeHasQuantityIncrementer=function(){var g;return!!_.n((g=this.data)==null?void 0:g.picker,WYZ)};
QE.prototype.onLabelClick=function(){var g;(g=this.dropdownEl)==null||g.open()};
_.m([_.zb("ytd-dropdown-renderer"),_.L("design:type",Object)],QE.prototype,"dropdownEl",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],QE.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],QE.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],QE.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],QE.prototype,"quantityColor",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],QE.prototype,"compact",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.L("design:type",Object)],QE.prototype,"hasQuantityIncrementer",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],QE);
_.I(QE,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(cPD!==void 0)return cPD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return cPD=g},{mode:1});var Vjw;var hdI;var zs=function(){return _.a.apply(this,arguments)||this};
_.f(zs,_.a);zs.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
zs.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
zs.prototype.updateTitle=function(){var g=this.disabledCartItemEntity;g.disableActionName&&this.set("data.title",Wm(g.disableActionName))};
zs.prototype.updateButton=function(){var g,r=(g=this.disabledCartItemEntity.undoCommand)==null?void 0:g.innertubeCommand;r!==void 0&&(this.set("data.actionButton.buttonRenderer.command",r),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
zs.prototype.entityChanged=zs.prototype.entityChanged;_.m([_.P(_.Ai),_.L("design:type",Object)],zs.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],zs.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],zs.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(g,r){return _.u1(g.entities,"disabledCartItemEntity",r)}}),
_.L("design:type",Object)],zs.prototype,"disabledCartItemEntity",void 0);_.m([_.K(),_.L("design:type",Object)],zs.prototype,"data",void 0);_.m([_.Gb("disabledCartItemEntity","data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],zs.prototype,"entityChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],zs);
_.I(zs,"ytd-disabled-cart-item-renderer",function(){if(hdI!==void 0)return hdI;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return hdI=g},{mode:1});_.ek("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var kJ=function(){var g=_.a.apply(this,arguments)||this;g.compact=!1;g.hidden=!1;g.errorHidden=!1;g.noOnTap=!1;return g};
_.f(kJ,_.a);_.S=kJ.prototype;
_.S.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.textMetadata":{id:"text-metadata",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.merchantUpdateText":{id:"merchant-update-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.cartItemNotification":{id:"cart-item-notification",mapping:{cardItemTextWithImageRenderer:"yt-card-item-text-with-image-renderer"}},"data.cardItemActions":{id:"cart-item-actions",
mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{disableTextTransform:"[[compact]]"}}},events:!0},"data.quantityPicker":{id:"quantity-picker",mapping:{commerceCartItemQuantityPickerRenderer:{component:"ytd-commerce-cart-item-quantity-picker-renderer",properties:{compact:"[[compact]]",quantityColor:"[[commerceCartItemEntity.quantityColor]]"}}}},"data.disabledCartItem":{id:"disabled-cart-item",mapping:{disabledCartItemRenderer:"ytd-disabled-cart-item-renderer"}}}};
_.S.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.S.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var g=this.firstButtonElement;g.alignByText=!0;g.iconAlignByText=!0}};
_.S.computeNoOnTap=function(g){return!g};
_.S.updateQuantityColor=function(){if(this.pickerElement){var g,r=(g=this.commerceCartItemEntity)==null?void 0:g.quantityColor;this.pickerElement.quantityColor=r}};
_.S.updateTotalPriceColor=function(){var g,r=(g=this.commerceCartItemEntity)==null?void 0:g.totalPriceColor;if(r){var E;g=_.n((E=this.data)==null?void 0:E.quantityPicker,FYm);if(E=_.n(g==null?void 0:g.price,tpD))E.textColor=r}};
_.S.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var g,r=(g=this.commerceCartItemEntity)==null?void 0:g.isHidden;r!==void 0&&(this.hidden=r)}};
_.S.updateHideErrorMessage=function(){var g,r=(g=this.commerceCartItemEntity)==null?void 0:g.hideErrorMessage;r!==void 0&&(this.errorHidden=r)};
_.S.updateQuantity=function(){var g=this,r,E=(r=this.commerceCartItemEntity)==null?void 0:r.quantity,B;r=(B=this.commerceCartItemEntity)==null?void 0:B.totalPrice;if(E){this.updateTotalPriceColor();this.updateQuantityColor();var w;B=_.n((w=this.data)==null?void 0:w.quantityPicker,FYm);if(w=_.n(B==null?void 0:B.price,tpD))w.text=r?{simpleText:r.content}:void 0;if(r=_.n(B==null?void 0:B.picker,WYZ))r.quantity=E;var O;if(w=(O=_.n(B==null?void 0:B.picker,Cz6))==null?void 0:O.entries){O=!1;r=void 0;w=
_.U(w);for(B=w.next();!B.done;B=w.next())B=B.value,B.dropdownItemRenderer&&(r||(r=B.dropdownItemRenderer),B.dropdownItemRenderer.isSelected=!1,E===B.dropdownItemRenderer.int32Value&&(O=!0,B.dropdownItemRenderer.isSelected=!0));!O&&r&&(r.isSelected=!0)}_.Lk(this,function(){var M;g.set("data.quantityPicker",_.jn.unsafeClone((M=g.data)==null?void 0:M.quantityPicker))})}};
kJ.prototype.onYtRendererstamperFinished=kJ.prototype.onYtRendererstamperFinished;kJ.prototype.entityChanged=kJ.prototype.entityChanged;_.m([_.K(),_.L("design:type",Object)],kJ.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],kJ.prototype,"compact",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],kJ.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],kJ.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],kJ.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],kJ.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(g,r){return _.u1(g.entities,"commerceCartItemEntity",r)}}),
_.L("design:type",Object)],kJ.prototype,"commerceCartItemEntity",void 0);_.m([_.K(),_.L("design:type",Object)],kJ.prototype,"quantityPicker",void 0);_.m([_.K(),_.L("design:type",Object)],kJ.prototype,"compactQuantityPicker",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],kJ.prototype,"hidden",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],kJ.prototype,"errorHidden",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.L("design:type",Object)],kJ.prototype,"noOnTap",void 0);_.m([_.zb("ytd-commerce-cart-item-quantity-picker-renderer"),_.L("design:type",Object)],kJ.prototype,"pickerElement",void 0);_.m([_.zb("yt-button-renderer"),_.L("design:type",Element)],kJ.prototype,"firstButtonElement",void 0);
_.m([_.Gb("commerceCartItemEntity","data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],kJ.prototype,"entityChanged",null);_.m([_.ob("yt-rendererstamper-finished"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],kJ.prototype,"onYtRendererstamperFinished",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],kJ);
_.I(kJ,"ytd-commerce-cart-item-renderer",function(){if(Vjw!==void 0)return Vjw;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return Vjw=g},{mode:_.My("kevlar_poly_si_batch_j028")?1:2});var ZSD;var yPT;var HD=function(){return _.a.apply(this,arguments)||this};
_.f(HD,_.a);HD.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}}}}}};
HD.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
HD.prototype.updateCheckoutLineItems=function(){var g,r=(g=this.commerceCartCheckoutButtonEntity)==null?void 0:g.checkoutLineItems;r&&(g=r.map(function(E){a:{var B=E.price,w=E.description;switch(E.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":E={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Wm(w),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",
left:"CARD_ITEM_UX_SPACE_4"}}},price:{cardItemTextRenderer:{text:Wm(B),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:E={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Wm(w),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",
right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",left:"CARD_ITEM_UX_SPACE_0"}}},price:{cardItemTextRenderer:{text:Wm(B),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 E}),this.set("data.summaryLineItems",g))};
HD.prototype.updateIsHidden=function(){var g,r=(g=this.commerceCartCheckoutButtonEntity)==null?void 0:g.isHidden;r!==void 0&&(this.hostElement.hidden=r)};
HD.prototype.entityChanged=HD.prototype.entityChanged;_.m([_.P(_.Ai),_.L("design:type",Object)],HD.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],HD.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],HD.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],HD.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],HD.prototype,"data",void 0);_.m([_.K({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:C7P}),_.L("design:type",Object)],HD.prototype,"commerceCartCheckoutButtonEntity",void 0);_.m([_.Gb("commerceCartCheckoutButtonEntity","data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],HD.prototype,"entityChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],HD);
_.I(HD,"ytd-commerce-cart-summary-renderer",function(){if(yPT!==void 0)return yPT;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return yPT=g},{mode:1});var vSw={};vSw.InjectBehavior=[rKl.InjectBehavior];var d$n;var TKw;var pr=function(){return _.a.apply(this,arguments)||this};
_.f(pr,_.a);
pr.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:_.WK("menuRenderer")}}};
pr.prototype.onMenuTap=function(g){g.stopPropagation()};
_.hx.Object.defineProperties(pr.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 g,r;return!(((g=this.data)==null||!g.sectionHeading)&&((r=this.data)==null?void 0:r.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var g,r;return!(((g=this.data)==null||!g.image)&&((r=this.data)==null?void 0:r.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var g,r;return!(((g=this.data)==null||!g.menu)&&((r=this.data)==null?void 0:r.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],pr.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],pr.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.FiT.YtTappableItemBehavior),_.L("design:type",Object)],pr.prototype,"ytTappableItemBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],pr.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.W("data.accessibilityData"),_.L("design:type",String),_.L("design:paramtypes",[])],pr.prototype,"ariaLabel",null);_.m([_.W("data.sectionHeading","data.layout"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],pr.prototype,"sectionHeadingVisible",null);_.m([_.W("data.image","data.layout"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],pr.prototype,"imageVisible",null);
_.m([_.W("data.menu","data.layout"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],pr.prototype,"menuVisible",null);_.m([_.e3({is:"yt-activity-item-renderer",disableElementRegistration:!0})],pr);
_.I(pr,"yt-activity-item-renderer",function(){if(TKw===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;d$n===void 0&&(d$n=document.createElement("template"));var B=d$n;E.call(r,B.content.cloneNode(!0),g.content.firstChild);TKw=g}g=TKw;return g},{mode:2});var gdw;var r4b;var EdD;var B1b;var YJ=function(){return _.a.apply(this,arguments)||this};
_.f(YJ,_.a);
YJ.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"}}}}};
YJ.prototype.backgroundColorChanged_=function(){var g,r=(g=this.data)==null?void 0:g.backgroundColor;this.hostElement.style.backgroundColor=Ep[r||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
YJ.prototype.backgroundColorChanged_=YJ.prototype.backgroundColorChanged_;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],YJ.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],YJ.prototype,"data",void 0);
_.m([_.Gb("data.backgroundColor"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],YJ.prototype,"backgroundColorChanged_",null);_.m([_.e3({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],YJ);
_.I(YJ,"yt-offer-item-upsell-renderer",function(){if(B1b===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;EdD===void 0&&(EdD=document.createElement("template"));var B=EdD;E.call(r,B.content.cloneNode(!0),g.content.firstChild);B1b=g}g=B1b;return g},{mode:2});_.ek("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var Rd=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};g.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return g};
_.f(Rd,_.a);_.S=Rd.prototype;
_.S.configureRendererStamper=function(){return{"data.baseRenderer":{id:"base",mapping:{cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0}}},"data.contents":{id:"contents",mapping:{commerceCartHeaderRenderer:{component:"ytd-commerce-cart-header-renderer",properties:{compact:"[[compact]]"},noInjection:!0},commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{fullWidth:"[[compact]]"}},commerceCartItemRenderer:{component:"ytd-commerce-cart-item-renderer",noInjection:!0,
properties:{compact:"[[compact]]"}},cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0},offerItemUpsellRenderer:{component:"yt-offer-item-upsell-renderer",noInjection:!0},activityItemRenderer:{component:"yt-activity-item-renderer",noInjection:!0}}},"data.continuationSection":{id:"continuation-section",mapping:_.WK("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.S.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.S.computeContainerStyle_=function(g){return g};
_.S.computeContainerIsHidden_=function(g){return g&&!!g.isHidden};
_.S.computeShowSpinner_=function(g,r){return g&&r==="in-progress"};
_.S.computeShowMoreContentsButton_=function(g,r,E,B,w){return!(!(B&&B.length||w&&w.length&&E)||!g||r)};
_.S.onToggleButton_=function(g){var r=this;g.stopPropagation();this.isExpanded_=g.detail&&g.detail.toggled;var E,B;this.isExpanded_&&!this.data.continuationSection.length&&((E=this.data)==null?0:(B=E.continuation)==null?0:B.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.Sh(this.hostElement,"yt-load-next-continuation",function(w){return r.getContinuationUrl_(r.data.continuation.onClickContinuationData,w)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.q2(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.S.onShowMoreContentsButtonClicked_=function(g){var r=this;g.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.Sh(this.hostElement,"yt-load-next-continuation",function(E){return r.getContinuationUrl_(r.data.continuations[0].nextContinuationData,E)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.q2(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.S.getContinuationUrl_=function(g,r){var E=g.continuation;g=g.clickTrackingParams;var B=_.PE();g&&B&&_.Lu(B,_.fW(g));return _.Vg(r,{continuation:E})};
_.S.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var g=_.S3(this.hostElement).querySelector("#continuation-section");g&&(g=g.querySelectorAll("ytmusic-item-section-renderer"))&&g.forEach(function(r){return r.classList.add("memberships-and-purchases")})};
_.S.dataChanged_=function(){var g;this.isExpanded_=!((g=this.data)==null||!g.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.S.updateCardOnClickCommand_=function(g){g=_.n(g,nQw);var r,E;this.data&&((r=this.data)==null?0:r.targetId)&&g&&g.targetId===((E=this.data)==null?void 0:E.targetId)&&g.onClickCommand&&(this.data.onClickCommand=g.onClickCommand,this.isOnClickCommand_=!0)};
_.S.backgroundColorChanged_=function(){var g,r=(g=this.data)==null?void 0:g.backgroundColor;this.hostElement.style.backgroundColor=Ep[r||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Rd.prototype.backgroundColorChanged_=Rd.prototype.backgroundColorChanged_;Rd.prototype.dataChanged_=Rd.prototype.dataChanged_;Rd.prototype.nextContinuationDataUpdated_=Rd.prototype.nextContinuationDataUpdated_;Rd.prototype.onToggleButton_=Rd.prototype.onToggleButton_;_.m([_.P(_.Xe),_.L("design:type",Object)],Rd.prototype,"ytContinuationHandlerBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Rd.prototype,"ytActionHandlerBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Rd.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Nv.YtNextContinuationBehavior),_.L("design:type",Object)],Rd.prototype,"ytNextContinuationBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Rd.prototype,"ytRendererBehavior",void 0);_.m([_.P(vSw.InjectBehavior),_.L("design:type",Object)],Rd.prototype,"injectBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Rd.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],Rd.prototype,"compact",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],Rd.prototype,"isExpanded_",void 0);_.m([_.K({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.L("design:type",String)],Rd.prototype,"containerStyle_",void 0);_.m([_.K({value:"not-started"}),_.L("design:type",String)],Rd.prototype,"continuationStatus_",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.L("design:type",Boolean)],Rd.prototype,"showSpinner_",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],Rd.prototype,"isOnClickCommand_",void 0);_.m([_.K({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.L("design:type",Boolean)],Rd.prototype,"showMoreContentsButton_",void 0);
_.m([_.K({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(g,r){return!r||g.entities?null:_.u1(g.entities,"cardItemContainerEntity",r)}}),
_.L("design:type",Object)],Rd.prototype,"cardItemContainerEntity_",void 0);_.m([_.ob("yt-toggle-button"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],Rd.prototype,"onToggleButton_",null);_.m([_.ob("yt-next-continuation-data-updated"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Rd.prototype,"nextContinuationDataUpdated_",null);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Rd.prototype,"dataChanged_",null);_.m([_.Gb("data.backgroundColor"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Rd.prototype,"backgroundColorChanged_",null);_.m([_.e3({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],Rd);
_.I(Rd,"yt-card-item-container-renderer",function(){if(r4b===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;gdw===void 0&&(gdw=document.createElement("template"));var B=gdw;E.call(r,B.content.cloneNode(!0),g.content.firstChild);r4b=g}g=r4b;return g},{mode:2});var nr=function(){return _.a.apply(this,arguments)||this};
_.f(nr,_.a);nr.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"}}}};
nr.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
nr.prototype.computeLoadingHidden=function(){var g;return!((g=this.commerceCartPageStateEntity)==null?0:g.cartActionInProgress)};
nr.prototype.updateNotification=function(){var g,r=(g=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:g.summaryText;r&&this.set("data.cartNotification",Wm(r))};
nr.prototype.notificationEntityChanged=nr.prototype.notificationEntityChanged;_.m([_.P(_.Ai),_.L("design:type",Object)],nr.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],nr.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],nr.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],nr.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],nr.prototype,"data",void 0);_.m([_.K({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(g,r){return _.u1(g.entities,"commerceCartExpandableNotificationEntity",r)}}),
_.L("design:type",Object)],nr.prototype,"commerceCartExpandableNotificationEntity",void 0);_.m([_.K({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(g,r){return _.u1(g.entities,"commerceCartPageStateEntity",r)}}),
_.L("design:type",Object)],nr.prototype,"commerceCartPageStateEntity",void 0);_.m([_.zb("#spinner"),_.L("design:type",HTMLElement)],nr.prototype,"spinner",void 0);_.m([_.Gb("commerceCartExpandableNotificationEntity","data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],nr.prototype,"notificationEntityChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],nr);
_.I(nr,"ytd-commerce-cart-renderer",function(){if(ZSD!==void 0)return ZSD;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return ZSD=g},{mode:1});var wx6;var sp=function(){var g=_.a.apply(this,arguments)||this;g.bigImage=!1;return g};
_.f(sp,_.a);_.hx.Object.defineProperties(sp.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.placeholderImageUrl}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],sp.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],sp.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],sp.prototype,"bigImage",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],sp.prototype,"placeholderImageUrl",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],sp);
_.I(sp,"ytd-empty-product-shelf-renderer",function(){if(wx6!==void 0)return wx6;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return wx6=g},{mode:1});var SjU;var fr=function(){var g=_.a.apply(this,arguments)||this;g.itemStyle="link-item";g.watchMetadataRefresh=!1;g.skinnyMode=!1;g.metaPanel=!1;g.inStructuredDescription=!1;g.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};g.updateOnResizeDebouncer=null;return g};
_.f(fr,_.a);_.S=fr.prototype;_.S.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.S.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{iconSize:16}},menuRenderer:"ytd-menu-renderer"}},"data.emptyProductShelf":{id:"empty-product",mapping:{emptyProductShelfRenderer:{component:"ytd-empty-product-shelf-renderer"}}}}};
_.S.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.S.attachVEs=function(g){g.trackingParams&&_.pW().graftServerVe(g.trackingParams)};
_.S.handleUpdateMerchShelfAction=function(g){var r=this,E=_.n(g.updateMerchandiseShelfAction.merchandiseShelf,_.E7m);E&&(E.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){r.attachVEs(E);r.data=E},Number(E.renderDelayMs))):(this.attachVEs(E),this.data=E))};
_.S.updateOnResize=function(){if(this.JSC$14840_scrollContainer!==void 0&&this.JSC$14840_scrollContainer.clientWidth!==0&&this.items!==void 0){var g=this.JSC$14840_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-g));this.ytdHorizontalListBehavior.reposition_();var r;switch((r=this.data)==null?void 0:r.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var E,
B;((E=this.data)==null?void 0:(B=E.items)==null?void 0:B.length)===1?this.itemStyle="cta-item":this.itemStyle=g>=740?"large-item":"small-item"}}};
_.S.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.g3(this.updateOnResizeDebouncer,_.IM.after(100),this.updateOnResize)};
fr.prototype.debouncedUpdateOnResize=fr.prototype.debouncedUpdateOnResize;fr.prototype.dataChanged=fr.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],fr.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],fr.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.yR.YtdHorizontalListBehavior),_.L("design:type",Object)],fr.prototype,"ytdHorizontalListBehavior",void 0);
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],fr.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],fr.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],fr.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],fr.prototype,"itemStyle",void 0);_.m([_.K({value:6}),_.L("design:type",Number)],fr.prototype,"initialCount",void 0);
_.m([_.K({value:"data.items"}),_.L("design:type",String)],fr.prototype,"itemsPath",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],fr.prototype,"watchMetadataRefresh",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],fr.prototype,"skinnyMode",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],fr.prototype,"metaPanel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],fr.prototype,"inStructuredDescription",void 0);
_.m([_.zb("#items"),_.L("design:type",HTMLDivElement)],fr.prototype,"items",void 0);_.m([_.zb("#scroll-container"),_.L("design:type",HTMLDivElement)],fr.prototype,"JSC$14840_scrollContainer",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],fr.prototype,"dataChanged",null);_.m([_.ob("iron-resize"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],fr.prototype,"debouncedUpdateOnResize",null);
_.m([_.N({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],fr);
_.I(fr,"ytd-merch-shelf-renderer",function(){if(SjU!==void 0)return SjU;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return SjU=g},{mode:2});var OzD;var $J=function(){var g=_.a.apply(this,arguments)||this;g.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 g};
_.f($J,_.a);_.S=$J.prototype;
_.S.addBackstagePostAction=function(g){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(g=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",g))&&(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:g}):this.set("data.contents",[{backstagePostThreadRenderer:g}]))};
_.S.addBackstageCommentAction=function(g){var r=this.get("addBackstageCommentAction.parentId",g);g=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",g);if(r&&g){r=this.postIdToIndices(r);for(var E=0;E<r.length;E++){var B=r[E];if(B<0)break;B="data.contents."+B+".backstagePostThreadRenderer.comments";this.get(B)&&(this.get(B+".backstageCommentsRenderer.contents")&&this.push(B+".backstageCommentsRenderer.contents",{commentThreadRenderer:g}),this.get(B+".backstageCommentsRenderer.teaserContents")?
this.push(B+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:g}):this.set(B+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:g}]))}}};
_.S.addBackstageReplyAction=function(g){var r=this.get("addBackstageReplyAction.parentId",g);g=this.get("addBackstageReplyAction.renderer.commentRenderer",g);r&&g&&this.setCreatorReply(r,g)};
_.S.banAuthorAction=function(g){var r=this.get("banAuthorAction.commentId",g);r&&(g=this.get("banAuthorAction.parentCommentId",g)||this.getParentPostId(r),this.removeFromStream(r,g))};
_.S.hideReportedCommentAction=function(g){var r=this.get("hideReportedCommentAction.commentId",g);r&&((g=this.get("hideReportedCommentAction.parentCommentId",g))||(g=this.getParentPostId(r)),this.removeFromStream(r,g))};
_.S.replaceBackstageCommentAction=function(g){var r=this.get("replaceBackstageCommentAction.commentId",g),E=this.get("replaceBackstageCommentAction.parentId",g);g=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",g);if(r&&E&&g){E=this.postIdToIndices(E);for(var B=0;B<E.length;B++){var w=E[B];if(w<0)break;var O=this.commentIdToIndex(r,w,!1);if(O>=0){var M=this.get("data.contents."+w+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+O+".commentThreadRenderer.replies.commentRepliesRenderer");
M&&(g.replies={commentRepliesRenderer:M});this.splice("data.contents."+w+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",O,1,{commentThreadRenderer:g})}O=this.commentIdToIndex(r,w,!0);if(O>=0){if(M=this.get("data.contents."+w+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(O+".commentThreadRenderer.replies.commentRepliesRenderer")))g.replies={commentRepliesRenderer:M};this.splice("data.contents."+w+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
O,1,{commentThreadRenderer:g})}}}};
_.S.replaceBackstagePostAction=function(g){var r=this.get("replaceBackstagePostAction.itemId",g);if(r){r=this.postIdToIndices(r);for(var E=0;E<r.length;E++){var B=r[E];if(B<0)break;var w=this.getPostRendererType(B),O=this.get("replaceBackstagePostAction.renderer."+w,g);if(!O&&w!=="sharedPostRenderer")break;var M=!1;O||(M=!0,O=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",g));if(!O)break;var u={};M?(_.FI(u,yQI,O),this.set("data.contents."+B+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
u)):(_.FI(u,new _.V(w),O),this.set("data.contents."+B+".backstagePostThreadRenderer.post",u))}}};
_.S.replaceBackstageReplyAction=function(g){var r=this.get("replaceBackstageReplyAction.replyId",g),E=this.get("replaceBackstageReplyAction.parentId",g);g=this.get("replaceBackstageReplyAction.renderer.commentRenderer",g);r&&g&&E&&this.setCreatorReply(E,g)};
_.S.removeCommentAction=function(g){var r=this.get("removeCommentAction.commentId",g);if(r){var E=this.get("removeCommentAction.parentCommentId",g);E&&this.get("removeCommentAction.isCreatorReply",g)?this.setCreatorReply(E,void 0):(E||(E=this.getParentPostId(r)),this.removeFromStream(r,E))}};
_.S.setCreatorReply=function(g,r){var E=this.getParentPostId(g);if(E){E=this.postIdToIndices(E);for(var B=0;B<E.length;B++){var w=E[B];if(w<0)break;var O=this.commentIdToIndex(g,w,!1);if(O>=0){var M="data.contents."+w+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+O;O=M+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";M+=".commentThreadRenderer.replies";r==void 0?(this.set(M,{}),this.set(O,!1)):(this.set(M,{commentRepliesRenderer:{teaserContents:[{commentRenderer:r}]}}),
this.set(M+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(O,!0))}O=this.commentIdToIndex(g,w,!0);O>=0&&(O="data.contents."+w+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+O,w=O+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",O+=".commentThreadRenderer.replies",r==void 0?(this.set(O,{}),this.set(w,!1)):(this.set(O,{commentRepliesRenderer:{teaserContents:[{commentRenderer:r}]}}),this.set(w,!0)))}}};
_.S.removeFromStream=function(g,r){if(r){r=this.postIdToIndices(r);for(var E=0;E<r.length;E++){var B=r[E];if(B<0)break;var w=this.commentIdToIndex(g,B,!1);w>=0&&this.splice("data.contents."+B+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",w,1);w=this.commentIdToIndex(g,B,!0);w>=0&&this.splice("data.contents."+B+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",w,1);B="data.contents."+B+".backstagePostThreadRenderer.post.backstagePostRenderer";
w=B+".backstageAttachment.pollRenderer.votedCommentId";this.get(w)===g&&(this.set(w,null),this.set(B+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(r=this.postIdToIndices(g).reverse(),E=0;E<r.length;E++){B=r[E];if(B<0)break;w=this.getPostRendererType(B);var O=this.get("backstagePostThreadRenderer.post."+w,this.data.contents[B]);O.postId===g?this.splice("data.contents",B,1):w==="sharedPostRenderer"&&this.set("data.contents."+B+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);O.scheduledPublishTimeSec&&_.OS(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.S.postIdToIndices=function(g){for(var r=[],E=0;E<this.data.contents.length;E++){var B=this.getPostRendererType(E);this.get("backstagePostThreadRenderer.post."+B+".postId",this.data.contents[E])===g&&r.push(E);if(B==="sharedPostRenderer"){var w=this.get("backstagePostThreadRenderer.post."+B+".originalPost.backstagePostRenderer.postId",this.data.contents[E]);B=this.get("backstagePostThreadRenderer.post."+B+".originalPost.postRenderer.postId",this.data.contents[E]);w!==g&&B!==g||r.push(E)}}return r};
_.S.commentIdToIndex=function(g,r,E){if(r<0)return-1;var B,w,O,M,u=_.n((B=this.data)==null?void 0:(w=B.contents)==null?void 0:(O=w[r])==null?void 0:(M=O.backstagePostThreadRenderer)==null?void 0:M.comments,hHn);return(r=E?u==null?void 0:u.teaserContents:u==null?void 0:u.contents)&&r.length?r.findIndex(function(l){return _.n(l,JXn).comment.commentRenderer.commentId===g}):-1};
_.S.getParentPostId=function(g){g=g.split(".");if(g[1])return g[0]};
_.S.getPostRendererType=function(g){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[g])?"sharedPostRenderer":"backstagePostRenderer"};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],$J.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],$J.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-backstage-items"})],$J);
_.I($J,"ytd-backstage-items",function(){if(OzD!==void 0)return OzD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return OzD=
g},{mode:1});var UGm;var Mo4={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},jJ=function(){var g=_.a.apply(this,arguments)||this;g.disablePrescanVisibility=!0;g.canScheduleJobs=!0;g.engagementPanel=!1;g.hidePanelButton=!1;g.isWatchGrid=!1;g.hasShownSubscribersOnlyDisclaimer=!1;g.actionMap=
{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};return g};
_.f(jJ,_.a);_.S=jJ.prototype;_.S.created=function(){this.initCommentsCsi_()};
_.S.contentsChanged_=function(){var g;(g=this.data)!=null&&g.contents&&this.tickForCommentsTimer_("cml")};
_.S.headerChanged_=function(){var g;(g=this.data)!=null&&g.header&&this.tickForCommentsTimer_("cmhl")};
_.S.initCommentsCsi_=function(){_.tg("wn_comments");var g=_.PE();g&&_.Pk({clientScreenNonce:g},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.S.createCommentAction_=function(g){g=_.jn.unsafeClone(g);var r,E;if(g=(r=_.n(g,Yzz))==null?void 0:(E=r.contents)==null?void 0:E.commentThreadRenderer){var B,w,O,M,u,l;!this.isBackstage&&((B=this.data)==null?0:(w=B.header)==null?0:(O=w.commentsHeaderRenderer)==null?0:(M=O.createRenderer)==null?0:(u=M.commentSimpleboxRenderer)==null?0:(l=u.zeroStep)==null?0:l.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var Q,
z,k;this.isBackstage&&_.n((Q=this.data)==null?void 0:(z=Q.header)==null?void 0:(k=z.commentsHeaderRenderer)==null?void 0:k.zeroStateMessage,vID)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(g)}};
_.S.doReplyInsert_=function(g,r,E,B){B?this.splice(g,B,0,r):this.push(g,r)};
_.S.getRepliesPath_=function(g){return"data.contents."+g+".commentThreadRenderer.replies"};
_.S.getRepliesContentsPath_=function(g,r){g=this.getRepliesPath_(g);return r?g+".commentRepliesRenderer.teaserContents":g+".commentRepliesRenderer.contents"};
_.S.showSubscribersOnlyDisclaimer_=function(g){(g=g.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(g=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(g))&&(_.OS(this.hostElement,"yt-open-popup-action",[g,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.S.createCommentReplyAction_=function(g){g=_.jn.unsafeClone(g);var r=_.n(g,R$m);if(g=r==null?void 0:r.contents){var E=this.commentIdToIndex_(r==null?void 0:r.parentCommentId);if(!(E<0)){var B=this.getRepliesPath_(E);if(this.get(B)){r=r.replyToCommentId;B=this.getRepliesContentsPath_(E,!1);if(this.get(B)){var w=this.get(B).length,O=B+"."+(w-1)+".continuationItemRenderer";this.get(O+".button")?(O=this.replyIdToIndex_(r,E,!1),this.doReplyInsert_(B,g,O,w-1)):this.get(O)||(w=this.replyIdToIndex_(r,E,
!1),this.doReplyInsert_(B,g,w,null))}B=this.getRepliesContentsPath_(E,!0);this.get(B)?(E=this.replyIdToIndex_(r,E,!0),(!r||E>=0)&&this.doReplyInsert_(B,g,E,null)):this.set(B,[g])}else this.set(B,{commentRepliesRenderer:{teaserContents:[g]}})}}};
_.S.hideReportedCommentAction_=function(g){var r=_.n(g,Itz);if(g=r==null?void 0:r.commentId)r=this.get("parentCommentId",r),g=g.replace("#","."),r||(r=this.getParentCommentId_(g)),this.remove_(g,r)};
_.S.getParentCommentId_=function(g){g=g.split(".");if(g[1])return g[0]};
_.S.removeCommentAction_=function(g){var r=_.n(g,jUU);if(g=r==null?void 0:r.commentId)r=r==null?void 0:r.parentCommentId,g=g.replace("#","."),r||(r=this.getParentCommentId_(g)),this.remove_(g,r)};
_.S.pinCommentAction_=function(g){g=_.jn.unsafeClone(g);var r=_.n(g,$Ew);r!=null&&r.commentId&&(g=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",g))&&(this.remove_(r.commentId),this.insert_(g,!0))};
_.S.unpinCommentAction_=function(g){g=_.jn.unsafeClone(g);g=_.n(g,AXn);if(g!=null&&g.commentId){var r,E,B=(r=g.actionResult)==null?void 0:(E=r.update)==null?void 0:E.commentThreadRenderer;B&&(this.remove_(g.commentId),this.insert_(B))}};
_.S.banAuthorAction_=function(g){var r=_.n(g,pLT);r!=null&&r.commentId&&(g=r.parentCommentId,r=r.commentId.replace("#","."),g||(g=this.getParentCommentId_(r)),this.remove_(r,g))};
_.S.commentIdToIndex_=function(g){var r;return g&&(r=this.data)!=null&&r.contents?this.data.contents.findIndex(function(E){E=E.commentThreadRenderer;var B;return g===((E==null?void 0:E.commentViewModel)&&((B=_.n(E.commentViewModel,CRD))==null?void 0:B.commentId))}):-1};
_.S.insert_=function(g,r){r=r===void 0?!1:r;var E,B;if((E=this.data)==null?0:(B=E.contents)==null?0:B.some(function(O){return!!O.commentThreadRenderer}))for(E=0,B=this.data.contents.length;E<B;E++){var w=this.data.contents[E].commentThreadRenderer;
if(Mo4[g.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=Mo4[w.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){r&&Mo4[g.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===Mo4[w.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",E,1,{commentThreadRenderer:g}):this.splice("data.contents",E,0,{commentThreadRenderer:g});break}}else this.set("data.contents",[{commentThreadRenderer:g}])};
_.S.doReplyRemove_=function(g,r,E){g=this.replyIdToIndex_(g,r,E);g<0||(r=this.getRepliesContentsPath_(r,E),this.splice(r,g,1))};
_.S.remove_=function(g,r){r=this.commentIdToIndex_(r);r<0?(r=this.commentIdToIndex_(g),r<0||this.splice("data.contents",r,1)):(this.doReplyRemove_(g,r,!1),this.doReplyRemove_(g,r,!0))};
_.S.replyIdToIndex_=function(g,r,E){if(r<0)return-1;r=this.getRepliesContentsPath_(r,E);r=this.get(r);if(!r||!r.length)return-1;E=0;for(var B=r.length;E<B;E++){var w=void 0,O=void 0;if(((w=r[E])==null?void 0:(O=w.commentViewModel)==null?void 0:O.commentId)===g)return E}return-1};
_.S.tickForCommentsTimer_=function(g){_.eh(g,void 0,"wn_comments")};
_.S.reloadComments_=function(g){g=_.n(g,e$n);_.n(g==null?void 0:g.command,_.x3)&&_.q2(this.hostElement,[g==null?void 0:g.command])};
_.hx.Object.defineProperties(jJ.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return!!((g=this.data)==null?0:(r=g.header)==null?0:(E=r.commentsHeaderRenderer)==null?0:E.isBackstageContent)}}});
_.hx.Object.defineProperties(jJ,{template:{configurable:!0,enumerable:!0,get:function(){if(UGm===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);UGm=g}g=UGm;return g}}});
jJ.prototype.showSubscribersOnlyDisclaimer_=jJ.prototype.showSubscribersOnlyDisclaimer_;jJ.prototype.headerChanged_=jJ.prototype.headerChanged_;jJ.prototype.contentsChanged_=jJ.prototype.contentsChanged_;_.m([_.P(_.cY),_.L("design:type",Object)],jJ.prototype,"ytdOpenPopupBehavior",void 0);_.m([_.P(_.w4l.YtHostElementBehavior),_.L("design:type",Object)],jJ.prototype,"ytHostElementBehavior",void 0);
_.m([_.P(_.a9.YtPlayerListenerBehavior),_.L("design:type",Function)],jJ.prototype,"ytPlayerListenerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],jJ.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],jJ.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],jJ.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.W("data.header.commentsHeaderRenderer.isBackstageContent"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],jJ.prototype,"isBackstage",null);_.m([_.K(),_.L("design:type",Object)],jJ.prototype,"disablePrescanVisibility",void 0);_.m([_.K(),_.L("design:type",Object)],jJ.prototype,"canScheduleJobs",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],jJ.prototype,"engagementPanel",void 0);
_.m([_.K(),_.L("design:type",Object)],jJ.prototype,"hidePanelButton",void 0);_.m([_.K(),_.L("design:type",Object)],jJ.prototype,"isWatchGrid",void 0);_.m([_.K(),_.L("design:type",Object)],jJ.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.m([_.Gb("data.contents"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],jJ.prototype,"contentsChanged_",null);
_.m([_.Gb("data.header"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],jJ.prototype,"headerChanged_",null);_.m([_.ob("yt-show-subscribers-only-disclaimer"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],jJ.prototype,"showSubscribersOnlyDisclaimer_",null);_.m([_.N({is:"ytd-comments"})],jJ);var AE=function(){return _.Hi.apply(this,arguments)||this};
_.f(AE,_.Hi);_.S=AE.prototype;_.S.bindIf=function(g,r,E){return g?r:E};
_.S.bindIfDefined=function(g,r){return g!==void 0?g:r};
_.S.booleanString=function(g){return(!!g).toString()};
_.S.equals=function(){for(var g=_.fI.apply(0,arguments),r=g[0],E=1;E<g.length;E++)if(r!=g[E])return!1;return!0};
_.S.isGreaterThan=function(g,r){return g>r};
_.S.isLessThan=function(g,r){return g<r};
_.S.logicalAND=function(){for(var g=_.fI.apply(0,arguments),r=!!g[0],E=1;E<g.length;E++)r=r&&!!g[E];return r};
_.S.logicalOR=function(){for(var g=_.fI.apply(0,arguments),r=!!g[0],E=1;E<g.length;E++)r=r||!!g[E];return r};
_.S.toBool=function(g){return!!g};
AE.prototype.toBool=AE.prototype.toBool;AE.prototype.logicalOR=AE.prototype.logicalOR;AE.prototype.logicalAND=AE.prototype.logicalAND;AE.prototype.isLessThan=AE.prototype.isLessThan;AE.prototype.isGreaterThan=AE.prototype.isGreaterThan;AE.prototype.equals=AE.prototype.equals;AE.prototype.booleanString=AE.prototype.booleanString;AE.prototype.bindIfDefined=AE.prototype.bindIfDefined;AE.prototype.bindIf=AE.prototype.bindIf;_.m([_.pR()],AE);_.qjZ=[AE.prototype];var usn;var lSD;var b4=function(){return _.a.apply(this,arguments)||this};
_.f(b4,_.a);b4.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
b4.prototype.onBackIconTap_=function(){window.history.back()};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],b4.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],b4.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],b4.prototype,"data",void 0);_.m([_.e3({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],b4);
_.I(b4,"yt-header-with-back-renderer",function(){if(lSD===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;usn===void 0&&(usn=document.createElement("template"));var B=usn;E.call(r,B.content.cloneNode(!0),g.content.firstChild);lSD=g}g=lSD;return g},{mode:2});var DGn;var od6;var JE=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return g};
_.f(JE,_.a);_.S=JE.prototype;_.S.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.S.onDarkModeToggledAction=function(g){g!==this.isDarkTheme&&(this.isDarkTheme=g,this.setUrl())};
_.S.dataChanged=function(){var g=this;if(this.data){var r=this.setUrl();r&&_.hX({destination:window,iframe:this.iframe,origin:_.X64(r.toString()),channelName:"yt-iframe",onMessage:function(E){(E=g.getCommunicationCommand(E.data))&&g.ytComponentBehavior.resolveCommand(E)},
onEstablished:function(){}})}};
_.S.setUrl=function(){if(this.data&&this.data.iframeUrl){var g=_.eE(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(g)return _.ta(this.iframe,g),g}};
_.S.getCommunicationCommand=function(g){var r;if((r=this.data)!=null&&r.onCommunicationCommandsMap){r=this.data.onCommunicationCommandsMap.find(function(w){return w.key===g});
if(r==null?0:r.value)return r==null?void 0:r.value;try{var E=oQb(_.Mz(g)),B=this.data.onCommunicationCommandsMap.find(function(w){return w.key===(E==null?void 0:_.jI(E,1))});
if(B==null?0:B.value)return B==null?void 0:B.value}catch(w){}}};
JE.prototype.dataChanged=JE.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],JE.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],JE.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],JE.prototype,"actionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],JE.prototype,"data",void 0);
_.m([_.K({value:!1}),_.L("design:type",Boolean)],JE.prototype,"isDarkTheme",void 0);_.m([_.zb("#iframe"),_.L("design:type",HTMLIFrameElement)],JE.prototype,"iframe",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],JE.prototype,"dataChanged",null);_.m([_.e3({is:"yt-iframe-renderer",disableElementRegistration:!0})],JE);
_.I(JE,"yt-iframe-renderer",function(){if(od6===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;DGn===void 0&&(DGn=document.createElement("template"));var B=DGn;E.call(r,B.content.cloneNode(!0),g.content.firstChild);od6=g}g=od6;return g},{mode:2});_.PD=function(g){_.f5.call(this);this.callback=g;this.bezier=new JOw(0,0,.4,0,.2,1,1,1);this.delay=new _.dH(this.next,window,this);this.JSC$14883_animating=!1;_.oO(this,this.delay)};
_.f(_.PD,_.f5);_.PD.prototype.isAnimating=function(){return this.JSC$14883_animating};
_.PD.prototype.start=function(g,r,E){this.config={from:g,to:r,duration:E,startTime:(0,_.g2)()};this.JSC$14883_animating=!0;this.next()};
_.PD.prototype.stop=function(){this.delay.stop();this.JSC$14883_animating=!1;this.config=void 0};
_.PD.prototype.next=function(){if(this.config){var g=this.config,r=g.from,E=g.to,B=g.duration;g=g.startTime;var w=(0,_.g2)()-g;g=this.bezier;B=tNT(g,w/B);if(B==0)g=g.y0;else if(B==1)g=g.y3;else{w=k4(g.y0,g.y1,B);var O=k4(g.y1,g.y2,B);g=k4(g.y2,g.y3,B);w=k4(w,O,B);O=k4(O,g,B);g=k4(w,O,B)}g=_.bj(g,0,1);this.callback(r+(E-r)*g);g<1?this.delay.start():this.JSC$14883_animating=!1}};_.tE=new _.Vn("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var GKw={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},zun=function(g,r,E,B){_.f5.call(this);this.JSC$14891_miniAppId=g;this.localReleaseId=r;this.derivedDeviceInterface=E;this.isForeground=B;this.JSC$14891_playNonceResolver=new _.uF;this.playPingTimerId=NaN;this.playPingIntervalMs=_.wM("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.wM("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.Y("enable_displaying_ppn");this.JSC$14891_miniAppClientDataProvider=_.rM().resolve(_.tE);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;QtD(this);var w=setTimeout(function(){_.el(new _.Rj("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14891_playNonceResolver.promise.then(function(){clearTimeout(w)})};
_.f(zun,_.f5);var HzD=function(g,r){g.JSC$14891_playNonceResolver.resolve(r!=null?r:AF(8));g.enableDisplayingPpn&&kKn(g).then(function(E){g.JSC$14891_miniAppClientDataProvider.clientData.set("post_play_nonce",E)})},kKn=function(g){return _.q(function(r){return r.nextAddress==1?_.D(r,g.JSC$14891_playNonceResolver.promise,2):r.return(r.yieldResult)})},QtD=function(g){var r,E;
_.q(function(B){if(B.nextAddress==1)return _.D(B,g.JSC$14891_playNonceResolver.promise,2);r=B.yieldResult;E={miniAppInfo:{externalPostId:g.JSC$14891_miniAppId,localReleaseId:g.localReleaseId,postPlayNonce:r,derivedDeviceInterface:g.derivedDeviceInterface}};_.Pk(E);_.Q3(B)})},Yj6=function(g){g.state!==0?_.el(new _.Rj("[MiniAppPlayLogger] recordPlayStart failed with state "+GKw[g.state])):(g.state=1,Fy(g,"ma_cl"),eJ(g,"PLAY_EVENT_TYPE_PLAY_START"),pxz(g))},Ruw=function(g){g.isForeground=!1;
eJ(g,"PLAY_EVENT_TYPE_PLAY_PAUSE")},nd4=function(g){g.state!==1&&g.state!==2?_.el(new _.Rj("[MiniAppPlayLogger] recordPlayEnd failed with state "+GKw[g.state])):(g.state=3,window.clearInterval(g.playPingTimerId),g.playPingTimerId=NaN,SZD(),eJ(g,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},stn=function(g,r){g.state===2&&g.gameReady&&(g.firstClickRecorded?Date.now()-g.clickRecordedMs<g.playClickIntervalMs||(g.clickRecordedMs=Date.now(),eJ(g,"PLAY_EVENT_TYPE_PLAY_CLICK")):r&&(Fy(g,"ma_fua"),eJ(g,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),g.firstClickRecorded=!0,g.clickRecordedMs=Date.now()))};
zun.prototype.logError=function(g){var r=this,E;_.q(function(B){if(B.nextAddress==1)return g.metadata.externalPostId=r.JSC$14891_miniAppId,E=g.metadata,_.D(B,Promise.race([r.JSC$14891_playNonceResolver.promise,new Promise(function(w){setTimeout(function(){w("")},3E4)})]),2);
E.postPlayNonce=B.yieldResult;g.metadata.localReleaseId=r.localReleaseId;g.loggingError.level="WARNING";_.tn(g.loggingError,g.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:g.metadata});_.Q3(B)})};
var fSI=function(g,r,E,B){var w,O,M,u,l,Q;_.q(function(z){if(z.nextAddress==1)return _.D(z,g.JSC$14891_playNonceResolver.promise,2);w=z.yieldResult;O={externalPostId:g.JSC$14891_miniAppId,localReleaseId:g.localReleaseId,postPlayNonce:w,sdkVersion:E,api:r};B!==void 0&&(O.networkRequestsMeasurement={networkRequests:_.wY(B,1),cachedRequests:_.wY(B,2),transferredBytes:_.wY(B,3)},(M=B)==null?0:_.Qt(M,il,6))&&(O.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((u=_.zP(B,
il,6))==null?void 0:bR(u,1))||"0",cacheHits:((l=_.zP(B,il,6))==null?void 0:bR(l,2))||"0",cachedBytes:((Q=_.zP(B,il,6))==null?void 0:bR(Q,3))||"0"});_.Jn("miniAppSdkUsage",O);_.Q3(z)})},jtz=function(g,r,E){var B,w,O,M,u,l,Q,z,k,H,R,A,J,e,C,X;
_.q(function(Z){if(Z.nextAddress==1)return _.D(Z,g.JSC$14891_playNonceResolver.promise,2);B=Z.yieldResult;w={externalPostId:g.JSC$14891_miniAppId,localReleaseId:g.localReleaseId,postPlayNonce:B,sdkVersion:E,measurementWindow:{startTimestampMs:String(fx(r,1)),endTimestampMs:String(fx(r,2))},frameRate:{averageFrameTimeDeltaMs:$2(r,3),averageFrameIdleTimeMs:$2(r,4)}};_.Qt(r,L7,5)&&(w.networkRequests={networkRequests:(O=Tt(r))==null?void 0:_.wY(O,1),cachedRequests:(M=Tt(r))==null?void 0:_.wY(M,2),transferredBytes:(u=
Tt(r))==null?void 0:_.wY(u,3),sameOriginStatusCodeToCounts:$GI((l=Tt(r))==null?void 0:Etl(l,4)),crossOriginStatusCodeToCounts:$GI((Q=Tt(r))==null?void 0:Etl(Q,5))},(z=Tt(r))==null?0:_.Qt(z,il,6))&&(w.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((k=Tt(r))==null?void 0:(H=_.zP(k,il,6))==null?void 0:bR(H,1))||"0",cacheHits:((R=Tt(r))==null?void 0:(A=_.zP(R,il,6))==null?void 0:bR(A,2))||"0",cachedBytes:((J=Tt(r))==null?void 0:(e=_.zP(J,il,6))==null?void 0:bR(e,3))||"0"});_.Qt(r,
i0D,7)&&(w.gameCapture={averageFrameTimeDeltaMs:(C=_.zP(r,i0D,7))==null?void 0:$2(C,1),averageFrameIdleTimeMs:(X=_.zP(r,i0D,7))==null?void 0:$2(X,2)});_.Jn("miniAppPerformanceMetrics",w);_.Q3(Z)})},A4n=function(g,r,E){var B,w;
return _.q(function(O){if(O.nextAddress==1)return _.D(O,g.JSC$14891_playNonceResolver.promise,2);B=O.yieldResult;w={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:g.JSC$14891_miniAppId,postPlayNonce:B,miniAppReleaseId:g.localReleaseId},derivedDeviceInterface:g.derivedDeviceInterface,adTriggerType:r};w.rejectedReason=E||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.Jn("miniAppAdEvent",w);_.Q3(O)})};
zun.prototype.disposeInternal=function(){_.f5.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var eJ=function(g,r,E,B){E=E===void 0?{}:E;B=B===void 0?!1:B;var w,O,M,u;_.q(function(l){if(l.nextAddress==1)return w=g.isForeground,O=g.beforeReady,_.D(l,g.JSC$14891_playNonceResolver.promise,2);M=l.yieldResult;u={externalPostId:g.JSC$14891_miniAppId,localReleaseId:g.localReleaseId,derivedDeviceInterface:g.derivedDeviceInterface,postPlayNonce:M,type:r};E.sequenceGroup=M;u.playState=O?"PLAY_STATE_NOT_READY":w?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.Jn("miniAppPlayEvent",u,E);
B&&_.Pf();_.Q3(l)})},Fy=function(g,r){var E;
_.q(function(B){if(B.nextAddress==1)return E=(0,_.g2)(),_.D(B,g.JSC$14891_playNonceResolver.promise,2);_.F4(r,E);_.Q3(B)})},pxz=function(g){isNaN(g.playPingTimerId)&&(g.playPingTimerId=_.qe(function(){g.state!==1&&g.state!==2?_.el(new _.Rj("[MiniAppPlayLogger] reportPlayPing failed with state "+GKw[g.state])):eJ(g,"PLAY_EVENT_TYPE_PLAY_PING")},g.playPingIntervalMs))},$GI=function(g){return Array.from(g.entries()).map(function(r){var E=_.U(r);
r=E.next().value;E=E.next().value;return{key:r,value:E}})};var bzw=_.wM("show_mini_app_ad_frequency_cap_ms",0),J4A=function(){this.showAdIntervalMs=bzw;this.isRateLimited=!0},Pkm=function(g,r){setTimeout(function(){return g.isRateLimited=!1},g.showAdIntervalMs);
g.showMiniAppAdCommand=r.showMiniAppAdCommand;g.isEmbeddedInWebview=r.isEmbeddedInWebview;g.playLogger=r.playLogger},FjT=function(g,r){var E;
return _.q(function(B){if(B.nextAddress==1){if(!g.showMiniAppAdCommand||!g.isEmbeddedInWebview)return B.return(to6(g,r,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(g.isRateLimited)return B.return(to6(g,r,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));g.adResolver=new _.uF;E=YGb(new $T,r);xj(g.showMiniAppAdCommand,RgU(E));g.isRateLimited=!0;setTimeout(function(){return g.isRateLimited=!1},g.showAdIntervalMs);
return _.D(B,g.adResolver.promise,2)}return B.return(B.yieldResult)})};
J4A.prototype.onAdFinished=function(g){g=njI(g);var r;(r=this.adResolver)==null||r.resolve(g)};
var to6=function(g,r,E){var B;return _.q(function(w){if(w.nextAddress==1)w=_.D(w,(B=g.playLogger)==null?void 0:A4n(B,dAY(r),E),2);else{var O=w.return;var M=new RiU;M=_.B8(M,1,2);w=O.call(w,M)}return w})};var eub=new _.Vn("INNERTUBE_MANAGER_TOKEN");var Wj6=function(){this.callbacks={}};
Wj6.prototype.initialize=function(g){var r=this;this.callbacks=g;window.youtubewebview?window.youtubewebview.onmessage=function(E){Ckn(r,E)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(E){Ckn(r,E)})};
var Ckn=function(g,r){if(r.data)try{var E=oQb(r.data);if(_.IA(_.GE(E,1))!=null){var B=Geb(_.jI(E,2));switch(_.jI(E,1)){case "yt-mini-app-load-audio-state":var w,O;(O=(w=g.callbacks).onAudioStateLoaded)==null||O.call(w,_.sz(B,YK(B,fY,1)));break;case "yt-mute-mini-app":var M,u;(u=(M=g.callbacks).onMuteMiniApp)==null||u.call(M);break;case "yt-unmute-mini-app":var l,Q;(Q=(l=g.callbacks).onUnmuteMiniApp)==null||Q.call(l);break;case "yt-playable-exit":var z,k;(k=(z=g.callbacks).onExit)==null||k.call(z);
break;case "yt-post-play-nonce":var H,R;(R=(H=g.callbacks).onPostPlayNonceReceived)==null||R.call(H,JX(B,2,fY));break;case "yt-confirm-exit-mini-app":var A,J;(J=(A=g.callbacks).confirmExitMiniApp)==null||J.call(A);break;case "yt-confirm-exit-mini-app-edu":var e,C;(C=(e=g.callbacks).confirmExitMiniAppEdu)==null||C.call(e);break;case "yt-benchmarking-response":var X,Z;(Z=(X=g.callbacks).onNativeBenchmarkingMessageReceived)==null||Z.call(X,JX(B,2,fY));break;case "yt-mini-app-load-3p-consent-state":var c,
h;(h=(c=g.callbacks).multiplayer3pAckStateLoaded)==null||h.call(c,_.sz(B,YK(B,fY,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var y,OD;(OD=(y=g.callbacks).exitMiniAppSeenStateLoaded)==null||OD.call(y,_.sz(B,YK(B,fY,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var uB,zS;(zS=(uB=g.callbacks).onNavigateToNewMiniApp)==null||zS.call(uB);break;case "yt-game-data-available":var jV,PJ;(PJ=(jV=g.callbacks).onGameDataAvailable)==null||PJ.call(jV,JX(B,2,fY));break;case "yt-pause-mini-app":var At,
XY;(XY=(At=g.callbacks).onPauseMiniApp)==null||XY.call(At);break;case "yt-resume-mini-app":var xc,rg;(rg=(xc=g.callbacks).onResumeMiniApp)==null||rg.call(xc);break;case "yt-playable-ad-finished":var $t,tD;(tD=($t=g.callbacks).onAdFinished)==null||tD.call($t,JX(B,2,fY))}}else _.el(Error("Xh"))}catch(GD){_.tn(Error("Yh"))}else _.el(Error("Zh"))};var g6V=function(g){this.rpcErrorCode=g};var WD=function(g,r,E){this.intervalMs=g;this.apiFunc=r;this.type=E;this.schedulerReady=!0};
WD.prototype.call=function(g){var r=this,E;return _.q(function(B){if(B.nextAddress==1){if(r.type!==1&&g===r.cachedValue)return B.return();r.pendingApiRequestResolver||(r.pendingApiRequestResolver=new _.uF);E=r.pendingApiRequestResolver.promise;r.cachedValue=g;return _.D(B,Kjz(r),2)}return B.return(E)})};
WD.prototype.flush=function(g){g=g===void 0?!1:g;var r=this;return _.q(function(E){return r.cachedValue===void 0?E.return():_.D(E,r.apiFunc(r.cachedValue,g),0)})};
var Kjz=function(g){var r,E,B;return _.q(function(w){switch(w.nextAddress){case 1:if(!g.schedulerReady||!g.pendingApiRequestResolver)return w.return();g.schedulerReady=!1;r=g.pendingApiRequestResolver;g.pendingApiRequestResolver=void 0;_.qN(w,2);if(g.cachedValue===void 0){w.jumpTo(4);break}return _.D(w,g.apiFunc(g.cachedValue),5);case 5:E=w.yieldResult,r.resolve(E);case 4:_.Ne(w,3);break;case 2:B=_.G2(w),r.reject(B);case 3:setTimeout(function(){return _.q(function(O){g.schedulerReady=!0;return _.D(O,
Kjz(g),0)})},g.intervalMs),_.Q3(w)}})};var Bfc=window.location.origin+"/miniapp_cloudsaves",rdl=[400,401],xGT=_.wM("cloud_save_game_data_rate_limit_ms",3E3),N1D=function(g){var r=this;this.JSC$14935_miniAppId=g;this.loadAttempts=0;this.cloudSaveIntervalMs=xGT;this.initialDownloadDataSucceeded=!1;this.JSC$14935_playNonceResolver=new _.uF;this.scottyUploadRateLimiter=new WD(this.cloudSaveIntervalMs,function(E,B){return aS4(r,E,B)},2);
this.downloadDataPromise=Xxw(this);this.downloadDataPromise.then(function(){r.initialDownloadDataSucceeded=!0}).catch(function(){})},ISb=function(g,r){r.then(function(E){return g.JSC$14935_playNonceResolver.resolve(E)})},mG6=function(g){return _.q(function(r){return g.cachedData===void 0?r.return(g.downloadDataPromise):r.return(g.cachedData)})},c4U=function(g,r){return _.q(function(E){g.cachedData=r;
if(!g.initialDownloadDataSucceeded)throw Error("$h");return _.D(E,g.scottyUploadRateLimiter.call(r),0)})},izn=function(){return new Promise(function(g){setTimeout(g,1E3,"")})},LjU=function(g,r){var E,B;
return _.q(function(w){if(w.nextAddress==1)return E=g.JSC$14935_miniAppId,_.D(w,Promise.race([g.JSC$14935_playNonceResolver.promise,izn()]),2);B={"X-YouTube-MiniAppId":E,"X-YouTube-PostPlayNonce":w.yieldResult};"DELEGATED_SESSION_ID"in _.eS&&xHP(r,B);return w.return(B)})},aS4=function(g,r,E){E=E===void 0?!1:E;
return _.q(function(B){return TaB()?_.Y("enable_cloud_save_error_popup_after_retry")?B.return(new Promise(function(w,O){var M,u,l,Q,z;return _.q(function(k){switch(k.nextAddress){case 1:M=0,u=!0,Q=l=null;case 2:if(!(u&&M++<2)){k.jumpTo(4);break}_.qN(k,5);return _.D(k,Von(g,r,E),7);case 7:l=k.yieldResult;u=l.ok?!1:!rdl.includes(l.status);_.Ne(k,2);break;case 5:Q=z=_.G2(k);u=E6t(Q);k.jumpTo(2);break;case 4:l?l.ok?(Cr(g,xGT),w()):(Cr(g,g.cloudSaveIntervalMs*2),O(Error("ai`"+String(l.status),{cause:{rpcErrorCode:l.status}}))):
(Cr(g,g.cloudSaveIntervalMs*2),O(Q||Error("bi"))),_.Q3(k)}})})):B.return(new Promise(function(w,O){var M,u;
return _.q(function(l){if(l.nextAddress==1){if(g.JSC$14935_miniAppId==="")return O(Error("ci")),l.return();_.qN(l,2);return _.D(l,Von(g,r,E),4)}if(l.nextAddress!=2)return M=l.yieldResult,M.ok?(Cr(g,xGT),w()):(Cr(g,g.cloudSaveIntervalMs*2),O(Error("ai`"+String(M.status),{cause:{rpcErrorCode:M.status}}))),_.Ne(l,0);u=_.G2(l);Cr(g,g.cloudSaveIntervalMs*2);O(u);_.Q3(l)})})):B.return()})},Von=function(g,r,E){E=E===void 0?!1:E;
var B,w,O;return _.q(function(M){if(M.nextAddress==1)return B=_.gk((new TextEncoder).encode(r)),w=wIQ(),_.D(M,LjU(g,w),2);O=M.yieldResult;return M.return(fetch(w,{method:"POST",body:new Blob([B]),headers:O,keepalive:E}))})},Xxw=function(g){var r,E;
return _.q(function(B){if(B.nextAddress==1){if(!TaB())return B.return("");if(g.JSC$14935_miniAppId==="")throw Error("ci");if(g.loadAttempts>2)return B.return(g.downloadDataPromise);_.qN(B,2);return _.D(B,huw(g),4)}if(B.nextAddress!=2)return r=B.yieldResult,B.return(r);E=_.G2(B);if(E6t(E)&&++g.loadAttempts<2)return B.return(Xxw(g));throw E;})},huw=function(g){var r,E,B,w,O;
return _.q(function(M){switch(M.nextAddress){case 1:return _.qN(M,2),r=wIQ(),_.D(M,LjU(g,r),4);case 4:return E=M.yieldResult,_.D(M,fetch(r,{method:"GET",headers:E}),5);case 5:return B=M.yieldResult,B.ok?_.D(M,B.text(),6):M.return(Promise.reject(Error("di`"+String(B.status),{cause:new g6V(B.status)})));case 6:return w=M.yieldResult,M.return((new TextDecoder).decode(_.Mz(w)));case 2:return O=_.G2(M),M.return(Promise.reject(O))}})},Cr=function(g,r){g.cloudSaveIntervalMs=r;
g.scottyUploadRateLimiter.intervalMs=g.cloudSaveIntervalMs};
N1D.prototype.flush=function(){var g=this;return _.q(function(r){return g.initialDownloadDataSucceeded?_.D(r,g.scottyUploadRateLimiter.flush(!0),0):r.return()})};var Zzz=vA(yV(1),hA(1)),y4b=vA(yV(1),hA(3)),Kr=function(g){this.callbacks=g};
_.S=Kr.prototype;_.S.onAudioToggled=function(g,r){(r===void 0||r)&&_.S2("yt-mini-app-is-audio-enabled",g,2592E3)};
_.S.onPause=function(){this.onAudioToggled(!1,!1)};
_.S.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.S.returnNativeBenchmarkingMessage=function(){};
_.S.sendGameData=function(){};
_.S.sendStartGameFrameCapture=function(){};
var SsJ=function(g,r,E){this.callbacks=g;var B=this;this.sdkVersion=new _.uF;this.channel=new cVl(_.hX({destination:window,iframe:r,origin:(new URL(E.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var w=xJ;var O=yV(5);var M=new t7n;M=_.tX(M,1,1E4);O=_.ws(O,4,Xmw,M);w(B,O);B.onAudioToggled(B.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){B.sdkVersion.resolve("")},1E4)};
_.f(SsJ,Kr);_.S=SsJ.prototype;_.S.onAudioToggled=function(g,r){Kr.prototype.onAudioToggled.call(this,g,r===void 0?!0:r);r=xJ;var E=yV(2),B=new Jlm;g=_.qd(B,1,g);g=_.ws(E,3,Xmw,g);r(this,g)};
_.S.onPause=function(){Kr.prototype.onPause.call(this);xJ(this,yV(3))};
_.S.onResume=function(){Kr.prototype.onResume.call(this);xJ(this,yV(4))};
_.S.returnNativeBenchmarkingMessage=function(g){var r=xJ,E=yV(6);var B=hA(_.Qt(g,Nf,1)?1:2);g=_.Qt(g,Nf,1)?g:null;B=_.ws(B,5,ZE,g);r(this,vA(E,B))};
_.S.sendGameData=function(g){var r=xJ,E=yV(7);g=_.ws(E,5,Xmw,g);r(this,g)};
_.S.sendStartGameFrameCapture=function(){xJ(this,yV(9))};
var ad=function(g,r,E){var B,w,O;return _.q(function(M){if(M.nextAddress==1)return B=g.callbacks,w=B.onSdkCalled,O=r,_.D(M,g.sdkVersion.promise,2);w.call(B,O,M.yieldResult,E);_.Q3(M)})};
SsJ.prototype.onMessage=function(){var g=this;return VmL(gy,function(r){var E,B,w,O,M,u,l,Q,z,k,H,R,A,J,e,C,X,Z,c,h,y,OD,uB,zS,jV,PJ,At,XY,xc,rg,$t,tD,GD,xb,zL,AD,lA,pt,Mo,un,sw,J8,Rm,Lw,cb,ZI;return _.q(function(Ow){switch(Ow.nextAddress){case 1:if(!Z0w(r.data))return _.el(Error("ei")),Ow.return();E=_.AX(r.data,1);_.Y("enable_iframe_message_get_type_via_fields")&&(B=r.data,E=w=_.AX(B,1));switch(E){case 8:if(r.data.hasMetadata()){var XZ=g.sdkVersion,RA=XZ.resolve;var kb=r.data.getMetadata();kb=_.jI(kb,
1);RA.call(XZ,kb);clearTimeout(g.sdkVersionTimeoutId)}break;case 6:return Ow.jumpTo(2);case 16:if(!_.zE(r.data,mqb,14,ry))return Ow.return();O=_.PL(r.data,mqb,14,ry);(u=(M=g.callbacks).onGameFrameReceived)==null||u.call(M,O);return Ow.return();case 17:if(!_.zE(r.data,Ipm,15,ry))return Ow.return();(Q=(l=g.callbacks).onGameAudioReceived)==null||Q.call(l,_.PL(r.data,Ipm,15,ry));return Ow.return();case 1:if(XZ=_.PL(r.data,W7U,2,ry))switch(_.AX(XZ,1)){case 1:g.callbacks.onFirstFrameReady();if(_.Y("enable_network_request_logging_on_game_events")&&
_.Qt(XZ,L7,4)){ad(g,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.zP(XZ,L7,4));break}ad(g,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(kb=(RA=g.callbacks).onGameReady)==null||kb.call(RA);if(_.Y("enable_network_request_logging_on_game_events")&&_.Qt(XZ,L7,4)){ad(g,"MINI_APP_SDK_API_GAME_READY",_.zP(XZ,L7,4));break}ad(g,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.zE(XZ,VV,3,CPw))g.callbacks.onResourceLoaded(_.PL(XZ,VV,3,CPw))}return Ow.return();case 3:return Ow.jumpTo(3);case 4:return Ow.jumpTo(4);
case 2:return Ow.jumpTo(5);case 9:return Ow.jumpTo(6);case 10:return g.callbacks.onClick(),Ow.return();case 5:return Ow.jumpTo(7);case 11:if(!_.zE(r.data,mM,9,ry))return Ow.return();z=_.PL(r.data,mM,9,ry);(H=(k=g.callbacks).onBenchmarkingMessageReceived)==null||H.call(k,z);XZ=r.reply;RA=yV(1);kb=hA(1);var bn=new mM;var D4=new Uint8Array(oEt(z,YK(z,fpD,6))|0);bn=oI(bn,5,fpD,_.Cw(D4,!1));kb=_.ws(kb,5,ZE,bn);XZ.call(r,vA(RA,kb));return Ow.return();case 12:return Ow.jumpTo(8);case 13:return Ow.jumpTo(9);
case 15:if(!_.Y("enable_open_yt_content"))return r.reply(y4b),Ow.return();if(!_.zE(r.data,N0n,12,ry))return r.reply(vA(yV(1),hA(2))),Ow.return();XZ=_.PL(r.data,N0n,12,ry);R=_.jI(XZ,1);g.callbacks.onOpenYTContent(R);r.reply(Zzz);return Ow.return();case 14:return Ow.jumpTo(10);default:return Ow.return()}Ow.jumpTo(0);break;case 2:if(!_.zE(r.data,dn,5,ry))return Ow.return();RA=r.data;XZ=YK(RA,ry,5);RA=RA.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(XZ=JB(RA,RA[_.Yb]|0,dn,XZ))||(XZ=dn[im])||
(XZ=new dn,$b(XZ.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),XZ=dn[im]=XZ);A=XZ;XZ=_.ER(A,cA,1,_.BT());J=_.U(XZ);e=J.next();case 12:if(e.done){Ow.jumpTo(14);break}C=e.value;X=new _.Rj;X.level=_.AX(C,2)===1?"WARNING":"ERROR";Z=U5J(C.getSource());return _.D(Ow,g.sdkVersion.promise,15);case 15:c={source:Z,sdkVersion:Ow.yieldResult};_.Yt(_.GE(C,6))!=null?(X.message=C.getMessage(),X.stack=_.jI(C,5),c.sdkErrorType=MFB(_.AX(C,6)),_.Yt(_.GE(C,7))!=null&&(c.sdkApi=qsV(_.AX(C,7)))):X.stack=void 0;
y=h=void 0;(y=(h=g.callbacks).onError)==null||y.call(h,{loggingError:X,metadata:c});e=J.next();Ow.jumpTo(12);break;case 14:return Ow.return();case 3:return _.qN(Ow,16),XZ=g.callbacks,RA=XZ.onSave,kb=_.PL(r.data,PPI,4,ry),kb=_.jI(kb,1),_.D(Ow,RA.call(XZ,kb),18);case 18:r.reply(Zzz);_.Ne(Ow,17);break;case 16:return OD=_.G2(Ow),uB=az,zS=OD,jV=g.callbacks,PJ="MINI_APP_SDK_API_SAVE_DATA",_.D(Ow,g.sdkVersion.promise,19);case 19:uB(zS,jV,PJ,Ow.yieldResult),r.reply(y4b);case 17:return _.D(Ow,ad(g,"MINI_APP_SDK_API_SAVE_DATA"),
20);case 20:return Ow.return();case 4:return _.qN(Ow,21),_.D(Ow,g.callbacks.onLoad(),23);case 23:At=Ow.yieldResult;XZ=r.reply;RA=yV(1);kb=hA(1);bn=new PPI;bn=_.H$(bn,1,At);kb=_.ws(kb,3,ZE,bn);XZ.call(r,vA(RA,kb));_.Ne(Ow,22);break;case 21:return XY=_.G2(Ow),xc=az,rg=XY,$t=g.callbacks,tD="MINI_APP_SDK_API_LOAD_DATA",_.D(Ow,g.sdkVersion.promise,24);case 24:xc(rg,$t,tD,Ow.yieldResult),r.reply(y4b);case 22:return _.D(Ow,ad(g,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return Ow.return();case 5:_.qN(Ow,
26);g.callbacks.onSendHighScore(eL(_.PL(r.data,V7n,3,ry).getValue()));r.reply(vA(yV(1),hA(1)));_.Ne(Ow,27);break;case 26:return GD=_.G2(Ow),xb=az,zL=GD,AD=g.callbacks,lA="MINI_APP_SDK_API_SEND_SCORE",_.D(Ow,g.sdkVersion.promise,28);case 28:xb(zL,AD,lA,Ow.yieldResult),r.reply(y4b);case 27:return _.D(Ow,ad(g,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return Ow.return();case 6:if(!_.zE(r.data,hiA,8,ry)){Ow.jumpTo(30);break}XZ=_.PL(r.data,hiA,8,ry);XZ=_.AX(XZ,1);return _.D(Ow,ad(g,qsV(XZ)),30);case 30:return Ow.return();
case 7:return XZ=r.reply,RA=yV(1),kb=hA(1),bn=g.callbacks.getLanguage(),kb=oI(kb,4,ZE,NM(bn)),XZ.call(r,vA(RA,kb)),_.D(Ow,ad(g,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return Ow.return();case 8:if(!_.zE(r.data,L7D,10,ry))return Ow.return();pt=_.PL(r.data,L7D,10,ry);Mo=g.callbacks;un=Mo.onSdkPerformanceUpdate;return _.D(Ow,g.sdkVersion.promise,33);case 33:return un.call(Mo,pt,Ow.yieldResult),Ow.return();case 9:XZ=r.data;RA=YK(XZ,ry,11);if(_.IA(_.GE(XZ,RA))==null)return r.reply(vA(yV(1),hA(2))),
Ow.return();sw=JX(r.data,11,ry);g.callbacks.onShareInviteCode(sw);r.reply(Zzz);return _.D(Ow,ad(g,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return Ow.return();case 10:if(_.zE(r.data,b0n,13,ry)){Ow.jumpTo(35);break}return _.D(Ow,g.callbacks.onShowMiniAppAd(2),36);case 36:return J8=Ow.yieldResult,r.reply(vA(yV(1),xqD(J8))),_.D(Ow,ad(g,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return Ow.return();case 35:XZ=_.PL(r.data,b0n,13,ry);a:switch(_.AX(XZ,1)){case 1:XZ={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:XZ={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:XZ={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}Rm=XZ;Lw=Rm.adType;cb=Rm.sdkApi;XZ=g.callbacks;RA=XZ.onShowMiniAppAd;kb=_.PL(r.data,b0n,13,ry);kb=_.jI(kb,2);return _.D(Ow,RA.call(XZ,Lw,kb||void 0),38);case 38:return ZI=Ow.yieldResult,r.reply(vA(yV(1),xqD(ZI))),_.D(Ow,ad(g,cb),39);case 39:return Ow.return()}})})};
var xJ=function(g,r){_.q(function(E){g.channel.send(r);_.Q3(E)})},Xu=function(g,r,E){this.callbacks=g;
var B=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;g=UsA(r,(new URL(E.toString())).origin);this.gameSnacks=new O_l(g);this.gameSnacks.page.onReady(function(){B.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){B.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var w,O;(O=(w=B.callbacks).onGameReady)==null||O.call(w)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(w,O){try{B.callbacks.onSendHighScore(O)}catch(M){az(M,B.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(w,O){var M;return _.q(function(u){if(u.nextAddress==1)return _.qN(u,2),_.D(u,B.callbacks.onSave(B.decoder.decode(O)),4);if(u.nextAddress!=2)return _.Ne(u,0);M=_.G2(u);az(M,B.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return u.return()})});
this.gameSnacks.storage.onLoad(function(){var w,O;return _.q(function(M){if(M.nextAddress==1)return _.qN(M,2),_.D(M,B.callbacks.onLoad(),4);if(M.nextAddress!=2)return w=M.yieldResult,M.return(B.encoder.encode(w));O=_.G2(M);az(O,B.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return M.return(B.encoder.encode(""))})});
this.gameSnacks.init()};
_.f(Xu,Kr);Xu.prototype.onAudioToggled=function(g,r){Kr.prototype.onAudioToggled.call(this,g,r===void 0?!0:r);var E;(E=this.gameSnacks)==null||E.audio.update(g)};
Xu.prototype.onPause=function(){Kr.prototype.onPause.call(this);var g;(g=this.gameSnacks)==null||g.game.pause()};
Xu.prototype.onResume=function(){Kr.prototype.onResume.call(this);var g;(g=this.gameSnacks)==null||g.game.resume()};var vdD=uUo,dGw=_.dG(function(g){var r=g.data;var E=g.loadingProgress;g=_.U(_.Dk("",void 0,"LYYTdd"));var B=g.next().value,w=g.next().value;g=_.U(_.Dk(!1,void 0,"K0waae"));var O=g.next().value,M=g.next().value,u=[],l=function(){return"transform: scaleX("+(_.t5(E)||0)+")"},Q=null,z=function(){return r()&&Q!==null&&Q!==void 0?Q:Q=r().showAnniversaryAnimation?6:vdD()};
_.bQ(function(){var A;if(r().timeOutMessages&&((A=r().timeOutMessages)==null?0:A.length)){Q=null;A=_.U(u);for(var J=A.next();!J.done;J=A.next())clearTimeout(J.value);u.length=0;lMV(r().timeOutMessages,u,w,M)}},"BNu9j");
var k=function(){return!!r().persistentErrorMessageTitle},H=function(){return E!==void 0},R=function(){return r().title};
return _.G("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.G("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.G("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.G("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var A,J=(A=r().backgroundImage)==null?void 0:A.sources,e;return(J==null?0:J.length)?"background-image: url("+((e=J[0])==null?void 0:e.url)+")":
""}}),_.G("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.G(_.p,{cond:function(){return!k()},
then:function(){var A={};return _.G("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.G("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.G(_.rN,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+z()},
data:function(){var J="loading_animation_"+z();return{animationConfig:{name:J,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+J+".json",loop:!0,autoplay:!0}}}})),_.G("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.G(_.p,{cond:R,
then:function(){return _.G("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},R)}}),_.G("p",{class:_.QY("mini-app-splash-screen-view-model-wiz__timeout-message",(A["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return O()},A)),
"aria-live":"polite"},B),_.G(_.p,{cond:H,then:function(){return _.G("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.G("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-segment mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation",style:l}))}})))}}),_.G(_.p,{cond:k,
then:function(){return _.G("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.G("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return r().persistentErrorMessageTitle}),_.G(_.p,{cond:function(){return!!r().persistentErrorMessageDescription},
then:function(){return _.G("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return r().persistentErrorMessageDescription})}}))}})))},"ae");var T16=new _.Vn("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var gEw=y6;y6=function(g){function r(E){if(E){var B,w;(B=E.__spec)==null||(w=B.didUnmount)==null||w.call(B);for(B=0;B<E.childNodes.length;B++)r(E.childNodes[B])}}
gEw==null||gEw(g);JM(function(){for(var E=0;E<g.length;E++)r(g[E])})};var ruz=_.dG(function(g){var r=g.data;var E=g.score;var B=g.formattedScore;var w=g.onScoreChanged;var O=g.isEmbeddedInWebview;var M=_.hn("yt-mini-app-score-button-view-model"),u=function(){var R;return _.n(r==null?void 0:(R=r())==null?void 0:R.buttonViewModel,_.nm)},l=function(){var R;
return(E==null?void 0:E())||Number(r==null?void 0:(R=r())==null?void 0:R.lastScore)||0},Q=function(){var R;
return(B==null?void 0:B())||((R=u())==null?void 0:R.title)||""},z,k=1;
if(g=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))g=Number(g),k=isNaN(g)?1:g/100;_.bQ(function(){w==null||w(l());var R;var A=_.xP((R=u())==null?void 0:R.onTap);if(A){R=_.n(A,J9D);var J,e,C;R=_.n(R==null?void 0:(J=R.panelLoadingStrategy)==null?void 0:(e=J.inlineContent)==null?void 0:(C=e.dialogViewModel)==null?void 0:C.customContent,n$4)}else R=void 0;if(J=R)J.score=Q()},"KZFi5e");
g=_.HK(function(){var R,A,J=r==null?void 0:(R=r())==null?void 0:(A=R.loggingDirectives)==null?void 0:A.trackingParams;J&&_.MJ(_.rM().resolve(_.Y8),J);return!1});
_.Jk(function(){if(M.value){var R=M.value.querySelector("button"),A=u();R&&A&&D5V(R,A);du("yt-share-playable-with-high-score",function(){var J=l().toString(),e=r==null?void 0:r().onShareHighScoreCommand,C=r==null?void 0:r().highScoreShareClientParamIdentifier,X=O==null?void 0:O();e&&(X?(C=new kiw,J=_.H$(C,2,J),xj(e,J.JSC$10408_serializeBinary())):C&&(_.rM().resolve(T16).clientParams.set(C,{miniAppClientParams:{highScore:J}}),Z1l(e,!1)))})}});
var H=function(){var R=u();R&&(E==null?0:E())&&R.accessibilityText&&(R.accessibilityText=R.accessibilityText.replace(z,Q()));z=Q();return{numberValue:l(),numberText:Q(),heightPx:36,fontSizeMultiplier:k,shouldAnimate:!(E==null||!E())&&!0}};
return _.G("yt-mini-app-score-button-view-model",{class:function(){var R={};return _.zw("mini-app-score-button-view-model-wiz",(R["mini-app-score-button-view-model-wiz--is-visible"]=l()!==0,R))},
el:M,"on:click":g},vT(!1,function(){return _.G("span",{style:"display:none;"},l)}),_.G(_.Af,{data:function(){var R;
return r==null?void 0:(R=r())==null?void 0:R.buttonViewModel}},{buttonViewModel:function(R){return _.G(_.MV,{data:R.data,
animatedTextProps:H})}}))},"be");var OEA=_.dG(function(g){var r,E=(r=_.OC("yt-mini-app-is-theater-mode-enabled"))!=null?r:!1,B=_.Y("enable_playable_container_save_button"),w=_.Y("enable_play_next_destination_page_in_toolbar");r={};return _.G("ytm-mini-app-top-bar-view-model",null,_.G("div",{class:_.QY("yt-mini-app-top-bar-view-model",(r["yt-mini-app-top-bar-view-model--mobile"]=!1,r["yt-mini-app-top-bar-view-model--desktop"]=!0,r))},_.G("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.G(_.p,{cond:function(){var O;
return!!g.data().backButtonEdu&&!((O=g.isExitMiniAppSeen)==null?0:O.call(g))},
then:function(){return _.G(_.Af,{data:function(){return g.data().backButtonEdu}},{buttonViewModel:_.MV})},
else:function(){return _.G(_.Af,{data:function(){return g.data().backButton}},{buttonViewModel:_.MV})}}),_.G(_.p,{cond:function(){return g.data().viewAllButton&&!0},
then:function(){return _.G(_.Af,{data:function(){return g.data().viewAllButton}},{buttonViewModel:_.MV})}}),_.G(_.p,{cond:function(){return g.data().title&&!0},
then:function(){return _.G("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return g.data().title})}})),_.G("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.G(_.p,{cond:function(){var O;
return(O=g.isDesktopPlayPage)==null?void 0:O.call(g)},
then:function(){return _.G(_.wW,null,_.G(EE6,{highScoreButton:function(){return g.data().highScoreButton},
score:g.score,formattedScore:g.formattedScore,onScoreChanged:g.onScoreChanged,isEmbeddedInWebview:g.isEmbeddedInWebview}),_.G(BiA,{enableSaveButton:function(){return _.t5(B)},
saveButton:function(){return g.data().saveButton},
isSaved:g.isSaved,onSaveToggled:function(){return g.onSaveToggled}}),_.G(wZm,{menuButton:function(){return g.data().menuButton}}))},
else:function(){return _.G(_.p,{cond:function(){return!1},
then:function(){return _.G(_.Af,{data:function(){return g.data().playPageButton}},{buttonViewModel:function(O){return _.G(_.MV,{data:O.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.G(EE6,{highScoreButton:function(){return g.data().highScoreButton},
score:g.score,formattedScore:g.formattedScore,onScoreChanged:g.onScoreChanged,isEmbeddedInWebview:g.isEmbeddedInWebview})}})}})),_.G("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.G(_.Af,{data:function(){return g.data().muteButton}},{toggleButtonViewModel:function(O){var M=O.data;
return _.G(_.RY,{data:function(){var u,l;return Object.assign({},M(),{isToggled:(l=(u=g.isAudioEnabled)==null?void 0:u.call(g))!=null?l:!0})},
onToggle:g.onAudioToggled,useOutlinedIcon:!0})}}),_.G(_.Af,{data:function(){return g.data().theatreModeButton}},{toggleButtonViewModel:function(O){var M=O.data;
return _.G("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.G(_.RY,{data:function(){return Object.assign({},M(),{isToggled:E})},
useOutlinedIcon:!0}))}}),_.G(SKm,{fullscreenButton:function(){return g.data().fullscreenButton}}),_.G(_.p,{cond:function(){return _.t5(w)&&g.data().viewAllButton&&!1},
then:function(){return _.G(_.Af,{data:function(){return g.data().viewAllButton}},{buttonViewModel:_.MV})}}),_.G(_.p,{cond:function(){var O;
return!((O=g.isDesktopPlayPage)==null?0:O.call(g))},
then:function(){return _.G(_.wW,null,_.G(BiA,{enableSaveButton:function(){return _.t5(B)},
saveButton:function(){return g.data().saveButton},
isSaved:g.isSaved,onSaveToggled:function(){return g.onSaveToggled}}),_.G(wZm,{menuButton:function(){return g.data().menuButton}}))}}))))},"ce");
OEA.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var wZm=_.dG(function(g){return _.G(_.Af,{data:g.menuButton},{buttonViewModel:_.MV})},"de"),BiA=_.dG(function(g){var r=g.enableSaveButton;
var E=g.saveButton;var B=g.isSaved;var w=g.onSaveToggled;return _.G(_.p,{cond:function(){return r()&&!(E==null||!E())},
then:function(){return _.G(_.Af,{data:function(){var O=_.n(E==null?void 0:E(),_.sg),M;return{toggleButtonViewModel:Object.assign({},O,{isToggled:(M=B==null?void 0:B())!=null?M:!(O==null||!O.isToggled)})}}},{toggleButtonViewModel:function(O){return _.G(_.RY,{data:O.data,
onToggle:w})}})}})},"ee"),EE6=_.dG(function(g){var r=g.highScoreButton;
var E=g.score;var B=g.formattedScore;var w=g.onScoreChanged;var O=g.isEmbeddedInWebview;return _.G(_.Af,{data:r},{miniAppScoreButtonViewModel:function(M){return _.G(ruz,{data:M.data,score:E,formattedScore:B,onScoreChanged:w,isEmbeddedInWebview:O})}})},"fe"),SKm=_.dG(function(g){g=g.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.G(_.wW,null):_.G(_.Af,{data:g},{buttonViewModel:_.MV})},"ge");_.UWZ=new _.Vn("DESKTOP_CURRENT_PAGE");var oED=_.dG(function(g){var r=g.data;var E=_.Y("force_active_time_logging_webview"),B=!1,w=new Wj6,O=void 0,M=void 0,u=_.rM().resolve(eub),l=new J4A,Q=void 0,z=void 0,k=[],H=void 0,R=void 0,A=!1,J=!1,e=!1,C=!1,X=new _.uF,Z=_.rM().resolve(T16),c=_.rM().resolve(_.tE),h=_.rM().resolve(_.gM(qR)),y,OD=(y=_.rM().resolve(_.gM(_.UWZ)))==null?void 0:y.getCurrentPage(),uB=!1,zS=0,jV=function(iB){iB.preventDefault();return iB.returnValue=""},PJ;
g=_.U(_.Dk(!((PJ=_.OC("yt-mini-app-is-audio-enabled"))!=null&&!PJ),void 0,"cGaEvf"));var At=g.next().value,XY=g.next().value,xc;PJ=_.U(_.Dk(!((xc=_.OC("exit-mini-app-seen-state"))==null||!xc),void 0,"DctXGe"));var rg=PJ.next().value,$t=PJ.next().value;xc=_.U(_.Dk(!1,void 0,"pU1jdd"));var tD=xc.next().value,GD=xc.next().value;xc=_.U(_.Dk(void 0,void 0,"ldLqDf"));var xb=xc.next().value,zL=xc.next().value;xc=_.U(_.Dk(void 0,void 0,"mdofE"));var AD=xc.next().value,lA=xc.next().value;xc=_.U(_.Dk(!0,void 0,
"T1gxCf"));var pt=xc.next().value,Mo=xc.next().value;xc=_.U(_.Dk(!1,void 0,"gxt7wf"));var un=xc.next().value,sw=xc.next().value;xc=_.U(_.Dk(void 0,void 0,"yqLV6d"));var J8=xc.next().value,Rm=xc.next().value;xc=_.U(_.Dk(0,void 0,"l6CrGf"));var Lw=xc.next().value,cb=xc.next().value,ZI=_.VI("mini-app-container-view-model"),Ow=function(){return r().isEmbeddedInWebview},XZ=function(){return r().hasPlayNextShelf};
du("yt-page-type-changed",function(iB){if(_.Y("enable_is_mini_app_page_active_bugfix"))iB.detail.newPageSubtype==="mini_app"&&iB.detail.newPageType==="ytd-browse"||!pt()||bn();else if(iB=_.heX()==="mini_app",iB!==pt())if(Mo(iB),iB){var UM;iB=(UM=r().playableId)==null?void 0:UM.toString();iB!==void 0&&window.location.href.includes(iB)&&!J&&(C=!0,RA(),DI.value&&QB(DI.value))}else iB||bn()});
du("yt-action",function(iB){iB.detail.actionName==="yt-engagement-panel-visible-changed"&&iB.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&iB.detail.args[2]==="PAmini_app_panel"&&bn();_.Y("enable_is_mini_app_page_active_bugfix")?iB.detail.actionName==="yt-history-load"&&!pt()&&(OD==null?0:OD.active)?(Mo(!0),RA(),DI.value&&QB(DI.value)):iB.detail.actionName==="yt-history-load"&&pt()&&!r().isEmbeddedInWebview&&RF():pt()&&iB.detail.actionName==="yt-history-load"&&(C?C=!1:r().isEmbeddedInWebview||
RF())});
_.J5(function(){kb()});
_.bQ(function(){RA()},"PiwKsd");
var RA=function(){var iB=r().playableId,UM=r().localReleaseId,X$=r().derivedDeviceInterface;if(J)_.el(new _.Rj("[MiniAppContainerViewModel] onEnter was called more than once"));else{J=!0;O=new zun(iB,UM,X$,document.visibilityState==="visible");Yj6(O);M=new N1D(iB);Mcm(u,iB);Pkm(l,{showMiniAppAdCommand:r().showMiniAppAdCommand,isEmbeddedInWebview:r().isEmbeddedInWebview,playLogger:O});syl()&&(R=document.body.style.backgroundColor,_.Pg(document.body,"background-color","black"));Ak();QT();X=new _.uF;
if(r().isEmbeddedInWebview){if(iB=(new URLSearchParams(window.location.search)).get("postPlayNonce"))HzD(O,iB),uB=!0;w.initialize({onAudioStateLoaded:function(h8){OM(h8)},
onMuteMiniApp:function(){OM(!1)},
onUnmuteMiniApp:function(){OM(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(h8){uB||(HzD(O,h8),uB=!0)},
confirmExitMiniApp:function(){var h8,Um,lY;return _.q(function(z_){if(z_.nextAddress==1)return r().confirmExitMiniAppCommand?_.D(z_,Promise.race([X.promise,Promise.resolve(!1)]),2):z_.return();(h8=z_.yieldResult)?!r().confirmExitMiniAppCommandEdu||(lY=(Um=rg)==null?void 0:Um())!=null&&lY?n$(r().confirmExitMiniAppCommand):(n$(r().confirmExitMiniAppCommandEdu),_.S2("exit-mini-app-seen-state","true",2592E6)):n$(r().closeMiniAppCommand);_.Q3(z_)})},
onNativeBenchmarkingMessageReceived:function(h8){h8=jz6(_.hAo(h8));if(_.zE(h8,_.K0,3,szn)){var Um=_.PL(h8,_.K0,3,szn),lY=ycc();var z_=eL(lY.getSeconds())-eL(Um.getSeconds());Um=_.wY(lY,2)-_.wY(Um,2);z_<0&&Um>0?(z_+=1,Um-=1E9):z_>0&&Um<0&&(--z_,Um+=1E9);z_=(new Nf).setSeconds(z_);z_=_.jz(z_,2,_.sM(Um),0);_.Bu(h8,1,z_)}var EP;(EP=z)==null||EP.returnNativeBenchmarkingMessage(h8)},
multiplayer3pAckStateLoaded:function(h8){RF(h8)},
exitMiniAppSeenStateLoaded:function(h8){r().confirmExitMiniAppCommandEdu&&$t(h8)},
onNavigateToNewMiniApp:function(){n$(r().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(h8){h8=new URLSearchParams(h8);var Um=void 0;h8.has("invite_code")&&(Um=new eiw,h8=h8.get("invite_code"),Um=_.H$(Um,1,h8));if(h8=Um){var lY;(lY=z)==null||lY.sendGameData(h8)}},
onPauseMiniApp:function(){B=!0;D4()},
onResumeMiniApp:function(){B=!0;UU()},
onAdFinished:function(h8){l.onAdFinished(h8)}});
r().showMultiplayer3pConsentDialogCommand||X.resolve(!0);n$(r().onContainerReadyCommand)}else HzD(O),X.resolve(!0);ISb(M,kKn(O));kKn(O).then(function(h8){h8={miniAppPlayData:{postPlayNonce:h8}};var Um,lY=(Um=r().loggingDirectives)==null?void 0:Um.trackingParams;lY&&_.pW().stateChanged(lY,h8)});
iB=r().showSignInDialogCommand;!TaB()&&iB&&(_.S2("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),n$(iB));r().confirmExitMiniAppCommand&&h&&(iB=VDP(r().confirmExitMiniAppCommand))&&(h.customConfirmationCommand=iB)}},kb=function(){R&&_.Pg(document.body,"background-color",R);
A=!1;H&&H.release();M.flush().catch(function(iB){_.el(iB)});
u.flush().catch(function(iB){_.el(iB)});
nd4(O);Ct();z=void 0;qKw(Z)},bn=function(){Mo(!1);
kb();GD(!1);Rm(void 0);zL(void 0);lA(void 0);zS=0;cb(0);J=!1},D4=function(){var iB;
(iB=z)==null||iB.onPause();H&&H.release();M.flush().catch(function(UM){_.el(UM)});
u.flush().catch(function(UM){_.el(UM)});
Ruw(O)},UU=function(){var iB;
(iB=z)==null||iB.onResume();QT();iB=O;iB.isForeground=!0;eJ(iB,"PLAY_EVENT_TYPE_PLAY_RESUME")},OM=function(iB){var UM;
(UM=z)==null||UM.onAudioToggled(iB);XY(iB)},RF=function(iB){r().showMultiplayer3pConsentDialogCommand&&(r().isEmbeddedInWebview&&iB!==void 0&&X.resolve(iB),!iB&&_.heX()==="mini_app"&&n$(r().showMultiplayer3pConsentDialogCommand))},cE=function(){var iB,UM,X$,h8;
return _.q(function(Um){if(Um.nextAddress==1){!r().isLivestream||r().disableVideoCapture||(iB=z)!=null&&iB.sendStartGameFrameCapture();UM=(new URL(window.location.href)).searchParams;if(UM.has("invite_code")){var lY=new eiw,z_=UM.get("invite_code");X$=_.H$(lY,1,z_);(h8=z)==null||h8.sendGameData(X$)}tD()||(GD(!0),lY=O,lY.state!==1?_.el(new _.Rj("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+GKw[lY.state])):(_.Or("mini_app_ids_without_game_ready").includes(lY.JSC$14891_miniAppId)&&(lY.gameReady=
!0),lY.state=2,lY.beforeReady=!1,Fy(lY,"ma_ffr"),eJ(lY,"PLAY_EVENT_TYPE_PLAY_READY")));return _.D(Um,X.promise,2)}n$(r().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();r().isEmbeddedInWebview||RF();_.Q3(Um)})},Im=function(){var iB=O;
iB.gameReady=!0;Fy(iB,"ma_gr")},PF=function(iB){var UM;
return _.q(function(X$){if(X$.nextAddress==1)return _.qN(X$,2),_.D(X$,c4U(M,iB),4);if(X$.nextAddress!=2)return _.Ne(X$,0);UM=_.G2(X$);n$(r().showSavingErrorPopupCommand);throw UM;})},TL=function(){var iB,UM;
return _.q(function(X$){if(X$.nextAddress==1)return _.qN(X$,2),_.D(X$,mG6(M),4);if(X$.nextAddress!=2)return iB=X$.yieldResult,X$.return(iB);UM=_.G2(X$);n$(r().showLoadingErrorDialogCommand);throw UM;})},El=function(iB){O.logError(iB)},f9=function(iB,UM,X$){fSI(O,iB,UM,X$)},K$=function(iB,UM){jtz(O,iB,UM)},SL=function(){!E&&r().isEmbeddedInWebview||_.ru();
stn(O,!0);A||(window.addEventListener("beforeunload",jV,{capture:!0}),A=!0)},TU=function(iB){var UM,X$,h8,Um,lY,z_,EP;
return _.q(function(Fa){if(Fa.nextAddress==1)return u&&(!Q||Q<iB)&&iB>0?_.D(Fa,ulm(u,iB),3):Fa.jumpTo(0);UM=Fa.yieldResult;X$=_.U(UM);h8=X$.next().value;Um=X$.next().value;lY=h8;z_=Um;((EP=lY)==null?0:EP.displayString)&&z_&&(zL(z_),lA(lY.displayString));_.Q3(Fa)})},CI=function(iB){var UM=r().onBenchmarkingMessageReceivedCommand;
if(UM){var X$=ycc();_.ws(iB,3,szn,X$);xj(UM,Al6(iB))}},$R=function(iB){var UM=r().onGameFrameReceivedCommand;
if(UM){var X$=new $T;var h8=new zgb;var Um=fx(iB,1);h8=_.nC(h8,1,Um);iB=_.jI(iB,2);iB=_.H$(h8,2,iB);X$=_.Bu(X$,2,iB);xj(UM,RgU(X$))}},sD=function(iB){var UM=r().onGameAudioDataReceivedCommand;
if(UM){var X$=new $T;var h8=new Hcw;iB=_.jI(iB,1);h8=_.H$(h8,1,iB);X$=_.Bu(X$,4,h8);xj(UM,RgU(X$))}},CL=function(){var iB=new URLSearchParams(window.location.search);
if(r().isEmbeddedInWebview&&iB&&iB.get("override_hl")==="true"&&iB.get("hl"))return iB.get("hl");iB=document.documentElement.lang;return iB!==""?iB:_.ac},cJ=function(iB){var UM=r().onShareInviteCodeCommand;
if(UM)if(r().isEmbeddedInWebview){var X$=new kiw;iB=_.H$(X$,1,iB);xj(UM,pyw(iB))}else X$=r().inviteCodeShareClientParamIdentifier,Z.clientParams.set(X$,{miniAppClientParams:{inviteCode:iB}}),n$(UM)},ln=function(iB){var UM,X$,h8;
return _.q(function(Um){if(Um.nextAddress==1)return UM=r().onMiniAppOpenYtContentRequested,u&&_.Y("enable_open_yt_content")&&UM?_.D(Um,lZD(u,iB),3):Um.jumpTo(0);X$=Um.yieldResult;if(X$==="OK")if(r().isEmbeddedInWebview){var lY=new Dn4;h8=oI(lY,2,fY,NM(iB));xj(UM,Qwz(h8))}else c.clientData.set("video_id",iB),n$(UM);_.Q3(Um)})},Sv=function(iB){zS+=_.wY(iB,3);
iB=Math.min(Math.log(1+zS/15E6*9)/Math.log(10),.99);cb(iB);PH(iB)},PH=_.QW(function(iB){var UM=r().updateLoadingProgressCommand;
if(UM){var X$=new Dn4;iB=oI(X$,3,fY,_.qM(iB));xj(UM,Qwz(iB))}},100),oA=function(iB){return FjT(l,iB)},QT=function(){var iB,UM;
((iB=_.feS())==null?void 0:(UM=iB.wakeLock)==null?void 0:UM.request)!=null&&_.feS().wakeLock.request("screen").then(function(X$){H=X$}).catch(function(){})},DI=_.hn("iframe");
_.bQ(function(){r().isSupportedCountry&&(TaB()||_.Y("enable_sign_in_promo")||!r().showSignInDialogCommand?DI.value&&QB(DI.value):n$(r().onMiniAppReadyCommand))},"XK60ib");
var nD=function(){return _.G("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return tD()?0:-1},
el:DI})},QB=function(iB,UM){UM=UM===void 0?!1:UM;
var X$=Uw();X$&&(UM||X$.toString()!==iB.getAttribute("src"))&&(z=OFX(r().source,{isAudioEnabled:At,onFirstFrameReady:cE,onGameReady:Im,onSave:PF,onLoad:TL,onError:El,onSdkCalled:f9,onSdkPerformanceUpdate:K$,onClick:SL,onSendHighScore:TU,onBenchmarkingMessageReceived:CI,getLanguage:CL,onShareInviteCode:cJ,onResourceLoaded:Sv,onOpenYTContent:ln,onShowMiniAppAd:oA,onGameFrameReceived:$R,onGameAudioReceived:sD},iB,X$),nW(iB,"load",function(){Fy(O,"ma_il");nW(iB,"load",function(){QB(iB,!0)})}),_.ta(iB,
X$))},Uw=function(){var iB=r().url;
if(iB&&(iB=_.eE(iB),iB!==null)){if(r().source&&r().source==="MINI_APP_SOURCE_GAMESNACKS")iB=_.Sn(iB,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.Y("enable_origin_query_parameter_bugfix")){var UM=_.nZ(_.QSB(iB.toString()));UM=new URLSearchParams(UM||"");UM.set("origin",window.location.origin);UM=UM.toString();iB=_.ui(iB).toString();iB=_.qO(CBn.exec(iB)[0]+(UM.trim()?"#"+UM:""))}return iB}},Hu=function(){var iB={};
iB=_.QY("yt-mini-app-container-view-model__loading-screen",(iB["yt-mini-app-container-view-model__loading-screen--fade-out"]=tD,iB));var UM=function(){return tD()?1:Lw()};
return _.G("div",{class:iB},_.G(_.Af,{data:function(){return r().splashScreen}},{miniAppSplashScreenViewModel:function(X$){return _.G(dGw,{data:X$.data,
loadingProgress:UM})}}))},Ak=function(){k=[];
k.push(_.j_(window,"visibilitychange",function(){e||B&&Ow()||(document.visibilityState==="visible"?UU():D4())}));
k.push(_.j_(window,"pagehide",function(){kb()}));
k.push(_.j_(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&ZI.value.dispatchEvent(new Event("tap"))},0)}));
k.push(_.j_(ZI.value,"pointerdown",function(){stn(O,!1)},!0));
k.push(_.j_(ZI.value,"pause",function(){e=!0;D4()}));
k.push(_.j_(ZI.value,"play",function(){e=!1;UU()}));
k.push(_.j_(ZI.value,"exit",function(){kb()}));
var iB=navigator.keyboard,UM=iB&&iB.lock;k.push(_.j_(window,hww,function(){sw(ygw());ygw()?(r().hasPlayNextShelf&&j3("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),ic("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),UM&&iB.lock(["Escape"])):(r().hasPlayNextShelf&&ic("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),j3("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),UM&&iB.unlock())}));
r().showMultiplayer3pConsentDialogCommand&&k.push(_.j_(window,"yt-playables-ack-3p-data-usage",function(){DWD(u)}));
r().confirmExitMiniAppCommandEdu&&k.push(_.j_(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.S2("exit-mini-app-seen-state","true",2592E6)}));
r().onGameAudioDataReceivedCommand&&k.push(_.j_(window,"message",function(X$){X$=X$.event_;var h8,Um=(h8=DI.value)==null?void 0:h8.src;if(Um&&X$.origin===(new URL(Um)).origin&&X$.data&&X$.data.type==="GAME_AUDIO"&&X$.data.audio&&X$.data.audio.length>0)if(_.Y("enable_sending_unwrapped_game_audio_as_serialized_metadata"))xj(r().onGameAudioDataReceivedCommand,X$.data.audio);else{var lY=new FileReader;lY.onload=function(){var z_=new $T;var EP=new Hcw;EP=_.H$(EP,1,lY.result);z_=_.Bu(z_,4,EP);xj(r().onGameAudioDataReceivedCommand,
RgU(z_))};
lY.readAsDataURL(new Blob([X$.data.audio]))}}))},Ct=function(){k.forEach(function(iB){s2(iB)});
window.removeEventListener("beforeunload",jV,{capture:!0})},n$=function(iB){iB&&Z1l(iB,r().isEmbeddedInWebview||!1)},ic=function(iB,UM){iB=_.U(ZI.value.getElementsByClassName(iB));
for(var X$=iB.next();!X$.done;X$=iB.next())X$.value.classList.add(UM)},j3=function(iB,UM){iB=_.U(ZI.value.getElementsByClassName(iB));
for(var X$=iB.next();!X$.done;X$=iB.next())X$.value.classList.remove(UM)};
return function(){var iB={};iB=_.QY("yt-mini-app-container-view-model",(iB["yt-mini-app-container-view-model--desktop"]=!0,iB["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return r().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},iB["yt-mini-app-container-view-model--ios-web-view"]=syl(),iB["yt-mini-app-container-view-model--no-top-bar"]=function(){return!r().topBar},iB["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return r().hasPlayNextShelf},iB["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return r().hasPlayNextShelf},iB["yt-mini-app-container-view-model--show-peek-below"]=function(){return!un()&&r().hasPlayNextShelf},iB));
var UM={};UM=_.QY("yt-mini-app-container-view-model__content",(UM["yt-mini-app-container-view-model__content--desktop-content"]=!0,UM["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return r().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},UM["yt-mini-app-container-view-model--desktop-play-page"]=function(){return r().hasPlayNextShelf},UM));
return _.G("mini-app-container-view-model",{el:ZI},_.G("div",{class:iB},_.G(_.p,{cond:function(){return r().topBar&&!un()},
then:function(){return _.G(_.Af,{data:function(){return r().topBar}},{miniAppTopBarViewModel:function(X$){return _.G(OEA,{data:X$.data,
isAudioEnabled:At,onAudioToggled:function(h8){OM(h8)},
score:xb,formattedScore:AD,onScoreChanged:function(h8){Q=h8},
isEmbeddedInWebview:Ow,isSaved:J8,onSaveToggled:function(h8){Rm(h8)},
isExitMiniAppSeen:rg,isDesktopPlayPage:XZ})}})}}),_.G("div",{class:UM},_.G(_.p,{cond:pt,
then:function(){return nD()}}),_.G(_.p,{cond:function(){return!r().isEmbeddedInWebview},
then:function(){return Hu()}}))))}()},"he");
oED.idomCompat=!0;_.BK(oED,"mini-app-container-view-model",{props:{data:_.cP}});var G7U=_.dG(function(g){var r=g.data;return _.G("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.G("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.HK(function(){var E=r().onTap;E&&_.I3(E)})},_.G(_.p,{cond:function(){return r().icon},
then:function(E){return _.G(_.nh,{icon:function(){return E().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.G("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return r().title})))},"ie");
G7U.idomCompat=!0;var QpU=_.dG(function(g){var r=_.VI("div"),E=_.U(_.Dk(void 0,void 0,"kFCJ0c")),B=E.next().value,w=E.next().value;E=_.U(_.Dk(void 0,void 0,"PIPgWd"));var O=E.next().value,M=E.next().value;E=_.U(_.Dk(void 0,void 0,"rV66ob"));var u=E.next().value,l=E.next().value,Q=function(){var C=B();return C!==void 0?Math.abs(C):void 0},z=function(){var C=Q();
return C===void 0||C<=3},k=function(){var C=Q();
var X=O(),Z=u();C=C!==void 0&&X!==void 0&&Z!==void 0?X-Z-C:void 0;return C===void 0||C<=3},H=function(C){r.value&&r.value.scrollBy({top:0,
left:(_.Ca("HTML_DIR")==="rtl"?-1:1)*C*r.value.clientWidth,behavior:"smooth"})},R=function(){var C;
w((C=r.value)==null?void 0:C.scrollLeft);var X;M((X=r.value)==null?void 0:X.scrollWidth);var Z;l((Z=r.value)==null?void 0:Z.clientWidth)},A=function(){H(-.5)},J=function(){H(.5)};
E=_.HK(function(){R()});
_.jS(function(){R();if(r.value){var C=new ResizeObserver(R);C.observe(r.value);_.J5(function(){C.disconnect()})}});
var e={};return _.G("yt-sponsorships-scrollable-shelf",{class:_.QY("ytdSponsorshipsScrollableShelfHost",g.className)},_.G("div",{class:_.QY("ytdSponsorshipsScrollableShelfContent",(e.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return g.data().previousButton&&g.data().nextButton&&!z()&&!k()},e.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return g.data().previousButton&&!z()&&k()},e.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return g.data().nextButton&&
z()&&!k()},e)),
el:r,"on:scroll":E},g.children),_.G(_.p,{cond:function(){return!z()},
then:function(){return _.G(_.Af,{data:function(){return g.data().previousButton}},{buttonViewModel:function(C){return _.G(_.MV,{data:C.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:A})}})}}),_.G(_.p,{cond:function(){return!k()},
then:function(){return _.G(_.Af,{data:function(){return g.data().nextButton}},{buttonViewModel:function(C){return _.G(_.MV,{data:C.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:J})}})}}))},"je");
QpU.idomCompat=!0;var k7A=_.dG(function(g){var r=g.data;g={};return _.G("yt-sponsorships-hub",{class:_.QY("ytdSponsorshipsHubHost",(g.ytdSponsorshipsHubHostIndented=function(){return r().indented},g))},_.G("div",{class:"ytdSponsorshipsHubHeader"},_.G("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.G("div",{class:"ytdSponsorshipsHubAvatar"},_.G(_.Af,{data:function(){return r().avatar}},{avatarViewModel:_.sV})),_.G(_.p,{cond:function(){return r().badgeImage},
then:function(E){return _.G("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.G("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.G("div",{class:"ytdSponsorshipsHubBadge"},_.G(_.vw,{data:E,targetWidth:24,targetHeight:24,alt:""}))))}})),_.G("div",{class:"ytdSponsorshipsHubDetails"},_.G("div",{class:"ytdSponsorshipsHubTierName"},function(){return r().tierName}),_.G("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return r().membershipType}),_.G("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return r().membershipDurationOrExpiry})),_.G("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.G(_.Af,{data:function(){return r().manageButton}},{buttonViewModel:function(E){return _.G(_.MV,{data:E.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.G(_.Af,{data:function(){return r().actionMenuButton}},{buttonViewModel:function(E){return _.G(_.MV,{data:E.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.G("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return r().perksTitle}),_.G(QpU,{data:function(){return{previousButton:r().previousPerkButton,
nextButton:r().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.G("div",{class:"ytdSponsorshipsHubPerkCards"},_.G(_.Af,{data:function(){return r().perkCards}},{sponsorshipsHubPerkCardViewModel:G7U}),_.G(_.p,{cond:function(){return r().viewAllPerksButton},
then:function(E){return _.G(zJD,{data:E})}}))))},"ke");
k7A.idomCompat=!0;var zJD=_.dG(function(g){var r=g.data;return _.G("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.G(_.Af,{data:function(){return r().button}},{buttonViewModel:_.MV}),_.G("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.G("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return r().title}),_.G("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return r().subtitle})))},"le");
zJD.idomCompat=!0;_.BK(k7A,"yt-sponsorships-hub",{props:{data:_.cP}});_.HET=_.dG(function(g){var r=g.data;return _.G("yt-dual-avatar-view-model",{class:_.QY("ytDualAvatarViewModelHost",g.className),style:_.Rl({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var E;return((E=r().badgeCutoutRadius)!=null?E:14)+"px"}})},_.G("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.G(_.Af,{data:function(){return r().startAvatar}},{avatarViewModel:_.sV}),_.G(_.Af,{data:function(){return r().endAvatar}},{avatarViewModel:_.sV})),_.G(_.Af,{data:function(){return r().badge}},
{contentPreviewImageViewModel:function(E){return _.G("div",{class:"ytDualAvatarViewModelBadge"},_.G(_.ye,{data:E.data}))}}))},"me");
_.HET.idomCompat=!0;var YKT=_.dG(function(g){var r=g.data;var E,B=!((E=_.rM().resolve(_.gM(_.Vy)))==null||!E());g=_.kB(function(){var z,k,H=B?(z=r().header)==null?void 0:z.backgroundColorDarkMode:(k=r().header)==null?void 0:k.backgroundColorLightMode;if(H!==void 0)return _.XT(H)},void 0,"UX2G6c");
E=_.kB(function(){var z,k;return B?(z=r().header)==null?void 0:z.backgroundImagePart1Dark:(k=r().header)==null?void 0:k.backgroundImagePart1Light},void 0,"GPAi1d");
var w=_.kB(function(){var z,k;return B?(z=r().header)==null?void 0:z.backgroundImagePart2Dark:(k=r().header)==null?void 0:k.backgroundImagePart2Light},void 0,"nboJld"),O=_.kB(function(){return _.Ca("HTML_DIR")==="rtl"},void 0,"LGJceb"),M=_.VI("yt-sponsorships-perks-list"),u=!1,l=function(){var z=M.value;
if(z&&!u){var k,H=(k=z.parentElement)==null?void 0:k.parentElement;if(H)for(z=z.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),k=0;k<z.length;++k){var R=z[k];if(R instanceof HTMLElement){H.scrollTo({top:R.offsetTop+R.clientHeight/2-H.clientHeight/2,behavior:"smooth"});u=!0;break}}}};
_.Jk(function(){var z=M.value;if(z){var k=new ResizeObserver(l);k.observe(z);_.J5(function(){k.disconnect()})}});
var Q={};return _.G("yt-sponsorships-perks-list",{el:M,class:_.QY("ytdSponsorshipsPerksListHost",(Q.ytdSponsorshipsPerksListHorizontalPadding=function(){return r().horizontalPaddingEnabled},Q))},_.G("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.G("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.Rl({"background-color":g})},_.G("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.G(_.p,{cond:E,then:function(z){var k={};return _.G("div",{class:_.QY((k.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=B,k.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!B,k.ytdSponsorshipsPerksListFlipped=O,k))},_.G(_.vw,{data:z,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.G("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.G(_.p,{cond:w,
then:function(z){var k={};return _.G("div",{class:_.QY((k.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=B,k.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!B,k.ytdSponsorshipsPerksListFlipped=O,k))},_.G(_.vw,{data:z,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.G("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.G(_.Af,{data:function(){var z;
return(z=r().header)==null?void 0:z.dualAvatar}},{dualAvatarViewModel:_.HET})))),_.G("div",{class:"ytdSponsorshipsPerksListBody"},_.G("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return r().title}),_.G(_.p,{cond:function(){return r().perks},
then:function(z){return _.G(_.Ra,{each:z},function(k,H){var R={};return _.G("div",{class:_.QY("ytdSponsorshipsPerksListPerkContainer",(R.ytdSponsorshipsPerksListSelectedPerk=function(){var A=H(),J=r().selectedPerkIndex;return A===J},R))},_.G(_.p,{cond:function(){return H()>0},
then:function(){return _.G("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.G("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.G(_.p,{cond:function(){return k.icon},
then:function(A){return _.G(_.nh,{icon:function(){return A().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.G("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.G("div",{class:"ytdSponsorshipsPerksListPerkTitle"},k.title),_.G("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.G(_.hf,{text:k.description})),_.G(_.p,{cond:function(){return k.instructions},
then:function(){var A,J;return _.G("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.G("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(A=k.instructions)==null?void 0:A.title),_.G("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.G(_.hf,{text:(J=k.instructions)==null?void 0:J.text})))}}))),_.G(_.p,{cond:function(){return k.emoji},
then:function(A){return _.G("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.G(_.Ra,{each:function(){return A()}},function(J){return _.G(_.vw,{data:J,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.G(pZw,{data:k}))})}})))},"ne");
YKT.idomCompat=!0;var pZw=_.dG(function(g){var r=g.data;var E=function(M,u){return M===u},B=function(){var M=r();
M=_.n(M==null?void 0:M.badgesShelf,s1A);return M!==void 0&&M!==null?M:{previousButton:{},nextButton:{}}},w=_.hn("div"),O=function(){var M=w.value;
if(M){var u=M.parentElement;if(u){M=M.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var l=0;l<M.length;++l){var Q=M[l];if(Q instanceof HTMLElement){u.scrollTo({left:Q.offsetLeft+Q.clientWidth/2-u.clientWidth/2,behavior:"instant"});break}}}}};
_.Jk(function(){var M=w.value;if(M){var u=new ResizeObserver(O);u.observe(M);_.J5(function(){u.disconnect()})}});
return _.G("div",null,_.G(_.p,{cond:function(){return r().badges},
then:function(M){return _.G(QpU,{data:B},_.G("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:w},_.G(_.Ra,{each:function(){return M()}},function(u,l){var Q={},z={},k={};
return _.G("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.G(_.p,{cond:function(){return l()>0},
then:function(){return _.G("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.G("div",{class:_.QY("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(Q.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return E(l(),r().currentBadgeIndex)},Q.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!E(l(),r().currentBadgeIndex)},Q))},_.G("div",{class:_.QY("ytdSponsorshipsPerksListLoyaltyBadge",(z.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return E(l(),
r().currentBadgeIndex)},z.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!E(l(),r().currentBadgeIndex)},z))},_.G(_.p,{cond:function(){return u.image},
then:function(H){var R={};return _.G("div",{class:_.QY((R.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return E(l(),r().currentBadgeIndex)},R.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!E(l(),r().currentBadgeIndex)},R))},_.G(_.vw,{data:H,
alt:""}))}})),_.G("div",{class:_.QY("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(k.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return E(l(),r().currentBadgeIndex)},k))},u.title)))})))}}))},"oe");
pZw.idomCompat=!0;_.BK(YKT,"yt-sponsorships-perks-list",{props:{data:_.cP}});_.BK(_.dG(function(g){return _.G("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.G(_.p,{cond:function(){return g.data().image},
then:function(r){return _.G(_.vw,{className:"ytwFantasyEmptyStateViewModelImage",data:r,ariaHidden:!0,alt:""})}}),_.G(_.hf,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return g.data().title}}),_.G(_.hf,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return g.data().subtitle}}),_.G(_.Af,{data:function(){return g.data().primaryButton}},{buttonViewModel:function(r){return _.G(_.MV,{data:r.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"pe"),"ytw-fantasy-empty-state-view-model",{props:{data:_.cP}});var RJm;var GXV=_.R$({buttonRenderer:_.X9});_.rH(Qul);_.lW(Qul,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var Xy=function(){var g=_.a.apply(this,arguments)||this;g.hideJoinButtonBeforeSubscribed=_.Y("hide_join_button_before_subscribed");g.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return g};
_.f(Xy,_.a);_.S=Xy.prototype;_.S.hasShowDialogCommand=function(g){return!!_.n(g,J9D)};
_.S.configureRendererStamper=function(){return{"data.avatarStack":{id:"avatar-stack",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model"}}},"data.membershipButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}},timedAnimationButtonRenderer:{component:"timed-animation-button-renderer",params:{uniqueId:"join-button"},properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.purchaseButton":{id:"purchase-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.analyticsButton":{id:"analytics-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S.updateJoinButtonOverrides=function(){var g,r;(g=_.S3(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(r=g.polymerController)==null||r.set("overrides",this.joinButtonOverrides);if(g=_.S3(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))g.overrides=this.joinButtonOverrides};
_.S.handleButtonRefreshAction=function(g){if(g=_.n(g,WeI))this.set("data.membershipButton",g.membershipButton),this.notifyPath("data.membershipButton")};
_.S.onYtServiceRequestError=function(g){_.vX(this.hostElement,g.detail.error.message)};
_.S.onTap=function(){var g;(g=this.data)!=null&&g.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)};
_.S.handleUnsubscribeAction=function(){var g,r,E;((g=this.data)==null?void 0:(r=g.membershipButton)==null?void 0:(E=r.buttonRenderer)==null?void 0:E.style)==="STYLE_PRIMARY"&&_.S3(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.hx.Object.defineProperties(Xy.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.subscriptionStateEntity)==null||!g.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var g,r=(g=this.data)==null?void 0:g.membershipButton,E;g=(r==null?void 0:r.buttonRenderer)||_.n(r==null?void 0:(E=r.timedAnimationButtonRenderer)==null?void 0:E.buttonRenderer,_.Fd);return(g==null?void 0:g.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(g==null?void 0:g.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(g==null?void 0:g.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var g;if(this.hasShowDialogCommand((g=this.data)==null?void 0:g.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var g;if(this.hasShowDialogCommand((g=this.data)==null?void 0:g.navigationEndpoint))return"button"}}});
Xy.prototype.onTap=Xy.prototype.onTap;Xy.prototype.onYtServiceRequestError=Xy.prototype.onYtServiceRequestError;Xy.prototype.updateJoinButtonOverrides=Xy.prototype.updateJoinButtonOverrides;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Xy.prototype,"actionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Xy.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Xy.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],Xy.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Xy.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.jP),_.L("design:type",Object)],Xy.prototype,"ironButtonState",void 0);_.m([_.K(),_.L("design:type",Object)],Xy.prototype,"data",void 0);
_.m([_.W("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.L("design:type",Object),_.L("design:paramtypes",[])],Xy.prototype,"hideJoin",null);_.m([_.K(),_.L("design:type",String)],Xy.prototype,"subscribeKey",void 0);_.m([_.K({selectorArgs:["subscribeKey"],selector:P7D}),_.L("design:type",Object)],Xy.prototype,"subscriptionStateEntity",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Xy.prototype,"hideJoinButtonBeforeSubscribed",void 0);
_.m([_.W("subscriptionStateEntity"),_.K({reflectToAttribute:!0}),_.L("design:type",Object),_.L("design:paramtypes",[])],Xy.prototype,"subscribed",null);_.m([_.W("subscribed","data.membershipButton"),_.L("design:type",Object),_.L("design:paramtypes",[])],Xy.prototype,"joinButtonOverrides",null);_.m([_.W("data.navigationEndpoint"),_.L("design:type",Object),_.L("design:paramtypes",[])],Xy.prototype,"channelNameTabIndex",null);
_.m([_.W("data.navigationEndpoint"),_.L("design:type",Object),_.L("design:paramtypes",[])],Xy.prototype,"channelNameRole",null);_.m([_.Gb("joinButtonOverrides"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Xy.prototype,"updateJoinButtonOverrides",null);_.m([_.ob("yt-service-request-error"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],Xy.prototype,"onYtServiceRequestError",null);
_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],Xy.prototype,"onTap",null);_.m([_.N({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],Xy);
var nEw=_.U2()(Xy,"ytd-video-owner-renderer",function(){if(RJm===void 0){var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" 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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);RJm=g}g=RJm;return g},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.BK(_.dG(function(g){var r=g.data;var E;g=_.U(_.Dk(!((E=_.OC("yt-mini-app-is-theater-mode-enabled"))==null||!E),void 0,"CtFFDf"));var B=g.next().value,w=g.next().value;E=_.U(_.Dk(!1,void 0,"pRgDfb"));var O=E.next().value,M=E.next().value;_.Jk(function(){var Q=_.j_(window,hww,function(){M(ygw())});
_.J5(function(){s2(Q)})});
var u;E=(u=_.rM().resolve(_.gM(LsZ)))!=null?u:function(){return _.G("div",null)};
_.LC("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){w(!0);_.S2("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.LC("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){w(!1);_.S2("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
u={};g={};var l={};return _.G("mini-app-play-page-renderer",{class:_.QY("miniAppPlayPageRendererHost",(u.miniAppPlayPageRendererHostDetailsView=function(){return!B()},u))},_.G("div",{class:_.QY("miniAppPlayPageRendererGameContainer",(g.miniAppPlayPageRendererGameContainerDetailsView=function(){return!B()},g))},_.G(_.Af,{data:function(){return r().containerViewModel}},{miniAppContainerViewModel:oED}),_.G(_.p,{cond:function(){return r().channel&&r().subscribeButton},
then:function(){var Q={};return _.G("div",{class:_.QY("miniAppPlayPageRendererChannelContainer",(Q.miniAppPlayPageRendererHideVisibility=function(){return O()},Q))},_.G(_.Af,{data:function(){return r().channel}},{videoOwnerRenderer:function(z){return _.G(nEw,{data:z.data})}}),_.G(_.Af,{data:function(){return r().subscribeButton}},{subscribeButtonViewModel:function(z){return _.G(_.Rh,{data:z.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.G(_.p,{cond:function(){return!B()&&r().description},
then:function(){var Q={};return _.G("div",{class:_.QY("miniAppPlayPageRendererMiniAppDescriptionWrapper",(Q.miniAppPlayPageRendererHideVisibility=function(){return O()},Q))},_.G("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return r().description}))}})),_.G("div",{class:_.QY("miniAppPlayPageRendererPlayNextContainer",(l.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!B()},l.miniAppPlayPageRendererHideVisibility=function(){return O()},l))},_.G(_.Af,{data:function(){return r().sectionList}},
{sectionListRenderer:E})))},"qe"),"mini-app-play-page-renderer",{props:{data:_.cP}});var Nj=function(){var g=_.a.apply(this,arguments)||this;g.isSearch=!1;g.isConstrainedList=!1;g.hasChipsBar=!1;g.inReplyPanel=!1;g.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"}};g.monitorScroll=!0;g.SCROLL_ANIMATION_DURATION_MS=300;g.nextContinuation={continuationType:"sectionListContinuation"};return g};
_.f(Nj,_.a);_.S=Nj.prototype;
_.S.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedChannelFilterHeaderRenderer:{component:"ytd-feed-channel-filter-header-renderer",noInjection:!0},textHeaderRenderer:{component:"ytd-text-header-renderer",noInjection:!0},richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",noInjection:!0},headerWithBackRenderer:{component:"yt-header-with-back-renderer",noInjection:!0},feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",noInjection:!0,
properties:{isClipList:"[[isClipList]]"}},liveChatItemDisplayRenderer:{component:"yt-live-chat-item-display-renderer",noInjection:!0,params:{isHeader:!0}},chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},"data.subMenu":{id:"sub-menu",mapping:{searchSubMenuRenderer:{component:"ytd-search-sub-menu-renderer",noInjection:!0},channelSubMenuRenderer:{component:"ytd-channel-sub-menu-renderer",noInjection:!0},channelListSubMenuRenderer:{component:"ytd-channel-list-sub-menu-renderer",noInjection:!0},
sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",noInjection:!0}}},shownItems:{id:"contents",mapping:{itemSectionRenderer:{matcher:function(g){switch(g.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},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:_.Y("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.Y("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.S.created=function(){var g=this;this.JSC$15030_scrollAnimation=new _.PD(function(r){g.hostElement.scrollTop=r})};
_.S.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.S.getItemsPath=function(){return"data.contents"};
_.S.replacePrimaryContent=function(g){this.set("data.contents",g)};
_.S.computeHasSortFilter=function(g){return!!g&&!!g.sortFilterSubMenuRenderer};
_.S.computeShouldScrollInPanel=function(g){var r;return!!(g==null?0:(r=g.scrollPaneStyle)==null?0:r.scrollable)};
_.S.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.UN(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.S.scrollToTop=function(){this.hostElement.scrollTop=0};
_.S.scrollToItemSection=function(g){if(g=this.getItemByIdentifier(g))g=this.getScrollPositionForItem(g),this.hostElement.scrollTop!==g&&this.JSC$15030_scrollAnimation.start(this.hostElement.scrollTop,g,this.SCROLL_ANIMATION_DURATION_MS)};
_.S.getItemByIdentifier=function(g){var r=this.contents.querySelectorAll("ytd-item-section-renderer");if(r&&r.length!==0){var E=Array.from(r).findIndex(function(B){return B.sectionIdentifier===g});
return r[E===-1?0:E]}};
_.S.getScrollPositionForItem=function(g){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===g)return 0;g=_.en(g).y+this.hostElement.scrollTop-_.en(this.hostElement).y;return Math.min(g,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.hx.Object.defineProperties(Nj.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.targetId)==="browse-feedFEclips"}}});
Nj.prototype.onScroll=Nj.prototype.onScroll;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Nj.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Nj.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Zu.YtLazyListBehavior),_.L("design:type",Object)],Nj.prototype,"ytLazyListBehavior",void 0);_.m([_.P(_.Nv.YtNextContinuationBehavior),_.L("design:type",Object)],Nj.prototype,"ytNextContinuationBehavior",void 0);
_.m([_.P(_.qjZ),_.L("design:type",Object)],Nj.prototype,"ytBooleanLogicBehavior",void 0);_.m([_.P(_.Xe),_.L("design:type",Object)],Nj.prototype,"ytContinuationHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Nj.prototype,"data",void 0);_.m([_.K({value:2}),_.L("design:type",Number)],Nj.prototype,"initialCount",void 0);_.m([_.K({value:!0}),_.L("design:type",Boolean)],Nj.prototype,"autoFill",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.L("design:type",Boolean)],Nj.prototype,"hasSortFilter",void 0);_.m([_.K({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.L("design:type",Boolean)],Nj.prototype,"hideBottomSeparator",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.L("design:type",Boolean)],Nj.prototype,"shouldScrollInPanel",void 0);
_.m([_.K(),_.L("design:type",Object)],Nj.prototype,"isSearch",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Nj.prototype,"isConstrainedList",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],Nj.prototype,"responsiveSizing",void 0);_.m([_.K(),_.L("design:type",Object)],Nj.prototype,"hasChipsBar",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],Nj.prototype,"pageSubtype",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Nj.prototype,"engagementPanel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Nj.prototype,"liveChatEngagementPanel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Nj.prototype,"inReplyPanel",void 0);_.m([_.zb("#action-button"),_.L("design:type",HTMLElement)],Nj.prototype,"actionButton",void 0);_.m([_.K(),_.L("design:type",Object)],Nj.prototype,"scrollUpButtonData",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Nj.prototype,"engagementPanelDropdown",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Nj.prototype,"engagementPanelDialog",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],Nj.prototype,"isClipList",null);_.m([_.zb("#contents"),_.L("design:type",HTMLElement)],Nj.prototype,"monitorScrollElement",void 0);_.m([_.zb("#contents"),_.L("design:type",HTMLElement)],Nj.prototype,"contents",void 0);
_.m([_.ob("scroll"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Nj.prototype,"onScroll",null);_.m([_.N({is:"ytd-section-list-renderer",disableElementRegistration:!0})],Nj);
var spU=_.U2()(Nj,"ytd-section-list-renderer",function(){if(i8U===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);i8U=g}g=i8U;return g},{mode:1});var fZD;var $WI;var jpD;var Aun;var Id=function(){return _.a.apply(this,arguments)||this};
_.f(Id,_.a);Id.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
Id.prototype.onLikeButtonClick=function(g){g.stopPropagation();g.preventDefault()};
_.hx.Object.defineProperties(Id.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)!=null&&g.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)})}}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Id.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Id.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],Id.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Id.prototype,"ytRendererStamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Id.prototype,"data",void 0);
_.m([_.K({selectorArgs:["data.likeStatusEntityKey"],selector:Kh}),_.L("design:type",Object)],Id.prototype,"likeStatusEntity",void 0);_.m([_.W("data","likeStatusEntity"),_.L("design:type",Object),_.L("design:paramtypes",[])],Id.prototype,"likeButtonRenderer",null);_.m([_.N({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],Id);
_.I(Id,"ytd-slim-metadata-toggle-button-renderer",function(){if(Aun!==void 0)return Aun;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);
return Aun=g},{mode:1});var m2=function(){var g=_.a.apply(this,arguments)||this;g.minimizePipBreakages=_.Y("web_pip_minimize_breakages");g.showEqualizer=_.Y("web_enable_playlist_video_lockup_equalizer");g.watchColorUpdate=_.Y("kevlar_watch_color_update");g.actionMap={};return g};
_.f(m2,_.a);_.S=m2.prototype;_.S.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"}}}};
_.S.computeEditableClass=function(g){return g&&g.menu?"editable":""};
_.S.computeSelected=function(g){return!(g==null||!g.selected)};
_.S.computeUseColorPalette=function(g){return!!((g==null?0:g.lightColorPalette)&&(g==null?0:g.darkColorPalette))};
_.S.computeLargerPlaylistThumbs=function(g,r){return _.Y("web_enable_playlist_bigger_thumbnails")&&!r};
_.S.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.S.onYtServiceRequestSent=function(g,r){r.endpoint&&this.isHideEnclosingAction(r.endpoint)&&!this.selected&&vn4(_.Kn(),this.data.videoId)};
_.S.isHideEnclosingAction=function(g){var r=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",g);g=this.get("likeEndpoint.status",g)==="INDIFFERENT";return r||g};
_.S.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.S.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.hx.Object.defineProperties(m2.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.Y("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var g;return!!(this.withinMiniplayer&&((g=this.data)==null?0:g.actionButtons))}}});
m2.prototype.onYtServiceRequestSent=m2.prototype.onYtServiceRequestSent;m2.prototype.canReorderChanged=m2.prototype.canReorderChanged;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],m2.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],m2.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],m2.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.K4),_.L("design:type",Object)],m2.prototype,"ytdLockupBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],m2.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],m2.prototype,"withinMiniplayer",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],m2.prototype,"minimizePipBreakages",void 0);_.m([_.K({computed:"computeSelected(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],m2.prototype,"selected",void 0);
_.m([_.K({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],m2.prototype,"useColorPalette",void 0);_.m([_.K({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.L("design:type",Boolean)],m2.prototype,"largerPlaylistThumbs",void 0);_.m([_.K(),_.L("design:type",Object)],m2.prototype,"showEqualizer",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],m2.prototype,"canReorder",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],m2.prototype,"touchPersistentDragHandle",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],m2.prototype,"handleIsHovered",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],m2.prototype,"watchColorUpdate",void 0);_.m([_.K(),_.L("design:type",String),_.L("design:paramtypes",[])],m2.prototype,"reorderIcon",null);
_.m([_.W("largerPlaylistThumbs"),_.L("design:type",Number),_.L("design:paramtypes",[])],m2.prototype,"thumbnailWidth",null);_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],m2.prototype,"showActionButtons",null);_.m([_.Yk("canReorder"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],m2.prototype,"canReorderChanged",null);
_.m([_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.XA]),_.L("design:returntype")],m2.prototype,"onYtServiceRequestSent",null);_.m([_.N({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],m2);
_.I(m2,"ytd-playlist-panel-video-renderer",function(){if(jpD!==void 0)return jpD;var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return jpD=g},{mode:2});var cD=function(){return _.a.apply(this,arguments)||this};
_.f(cD,_.a);cD.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],cD.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],cD.prototype,"data",void 0);_.m([_.N({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],cD);
_.I(cD,"ytd-playlist-panel-supported-items",function(){if($WI!==void 0)return $WI;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return $WI=
g},{mode:1});Zfw=!0;lyb("\\P{N}");var zAc;var bEI=_.zn("END_OF_PLAYLIST",void 0,"End of playlist"),Jun=_.zn("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),i4=function(){var g=_.a.apply(this,arguments)||this;g.minimizePipBreakages=_.Y("web_pip_minimize_breakages");g.updatedCoursePanel=_.Y("move_three_dot_menu_to_playlist_panel_header_for_courses");g.hideHeaderText=!1;g.useColorPalette=!1;g.collapsed=!1;g.collapsedPreServerOverride="not_tracked";g.isHovered=!1;g.modernPanels=_.Y("kevlar_watch_modern_panels");
g.expandLabel=_.zn("MINIPLAYER_EXPAND_LABEL");g.collapseLabel=_.zn("MINIPLAYER_COLLAPSE_LABEL");g.isFloating=!1;g.metaPanel=!1;g.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};g.currentIndex=void 0;return g};
_.f(i4,_.a);_.S=i4.prototype;
_.S.configureRendererStamper=function(){return{menuRendererData:{id:"playlist-action-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{forceIconButton:!1}}}},overflowMenuDataTopRow:{id:"overflow-menu-top-row",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},overflowMenuData:{id:"overflow-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.contentHeader":{id:"content-header",mapping:{messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.contents":{id:"items",
events:!0,mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",attributes:{id:"playlist-items"},properties:{canReorder:"[[canReorder]]",withinMiniplayer:"[[withinMiniplayer]]"}},messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.saveButton":{id:"save-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.topRowButtons":{id:"top-row-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S.created=function(){this.scrollThrottle=new _.VU(this.onThrottledScroll,1E3,this)};
_.S.onMouseEnter=function(){this.isHovered=!0};
_.S.onMouseLeave=function(){this.isHovered=!1};
_.S.computeOverflowMenuData=function(g){return g&&g.menu?g.menu:null};
_.S.computeCollapsible=function(g){return!g};
_.S.computeHasPlaylistButtons=function(g){return!(!g||!g.playlistButtons)};
_.S.computeHasSeparateSaveButton=function(g){return!(!g||!g.saveButton)};
_.S.computeHasToolbarButton=function(g,r){return!(!g||!(r||g.saveButton||g.menu))};
_.S.computePlaylistType=function(g){if(g&&g.playlistId)return g.playlistId.substring(0,4)};
_.S.computeCanReorder=function(g){return g?g.playlistId&&g.playlistId.startsWith("TLPQ")?!0:!!g.isEditable&&!g.isInfinite:!1};
_.S.attached=function(){var g=this;try{_.rM().resolve(_.t6).setPlaylistComponent(this.hostElement)}catch(r){if(_.Y("kevlar_park_on_playlist_token_killswitch"))throw r;_.ep().parkOrScheduleJob(function(){_.rM().resolve(_.t6).setPlaylistComponent(g.hostElement)},2,"ci")}_.rX(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.S.detached=function(){_.ES(this.hostElement)};
_.S.computeTrailingIcon=function(g,r,E){return E?r?"yt-icons:collapse":"yt-icons:close":r?"yt-icons:expand":_.Y("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.S.computeIndexMessage=function(g,r){return pIc(g+1)+" / "+pIc(r)};
_.S.onRenderStamperFinished=function(){if(this.scrollForStampDom){var g=!0;this.isHovered&&(g=!1);if(this.collapsed||this.hidden)g=!1;g&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.S.collapseChanged=function(){var g=this;this.collapsed||(_.jT(this.ytTaskEmitterBehavior.getTaskManager(),function(){g.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.S.hiddenChanged=function(){var g=this;this.hidden||_.jT(this.ytTaskEmitterBehavior.getTaskManager(),function(){g.scrollToCurrentVideo()})};
_.S.setupReordering=function(){var g=_.S3(this.hostElement).querySelector("#items");bHD?_.YiT(this.ytReorderableBehavior,g,g,"playlist-drag-handle"):_.YiT(this.ytReorderableBehavior,g,g)};
_.S.scrollToCurrentVideo=function(){var g=this;_.F6.addJob(function(){var r=_.S3(g.hostElement).querySelector("#items");if(r){r.style.setProperty("padding-bottom","");var E=_.S3(g.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(E){r=E.parentElement||_.Y4(document);var B=r||_.Y4(document);var w=_.en(E),O=_.en(B),M=_.jmZ(B);if(B==_.Y4(document)){var u=w.x-B.scrollLeft;w=w.y-B.scrollTop}else u=w.x-O.x-M.left,w=w.y-O.y-M.top;E=nbn(E);O=B.clientHeight-
E.height;M=B.scrollLeft;var l=B.scrollTop;M+=u-(B.clientWidth-E.width)/2;B=new _.JL(M,l+(w-O/2));r.scrollLeft=B.x;r.scrollTop=B.y}}},8)};
_.S.dataChanged=function(){var g=this;_.pCD(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.Lk(this,function(){_.fC(g.ytTaskEmitterBehavior.getTaskManager(),function(){g.ytRendererBehavior.markDirty();g.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.S.onFullBleedPlayerChanged=function(){_.Y("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.S.onFullscreenChanged=function(){_.Y("web_watch_imax_theater_mode")||_.Y("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.S.updateNowPlayingOverlay=function(){_.Y("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.S.onPlaylistLockupNowPlaying=function(g,r){r&&(this.activeNowPlayingRenderer=r);this.updateNowPlayingOverlay()};
_.S.onScroll=function(){this.scrollThrottle.fire()};
_.S.onThrottledScroll=function(){var g=this;_.fC(this.ytTaskEmitterBehavior.getTaskManager(),function(){g.ytRendererBehavior.markDirty()})};
_.S.onToggleExpanded=function(g){!this.collapsible||g&&(_.yP(g).tagName==="A"||_.Zy(_.Z1(g),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.S.setCollapsed=function(g){this.collapsible&&(this.collapsed=g,_.US(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.S.handleCollapsedFromData=function(g){if(g){var r=g.playlistPanelCollapseState;r==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||r==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),r=r==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==r&&this.setCollapsed(r)):this.currentPlaylistId!==g.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(r=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==r&&this.setCollapsed(r),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=g.playlistId}};
_.S.handleDrop=function(g){var r=g.currDragItem;g=r.data.playlistSetVideoId;var E=_.IX(r.parentNode.childNodes,r),B=void 0;E>0&&(B=r.parentNode.childNodes[E-1].data.playlistSetVideoId);r=_.Kn();if(r.responsePlaylistData&&r.responsePlaylistData.contents){var w=dJV(g,r.responsePlaylistData);r.responsePlaylistData=(0,_.jn.unsafeClone)(r.responsePlaylistData);sXD(r.responsePlaylistData.contents,w,E);r.queueProxy?jh4(r.queueProxy,w,E,g,B):r.playlistProxy&&jh4(r.playlistProxy,w,E,g,B);_.xQ(r,_.aH(r,r.response?
r.response.autoplayRenderer:void 0))}};
_.S.handleDarkModeChange=function(g){g!==this.isDarkTheme&&(this.isDarkTheme=g)};
_.S.colorPaletteChanged=function(){var g,r=((g=this.data)==null?void 0:g.contents)||[],E;g=_.U(r);for(r=g.next();!r.done;r=g.next()){r=r.value;var B=void 0;if((B=r.playlistPanelVideoRenderer)==null?0:B.selected){g=r.playlistPanelVideoRenderer;B=r=void 0;(E=this.isDarkTheme?(r=g)==null?void 0:r.darkColorPalette:(B=g)==null?void 0:B.lightColorPalette)&&_.tR(this.hostElement,E);break}}this.useColorPalette=!!E};
_.hx.Object.defineProperties(i4.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var g,r;return!((g=this.data)==null||!g.playlistId)&&!((r=this.data)==null||!r.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var g=_.rM().resolve(_.gM(_.t6)),r;if(((r=this.data)==null?0:r.contents)&&(g==null?0:g.hasAutoplayData())){var E;if(((E=this.playlistLoopStateEntity)==null?void 0:E.state)==="PLAYLIST_LOOP_STATE_ONE"){if(g=this.data.currentIndex,g!==void 0){var B,w;var O=(B=this.data.contents[g])==null?void 0:(w=B.playlistPanelVideoRenderer)==null?void 0:w.title}}else{var M,u=(M=_.n(g.getAutoplayEndpoint(),_.LM))==null?void 0:M.videoId,l,Q;O=(l=this.data.contents.find(function(z){var k;
return((k=z.playlistPanelVideoRenderer)==null?void 0:k.videoId)===u}))==null?void 0:(Q=l.playlistPanelVideoRenderer)==null?void 0:Q.title}return O}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)!=null&&g.nextVideoLabel?this.nextVideoTitle?_.Vp(this.data.nextVideoLabel)+":":bEI:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var g;if(((g=this.data)==null?0:g.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.Y("web_mix_long_byline_from_data"))return _.Lf(Jun);var r;return(r=this.data)==null?void 0:r.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var g,r,E,B=(g=this.data)==null?void 0:(r=g.playlistButtons)==null?void 0:(E=r.menuRenderer)==null?void 0:E.topLevelButtons;if(B)for(g=_.U(B),r=g.next();!r.done;r=g.next())if(r=r.value,r.playlistLoopButtonRenderer)return r.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var g;return!!(this.collapsed&&((g=this.data)==null?0:g.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.Y("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
i4.prototype.colorPaletteChanged=i4.prototype.colorPaletteChanged;i4.prototype.onPlaylistLockupNowPlaying=i4.prototype.onPlaylistLockupNowPlaying;i4.prototype.updateNowPlayingOverlay=i4.prototype.updateNowPlayingOverlay;i4.prototype.onFullscreenChanged=i4.prototype.onFullscreenChanged;i4.prototype.onFullBleedPlayerChanged=i4.prototype.onFullBleedPlayerChanged;i4.prototype.dataChanged=i4.prototype.dataChanged;i4.prototype.hiddenChanged=i4.prototype.hiddenChanged;i4.prototype.collapseChanged=i4.prototype.collapseChanged;
i4.prototype.onRenderStamperFinished=i4.prototype.onRenderStamperFinished;i4.prototype.onMouseLeave=i4.prototype.onMouseLeave;i4.prototype.onMouseEnter=i4.prototype.onMouseEnter;_.m([_.P(_.f7),_.L("design:type",Object)],i4.prototype,"ironResizableBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],i4.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],i4.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.P(k0T.YtPlaylistPanelBehavior),_.L("design:type",Object)],i4.prototype,"ytPlaylistPanelBehavior",void 0);_.m([_.P(_.Zl.YtTaskEmitterBehavior),_.L("design:type",Object)],i4.prototype,"ytTaskEmitterBehavior",void 0);_.m([_.P(_.RZZ),_.L("design:type",Object)],i4.prototype,"ytReorderableBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],i4.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],i4.prototype,"ytdReduxBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],i4.prototype,"actionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],i4.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],i4.prototype,"autoplayData",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],i4.prototype,"withinMiniplayer",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],i4.prototype,"minimizePipBreakages",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],i4.prototype,"updatedCoursePanel",void 0);_.m([_.K({computed:"setMenuData_(data)"}),_.L("design:type",Object)],i4.prototype,"menuRendererData",void 0);_.m([_.K({computed:"computeOverflowMenuData(data)"}),_.L("design:type",Object)],i4.prototype,"overflowMenuDataTopRow",void 0);_.m([_.K({computed:"computeOverflowMenuData(data)"}),_.L("design:type",Object)],i4.prototype,"overflowMenuData",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],i4.prototype,"hideHeaderText",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],i4.prototype,"useColorPalette",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.L("design:type",Boolean)],i4.prototype,"collapsible",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],i4.prototype,"collapsed",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],i4.prototype,"hidden",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.L("design:type",Boolean)],i4.prototype,"hasPlaylistButtons",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.L("design:type",Boolean)],i4.prototype,"hasSeparateSaveButton",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.L("design:type",Boolean)],i4.prototype,"hasToolbar",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.L("design:type",String)],i4.prototype,"playlistType",void 0);_.m([_.K(),_.L("design:type",Object)],i4.prototype,"isHovered",void 0);_.m([_.K({selectorArgs:["playlistLoopStateEntityKey"],selector:_.KfP}),_.L("design:type",Object)],i4.prototype,"playlistLoopStateEntity",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],i4.prototype,"modernPanels",void 0);_.m([_.K({value:56}),_.L("design:type",Number)],i4.prototype,"scrollMargin",void 0);_.m([_.K({computed:"computeCanReorder(data)"}),_.L("design:type",Boolean)],i4.prototype,"canReorder",void 0);_.m([_.K(),_.L("design:type",Object)],i4.prototype,"expandLabel",void 0);_.m([_.K(),_.L("design:type",Object)],i4.prototype,"collapseLabel",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],i4.prototype,"isFloating",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],i4.prototype,"metaPanel",void 0);_.m([_.K({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.L("design:type",String)],i4.prototype,"trailingIcon",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],i4.prototype,"isDarkTheme",void 0);
_.m([_.K({selector:_.tj}),_.L("design:type",Boolean)],i4.prototype,"miniplayerIsActive",void 0);_.m([_.K({selector:function(g){return g.watch.playerState}}),
_.L("design:type",Number)],i4.prototype,"playerState",void 0);_.m([_.K({selector:_.PX}),_.L("design:type",Boolean)],i4.prototype,"isFullscreen",void 0);_.m([_.K({selector:_.Jf}),_.L("design:type",Boolean)],i4.prototype,"isTheaterMode",void 0);_.m([_.K(),_.L("design:type",Object)],i4.prototype,"activeNowPlayingRenderer",void 0);_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],i4.prototype,"moveThreeDotMenuToTopRow",null);
_.m([_.W("data","autoplayData","playlistLoopStateEntity"),_.L("design:type",Object),_.L("design:paramtypes",[])],i4.prototype,"nextVideoTitle",null);_.m([_.W("data","nextVideoTitle"),_.L("design:type",String),_.L("design:paramtypes",[])],i4.prototype,"nextVideoLabel",null);_.m([_.W("collapsed"),_.L("design:type",String),_.L("design:paramtypes",[])],i4.prototype,"buttonAriaLabel",null);
_.m([_.W("data","playlistId","longBylineText"),_.L("design:type",Object),_.L("design:paramtypes",[])],i4.prototype,"mixLongByLine",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],i4.prototype,"playlistLoopStateEntityKey",null);_.m([_.ob("mouseenter"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],i4.prototype,"onMouseEnter",null);
_.m([_.ob("mouseleave"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],i4.prototype,"onMouseLeave",null);_.m([_.K({reflectToAttribute:!0}),_.W("data","collapsed"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],i4.prototype,"showNextVideoHeader",null);_.m([_.ob("yt-rendererstamper-finished"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],i4.prototype,"onRenderStamperFinished",null);
_.m([_.Gb("collapsed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],i4.prototype,"collapseChanged",null);_.m([_.Gb("hidden"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],i4.prototype,"hiddenChanged",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],i4.prototype,"dataChanged",null);
_.m([_.W("isTheaterMode","isFullscreen"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],i4.prototype,"isFullBleedPlayer",null);_.m([_.Gb("isTheaterMode","isFullscreen"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],i4.prototype,"onFullBleedPlayerChanged",null);_.m([_.Gb("isFullscreen"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],i4.prototype,"onFullscreenChanged",null);
_.m([_.Gb("playerState","miniplayerIsActive"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],i4.prototype,"updateNowPlayingOverlay",null);_.m([_.ob("yt-playlist-lockup-now-playing-active"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],i4.prototype,"onPlaylistLockupNowPlaying",null);
_.m([_.Gb("data","isDarkTheme"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],i4.prototype,"colorPaletteChanged",null);_.m([_.N({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],i4);
_.Pgn=_.U2()(i4,"ytd-playlist-panel-renderer",function(){if(fZD===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);fZD=g}g=fZD;return g},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var tcD;var Lr=function(){var g=_.a.apply(this,arguments)||this;g.modern=_.Y("web_button_rework");return g};
_.f(Lr,_.a);Lr.prototype.computeShouldButtonBeVertical=function(g,r){return g||r};
Lr.prototype.onYtServiceRequestSent=function(g,r){(g=_.n(r.endpoint,_.Nq))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.za("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:g.status})):this.handleLikeEndpoint(g))};
Lr.prototype.computelikeStatusEntityKey=function(g){return g==null?void 0:g.likeStatusEntityKey};
Lr.prototype.handleLikeEndpoint=function(g){g.status==="LIKE"?this.JSC$15055_ytdDislikeToggleButtonRenderer.toggle(!1):g.status==="DISLIKE"?this.JSC$15055_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15055_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15055_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.hx.Object.defineProperties(Lr.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var g;return suX(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(g=this.likeStatusEntity)==null?void 0:g.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var g;if(this.data&&((g=this.data)==null||!g.hideDislikeButton)){var r;return suX(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(r=this.likeStatusEntity)==null?void 0:r.likeStatus)}}}});
Lr.prototype.onYtServiceRequestSent=Lr.prototype.onYtServiceRequestSent;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Lr.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],Lr.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Lr.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Lr.prototype,"vertical",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],Lr.prototype,"textTransform",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Lr.prototype,"useShortsIcon",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Lr.prototype,"underIconLabel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Lr.prototype,"modern",void 0);_.m([_.K({value:"left"}),_.L("design:type",String)],Lr.prototype,"buttonTooltipPosition",void 0);
_.m([_.K(),_.L("design:type",Object)],Lr.prototype,"overrides",void 0);_.m([_.zb("#like-button"),_.L("design:type",Object)],Lr.prototype,"JSC$15055_ytdLikeToggleButtonRenderer",void 0);_.m([_.zb("#dislike-button"),_.L("design:type",Object)],Lr.prototype,"JSC$15055_ytdDislikeToggleButtonRenderer",void 0);_.m([_.W("data","likeStatusEntity.likeStatus","useShortsIcon"),_.L("design:type",Object),_.L("design:paramtypes",[])],Lr.prototype,"likeButton",null);
_.m([_.W("data","likeStatusEntity.likeStatus","useShortsIcon"),_.L("design:type",Object),_.L("design:paramtypes",[])],Lr.prototype,"dislikeButton",null);_.m([_.K({computed:"computelikeStatusEntityKey(data)"}),_.L("design:type",String)],Lr.prototype,"likeStatusEntityKey",void 0);_.m([_.K({selectorArgs:["likeStatusEntityKey"],selector:Kh}),_.L("design:type",Object)],Lr.prototype,"likeStatusEntity",void 0);
_.m([_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.XA]),_.L("design:returntype")],Lr.prototype,"onYtServiceRequestSent",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],Lr);
var FE6=_.U2()(Lr,"ytd-like-button-renderer",function(){if(tcD===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);tcD=g}g=tcD;return g},{mode:1});_.eJZ={};
_.eJZ.YtConditionalRendererBehavior=[_.T.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(g,r){var E=this,B,w;return _.q(function(O){switch(O.nextAddress){case 1:if(!r)return E.hidden=!0,E.showSpinner=!1,O.return();if((B=g)==null?0:(w=B.visibilityCondition)==null?0:w.mode)switch(g.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return O.jumpTo(5);default:return O.jumpTo(6)}E.showSpinner=
!1;E.hidden=!0;return _.D(O,E.shouldShow_(g),4);case 4:E.hidden=!O.yieldResult;O.jumpTo(0);break;case 5:return _.D(O,E.shouldShow_(g),8);case 8:E.showSpinner=O.yieldResult;E.hidden=!1;O.jumpTo(0);break;case 6:return E.showSpinner=!1,_.D(O,E.shouldShow_(g),9);case 9:E.hidden=!O.yieldResult,_.Q3(O)}})},
shouldShow_:function(g){return g&&g.supportedDatas&&g.supportedDatas.rendererVisibilityConditionData&&g.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(g.supportedDatas.rendererVisibilityConditionData.showIf):g&&g.visibilityCondition&&g.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(g.visibilityCondition.showIf):g&&g.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(g.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(g){switch(g){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(g){switch(g){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var g=_.OS(this.hostElement,"yt-get-mdx-status");return g.length==1&&g[0].connected},
isLocationPermissionGranted_:function(){var g;return _.q(function(r){return r.nextAddress==1?navigator.permissions?_.D(r,navigator.permissions.query({name:"geolocation"}),3):r.jumpTo(2):r.nextAddress!=2?(g=r.yieldResult,r.return(Promise.resolve(g.state==="granted"))):r.return(Promise.resolve(!1))})}}];var WEz=function(g,r){r=r===void 0?{}:r;var E=function(B){var w=document.createElement(g),O;var M=(O=w.polymerController)!=null?O:w;hbl(w,M,B,r);return w};
E.debugName=g+" (CoW wrapped)";return E}("yt-icon"),Cgw=_.Y("web_bypass_polymer_yt_icon")&&_.Y("kevlar_use_wil_icons")?_.dG(function(g){var r=g.icon;
var E=g.active;var B=g.className;var w=g.style;var O=g.dataSelected;var M=g.dataDisabled;var u=g.role;var l=g.themeOverride;var Q=g.animateIcon;var z=g.ariaHidden;var k=g.ariaExpanded;var H=g.ariaLabel;var R=g.tabindex;var A=g.id;var J=g.iconFilter;var e=function(){var Z=r==null?void 0:r(),c=null,h=void 0;Z&&(Z=b2D(Z),Z=src(Z),Z.length&&(c=Z[1],h=Z[0]));return{iconName:c,iconSetName:h}},C=function(){return J7z(e().iconName,E==null?void 0:E(),void 0,void 0,e().iconSetName,_.rM().resolve(_.o3))},X=
function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:J==null?void 0:J()}};
return _.G(_.p,{cond:Q,then:function(){return _.G(WEz,{icon:r,active:E,className:B,style:w,dataSelected:O,dataDisabled:M,role:u,themeOverride:l,ariaHidden:z,ariaExpanded:k,ariaLabel:H,tabindex:R,id:A,iconFilter:J})},
else:function(){return _.G(_.p,{cond:C,then:function(Z){return _.G("span",{class:_.QY("ytIconWrapperHost",B),role:u,"aria-label":H,"aria-hidden":z,tabindex:function(){return isNaN(Number(R==null?void 0:R()))?void 0:Number(R==null?void 0:R())},
id:A,style:w},_.G(L2P,{data:Z,options:X}))}})}})},"re"):WEz;var KEZ=function(g){var r=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];L$c();_.vN("ytglobal.ytUtilActivityCallback_",function(){_.US(g,"yt-user-activity")});
new gu(function(){return r.JSC$15070_onMouseMove});
document.addEventListener("scroll",function(){return r.onScroll});
window.addEventListener("resize",function(){return r.onResize})},xWz=function(g,r,E){r in g.eventJobIds||(E=_.s8().addLowPriorityJob(function(){_.ru();
delete g.eventJobIds[r]},E),g.eventJobIds[r]=E)};
KEZ.prototype.onScroll=function(g){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):g.target===document&&xWz(this,"scroll",200)};
KEZ.prototype.onResize=function(){xWz(this,"resize",200)};
KEZ.prototype.JSC$15070_onMouseMove=function(){xWz(this,"mousemove",100)};
_.L4=function(g){g.scrollEventsToIgnore+=1;g.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){g.scrollEventsToIgnore--},500))};var aZn=function(g){this.element=g;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
aZn.prototype.showFeedbackDialog=function(g,r,E,B){var w=XZn();if(!w)return!1;var O=WOP();O.productId=w;r&&(O.flow="submit",O.report={description:r});E&&(XZn()==="59"?O.callback=_.aa(function(){_.Jn("userFeedbackEvent",{});E()}):O.callback=_.aa(E));
O.bucket=B||_.Ca("GOOGLE_FEEDBACK_BUCKET","Other");Nin(O);g=IZD(this,"GFEEDBACK",g);try{_.sxA(O,g)}catch(M){return _.xF(M),!1}return!0};
aZn.prototype.showHelpDialog=function(g,r,E){var B=this,w=XZn();if(!w)return!1;var O={helpCenterPath:"/youtube",productData:IZD(this,"GUIDED_HELP",E)};Nin(O);var M=WOP();M.context=g||O.productData.context||"default";M.defaultHelpArticleId=r;M.enableSendFeedback=!0;(_.XS("gapi.load")||function(u,l){return l()})("client",function(){try{var u=SYw(w,O);
if(_.Y("web_always_load_chat_support")&&!B.chatSupportLoaded)try{u.JSC$8066_loadChatSupport(M),B.chatSupportLoaded=!0}catch(l){}u.startHelp(M)}catch(l){_.xF(l)}})};
var XZn=function(){var g=_.Ca("GOOGLE_FEEDBACK_PRODUCT_ID");g||_.xF(Error("ii"));return g},Nin=function(g){g&&(g.locale=_.Y("kevlar_help_use_locale")?_.Ca("INNERTUBE_CONTEXT_HL","en"):_.Ca("HTML_LANG","en"))},IZD=function(g,r,E){var B=g.productData;
delete B.origin;B.device=_.kc();var w;a:{if(w=document.createElement("canvas")){var O=w.getContext("experimental-webgl",{stencil:!0});if(O){var M=O.getExtension("WEBGL_debug_renderer_info");if(M){w=O.getParameter(M.UNMASKED_RENDERER_WEBGL);break a}}if(O=w.getContext("webgl")){w=O.getParameter(O.RENDERER);break a}}w=null}B.gpu=w;B.isSDC=!!_.Ca("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(w=_.Ca("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.jn.extend(B,w);_.FOL(r,B);_.eAJ(B);(g=_.US(g.element,"yt-get-autonav-pause-debug-state"))&&
g.length&&(B.autonav_pause_state=g[0]);g=_.GM();B.browser_resolution=g.width+"\u00d7"+g.height+"@"+(window.devicePixelRatio||1)+"x";E&&_.jn.extend(B,E);return B};
aZn.prototype.resetProductData=function(){this.productData={}};var mWT=function(g){this.feedbackManager=new aZn(g)};
mWT.prototype.showFeedbackDialog=function(g,r,E,B){return this.feedbackManager.showFeedbackDialog(g,r,E,B)};
mWT.prototype.showHelpDialog=function(g,r,E){return this.feedbackManager.showHelpDialog(g,r,E)};var cun=function(){this.baseUrl="";this.aTag=document.createElement("a")},fGn=function(g,r,E){E=E===void 0?{}:E;
E.pbj||(E.pbj=1);E=_.PVD(r,E);g.baseUrl&&E&&!_.hk(E)[1]&&!_.Zn(E)&&(r=g.baseUrl,UD(r,"/")&&(r=r.slice(0,-1)),_.wl(E,"/")&&(E=E.slice(1)),E=r+"/"+E);Aa(g.aTag,YU(E||""));return g.aTag.href};
cun.prototype.fetchData=function(g){return _.juA(g)};
cun.prototype.postData=function(g,r){var E={method:"POST"};if(r){for(var B=_.U(Object.keys(r)),w=B.next();!w.done;w=B.next()){w=w.value;var O=r[w];_.gA(O)&&(r[w]=JSON.stringify(O))}E.postParams=r}return _.juA(g,E)};
_.$j6=function(g,r,E,B,w){g=fGn(g,r,E);if(!g)throw B=Error("ji"),Object.assign(B,{params:r}),B;return _.juA(g,w,B)};
cun.prototype.requestDataForServiceEndpoint=function(g,r){if(_.n(g,_.fAL))return this.fetchData("/getAccountSwitcherEndpoint");r=r||{};var E=_.n(g,daw);E?r.se=E.base64EncodedServiceEndpoint:r.sej=JSON.stringify(g);(E=_.PE())&&_.Y("enable_service_ajax_csn")&&(r.csn=E);r.theme=_.bF();_.n(g,nOP)&&_.Ca("DELEGATION_CONTEXT")&&(r.delegation_context=JSON.stringify(_.Ca("DELEGATION_CONTEXT")));E=null;for(var B in g)if(UD(B,"Endpoint")||UD(B,"Command")){E=B;break}if(!E){var w=Error("ki");Object.assign(w,{params:g});
_.AMB(w,"WARNING");return new _.D8(function(M,u){u(w)})}B={name:E};
var O;(E=(O=_.n(g,_.Gn))==null?void 0:O.signal)&&(B.signal=E);(O=_.iu(window.location.href))&&O.internalcountrycode&&(B.internalcountrycode=O.internalcountrycode);O="/service_ajax";_.Y("debug_forward_web_query_parameters")&&(O=_.Isl(O,window.location.search));O=_.Vg(O,B);g.clickTrackingParams&&_.yk(O,{itct:g.clickTrackingParams});return this.postData(O,r)};_.iEm=new _.Vn("GFEEDBACK_TOKEN");var LEA;var VcI;var hJw;var ZEI;var VE=function(){var g=_.a.apply(this,arguments)||this;g.compact=!1;return g};
_.f(VE,_.a);VE.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
VE.prototype.computeHasIcon_=function(g){return!!g};
VE.prototype.isSignInIcon_=function(g){return g=="yt-icons:prompted_sign_in"};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],VE.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],VE.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.eJZ.YtConditionalRendererBehavior),_.L("design:type",Object)],VE.prototype,"ytConditionalRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],VE.prototype,"data",void 0);
_.m([_.K({computed:"computeIcon_(data.icon)"}),_.L("design:type",Object)],VE.prototype,"icon_",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.L("design:type",Boolean)],VE.prototype,"hasIcon_",void 0);_.m([_.K({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.L("design:type",Boolean)],VE.prototype,"signInIcon_",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],VE.prototype,"compact",void 0);
_.m([_.e3({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],VE);
_.I(VE,"yt-player-error-message-renderer",function(){if(ZEI===void 0){var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;hJw===void 0&&(hJw=document.createElement("template"));var B=hJw;E.call(r,B.content.cloneNode(!0),g.content.firstChild);ZEI=g}g=ZEI;return g},{mode:2});var yuD;var vEZ;var hE=function(){return _.a.apply(this,arguments)||this};
_.f(hE,_.a);hE.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
hE.prototype.computeIcon_=function(g){return g?"yt-icons:"+g.iconType.toLowerCase():"error_outline"};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],hE.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],hE.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],hE.prototype,"data",void 0);_.m([_.K({computed:"computeIcon_(data.icon)"}),_.L("design:type",Object)],hE.prototype,"icon_",void 0);_.m([_.e3({is:"yt-player-kav-renderer",disableElementRegistration:!0})],hE);
_.I(hE,"yt-player-kav-renderer",function(){if(vEZ===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;yuD===void 0&&(yuD=document.createElement("template"));var B=yuD;E.call(r,B.content.cloneNode(!0),g.content.firstChild);vEZ=g}g=vEZ;return g},{mode:2});_.BK(_.dG(function(g){var r=_.VI("div"),E=_.U(_.Dk(0,void 0,"gCmSbf")),B=E.next().value,w=E.next().value;E=_.U(_.Dk(null,void 0,"Rj9zMe"));var O=E.next().value,M=E.next().value;_.Jk(function(){x5l(r.value,w,M);r.value.scrollIntoView()});
E=aMV.bind(null,g.data,B);du("resize",function(){var u=O();if(B()===1&&u!==null){var l;(l=window.grecaptcha)==null||l.reset(u)}});
return _.G("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.G("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.G("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var u,l;return(u=g.data().accessibility)==null?void 0:(l=u.accessibilityData)==null?void 0:l.label}),_.G(_.hf,{text:E,
className:_.QY("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.G("div",{el:r,class:"ytwPlayerCaptchaViewModelGridItem"})))},"se"),"yt-player-captcha-view-model",{props:{data:_.EB}});var XIJ=!1;_.dW4=_.dG(function(g){var r=g.data;return _.G("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.G(_.p,{cond:function(){return r().icon},
then:function(E){return _.G("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.G(_.vw,{data:E,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.G(_.p,{cond:function(){return r().title},
then:function(E){return _.G("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.G(_.hf,{text:E}))}}),_.G(_.p,{cond:function(){return r().description},
then:function(E){return _.G("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.G(_.hf,{text:E}))}}),_.G(_.Af,{data:function(){return r().primaryButton}},{buttonViewModel:function(E){return _.G(_.MV,{data:E.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.G(_.Af,{data:function(){return r().secondaryButton}},{buttonViewModel:function(E){return _.G(_.MV,{data:E.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"te");
_.dW4.idomCompat=!0;var Tib=_.dG(function(g){var r=g.data;_.iP();return _.G("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.G("div",{class:"player-interstitial-renderer-wiz__scrim"},_.G(_.Af,{data:function(){return r().content}},{interstitialViewModel:_.dW4})))},"ue");
Tib.idomCompat=!0;_.BK(Tib,"yt-player-interstitial-renderer",{props:{data:_.cP}});var ZG=function(){var g=_.a.apply(this,arguments)||this;g.noBackground=!1;g.compact=!1;g.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return g};
_.f(ZG,_.a);ZG.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"}}}};
ZG.prototype.onUpdatePlayerErrorMessageCommand_=function(g){if(_.n(g,MBw)){var r;if(g=(r=_.n(g,MBw))==null?void 0:r.newPlayerErrorMessageRenderer)this.data=g}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ZG.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],ZG.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],ZG.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ZG.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],ZG.prototype,"status",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],ZG.prototype,"noBackground",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],ZG.prototype,"compact",void 0);_.m([_.e3({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],ZG);
var gMn=_.U2()(ZG,"yt-playability-error-supported-renderers",function(){if(VcI===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;LEA===void 0&&(LEA=document.createElement("template"));var B=LEA;E.call(r,B.content.cloneNode(!0),g.content.firstChild);VcI=g}g=VcI;return g},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var Nft=void 0,m5l=void 0;var LOV=new c_6;var rVw=function(g){this.store=g;this.wdm=new _.VWn},RdS=function(g,r,E){var B,w;
if(!(w=((B=r.playabilityStatus)==null?void 0:B.status)!=="OK")){g=g.store;var O;w=r.offlineState&&((O=r.videoDetails)==null?0:O.videoId)?_.Y("enable_pl_r_c_cd")?vCA(g.getState().entities,r.videoDetails.videoId):!!r9A(g.getState().entities,r.videoDetails.videoId):!1}if(w)return!0;w=v6A(r);if(w===1){if(_.Y("ab_v_vid_sig")){var M,u=(M=r.videoDetails)==null?void 0:M.videoId;if(!u||!E||u!==E){var l;r=new _.Rj("282054944_vid",{ktt:E,qNu:(l=r.videoDetails)==null?void 0:l.videoId});_.tn(r)}}return!0}eGB=
0;var Q,z;l=(u=r.auxiliaryUi)==null?void 0:(Q=u.messageRenderers)==null?void 0:(z=Q.bkaEnforcementMessageViewModel)==null?void 0:z.displayType;if(w!==3&&(l==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||l==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;l={reason:_.gz(_.zn("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.Y("ks_something_wrong_learn_more")?GdJ("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.gz(_.zn("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:_.gz("282054944")};EM4(r,{playerErrorMessageRenderer:l});return!1},nSl=function(g,r){if(vll(r)){_.GF(1,!0);
var E=(E=vll(r))&&_.IMc()?E:void 0;E?(EM4(r,{enforcementMessageViewModel:E}),g.wdm.increment("IN_PLAYER"),_.GF(5)):(g.wdm.increment("SKIP_DISPLAY"),_.GF(2))}},EM4=function(g,r){g.playabilityStatus=Object.assign({},g.playabilityStatus,{status:"ERROR",
errorScreen:r});g.videoDetails=void 0};
rVw.prototype.handleResponse=function(g,r){if(g.playabilityStatus){var E,B,w,O=(r==null?void 0:(E=r.innerTubeRequest)==null?void 0:E.videoId)||(r==null?void 0:(B=r.innerTubeRequest)==null?void 0:(w=B.playerRequest)==null?void 0:w.videoId);RdS(this,g,O)&&nSl(this,g)}};
rVw[LU]=[Sa];var pBB=new _.Vn("ADBLOCK_DETECTION_SERVICE_TOKEN");var Zp=function(g){this.iYY=g};
Zp.prototype.bindInnertubeChallengeFetcher=function(g){this.iYY.bicf(g)};
Zp.prototype.registerChallengeFetchedCallback=function(g){this.iYY.bcr(g)};
Zp.prototype.getLatestChallengeResponse=function(){return this.iYY.blc()};var Opz;_.yE=function(g,r,E){var B=this;this.network=g;this.options=r;this.networkStatusManager=E;this.gY=null;if(r.useBotguardEverywhere){var w=new _.uF;this.gY=w.promise;_.ED.ytAtRC&&_.pm(_.F6,function(){var O,M;return _.q(function(u){if(u.nextAddress==1){if(!_.ED.ytAtRC)return u.return();O=Ben(null);return _.D(u,B.vk(O),2)}M=u.yieldResult;_.ED.ytAtRC&&_.ED.ytAtRC(JSON.stringify(M));_.Q3(u)})});
EGX().then(function(O){var M,u,l,Q;return _.q(function(z){if(z.nextAddress==1)return O.bindInnertubeChallengeFetcher(function(k){return B.vk(Ben(k))}),_.D(z,b5L(),2);
M=z.yieldResult;u=O.getLatestChallengeResponse();l=u.challenge;if(!l)throw Error("li");Q={challenge:l,qc:hl(l),hm:M,bgChallenge:new L0};w.resolve(Q);O.registerChallengeFetchedCallback(function(k){k=k.challenge;if(!k)throw Error("mi");k={challenge:k,qc:hl(k),hm:M,bgChallenge:new L0};B.gY=Promise.resolve(k)});
_.Q3(z)})})}else r.preload&&wqn(this,new Promise(function(O){_.fC(_.F6,function(){O(SOb(B))},0)}))};
Opz=function(g){var r={preload:!0,useBotguardEverywhere:!0},E=!1;if(typeof r==="boolean")var B={preload:r};else typeof r==="undefined"?B={preload:!0}:(B=r,E=!!r.yVe);r=E?void 0:new _.id;_.yE.instance=new _.yE(g,B,r);return _.yE.instance};
_.yE.prototype.ad6=function(){var g=this;return _.q(function(r){return r.nextAddress==1?_.D(r,Promise.race([g.gY,null]),2):r.return(!!r.yieldResult)})};
_.yE.prototype.lRh=function(g,r,E){var B=this,w,O,M;return _.q(function(u){B.gY===null&&wqn(B,SOb(B));w=!1;O={};M=function(){var l,Q,z;return _.q(function(k){switch(k.nextAddress){case 1:return _.D(k,B.gY,2);case 2:l=k.yieldResult;O.challenge=l.challenge;if(!l.hm){"c1a"in l.qc&&(O.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");k.jumpTo(3);break}Q=Object.assign({},{c:l.challenge,e:g},r);_.qN(k,4);w=!0;return _.D(k,l.hm.snapshot({zp:Q}),6);case 6:(z=k.yieldResult)?O.webResponse=z:O.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.Ne(k,3);break;case 4:_.G2(k),O.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(g==="ENGAGEMENT_TYPE_PLAYBACK"){var H=l.qc,R={};if(H.c6a){var A=Number(_.Ca("DCLKSTAT",0));R.reportingStatus=String(Number(H.c)^(isNaN(A)?0:A))}H.c6b&&(R.broadSpectrumDetectionResult=String(Number(H.c)^Number(_.Ca("CATSTAT",0))));O.adblockReporting=R}return k.return(O)}})};
return u.return(Promise.race([M(),Ulm(E,function(){var l=Object.assign({},O);w&&(l.error="ATTESTATION_ERROR_VM_TIMEOUT");return l})]))})};
var Ben=function(g){var r={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};g&&(r.interpreterHash=g);return r},SOb=function(g,r){r=r===void 0?0:r;
var E,B,w,O,M,u,l,Q,z,k,H,R;return _.q(function(A){switch(A.nextAddress){case 1:E=Ben(VyU().agy);if(_.Y("att_fet_ks"))return _.qN(A,7),_.D(A,g.vk(E),9);_.qN(A,4);return _.D(A,Mmm(g,E),6);case 6:M=A.yieldResult;w=M.dfY;O=M.fqw;B=M;_.Ne(A,3);break;case 4:return _.G2(A),_.el(Error("ni`"+r)),qOz(g,864E5),A.return({challenge:"",qc:{},hm:void 0,bgChallenge:void 0});case 9:B=A.yieldResult;if(!B)throw Error("oi");if(!B.challenge)throw Error("pi");w=B.challenge;O=hl(w);if("c1a"in O&&(!B.bgChallenge||!B.bgChallenge.program))throw Error("qi");
_.Ne(A,3);break;case 7:u=_.G2(A);_.el(u);r++;if(r>=5)return _.el(Error("ni`"+r)),qOz(g,864E5),A.return({challenge:"",qc:{},hm:void 0,bgChallenge:void 0});l=1E3*Math.pow(2,r-1)+Math.random()*1E3;return A.return(new Promise(function(J){_.fC(_.F6,function(){J(SOb(g,r))},l)}));
case 3:Q=rUB(O);qOz(g,Q*1E3);z=void 0;if(!("c1a"in O&&B.bgChallenge)){A.jumpTo(10);break}k=gGl(B.bgChallenge);_.qN(A,11);return _.D(A,ZI6(VyU(),k),13);case 13:_.Ne(A,12);break;case 11:return H=_.G2(A),_.el(H),A.return({challenge:w,qc:O,hm:z,bgChallenge:k});case 12:return _.qN(A,14),z=new _.b8({challenge:k,dfg:{hL:"aGIf"}}),_.D(A,z.nrh,16);case 16:_.Ne(A,10);break;case 14:R=_.G2(A),_.el(R),z=void 0;case 10:return A.return({challenge:w,qc:O,hm:z,bgChallenge:k})}})};
_.yE.prototype.vk=function(g){var r=this,E;return _.q(function(B){E=r.networkStatusManager;if(!E||E.isNetworkAvailable())return B.return(r.network.vk(g));_.Wk("att_pna",void 0,"attestation_challenge_fetch");return B.return(new Promise(function(w){E.listenOnce("publicytnetworkstatus-online",function(){r.network.vk(g).then(w)})}))})};
var uM6=function(g){if(!g)throw Error("oi");if(!g.challenge)throw Error("pi");var r=g.challenge,E=hl(r);if("c1a"in E&&(!g.bgChallenge||!g.bgChallenge.program))throw Error("qi");return Object.assign({},g,{dfY:r,fqw:E})},Mmm=function(g,r){var E,B,w,O,M;
return _.q(function(u){switch(u.nextAddress){case 1:E=void 0,B=0,w={};case 2:if(!(B<5)){u.jumpTo(4);break}if(!(B>0)){u.jumpTo(5);break}w.aK6=1E3*Math.pow(2,B-1)+Math.random()*1E3;return _.D(u,new Promise(function(l){return function(Q){_.fC(_.F6,function(){Q(void 0)},l.aK6)}}(w)),5);
case 5:return _.qN(u,7),_.D(u,g.vk(r),9);case 9:return O=u.yieldResult,u.return(uM6(O));case 7:E=M=_.G2(u),M instanceof Error&&_.el(M);case 8:B++;w={aK6:void 0};u.jumpTo(2);break;case 4:throw E;}})},wqn=function(g,r){g.gY=r},lgD=function(g){var r,E,B;
return _.q(function(w){if(w.nextAddress==1)return _.D(w,Promise.race([g.gY,null]),2);r=w.yieldResult;var O=SOb(g);g.gY=O;(E=r)==null||(B=E.hm)==null||B.dispose();_.Q3(w)})},qOz=function(g,r){var E=Date.now()+r,B=function(){var w;
return _.q(function(O){w=E-Date.now();return w<1E3?_.D(O,lgD(g),0):(_.fC(_.F6,B,Math.min(w,6E4)),O.jumpTo(0))})};
B()},Ulm=function(g,r){return new Promise(function(E){_.fC(_.F6,function(){E(r())},g)})};var DlU=function(){};
DlU.prototype.processContext=function(g){var r=_.yE.instance;if(!r)return _.I1();var E=MAP(g);return E?new NC(r.lRh(E,S1P(g),500).then(function(B){var w;(g==null?0:(w=g.innerTubeRequest)==null?0:w.context)||(g.innerTubeRequest.context={});w=g.innerTubeRequest.context;w.request||(w.request={});w.request.attestationResponseData=B})):_.I1()};var oMZ=function(g){this.innertubeTransportService=g};
oMZ.prototype.vk=function(g){_.Wk("att_fsr",void 0,"attestation_challenge_fetch");return _.Pa(this.innertubeTransportService,g,_.yp(_.uQZ)).then(function(r){_.Wk("att_frr",void 0,"attestation_challenge_fetch");return r})};_.GzZ=function(g){this.innertubeTransportService=g};var QnZ=new _.Vn("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var zQn=function(){},HpD=function(g,r,E,B,w){var O=_.Ca("YPC_MB_URL");
_.cUS(O).then(function(){kzD(O,g,r,E,B,w)})},kzD=function(g,r,E,B,w,O){try{var M=payments.business.integration,u=payments.business.integration.Style.create().withMaterialDesignStyle(),l=M.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.Y("enable_window_constrained_buy_flow_dialog")&&(l=l.usingPopupStyle("windowConstrained"));O&&(l=l.usingCloseCallback(O));var Q=E?E:_.Ca("YPC_GB_LANGUAGE"),z=_.Ca("SESSION_INDEX");M.bootstrap.fromPaymentsUrl(g);M.bootstrap.asMashupMode(l).usingGaiaIndex(z).usingLocale(Q).usingStyle(u).usingDefaultActivityStatusChangeHandler().inStandaloneContext(M.standaloneContextAuthId.forGaia()).purchaseManager(r,function(k){B&&B(k)}).load(void 0,w)}catch(k){throw w&&w(k),_.tn(k),k;
}};var pqw=new _.Vn("PURCHASE_MANAGER_TOKEN");var YOn=function(){var g=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return g.videos},
getContinuationsPresent:function(){return g.continuationsPresent},
setVideos:function(r){g.videos=r},
getRecommendedVideos:function(){return g.recommendedVideos},
setRecommendedVideos:function(r){g.recommendedVideos=r}}};
YOn.prototype.addVideos=function(g){g&&(this.videos=g.filter(function(r){return!!_.unV(r)}).map(function(r){var E=_.unV(r);
a:{var B;if(r.playlistVideoRenderer&&((B=r.playlistVideoRenderer)==null?0:B.voteSortTiebreaker))var w=r.playlistVideoRenderer.voteSortTiebreaker;else{if(_.n(r,vm)){var O;if(B=(w=_.n(r,vm))==null?void 0:(O=w.playlistItemData)==null?void 0:O.voteSortTiebreaker){w=B;break a}}w=""}}return{itemId:E,videoId:_.oGD(r),voteCount:_.GHL(r),voteSortTiebreaker:w}}),this.continuationsPresent=!!_.n(g[g.length-1],_.gx))};
var RQU=function(g,r){return g.videos.findIndex(function(E){return E.itemId===r})},nMw=function(g,r){return g.recommendedVideos.findIndex(function(E){return E.itemId===r})},snm=function(g){g={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:g}}}}};_.rM().resolve(_.Er).resolveCommand(g)};var fg6=function(){YOn.apply(this,arguments)};
_.f(fg6,YOn);
var U3w=function(g,r,E,B){if(!g.parentElem)throw Error("vi");var w=RQU(g,r);w===-1&&(w=nMw(g,r),w=w!==-1?w+g.videos.length:-1);if(w===-1)throw Error("wi");var O=w>=g.videos.length?g.recommendedVideos[w-g.videos.length]:g.videos[w];O.voteCount=E;O.voteSortTiebreaker=Date.now().toString();w>=g.videos.length?g.recommendedVideos.splice(w-g.videos.length,1):g.videos.splice(w,1);var M=g.videos;for(var u=0,l=M.length-1;u<=l;){var Q=Math.floor((u+l)/2);if(M[Q].voteCount<O.voteCount)l=Q-1;else if(M[Q].voteCount>O.voteCount)u=
Q+1;else{a:{var z=O.voteSortTiebreaker;var k=M[Q].voteSortTiebreaker;if(z.length!==k.length)z=z.length>k.length;else{for(var H=0;H<z.length;H++){var R=z.charCodeAt(H),A=k.charCodeAt(H);if(R>A){z=!0;break a}if(R<A)break}z=!1}}z?l=Q-1:u=Q+1}}M=u;if(M===-1)throw Error("xi");g.videos.splice(M,0,O);w!==M&&$lT(g,w,M,r,E,B)},$lT=function(g,r,E,B,w,O){var M,u=(M=g.parentElem)==null?void 0:M.children,l=Math.min(r,E),Q=Math.max(r,E);
if(u)for(M=l;M<=Q;M++)u[M].style.viewTransitionName="item-"+String(M);document.startViewTransition(function(){if(g.parentElem){var z=g.parentElem.children;if(!(!z||r<0||r>=z.length||E<0||E>=z.length)){var k=z[r];if(k){k.remove();g.showRefreshPill=E>=g.videos.length-1&&g.continuationsPresent;if(!g.showRefreshPill){z=z[E]||null;var H;(H=g.parentElem)==null||H.insertBefore(k,z)}_.Sh(g.parentElem,"yt-update-video-data-voting-animation",{toIdx:E,itemId:B,newVoteCount:w,voteStatus:O,hideItem:g.showRefreshPill})}}}}).finished.then(function(){if(u)for(var z=
l;z<=Q;z++)u[z].style.viewTransitionName="";
if(g.showRefreshPill)snm(_.zn("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var k;if(k=z=(k=g.parentElem)==null?void 0:k.children[E])k=z.getBoundingClientRect(),z=k.bottom,k=!(k.top>=0&&z<=g.clientHeight);k&&(k=_.kg(r>E?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(r-E)),snm(k))}})};var bp4=function(g,r){var E=this;g?this.innertubeTransportServicePromise=Promise.resolve(g):r&&(this.innertubeTransportServicePromise=r(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new WD(3E3,function(B){return jnA(E,B)},0);
this.validateMiniAppVideoIdRateLimiter=new WD(3E3,function(B){return AVD(E,B)},1)},Mcm=function(g,r){g.JSC$15182_miniAppId=r;
g.reportMiniAppValueRateLimiter=new WD(3E3,function(E){return jnA(g,E)},0);
g.validateMiniAppVideoIdRateLimiter=new WD(3E3,function(E){return AVD(g,E)},1)},ulm=function(g,r){var E;
return _.q(function(B){if(B.nextAddress==1)return _.D(B,g.reportMiniAppValueRateLimiter.call(r),2);E=B.yieldResult;return B.return([E,r])})},jnA=function(g,r){var E,B,w,O,M,u,l;
return _.q(function(Q){switch(Q.nextAddress){case 1:return _.D(Q,g.innertubeTransportServicePromise,2);case 2:return E=Q.yieldResult,B=_.yp(zL6),w=Date.now(),O={externalPostId:g.JSC$15182_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(w/1E3),nanos:Math.round(w%1E3*1E6)},intValue:""+r}},_.qN(Q,3),_.D(Q,_.Pa(E,O,B),5);case 5:M=Q.yieldResult;_.Ne(Q,4);break;case 3:throw u=_.G2(Q),u;case 4:if(M){if("error"in M&&M.error)throw M.error;if(M.errorMetadata)throw Error("yi`"+
M.errorMetadata.status);if(l=M.userStatResult)return Q.return(l);throw Error("zi");}throw Error("Ai");}})},DWD=function(g){var r,E,B,w,O;
_.q(function(M){switch(M.nextAddress){case 1:return _.D(M,g.innertubeTransportServicePromise,2);case 2:return r=M.yieldResult,E=_.yp(zL6),B={externalPostId:g.JSC$15182_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.qN(M,3),_.D(M,_.Pa(r,B,E),5);case 5:w=M.yieldResult;_.Ne(M,4);break;case 3:throw O=_.G2(M),O;case 4:if(w==null)throw Error("Ai");if("error"in w&&w.error)throw w.error;if(w.errorMetadata)throw Error("yi`"+w.errorMetadata.status);_.Q3(M)}})};
bp4.prototype.flush=function(){var g=this;return _.q(function(r){return r.nextAddress==1?_.D(r,g.reportMiniAppValueRateLimiter.flush(),2):_.D(r,g.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var lZD=function(g,r){return _.q(function(E){return E.nextAddress==1?_.D(E,g.validateMiniAppVideoIdRateLimiter.call(r),2):E.return(E.yieldResult)})},AVD=function(g,r){var E,B,w,O,M,u;
return _.q(function(l){switch(l.nextAddress){case 1:return _.D(l,g.innertubeTransportServicePromise,2);case 2:return E=l.yieldResult,B=_.yp(MtI),w={videoId:r},_.qN(l,3),_.D(l,_.Pa(E,w,B),5);case 5:O=l.yieldResult;_.Ne(l,4);break;case 3:throw M=_.G2(l),M;case 4:if(O){if("error"in O&&O.error)throw O.error;if(O.errorMetadata)throw Error("yi`"+O.errorMetadata.status);if(u=O.playabilityStatus)return l.return(u.status);throw Error("Bi");}throw Error("Ai");}})};
bp4[LU]=[_.gM(_.Wo),_.gM(IKb)];var JVw=function(){this.clientData=new Map};
JVw.prototype.getData=function(g){return this.clientData.get(g)};var P5n=function(g){this.store=g};
P5n.prototype.handleResponse=function(g){(g=_.n(g.frameworkUpdates,VY))&&_.Qp(g,this.store)};
P5n[LU]=[_.e2];var tm4=new _.Vn("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var F9U={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 eQT=new _.Vn("ICON_SET_TOKEN"),W96=new _.Vn("ICON_URL_PROVIDER_TOKEN"),C5A=new _.Vn("PREFETCH_ICONS_TOKEN"),K9A=new _.Vn("ICON_MAP_FN_TOKEN");var vD={},xl4=(vD.ACCESS_TIME="clock",vD.ACCOUNT_BOX="person_account",vD.ACCOUNT_BOX_CAIRO="person_account_cairo",vD.ACCOUNT_CIRCLE="person_circle",vD.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",vD.ACCOUNT_LINKED="account_link_success",vD.ACCOUNT_UNLINKED="account_link",vD.ADD_FRIEND="people",vD.ADD_MODERATOR="shield_add",vD.ADD_TO_LIBRARY="bookmark",vD.ADD_TO_PLAYLIST="add",vD.ADD_TO_QUEUE_TAIL="list_queue",vD.ADD_TO_REMOTE_QUEUE="list_music",vD.ADD_TO_WATCH_LATER="clock",vD.ADD_VIDEO_LINK="film_strip_add",
vD.ALERT_WARN_RED="alert_triangle",vD.ARROW_BACK="arrow_left",vD.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",vD.ARROW_DROP_DOWN="chevron_down",vD.ARROW_DROP_UP="chevron_up",vD.ARROW_FORWARD="arrow_right",vD.AUDIOTRACK="audio",vD.AUTO_AWESOME="sparkle",vD.AVATAR_ANONYMOUS="person_circle",vD.AVATAR_LOGGED_OUT="person_circle",vD.BACK="arrow_left",vD.BAR_CHART="bar_graph",vD.BLOCK="slash_circle_left",vD.BLOCK_USER="slash_circle_left",vD.BOOKMARK_BORDER="bookmark",vD.BREAKING_NEWS_ALT_1="article_alert",
vD.BROADCAST_CAIRO="podcast_cairo",vD.BUG_REPORT="bug",vD.CAMERA_ALT="camera",vD.CAMPAIGN="megaphone",vD.CANCEL="x_circle",vD.CAPTIONS="closed_caption",vD.CAST_OUTLINE="chromecast",vD.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",vD.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",vD.CHAT="message_bubble_left",vD.CHAT_BUBBLE="message_bubble_empty",vD.CHAT_SPARK="spark_message_bubble_left",vD.CHECK_BOX_OUTLINE_BLANK="box_empty",vD.CHECK_CIRCLE_OUTLINE="check_circle",vD.CHECK_CIRCLE_THICK="check_circle",vD.CLARIFY=
"article_clarify",vD.CLOSED_CAPTION_SELECTED="closed_caption",vD.CLOSE="x_mark",vD.CLOUD_UPLOAD="cloud_arrow_up",vD.COLLAPSE="chevron_up",vD.COLLAPSE_CAIRO="chevron_up_cairo",vD.COLLECTION="layers",vD.COLOR_LENS="palette",vD.COMMENT="message_bubble_right",vD.CONSENT_SHIELD="person_shield",vD.CONTENT_CUT="scissors",vD.CONTENT_CUT_CAIRO="scissors_cairo",vD.COURSE=_.Y("web_enable_course_icon_update")?"creator_academy":"lightbulb",vD.COURSE_CAIRO=_.Y("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",vD.CREATION_LIVE="radar_live",vD.CREATION_POST="box_pencil",vD.CREATION_UPLOAD="my_videos",vD.CREATION_UPLOAD_RED="upload",vD.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",vD.CREATOR_STUDIO="youtube_studio",vD.DASHBOARD="grid_asymmetrical",vD.DELETE="trash_can",vD.DELETE_SWEEP="trash_can",vD.DESKTOP="laptop",vD.DISLIKE="thumb_down",vD.DISLIKE_SELECTED="thumb_down",vD.DISMISSAL="x_mark",vD.DISMISS_QUEUE="list_remove",vD.DONE_ALL="check_double",vD.DOWN_ARROW="arrow_down",vD.DO_NOT_DISTURB=
"slash_circle_left",vD.DRAFT="paper_corner_folded",vD.DRAG_HANDLE="bars_2",vD.EDIT="pencil",vD.EMOJI="face_very_happy",vD.EMOJI_FLAGS="flag",vD.EMOJI_OBJECTS="lightbulb",vD.EMOJI_PEOPLE="face_very_happy",vD.EMOJI_RECENT="clock",vD.EMPTY_HEART="heart",vD.EMPTY_LIKE="thumb_up",vD.ERROR_BLACK="alert_circle",vD.ERROR_OUTLINE="alert_circle",vD.EXIT_APP="arrow_in",vD.EXIT_TO_APP="arrow_in",vD.EXPAND="chevron_down",vD.EXPAND_ALL="chevron_expand",vD.EXPAND_CAIRO="chevron_down_cairo",vD.EXPAND_LESS="chevron_up",
vD.EXPAND_MORE="chevron_down",vD.EXPLORE="compass",vD.EXPLORE_DESTINATION="compass",vD.EXTERNAL_LINK="open_new",vD.FAB_UPLOAD="upload",vD.FACE_HAPPY_OUTLINE="face_happy",vD.FACT_CHECK="article_check",vD.FASHION_LOGO="fashion",vD.FASHION_LOGO_CAIRO="fashion_cairo",vD.FAVORITE="heart",vD.FEEDBACK="message_bubble_alert",vD.FEEDBACK_CAIRO="message_bubble_alert_cairo",vD.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",vD.FILL_ARROW_SOLID_UP_16="arrow_solid_up",vD.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
vD.FILTER="menu_filter",vD.FIRST_PAGE="chevron_first",vD.FLAG="flag",vD.FULL_HEART="heart",vD.GAME_CONSOLE_DPAD="game_console_dpad",vD.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",vD.GAMING_LOGO="gaming",vD.GAMING_LOGO_CAIRO="gaming_cairo",vD.GO_TO_PAGE="arrow_right",vD.GROUPS="people_group",vD.HAPPY="face_happy",vD.HEALTH_AND_SAFETY="shield_plus",vD.HELP="question_circle",vD.HELP_CAIRO="question_circle_cairo",vD.HELP_OUTLINE="question_circle",vD.HIDE="slash_circle_left",vD.IMAGE="image",
vD.INFINITY_ICON="infinity",vD.INFO="info_circle",vD.INFO_OUTLINE="info_circle",vD.INSERT_CHART_OUTLINED="bar_graph_box_vertical",vD.INSERT_PHOTO="image",vD.KEEP="pin",vD.KEEP_OFF="pin_off",vD.KEYBOARD="keyboard",vD.KEYBOARD_ARROW_DOWN="chevron_down",vD.KEYBOARD_ARROW_UP="chevron_up",vD.KIDS_BLOCK="slash_circle_left",vD.LANGUAGE="globe",vD.LAST_PAGE="chevron_last",vD.LAUNCH="open_new",vD.LEARNING="lightbulb",vD.LEARNING_CAIRO="lightbulb_cairo",vD.LIBRARY_ADD="bookmark",vD.LIBRARY_OUTLINE="library",
vD.LIBRARY_REMOVE="bookmark",vD.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",vD.LIKES_PLAYLIST="thumb_up",vD.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",vD.LIKE="thumb_up",vD.LIKE_SELECTED="thumb_up",vD.LIVE="radar_live",vD.LIVE_CAIRO="radar_live_cairo",vD.LIVE_UNLISTED="link",vD.LOCATION_ON="location_point",vD.LOCATION_PIN="location_point",vD.LOOP="arrow_repeat",vD.LOOP_ACTIVE="arrow_repeat",vD.LOOP_ONE="arrow_repeat_1",vD.LOOP_ONE_ACTIVE="arrow_repeat_1",vD.MEH="face_meh",vD.MEMBERS_ONLY_MODE_OFF="message_bubble_left",
vD.MESSAGE="message_bubble_left",vD.MICROPHONE_ON="mic",vD.MIX="youtube_mix",vD.MONETIZATION_ON="dollar_sign_circle",vD.MONEY_FILL="dollar_sign_container",vD.MONEY_FILL_JPY="yen_sign_container",vD.MONEY_HEART="dollar_sign_heart",vD.MORE_HORIZ="overflow_horizontal",vD.MORE_VERT="overflow_vertical",vD.MUSIC="audio",vD.MUSIC_CAIRO="audio_cairo",vD.MUSIC_NOTE_SYMBOL="music",vD.MUSIC_SHUFFLE="arrow_shuffle",vD.MY_CHANNEL="person_circle",vD.MY_LOCATION="location_point",vD.NEWS_STORY="news",vD.NEXT="chevron_right",
vD.NOTIFICATIONS="bell",vD.NOTIFICATIONS_ACTIVE="bell_on",vD.NOTIFICATIONS_CAIRO="bell_cairo",vD.NOTIFICATIONS_DONE_CHECKMARK="check",vD.NOTIFICATIONS_INBOX="bell",vD.NOTIFICATIONS_NONE="bell",vD.NOTIFICATIONS_OFF="bell_off",vD.NOT_INTERESTED="slash_circle_left",vD.OFFICIAL_ARTIST_BADGE="audio",vD.OFFLINE_CLOUD="cloud_off",vD.OFFLINE_DOWNLOAD="download",vD.OFFLINE_DOWNLOAD_CAIRO="download_cairo",vD.OFFLINE_PAUSE="pause",vD.OPEN_IN_NEW="open_new",vD.OUTLINE_ADJUST="adjust",vD.OUTLINE_ARROW_SOLID_DOWN_16=
"arrow_solid_down",vD.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",vD.OUTLINE_BAG="bag",vD.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",vD.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",vD.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",vD.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",vD.PAID="dollar_sign",vD.PAUSE_OUTLINED="pause",vD.PAYMENT="credit_card",vD.PERSON_RADAR_FILLED="person_radar",vD.PHONE_DOWNLOAD="mobile_download",vD.PLAYABLES_LOGO="tic_tac_toe",vD.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",
vD.PLAYLISTS="list_play_arrow",vD.PLAYLISTS_CAIRO="list_play_arrow_cairo",vD.PLAYLIST_ADD="bookmark",vD.PLAYLIST_ADD_CHECK="bookmark",vD.PLAYLIST_PLAY="list_play_arrow",vD.PLAY_ALL="play_arrow",vD.PLAY_CIRCLE="play_arrow_circle",vD.PLAY_OUTLINED="play_arrow_circle",vD.PRIVACY_INFO="shield",vD.PRIVACY_PRIVATE="lock",vD.PRIVACY_PUBLIC="earth",vD.PRIVACY_UNLISTED="link",vD.PROMOTE="megaphone",vD.PURCHASES="price_tag",vD.PURCHASE_SUPER_CHAT="super_chat",vD.PURCHASE_SUPER_STICKER="super_sticker",vD.QUESTION_ANSWER=
"message_bubble_question",vD.QUEUE_PLAY_LAST="list_queue_last",vD.QUEUE_PLAY_NEXT="list_play_arrow",vD.REMIX_FILLED="youtube_shorts_remix",vD.REMOVE="bar_circle",vD.REMOVE_CIRCLE="bar_circle",vD.REMOVE_CIRCLE_OUTLINE="bar_circle",vD.REMOVE_DONE="check_double_off",vD.REMOVE_FROM_HISTORY="bar_circle",vD.REMOVE_FROM_PLAYLIST="bar_circle",vD.REMOVE_MODERATOR="shield_off",vD.REPLAY="arrow_circle",vD.REPLAY_10="skip_back_10",vD.REPORT_PROBLEM="alert_triangle",vD.SAD="face_sad",vD.SAVE_PLAYLIST="bookmark",
vD.SCHEDULE="clock",vD.SCHOOL="creator_academy",vD.SCREEN_FULLSCREEN="screen_full",vD.SEARCH_HISTORY="arrow_time",vD.SELL="price_tag",vD.SETTINGS="gear",vD.SETTINGS_CAIRO="gear_cairo",vD.SETTINGS_LIGHT="gear",vD.SETTINGS_MATERIAL="gear",vD.SHARE_ARROW="share",vD.SHIELD_WITH_AVATAR="person_shield",vD.SHOPPING_BAG="bag",vD.SHOPPING_BAG_CAIRO="bag_cairo",vD.SHOPPING_CART="cart",vD.SHORTS_COMMENT="youtube_shorts_message_bubble_right",vD.SHORTS_DISLIKE="youtube_shorts_thumb_down",vD.SHORTS_LIKE="youtube_shorts_thumb_up",
vD.SHORTS_SHARE="youtube_shorts_share",vD.SHUFFLE="arrow_shuffle",vD.SLOW_MODE_OFF="message_bubble_left",vD.SOCIAL="people",vD.SORT="menu_sort",vD.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",vD.SPEED_1X="1x",vD.SPEED_1_POINT_2X="1_point_2x",vD.SPEED_1_POINT_5X="1_point_5x",vD.SPEED_1_POINT_8X="1_point_8x",vD.SPEED_2X="2x",vD.SPEED_POINT_2X="point_2x",vD.SPEED_POINT_8X="point_8x",vD.SPONSORSHIP_STAR=_.Y("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",vD.STAFF_PICK="spotlight",vD.START_DVR=
"add",vD.STAR_BORDER="star",vD.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",vD.STICKER_EMOTICON="face_happy",vD.STOP_DVR="stop",vD.SUBSCRIBE="youtube_logo_icon",vD.SUBSCRIBE_PLUS="add_cairo",vD.SUBSCRIPTION_MANAGER="gear",vD.SUPERVISOR_ACCOUNT="people",vD.SUPER_CHAT_FOR_GOOD="hands_heart",vD.SWAP_HORIZ="arrow_swap_horizontal",vD.SWITCH_ACCOUNTS="person_account",vD.TAB_ACCOUNT="person",vD.TAB_ACTIVITY="bell",vD.TAB_BOOKMARK="bookmark",vD.TAB_EXPLORE="compass",vD.TAB_HOME="home",vD.TAB_HOME_CAIRO=
"home_cairo",vD.TAB_INBOX="mail",vD.TAB_LIKED="thumb_up",vD.TAB_MUSIC_PREMIUM="youtube_music",vD.TAB_SHORTS="youtube_shorts",vD.TAB_SHORTS_CAIRO="youtube_shorts_cairo",vD.TAB_SUBSCRIPTIONS="subscriptions",vD.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",vD.TAB_TRENDING="fire",vD.TIMER="stopwatch",vD.TRAILER="youtube_originals",vD.TRENDING="fire",vD.TRENDING_CAIRO="fire_cairo",vD.TRENDING_UP="rating_up",vD.TROPHY="trophy",vD.TROPHY_CELEBRATIONS="fireworks",vD.TUNE="adjust",vD.UNBLOCK_USER="bar_circle",
vD.UNLIMITED="youtube_logo_icon",vD.UNPLUGGED_LIVE_GUIDE="radar_live",vD.UNPLUGGED_SPORTS="eye_off",vD.UPLOADS="library",vD.UP_ARROW="arrow_up",vD.VERTICAL_ALIGN_BOTTOM="download",vD.VERY_HAPPY="face_very_happy",vD.VERY_SAD="face_very_sad",vD.VIDEOGAME_ASSET="gaming",vD.VIDEOS="play_arrow_circle",vD.VIDEO_CALL="video_camera_add",vD.VIDEO_LIBRARY_WHITE="library",vD.VIDEO_YOUTUBE="youtube_logo_icon",vD.VIEW_LIST="list_view",vD.VIEW_LIST_CAIRO="list_view_cairo",vD.VISIBILITY="eye",vD.VISIBILITY_OFF=
"eye_off",vD.VOLUME_MUTE="volume_off",vD.VOLUME_UP="volume_on",vD.WALLPAPER="image",vD.WARNING="alert_triangle",vD.WATCH_HISTORY="arrow_time",vD.WATCH_HISTORY_CAIRO="arrow_time_cairo",vD.WATCH_LATER="clock",vD.WATCH_LATER_CAIRO="clock_cairo",vD.WATCH_RELATED_MIX="youtube_mix",vD.WHAT_TO_WATCH="home",vD.YOUTUBE_MUSIC_MONOCHROME="youtube_music",vD.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",vD.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",vD.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",vD.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",vD.YT_OUTLINE_MUSIC_24="music",vD);var dC={},agb=(dC.ACCESS_TIME="clock",dC.ACCOUNT_BOX="person_square",dC.ACCOUNT_BOX_CAIRO="person_square",dC.ACCOUNT_CIRCLE="person_circle",dC.ACCOUNT_CIRCLE_CAIRO="person_circle",dC.ACCOUNT_LINKED="account_link",dC.ACCOUNT_UNLINKED="account_link",dC.ADD_CIRCLE="add_circle",dC.ADD_FRIEND="person_child",dC.ADD_TO_LIBRARY="bookmark",dC.ADD_TO_PLAYLIST="add",dC.ADD_TO_QUEUE_TAIL="queue",dC.ADD_TO_REMOTE_QUEUE="playlist_audio",dC.ADD_TO_WATCH_LATER="clock",dC.ADD_VIDEO_LINK="film_strip_add",dC.ADMIN_PANEL_SETTINGS=
"person_gear",dC.ALERT_WARN_RED="alert_triangle",dC.ALIGN_LEFT="text_align_left",dC.ARROWS_ALERT="arrow_split_alert",dC.ARROW_BACK="arrow_left",dC.ARROW_CIRCLE="arrow_counterclockwise",dC.ARROW_CIRCLE_PLAY="replay",dC.ARROW_CIRCLE_RIGHT="arrow_clockwise",dC.ARROW_DIAGONAL="arrow_up_left",dC.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",dC.ARROW_DROP_DOWN="triangle_down",dC.ARROW_DROP_UP="triangle_up",dC.ARROW_FORWARD="arrow_right",dC.ARROW_PAUSE="pause_history",dC.ARROW_UNDO="undo",dC.ARTICLE="text_page",
dC.ARTICLE_ALERT="text_page_alert",dC.ARTICLE_CHECK="text_page_check",dC.ARTICLE_CLARIFY="text_page_info",dC.AUDIOTRACK="audio",dC.AUDIO_BADGE="audio_badge",dC.AUDIO_SURROUND="surround_sound",dC.AVATAR_ANONYMOUS="person_circle",dC.AVATAR_LOGGED_OUT="person_circle",dC.BACK="arrow_left",dC.BAR_CHART="chart_bar",dC.BAR_CIRCLE="minus_circle",dC.BAR_HORIZONTAL="minus",dC.BLOCK="circle_slash",dC.BLOCK_USER="circle_slash",dC.BOOKMARK_BORDER="bookmark",dC.BOX_OPEN_CHECK="quiz",dC.BOX_PENCIL="square_pencil",
dC.BREAKING_NEWS_ALT_1="text_page_alert",dC.BROADCAST="podcast",dC.BROADCAST_CAIRO="podcast",dC.BUG_REPORT="bug",dC.CAMERA_ALT="camera",dC.CAMPAIGN="megaphone",dC.CANCEL="x_circle",dC.CAPTIONS="closed_captions",dC.CAST_ICON="chromecast",dC.CAST_OUTLINE="chromecast",dC.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",dC.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",dC.CHAT="text_bubble",dC.CHAT_BUBBLE="bubble",dC.CHECK_BOX="check_square",dC.CHECK_BOX_OUTLINE_BLANK="square",dC.CHECK_CIRCLE_FILLED="check_circle",
dC.CHECK_CIRCLE_OUTLINE="check_circle",dC.CHECK_CIRCLE_THICK="check_circle",dC.CHECK_DOUBLE="check_done",dC.CHECK_DOUBLE_OFF="check_done_slash",dC.CHEVRON_LEFT="chevron_left",dC.CHEVRON_RIGHT="chevron_right",dC.CHEVRON_RIGHT_CAIRO="chevron_right",dC.CIRCLES_OVERLAP="account_link",dC.CLAPPERBOARD_CAIRO="clapperboard",dC.CLARIFY="text_page_info",dC.CLOCK_ARROWS="clock_split",dC.CLOCK_ARROWS_ALERT="clock_split_alert",dC.CLOSED_CAPTION="closed_captions",dC.CLOSED_CAPTION_SELECTED="closed_captions",dC.CLOSE=
"x",dC.CLOUD_UPLOAD="cloud_arrow_up",dC.COLLAPSE="chevron_up",dC.COLLAPSE_CAIRO="chevron_up",dC.COLLECTION="square3d_stack",dC.COLOR_LENS="paint_palette",dC.COMMENT="text_bubble",dC.CONSENT_SHIELD="person_shield",dC.CONTENT_CUT="scissors",dC.CONTENT_CUT_CAIRO="scissors",dC.COURSE="graduation_cap",dC.COURSE_CAIRO="graduation_cap",dC.CREATION_LIVE="live",dC.CREATION_POST="square_pencil",dC.CREATION_UPLOAD="video",dC.CREATION_UPLOAD_RED="upload",dC.CREATOR_ACADEMY="graduation_cap",dC.CREATOR_STUDIO=
"youtube_studio",dC.DARK_THEME="theme",dC.DELETE="trash_can",dC.DELETE_SWEEP="trash_can",dC.DESKTOP="laptop",dC.DISLIKE="thumb_down",dC.DISLIKE_SELECTED="thumb_down",dC.DISMISSAL="x",dC.DISMISS_QUEUE="playlist_x",dC.DOGFOOD="pawprint",dC.DOLLAR_SIGN="dollar_sign_circle",dC.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",dC.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",dC.DOWN_ARROW="arrow_down",dC.DO_NOT_DISTURB="circle_slash",dC.DRAFT="document",dC.EARTH="globe",dC.EDIT="pencil",dC.EMOJI="face_very_happy",
dC.EMOJI_FLAGS="flag",dC.EMOJI_OBJECTS="lightbulb",dC.EMOJI_PEOPLE="face_very_happy",dC.EMOJI_RECENT="clock",dC.EMPTY_HEART="heart",dC.EMPTY_LIKE="thumb_up",dC.ERROR_BLACK="alert_circle",dC.ERROR_OUTLINE="alert_circle",dC.ERROR_WHITE="alert_circle",dC.EXIT_APP="arrow_in",dC.EXIT_TO_APP="arrow_in",dC.EXPAND="chevron_down",dC.EXPAND_ALL="chevron_expand",dC.EXPAND_CAIRO="chevron_down",dC.EXPAND_LESS="chevron_up",dC.EXPAND_MORE="chevron_down",dC.EXPLORE="compass",dC.EXPLORE_DESTINATION="compass",dC.EXTERNAL_LINK=
"arrow_up_right",dC.EYE_OFF="eye_slash",dC.FAB_UPLOAD="upload",dC.FACE_HAPPY_OUTLINE="face_happy",dC.FACE_MEH="face_neutral",dC.FACT_CHECK="text_page_check",dC.FASHION_LOGO="fashion",dC.FASHION_LOGO_CAIRO="fashion",dC.FAVORITE="thumb_up",dC.FEEDBACK="alert_bubble",dC.FEEDBACK_CAIRO="alert_bubble",dC.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",dC.FILL_ARROW_SOLID_UP_16="arrow_solid_up",dC.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",dC.FLAG_CAIRO="flag",dC.FLASH_OFF="flash_slash",dC.FLASH_ON="flash",
dC.FULL_HEART="heart",dC.GAMING_LOGO="gaming",dC.GAMING_LOGO_CAIRO="gaming",dC.GO_TO_PAGE="arrow_right",dC.GROUPS="person3",dC.HAND_SWIPE_LEFT="gesture_swipe_left",dC.HAND_SWIPE_RIGHT="gesture_swipe_right",dC.HAPPY="face_happy",dC.HEALTH_AND_SAFETY="shield_health",dC.HEART_BOX="heart_cube",dC.HELP="help_circle",dC.HELP_CAIRO="help_circle",dC.HELP_OUTLINE="help_circle",dC.HIDE="circle_slash",dC.INCOGNITO_CAIRO="incognito",dC.INFINITY_ICON="infinity",dC.INFO="info_circle",dC.INFO_OUTLINE="info_circle",
dC.INSERT_CHART_OUTLINED="chart_bar_square",dC.INSERT_PHOTO="image",dC.KEEP="pin",dC.KEEP_OFF="pin_slash",dC.KEYBOARD="keyboard",dC.KEYBOARD_ARROW_DOWN="chevron_down",dC.KEYBOARD_ARROW_UP="chevron_up",dC.KIDS_BLOCK="circle_slash",dC.LANGUAGE="globe",dC.LAUNCH="arrow_up_right",dC.LEARNING="lightbulb",dC.LEARNING_CAIRO="lightbulb",dC.LIBRARY_ADD="bookmark",dC.LIBRARY_IMAGE="image_stack",dC.LIBRARY_MUSIC="audio_square_stack",dC.LIBRARY_OUTLINE="play_square_stack",dC.LIBRARY_REMOVE="bookmark",dC.LIBRARY_SAVED=
"check_square_stack",dC.LIKES_PLAYLIST="thumb_up",dC.LIKES_PLAYLIST_CAIRO="thumb_up",dC.LIKE="thumb_up",dC.LIKE_SELECTED="thumb_up",dC.LIST_QUEUE="queue",dC.LIVE_CAIRO="live",dC.LIVE_UNLISTED="link",dC.LOCATION_ON="location_pin",dC.LOCATION_PIN="location_pin",dC.LOCATION_POINT="location_pin",dC.LOOP="repeat",dC.LOOP_ACTIVE="repeat",dC.LOOP_ONE="repeat1",dC.LOOP_ONE_ACTIVE="repeat1",dC.MEET="google_meet",dC.MEH="face_neutral",dC.MEMBERSHIPS="memberships",dC.MEMBERS_ONLY_MODE_OFF="text_bubble",dC.MENU_FILTER=
"filter",dC.MESSAGE="text_bubble",dC.MESSAGE_BUBBLE_GEAR="bubble_gear",dC.MESSAGE_BUBBLE_LEFT="text_bubble",dC.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",dC.MESSAGE_BUBBLE_OVERLAP="bubble_stack",dC.MESSAGE_BUBBLE_QUESTION="help_bubble",dC.MICROPHONE_ON="mic",dC.MONETIZATION_ON="dollar_sign_circle",dC.MONEY_FILL="dollar_sign_rectangle",dC.MONEY_FILL_JPY="yen_sign_rectangle",dC.MONEY_HAND="dollar_sign_circle_hand",dC.MONEY_HEART="dollar_sign_heart",dC.MOON_Z="sleep_timer",dC.MORE_HORIZ="overflow_horizontal",
dC.MORE_VERT="overflow_vertical",dC.MUSIC="audio",dC.MUSIC_CAIRO="audio",dC.MUSIC_EXPLICIT_BADGE="explicit",dC.MUSIC_NEW_RELEASE="audio_badge",dC.MUSIC_NOTE_SYMBOL="audio",dC.MUSIC_SCISSORS="audio_scissors",dC.MUSIC_SHUFFLE="shuffle",dC.MY_CHANNEL="person_circle",dC.MY_LOCATION="location_pin",dC.MY_VIDEOS="video",dC.MY_VIDEOS_CAIRO="video",dC.NEWS_CAIRO="news",dC.NEWS_STORY="news",dC.NEXT="chevron_right",dC.NOTE_ADD="bubble_pencil",dC.NOTIFICATIONS="bell",dC.NOTIFICATIONS_ACTIVE="bell_waves",dC.NOTIFICATIONS_CAIRO=
"bell",dC.NOTIFICATIONS_DONE_CHECKMARK="check",dC.NOTIFICATIONS_INBOX="bell",dC.NOTIFICATIONS_NONE="bell",dC.NOTIFICATIONS_OFF="bell_slash",dC.NOT_INTERESTED="circle_slash",dC.OFFICIAL_ARTIST_BADGE="audio",dC.OFFLINE_CLOUD="cloud_slash",dC.OFFLINE_DOWNLOAD="download",dC.OFFLINE_DOWNLOAD_CAIRO="download",dC.OFFLINE_PAUSE="pause",dC.OPEN_IN_NEW="arrow_up_right",dC.OUTLINE_ADJUST="adjust",dC.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",dC.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",dC.OUTLINE_ARROW_SOLID_UP=
"arrow_solid_up",dC.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",dC.OUTLINE_BAG="bag",dC.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",dC.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",dC.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",dC.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",dC.PAID="dollar_sign_circle",dC.PAUSE_OUTLINED="pause",dC.PAYMENT="credit_card",dC.PEOPLE="person_child",dC.PEOPLE_2="person2_rectangle",dC.PEOPLE_GROUP="person3",dC.PEOPLE_NOTE="bubble_asterisk",dC.PERSON_2="person2",dC.PERSON_ACCOUNT=
"person_square_stack",dC.PERSON_MINUS="person_x",dC.PERSON_MUSIC="person_audio",dC.PERSON_RADAR="person_waves",dC.PERSON_RADAR_FILLED="person_waves",dC.PERSON_SETTING="person_gear",dC.PHONE="phone",dC.PHONE_DOWNLOAD="mobile_arrow_down",dC.PICTURE_IN_PICTURE="picture_in_picture",dC.PLAYABLES_LOGO="playables",dC.PLAYABLES_LOGO_CAIRO="playables",dC.PLAYLISTS="playlist",dC.PLAYLISTS_CAIRO="playlist",dC.PLAYLIST_ADD_CHECK="bookmark",dC.PLAY_ALL="play",dC.PLAY_ARROW="play",dC.PLAY_ARROW_CIRCLE="play_circle",
dC.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",dC.PLAY_CIRCLE="play_circle",dC.PLAY_OUTLINED="play_circle",dC.PODCAST_ADD="podcast_add",dC.PODCAST_CHECK="podcast_check",dC.PRIVACY_INFO="shield_x",dC.PRIVACY_PRIVATE="lock",dC.PRIVACY_PUBLIC="globe",dC.PRIVACY_UNLISTED="link",dC.PROMOTE="megaphone",dC.PURCHASES="price_tag",dC.PURCHASE_SUPER_CHAT="super_chat",dC.PURCHASE_SUPER_STICKER="super_sticker",dC.QUESTION_ANSWER="help_bubble",dC.QUESTION_CIRCLE="help_circle",dC.QUEUE_PLAY_LAST="queue_last",
dC.QUEUE_PLAY_NEXT="playlist",dC.QUOTATION_MARK="quote",dC.RADAR_LIVE="live",dC.REMOVE="minus_circle",dC.REMOVE_CIRCLE="minus_circle",dC.REMOVE_CIRCLE_OUTLINE="minus_circle",dC.REMOVE_FROM_HISTORY="minus_circle",dC.REMOVE_FROM_PLAYLIST="minus_circle",dC.REPLAY="arrow_counterclockwise",dC.REPLAY_10="skip10_back",dC.REPLAY_ARROW="replay",dC.REPORT_PROBLEM="alert_triangle",dC.RSS_OFF="rss_slash",dC.SAD="face_sad",dC.SAVE_PLAYLIST="bookmark",dC.SCHEDULE="clock",dC.SCHOOL="graduation_cap",dC.SCREEN_DEFAULT=
"player_default",dC.SCREEN_FULLSCREEN="player_full_enter",dC.SCREEN_LIGHT="ambient_mode",dC.SCREEN_ROTATION="rotate_portrait",dC.SCREEN_SWITCH="player_switch",dC.SEARCH_CAIRO="search",dC.SEARCH_HISTORY="history",dC.SELL="price_tag",dC.SETTINGS="gear",dC.SETTINGS_CAIRO="gear",dC.SETTINGS_LIGHT="gear",dC.SETTINGS_MATERIAL="gear",dC.SETTINGS_REMOTE="remote_waves",dC.SHARE="share",dC.SHARE_ARROW="share",dC.SHARE_CAIRO="share",dC.SHIELD="shield_x",dC.SHIELD_OFF="shield_slash",dC.SHIELD_WITH_AVATAR="person_shield",
dC.SHOPPING_BAG="bag",dC.SHOPPING_BAG_CAIRO="bag",dC.SHOPPING_CART="cart",dC.SHORTS_COMMENT="text_bubble",dC.SHORTS_DISLIKE="thumb_down",dC.SHORTS_LIKE="thumb_up",dC.SHORTS_SHARE="share",dC.SKIP_FORWARD_30="skip30_forward",dC.SLASH_CIRCLE_RIGHT="circle_slash",dC.SLOW_MODE_OFF="text_bubble",dC.SOCIAL="person_child",dC.SPARKLE="sparkles",dC.SPARK_IMAGE="image_spark",dC.SPARK_RADAR="spark_waves",dC.SPARK_VIDEO="video_spark",dC.SPEAKER_GROUP="speaker_stack",dC.SPEAKER_OFF="speaker_slash",dC.SPEED_1X=
"n1x",dC.SPEED_1_POINT_2X="n1point2x",dC.SPEED_1_POINT_5X="n1point5x",dC.SPEED_1_POINT_8X="n1point8x",dC.SPEED_2X="n2x",dC.SPONSORSHIP_STAR="memberships",dC.SPORTS="basketball",dC.SPOTLIGHT="spotlight",dC.STAFF_PICK="spotlight",dC.START_DVR="add",dC.STAR_BORDER="star",dC.STAR_HALF="star_half_filled",dC.STAR_SHOOTING="hype",dC.STICKER="sticker",dC.STICKER_EMOTICON="face_happy",dC.STOP_DVR="stop",dC.SUBSCRIBE="youtube",dC.SUBSCRIBE_PLUS="add",dC.SUBSCRIPTION_MANAGER="gear",dC.SUPERSTAR="super_star",
dC.SUPERVISOR_ACCOUNT="person_child",dC.SWAP_HORIZ="arrow_swap_horizontal",dC.SWITCH_ACCOUNTS="person_square_stack",dC.TAB_ACCOUNT="person",dC.TAB_ACTIVITY="bell",dC.TAB_BOOKMARK="bookmark",dC.TAB_EXPLORE="compass",dC.TAB_HOME="home",dC.TAB_HOME_CAIRO="home",dC.TAB_INBOX="mail",dC.TAB_LIKED="thumb_up",dC.TAB_MUSIC_PREMIUM="youtube_music",dC.TAB_SHORTS="shorts",dC.TAB_SHORTS_CAIRO="shorts",dC.TAB_SUBSCRIPTIONS="subscriptions",dC.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",dC.TAB_TRENDING="trending",dC.TARGET=
"target",dC.TARGET_ADD="target_add",dC.TEMPLATE_ADD="template_add",dC.TEXT="font",dC.TIMER="stopwatch",dC.TRENDING_CAIRO="trending",dC.TRENDING_UP="arrow_trend_up",dC.TROPHY_CAIRO="trophy",dC.TROPHY_CELEBRATIONS="fireworks",dC.TROPHY_STAR="star_trophy",dC.TUNE="adjust",dC.TV_OFF="tv_slash",dC.UNBLOCK_USER="minus_circle",dC.UNFAVORITE="thumb_down",dC.UNLIMITED="youtube",dC.UNPLUGGED_LIVE_GUIDE="live",dC.UNPLUGGED_SPORTS="eye_slash",dC.UPLOADS="play_square_stack",dC.UP_ARROW="arrow_up",dC.VERTICAL_ALIGN_BOTTOM=
"chevron_down_end",dC.VERTICAL_ALIGN_TOP="chevron_up_end",dC.VERY_HAPPY="face_very_happy",dC.VERY_SAD="face_very_sad",dC.VIDEOS="play_circle",dC.VIDEO_CALL="video_camera_add",dC.VIDEO_LIBRARY_WHITE="play_square_stack",dC.VIDEO_QUALITY_4K="n4k",dC.VIDEO_QUALITY_8K="n8k",dC.VIDEO_YOUTUBE="youtube",dC.VIEW_LIST_CAIRO="view_list",dC.VIEW_MODULE="view_column3_row2",dC.VISIBILITY="eye",dC.VISIBILITY_OFF="eye_slash",dC.VOLUME_DOWN="volume_min",dC.VOLUME_MUTE="volume_mute",dC.VOLUME_OFF="volume_mute",dC.VOLUME_STABLE=
"stable_volume",dC.VOLUME_UP="volume_max",dC.WALLPAPER="image",dC.WARNING="alert_triangle",dC.WATCH_HISTORY="history",dC.WATCH_HISTORY_CAIRO="history",dC.WATCH_LATER="clock",dC.WATCH_LATER_CAIRO="clock",dC.WATCH_RELATED_MIX="mix",dC.WHAT_TO_WATCH="home",dC.YOUTUBE_LINKED_TV="tv_mobile",dC.YOUTUBE_MUSIC_MONOCHROME="youtube_music",dC.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",dC.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",dC.YOUTUBE_SHORTS_ARROW_UP="arrow_up",dC.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16=
"shorts_empty",dC.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",dC.YOUTUBE_SHORTS_OUTLINE_24="shorts",dC);var Xqb={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,7,24],[1,7,24]],arrow_left:[[1,
7,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,11,12],[0,11,16],[0,11,24],[1,11,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,1,24],[1,
1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,8,24],[1,8,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
11,12],[0,11,16],[0,11,24],[1,11,16],[1,11,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
6,16,!0],[0,6,18,!0],[0,6,24,!0],[1,6,16,!0],[1,6,18,!0],[1,6,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,9,24],[1,9,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,10,16],[0,10,24],[1,10,16],[1,10,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,
36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,
2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,4,24]],football:[[0,4,24],[1,
4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,8,24],[1,8,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,
24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,
3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],
library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,
1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,
3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,4,16],[1,4,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,
2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,
2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,
2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,12,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,8,24]],pause_circle:[[0,2,12],
[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,8,16],[1,8,18],[1,8,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,6,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,
2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,2,24],[1,2,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,
5,24],[1,5,24]],podcast:[[0,4,24],[1,4,12],[1,4,16],[1,4,18],[1,4,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,
2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],
scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,
1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,12,24],[1,12,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,2,24]],shadow_soft:[[0,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,11,24,!0],[0,11,32,!0],[1,11,16,!0],[1,11,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,
24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,
1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,5,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,
3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,16],[0,9,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],
speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,5,12],[0,5,16],[0,5,18],[0,5,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],
stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,10,24],[1,10,18],[1,10,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],
text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,2,24]],thumb_down:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up:[[0,20,16],[0,20,24],[0,20,36],[1,20,16],[1,20,24],[1,20,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],
thumb_up_down:[[0,2,24],[1,2,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,9,16],[1,9,18],[1,9,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],
[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],
video_stitch:[[1,2,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,2,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,10,18],[1,10,24]],x_cairo:[[1,1,24]],x_circle:[[1,7,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,
5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,
2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,
2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,1,24],[1,1,24]]};var Neb={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_bubble:[[1,1,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,2,24],[1,2,24]],alert_triangle:[[0,
10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,1,24]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,7,24]],arrow_left:[[1,7,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,
2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,2,18],[1,2,24],[1,2,36]],audio:[[0,11,12],[0,11,18],[0,11,
24],[1,11,18],[1,11,24]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,
2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,8,24],[1,8,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,
2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,
1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,2,24],[1,2,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,11,18],[1,11,24]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,
5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,6,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,1,24]],chromecast:[[0,9,24],[1,9,24],[1,9,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,
1,24]],circle_slash:[[0,2,24],[1,2,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,1,24]],
cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,
2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,10,24],[1,10,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],
[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,1,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],
face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,
1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,
2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,8,24],[1,8,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,
1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],
heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,1,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,
10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,
1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],
medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_slash:[[1,1,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,2,24],[1,2,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,2,24],[1,2,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,
4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,
12,24],[1,12,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,8,24],[0,8,36],[1,8,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,8,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,1,24],[1,1,24]],person_add:[[0,6,24],[1,6,24]],person_audio:[[0,1,24],[1,1,24]],person_check:[[1,1,
24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,1,24],[1,1,24]],person_square_stack:[[0,1,24],[1,1,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,2,24],[1,2,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,6,24],[1,6,
24]],pin_slash:[[0,1,24],[1,1,24]],play:[[0,2,24],[0,2,36],[1,2,24]],play_circle:[[0,1,24],[1,1,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],
[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,2,12],[1,2,24]],playlist_add:[[1,1,24]],playlist_audio:[[0,2,24],[1,2,24],[1,2,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,1,24]],podcast:[[0,4,24],[1,4,18],[1,4,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,
1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],
repeat:[[0,1,24],[1,1,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,12,24],[1,12,24]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,
1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,11,24,!0],[1,11,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,2,24],[1,2,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,
2,24],[1,2,24]],skip10_back:[[1,1,24]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,1,24]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,5,24],[1,5,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],
snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,1,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,24],[1,9,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,
2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],star_circle:[[0,5,18],[0,5,24],[0,5,36],[1,5,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,4,24],[0,4,36],[1,4,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,
10,24],[1,10,24]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],
[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,22,18],[0,22,24],[1,22,18],[1,22,24]],thumb_up:[[0,20,18],[0,20,24],[1,20,18],[1,20,24]],thumb_up_down:[[0,2,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],
[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,9,24],[1,9,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,
48]],video_camera_add:[[1,2,24]],video_link:[[1,5,18],[1,5,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,
2,24]],waveform_spark:[[1,2,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,10,18],[1,10,24]],x_circle:[[0,7,24],[1,7,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var IgI={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"},Ts=function(g){this.iconUrlProvider=g};
Ts.prototype.resolveIcon=function(g,r){var E=IgI[g.iconName.toUpperCase()];E&&(g.iconName=E);var B=g.iconName;B=B.replace(/-/g,"_");g=Object.assign({},g,{iconName:this.mapIconTypeToStandardName(B,!!E)||B.toLowerCase()});if(_.Y("enable_web_delhi_icons")||E){var w;return zYt(Neb,g,((w=this.iconUrlProvider)==null?void 0:w.getYtStandardUrl)||pnB,r)}var O;return zYt(Xqb,g,((O=this.iconUrlProvider)==null?void 0:O.getYtStandardUrl)||H6L,r)};
Ts.prototype.mapIconTypeToStandardName=function(g,r){return _.Y("enable_web_delhi_icons")||r?agb[g.toUpperCase()]:xl4[g.toUpperCase()]};
Ts[LU]=[_.gM(W96)];var mlz=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),cVA=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),ipA=new Set(["shorts_comment","shorts_dislike","shorts_like","shorts_share"]),L9n=function(g){this.urlProvider=this.iconUrlProvider=g};
_.f(L9n,Ts);
L9n.prototype.resolveIcon=function(g,r){g.iconName==="youtube_logo"&&(g.iconName="yt-logo-updated");if(g.iconName==="youtube_premium_logo"||g.iconName==="youtube_red_logo")g.iconName="yt-logo-red-updated";var E=Object.assign({},g);g.iconName==="menu"&&(_.Y("enable_web_delhi_icons")||(E.iconName="bars_3"),E.iconStyle="youtube_outline");g.iconSetName==="socialNetworksRound"&&(g.iconName==="mail"&&(E.iconName="email"),g.iconName==="embed"&&(E.iconSize=60));g.iconName==="more"&&(E.iconName="overflow_horizontal");
g.iconName==="fullscreen"&&(E.iconName="screen_full");g.iconName==="premium_standalone"&&(E.iconName="premium_standalone_cairo");_.Y("enable_connect_icon_update_web")&&g.iconName==="account_linked"&&(E.iconName="circles_overlap_check",E.iconStyle="youtube_fill");_.Y("enable_connect_icon_update_web")&&g.iconName==="account_unlinked"&&(E.iconName="circles_overlap",E.iconStyle="youtube_outline");mlz.has(g.iconName)&&(E.iconStyle="youtube_fill");_.Y("enable_web_delhi_icons")&&(g.iconName==="playlist_add"&&
(E.iconName="bookmark"),g.iconName==="offline_pin"&&(E.iconName="arrow_down_circle",E.iconStyle="youtube_fill"),cVA.has(g.iconName)&&(E.iconName+="_updated"),ipA.has(g.iconName)&&(E.iconStyle="youtube_fill"));g=Object.assign({},E,{iconName:(Ts.prototype.mapIconTypeToStandardName.call(this,E.iconName)||E.iconName).toLowerCase()});var B;return(g=zYt(F9U,g,((B=this.urlProvider)==null?void 0:B.getUrl)||Y1V,r))?g:Ts.prototype.resolveIcon.call(this,E,r)};
L9n[LU]=[_.gM(W96)];_.Vmw=1;var g_=function(){};
_.f(g_,CH);g_.prototype.resolveCommand=function(g){var r,E;return _.q(function(B){r=_.n(g,Cjb);if(!r)return B.return();E=Number(r.enableDelayedPacfLoggingTvMs);if(isNaN(E)){var w=M7();oew(w,r,0)}else oew(M7(),r,E);_.Q3(B)})};_.r_=function(){};
_.f(_.r_,CH);
_.r_.prototype.resolveCommand=function(g,r){var E=this,B,w,O,M,u,l,Q;return _.q(function(z){B=_.n(g,Kem);O=(w=r.form)==null?void 0:w.element;u=(M=O)==null?void 0:M.closest("ytd-enforcement-message-view-model");if(!B||!u)return z.return();E.allowAdsAction||(l=B.fundingChoiceInstructionPageUrl,E.allowAdsAction=new Udm(window,_.eE(l)));var k=E.allowAdsAction;k.wallElement=u;k.allowAdsPopup.style.setProperty("display","flex","important");var H=k.scrollManager;H.originalBodyOverflow=H.JSC$8090_domHelper.JSC$7414_document_.body.style.overflow;H.JSC$8090_domHelper.JSC$7414_document_.body.style.overflow=
"hidden";k.wallElement.style.setProperty("display","none","important");p$U(k.accessibilityManager,k.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((Q=E.allowAdsAction.allowAdsPopup)&&Q instanceof HTMLElement)for(k=_.U(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),H=k.next();!H.done;H=k.next()){var R=_.U(H.value);H=R.next().value;R=R.next().value;Q.style.setProperty(H,R)}_.Q3(z)})};
_.r_.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var Ea=function(){};
_.f(Ea,CH);Ea.prototype.resolveCommand=function(g){var r;return _.q(function(E){r=_.n(g,UCw);if(!r)return E.return();P$X(g);_.Q3(E)})};var BM=function(g){this.JSC$15222_commandHandler=g};
_.f(BM,CH);
BM.prototype.resolveCommand=function(g){var r=this,E,B,w,O,M,u,l,Q;return _.q(function(z){if(z.nextAddress==1){E=_.n(g,Fhz);if((B=E)==null||!B.text||!navigator.clipboard)return z.return();_.qN(z,2);return _.D(z,navigator.clipboard.writeText(E.text),4)}if(z.nextAddress!=2){if(!E.successActions||E.successActions.length===0)return z.return();w=_.U(E.successActions);for(O=w.next();!O.done;O=w.next())M=O.value,r.JSC$15222_commandHandler.resolveCommand(M);return _.Ne(z,0)}_.G2(z);if(!E.failureActions||E.failureActions.length===
0)return z.return();u=_.U(E.failureActions);for(l=u.next();!l.done;l=u.next())Q=l.value,r.JSC$15222_commandHandler.resolveCommand(Q);_.Q3(z)})};
BM[LU]=[_.Er];var w_=function(g){this.JSC$15226_commandHandler=g};
_.f(w_,CH);
w_.prototype.resolveCommand=function(g,r){var E=this,B,w,O,M,u,l,Q,z,k,H;return _.q(function(R){switch(R.nextAddress){case 1:B=_.n(g,Gi4);if(!B)return R.return();_.qN(R,2);if(!B.imageBytes&&!B.imageUrl)throw Error("Ci");if(!B.imageUrl){if(B.imageBytes){O=B.imageBytes;M=O.replace(/-/g,"+").replace(/_/g,"/");var A=sGt(M);w=_.sU(A)}R.jumpTo(4);break}return _.D(R,fetch(B.imageUrl),5);case 5:return u=R.yieldResult,_.D(R,u.blob(),6);case 6:l=R.yieldResult,w=_.sU(l);case 4:k=(Q=r)==null?void 0:(z=Q.form)==
null?void 0:z.element;H=document.createElement("a");Aa(H,w);k.appendChild(H);H.download="";H.click();k.removeChild(H);URL.revokeObjectURL(_.zh(w));B.successCommand&&E.JSC$15226_commandHandler.resolveCommand(B.successCommand);_.Ne(R,0);break;case 2:_.G2(R),B.errorCommand&&E.JSC$15226_commandHandler.resolveCommand(B.errorCommand),_.Q3(R)}})};
w_[LU]=[_.Er];var Sr=function(g){this.store=g};
_.f(Sr,CH);Sr.prototype.resolveCommand=function(g){var r=this,E,B,w;return _.q(function(O){B=(E=_.n(g,_.mfn))==null?void 0:E.entityBatchUpdate;if(!B)return O.jumpTo(0);w=Object.assign({},B,{mutations:[].concat(_.jW(B.mutations||[]))});return _.D(O,_.Qp(w,r.store),0)})};var hQn=function(g){this.JSC$15233_commandHandler=g;this.feedbackDialogMap=new Map};
hQn.prototype.openDialog=function(g,r){(g=this.feedbackDialogMap.get(g))&&this.JSC$15233_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:g}},r)};
hQn[LU]=[_.Er];var Oa=new _.Vn("FEEDBACK_CONTROLLER_TOKEN");var Ua=new _.Vn("APP_STORE_TOKEN");var Mt=function(g,r){this.store=g;this.controller=r};
_.f(Mt,CH);Mt.prototype.resolveCommand=function(g,r){var E=this,B,w,O,M,u,l,Q,z,k,H,R,A,J,e,C,X,Z;return _.q(function(c){if(c.nextAddress==1){B=_.n(g,_.AQ);if(O=(w=B)==null?void 0:w.contentId)for(u=_.U(((M=B)==null?void 0:M.actions)||[]),l=u.next();!l.done;l=u.next())Q=l.value,Zpw(E,Q,O);H=(z=r)==null?void 0:(k=z.form)==null?void 0:k.element;return _.D(c,_.q2(H,[g]).catch(function(){}),2)}R=c.yieldResult;
((A=R)==null?0:(J=A.data)==null?0:(e=J.feedbackResponses)==null?0:e.length)&&(X=(C=R.data.feedbackResponses[0])==null?void 0:C.followUpDialog)&&O&&(Z=E.controller)!=null&&Z.feedbackDialogMap.set(O,X);_.Q3(c)})};
var Zpw=function(g,r,E){var B=_.n(r,_.D$);if(B){B=_.U(B.commands||[]);for(var w=B.next();!w.done;w=B.next())Zpw(g,w.value,E)}_.n(r,_.zi)&&g.store.dispatch(_.za("commandEntity",SJJ(E),{key:E,command:r}));_.n(r,eHZ)&&g.store.dispatch(_.za("commandEntity",SJJ(E),{key:E,command:r}))};
Mt[LU]=[Ua,Oa];var qt=function(g){this.controller=g};
_.f(qt,CH);qt.prototype.resolveCommand=function(g,r){var E=this,B,w,O,M;return _.q(function(u){B=_.n(g,_.aI);O=(w=B)==null?void 0:w.targetId;if(((M=B)==null?void 0:M.signal)!=="TELL_US_WHY"||!O)return u.return();E.controller.openDialog(O,r);_.Q3(u)})};
qt[LU]=[Oa];var uK=function(g){this.store=g};
_.f(uK,CH);uK.prototype.resolveCommand=function(g,r){var E=this,B,w,O,M,u,l,Q;return _.q(function(z){B=_.n(g,UTD);O=(w=B)==null?void 0:w.contentId;l=(M=r)==null?void 0:(u=M.form)==null?void 0:u.element;Q=_.q2(l,[g]);O&&E.undo(O);return _.D(z,Q,0)})};
uK.prototype.undo=function(g){this.store.dispatch(_.za("commandEntity",SJJ(g),{key:g,command:void 0}))};
uK[LU]=[Ua];var lK=function(g){this.JSC$15248_commandHandler=g};
_.f(lK,CH);lK.prototype.resolveCommand=function(g){var r=this,E,B,w,O,M,u,l,Q;return _.q(function(z){E=_.n(g,SGI);B=E.flowStateKey;w=E.validationFailureCommand;O=E.submitValidFormCommand;M=OqB(_.d0,[B||""]);u=_.n(M,UnZ);((l=u)==null?0:l.isValid)&&O&&r.JSC$15248_commandHandler.resolveCommand(O);((Q=u)==null?0:Q.isValid)||!w||r.JSC$15248_commandHandler.resolveCommand(w);_.Q3(z)})};
lK[LU]=[_.Er];var DU=function(g){this.innertubeTransportService=g};
_.f(DU,CH);DU.prototype.resolveCommand=function(g,r){var E=this,B;return _.q(function(w){return _.D(w,_.cK(E.innertubeTransportService,g,(B=r)==null?void 0:B.form).then(function(O){var M,u;r==null||(M=r.commandController)==null||(u=M.onSuccess)==null||u.call(M,g,O)},function(O){var M,u;
r==null||(M=r.commandController)==null||(u=M.onServerError)==null||u.call(M,g,O)}),0)})};
DU[LU]=[_.Wo];var oe=function(){};
_.f(oe,CH);oe.prototype.resolveCommand=function(g){var r,E,B,w;return _.q(function(O){if(r=_.n(g,_.RtZ)){if(E=r.gtmId)B=_.Ca("GL",""),_.fB(E,B);(w=r.gtmData)&&_.$l(w)}_.Q3(O)})};var G3=function(g,r){this.innertubeTransportService=g;this.JSC$15259_actionRouter=r};
_.f(G3,CH);G3.prototype.resolveCommand=function(g){var r=this,E,B;return _.q(function(w){E=_.n(g,wLU);if(!E)return w.return();B=E.command;if(!B)return w.return();r.JSC$15259_actionRouter.triggerAction("yt-insert-rich-section-action",E);return _.D(w,_.cK(r.innertubeTransportService,B,{disableCache:!0}),0)})};
G3[LU]=[_.Wo,VA];$IP.bind(null,KH);var yVw=$IP.bind(null,PSb);AUc.bind(null,KH);var vMn=AUc.bind(null,PSb);JUP.bind(null,KH);var dl6=JUP.bind(null,PSb);var Q$=function(){};
_.f(Q$,CH);
Q$.prototype.resolveCommand=function(g){var r,E,B,w,O,M,u,l,Q,z;return _.q(function(k){r=_.n(g,mEw);if(!r)return k.return();B=((E=r.operations)==null?void 0:E.operations)||[];w=_.U(B);for(O=w.next();!O.done;O=w.next())if(M=O.value,M.insertItemSectionContent){var H=M.insertItemSectionContent,R=H.contents||[];H.insertByPositionInSection?yVw(H.insertByPositionInSection.sectionTargetId,R,H.insertByPositionInSection.position):H.insertByRelativePositionInSection&&H.insertByRelativePositionInSection.sectionTargetId&&H.insertByRelativePositionInSection.itemTargetId&&
vMn(H.insertByRelativePositionInSection.sectionTargetId,H.insertByRelativePositionInSection.itemTargetId,R,H.insertByRelativePositionInSection.relativePosition)}else M.replaceSection?(H=M.replaceSection,R={},H.replaceByTargetId?R=H.replaceByTargetId:H.replaceByGroupId&&(R={targetId:H.replaceByGroupId.groupId,newContent:H.replaceByGroupId.newContent,undoKey:""}),R.newContent&&eyT(R.targetId,{continuationItems:[R.newContent]})):M.removeItem?(H=M.removeItem,H.removeByTargetId&&H.sectionTargetId&&dl6(H.sectionTargetId,
H.removeByTargetId.targetIds||[])):M.removeSection&&(M.removeSection.removeByTargetId?(u=void 0,TeD(((u=M.removeSection)==null?void 0:u.removeByTargetId.targetIds)||[])):M.removeSection.removeByGroupId&&(l=void 0,TeD(((l=M.removeSection)==null?void 0:l.removeByGroupId.groupIds)||[])));z=((Q=r.operations)==null?void 0:Q.scrollConfig)||{};g_Z(z);_.Q3(k)})};
var TeD=function(g){g=_.U(g);for(var r=g.next();!r.done;r=g.next())eyT(r.value,{continuationItems:[]})},g_Z=function(g){if(g.scrollToItem){var r=g.scrollToItem.item||{},E=r.itemTargetId;
r=r.sectionTargetId;if(E&&r){var B=document.querySelector("[data-target-id="+r+"]"),w=B==null?void 0:B.querySelector("[data-target-id="+E+"]");B&&w&&setTimeout(function(){var O=w.offsetTop-B.offsetTop,M;if(((M=g.scrollToItem)==null?void 0:M.scrollPosition)==="SCROLL_POSITION_CENTER")O-=B.offsetHeight/2,O+=w.offsetHeight/2;else{var u;((u=g.scrollToItem)==null?void 0:u.scrollPosition)==="SCROLL_POSITION_END"&&(O-=B.offsetHeight,O+=w.offsetHeight)}B.scroll({top:O,behavior:"smooth"})},100)}}};var z3=new _.Vn("CLIENT_NAME_TOKEN");var rvZ=new _.Vn("DEFAULT_STORE_EXPIRATION_TOKEN");var Yft=new _.Vn("CLIENT_LOCATION_SERVICE_TOKEN");var kL=function(g,r,E){this.clientName=g||_.Ca("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=r||_.tO.getInstance();this.JSC$15287_commandHandler=E||_.G$.instance};
_.f(kL,CH);kL.prototype.resolveCommand=function(g){var r=this,E,B;return _.q(function(w){B=(E=_.n(g,v$Z))==null?void 0:E.onComplete;r.clientLocationService.clearLocationPlayabilityToken(r.clientName);B&&r.JSC$15287_commandHandler.resolveCommand(B);_.Q3(w)})};
kL[LU]=[z3,Yft,_.Er];var HM=function(g){this.innertubeTransportService=g};
_.f(HM,CH);HM.prototype.resolveCommand=function(g,r){var E=this,B,w,O,M;return _.q(function(u){O=(B=r)==null?void 0:(w=B.form)==null?void 0:w.element;return _.D(u,_.cK(E.innertubeTransportService,g,(M=r)==null?void 0:M.form).then(function(l){N_Y(O,new CustomEvent("yt-service-request-completed"),{data:l},_.Ca("openPopupConfig"))}),0)})};
HM[LU]=[_.Wo];var pT=function(){};
_.f(pT,CH);pT.prototype.resolveCommand=function(g){var r,E;return _.q(function(B){r=_.n(g,lfb);E=document.querySelector("mini-app-container-view-model");if(!r||!E)return B.return();r.isPlaying?E.dispatchEvent(new Event("play")):E.dispatchEvent(new Event("pause"));_.Q3(B)})};var YL=function(){};
_.f(YL,CH);YL.prototype.resolveCommand=function(g){var r,E,B,w,O,M,u;return _.q(function(l){r=_.n(g,QHZ);if((E=r)==null||!E.paramKeys)return l.return();B=r.paramKeys;w=_.cT(window.location.href);O=_.U(B);for(M=O.next();!M.done;M=O.next())u=M.value,w.JSC$8122_queryData_.remove(u);window.history.replaceState(window.history.state,document.title,w.toString());_.Q3(l)})};var E_U=function(){this.dropdownMap=new Map};_.BOA=new _.Vn("DROPDOWN_CONTROLLER_TOKEN");var Re=function(g){this.controller=g};
_.f(Re,CH);Re.prototype.resolveCommand=function(g){var r=this,E,B,w,O;return _.q(function(M){E=_.n(g,ZYm);if(!E)return M.return();B=E;w=B.dropdownId;O=B.selectedOptionIndex;if(w===void 0||O===void 0)return M.return();var u=r.controller.dropdownMap.get(w);u&&u(O);_.Q3(M)})};
Re[LU]=[_.BOA];var nT=function(g){this.controller=g};
_.f(nT,CH);nT.prototype.resolveCommand=function(g){var r=this,E;return _.q(function(B){return(E=_.n(g,qLw))?_.D(B,r.controller.closeDialog(),0):B.return()})};
nT[LU]=[_.pj];var sa=function(g){this.controller=g};
_.f(sa,CH);sa.prototype.resolveCommand=function(g){var r=this,E,B;return _.q(function(w){E=_.n(g,iUw);if(!E)return w.return();var O,M=E.panelIdentifier||((O=E.identifier)==null?void 0:O.tag);if(!M)throw Error("Di");return(B=M)?_.D(w,r.controller.hidePanel(B),0):w.jumpTo(0)})};
sa[LU]=[_.kn];var fT=function(g,r){this.innertubeTransportService=g;this.controller=r};
_.f(fT,CH);fT.prototype.resolveCommand=function(g){var r=this,E,B,w,O;return _.q(function(M){if(M.nextAddress==1)return E=_.n(g,LTD),(B=E)!=null&&B.panelId?_.D(M,r.controller.getReloadContinuation(E.panelId),2):M.return();if(M.nextAddress!=3)return(w=M.yieldResult)?_.D(M,_.cK(r.innertubeTransportService,g,{continuation:w}),3):M.return();O=M.yieldResult;return _.D(M,r.controller.updatePanel(E.panelId,O.content,!1),0)})};
fT[LU]=[_.Wo,_.kn];var $L=function(g,r,E){this.innertubeTransportService=g;this.JSC$15323_screenManager=r;this.JSC$15323_commandHandler=E};
_.f($L,CH);
$L.prototype.resolveCommand=function(g){var r=this,E,B,w,O,M,u;return _.q(function(l){if(l.nextAddress==1){E=_.n(g,_.Cvn);if(!E)return l.return();if(E.commands)for(B=_.U(E.commands),w=B.next();!w.done;w=B.next())O=w.value,r.JSC$15323_commandHandler.resolveCommand(O,{disableClickTracking:!0});M=_.fW(g.clickTrackingParams);_.wT(r.JSC$15323_screenManager,21760,M,{layer:7,parentLayer:0});return _.D(l,_.cK(r.innertubeTransportService,g),2)}u=l.yieldResult;if(!u)return l.return();r.JSC$15323_screenManager.graftServerVe(u.trackingParams,M,
7);_.Q3(l)})};
$L[LU]=[_.Wo,_.Y8,_.Er];var jr=new _.Vn("PANEL_LOADING_STRATEGY_TOKEN");var A$=function(g,r){this.controller=g;this.panelLoadingStrategy=r};
_.f(A$,CH);
A$.prototype.resolveCommand=function(g,r){var E=this,B,w,O;return _.q(function(M){B=_.n(g,J9D);if((w=B)==null||!w.panelLoadingStrategy)return M.return();O=function(u){var l,Q,z,k,H,R,A,J,e;return _.q(function(C){Q=_.n((l=u.dialogViewModel)==null?void 0:l.header,y9w);z={viewModel:u.dialogViewModel};k={};if(A=_.Y("web_enable_dialog_header_label")?(H=Q)==null?void 0:(R=H.headline)==null?void 0:R.content:void 0)k.ariaLabel=A;B.dismissOnBackgroundTap===!1&&(k.isModal=!0);return u.dialogViewModel?_.D(C,
E.controller.openDialog(z,(J=r)==null?void 0:(e=J.form)==null?void 0:e.element,k),0):C.return()})};
return _.D(M,E.panelLoadingStrategy.execute({command:g,data:B.panelLoadingStrategy,renderFn:O,createScreenConfig:{layer:4}}),0)})};
A$[LU]=[_.pj,jr];var bK=function(g,r,E){this.innertubeTransportService=g;this.controller=r;this.JSC$15343_screenManager=E};
_.f(bK,CH);
bK.prototype.resolveCommand=function(g,r){var E=this,B,w,O,M,u,l,Q,z,k,H,R,A;return _.q(function(J){switch(J.nextAddress){case 1:B=_.n(g,_.ja);if(!B)return J.return();var e,C=B.panelIdentifier||((e=B.identifier)==null?void 0:e.tag);if(!C)throw Error("Di");w=C;return _.D(J,E.controller.isVisible(w,!0),2);case 2:if((O=J.yieldResult)&&B.blockIfPanelOpen)return J.return();l=(u=(M=E.controller).getPanelContent)==null?void 0:u.call(M,w);if(!(e=l))if(B){var X;e=((X=B.globalConfiguration)==null?void 0:X.initialState)||
B.engagementPanel;if(X=!e)X=!!(B==null?0:(C=B.engagementPanelPresentationConfigs)==null?0:C.engagementPanelPopupPresentationConfig);X&&(e=_.PEL(B.panelIdentifier,B.identifier))}else e=void 0;Q=e;z=B.engagementPanelPresentationConfigs;k=B.engagementPanelExtras;return _.D(J,E.controller.showPanel(w,Q,z,k,(H=r)==null?void 0:(R=H.form)==null?void 0:R.element),3);case 3:if(!B.globalConfiguration){J.jumpTo(0);break}_.wT(E.JSC$15343_screenManager,32633);return _.D(J,_.cK(E.innertubeTransportService,g),5);
case 5:return A=J.yieldResult,E.JSC$15343_screenManager.graftServerVe(A.trackingParams),_.D(J,E.controller.updatePanel(w,A.content,!0,k,void 0,A.updatePanelContinuationData),0)}})};
bK[LU]=[_.Wo,_.kn,_.Y8];var J$=function(g,r){this.controller=g;this.panelLoadingStrategy=r};
_.f(J$,CH);J$.prototype.resolveCommand=function(g,r){var E=this,B,w,O,M,u,l;return _.q(function(Q){B=_.n(g,_.ko);if((w=B)==null||!w.panelLoadingStrategy)return Q.return();u=wGI(E.controller,(O=r)==null?void 0:(M=O.form)==null?void 0:M.element);l=function(z){return _.q(function(k){return z.sheetViewModel?_.D(k,E.controller.openSheet({viewModel:z.sheetViewModel},u),0):k.return()})};
return _.D(Q,E.panelLoadingStrategy.execute({command:g,data:B.panelLoadingStrategy,renderFn:l,createScreenConfig:{layer:0}}),0)})};
J$[LU]=[_.Hh,jr];var PM=function(g,r){this.controller=g;this.JSC$15351_commandHandler=r};
_.f(PM,CH);PM.prototype.resolveCommand=function(g,r){var E=this,B,w,O;return _.q(function(M){if(M.nextAddress==1){B=_.n(g,y1Z);var u=_.n(B.showCommand,_.ja),l,Q,z=(Q=u==null?void 0:u.panelIdentifier)!=null?Q:u==null?void 0:(l=u.identifier)==null?void 0:l.tag;if(!z)throw Error("Ei");w=z;return _.D(M,E.controller.isVisible(w),2)}return(O=M.yieldResult)?_.D(M,E.controller.hidePanel(w),0):_.D(M,E.JSC$15351_commandHandler.resolveCommand(B.showCommand,r),0)})};
PM[LU]=[_.kn,_.Er];var t$=function(g,r,E){this.innertubeTransportService=g;this.controller=r;this.JSC$15354_screenManager=E};
_.f(t$,CH);
t$.prototype.resolveCommand=function(g){var r=this,E,B,w,O,M,u,l,Q,z,k,H,R,A,J,e,C,X,Z,c,h,y,OD;return _.q(function(uB){switch(uB.nextAddress){case 1:return B=E=_.n(g,v7U),w=B.targetPanelIdentifier,O=B.contentSourcePanelIdentifier,M=B.globalConfiguration,((u=w)==null?0:u.tag)&&((l=O)==null?0:l.tag)?M?_.D(uB,r.controller.showPanel(w.tag,_.PEL(w.tag,w),void 0,void 0,void 0),5):_.D(uB,(H=(k=r.controller).getPanel)==null?void 0:H.call(k,O.tag),4):uB.return();case 4:R=uB.yieldResult;Q=(A=R)==null?void 0:
(e=(J=A).getPanelContent)==null?void 0:e.call(J);uB.jumpTo(3);break;case 5:return _.D(uB,_.cK(r.innertubeTransportService,g),6);case 6:C=uB.yieldResult,((X=C)==null?0:X.trackingParams)&&r.JSC$15354_screenManager.graftServerVe(C.trackingParams),Q=(Z=C)==null?void 0:Z.content,z=(c=C)==null?void 0:c.updatePanelContinuationData;case 3:if(y=(h=Q)==null?void 0:h.engagementPanelSectionListRenderer)return _.D(uB,r.controller.showPanel(w.tag,void 0,void 0,void 0,void 0,{content:y.content,secondaryHeaderContent:(OD=
y.header)!=null?OD:{},targetId:y.targetId},z),0);uB.jumpTo(0)}})};
t$[LU]=[_.Wo,_.kn,_.Y8];var FK=function(g){this.JSC$15361_commandHandler=g};
_.f(FK,CH);
FK.prototype.resolveCommand=function(g){var r=this,E,B,w,O,M,u;return _.q(function(l){if(l.nextAddress==1)return(E=_.n(g,UcD))?_.D(l,_.MQ(),2):l.return();B=l.yieldResult;if(!B)return l.return();var Q=B,z=(w=E)==null?void 0:w.languageCode,k=(O=E)==null?void 0:O.isAutoTranslated;Q.getVideoData&&_.FBV(Q).length&&((z=WBl(Q,z,k))?Q.setOption("captions","track",z):(Q.setOption("captions","stickyLoading",{}),Q.setOption("captions","track",{})));M=B.isSubtitlesOn()?_.zn("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.zn("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");u=_.dz(M);r.JSC$15361_commandHandler.resolveCommand(u);_.Q3(l)})};
FK[LU]=[_.Er];var er=function(g,r){this.shortsPlayerPromise=g;this.JSC$15365_commandHandler=r};
_.f(er,CH);
er.prototype.resolveCommand=function(g){var r=this,E,B,w,O,M,u,l,Q;return _.q(function(z){if(z.nextAddress==1)return(E=_.n(g,sMb))?_.D(z,r.shortsPlayerPromise,2):z.return();B=z.yieldResult;var k=CEP(B);k!=null&&k.length||(B.loadModule("captions"),k=CEP(B));w=k;if((O=w)==null||!O.length)return M=_.zn("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),u=_.dz(M),r.JSC$15365_commandHandler.resolveCommand(u),z.return();B.toggleSubtitles();l=B.isSubtitlesOn()?_.zn("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.zn("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");Q=_.dz(l);r.JSC$15365_commandHandler.resolveCommand(Q);_.Q3(z)})};
er[LU]=[_.lKA,_.Er];var WM=function(g){this.JSC$15368_playerPromise=g};
_.f(WM,CH);WM.prototype.resolveCommand=function(g){var r=this,E,B,w,O;return _.q(function(M){if(M.nextAddress==1)return(E=_.n(g,hqZ))?_.D(M,r.JSC$15368_playerPromise,2):M.return();B=M.yieldResult;w=B.getVideoData().video_id;E.videoId===w&&(O=Number(E.offsetFromVideoStartMilliseconds),O>=0&&B.seekTo(O/1E3));_.Q3(M)})};
WM[LU]=[_.wr];var Son=_.qr("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),CT=function(g){this.store=g};
_.f(CT,CH);
var O_A=function(g){var r,E,B,w;return _.q(function(O){if(O.nextAddress==1)return r=_.Ca("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,E=_.Ca("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,B=r||E,g.mainAppPlayer=new NF(B),_.D(O,g.mainAppPlayer.api,2);w=O.yieldResult;w.addEventListener("onStateChange",g.JSC$15372_playerStateChangeListener.bind(g));document.addEventListener("yt-page-data-updated",g.pauseOnNavigation.bind(g));window.addEventListener("state-navigatestart",
g.pauseOnNavigation.bind(g));_.Q3(O)})};
CT.prototype.JSC$15372_playerStateChangeListener=function(g){switch(g){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"}Umn(this)};
var Umn=function(g){g.store.dispatch(_.za("sfvAudioItemCurrentlyPlayingEntity",Son,{key:Son,externalVideoId:g.externalVideoId,sfvAudioItemPlaybackState:g.playbackState,nowPlayingEntityValue:g.nowPlayingEntityValue}))};
CT.prototype.pauseOnNavigation=function(){var g=this,r,E,B,w;return _.q(function(O){if(O.nextAddress==1){if(!g.mainAppPlayer){var M=new _.Rj("Error: mainAppPlayer is unavailable",g.mainAppPlayer);_.tn(M);return O.return()}return _.D(O,g.mainAppPlayer.api,2)}r=O.yieldResult;B=(E=r)==null?void 0:E.getPlayerState();B!==1||(w=r)!=null&&w.pauseVideo();_.Q3(O)})};
CT.prototype.playVideo=function(g,r,E){var B=this,w,O;return _.q(function(M){if(M.nextAddress==1)return _.D(M,(w=B.mainAppPlayer)==null?void 0:w.api,2);O=M.yieldResult;if(!B.mainAppPlayer||!O){var u=new _.Rj("Error: mainAppPlayer is unavailable",B.mainAppPlayer);_.tn(u);return M.return()}return _.D(M,B.mainAppPlayer.loadVideoWithPlayerVars({videoId:B.externalVideoId,audio_only:"1",start:g/1E3,end:g/1E3+r,player_params:E}),0)})};
CT.prototype.pauseVideo=function(){var g=this,r,E;return _.q(function(B){if(B.nextAddress==1){if(!g.mainAppPlayer){var w=new _.Rj("Error: mainAppPlayer is unavailable",g.mainAppPlayer);_.tn(w);return B.return()}return _.D(B,g.mainAppPlayer.api,2)}r=B.yieldResult;(E=r)==null||E.pauseVideo();_.Q3(B)})};
CT.prototype.resolveCommand=function(g){var r=this,E,B,w,O,M,u,l,Q,z,k,H,R,A,J,e,C,X,Z,c;return _.q(function(h){if(h.nextAddress==1)return E=_.n(g,pUT),w=(B=E)==null?void 0:B.nowPlayingEntityValue,M=(O=E)==null?void 0:O.externalVideoId,k=Number((z=(u=E)==null?void 0:(l=u.defaultStartPoints)==null?void 0:(Q=l[0])==null?void 0:Q.offsetMs)!=null?z:"0"),C=Number((e=(H=E)==null?void 0:(R=H.defaultStartPoints)==null?void 0:(A=R[0])==null?void 0:(J=A.duration)==null?void 0:J.seconds)!=null?e:"15"),c=(Z=
(X=E)==null?void 0:X.playerParams)!=null?Z:"",w&&M?r.mainAppPlayer?h.jumpTo(2):_.D(h,O_A(r),2):h.return();if(h.nextAddress!=6){if(r.nowPlayingEntityValue&&w===r.nowPlayingEntityValue)return r.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.D(h,r.pauseVideo(),0):_.D(h,r.playVideo(k,C,c),0);r.externalVideoId=M;r.nowPlayingEntityValue=w;r.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.D(h,r.playVideo(k,C,c),6)}Umn(r);return h.jumpTo(0)})};
CT[LU]=[Sa];var KT=function(g){this.JSC$15392_commandHandler=g};
_.f(KT,CH);KT.prototype.resolveCommand=function(g,r){var E=this,B,w,O,M,u;return _.q(function(l){if(l.nextAddress==1)return(B=_.n(g,MY4))?_.D(l,_.MQ(),2):l.return();w=l.yieldResult;if(!w)return l.return();(O=NZt(w))?E.JSC$15392_commandHandler.resolveCommand(O,r):(M=_.zn("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),u=_.dz(M),E.JSC$15392_commandHandler.resolveCommand(u));_.Q3(l)})};
KT[LU]=[_.Er];var xL=function(g){this.JSC$15395_playerPromise=g};
_.f(xL,CH);xL.prototype.resolveCommand=function(g){var r=this,E,B,w,O,M;return _.q(function(u){if(u.nextAddress==1){E=_.n(g,ZUA);if(!E)return u.return();B=E.overlayRenderer;return B?(w=_.n(B,uLb))?_.D(u,r.JSC$15395_playerPromise,3):u.jumpTo(0):u.return()}O=u.yieldResult;O.renderChapterSeekingAnimation(1,_.Vp(w.text),(M=w.icon)==null?void 0:M.iconType);_.Q3(u)})};
xL[LU]=[_.wr];var ae=function(g){this.store=g};
_.f(ae,CH);
ae.prototype.resolveCommand=function(g){var r=this,E,B,w;return _.q(function(O){if(O.nextAddress==1){E=_.n(g,Uf6);if(!E)return O.return();B="";(w=r.store.getState().collabInviteLink)&&E.id===w.playlistId?B=w.inviteLinkURL:E.shortUrl&&(B=E.shortUrl);return B?_.D(O,navigator.clipboard.writeText(B),3):O.jumpTo(0)}var M={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.zn("COPY_LINK_SUCCESS_TOAST")}}}}};_.rM().resolve(_.Er).resolveCommand(M);_.Q3(O)})};
ae[LU]=[Ua];var XK=function(g,r){this.innertubeTransportService=g;this.JSC$15405_commandHandler=r};
_.f(XK,CH);XK.prototype.resolveCommand=function(g,r){var E=this,B,w,O,M,u,l,Q,z,k,H;return _.q(function(R){if(R.nextAddress==1)return(B=_.n(g,_.CY))?_.D(R,_.cK(E.innertubeTransportService,g,(w=r)==null?void 0:w.form),2):R.return();(O=R.yieldResult)&&O.errorMetadata&&(M=O,u=_.dz(M.error.message),E.JSC$15405_commandHandler.resolveCommand(u));l=O;if((Q=l)==null?0:Q.actions)for(z=_.U(l.actions),k=z.next();!k.done;k=z.next())H=k.value,E.JSC$15405_commandHandler.resolveCommand(H);_.Q3(R)})};
XK[LU]=[_.Wo,_.Er];var Nt=function(){};
_.f(Nt,CH);Nt.prototype.resolveCommand=function(g){var r;return _.q(function(E){r=_.n(g,dEb);if(!r)return E.return();(new DvD(r)).show();_.Q3(E)})};_.Ie=new _.Vn("PLAYLIST_EDIT_CONTROLLER_TOKEN");var mv=function(g,r,E,B){this.store=g;this.innertubeTransportService=r;this.controller=E;this.JSC$15413_commandHandler=B};
_.f(mv,CH);
mv.prototype.resolveCommand=function(g,r){var E=this,B,w,O,M,u,l,Q,z,k,H,R,A,J,e,C,X,Z,c,h,y,OD,uB,zS,jV,PJ,At;return _.q(function(XY){if(XY.nextAddress==1){B=_.n(g,_.J9);if(!B)return XY.return();if(B.clientActions){w=_.U(B.clientActions);for(O=w.next();!O.done;O=w.next())M=O.value,E.JSC$15413_commandHandler.resolveCommand(M);var xc,rg=r==null?void 0:(xc=r.form)==null?void 0:xc.element;rg&&_.Sh(rg,"yt-dismissible-item-action",B.clientActions)}return _.D(XY,_.cK(E.innertubeTransportService,g,(u=r)==
null?void 0:u.form),2)}if(l=XY.yieldResult)l.errorMetadata?(Q=l,z=_.dz(Q.error.message),E.JSC$15413_commandHandler.resolveCommand(z),"error"in l&&((k=r)==null?0:(H=k.commandController)==null?0:H.onServerError)&&((R=r)==null||(A=R.commandController)==null||A.onServerError(g,l))):(J=r)==null||(e=J.commandController)==null||(X=(C=e).onSuccess)==null||X.call(C,g,l);Z=l;((c=Z)==null?0:c.collaborationInviteLink)&&B.playlistId&&(_.Y("web_enable_invite_collaborators_link")||_.Y("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
E.store.dispatch(_.Bs({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:B.playlistId,inviteLinkUrl:Z.collaborationInviteLink}}));((h=Z)==null?0:h.redirectEndpoint)&&E.JSC$15413_commandHandler.resolveCommand(Z.redirectEndpoint);((y=Z)==null?0:(OD=y.newHeader)==null?0:OD.playlistHeaderRenderer)?Mum(E.controller,Z.newHeader.playlistHeaderRenderer):((uB=Z)==null?0:(zS=uB.newHeader)==null?0:zS.musicEditablePlaylistDetailHeaderRenderer)&&Mum(E.controller,Z.newHeader.musicEditablePlaylistDetailHeaderRenderer);
E.controller.playlistVideoListElement&&((jV=Z)==null?0:(PJ=jV.playlistEditResults)==null?0:(At=PJ[0])==null?0:At.playlistEditVideoAddedResultData)&&((rg=E.controller.playlistVideoListElement)==null||rg.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:Z.playlistEditResults[0].playlistEditVideoAddedResultData})));_.Q3(XY)})};
mv[LU]=[Ua,_.Wo,_.Ie,_.Er];var cM=function(g,r){this.controller=g;this.JSC$15423_commandHandler=r};
_.f(cM,CH);cM.prototype.resolveCommand=function(g,r){var E=this,B,w,O;return _.q(function(M){B=_.n(g,M5z);E.controller.showRefreshPill&&((w=B)==null?0:w.command)&&(E.JSC$15423_commandHandler.resolveCommand((O=B)==null?void 0:O.command,r),E.controller.showRefreshPill=!1);_.Q3(M)})};
cM[LU]=[_.v5,_.Er];var iK=function(g,r){this.store=g;this.JSC$15427_commandHandler=r||_.G$.instance};
_.f(iK,CH);iK.prototype.resolveCommand=function(g,r){var E=this,B,w,O,M,u,l,Q,z,k,H;return _.q(function(R){B=_.n(g,Ran);w=E.store.getState().radioButtonGroup;if((O=B)==null?0:O.command)E.JSC$15427_commandHandler.resolveCommand((M=B)==null?void 0:M.command,r);else if(w&&((u=B)==null?void 0:u.formId)===w.currentFormId)for(l=Object.values(w.commandsMap),Q=_.U(l),z=Q.next();!z.done;z=Q.next())k=z.value,(H=_.xP(k))&&E.JSC$15427_commandHandler.resolveCommand(H,r);_.Q3(R)})};
iK[LU]=[_.e2];var LT=new _.Vn("USER_PREFS");var V$=function(g){this.JSC$15432_prefCookie=g};
_.f(V$,CH);V$.prototype.resolveCommand=function(g){var r=this,E;return _.q(function(B){(E=_.n(g,cXm))&&typeof E.useListView==="boolean"&&(_.Yg(0,155,E.useListView),r.JSC$15432_prefCookie.save());_.Q3(B)})};
V$[LU]=[LT];var h$=function(g){this.JSC$15436_prefCookie=g};
_.f(h$,CH);h$.prototype.resolveCommand=function(g){var r=this,E,B,w,O,M;return _.q(function(u){E=_.n(g,g4T);if((B=E)==null||!B.gl)return u.return();w=E.gl;O={persist_gl:"1",gl:w};r.JSC$15436_prefCookie.set("gl",w);r.JSC$15436_prefCookie.save();M=VUn(O);_.co(M);_.Q3(u)})};
h$[LU]=[LT];var ZU=function(g){this.JSC$15440_prefCookie=g};
_.f(ZU,CH);ZU.prototype.resolveCommand=function(g){var r=this,E,B;return _.q(function(w){E=_.n(g,uxm);if(!E)return w.return();B=!1;E.flagNum&&typeof E.value==="boolean"?(_.Yg(0,E.flagNum,E.value),B=!0):E.key&&typeof E.stringValue==="string"&&(r.JSC$15440_prefCookie.set(E.key,E.stringValue),B=!0);B&&r.JSC$15440_prefCookie.save();_.Q3(w)})};
ZU[LU]=[LT];var y$=new _.Vn("PREF_STORAGE_PROMISE_TOKEN");var vM=function(g){this.JSC$15444_prefStoragePromise=g};
_.f(vM,CH);vM.prototype.resolveCommand=function(g){var r=this,E,B;return _.q(function(w){if(w.nextAddress==1)return(E=_.n(g,Dfn))?_.D(w,r.JSC$15444_prefStoragePromise,2):w.return();B=w.yieldResult;return B===void 0||E.key===void 0||E.value===void 0?w.return():_.D(w,B.set(E.key,E.value),0)})};
vM[LU]=[y$];var qob=function(g){this.innertubeTransportService=g};
_.f(qob,CH);qob.prototype.resolveCommand=function(g,r){var E=this,B,w;return _.q(function(O){(B=_.n(g,_.mPb))&&B&&B.isFirstRequest&&(_.tg("search_overview_answer"),_.F4("so_rq",void 0,"search_overview_answer"));return _.D(O,_.cK(E.innertubeTransportService,g,(w=r)==null?void 0:w.form),0)})};
qob[LU]=[_.Wo];var uVA=function(){};
_.f(uVA,CH);
uVA.prototype.resolveCommand=function(g){var r,E,B,w,O,M,u,l,Q;return _.q(function(z){r=_.n(g,VYn);if((E=r)==null?0:E.sectionIdentifier){if(r.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(w=(B=document.getElementsByTagName(r.sectionIdentifier))==null?void 0:B.item(0))w.scrollIntoView({behavior:"smooth"}),(O=x8l(w))&&O.focus({preventScroll:!0});return z.return()}M=document.querySelector("[section-identifier="+r.sectionIdentifier+"]");u=document.querySelector("[section-identifier="+r.referenceSectionIdentifier+
"]");if(!M)return z.return();l=r.verticalScrollOffsetDp?r.verticalScrollOffsetDp:0;u&&(l-=u.offsetTop);window.scrollTo({top:M.offsetTop+l,behavior:"smooth"});(Q=x8l(M))&&Q.focus({preventScroll:!0})}_.Q3(z)})};var d_=function(g){this.JSC$15456_commandHandler=g};
_.f(d_,CH);
d_.prototype.resolveCommand=function(g){var r=this,E,B,w,O,M,u,l;return _.q(function(Q){if(Q.nextAddress==1){E=_.n(g,Q1w);if(!E||!E.imageBytes||!navigator.clipboard)return Q.return();if(E.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.tn(Error("Gi")),Q.return();_.qN(Q,2);w=(B=E)==null?void 0:B.imageBytes;O=w.replace(/-/g,"+").replace(/_/g,"/");M=sGt(O);u={};l=[new ClipboardItem((u[M.type]=M,u))];return _.D(Q,navigator.clipboard.write(l),4)}if(Q.nextAddress!=2)return E.successCommand&&
r.JSC$15456_commandHandler.resolveCommand(E.successCommand),_.Ne(Q,0);_.G2(Q);E.errorCommand&&r.JSC$15456_commandHandler.resolveCommand(E.errorCommand);_.Q3(Q)})};
d_[LU]=[_.Er];var T3=function(g,r){this.innertubeTransportService=g;this.JSC$15460_commandHandler=r};
_.f(T3,CH);T3.prototype.resolveCommand=function(g,r){var E=this,B,w,O,M,u;return _.q(function(l){if(l.nextAddress==1)return(B=_.n(g,z0z))?_.D(l,_.cK(E.innertubeTransportService,g,(w=r)==null?void 0:w.form),2):l.return();(O=l.yieldResult)&&O.errorMetadata&&B.onFailureCommand&&E.JSC$15460_commandHandler.resolveCommand(B.onFailureCommand);M=O;((u=M)==null?0:u.shareCommand)&&E.JSC$15460_commandHandler.resolveCommand(M.shareCommand,r);_.Q3(l)})};
T3[LU]=[_.Wo,_.Er];var gp=function(){};
_.f(gp,CH);gp.prototype.resolveCommand=function(g){var r,E;return _.q(function(B){r=_.n(g,OVn);if(!r||!navigator.share)return B.return();E={url:r.url};try{return B.return(navigator.share(E))}catch(w){}_.Q3(B)})};var rp=function(){};
_.f(rp,CH);rp.prototype.resolveCommand=function(){return _.q(function(g){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.Q3(g)})};var Et=function(g){this.JSC$15470_navigationConfirmationService=g};
_.f(Et,CH);Et.prototype.resolveCommand=function(){var g=this;return _.q(function(r){g.JSC$15470_navigationConfirmationService.cancelPendingNavigation();_.Q3(r)})};
Et[LU]=[qR];var B_=function(g){this.JSC$15473_screenManager=g};
_.f(B_,CH);B_.prototype.resolveCommand=function(g,r){var E=this,B,w,O,M,u,l,Q;return _.q(function(z){w=(B=r.form)==null?void 0:B.event;M=(O=r.form)==null?void 0:O.element;if(!w)throw new _.Rj("Event not passed in when resolving command");u=_.U(w.composedPath());for(l=u.next();!l.done;l=u.next())if(Q=l.value,Q.tagName==="YT-COPY-LINK-RENDERER")return Q.copyUrlToClipboard(),M&&_.Nh(E.JSC$15473_screenManager,M),z.return();_.Q3(z)})};
B_[LU]=[_.Y8];var wp=function(){this.JSC$15477_miniAppClientDataProvider=_.rM().resolve(_.tE)};
_.f(wp,CH);wp.prototype.resolveCommand=function(){var g=this,r,E;return _.q(function(B){if(g.JSC$15477_miniAppClientDataProvider.clientData.has("video_id")){var w=g.JSC$15477_miniAppClientDataProvider,O=w.clientData.get("video_id");O&&w.clientData.delete("video_id");r="https://youtube.com/watch?v="+O;E=YU(r);if(E===void 0)throw Error("Hi`"+r);_.Wu(window,E)}_.Q3(B)})};var SQ=function(){};
_.f(SQ,CH);SQ.prototype.resolveCommand=function(){return _.q(function(g){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.Q3(g)})};var Ot=function(){};
_.f(Ot,CH);Ot.prototype.resolveCommand=function(){var g;return _.q(function(r){if(r.nextAddress==1)return _.D(r,_.qLD(window.document.documentElement),2);(g=document.querySelector("mini-app-container-view-model iframe"))&&g.focus();_.Q3(r)})};var Ut=function(g){this.JSC$15484_navigationConfirmationService=g};
_.f(Ut,CH);
Ut.prototype.resolveCommand=function(){var g=this;return _.q(function(r){var E=g.JSC$15484_navigationConfirmationService,B=_.rM().resolve(_.pB),w;if(((w=E.navigateParams)==null?void 0:w.data)!==void 0){var O;_.GIm(B,E.navigateParams.endpoint,E.navigateParams.data,(O=E.navigateParams.navigationType)!=null?O:1,E.navigateParams.tempData,E.navigateParams.isMiniplayer,void 0,!0);E.navigateParams=void 0;E.customConfirmationCommand=void 0}else E.navigateParams&&(B.navigate(E.navigateParams.endpoint,E.navigateParams.reload,
E.navigateParams.params,E.navigateParams.tempData,E.navigateParams.requestType,E.navigateParams.createScreenConfig,!0),E.navigateParams=void 0,E.customConfirmationCommand=void 0);_.Q3(r)})};
Ut[LU]=[qR];var MY=function(){};
_.f(MY,CH);MY.prototype.resolveCommand=function(){return _.q(function(g){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.Q3(g)})};var qY=function(g){this.JSC$15489_prefStorage=g};
_.f(qY,CH);qY.prototype.resolveCommand=function(){var g=this,r,E;return _.q(function(B){switch(B.nextAddress){case 1:return _.D(B,g.JSC$15489_prefStorage,2);case 2:return(r=B.yieldResult)?_.D(B,r.set("sfvle",!1),3):B.return();case 3:return _.D(B,r.set("sfvles",!0),4);case 4:E=_.pu(),_.Yg(0,203,!1),_.Yg(0,204,!0),E.save(),_.Q3(B)}})};
qY[LU]=[y$];var uM=function(g){this.JSC$15492_prefStorage=g};
_.f(uM,CH);uM.prototype.resolveCommand=function(){var g=this,r,E;return _.q(function(B){switch(B.nextAddress){case 1:return _.D(B,g.JSC$15492_prefStorage,2);case 2:return(r=B.yieldResult)?_.D(B,r.set("sfvle",!0),3):B.return();case 3:return _.D(B,r.set("sfvles",!0),4);case 4:E=_.pu(),_.Yg(0,203,!0),_.Yg(0,204,!0),E.save(),_.Q3(B)}})};
uM[LU]=[y$];_.lNn=new _.Vn("SNACKBAR_CONTROLLER_TOKEN");_.Dmm=new _.Vn("SHOULD_SHOW_PIVOT_BAR_TOKEN");var lM=function(g){this.controller=g};
_.f(lM,CH);lM.prototype.resolveCommand=function(g){var r=this,E;return _.q(function(B){E=_.n(g,bYA);if(!E)return B.return();var w=r.controller;w.closeSnackbarFn&&w.closeSnackbarFn();_.Q3(B)})};
lM[LU]=[_.lNn];var DA=function(g,r){this.controller=g;this.sheetController=r};
_.f(DA,CH);DA.prototype.resolveCommand=function(g,r){var E=this,B,w,O,M,u,l;return _.q(function(Q){B=_.n(g,Pwn);if(!B)return Q.return();M=wGI(E.sheetController,(w=r)==null?void 0:(O=w.form)==null?void 0:O.element);u=_.n(B.content,iY6);if(!u)return Q.return();var z=E.controller,k=u,H=(l=B.animationStyle)!=null?l:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(z.showSnackbarFn)z.showSnackbarFn({snackbarViewModel:k,animationStyle:H,durationMs:B.durationSeconds*1E3,target:M});else throw Error("qj");_.Q3(Q)})};
DA[LU]=[_.lNn,_.Hh];var oN=function(){};
_.f(oN,CH);oN.prototype.resolveCommand=function(g){var r;return _.q(function(E){r=_.n(g,lw6);if(!r||typeof r.key!=="string"||typeof r.value!=="string")return E.return();window.localStorage.setItem(r.key,r.value);_.Q3(E)})};var GJ=function(g){this.store=g};
_.f(GJ,CH);GJ.prototype.resolveCommand=function(g){var r=this,E;return _.q(function(B){E=_.n(g,O8P);if(!E||!E.stepId||!E.token)return B.return();r.store.dispatch(onA({stepId:E.stepId,token:E.token,isSelected:!1}));_.Q3(B)})};
GJ[LU]=[Ua];var QO=function(g,r,E){this.innertubeTransportService=g;this.store=r;this.JSC$15511_screenManager=E};
_.f(QO,CH);
QO.prototype.resolveCommand=function(g){var r=this,E,B,w,O,M,u,l,Q,z,k,H,R,A,J,e,C,X,Z,c,h,y,OD,uB;return _.q(function(zS){E=_.n(g,Sz4);if(!E||(B=E.stepIds)==null||!B.length)return zS.return();w=r.store.getState().talkToRecs;O=[];M=[];u=_.U(E.stepIds);for(l=u.next();!l.done;l=u.next())for(Q=l.value,z=void 0,(k=(z=w.stepStates[Q])==null?void 0:z.userQuery)&&M.push({userQuery:k.userQuery,userQueryToken:k.token}),H=void 0,R=(H=w.stepStates[Q])==null?void 0:H.selectionStates,A=_.U(Object.entries(R)),J=
A.next();!J.done;J=A.next())e=J.value,C=_.U(e),X=C.next().value,Z=C.next().value,c=X,h=Z,h.isSelected&&O.push(c);y={selectedChipTokens:O,userQueries:M,submittedStepIds:E.stepIds};OD={browseTalk2recsFormData:y};E.browseEndpoint?(uB=g,_.FI(uB,_.ka,E.browseEndpoint)):E.command&&(uB=E.command);return uB?_.D(zS,_.cK(r.innertubeTransportService,uB,{formData:OD,disableCache:!0}).then(function(jV){(jV==null?0:jV.trackingParams)&&r.JSC$15511_screenManager.graftServerVe(jV==null?void 0:jV.trackingParams)}),
0):zS.return()})};
QO[LU]=[_.Wo,Ua,_.Y8];var zJ=function(g){this.store=g};
_.f(zJ,CH);zJ.prototype.resolveCommand=function(g){var r=this,E;return _.q(function(B){E=_.n(g,SAQ);if(!E||!E.stepId||!E.token)return B.return();r.store.dispatch(onA({stepId:E.stepId,token:E.token,isSelected:!0}));_.Q3(B)})};
zJ[LU]=[Ua];var kO=function(g){this.store=g};
_.f(kO,CH);kO.prototype.resolveCommand=function(g,r){var E=this,B,w,O,M,u;return _.q(function(l){B=_.n(g,OxD);if(!B||!B.stepId||!B.userQueryToken)return l.return();u=(M=(w=r)==null?void 0:(O=w.form)==null?void 0:O.userQuery)!=null?M:"";E.store.dispatch(_.Bs({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:B.stepId,userQueryToken:B.userQueryToken,userQuery:u}}));_.Q3(l)})};
kO[LU]=[Ua];_.o_Z=new _.Vn("TIMELY_ACTIONS_CONTROLLER_TOKEN");var H_=function(g){this.controller=g};
_.f(H_,CH);H_.prototype.resolveCommand=function(g){var r=this,E,B,w,O;return _.q(function(M){E=_.n(g,c1m);if(!E)return M.return();B=E;w=B.id;O=B.isVisible;if(w===void 0||O===void 0)return M.return();var u;(u=r.controller.timelyActionsMap.get(w))==null||u(w,O);_.Q3(M)})};
H_[LU]=[_.o_Z];var G1n=function(){this.timelyActionsMap=new Map};var pe=function(g){this.JSC$15538_commandHandler=g};
_.f(pe,CH);pe.prototype.resolveCommand=function(g){var r=this,E,B,w,O,M;return _.q(function(u){E=_.n(g,_.QA);if(!E)return u.return();O=(B=E.item)==null?void 0:(w=B.notificationTextRenderer)==null?void 0:w.successResponseText;if(!O)return u.return();M=_.vs(O);r.JSC$15538_commandHandler.resolveCommand(M);_.Q3(u)})};
pe[LU]=[_.Er];var YO=function(g,r){this.innertubeTransportService=g;this.JSC$15543_playerApiPromise=r};
_.f(YO,CH);
YO.prototype.resolveCommand=function(g){var r=this,E,B,w,O,M,u,l,Q,z;return _.q(function(k){if(k.nextAddress==1)return _.D(k,r.JSC$15543_playerApiPromise,2);E=k.yieldResult;B=E.getOption("captions","track");w=Object.assign({},_.n(g,_.FFz));(M=(O=E.getVideoData())==null?void 0:O.video_id)?w.externalVideoId=M:_.NX(Error("Ii"));if((u=B)==null?0:u.languageCode)w.languageCode=B.languageCode;if((l=B)==null?0:l.kind)w.kind=B.kind;if((Q=B)==null?0:Q.name)w.name=B.name;z=Object.assign({},g,{getTranscriptEndpoint:w});return _.D(k,
_.cK(r.innertubeTransportService,z),0)})};
YO[LU]=[_.Wo,_.wr];var RN=function(){};
_.f(RN,CH);RN.prototype.resolveCommand=function(g){var r,E,B,w,O,M,u,l;return _.q(function(Q){r=_.n(g,Yhz);if((E=r)==null||!E.paramKeyValuePairs)return Q.return();B=window.location.href;w=_.U(r.paramKeyValuePairs);for(O=w.next();!O.done;O=w.next())M=O.value,M.key&&M.value&&(u={},B=_.La(B,(u[M.key]=M.value,u)));l=_.rM().resolve(_.On);_.S6(l,B);_.Q3(Q)})};var ne=function(g,r){this.JSC$15550_commandHandler=g;this.innertubeTransportService=r};
_.f(ne,CH);
ne.prototype.resolveCommand=function(g,r){var E=this,B,w,O,M,u,l,Q,z,k,H,R,A,J,e,C,X,Z;return _.q(function(c){switch(c.nextAddress){case 1:return(O=(B=r)==null?void 0:(w=B.form)==null?void 0:w.element)&&_.m7(O),M=_.pu().get("hl"),u="",_.qN(c,2),_.D(c,i6Y(M),4);case 4:u=c.yieldResult;_.Ne(c,3);break;case 2:return _.G2(c),O&&_.cm(O),_.tn(Error("Ki"),"ERROR"),c.return();case 3:l=_.n(g,HnA);if(!l)return O&&_.cm(O),c.return();(k=(Q=l.commerceActionConfig)==null?void 0:(z=Q.commandLifeCycleConfig)==null?
void 0:z.onStartCommand)&&E.JSC$15550_commandHandler.resolveCommand(k);return _.D(c,_.cK(E.innertubeTransportService,g,{client_data:{paymentsClientToken:{token:u}}}),5);case 5:(H=c.yieldResult)?(O&&_.cm(O),((e=H)==null?0:e.command)&&E.JSC$15550_commandHandler.resolveCommand(H.command),(Z=(C=l.commerceActionConfig)==null?void 0:(X=C.commandLifeCycleConfig)==null?void 0:X.onSuccessCommand)&&E.JSC$15550_commandHandler.resolveCommand(Z)):(O&&_.cm(O),_.tn(Error("Li")),(J=(R=l.commerceActionConfig)==null?
void 0:(A=R.commandLifeCycleConfig)==null?void 0:A.onFailureCommand)&&E.JSC$15550_commandHandler.resolveCommand(J)),_.Q3(c)}})};
ne[LU]=[_.Er,_.Wo];var P_=function(g,r,E){this.store=g;this.JSC$15566_commandHandler=r;this.innertubeTransportService=E};
_.f(P_,CH);
P_.prototype.resolveCommand=function(g,r){var E=this,B,w,O,M,u,l,Q,z,k;return _.q(function(H){B=_.n(g,pa4);w=B.googlePaymentPayload;B.onStartCommand&&E.JSC$15566_commandHandler.resolveCommand(B.onStartCommand);O=w.encryptedPurchaseParams;M=w.ypcLogWalletAnalyticDataEndpoint;u=B.serializedTransactionFlowLoggingParams;l=w.serializedPaymentsClientParams;Q=B.ypcCujContext;k=hYJ(E.innertubeTransportService,(z=r)==null?void 0:z.form,O,M,u,l,Q);return H.return(k.then(function(R){LBV(r==null?void 0:r.form,
!1);var A=E.store,J=E.JSC$15566_commandHandler,e=R.integratorData;e==null||e===""||R.error!=null?(String(R.error)==="-1"&&B.onDismissCommand?J.resolveCommand(B.onDismissCommand):String(R.error)!=="-1"&&B.onFailureCommand&&J.resolveCommand(B.onFailureCommand),String(R.error)!=="-1"&&String(R.error)!=="132"&&_.tn(Error("Mi"),"ERROR")):(B.googlePaymentEntityKey&&A.dispatch(_.za("commerceAcquisitionClientPayloadEntity",B.googlePaymentEntityKey,{key:B.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:e,
fundsGuaranteeCallbackClientData:R.integratorClientCallbackData}}})),B.onSuccessCommand&&J.resolveCommand(B.onSuccessCommand));_.lq()},function(R){LBV(r==null?void 0:r.form,!1);
_.tn(R,"ERROR");B.onFailureCommand&&E.JSC$15566_commandHandler.resolveCommand(B.onFailureCommand)}))})};
P_[LU]=[Sa,_.Er,_.Wo];var tw=function(g,r){this.JSC$15570_commandHandler=g;this.purchaseManager=r};
_.f(tw,CH);
tw.prototype.resolveCommand=function(g){var r=this,E,B,w,O,M,u,l,Q,z;return _.q(function(k){E=_.n(g,Ykn);((B=E)==null?0:(w=B.commandLifeCycleConfig)==null?0:w.onStartCommand)&&r.JSC$15570_commandHandler.resolveCommand(E.commandLifeCycleConfig.onStartCommand);if(!((O=E)==null?0:(M=O.googlePaymentPurchaseManagerPayload)==null?0:M.securePayloadBytes))return _.tn(Error("Ni"),"ERROR"),k.return();u=ngZ(_.Mz(E.googlePaymentPurchaseManagerPayload.securePayloadBytes));l=_.pu().get("hl");Q=_.iW();HpD(u.serialize(),
l,function(H){Q.resolve(H)},function(H){Q.reject(H)},Q.resolve);
z=Q.promise;return k.return(z.then(function(H){if(H)if(H==null?0:H.errorCode){_.tn(Error("Oi`"+H.errorCode),"ERROR");var R,A;((R=E)==null?0:(A=R.commandLifeCycleConfig)==null?0:A.onFailureCommand)&&r.JSC$15570_commandHandler.resolveCommand(E.commandLifeCycleConfig.onFailureCommand)}else if(H==null?0:H.isCancelled){var J,e;((J=E)==null?0:(e=J.commandLifeCycleConfig)==null?0:e.onCancelCommand)&&r.JSC$15570_commandHandler.resolveCommand(E.commandLifeCycleConfig.onCancelCommand)}else{var C,X;((C=E)==
null?0:(X=C.commandLifeCycleConfig)==null?0:X.onSuccessCommand)&&r.JSC$15570_commandHandler.resolveCommand(E.commandLifeCycleConfig.onSuccessCommand)}},function(H){_.tn(H,"ERROR");
var R,A;((R=E)==null?0:(A=R.commandLifeCycleConfig)==null?0:A.onFailureCommand)&&r.JSC$15570_commandHandler.resolveCommand(E.commandLifeCycleConfig.onFailureCommand)}))})};
tw[LU]=[_.Er,pqw];var QW4=function(g,r){this.JSC$15578_commandHandler=g;this.commandAllowlistOverride=r;var E;this.commandAllowlist=(E=this.commandAllowlistOverride)!=null?E:Lh};
QW4.prototype.handleResponse=function(g,r,E){var B,w=r==null?void 0:(B=r.config)==null?void 0:B.command;if(!w||this.commandAllowlist.some(function(O){return!!_.n(w,O)})){r=void 0;
E!==void 0&&(r={form:{element:E}});g.onResponseReceivedCommand&&this.JSC$15578_commandHandler.resolveCommand(g.onResponseReceivedCommand,r);g.onResponseReceivedAction&&this.JSC$15578_commandHandler.resolveCommand(g.onResponseReceivedAction,r);g.onResponseReceivedEndpoint&&this.JSC$15578_commandHandler.resolveCommand(g.onResponseReceivedEndpoint,r);g.command&&this.JSC$15578_commandHandler.resolveCommand(g.command,r);if(g.onResponseReceivedCommands)for(E=_.U(g.onResponseReceivedCommands),B=E.next();!B.done;B=
E.next())this.JSC$15578_commandHandler.resolveCommand(B.value,r);if(g.onResponseReceivedActions)for(E=_.U(g.onResponseReceivedActions),B=E.next();!B.done;B=E.next())this.JSC$15578_commandHandler.resolveCommand(B.value,r);if(g.onResponseReceivedEndpoints)for(E=_.U(g.onResponseReceivedEndpoints),B=E.next();!B.done;B=E.next())this.JSC$15578_commandHandler.resolveCommand(B.value,r);if(g.actions)for(g=_.U(g.actions),E=g.next();!E.done;E=g.next())this.JSC$15578_commandHandler.resolveCommand(E.value,r)}};
QW4[LU]=[_.Er,_.gM(bel)];var zsI=new _.Vn("INNERTUBE_TOKEN_SERVICE");var k1D=new _.Vn("SCHEDULER_TOKEN");var H_U=function(g){this.scheduler=g;g={};this.tokenMap=(g.app={},g.user={},g)};
H_U.prototype.handleResponse=function(g,r){if(!r)throw Error("Pi");var E;if(g=(E=g.responseContext)==null?void 0:E.innertubeTokenJar){if(g.appTokens){var B,w,O;E=(B=r.innerTubeRequest.context)==null?void 0:(w=B.request)==null?void 0:(O=w.innertubeTokenJar)==null?void 0:O.appTokens;pGI(this,g.appTokens,this.tokenMap.app,E)}if(g.userTokens){var M,u,l;r=(M=r.innerTubeRequest.context)==null?void 0:(u=M.request)==null?void 0:(l=u.innertubeTokenJar)==null?void 0:l.userTokens;pGI(this,g.userTokens,this.tokenMap.user,
r)}}};
H_U.prototype.processContext=function(g){g.request||(g.request={});var r=Object.keys(this.tokenMap.app).length,E=Object.keys(this.tokenMap.user).length;if(r||E)g.request.innertubeTokenJar={},r&&(g.request.innertubeTokenJar.appTokens=[].concat(_.jW(Object.values(this.tokenMap.app).flat()))),E&&(g.request.innertubeTokenJar.userTokens=[].concat(_.jW(Object.values(this.tokenMap.user).flat())))};
var pGI=function(g,r,E,B){r=_.U(r);for(var w=r.next(),O={};!w.done;O={token$jscomp$138:void 0},w=r.next()){O.token$jscomp$138=w.value;if(O.token$jscomp$138.type===void 0)throw new _.Rj("InnerTube token has no type",O.token$jscomp$138);if(O.token$jscomp$138.clearTokens)E[O.token$jscomp$138.type]=[];else if(O.token$jscomp$138.value!==void 0){E[O.token$jscomp$138.type]||(E[O.token$jscomp$138.type]=[]);if(B!==void 0&&B.length){w=_.U(B);for(var M=w.next(),u={};!M.done;u={requestToken:void 0},M=w.next())u.requestToken=
M.value,M=E[O.token$jscomp$138.type].findIndex(function(l){return function(Q){return Q===l.requestToken||(0,_.jn.equals)(Q,l.requestToken)}}(u)),M>-1&&E[O.token$jscomp$138.type].splice(M,1)}E[O.token$jscomp$138.type].push(O.token$jscomp$138);
O.token$jscomp$138.maxAgeSeconds&&Number(O.token$jscomp$138.maxAgeSeconds)>0&&g.scheduler.addLowPriorityJob(function(l){return function(){var Q=E[l.token$jscomp$138.type].indexOf(l.token$jscomp$138);Q>-1&&E[l.token$jscomp$138.type].splice(Q,1)}}(O),Number(O.token$jscomp$138.maxAgeSeconds)*1E3)}else throw new _.Rj("InnerTube token has no value",O.token$jscomp$138);
}};
H_U[LU]=[k1D];var Yom=new _.Vn("LOCAL_INNERTUBE_ROUTER_TOKEN"),Rsn=new _.Vn("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var Fw=function(g){this.serviceMap=g};
Fw.prototype.shouldPreferLocalResponse=function(g,r){return(g=n_T(this,g))?g.shouldPreferLocalResponse(r):!1};
Fw.prototype.localInnertubeResponse=function(g,r){var E=this,B;return _.q(function(w){return(B=n_T(E,g))?w.return(B.localInnertubeResponse(r)):w.return(Promise.reject(Error("Qi")))})};
Fw.prototype.canProvideFallbackResponse=function(g,r){return(g=n_T(this,g))?g.canProvideFallbackResponse(r):!1};
Fw.prototype.localFallbackInnertubeResponse=function(g,r){var E=this,B;return _.q(function(w){return(B=n_T(E,g))?w.return(B.localFallbackInnertubeResponse(r)):w.return(Promise.reject(Error("Qi")))})};
var n_T=function(g,r){r=_.lc(r);return r?(g=g.serviceMap[r])?g:null:null};
Fw[LU]=[Rsn];var Hv=function(){};
Hv.prototype.shouldPreferLocalResponse=function(){return!1};
Hv.prototype.localInnertubeResponse=function(){return _.q(function(g){return g.return(Promise.reject(Error("Ri")))})};
Hv.prototype.canProvideFallbackResponse=function(){return!0};
Hv.prototype.localFallbackInnertubeResponse=function(){var g,r,E;return _.q(function(B){g=s0("CLOSE_POPUP");r={openPopupAction:yUS()};E={actions:[g,r]};return B.return(E)})};var yWP=function(g,r){this.JSC$15628_upliftPromise=g;this.store=r};
_.S=yWP.prototype;_.S.shouldPreferLocalResponse=function(g){var r=g.videoId,E;if(E=r)E=vCA(this.store.getState().entities,g.videoId);return E&&dPB(this.store.getState().entities,r)?dIB(this.store.getState().entities,g.playlistId):!1};
_.S.localInnertubeResponse=function(g){var r=this,E;return _.q(function(B){return(E=r.getPlayerResponse(g))?B.return(Promise.resolve(E)):B.return(Promise.reject(Error("Si")))})};
_.S.canProvideFallbackResponse=function(g){return!!g.videoId};
_.S.localFallbackInnertubeResponse=function(g){var r=this,E;return _.q(function(B){if(B.nextAddress==1)return _.D(B,r.JSC$15628_upliftPromise,2);E=r.getPlayerResponse(g);var w;E?w=B.return(Promise.resolve(E)):w=nf(r.store.getState().entities,g.videoId)?B.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.gz(_.zn("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:QsA()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
B.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.gz(_.zn("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:GdJ()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return w})};
_.S.getPlayerResponse=function(g){return r9A(this.store.getState().entities,g.videoId)};var kI=function(g,r){this.localPlayerService=g;this.localWatchNextService=r};
kI.prototype.shouldPreferLocalResponse=function(g){var r=g.playerRequest;g=g.watchNextRequest;return!!(r&&this.localPlayerService.shouldPreferLocalResponse(r)&&g&&this.localWatchNextService.shouldPreferLocalResponse(g))};
kI.prototype.localInnertubeResponse=function(g){var r=this,E,B,w,O;return _.q(function(M){if(M.nextAddress==1){E=g.playerRequest;B=g.watchNextRequest;if(!E||!B)throw new _.Rj("Missing streaming request",g);return _.D(M,r.localPlayerService.localInnertubeResponse(E),2)}if(M.nextAddress!=3)return w=M.yieldResult,_.D(M,r.localWatchNextService.localInnertubeResponse(B),3);O=M.yieldResult;return M.return({playerResponse:w,watchNextResponse:O})})};
kI.prototype.canProvideFallbackResponse=function(g){var r=g.playerRequest;g=g.watchNextRequest;return!!(r&&this.localPlayerService.canProvideFallbackResponse(r)&&g&&this.localWatchNextService.canProvideFallbackResponse(g))};
kI.prototype.localFallbackInnertubeResponse=function(g){var r=this,E,B,w,O;return _.q(function(M){if(M.nextAddress==1)return E=g.playerRequest,B=g.watchNextRequest,E&&B?_.D(M,r.localPlayerService.localFallbackInnertubeResponse(E),2):M.return(Promise.reject(new _.Rj("Missing streaming request",g)));if(M.nextAddress!=3)return w=M.yieldResult,_.D(M,r.localWatchNextService.localFallbackInnertubeResponse(B),3);O=M.yieldResult;return M.return({playerResponse:w,watchNextResponse:O})})};var GG=function(g){this.JSC$15638_persistentStorePromiseAccessor=g};
GG.prototype.shouldPreferLocalResponse=function(){return!1};
GG.prototype.localInnertubeResponse=function(){return _.q(function(g){return g.return(Promise.reject(Error("Ti")))})};
GG.prototype.canProvideFallbackResponse=function(){return!0};
GG.prototype.localFallbackInnertubeResponse=function(){var g=this,r,E;return _.q(function(B){return B.nextAddress==1?_.D(B,g.JSC$15638_persistentStorePromiseAccessor(),2):B.nextAddress!=3?(r=B.yieldResult)?_.D(B,r.get("service:guide:fallback"),3):B.return(Promise.reject(Error("Ui"))):(E=B.yieldResult)&&_.Bv(E)?B.return(TZl(_.Bv(E))):B.return(Promise.reject(Error("Vi")))})};var pZ=function(){};
pZ.prototype.shouldPreferLocalResponse=function(){return!1};
pZ.prototype.localInnertubeResponse=function(){return _.q(function(g){return g.return(Promise.reject(Error("Wi")))})};
pZ.prototype.canProvideFallbackResponse=function(){return!0};
pZ.prototype.localFallbackInnertubeResponse=function(){var g,r,E;return _.q(function(B){g=s0("CLOSE_POPUP");r={openPopupAction:yUS()};E={actions:[g,r]};return B.return(E)})};var ox=function(){this.urlMap=sWD;this.fallbackCommand=_.oH};
ox.prototype.shouldPreferLocalResponse=function(g){return(g=g.url)?!!fNb(this,g):!1};
ox.prototype.localInnertubeResponse=function(g){var r=this,E;return _.q(function(B){return(E=g.url)?B.return($mI(g,fNb(r,E))):B.return(Promise.reject(Error("Xi")))})};
ox.prototype.canProvideFallbackResponse=function(){return!0};
ox.prototype.localFallbackInnertubeResponse=function(g){var r=this,E,B,w,O,M,u,l;return _.q(function(Q){E=g.url;if(!E)return Q.return($mI(g,r.fallbackCommand));if(B=fNb(r,E))return Q.return($mI(g,B));w=void 0;O=_.lc(E);O==="/watch"&&(M=_.IO(E,"v"))&&(l=(u=_.IO(E,"list"))!=null?u:void 0,w=_.Tn(M,l));w||(w=r.fallbackCommand);return Q.return($mI(g,w))})};
var fNb=function(g,r){if(r)return g.urlMap[_.Xp(r)]},$mI=function(g,r){r&&g.parentTrackingParams&&(r.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:g.parentTrackingParams}},r.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:r})};var Q9=function(g,r,E){this.JSC$15648_upliftPromise=g;this.store=r;this.JSC$15648_persistentStorePromiseAccessor=E};
Q9.prototype.shouldPreferLocalResponse=function(){return!1};
Q9.prototype.localInnertubeResponse=function(){return _.q(function(g){return g.return(Promise.reject(Error("Yi")))})};
Q9.prototype.canProvideFallbackResponse=function(){return!0};
Q9.prototype.localFallbackInnertubeResponse=function(){var g=this;return _.q(function(r){return r.return(jWn(g))})};
var jWn=function(g){var r,E;return _.q(function(B){if(B.nextAddress==1)return _.D(B,E8(g.JSC$15648_upliftPromise,g.store),2);r=B.yieldResult;E={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[vGV(r)]}}}};return B.return(AvT(g,E))})},AvT=function(g,r){var E,B;
return _.q(function(w){if(w.nextAddress==1)return _.D(w,g.JSC$15648_persistentStorePromiseAccessor(),2);if(w.nextAddress!=3)return E=w.yieldResult,_.D(w,wx(E),3);B=w.yieldResult;return w.return({responseContext:{},contents:r,topbar:B})})};var lj=function(g,r,E){this.JSC$15655_upliftPromise=g;this.store=r;this.JSC$15655_persistentStorePromiseAccessor=E};
lj.prototype.shouldPreferLocalResponse=function(g){var r=g.videoId;return r&&vCA(this.store.getState().entities,r)&&dPB(this.store.getState().entities,r)?dIB(this.store.getState().entities,g.playlistId):!1};
lj.prototype.localInnertubeResponse=function(g){var r=this,E,B;return _.q(function(w){if(w.nextAddress==1)return(E=g.videoId)?_.D(w,r.JSC$15655_upliftPromise,2):w.return(Promise.reject(Error("Zi")));if(w.nextAddress!=3)return _.D(w,b_m(r,g,E),3);B=w.yieldResult;return w.return(Jv6(r,B,E))})};
lj.prototype.canProvideFallbackResponse=function(g){return g.videoId?!0:!1};
lj.prototype.localFallbackInnertubeResponse=function(g){var r=this,E,B,w,O;return _.q(function(M){switch(M.nextAddress){case 1:return(E=g.videoId)?_.D(M,r.JSC$15655_upliftPromise,2):M.return(Promise.reject(Error("Zi")));case 2:return _.D(M,b_m(r,g,E),3);case 3:B=M.yieldResult;if(nf(r.store.getState().entities,E)){M.jumpTo(4);break}return _.D(M,E8(r.JSC$15655_upliftPromise,r.store),5);case 5:return w=M.yieldResult,M.return(Pym(B,w));case 4:return vCA(r.store.getState().entities,E)&&dPB(r.store.getState().entities,
E)?M.return(Jv6(r,B,E)):(O={title:_.gz(_.zn("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:QsA()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},M.return(Pym(B,O)))}})};
var b_m=function(g,r,E){var B,w,O,M,u;return _.q(function(l){if(l.nextAddress==1)return B=r.playlistId,w=_.Tn(E,B),_.D(l,g.JSC$15655_persistentStorePromiseAccessor(),2);if(l.nextAddress!=3)return O=l.yieldResult,_.D(l,wx(O),3);M=l.yieldResult;u={responseContext:{},currentVideoEndpoint:w,topbar:M};return l.return(u)})},Jv6=function(g,r,E){if(g=nf(g.store.getState().entities,E)){var B;
E=g.videoEntity;var w,O={title:rz(E.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.E9((B=E.localizedStrings)==null?void 0:B.viewCount),viewCount:_.E9((w=E.localizedStrings)==null?void 0:w.viewCount)}}};E.publishedTimestampMillis&&(O.dateText=_.E9(c9P(new Date(Number(E.publishedTimestampMillis)))));B={videoPrimaryInfoRenderer:O};w=g.videoEntity;g=g.channelEntity;g={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:rz(_.zn("SHOW_MORE",void 0,"Show more")),
showLessText:rz(_.zn("SHOW_LESS",void 0,"Show less")),description:w.formattedDescription,owner:{videoOwnerRenderer:{title:rz(g.title),thumbnail:g.avatar}}}};r.contents={twoColumnWatchNextResults:{results:{results:{contents:[B,g]}}}}}return r},Pym=function(g,r){g.contents={singleColumnWatchNextResults:{results:{results:{contents:[vGV(r)]}}}};
return g};var zG=function(g,r,E){this.JSC$15660_upliftPromise=g;this.store=r;this.JSC$15660_persistentStorePromiseAccessor=E};
zG.prototype.shouldPreferLocalResponse=function(){return!1};
zG.prototype.localInnertubeResponse=function(){return _.q(function(g){return g.return(Promise.reject(Error("$i")))})};
zG.prototype.canProvideFallbackResponse=function(){return!0};
zG.prototype.localFallbackInnertubeResponse=function(){var g=this,r,E,B,w;return _.q(function(O){switch(O.nextAddress){case 1:return _.D(O,g.JSC$15660_persistentStorePromiseAccessor(),2);case 2:return r=O.yieldResult,_.D(O,wx(r),3);case 3:return E=O.yieldResult,B={responseContext:{},topbar:E},_.D(O,g.JSC$15660_upliftPromise,4);case 4:return _.D(O,E8(g.JSC$15660_upliftPromise,g.store),5);case 5:return w=O.yieldResult,B.watchStatus={backgroundPromoRenderer:w},O.return(B)}})};var tuI=new _.Vn("ENDPOINT_MAP");var FyZ=function(){var g=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return g.sequenceMap}}},uyz=function(g,r,E){var B,w=(B=r.config)==null?void 0:B.sequenceStrategy;
if(!w)return E();g.sequenceMap.has(w.sequenceKey)||g.sequenceMap.set(w.sequenceKey,[]);g=g.sequenceMap.get(w.sequenceKey);switch(w.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return esT(g,r,E);case "REQUEST_SEQUENCE_TYPE_REPLACE":return WyT(g,r,E);default:throw new _.Rj("Request could not be sequenced",r);}},esT=function(g,r,E){var B,w,O;
return _.q(function(M){g.length>0?(w=g[g.length-1],B=w.responsePromise.then(function(){return E()})):B=E();
O={request:r,responsePromise:B};g.push(O);Cy6(g,O);return M.return(O.responsePromise)})},WyT=function(g,r,E){E=E();
if(g.length>0)for(var B=_.U(g),w=B.next();!w.done;w=B.next())w.value.responsePromise=E;var O={request:r,responsePromise:E};g.push(O);Cy6(g,O);return Promise.resolve().then(function(){return g.indexOf(O)>0?O.responsePromise.then(function(M){return Object.assign({},M,{sequenceMetaData:{skipProcessing:!0}})}):O.responsePromise})},Cy6=function(g,r){r.responsePromise.then(function(){var E=g.indexOf(r);
E>-1&&g.splice(E,1)})};var KyA=new _.Vn("REQUEST_SEQUENCING");var eQ=function(){};
_.f(eQ,wV);eQ.prototype.getApiPaths=function(){return[]};
eQ.prototype.getExtension=function(g){return _.n(g,$Sm)};
eQ.prototype.JSC$11138_buildRequest=function(g,r){g.recaptchaToken=r.recaptchaToken};
eQ.prototype.getApiUrl=function(){return"/das_captcha"};var W_=function(){};
_.f(W_,wV);W_.prototype.getApiPaths=function(){return kRn};
W_.prototype.getExtension=function(g){return _.n(g,g2T)};
W_.prototype.JSC$11138_buildRequest=function(g,r,E){E=E===void 0?{}:E;r.createBackstagePostParams&&(g.createBackstagePostParams=r.createBackstagePostParams);E.comment_text&&(g.commentText=E.comment_text);if(E.attached_video_id)g.videoAttachment={videoId:E.attached_video_id};else if(E.image_poll_options)g.pollAttachmentData={options:E.image_poll_options};else if(E.poll_options)g.pollAttachment={choices:E.poll_options};else if(E.quiz_options)g.quizAttachmentData={options:E.quiz_options};else if(E.image_blob_id)g.imageAttachment=
{encryptedBlobId:E.image_blob_id},E.source_video_id&&(g.imageAttachment.sourceExternalVideoId=E.source_video_id),E.image_preview_coordinates&&(g.imageAttachment.previewCoordinates=JSON.parse(E.image_preview_coordinates));else if(E.images_data)g.imagesAttachment={imagesData:E.images_data};else if(E.clip_external_video_id!==void 0||E.clip_offset_ms!==void 0||E.clip_duration_ms!==void 0){var B,w,O,M,u;g.clipAttachment={externalVideoId:(O=E.clip_external_video_id)!=null?O:"",offsetMs:(M=(B=E.clip_offset_ms)==
null?void 0:B.toString())!=null?M:"",durationMs:(u=(w=E.clip_duration_ms)==null?void 0:w.toString())!=null?u:""}}else E.shared_post_id&&(g.sharedPostAttachment={postId:E.shared_post_id});E.tagged_video_id&&(g.postCreationData={taggedVideoId:E.tagged_video_id});E.access_restrictions&&(typeof E.access_restrictions==="number"&&(r=E.access_restrictions,g.accessRestrictions={restriction:r!==1&&r===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof E.access_restrictions==="string"&&
(g.accessRestrictionsParams=E.access_restrictions));E.scheduled_publish_time_sec&&(g.scheduledPublishTimeSec=E.scheduled_publish_time_sec.toString())};var Ce=function(){};
_.f(Ce,wV);Ce.prototype.getApiPaths=function(){return flT};
Ce.prototype.getExtension=function(g){return _.n(g,kAA)};
Ce.prototype.JSC$11138_buildRequest=function(g,r,E){E=E===void 0?{}:E;r.decorateMessageParams&&(g.params=r.decorateMessageParams);E.text&&(g.text=E.text)};var Ke=function(){};
_.f(Ke,wV);Ke.prototype.getApiPaths=function(){return iBn};
Ke.prototype.getExtension=function(g){return _.n(g,rXm)};
Ke.prototype.JSC$11138_buildRequest=function(g,r,E){E=E===void 0?{}:E;E.video_id&&(g.videoId=E.video_id)};var xO=function(){};
_.f(xO,wV);xO.prototype.getApiPaths=function(){return ymz};
xO.prototype.getExtension=function(g){return _.n(g,_.Gn)};
xO.prototype.JSC$11138_buildRequest=function(g,r,E){E.suggestions_query&&(g.input=E.suggestions_query)};var aN=function(){};
_.f(aN,wV);aN.prototype.getApiPaths=function(){return boZ};
aN.prototype.getExtension=function(g){return _.n(g,E2U)};
aN.prototype.JSC$11138_buildRequest=function(g,r,E){E.comment_text!==void 0&&(g.commentText=E.comment_text);E.scheduled_publish_time_sec&&(g.scheduledPublishTimeSec=E.scheduled_publish_time_sec.toString());g.updateBackstagePostParams=r.updateBackstagePostParams};var Xw=function(){};
_.f(Xw,wV);Xw.prototype.getApiPaths=function(){return yj};
Xw.prototype.getExtension=function(g){return _.n(g,_.x3)};
Xw.prototype.JSC$11138_buildRequest=function(g,r,E){E.formData&&(g.formData=E.formData);r.token?g.continuation=r.token:r.continuationTokenKey&&(E=_.Zz().getState(),r=_.u1(E.entities,"continuationTokenEntity",r.continuationTokenKey))&&(g.continuation=String(r.continuationToken))};
var xmb=function(){};
_.f(xmb,wV);_.S=xmb.prototype;_.S.getApiPaths=function(){return yj};
_.S.getExtension=function(g){return _.n(g,_.ka)};
_.S.isNavigationCommand=function(){return!0};
_.S.JSC$11145_getStoreKey=function(g){if((g=this.getExtension(g))&&g.browseId){var r={browseId:g.browseId};g.browseEndpointContextSupportedConfigs&&(r.browseEndpointContextSupportedConfigs=JSON.stringify(g.browseEndpointContextSupportedConfigs));g.params&&(r.params=g.params);g.query&&(r.query=g.query);return _.iG("browse",r)}};
_.S.JSC$11138_buildRequest=function(g,r,E){r.browseId&&(g.browseId=r.browseId);r.params&&(g.params=r.params);r.query&&(g.query=r.query);E.formData?g.formData=E.formData:r.formData&&(g.formData=r.formData);r.browseId==="FEsubscriptions"&&_.pu().getFlag(155)&&(g.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");r.browseId==="SPaccount_playback"&&(E=_.pu(),g.formData||(g.formData={}),g.formData.accountSettingsFormData={flagCaptionsDefaultOff:E.getFlag(65),flagAutoCaptionsDefaultOn:E.getFlag(66),
flagDisableInlinePreview:E.getFlag(186),flagAudioDescriptionDefaultOn:E.getFlag(198)});if(r.browseId==="FEwhat_to_watch"){E=_.pu();var B=E.getFlag(196);E.getFlag(197)&&(g.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:B}}})}r.browseId==="FEwhat_to_watch"&&(r=_.pu().getFlag(186),g.inlineSettingStatus=r?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.S.getRequestConfig=function(g,r){r=r===void 0?{}:r;var E={};if(g=this.JSC$11145_getStoreKey(g,r))E.storeStrategy={storeKey:g,disableCache:r.disableCache};_.Y("web_log_browse_ticks_ks")||(E.requestTick="br_s",E.responseTick="br_r");return E};var NY=function(){};
_.f(NY,wV);NY.prototype.getApiPaths=function(){return llA};
NY.prototype.getExtension=function(g){return _.n(g,Jq6)};
NY.prototype.JSC$11138_buildRequest=function(g,r,E){g.legacyYoutubeChannelUsername=E.legacyYouTubeChannelUsername||"";g.legacyYoutubeChannelPassword=E.legacyYouTubeChannelPassword||""};var IN=function(){};
_.f(IN,wV);IN.prototype.getApiPaths=function(){return Hon};
IN.prototype.getExtension=function(g){return _.n(g,uiT)};
IN.prototype.JSC$11138_buildRequest=function(g,r,E){E.recaptcha_response_token&&(g.recaptchaResponseToken=E.recaptcha_response_token);E.channel_id&&(g.channelId=E.channel_id)};var mm=function(){};
_.f(mm,wV);mm.prototype.getApiPaths=function(){return J0m};
mm.prototype.getExtension=function(g){return _.n(g,z$n)};
mm.prototype.JSC$11138_buildRequest=function(g,r,E){r.externalChannelId&&(g.externalChannelId=r.externalChannelId);E.handle&&(g.handleUpdate={handle:E.handle},r.handleEditSource&&(g.handleUpdate.handleEditSource=r.handleEditSource))};var c_=function(){};
_.f(c_,wV);c_.prototype.getApiPaths=function(){return eLZ};
c_.prototype.getExtension=function(g){return _.n(g,atw)};
c_.prototype.JSC$11138_buildRequest=function(g,r,E){r.request&&(g.channelId=r.request.channelId);var B;if(E==null?0:(B=E.uploadDefaults)==null?0:B.emojiReactionSet)g.uploadDefaultsRequest||(g.uploadDefaultsRequest={}),g.uploadDefaultsRequest.emojiReactionSet=E.uploadDefaults.emojiReactionSet};var iM=function(){};
_.f(iM,wV);iM.prototype.getApiPaths=function(){return KX6};
iM.prototype.getExtension=function(g){return _.n(g,ltD)};
iM.prototype.JSC$11138_buildRequest=function(g,r,E){r.externalChannelId&&(g.externalChannelId=r.externalChannelId);r.channelHandleEntityKey&&(g.channelHandleEntityKey=r.channelHandleEntityKey);r.handleEditSource&&(g.handleEditSource=r.handleEditSource);E.handle?g.handle=E.handle:E.name&&(g.name=E.name)};var Le=function(){};
_.f(Le,wV);Le.prototype.getApiPaths=function(){return GRm};
Le.prototype.getExtension=function(g){return _.n(g,r9n)};
Le.prototype.JSC$11138_buildRequest=function(g,r){r.actions?g.actions=r.actions:r.action&&(g.actions=[r.action])};var VO=function(){};
_.f(VO,wV);VO.prototype.getApiPaths=function(){return QfI};
VO.prototype.getExtension=function(g){return _.n(g,_.x3)};
VO.prototype.JSC$11138_buildRequest=function(g,r){r.token&&(g.continuation=r.token)};var hw=function(){};
_.f(hw,wV);hw.prototype.getApiPaths=function(){return m9n};
hw.prototype.getExtension=function(g){return _.n(g,_.x3)};
hw.prototype.JSC$11138_buildRequest=function(g,r){g.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";r.token&&(g.fetchCommentsParams={continuation:r.token})};var ZA=function(){};
_.f(ZA,wV);ZA.prototype.getApiPaths=function(){return YCw};
ZA.prototype.getExtension=function(g){return _.n(g,gTm)};
ZA.prototype.JSC$11138_buildRequest=function(g,r,E){E=E===void 0?{}:E;r.createReplyParams&&(g.createReplyParams=r.createReplyParams);r.commentText&&(g.commentText=_.Vp(r.commentText));E.comment_text&&(g.commentText=E.comment_text);E.image_blob_id&&(g.imageAttachment={encryptedBlobId:E.image_blob_id});E.botguard_response&&(g.botguardResponse=E.botguard_response)};
_.hx.Object.defineProperties(ZA.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var yO=function(){};
_.f(yO,wV);yO.prototype.getApiPaths=function(){return RGU};
yO.prototype.getExtension=function(g){return _.n(g,_.Tnz)};
yO.prototype.JSC$11138_buildRequest=function(g,r,E){E=E===void 0?{}:E;r.createCommentParams&&(g.createCommentParams=r.createCommentParams);r.commentText&&(g.commentText=_.Vp(r.commentText));r.videoPositionMention&&(g.videoPositionMention=r.videoPositionMention);r.sources&&(g.sources=r.sources);E.comment_text&&(g.commentText=E.comment_text);E.attached_video_id?g.videoAttachment={videoId:E.attached_video_id}:E.poll_options?g.pollAttachment={choices:E.poll_options}:E.image_blob_id?g.imageAttachment=
{encryptedBlobId:E.image_blob_id}:E.shared_post_id&&(g.sharedPostAttachment={postId:E.shared_post_id});E.access_restrictions&&typeof E.access_restrictions==="number"&&(r=E.access_restrictions,g.accessRestrictions={restriction:r!==1&&r===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});E.botguard_response&&(g.botguardResponse=E.botguard_response)};
_.hx.Object.defineProperties(yO.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var v_=function(){};
_.f(v_,wV);v_.prototype.getApiPaths=function(){return Ps4};
v_.prototype.getExtension=function(g){return _.n(g,ByD)};
v_.prototype.JSC$11138_buildRequest=function(g,r,E){r.commentText&&(g.replyText=_.Vp(r.commentText));E.comment_text&&(g.replyText=E.comment_text);g.updateReplyParams=r.updateReplyParams};
_.hx.Object.defineProperties(v_.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var dp=function(){};
_.f(dp,wV);dp.prototype.getApiPaths=function(){return ttw};
dp.prototype.getExtension=function(g){return _.n(g,ETT)};
dp.prototype.JSC$11138_buildRequest=function(g,r,E){r.commentText&&(g.commentText=_.Vp(r.commentText));E.comment_text&&(g.commentText=E.comment_text);g.updateCommentParams=r.updateCommentParams};
_.hx.Object.defineProperties(dp.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var TJ=function(){};
_.f(TJ,wV);TJ.prototype.getApiPaths=function(){return FXb};
TJ.prototype.getExtension=function(g){return _.n(g,Wqn)};
TJ.prototype.JSC$11138_buildRequest=function(g,r){r.settings&&(g.settings=r.settings)};var gq=function(){};
_.f(gq,wV);gq.prototype.getApiPaths=function(){return CNn};
gq.prototype.getExtension=function(g){return _.n(g,DEn)};
gq.prototype.JSC$11138_buildRequest=function(g,r){r.channelCreationToken&&(g.channelCreationToken=r.channelCreationToken);r.source&&(g.source=r.source)};var rq=function(){};
_.f(rq,wV);rq.prototype.getApiPaths=function(){return pPT};
rq.prototype.getExtension=function(g){return _.n(g,QU6)};
rq.prototype.JSC$11138_buildRequest=function(g,r,E){E=E===void 0?{}:E;if(E.name&&(E.given_name||E.family_name))g=new _.Rj("channel creation cannot set both GAIA and YouTube names",r),_.tn(g);else{if(r.zeroStepChannelCreationParams){if(!E.comment_text){g=new _.Rj("zero_step_create_comment_params but no zero_step_texts",r);_.tn(g);return}g.zeroStepChannelCreationParams=r.zeroStepChannelCreationParams;g.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(g.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
E.comment_text,E.botguard_response&&(g.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=E.botguard_response))}g.channelCreationToken=r.channelCreationToken;E.given_name&&(g.givenName=E.given_name);E.family_name&&(g.familyName=E.family_name);r.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(g.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(E.name||E.handle||E.avatar_url||E.encryptedBlobId||E.isNameChanged!==void 0||E.isHandleChanged!==void 0||E.isDefaultProfilePhoto!==
void 0||E.obakeImageSource)g.overrideChannelCreationParams={},E.name&&(g.overrideChannelCreationParams.name=E.name),E.handle&&(g.overrideChannelCreationParams.handle=E.handle),E.avatar_url&&(g.overrideChannelCreationParams.avatarUrl=E.avatar_url),E.encryptedBlobId&&(g.overrideChannelCreationParams.blobEncryptionId=E.encryptedBlobId),E.enableIdentityForAllChannelCreationDialog&&(E.encryptedBlobId?g.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
E.isDefaultProfilePhoto!==void 0&&(g.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=E.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),E.isNameChanged!==void 0&&(g.overrideChannelCreationParams.identityForAllChannelCreationNameTag=E.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),E.isHandleChanged!==
void 0&&(g.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=E.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),E.obakeImageSource&&(g.overrideChannelCreationParams.obakeImageSourceType=E.obakeImageSource))}};var Ei=function(){};
_.f(Ei,wV);Ei.prototype.getApiPaths=function(g){return(g=this.getExtension(g))&&g.status==="DISLIKE"?bBn:g&&g.status==="INDIFFERENT"?o8n:r0b};
Ei.prototype.getExtension=function(g){return _.n(g,_.Nq)};
Ei.prototype.JSC$11138_buildRequest=function(g,r){r.target&&(g.target=r.target);if(r=this.getParams(r))g.params=r};
Ei.prototype.getParams=function(g){switch(g==null?void 0:g.status){case "DISLIKE":return g.dislikeParams;case "INDIFFERENT":return g.removeLikeParams;default:return g==null?void 0:g.likeParams}};var BC=function(){};
_.f(BC,wV);BC.prototype.getApiPaths=function(){return sYU};
BC.prototype.getExtension=function(g){return _.n(g,q7D)};
BC.prototype.JSC$11138_buildRequest=function(g,r){r.settingItemId&&(g.settingItemId=r.settingItemId);r.stringValue!=null&&r.stringValue!==void 0?g.newValue={stringValue:r.stringValue}:r.intValue?g.newValue={intValue:r.intValue}:r.boolValue!==null&&r.boolValue!==void 0?g.newValue={boolValue:r.boolValue}:(g=new _.Rj("Unknown value type for SetSettingEndpoint.",r),_.tn(g))};var wq=function(){};
_.f(wq,wV);wq.prototype.getApiPaths=function(){return $V4};
wq.prototype.getExtension=function(g){return _.n(g,j1D)||void 0};
wq.prototype.JSC$11138_buildRequest=function(g,r,E){E=E===void 0?{}:E;r.channelIds&&(g.channelIds=r.channelIds);r.siloName&&(g.siloName=r.siloName);r.params&&(g.params=r.params);E.botguardResponse&&(g.botguardResponse=E.botguardResponse);E.feature&&(g.clientFeature=E.feature)};
_.hx.Object.defineProperties(wq.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var S$=function(){};
_.f(S$,wV);S$.prototype.getApiPaths=function(){return A0T};
S$.prototype.getExtension=function(g){return _.n(g,ud6)||void 0};
S$.prototype.JSC$11138_buildRequest=function(g,r){r.channelIds&&(g.channelIds=r.channelIds);r.siloName&&(g.siloName=r.siloName);r.params&&(g.params=r.params)};
_.hx.Object.defineProperties(S$.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Oi=function(g){this.shareClientParamsProvider=g};
_.f(Oi,wV);Oi.prototype.getApiPaths=function(){return O6B};
Oi.prototype.getExtension=function(g){return _.n(g,Wh6)||_.n(g,_.Cvn)||_.n(g,eX6)};
Oi.prototype.JSC$11138_buildRequest=function(g,r){r.serializedShareEntity&&(g.serializedSharedEntity=r.serializedShareEntity);if(r.clientParamIdentifier){var E;if((E=this.shareClientParamsProvider)==null?0:E.clientParams.has(r.clientParamIdentifier)){E=this.shareClientParamsProvider;r=r.clientParamIdentifier;var B=E.clientParams.get(r);B&&E.clientParams.delete(r);g.clientParams=B}}};
Oi[LU]=[T16];var Ui=function(){};
_.f(Ui,wV);Ui.prototype.getApiPaths=function(){return M2n};
Ui.prototype.getExtension=function(g){return _.n(g,XgZ)};
Ui.prototype.JSC$11138_buildRequest=function(g,r){r.params&&(g.params=r.params)};var Mi=function(){};
_.f(Mi,wV);Mi.prototype.getApiPaths=function(){return Jmn};
Mi.prototype.getExtension=function(g){return _.n(g,KFA)};
Mi.prototype.JSC$11138_buildRequest=function(g,r){r.dismissal&&(g.items=[r.dismissal])};
_.hx.Object.defineProperties(Mi.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var qi=function(){};
_.f(qi,wV);qi.prototype.getApiPaths=function(){return TVZ};
qi.prototype.getExtension=function(g){return _.n(g,_.AQ)||void 0};
qi.prototype.JSC$11138_buildRequest=function(g,r,E){g.feedbackTokens=[];r.feedbackToken&&g.feedbackTokens.push(r.feedbackToken);if(r=r.cpn||E.cpn)g.feedbackContext={cpn:r};g.isFeedbackTokenUnencrypted=!!E.is_feedback_token_unencrypted;g.shouldMerge=!1;E.extra_feedback_tokens&&(g.shouldMerge=!0,g.feedbackTokens=g.feedbackTokens.concat(E.extra_feedback_tokens))};
_.hx.Object.defineProperties(qi.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var u7=function(){};
_.f(u7,wV);u7.prototype.getApiPaths=function(){return TVZ};
u7.prototype.getExtension=function(g){return _.n(g,_.Gn)};
u7.prototype.JSC$11138_buildRequest=function(g,r,E){E.feedback_tokens&&(g.feedbackTokens=E.feedback_tokens,g.shouldMerge=!0)};
_.hx.Object.defineProperties(u7.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var l7=function(){};
_.f(l7,wV);l7.prototype.getApiPaths=function(){return TVZ};
l7.prototype.getExtension=function(g){return _.n(g,UTD)};
l7.prototype.JSC$11138_buildRequest=function(g,r){r.undoToken&&(g.feedbackTokens=[r.undoToken]);r.isUndoTokenUnencrypted&&(g.isFeedbackTokenUnencrypted=r.isUndoTokenUnencrypted)};
_.hx.Object.defineProperties(l7.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Dm=function(){};
_.f(Dm,wV);Dm.prototype.getApiPaths=function(){return xVD};
Dm.prototype.getExtension=function(g){return _.n(g,eaU)};
Dm.prototype.JSC$11138_buildRequest=function(g,r){r.nextEndpoint&&_.n(r.nextEndpoint,_.II)?g.nextEndpoint={urlEndpoint:_.n(r.nextEndpoint,_.II)}:r.nextEndpoint&&_.n(r.nextEndpoint,_.LM)&&(g.nextEndpoint={watchEndpoint:_.n(r.nextEndpoint,_.LM)});r.setRacy&&(g.setRacy=r.setRacy);r.setControvercy&&(g.setControvercy=r.setControvercy)};var oS=function(g){this.JSC$15841_storeWithEntities=g};
_.f(oS,wV);oS.prototype.getApiPaths=function(){return t2Z};
oS.prototype.getExtension=function(g){return _.n(g,w2b)};
oS.prototype.JSC$11138_buildRequest=function(g,r){r.flowId&&(g.flowId=r.flowId);r.targetId&&(g.targetId=r.targetId);r.continuation&&(g.continuation=r.continuation);var E=r.flowStateEntityKey;if(r.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&E&&this.JSC$15841_storeWithEntities){var B;if(r=(B=this.JSC$15841_storeWithEntities.getState())==null?void 0:B.entities)if(B=_.S9(E).entityType,B=_.u1(r,B,E))g.flowState=B,g.flowStateEntityKey=E}};
_.hx.Object.defineProperties(oS.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
oS[LU]=[Sa];var aN6=function(){};
_.f(aN6,wV);_.S=aN6.prototype;_.S.getApiPaths=function(){return d9w};
_.S.JSC$11145_getStoreKey=function(){return _.iG("guide")};
_.S.getRequestConfig=function(){var g=this.JSC$11145_getStoreKey(),r;g&&(r={storeStrategy:{storeKey:g}});return r};
_.S.isNavigationCommand=function(){return!0};
_.S.getExtension=function(g){return _.n(g,_.Gn)};
_.S.JSC$11138_buildRequest=function(g){g.fetchLiveState=!0};var G0=function(){};
_.f(G0,wV);G0.prototype.getApiPaths=function(){return D9w};
G0.prototype.getExtension=function(g){return _.n(g,L46)};
G0.prototype.JSC$11138_buildRequest=function(){};var Qz=function(){};
_.f(Qz,wV);Qz.prototype.getApiPaths=function(){return olw};
Qz.prototype.getExtension=function(g){return _.n(g,vvD)};
Qz.prototype.JSC$11138_buildRequest=function(){};var z0=function(){};
_.f(z0,wV);z0.prototype.getApiPaths=function(){return U9n};
z0.prototype.getExtension=function(g){return _.n(g,_.x3)};
z0.prototype.JSC$11138_buildRequest=function(g,r){r.token&&(g.continuation=r.token);var E,B;g==null||(E=g.context)==null||(B=E.user)==null||delete B.onBehalfOfUser};
z0.prototype.getRequestConfig=function(g){var r={},E;if(((E=this.getExtension(g))==null?void 0:E.sessionIndex)!==void 0){var B;r={authStrategy:{sessionIndex:(B=this.getExtension(g))==null?void 0:B.sessionIndex}}}return r};var kW=function(){};
_.f(kW,wV);kW.prototype.JSC$11138_getRequest=function(g){var r=this.getExtension(g),E=g="";if(r==null?0:r.popup)g="true";if(r==null?0:r.disableSignout)E="true";r={};return{input:"/getAccountSwitcherEndpoint",requestShell:mx("/getAccountSwitcherEndpoint","GET",(r["X-YouTube-Delegation-Context"]=_.Ca("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),r["X-YouTube-Account-Switcher-Popup"]=g,r["X-YouTube-Account-Switcher-Disable-Signout"]=E,r)),innerTubeRequest:{}}};
kW.prototype.getApiPaths=function(){return[]};
kW.prototype.getExtension=function(g){return _.n(g,_.fAL)};
kW.prototype.JSC$11138_buildRequest=function(){};var HC=function(){};
_.f(HC,wV);HC.prototype.JSC$11138_getRequest=function(g){var r="/cross_account_channel_transfer";(g=this.getExtension(g))&&(r=p3P(r,{target_session:g.targetSessionIndex,source_rapt:g.sourceRapt,rapt:g.targetRapt}));return{input:r,requestShell:mx(r,"GET"),innerTubeRequest:{}}};
HC.prototype.getApiPaths=function(){return[]};
HC.prototype.getExtension=function(g){return _.n(g,tam)};
HC.prototype.JSC$11138_buildRequest=function(){};var pX=function(){};
_.f(pX,wV);pX.prototype.getApiPaths=function(){return FtZ};
pX.prototype.isNavigationCommand=function(){return!0};
pX.prototype.getExtension=function(g){return _.n(g,_.Gn)};
pX.prototype.JSC$11138_buildRequest=function(g){var r=_.pu().get("gsml","");r&&(g.safetyModeLockerObfuscatedGaiaId=r);g.userInterfaceTheme=_.bF(!0);_.JO()?g.deviceTheme="DEVICE_THEME_SELECTED":_.zLJ()?g.deviceTheme="DEVICE_THEME_SUPPORTED":g.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var YW=function(){};
_.f(YW,wV);YW.prototype.getApiPaths=function(){return U9n};
YW.prototype.getExtension=function(g){return _.n(g,Fen)};
YW.prototype.JSC$11138_buildRequest=function(g,r){if(r&&r.requestType&&(g.requestType=r.requestType,r.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||r.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var E=r.nextUrl;E&&(_.RUt(E)||v0(E))&&(g.nextNavendpoint={urlEndpoint:{url:E}})}r&&r.channelSwitcherQuery&&(g.channelSwitcherQuery=r.channelSwitcherQuery);r&&r.triggerChannelCreation&&(g.triggerChannelCreation=r.triggerChannelCreation);var B;if(r==null?0:(B=r.contentOwnerConfig)==
null?0:B.externalContentOwnerId)g.contentOwnerConfig=r.contentOwnerConfig;g.callCircumstance=r&&r.requestType&&r.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var w,O;r=g==null?void 0:(w=g.context)==null?void 0:(O=w.user)==null?void 0:O.onBehalfOfUser;if(r!==void 0){g.obfuscatedSelectedGaiaId=r;var M,u;g==null||(M=g.context)==null||(u=M.user)==null||delete u.onBehalfOfUser}var l,Q;if(w=g==null?void 0:(l=g.context)==null?void 0:(Q=l.user)==null?
void 0:Q.serializedDelegationContext)g.selectedSerializedDelegationContext=w};var RS=function(){};
_.f(RS,wV);RS.prototype.getApiPaths=function(){return Ltw};
RS.prototype.getExtension=function(g){return _.n(g,AQD)};
RS.prototype.JSC$11138_buildRequest=function(g,r){r.profileOwnerExternalChannelId&&(g.profileOwnerExternalChannelId=r.profileOwnerExternalChannelId);r.profileCardContext&&(g.profileCardContext=r.profileCardContext)};var nX=function(){};
_.f(nX,wV);nX.prototype.getApiPaths=function(){return qCA};
nX.prototype.getExtension=function(g){return _.n(g,Khb)};
nX.prototype.JSC$11138_buildRequest=function(g,r){r.params&&(g.params=r.params)};var si=function(){};
_.f(si,wV);si.prototype.getApiPaths=function(){return HBw};
si.prototype.getExtension=function(g){return _.n(g,_.v0I)};
si.prototype.JSC$11138_buildRequest=function(g,r){if(r=r.createBroadcastRequest)g.useMasks=r.useMasks,g.broadcastType=r.broadcastType,g.broadcastSource=r.broadcastSource,g.broadcastMetadata=r.broadcastMetadata,g.broadcastMetadataMask=r.broadcastMetadataMask,g.videoMetadata=r.videoMetadata,g.videoMetadataMask=r.videoMetadataMask,g.liveChatSettingsUpdate=r.liveChatSettingsUpdate,g.liveChatSettingsUpdateMask=r.liveChatSettingsUpdateMask,g.cloneVideoId=r.cloneVideoId,g.cloneWithOverrides=r.cloneWithOverrides,
g.targetEntity=r.targetEntity,g.scheduledRedirectMetadata=r.scheduledRedirectMetadata};var fX=function(){};
_.f(fX,wV);fX.prototype.getApiPaths=function(){return nlI};
fX.prototype.getExtension=function(g){return _.n(g,LCw)};
fX.prototype.JSC$11138_buildRequest=function(g,r,E){E=E===void 0?{}:E;r.params&&(g.params=r.params);E.questionText&&(g.questionText=E.questionText);E.optionText&&E.optionText.length>0&&(g.optionText=E.optionText)};var $W=function(){};
_.f($W,wV);$W.prototype.getApiPaths=function(){return $9T};
$W.prototype.getExtension=function(g){return _.n(g,ceD)};
$W.prototype.JSC$11138_buildRequest=function(g,r){r.params&&(g.params=r.params)};var j$=function(){};
_.f(j$,wV);j$.prototype.getApiPaths=function(){return x9T};
j$.prototype.getExtension=function(g){return _.n(g,X2A)};
j$.prototype.JSC$11138_buildRequest=function(g,r){r.params&&(g.params=r.params)};var AN=function(){};
_.f(AN,wV);AN.prototype.getApiPaths=function(){return XPD};
AN.prototype.getExtension=function(g){return _.n(g,N9m)};
AN.prototype.JSC$11138_buildRequest=function(g,r,E){r.params&&(g.params=r.params);r.continuation&&(g.continuation=r.continuation);E.currentPlayerState&&E.currentPlayerState.playerOffsetMs&&(g.currentPlayerState={playerOffsetMs:E.currentPlayerState.playerOffsetMs.toString()})};var b7=function(){};
_.f(b7,wV);b7.prototype.getApiPaths=function(){return NVI};
b7.prototype.getExtension=function(g){return _.n(g,afw)};
b7.prototype.JSC$11138_buildRequest=function(g,r,E){r.params&&(g.params=r.params);E.continuation&&(g.continuation=E.continuation);"hidden"in E&&(g.webClientInfo={isDocumentHidden:E.hidden});E.isInvalidationTimeoutRequest&&(g.isInvalidationTimeoutRequest=E.isInvalidationTimeoutRequest);E.invalidationPayload&&(r=xnT(_.Mz(dW(E.invalidationPayload))),g.invalidationPayloadLastPublishAtUsec=bR(r,2));E.reloadActionPanel&&(g.reloadActionPanel=E.reloadActionPanel);E.fullReload&&(g.fullReload=E.fullReload);
E.currentPlayerState&&(g.currentPlayerState=E.currentPlayerState)};var JN=function(){};
_.f(JN,wV);JN.prototype.getApiPaths=function(){return E8D};
JN.prototype.getExtension=function(g){return _.n(g,icA)};
JN.prototype.JSC$11138_buildRequest=function(g,r){g.params=r.params};var PC=function(){};
_.f(PC,wV);PC.prototype.getApiPaths=function(){return aln};
PC.prototype.getExtension=function(g){return _.n(g,T8Z)};
PC.prototype.JSC$11138_buildRequest=function(g,r){r.params&&(g.params=r.params)};var tN=function(){};
_.f(tN,wV);tN.prototype.getApiPaths=function(){return IlT};
tN.prototype.getExtension=function(g){return _.n(g,gCD)};
tN.prototype.JSC$11138_buildRequest=function(g,r){r.params&&(g.params=r.params)};var FB=function(){};
_.f(FB,wV);FB.prototype.getApiPaths=function(){return BND};
FB.prototype.getExtension=function(g){return _.n(g,Vw4)};
FB.prototype.JSC$11138_buildRequest=function(g,r){r.params&&(g.params=r.params)};var e$=function(){};
_.f(e$,wV);e$.prototype.getApiPaths=function(){return S5b};
e$.prototype.getExtension=function(g){return _.n(g,hgn)};
e$.prototype.JSC$11138_buildRequest=function(g,r){r.params&&(g.params=r.params)};var WC=function(){};
_.f(WC,wV);WC.prototype.getApiPaths=function(){return GpD};
WC.prototype.getExtension=function(g){return _.n(g,Xjn)};
WC.prototype.JSC$11138_buildRequest=function(g,r){r.params&&(g.params=r.params)};var CX=function(){};
_.f(CX,wV);CX.prototype.getApiPaths=function(){return RLw};
CX.prototype.getExtension=function(g){return _.n(g,_.ZcA)};
CX.prototype.JSC$11138_buildRequest=function(g,r,E){E=E===void 0?{}:E;r.params&&(g.params=r.params);E.client_message_id&&(g.clientMessageId=E.client_message_id);E.recaptcha_token&&(g.recaptchaToken=E.recaptcha_token);E.rich_message&&E.rich_message.text_segments?(r=E.rich_message.text_segments.map(function(B){var w={};B.text&&(w.text=B.text);B.emoji_id&&(w.emojiId=B.emoji_id);return w}),g.richMessage={textSegments:r}):E.message&&(g.message=E.message);
E.currentPlayerState&&(g.currentPlayerState=E.currentPlayerState)};var KX=function(){};
_.f(KX,wV);KX.prototype.getApiPaths=function(){return n8b};
KX.prototype.getExtension=function(g){return _.n(g,yeD)};
KX.prototype.JSC$11138_buildRequest=function(g,r){r.params&&(g.params=r.params)};var xW=function(){};
_.f(xW,wV);xW.prototype.getApiPaths=function(){return jYI};
xW.prototype.getExtension=function(g){return _.n(g,dnn)};
xW.prototype.JSC$11138_buildRequest=function(g,r,E){r.isUserInitiated&&(g.isUserInitiated=r.isUserInitiated);r.initiationSource&&(g.initiationSource=r.initiationSource);E.locationInfo&&(g.context.client.locationInfo=E.locationInfo)};var aS=function(){};
_.f(aS,wV);aS.prototype.getApiPaths=function(){return wY6};
aS.prototype.getExtension=function(g){return _.n(g,dcw)};
aS.prototype.JSC$11138_buildRequest=function(g,r,E){r.metadataUpdateRequest&&(r=r.metadataUpdateRequest,g.encryptedVideoId=r.encryptedVideoId,r.liveChat&&(r=r.liveChat,g.liveChat||(g.liveChat={}),r.performAsExternalChannelId&&(g.liveChat.performAsExternalChannelId=r.performAsExternalChannelId),r.source&&(g.liveChat.source=r.source)));var B;if(E==null?0:(B=E.liveChat)==null?0:B.liveChatSettings)g.liveChat||(g.liveChat={}),E=E.liveChat.liveChatSettings,g.liveChat.newLiveChatSettings=E,g.liveChat.newLiveChatSettingsMask||
(g.liveChat.newLiveChatSettingsMask={}),E.emojiReactionSet&&(g.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var XB=function(){};
_.f(XB,wV);XB.prototype.getApiPaths=function(){return Csm};
XB.prototype.getExtension=function(g){return _.n(g,_.lcA)};
XB.prototype.JSC$11138_buildRequest=function(g,r,E){E.continuation?g.continuation=E.continuation:r.videoId&&(g.videoId=r.videoId);E.clientParams&&(g.clientParams=E.clientParams)};var Ni=function(){};
_.f(Ni,wV);Ni.prototype.getApiPaths=function(){return m9n};
Ni.prototype.getExtension=function(g){return _.n(g,_.bw)};
Ni.prototype.JSC$11138_buildRequest=function(g,r){g.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";g.fetchCommentsParams={};r.videoId&&(g.fetchCommentsParams.encryptedVideoId=r.videoId);r.postId&&(g.fetchCommentsParams.postId=r.postId);r.externalChannelId&&(g.fetchCommentsParams.externalChannelId=r.externalChannelId);r.linkedCommentId&&(g.fetchCommentsParams.linkedCommentId=r.linkedCommentId);(0,_.jn.isEmpty)(g.fetchCommentsParams)&&delete g.fetchCommentsParams};var IS=function(){};
_.f(IS,wV);IS.prototype.getApiPaths=function(){return yj};
IS.prototype.JSC$11138_buildRequest=function(g){g.browseId="FEnotifications_inbox"};
IS.prototype.getExtension=function(g){return _.n(g,_.Gn)};var mf=function(){};
_.f(mf,wV);mf.prototype.getApiPaths=function(){return m9n};
mf.prototype.JSC$11138_buildRequest=function(g,r){r.signal==="GET_NOTIFICATIONS_MENU"&&(g.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");r.ctoken&&(g.ctoken=r.ctoken)};
var XGU=function(){};
_.f(XGU,mf);XGU.prototype.getExtension=function(g){return _.n(g,_.Gn)};
var NOb=function(){};
_.f(NOb,mf);NOb.prototype.getExtension=function(g){return _.n(g,P6n)};var cC=function(){};
_.f(cC,wV);cC.prototype.getApiPaths=function(){return ZBT};
cC.prototype.getExtension=function(g){return _.n(g,_.Gn)};
cC.prototype.JSC$11138_buildRequest=function(){};var i7=function(){};
_.f(i7,wV);i7.prototype.getApiPaths=function(){return Oom};
i7.prototype.getExtension=function(g){return _.n(g,OYT)||void 0};
i7.prototype.JSC$11138_buildRequest=function(g,r){r.params&&(g.params=r.params);r.secondaryParams&&(g.secondaryParams=r.secondaryParams)};var LX=function(){};
_.f(LX,wV);LX.prototype.getApiPaths=function(){return UVm};
LX.prototype.getExtension=function(g){return _.n(g,x4T)};
LX.prototype.JSC$11138_buildRequest=function(g,r){r.undo&&(g.undo=r.undo);r.serializedOptOut&&(g.serializedOptOut=r.serializedOptOut);r.serializedRecordInteractionsRequest&&(g.serializedRecordInteractionsRequest=r.serializedRecordInteractionsRequest)};var Vz=function(){};
_.f(Vz,wV);Vz.prototype.getApiPaths=function(){return uo6};
Vz.prototype.getExtension=function(g){return _.n(g,aCT)};
Vz.prototype.JSC$11138_buildRequest=function(g,r){r.serializedInteractionsRequest&&(g.serializedRecordNotificationInteractionsRequest=r.serializedInteractionsRequest)};var hN=function(){};
_.f(hN,wV);hN.prototype.getApiPaths=function(){return UIJ};
hN.prototype.getExtension=function(g){return _.n(g,FmA)};
hN.prototype.JSC$11138_buildRequest=function(g,r,E){r=r===void 0?{}:r;E=E===void 0?{}:E;r.videoId?g.videoId=r.videoId:r.playlistId&&(g.playlistId=r.playlistId);var B,w=(B=r.offlineWebClientEligibility)!=null?B:E.offlineWebClientEligibility;w&&(g.offlineWebClientEligibility=w);var O;if(B=(O=r.preferredFormatType)!=null?O:E.preferredFormatType)g.preferredFormatType=B;var M;if(O=(M=r.lastOfflineQualitySettingsSavedMs)!=null?M:E.lastOfflineQualitySettingsSavedMs)g.lastOfflineQualitySettingsSavedMs=O;
r.params&&(g.params=r.params)};var Zm=function(){};
_.f(Zm,wV);Zm.prototype.getApiPaths=function(){return LY};
Zm.prototype.getExtension=function(g){return _.n(g,_.x3)};
Zm.prototype.JSC$11138_buildRequest=function(g,r,E){E=E===void 0?{}:E;r.token&&(g.continuation=r.token);E.formData&&(g.formData=E.formData)};var yz=function(){};
_.f(yz,wV);yz.prototype.getApiPaths=function(){return LY};
yz.prototype.getExtension=function(g){return _.n(g,LTD)};
yz.prototype.JSC$11138_buildRequest=function(g,r,E){E=E===void 0?{}:E;g.continuation=E.continuation};var vC=function(){};
_.f(vC,wV);vC.prototype.getApiPaths=function(){return LY};
vC.prototype.getExtension=function(g){return _.n(g,_.ja)};
vC.prototype.JSC$11138_buildRequest=function(g,r){var E,B=r.panelIdentifier||((E=r.identifier)==null?void 0:E.tag);B&&(g.panelId=B);var w;if((w=r.globalConfiguration)==null?0:w.params){var O;g.params=(O=r.globalConfiguration)==null?void 0:O.params}};
_.hx.Object.defineProperties(vC.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var dq=function(){};
_.f(dq,wV);dq.prototype.getApiPaths=function(){return LY};
dq.prototype.getExtension=function(g){return _.n(g,J9D)};
dq.prototype.JSC$11138_buildRequest=function(g,r){r.panelLoadingStrategy&&BwX(g,r.panelLoadingStrategy)};var T0=function(){};
_.f(T0,wV);T0.prototype.getApiPaths=function(){return LY};
T0.prototype.getExtension=function(g){return _.n(g,yhD)};
T0.prototype.JSC$11138_buildRequest=function(g,r){r.loadingStrategy&&BwX(g,r.loadingStrategy)};var gE=function(){};
_.f(gE,wV);gE.prototype.getApiPaths=function(){return LY};
gE.prototype.getExtension=function(g){return _.n(g,_.ko)};
gE.prototype.JSC$11138_buildRequest=function(g,r){r.panelLoadingStrategy&&BwX(g,r.panelLoadingStrategy)};var rE=function(){};
_.f(rE,wV);rE.prototype.getApiPaths=function(){return LY};
rE.prototype.getExtension=function(g){return _.n(g,v7U)};
rE.prototype.JSC$11138_buildRequest=function(g,r){var E,B=(E=r.contentSourcePanelIdentifier)==null?void 0:E.tag;B&&(g.panelId=B);var w;if((w=r.globalConfiguration)==null?0:w.params){var O;g.params=(O=r.globalConfiguration)==null?void 0:O.params}};var Ec=function(){};
_.f(Ec,wV);Ec.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
Ec.prototype.getExtension=function(g){return _.n(g,d4Z)};
Ec.prototype.JSC$11138_buildRequest=function(g,r){r.params&&(g.params=r.params)};var B1=function(){};
_.f(B1,wV);B1.prototype.getApiPaths=function(){return WXZ};
B1.prototype.getExtension=function(g){return _.n(g,r2n)};
B1.prototype.JSC$11138_buildRequest=function(g,r){r.externalChannelId&&(g.externalChannelId=r.externalChannelId);r.superChatAction&&(g.superChatAction=r.superChatAction);r.superStickersAction&&(g.superStickersAction=r.superStickersAction)};var wE=function(){};
_.f(wE,wV);wE.prototype.getApiPaths=function(){return eGn};
wE.prototype.getExtension=function(g){return _.n(g,iin)||_.n(g,WmA)};
wE.prototype.JSC$11138_buildRequest=function(g,r){r.videoIds?g.videoIds=r.videoIds:r.videoId&&(g.videoIds=[r.videoId]);r.playlistId&&(g.playlistId=r.playlistId);r.params&&(g.params=r.params);g.excludeWatchLater=!1};var SC=function(){};
_.f(SC,wV);SC.prototype.getApiPaths=function(){return sfb};
SC.prototype.getExtension=function(g){return _.n(g,_.CY)};
SC.prototype.JSC$11138_buildRequest=function(g,r,E){E.create_playlist_title?g.title=E.create_playlist_title:r.title&&(g.title=r.title);if(E.create_playlist_privacy_status&&typeof E.create_playlist_privacy_status==="number"){a:{var B=E.create_playlist_privacy_status;if(B!==0){if(B===1){B="PUBLIC";break a}if(B===2){B="UNLISTED";break a}}B="PRIVATE"}g.privacyStatus=B}else r.privacyStatus&&(g.privacyStatus=r.privacyStatus);E.create_playlist_description&&(g.description=E.create_playlist_description);r.videoIds&&
(g.videoIds=r.videoIds);r.params&&(g.params=r.params);r.sourcePlaylistId&&(g.sourcePlaylistId=r.sourcePlaylistId)};var Oc=function(){};
_.f(Oc,wV);Oc.prototype.getApiPaths=function(){return jfw};
Oc.prototype.getExtension=function(g){return _.n(g,wyZ)};
Oc.prototype.JSC$11138_buildRequest=function(g,r){g.playlistId=r.playlistId};var Uc=function(){};
_.f(Uc,wV);Uc.prototype.getApiPaths=function(){return cmD};
Uc.prototype.getExtension=function(g){return _.n(g,ts4)};
Uc.prototype.JSC$11138_buildRequest=function(g,r){r.playlistId&&(g.playlistId=r.playlistId);r.params&&(g.params=r.params)};var Mg=function(){};
_.f(Mg,wV);Mg.prototype.getApiPaths=function(){return q5I};
Mg.prototype.getExtension=function(g){return _.n(g,_.J9)||void 0};
Mg.prototype.JSC$11138_buildRequest=function(g,r){r.actions&&(g.actions=r.actions);r.params&&(g.params=r.params);r.playlistId&&(g.playlistId=r.playlistId)};var qg=function(){};
_.f(qg,wV);_.S=qg.prototype;_.S.getApiPaths=function(){return lWw};
_.S.getExtension=function(g){return _.n(g,_.sP)};
_.S.JSC$11138_buildRequest=function(g,r){r.videoId&&(g.playerRequest={videoId:r.videoId},r.playerParams&&(g.playerRequest.params=r.playerParams),r.racyCheckOk&&(g.playerRequest.racyCheckOk=!!r.racyCheckOk),r.contentCheckOk&&(g.playerRequest.contentCheckOk=!!r.contentCheckOk));r.params&&(g.params=r.params);r.inputType&&(g.inputType=r.inputType);g.disablePlayerResponse=!0};
_.S.getRequestConfig=function(g){var r;(g=this.JSC$11145_getStoreKey(g))&&(r={storeStrategy:{storeKey:g}});_.Y("web_log_reels_ticks")&&(r=r||{},r.requestTick="r_wrs",r.responseTick="r_wrr");return r};
_.S.JSC$11145_getStoreKey=function(g){g=this.getExtension(g);if(_.Y("shorts_controller_retrieve_seedless_sequence_v2")){if((g==null?void 0:g.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.iG("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if(_.Y("web_shorts_prefetch_service_enabled")&&g!=null&&g.videoId){var r={videoId:g.videoId};g.params&&(r.params=g.params);return _.iG("reel_item_watch",r)}};var uX=function(){};
_.f(uX,wV);_.S=uX.prototype;_.S.getApiPaths=function(){return DVz};
_.S.getExtension=function(g){return _.n(g,_.sP)};
_.S.JSC$11138_buildRequest=function(g,r,E){E=E===void 0?{}:E;g.sequenceParams=r.sequenceParams;var B;((B=E)==null?0:B.contentPlaybackContext)&&_.Y("web_shorts_prefetch_service_enabled")&&(g.playbackContext={contentPlaybackContext:E.contentPlaybackContext})};
_.S.JSC$11145_getStoreKey=function(g){if(_.Y("web_enable_delay_shorts_sequence_call")||_.Y("shorts_controller_retrieve_seedless_sequence_v2"))if(g=this.getExtension(g),g==null?0:g.sequenceParams)return _.iG("reel_watch_sequence",{sequenceParams:g.sequenceParams})};
_.S.getRequestConfig=function(g){g=this.JSC$11145_getStoreKey(g);var r;g&&(r={storeStrategy:{storeKey:g}});_.Y("reel_watch_sequence_request_log_ticks")&&(r=r||{},r.requestTick="r_wsrs",r.responseTick="r_wsrr",r.processorTick="r_wsrp");return r};
var lX=function(){};
_.f(lX,wV);lX.prototype.getApiPaths=function(){return DVz};
lX.prototype.getExtension=function(g){return _.n(g,_.x3)};
lX.prototype.JSC$11138_buildRequest=function(g,r,E){E=E===void 0?{}:E;r.token&&(g.continuation=r.token);var B;((B=E)==null?0:B.contentPlaybackContext)&&_.Y("web_shorts_prefetch_service_enabled")&&(g.playbackContext={contentPlaybackContext:E.contentPlaybackContext})};
lX.prototype.getRequestConfig=function(g){g=this.JSC$11145_getStoreKey(g);var r;g&&(r={storeStrategy:{storeKey:g}});_.Y("reel_watch_sequence_request_log_ticks")&&(r=r||{},r.requestTick="r_wsrs",r.responseTick="r_wsrr",r.processorTick="r_wsrp");return r};var D6=function(){};
_.f(D6,wV);D6.prototype.getApiPaths=function(){return PNU};
D6.prototype.getExtension=function(g){return _.n(g,_.B9D)};
D6.prototype.JSC$11138_buildRequest=function(g,r,E){E=E===void 0?{}:E;r.flagAction&&(g.action=r.flagAction);r.flagRequestType&&(g.flagRequestType=r.flagRequestType);r.additionalDetailCheckboxChecked&&(g.additionalDetailCheckboxChecked=r.additionalDetailCheckboxChecked);r.legalCheckboxChecked&&(g.legalCheckboxChecked=r.legalCheckboxChecked);r={};E.flag_issue_type!==void 0&&(r.issue=E.flag_issue_type);E.flag_affiliation!==void 0&&(r.affiliation=E.flag_affiliation);E.flag_full_name&&(r.fullName=E.flag_full_name);
Object.keys(r).length&&(g.legalReportDetails=r);if(E.flag_description||E.text)g.userComments=E.flag_description||E.text;r={};E.minutes!==void 0&&E.seconds!==void 0&&(r.minutes=E.minutes,r.seconds=E.seconds);E.vss_id&&(r.vssId=E.vss_id);Object.keys(r).length&&(g.videoReportDetails=r);r={};E.video_ids&&(r.videoIds=E.video_ids);E.impersonated_channel_url&&(r.impersonatedChannelUrl=E.impersonated_channel_url);Object.keys(r).length&&(g.channelAbuseReportDetails=r)};
_.hx.Object.defineProperties(D6.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var oq=function(){};
_.f(oq,wV);oq.prototype.getApiPaths=function(){return Ktn};
oq.prototype.getExtension=function(g){return _.n(g,JeI)};
oq.prototype.JSC$11138_buildRequest=function(g,r){r.blockedForKidsContent&&(g.blockedForKidsContent=r.blockedForKidsContent)};var GI=function(){};
_.f(GI,wV);GI.prototype.getApiPaths=function(){return QY4};
GI.prototype.getExtension=function(g){return _.n(g,epJ)};
GI.prototype.JSC$11138_buildRequest=function(g,r,E){g.params=r.params;E.impersonated_channel_url&&(g.impersonatedChannelUrl=E.impersonated_channel_url)};var QQ=function(){};
_.f(QQ,wV);QQ.prototype.getApiPaths=function(){return g8U};
QQ.prototype.getExtension=function(g){return _.n(g,_.P8w)};
QQ.prototype.JSC$11138_buildRequest=function(g,r){r.items&&(g.items=r.items);r.kidGaiaId&&(g.kidGaiaId=r.kidGaiaId)};var zI=function(){};
_.f(zI,wV);zI.prototype.getApiPaths=function(){return WtA};
zI.prototype.getExtension=function(g){return _.n(g,_.mPb)};
zI.prototype.JSC$11138_buildRequest=function(g,r){r.params&&(g.params=r.params);r.targetId&&(g.targetId=r.targetId)};var kH=function(){};
_.f(kH,wV);kH.prototype.getApiPaths=function(){return pY6};
kH.prototype.getExtension=function(g){return _.n(g,t5z)};
kH.prototype.JSC$11138_buildRequest=function(g,r){r.externalVideoId&&(g.externalVideoId=r.externalVideoId);r.query&&(g.query=r.query);r.sourceTimelines&&(g.sourceTimelines=r.sourceTimelines)};var H1=function(){};
_.f(H1,wV);H1.prototype.getApiPaths=function(){return Y56};
H1.prototype.getExtension=function(g){return _.n(g,_.x3)||void 0};
H1.prototype.JSC$11138_buildRequest=function(g,r){r.token&&(g.continuation=r.token)};
_.INn=function(){};
_.f(_.INn,wV);_.S=_.INn.prototype;_.S.getApiPaths=function(){return Y56};
_.S.getExtension=function(g){return _.n(g,_.Ya)||void 0};
_.S.isNavigationCommand=function(){return!0};
_.S.JSC$11145_getStoreKey=function(g,r){r=r===void 0?{}:r;if(!r.disableCache&&(g=this.getExtension(g))&&g.query)return r={query:g.query},g.params&&(r.params=g.params),_.iG("search",r)};
_.S.JSC$11138_buildRequest=function(g,r,E){r.query&&(g.query=r.query);r.params&&(g.params=r.params);if(!_.Y("web_forward_suggest_stats_killswitch")){var B=_.n(r,fCw);B&&(g.suggestStats=B)}var w;!_.Y("kevlar_searchbox_stats_killswitch")&&((w=E.tempData)==null?0:w.gs_l)&&!_.n(r,fCw)&&(g.webSearchboxStatsUrl="/search?oq="+(E.tempData.oq||"")+"&gs_l="+E.tempData.gs_l);var O;if((O=E.tempData)==null?0:O.entityMid)r=g.suggestionSearchParams||{},r.entityMid=E.tempData.entityMid,g.suggestionSearchParams=r;
_.Y("enable_desktop_vdcbg_components")&&(E=_.pu().getFlag(186),g.inlineSettingStatus=E?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.S.getRequestConfig=function(g,r){r=r===void 0?{}:r;g=this.JSC$11145_getStoreKey(g,r);var E;g&&(E={storeStrategy:{storeKey:g}});_.Y("web_log_search_ticks_ks")||(E=E||{},E.requestTick="sr_s",E.responseTick="sr_r");return E};var pg=function(){};
_.f(pg,wV);pg.prototype.getApiPaths=function(){return V2n};
pg.prototype.getExtension=function(g){return _.n(g,z0z)};
pg.prototype.JSC$11138_buildRequest=function(g,r){r.serializedGetSharingProviderDataParams&&(g.serializedGetSharingProviderDataParams=r.serializedGetSharingProviderDataParams)};var YH=function(){};
_.f(YH,wV);YH.prototype.getApiPaths=function(){return hGw};
YH.prototype.getExtension=function(g){return _.n(g,dfb)};
YH.prototype.JSC$11138_buildRequest=function(g,r){r.endpoint&&(g.endpoint=r.endpoint);r.action&&(g.action=r.action)};var Rq=function(){};
_.f(Rq,wV);Rq.prototype.getApiPaths=function(){return Amw};
Rq.prototype.getExtension=function(g){return _.n(g,S7T)};
Rq.prototype.JSC$11138_buildRequest=function(g,r){g.videoId=r.videoId;r.scheduledRedirectMetadataSourceVideoId&&(g.scheduledRedirectMetadata={sourceVideoId:r.scheduledRedirectMetadataSourceVideoId})};var sc=function(){};
_.f(sc,wV);sc.prototype.getApiPaths=function(){return fW4};
sc.prototype.getExtension=function(g){return _.n(g,_.gQw)};
sc.prototype.JSC$11138_buildRequest=function(g,r){g.params=r.params;g.correctionText=r.correctionText};var fg=function(){};
_.f(fg,wV);fg.prototype.getApiPaths=function(){return wnc};
fg.prototype.getExtension=function(g){return _.n(g,_.FFz)};
fg.prototype.JSC$11138_buildRequest=function(g,r){r.params&&(g.params=r.params);g.searchQuery=r.searchQuery;g.languageCode=r.languageCode;g.kind=r.kind;g.name=r.name;g.externalVideoId=r.externalVideoId};var $H=function(){};
_.f($H,wV);$H.prototype.getApiPaths=function(){return XYZ};
$H.prototype.getExtension=function(g){return _.n(g,GmT)};
$H.prototype.JSC$11138_buildRequest=function(g,r){r.params&&(g.params=r.params)};var jC=function(g){this.JSC$16116_storeWithEntities=g};
_.f(jC,wV);jC.prototype.getApiPaths=function(){return zG6};
jC.prototype.getExtension=function(g){return _.n(g,ztn)||_.n(g,HnA)};
jC.prototype.JSC$11138_buildRequest=function(g,r,E){E.client_data&&(g.clientData=E.client_data);if(r.commerceActionConfig){var B=r.commerceActionConfig;r=B.actionId;B=B.commerceActionParams;r&&(g.actionId=r);B&&(g.commerceActionParams=B)}else{var w=r.actionId,O=r.commerceActionParams;E=r.entityKeys;w&&(g.actionId=w);O&&(g.commerceActionParams=O);var M;r=(B=this.JSC$16116_storeWithEntities)==null?void 0:(M=B.getState())==null?void 0:M.entities;if(E&&r){B=[];M=_.U(E);for(E=M.next();!E.done;E=M.next())if(w=
E.value,E=_.S9(w).entityType,w=_.u1(r,E,w))O={},B.push((O[E]=w,O));g.entityMutationPayloads=B}}};
jC.prototype.getRequestConfig=function(g){var r,E=(r=_.n(g,ztn))==null?void 0:r.requestSequenceType;if(E&&g.clickTrackingParams&&E!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:g.clickTrackingParams,sequenceType:E}}};
jC[LU]=[Sa];var Ao=function(){};
_.f(Ao,wV);Ao.prototype.getApiPaths=function(){return NNw};
Ao.prototype.getExtension=function(g){return _.n(g,_.KYn)};
Ao.prototype.JSC$11138_buildRequest=function(g,r){r.feedbackData&&(g.feedbackData=r.feedbackData);r.params&&(g.itemParams=r.params)};
_.hx.Object.defineProperties(Ao.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var bX=function(){};
_.f(bX,wV);bX.prototype.getApiPaths=function(){return IWI};
bX.prototype.getExtension=function(g){return _.n(g,xJD)};
bX.prototype.JSC$11138_buildRequest=function(g,r,E){E.payments_payload&&(g.paymentsPayload=E.payments_payload);E.offer_params&&(g.offerParams=E.offer_params);r.transactionParams&&(g.transactionParams=r.transactionParams)};var Jo=function(){};
_.f(Jo,wV);Jo.prototype.getApiPaths=function(){return mVn};
Jo.prototype.getExtension=function(g){return _.n(g,_.ai4)};
Jo.prototype.JSC$11138_buildRequest=function(g,r,E){E=E===void 0?{}:E;r.buybucketParams&&(g.buybucketData={params:r.buybucketParams},r.stickerParams?g.buybucketData.stickerParams=r.stickerParams:(E.rich_chat_message?g.buybucketData.richChatMessage=E.rich_chat_message:E.chat_message_text&&(g.buybucketData.chatMessageText=E.chat_message_text),E.purchase_price_micros&&(g.buybucketData.purchasePriceMicros=E.purchase_price_micros.toString())));r.donationAmountMicros&&(g.tipAmountMicros=r.donationAmountMicros,
r.tipParams&&(g.tipParams=r.tipParams));r.offerParams&&(g.offerParams=r.offerParams);r.productData&&(g.productData=r.productData);r.transactionParams&&(g.transactionParams=r.transactionParams)};var P1=function(){};
_.f(P1,wV);P1.prototype.getApiPaths=function(){return c0D};
P1.prototype.getExtension=function(g){return _.n(g,IiD)};
P1.prototype.JSC$11138_buildRequest=function(g,r){r.updateFopParams&&(g.updateFopParams=r.updateFopParams)};var to=function(){};
_.f(to,wV);to.prototype.getApiPaths=function(){return io4};
to.prototype.getExtension=function(g){return _.n(g,_.g0)};
to.prototype.JSC$11138_buildRequest=function(g,r){r.couponCode&&(g.couponCode=r.couponCode);r.params&&(g.itemParams=r.params)};var FF=function(){};
_.f(FF,wV);FF.prototype.getApiPaths=function(){return LXA};
FF.prototype.getExtension=function(g){return _.n(g,_.kmT)};
FF.prototype.JSC$11138_buildRequest=function(g,r,E){E=E===void 0?{}:E;r.params&&(g.params=r.params);E.ctk&&(g.clientToken=E.ctk)};var eC=function(g){this.JSC$16151_storeWithEntities=g};
_.f(eC,wV);eC.prototype.getApiPaths=function(){return Vtz};
eC.prototype.getExtension=function(g){return _.n(g,_.xT)};
eC.prototype.JSC$11138_buildRequest=function(g,r,E){E.purchase_price_micros&&(g.productData={pdgData:{purchasePriceMicros:E.purchase_price_micros.toString()}},E.rich_chat_message&&(g.productData.pdgData.richChatMessage=E.rich_chat_message),E.currency_code&&(g.productData.pdgData.currencyCode=E.currency_code));r.transactionParams&&(g.transactionParams=r.transactionParams);r.clientLocationContext&&(g.clientLocationContext=r.clientLocationContext);E.payments_payload&&(g.paymentsPayload=E.payments_payload);
E.funds_guarantee_callback_client_data&&(g.fundsGuaranteeCallbackClientData=E.funds_guarantee_callback_client_data);var B,w;E=(B=this.JSC$16151_storeWithEntities)==null?void 0:(w=B.getState())==null?void 0:w.entities;if(r.entityKeys&&E){B=[];r=_.U(r.entityKeys);for(w=r.next();!w.done;w=r.next()){var O=w.value;w=_.S9(O).entityType;if(O=_.u1(E,w,O)){var M={};B.push((M[w]=O,M))}}g.entityMutationPayloads=B}};
eC[LU]=[Sa];var W1=function(){};
_.f(W1,wV);W1.prototype.getApiPaths=function(){return hL6};
W1.prototype.getExtension=function(g){return _.n(g,Xan)};
W1.prototype.JSC$11138_buildRequest=function(g,r,E){E=E===void 0?{}:E;E.backend_analytics&&(g.serializedBackendAnalyticsEvent=E.backend_analytics);r.offerParams&&(g.offerParams=r.offerParams)};var Cg=function(){};
_.f(Cg,wV);Cg.prototype.getApiPaths=function(){return io4};
Cg.prototype.getExtension=function(g){return _.n(g,VXc)};
Cg.prototype.JSC$11138_buildRequest=function(g,r){r.params&&(g.itemParams=r.params)};var Kg=function(){};
_.f(Kg,wV);Kg.prototype.getApiPaths=function(){return ZoZ};
Kg.prototype.getExtension=function(g){return _.n(g,_.sHZ)};
Kg.prototype.JSC$11138_buildRequest=function(g,r,E){E.resume_time_ms&&(g.resumeTimeMs=E.resume_time_ms);r.pauseParams&&(g.pauseParams=r.pauseParams)};var xH=function(){};
_.f(xH,wV);xH.prototype.getApiPaths=function(){return y0Z};
xH.prototype.getExtension=function(g){return _.n(g,_.NTw)};
xH.prototype.JSC$11138_buildRequest=function(g,r,E){E=E===void 0?{}:E;E.c&&(g.redeemCode=E.c);E.rd&&(g.riskData=E.rd);E.ctk&&(g.clientToken=E.ctk)};var aq=function(){};
_.f(aq,wV);aq.prototype.getApiPaths=function(){return v86};
aq.prototype.getExtension=function(g){return _.n(g,_.fin)};
aq.prototype.JSC$11138_buildRequest=function(g,r){r.resumeParams&&(g.resumeParams=r.resumeParams)};var XF=function(g,r){this.clientName=g;this.defaultExpirationDelayMs=r};
XF.prototype.put=function(g,r){var E=this,B;return _.q(function(w){B=Object.assign({},r.data);B.key=g;B.clientName=E.clientName;B.expireTimestampMs===void 0&&(B.expireTimestampMs=(Math.round((0,_.g2)())+E.defaultExpirationDelayMs).toString());return w.return(E.putInternal(g,B))})};
XF[LU]=[z3,rvZ];var mmU=function(){XF.apply(this,arguments);this.JSC$16181_responseStore=new Map};
_.f(mmU,XF);_.S=mmU.prototype;_.S.get=function(g){var r=this;return _.q(function(E){return E.return(Bh(r,g))})};
_.S.putInternal=function(g,r){var E=this,B,w,O;return _.q(function(M){B=E.defaultExpirationDelayMs;r.expireTimestampMs&&(B=Number(r.expireTimestampMs)-Math.round((0,_.g2)()),w=_.wM("mweb_override_response_store_expiration_ms"),w>0&&w<B&&(B=w));O=setTimeout(function(){E.remove(g)},B);
E.JSC$16181_responseStore.set(g,{entryData:r,timer:O});_.Q3(M)})};
_.S.remove=function(g){var r=this;return _.q(function(E){cvZ(r,g);_.Q3(E)})};
_.S.removeAll=function(){var g=this;return _.q(function(r){g.JSC$16181_responseStore.forEach(function(E){clearTimeout(E.timer)});
g.JSC$16181_responseStore.clear();_.Q3(r)})};
_.S.has=function(g){return!!this.JSC$16181_responseStore.get(g)};
_.S.getKeys=function(){return this.JSC$16181_responseStore.keys()};
var Bh=function(g,r){if(g=g.JSC$16181_responseStore.get(r))return new _.En(g.entryData)},cvZ=function(g,r){var E=g.JSC$16181_responseStore.get(r);
E&&(clearTimeout(E.timer),g.JSC$16181_responseStore.delete(r))};var wzl;var U3L=function(g,r,E){XF.call(this,g,r);this.token=E};
_.f(U3L,XF);_.S=U3L.prototype;_.S.get=function(g){var r=this,E,B;return _.q(function(w){return w.nextAddress==1?_.D(w,Ost(r.token),2):w.nextAddress!=3?(E=w.yieldResult,_.D(w,E.get("ResponseStore",[g,r.clientName]),3)):(B=w.yieldResult)?w.return(new _.En(B)):w.return(void 0)})};
_.S.putInternal=function(g,r){var E=this,B;return _.q(function(w){if(w.nextAddress==1)return _.D(w,Ost(E.token),2);B=w.yieldResult;return _.D(w,B.put("ResponseStore",r),0)})};
_.S.remove=function(g){var r=this,E;return _.q(function(B){if(B.nextAddress==1)return _.D(B,Ost(r.token),2);E=B.yieldResult;return B.return(E.delete("ResponseStore",[g,r.clientName]))})};
_.S.removeAll=function(){var g=this,r;return _.q(function(E){if(E.nextAddress==1)return _.D(E,Ost(g.token),2);r=E.yieldResult;return _.D(E,nRw(r,IDBKeyRange.only(g.clientName)),0)})};
_.S.has=function(){throw Error("aj");};_.Ng=new _.Vn("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var i_D=function(g){var r;this.stateTagsData=(r=g.responseContext)==null?void 0:r.stateTags},LyD=function(g){var r;
return((r=g.stateTagsData)==null?void 0:r.stateTagsModified)||[]};var VuD;VuD=function(g){this.JSC$16194_responseStore=g};
_.xI=function(g,r,E){if(!_.Y("state_tags_killswitch")){var B=new i_D(r);if(LyD(B).length>0){var w=g.JSC$16194_responseStore.getKeys();w=_.U(w);for(var O=w.next();!O.done;O=w.next()){O=O.value;var M=Bh(g.JSC$16194_responseStore,O);if(M){var u=_.Bv(M);a:{var l=void 0;M=LyD(B);u=((l=(new i_D(u)).stateTagsData)==null?void 0:l.relevantStateTags)||[];l=_.U(u);for(u=l.next();!u.done;u=l.next())if(u=u.value,u.stateTag!=null&&M.includes(u.stateTag)&&u.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){M=
!0;break a}M=!1}M&&cvZ(g.JSC$16194_responseStore,O)}}}}var Q;B=(Q=r.responseContext)==null?void 0:Q.maxAgeSeconds;E&&B&&Number(B)>0&&(r=Og(r,B),g.JSC$16194_responseStore.put(E,new _.En(r)))};
VuD.prototype.handleResponse=function(g,r){if(!r)throw Error("bj");var E,B;r=(E=r.config)==null?void 0:(B=E.storeStrategy)==null?void 0:B.storeKey;_.xI(this,g,r)};
VuD[LU]=[_.rI];_.zdV=new _.Vn("STORE_RESPONSE_PROCESSOR_TOKEN");var hsw=function(g){this.JSC$16197_responseStore=g};
hsw.prototype.handleResponse=function(g,r){if(r.input.match(_.yp(DVz))){var E;if(g==null?0:(E=g.entries)==null?0:E.length)for(g=_.U(g.entries),r=g.next();!r.done;r=g.next()){E=r.value.command;var B=void 0;r=(B=_.n(E,_.sP))==null?void 0:B.unserializedPrefetchData;if(!E||!r)break;B=(new qg).JSC$11145_getStoreKey(E);var w=_.n(r,j46),O=void 0,M=void 0,u=void 0,l=_.wM("web_shorts_prefetch_service_ttl_seconds")>0?_.wM("web_shorts_prefetch_service_ttl_seconds"):Number((u=(O=w)==null?void 0:(M=O.responseContext)==
null?void 0:M.maxAgeSeconds)!=null?u:3600);B&&l>0&&(w=Og(w,l),this.JSC$16197_responseStore.put(B,new _.En(w)));E=(new q9).JSC$11145_getStoreKey(E);r=_.n(r,uPA);O=w=B=void 0;M=_.wM("web_shorts_prefetch_service_ttl_seconds")>0?_.wM("web_shorts_prefetch_service_ttl_seconds"):Number((O=(B=r)==null?void 0:(w=B.responseContext)==null?void 0:w.maxAgeSeconds)!=null?O:3600);E&&M>0&&(r=Og(r,M),this.JSC$16197_responseStore.put(E,new _.En(r)))}}};
hsw[LU]=[_.rI];var Z_m=function(g){this.innertubeTransportService=g};
Z_m[LU]=[_.Wo];var yvn=new _.Vn("SUBMIT_API_SERVICE_TOKEN");var Iq=function(){this.scheduler=_.s8()},v_I;
Iq.prototype.pause=function(){throw Error("cj");};
Iq.prototype.resume=function(){throw Error("cj");};
Iq.prototype.queue=function(g){var r=this,E=_.iW(),B=_.fC(this.scheduler,function(){try{var w;if(_.G$.instance)var O=_.G$.instance;else{var M=new _.Rj("Error: Unexpected uninitialized CommandHandler.");_.tn(M);O=void 0}(w=O)==null||w.resolveCommand(g.command);E.resolve()}catch(u){E.reject(u)}});
E.promise.thenCatch(function(w){w instanceof _.Iz&&r.scheduler.cancelJob(B)});
return E.promise};
Iq.prototype.queueAll=function(g){var r=new Map;g=_.U(g);for(var E=g.next();!E.done;E=g.next())E=E.value,r.set(E.id,this.queue(E));return r};var TOw=function(g,r){var E=this;this.taskModel=g;this.onTaskCancelledCallback=r;this.resolver=_.iW();g=g.proto.prefetchConfig;if(!g)throw Error("dj");if(!g.prefetchAction)throw Error("ej");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(B){B instanceof _.Iz&&(dmZ(E,E.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),E.onTaskCancelledCallback(E.taskModel.id,E.jobId),E.tick("pcc"));
throw B;});
this.timerName=this.taskModel.id;_.tg(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},gcD=function(g){switch(g.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},dmZ=function(g,r){_.Pk({prefetchInfo:{cancellationReason:r}},g.timerName)};
TOw.prototype.tick=function(g){_.F4(g,void 0,this.timerName)};var c1=function(){var g=this;this.scheduler=_.s8();this.maxInflightTasks=_.wM("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.wM("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new L$b;this.onTaskCancelled=function(r,E){E&&g.scheduler.cancelJob(E);rtv(g,r);ml(g,3)}},Ecz=function(){c1.instance||(c1.instance=new c1);
return c1.instance};
c1.prototype.pause=function(){this.prefetchCoordinatorState=0};
c1.prototype.resume=function(){ml(this,0)};
c1.prototype.queue=function(g){g=Bl4(this,g);ml(this,1);return g};
c1.prototype.queueAll=function(g){var r=new Map;g=_.U(g);for(var E=g.next();!E.done;E=g.next())E=E.value,r.set(E.id,Bl4(this,E));ml(this,1);return r};
var Bl4=function(g,r){var E=g.allPrefetchTasks.get(r.id);if(E)return E.cancellablePromise;try{var B=new TOw(r,g.onTaskCancelled)}catch(O){return _.bV(O)}E=B;E.tick("pcq");var w={prefetchInfo:{taskId:E.taskModel.id,isPrefetch:!0,fetchAction:E.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:E.taskModel.command.clickTrackingParams}};E.taskModel.csn&&(w.clientScreenNonce=E.taskModel.csn);_.Pk(w,E.timerName);g.allPrefetchTasks.set(r.id,B);g.drainingHeap.insert(-gcD(B),B);return B.cancellablePromise},
ml=function(g,r){g.prefetchCoordinatorState===r&&(g.prefetchCoordinatorState=2,wJm(g))},wJm=function(g){for(var r={};g.prefetchCoordinatorState!==0;r={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(g.inflightPrefetchTasks.size>=g.maxInflightTasks){g.prefetchCoordinatorState=3;break}r.prefetchTask$jscomp$1=g.drainingHeap.remove();if(!r.prefetchTask$jscomp$1){g.prefetchCoordinatorState=1;break}r.taskId$jscomp$3=r.prefetchTask$jscomp$1.taskModel.id;if(g.allPrefetchTasks.has(r.taskId$jscomp$3)){var E=-1;g.coordinatorTimeoutMs>0&&(E=_.fC(g.scheduler,function(B){return function(){iX(g,B.taskId$jscomp$3,Error("fj"))}}(r),g.coordinatorTimeoutMs));
g.inflightPrefetchTasks.set(r.taskId$jscomp$3,E);if(!g.JSC$16215_commandHandler){if(!_.G$.instance){iX(g,r.taskId$jscomp$3,Error("gj"));continue}g.JSC$16215_commandHandler=_.G$.instance}a:switch(r.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":E=1;break a;default:E=0}r.prefetchTask$jscomp$1.jobId=g.scheduler.addJob(function(B){return function(){B.prefetchTask$jscomp$1.tick("pcr");try{g.JSC$16215_commandHandler.resolveCommand(B.prefetchTask$jscomp$1.taskModel.command)||
iX(g,B.taskId$jscomp$3,Error("hj"))}catch(w){iX(g,B.taskId$jscomp$3,w)}}}(r),E,0)}}},SD6=function(g,r){(r=rtv(g,r))!=null&&(r.resolver.resolve(),r.tick("pce"));
ml(g,3)},iX=function(g,r,E){(r=rtv(g,r,E))!=null&&(r.resolver.reject(E),r.tick("pcc"),dmZ(r,"CANCELLATION_REASON_ERROR"),Math.random()<=_.wM("prefetch_coordinator_error_logging_sampling_rate")&&(E=new _.Rj("Prefetch Command failed.",r.taskModel.id,E.message),_.tn(E)));
ml(g,3)},rtv=function(g,r,E){var B=g.allPrefetchTasks.get(r);
B?((E=g.inflightPrefetchTasks.get(r))&&E!==-1&&g.scheduler.cancelJob(E),g.inflightPrefetchTasks.delete(r),g.allPrefetchTasks.delete(r)):_.el(new _.Rj("Unexpected missing prefetch task when deleting task.",r,E==null?void 0:E.message));return B};var OLD=function(g,r,E,B,w){this.id=g;this.triggerOn=r;this.cancelOn=E;this.command=B;this.proto=w};
_.hx.Object.defineProperties(OLD.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var UoM=function(){this.JSC$16220_prefetchCoordinator=Ecz();v_I||(v_I=new Iq);this.defaultCoordinator=v_I},MV$;
UoM.getInstance=function(){MV$||(MV$=new UoM);return MV$};
UoM.prototype.get=function(g){switch(g){case 0:return this.JSC$16220_prefetchCoordinator;default:return this.defaultCoordinator}};var Lg=function(){this.coordinatorSupplier=UoM.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},lQ$=function(g){var r=_.PE()||void 0,E=Object.keys(qD6)[0];
if(E){var B=g.taskIdByTriggerId.get(E);if(B!=null){g.taskIdByTriggerId.delete(E);E=[];B=_.U(B);for(var w=B.next();!w.done;w=B.next())if(w=g.tasks.get(w.value))r!=="UNDEFINED_CSN"&&(w.csn=r),E.push(w);E=uHP(E);r=[];E=_.U(E);for(B=E.next();!B.done;B=E.next()){w=_.U(B.value);B=w.next().value;w=w.next().value;B=g.coordinatorSupplier.get(B).queueAll(w);B=_.U(B);var O=B.next();for(w={};!O.done;w={taskId$jscomp$9:void 0},O=B.next()){var M=_.U(O.value);O=M.next().value;M=M.next().value;w.taskId$jscomp$9=
O;O=M;r.push(w.taskId$jscomp$9);g.queuedPromisesByTask.set(w.taskId$jscomp$9,_.Y$(O,function(u){return function(){uYm(g,u.taskId$jscomp$9)}}(w)))}}}}else _.el(new _.Rj("Unexpected malformed TriggerEvent."))};
Lg.prototype.trigger=function(g,r){var E=this,B=this.tasks.get(g);if(!B||this.queuedPromisesByTask.has(g))return!1;Dot(this,g,B.triggerOn);r!=="UNDEFINED_CSN"&&(B.csn=r);r=this.coordinatorSupplier.get(B.taskType).queue(B);this.queuedPromisesByTask.set(g,_.Y$(r,function(){uYm(E,g)}));
return!0};
Lg.prototype.cancel=function(g){var r=this.queuedPromisesByTask.get(g);if(r)r.cancel();else return uYm(this,g)};
var uYm=function(g,r){g.queuedPromisesByTask.delete(r);var E=g.tasks.get(r);if(!E)return!1;g.tasks.delete(r);Dot(g,r,E.triggerOn);(E=qWV(E.cancelOn))&&(g=g.taskIdByCancelId.get(E))&&g.delete(r);return!0},Dot=function(g,r,E){(E=Object.keys(E)[0])&&(g=g.taskIdByTriggerId.get(E))&&g.delete(r)};var qD6={taskRegistered:{}},VQ=function(){Lg.instance||(Lg.instance=new Lg);this.JSC$16229_taskManager=Lg.instance};
_.f(VQ,CH);
VQ.prototype.resolveCommand=function(g){var r=this,E,B;return _.q(function(w){E=_.n(g,A9n);if((B=E)==null||!B.tasks){var O=new _.Rj("RegisterTasksCommand is missing tasks.");_.tn(O);return w.return()}O=r.JSC$16229_taskManager;for(var M=_.U(E.tasks),u=M.next();!u.done;u=M.next())if(u=u.value,u=u.id&&u.triggerOn&&u.cancelOn&&u.command?new OLD(u.id,u.triggerOn,u.cancelOn,u.command,u):void 0,u){var l=Object.keys(u.triggerOn)[0];if(l){var Q=qWV(u.cancelOn);Q?(O.tasks.set(u.id,u),O.taskIdByTriggerId.has(l)||O.taskIdByTriggerId.set(l,
new Set),O.taskIdByTriggerId.get(l).add(u.id),O.taskIdByCancelId.has(Q)||O.taskIdByCancelId.set(Q,new Set),O.taskIdByCancelId.get(Q).add(u.id)):_.el(new _.Rj("Unexpected malformed cancelOn field."))}else _.el(new _.Rj("Unexpected malformed triggerOn field."))}else _.el(new _.Rj("Unexpected malformed Task proto."));lQ$(r.JSC$16229_taskManager);_.Q3(w)})};var ocv={},GSM=(ocv.rendered={priority:0,callback:function(){var g={};g.numCpu=navigator.hardwareConcurrency;var r={};r.ramGb=_.ED.navigator.deviceMemory;var E={staticContext:{}};r.ramGb&&leA(r.ramGb)&&(E.staticContext.memoryTotalKbytes=(r.ramGb*1048576).toString());g.numCpu&&leA(g.numCpu)&&(E.staticContext.cpuCores=g.numCpu);if(_.Y("web_enable_adaptive_appl_signal")){g={};r=_.Cu("rses_dpj");var B=_.Cu("rsef_dpj");r&&r>0&&B&&B>0&&(r=Math.ceil(B-r),r>0&&(g.loadLatency=r));g.loadLatency&&leA(g.loadLatency)&&
(E.appL=g.loadLatency.toString())}_.Jn("applicationStarted",E)}},ocv);var QX6=new _.Vn("WINDOW_ON_ERROR"),zPv=new _.Vn("ERROR_WEIGHT_MAPS"),kS5=new _.Vn("INIT_ERROR");var HLM={},pJL=(HLM.initialized={priority:10,callback:function(g){g.injector.resolve(kS5)()}},HLM);var YDF=function(){},RP8=function(){var g=_.XS("meta_logger_impl");
g||(g=new YDF,_.vN("meta_logger_impl",g));return g},nc5=function(){RP8().csiSubscriptionKey=GCc("meta_logging_csi_event",function(g){var r=g.timerName;
if(g=g.timelineData){_.tg(r,{startTime:g.startTime},r);g.infos&&_.Pk(g.infos,r);for(var E=_.U(Object.keys(g.ticks)),B=E.next();!B.done;B=E.next())B=B.value,_.F4(B,g.ticks[B],r)}})};
YDF.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&kCB(this.csiSubscriptionKey)};var sXM={},fQ$=(sXM.initialized={priority:10,callback:function(){nc5()}},sXM);var $oD=function(g,r){this.innertubeClientName=g;this.JSC$16245_prefCookie=r};
$oD.prototype.record=function(){if(_.Y("web_li_record_binary_eval_tick")){var g=_.Cu("rsef_dpj");var r=_.Cu("rses_dpj");g=g!==void 0&&r!==void 0?Math.round(g-r):void 0;if(g!==void 0&&g>0){r=_.OC(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var E=this.poolSize;if(!(r.valuesSeen>=1E9)){if(r.valuesSample.length<E)r.valuesSample.push(g);else{var B=Math.floor(Math.random()*(r.valuesSeen+1));B<E&&(r.valuesSample[B]=g)}r.valuesSeen+=1}_.S2(this.storagePrefix+"-"+this.innertubeClientName,
r,2592E3);g=r.valuesSample;r=D3Q(g);g=g.length<5?void 0:r<400?1:r<1700?2:3;g!==void 0&&(this.JSC$16245_prefCookie.set(this.cookiePrefix+this.innertubeClientName,g),this.JSC$16245_prefCookie.save())}}else _.UC(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$16245_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$16245_prefCookie.save()};
$oD[LU]=[z3,LT];var jXA=function(){$oD.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.f(jXA,$oD);var Atz=new _.Vn("PAGE_LOAD_TIME_TOKEN");var bL6=function(g){this.signal=g;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;g.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.fC(_.F6,this.disableLoggingAndSendPayload,1E4)};
bL6.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.F6.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),Jt5(this))};
var Jt5=function(g){var r=_.JF();if(r){var E={webClientComponentsData:{components:Array.from(g.ids,function(B){return{id:B}})}};
g.ids.clear();_.pW().visualElementStateChanged(r,E)}};var PB6=new _.Vn("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var ho=function(g,r){this.JSC$16274_storeWithEntities=g;this.JSC$16274_commandHandler=r;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
ho.prototype.start=function(){this.JSC$16274_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
ho.prototype.observeDownloadingEntities=function(){var g=_.L4J(this.JSC$16274_storeWithEntities.getState().entities).map(function(B){return VBl(B)});
if(g.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var r={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:zml()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.gz(_.zn("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$16274_commandHandler.resolveCommand(r)}this.downloadingEntities=g}else if(this.downloadingEntities.length){var E=iiB(this.JSC$16274_storeWithEntities.getState().entities).map(function(B){return VBl(B)});
this.downloadingEntities.filter(function(B){return E.includes(B)}).length&&(g={openPopupAction:Z6l()},this.JSC$16274_commandHandler.resolveCommand(g));
this.downloadingEntities=[]}};
ho[LU]=[Sa,_.Er];var tVz;_.Z6=function(g,r,E,B,w,O,M,u){this.JSC$16277_playerApiPromise=g;this.JSC$16277_commandHandler=r;this.JSC$16277_screenManager=E;this.offlineWebClientEligibility=B;this.JSC$16277_prefStorage=w;this.JSC$16277_actionRouter=O;this.entityTypeMap=M;this.JSC$16277_persistentStorePromiseAccessor=u;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
tVz=function(){var g=_.rM().resolve(_.Z6),r;_.q(function(E){if(E.nextAddress==1)return g.downloadFailureListenerBound?E.return():_.D(E,g.JSC$16277_playerApiPromise,2);r=E.yieldResult;r.addEventListener("onOfflineOperationFailure",function(B){if(B.failureReason&&B.entityKey&&B.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(B.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var w=_.S9(B.entityKey).entityId;w&&g.JSC$16277_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
w)}else if(_.Y("kevlar_woffle")){w=g.JSC$16277_commandHandler;var O=w.resolveCommand;B=B.failureReason;var M=_.zn("TRANSFER_FAILED",void 0,"Download failed");B==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(M=_.zn("STORAGE_FULL",void 0,"Storage full"));O.call(w,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.gz(M),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
g.downloadFailureListenerBound=!0;_.Q3(E)})};
_.Z6.prototype.deleteVideo=function(g,r){var E=this,B,w,O;return _.q(function(M){if(M.nextAddress==1)return _.D(M,E.JSC$16277_playerApiPromise,2);B=M.yieldResult;O={offlineLoggingData:{offlineDeleteReason:(w=r)!=null?w:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.D(M,B.queueOfflineAction(g,E.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",O),0)})};
_.Z6.prototype.pauseVideoDownload=function(g){var r=this,E;return _.q(function(B){if(B.nextAddress==1)return _.D(B,r.JSC$16277_playerApiPromise,2);E=B.yieldResult;E.pauseVideoDownload(g);_.Q3(B)})};
_.Z6.prototype.resumeVideoDownload=function(g){var r=this,E;return _.q(function(B){if(B.nextAddress==1)return _.D(B,r.JSC$16277_playerApiPromise,2);E=B.yieldResult;return _.D(B,E.resumeVideoDownload(g),0)})};
_.Z6[LU]=[_.wr,_.Er,_.Y8,PB6,y$,VA,rHD,M9];var FAM=new _.Vn("DOWNLOAD_STATE_STORE_TOKEN");var ePM=function(g,r){this.JSC$16297_persistentStorePromiseAccessor=g;this.store=r;this.upliftCompletionResolver=new _.uF},KAM=function(){var g=_.rM().resolve(WAL),r;
_.q(function(E){switch(E.nextAddress){case 1:if(g.upliftImplPromise)return E.return(g.upliftImplPromise);_.qN(E,2);g.upliftImplPromise=CB6(g);return _.D(E,g.upliftImplPromise,4);case 4:g.upliftCompletionResolver.resolve();_.Ne(E,3);break;case 2:throw r=_.G2(E),g.upliftCompletionResolver.reject(r),r;case 3:return E.return(g.upliftImplPromise)}})},CB6=function(g){var r,E,B;
return _.q(function(w){switch(w.nextAddress){case 1:return _.Ka("LOGGED_IN")?_.D(w,g.JSC$16297_persistentStorePromiseAccessor(),2):w.return();case 2:r=w.yieldResult;if(!r)return _.F4("vdeur"),w.return();_.F4("vdeus");_.qN(w,3);return _.D(w,xo6(r),5);case 5:E=w.yieldResult;g.store.dispatch(PzA(E));r.observe(function(O){tBl(g.store,O)});
_.Ne(w,4);break;case 3:throw B=_.G2(w),_.F4("vdeur"),B;case 4:_.F4("vdeuc"),_.Q3(w)}})},xo6=function(g){var r;
return _.q(function(E){if(E.nextAddress==1)return _.D(E,pzY(g),2);r=E.yieldResult;return E.return(r.reduce(function(B,w){if(!w.data||!w.key||!w.entityType)return B;B[w.entityType]||(B[w.entityType]={});B[w.entityType][w.key]=w.data;return B},{}))})};
ePM[LU]=[M9,_.e2];var WAL;WAL=new _.Vn("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.yQ=new _.Vn("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var v1=function(g,r){this.JSC$16300_persistentStorePromiseAccessor=g;this.transportService=r};
v1.prototype.refresh=function(){var g=this,r,E,B,w;return _.q(function(O){if(O.nextAddress==1)return _.Ka("LOGGED_IN")?_.D(O,g.JSC$16300_persistentStorePromiseAccessor(),2):O.return();if(O.nextAddress!=3)return(r=O.yieldResult)?_.D(O,rSY(r),3):O.return();if((E=O.yieldResult)&&!(Number(E.data.refreshTimestampMs||0)<(0,_.g2)()))return O.return();B={browseId:"SPaccount_downloads"};w=_.yp(yj);_.Pa(g.transportService,B,w).then(function(M){var u;if(r&&(M==null?void 0:(u=M.responseContext)==null?void 0:
u.maxAgeSeconds)!==0){var l;u=(M==null?void 0:(l=M.responseContext)==null?void 0:l.maxAgeSeconds)||604800;l=String(Math.floor((0,_.g2)())+u*1E3);r.put("service:downloads_settings:fallback",new _.En({innertubeResponse:M,refreshTimestampMs:l}))}});
_.Q3(O)})};
v1[LU]=[_.Ng,_.Wo];var dE=function(g,r){this.JSC$16304_playerPromise=g;this.store=r;this.started=!1};
dE.prototype.start=function(){var g=this,r;return _.q(function(E){if(E.nextAddress==1)return g.started?E.return():_.D(E,g.JSC$16304_playerPromise,2);r=E.yieldResult;r.addEventListener("onOrchestrationBecameLeader",g.updateIsLeader.bind(g,!0));r.addEventListener("onOrchestrationLostLeader",g.updateIsLeader.bind(g,!1));if(r.isOrchestrationLeader)g.updateIsLeader(r.isOrchestrationLeader());else{var B=new _.Rj("Function isOrchestrationLeader is undefined",{"player.isReady":r.isReady(),"player.playVideo":r.playVideo?
"defined":"undefined"});_.tn(B);g.updateIsLeader(!1)}g.started=!0;_.Q3(E)})};
dE.prototype.updateIsLeader=function(g){this.store.dispatch(_.Bs({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:g}}))};
dE[LU]=[_.wr,_.e2];var aQ6=function(g,r){this.networkStatusManager=g;this.JSC$16307_prefStoragePromise=r;this.redirectsToPreload=["https://youtube.com"]},XJ8=function(){var g=_.rM().resolve(aQ6),r,E,B,w,O,M;
_.q(function(u){switch(u.nextAddress){case 1:return _.D(u,g.JSC$16307_prefStoragePromise,2);case 2:r=u.yieldResult;if(!(E=r)){u.jumpTo(3);break}return _.D(u,r.get("yt-redirect-prefetch-id"),4);case 4:E=u.yieldResult;case 3:if(E||!g.networkStatusManager.isNetworkAvailable())return u.return();B={cache:"reload",redirect:"manual"};w=_.U(g.redirectsToPreload);O=w.next();case 5:if(O.done){if(!r){u.jumpTo(0);break}return _.D(u,r.set("yt-redirect-prefetch-id",!0,86400),0)}M=O.value;_.qN(u,8);return _.D(u,
_.ED.fetch(M,B),10);case 10:_.Ne(u,6);break;case 8:_.G2(u);case 6:O=w.next(),u.jumpTo(5)}})};var TI=function(g){g?(this.container=g,this.containerWasInjected=!0):this.containerWasInjected=!1};
TI.prototype.openDialog=function(g,r,E){var B=this,w;return _.q(function(O){(w=B.container)==null||w.openDialog(g,r,E);_.Q3(O)})};
TI.prototype.closeDialog=function(){var g=this,r;return _.q(function(E){(r=g.container)==null||r.closeDialog();_.Q3(E)})};
TI.prototype.isDialogOpen=function(){var g=this,r,E;return _.q(function(B){return B.return((E=(r=g.container)==null?void 0:r.isDialogOpen())!=null?E:!1)})};
TI[LU]=[_.gM(KlD)];_.Nl$=new _.Vn("POPUP_CONTROLLER_TOKEN");var IQ4=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
IQ4.prototype.registerPanel=function(g,r){if(g){this.panelMap.set(g,r);var E=this.pendingPanelResolvers.get(g);E&&(E.resolve(r),this.pendingPanelResolvers.delete(g))}};
IQ4.prototype.getPanel=function(g){var r=this,E;return _.q(function(B){return(E=r.panelMap.get(g))?B.return(E):B.return(moA(r,g))})};
var moA=function(g,r){var E,B;return _.q(function(w){if(E=g.pendingPanelResolvers.get(r))return w.return(E.promise);B=new _.uF;g.pendingPanelResolvers.set(r,B);return w.return(B.promise)})},ctF=function(g){IQ4.call(this);
var r=this;this.popupController=g;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return r.panelMap.size}}};
_.f(ctF,IQ4);_.S=ctF.prototype;_.S.getReloadContinuation=function(g){var r=this,E;return _.q(function(B){if(B.nextAddress==1)return _.D(B,r.getPanel(g),2);E=B.yieldResult;return B.return(E.getReloadContinuation())})};
_.S.showPanel=function(g,r,E,B,w,O,M){var u=this,l,Q,z,k;return _.q(function(H){if(H.nextAddress==1){M&&u.updatePanelContinuationDatas.set(g,M);if((l=E)==null?0:(Q=l.engagementPanelPopupPresentationConfig)==null?0:Q.popupType){z=E.engagementPanelPopupPresentationConfig.popupType;w===void 0&&(w=document.body);var R=H.return,A=u.popupController,J=A.openPopup;a:switch(z){case "PANEL_POPUP_TYPE_DIALOG":var e="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":e="DROPDOWN";break a;default:throw Error("jj`"+
z);}return R.call(H,J.call(A,g,r,e,w))}return _.D(H,u.getPanel(g),2)}k=H.yieldResult;(r||O)&&k.updatePanel(r,!1,B,O);k.showPanel(B);_.Q3(H)})};
_.S.hidePanel=function(g){var r=this,E;return _.q(function(B){if(B.nextAddress==1)return _.D(B,r.getPanel(g),2);E=B.yieldResult;E.hidePanel();r.popupController.closePopup(g);_.Q3(B)})};
_.S.isVisible=function(g,r){var E=this,B;return _.q(function(w){if(w.nextAddress==1)return r&&!E.panelMap.has(g)?w.return(!1):_.D(w,E.getPanel(g),2);B=w.yieldResult;return w.return(B.isVisible())})};
_.S.updatePanel=function(g,r,E,B,w,O){E=E===void 0?!1:E;var M=this,u;return _.q(function(l){if(l.nextAddress==1){if(!r&&!w)return l.return();O&&M.updatePanelContinuationDatas.set(g,O);return _.D(l,M.getPanel(g),2)}u=l.yieldResult;u.updatePanel(r,E,B,w);_.Q3(l)})};
_.S.registerPanelContent=function(g,r){g&&this.panelContentMap.set(g,r)};
_.S.getPanelContent=function(g){return this.panelContentMap.get(g)};
_.S.getUpdatePanelContinuationData=function(g){return this.updatePanelContinuationDatas.get(g)};
ctF[LU]=[_.Nl$];var gJ=function(g,r){this.innertubeTransportService=g;this.JSC$16323_screenManager=r},iLm=function(g){var r;
return!((r=g.panelLoadingStrategy)==null||!r.requestTemplate)};
gJ.prototype.makeRequest=function(g){var r=this,E,B;return _.q(function(w){switch(w.nextAddress){case 1:if(!iLm(r)){w.jumpTo(2);break}_.qN(w,3);return _.D(w,_.cK(r.innertubeTransportService,g),5);case 5:return E=w.yieldResult,E?w.return(E.content):(_.tn(Error("kj")),w.return(void 0));case 3:B=_.G2(w),_.tn(B);case 2:return w.return(void 0)}})};
gJ.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
gJ.prototype.execute=function(g){var r=this,E,B,w,O,M,u,l,Q,z,k;return _.q(function(H){if(H.nextAddress==1){E=g;B=E.data;w=E.fallbackVe;O=E.parentVe;M=E.createScreenConfig;u=E.renderFn;l=E.command;r.panelLoadingStrategy=B;var R,A,J=((R=r.panelLoadingStrategy)==null?0:R.screenVe)?(A=r.panelLoadingStrategy)==null?void 0:A.screenVe:w;J&&_.wT(r.JSC$16323_screenManager,J,O,M);return(Q=r.getContent())?_.D(H,u(Q),2):H.jumpTo(2)}return H.nextAddress!=4?iLm(r)?_.D(H,r.makeRequest(l),4):H.return():(k=z=H.yieldResult)?
_.D(H,u(k),0):H.return()})};
gJ[LU]=[_.Wo,_.Y8];var rJ=function(){};
rJ.prototype.getContainer=function(){return _.Tr()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
rJ.prototype.openSheet=function(g,r){var E=this,B,w,O,M,u,l;return _.q(function(Q){switch(Q.nextAddress){case 1:return B={stack:[],error:void 0,hasError:!1},_.qN(Q,2,3),w=dY,_.D(Q,E.isSheetOpen(),5);case 5:O=Q.yieldResult;gdL(B,fnl(w));if(O){if(r&&E.currentTarget===r)return(M=E.getContainer())==null||M.closeSheet(),Q.return();E.pendingData={data:g,target:wGI(E,r)};return Q.return()}g.viewModel&&(g={viewModel:g.viewModel});(u=E.getContainer())==null||u.openSheet(g,r);E.currentTarget=r;case 3:_.uY(Q);
r4c(B);_.oF(Q,0);break;case 2:l=_.G2(Q),B.error=l,B.hasError=!0,Q.jumpTo(3)}})};
rJ.prototype.closeSheet=function(){var g=this,r;return _.q(function(E){if(E.nextAddress==1)return _.D(E,(r=g.getContainer())==null?void 0:r.closeSheet(),2);if(E.nextAddress!=4)return g.currentTarget=void 0,g.pendingData?_.D(E,g.openSheet(g.pendingData.data,g.pendingData.target),4):E.jumpTo(0);g.pendingData=void 0;_.Q3(E)})};
rJ.prototype.isSheetOpen=function(){var g=this,r,E;return _.q(function(B){return B.return((E=(r=g.getContainer())==null?void 0:r.isSheetOpen())!=null?E:!1)})};
var wGI=function(g,r){if(!_.Y("web_parent_target_for_sheets"))return r;var E,B;return(B=(E=g.getContainer())==null?void 0:E.getParentTarget(r))!=null?B:r};var O8=window.documentPictureInPicture;var tHY=_.me(["dark"]),FaP=_.me(["system-icons"]),eWD=_.me(["typography"]),WaD=_.me(["lang"]),CUc=_.me(["style"]),ASB=_.me(["dir"]),bsL=_.me(["rounded-container"]),JSl=_.me(["style"]),x3S=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],EE=function(g){this.JSC$16335_clientRoot=g;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
EE.prototype.openWindow=function(g){var r=this,E,B;return _.q(function(w){if(w.nextAddress==1)return window.documentPictureInPicture&&_.tt()&&!r.currentPipWindow?_.D(w,(E=O8?O8:null)==null?void 0:E.requestWindow(g),2):w.return(!1);if(w.nextAddress!=3){B=w.yieldResult;if(!B)return w.return(!1);B.addEventListener("pagehide",function(){LAF(r)});
B.addEventListener("resize",r.handlePipWindowResize);r.pipWindowResizeDelay=new _.dH(function(){r.currentPipWindow&&_.OS(r.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.oQ(r.currentPipWindow.innerWidth,r.currentPipWindow.innerHeight)])},B);
Kac(B);XzY(B);return _.D(w,j5o(B),3)}if(!s5V())return w.return(!1);r.currentPipWindow=B;r.JSC$16335_eventForwarder=aeY(B,r.JSC$16335_clientRoot);r.pipWindowResizeDelay.start();return w.return(!0)})};
EE.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var LAF=function(g){if(g.currentPipWindow){var r,E;(r=O8?O8:null)==null||(E=r.window)==null||E.close();g.currentPipWindow.removeEventListener("resize",g.handlePipWindowResize);var B;(B=g.pipWindowResizeDelay)==null||B.dispose();g.pipWindowResizeDelay=void 0;var w;(w=g.JSC$16335_eventForwarder)==null||w.stop();g.JSC$16335_eventForwarder=void 0;r=_.U(g.onCloseCallbacks);for(E=r.next();!E.done;E=r.next())E=E.value,E();g.onCloseCallbacks=[];g.currentPipWindow=null}};
EE.prototype.getWindow=function(){return this.currentPipWindow};
var VV$=function(g,r){var E;(E=g.onCloseCallbacks)==null||E.push(r)};
EE.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.tt()};
_.hx.Object.defineProperties(EE.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
EE[LU]=[BED];var hP5=new _.Vn("PICTURE_IN_PICTURE_CONTROLLER");var Nwl=function(g,r){this.lengthY=this.lengthX=0;this.lengthX=r.x-g.x;this.lengthY=r.y-g.y};var ZLg=function(){},Mum=function(g,r){var E;
(E=g.headerElement)==null||E.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:r}))};var yt$=function(){};
yt$.prototype.openPopup=function(g,r,E,B){var w=this,O;return _.q(function(M){if(!w.container)return M.return();O={openPopupAction:{popup:r,popupType:E,uniqueId:g}};return M.return(w.container.handleOpenPopupAction(O,B))})};
yt$.prototype.closePopup=function(g){this.container&&this.container.closePopup(g)};var vc6=function(){this.openTunnels=new Map},RZY=function(g,r,E){if(VHB(E)){var B=_.IO(E,"gclid");
E={handleEvent:function(u){r&&!r.closed&&typeof r.postMessage==="function"&&u&&u.origin&&u.source===r&&u.data&&u.data.action==="gcl_setup"&&r.postMessage(Object.assign({},{action:"gcl_transfer"},B&&{gclid:B},{gadSource:2}),u.origin)}};
for(var w=_.U(g.openTunnels),O=w.next();!O.done;O=w.next()){var M=_.U(O.value);O=M.next().value;M=M.next().value;if(O.closed)try{window.removeEventListener("message",M),g.openTunnels.delete(O)}catch(u){_.tn(u)}}r&&g.openTunnels.size<15&&(g.openTunnels.set(r,E),window.addEventListener("message",E))}};var doL=function(){this.clientParams=new Map},qKw=function(g){for(var r=_.U(g.clientParams.keys()),E=r.next();!E.done;E=r.next())E=E.value,E.startsWith("yt-mini-app-share")&&g.clientParams.delete(E)};var Tl8=function(g,r){_.f5.call(this);var E=this;this.shortsController=g;this.storeWithShorts=r;g=_.Gm(this.storeWithShorts,_.QPA,function(B){if(B){var w,O=(w=E.shortsController.getRoot())==null?void 0:w.getPlayer(),M;(w=(M=E.shortsController.alternativePlayerContainerElement)==null?void 0:M.getPlayerContainer())&&(O==null||O.appendTo(w))}else{var u;M=(u=E.shortsController.alternativePlayerContainerElement)==null?void 0:u.getPlayerContainer().querySelector("#player");w=E.shortsController.activeIndex;
(u=(O=E.shortsController.getRoot())==null?void 0:O.querySelector('ytd-reel-video-renderer[id="'+w+'"] #player-container'))&&(M==null||M.appendTo(u,void 0,!0))}});
this.addOnDisposeCallback(g)};
_.f(Tl8,_.f5);var BQ=function(g,r,E,B,w){var O=this;this.storeWithShorts=g;this.ephemeralResponseStore=r;this.store=E;this.innertubeTransportService=B;this.innertubeTransportLoader=w;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.Ch(_.qq);this.isShortsPipActive=_.Ch(_.oz);this.nextReelVe=_.bW(56921);this.prevReelVe=_.bW(56922);this.backButtonVe=_.bW(22156);this.TEST_ONLY={getActiveModules:function(){return O.activeModules}}},gbv=function(g){g.unsubscribeFromStore=
_.Gm(g.storeWithShorts,_.G9D,function(r){g.initOrDisposeActiveModules(r);
!r&&g.storeWithShorts.getState().shorts.isFullscreen&&(_.gX(document.documentElement),g.storeWithShorts.dispatch(_.UR6(!1)))});
g.initOrDisposeActiveModules(_.G9D(g.storeWithShorts.getState()))},MOz,qdm,rDF;
BQ.prototype.initOrDisposeActiveModules=function(g){g?this.activeModules.push(new Tl8(this,this.storeWithShorts)):(_.gY(this.activeModules),this.activeModules.length=0)};
BQ.prototype.registerRootElement=function(g){this.rootElement=g;gbv(this)};
BQ.prototype.getRoot=function(){return this.rootElement};
BQ.prototype.setActiveIndex=function(g){this.activeIndex=g};
_.Ep4=function(g,r){var E,B,w,O,M,u,l;return _.q(function(Q){switch(Q.nextAddress){case 1:return E=new qg,(B=E.JSC$11145_getStoreKey(r))&&g.ephemeralResponseStore.has(B)?_.D(Q,g.ephemeralResponseStore.get(B),7):_.D(Q,rDF(g,r),4);case 4:w=Q.yieldResult;if(!B){Q.jumpTo(3);break}O=Og(w,3600);return _.D(Q,g.ephemeralResponseStore.put(B,new _.En(O)),3);case 7:w=(M=Q.yieldResult)==null?void 0:_.Bv(M);case 3:return((u=w)==null?0:u.replacementEndpoint)&&(l=_.n(w.replacementEndpoint,_.sP))&&w.sequenceContinuation&&
(l.sequenceParams=w.sequenceContinuation),Q.return(w)}})};
MOz=function(g,r){r=(new uX).JSC$11145_getStoreKey(r);return!!r&&g.ephemeralResponseStore.has(r)};
qdm=function(g,r,E){var B,w,O,M,u;_.q(function(l){if(l.nextAddress==1){B=new uX;w=B.JSC$11145_getStoreKey(r);if(!w)return l.return();if(E.reelWatchSequenceResponse)return O=Og(E.reelWatchSequenceResponse,3600),g.ephemeralResponseStore.put(w,new _.En(O)),l.jumpTo(0);if(!g.ephemeralResponseStore.has(w))return l.jumpTo(0);u=E;return _.D(l,g.ephemeralResponseStore.get(w),4)}u.reelWatchSequenceResponse=(M=l.yieldResult)==null?void 0:_.Bv(M);_.Q3(l)})};
rDF=function(g,r){var E=E===void 0?{}:E;var B,w,O;return _.q(function(M){switch(M.nextAddress){case 1:if(g.innertubeTransportService){B=g.innertubeTransportService;M.jumpTo(2);break}if(!g.innertubeTransportLoader){_.xF(Error("mj"));M.jumpTo(2);break}return _.D(M,g.innertubeTransportLoader(),4);case 4:B=M.yieldResult;case 2:return _.D(M,(w=B)==null?void 0:_.cK(w,r,E),5);case 5:return O=M.yieldResult,M.return(O)}})};
_.hx.Object.defineProperties(BQ.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
BQ[LU]=[VKA,_.rI,Sa,_.gM(_.Wo),_.gM(IKb)];_.Ebt=new _.Vn("STORAGE_MANAGER_TOKEN");var vzB=["touchmove","scroll"];var rWA={onSpanEnd:function(g){if(g.parent==null){var r=g.name;_.tg(r);gNl(g,r)}}};var BAv=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},w6D;
BAv.prototype.enqueue=function(g,r){r===1?this.currentPersistentToast=g:this.queue.push(g);this.openToast()};
BAv.prototype.openToast=function(){var g;(g=this.currentToast)!=null&&g.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.wJ=new _.Vn("TOAST_MANAGER_TOKEN");var Sw$=new _.Vn("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var Owg=new _.Vn("VIEW_TRANSITION_COORDINATOR_TOKEN");var Uzm=function(g){this.config=g;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;g=_.U(g.transitionConfigs);for(var r=g.next();!r.done;r=g.next())r=_.U(r.value).next().value,this.transitionTasksMap.set(r,[])};
Uzm.prototype.registerElement=function(g,r,E){E=E===void 0?!1:E;for(var B=_.U(Object.keys(r)),w=B.next(),O={};!w.done;O={viewTransitionName:void 0},w=B.next()){w=w.value;O.viewTransitionName=r[w];var M=this.elementTasksMap.get(g),u=void 0;if((u=M)==null?0:u.has(w)){_.FR(new _.Rj("Element already registered for transition",g.tagName,w));break}M=M||new Map;M.set(w,{beforeTransition:function(l){return function(){g.style.viewTransitionName=l.viewTransitionName}}(O),
afterTransition:function(){g.style.viewTransitionName&&(g.style.viewTransitionName="")},
runOnce:E});this.elementTasksMap.set(g,M)}};
_.I$=function(g,r){var E=g.elementTasksMap.get(r);E&&(E.clear(),E.size===0&&g.elementTasksMap.delete(r))};
Uzm[LU]=[Sw$];var MUM;_.qwD=_.dG(function(g){return _.G("basic-content-view-model",{class:_.QY("ytBasicContentViewModelHost",_.Zo(g.className))},_.G(_.p,{cond:function(){return g.data().headline},
then:function(r){return _.G("div",{class:"ytBasicContentViewModelHeadline"},_.G(_.hf,{text:r}))}}),_.G(_.Ra,{each:function(){return g.data().paragraphs||[]},
keyBy:"INDEX"},function(r){return _.G("div",{class:"ytBasicContentViewModelParagraph"},_.G(_.p,{cond:function(){var E=r();return!!(E.header||E.customHeader||E.headline)},
then:function(){return _.G(MUM,{paragraph:r})}}),_.G(_.p,{cond:function(){return r().asset||r().text},
then:function(){return _.G("div",{class:"ytBasicContentViewModelParagraphContent"},_.G(_.p,{cond:function(){return r().asset},
then:function(E){return _.G("div",{class:"ytBasicContentViewModelParagraphAsset"},_.G(_.Af,{data:E},{contentPreviewImageViewModel:_.ye}))}}),_.G(_.p,{cond:function(){return r().text},
then:function(E){return _.G("div",{class:"ytBasicContentViewModelParagraphText"},_.G(_.hf,{text:E}))}}))}}))}))},"ve");
MUM=_.dG(function(g){var r=g.paragraph;return _.G(_.wW,null,_.G(_.p,{cond:function(){return r().headline},
then:function(E){return _.G(_.hf,{text:E,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.G(_.Af,{data:function(){return r().header||r().customHeader}},{sectionHeaderViewModel:function(E){return _.G(_.rm,{data:E.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"we");var lIL=_.dG(function(g){var r=_.VI("yt-expandable-metadata-header-view-model"),E=_.HK(function(B){if(!_.WX(_.eT(B),r.value,["A".toString(),"BUTTON".toString()])){var w;(w=g.expandedCallback)==null||w.call(g,!1)}});
return _.G("yt-expandable-metadata-header-view-model",{el:r,class:"ytExpandableMetadataHeaderViewModelHost"},_.G(_.p,{cond:function(){return g.expanded()},
then:function(){return _.G("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":E},_.G("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.G(_.p,{cond:function(){return g.data().expandedTitleImage},
then:function(B){return _.G("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.G(_.vw,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:B}))}}),_.G("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.G("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.G(_.hf,{text:function(){return g.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.G(_.hf,{text:function(){return g.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.G(_.hf,{text:function(){return g.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.G("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.G(_.Af,{data:function(){return g.data().infoButton}},{buttonViewModel:_.MV}),_.G(_.Af,{data:function(){return g.data().collapseButton}},{buttonViewModel:function(B){return _.G(_.MV,{data:B.data,
onClick:function(){var w;(w=g.expandedCallback)==null||w.call(g,!1)}})}})))},
else:function(){return _.G(uZL,Object.assign({},g))}}))},"xe"),Dz4=_.dG(function(g){return _.G("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.G(_.p,{cond:function(){return g.data().collapsedLabelImage},
then:function(r){return _.G("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.G(_.vw,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:r,alt:""}))}}),_.G(_.hf,{text:function(){return g.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"ye"),uZL=_.dG(function(g){return _.G("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.HK(function(){var r;return void((r=g.expandedCallback)==null?void 0:r.call(g,!0))})},_.G("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.G(_.p,{cond:function(){return g.data().collapsedImage},
then:function(r){return _.G("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.G(_.vw,{width:16,height:16,data:r,alt:""}))}}),_.G(_.p,{cond:function(){return g.data().showLeadingCollapsedLabel},
then:function(){return _.G(Dz4,Object.assign({},g))}}),_.G("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.G(_.hf,{text:function(){return g.data().collapsedTitle}}))),_.G("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.G(_.p,{cond:function(){return!g.data().showLeadingCollapsedLabel},
then:function(){return _.G(Dz4,Object.assign({},g))}}),_.G(_.Af,{data:function(){return g.data().infoButton}},{buttonViewModel:_.MV}),_.G(_.Af,{data:function(){return g.data().expandButton}},{buttonViewModel:function(r){return _.G(_.MV,{data:r.data,
onClick:function(){var E;(E=g.expandedCallback)==null||E.call(g,!0)}})}})))},"ze");_.obm=_.dG(function(g){var r=_.U(_.Y3(function(){return g.data().initiallyExpanded})),E=r.next().value,B=r.next().value,w,O=(w=_.rM().resolve(_.gM(_.Vy)))==null?void 0:w(),M=function(){var u=g.data().colorData;
if(u)return O?u==null?void 0:u.darkColorPalette:u==null?void 0:u.lightColorPalette};
return _.G("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.Rl({"background-color":function(){var u=M();return(u==null?0:u.section2Color)?_.XT(u.section2Color):""}})},_.G(_.Af,{data:function(){return g.data().header}},{expandableMetadataHeaderViewModel:function(u){return _.G(lIL,{data:u.data,
expanded:function(){return!!E()},
expandedCallback:function(l){B(l)}})}}),_.G(_.p,{cond:function(){return E()},
then:function(){return _.G("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.G(_.Af,{data:function(){return g.data().expandedContent}},{horizontalShelfViewModel:function(u){return _.G(_.jM,{data:u.data,
includeMargin:!0,forceNarrowLayout:!0,palette:M})},
videoSummaryContentViewModel:function(u){return _.G(FVU,{data:u.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(u){return _.G(_.rR,{data:u.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(u){return _.G(_.qwD,{data:u.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.G(_.Af,{data:function(){return g.data().expandedBottomButtons}},{buttonViewModel:function(u){return _.G("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.G(_.MV,{data:u.data}))}}))}}))},"Ae");var GDL=_.dG(function(g){var r=g.text;var E=g.marqueeSpacing;var B=g.scrollDelay;var w=g.scrollDuration;var O=g.enableMarqueeScroll;g=g.large;var M=_.U(_.Dk(!1,void 0,"kfNqfd")),u=M.next().value,l=M.next().value,Q=_.U(_.Dk(0,void 0,"bYgZbf"));M=Q.next().value;var z=Q.next().value,k=_.VI("marquee-scroll");Q=_.VI("div");var H=_.VI("span"),R=_.rM().resolve(_.Zh);_.bQ(function(){if(O()){var e=H.value.getBoundingClientRect().width,C=k.value.getBoundingClientRect().width;if(e>C){var X=(R==="ltr"?-1:1)*
(e+(E?E():16));Promise.resolve().then(function(){l(!0);z(X)})}}},"giRlme");
var A={},J={};return _.G("marquee-scroll",{class:_.QY("ytMarqueeScrollHost",(A.ytMarqueeScrollHostLarge=g,A)),el:k},_.G("div",{id:"marquee-scroll-inner-container",class:_.QY("ytMarqueeScrollInnerContainer",(J.ytMarqueeScrollAnimationEnabled=function(){return u()},J)),
el:Q,style:_.Rl({gap:E?(0,_.nv)(E):"16px","animation-duration":w?nNb(w):"16s","animation-delay":B?nNb(B):"3s","--marquee-translate":(0,_.nv)(M)})},_.G("span",{el:H,dir:"auto"},_.G(_.hf,{text:r,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.G(_.p,{cond:u,then:function(){return _.G("span",{"aria-hidden":"true",dir:"auto"},_.G(_.hf,{text:r,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Be");_.Qmz=_.dG(function(g){var r=g.data;var E=g.overlayDensity;g=_.HK(function(){r().onTapCommand&&_.I3(r().onTapCommand);return!1});
var B=_.NJt(),w=function(){return(E==null?void 0:E())===1?22:16},O={};
return _.G("reel-sound-metadata-view-model",{class:_.QY("ytReelSoundMetadataViewModelHost",(O.ytReelSoundMetadataViewModelHostLarge=function(){return(E==null?void 0:E())===1},O)),
"on:click":g,tabindex:0,role:"button","on:keydown":B},_.G("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.G(_.p,{cond:function(){return r().musicIcon},
then:function(M){return _.G(_.vw,{data:M,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:w})}}),_.G("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.G(GDL,{text:function(){return r().soundMetadata},
enableMarqueeScroll:function(){return!!r().enableMarqueeScroll},
large:function(){return(E==null?void 0:E())===1}}))))},"Ce");var z4M,kDM,Si,R4M,smm,YwM,jm$,$zt;z4M=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];kDM=_.wM("wil_icon_max_concurrent_fetches",Infinity);
Si=function(g,r,E){var B=this;this.iconSet=g;this.appDirection=r;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.ED.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.Y("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.Y("wil_icon_network_first");this.renderWhenIdle=_.Y("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.Y("wil_icon_load_immediately");this.isPurging=!1;g=function(){B.cacheStorageAvailable&&(B.cacheStorageAsync=_.ED.caches.open("yt-icons").then(function(O){return B.cacheStorageSync=O}).catch(function(){B.cacheStorageAvailable=!1}))};
E=(E==null?void 0:E())||{};E=_.U(Object.entries(E));for(r=E.next();!r.done;r=E.next()){var w=_.U(r.value);r=w.next().value;w=w.next().value;w=Qg(w);HwL(w);this.iconCache[r]=w.cloneNode(!0)}this.isPurging=p6z(this);this.isPurging instanceof Promise?this.isPurging.then(g):g()};
_.cEl=function(g,r){var E=g.resolveIcon(r);return E?g.renderingMode===1?YwM(g,E,g.renderingMode):(r=g.iconCache[E.url])?(r=r.cloneNode(!0),R4M(g,r),YwM(g,E,g.renderingMode,r)):_.nbm(g,E).then(function(B){var w=B?0:1;R4M(g,B);return YwM(g,E,w,B)}):(_.FR(new _.Rj("Icon not found",{iconShape:r})),function(){})};
R4M=function(g,r){if(r){g.counter+=1;g="_yt"+g.counter;r=[r].concat(_.jW(r.getElementsByTagName("*")));r=_.U(r);for(var E=r.next();!E.done;E=r.next())if(E=E.value,E.tagName==="style"&&E.textContent)E.textContent=smm(E.textContent,g,!0);else for(var B=_.U(E.attributes),w=B.next();!w.done;w=B.next()){w=w.value;w.name==="id"&&(w.value+=g);["mask","fill","clip-path"].includes(w.name)&&(w.value=smm(w.value,g));if(w.name==="style"){var O=E.style;try{O.cssText=smm(O.cssText,g,!0)}catch(z){var M=void 0,u=
void 0,l=void 0,Q=void 0;OE({error:((M=z)==null?void 0:(l=(u=M).toString)==null?void 0:l.call(u))||"",el:E.outerHTML,style:!!O,cssText:(Q=O)==null?void 0:Q.cssText})}}w.name==="xlink:href"&&(w.value=w.value.replace(/#(.*)/,"#$1"+g))}}};
smm=function(g,r,E){var B=/url\(["']?#(.*?)["']?\)/;(E===void 0?0:E)&&(B=/url\(["']?#(.*?)["']?\)/g);return g.replace(B,"url(#$1"+r+")")};
YwM=function(g,r,E,B){return function(w,O){var M=Object.assign({},{iconColor:"currentcolor",iconWidth:r.size+"px",iconHeight:r.size+"px",iconDisplay:"block"},O);O=_.HT("DIV");var u=M.iconColor,l=M.iconFilter;M="width: "+M.iconWidth+"; height: "+M.iconHeight+"; display: "+M.iconDisplay+";";l&&(M+=" filter: "+l+";");E===0&&(M+=" fill: "+u+";");E===1&&(l=r.url,M+=" -webkit-mask: url("+l+") no-repeat center / cover; mask: url("+(l+") no-repeat center / cover; background-color: ")+u);r.allowMirroring&&
g.appDirection==="rtl"&&(M+=" transform: scale(-1, 1); transform-origin: center center;");O.setAttribute("style",M);E===0&&B&&O.appendChild(B);w.appendChild(O)}};
_.nbm=function(g,r){var E,B,w;return _.q(function(O){E=function(M){return Ja(M)};
B=r.url;if(!fID(B))throw Error("oj");w=$zt(g,B);return O.return(w.then(function(M){return M.clone().text()}).then(function(M){var u=E(M);
M=r.size;var l=_.HT("DIV");_.cu(l,u);u=_.p5(l.firstElementChild!==void 0?l.firstElementChild:_.Ebb(l.firstChild,!0));M=HwL(u,M);g.iconCache[B]=M.cloneNode(!0);delete g.responsePromises[B];return M}).catch(function(){}))})};
jm$=function(g){var r,E=(r=g.requestAninmationFrameResolver)==null?void 0:r.promise;E||(g.requestAninmationFrameResolver=new _.uF,E=g.requestAninmationFrameResolver.promise,_.ED.requestAnimationFrame(function(){var B;(B=g.requestAninmationFrameResolver)==null||B.resolve();g.requestAninmationFrameResolver=null}));
return E};
$zt=function(g,r){var E,B;return _.q(function(w){if(w.nextAddress==1)return g.waitForAnimationFrame?_.D(w,jm$(g),2):w.jumpTo(2);E=g.responsePromises[r];E||(B=function(){var O,M,u;return _.q(function(l){switch(l.nextAddress){case 1:if(!g.cacheStorageAvailable){O=void 0;l.jumpTo(2);break}if(M=g.cacheStorageSync){l.jumpTo(3);break}return _.D(l,g.cacheStorageAsync,4);case 4:M=l.yieldResult;case 3:O=M;case 2:return u=O,g.isNetworkFirstStrategy?l.return(g.fetchAndUpdateCache(r,u).catch(g.getCacheStorageResponse.bind(g,
r,u))):l.return(g.getCacheStorageResponse(r,u).catch(g.fetchAndUpdateCache.bind(g,r,u)))}})},E=g.renderWhenIdle?new Promise(function(O,M){_.fC(_.F6,function(){B().then(O).catch(M)},10)}):B(),g.responsePromises[r]=E);
return w.return(E.catch(function(O){delete g.responsePromises[r];OE({error:(O==null?0:O.toString)?O.toString():"",url:r});throw O;}))})};
Si.prototype.fetchAndUpdateCache=function(g,r){var E=this;return _.q(function(B){return B.return(ADA(E,g).then(function(w){bwA(E,g,w,r);return w}))})};
var ADA=function(g,r){var E;return _.q(function(B){if(g.numFetches<kDM)return g.numFetches+=1,B.return(JDv(g,r).finally(function(){--g.numFetches;if(Object.keys(g.queuedResponseResolvers).length){var w=Object.keys(g.queuedResponseResolvers)[0],O=g.queuedResponseResolvers[w];delete g.queuedResponseResolvers[w];O.resolve(ADA(g,w))}}));
E=new _.uF;g.queuedResponseResolvers[r]=E;return B.return(E.promise)})},JDv=function(g,r,E){E=E===void 0?2:E;
var B;return _.q(function(w){B={credentials:"same-origin",priority:"low"};return w.return(_.ED.fetch(r,B).then(function(O){return O.ok?O:Promise.reject(Error("pj`"+O.status+"`"+O.statusText))}).catch(function(O){if(E>0)return JDv(g,r,E-1);
throw O;}))})},bwA=function(g,r,E,B){_.q(function(w){return B?w.return(new Promise(function(O){_.fC(_.F6,function(){var M,u;
return _.q(function(l){switch(l.nextAddress){case 1:if(!g.isNetworkFirstStrategy){M=void 0;l.jumpTo(2);break}return _.D(l,B.match(r).catch(function(){}),3);
case 3:M=l.yieldResult;case 2:if(u=M){l.jumpTo(4);break}return _.D(l,B.put(r,E.clone()).catch(function(Q){OE({error:(Q==null?0:Q.toString)?Q.toString():"",url:r})}),4);
case 4:O(),_.Q3(l)}})},50)})):w.return()})};
Si.prototype.getCacheStorageResponse=function(g,r){return _.q(function(E){return r?E.return(r.match(g).then(function(B){return B&&B.ok?B:Promise.reject()})):E.return(Promise.reject())})};
var HwL=function(g,r){r===void 0||g.getAttribute("viewBox")||g.setAttribute("viewBox","0 0 "+r+" "+r);g.setAttribute("focusable","false");g.setAttribute("aria-hidden","true");try{g.style.pointerEvents="none",g.style.display="inherit",g.style.width="100%",g.style.height="100%"}catch(w){var E;OE({error:((E=w)==null?0:E.toString)?w.toString():""});try{g.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(O){var B;OE({error:((B=O)==null?0:B.toString)?O.toString():
""})}}return g},fID=function(g){for(var r=_.U(z4M),E=r.next();!E.done;E=r.next())if(g.startsWith(E.value)&&g.endsWith(".svg"))return!0;
return!1};
Si.prototype.resolveIcon=function(g){return this.iconSet.resolveIcon(g)};
var OE=function(g){_.el(new _.Rj("Error in IconManager",g))},p6z=function(g){if(_.Y("wil_icons_cache_purge_killswitch"))return!1;
try{var r=_.ED.localStorage}catch(O){return!1}if(!r||!g.cacheStorageAvailable)return!1;var E=function(O){try{var M;(M=r)==null||M.setItem("yt-icons-last-purged",O.toString())}catch(l){var u;OE({error:((u=l)==null?0:u.toString)?l.toString():""})}},B=Number(r.getItem("yt-icons-last-purged"));
if(!B)return B=new Date,B=B.setDate(B.getDate()-Math.floor(Math.random()*90+1)),E(B),!1;if(function(O,M){O=new Date(O);M=new Date(M);return M.getMonth()-O.getMonth()+12*(M.getFullYear()-O.getFullYear())}(B,Date.now())<3)return!1;
try{return _.ED.caches.delete("yt-icons").then(function(O){O&&E(Date.now());return O}).catch(function(){return!1}).finally(function(){g.isPurging=!1})}catch(O){var w;
OE({error:((w=O)==null?0:w.toString)?O.toString():""});return!1}};
Si[LU]=[eQT,_.Zh,_.gM(K9A)];_.UE=function(g,r){this.iconManager=g;this.iconsToFetch=r};
_.UE[LU]=[_.o3,_.gM(C5A)];var Pn4=function(){};var tU$=function(g,r,E){this.requestKey=g;this.pkB=r;this.kkK=E;this.s8u=function(){return new XMLHttpRequest};
this.dI1=void 0;this.hBi=[]};
tU$.prototype.getLatestChallengeResponse=function(){return this.kkK};
var MWw=function(g,r,E){var B,w,O,M;return _.q(function(u){if(u.nextAddress==1){_.tg("attestation_challenge_fetch");_.F4("att_fs",void 0,"attestation_challenge_fetch");if(!g.dI1)throw new _.nc(9,"Missing fetcher");return _.D(u,g.dI1(r,E),2)}B=u.yieldResult;O=(w=B)==null?void 0:w.bgChallenge;if(!O)throw new _.nc(15,"Missing field");g.kkK=B;g.hBi.forEach(function(l){l(B)});
M=gGl(O);_.F4("att_fc",void 0,"attestation_challenge_fetch");wjP("attestation_challenge_fetch");return u.return(M)})},tWw=function(g,r){var E,B,w,O,M;
return _.q(function(u){switch(u.nextAddress){case 1:E=new uD(100,3E5,.25,2),B=void 0;case 2:if(!(E.currBackoffCount_<10)){u.jumpTo(4);break}_.qN(u,5);if(!(E.currBackoffCount_>0)){u.jumpTo(7);break}return _.D(u,BvL(E.getValue()),7);case 7:return _.D(u,FnF(g,r),9);case 9:return w=u.yieldResult,u.return(w);case 5:O=_.G2(u);O instanceof _.nc?B=O:(M=O instanceof Error?O.message:"Unknown",B=new _.nc(9,M));HtU(E);u.jumpTo(2);break;case 4:if(B)throw B;throw new _.nc(9,"Unknown error");}})},FnF=function(g,
r){r=vUI(dOT(new yaT,r),g.requestKey);
var E=new _.uF,B=g.s8u();B.open("POST",g.pkB);B.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");B.setRequestHeader("Content-Type","application/json+protobuf");B.onload=function(){if(_.eUV(B)){var w=U06(B.responseText);E.resolve(w)}else E.reject(new _.nc(_.Z5X(_.Ur(B)),B.statusText))};
B.onerror=function(){E.reject(new _.nc(_.Z5X(_.Ur(B)),B.statusText))};
B.send(r.serialize());return E.promise};var WnM=function(g){this.networkStatusManager=g;this.isDownloaded=Ezt===void 0?function(){return!1}:Ezt;
this.isReady=!1;this.mVz=e4M(this)},e4M=function(g){var r;
return _.q(function(E){if(E.nextAddress==1)return _.D(E,b5L(),2);if(E.nextAddress!=3)return r=E.yieldResult,_.D(E,YMn(r),3);g.i4=E.yieldResult;Syl(g.i4).then(function(){g.isReady=!0});
return E.return(g.i4)})},CnM=function(g,r,E){g.i4?(g=g.i4.fqy({zp:E,
nmx:!0,mGi:!0}),r.serviceIntegrityDimensions={poToken:g}):_.tn(Error("rj"))};
WnM.prototype.processContext=function(g){var r=this;if(!g.input.match(_.yp(MtI)))return _.I1();var E=g.innerTubeRequest,B=E.videoId;return!B||this.isDownloaded(E)||this.networkStatusManager&&!this.i4&&!this.networkStatusManager.isNetworkAvailable()?_.I1():this.i4?this.isReady?(CnM(this,E,B),_.I1()):new NC(Syl(this.i4).then(function(){CnM(r,E,B)})):new NC(this.mVz.then(function(w){return _.q(function(O){if(O.nextAddress==1)return _.D(O,Syl(w),2);
CnM(r,E,B);_.Q3(O)})}))};var KnD=new _.Vn("WEB_PO_CONTEXT_PROCESSOR");var xzg=function(g,r){var E=this;this.eZK=0;var B;this.cKt=(B=r==null?void 0:r.cKt)!=null?B:window;this.networkStatusManagerPromise=r==null?void 0:r.networkStatusManagerPromise;var w;this.requestKey=(w=r==null?void 0:r.requestKey)!=null?w:_.Sg("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var O;this.je5=(O=r==null?void 0:r.je5)!=null?O:function(l){return new Je(l)};
var M;B=(M=r==null?void 0:r.wFu)!=null?M:function(l,Q,z){return new tU$(l,Q,z)};
this.bgChallenge=gGl(g.bgChallenge);this.ttlSeconds=rUB(hl(g.challenge||""));this.gH=B(this.requestKey,_.Y("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.ED.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",g);wtS(this.gH);var u;this.bKJ=(u=r==null?void 0:r.bKJ)!=null?u:function(l){_.j_(E.cKt.document,"visibilitychange",function(){E.cKt.document.visibilityState===
"visible"&&l()})}},X6z=function(g){if(!g.hm){var r={maxAttempts:5,
vyV:g.ttlSeconds*1E3};OAl(g.cKt);g.hm=g.je5({gH:g.gH,dfg:{disable:_.Y("html5_web_po_disable_remote_logging"),hL:"aGIf",wp6:bkt("html5_web_po_experiment_ids"),cem:_.Y("wpo_dis_lfdms")?0:1E3,zmm:function(B){var w=MKT.get(B);w||(w=new UZm(B),w=new GP(w),MKT.set(B,w));return w}},
xo2:r,vJE:g.bgChallenge,dmB:Ukl});g.eZK=Date.now();BhZ(g.hm,function(){g.eZK=Date.now()});
FKX(g.hm,function(){return _.q(function(B){return B.return(aIF(g))})});
var E=g.hPB.bind(g);g.networkStatusManagerPromise&&g.ttlSeconds>0&&g.networkStatusManagerPromise.then(function(B){B.listen("publicytnetworkstatus-online",E)});
g.bKJ(E)}};
xzg.prototype.hPB=function(){if(Date.now()>this.eZK+this.ttlSeconds*1E3){var g;(g=this.hm)==null||Efw(g)}};
var aIF=function(g){if(g.jWi)return g.jWi;if(!g.hm)throw Error("sj");g.jWi=new ew({hm:g.hm,gH:g.gH,vWm:!0,onError:Ukl});return g.jWi},qyl=function(g,r){g=new xzg(g,r);
X6z(g);aIF(g)};var Mp=function(g,r){this.store=g;this.queue=[];r==null||r.addEventListener("yt-navigate-start",this.reset.bind(this))};
Mp.prototype.enqueue=function(g){var r=g.command,E=g.durationMs,B=g.elementToFocus;var w=g.label;var O=g.elementToFocus;g.command?w=_.zn("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:w,shortcut:_.zn("SHIFT_PLUS_ENTER")}):O&&(g=w+". "+_.zn("SHIFT_PLUS_ENTER")+" for more information.",w=_.zn("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:w,shortcut:_.zn("SHIFT_PLUS_ENTER")},g));E={announcement:w,durationMs:E!=null?E:8E3};r?E.command=r:B&&(B.classList.add("ephemeral-action-focusable-element"),E.selector=B.tagName+
".ephemeral-action-focusable-element");this.queue.push(E);NAt(this)};
Mp.prototype.activate=function(g){var r=_.zWQ(this.store.getState());if(r){if(r==null?0:r.command)_.a3(r.command),this.store.dispatch(BIT(null));if(r==null?0:r.selector)r=document.querySelector(r.selector),_.Zlt(r);g.preventDefault()}};
var NAt=function(g){if(!_.zWQ(g.store.getState())&&g.queue.length){var r=g.queue.shift();r&&(g.previousAnnouncement===r.announcement&&(r.announcement+="\u00a0"),g.store.dispatch(BIT(r)),g.previousAnnouncement=r.announcement,g.timeoutId=setTimeout(function(){if(r.selector){var E;(E=document.querySelector(r.selector))==null||E.classList.remove("ephemeral-action-focusable-element")}g.store.dispatch(BIT(null));NAt(g)},r.durationMs))}};
Mp.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(BIT(null));this.queue.length=0;this.timeoutId=void 0};
Mp[LU]=[_.e2,_.pB];_.qp=new _.Vn("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var IIL=window.AbortController||pkZ;var mzL=new _.Vn("AUTH_SERVICE_TOKEN");var DkJ=_.me(["about:blank"]),lRX;var uH=new _.Vn("API_IFRAME_TOKEN"),cDM=new _.Vn("FETCH_FN_TOKEN"),iw6=new _.Vn("PARSE_FN_TOKEN"),LnM=new _.Vn("WINDOW_REQUEST_TOKEN"),VU6=new _.Vn("TEXT_DECODER_TOKEN");var qYn;qYn=new _.Vn("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.h45=new _.Vn("MISC_UI_SHARED_FLAGS_TOKEN");var ZwL=function(){};
ZwL.prototype.getFlag=function(g){if(g.configType!==2)throw Error("tj");return yDD(g)};
var yDD=function(g){switch(g.flagType){case "bool":return _.Y(g.flagName);case "int":return _.hD(_.wM(g.flagName));case "double":return _.wM(g.flagName);case "string":return _.Sg(g.flagName);case "int32_list":return bkt(g.flagName);case "int64_list":return bkt(g.flagName).map(function(r){return _.hD(r)});
case "string_list":return _.Or(g.flagName);default:throw Error("uj");}};var lH=function(g,r,E){r=r===void 0?{}:r;$7.call(this,E===void 0?"uninitialized":E);this.env=g;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}];r.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=r.shouldWaitOnAsyncImmediate)};
_.f(lH,$7);lH.prototype.init=function(g){var r=this,E;return _.q(function(B){if(B.nextAddress==1)return r.processPluginOptions.shouldWaitOnAsyncImmediate?_.D(B,g(r.env),2):(g(r.env),B.jumpTo(2));if(B.nextAddress!=4)return r.jobSet?_.D(B,r.jobSet.completedResolver.promise,4):B.jumpTo(4);E=_.ep();E.parkOrScheduleJob(function(){r.transition("rendering")},10,"ci");
_.Q3(B)})};
lH.prototype.initialRender=function(g){var r=this,E;return _.q(function(B){if(B.nextAddress==1)return r.processPluginOptions.shouldWaitOnAsyncImmediate?_.D(B,g(r.env),2):(g(r.env),B.jumpTo(2));if(B.nextAddress!=4)return r.jobSet?_.D(B,r.jobSet.completedResolver.promise,4):B.jumpTo(4);E=_.ep();E.parkOrScheduleJob(function(){r.transition("rendered")},10,"cr");
_.Q3(B)})};
lH.prototype.afterRenderImmediate=function(g){var r=this,E;return _.q(function(B){if(B.nextAddress==1)return r.processPluginOptions.shouldWaitOnAsyncImmediate?_.D(B,g(r.env),2):(g(r.env),B.jumpTo(2));if(B.nextAddress!=4)return r.jobSet?_.D(B,r.jobSet.completedResolver.promise,4):B.jumpTo(4);E=_.ep();E.parkOrScheduleJob(function(){r.transition("after-render-deferred")},10,"carml");
_.Q3(B)})};
lH.prototype.afterRenderDeferred=function(g){var r=this;return _.q(function(E){g(r.env);_.Q3(E)})};var vb8;_.W0("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});vb8={};_.dz8=(vb8.CSI=ptc(),vb8.ECATCHER=HAL(),vb8);var TA4={},gt5=(TA4.rendered={priority:0,callback:function(g){m_D(g.injector.resolve($K))}},TA4);var D$l=new _.Vn("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),r8D=new _.Vn("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var Et5=function(g){this.callbackFnMap=g;this.configMap={}};
Et5.prototype.handleResponse=function(g){var r;g=(r=g.responseContext)==null?void 0:r.serviceTrackingParams;r=_.U(g);for(g=r.next();!g.done;g=r.next()){g=g.value;var E=g.params,B=g.service;if(E&&B){this.configMap[B]||(this.configMap[B]=new CI6);g=this.configMap[B];var w=void 0,O=(w=this.callbackFnMap)==null?void 0:w[B];E=_.U(E);for(B=E.next();!B.done;B=E.next())w=B.value,B=w.key,w=w.value,B&&w&&(g.set(B,w),O&&O(B,w))}}};
Et5[LU]=[_.gM(r8D)];var Bgg=!1,fRc=0,Yyo=null,sEJ=null;var wFF=new _.Vn("NETWORK_SLI_TOKEN");var SM6=function(g,r,E,B,w){this.networkSli=g;this.fetchFn=r;this.parseFn=E;this.requestFn=B;this.JSC$16459_textDecoder=w};
SM6.prototype.fetch=function(g,r,E){var B=this,w,O,M;return _.q(function(u){w=ODm(B,g,r);M=(O=B.fetchFn)!=null?O:fetch;return u.return(M(w).then(function(l){return B.handleResponse(l,E)}).catch(function(l){_.el(l);
if((E==null?0:E.expectJsonStrict)&&l instanceof zR&&l.errorType===1)return Promise.reject(l)}))})};
var qpm=function(g,r,E,B){var w,O,M,u,l,Q,z;return _.q(function(k){switch(k.nextAddress){case 1:return w=ODm(g,r,E),_.qN(k,2),_.D(k,fetch(w),4);case 4:O=k.yieldResult;_.Ne(k,3);break;case 2:throw _.G2(k),new zR(2,"Failed to parse streaming response",w.url);case 3:if(!O.redirected&&!O.ok)throw(M=g.networkSli)==null||M.failure(),new _.Rj("Streaming fetch request not ok",w.url);if(!O.body)throw new _.Rj("No response body in streaming response",w.url);u={};if(_.Y("web_streaming_fast"))return l=O.body.getReader(),
k.return(UMM(g,l,u,B));Q=O.body.pipeThrough(new TextDecoderStream).getReader();z=new _.TA;return k.return(Mv6(g,Q,z,oOB,u,B))}})},ODm=function(g,r,E){if(g.networkSli){var B=_.lc(_.vE(r,"key"))||"/UNKNOWN_PATH";
g.networkSli.start(B)}B=E;_.Y("wug_networking_gzip_request")&&(B=IzS(E));var w;return new ((w=g.requestFn)!=null?w:window.Request)(r,B)},UMM=function(g,r,E,B){var w,O,M,u,l,Q,z,k,H,R,A;
return _.q(function(J){switch(J.nextAddress){case 1:w=g.JSC$16459_textDecoder?new g.JSC$16459_textDecoder("utf-8"):new TextDecoder("utf-8"),O="",M=function(e){e=e.trim();e.length!==0&&e!=="]"&&e!=="["?(e.startsWith("[")&&(e=e.substring(1)),e.endsWith("]")&&(e=e.slice(0,-1)),e.endsWith(",")&&(e=e.slice(0,-1)),e=e.trim()):e=void 0;if(e)try{var C=JSON.parse(e);oOB(E,C);B==null||B(E,C)}catch(X){throw new zR(1,"Failed to parse streaming response",e);}},_.qN(J,2,3);
case 5:return _.D(J,r.read(),8);case 8:u=J.yieldResult;l=u.value;if(Q=u.done)return O.length>0&&M(O),z=void 0,(z=g.networkSli)==null||z.success(),J.return(E);O+=w.decode(l,{stream:!0});k=O.split("\n");O=k.pop()||"";H=_.U(k);for(R=H.next();!R.done;R=H.next())A=R.value,M(A);J.jumpTo(5);break;case 3:_.uY(J);r.releaseLock();_.oF(J,0);break;case 2:throw _.G2(J),new zR(1,"Failed to parse streaming response");}})},Mv6=function(g,r,E,B,w,O){var M,u,l,Q,z,k,H,R,A;
return _.q(function(J){if(J.nextAddress==1)return _.D(J,r.read(),2);M=J.yieldResult;u=M.value;if(l=M.done)return(Q=g.networkSli)==null||Q.success(),J.return(w);try{z=E.parse(u)}catch(e){throw new zR(1,"Failed to parse streaming response",u);}if(z!=null)for(k=_.U(z),H=k.next();!H.done;H=k.next())R=H.value,B(w,R),A=void 0,(A=O)==null||A(w,R);return J.return(Mv6(g,r,E,B,w,O))})};
SM6.prototype.handleResponse=function(g,r){var E,B=(E=this.parseFn)!=null?E:JSON.parse;E=g.text().then(function(w){if((r==null?0:r.jspbResponseCtor)&&g.ok)return BkD(r.jspbResponseCtor,w);w=w.replace(")]}'","");if((r==null?0:r.expectJsonStrict)&&w)try{var O=B(w)}catch(u){throw new zR(1,"JSON parsing failed after fetch");}var M;return(M=O)!=null?M:B(w)});
g.redirected||g.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),E=E.then(function(w){_.el(new _.Rj("Error: API fetch failed",g.status,g.url,w));return Object.assign({},w,{errorMetadata:{status:g.status}})}));
return E};
SM6[LU]=[_.gM(wFF),_.gM(cDM),_.gM(iw6),_.gM(LnM),_.gM(VU6)];var qMz=new _.Vn("NETWORK_MANAGER_TOKEN");var u$g=[1,2,4,8,16,30],DMg=function(g){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=g.maxTimeMs;this.maxFrameCount=g.maxFrameCount===void 0?Math.ceil(60*g.maxTimeMs/1E3):g.maxFrameCount;g=_.U(u$g);for(var r=g.next();!r.done;r=g.next())this.brokenFrameSummarizers.push(new l45(r.value/60*1E3))},otD=function(g){var r=g.frameCountInternal>=g.maxFrameCount;
return g.elapsedTimeMs>=g.maxTimeMs||r},GLD=function(g){for(var r=[],E=_.U(g.brokenFrameSummarizers),B=E.next();!B.done;B=E.next())B=B.value,B=B.brokenFrameCount!==0?{severityMs:Math.round(B.targetFrameTimeMs),
eventCount:B.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(B.averageDurationBetweenEventsMs)}:void 0,B&&r.push(B);return{summaries:r,monitoringDurationMs:Math.round(g.elapsedTimeMs)}};
_.hx.Object.defineProperties(DMg.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 l45=function(g){this.targetFrameTimeMs=g;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.hx.Object.defineProperties(l45.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var QAv=function(){};
QAv.prototype.start=function(g,r){var E=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var B=new DMg({maxTimeMs:g});this.monitor=B;this.lastSummaryInternal=void 0;this.metadataToLog=r;return new Promise(function(w){var O=function(M){if(M===void 0)E.stop(),w(void 0);else if(E.monitor!==B)M=Object.assign({},GLD(B),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),w(M);else{var u=E.monitor;if(!otD(u)){u.frameCountInternal++;if(u.prevTime===void 0)u.startTime=
M;else for(var l=M-u.prevTime,Q=_.U(u.brokenFrameSummarizers),z=Q.next();!z.done;z=Q.next()){z=z.value;var k=z.currTimeMs;z.currTimeMs+=l;l>z.targetFrameTimeMs+2&&(z.brokenFrameCount++,z.timeOfFirstBrokenFrameMs===void 0&&(z.timeOfFirstBrokenFrameMs=k),z.timeOfLastBrokenFrameMs=k)}u.prevTime=M}otD(E.monitor)?w(E.stop()):_.F6.addJob(O,5,0)}};
_.F6.addJob(O,5,0)})};
QAv.prototype.stop=function(g){if(!this.monitor)return this.lastSummaryInternal;var r=Object.assign({},GLD(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(r.monitoringDurationMs){g=g!=null?g:this.metadataToLog;var E={droppedFramesSummary:r,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};g&&(E[g.type]=g.data);_.Jn("manualSmoothnessMeasurement",E)}this.monitor=void 0;this.lastSummaryInternal=r;this.metadataToLog=void 0;return r};_.zz8=new _.Vn("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var kLA;kLA=function(g){this.JSC$16482_expiringStorage=new sr(g)};
_.HD$=function(g){if(_.$kS()&&(g=_.krJ(_.p3()+"::"+g)))return new kLA(g)};
kLA.prototype.set=function(g,r,E){E=E!==void 0?Date.now()+E:void 0;this.JSC$16482_expiringStorage.set(g,r,E)};
kLA.prototype.get=function(g){return this.JSC$16482_expiringStorage.get(g)};
kLA.prototype.remove=function(g){this.JSC$16482_expiringStorage.remove(g)};var pF8=new _.Vn("SESSION_STORAGE");_.Dr=function(){};
_.Dr.getInstance=function(){var g=_.XS("ytglobal.storage_");g||(g=new _.Dr,_.vN("ytglobal.storage_",g));return g};
_.Dr.prototype.estimate=function(){var g,r,E;return _.q(function(B){g=navigator;return((r=g.storage)==null?0:r.estimate)?B.return(g.storage.estimate()):((E=g.webkitTemporaryStorage)==null?0:E.queryUsageAndQuota)?B.return(jEL()):B.return()})};
_.vN("ytglobal.storageClass_",_.Dr);var IRQ=!!(ZP[1]>>14&1);var evL=0;var NvQ=!1;var YMm=_.me(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),RzM=_.me(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var sWD={"/":_.oH,"/?feature=ytca":_.oH,"/feed/downloads":_.DwV};var DP=function(g,r,E){this.JSC$16498_upliftPromise=g;this.store=r;this.JSC$16498_persistentStorePromiseAccessor=E};
DP.prototype.shouldPreferLocalResponse=function(g){return g.browseId==="FEdownloads"||g.browseId==="FEsmart_downloads"&&_.Y("kevlar_modern_downloads_page")?!0:!1};
DP.prototype.localInnertubeResponse=function(g){var r=this;return _.q(function(E){return g.browseId==="FEdownloads"?_.Y("kevlar_modern_downloads_page")?E.return(ntt(r)):E.return(sA4(r)):g.browseId==="FEsmart_downloads"&&_.Y("kevlar_modern_downloads_page")?E.return(f4t(r)):E.return(Promise.reject(Error("wj")))})};
DP.prototype.canProvideFallbackResponse=function(){return!0};
DP.prototype.localFallbackInnertubeResponse=function(g){var r=this,E,B,w;return _.q(function(O){switch(O.nextAddress){case 1:return _.D(O,r.JSC$16498_persistentStorePromiseAccessor(),2);case 2:E=O.yieldResult;if(g.browseId!=="SPaccount_downloads"||!E){O.jumpTo(3);break}return _.D(O,rSY(E),4);case 4:if(B=O.yieldResult)return O.return(_.Bv(B));case 3:return g.browseId==="FEwhat_to_watch"?O.return($ML(r)):(w=_.Y("web_offline_continuation_automatic_retry")||_.Y("web_offline_continuation_retry_button"))&&
g.continuation?O.return(jA6(r)):O.return(A8v(r))}})};
var $ML=function(g){var r;return _.q(function(E){if(E.nextAddress==1)return _.D(E,g.JSC$16498_upliftPromise,2);r=_.gTX(g.store.getState().entities);return r.length?E.return(bDA(g,r)):E.return(A8v(g))})},sA4=function(g){var r,E;
return _.q(function(B){if(B.nextAddress==1)return _.D(B,g.JSC$16498_upliftPromise,2);if(B.nextAddress!=3)return r=J85([{offlineItemSectionRenderer:{}}]),_.D(B,Pmv(g,r),3);E=B.yieldResult;E.onResponseReceivedActions=[s0("REFRESH_DOWNLOADS")];return B.return(E)})},ntt=function(g){var r,E,B,w,O,M,u,l,Q,z,k,H,R,A,J,e;
return _.q(function(C){if(C.nextAddress==1)return _.D(C,g.JSC$16498_upliftPromise,2);if(C.nextAddress!=3)return r=g.store.getState(),E=r.entities,B=_.j9(E),w=_.Aj(E),O=_.PwB(r),M=_.J9S(r),u=_.tfo(r),l=_.Byt(E),Q=_.YD(B),z=_.b1(E),k=_.UCL(E),H=_.e0X(r),R=_.e9(r),A={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.$wl(B,w,l,k,O,M,Q,z,u,H,R),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},J=_.zn("DOWNLOADS",void 0,"Downloads"),
_.D(C,tv8(g,A,J),3);e=C.yieldResult;e.onResponseReceivedActions=[s0("REFRESH_DOWNLOADS")];return C.return(e)})},f4t=function(g){var r,E,B,w,O,M,u,l,Q;
return _.q(function(z){if(z.nextAddress==1)return _.D(z,g.JSC$16498_upliftPromise,2);if(z.nextAddress!=3)return r=g.store.getState(),E=r.entities,B=_.j9(E),w=_.YD(B),O=_.b1(E),M={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.ArS(B),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},u=_.zn("SMART_DOWNLOADS",void 0,"Smart downloads"),l=ssX(w,O),_.D(z,tv8(g,M,u,l),3);Q=z.yieldResult;Q.onResponseReceivedActions=[s0("REFRESH_DOWNLOADS")];
return z.return(Q)})},A8v=function(g){var r,E;
return _.q(function(B){if(B.nextAddress==1)return _.D(B,E8(g.JSC$16498_upliftPromise,g.store),2);r=B.yieldResult;E=J85([vGV(r)]);return B.return(Pmv(g,E))})},jA6=function(g){var r,E,B,w;
return _.q(function(O){if(O.nextAddress==1)return r={},E=g.store.getState().continuation.continuationCommand,_.FI(r,_.x3,E),_.D(O,E8(g.JSC$16498_upliftPromise,g.store,r,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);B=O.yieldResult;w={};_.FI(w,_.XLn,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:B}}}],targetId:"browse-feedFEwhat_to_watch"});return O.return({responseContext:{},onResponseReceivedActions:[w]})})},J85=function(g){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:g}}}}]}}},bDA=function(g,r){var E,B;
return _.q(function(w){var O={contents:f0(r)};E=O&&O.contents?O:{};_.Y("kevlar_modern_downloads_page")&&(E=Object.assign({},_.bJl(r),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));B={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:E}}}]}};return w.return(Pmv(g,B))})},Pmv=function(g,r){var E,B;
return _.q(function(w){if(w.nextAddress==1)return _.D(w,g.JSC$16498_persistentStorePromiseAccessor(),2);if(w.nextAddress!=3)return E=w.yieldResult,_.D(w,wx(E),3);B=w.yieldResult;return w.return({responseContext:{},contents:r,topbar:B})})},tv8=function(g,r,E,B){var w,O;
return _.q(function(M){if(M.nextAddress==1)return _.D(M,g.JSC$16498_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3)return w=M.yieldResult,_.D(M,wx(w),3);O=M.yieldResult;var u=M.return;var l=B;l=l===void 0?"":l;l={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:E}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.zn("SETTINGS",void 0,"Settings"),accessibilityText:_.zn("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:dX("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:l}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:E};
return u.call(M,{responseContext:{},contents:r,topbar:O,header:{pageHeaderRenderer:l}})})};var F6$=function(){this.moduleRegistry={};this.fetchCount=0};
F6$.prototype.isFetching=function(){return this.fetchCount>0};
var Wv=function(g,r){g.moduleRegistry[r.toString()]={asyncId:r,isFetching:!1};return g};
F6$.prototype.JSC$16509_loadModules=function(){for(var g=this,r=new Map,E=[],B=_.U(_.fI.apply(0,arguments)),w=B.next();!w.done;w=B.next()){w=w.value;var O=this.moduleRegistry[w];O?O.resolver?r.set(w,O.resolver):(O.resolver=new _.uF,r.set(w,O.resolver),E.push(O.asyncId),O.isFetching=!0):(O=new _.uF,r.set(w,O),O.resolve(void 0))}E.length&&(this.fetchCount+=1,_.Y$(_.rV.getMultipleAsync.apply(_.rV,_.jW(E)).then(function(M){for(var u=0;u<E.length;u++){var l=M[u],Q=g.moduleRegistry[E[u].toString()];Q.isFetching=
!1;Q.resolver.resolve(l)}}).catch(function(M){for(var u=_.U(E),l=u.next();!l.done;l=u.next()){l=l.value;
var Q=g.moduleRegistry[l.toString()];Q.resolver=void 0;Q.isFetching=!1;r.get(l.toString()).reject(M)}}),function(){--g.fetchCount}));
return Promise.all([].concat(_.jW(r.values())).map(function(M){return M.promise}))};_.CZ=new _.Vn("MODULE_REGISTRY_TOKEN");var ezM={},W6D=(ezM.rendered={priority:0,callback:function(g){a:{var r=void 0;try{var E;b:{if(_.BDl()){var B=_.z6D(_.p3()+"::pom");if(B){var w=new nB(B);break b}}w=void 0}var O=(E=w)==null?void 0:E.get("role_text");if(!O)break a;r={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:O}]}}}}}}catch(l){}r&&g.injector.resolve(_.Er).resolveCommand(r)}try{var M=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(M){var u=JSON.parse(M);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
u&&g.injector.resolve(_.Er).resolveCommand(u)}}catch(l){}}},ezM);var CmM,K6$={},xMv=(K6$.initialized={priority:10,callback:function(){CmM=Rx()}},K6$.rendering={callback:function(g){var r;
return _.q(function(E){if(E.nextAddress==1)return _.D(E,CmM,2);r=E.yieldResult;if(!r.endpoint)throw Error("yj`"+_.ED.location.href);$I(g,r);_.Q3(E)})}},K6$);var a45={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.jW(_.Y("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(g){var r=g.stack;if(r.includes("chrome://")||r.includes("chrome-extension://")||g.message.includes("chrome-extension://")||r.includes("moz-extension://")||r.includes("local.adguard.org")||r.includes("auctioneer3.50million.club")||r.includes("youtubedownloader")||r.includes("youtube_home_page")||r.includes("is_youtube_video_no_longer_available")||
r.includes("switchScreenSizeHack")||r.includes("yt_main_big_banner.js")||r.includes("YouTubeCenter.js")||r.includes("/mytube.js")||r.includes("JSON.parseWrapper")||r.includes("/inj_js/common.js")||r.includes("firebug-lite")||r.includes(".repl.co/")||r.includes("linkfix")||r.includes("playAfterAd")||g.message.includes("Access is denied for this document")&&r.includes("<anonymous>")||g.fileName==="user-script"||g.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
r.includes("<anonymous>"))return!0;if(r.includes("https://www.youtube.com"))return!1;g=r.split("\n");if(!g.length)return!1;if(g.length<=3&&r.includes("s.onloadeddata"))return!0;r=0;for(var E=_.U(g),B=E.next();!B.done;B=E.next())B=B.value,(B.includes("https://")||B.includes("http://"))&&r++;return r/g.length>.95},
weight:0},{callback:function(g){return g.message==="Unknown Error"&&g.name.indexOf("NS_")===0},
weight:100},{callback:function(g){if(!_.SI)return!1;var r=g.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||g.message.includes("available to complete this operation"),E=g.stack.includes("webcomponents")&&g.message==="Object doesn't support this action";g=g.message.includes("object that does not implement interface Element");return r||E||g},
weight:0},{callback:function(g){return g.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(g){return g.message==="Operation is not supported"&&(g.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(g){return g.stack.includes("eval code (eval (code:1:1)")||g.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(g){return g.message.includes("Permission denied")&&g.stack.includes("this.domHandler")?!0:g.name.includes("TypeError")&&g.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(g){if(!g.stack)return!1;var r=g.stack.trim().split("\n");r.length&&r[0].endsWith("Error: "+g.message)&&r.shift();r.length&&r[r.length-1].includes("at window.onerror (")&&r.pop();if(!r.length)return!0;if(g.message==="Script error.")return r[0].includes("www.youtube.com")||r.length>=2&&r[0].startsWith("at new")&&r[1].startsWith("at window.onerror");if(g.message==="Unexpected token")return!0;g=_.U(r);for(r=g.next();!r.done;r=g.next())if(r=r.value,!(r.includes("<anonymous>")||
r.startsWith("load@")||r.startsWith("global code@")||r.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(g){return g.message==="Cannot read property 'experiments'"&&g.stack.includes("/s/player/")},
weight:500},{callback:function(g){return g.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(g){return g.stack.includes("/embed.js")?(g.params&&g.params&&(g.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.Y("use_error_suppression"))var g=_.Ca("SUPPRESS_CLIENT_ERRORS",!1);else{if(g=_.uR)g=/Chrome\/(\d+)/.exec(_.kc()),g=(g?parseFloat(g[1]):NaN)>=66;g=!(g||_.qE&&_.ME(65)||_.WN&&_.ME(12.1)||Zx&&_.ME(79))}return g},
weight:500}]};var XFD={},NgM=(XFD.initialized={priority:10,callback:function(g){g.injector.addProvider({provide:BED,useValue:g.root});g.injector.addProvider({provide:QX6,useValue:oPl});g.injector.addProvider({provide:zPv,useValue:a45});var r={};g.injector.addProvider((r.provide=kS5,r.useFactory=function(E,B){return function(){Q5l(E,B)}},r[LU]=[QX6,
zPv],r));g.injector.addProvider({provide:Un,useClass:Un})}},XFD);var I46={},mM8=(I46.initialized={priority:3,callback:function(){var g;if(g=qQl()){g=g.replace("/",".");var r=_.pu();r.set("tz",g);r.save();g=!0}else g=!1;g||(g=_.pu(),g.set("utco",-Math.floor((new Date).getTimezoneOffset())),g.save())}},I46);var c86={},iD6=(c86.initialized={priority:10,callback:function(g){g.injector.resolve(Un).start();g=_.iF();var r=_.Ka("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.Ka("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.Ka("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.Ka("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.MS(_.WCQ(),{mainAppWeb:Object.assign({},g,{pageType:r})});_.MS(KCQ(),{mainAppWeb:Object.assign({},g,{pageType:r})});
_.MS(xnl(),{mainAppWeb:g});_.MS(afL(),{mainAppWeb:g});rpw(function(){_.qS(xnl(),"FAILURE");_.qS(afL(),"FAILURE")});
B7S();weV();Vto()}},c86);var L6z={},VvD=(L6z.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.F4("dl"),_.ep().processSignal("pcl");else{var g=function(){_.F4("dl");_.ep().processSignal("pcl");window.removeEventListener("load",g)};
window.addEventListener("load",g)}}},L6z);var hz5={},ZDz=(hz5.rendering={priority:0,callback:function(){var g=_.ep();g.parkOrScheduleJob(function(){g.processSignal("eocs")},10,"eor",5E3)}},hz5);var y8M=function(){};
_.f(y8M,CH);
y8M.prototype.resolveCommand=function(g,r){var E,B,w,O,M,u,l,Q;return _.q(function(z){w=(E=_.n(g,_.AhT))==null?void 0:(B=E.dialog)==null?void 0:B.commentReplyDialogRenderer;if(!w)throw new _.Rj("No dialog in createCommentReplyDialogEndpoint");M=(O=r.form)==null?void 0:O.event;if(!M)throw new _.Rj("Event not passed in when resolving command");u=_.U(M.composedPath());for(l=u.next();!l.done;l=u.next())if(Q=l.value,Q.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||Q.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return Q.showReplyDialog(w),z.return();
_.Q3(z)})};var o_=function(g){this.pageRequestService=g;this.JSC$16524_prefetchCoordinator=Ecz()};
_.f(o_,CH);o_.prototype.resolveCommand=function(g){var r=this,E,B,w,O;return _.q(function(M){if(M.nextAddress==1){E=_.n(g,UP6);if((B=E)==null||!B.taskId)throw Error("zj");w=E.taskId;_.qN(M,2);return _.D(M,_.OHw(r.pageRequestService,g,{},"").then(function(u){if(!u)throw Error("Aj");},function(u){throw Error("Bj`"+u);
}),4)}if(M.nextAddress!=2)return SD6(r.JSC$16524_prefetchCoordinator,w),_.Ne(M,0);
O=_.G2(M);iX(r.JSC$16524_prefetchCoordinator,w,O);_.Q3(M)})};
o_[LU]=[YI];var Gl=function(g){this.innertubeTransportService=g};
_.f(Gl,CH);Gl.prototype.resolveCommand=function(g){var r=this,E,B;return _.q(function(w){E=_.n(g,q7D);if(E.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||E.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")B=E.boolValue?2:1,_.h9.getInstance().setState(B,!0,!0);return _.D(w,_.cK(r.innertubeTransportService,g),0)})};
Gl[LU]=[_.Wo];var Q4={},vtA=(Q4.addToPlaylistEndpoint=vk(HM),Q4.addToToastAction=vk(pe),Q4.adsControlFlowOpportunityReceivedCommand=vk(g_),Q4.captionLanguageSelectActionCommand=vk(FK),Q4.captionPickerEndpoint=vk(er),Q4.changeMiniAppPlayStateCommand=vk(pT),Q4.changeTimelyActionVisibilityCommand=vk(H_),Q4.channelCreationFormEndpoint=vk(DU),Q4.clearLocationCommand=vk(kL),Q4.clearUrlParamCommand=vk(YL),Q4.copyLinkCommand=vk(ae),Q4.copyTextEndpoint=vk(BM),Q4.createCommentReplyDialogEndpoint=aCl(y8M),Q4.createPlaylistServiceEndpoint=
vk(XK),Q4.dismissDialogEndpoint=vk(nT),Q4.entityUpdateCommand=vk(Sr),Q4.feedbackEndpoint=vk(Mt),Q4.getAnswerCommand=vk(qob),Q4.getPaymentsClientTokenCommand=vk(ne),Q4.getTranscriptEndpoint=vk(YO),Q4.googlePaymentBillingCommand=vk(P_),Q4.googlePaymentPurchaseManagerCommand=vk(tw),Q4.hideEngagementPanelEndpoint=vk(sa),Q4.hideSnackbarCommand=vk(lM),Q4.insertRichSectionCommand=vk(G3),Q4.listMutationCommand=vk(Q$),Q4.logGtmCommand=vk(oe),Q4.notifyDropdownOptionSelectedCommand=vk(Re),Q4.openAdAllowlistInstructionCommand=
vk(_.r_),Q4.openOnePickAddVideoModalCommand=vk(Nt),Q4.persistSubscriptionsDisplayPreferencesCommand=vk(V$),Q4.pingingEndpoint=vk(Ea),Q4.playlistEditEndpoint=vk(mv),Q4.playlistVotingRefreshPopupCommand=vk(cM),Q4.refreshPanelEndpoint=vk(fT),Q4.saveImageToDeviceEndpoint=vk(w_),Q4.scrollToSectionEndpoint=aCl(uVA),Q4.seekToVideoTimestampCommand=vk(WM),Q4.selectCountryCommand=vk(h$),Q4.setCookieCommand=vk(ZU),Q4.setLocalStorageCommand=vk(oN),Q4.setPrefStorageEntryCommand=vk(vM),Q4.setSettingEndpoint=vk(Gl),
Q4.sfvAudioItemPlaybackCommand=vk(CT),Q4.shareImageCommand=vk(d_),Q4.sharingProviderDataCommand=vk(T3),Q4.showCaptionLanguageSelectActionCommand=vk(KT),Q4.showDialogCommand=vk(A$),Q4.showEngagementPanelEndpoint=vk(bK),Q4.showSheetCommand=vk(J$),Q4.showSnackbarCommand=vk(DA),Q4.showTransientPlayerScrimOverlayCommand=vk(xL),Q4.submitFormWithValidationFlowCommand=vk(lK),Q4.talkToRecsDeselectCommand=vk(GJ),Q4.talkToRecsNextCommand=vk(QO),Q4.talkToRecsSelectCommand=vk(zJ),Q4.talkToRecsUpdateTextCommand=
vk(kO),Q4.toggleEngagementPanelCommand=vk(PM),Q4.undoFeedbackEndpoint=vk(uK),Q4.updateEngagementPanelContentCommand=vk(t$),Q4.updateUrlParamCommand=vk(RN),Q4.verifyCommand=vk(DU),Q4.webNativeShareCommand=vk(gp),Q4.webSubmitFormCommand=vk(iK),Q4.ACK_PLAYABLES_3P_DATA_CONSENT=vk(rp),Q4.CANCEL_NAVIGATION=vk(Et),Q4.COPY_SHARE_URL=vk(B_),Q4.MINI_APP_EXIT_DIALOG_SEEN=vk(SQ),Q4.MINI_APP_OPEN_URL=vk(wp),Q4.REQUEST_MINI_APP_FULLSCREEN=vk(Ot),Q4.RESUME_NAVIGATION=vk(Ut),Q4.SHARE_PLAYABLE_WITH_HIGH_SCORE=vk(MY),
Q4.TELL_US_WHY=vk(qt),Q4);_.Y("web_enable_prefetching_videos_on_home")&&(vtA.prefetchWatchCommand=vk(o_),vtA.registerTasksCommand=vk(VQ));_.Y("enable_share_panel_navigation_logging_fix_on_web")&&(vtA.shareEntityServiceEndpoint=vk($L));var DFn=Object.assign({},vtA);var dMD={},Tg8=(dMD.initialized={priority:10,callback:qAL},dMD);var guA={},rBg=(guA.initialized={callback:function(g){var r={},E={};UiD().install((r.document_disposed={callback:function(){_.Y("finalize_all_timelines")?SZD():Jg();RvJ("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.HXc();var B=g.injector.resolve(Un);B.intervalId!==void 0&&(B.intervalId&&_.F6.cancelJob(B.intervalId),B.intervalId=void 0,--B.currentPartitionIndex,B=iXn(B),B>0&&TTA({mainAppWeb:_.iF(),survivalSli:{partitionMinute:B,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));c66(a1);Xd!=null&&
Xd.flush();SN&&SN.snapshotAndFlush();B=_.U(MKT.values());for(var w=B.next();!w.done;w=B.next())w.value.snapshotAndFlush()}},r),(E.flush_logs={callback:function(){_.Pf()}},E))}},guA);var EuD={},BkM=(EuD.rendered={priority:0,callback:function(){var g=new IDZ;g.increment("STARTED");if(_.Ca("LOGGED_IN")&&_.Ca("SERVER_VERSION")!=="test"&&_.Ca("SERVER_VERSION")!=="dev"&&!HLw()&&!kST()){g.increment("EXECUTING");var r=document.createElement("iframe");r.style.display="none";_.ey(r,2,_.nI("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.Ca("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(r);g.increment("DONE")}}},EuD);var wHA={},Slz=(wHA.rendered={callback:function(){Ecz().resume()}},wHA);var OtM={acknowledgeChannelTouStrikeCommand:fy(Ui),addToPlaylistServiceEndpoint:fy(wE),addToPlaylistEndpoint:fy(wE),addUpcomingEventReminderEndpoint:fy(nX),browseEndpoint:fy(xmb),channelCreationFormEndpoint:fy(gq),channelCreationServiceEndpoint:fy(rq),claimLegacyYoutubeChannelEndpoint:fy(NY),clearSearchHistoryEndpoint:fy(G0),clearWatchHistoryEndpoint:fy(Qz),commerceActionCommand:$a(jC),createBackstagePostEndpoint:fy(W_),createBroadcastCommand:fy(si),createCommentEndpoint:fy(yO),createCommentReplyEndpoint:fy(ZA),
createLiveChatPollEndpoint:fy(fX),createPlaylistServiceEndpoint:fy(SC),crossAccountChannelTransferEndpoint:fy(HC),deleteLiveChatMessageCommand:fy($W),deletePlaylistEndpoint:fy(Oc),deleteVideoEndpoint:fy(Rq),dismissalEndpoint:fy(Mi),feedbackEndpoint:fy(qi),flagEndpoint:fy(D6),getAccountSwitcherEndpoint:fy(kW),verifyCommand:fy(eQ),getAccountsListInnertubeEndpoint:fy(YW),getCommentsFromInboxCommand:fy(Ni),getDownloadActionCommand:fy(hN),getFlowCommand:$a(oS),getKidsBlocklistPickerCommand:fy(oq),getNotificationMenuEndpoint:fy(NOb),
getPaymentInstrumentsParamsCommand:fy(FF),getPaymentsClientTokenCommand:$a(jC),getPdgBuyFlowCommand:fy(Ec),getReportFormEndpoint:fy(GI),getSearchInVideoCommand:fy(kH),getAnswerCommand:fy(zI),getSurveyCommand:fy(YH),getTranscriptEndpoint:fy(fg),getPostVideoPreviewEndpoint:fy(Ke),decorateMessageEndpoint:fy(Ce),likeEndpoint:fy(Ei),liveChatActionEndpoint:fy(JN),liveChatEndpoint:fy(b7),liveChatItemContextMenuEndpoint:fy(j$),liveChatPurchaseMessageEndpoint:fy(PC),liveChatReplayEndpoint:fy(AN),manageLiveChatUserEndpoint:fy(FB),
metadataUpdateCommand:fy(aS),moderateLiveChatEndpoint:fy(e$),modifyChannelNotificationPreferenceEndpoint:fy(i7),notificationOptOutEndpoint:fy(LX),openSuperStickerBuyFlowCommand:fy(tN),performCommentActionEndpoint:fy(Le),playlistEditEndpoint:fy(Mg),playlistEditorEndpoint:fy(Uc),profileCardCommand:fy(RS),recordNotificationInteractionsEndpoint:fy(Vz),reelWatchEndpoint:fy(qg),refreshPanelEndpoint:fy(yz),removeUpcomingEventReminderEndpoint:fy(WC),resolveLocationCommand:fy(xW),revealBusinessEmailCommand:fy(IN),
searchEndpoint:fy(_.INn),sendLiveChatMessageEndpoint:fy(CX),sendLiveChatVoteEndpoint:fy(KX),setSettingEndpoint:fy(BC),shareEntityServiceEndpoint:$a(Oi),sharingProviderDataCommand:fy(pg),showEngagementPanelEndpoint:fy(vC),showMoreDrawerCommand:fy(T0),showSheetCommand:fy(gE),showDialogCommand:fy(dq),subscribeEndpoint:fy(wq),transcriptSubmitCaptionCorrectionCommand:fy(sc),undoFeedbackEndpoint:fy(l7),unsubscribeEndpoint:fy(S$),updateBackstagePostEndpoint:fy(aN),updateCommentEndpoint:fy(dp),updateCommentReplyEndpoint:fy(v_),
updateCommentsSettingsEndpoint:fy(TJ),updateCreatorChannelInnertubeCommand:fy(c_),updateKidsBlacklistEndpoint:fy(QQ),updateEngagementPanelContentCommand:fy(rE),updatePdgFeatureEnablementCommand:fy(B1),updatedMetadataEndpoint:fy(XB),validateChannelHandleCommand:fy(iM),updateChannelPageSettingsEndpoint:fy(mm),verifyAgeEndpoint:fy(Dm),watchEndpoint:$a(q9),whitelistEditEndpoint:fy($H),ypcCancelRecurrenceEndpoint:fy(Ao),ypcCompleteTransactionEndpoint:fy(bX),ypcFixInstrumentEndpoint:fy(P1),ypcGetCartEndpoint:fy(Jo),
ypcGetOffersEndpoint:fy(to),ypcHandleTransactionEndpoint:$a(eC),ypcLogWalletAnalyticDataEndpoint:fy(W1),ypcOffersEndpoint:fy(Cg),ypcPauseSubscriptionCommand:fy(Kg),ypcRedeemCodeEndpoint:fy(xH),ypcResumeSubscriptionCommand:fy(aq),ypcUpdateFopEndpoint:fy(P1)},zl={},Us6=(zl.GET_ACCOUNT_MENU=fy(pX),zl.GET_NOTIFICATIONS_MENU=fy(XGU),zl.GET_NOTIFICATIONS_INBOX=fy(IS),zl.GET_UNSEEN_NOTIFICATION_COUNT=fy(cC),zl.GET_USER_MENTION_SUGGESTIONS=fy(xO),zl.LOAD_GUIDE=fy(aN6),zl.SUBMIT_FEEDBACK=fy(u7),zl),k9={},
Mz8=(k9.CONTINUATION_REQUEST_TYPE_BROWSE=fy(Xw),k9.CONTINUATION_REQUEST_TYPE_SEARCH=fy(H1),k9.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=fy(lN),k9.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=fy(z0),k9.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=fy(hw),k9.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=fy(VO),k9.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=fy(lX),k9.CONTINUATION_REQUEST_TYPE_GET_PANEL=fy(Zm),k9),ql$={player:$a(q9),watchNext:fy(uN)},ujm={player:$a(q9),reelItemWatch:fy(qg),reelWatchSequence:fy(uX)},
la6={watchEndpoint:$a(Dl)},Ds5={commandEndpointMap:OtM,signalEndpointMap:Us6,continuationEndpointMap:Mz8,watchEndpointMap:ql$,reelWatchEndpointMap:ujm,streamingEndpointMap:la6};var out,G_g,Q8m,zKL={disableAllTransitions:(G_g=(out=window).matchMedia)==null?void 0:(Q8m=G_g.call(out,"(prefers-reduced-motion: reduce)"))==null?void 0:Q8m.matches,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}}]])};_.HQ=new _.Vn("VIEW_TRANSITION_MANAGER_TOKEN");var k_8=function(g){this.viewTransitionCoordinator=g;this.isBrowseTransitionEnabled=_.Sg("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.Y("web_thumbnail_to_watch_transition");this.isLearningJourneyTransitionEnabled=_.Y("enable_plj_landing_page");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.registerRootElement()};
k_8.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var g={};this.viewTransitionCoordinator.registerElement(document.documentElement,(g.slide="root-slide",g["lockup-to-watch"]="root-lockup-to-watch",g["learning-journey"]="root-learning-journey",g))}};
k_8[LU]=[Owg];var ukY={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 DTc=["videoPrimaryInfoRenderer","title"],oqQ=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var Htv;Htv=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.pHg=_.dG(function(g){g=_.y7(g,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var r=g.data,E=g.playlistData,B=g.expanded,w=g.onExpandClick,O=g.isReadyToResume,M=function(){var z;return!((z=E())==null||!z.contents)},u=function(){var z=E();
return z&&z.totalVideos&&z.currentIndex!==void 0?z.currentIndex+1+" / "+z.totalVideos:""};
g=_.HK(function(){_.pP(_.rM().resolve(_.ea));return!1});
var l=_.HK(function(){M()&&w&&w()}),Q={};
return _.G("ytd-miniplayer-info-bar",{class:_.QY("ytdMiniplayerInfoBarHost",(Q.ytdMiniplayerInfoBarHasPlaylistData=M,Q)),"on:click":l},_.G("div",{class:"ytdMiniplayerInfoBarContent"},_.G("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":g},_.G(_.hf,{text:function(){var z=r();var k=E();if(k==null?0:k.contents){var H;z=(H=_.rmP(k))==null?void 0:H.title}else z=z==null?void 0:z.miniplayerTitle;return QLt(z)},
noEndpoints:!0,ellipsisTruncate:!0})),_.G("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.G(_.p,{cond:O,then:function(){return _.G(rZZ,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:Htv})}}),_.G("h1",null,_.G(_.hf,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var z=r();var k=E();z=O()?{simpleText:_.zn("CONTINUE_WATCHING",void 0,"Continue watching")}:(k==null?0:k.contents)?k.titleText:z==null?void 0:z.miniplayerSubtitle;return QLt(z)},
noEndpoints:!0,ellipsisTruncate:!0})),_.G(_.p,{cond:function(){return!!u()&&!O()},
then:function(){return _.G("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.G("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.G("span",null,u))}}))),_.G(_.p,{cond:M,
then:function(){return _.G("div",{class:"ytdMiniplayerInfoBarExpand"},_.G(ZB,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(z){w&&(w(),z.stopPropagation())}}},
iconName:function(){return B()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"De");var YlM;YlM=_.dG(function(g){return _.G("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.G(ZB,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:g.onTap}},
iconName:"yt-icons:close"}))},"Ee");
_.RKM=_.dG(function(g){g=_.y7(g,{playabilityStatus:void 0,isDisabled:!1});var r=g.size,E=g.playabilityStatus,B=g.isDisabled,w=_.VI("div");g=_.U(_.Dk(void 0,void 0,"bJr0Se"));var O=g.next().value,M=g.next().value;g=_.Ch(_.oz);var u=!1,l=function(){return r().height<=0};
_.bQ(function(){var H=r(),R=l(),A=O();A&&!R&&A.setInternalSize(H.width,H.height)},"OUOyKb");
_.jS(function(){var H,R,A;return _.q(function(J){if(J.nextAddress==1){H=_.rM().resolve(_.ea);R=H.getPlayerElement();if(!H.isMiniplayerActive()||!R||!w.value)return J.return();R.appendTo(w.value);return _.D(J,R.getPlayerPromise(),2)}A=J.yieldResult;A.setSizeStyle(!1,!0);M(A);_.Q3(J)})});
_.J5(function(){Q()});
_.bQ(function(){var H=O();if(H)if(B()){var R=H.getPlayerState();(u=R===-1||R===1||R===3)&&H.pauseVideo()}else Q()},"KKHe5");
var Q=function(){if(u){u=!1;var H;(H=O())==null||H.playVideo()}},z=_.HK(function(){_.pP(_.rM().resolve(_.ea))}),k={};
return _.G("ytd-miniplayer-player-container",{class:_.QY("ytdMiniplayerPlayerContainerHost",(k.ytdMiniplayerPlayerContainerHidden=l,k.ytdMiniplayerPlayerContainerHostShortsPip=g,k)),style:_.Rl({width:function(){return r().width+"px"},
height:function(){return r().height+"px"}})},_.G("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:w}),_.G(_.p,{cond:function(){return!!E()&&!_.cSc(E())},
then:function(){return _.G(gMn,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var H;return((H=E())==null?void 0:H.errorScreen)||null},
status:function(){var H;return((H=E())==null?void 0:H.status)||null}})}}),_.G(_.p,{cond:B,
then:function(){return _.G("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":z},_.G(YlM,{onTap:function(){_.rM().resolve(_.ea).close()}}))}}))},"Fe");_.nu4=_.dG(function(g){var r=g.toastData;var E=_.VI("ytd-miniplayer-toast");g=_.U(_.Y3(function(){return!!r()}));
var B=g.next().value,w=g.next().value;g=_.U(_.Dk(!1,void 0,"xkrBze"));var O=g.next().value,M=g.next().value,u=function(){var z;return _.Vp((z=r())==null?void 0:z.data.title)};
_.Jk(function(){_.eP.requestAvailability();r()&&w(!1)});
var l,Q;_.bQ(function(){B()&&(_.Sh(E.value,"iron-announce",{text:r().label+" "+u()}),l&&_.F6.cancelJob(l),l=_.F6.addLowPriorityJob(function(){M(!0)},2500))},"OTdL1e");
_.bQ(function(){O()&&(Q&&_.F6.cancelJob(Q),Q=_.F6.addLowPriorityJob(function(){w(!1);M(!1)},300))},"yybqib");
g={};return _.G("ytd-miniplayer-toast",{el:E,class:_.QY("ytdMiniplayerToastHost",(g.ytdMiniplayerToastOpening=function(){return B()},g.ytdMiniplayerToastClosing=function(){return O()},g))},_.G(_.p,{cond:function(){var z;
return(z=r())==null?void 0:z.data},
then:function(z){return _.G(qIw,{className:"ytdMiniplayerToastThumbnail",data:z,width:78})}}),_.G("div",{class:"ytdMiniplayerToastInfo"},_.G("div",{class:"ytdMiniplayerToastLabel"},function(){var z;
return(z=r())==null?void 0:z.label}),_.G("div",{class:"ytdMiniplayerToastTitle"},u)))},"Ge");var $TS;var b8S=null;var fa8=_.dG(function(g){var r=g.progressState;var E=g.multiMarkersPlayerBarRenderer;var B=g.progressBarWidth;var w=function(){return FsY(E())},O=function(){return CCP(r())},M=function(){return B()*(r().playedTime/r().videoDuration)};
return _.G("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.G(_.Ra,{each:w},function(u,l){return _.G(s8g,{modifiedProps:O,chapters:w,index:l,playedProgressWidth:M,backgroundGradientPosition:function(){var Q=O(),z=w(),k=l(),H=M();return(Q.playedTime-Pv(_.n(z[k],JQ)))/Q.playedTime*H}})}))},"He"),s8g=_.dG(function(g){var r=g.modifiedProps;
var E=g.chapters;var B=g.index;var w=g.playedProgressWidth;var O=g.backgroundGradientPosition;g={};g=_.QY("ytChapteredProgressBarChapteredPlayerBarChapter",(g.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return M().isScrubbing},g.ytChapteredProgressBarHoveredMacroMarker=function(){return M().scrubberHovering},g.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return M().videoPosition==="seen"},g));
var M=function(){return KsS(r(),E(),B())},u=function(){var l=r();
var Q=E(),z=B();if(KsS(l,Q,z).videoPosition!=="active")l=0;else{var k=Pv(_.n(Q[z],JQ));l=(l.playedTime-k)/((Pv(_.n(Q[z+1],JQ))||l.videoDuration)-k)}return l};
return _.G("div",{class:g,style:_.Rl({width:function(){var l=r(),Q=E(),z=B(),k=_.n(Q[z],JQ);Q=_.n(Q[z+1],JQ);return(Q?Pv(Q)-Pv(k):l.videoDuration-Pv(k))/l.videoDuration*100+"%"},
"background-color":function(){a:{var l=M();switch(l.videoPosition){case "pending":l=l.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":l=l.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:l=""}}return l},
"background-size":function(){return(xTl(M())?w():"")+"px"},
"background-position-x":function(){return(xTl(M())?O():"")+"px"}})},_.G("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var l=r(),Q=E(),z=B();if(KsS(l,Q,z).videoPosition==="seen")var k=0;else k=Pv(_.n(Q[z],JQ)),Q=Pv(_.n(Q[z+1],JQ))||l.videoDuration,l=l.videoDuration*l.percentLoaded,k=Q<=l?1:k>=l?0:(l-k)/(Q-k);return"width: "+k*100+"%"}}),_.G("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.Rl({width:function(){return u()*100+"%"},
"background-size":function(){return(xTl(M(),u())?w():"")+"px"},
"background-position-x":function(){return(xTl(M(),u())?O():"")+"px"}})}))},"Ie");var $sA=function(g,r){r=r===void 0?uIZ:r;var E,B=[],w,O=!1;return function(){var M=_.fI.apply(0,arguments);if(O&&E===this&&r(M,B))return w;w=g.apply(this,M);O=!0;E=this;B=M;return w}}(function(g){var r=g.heatMarkers,E=g.minHeightDp===void 0?0:g.minHeightDp,B=g.maxHeightDp===void 0?60:g.maxHeightDp;
var w=w===void 0?!1:w;var O=1E3/r.length;g=[];g.push({x:0,y:100});for(var M=0;M<r.length;M++){var u=void 0,l=((u=_.n(r[M],qkA))==null?void 0:u.heatMarkerIntensityScoreNormalized)||0;u=(M+.5)*O;l=100-_.bj(l*100,E/321*100,B/321*100);M!==0||w||g.push({x:0,y:l});g.push({x:u,y:l});M===r.length-1&&g.push({x:1E3,y:l})}g.push({x:1E3,y:100});r="";for(E=0;E<g.length;E++)w=g[E],E===0?w="M "+w.x.toFixed(1)+","+w.y.toFixed(1):(B=IeD(g[E-1],g[E-2],w),O=IeD(w,g[E-1],g[E+1],!0),w=" C "+(B.x.toFixed(1)+","+B.y.toFixed(1)+
" "+O.x.toFixed(1)+","+O.y.toFixed(1)+" "+w.x.toFixed(1)+","+w.y.toFixed(1))),r+=w;return r});var j8t=_.dG(function(g){var r=g.progressBarProps;var E=g.config;var B={};g=_.QY("ytHeatSeekerHost",(B.ytHeatSeekerHighContrast=g.highContrast,B));var w=function(){return YAQ(E().chapterData)};
return _.G("yt-progress-bar-heatseeker",{class:g,style:function(){var O;return"height: 320px; display: "+(r().isDragging&&((O=w())==null?0:O.heatMarkers)?"block":"none")}},_.G(_.p,{cond:w,
then:function(O){return _.G(_.p,{cond:function(){return O().heatMarkers},
then:function(){return _.G("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.G("path",{d:function(){return $sA(O())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Je");var ABL=_.dG(function(g){var r=g.progressBarProps;var E=g.config;g={};g=_.QY("ytProgressBarLineProgressBarLine",(g.ytProgressBarLineProgressBarLineRounded=function(){return E().rounded},g.ytProgressBarLineProgressBarLineBottomInset=function(){return E().position===2},g));
return _.G("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.G("div",{class:g},_.G("div",{class:"ytProgressBarLineProgressBarBackground"}),_.G("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+r().percentLoaded*100+"%"}}),_.G("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var B=r();return"width: "+(B.videoDuration?_.bj(B.hoveredTime/B.videoDuration,0,1):0)*100+"%"}}),_.G("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+kvP(r())*100+"%"}})))},"Ke");
ABL.idomCompat=!0;var bt6=_.dG(function(g){var r=g.progressBarProps;var E=g.playheadData;var B=g.interpolateDotPosition;var w=g.hidePlayhead;g={};var O=_.QY("ytProgressBarPlayheadProgressBarPlayheadDot",(g.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return r().isDragging},g.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!r().isDragging&&w()},g));
return _.G("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.Rl({"margin-left":function(){return H8l(r())*100+"%"},
transform:function(){return"translateX(-"+(B()?H8l(r())*12:6)+"px)"}})},_.G(_.p,{cond:function(){var M;
return(M=_.Zo(E)())==null?void 0:M.playheadImage},
then:function(M){var u={};return _.G("div",{class:_.QY("ytProgressBarPlayheadProgressBarPlayheadCustom",(u.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return r().isDragging},u.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!r().isDragging&&w()},u)),
style:_.Rl({"transform-origin":function(){return(B()?H8l(r())*20:10)+"px center"}})},_.G(_.vw,{data:M,
alt:"","aria-hidden":"true"}))},
else:function(){return _.G("div",{class:O,style:_.Rl({"transform-origin":function(){return(B()?H8l(r())*12:6)+"px center"}})})}}))},"Le");
bt6.idomCompat=!0;var Y9=function(g,r,E,B,w,O){this.getProgressBarRect=g;this.updateProgressBarRect=r;this.getFilmstripYPosition=E;this.setFineScrubbingDraggedTime=B;this.updateFilmStripDraggedYDistance=w;this.resetFilmStripYOffset=O;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.VU(this.onThrottledSeek,100,this)},JBD=function(g,r,E){return function(B){g.handleClick(B,r(),E())}},Fp$=function(g,r){return function(E){PAz(g,
E,tzD(E),r())}},eKz=function(g,r){return function(E){PAz(g,E,{x:E.clientX,
y:E.clientY},r())}},CAL=function(g,r,E){return function(B){var w=r(),O=E();
Wpm(g,B,tzD(B),w,O,!0);if(O.onTouchMove)O.onTouchMove(w)}},xs$=function(g,r,E){return function(B){Kp8(g,B,r(),E())}},aam=function(g,r){return function(){g.handleMouseLeave(r())}},XHM=function(g,r,E){return function(){var B=r(),w=E();
R_(g,B,w);if(w.onTouchEnd)w.onTouchEnd(B)}},Nk6=function(g,r,E){return function(){var B=r(),w=E();
R_(g,B,w);if(w.onTouchEnd)w.onTouchEnd(B)}},Iat=function(g,r,E){return function(){R_(g,r(),E())}},msF=function(g){return function(r){if(r.keyCode===39||r.keyCode===38){var E,B;
(E=g())==null||(B=E.playerApi)==null||B.seekBy(5,void 0,void 0,72)}else if(r.keyCode===37||r.keyCode===40){var w,O;(w=g())==null||(O=w.playerApi)==null||O.seekBy(-5,void 0,void 0,71)}}},cBM=function(g,r,E){return function(B){!E().disableScrubbing&&g.startPosition&&Kp8(g,B,r(),E())}},itm=function(g,r,E){return function(){if(!E().disableScrubbing)if(g.startPosition){var B=r(),w=E();
R_(g,r(),E());if(w.onTouchEnd)w.onTouchEnd(B)}else r().setState({isDragging:!1})}},tzD=function(g){g=g.touches[0];
return{x:g.clientX,y:g.clientY}},Kp8=function(g,r,E,B){if(r.buttons!==1){if(r.movementX||r.movementY)r.preventDefault(),r.stopPropagation(),g=Lp5(g,E,r.clientX),E.setState({isHovering:!0,
hoveredTime:g*E.videoDuration})}else Vz6(E),Wpm(g,r,{x:r.clientX,y:r.clientY},E,B,!1)};
Y9.prototype.handleMouseLeave=function(g){Vz6(g)};
var Vz6=function(g){g.isHovering&&g.setState({isHovering:!1,hoveredTime:0})},PAz=function(g,r,E,B){g.startPosition||(g.startPosition=E,g.updateProgressBarRect(),g.controlsWereVisibleBeforeDragging=B.controlsVisible,r.stopPropagation(),_.Y("medium_progress_bar_modification")||r.preventDefault())},Wpm=function(g,r,E,B,w,O){if(g.startPosition)if(O&&w.isInlinePlayback&&g.startPosition&&!g.hasDraggedTheMinimumDistance&&Math.abs(E.y-g.startPosition.y)>Math.abs(E.x-g.startPosition.x))R_(g,B,w);
else if(r.preventDefault(),r.stopPropagation(),B.videoDuration&&(g.startPosition&&!g.hasDraggedTheMinimumDistance&&(g.hasDraggedTheMinimumDistance=Math.abs(E.x-g.startPosition.x)>=1),w.enableFineScrubbing&&(g.startPosition&&(g.isDraggedForFineScrubbing=-(E.y-g.startPosition.y)>=60),!g.startPosition||E.y>=g.startPosition.y||(B.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:a9l(B.draggedTime,B,w.chapterData)}),g.setFineScrubbingDraggedTime(B.draggedTime),g.updateFilmStripDraggedYDistance(g.startPosition.y,
E.y,B))),g.hasDraggedTheMinimumDistance)){r=Lp5(g,B,E.x);if(g.isDraggedForFineScrubbing){var M;(M=B.playerApi)==null||M.pauseVideo();B.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:B.draggedTime,filmStripXDistance:a9l(r*B.videoDuration,B,w.chapterData)})}w.enableFineScrubbing&&(!w.enableFineScrubbing||g.getFilmstripYPosition(B)<68)||B.setState({draggedTime:r*B.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:g.controlsWereVisibleBeforeDragging});var u;(u=
w.cancelAutohideControlsFn)==null||u.call(w)}},R_=function(g,r,E){var B=E.enableFineScrubbing&&r.fineScrubbingActiveState!=="off";
if(r.isDragging||B){B={isDragging:!1,playedTime:r.draggedTime,controlsVisible:g.controlsWereVisibleBeforeDragging};E.enableFineScrubbing&&r.fineScrubbingActiveState!=="on"&&(g.resetFilmStripYOffset(),B.fineScrubbingActiveState="off");var w=w===void 0?b8S:w;var O=_.PE(0);if(O&&w){var M=Math.round(r.playedTime*1E3),u=Math.round(r.draggedTime*1E3);M>2147483647||u>2147483647||_.V_(O,w,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(M),endMediaTimeMs:String(u),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}r.setState(B);
g.seekThrottle.fire(r.draggedTime,r,7);_.Y("mweb_new_progress_bar_play_on_seek")&&g.resumeVideo(r);E.unmuteOnSeek&&(E=r.playerApi,r.volumeMuted&&(E==null||E.unMute()))}else r.setState({controlsVisible:!r.controlsVisible}),(O=E.triggerAutohideControlsAfterDelayFn)==null||O.call(E);g.startPosition=null;g.hasDraggedTheMinimumDistance=!1;g.isDraggedForFineScrubbing=!1;g.controlsWereVisibleBeforeDragging=!1};
Y9.prototype.handleClick=function(g,r,E){this.updateProgressBarRect();g.stopPropagation();g=Lp5(this,r,g.clientX)*r.videoDuration;r.setState({playedTime:g});if(r.playerState!==2){var B;(B=E.triggerAutohideControlsAfterDelayFn)==null||B.call(E)}this.seekThrottle.fire(g,r,7)};
var Lp5=function(g,r,E){g=g.getProgressBarRect(r);return _.bj(0,(E-g.left)/g.width,1)};
Y9.prototype.resumeVideo=function(g){if(g.draggedTime<g.videoDuration){var r;(r=g.playerApi)==null||r.playVideo()}};
Y9.prototype.onThrottledSeek=function(g,r,E){if(r=r.playerApi){var B;if((B=r.getVideoData())==null?0:B.isLive)B=this.getProgressState(r),g+=(B==null?void 0:B.seekableStart)||0;r.seekTo(g,void 0,void 0,void 0,E)}};
Y9.prototype.getProgressState=function(g){var r=g==null?void 0:g.getPresentingPlayerType();return g==null?void 0:g.getProgressState(r)};var yB5,ZtF,vuz,TkM,hKg,gUg,rav,EU6,BsD;yB5=_.dG(function(g){var r=g.progressBarProps;var E=g.config;var B=g.progressBarWidthPx;var w=g.chapterData;var O=cYo(r,function(){return E().isShortsPage}),M=function(){return!r().isHovering&&!E().isShortsPage};
g={};var u=_.QY("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(g.ytPlayerStoryboardHostMwebShorts=function(){return E().isShortsPage&&!1},g));
return _.G("yt-player-storyboard",null,_.G(_.p,{cond:function(){return r().isDragging||r().isHovering},
then:function(){return _.G(_.p,{cond:O,then:function(l){return _.G(_.p,{cond:M,then:function(){return _.G("div",{class:u,"aria-hidden":"true"},_.G(hKg,{props:r,config:E,isBigboard:!0,chapterData:w}))},
else:function(){return _.G(ZtF,{props:r,frame:l,config:E,progressBarWidthPx:B,chapterData:w})}})}})}}))},"Me");
_.ds5=_.dG(function(g){var r=g.progressBarProps;var E=cYo(r,g.isShortsPage);return _.G("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.G(_.p,{cond:function(){return r().isDragging||r().isHovering},
then:function(){return _.G(_.p,{cond:E,then:function(B){return _.G(vuz,{frame:B,props:r,isBigboard:!0})}})}}))},"Ne");
ZtF=_.dG(function(g){var r=g.props;var E=g.frame;var B=g.config;var w=g.progressBarWidthPx;g=g.chapterData;var O={};O=_.QY("ytPlayerStoryboardHost",(O.ytPlayerStoryboardHostMwebShorts=function(){return B().isShortsPage&&!1},O.ytPlayerStoryboardHostInlinePlayer=function(){return B().isInlinePlayer},O.ytPlayerStoryboardHostFadeIn=function(){return B().useFadeInAnimation},O));
return _.G("div",{class:O,"aria-hidden":"true",style:function(){var M=r(),u=Xel(E()),l=w();M=N7A(M)/M.videoDuration;var Q=l*M,z=u/2+6;u=l-(u/2+6);return"left: "+(Q<=z?z/l*100:Q>=u?u/l*100:M*100)+"%"}},_.G(_.p,{cond:function(){var M=r();
return!(B().isShortsPage&&M.videoDuration<15)},
then:function(){return _.G(vuz,{frame:E,props:r,isBigboard:!1})}}),_.G(hKg,{props:r,
config:B,isBigboard:!1,chapterData:g}))},"Oe");
vuz=_.dG(function(g){var r=g.frame;var E=g.props;var B=g.isBigboard;var w=function(){var u,l;return(l=(u=E().playerApi)==null?void 0:u.getVideoContentRect())!=null?l:{width:0,height:0}},O=function(){return Xel(r())},M=function(){var u=r();
return u?u.height/u.rows:0};
g={};g=_.QY((g.ytPlayerStoryboardBigboardImageWrapper=B,g.ytPlayerStoryboardStoryboardImageWrapper=function(){return!B()},g));
return _.G("div",{class:g,style:function(){return"width: "+(B()?w().width:O())+"px; height: "+(B()?w().height:M())+"px;"}},_.G(TkM,{frame:r,
storyboardWidth:O,storyboardHeight:M,storyboardScale:function(){return(B()?w().width:O())/O()}}))},"Pe");
TkM=_.dG(function(g){var r=g.frame;var E=g.storyboardWidth;var B=g.storyboardHeight;var w=g.storyboardScale;var O=function(){var M=r().row,u=r().column,l=E(),Q=B(),z=w();return{left:-u*l*z,top:-M*Q*z}};
return _.G("img",{src:function(){return r().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+O().left+"px; top: "+O().top+"px; width: "+r().width*w()+"px; height: "+r().height*w()+"px;"}})},"Qe");
hKg=_.dG(function(g){var r=g.props;var E=g.config;var B=g.isBigboard;var w=g.chapterData;g={};g=_.QY("ytPlayerStoryboardMetadata",(g.ytPlayerStoryboardMetadataBigboard=B,g));return _.G("div",{class:g},_.G(_.p,{cond:B,then:function(){return _.G(_.wW,null,_.G(gUg,{props:r,config:E}),_.G(_.p,{cond:function(){a:{var O=r();var M=E(),u=w(),l;if((M==null?0:M.activeChapter)&&((l=_.n(M==null?void 0:M.activeChapter,JQ))==null?0:l.title))O=!0;else{M=_.U(RDl(u));for(M=M.next();!M.done;M=M.next()){O=(M=_.n(M.value,
li6))&&I9c(O,M);break a}O=!1}}return O},
then:function(){return _.G(rav,{props:r,config:E,isBigboard:!0,chapterData:w})}}))},
else:function(){return _.G(_.wW,null,_.G(rav,{props:r,config:E,isBigboard:!0,chapterData:w}),_.G(gUg,{props:r,config:E}))}}))},"Re");
gUg=_.dG(function(g){var r=g.props;var E=g.config;g={};g=_.QY("ytPlayerStoryboardTimestamp",(g.ytPlayerStoryboardTimestampShorts=function(){return E().isShortsPage},g.ytPlayerStoryboardTimestampIsHovering=function(){return r().isHovering||E().isShortsPage&&!0},g));
return _.G("div",{class:g},_.G(_.wW,null,function(){return _.mTX(N7A(r()))}))},"Se");
rav=_.dG(function(g){var r=g.props;var E=g.config;var B=g.isBigboard;var w=g.chapterData;g={};B=_.QY("ytPlayerStoryboardTitle",(g.ytPlayerStoryboardTitleBigboard=B,g));return _.G("div",{class:B},_.G(_.p,{cond:function(){return!E().isShortsPage},
then:function(){return _.G(EU6,{props:r,activeChapter:function(){return E().activeChapter},
chapterData:w})}}))},"Te");
EU6=_.dG(function(g){var r=g.props;var E=g.activeChapter;var B=g.chapterData;return _.G(_.wW,null,_.G(_.Ra,{each:function(){return RDl(B())},
keyBy:"INDEX"},function(w){return _.G(_.wW,null,_.G(_.p,{cond:function(){return _.n(w(),li6)&&I9c(r(),_.n(w(),li6))},
then:function(){return _.G(BsD,{timedMarker:function(){return _.n(w(),li6)}})}}))}),_.G(_.p,{cond:function(){var w;
return E()&&((w=_.n(E(),JQ))==null?void 0:w.title)},
then:function(w){return _.G(_.hf,{text:w,noPreWrap:!0})}}))},"Ue");
BsD=_.dG(function(g){var r=g.timedMarker;return _.G(_.wW,null,_.G("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.G(_.nh,{icon:function(){return r().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.G(_.hf,{text:function(){return r().label},
noPreWrap:!0}))},"Ve");_.wum=_.dG(function(g){var r=g.progressBarProps;var E=g.playheadData;var B=g.config;g=_.VI("yt-progress-bar");var w=_.VI("div"),O=_.VI("div"),M=_.U(_.Dk({width:0,left:0},void 0,"NcXsUb")),u=M.next().value,l=M.next().value,Q=function(){O.value&&l(O.value.getBoundingClientRect())},z=function(){u().width<=0&&Q();
return u()};
du("resize",Q);var k=new Y9(z,function(){},function(){return 0},function(){},function(){},function(){}),H=function(){return r()};
M=_.U(_.Dk(!1,void 0,"ZsF6Xc"));var R=M.next().value,A=M.next().value;M=_.HK(function(){A(!0);B().position===2?setTimeout(function(){Q()},100):Q()});
var J=_.HK(function(){A(!1);aam(k,H)()}),e=_.HK(function(xc){B().doSeekOnClick&&JBD(k,H,B)(xc);
return!1}),C=_.HK(function(xc){Fp$(k,H)(xc);
return!1}),X=_.HK(function(xc){eKz(k,H)(xc);
return!1}),Z=_.HK(function(xc){CAL(k,H,B)(xc);
return!1}),c=_.HK(function(xc){xs$(k,H,B)(xc);
return!1}),h=_.HK(function(){XHM(k,H,B)();
return!1}),y=_.HK(function(){Nk6(k,H,B)();
return!1}),OD=_.HK(function(){Iat(k,H,B)();
return!1}),uB=_.HK(function(xc){msF(H)(xc);
return!1});
du("mousemove",cBM(k,H,B));du("mouseup",itm(k,H,B));_.Jk(function(){JYS(w.value);A(!1);Q();itm(k,H,B)()});
var zS={};zS=_.QY("ytPlayerProgressBarHost",function(){return B().className},(zS.ytPlayerProgressBarHostReadOnly=function(){return B().disableScrubbing},zS.ytPlayerProgressBarHostHidden=function(){return B().hideProgressBar&&!R()},zS.ytPlayerProgressBarHostLowerPlayer=function(){return B().position===0},zS.ytPlayerProgressBarHostBottomEdge=function(){return B().position===1},zS.ytPlayerProgressBarHostBottomInset=function(){return B().position===2},zS.ytPlayerProgressBarHostCustom=function(){return B().position===
3},zS));
var jV={},PJ=_.QY("ytPlayerProgressBarBackground",(jV.ytPlayerProgressBarBackgroundHide=function(){return B().position===2&&!R()&&!r().isDragging},jV));
jV={};jV=_.QY("ytPlayerProgressBarDragContainer",(jV.ytPlayerProgressBarDragContainerBottomEdge=function(){return B().position===1},jV));
var At={};At=_.QY("ytPlayerProgressBarProgressBar",(At.ytPlayerProgressBarProgressBarInset=function(){return B().position===2},At.ytPlayerProgressBarProgressBarInsetMinimized=function(){return B().position===2&&!R()&&!r().isDragging},At));
var XY=function(){return Math.floor(kvP(r())*100)};
return _.G("yt-progress-bar",{el:g,class:zS},_.G(_.p,{cond:function(){return B().position===2},
then:function(){return _.G("div",{class:PJ})}}),_.G("div",{el:w,
"on:click":e,"on:touchstart":C,"on:touchmove":Z,"on:mouseenter":M,"on:mousedown":X,"on:mouseleave":J,"on:mousemove":c,"on:mouseup":y,"on:touchend":h,"on:touchcancel":OD,"on:keydown":uB,class:jV,role:"slider","aria-valuenow":XY,"aria-valuetext":function(){return XY()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return r().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.zn("SEEK_SLIDER")},_.G("div",{el:O,class:At},_.G(j8t,{progressBarProps:r,config:B,highContrast:function(){return!!B().isInlinePlayback}}),_.G(_.p,{cond:function(){return B().chapterData&&nqP(B().chapterData)},
then:function(){return _.G(fa8,{progressState:r,multiMarkersPlayerBarRenderer:function(){return B().chapterData},
progressBarWidth:function(){return u().width}})},
else:function(){return _.G(ABL,{progressBarProps:r,config:B})}}),_.G(bt6,{progressBarProps:r,
playheadData:E,interpolateDotPosition:function(){return B().position!==2},
hidePlayhead:function(){return B().playheadDotBehavior===1&&!R()}}))),_.G(yB5,{progressBarProps:r,
config:function(){return{activeChapter:WsA(r(),B().chapterData),getProgressBarWidthPx:function(){return z().width},
isShortsPage:!!B().isShortsPage,isInlinePlayer:!!B().isInlinePlayback,useFadeInAnimation:!!B().isInlinePlayback}},
progressBarWidthPx:function(){return u().width},
chapterData:function(){return B().chapterData}}))},"We");
_.wum.idomCompat=!0;Object.assign({},_.sLS(),{setState:function(){},
domMeasurements:{},appApi:_.zDJ(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var SUA;
_.OI5=_.dG(function(){var g,r=(g=_.tQ(i8V().playerApi))!=null?g:void 0;g=_.U(_.Dk(!1,void 0,"HLFBmb"));var E=g.next().value,B=g.next().value;g=_.U(_.Dk(!1,void 0,"lHH9bc"));var w=g.next().value,O=g.next().value;g=_.U(_.Dk(!1,void 0,"zsY7yd"));var M=g.next().value,u=g.next().value;g=_.U(_.Dk(!1,void 0,"KeHQgc"));var l=g.next().value,Q=g.next().value;g=_.U(_.Dk(0,void 0,"gLLCj"));var z=g.next().value,k=g.next().value;g=_.U(_.Dk(0,void 0,"s3RYkf"));var H=g.next().value,R=g.next().value;g=_.U(_.Dk(!1,void 0,
"Dn608e"));var A=g.next().value,J=g.next().value;g=_.U(_.Dk(0,void 0,"AnkH1b"));var e=g.next().value,C=g.next().value;g=_.U(_.Dk(0,void 0,"QYNL0b"));var X=g.next().value,Z=g.next().value;g=_.U(_.Dk("",void 0,"Yzw45d"));var c=g.next().value,h=g.next().value;g=_.U(_.Dk(-1,void 0,"iiVI0c"));var y=g.next().value,OD=g.next().value,uB=_.kB(function(){var zS={controlsVisible:E(),isOverlayHidden:w(),shouldWaitToHideControls:M(),isDragging:l(),isHovering:A(),videoDuration:e(),playedTime:X(),videoId:c(),draggedTime:H(),
hoveredTime:z(),playerState:y()};return Object.assign({},_.sLS(),zS,{domMeasurements:{},setState:function(jV){jV.controlsVisible!==void 0&&B(jV.controlsVisible);jV.isOverlayHidden!==void 0&&O(jV.isOverlayHidden);jV.shouldWaitToHideControls!==void 0&&u(jV.shouldWaitToHideControls);jV.isDragging!==void 0&&Q(jV.isDragging);jV.isHovering!==void 0&&J(jV.isHovering);jV.draggedTime!==void 0&&R(jV.draggedTime);jV.hoveredTime!==void 0&&k(jV.hoveredTime);jV.videoDuration!==void 0&&C(jV.videoDuration);jV.playedTime!==
void 0&&Z(jV.playedTime);jV.videoId!==void 0&&h(jV.videoId);jV.playerState!==void 0&&OD(jV.playerState)},
appApi:_.zDJ(),playerApi:r})},void 0,"ZW7y9");
_.jS(function(){r==null||r.addEventListener("onVideoProgress",AYB(uB));r==null||r.addEventListener("onVideoDataChange",jLl(uB));r==null||r.addEventListener("onStateChange",f9t(uB))});
_.J5(function(){if(r==null?0:r.isReady())r==null||r.removeEventListener("onVideoProgress",AYB(uB)),r==null||r.removeEventListener("onVideoDataChange",jLl(uB)),r==null||r.removeEventListener("onStateChange",f9t(uB))});
return _.G("desktop-shorts-player-controls",null,_.G(SUA,{playerControlsProps:uB}))},"Xe");
SUA=_.dG(function(g){var r=g.playerControlsProps;return _.G("div",{class:"desktopShortsPlayerControlsWizHost"},_.G(_.wum,{progressBarProps:r,config:function(){return{isShortsPage:!0,hideProgressBar:r().videoDuration<30&&r().playerState!==2&&!r().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Ye");_.UO8=_.dG(function(g){function r(zS){zS!==0||k()?zS>50&&(k()||!R())?(H(!1),A(!0)):zS<=50&&(k()||R())&&(H(!1),A(!1)):H(!0)}
function E(zS,jV){var PJ;return _.q(function(At){if(At.nextAddress==1)return _.D(At,_.MQ(),2);PJ=At.yieldResult;jV&&PJ?(PJ.unMute(!0),zS&&(VxS(zS,PJ.getVolume()),e(PJ.getVolume()))):PJ&&(PJ.mute(!0),zS&&VxS(zS,0));_.Q3(At)})}
function B(zS){var jV,PJ;return _.q(function(At){if(At.nextAddress==1)return _.D(At,_.MQ(),2);jV=At.yieldResult;PJ=50;jV&&(PJ=jV.getVolume(),jV.isMuted()?VxS(zS,0):VxS(zS,PJ));e(PJ);_.Q3(At)})}
var w=g.orientation;g=_.VI("desktop-shorts-volume-controls");var O=_.VI("button"),M=_.hn("input"),u=_.U(_.Dk(!1,void 0,"F6vt0d")),l=u.next().value,Q=u.next().value,z=_.U(_.Dk(!1,void 0,"S5PCqb"));u=z.next().value;z=z.next().value;var k=u,H=z;z=_.U(_.Dk(!0,void 0,"Tgy4e"));u=z.next().value;z=z.next().value;var R=u,A=z;u=_.U(_.Dk(50,void 0,"Dq3efd"));var J=u.next().value,e=u.next().value;u=_.kB(function(){var zS=k();return _.Y("web_shorts_keyboard_enable_mute_shortcut")?zS?_.zn("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.zn("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):zS?_.zn("UNMUTE_VOLUME",void 0,"Unmute"):_.zn("MUTE_VOLUME",void 0,"Mute")},void 0,"zjOD8c");
z=_.kB(function(){var zS=k(),jV=R();return{sources:[{clientResource:{imageName:zS?_.Y("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":jV?_.Y("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.Y("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"bIZ5A");
var C=_.kB(function(){var zS=J();return k()?zS+"% volume muted":zS+"% volume"},void 0,"kvkmyc"),X=_.kB(function(){return w()==="vertical_down"},void 0,"zaNsZ");
_.Jk(function(){function zS(){Q(!0)}
function jV(){Q(!1)}
M&&M.value&&(M.value.addEventListener("focus",zS),M.value.addEventListener("focusout",jV),B(M.value).then(function(){r(Number(hDQ(M.value)))}));
O&&O.value&&(O.value.addEventListener("focus",zS),O.value.addEventListener("focusout",jV));_.J5(function(){var PJ;M==null||(PJ=M.value)==null||PJ.removeEventListener("focus",zS);var At;M==null||(At=M.value)==null||At.removeEventListener("focusout",jV);var XY;O==null||(XY=O.value)==null||XY.removeEventListener("focus",zS);var xc;O==null||(xc=O.value)==null||xc.removeEventListener("focusout",jV)})});
var Z=_.HK(function(){if(M&&M.value){var zS=Number(hDQ(M.value));LsY(zS);e(zS);M.value.style.setProperty("--gradient-percent",zS+"%");r(zS)}return!1}),c=_.HK(function(){Q(!0)}),h=_.HK(function(){M&&M.value&&(E(M.value,k()),H(!k()));
return!1}),y={},OD={},uB={};
return _.G("desktop-shorts-volume-controls",{"on:pointerleave":_.HK(function(){Q(!1)}),
class:_.QY("ytdDesktopShortsVolumeControlsHost",(y.ytdDesktopShortsVolumeControlsHostVertical=X,y.ytdDesktopShortsVolumeControlsHostExpanded=l,y)),el:g},_.G(_.p,{cond:function(){return!X()},
then:function(){var zS={};return _.G("div",{class:_.QY("ytdDesktopShortsVolumeControlsBackgroundScrim",(zS.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=l,zS))})}}),_.G("div",{class:_.QY((OD.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=X,OD))},_.G("button",{"aria-label":u,
title:u,el:O,"on:click":h,"on:pointerenter":c,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},z?_.G(_.vw,{data:z,alt:u,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.G("div",{class:_.QY("ytdDesktopShortsVolumeControlsSliderContainer",(uB.ytdDesktopShortsVolumeControlsSliderContainerExpanded=l,uB.ytdDesktopShortsVolumeControlsSliderContainerVertical=X,uB.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=X,uB.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return l()&&X()},uB))},_.G("input",{"aria-label":_.zn("VOLUME"),
title:_.zn("VOLUME"),el:M,"on:input":Z,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":J,"aria-valuetext":C,"aria-valuemin":0,"aria-valuemax":100})))},"Ze");_.Mym=_.dG(function(g){var r=g.data;return _.G("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.G(_.NQ,{command:function(){return r().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.G(_.p,{cond:function(){return r().iconName},
then:function(E){return _.G(_.nh,{icon:E})}}),_.G("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return r().text}),_.G(_.p,{cond:function(){return r().showEndChevron},
then:function(){return _.G(_.nh,{icon:"CHEVRON_RIGHT"})}})))},"$e");var qUm=_.dG(function(g){var r=g.data;var E=g.overlayDensity;g={};return _.G("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.G(_.Af,{data:function(){return r().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(B){var w=B.data;
return _.G(_.fO,{data:function(){return(E==null?void 0:E())===1?Object.assign({},w(),{avatar:{avatarViewModel:Object.assign({},_.n(w().avatar,_.a$),{avatarImageSize:"AVATAR_SIZE_48"})}}):w()}})}}),_.G(_.Af,{data:function(){return r().avatarStackViewModel}},{avatarStackViewModel:function(B){return _.G(_.$1,{data:B.data})}}),_.G(_.hf,{className:_.QY("ytReelChannelBarViewModelChannelName",(g.ytReelChannelBarViewModelChannelNameLarge=function(){return(E==null?void 0:E())===1},g)),
text:function(){return r().channelName},
linkInheritColor:!0,userInput:!0}),_.G("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.G(_.Af,{data:function(){return r().subscribeButtonViewModel}},{subscribeButtonViewModel:function(B){var w=B.data;
return _.G(_.Rh,{data:function(){return(E==null?void 0:E())===1?Object.assign({},w(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},w().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):w()},
isOverlay:!1})},
buttonViewModel:_.MV})),_.G("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.G(_.Af,{data:function(){var B,w;return(w=_.n((B=r())==null?void 0:B.sponsorButtonViewModel,$PA))==null?void 0:w.sponsorButton}},{buttonViewModel:function(B){return _.G(_.MV,{data:B.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"af");var uEM=_.dG(function(g){var r=function(){var B;return(g==null?void 0:(B=g.overlayDensity)==null?void 0:B.call(g))===1?22:16},E={};
return _.G("yt-reel-multi-format-link-view-model",{class:_.QY("ytReelMultiFormatLinkViewModelHost",(E.ytReelMultiFormatLinkViewModelHostTall=!0,E.ytReelMultiFormatLinkViewModelHostLarge=function(){var B;return((B=g.overlayDensity)==null?void 0:B.call(g))===1},E))},_.G(_.NQ,{ariaLabel:function(){return g.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return g.data().command}},_.G("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.G(_.p,{cond:function(){return g.data().icon},
then:function(B){return _.G(_.vw,{data:B,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:r})}}),_.G(_.hf,{text:function(){return g.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"bf");
uEM.idomCompat=!0;var l25=_.dG(function(g){var r=g.data;var E=g.overlayDensity;var B=_.VI("yt-shorts-suggested-action-view-model");g=_.U(_.Dk(!1,void 0,"xDqzhe"));var w=g.next().value,O=g.next().value;g=_.U(_.Dk(!1,void 0,"LI9CFd"));var M=g.next().value,u=g.next().value,l=function(){return r().isMultiLineSa},Q=_.QU(F2J,function(){var c,h;
return(h=(c=r().toggleableContent)==null?void 0:c.entityKey)!=null?h:""}),z=function(){var c,h,y;
return(y=r().toggleableContent)!=null&&y.entityKey?(h=(c=Q())==null?void 0:c.value)!=null?h:!1:!1},k=function(){var c,h,y,OD,uB,zS,jV,PJ,At,XY,xc;
return r().toggleableContent?z()?(c=r().toggleableContent)==null?void 0:c.toggledData:(h=r().toggleableContent)==null?void 0:h.untoggledData:{primaryText:(PJ=(y=r().defaultContent)==null?void 0:y.primaryText)!=null?PJ:r().text,secondaryText:(OD=r().defaultContent)==null?void 0:OD.secondaryText,onTapCommand:(At=(uB=r().defaultContent)==null?void 0:uB.onTapCommand)!=null?At:r().onTapCommand,icon:(XY=(zS=r().defaultContent)==null?void 0:zS.icon)!=null?XY:r().icon,image:(xc=(jV=r().defaultContent)==null?
void 0:jV.image)!=null?xc:r().image}},H=function(){return l()?r().trailingTapTarget:void 0},R=function(c,h){return function(){return w()?h:c}},A=function(){return{leadingSection:R("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(E==null?void 0:E())===1?R("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):R("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:R("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:R("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
g={};g=_.QY((g.ytShortsSuggestedActionViewModelStaticHost=function(){return!l()},g.ytShortsSuggestedActionViewModelDynamicHost=l,g.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return l()&&M()},g.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return l()&&!M()},g));
_.Jk(function(){if(l()){var c=0,h;if((h=r().animationParams)==null?0:h.shouldExpand){var y,OD;c=((OD=(y=r().animationParams)==null?void 0:y.expansionDelaySecs)!=null?OD:0)*1E3}var uB,zS=((uB=r().animationParams)==null?0:uB.shouldExpand)?setTimeout(function(){O(!0)},c):void 0,jV,PJ;
c=((jV=r().animationParams)==null?0:jV.visibilityDelaySecs)?((PJ=r().animationParams)==null?NaN:PJ.visibilityDelaySecs)*1E3:0;var At=setTimeout(function(){u(!0)},c);
_.J5(function(){zS&&clearTimeout(zS);clearTimeout(At)})}});
var J=function(c){_.I3(c,Object.assign({},{form:{element:B.value}}))},e=_.HK(function(){var c,h=(c=k())==null?void 0:c.onTapCommand;
h&&J(h)}),C=_.HK(function(){var c,h;
if(c=(h=H())==null?void 0:h.onTapCommand)return J(c),!1}),X=_.Rl({"vertical-align":"bottom",
"border-radius":function(){var c;return l()?((c=r().defaultContent)==null?0:c.isCircleImage)?"50%":"4px":"0px"},
width:function(){var c,h,y;return l()&&((c=r().defaultContent)==null?0:c.imageSize)?((y=(h=r().defaultContent)==null?void 0:h.imageSize)!=null?y:24)+"px":null},
height:function(){var c,h,y;return l()&&((c=r().defaultContent)==null?0:c.imageSize)?((y=(h=r().defaultContent)==null?void 0:h.imageSize)!=null?y:24)+"px":null}}),Z={};
return _.G("yt-shorts-suggested-action-view-model",{class:g,el:B},_.G("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.G("button",{class:_.QY(function(){return l()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var c;
return(c=r().useFullRoundedBorder)!=null&&c?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!H()&&l()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":l()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var c;
return(c=r().disableFixedHeight)!=null&&c?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(Z.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(E==null?void 0:E())===1},Z)),
"on:click":e},_.G(_.jk,{model:{color:4}}),_.G("div",{class:_.QY(function(){return l()?A().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.G(_.p,{cond:function(){var c;
return(c=k())==null?void 0:c.image},
then:function(c){return _.G(_.vw,{data:c,alt:"",className:function(){return l()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:X})}}),_.G(_.p,{cond:function(){var c,h;
return(c=k())==null?void 0:(h=c.icon)==null?void 0:h.iconType},
then:function(c){return _.G(_.nh,{icon:c,active:z,className:function(){return l()?w()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.G("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.G(_.p,{cond:function(){var c;
return(c=k())==null?void 0:c.primaryText},
then:function(c){return _.G("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.G(_.hf,{text:c}))}}),_.G(_.p,{cond:function(){var c;
return(c=k())==null?void 0:c.secondaryText},
then:function(c){return _.G("div",{class:function(){return A().secondaryText()}},_.G(_.hf,{text:c}))}}))),_.G(_.p,{cond:H,
then:function(c){return _.G("div",{class:function(){return A().trailingSection()},
"aria-label":function(){var h;return(h=c().a11yLabel)!=null?h:""},
"on:click":C,role:"button",tabindex:0},_.G(_.jk,{model:{color:4}}),_.G(_.nh,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"cf");var DOM=_.dG(function(g){var r=g.data;var E=g.overlayDensity;var B=_.VI("yt-shorts-video-title-view-model");g=_.HK(function(M){if(_.WX(_.eT(M),B.value,["A".toString()]))return!1;(M=r().truncatedTextOnTapCommand)&&_.I3(M);return!1});
var w={},O={};return _.G("yt-shorts-video-title-view-model",{el:B,class:_.QY("ytShortsVideoTitleViewModelHost",(w.ytShortsVideoTitleViewModelHostClickable=function(){return!!r().truncatedTextOnTapCommand},w)),
"on:click":g},_.G("h2",{class:_.QY("ytShortsVideoTitleViewModelShortsVideoTitle",(O.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(E==null?void 0:E())===1},O))},_.G(_.hf,{text:function(){return r().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"df");_.oU5=_.dG(function(g){var r=g.data;var E=g.overlayDensity;return _.G("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.G(_.Af,{data:function(){return r().metadataItems}},{badgeViewModel:function(B){return _.G("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.G(_.ZL,{data:B.data}))},
playerDisclosureViewModel:function(B){return _.G("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.G(_.Mym,{data:B.data}))},
shortsSuggestedActionViewModel:function(B){return _.G("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.G(l25,{data:B.data,overlayDensity:E}))},
reelChannelBarViewModel:function(B){return _.G("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.G(qUm,{data:B.data,overlayDensity:E}))},
reelMultiFormatLinkViewModel:function(B){return _.G("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.G(uEM,{data:B.data,overlayDensity:E}))},
shortsVideoTitleViewModel:function(B){return _.G("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.G(DOM,{data:B.data,overlayDensity:E}))},
reelSoundMetadataViewModel:function(B){return _.G("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.G(_.Qmz,{data:B.data,overlayDensity:E}))},
toggleButtonViewModel:function(B){return _.G("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.G(_.RY,{data:B.data}))}}))},"ef");var GhM=_.dG(function(g){var r=_.y7(g,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),E=r.size,B=r.onTap,w=r.disabled,O=r.tooltipText;return _.G("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.G(ZB,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:E(),disabled:w(),tooltipText:O(),onTap:B}},
iconName:g.iconType}))},"ff"),QCM=_.dG(function(g){function r(z){z.stopPropagation();
z.code==="ArrowUp"?(z.preventDefault(),vqL(u.value)):z.code==="ArrowDown"?(z.preventDefault(),dTB(u.value)):z.code==="KeyM"?Z8Q():(z.code==="KeyK"||z.code==="Space")&&yYQ(l())}
var E=_.y7(g,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});g=E.previousButtonDisabled;var B=E.nextButtonDisabled,w=E.data,O=E.playabilityStatus,M=E.previewThumbnail,u=_.VI("ytd-shorts-miniplayer-overlay"),l=_.Ch(_.HYB),Q;_.jS(function(){(Q=_.tL(u.value))&&Q.addEventListener("keydown",r)});
_.J5(function(){var z;(z=Q)==null||z.removeEventListener("keydown",r)});
E=function(){var z,k,H;return(z=w())==null?void 0:(k=z.reelPlayerOverlayRenderer)==null?void 0:(H=k.likeButton)==null?void 0:H.likeButtonRenderer};
return _.G("ytd-shorts-miniplayer-overlay",{el:u,class:"ytdShortsMiniplayerOverlayHost"},_.G("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.Rl({"background-image":function(){var z=M();return z?'url("'+_.Sk(z.thumbnails)+'")':""}})}),_.G("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.G("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.G(GhM,{iconType:function(){var z=l();
return z===2||z===-1||z===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){yYQ(l())},
tooltipText:function(){var z=l();return z===1||z===3?_.zn("PLAYER_LABEL_PAUSE"):_.zn("PLAYER_LABEL_PLAY")}}),_.G(_.UO8,{orientation:"horizontal_right"})),_.G("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.G(GhM,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:g,onTap:function(){vqL(u.value)},
tooltipText:_.zn("PREVIOUS_VIDEO_LABEL")}),_.G(GhM,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:B,onTap:function(){dTB(u.value)},
tooltipText:_.zn("NEXT_VIDEO_LABEL")}),_.Y("web_shorts_pip_like_button")?_.G("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.G(FE6,{buttonTooltipPosition:"left",data:E,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.G("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.G(_.p,{cond:function(){var z,k;return _.n((z=w())==null?void 0:(k=z.reelPlayerOverlayRenderer)==null?void 0:k.metapanel,
_.RMD)},
then:function(z){return _.G("div",{class:_.QY("ytdShortsMiniplayerOverlayInteractive")},_.G(_.oU5,{data:z}))}})),_.G("div",{class:_.QY("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var z;return!((z=w())==null||!z.adsOverlay)||O()&&!m3D(O())}},_.G("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.G(_.OI5,null)))),_.G(_.p,{cond:function(){var z=w(),k,H;
z=_.n(z==null?void 0:(k=z.adsOverlay)==null?void 0:(H=k.fulfillmentContent)==null?void 0:H.fulfilledLayout,Nxn);return _.n(z==null?void 0:z.renderingContent,LeU)},
then:function(z){return _.G("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.G(Jrw,{data:z}))}}))},"gf");var T7S=_.dG(function(){var g=_.U(_.Dk(new _.oQ(NaN,NaN),void 0,"HSMFk")),r=g.next().value,E=g.next().value;g=_.U(_.Dk(!1,void 0,"uaAxwf"));var B=g.next().value,w=g.next().value,O=_.U(_.Dk(!1,void 0,"nVSwef"));g=O.next().value;var M=O.next().value,u=_.rM().resolve(_.ea).miniplayerPropSignalMap[0],l=u.data,Q=u.shortsData,z=u.nextButtonDisabled,k=u.shortsPreviewThumbnail,H=u.previousButtonDisabled,R=u.externalPlaylistData;O=u.toastData;var A=u.playabilityStatus,J=u.isDisabled,e=u.playerVe,C=u.closeVe;
u=_.Ch(_.oz);_.LC("yt-pip-window-resized",function(h){E(h)});
_.LC("yt-activate-pip-miniplayer",function(){return _.q(function(h){M(!0);_.Q3(h)})});
var X=function(){var h;return!((h=R())==null||!h.contents)&&B()},Z=function(){var h=r(),y=!!l(),OD=X();
h=h.clone();y&&(h.height-=76);OD&&(h.height-=285);return h},c=function(){w(!B())};
_.bQ(function(){var h=e(),y=_.PE(11),OD=_.JF(11);y&&OD&&h&&(_.N2(y,OD,h),OD=C())&&(_.I6(y,h,[OD]),_.ck(y,[OD]))},"HPkp0c");
return _.G("ytd-pip-container",{class:"ytdPipContainerHost"},_.G(_.p,{cond:g,then:function(){return _.G(_.RKM,{isDisabled:J,playabilityStatus:A,size:Z})}}),_.G(_.p,{cond:l,
then:function(){return _.G(_.pHg,{data:l,expanded:B,onExpandClick:c,playlistData:R})}}),_.G(_.p,{cond:X,
then:function(){return _.G("div",{class:"ytdPipContainerPlaylistPanel"},_.G(_.Pgn,{data:R,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.G(_.p,{cond:u,
then:function(){return _.G(QCM,{data:Q,nextButtonDisabled:z,previousButtonDisabled:H,playabilityStatus:A,previewThumbnail:k})}}),_.G("div",{class:"ytdPipContainerToast"},_.G(_.nu4,{toastData:O})))},"hf");var nP=function(g,r){var E=this;this.pipController=g;this.JSC$16660_clientRoot=r;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=l9o();this.watchPipEnabled=_.Y("web_watch_pip");this.shortsPipEnabled=_.Y("web_shorts_pip");this.JSC$16660_watchWhileEnabled=_.Y("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;_.Gm(_.Zz(),_.GiP,function(B){E.isSingleOptionSurveyActive=B});
this.JSC$16660_onPlayerPlayVideo=this.JSC$16660_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);_.cf(_.mH.getInstance(),this.miniplayerServiceActionMap,this.JSC$16660_clientRoot);g.pictureInPictureSupported()&&_.Jn("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},Ogb,$OF,Rjv,jC$,Aat,qWU;
nP.prototype.handleMediaSessionPipActivation=function(){var g=this,r;return _.q(function(E){_.Di().mediaSessionPipActivation=!0;r=_.rM().resolve(_.vK);return r.isOnWatch()&&g.watchPipEnabled?(_.Di().watchPipActivation=!0,_.zj4(g,r.data),E.jumpTo(0)):r.isOnShorts()&&g.shortsPipEnabled?(_.Di().shortsPipActivation=!0,_.kh6(g),E.jumpTo(0)):g.isMiniplayerActive()&&g.watchPipEnabled&&!g.watchWhileMode?_.D(E,HI6(g),0):E.jumpTo(0)})};
var HI6=function(g){var r,E,B,w;return _.q(function(O){if(O.nextAddress==1)return r=!g.miniplayerToPipMode,E=g.playerElement,B=g.miniplayerData,w=g.watchResponse,_.D(O,g.deactivate(),2);if(O.nextAddress!=3)return r?(_.Di().mediaSessionPipActivation=!0,_.Di().watchPipActivation=!0):_.Di().miniplayerButtonActivation=!0,_.D(O,g.activate(E,B,w),3);g.miniplayerToPipMode=r;_.Q3(O)})};
nP.prototype.onDownloadedVideoDeleted=function(g){var r,E=_.n((r=this.miniplayerData)==null?void 0:r.watchEndpoint,_.LM),B,w;E&&((B=this.watchResponse)==null?void 0:(w=B.playerResponse)==null?void 0:w.offlineState)!==void 0&&(r=E.videoId)&&g&&r===g&&this.close()};
nP.prototype.onShowMiniplayerCommand=function(g){var r=this,E,B,w,O,M,u,l,Q,z,k,H,R,A;return _.q(function(J){switch(J.nextAddress){case 1:return E=_.n(g,lXA),w=(B=E)==null?void 0:B.miniplayerCommand,O=_.n(w,_.LM),w&&O&&!r.active?_.D(J,_.RH.getInstance(),2):J.return();case 2:return M=J.yieldResult,_.D(J,(u=M)==null?void 0:u.get("yt-miniplayer-shown-video-id"),3);case 3:l=J.yieldResult;Q=O.videoId;if(!Q||l===Q)return J.return();z=_.rM().resolve(_.vK);if(z.isOnWatch())return _.el(Error("Kj")),J.return();
k={channelItem:{externalId:btoa(Q)}};r.readyToResumeVe=_.bW(121253,void 0,void 0,k);_.Di().showMiniplayerCommandActivation=!0;return _.D(J,_.uH4(r,w,!0),4);case 4:return r.active?(_.sE(r,{readyToResumeVe:r.readyToResumeVe,continueWatching:!0,premiumBranding:!((H=E)==null||!H.showPremiumBranding)}),_.Y("ytd_miniplayer_to_wiz")&&_.sE(r,{isReadyToResume:!0}),r.isReadyToResume=!0):_.sE(r,{continueWatching:!0,premiumBranding:!((R=E)==null||!R.showPremiumBranding)}),_.D(J,(A=M)==null?void 0:A.set("yt-miniplayer-shown-video-id",
O.videoId),5);case 5:r.readyToResumeVe=void 0,_.Q3(J)}})};
nP.prototype.init=function(g){this.miniplayerEl?_.el(new _.Rj("MiniplayerService already initialized.")):this.miniplayerEl=g};
nP.prototype.isInitialized=function(){var g=!!this.miniplayerEl;g||_.el(new _.Rj("MiniplayerService used before initialized."));return g};
_.zj4=function(g,r){if(g.isInitialized()){var E=_.GvV(r.response,r.playerResponse),B=_.rM().resolve(_.vK).getPlayerFromWatch();_.Di().currentEndpoint=E.watchEndpoint||null;g.activate(B,E,r)}};
_.kh6=function(g){if(g.isInitialized()){var r=_.rM().resolve(_.vK).getPlayerFromShorts();g.activate(r)}};
Ogb=function(g,r){var E;(E=!g.isInitialized())||(E=_.rM().resolve(_.vK).isOnWatch()&&g.watchPipMode,E=!(g.isMiniplayerActive()&&(_.Di().userActivation||_.Di().lockupActivation||E)));if(E)return!1;pu5(g,r)?_.pP(g):qWU(g,r);return g.watchPipMode?!_.rM().resolve(_.vK).isOnWatch():!0};
nP.prototype.isMiniplayerActive=function(){return this.active};
var pu5=function(g,r){var E;r=(E=_.n(r,_.LM))==null?void 0:E.videoId;var B,w;g=(w=_.n((B=g.miniplayerData)==null?void 0:B.watchEndpoint,_.LM))==null?void 0:w.videoId;return r!=null&&r===g};
nP.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.Sh(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.OS(this.miniplayerEl,"yt-navigate-home-action"))};
_.uH4=function(g,r,E,B){E=E===void 0?!1:E;var w,O,M;return _.q(function(u){switch(u.nextAddress){case 1:if(g.active){u.jumpTo(2);break}w=_.rM().resolve(_.vK);if(M=(O=g.playerElement)!=null?O:w.getPlayerFromWatch()){u.jumpTo(3);break}return _.D(u,_.rM().resolve(_.wr),4);case 4:M=w.getPlayerFromWatch();case 3:if(!M){_.el(Error("Mj"));u.jumpTo(2);break}return _.D(u,g.activate(M,B),2);case 2:return g.active?_.D(u,qWU(g,r,E),0):u.return()}})};
nP.prototype.activate=function(g,r,E){var B=this,w,O,M,u,l,Q,z,k,H;return _.q(function(R){switch(R.nextAddress){case 1:if(!B.isInitialized())return R.return();if(!g)return _.el(Error("Mj")),R.return();if(_.RxT()||B.isMiniplayerActive())var A=!0;else A=_.Di().watchPipActivation||_.Di().watchWhileActivation,_.rM().resolve(_.vK).isOnWatch()&&!A?(_.el(new _.Rj("miniplayer activated on watch page")),A=!0):A=_.Di().watchWhileActivation?B.userDeactivatedWatchWhile||!!document.pictureInPictureElement||s5V():
!1;if(A)return Y_A(),R.return();w=_.Di().mediaSessionPipActivation;O=_.Di().shortsPipActivation;M=_.Di().watchPipActivation;l=(u=_.Di().watchWhileActivation)||M;Q=M||O;if(!B.pictureInPictureEnabled()||!Q){R.jumpTo(2);break}return _.D(R,YU5(B,w),3);case 3:if(!R.yieldResult)return _.el(Error("Lj")),Y_A(),R.return();case 2:return B.setActive(!0),B.watchResponse=E,B.playerElement=g,B.updateMiniplayerData(r),_.D(R,Rjv(B,g),4);case 4:if(!B.active)return _.el(new _.Rj("miniplayer deactivated during activation")),
B.removePlayerListeners(),R.return();A=_.rM().resolve(_.t6);A.addEventListener("yt-navigate",_.Do(B,B.onPlaylistNavigate));A.addEventListener("yt-playlist-data-updated",_.Do(B,B.JSC$16660_onPlaylistDataUpdated));B.JSC$16660_onPlaylistDataUpdated();Y_A();B.JSC$16660_watchWhileEnabled&&_.nUM(B,u);B.pictureInPictureEnabled()&&B.shortsPipEnabled&&(B.shortsPipMode=O,_.Zz().dispatch(M6U(B.shortsPipMode)));B.pictureInPictureEnabled()&&B.watchPipEnabled&&(B.watchPipMode=M,_.$3B(B.handleMediaSessionPipActivation));
B.player&&(z=B.player.getPlayerState(),k=z===1,_.Zz().dispatch(znw(z)),_.US(B.miniplayerEl,"yt-miniplayer-play-state-changed",[k]),_.Di().isVideoPlaying=k);_.US(B.miniplayerEl,"yt-miniplayer-endpoint-changed");sC$(B);_.f25(B);return B.shortsPipMode||B.watchPipMode?_.D(R,_.M2(B.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.Y("ytd_miniplayer_to_wiz")?_.D(R,_.M2(B.miniplayerEl,"yt-activate-miniplayer",[l]),6):_.D(R,_.M2(B.miniplayerEl,"yt-activate-miniplayer-action",[g,l]),6);case 6:if(B.watchResponse&&
!_.Y("miniplayer_copy_screen_on_activation_killswitch")){A=B.getScreenLayer();var J=_.PE(0),e=YGc(0);J&&e&&(_.Fp(J,e,A),A===0&&HcL(void 0,0))}$OF(B);jC$(B,!0);(H=B.getPlayerElement())==null||H.focusOnPlayer();_.Q3(R)}})};
nP.prototype.updateMiniplayerData=function(g){this.miniplayerData=g;_.sE(this,{data:g})};
_.f25=function(g){var r,E,B=((r=g.miniplayerData)==null?void 0:(E=r.miniplayerRenderer)==null?void 0:E.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";r=g.watchWhileMode||g.watchPipMode?B&&!_.rM().resolve(_.vK).isOnWatch():B;_.sE(g,{isDisabled:r});var w,O;E=_.n((w=g.miniplayerData)==null?void 0:(O=w.miniplayerRenderer)==null?void 0:O.minimizedEndpoint,_.R1);r&&E&&_.rM().resolve(_.Hh).openSheet({openPopupActionCommand:{openPopupAction:E}},g.miniplayerEl)};
$OF=function(g){if(g.watchResponse&&!Aat(g)){var r,E=(r=g.watchResponse.playerResponse)==null?void 0:r.trackingParams;E&&(_.sE(g,{expandVe:_.bW(35989),closeVe:_.bW(34699),readyToResumeCloseVe:_.bW(131070),repositionVe:_.bW(226204),resizeVe:_.bW(226205)}),_.sE(g,{playerVe:_.fW(E)}))}};
Rjv=function(g,r){return _.q(function(E){if(E.nextAddress==1)return r.preparePlayer(),_.D(E,r.getPlayerPromise(),2);g.player=E.yieldResult;g.player&&(g.player.addEventListener("onPlayVideo",g.JSC$16660_onPlayerPlayVideo),g.player.addEventListener("onCloseMiniplayer",g.onPlayerCloseMiniplayer),g.player.addEventListener("onExpandMiniplayer",g.onPlayerExpandMiniplayer),g.player.addEventListener("onStateChange",g.onPlayerStateChange));_.Q3(E)})};
_.S=nP.prototype;_.S.JSC$16660_onPlayerPlayVideo=function(g){var r=g.sessionData&&"autonav"in g.sessionData,E;g.sessionData&&g.sessionData.itct&&(E=g.sessionData.itct);var B=g.watchEndpoint;r=B&&r?_.ieo(B,E):_.Tn(g.videoId,g.listId||void 0,E);g.sessionData&&_.yk(_.n(r.commandMetadata,_.dU).url,g.sessionData);qWU(this,r)};
_.S.onPlayerExpandMiniplayer=function(){_.pP(this)};
_.S.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.S.onPlayerStateChange=function(){if(this.player){var g=this.player.getPlayerState(),r=g===1;_.Zz().dispatch(znw(g));_.Zz().dispatch(_.phw(g));_.US(this.miniplayerEl,"yt-miniplayer-play-state-changed",[r]);_.Di().isVideoPlaying=r;if(g===0){r=!_.h9.getInstance().isAutoplaySetExplicitly();var E,B,w,O,M,u,l=(E=this.watchResponse.response)==null?void 0:(B=E.contents)==null?void 0:(w=B.twoColumnWatchNextResults)==null?void 0:(O=w.autoplay)==null?void 0:(M=O.autoplay)==null?void 0:(u=M.autoplayExplicitChoiceDialogRenderer)==
null?void 0:u.confirmDialogRenderer;r&&l&&this.player.setAutonavState(1)}g===0&&this.watchWhileMode&&this.deactivate()}};
_.S.onPlaylistNavigate=function(g,r){var E=this,B,w,O,M,u,l,Q;return _.q(function(z){if(z.nextAddress==1){if(!_.n(r.endpoint,_.LM))return z.return();_.Di().currentEndpoint=r.endpoint;_.US(E.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.rM().resolve(_.vK).isOnWatch()&&(E.watchWhileMode||E.watchPipMode))return z.return();g.stopPropagation();(O=(w=_.n((B=r.endpoint)==null?void 0:B.commandMetadata,_.dU))==null?void 0:w.url)&&r.tempData&&!_.jn.isEmpty(r.tempData)&&_.yk(O,r.tempData);M={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};u=new RCU(function(){return E.getPlayerElement()},M,{layer:E.getScreenLayer()});
l=function(k){u.processChunk({endpoint:r.endpoint,data:k})};
bIv(E);E.miniplayerFetchRequest=Ja8(E,r.endpoint,l);_.qN(z,2);return _.D(z,E.miniplayerFetchRequest,4)}if(z.nextAddress!=2)return Q=z.yieldResult,Pi4(E,Q),_.Ne(z,0);_.G2(z);_.Q3(z)})};
_.S.JSC$16660_onPlaylistDataUpdated=function(){var g=_.rM().resolve(_.t6).getPlaylistData();this.hasPlaylistData=!!g;_.sE(this,{externalPlaylistData:g||{}})};
_.S.close=function(g){if(this.isInitialized())if(g){if(!((this.watchWhileMode||this.watchPipMode)&&_.rM().resolve(_.vK).isOnWatch()||this.shortsPipMode)){var r;(r=this.getPlayerElement())==null||r.stop()}this.deactivate()}else _.Kn().closeMiniplayer(this.miniplayerEl)};
_.S.deactivate=function(g){var r=this,E,B,w,O;return _.q(function(M){if(M.nextAddress==1){if(!r.isInitialized()||!r.active)return M.return();r.setActive(!1);bIv(r);(E=!!g&&pu5(r,g))&&r.isSingleOptionSurveyActive&&_.OS(r.miniplayerEl,"yt-show-watch-page-survey",[r.isSingleOptionSurveyActive]);return _.D(M,tyt(r),2)}if(M.nextAddress!=3){jC$(r,!1);r.isReadyToResume=!1;r.watchResponse=void 0;r.updateMiniplayerData(void 0);r.shortsPipMode&&(r.shortsPipMode=!1,_.Zz().dispatch(M6U(r.shortsPipMode)),LAF(r.pipController),
(B=r.player)==null||B.setInternalSize(NaN,NaN));r.watchPipMode&&(r.watchPipMode=!1,LAF(r.pipController));(w=r.watchWhileMode)&&_.nUM(r,!1);r.removePlayerListeners();var u=_.rM().resolve(_.t6);u.removeEventListener("yt-navigate",_.Do(r,r.onPlaylistNavigate));u.removeEventListener("yt-playlist-data-updated",_.Do(r,r.JSC$16660_onPlaylistDataUpdated));_.Di().currentEndpoint=null;_.US(r.miniplayerEl,"yt-miniplayer-endpoint-changed");r.playerElement=null;Y_A();return r.shortsPipMode||r.watchPipMode?M.jumpTo(3):
_.D(M,_.M2(r.miniplayerEl,_.Y("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[E,w]),3)}(O=r.player)==null||O.setInternalSize(NaN,NaN);r.player=null;_.Q3(M)})};
var tyt=function(g){var r;return _.q(function(E){r=_.rM().resolve(_.vK);return g.shortsPipMode?_.D(E,r.movePlayerToShorts(g.playerElement),0):_.D(E,r.movePlayerToWatch(g.playerElement),0)})};
nP.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16660_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
nP.prototype.setActive=function(g){this.active=g;this.isSingleOptionSurveyActive?_.OS(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.OS(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Zz().dispatch(_.Bs({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.nUM=function(g,r){g.watchWhileMode=r;_.sE(g,{watchWhile:r})};
jC$=function(g,r){if(!Aat(g))if(g.shortsPipMode||g.watchPipMode){var E;(E=g.player)==null||E.setDocumentPictureInPicture(r)}else{var B;(B=g.player)==null||B.setMinimized(r)}};
Aat=function(g){return g.watchWhileMode&&_.Y("kevlar_watch_while_counterfactual")};
_.pP=function(g){var r;return _.q(function(E){switch(E.nextAddress){case 1:if(!g.isInitialized())return E.return();_.qN(E,2);return _.D(E,g.miniplayerFetchRequest,4);case 4:_.Ne(E,3);break;case 2:_.G2(E);case 3:g.watchResponse&&g.miniplayerData&&g.miniplayerData.watchEndpoint?(r={url:g.watchResponse.url,endpoint:g.miniplayerData.watchEndpoint,data:g.watchResponse,miniplayer:!0},_.Sh(g.miniplayerEl,"yt-navigate-cache",r)):g.miniplayerData&&g.miniplayerData.watchEndpoint&&_.Sh(g.miniplayerEl,"yt-navigate",
{endpoint:g.miniplayerData.watchEndpoint}),_.Q3(E)}})};
qWU=function(g,r,E){var B,w,O,M;return _.q(function(u){if(u.nextAddress==1){if(pu5(g,r))return u.return();_.Di().currentEndpoint=r;_.US(g.miniplayerEl,"yt-miniplayer-endpoint-changed");_.US(g.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.Di().isVideoPlaying=!1;B={clientParams:{miniplayer:!0,autoSaveToQueue:!E}};w=new RCU(function(){return g.getPlayerElement()},B,{layer:g.getScreenLayer(),
parentLayer:0},void 0,g.readyToResumeVe);O=function(l){var Q,z,k=Object.assign({},(Q=l.playerResponse)==null?void 0:(z=Q.playerConfig)==null?void 0:z.playbackStartConfig,{startPaused:!0}),H;E&&((H=l.playerResponse)==null?0:H.playerConfig)&&(l.playerResponse.playerConfig.playbackStartConfig=k);w.processChunk({endpoint:r,data:l})};
bIv(g);g.miniplayerFetchRequest=Ja8(g,r,O);_.qN(u,2);return _.D(u,g.miniplayerFetchRequest,4)}if(u.nextAddress!=2)return M=u.yieldResult,Pi4(g,M),_.Ne(u,0);_.G2(u);_.Q3(u)})};
nP.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var bIv=function(g){g.miniplayerFetchRequest&&(g.miniplayerFetchRequest.cancel&&g.miniplayerFetchRequest.cancel("Active request obsolete"),g.miniplayerFetchRequest=null)},Ja8=function(g,r,E){var B=_.kl.instance,w,O=(w=_.n(r.commandMetadata,_.dU))==null?void 0:w.url,M;
w=!O||_.Y("disable_miniplayer_tempdata")?{}:(M=OUY(O))!=null?M:{};return KZ(B,r,w,window.location.href,"watch",function(u,l){E(l)},function(u){return u!==g.miniplayerFetchRequest})},Pi4=function(g,r){var E;
_.q(function(B){if(!r)return B.return();g.watchResponse=r;$OF(g);sC$(g);E=_.GvV(r.response,r.playerResponse);if(g.isMiniplayerActive()){r.response&&(g.playerElement.watchNextData=r.response);var w=_.jn.getValueByKeys.apply(_.jn,[r].concat(_.jW(t6m)));_.jn.getValueByKeys.apply(_.jn,[r].concat(_.jW(KL6)))&&w&&_.rM().resolve(_.t6).setAutoplayRenderer(w);if(w)if(_.Y("kevlar_is_pupi_enabled")){var O,M,u,l,Q,z=((O=r.response)==null?0:(M=O.playerOverlays)==null?0:(u=M.playerOverlayRenderer)==null?0:(l=u.autonavToggle)==
null?0:(Q=l.autoplaySwitchButtonRenderer)==null?0:Q.enabled)?2:1;_.h9.getInstance().setState(z,!1,!1)}else O=YLl()?2:1,(z=g.player)==null||z.setAutonavState(O);g.updateMiniplayerData(E);_.f25(g)}_.Q3(B)})},sC$=function(g){var r,E,B=(r=g.watchResponse)==null?void 0:(E=r.playerResponse)==null?void 0:E.playabilityStatus,w;
r=B==null?void 0:(w=B.miniplayer)==null?void 0:w.miniplayerRenderer;(r==null?void 0:r.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&r.minimizedEndpoint&&_.q2(g.miniplayerEl,[r.minimizedEndpoint]);_.sE(g,{miniplayerRenderer:r,playabilityStatus:B})};
nP.prototype.openToast=function(g,r){_.sE(this,{toastData:{data:g,label:r}})};
_.sE=function(g,r){var E=g.miniplayerEl,B;for(B in r)E[B]=r[B];(0,g.miniplayerPropSignalMap[1])(r)};
nP.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var g;return this.playerElement?this.playerElement:(g=_.S3(this.miniplayerEl).querySelector("#player-container"))==null?void 0:g.firstElementChild};
nP.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var YU5=function(g,r){r=r===void 0?!1:r;var E,B,w,O,M,u,l;return _.q(function(Q){if(Q.nextAddress==1){E=navigator.userActivation.isActive||r;if(!E||!g.pictureInPictureSupported())return Q.return(!1);B=FgL(g);w=B.width;O=B.height;return _.D(Q,g.pipController.openWindow({width:w,height:O}),2)}M=Q.yieldResult;u=g.pipController.getWindow();if(!u||!M)return Q.return(!1);u.document.body.style.overflow="hidden";l=gSD(u);VV$(g.pipController,function(){ejM(g);l()});
return Q.return(!0)})},FgL=function(g){var r=_.Di().shortsPipActivation,E,B;
g=r?.5625:(B=(E=g.player)==null?void 0:E.getVideoAspectRatio())!=null?B:16/9;E=Math.min(window.innerWidth,window.innerHeight)/2;r=r?0:76;return g>1?new _.oQ(E,r+E/g):new _.oQ(E*g,r+E)},ejM=function(g){var r;
_.q(function(E){r=_.rM().resolve(_.vK);return r.isOnWatch()&&g.watchPipMode||r.isOnShorts()&&g.shortsPipMode?_.D(E,g.deactivate(),0):g.miniplayerToPipMode?_.D(E,HI6(g),0):g.watchPipMode?_.D(E,_.pP(g),0):E.jumpTo(0)})};
nP.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.hx.Object.defineProperties(nP.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
nP[LU]=[hP5,BED];var Wgt="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(" "),
CiL="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(" "),Kgm="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
xO8="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var a2t=null;var Xu5={},NsL=(Xu5.initialized={priority:10,callback:function(g){var r=_.rM();r.addProvider({provide:qYn,useClass:ZwL});r.addProvider({provide:_.h45,useFactory:function(){return new umw}});
r.addProvider({provide:z3,useValue:_.Ca("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});r.addProvider({provide:rvZ,useValue:5184E6});r.addProvider({provide:k1D,useValue:_.s8()});r.addProvider({provide:Atz,useClass:S3I});r.addProvider({provide:xp,useClass:xp});r.addProvider({provide:_.wr,useFactory:function(){return qnD.promise}});
r.addProvider({provide:_.lKA,useFactory:function(){return _.uGD.promise}});
r.addProvider({provide:Imo,useValue:function(){var l;return((l=_.Tw())==null?void 0:l.getPlayer())||null}});
var E={};r.addProvider((E.provide=_.Ng,E.useFactory=function(l,Q){return function(){return MHJ(l,Q)}},E[LU]=[z3,
rvZ],E));E={};r.addProvider((E.provide=_.rI,E.useClass=mmU,E[LU]=[z3,rvZ],E));E={};r.addProvider((E.provide=_.zdV,E.useClass=VuD,E[LU]=[_.rI],E));r.addProvider({provide:Ua,useFactory:_.Zz});r.addProvider({provide:Sa,useFactory:_.Zz});r.addProvider({provide:FAM,useFactory:_.Zz});r.addProvider({provide:VKA,useFactory:_.Zz});r.addProvider({provide:_.e2,useFactory:_.Zz});r.addProvider({provide:M9,useValue:_.oc});r.addProvider({provide:mzL,useClass:Rwo});r.addProvider({provide:tm4,useClass:P5n});r.addProvider({provide:jC,
useClass:jC});r.addProvider({provide:q9,useClass:q9});r.addProvider({provide:uN,useClass:uN});r.addProvider({provide:Dl,useClass:Dl});r.addProvider({provide:eC,useClass:eC});r.addProvider({provide:oS,useClass:oS});r.addProvider({provide:Oi,useClass:Oi});r.addProvider({provide:tuI,useValue:Ds5});r.addProvider({provide:_.Y8,useFactory:_.pW});r.addProvider({provide:LT,useFactory:_.pu});E={};r.addProvider((E.provide=gqJ,E.useFactory=function(l){return function(Q){var z=z===void 0?{}:z;var k,H,R=(H=_.n((k=
Q.endpoint)==null?void 0:k.commandMetadata,_.dU))==null?void 0:H.rootVe;if(R){var A,J;if(k=Q.previousCsn||((J=_.n((A=Q.endpoint)==null?void 0:A.commandMetadata,N3m))==null?void 0:J.parentCsn)){var e=e===void 0?{}:e;if(k!==_.PE(e.layer)||R!==YGc(e.layer))$nS(k,e.cttAuthInfo,e.layer||0),HcL(k,e.layer||0),A=e.layer||0,_.W0(p2l(A===void 0?0:A),R);z.parentCsn=k}Q.endpoint&&k?S_6(l,Q.endpoint,z):_.wT(l,R,void 0,z);var C;((C=Q.response)==null?0:C.trackingParams)&&l.graftServerVe(Q.response.trackingParams);
var X;((X=Q.playerResponse)==null?0:X.trackingParams)&&l.graftServerVe(Q.playerResponse.trackingParams);var Z;((Z=Q.reelWatchSequenceResponse)==null?0:Z.trackingParams)&&l.graftServerVe(Q.reelWatchSequenceResponse.trackingParams)}}},E[LU]=[_.Y8],E));
E={};r.addProvider((E.provide=WAL,E.useClass=ePM,E[LU]=[M9,_.e2],E));E={};r.addProvider((E.provide=dE,E.useClass=dE,E[LU]=[_.wr,_.e2],E));E={};r.addProvider((E.provide=ho,E.useClass=ho,E[LU]=[Sa,_.Er],E));r.addProvider({provide:_.Nl$,useClass:yt$});E={};r.addProvider((E.provide=_.kn,E.useClass=ctF,E[LU]=[_.Nl$],E));r.addProvider({provide:_.Hh,useClass:rJ});r.addProvider({provide:_.lNn,useClass:Pn4});r.addProvider({provide:_.pj,useClass:TI});E={};r.addProvider((E.provide=_.Ie,E.useClass=ZLg,E[LU]=
[_.Ie],E));r.addProvider({provide:_.v5,useClass:fg6});r.addProvider({provide:DU,useClass:DU});r.addProvider({provide:HM,useClass:HM});r.addProvider({provide:jr,useClass:gJ});E={};r.addProvider((E.provide=J$,E.useClass=J$,E[LU]=[_.Hh,jr],E));_.Y("web_enable_feedback_endpoint_resolver")&&(E={},r.addProvider((E.provide=Mt,E.useClass=Mt,E[LU]=[Ua,Oa],E)),r.addProvider({provide:Oa,useClass:hQn}));_.Y("web_enable_feedback_endpoint_resolver_batch_2")&&(E={},r.addProvider((E.provide=uK,E.useClass=uK,E[LU]=
[Ua],E)),E={},r.addProvider((E.provide=qt,E.useClass=qt,E[LU]=[Oa],E)));E={};r.addProvider((E.provide=A$,E.useClass=A$,E[LU]=[_.pj,jr],E));E={};r.addProvider((E.provide=nT,E.useClass=nT,E[LU]=[_.pj],E));E={};r.addProvider((E.provide=bK,E.useClass=bK,E[LU]=[_.Wo,_.kn],E));E={};r.addProvider((E.provide=$L,E.useClass=$L,E[LU]=[_.Wo,_.Y8],E));r.addProvider({provide:d_,useClass:d_});E={};r.addProvider((E.provide=iK,E.useClass=iK,E[LU]=[Ua],E));r.addProvider({provide:DA,useClass:DA});r.addProvider({provide:lM,
useClass:lM});E={};r.addProvider((E.provide=GJ,E.useClass=GJ,E[LU]=[Ua],E));E={};r.addProvider((E.provide=QO,E.useClass=QO,E[LU]=[_.Wo,Ua],E));E={};r.addProvider((E.provide=zJ,E.useClass=zJ,E[LU]=[Ua],E));E={};r.addProvider((E.provide=kO,E.useClass=kO,E[LU]=[Ua],E));E={};r.addProvider((E.provide=sa,E.useClass=sa,E[LU]=[_.kn],E));E={};r.addProvider((E.provide=B_,E.useClass=B_,E[LU]=[_.Y8],E));E={};r.addProvider((E.provide=qY,E.useClass=qY,E[LU]=[y$],E));E={};r.addProvider((E.provide=uM,E.useClass=
uM,E[LU]=[y$],E));r.addProvider({provide:Ot,useClass:Ot});r.addProvider({provide:Ut,useClass:Ut});r.addProvider({provide:Et,useClass:Et});E={};r.addProvider((E.provide=PM,E.useClass=PM,E[LU]=[_.kn,_.Er],E));r.addProvider({provide:Q$,useClass:Q$});E={};r.addProvider((E.provide=fT,E.useClass=fT,E[LU]=[_.Wo,_.kn],E));r.addProvider({provide:pT,useClass:pT});E={};r.addProvider((E.provide=mv,E.useClass=mv,E[LU]=[Ua,_.Wo,_.Ie],E));E={};r.addProvider((E.provide=XK,E.useClass=XK,E[LU]=[_.Wo,_.Er],E));r.addProvider({provide:czn,
useValue:nGA});r.addProvider({provide:ZG6,useValue:MJo});r.addProvider({provide:Nt,useClass:Nt});E={};r.addProvider((E.provide=ae,E.useClass=ae,E[LU]=[Ua],E));E={};r.addProvider((E.provide=cM,E.useClass=cM,E[LU]=[_.v5,_.Er],E));E={};r.addProvider((E.provide=lK,E.useClass=lK,E[LU]=[_.Er],E));r.addProvider({provide:Sr,useFactory:function(){return new Sr(_.Zz())}});
r.addProvider({provide:Yft,useFactory:_.tO.getInstance});E={};r.addProvider((E.provide=kL,E.useClass=kL,E[LU]=[z3,Yft,_.Er],E));r.addProvider({provide:oe,useClass:oe});r.addProvider({provide:g_,useClass:g_});r.addProvider({provide:Ea,useClass:Ea});r.addProvider({provide:_.r_,useClass:_.r_});r.addProvider({provide:YO,useClass:YO});E={};r.addProvider((E.provide=CT,E.useClass=CT,E[LU]=[Sa],E));E={};r.addProvider((E.provide=KT,E.useClass=KT,E[LU]=[_.Er],E));_.Y("web_enable_prefetching_videos_on_home")&&
(r.addProvider({provide:VQ,useClass:VQ}),r.addProvider({provide:o_,useClass:o_}));E={};r.addProvider((E.provide=pe,E.useClass=pe,E[LU]=[_.Er],E));r.addProvider({provide:BM,useClass:BM});E={};r.addProvider((E.provide=T3,E.useClass=T3,E[LU]=[_.Wo,_.Er],E));E={};r.addProvider((E.provide=w_,E.useClass=w_,E[LU]=[_.Er],E));r.addProvider({provide:Gl,useClass:Gl});r.addProvider({provide:er,useClass:er});E={};r.addProvider((E.provide=FK,E.useClass=FK,E[LU]=[Sa,_.Er],E));E={};r.addProvider((E.provide=P_,E.useClass=
P_,E[LU]=[Sa,_.Er,_.Wo],E));E={};r.addProvider((E.provide=tw,E.useClass=tw,E[LU]=[_.Er],E));E={};r.addProvider((E.provide=ne,E.useClass=ne,E[LU]=[_.Er,_.Wo],E));E={};r.addProvider((E.provide=xL,E.useClass=xL,E[LU]=[_.wr],E));E={};r.addProvider((E.provide=WM,E.useClass=WM,E[LU]=[_.wr],E));r.addProvider({provide:ZU,useClass:ZU});r.addProvider({provide:vM,useClass:vM});r.addProvider({provide:oN,useClass:oN});r.addProvider({provide:gp,useClass:gp});r.addProvider({provide:h$,useClass:h$});r.addProvider({provide:YL,
useClass:YL});r.addProvider({provide:V$,useClass:V$});_.Y("kevlar_enable_mss_lazy_load")&&r.addProvider({provide:_.CZ,useClass:F6$});r.addProvider({provide:_.Qx,useClass:BQ});r.addProvider({provide:VA,useFactory:function(){return _.mH.getInstance()}});
r.addProvider({provide:PB6,useFactory:nzS});r.addProvider({provide:y$,useFactory:function(){return _.RH.getInstance()}});
r.addProvider({provide:rHD,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});E={};r.addProvider((E.provide=_.Z6,E.useClass=_.Z6,E[LU]=[_.wr,_.Er,_.Y8,PB6,y$,VA,rHD,M9],E));r.addProvider({provide:_.On,useClass:Nqm});r.addProvider({provide:_.BOA,useClass:E_U});E={};r.addProvider((E.provide=Re,E.useClass=Re,E[LU]=[_.BOA],E));E={};r.addProvider((E.provide=_.yQ,E.useFactory=function(l){return l.upliftCompletionResolver.promise},E[LU]=[WAL],E));
E=_.Ka("IS_SHELL_LOAD")?"aa":"eocs";var B=_.Ka("IS_SHELL_LOAD")?3:2;_.ep().parkOrScheduleJob(function(){KAM()},B,E);
_.ep().parkOrScheduleJob(function(){_.rM().resolve(dE).start()},2,"eocs");
_.ep().parkOrScheduleJob(function(){tVz()},2,"eocs");
_.ep().parkOrScheduleJob(function(){_.rM().resolve(ho).start()},2,"eocs");
_.Y("kevlar_debug_data_app_registration_ks")||oWc();r.addProvider({provide:_.PK,useValue:new KEZ(g.root)});r.addProvider({provide:Nb,useValue:new XwV});r.addProvider({provide:_.iEm,useValue:new mWT(g.root)});r.addProvider({provide:_.eN,useValue:new cun});r.addProvider({provide:_.pB,useClass:uo});r.addProvider({provide:hP5,useClass:EE});_.Y("kevlar_network_sli_killswitch")||r.addProvider({provide:wFF,useValue:Lbw});r.addProvider({provide:uH,useFactory:oNo});_.Y("web_bind_fetch")&&(E={},r.addProvider((E.provide=
cDM,E.useFactory=GyL,E[LU]=[_.gM(uH)],E)));_.Y("web_bind_parse")&&(E={},r.addProvider((E.provide=iw6,E.useFactory=QED,E[LU]=[_.gM(uH)],E)));_.Y("web_bind_window_request")&&(E={},r.addProvider((E.provide=LnM,E.useFactory=zvc,E[LU]=[_.gM(uH)],E)));_.Y("web_bind_text_decoder")&&(E={},r.addProvider((E.provide=VU6,E.useFactory=kyV,E[LU]=[_.gM(uH)],E)));E={};r.addProvider((E.provide=Rsn,E.useFactory=vNL,E[LU]=[_.yQ,Ua,_.Ng],E));E={};r.addProvider((E.provide=Yom,E.useClass=Fw,E[LU]=[Rsn],E));r.addProvider({provide:KyA,
useClass:FyZ});r.addProvider({provide:zsI,useClass:H_U});E=[].concat(_.jW(Lh));_.Y("web_continuation_response_processing")&&E.push(_.x3);E.push(ztn);_.Y("enable_share_panel_navigation_logging_fix_on_web")&&E.push(_.Cvn);r.addProvider({provide:bel,useValue:E});r.addProvider({provide:sKt,useClass:QW4});r.addProvider({provide:qMz,useClass:SM6});E={};r.addProvider((E.provide=pBB,E.useClass=rVw,E[LU]=[Sa],E));_.F6.addLowPriorityJob(function(){iFV()});
E={};r.addProvider((E.provide=yKm,E.useFactory=function(l){return function(Q){var z,k=(z=_.n(Q.commandMetadata,_.dU))==null?void 0:z.url;if(!k)throw new _.Rj("No URL for PBJ Command",Q);k=p3P(k,{pbj:"1"});z=xHP(k,{})||{};z=Object.assign({},z,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.Ca("STS").toString()});Q=_.oj({command:JSON.stringify(Q),session_token:_.Ca("XSRF_TOKEN")});return l.fetch(k,{method:"POST",headers:z,body:Q})}},E[LU]=[qMz],E));
E=[];E.push(r.resolve(zsI));B={};B=(B.client_location=_.tO.getInstance(),B.consistency=_.Y5J(),B.entities=r.resolve(tm4),B.response_received_commands=r.resolve(sKt),B.store=r.resolve(_.zdV),B.tokens=r.resolve(zsI),B);_.Y("web_service_params_response_processor")&&(r.addProvider({provide:r8D,useFactory:function(){var l={};return l.CSI=ptc(),l.ECATCHER=HAL(),l}}),r.addProvider({provide:D$l,
useClass:Et5}),B.service_params=r.resolve(D$l));if(_.Y("web_shorts_prefetch_service_enabled")){var w=new hsw(r.resolve(_.rI));B.shorts_prefetch=w}B.adblock_detection=r.resolve(pBB);r.addProvider({provide:_.id,useClass:_.id});w=r.resolve(tuI);var O=[];_.Y("PremiumClientSharedConfig__enable_att_context_processor")&&(r.addProvider({provide:QnZ,useClass:DlU}),O.push(r.resolve(QnZ)));if(_.Y("owl_pl_await")){var M={};r.addProvider((M.provide=KnD,M.useFactory=function(l){return new WnM(l)},M[LU]=[_.id],
M));
O.push(r.resolve(KnD))}SpT(w,r.resolve(qMz),r.resolve(mzL),B,r.resolve(_.rI),E,O,r.resolve(Yom),r.resolve(KyA));r.addProvider({provide:_.Wo,useValue:_.Il.instance});_.Y("start_client_gcf")&&r.addProvider({provide:$K,useValue:X8b()});r.addProvider({provide:aQ6,useFactory:function(){return new aQ6(_.rM().resolve(_.id),_.RH.getInstance())}});
_.ep().parkOrScheduleJob(function(){XJ8()},1,"eocs");
E={};r.addProvider((E.provide=v1,E.useClass=v1,E[LU]=[_.Ng,_.Wo],E));r.addProvider({provide:_.Ebt,useFactory:_.Dr.getInstance});_.ep().parkOrScheduleJob(function(){_.rM().resolve(v1).refresh()},0,"eocs");
v1n(Ds5.watchEndpointMap||{},w.reelWatchEndpointMap||{},g.injector.resolve(_.Wo));r.addProvider({provide:YI,useValue:_.kl.instance});_.Y("kevlar_signal_collection_killswitch")||(E={},r.addProvider((E.provide=jXA,E.useClass=jXA,E[LU]=[z3,LT],E)),_.ep().parkOrScheduleJob(function(){_.rM().resolve(jXA).record()},1,"eocs"));
_.Y("web_debug_handler_registration_killswitch")||_.ep().parkOrScheduleJob(function(){lmV("DOWNLOAD_PES",RWl);_.Y("offline_client_state_export_ks")||lmV("OFFLINE_CLIENT_STATE",HsY)},0,"eocs");
_.Y("kevlar_prevent_polymer_dynamic_font_load")&&_.ep().parkOrScheduleJob(function(){var l=[_.wF(YMm),_.wF(RzM)];l=_.U(l);for(var Q=l.next();!Q.done;Q=l.next()){Q=Q.value;var z=document.createElement("link");_.LI(z,Q,"stylesheet");document.head.appendChild(z)}},1,"eocs");
E=g.injector.resolve(_.Wo);_.GzZ.instance=new _.GzZ(E);BZY(Opz(new oMZ(E)));E={};g.injector.addProvider((E.provide=Tx,E.useFactory=function(l){(l=l==null?void 0:l.getCurrentPage())?l=l.visibilityObserver:(a2t||(a2t=jYQ()),l=a2t);return l},E[LU]=[_.gM(_.vK)],E.skipCache=!0,E));
r.addProvider({provide:_.ea,useClass:nP});r.addProvider({provide:qR,useClass:hZA});g.injector.addProvider({provide:iKU,useValue:Cgw});r.addProvider({provide:bGm,useValue:YsP});r.addProvider({provide:_.Vy,useValue:tFB});g=r.addProvider;w6D||(w6D=new BAv);g.call(r,{provide:_.wJ,useValue:w6D});r.addProvider({provide:_.Zh,useValue:_.Ca("HTML_DIR")==="rtl"?"rtl":"ltr"});r.addProvider({provide:eQT,useClass:L9n});r.addProvider({provide:_.o3,useClass:Si});_.rM().addProvider({provide:C5A,useValue:_.Y("enable_web_delhi_icons")?
CiL.concat(xO8):Wgt.concat(Kgm)});r.addProvider({provide:_.UE,useClass:_.UE});r.addProvider({provide:_.zz8,useValue:new QAv});r.addProvider({provide:eub,useClass:bp4});r.addProvider({provide:rp,useClass:rp});r.addProvider({provide:wp,useClass:wp});g={};r.addProvider((g.provide=t$,g.useClass=t$,g[LU]=[_.Wo,_.kn],g));r.addProvider({provide:RN,useClass:RN});r.addProvider({provide:T16,useClass:doL});r.addProvider({provide:MY,useClass:MY});r.addProvider({provide:$I4,useValue:unU});r.addProvider({provide:_.tE,
useClass:JVw});_.Y("enable_payments_purchase_manager")&&r.addProvider({provide:pqw,useClass:zQn});r.addProvider({provide:pF8,useFactory:function(){return function(l){return _.HD$(l)}}});
r.addProvider({provide:_.o_Z,useClass:G1n});g={};r.addProvider((g.provide=H_,g.useClass=H_,g[LU]=[_.o_Z],g));r.addProvider({provide:SQ,useClass:SQ});r.addProvider({provide:LsZ,useValue:spU});r.addProvider({provide:BPn,useValue:_.obm});r.addProvider({provide:nWc,useClass:vc6});r.addProvider({provide:Sw$,useValue:zKL});g={};r.addProvider((g.provide=Owg,g.useClass=Uzm,g[LU]=[Sw$],g));g={};r.addProvider((g.provide=_.HQ,g.useClass=k_8,g[LU]=[Owg],g));g={};r.addProvider((g.provide=_.qp,g.useClass=Mp,g[LU]=
[_.e2,_.pB],g));if(_.Y("web_explore_hub_on_hover")||_.Y("web_client_explore_hub_on_hover"))g={},r.addProvider((g.provide=G3,g.useClass=G3,g[LU]=[_.Wo,VA],g));if(_.Y("web_enable_renderer_logger")){var u=new IIL;DcQ(function(){u.abort()});
r.addProvider({provide:z_L,useValue:new bL6(u.signal)})}r.addProvider({provide:fJU,useValue:K2V});g={};r.addProvider((g.provide=yvn,g.useClass=Z_m,g[LU]=[_.Wo],g))}},Xu5);var I2F={},mOD=(I2F.initialized={priority:10,callback:function(){if(!Bgg){L$c();RvJ("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.qe(_.Hk(RvJ,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.Y("log_heartbeat_with_lifecycles")){var g={};cd.instance||(cd.instance=new cd);cd.instance.install((g.document_visible={callback:nNc,priority:10},g.document_hidden={callback:nNc,priority:10},g))}else _.Tj(document,"visibilitychange",nNc);Bgg=!0}(g=_.PE())&&g!=="UNDEFINED_CSN"&&zgc(g)}},I2F);var caD={},iID=(caD.initialized={callback:function(g){var r=_.bW(232091),E=g.injector.resolve(_.Y8);_.Sp(E,r);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?rPY()&&_.Uk(E,r):(g=g.injector.resolve(pF8)("refresh_detector"))&&(g.get("first_tab_load")?_.Uk(E,r):g.set("first_tab_load","1"))}},caD);var LgM={},Vyv=(LgM.initialized={priority:10,callback:qfA},LgM);var hjD={},ZIF=(hjD.initialized={priority:0,callback:function(){var g=new NhI,r="other";_.uR?r="chrome":_.qE?r="firefox":_.WN?r="safari":Zx&&(r="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(E){g.increment(_.HN(),E,r)}).catch(function(){g.increment(_.HN(),!1,r)}):g.increment(_.HN(),!1,r)}},hjD);var ya5={},vU4=(ya5.rendering={priority:8,callback:ugP},ya5);var dO5={},TsD=(dO5.rendering={priority:10,callback:$$c},dO5.rendered={callback:f_B},dO5),gfF={},r_5=(gfF.rendering={callback:$$c},gfF.rendered={callback:f_B},gfF);var EfM=!1,Bh$={},wb6=(Bh$.initialized={priority:10,callback:function(){EfM||(HCc({didPatch:function(g){g.el&&FWJ(g.el,g.props)},
didUnmount:function(g){Pfc(g.el)}}),EfM=!0)}},Bh$);var Smz=/^\/shorts\/?$/;_.W0("FILLER_DATA",{browse:{filler:!0,page:"browse"},search:{filler:!0,page:"search",endpoint:{commandMetadata:{webCommandMetadata:{url:"/results",webPageType:"WEB_PAGE_TYPE_SEARCH"}},urlEndpoint:{url:"/results"}},response:{contents:{twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[],subMenu:{searchSubMenuRenderer:{}}}},secondaryContents:{secondarySearchContainerRenderer:{contents:[]}}}}}},watch:{filler:!0,page:"watch",endpoint:{commandMetadata:{webCommandMetadata:{url:"/watch",
webPageType:"WEB_PAGE_TYPE_WATCH"}},urlEndpoint:{url:"/watch"}},playerResponse:{playabilityStatus:{status:"OK"}},response:{contents:{twoColumnWatchNextResults:{results:{results:{contents:[{videoPrimaryInfoRenderer:{},videoSecondaryInfoRenderer:{}}]}},secondaryResults:{secondaryResults:{}}}}}}});
if(_.Y("kevlar_enable_mss")){_.dDS(new svb);var O$M=!0,UN$,fP;O$M=O$M===void 0?!1:O$M;UN$=UN$===void 0?!1:UN$;fP=fP===void 0?{}:fP;var MWM=fP.cssRowKey||"",qm5=fP.combinedSignature||"";!MWM&&window&&window._F_cssRowKey&&(MWM=window._F_cssRowKey,!qm5&&window._F_combinedSignature&&(qm5=window._F_combinedSignature));if(MWM&&typeof window._F_installCss!=="function")throw Error("Ad");var uzm=fP.loaderClass||_.FN,$9=ano("base-js"),lDm,DN4=NWY("",$9);lDm=_.qO(DN4);var ji=new uzm(lDm,MWM,qm5,O$M,UN$),of6=
fP.useCors||$9&&$9.hasAttribute("crossorigin"),G24=fP.corsMode||$9&&$9.getAttribute("crossorigin");of6&&(ji.useCors_=of6);G24&&(ji.corsMode_=G24);fP.urlMaxLength&&(ji.urlMaxLength=fP.urlMaxLength);fP.fetchPriority&&(ji.fetchPriority=fP.fetchPriority);var QFM=PT();QFM.JSC$8144_loader_=ji;QFM.setBatchModeEnabled(!0)}
(function(){var g=document.querySelector("ytd-app");if(!g)throw Error("Nj");g=new lH({root:g,injector:_.rM()});g.install(mOD);var r={};g.install((r.initialized={priority:10,callback:kYl},r));_.Y("wp_lat_b")&&(r={},g.install((r.initialized={priority:10,callback:function(){utc()}},r)));
r={};g.install((r.rendered={priority:0,callback:GYQ},r));r={};g.install((r.rendered={priority:0,callback:function(){_.F6.addLowPriorityJob(function(){_.Vmw>1&&(UFY(),DFB())},4E4)}},r));
g.install(VvD);g.install(iID);g.install(wb6);LWc();g.install(rBg);g.install(NgM);g.install(iD6);g.install(pJL);g.install(fQ$);g.install(Tg8);g.install(NsL);_.Y("kevlar_enable_mss_lazy_load")&&g.install(Vyv);g.install(mM8);g.install(ZIF);if(!_.Ka("IS_SHELL_LOAD")||_.Y("kevlar_fetch_initial_data_promise_client")||_.Y("sw_nav_preload_pbj")){var E=_.lc(window.location.href);r=E&&E==="/watch";E=E&&E.match(Smz);r?g.install(r_5):E?g.install(vU4):g.install(TsD)}else g.install(xMv);g.install(ZDz);_.Y("web_enable_prefetching_videos_on_home")&&
g.install(Slz);_.Y("start_client_gcf")&&g.install(gt5);g.install(GSM);(new IDZ).increment("INSTALLED");g.install(BkM);g.install(W6D);g.transition("initialized");ENB()})();
_.q8=[[["bHVleGNkemtpbmQjdG9ucXE=","dGZ6anM3eHZhbHVlI3hzcTJk"],"NDYyN3l4ZEFEX1BMQUNFTUVOVF9LSU5EX1BBVVNFIzQ2a2I3"]];_.M8=["eWlvMWw5NGdsb2JhbENhbGxiYWNrcyNvdnZmbQ==","Y2VsZGxiNG9uQWJub3JtYWxpdHlEZXRlY3RlZCMxYTVobA==","aHJ0bnQyeW9uQWRTa2lwI2x3NzZv","YW04NDhkbHJhd19wbGF5ZXJfcmVzcG9uc2Ujcm4xdzU=","bmRvOTl2ZnJlbmRlcmluZ0NvbnRlbnQjYnI5aWs="];_.XL="eWlvMWw5NGdsb2JhbENhbGxiYWNrcyNvdnZmbQ== Y2VsZGxiNG9uQWJub3JtYWxpdHlEZXRlY3RlZCMxYTVobA== aHJ0bnQyeW9uQWRTa2lwI2x3NzZv YW04NDhkbHJhd19wbGF5ZXJfcmVzcG9uc2Ujcm4xdzU= aTVzdWpvdXdlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcyNka2F6cQ== MmNyMWNzdWFiX3NhX2VmI3B0Mndm bmRvOTl2ZnJlbmRlcmluZ0NvbnRlbnQjYnI5aWs=".split(" ");
_._ModuleManager_initialize=function(g,r){if(!_.bD){if(!_.Jy)return;_.dDS(_.Jy())}_.bD.setAllModuleInfoString(g,r)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5:2,3/sy6/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syd:2/syc:5,a,d/sye/syf:6/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/syl:o/nmfa2d:h,n,p/sym:7,o/syn:g,h,p,r/CF909:n,s/Tm0L3c:s/L3n37:g,h,n,r/iuT5Oc',['sy2','sy3','sy8','syd','sya','sy5','syi','syh','sye','syc','syb','sy1','syk','sy7','sy6','sym','syl','syg','syf','syj','syn','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.PQ=function(g,r,E,B,w){var O={};r&&(O[r]=E);B?O.errorType=B:w&&(O.errorReason=w);_.Jn(g,O);_.Pf()};
_.tZ=function(g){var r=_.ep();return _.cHT(r,g,1)};
_.ba({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 g=this.query;g&&(this.full||g[0]==="("||(g="("+g+")"),this._mq=window.matchMedia(g),this._add(),this.queryHandler(this._mq))},
queryHandler:function(g){this._setQueryMatches(g.matches)}});var $N5;var jFz;var A_g=function(){};
_.S=A_g.prototype;_.S.addOwnKeyBinding=function(){};
_.S.removeOwnKeyBindings=function(){};
_.S.keyboardEventMatchesKeys=function(){};
_.S._collectKeyBindings=function(){};
_.S._prepKeyBindings=function(){};
_.S._addKeyBinding=function(){};
_.S._resetKeyEventListeners=function(){};
_.S._listenKeyEventListeners=function(){};
_.S._unlistenKeyEventListeners=function(){};
_.S._onKeyBindingEvent=function(){};
_.S._triggerKeyHandler=function(){};
_.S._tapHandler=function(){};
_.S._focusChanged=function(){};
_.S._detectKeyboardFocus=function(){};
_.S._userActivate=function(){};
_.S._upHandler=function(){};
_.S._spaceKeyDownHandler=function(){};
_.S._spaceKeyUpHandler=function(){};
_.S._asyncClick=function(){};
_.S._pressedChanged=function(){};
_.S._ariaActiveAttributeChanged=function(){};
_.S._activeChanged=function(){};
_.S._controlStateChanged=function(){};
_.S._changedButtonState=function(){};
_.S._focusBlurHandler=function(){};
_.S._disabledChanged=function(){};
_.S._changedControlState=function(){};
_.S._downHandler=function(){};
_.S.ensureRipple=function(){};
_.S.getRipple=function(){};
_.S.hasRipple=function(){};
_.S._noinkChanged=function(){};
_.S._focusedChanged=function(){};
_.S._createRipple=function(){};
_.S.registered=function(){};
_.S._invalidChanged=function(){};
_.S.hasValidator=function(){};
_.S.validate=function(){};
_.S._getValidity=function(){};
_.S._requiredChanged=function(){};
_.S._valueChanged=function(){};
_.S._checkedChanged=function(){};
_.S._buttonStateChanged=function(){};
_.S._setPressed=function(){};
_.S._setPointerDown=function(){};
_.S._setReceivedFocusFromKeyboard=function(){};
_.S._setFocused=function(){};
A_g=_.ba({is:"tp-yt-paper-radio-button",_template:function(){if(jFz!==void 0)return jFz;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;$N5===void 0&&($N5=document.createElement("template"));var B=$N5;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return jFz=g},
behaviors:[_.lBA],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(){_.Lk(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var g=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),r=Math.floor(3*g);r%2!==g%2&&r++;this.updateStyles({"--paper-radio-button-ink-size":r+"px"})}})}});var b$A;var J_t;_.ba({_template:function(){if(J_t!==void 0)return J_t;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;b$A===void 0&&(b$A=document.createElement("template"));var B=b$A;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return J_t=g},
is:"tp-yt-paper-radio-group",behaviors:[_.fh6],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(g){var r=this._valueToItem(g);if(!r||!r.hasAttribute("disabled")){if(this.selected){r=this._valueToItem(this.selected);if(this.selected==g)if(this.allowEmptySelection)g="";else{r&&(r.checked=!0);return}r&&
(r.checked=!1)}_.ci.select.apply(this,[g]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(g){this._focusPrevious();g.preventDefault();this._activateFocusedItem()},
_onDownKey:function(g){this._focusNext();g.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(g){_.s3w._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(g){_.s3w._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.ci._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.sX._resetTabindices.apply(this,arguments);this.items.forEach(function(g){g.removeAttribute("aria-selected")},this)}});var PYv;_.ek("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var F_=function(){return _.a.apply(this,arguments)||this};
_.f(F_,_.a);_.S=F_.prototype;_.S.computeHasPrimaryIcon=function(g){return!(!g.icon&&!g.thumbnail)};
_.S.computeHasSecondary=function(g){return!(!g.secondaryIcon&&!g.secondaryNotificationText)};
_.S.computeHideSecondaryString=function(g){return!_.Y("disable_hide_empty_secondary_string")&&!g.secondaryNotificationText};
_.S.computeCompactLinkStyle=function(g){return g?g.toLowerCase().replace(/_/g,"-"):""};
_.S.computeHasFitHeight=function(g){return g==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.S.isActiveEndpoint=function(g){return(g=this.get("commandMetadata.webCommandMetadata.url",g))?_.lc(window.location.href)!=="/account_transfer_channel"&&_.lc(window.location.href)!=="/gaia_link"&&_.lc(window.location.href)!=="/channel_switcher"||g!=="/account"?_.lc(window.location.href)===g:!0:!1};
_.S.onTap=function(){var g;((g=this.data)==null?0:g.serviceEndpoint)&&_.q2(this.hostElement,[this.data.serviceEndpoint])};
F_.prototype.onTap=F_.prototype.onTap;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],F_.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],F_.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.L("design:type",Boolean)],F_.prototype,"active",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.L("design:type",String)],F_.prototype,"compactLinkStyle",void 0);
_.m([_.K({computed:"computeIcon_(data.icon)"}),_.L("design:type",Object)],F_.prototype,"icon",void 0);_.m([_.K({computed:"computeIcon_(data.secondaryIcon)"}),_.L("design:type",Object)],F_.prototype,"secondaryIcon",void 0);_.m([_.K({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],F_.prototype,"hasSecondary",void 0);_.m([_.K({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],F_.prototype,"hideSecondaryString",void 0);
_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],F_.prototype,"onTap",null);_.m([_.N({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],F_);
_.I(F_,"ytd-compact-link-renderer",function(){if(PYv!==void 0)return PYv;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return PYv=g},{mode:1});var tWM;_.ek("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var ei=function(){var g=_.a.apply(this,arguments)||this;g.role="link";g.tabindex="0";g.actionMap=_.Y("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 g};
_.f(ei,_.a);_.S=ei.prototype;_.S.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.bF()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.S.getCurrentTheme=function(){return _.JO()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.bF()};
_.S.onThemeSelected=function(g,r){var E=g||r?g:_.AO(),B=(E&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!E&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.kpo(_.lc(window.location.href));_.Yg(0,165,g);_.Yg(0,174,r);this.prefs.save();B&&_.OS(this.hostElement,"yt-dark-mode-toggled-action",[E]);_.OS(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.S.onTap=function(){this.data.serviceEndpoint&&_.q2(this.hostElement,[this.data.serviceEndpoint])};
_.S.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.S.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.S.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
ei.prototype.onTap=ei.prototype.onTap;ei.prototype.dataChanged=ei.prototype.dataChanged;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],ei.prototype,"actionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ei.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.Ii),_.L("design:type",Object)],ei.prototype,"paperItemBehaviors",void 0);_.m([_.K(),_.L("design:type",Object)],ei.prototype,"data",void 0);_.m([_.K({value:function(){return _.pu()}}),
_.L("design:type",_.ZX)],ei.prototype,"prefs",void 0);_.m([_.K(),_.L("design:type",Object)],ei.prototype,"label",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],ei.prototype,"role",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],ei.prototype,"tabindex",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ei.prototype,"dataChanged",null);
_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ei.prototype,"onTap",null);_.m([_.N({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],ei);
_.I(ei,"ytd-toggle-theme-compact-link-renderer",function(){if(tWM!==void 0)return tWM;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return tWM=g},{mode:1});
}catch(e){_._DumpException(e)}
try{
var eT$,Wr$;_.WQ=function(g){return!!g.getOptions("captions")};
_.Frz=function(g){return(g=g.getOption("captions","track"))?!!g.displayName:!1};
_.CP=function(g,r){_.Pm(r,g,function(){return eT$[r]},function(E){eT$[r]=E;
if(!_.Y("mweb_player_ve_show_ks")){var B=_.PE(0);B&&E&&_.mZ(B,E)}})};
_.KP=function(g){(g=eT$[g])&&_.Uk(_.pW(),g)};
eT$={};var CY8;/*

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
*/
_.ba({_template:function(){if(CY8!==void 0)return CY8;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;Wr$===void 0&&(Wr$=document.createElement("template"));var B=Wr$;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return CY8=g},
is:"tp-yt-paper-checkbox",behaviors:[_.lBA],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.Lk(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var g=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),r="px",E=g.match(/[A-Za-z]+$/);E!==null&&(r=E[0]);g=parseFloat(g);E=8/3*g;r==="px"&&(E=Math.floor(E),E%2!==g%2&&E++);this.updateStyles({"--paper-checkbox-ink-size":E+
r})}})},
_computeCheckboxClass:function(g,r){var E="";g&&(E+="checked ");r&&(E+="invalid");return E},
_computeCheckmarkClass:function(g){return g?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.qgw._createRipple.call(this)}});var KrL=new _.V("radioButtonSurveyOptionRenderer"),xND=new _.V("checkboxSurveyOptionRenderer");var aDv;var Xb$;var Nh4=0,x9=function(){var g=_.a.call(this)||this;g.selected=!1;g.isOverlay=!1;g.inputId="toggle-option-"+Nh4;Nh4++;return g};
_.f(x9,_.a);x9.prototype.onTap=function(){_.Sh(this.hostElement,"ytd-toggle-option-clicked")};
_.m([_.K(),_.L("design:type",String)],x9.prototype,"label",void 0);_.m([_.K(),_.L("design:type",String)],x9.prototype,"inputId",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],x9.prototype,"selected",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],x9.prototype,"isOverlay",void 0);_.m([_.N({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.L("design:paramtypes",[])],x9);
_.I(x9,"ytd-toggle-option-renderer",function(){if(Xb$!==void 0)return Xb$;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return Xb$=g},{mode:1});var a_=function(){var g=_.a.apply(this,arguments)||this;g.isToggleOption=!1;g.isOverlay=!1;return g};
_.f(a_,_.a);a_.prototype.onTap=function(g){g.preventDefault();this.data&&(g=!this.data.checked,this.set("data.checked",g),_.Sh(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:g,value:this.data.value}))};
_.hx.Object.defineProperties(a_.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
a_.prototype.onTap=a_.prototype.onTap;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],a_.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],a_.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],a_.prototype,"isToggleOption",void 0);_.m([_.K(),_.L("design:type",Object)],a_.prototype,"isOverlay",void 0);_.m([_.W("data.responseText"),_.L("design:type",String),_.L("design:paramtypes",[])],a_.prototype,"label",null);
_.m([_.ob("ytd-toggle-option-clicked"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],a_.prototype,"onTap",null);_.m([_.N({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],a_);
_.I(a_,"ytd-checkbox-survey-option-renderer",function(){if(aDv!==void 0)return aDv;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return aDv=g},{mode:1});var ID$;var mNg;var X_=function(){var g=_.a.apply(this,arguments)||this;g.checked=!1;g.isToggleOption=!1;return g};
_.f(X_,_.a);X_.prototype.onTap=function(){this.data&&(this.checked?_.OS(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.OS(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
X_.prototype.onTap=X_.prototype.onTap;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],X_.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],X_.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],X_.prototype,"checked",void 0);_.m([_.K(),_.L("design:type",Object)],X_.prototype,"isToggleOption",void 0);_.m([_.ob("ytd-toggle-option-clicked"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],X_.prototype,"onTap",null);
_.m([_.N({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],X_);
_.I(X_,"ytd-radio-button-survey-option-renderer",function(){if(mNg!==void 0)return mNg;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return mNg=g},{mode:1});var Np=function(){var g=_.a.apply(this,arguments)||this;g.disableAnimation=!1;g.isToggleOption=!0;g.followUpSurveyCommand=null;g.selectedRatingEndpoint=null;g.isSlimlineSurveyFollowUp=!1;g.isShortsStyle=!1;g.styleOverrideAttribute=!0;g.isDarkMode=!1;g.isSubmitted=!1;g.roundedContainer=!0;g.improveShortsResponseRate=_.Y("web_improve_shorts_response_rate");g.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 g};
_.f(Np,_.a);_.S=Np.prototype;
_.S.configureRendererStamper=function(){return{"data.inlineContent":{id:"inline-survey-compact-video-renderer",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",properties:{isShortsStyle:"[[isShortsStyle]]"}}}},"data.response.expandableSurveyResponseRenderer.options":{id:"rating-survey",mapping:{ratingSurveyRenderer:{component:"ytd-rating-survey-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]",
showResponseRangeText:"[[isShortsStyle]]"}}}},"followUpSurveyCommand.followUpOptions":{id:"follow-up-survey-options",mapping:{checkboxSurveyOptionRenderer:{component:"ytd-checkbox-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]",isOverlay:"[[isShortsStyle]]"}},radioButtonSurveyOptionRenderer:{component:"ytd-radio-button-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]"}}}},"data.response.expandableSurveyResponseRenderer.skipButton":{id:"skip-btn-footer",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.response.expandableSurveyResponseRenderer.continueButton":{id:"continue-btn-footer",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"post-submit-message",mapping:{messageRenderer:{component:"ytd-message-renderer"}}}}};
_.S.attached=function(){var g=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(E){var B;if((B=E[0])!=null&&B.isIntersecting){_.kP().reportShown(g.hostElement);var w;(w=g.intersectionObserver)==null||w.unobserve(g.hostElement)}},{rootMargin:"0px",
threshold:.6});var r;(r=this.intersectionObserver)==null||r.observe(this.hostElement)};
_.S.onDarkModeToggledAction=function(g){this.isDarkMode=g};
_.S.dataChanged=function(){var g;if(((g=this.data)==null?void 0:g.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var r;((r=this.data)==null?void 0:r.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var E,B,w,O;this.darkColorPalette=(E=this.data)==null?void 0:(B=E.inlineContent)==null?void 0:(w=B.compactVideoRenderer)==null?void 0:(O=w.thumbnail)==null?
void 0:O.darkColorPalette;var M,u,l,Q;this.lightColorPalette=(M=this.data)==null?void 0:(u=M.inlineContent)==null?void 0:(l=u.compactVideoRenderer)==null?void 0:(Q=l.thumbnail)==null?void 0:Q.lightColorPalette;var z,k;if(((z=this.data)==null?0:(k=z.inlineContent)==null?0:k.compactVideoRenderer)&&this.isShortsStyle){var H,R,A,J;g=_.Sk((H=this.data)==null?void 0:(R=H.inlineContent)==null?void 0:(A=R.compactVideoRenderer)==null?void 0:(J=A.thumbnail)==null?void 0:J.thumbnails);_.ua(this.hostElement,
{"--yt-background-url":"url("+g+")"})}};
_.S.handleRequestCompletion=function(){this.hostElement.hidden&&_.Sh(this.hostElement,"yt-dismissible-item-dismissed")};
_.S.onPopupClosed=function(g){var r;((r=g.detail)==null?void 0:r.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.OS(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.S.handleInlineSurveyRatingSelect=function(g,r){var E=this;this.selectedRatingEndpoint=g;this.followUpSurveyCommand=r;this.expanded=!!g;this.getOptionRenderers().forEach(function(B,w){E.notifyPath("followUpSurveyCommand.followUpOptions."+w+".checkboxSurveyOptionRenderer.checked");E.set("followUpSurveyCommand.followUpOptions."+w+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),g=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.OS(this.hostElement,"yt-reel-non-video-content-dismissal-command",[g]))};
_.S.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.OS(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var g,r=(g=this.data)==null?void 0:g.dismissalEndpoint;r&&this.ytComponentBehavior.resolveCommand(r)}};
_.S.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.OS(this.hostElement,"yt-close-popup-action"))};
_.S.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var g=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{g=this.getOptionRenderers().filter(function(B){return B.checked});
if(g.length===0)return;g=g.map(function(B){return B.responseEndpoint})}var r=[];
g.forEach(function(B,w){w!==0&&(B=_.n(B,_.AQ))&&B.feedbackToken&&r.push(B.feedbackToken)});
if(g=g[0]){var E={};r.length>0&&(E.extra_feedback_tokens=r);this.ytComponentBehavior.resolveCommand(g,{form:E})}}};
_.S.getOptionRenderers=function(){var g=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(r){g.isSingleSelect=!!_.n(r,KrL);return g.isSingleSelect?_.n(r,KrL):_.n(r,xND)}):[]};
_.S.handleInlineSurveyOptionSelect=function(g){g=this.optionSelector.indexOf(g);g!==-1&&this.optionSelector.selectIndex(g)};
_.S.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.S.maybeGetBackgroundColor=function(g){return this.isDarkMode?g.section2Color:g.section3Color};
_.S.colorPaletteChanged=function(){var g=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;g=g&&this.maybeGetBackgroundColor(g);this.dismissibleEl.style.backgroundColor=!g||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.aJ(g)};
_.hx.Object.defineProperties(Np.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
Np.prototype.colorPaletteChanged=Np.prototype.colorPaletteChanged;Np.prototype.onPopupClosed=Np.prototype.onPopupClosed;Np.prototype.handleRequestCompletion=Np.prototype.handleRequestCompletion;Np.prototype.dataChanged=Np.prototype.dataChanged;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Np.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Np.prototype,"actionHandlerBehavior",void 0);
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Np.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Np.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.Ji),_.L("design:type",Object)],Np.prototype,"ytdDismissibleItemBehavior",void 0);_.m([_.zb("#follow-up-survey-options"),_.L("design:type",Object)],Np.prototype,"optionSelector",void 0);_.m([_.K(),_.L("design:type",Object)],Np.prototype,"data",void 0);
_.m([_.K(),_.L("design:type",Object)],Np.prototype,"disableAnimation",void 0);_.m([_.K(),_.L("design:type",Object)],Np.prototype,"isToggleOption",void 0);_.m([_.K(),_.L("design:type",Object)],Np.prototype,"followUpSurveyCommand",void 0);_.m([_.K(),_.L("design:type",Object)],Np.prototype,"selectedRatingEndpoint",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],Np.prototype,"expanded",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Np.prototype,"isSlimlineSurveyFollowUp",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Np.prototype,"isShortsStyle",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Np.prototype,"styleOverrideAttribute",void 0);_.m([_.K(),_.L("design:type",Boolean)],Np.prototype,"isSingleSelect",void 0);_.m([_.K(),_.L("design:type",Object)],Np.prototype,"isDarkMode",void 0);
_.m([_.K(),_.L("design:type",Object)],Np.prototype,"lightColorPalette",void 0);_.m([_.K(),_.L("design:type",Object)],Np.prototype,"darkColorPalette",void 0);_.m([_.W("selectedRatingEndpoint","isShortsStyle"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Np.prototype,"isOptionSelected",null);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Np.prototype,"roundedContainer",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Np.prototype,"improveShortsResponseRate",void 0);_.m([_.zb("#dismissible"),_.L("design:type",HTMLElement)],Np.prototype,"dismissibleEl",void 0);_.m([_.zb("#dismiss-button yt-icon-button"),_.L("design:type",HTMLElement)],Np.prototype,"dismissButtonEl",void 0);_.m([_.zb("#inline-survey-header yt-icon-button"),_.L("design:type",HTMLElement)],Np.prototype,"inlineHeaderDismissButtonEl",void 0);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Np.prototype,"dataChanged",null);_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Np.prototype,"handleRequestCompletion",null);_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],Np.prototype,"onPopupClosed",null);
_.m([_.Gb("darkColorPalette","lightColorPalette","isDarkMode"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Np.prototype,"colorPaletteChanged",null);_.m([_.N({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],Np);
_.I(Np,"ytd-inline-survey-renderer",function(){if(ID$!==void 0)return ID$;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return ID$=g},{mode:1});var c_F=["en-CA","en","es-MX","fr-CA"];_.i$6=_.dG(function(g){var r=_.y7(g,{isOverlay:!1,isModern:!1}),E=r.captionIconType,B=r.onClick;g=r.ariaLabel;var w=r.ariaPressed,O=r.isOverlay,M=r.isModern;r=_.VI("button",function(Q){_.CP(Q,127299)});
var u=_.HK(function(Q){_.KP(127299);B==null||B(Q);return!1}),l={};
return _.G("ytm-closed-captioning-button",{class:_.QY("ytmClosedCaptioningButtonHost",(l.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return E()===-1&&O()},l.ytmClosedCaptioningButtonIconDisabled=function(){return E()===-1&&!O()},l))},_.G("button",{el:r,
class:"ytmClosedCaptioningButtonButton",title:g,"aria-label":g,"aria-pressed":w,"on:click":u},_.G(_.nh,{icon:function(){var Q="",z=M();var k=z?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";z=z?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var H=_.pu().get("hl");k=!H||c_F.includes(H)?k:z;z=E();switch(z){case -1:case 0:Q=k;break;case 1:Q=k+"_FILLED";break;default:_.MM(z)}return Q}})))},"jf");
_.i$6.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.hz=function(g){return function(r,E){var B=g||E.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(r,E,{get:function(){var w;return this.$?this.$[B]:(w=_.Q7(this))==null?void 0:w.querySelector("#"+B)},
enumerable:!0,configurable:!0})}};_.ZF=function(g){g=g===void 0?!1:g;_.f5.call(this);this.pubSub_=new _.GZ(g);_.oO(this,this.pubSub_)};
_.rc(_.ZF,_.f5);_.ZF.prototype.subscribe=function(g,r,E){return this.isDisposed()?0:this.pubSub_.subscribe(g,r,E)};
_.ZF.prototype.unsubscribe=function(g,r,E){return this.isDisposed()?!1:this.pubSub_.unsubscribe(g,r,E)};
_.ZF.prototype.unsubscribeByKey=function(g){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(g)};
_.ZF.prototype.publish=function(g,r){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var Flm=function(){_.PQ("ypcRedeemFlowStarted")},Gv=function(g){_.PQ("ypcRedeemFlowFailed",void 0,void 0,void 0,g)},e2m=function(g,r,E){r&&E&&(g.videos.forEach(function(B){B.videoId===r&&(B.itemId=E)}),g.recommendedVideos.forEach(function(B){B.videoId===r&&(B.itemId=E)}))};var WlD;var CX$;/*

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
*/
_.ba({_template:function(){if(CX$!==void 0)return CX$;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;WlD===void 0&&(WlD=document.createElement("template"));var B=WlD;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return CX$=g},
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(g,r){var E=this._resolveSrc(g);E!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",g===""||r?this._setLoading(!1):(this._resolvedSrc=E,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 g=this.$.sizedImgDiv.style,r=this.$.placeholder.style;g.backgroundSize=r.backgroundSize=this.sizing;g.backgroundPosition=r.backgroundPosition=this.sizing?this.position:"";g.backgroundRepeat=r.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(g){g=_.wH(g,this.$.baseURIAnchor.href);g.length>=2&&g[0]==="/"&&g[1]!=="/"&&(g=(location.origin||location.protocol+"//"+location.host)+g);return g}});var Kl8;var xgF;_.ba({_template:function(){if(xgF!==void 0)return xgF;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;Kl8===void 0&&(Kl8=document.createElement("template"));var B=Kl8;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return xgF=g},
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(g){return g?"false":"true"},
_headingChanged:function(g){var r=this.getAttribute("heading"),E=this.getAttribute("aria-label");typeof E==="string"&&E!==r||this.setAttribute("aria-label",g)},
_computeHeadingClass:function(g){return g?" over-image":""},
_computeAnimated:function(g){return g}});var a6M=new _.V("addRendererToItemSectionAction");var X1M;var Qb=function(){return _.a.apply(this,arguments)||this};
_.f(Qb,_.a);Qb.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Qb.prototype,"rendererBehavior",void 0);_.m([_.P(_.Ji),_.L("design:type",Object)],Qb.prototype,"dismissibleItemBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Qb.prototype,"rendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Qb.prototype,"data",void 0);_.m([_.N({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],Qb);
_.I(Qb,"ytd-comment-history-entry-renderer",function(){if(X1M!==void 0)return X1M;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return X1M=g},{mode:1});var NEg;_.ek("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.ek("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var zv=function(){return _.a.apply(this,arguments)||this};
_.f(zv,_.a);_.S=zv.prototype;_.S.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S.onKeyUp=function(g){if(g.keyCode===13)this.onTap()};
_.S.onTap=function(){this.data.recordClickEndpoint&&_.rM().resolve(_.Er).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var g=this.data.navigationEndpoint;g&&_.n(g,_.bw)&&_.rM().resolve(_.Er).resolveCommand(g,{form:{element:this.hostElement}})};
_.S.readChanged=function(){var g;_.UN(this.hostElement,"unread",!((g=this.data)==null?0:g.read))};
_.S.dataChanged=function(){this.data&&_.UN(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.S.computeThumbnailSize=function(){var g;return((g=this.data)==null?0:g.highPriorityNotification)?32:48};
_.S.getEndpointURL=function(g){return g&&!_.n(g,_.bw)?this.componentBehavior.computeHref_(g):null};
_.S.getEndpointData=function(g){return g&&!_.n(g,_.bw)?g:null};
zv.prototype.computeThumbnailSize=zv.prototype.computeThumbnailSize;zv.prototype.dataChanged=zv.prototype.dataChanged;zv.prototype.readChanged=zv.prototype.readChanged;zv.prototype.onKeyUp=zv.prototype.onKeyUp;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],zv.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],zv.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],zv.prototype,"componentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],zv.prototype,"data",void 0);_.m([_.K({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.L("design:type",Number)],zv.prototype,"thumbnailSize",void 0);_.m([_.ob("keyup"),_.L("design:type",Function),_.L("design:paramtypes",[KeyboardEvent]),_.L("design:returntype")],zv.prototype,"onKeyUp",null);
_.m([_.Gb("data.read"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],zv.prototype,"readChanged",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],zv.prototype,"dataChanged",null);_.m([_.Gb("data.highPriorityNotification"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],zv.prototype,"computeThumbnailSize",null);
_.m([_.N({is:"ytd-notification-renderer",disableElementRegistration:!0})],zv);
_.I(zv,"ytd-notification-renderer",function(){if(NEg!==void 0)return NEg;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return NEg=g},{mode:1});var I6F;var kq=function(){return _.a.apply(this,arguments)||this};
_.f(kq,_.a);kq.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"}}}};
kq.prototype.computeActionButtonClass=function(g){return!g.actionButtons||g.actionButtons.length<=1?"single-button":g.description?"vertical-buttons":"horizontal-buttons"};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],kq.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],kq.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],kq.prototype,"data",void 0);_.m([_.N({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],kq);
_.I(kq,"ytd-playlist-show-metadata-renderer",function(){if(I6F!==void 0)return I6F;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return I6F=g},{mode:1});var mg$;_.ek("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var He=function(){return _.a.apply(this,arguments)||this};
_.f(He,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],He.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],He.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],He.prototype,"data",void 0);_.m([_.N({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],He);
_.I(He,"ytd-purchase-item-renderer",function(){if(mg$!==void 0)return mg$;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return mg$=g},{mode:1});var coF;var igD={};igD.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(g){if(g)return g.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(g){if(g==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.ek("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var p8=function(){return _.a.apply(this,arguments)||this};
_.f(p8,_.a);p8.prototype.onYtNavigate=function(g){var r=this.openPopupBehavior.getNavigationEndpointPopupAction(g.detail.endpoint);r&&(g.stopPropagation(),this.openPopupBehavior.openPopup(r))};
p8.prototype.onYtNavigate=p8.prototype.onYtNavigate;_.m([_.P(igD.YtSimpleTextSectionBehavior),_.L("design:type",Object)],p8.prototype,"ytSimpleTextSectionBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],p8.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.cY),_.L("design:type",Object)],p8.prototype,"openPopupBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],p8.prototype,"data",void 0);
_.m([_.ob("yt-navigate"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],p8.prototype,"onYtNavigate",null);_.m([_.N({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],p8);
_.I(p8,"ytd-simple-text-section-renderer",function(){if(coF!==void 0)return coF;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return coF=g},{mode:1});var Llt;_.ek("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var Yq=function(){return _.a.apply(this,arguments)||this};
_.f(Yq,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Yq.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Yq.prototype,"data",void 0);_.m([_.N({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],Yq);
_.I(Yq,"ytd-unlimited-page-feature-info-renderer",function(){if(Llt!==void 0)return Llt;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Llt=g},{mode:1});var VCt;var h26;var RL=function(){return _.a.apply(this,arguments)||this};
_.f(RL,_.a);RL.prototype.dataChanged=function(){if(this.data){var g=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);g&&(g=_.wt(g,screen.width),this.hostElement.style.backgroundImage="url("+g+")")}};
RL.prototype.dataChanged=RL.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],RL.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],RL.prototype,"data",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],RL.prototype,"dataChanged",null);_.m([_.N({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],RL);
_.I(RL,"ytd-post-redemption-section-renderer",function(){if(h26!==void 0)return h26;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return h26=g},{mode:1});var Zgz;var n8=function(){return _.a.apply(this,arguments)||this};
_.f(n8,_.a);n8.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],n8.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],n8.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],n8.prototype,"data",void 0);_.m([_.N({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],n8);
_.I(n8,"ytd-ypc-post-redemption-renderer",function(){if(Zgz!==void 0)return Zgz;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Zgz=g},{mode:1});_.ek("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var sA=function(){var g=_.a.apply(this,arguments)||this;g.MIN_CODE_LENGTH=12;g.MAX_CODE_LENGTH=24;return g};
_.f(sA,_.a);_.S=sA.prototype;_.S.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.S.created=function(){this.riskService=new _.ITL;this.loadPaymentThenable=_.cUS(_.Ca("YPC_MB_URL"))};
_.S.ready=function(){var g=this;this.code.addEventListener("keypress",function(r){g.onCodeInputKeypress(r)})};
_.S.dataChanged=function(){var g=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(r){r=_.U(r);for(var E=r.next();!E.done;E=r.next())E=E.value,E.type==="attributes"&&E.attributeName==="dark"&&g.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.S.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var g=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+g+")")}};
_.S.computeRedeemButton=function(g){(g=this.get("redeemButton.buttonRenderer",g))&&(g=Object.assign({},g,{serviceEndpoint:void 0}));return g};
_.S.onRedeemButtonTap=function(g){g.stopPropagation();Flm();this.redeemCode()};
_.S.redeemCode=function(){var g=this;this.isLoading=!0;var r=this.riskService.init();_.pc([r,this.loadPaymentThenable]).then(function(){var E=g.data.redeemButton.buttonRenderer.serviceEndpoint,B=_.mIS(),w=payments.business.integration.ClientTokenFactory.createClientToken(_.n(E,_.NTw).countryCode,B);B={c:g.code.value.trim(),rd:window.btoa(B),ctk:w};E&&_.rM().resolve(_.Er).resolveCommand(E,{form:Object.assign({},B,{element:g.hostElement})})},function(){g.showGenericError();
Gv("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.xF(Error("$l"))})};
_.S.onYtServiceRequestCompleted=function(g){g.stopPropagation();this.isLoading=!1;var r,E;this.errorMessage=(r=g.detail)==null?void 0:(E=r.data)==null?void 0:E.errorMessage;var B,w;this.postRedemptionRenderer=(B=g.detail)==null?void 0:(w=B.data)==null?void 0:w.renderer;var O,M;if(g=(O=g.detail)==null?void 0:(M=O.data)==null?void 0:M.redirectEndpoint)this.isLoading=!0,_.Sh(this.hostElement,"yt-navigate",{endpoint:g});this.errorMessage?Gv("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
g)&&_.PQ("ypcRedeemFlowSucceeded")};
_.S.onYtServiceRequestError=function(g){g.stopPropagation();this.isLoading=!1;if(g=this.get("detail.error.message",g))this.errorMessage=_.Lf(g);Gv("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.S.onInvokeInstrumentManagerActionCompleted=function(g){g.stopPropagation();this.redeemCode()};
_.S.onInvokeInstrumentManagerActionError=function(g){g.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",g)){case "instrumentManagerLoadError":this.showGenericError();Gv("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();Gv("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.PQ("ypcRedeemFlowCancelled")}};
_.S.onInput=function(){var g=this;_.Ib(this,"onInput",function(){var r=g.code.value.trim();g.redeemButtonDisabled=r.length<g.MIN_CODE_LENGTH||r.length>g.MAX_CODE_LENGTH},200)};
_.S.onCodeInputKeypress=function(g){g.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(Flm(),this.redeemCode())};
_.S.computeImageUrl=function(g){return g?_.wt(g.thumbnails,600):null};
_.S.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
sA.prototype.onInvokeInstrumentManagerActionError=sA.prototype.onInvokeInstrumentManagerActionError;sA.prototype.onInvokeInstrumentManagerActionCompleted=sA.prototype.onInvokeInstrumentManagerActionCompleted;sA.prototype.onYtServiceRequestError=sA.prototype.onYtServiceRequestError;sA.prototype.onYtServiceRequestCompleted=sA.prototype.onYtServiceRequestCompleted;sA.prototype.dataChanged=sA.prototype.dataChanged;
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],sA.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],sA.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],sA.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],sA.prototype,"isLoading",void 0);_.m([_.K(),_.L("design:type",Boolean)],sA.prototype,"redeemButtonDisabled",void 0);
_.m([_.K(),_.L("design:type",Object)],sA.prototype,"errorMessage",void 0);_.m([_.K(),_.L("design:type",Object)],sA.prototype,"postRedemptionRenderer",void 0);_.m([_.K(),_.L("design:type",Object)],sA.prototype,"observer",void 0);_.m([_.zb("#code"),_.L("design:type",HTMLInputElement)],sA.prototype,"code",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],sA.prototype,"dataChanged",null);
_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],sA.prototype,"onYtServiceRequestCompleted",null);_.m([_.ob("yt-service-request-error"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],sA.prototype,"onYtServiceRequestError",null);
_.m([_.ob("yt-invoke-instrument-manager-action-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],sA.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.m([_.ob("yt-invoke-instrument-manager-action-error"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],sA.prototype,"onInvokeInstrumentManagerActionError",null);_.m([_.N({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],sA);
_.I(sA,"ytd-redeem-code-renderer",function(){if(VCt!==void 0)return VCt;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return VCt=g},{mode:1});var yoD;_.ek("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var f8=function(){var g=_.a.apply(this,arguments)||this;g.businessEmailDisplayState="HIDE_SECTION";return g};
_.f(f8,_.a);_.S=f8.prototype;_.S.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:{component:"yt-channel-external-link-view-model",params:{useSmallFont:!0}}}}}};
_.S.dataChanged=function(){this.data&&(this.data.businessEmailButton||this.data.signInForBusinessEmail)?this.data.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.data.businessEmail&&(this.businessEmail=this.data.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.S.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.S.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.xy("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.S.onYtServiceRequestCompleted=function(g){var r;if((r=g.detail.data)==null?0:r.businessEmail)this.businessEmail=g.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var E;if((E=g.detail.data)==null?0:E.errorMessage)this.businessEmailErrorMessage=g.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.S.computeEmailHref=function(g){return"mailto:"+g};
_.S.computeSafeUrl=function(g){if(g)return _.nI(g)};
_.S.onBusinessEmailCaptchaSubmit=function(){var g;(g=this.data)!=null&&g.onBusinessEmailRevealClickCommand&&(g=this.JSC$19267_captchaTextarea.value)&&(g={recaptcha_response_token:g,channel_id:this.data.channelId},_.rM().resolve(_.Er).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},g,{element:this.hostElement})}))};
_.S.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.hx.Object.defineProperties(f8.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 g,r;return!((g=this.data)==null||!g.primaryLinks)&&!((r=this.data)==null?0:r.links)&&this.data.primaryLinks.every(function(E){return E.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var g,r;return!((g=this.data)==null||!g.primaryLinks)&&!((r=this.data)==null?0:r.links)&&!this.shouldShowNewLinks}}});
f8.prototype.onYtServiceRequestCompleted=f8.prototype.onYtServiceRequestCompleted;f8.prototype.dataChanged=f8.prototype.dataChanged;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],f8.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],f8.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],f8.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.zb("#g-recaptcha-response"),_.L("design:type",HTMLTextAreaElement)],f8.prototype,"JSC$19267_captchaTextarea",void 0);_.m([_.K(),_.L("design:type",Object)],f8.prototype,"data",void 0);_.m([_.K(),_.L("design:type",String)],f8.prototype,"businessEmailDisplayState",void 0);_.m([_.K(),_.L("design:type",String)],f8.prototype,"businessEmail",void 0);_.m([_.K(),_.L("design:type",String)],f8.prototype,"businessEmailErrorMessage",void 0);
_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],f8.prototype,"hideDetailsSection",null);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],f8.prototype,"dataChanged",null);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],f8.prototype,"shouldShowNewLinks",null);_.m([_.W("data","shouldShowLinks"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],f8.prototype,"shouldShowLegacyLinks",null);
_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],f8.prototype,"onYtServiceRequestCompleted",null);_.m([_.N({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],f8);
_.I(f8,"ytd-channel-about-metadata-renderer",function(){if(yoD!==void 0)return yoD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return yoD=g},{mode:1});var vHL;_.ek("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var $q=function(){return _.a.apply(this,arguments)||this};
_.f($q,_.a);$q.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]]"}}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],$q.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],$q.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],$q.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Number)],$q.prototype,"lockupContainerType",void 0);_.m([_.K(),_.L("design:type",String)],$q.prototype,"thumbnailFixedWidth",void 0);
_.m([_.N({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],$q);
_.I($q,"ytd-channel-featured-content-renderer",function(){if(vHL!==void 0)return vHL;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return vHL=g},{mode:1});var dgM;_.ek("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var jx=function(){var g=_.a.apply(this,arguments)||this;g.roundContainer=!0;g.amsterdamEnabled=_.Y("enable_desktop_amsterdam_info_panels");return g};
_.f(jx,_.a);_.S=jx.prototype;_.S.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.S.dataChanged=function(){this.imageWidth=this.imageHeight=24;var g=this.data;g.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!g.style&&g.image&&g.image.thumbnails.length&&(g=g.image.thumbnails[0],this.imageWidth=g.width||0,this.imageHeight=g.height||0)};
_.S.computeSource=function(g){return g.secondarySource?_.Vp(g.secondarySource):_.Vp(g.source)};
_.S.computeClarifyStyle=function(g){return g?g.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.S.isLargeStyle=function(g){return g==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.S.computeBackgroundStyle=function(g){return g?g.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.S.computeHasActionButton=function(g){return!!g.actionButton};
_.S.computeHasBottomSection=function(g){return!!g.ctaHasBottomSection};
_.S.computeIsSourceMissing=function(g){return g.ctaHasBottomSection===!1?!0:g&&this.computeSource(g)?!1:!0};
_.S.computeSecondaryEndpoint=function(g){return g.secondaryEndpoint||g.endpoint};
jx.prototype.dataChanged=jx.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],jx.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],jx.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],jx.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Number)],jx.prototype,"imageWidth",void 0);_.m([_.K(),_.L("design:type",Number)],jx.prototype,"imageHeight",void 0);
_.m([_.K({computed:"computeSecondaryEndpoint(data)"}),_.L("design:type",Object)],jx.prototype,"secondaryEndpoint",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.L("design:type",Boolean)],jx.prototype,"hasActionButton",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.L("design:type",Boolean)],jx.prototype,"hasBottomSection",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.L("design:type",Boolean)],jx.prototype,"missingSource",void 0);_.m([_.K({computed:"computeIcon_(data.icon)"}),_.L("design:type",String)],jx.prototype,"icon",void 0);_.m([_.K({computed:"computeIcon_(data.secondaryIcon)"}),_.L("design:type",String)],jx.prototype,"secondaryIcon",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.L("design:type",String)],jx.prototype,"clarifyStyle",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.L("design:type",String)],jx.prototype,"backgroundStyle",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],jx.prototype,"roundContainer",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],jx.prototype,"amsterdamEnabled",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],jx.prototype,"dataChanged",null);
_.m([_.N({is:"ytd-clarification-renderer",disableElementRegistration:!0})],jx);
_.I(jx,"ytd-clarification-renderer",function(){if(dgM!==void 0)return dgM;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return dgM=g},{mode:1});var TEt;var g98;var AY=function(){var g=_.a.apply(this,arguments)||this;g.amsterdamEnabled=_.Y("enable_desktop_amsterdam_info_panels");return g};
_.f(AY,_.a);_.S=AY.prototype;_.S.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.S.computeIcon=function(g){return g?"yt-icons:"+g.toLowerCase():null};
_.S.computeUseContacts=function(g){return!!g.contacts&&g.contacts.length>0};
_.S.computePhoneContact=function(g){var r,E;return(r=g.contacts)==null?void 0:(E=r.find(function(B){var w;return(B==null?void 0:(w=B.icon)==null?void 0:w.iconType)==="PHONE"}))==null?void 0:E.actionText};
_.S.computeSmsContact=function(g){var r,E;return(r=g.contacts)==null?void 0:(E=r.find(function(B){var w;return(B==null?void 0:(w=B.icon)==null?void 0:w.iconType)==="SMS"}))==null?void 0:E.actionText};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],AY.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],AY.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],AY.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],AY.prototype,"amsterdamEnabled",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.L("design:type",Boolean)],AY.prototype,"useContacts",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.L("design:type",String)],AY.prototype,"phoneContact",void 0);_.m([_.N({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],AY);
_.I(AY,"ytd-single-action-emergency-support-renderer",function(){if(g98!==void 0)return g98;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return g98=g},{mode:1});_.ek("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var bC=function(){var g=_.a.apply(this,arguments)||this;g.roundedContainer=!0;g.amsterdamEnabled=_.Y("enable_desktop_amsterdam_info_panels");return g};
_.f(bC,_.a);bC.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"}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],bC.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],bC.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],bC.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],bC.prototype,"roundedContainer",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],bC.prototype,"amsterdamEnabled",void 0);
_.m([_.N({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],bC);
_.I(bC,"ytd-emergency-onebox-renderer",function(){if(TEt!==void 0)return TEt;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return TEt=g},{mode:1});var rZ$;_.ek("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var JY=function(){return _.a.apply(this,arguments)||this};
_.f(JY,_.a);JY.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"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],JY.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],JY.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],JY.prototype,"data",void 0);_.m([_.N({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],JY);
_.I(JY,"ytd-exploratory-results-renderer",function(){if(rZ$!==void 0)return rZ$;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return rZ$=g},{mode:1});var E9L;_.ek("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var Pe=function(){var g=_.a.apply(this,arguments)||this;g.messageData=null;return g};
_.f(Pe,_.a);_.S=Pe.prototype;_.S.onServiceRequestCompleted=function(g,r){g=r.actions||[];r=0;for(var E=g.length;r<E;r++){var B=g[r],w=void 0,O=void 0;if((w=_.n(B,_.zi))==null?0:(O=w.item)==null?0:O.messageRenderer)this.messageData=_.n(B,_.zi).item.messageRenderer}};
_.S.dataChanged=function(){var g=this.data;this.hostElement.hidden=!1;_.UN(this.hostElement,"is-channel",g&&!g.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.S.computeThumbnailWidth=function(g){return g?126:56};
_.S.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.S.onSubmitTap=function(){var g=this.data,r=this.selectedResponseIndex;g!==void 0&&r!==void 0&&(g=g.responses[r],g.responseData&&_.rM().resolve(_.Er).resolveCommand(g.responseData,{form:{element:this.hostElement}}))};
_.S.onDismissTap=function(){this.hostElement.hidden=!0;var g=this.data;g!==void 0&&g.dismissalEndpoint&&_.rM().resolve(_.Er).resolveCommand(g.dismissalEndpoint,{form:{element:this.hostElement}})};
_.S.updateSelectedResponseIndexFromBinding=function(g){this.selectedResponseIndex=g.detail.value};
Pe.prototype.onSelectedResponseIndexChange=Pe.prototype.onSelectedResponseIndexChange;Pe.prototype.dataChanged=Pe.prototype.dataChanged;Pe.prototype.onServiceRequestCompleted=Pe.prototype.onServiceRequestCompleted;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Pe.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Pe.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],Pe.prototype,"messageData",void 0);
_.m([_.K(),_.L("design:type",Number)],Pe.prototype,"selectedResponseIndex",void 0);_.m([_.zb("#submit-button"),_.L("design:type",HTMLButtonElement)],Pe.prototype,"submitButton",void 0);_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.hR]),_.L("design:returntype")],Pe.prototype,"onServiceRequestCompleted",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Pe.prototype,"dataChanged",null);
_.m([_.Gb("selectedResponseIndex"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Pe.prototype,"onSelectedResponseIndexChange",null);_.m([_.N({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],Pe);
_.I(Pe,"ytd-feedback-elicitation-single-question-renderer",function(){if(E9L!==void 0)return E9L;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return E9L=g},{mode:1});var BJD;var tY=function(){return _.a.apply(this,arguments)||this};
_.f(tY,_.a);tY.prototype.computeThumbnailWidth=function(g){return g?602:428};
tY.prototype.updateWideFromBinding=function(g){this.wide=g.detail.value};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],tY.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],tY.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Boolean)],tY.prototype,"wide",void 0);_.m([_.N({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],tY);
_.I(tY,"ytd-newspaper-hero-video-renderer",function(){if(BJD!==void 0)return BJD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return BJD=g},{mode:1});var wQg;var Fk=function(){return _.a.apply(this,arguments)||this};
_.f(Fk,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Fk.prototype,"rendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Fk.prototype,"data",void 0);_.m([_.N({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],Fk);
_.I(Fk,"ytd-newspaper-mini-video-renderer",function(){if(wQg!==void 0)return wQg;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return wQg=g},{mode:1});var SEM;_.ek("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var ex=function(){return _.a.apply(this,arguments)||this};
_.f(ex,_.a);ex.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"}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],ex.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ex.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ex.prototype,"data",void 0);_.m([_.N({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],ex);
_.I(ex,"ytd-newspaper-renderer",function(){if(SEM!==void 0)return SEM;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return SEM=g},{mode:1});var OPt;_.ek("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var We=function(){var g=_.a.apply(this,arguments)||this;g.isSegment=!1;g.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};g.nextContinuation={continuationType:"playlistVideoListContinuation"};return g};
_.f(We,_.a);_.S=We.prototype;_.S.attached=function(){_.rM();var g;(g=_.rM().resolve(_.gM(_.Ie)))!=null&&(g.playlistVideoListElement=this.hostElement)};
_.S.detached=function(){var g;(g=_.rM().resolve(_.gM(_.Ie)))!=null&&(g.playlistVideoListElement=void 0);g=_.rM().resolve(_.gM(_.v5));_.Y("web_enable_voting_animation")&&g&&(g.parentElem=void 0,g.videos=[],g.continuationsPresent=!1,g.showRefreshPill=!1)};
_.S.configureRendererStamper=function(){return{"data.contents":{id:"contents",reuseComponents:!1,mapping:{playlistVideoRenderer:{component:"ytd-playlist-video-renderer",properties:{canReorder:"[[canReorder]]"}},continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.continuations":{id:"continuations",mapping:{nextContinuationData:"yt-next-continuation"}},"data.sortFilterMenu":{id:"sort-filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",
params:{closeOnActivate:"true"}}}}}};
_.S.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.S.dataChanged=function(){var g=_.rM().resolve(_.gM(_.v5));if(_.Y("web_enable_voting_animation")&&this.data&&g){var r=_.S3(this.hostElement).querySelector("#contents");r&&(g.parentElem=r);g.addVideos(this.data.contents)}_.pCD(this.ytReorderableBehavior)};
_.S.onRendererstamperFinished=function(){this.canReorder&&_.YiT(this.ytReorderableBehavior,_.S3(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.S.onPlaylistReloading=function(){this.isReloading=!0};
_.S.onUpdateSetVideoId=function(g){if(g.detail&&this.data&&this.data.contents){var r=g.detail;g=this.data.contents.findIndex(function(w){var O;return((O=w.playlistVideoRenderer)==null?void 0:O.videoId)===r.videoId});
if(!(g<0)&&r.setVideoId&&(this.set("data.contents."+g+".playlistVideoRenderer.setVideoId",r.setVideoId),_.Y("web_enable_voting_animation"))){var E;if(g=_.n((E=this.data.contents[g].playlistVideoRenderer)==null?void 0:E.engagementBar,_.lTl)){var B;(B=g.actions)==null||B.forEach(function(w){if(w=_.n(w,_.DIQ))w.itemId=r.setVideoId})}(E=_.rM().resolve(_.gM(_.v5)))&&e2m(E,r.videoId,r.setVideoId)}}};
_.S.computeContentsClass=function(g){return g?"reloading":""};
_.S.computeIsSortable=function(g,r){return g&&r>0&&!this.isSegment&&!_.Y("shorts_in_playlists_web")};
_.S.computeIsEditable=function(g){return g};
_.S.computeCanReorder=function(g){return g};
_.S.handlePlaylistRemoveVideosAction=function(g){if(this.get("playlistRemoveVideosAction.setVideoIds",g)&&this.data&&this.data.contents){g=_.n(g,_.ixA).setVideoIds;for(var r=this.data.contents.length-1;r>=0;){var E=this.data.contents[r].playlistVideoRenderer;E&&E.setVideoId&&g.includes(E.setVideoId)&&this.splice("data.contents",r,1);r--}_.OS(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.S.updateIndices=function(){if(this.data&&this.data.contents)for(var g=0;g<this.data.contents.length;g++)this.set("data.contents."+g+".playlistVideoRenderer.index",_.Lf(String(g+1)))};
_.S.handleDrop=function(g){g=g.currDragItem;var r=_.IX(g.parentNode.childNodes,g),E=this.data.contents.splice(Number(_.Vp(g.data.index))-1,1)[0];this.data.contents.splice(r,0,E);r=r?this.get("contents."+(r-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();g=this.buildReorderServiceEndpoint(g.data.setVideoId,r);this.ytComponentBehavior.resolveCommand(g)};
_.S.buildReorderServiceEndpoint=function(g,r){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",g),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",r),this.data.onReorderEndpoint):null};
_.S.handleUpdatePlaylistAction=function(g){var r;(g=_.n((r=_.n(g,_.Lqm))==null?void 0:r.updatedRenderer,_.DPI))&&this.canReorder!==g.canReorder&&this.set("data.canReorder",g.canReorder);g&&g.contents&&(this.set("data.contents",g.contents),this.isReloading=!1);g&&g.continuations&&this.set("data.continuations",g.continuations)};
_.S.handleAddRendererToItemSectionAction=function(g){var r,E=(r=_.n(g,a6M))==null?void 0:r.renderer,B;E&&((B=_.n(g,a6M))==null?void 0:B.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,E),g=_.rM().resolve(_.gM(_.v5)),_.Y("web_enable_voting_animation")&&g&&(E&&(r=_.unV(E))&&g.recommendedVideos.push({itemId:r,videoId:_.oGD(E),voteCount:_.GHL(E),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.S.isVotingEnabledOnPlaylist=function(g){if(!g)return!1;g=_.U(g);for(g=g.next();!g.done;g=g.next()){var r=void 0;return!!_.n((r=g.value.playlistVideoRenderer)==null?void 0:r.engagementBar,_.lTl)}return!1};
_.S.onAppendContinuationItemsActionFinished=function(){var g;this.isVotingEnabledOnPlaylist((g=this.data)==null?void 0:g.contents)&&(this.updateIndices(),g=_.rM().resolve(_.gM(_.v5)),_.Y("web_enable_voting_animation")&&g&&this.data&&g.addVideos(this.data.contents))};
_.S.updateVideoData=function(g){if(g.detail&&this.data&&this.data.contents){var r=g.detail;g=r.toIdx;var E=r.itemId,B=r.newVoteCount,w=r.voteStatus;r=r.hideItem;var O,M,u=(O=this.data)==null?void 0:(M=O.contents)==null?void 0:M.findIndex(function(k){return _.unV(k)===E});
if(!(u<0)){O=this.data.contents[u];var l;if((l=O.playlistVideoRenderer)==null?0:l.voteCount)O.playlistVideoRenderer.voteCount=B;var Q;if(l=_.n((Q=O.playlistVideoRenderer)==null?void 0:Q.engagementBar,_.lTl)){var z;(z=l.actions)==null||z.forEach(function(k){(k=_.n(k,_.DIQ))&&k.initialState&&(k.initialState.votes=B,k.initialState.status=w)})}this.data.contents.splice(u,1);
r||this.data.contents.splice(g,0,O);this.updateIndices()}}};
We.prototype.updateVideoData=We.prototype.updateVideoData;We.prototype.onAppendContinuationItemsActionFinished=We.prototype.onAppendContinuationItemsActionFinished;We.prototype.onUpdateSetVideoId=We.prototype.onUpdateSetVideoId;We.prototype.onPlaylistReloading=We.prototype.onPlaylistReloading;We.prototype.onRendererstamperFinished=We.prototype.onRendererstamperFinished;We.prototype.dataChanged=We.prototype.dataChanged;
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],We.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],We.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],We.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.Nv.YtNextContinuationBehavior),_.L("design:type",Object)],We.prototype,"ytNextContinuationBehavior",void 0);
_.m([_.P(_.RZZ),_.L("design:type",Object)],We.prototype,"ytReorderableBehavior",void 0);_.m([_.P(_.Xe),_.L("design:type",Object)],We.prototype,"ytContinuationHandlerBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],We.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],We.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Boolean)],We.prototype,"isReloading",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],We.prototype,"isSegment",void 0);_.m([_.K({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.L("design:type",Boolean)],We.prototype,"isSortable",void 0);_.m([_.K({computed:"computeIsEditable(data.isEditable)"}),_.L("design:type",Boolean)],We.prototype,"isEditable",void 0);_.m([_.K({computed:"computeCanReorder(data.canReorder)"}),_.L("design:type",Boolean)],We.prototype,"canReorder",void 0);
_.m([_.K({value:101}),_.L("design:type",Number)],We.prototype,"scrollMargin",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],We.prototype,"dataChanged",null);_.m([_.ob("yt-rendererstamper-finished"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],We.prototype,"onRendererstamperFinished",null);
_.m([_.ob("yt-playlist-reloading"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],We.prototype,"onPlaylistReloading",null);_.m([_.ob("yt-update-set-video-id"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],We.prototype,"onUpdateSetVideoId",null);
_.m([_.ob("yt-append-continuation-items-action-finished"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],We.prototype,"onAppendContinuationItemsActionFinished",null);_.m([_.ob("yt-update-video-data-voting-animation"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],We.prototype,"updateVideoData",null);_.m([_.N({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],We);
_.I(We,"ytd-playlist-video-list-renderer",function(){if(OPt!==void 0)return OPt;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return OPt=g},{mode:_.My("kevlar_poly_si_batch_j047")?1:2});var UpF;var C8=function(){return _.a.apply(this,arguments)||this};
_.f(C8,_.a);C8.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"}}}}};
C8.prototype.onTextWrapperTap=function(g){var r=this.data&&this.data.navigationEndpoint;r&&!_.Zy(_.Z1(g),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.Sh(this.hostElement,"yt-navigate",{endpoint:r})};
C8.prototype.dataChanged=function(){var g=this.get("data.offerButton.buttonRenderer.serviceEndpoint");g&&g.commandMetadata&&_.n(g.commandMetadata,_.nY)&&_.n(g.commandMetadata,_.nY).fireAutomatically&&_.rM().resolve(_.Er).resolveCommand(g,{form:{element:this.hostElement}})};
C8.prototype.dataChanged=C8.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],C8.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],C8.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.K4),_.L("design:type",Object)],C8.prototype,"ytdLockupBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],C8.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,value:function(){return _.Y("enable_desktop_search_bigger_thumbs")}}),
_.L("design:type",Boolean)],C8.prototype,"useBiggerThumbs",void 0);_.m([_.K({reflectToAttribute:!0,value:function(){return _.Sg("desktop_search_bigger_thumbs_style")}}),
_.L("design:type",String)],C8.prototype,"biggerThumbsStyle",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],C8.prototype,"leftAligned",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],C8.prototype,"dataChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-movie-renderer"})],C8);
_.I(C8,"ytd-movie-renderer",function(){if(UpF!==void 0)return UpF;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return UpF=g},{mode:1});var MiM;var K8=function(){var g=_.a.apply(this,arguments)||this;g.rounded=!0;g.pageAttachedTo=void 0;g.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return g};
_.f(K8,_.a);K8.prototype.attached=function(){this.pageAttachedTo=_.rM().resolve(_.vK).getCurrentPage();_.Sh(this.hostElement,"yt-player-attached",this.player)};
K8.prototype.detached=function(){var g;if((g=this.pageAttachedTo)==null?0:g.hostElement)_.Sh(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
K8.prototype.dataChanged=function(){var g;if((g=this.data)==null?0:g.videoId)g={video_id:this.data.videoId,autoplay:!0},!_.Y("miniplayer_stop_channel_video_autoplay_killswitch")&&_.rM().resolve(_.ea).isMiniplayerActive()&&(g.pause_at_start=!0,g.autoplay=!1),this.player.loadVideoWithPlayerVars(g)};
K8.prototype.handleSignalActionPausePlayer=function(){_.gr().pause()};
K8.prototype.dataChanged=K8.prototype.dataChanged;_.m([_.K(),_.L("design:type",Object)],K8.prototype,"data",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],K8.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],K8.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],K8.prototype,"rounded",void 0);_.m([_.zb("#player"),_.L("design:type",Object)],K8.prototype,"player",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],K8.prototype,"dataChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],K8);
_.I(K8,"ytd-channel-video-player-renderer",function(){if(MiM!==void 0)return MiM;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return MiM=g},{mode:1});var qEm;var u_D;var lrt;var xq=function(){var g=_.a.apply(this,arguments)||this;g.playing=!1;g.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.Ew(g);g.active=!1;return g};
_.f(xq,_.a);_.S=xq.prototype;_.S.detached=function(){this.stop()};
_.S.play=function(){var g=this,r,E,B,w,O;return _.q(function(M){if(M.nextAddress==1)return g.active=!0,r=g.get("data.inlinePlaybackEndpoint.watchEndpoint"),E=r.videoId||g.data.videoId,B=r.startTimeSeconds||0,w=r.playerParams||null,_.Y("kevlar_player_update_killswitch")?_.D(M,g.playerEl.update({args:{video_id:E,startSeconds:B,player_params:w}}),2):(g.playerEl.loadVideoWithPlayerVars({video_id:E,startSeconds:B,player_params:w,autoplay:!0}),M.jumpTo(2));if(M.nextAddress!=4)return _.D(M,g.playerEl.getPlayerPromise(),
4);O=M.yieldResult;O.unloadModule("annotations_module");O.addEventListener("onStateChange",function(u){g.onPlayerStateChange(u)});
_.Q3(M)})};
_.S.onPlayerStateChange=function(g){if(this.active)switch(this.playing=g===1,g){case 1:_.Sh(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.Sh(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.S.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.S.resize=function(){var g=this,r;return _.q(function(E){if(E.nextAddress==1)return _.D(E,g.playerEl.getPlayerPromise(),2);r=E.yieldResult;r.setSize(NaN,NaN);_.Q3(E)})};
_.m([_.K(),_.L("design:type",Object)],xq.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],xq.prototype,"playing",void 0);_.m([_.K(),_.L("design:type",Object)],xq.prototype,"playerId",void 0);_.m([_.zb("#player"),_.L("design:type",Object)],xq.prototype,"playerEl",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],xq);
_.I(xq,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(lrt!==void 0)return lrt;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return lrt=g},{mode:1});var DpL;var o95;var aL=function(){var g=_.a.apply(this,arguments)||this;g.width=0;return g};
_.f(aL,_.a);_.S=aL.prototype;_.S.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.Do(this,this.onEnded));this.mp4El.addEventListener("error",_.Do(this,this.onError))};
_.S.detached=function(){this.videoEl.removeEventListener("ended",_.Do(this,this.onEnded));this.mp4El.removeEventListener("error",_.Do(this,this.onError))};
_.S.play=function(){var g=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var r=this.videoEl.play();r?r.then(function(){g.handleVideoStartPlaying()}).catch(function(){_.Sh(g.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.Sh(this.hostElement,"yt-video-thumbnail-not-playing")};
_.S.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.S.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.S.dataChanged=function(){var g;if((g=this.data)==null?0:g.thumbnailPlaceholder)g=_.wt(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+g+")";this.stop();this.autoplay&&this.play()};
_.S.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.S.onEnded=function(){this.stop();_.Sh(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.S.onError=function(){_.Sh(this.hostElement,"yt-video-thumbnail-error")};
_.S.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.S.getVideoThumbnail=function(g){if(g&&g.length)return g[0]};
aL.prototype.dataChanged=aL.prototype.dataChanged;_.m([_.K(),_.L("design:type",Object)],aL.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],aL.prototype,"animatePlaceholderOnEntrance",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],aL.prototype,"autoplay",void 0);_.m([_.K({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.L("design:type",Object)],aL.prototype,"videoThumbnail",void 0);
_.m([_.K(),_.L("design:type",Boolean)],aL.prototype,"loop",void 0);_.m([_.K(),_.L("design:type",Boolean)],aL.prototype,"isVideoPlaying",void 0);_.m([_.K(),_.L("design:type",Object)],aL.prototype,"width",void 0);_.m([_.zb("#mp4"),_.L("design:type",HTMLElement)],aL.prototype,"mp4El",void 0);_.m([_.zb("#placeholder"),_.L("design:type",HTMLElement)],aL.prototype,"placeholderEl",void 0);_.m([_.zb("#video"),_.L("design:type",HTMLVideoElement)],aL.prototype,"videoEl",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],aL.prototype,"dataChanged",null);_.m([_.e3({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],aL);
_.I(aL,"yt-video-as-thumbnail-details",function(){if(o95===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;DpL===void 0&&(DpL=document.createElement("template"));var B=DpL;E.call(r,B.content.cloneNode(!0),g.content.firstChild);o95=g}g=o95;return g},{mode:2});var Xk=function(){var g=_.a.apply(this,arguments)||this;g.disableGridStateAware=!1;g.animationEnabled=_.Y("enable_web_ketchup_hero_animation");g.transitioningOut=!1;g.narrow=!1;g.narrower=!1;g.isCarouselInFeed=!1;g.videoTimeoutJobId=0;g.panelTimeoutJobId=0;g.panelTimeoutJobStartMs=0;g.actionMap={"yt-window-resized":"onWindowResized"};return g};
_.f(Xk,_.a);_.S=Xk.prototype;_.S.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.S.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var g;this.player&&((g=this.data)==null?0:g.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.S.attached=function(){this.onWindowResized()};
_.S.detached=function(){this.clearTimeouts()};
_.S.onWindowResized=function(){this.updateSize()};
_.S.computePanelLayout=function(g){return g&&g.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.S.playVideo=function(){var g;this.video&&((g=this.data)==null?0:g.videoThumbnail)&&this.video.play();var r;this.player&&((r=this.data)==null?0:r.inlinePlaybackRenderer)&&this.player.play()};
_.S.stopVideo=function(){var g;this.video&&((g=this.data)==null?0:g.videoThumbnail)&&this.video.stop();var r;this.player&&((r=this.data)==null?0:r.inlinePlaybackRenderer)&&this.player.stop()};
_.S.transitionOut=function(){var g=this;this.transitioningOut=!0;return new Promise(function(r){var E=function(){_.S3(g.hostElement).querySelector("#action-button").removeEventListener("animationend",E);_.F6.cancelJob(B);r();g.transitioningOut=!1};
var B=_.fC(_.F6,E,1E3);_.S3(g.hostElement).querySelector("#action-button").addEventListener("animationend",E);g.player&&(g.player.playing=!1)})};
_.S.computeMetadataOrder=function(g){return g&&g.metadataOrder&&g.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?g.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.S.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.S.computeAvatarSize=function(g){return g&&g.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.S.onContentClick=function(g){if(!_.Zy(_.Z1(g),this.hostElement,["A".toString(),"BUTTON".toString()])){var r;if((r=this.data)==null?0:r.navigationEndpoint){var E;this.componentBehavior.resolveCommand((E=this.data)==null?void 0:E.navigationEndpoint)}}};
_.S.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.S.setBackgroundImage=function(g){if(g=this.getBackgroundImageUrl(g))_.S3(this.hostElement).querySelector("#hero").style.backgroundImage="url("+g+")"};
_.S.setScrimLayer=function(g){var r=this.getScrimLayerColorStops(g);g=((g==null?void 0:g.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(g=180);_.Ca("HTML_DIR")==="rtl"&&(g=-g);r&&(_.S3(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+g+"deg, "+r+")")};
_.S.isNarrower=function(){return this.hostElement.clientWidth<Xk.NARROW_VERSION_SIZE};
_.S.getScrimLayerColorStops=function(){var g,r=(g=this.data)==null?void 0:g.scrimColorValues;if(!r)return null;if(r.length===1)return g=_.XT(r[0]),g+" 0%, "+g+" 100%";if(r.length===3){var E=[0,72,98];return r.map(function(B,w){return _.XT(B)+" "+E[w]+"%"}).join(",")}return null};
_.S.getBackgroundImageUrl=function(g){return g&&g.largeFormFactorBackgroundThumbnail?_.wt((g.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||g.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.S.onPlaying=function(){this.startVideoTimeout()};
_.S.onEnded=function(){this.rotate()};
_.S.startPanelTimeout=function(){var g=this;if(!this.panelTimeoutJobId){var r=this.get("data.minPanelDisplayDurationMs");r&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.fC(_.F6,function(){g.rotate()},r))}};
_.S.startVideoTimeout=function(){var g=this;if(!this.videoTimeoutJobId){_.F6.cancelJob(this.panelTimeoutJobId);var r=Date.now()-this.panelTimeoutJobStartMs;r=Math.max(0,this.get("data.minPanelDisplayDurationMs")-r);r=Math.max(this.get("data.minVideoPlayDurationMs")||0,r);this.videoTimeoutJobId=_.fC(_.F6,function(){g.rotate()},r)}};
_.S.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.F6.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.F6.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.S.rotate=function(){this.clearTimeouts();_.Sh(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.hx.Object.defineProperties(Xk.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.S3(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.S3(this.hostElement).querySelector("#video")}}});
_.hx.Object.defineProperties(Xk,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
Xk.prototype.onEnded=Xk.prototype.onEnded;Xk.prototype.onPlaying=Xk.prototype.onPlaying;Xk.prototype.dataChanged=Xk.prototype.dataChanged;_.m([_.P(_.ti),_.L("design:type",Object)],Xk.prototype,"ytdGridStateAwareBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Xk.prototype,"componentBehavior",void 0);_.m([_.P(_.eb.YtdGuideStateAwareBehavior),_.L("design:type",Object)],Xk.prototype,"ytdGuideStateAwareBehavior",void 0);
_.m([_.P(_.qjZ),_.L("design:type",Object)],Xk.prototype,"ytBooleanLogicBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Xk.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Xk.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Xk.prototype,"ytRendererBehavior",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Xk.prototype,"disableGridStateAware",void 0);_.m([_.K(),_.L("design:type",Object)],Xk.prototype,"data",void 0);_.m([_.K({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.L("design:type",String)],Xk.prototype,"panelLayout",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Xk.prototype,"animationEnabled",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Xk.prototype,"transitioningOut",void 0);
_.m([_.K({computed:"computeMetadataOrder(data)"}),_.L("design:type",Boolean)],Xk.prototype,"metadataOrder",void 0);_.m([_.K({computed:"computeByline(data)"}),_.L("design:type",Object)],Xk.prototype,"byline",void 0);_.m([_.K({computed:"computeAvatarSize(data)"}),_.L("design:type",Number)],Xk.prototype,"avatarSize",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Xk.prototype,"narrow",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Xk.prototype,"narrower",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Xk.prototype,"layoutStyle",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Xk.prototype,"isCarouselInFeed",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Xk.prototype,"dataChanged",null);_.m([_.ob("yt-default-promo-panel-renderer-playing"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Xk.prototype,"onPlaying",null);
_.m([_.ob("yt-default-promo-panel-renderer-ended"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Xk.prototype,"onEnded",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],Xk);
_.I(Xk,"ytd-default-promo-panel-renderer",function(){if(u_D!==void 0)return u_D;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return u_D=g},{mode:1});_.ek("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var NT=function(){var g=_.a.apply(this,arguments)||this;g.narrower=!1;g.dotMenuVisible=!1;g.paginationThumbnailsVisible=!1;g.active=!0;g.disableGridStateAware=!1;g.actionMap={"yt-window-resized":"onWindowResized"};return g};
_.f(NT,_.a);_.S=NT.prototype;_.S.configureRendererStamper=function(){return{currentItem:{id:"carousel-item",mapping:{defaultPromoPanelRenderer:{component:"ytd-default-promo-panel-renderer",attributes:{autoplay:!0},properties:{disableGridStateAware:"[[disableGridStateAware]]",layoutStyle:"[[data.layoutStyle]]",isCarouselInFeed:"[[isCarouselInFeed]]"}}}}}};
_.S.attached=function(){document.addEventListener("yt-page-type-changed",_.Do(this,this.onPageTypeChange));this.currentPageSubtype=_.QP(location.pathname);this.onWindowResized()};
_.S.detached=function(){this.jobId&&_.F6.cancelJob(this.jobId);this.updateSizeJobId&&_.F6.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.Do(this,this.onPageTypeChange))};
_.S.onPageTypeChange=function(g){this.active=g.detail.newPageSubtype===this.currentPageSubtype};
_.S.onWindowResized=function(){this.updateSize()};
_.S.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.S.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.S.setCarouselItem=function(g){g>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.F6.cancelJob(this.jobId);var r=this.getCurrentPanelElement();r&&r.stopVideo();this.currentItemIndex=g%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(r||(r=this.getCurrentPanelElement()),r.playVideo()):this.startRotationJob()};
_.S.scrollThumbnails=function(g){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var r=this.getCurrentPaginationElement();if(r){var E=_.S3(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?E.style.transform="translateX(0)":(r=r.offsetWidth+8,E.style.transform="translateX(-"+r*(g-Math.ceil(Math.floor(this.overlay.offsetWidth/r)/2)+1)+"px)")}}};
_.S.onDataChanged=function(){var g=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.jT(_.F6,function(){g.getCurrentPanelElement().updateSize();g.updateSize()}))};
_.S.getCurrentPanelElement=function(){return _.S3(_.S3(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.S.getCurrentPaginationElement=function(){return _.S3(_.S3(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.S.getNavigationClass=function(g,r){return g===r?"selected":""};
_.S.getNavigationDurationStyle=function(g){return"animation-duration:"+(this.get("data.carouselItems."+g+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.S.onNavigationTap=function(g){var r=this,E=g.model.index;E!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){r.setCarouselItem(E)}),this.autorotateActive=!1)};
_.S.onVideoThumbnailEnded=function(){var g=this;if(this.shouldRotate()){var r=this.getCurrentPaginationElement();r&&(r.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){r.classList.remove("finished");g.setNextCarouselItem()}))}};
_.S.onVideoThumbnailError=function(){this.startRotationJob()};
_.S.onVideoNotPlaying=function(){this.startRotationJob()};
_.S.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.S.startRotationJob=function(){var g=this;_.F6.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.F6.addLowPriorityJob(function(){g.getCurrentPanelElement().transitionOut().then(function(){g.setNextCarouselItem()})},this.rotationTimeout))};
_.S.computeDotMenuVisible=function(g,r){return!!g&&!!g.carouselItems&&g.carouselItems.length>1&&!g.paginationThumbnails||!!r};
_.S.computePaginationThumbnailsVisible=function(g,r){var E,B;return((B=g==null?void 0:(E=g.paginationThumbnails)==null?void 0:E.length)!=null?B:0)>1&&!r};
_.S.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.S.computePaginatorAlignment=function(g){return(g==null?void 0:g.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.S.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.S.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.S.isNarrower=function(g){return(g!=null?g:0)<Xk.NARROW_VERSION_SIZE};
NT.prototype.activeChanged=NT.prototype.activeChanged;NT.prototype.onVideoNotPlaying=NT.prototype.onVideoNotPlaying;NT.prototype.onVideoThumbnailError=NT.prototype.onVideoThumbnailError;NT.prototype.onVideoThumbnailEnded=NT.prototype.onVideoThumbnailEnded;NT.prototype.onDataChanged=NT.prototype.onDataChanged;_.m([_.P(_.ti),_.L("design:type",Object)],NT.prototype,"ytdGridStateAwareBehavior",void 0);
_.m([_.P(_.eb.YtdGuideStateAwareBehavior),_.L("design:type",Object)],NT.prototype,"ytdGuideStateAwareBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],NT.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],NT.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],NT.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],NT.prototype,"currentItem",void 0);
_.m([_.K(),_.L("design:type",Number)],NT.prototype,"currentItemIndex",void 0);_.m([_.K(),_.L("design:type",Number)],NT.prototype,"rotationTimeout",void 0);_.m([_.K(),_.L("design:type",Number)],NT.prototype,"loopCount",void 0);_.m([_.K({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.L("design:type",String)],NT.prototype,"paginatorAlignment",void 0);_.m([_.K(),_.L("design:type",Number)],NT.prototype,"jobId",void 0);
_.m([_.K(),_.L("design:type",Number)],NT.prototype,"updateSizeJobId",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],NT.prototype,"isCarouselInFeed",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],NT.prototype,"narrower",void 0);_.m([_.K({computed:"computeDotMenuVisible(data, narrower)"}),_.L("design:type",Object)],NT.prototype,"dotMenuVisible",void 0);
_.m([_.K({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.L("design:type",Object)],NT.prototype,"paginationThumbnailsVisible",void 0);_.m([_.K({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.L("design:type",String)],NT.prototype,"layoutType",void 0);_.m([_.K({value:!0,reflectToAttribute:!0}),_.L("design:type",Boolean)],NT.prototype,"autorotateActive",void 0);_.m([_.K(),_.L("design:type",Object)],NT.prototype,"active",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],NT.prototype,"disableGridStateAware",void 0);_.m([_.zb("#overlay"),_.L("design:type",HTMLElement)],NT.prototype,"overlay",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],NT.prototype,"onDataChanged",null);
_.m([_.ob("yt-video-thumbnail-ended"),_.ob("yt-default-promo-panel-renderer-rotate"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],NT.prototype,"onVideoThumbnailEnded",null);_.m([_.ob("yt-video-thumbnail-error"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],NT.prototype,"onVideoThumbnailError",null);
_.m([_.ob("yt-video-thumbnail-not-playing"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],NT.prototype,"onVideoNotPlaying",null);_.m([_.Yk("active"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],NT.prototype,"activeChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],NT);
_.I(NT,"ytd-carousel-item-renderer",function(){if(qEm!==void 0)return qEm;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return qEm=g},{mode:2});var GlD;var Q_4;var z_D;var klL;var IL=function(){var g=_.a.apply(this,arguments)||this;g.originalQuery=null;g.originalEndpoint=null;return g};
_.f(IL,_.a);IL.prototype.computeShowOriginalQueryWithoutEndpoint_=function(g,r){return!(!g||r)};
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],IL.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],IL.prototype,"correctedText",void 0);_.m([_.K(),_.L("design:type",Object)],IL.prototype,"correctedQuery",void 0);_.m([_.K(),_.L("design:type",Object)],IL.prototype,"correctedEndpoint",void 0);_.m([_.K(),_.L("design:type",Object)],IL.prototype,"originalText",void 0);_.m([_.K(),_.L("design:type",Object)],IL.prototype,"originalQuery",void 0);
_.m([_.K(),_.L("design:type",Object)],IL.prototype,"originalEndpoint",void 0);_.m([_.K({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.L("design:type",Boolean)],IL.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.m([_.e3({is:"yt-search-query-correction",disableElementRegistration:!0})],IL);
_.I(IL,"yt-search-query-correction",function(){if(klL===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;z_D===void 0&&(z_D=document.createElement("template"));var B=z_D;E.call(r,B.content.cloneNode(!0),g.content.firstChild);klL=g}g=klL;return g},{mode:2});_.ek("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var ms=function(){return _.a.apply(this,arguments)||this};
_.f(ms,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ms.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ms.prototype,"data",void 0);_.m([_.e3({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],ms);
_.I(ms,"yt-did-you-mean-renderer",function(){if(Q_4===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;GlD===void 0&&(GlD=document.createElement("template"));var B=GlD;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Q_4=g}g=Q_4;return g},{mode:2});var HPL;var pQ5;_.ek("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var ce=function(){return _.a.apply(this,arguments)||this};
_.f(ce,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ce.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ce.prototype,"data",void 0);_.m([_.e3({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],ce);
_.I(ce,"yt-including-results-for-renderer",function(){if(pQ5===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;HPL===void 0&&(HPL=document.createElement("template"));var B=HPL;E.call(r,B.content.cloneNode(!0),g.content.firstChild);pQ5=g}g=pQ5;return g},{mode:2});var YE5;var R_z;_.ek("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var iC=function(){return _.a.apply(this,arguments)||this};
_.f(iC,_.a);iC.prototype.computeExtraClasses_=function(g,r){var E="";g&&(E+=" "+g.toLowerCase().replace(/_/g,"-"));r&&(E+=" "+r.toLowerCase().replace(/_/g,"-"));return E};
iC.prototype.computeUrlImg_=function(){var g=this.data;g.image&&(_.S3(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.wt(g.image.thumbnails,Number.MAX_VALUE)+")")};
iC.prototype.computeUrlImg_=iC.prototype.computeUrlImg_;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],iC.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],iC.prototype,"data",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],iC.prototype,"computeUrlImg_",null);_.m([_.e3({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],iC);
_.I(iC,"yt-music-pass-feature-info-renderer",function(){if(R_z===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;YE5===void 0&&(YE5=document.createElement("template"));var B=YE5;E.call(r,B.content.cloneNode(!0),g.content.firstChild);R_z=g}g=R_z;return g},{mode:2});var n9M;var s_t;_.ek("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var L8=function(){return _.a.apply(this,arguments)||this};
_.f(L8,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],L8.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],L8.prototype,"data",void 0);_.m([_.e3({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],L8);
_.I(L8,"yt-no-results-found-showing-results-for-renderer",function(){if(s_t===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;n9M===void 0&&(n9M=document.createElement("template"));var B=n9M;E.call(r,B.content.cloneNode(!0),g.content.firstChild);s_t=g}g=s_t;return g},{mode:2});var frA;var $pm;_.ek("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var Vb=function(){return _.a.apply(this,arguments)||this};
_.f(Vb,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Vb.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Vb.prototype,"data",void 0);_.m([_.e3({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],Vb);
_.I(Vb,"yt-results-without-quotes-renderer",function(){if($pm===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;frA===void 0&&(frA=document.createElement("template"));var B=frA;E.call(r,B.content.cloneNode(!0),g.content.firstChild);$pm=g}g=$pm;return g},{mode:2});var j_v;var AZF;_.ek("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var hY=function(){return _.a.apply(this,arguments)||this};
_.f(hY,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],hY.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],hY.prototype,"data",void 0);_.m([_.e3({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],hY);
_.I(hY,"yt-search-no-results-renderer",function(){if(AZF===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;j_v===void 0&&(j_v=document.createElement("template"));var B=j_v;E.call(r,B.content.cloneNode(!0),g.content.firstChild);AZF=g}g=AZF;return g},{mode:2});var bP6;var JZg;_.ek("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var Z9=function(){return _.a.apply(this,arguments)||this};
_.f(Z9,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Z9.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Z9.prototype,"data",void 0);_.m([_.e3({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],Z9);
_.I(Z9,"yt-showing-results-for-renderer",function(){if(JZg===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;bP6===void 0&&(bP6=document.createElement("template"));var B=bP6;E.call(r,B.content.cloneNode(!0),g.content.firstChild);JZg=g}g=JZg;return g},{mode:2});var PH5;var ti6;var FdF;var e_M;var yb=function(){var g=_.a.apply(this,arguments)||this;g.answerExpanded=!1;return g};
_.f(yb,_.a);yb.prototype.toggleAnswer_=function(g){var r=_.yP(g);r&&r.classList.contains("yt-simple-endpoint")||(g.preventDefault(),g.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
yb.prototype.toggleAnswer_=yb.prototype.toggleAnswer_;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],yb.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],yb.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],yb.prototype,"answerExpanded",void 0);_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],yb.prototype,"toggleAnswer_",null);
_.m([_.e3({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],yb);
_.I(yb,"yt-generic-faq-question-renderer",function(){if(e_M===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;FdF===void 0&&(FdF=document.createElement("template"));var B=FdF;E.call(r,B.content.cloneNode(!0),g.content.firstChild);e_M=g}g=e_M;return g},{mode:2});_.ek("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var ve=function(){return _.a.apply(this,arguments)||this};
_.f(ve,_.a);ve.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],ve.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ve.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ve.prototype,"data",void 0);_.m([_.e3({is:"yt-faq-section-renderer",disableElementRegistration:!0})],ve);
_.I(ve,"yt-faq-section-renderer",function(){if(ti6===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;PH5===void 0&&(PH5=document.createElement("template"));var B=PH5;E.call(r,B.content.cloneNode(!0),g.content.firstChild);ti6=g}g=ti6;return g},{mode:2});var Wd8;var CH$;_.ek("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var d7=function(){return _.a.apply(this,arguments)||this};
_.f(d7,_.a);
d7.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"}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],d7.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],d7.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],d7.prototype,"data",void 0);_.m([_.e3({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],d7);
_.I(d7,"yt-offer-item-expanded-renderer",function(){if(CH$===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;Wd8===void 0&&(Wd8=document.createElement("template"));var B=Wd8;E.call(r,B.content.cloneNode(!0),g.content.firstChild);CH$=g}g=CH$;return g},{mode:2});var Kdt;var xpM;_.ek("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var Tv=function(){return _.a.apply(this,arguments)||this};
_.f(Tv,_.a);
Tv.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"}}}}};
Tv.prototype.computeFullWidthMode=function(g){return!(!g||!g.fullWidthMode)};
Tv.prototype.computeBorderlessMode=function(g){return!(!g||!g.borderlessMode)};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Tv.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Tv.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Tv.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.L("design:type",Boolean)],Tv.prototype,"fullWidthMode",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.L("design:type",Boolean)],Tv.prototype,"borderlessMode",void 0);_.m([_.e3({is:"yt-offer-item-renderer",disableElementRegistration:!0})],Tv);
_.I(Tv,"yt-offer-item-renderer",function(){if(xpM===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;Kdt===void 0&&(Kdt=document.createElement("template"));var B=Kdt;E.call(r,B.content.cloneNode(!0),g.content.firstChild);xpM=g}g=xpM;return g},{mode:2});var arm;var XQm;_.ek("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var gK=function(){return _.a.apply(this,arguments)||this};
_.f(gK,_.a);gK.prototype.computeAriaLevel_=function(g){return this.getLevelID_(g)};
gK.prototype.getLevelID_=function(g){return(g=g.match(/[0-9]+$/))&&g.length==1?g[0]:"1"};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],gK.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],gK.prototype,"data",void 0);_.m([_.K({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.L("design:type",String)],gK.prototype,"ariaLevel",void 0);_.m([_.K({value:"heading",reflectToAttribute:!0}),_.L("design:type",String)],gK.prototype,"role",void 0);
_.m([_.K({value:-1,reflectToAttribute:!0}),_.L("design:type",Number)],gK.prototype,"tabindex",void 0);_.m([_.e3({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],gK);
_.I(gK,"yt-subscription-product-header-renderer",function(){if(XQm===void 0){var g=document.createElement("template");_.b(g,"\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");g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;arm===void 0&&(arm=document.createElement("template"));var B=arm;E.call(r,B.content.cloneNode(!0),g.content.firstChild);XQm=g}g=XQm;return g},{mode:2});var NJ8;var IrL;_.ek("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var rK=function(){return _.a.apply(this,arguments)||this};
_.f(rK,_.a);rK.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:_.WK("menuRenderer"),events:!0}}};
rK.prototype.onStampFinished_=function(){_.S3(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
rK.prototype.onStampFinished_=rK.prototype.onStampFinished_;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],rK.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],rK.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],rK.prototype,"data",void 0);_.m([_.ob("yt-rendererstamper-finished"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],rK.prototype,"onStampFinished_",null);
_.m([_.e3({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],rK);
_.I(rK,"yt-subscription-product-renderer",function(){if(IrL===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;NJ8===void 0&&(NJ8=document.createElement("template"));var B=NJ8;E.call(r,B.content.cloneNode(!0),g.content.firstChild);IrL=g}g=IrL;return g},{mode:2});var mp5;var cZ6;_.ek("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var Ef=function(){return _.a.apply(this,arguments)||this};
_.f(Ef,_.a);Ef.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Ef.prototype.imageScrimColorValuesChanged_=function(){var g,r=(g=this.data)==null?void 0:g.imageScrimColorValues;_.S3(this.hostElement).querySelector("#scrim").style.backgroundColor=r?_.XT(r[0]):"transparent"};
Ef.prototype.imageScrimColorValuesChanged_=Ef.prototype.imageScrimColorValuesChanged_;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Ef.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Ef.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Ef.prototype,"data",void 0);
_.m([_.Gb("data.imageScrimColorValues"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Ef.prototype,"imageScrimColorValuesChanged_",null);_.m([_.e3({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],Ef);
_.I(Ef,"yt-subscription-product-upsell-offer-renderer",function(){if(cZ6===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;mp5===void 0&&(mp5=document.createElement("template"));var B=mp5;E.call(r,B.content.cloneNode(!0),g.content.firstChild);cZ6=g}g=cZ6;return g},{mode:2});var iP6;var Ldm;var ViL;var h_m;var ZP5;var yZ$;var BB=function(){return _.a.apply(this,arguments)||this};
_.f(BB,_.a);BB.prototype.onYtServiceRequestError_=function(g){_.vX(this.hostElement,g.detail.error.message)};
BB.prototype.onYtServiceRequestError_=BB.prototype.onYtServiceRequestError_;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],BB.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],BB.prototype,"data",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],BB.prototype,"collapsible",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],BB.prototype,"isManageRed",void 0);
_.m([_.ob("yt-service-request-error"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],BB.prototype,"onYtServiceRequestError_",null);_.m([_.e3({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],BB);
_.I(BB,"yt-single-ypc-offer-renderer",function(){if(yZ$===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;ZP5===void 0&&(ZP5=document.createElement("template"));var B=ZP5;E.call(r,B.content.cloneNode(!0),g.content.firstChild);yZ$=g}g=yZ$;return g},{mode:2});var wK=function(){return _.a.apply(this,arguments)||this};
_.f(wK,_.a);wK.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],wK.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],wK.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],wK.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],wK.prototype,"isManageRed",void 0);_.m([_.e3({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],wK);
_.I(wK,"yt-single-ypc-offer-list-renderer",function(){if(h_m===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;ViL===void 0&&(ViL=document.createElement("template"));var B=ViL;E.call(r,B.content.cloneNode(!0),g.content.firstChild);h_m=g}g=h_m;return g},{mode:2});var v9t;var dp5;_.ek("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var Sj=function(){return _.a.apply(this,arguments)||this};
_.f(Sj,_.a);Sj.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Sj.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Sj.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Sj.prototype,"data",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],Sj.prototype,"isManageRed",void 0);_.m([_.e3({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],Sj);
_.I(Sj,"yt-ypc-offers-list-renderer",function(){if(dp5===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;v9t===void 0&&(v9t=document.createElement("template"));var B=v9t;E.call(r,B.content.cloneNode(!0),g.content.firstChild);dp5=g}g=dp5;return g},{mode:2});_.ek("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var Of=function(){return _.a.apply(this,arguments)||this};
_.f(Of,_.a);
Of.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}}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Of.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Of.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Of.prototype,"data",void 0);_.m([_.e3({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],Of);
_.I(Of,"yt-unlimited-manage-subscription-page-renderer",function(){if(Ldm===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;iP6===void 0&&(iP6=document.createElement("template"));var B=iP6;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Ldm=g}g=Ldm;return g},{mode:2});var TJL;var gxD;var Uf=function(){return _.a.apply(this,arguments)||this};
_.f(Uf,_.a);_.S=Uf.prototype;_.S.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.S.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.S.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.S.onKeypress_=function(g){g.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.S.handleHeaderTap_=function(g){g.preventDefault();g.stopPropagation();this.expandOffers_()};
_.S.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.S.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
Uf.prototype.dataChanged_=Uf.prototype.dataChanged_;_.m([_.P(_.QV),_.L("design:type",Object)],Uf.prototype,"ironA11yKeysBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Uf.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Uf.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Uf.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Uf.prototype,"offersVisible_",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Uf.prototype,"dataChanged_",null);_.m([_.e3({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],Uf);
_.I(Uf,"yt-collapsible-ypc-offer-renderer",function(){if(gxD===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;TJL===void 0&&(TJL=document.createElement("template"));var B=TJL;E.call(r,B.content.cloneNode(!0),g.content.firstChild);gxD=g}g=gxD;return g},{mode:2});var rzM;var Ex8;_.ek("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var M$=function(){return _.a.apply(this,arguments)||this};
_.f(M$,_.a);_.S=M$.prototype;_.S.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.S.dataChanged_=function(){if(this.data.backgroundImage){var g=_.wt(this.data.backgroundImage.thumbnails,screen.width),r=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=r?"linear-gradient(180deg, "+r+"), url("+g+")":"url("+g+")";this.data.gtmId&&_.fB(this.data.gtmId,_.Ca("GL",""))}};
_.S.onYtServiceRequestError_=function(g){_.vX(this.hostElement,g.detail.error.message)};
_.S.getScrimLayerColorStops_=function(){var g,r,E=(g=this.data.unlimitedHeaderV2Data)==null?void 0:(r=g.unlimitedHeaderV2Data)==null?void 0:r.scrimLayerColors;if(!E)return null;var B=100/E.length;return E.map(function(w,O){O*=B;return _.XT(w)+" "+O+"%"}).join(",")};
_.S.computeLogoWithPadding=function(g){var r,E,B;return(g=(r=g.unlimitedLogoImage)==null?void 0:(E=r.thumbnails)==null?void 0:(B=E[0])==null?void 0:B.height)&&g%31===0?!0:!1};
M$.prototype.onYtServiceRequestError_=M$.prototype.onYtServiceRequestError_;M$.prototype.dataChanged_=M$.prototype.dataChanged_;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],M$.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],M$.prototype,"ytRendererBehavior",void 0);_.m([_.K({computed:"computeLogoWithPadding(data)"}),_.L("design:type",Boolean)],M$.prototype,"logoWithPadding",void 0);
_.m([_.K(),_.L("design:type",Object)],M$.prototype,"data",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],M$.prototype,"dataChanged_",null);_.m([_.ob("yt-service-request-error"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],M$.prototype,"onYtServiceRequestError_",null);_.m([_.e3({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],M$);
_.I(M$,"yt-unlimited-page-header-renderer",function(){if(Ex8===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;rzM===void 0&&(rzM=document.createElement("template"));var B=rzM;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Ex8=g}g=Ex8;return g},{mode:2});var BQM;var wW5;_.ek("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var q$=function(){return _.a.apply(this,arguments)||this};
_.f(q$,_.a);q$.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],q$.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],q$.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],q$.prototype,"data",void 0);_.m([_.e3({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],q$);
_.I(q$,"yt-unlimited-user-notification-renderer",function(){if(wW5===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;BQM===void 0&&(BQM=document.createElement("template"));var B=BQM;E.call(r,B.content.cloneNode(!0),g.content.firstChild);wW5=g}g=wW5;return g},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.B25=_.dG(function(g){var r=_.y7(g,{numberOfChips:5}).numberOfChips;return _.G("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.G(_.Ra,{each:function(){return Array(r==null?void 0:r())}},function(){return _.G("div",{class:"ytGhostChipShelfChip"})}))},"vg");_.w8A=_.dG(function(g){var r=_.uL(),E=_.rM().resolve(_.Zh);_.jS(function(){requestAnimationFrame(function(){var w;(w=r.lottieEl)==null||w.addEventListener("DOMLoaded",function(){var O;(O=g.onLottieLoaded)==null||O.call(g)})})});
var B={};return _.G("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var w;return((w=g.data)==null?void 0:w.call(g).targetId)||""}},_.G(_.rN,{className:_.QY((B.ytChatLoadingViewModelRtl=E==="rtl",B)),
animationName:"YOUCHAT_LOADER",data:function(){var w;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:((w=g.data)==null?void 0:w.call(g).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}}},
animationRef:r}))},"wg");
}catch(e){_._DumpException(e)}
try{
var RE8,nYA,sQz,fbM,$0L,jQL,ALA,bNv,POD,ab6,gQ,x0A,eEM,K_t,CO5,W_A,F_v,X$t,NFv,IbD,m0z,rQ,cLM,iNm,hE6,wQ,L_M,SZ,EI,OI,VnM,BW,ZNv,yL4,vY5,d0L,TFg,grA,Er8,O5D,qRg,ur5,lqD,Dd6,org,QOm,kPg,pT$,YRM,RFz,nrA,fqM,$dt,jO8,AyF,b5D,JyM,PDM,FKA,KKD,CDg,eFv,xd$,WKM,aqt,mdM,Iq5,XTt,NYt,Mx,cyF,i5$,VLz,TY8,gBg,r5m,EBA,BBD,wp4,SxM,Olz,UDt,M1L,u2F,lkt,DDF,yym;
_.dJ=function(g){var r=new _.Rj("Error accessing DB");return _.ttD().then(function(E){return new Promise(function(B,w){try{var O=E.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(g);O.onsuccess=function(){var M=O.result;B(M?M.value:null)};
O.onerror=function(){r.params={key:g,source:"onerror"};w(r)}}catch(M){r.params={key:g,
thrownError:String(M)},w(r)}})},function(){return null})};
_.YYg=function(g,r){var E=_.zKS(r);E!=="javascript:"&&E!=="data:"&&g.setAttribute("href",r)};
RE8=function(g,r){return _.u1(g.entities,"flowStateEntity",r)};
nYA=function(g,r){return _.u1(g.entities,"contextNoteUserRatingEntityPayload",r)};
sQz=function(g){return _.aX(g,function(r){return r.languageCode==="en"})};
fbM=function(g){var r=Tl;if(_.Frz(g))g.setOption("captions","stickyLoading",{}),g.setOption("captions","track",{});else{var E=_.aX(_.FBV(g),function(B){return B.displayName===r});
g.setOption("captions","track",E)}};
$0L=function(g){if(!g)return 0;var r=g.getPresentingPlayerType(),E=g.getVideoData();return E&&E.isLive?(g=g.getProgressState(r),g.seekableEnd-g.seekableStart):g.getDuration(r)};
jQL=function(g,r){for(var E=_.U(Object.keys(g)),B=E.next();!B.done;B=E.next())if(B=B.value,g[B]!==r[B])return!1;return!0};
ALA=function(){return document.getElementById("player-control-overlay")};
bNv=function(g){g!==-1&&!_.Y("player_controls_log_creation_killswitch")&&ALA()&&(_.F4("pcu_cs",g),_.F4("pcu_ce"))};
POD=function(g){return _.G("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(g.subscribeButton?[g.subscribeButton,g.channelAccess]:[g.channelAccess]).map(function(r){return _.G("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.G("div",{class:"yt-profile-identity-info-view-model-wiz--button"},JLM(r)))}))};
_.tng=function(g){var r=g.data;g=g.hideDivider;var E={};E=(E["yt-profile-identity-info-view-model-wiz__frame"]=!0,E["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!r.channelBanner,E);E={class:_.zw(E)};var B,w={imageBannerViewModel:{image:(B=r.channelBanner)==null?void 0:B.image,style:"IMAGE_BANNER_STYLE_INSET"}};B=_.G("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},r.channelBanner?_.G("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
JLM(w,{imageBannerViewModel:{isPositionRelative:!0}})):null);w=_.G("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},JLM(r.avatar));var O;var M=_.G("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.G("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},r.channelDisplayName),r.verifiedOrOacBadge?_.G("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.G(_.vw,{data:{thumbnails:[{url:(O=r.verifiedOrOacBadge)==null?void 0:O.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);O=_.G("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},M,JLM(r.threeDotMenu));M=_.G("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.G("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.G("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},r.channelHandle),r.channelPronouns&&r.channelHandle?_.G("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.G("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},r.channelPronouns)),_.G("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.G("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},r.leftOfBulletInfo),r.leftOfBulletInfo&&r.rightOfBulletInfo?_.G("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.G("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},r.rightOfBulletInfo)));O=_.G("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},O,M);return _.G("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.G("div",E,B,_.G("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},w,O),r.channelDescription?_.G("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},r.channelDescription):
null,POD(r),g?null:_.G("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
ab6=function(g,r){var E=_.Zo(g,{}),B=F_v("top",r),w=F_v("bottom",r),O=F_v("left",r),M=F_v("right",r);return _.Rl({top:function(){return gQ(E().position,B)},
bottom:function(){return gQ(E().position,w)},
left:function(){return gQ(E().position,O)},
right:function(){return gQ(E().position,M)},
position:function(){return gQ(E().positionType,eEM)},
height:function(){return gQ(E().height,rQ)},
width:function(){return gQ(E().width,rQ)},
"min-width":function(){return gQ(E().minWidth,rQ)},
"min-height":function(){return gQ(E().minHeight,rQ)},
"max-width":function(){return gQ(E().maxWidth,rQ)},
"max-height":function(){return gQ(E().maxHeight,rQ)},
"aspect-ratio":function(){return gQ(E().aspectRatio,String)},
"margin-top":function(){return gQ(E().margin,B)},
"margin-bottom":function(){return gQ(E().margin,w)},
"margin-left":function(){return gQ(E().margin,O)},
"margin-right":function(){return gQ(E().margin,M)},
"padding-top":function(){return gQ(E().padding,B)},
"padding-bottom":function(){return gQ(E().padding,w)},
"padding-left":function(){return gQ(E().padding,O)},
"padding-right":function(){return gQ(E().padding,M)},
"flex-direction":function(){return gQ(E().flexDirection,W_A)},
"justify-content":function(){return gQ(E().justifyContent,CO5)},
"align-items":function(){return gQ(E().alignItems,K_t)},
"flex-grow":function(){return gQ(E().flexGrow,String)},
"flex-shrink":function(){return gQ(E().flexShrink,String)},
"flex-basis":function(){return gQ(E().flexBasis,rQ)},
"align-self":function(){return gQ(E().alignSelf,K_t)},
"flex-wrap":function(){return gQ(E().flexWrap,x0A)},
"align-content":function(){return gQ(E().alignContent,K_t)}})};
gQ=function(g,r){return g!==void 0?r(g):void 0};
x0A=function(g){switch(g){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
eEM=function(g){switch(g){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
K_t=function(g){switch(g){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"}};
CO5=function(g){switch(g){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"}};
W_A=function(g){switch(g){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"}};
F_v=function(g,r){var E=r==="rtl";switch(g){case "top":var B=X$t;break;case "bottom":B=NFv;break;case "left":B=IbD;break;default:B=m0z}return function(w){return gQ(B(w,E),rQ)}};
X$t=function(g){var r=g.top;var E=g.vertical;g=g.all;var B;return(B=r!=null?r:E)!=null?B:g};
NFv=function(g){var r=g.bottom;var E=g.vertical;g=g.all;var B;return(B=r!=null?r:E)!=null?B:g};
IbD=function(g,r){var E=g.left;var B=g.end;var w=g.start;var O=g.horizontal;g=g.all;var M,u;return(u=(M=E!=null?E:r?B:w)!=null?M:O)!=null?u:g};
m0z=function(g,r){var E=g.right;var B=g.end;var w=g.start;var O=g.horizontal;g=g.all;var M,u;return(u=(M=E!=null?E:r?w:B)!=null?M:O)!=null?u:g};
rQ=function(g){var r=g.value;switch(g.unit){case "YPC_DIMENSION_UNIT_POINT":return r+"px";case "YPC_DIMENSION_UNIT_FRACTION":return r+"%";default:return""+r}};
cLM=function(g){switch(g){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"}};
iNm=function(g){var r=g!=null?g:{};g=r.fontRole;var E=r.fontSize;r=r.fontWeight;if(g!==null&&E!==null)switch(g){case "YPC_FONT_ROLE_DISPLAY":switch(E){case "YPC_FONT_SIZE_L":return r==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return r==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return r==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return r==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(E){case "YPC_FONT_SIZE_L":return r==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return r==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return r===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return r==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(E){case "YPC_FONT_SIZE_XL":return r==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return r==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return r==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return r==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return r==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
hE6=function(g,r,E){function B(z){return Object.values(z).map(function(k){var H=k.productId;k=k.pricingOptionIndex;return EI(w(H).pricingOptions,k).pricingOptionId})}
function w(z){return u().get(z)}
function O(z){z=B(z);E(z)}
var M=BW([g,r],function(z,k){var H=z==null?void 0:z.selectedPricingOptions;z={};var R=!0;if(H&&k.length)for(var A=_.U(k),J=A.next();!J.done;J=A.next()){J=J.value;var e=L_M(J.pricingOptions,function(Z){a:{Z=Z.pricingOptionId;for(var c=_.U(H),h=c.next();!h.done;h=c.next())if(h.value===Z){Z=!0;break a}Z=!1}return Z});
if(e>=0){R=!1;var C=EI(J.pricingOptions,e),X=void 0;z[J.groupId]={productId:J.productId,pricingOptionIndex:e,pricingGroupAttributes:(X=C)==null?void 0:X.pricingGroupAttributes}}}R&&k.length&&(R=EI(k[0].pricingOptions,0),z[k[0].groupId]={productId:k[0].productId,pricingOptionIndex:0,pricingGroupAttributes:R==null?void 0:R.pricingGroupAttributes});return z}),u=BW([r],function(z){return new Map(z.map(function(k){return[k.productId,
k]}))}),l=BW([r],function(z){var k=new Map;
z=_.U(z);for(var H=z.next();!H.done;H=z.next()){var R=H.value;H=R.groupId;var A=R.productId;R=_.U(wQ(R.pricingOptions));for(var J=R.next();!J.done;J=R.next()){var e=_.U(J.value);J=e.next().value;e=e.next().value;k.set(e.pricingOptionId,{groupId:H,productId:A,index:J,pricingOption:e,pricingGroupAttributes:e.pricingGroupAttributes})}}return k}),Q=BW([r],function(z){var k=new Map;
z=_.U(z);for(var H=z.next();!H.done;H=z.next()){var R=H.value;H=R.groupId;var A=R.productId,J=void 0;R=_.U(wQ((J=R.pricingGroups)!=null?J:[]));for(J=R.next();!J.done;J=R.next()){var e=_.U(J.value);J=e.next().value;e=e.next().value;k.set(e.pricingGroupId,{groupId:H,productId:A,index:J,pricingGroup:e,pricingGroupAttributes:e.pricingGroupAttributes})}}return k});
return{getProductById:w,isProductSelected:function(z){var k=w(z);if(!k)return!1;var H;return((H=M()[k.groupId])==null?void 0:H.productId)===z},
getSelectedPricingOptions:function(){return Object.values(M()).map(function(z){var k=z.productId;z=z.pricingOptionIndex;return EI(w(k).pricingOptions,z)})},
getSelectedPricingGroupAttributesByGroupId:function(z){var k;return(z=(k=M()[z])==null?void 0:k.pricingGroupAttributes)?Array.from(z):void 0},
getSelectedProductByGroupId:function(z){var k;return(z=(k=M()[z])==null?void 0:k.productId)?w(z):void 0},
onProductSelected:function(z){var k=w(z);if(k){var H=M(),R;if(((R=H[k.groupId])==null?void 0:R.productId)!==z){var A,J;R=(J=(A=H[k.groupId])==null?void 0:A.pricingOptionIndex)!=null?J:0;SZ(k.pricingOptions)<=R&&(R=0);A=EI(k.pricingOptions,R);var e;J={};O(Object.assign({},H,(J[k.groupId]={productId:z,pricingOptionIndex:R,pricingGroupAttributes:(e=A==null?void 0:A.pricingGroupAttributes)!=null?e:[]},J)))}}},
onPricingOptionSelected:function(z){var k=l().get(z);if(k){z=k.groupId;var H=k.productId;k=k.index;var R=M(),A,J;if(((A=R[z])==null?void 0:A.productId)!==H||((J=R[z])==null?void 0:J.pricingOptionIndex)!==k){var e,C;A={};O(Object.assign({},R,(A[z]={productId:H,pricingOptionIndex:k,pricingGroupAttributes:(C=(e=R[z])==null?void 0:e.pricingGroupAttributes)!=null?C:[]},A)))}}},
onPricingGroupSelected:function(z){var k=Q().get(z);if(k){z=k.groupId;var H=k.productId,R=k.pricingGroup.pricingGroupAttributes,A=w(H);if(A){k=M();var J=k[z].pricingGroupAttributes,e;if(((e=k[z])==null?void 0:e.productId)!==H||!OI(VnM(J,SZ(R)),R)){e=Array.from(R);for(R=SZ(R);R<SZ(J);R++){var C="",X=!1,Z=Array.from(e);Z.push(EI(J,R));for(var c=_.U(A.pricingGroups),h=c.next();!h.done;h=c.next())if(h=h.value,OI(h.pricingGroupAttributes,Z)){e.push(EI(J,R));X=!0;break}else C===""&&SZ(h.pricingGroupAttributes)===
Z.length&&OI(VnM(h.pricingGroupAttributes,e.length),e)&&(C=EI(h.pricingGroupAttributes,R));X||e.push(C)}C=k[z].pricingOptionIndex;R=[];X=new Map;Z=0;A=_.U(wQ(A.pricingOptions));for(c=A.next();!c.done;c=A.next())h=_.U(c.value),c=h.next().value,h=h.next().value,OI(h.pricingGroupAttributes,e)&&R.push(c),OI(h.pricingGroupAttributes,J)&&X.set(c,Z++);R.length===0?J=0:(J=X.get(C),J=J!==void 0&&J<R.length?R[J]:R[0]);A={};O(Object.assign({},k,(A[z]={productId:H,pricingOptionIndex:J,pricingGroupAttributes:e},
A)))}}}},
onClearGroupSelected:function(z){var k=M();k[z]&&(k=Object.fromEntries(Object.entries(k).filter(function(H){return _.U(H).next().value!==z})),O(k))}}};
wQ=function(g){return function E(){var B,w,O,M,u;return _.hWS(E,function(l){switch(l.nextAddress){case 1:_.DD(l,2),B=0,w=_.U(g),O=w.next();case 4:if(O.done){l.jumpTo(2);break}M=O.value;u=_.Zsl;return _.D(l,[B++,M],7);case 7:u(l.yieldResult);O=w.next();l.jumpTo(4);break;case 2:_.uY(l),_.oF(l,0)}})}()};
L_M=function(g,r){g=_.U(wQ(g));for(var E=g.next();!E.done;E=g.next()){var B=_.U(E.value);E=B.next().value;B=B.next().value;if(r(B))return E}return-1};
SZ=function(g){var r=0;for(g=g[Symbol.iterator]();!g.next().done;)++r;return r};
EI=function(g,r){g=_.U(wQ(g));for(var E=g.next();!E.done;E=g.next()){var B=_.U(E.value);E=B.next().value;B=B.next().value;if(E===r)return B}};
OI=function(g,r){if(!g&&!r)return!0;if(!g||!r)return!1;g=Array.from(g);r=Array.from(r);if(g.length!==r.length)return!1;for(var E=0;E<g.length;E++)if(g[E]!==r[E])return!1;return!0};
VnM=function(g,r){r=r===void 0?Infinity:r;var E=[];g=_.U(wQ(g));for(var B=g.next();!B.done;B=g.next()){var w=_.U(B.value);B=w.next().value;w=w.next().value;if(B>=r)break;B>=0&&E.push(w)}return E};
BW=function(g,r){var E,B;return function(){for(var w=g.map(function(M){return M()}),O=0;O<w.length;O++)if(!E||w[O]!==E[O]){E=w;
B=r.apply(null,_.jW(w));break}return B}};
ZNv=function(g,r,E){var B=[];g=_.U(g);for(var w=g.next();!w.done;w=g.next()){w=w.value;var O=void 0;((O=r)==null?0:O.length)&&!OI(w.pricingGroupAttributes,r)||B.push({pricingOption:w,isSelected:E.includes(w.pricingOptionId)})}return B};
yL4=function(g,r){return _.u1(g.entities,"pdpStateEntity",r)};
vY5=function(g){var r,E;return!!(g.productId&&g.groupId&&((r=g.pricingOptions)==null?0:r.length)&&g.pricingOptions.every(function(B){return B.pricingOptionId})&&((E=g.pricingGroups)==null||!E.length||Array.isArray(g.pricingGroups)&&g.pricingGroups.every(function(B){return B.pricingGroupId&&B.pricingGroupAttributes&&B.pricingGroupAttributes.length>0})))};
d0L=function(g,r,E){return hE6(g,BW([r],function(B){return B.filter(vY5)}),E)};
TFg=function(g,r){return r.length===0?[g]:[g.slice(0,r[0]),g.slice(r[0])].filter(function(E){return E.length>0})};
grA=function(g){switch(g){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""}};
Er8=function(g,r,E,B){B=Object.assign({},B);_.FI(B,ryA,{selectedOptionId:g,primaryButtonOverride:E});_.V7().dispatch(_.za("flowStateEntity",r,B))};
_.SRD=function(){if(!BYM){var g=_.U(_.Dk(new Map,void 0,"UJImUe"));BYM=g.next().value;wTm=g.next().value}return BYM};
O5D=function(g){if(g)return _.SRD()().get(g)};
_.UdA=function(g,r){if(g&&r){var E=_.SRD();E().set(g,r);g=E();wTm(new Map(g))}};
_.MLL=function(g){return{onSubmit:function(){var r;(r=O5D(g()))==null||r.onSubmit()},
isValid:function(){var r=O5D(g());return r?r.isValid():!0},
isSubmitting:function(){var r,E;return!!((r=O5D(g()))==null?0:(E=r.isSubmitting)==null?0:E.call(r))}}};
qRg=function(g,r){return _.u1(g.entities,"contextNoteFeedEntityPayload",r)};
ur5=function(g,r){switch(g){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return r==null?void 0:r.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return r==null?void 0:r.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return r==null?void 0:r.ratingNotHelpfulText}};
lqD=function(g,r){return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:g.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:g.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:g.deleteDialogTitle}]},dialogMessages:[{runs:[{text:g.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:g.deleteActionText}]},command:{performCommentActionEndpoint:{action:r}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:g.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
Dd6=function(g){g.style.height="auto";g.style.height=g.scrollHeight+"px"};
org=function(g){return[g.syncStep,g.asyncStep].filter(function(r){return r!==void 0})};
QOm=function(g){var r,E,B;if(g=(r=g.structuredContextNoteFormSchema)==null?void 0:(E=r.fieldSchemas)==null?void 0:(B=E.noteBody)==null?void 0:B.validationSchema)for(r=_.U(org(g)),E=r.next();!E.done;E=r.next()){E=E.value.rules;if(!E)break;E=_.U(E);for(E=E.next();!E.done;E=E.next())return _.n(E.value,_.GPz)}};
kPg=function(g){if(g){g=_.U(org(g));for(var r=g.next();!r.done;r=g.next()){r=r.value.rules;if(!r)break;r=_.U(r);for(r=r.next();!r.done;r=r.next())return _.n(r.value,zF8)}}};
pT$=function(g){if(g){g=_.U(org(g));for(var r=g.next();!r.done;r=g.next()){r=r.value.rules;if(!r)break;r=_.U(r);for(r=r.next();!r.done;r=r.next())return _.n(r.value,H5m)}}};
YRM=function(g){g=/^https?:\/\//.test(g)?g:"http://"+g;try{var r=_.cT(g)}catch(E){return!1}if(r.toString()!==g)return!1;g=r.JSC$8122_domain_.split(".");return g.length>1&&g.every(function(E){return!!E})};
RFz=function(g,r,E,B){var w;B=(w=B.structuredContextNoteData)==null?void 0:w.createCommentEndpoint;if(w=_.n(B,_.Tnz))return w.commentText=_.Lf(g),w.videoPositionMention=r,w.sources=E,B};
nrA=function(g){return g==null?void 0:g.stringValue};
fqM=function(g,r,E){g=g.map(function(B,w){return{listItemViewModel:{title:B.title,subtitle:B.subtitle,leadingImage:B.leadingImage,trailingImage:w===r?sOz:void 0,rendererContext:{commandContext:{onTap:B.onTap}}}}});
return Object.assign({},E&&{header:{panelHeaderViewModel:{title:E}}},{content:{listViewModel:{listItems:g}}})};
$dt=function(g,r){if(g&&r)switch(r){case "SELECTION_TYPE_BOOL":return g.boolValue;case "SELECTION_TYPE_INT":return g.intValue;case "SELECTION_TYPE_STRING":return g.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return g.privacyStatusValue}};
jO8=function(g){var r;g=(r=g.options)==null?void 0:r.findIndex(function(E){return E.isSelected});
return g===void 0?-1:g};
AyF=function(g,r,E){var B=function(){return g().label},w={},O=_.QY("ytDropdownViewModelLabel",(w.ytDropdownViewModelLabelError=r,w));
return _.G(_.p,{cond:function(){return g().label&&!(E()===-1&&g().label&&!g().placeholderText)},
then:function(){return _.G("div",{class:O},_.G(_.hf,{text:B}))}})};
b5D=function(g,r){var E={};E=_.QY("ytDropdownViewModelTitle",(E.ytDropdownViewModelTitlePlaceholder=function(){return r()===-1},E));
return _.G("div",{class:E},_.G(_.hf,{text:function(){var B=g();var w=r();if(w===-1)B=B.placeholderText?B.placeholderText:B.label;else{var O,M;B=(O=B.options)==null?void 0:(M=O[w])==null?void 0:M.title}return B}}))};
JyM=function(g,r){var E=function(){return g().hint};
return _.G(_.wW,null,_.G(_.p,{cond:function(){return E()&&!r()},
then:function(){return _.G("div",{class:_.QY("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.G(_.hf,{text:E,className:"ytDropdownViewModelSupportText"}))}}),_.G(_.p,{cond:r,
then:function(){return _.G("div",{id:"dropdown-view-model-error",role:"alert",class:_.QY("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.G(_.nh,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.G(_.hf,{text:r,className:"ytDropdownViewModelSupportText"}))}}))};
PDM=function(g,r){var E=_.rM().resolve(_.BOA);_.Jk(function(){var B=g().id;B&&E!=null&&E.dropdownMap.set(B,r)})};
FKA=function(g){g=_.n(g.scheduleButton,tLm);g=_.n(g==null?void 0:g.primaryButton,_.nm);g=_.n(g==null?void 0:g.onTap,_.KW);var r,E,B=((E=_.n(g,_.D$))==null?void 0:E.commands)||[g];E=_.U(B);for(g=E.next();!g.done&&!(r=_.n(g.value,_.v0I));g=E.next());var w;r=(w=r)==null?void 0:w.createBroadcastRequest;if(!r)throw Error("Qj");return r};
KKD=function(g,r,E){E=E===void 0?{}:E;var B,w;return _.q(function(O){if(B=eFv(r))return O.return(B);(w=WKM(g,r,E))&&CDg(r,w);return O.return(w)})};
CDg=function(g,r){var E=xd$(g);E&&r.then(function(B){_.rM().resolve(_.rI).put(E,new _.En({innertubeResponse:B}))})};
eFv=function(g){if(g=xd$(g)){var r=_.rM().resolve(_.rI);if(r.has(g))return r.get(g).then(function(E){return E==null?void 0:_.Bv(E)})}return null};
xd$=function(g){var r=_.n(g.endpoint,_.LM);if(r!=null&&r.videoId)return r={videoId:r.videoId},_.Y("web_imp_player_mute_params")&&(r.mutedAtStart=g.startPlaybackInMutedState),_.iG("inline_playback",r)};
WKM=function(g,r,E){g=_.cK(g,r.endpoint,aqt(r,E)).then(function(B){return B});
return Promise.resolve(g)};
aqt=function(g,r){r=_.Y("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!g.startPlaybackInMutedState},r):Object.assign({},{vis:5,autonav:"1"},r);var E;r={contentPlaybackContext:_.jN(r,(E=_.n(g.endpoint.commandMetadata,_.dU))==null?void 0:E.url,window.location.href)};_.Y("web_imp_player_mute_params")&&(r.overrideMutedAtStart=!g.startPlaybackInMutedState);return r};
mdM=function(g,r){var E=window.MutationObserver;E&&(UI=new E(function(B,w){B=_.U(B);for(var O=B.next();!O.done;O=B.next()){O=O.value;var M;if(M=O.type==="childList"&&O.target)a:{M=g;O=XTt(O.target);M=XTt(M);for(var u=null,l=0;l<O.length;l++)if(M.includes(O[l])){if(l===0){M=!1;break a}u=O[l];break}u?(O=NYt(O,u),M=NYt(M,u),M=O<M):M=!1}if(M){r();w.disconnect();break}}}),(E=Iq5())&&UI.observe(E,{childList:!0,
subtree:!0}))};
Iq5=function(){var g=document.getElementsByTagName("ytd-rich-grid-renderer");if(g.length>0)return g[0];g=document.getElementsByTagName("ytd-section-list-renderer");return g.length>0?g[0]:null};
XTt=function(g){for(var r=[];g;)r.push(g),g=g.parentElement;return r};
NYt=function(g,r){var E=Array.from(r.children);r=g.indexOf(r);return r>0?E.indexOf(g[r-1]):-1};
Mx=function(g,r,E){E=E===void 0?{}:E;return _.zn(g,E,r)};
cyF=function(g){switch(g){case "MUSIC":return!0;default:return!1}};
i5$=function(g){return g==null?void 0:g.filter(function(r){return r.premiereTrailerBadgeRenderer})};
VLz=function(g){var r,E=g==null?void 0:(r=g.find(function(k){return k.thumbnailOverlayTimeStatusRenderer}))==null?void 0:r.thumbnailOverlayTimeStatusRenderer,B,w;
if((E==null?0:(B=E.icon)==null?0:B.iconType)&&cyF(E==null?void 0:(w=E.icon)==null?void 0:w.iconType)){var O;return{icon:E==null?void 0:(O=E.icon)==null?void 0:O.iconType}}var M,u;var l=(g=(M=g==null?void 0:(l=g.find(function(k){return k.thumbnailBottomOverlayViewModel}))==null?void 0:l.thumbnailBottomOverlayViewModel)==null?void 0:(u=M.badges)==null?void 0:u.find(function(k){var H,R;
return((H=_.n(k,LKv))==null?void 0:(R=H.inlinePlaybackBadgeData)==null?void 0:R.replicateAsTimestamp)===!0}))?_.n(g,LKv):void 0;
if(l==null?0:l.icon){var Q,z;if((l=(Q=_.QkS(l==null?void 0:l.icon))==null?void 0:(z=Q.clientResource)==null?void 0:z.imageName)&&cyF(l))return{icon:l}}return{}};
TY8=function(g,r){var E=hF5,B=_.U(_.Dk(Z5A(new yym(function(){},E,r)),void 0,"PAnyd")),w=B.next().value,O=B.next().value,M=new yym(function(u){O(u)},E,r);
_.bQ(function(){Promise.resolve().then(function(){var u,l=(u=g())!=null?u:{};M.playerControlsData=l;_.Y("player_controls_skip_double_signal_old")&&(M.lastSeenPlayerApi=_.tQ(l.playerApi));_.Y("player_controls_skip_double_signal_old")||(M.lastSeenPlayerApi=_.tQ(l.playerApi));vr6(M)});
_.J5(function(){dd6(M)})},"HikUP");
_.J5(function(){dd6(M)});
return function(){return w()}};
gBg=function(g){return function(r){var E=g(),B={playerState:r};if(r===1){var w;(w=E.playerApi)==null||w.loadModule("captions")}if(r===0){var O;(O=E.playerApi)==null||O.unloadModule("captions")}(r!==-1||_.Y("web_imp_controls_set_player_state_killswitch"))&&E.setState(B)}};
r5m=function(g){return function(r){g().setState({playbackRate:r})}};
EBA=function(g){return function(r){var E=g(),B=E.playerApi,w=B==null?void 0:B.getVideoData(),O=(w==null?void 0:w.isLive)||!1;w=w==null?void 0:w.video_id;O={videoDuration:$0L(B||void 0),isLive:O,videoId:w};O.videoId!==E.videoId&&(O=Object.assign({},_.sLS(B),O));if(r==null?0:r.playertype)O.playerType=r.playertype;if(B){O.captionsAvailable=_.WQ(B);r=O;var M;w=(M=B.getStoryboardLevel(B.getNumberOfStoryboardLevels()-1))==null?void 0:M.intervalMs;r.storyboardInterval=w?w/1E3:void 0;O.captionsAvailable&&
(O.captionsEnabled=_.Frz(B))}O.volumeMuted=!(B==null||!B.isMuted());E.setState(O)}};
BBD=function(g){return function(r){var E=g(),B=E.playerApi;if(B){var w=B.getPresentingPlayerType();r={playedTime:r||0,percentLoaded:B.getVideoLoadedFraction(),playerType:w};E.playerState===0&&(r.playedTime=E.videoDuration);E.isLive&&(w=B.getProgressState(w),r.playedTime-=w.seekableStart,r.videoDuration=$0L(B));if(E.playerType===1)B=!1;else{var O;if((O=E.uxConfig)==null?0:O.showCuedOverlay){var M;B=!((M=E.playerApi)==null?0:M.getPlayerStateObject(E.playerType).isDomPaused)}else B=!0}B&&delete r.playedTime;
E.setState(r)}}};
wp4=function(g){return function(){var r=g(),E,B,w,O={volume:(w=(E=r.playerApi)==null?void 0:E.getVolume())!=null?w:0,volumeMuted:!((B=r.playerApi)==null||!B.isMuted())};r.setState(O)}};
SxM=function(g){return function(){var r=g(),E=r.playerApi;if(E){var B={captionsAvailable:_.WQ(E)};B.captionsAvailable&&(B.captionsEnabled=_.Frz(E));r.setState(B)}}};
Olz=function(g){return function(){var r=g();if(r.playerApi&&!(r.volumeMuted||r.controlsVisible&&r.isProbablyAScreenreaderUser)){r.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var E;(E=document.querySelector(".player-control-play-pause-icon"))==null||E.focus()}}};
UDt=function(g){return{appApi:Object.assign({},_.zDJ(),{showCaptionsToggleToast:function(r){var E,B;(B=(E=g()).showCaptionsToggleToast)==null||B.call(E,r)},
openInMiniplayer:function(){var r,E;(E=(r=g()).openInMiniplayer)==null||E.call(r)}})}};
M1L=function(g,r){var E,B,w;return!!(g==null?0:(E=g.playerResponse)==null?0:(B=E.playerConfig)==null?0:(w=B.inlinePlaybackConfig)==null?0:w.showScrubbingControls)&&!(r==null?0:r.hideScrubbingControls)};
_.qx$=function(g){var r=!g.miniplayerIsActive;return[5,2,0].includes(g.miniplayerPlaybackState)||r};
u2F={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};lkt=function(g,r){var E,B,w,O,M;_.q(function(u){if(!r.length)return u.return([]);E=[];B=_.U(r);for(w=B.next();!w.done;w=B.next())O=w.value,(M=g.resolveIcon(O))&&!g.iconCache[M.url]&&E.push(_.nbm(g,M).then(function(){}).catch(function(){}));
return u.return(Promise.all(E))})};
DDF=function(g,r){var E=[];r=(new Set(r)).values();r=_.U(r);for(var B=r.next();!B.done;B=r.next()){B=B.value;for(var w=_.U(Object.values(u2F)),O=w.next();!O.done;O=w.next())E.push({iconName:B,iconStyle:O.value})}lkt(g.iconManager,E)};
_.oBg=function(g,r,E){var B=E!=null?E:g.iconsToFetch;B!=null&&B.length?r!==void 0&&r>=0?_.fC(_.F6,function(){DDF(g,B)},r):DDF(g,B):Promise.resolve()};
yym=function(g,r,E){var B=this;this.renderFn=g;this.listeners=r;this.context=E;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var w;this.lastSeenPlayerApi=_.tQ((w=this.playerControlsData)==null?void 0:w.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.sLS(),void 0);_.Y("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){Z5A(B).setState({playerState:-1});B.resetRecentlyNavigatedJobId&&_.F6.cancelJob(B.resetRecentlyNavigatedJobId);
B.recentlyNavigated=!0;B.resetRecentlyNavigatedJobId=_.F6.addJob(function(){B.recentlyNavigated=!1},8,1E4)})};
yym.prototype.setState=function(g){if(!_.Y("mweb_player_skip_no_op_state_changes")||!jQL(g,this.state))if(this.state=Object.assign({},this.state,g),!_.Y("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)g=-1,_.Y("player_controls_log_creation_killswitch")||ALA()||(g=(0,_.g2)()),_.F4("pcu_s"),_.F4("pcu_se"),_.F4("pcu_rs"),this.renderFn(Z5A(this)),_.F4("pcu_re"),bNv(g),_.F6.addJob(function(){_.F4("pcu_ap")},8)};
var Z5A=function(g){var r;var E=_.tQ((r=g.playerControlsData)==null?void 0:r.playerApi);return Object.assign({},g.state,{setState:g.boundSetState,domMeasurements:{progressBarLineRect:g.progressBarLineRect},playerApi:E,appApi:g.context.appApi,playerContainer:g.context.playerContainer,playerControlContainer:g.context.playerControlContainer,uxConfig:g.context.uxConfig})},vr6=function(g){g.listeners.forEach(function(r){g.eventListenerCleanupFunctions.push(r.register(function(){return Z5A(g)},function(){return g.getData()}))})},
dd6=function(g){g.eventListenerCleanupFunctions.forEach(function(r){r()});
g.eventListenerCleanupFunctions.length=0};
yym.prototype.getData=function(){return this.playerControlsData};var qx=new _.V("abuseReportFlowState");var GWL=new _.V("feedbackFormFlowState");var QBg=new _.V("inputBoxViewModel");var zov=new _.V("flowNextStepCommand");var kW4=new _.V("flowPrevStepCommand");var HlA=new _.V("updateFlowCommand");_.pp6=new _.V("flowStepRenderer");_.GPz=new _.V("lengthValidationRule");var zF8=new _.V("regexValidationRule");var H5m=new _.V("selectedValidationRule");var Yxg=new _.V("talkToRecsViewModel");var Ro6=new _.V("creatorGoalSetUpFlowDropdownItemViewModel");var nBA=new _.V("creatorGoalSetUpFlowDropdownViewModel");var LKv=new _.V("thumbnailBadgeViewModel");_.sBm=new _.V("radioButtonGroupViewModel");var tLm=new _.V("panelFooterViewModel");var fkM=new _.V("ypcCancelRecurrenceCommand");var $D4=new _.V("cancellationFlowState");var ryA=new _.V("premiumPurchaseFlowState");var jB8=new _.V("surveyAnswerCardRenderer");var A5m=new _.V("showMoreButtonRenderer");var blF;var J5L,PQg=function(){if(J5L!==void 0)return J5L;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;blF===void 0&&(blF=document.createElement("template"));var B=blF;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return J5L=g};var ur=function(){var g=_.a.apply(this,arguments)||this;g.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";g.goalDescription="";g.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";g.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";g.startButtonId="start-button";g.exampleButtonId="example-button";return g};
_.f(ur,_.a);_.S=ur.prototype;_.S.getGoalDropdownItems=function(){var g,r;return(r=_.n((g=this.data)==null?void 0:g.purchaseTargetDropdown,nBA))==null?void 0:r.dropdownItems};
_.S.getTimerDropdownItems=function(){var g,r;return(r=_.n((g=this.data)==null?void 0:g.timerDropdown,nBA))==null?void 0:r.dropdownItems};
_.S.getColorDropdownItems=function(){var g,r;return(r=_.n((g=this.data)==null?void 0:g.colorDropdown,nBA))==null?void 0:r.dropdownItems};
_.S.getDropdownItemText=function(g){var r;return(r=_.n(g,Ro6))==null?void 0:r.itemLabel};
_.S.getDropdownItemValue=function(g){g=_.n(g,Ro6);return(g==null?void 0:g.timeLimit)||(g==null?void 0:g.purchaseTarget)||(g==null?void 0:g.eligiblePurchaseType)};
_.S.updateFlowState=function(g){_.OS(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:g}])};
_.S.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.S.updateGoalValue=function(g){this.goal=g.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.S.onTextValueChanged=function(g){this.goalDescription=g.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.S.updateTimerValue=function(g){this.timer=g.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.S.updateTierValue=function(g){this.tier=g.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.S.getButtonViewModel=function(g){g=(g==null?void 0:g.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var r,E=_.n((r=this.data)==null?void 0:r.startGoalButton,_.nm);return Object.assign({},E,{state:g})};
_.hx.Object.defineProperties(ur,{template:{configurable:!0,enumerable:!0,get:function(){return PQg()}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ur.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ur.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],ur.prototype,"goal",void 0);_.m([_.K(),_.L("design:type",Object)],ur.prototype,"goalDescription",void 0);_.m([_.K(),_.L("design:type",Object)],ur.prototype,"timer",void 0);_.m([_.K(),_.L("design:type",Object)],ur.prototype,"tier",void 0);
_.m([_.K(),_.L("design:type",Object)],ur.prototype,"startButtonId",void 0);_.m([_.K(),_.L("design:type",Object)],ur.prototype,"exampleButtonId",void 0);_.m([_.e3({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],ur);_.I(ur,"yt-creator-goal-set-up-flow-view-model",function(){return PQg()},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var t1v;var FDL;var eo4;var WDA=function(){return _.a.apply(this,arguments)||this};
_.f(WDA,_.a);_.m([_.K(),_.L("design:type",Object)],WDA.prototype,"data",void 0);_.m([_.e3({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],WDA);
_.I(WDA,"yt-survey-answer-card-renderer",function(){if(eo4===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;FDL===void 0&&(FDL=document.createElement("template"));var B=FDL;E.call(r,B.content.cloneNode(!0),g.content.firstChild);eo4=g}g=eo4;return g},{mode:2});var CQA;var KD4;var lr=function(){return _.a.apply(this,arguments)||this};
_.f(lr,_.a);_.S=lr.prototype;_.S.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.S.selectedItemChanged=function(g){_.OS(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[g.feedbackToken||""]}])};
_.S.surveyAnswerCardRendererClicked=function(g){if(g.target&&_.n(g.model.item,jB8)){var r=g.target;g=_.n(g.model.item,jB8);g.onTapCommand?_.uq(r,[g.onTapCommand],r):this.data.onTapCommand&&_.uq(r,[this.data.onTapCommand],r);this.selectedItemChanged(g)}};
_.S.checkIsCancellationStyle=function(g){return g==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.S.updateSelectedItemFromBinding=function(g){this.selectedItem=g.detail.value};
lr.prototype.onSelectedItemChanged=lr.prototype.onSelectedItemChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],lr.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],lr.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],lr.prototype,"selectedItem",void 0);_.m([_.K({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.L("design:type",Boolean)],lr.prototype,"isCancellationStyle",void 0);
_.m([_.Gb("selectedItem"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],lr.prototype,"onSelectedItemChanged",null);_.m([_.e3({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],lr);
_.I(lr,"yt-survey-flow-step-renderer",function(){if(KD4===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;CQA===void 0&&(CQA=document.createElement("template"));var B=CQA;E.call(r,B.content.cloneNode(!0),g.content.firstChild);KD4=g}g=KD4;return g},{mode:2});var DF=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return g};
_.f(DF,_.a);DF.prototype.handleSurveyFlowStepOptionChanged=function(g){this.ytdReduxBehavior.dispatch(_.Bs({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:g}));_.OS(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:g}}])};
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],DF.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],DF.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],DF.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],DF);
_.I(DF,"ytd-survey-flow-step-renderer",function(){if(t1v!==void 0)return t1v;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return t1v=g},{mode:1});var JLM;JLM=_.R$({avatarViewModel:_.sV,buttonViewModel:_.MV,subscribeButtonViewModel:_.Rh,imageBannerViewModel:_.GvU});_.xDF=_.k3(_.tng);_.rH(_.tng);var akg;var oD=function(){return _.a.apply(this,arguments)||this};
_.f(oD,_.a);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],oD.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],oD.prototype,"data",void 0);_.m([_.N({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],oD);
_.I(oD,"ytd-channel-history-renderer",function(){if(akg!==void 0)return akg;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return akg=g},{mode:1});var Xp$;var NB$=function(){return _.a.apply(this,arguments)||this};
_.f(NB$,_.a);_.m([_.K(),_.L("design:type",Object)],NB$.prototype,"data",void 0);_.m([_.N({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],NB$);
_.I(NB$,"ytd-feature-enablement-info-renderer",function(){if(Xp$!==void 0)return Xp$;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Xp$=g},{mode:1});var Ikt;var mD$;var GT=function(){var g=_.a.apply(this,arguments)||this;g.textBoxMaxLength=_.Y("enable_tvod_campaign_code_integration")?15:12;return g};
_.f(GT,_.a);_.S=GT.prototype;_.S.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.S.onSubmit=function(){var g=this.data.serviceEndpoint,r=_.n(g,_.g0);r&&g&&(r.couponCode=this.userInput,_.rM().resolve(_.Er).resolveCommand(g,{form:{element:this.hostElement}}))};
_.S.validate=function(){var g=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=g&&!this.data.errorMessage;this.showErrorMessage=g&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.Y("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.S.computeStyle=function(g){return g};
_.S.computeShowValidationBelowInput=function(g){return g!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.S.updateUserInputFromBinding=function(g){this.userInput=g.currentTarget.value};
_.S.updateShowErrorMessageFromBinding=function(g){this.showErrorMessage=g.detail.value};
_.hx.Object.defineProperties(GT.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
GT.prototype.dataChanged=GT.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],GT.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],GT.prototype,"data",void 0);_.m([_.K(),_.L("design:type",String)],GT.prototype,"userInput",void 0);_.m([_.K(),_.L("design:type",Boolean)],GT.prototype,"disableApplyButton",void 0);_.m([_.K(),_.L("design:type",Boolean)],GT.prototype,"hideApplyButton",void 0);
_.m([_.K(),_.L("design:type",Boolean)],GT.prototype,"hideErrorMessage",void 0);_.m([_.K(),_.L("design:type",Boolean)],GT.prototype,"showTick",void 0);_.m([_.K(),_.L("design:type",Boolean)],GT.prototype,"showErrorMessage",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.L("design:type",String)],GT.prototype,"couponStyle",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.L("design:type",Boolean)],GT.prototype,"showValidationBelowInput",void 0);_.m([_.K(),_.L("design:type",Object)],GT.prototype,"textBoxMaxLength",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],GT.prototype,"dataChanged",null);
_.m([_.W("showTick","showErrorMessage","userInput"),_.L("design:type",String),_.L("design:paramtypes",[])],GT.prototype,"validationState",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],GT);
_.I(GT,"ytd-ypc-coupon-renderer",function(){if(mD$!==void 0)return mD$;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return mD$=g},{mode:1});var QL=function(){return _.a.apply(this,arguments)||this};
_.f(QL,_.a);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(g){return g};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],QL.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],QL.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],QL.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.L("design:type",String)],QL.prototype,"buttonStyle",void 0);_.m([_.N({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],QL);
_.I(QL,"ytd-flow-bottom-bar-renderer",function(){if(Ikt!==void 0)return Ikt;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return Ikt=g},{mode:1});var c5F;var il8;var LDF;var zT=function(){return _.a.apply(this,arguments)||this};
_.f(zT,_.a);zT.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
zT.prototype.focus=function(g){this.title&&_.hp(this.title,g)};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],zT.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],zT.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],zT.prototype,"data",void 0);_.m([_.zb("#title"),_.L("design:type",HTMLElement)],zT.prototype,"title",void 0);_.m([_.N({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],zT);
_.I(zT,"ytd-flow-top-bar-renderer",function(){if(LDF!==void 0)return LDF;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return LDF=g},{mode:1});var V1v;var hoL;var Zl8;var kx=function(){return _.a.apply(this,arguments)||this};
_.f(kx,_.a);kx.prototype.freeTextValueChanged=function(){_.OS(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
kx.prototype.updateFreeTextValueFromBinding=function(g){this.freeTextValue=g.detail.value};
_.hx.Object.defineProperties(kx.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var g,r,E=(r=(g=this.data)==null?void 0:g.responseMaxLength)!=null?r:500,B;return((B=this.freeTextValue)!=null?B:"").length>=E?"maxed-out":""}}});
kx.prototype.freeTextValueChanged=kx.prototype.freeTextValueChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],kx.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],kx.prototype,"data",void 0);_.m([_.K(),_.L("design:type",String)],kx.prototype,"freeTextValue",void 0);_.m([_.zb("#user-input"),_.L("design:type",HTMLTextAreaElement)],kx.prototype,"input",void 0);
_.m([_.W("freeTextValue"),_.L("design:type",Object),_.L("design:paramtypes",[])],kx.prototype,"characterLimitClass",null);_.m([_.Gb("freeTextValue"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],kx.prototype,"freeTextValueChanged",null);_.m([_.e3({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],kx);
_.I(kx,"yt-free-text-input-flow-step-renderer",function(){if(Zl8===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;hoL===void 0&&(hoL=document.createElement("template"));var B=hoL;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Zl8=g}g=Zl8;return g},{mode:2});var HW=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return g};
_.f(HW,_.a);HW.prototype.handleFreeTextFlowStepInputChanged=function(g){_.OS(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:g}}])};
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],HW.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],HW.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],HW.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],HW);
_.I(HW,"ytd-free-text-input-flow-step-renderer",function(){if(V1v!==void 0)return V1v;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return V1v=g},{mode:1});var y5D;var vBt;var dDL=function(){return _.a.apply(this,arguments)||this};
_.f(dDL,_.a);_.m([_.K(),_.L("design:type",Object)],dDL.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],dDL);
_.I(dDL,"ytd-metadata-line-renderer",function(){if(vBt!==void 0)return vBt;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return vBt=g},{mode:1});var pG=function(){return _.a.apply(this,arguments)||this};
_.f(pG,_.a);pG.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],pG.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],pG.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],pG.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],pG.prototype,"isMasthead",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],pG);
_.I(pG,"ytd-media-product-renderer",function(){if(y5D!==void 0)return y5D;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return y5D=g},{mode:1});var TBm;var Yx=function(){return _.a.apply(this,arguments)||this};
_.f(Yx,_.a);Yx.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
Yx.prototype.onBillboardImageLoaded=function(){_.Sh(this.hostElement,"yt-refit")};
Yx.prototype.onBillboardImageLoaded=Yx.prototype.onBillboardImageLoaded;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Yx.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Yx.prototype,"data",void 0);_.m([_.zb("#billboardImage"),_.L("design:type",Object)],Yx.prototype,"billboardImage",void 0);_.m([_.ob("yt-img-shadow-loaded"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Yx.prototype,"onBillboardImageLoaded",null);
_.m([_.N({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],Yx);
_.I(Yx,"ytd-billboard-masthead-renderer",function(){if(TBm!==void 0)return TBm;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return TBm=g},{mode:1});var gF4;var RD=function(){var g=_.a.apply(this,arguments)||this;g.smallSize=!1;return g};
_.f(RD,_.a);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],RD.prototype,"ytComponentBehaviorType",void 0);_.m([_.K(),_.L("design:type",Object)],RD.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],RD.prototype,"smallSize",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],RD);
_.I(RD,"ytd-bullet-formatted-string",function(){if(gF4!==void 0)return gF4;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return gF4=g},{mode:1});var rk5;var nG=function(){return _.a.apply(this,arguments)||this};
_.f(nG,_.a);nG.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],nG.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],nG.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],nG.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],nG);
_.I(nG,"ytd-offer-detail-renderer",function(){if(rk5!==void 0)return rk5;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return rk5=g},{mode:1});var EFL;var sI=function(){return _.a.apply(this,arguments)||this};
_.f(sI,_.a);sI.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"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],sI.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],sI.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],sI.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],sI);
_.I(sI,"ytd-offer-detail-step-renderer",function(){if(EFL!==void 0)return EFL;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return EFL=g},{mode:1});var BW5;var fG=function(){var g=_.a.apply(this,arguments)||this;g.isInOfferModule=!1;return g};
_.f(fG,_.a);_.S=fG.prototype;_.S.computeHasEndpoint=function(){var g;return!((g=this.data)==null||!g.onClickCommand)};
_.S.dataChanged=function(){var g;if((g=this.data)==null?0:g.onClickCommand)this.hostElement.addEventListener("click",this.handleClickEvent),this.hostElement.addEventListener("keydown",this.onContentKeyDown),this.hostElement.addEventListener("keyup",this.onContentKeyUp),this.hostElement.setAttribute("tabindex","0"),this.hostElement.setAttribute("role","link")};
_.S.detached=function(){var g;if((g=this.data)==null?0:g.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.S.handleClickEvent=function(){var g;if((g=this.data)==null?0:g.onClickCommand){var r;this.componentBehavior.resolveCommand((r=this.data)==null?void 0:r.onClickCommand)}};
_.S.onContentKeyDown=function(g){g.key==="Enter"?this.handleClickEvent(g):g.key===" "&&g.preventDefault()};
_.S.onContentKeyUp=function(g){g.key===" "&&this.handleClickEvent(g)};
fG.prototype.dataChanged=fG.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],fG.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],fG.prototype,"componentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],fG.prototype,"data",void 0);_.m([_.K({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],fG.prototype,"hasEndpoint",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],fG.prototype,"isInOfferModule",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],fG.prototype,"dataChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],fG);
_.I(fG,"ytd-channel-masthead-renderer",function(){if(BW5!==void 0)return BW5;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return BW5=g},{mode:1});var w0L;var $x=function(){var g=_.a.apply(this,arguments)||this;g.thumbnailObjectFit="CONTAIN";g.thumbnailObjectPosition="LEFT";g.isExpanded=!1;return g};
_.f($x,_.a);_.S=$x.prototype;_.S.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.S.dataChanged=function(){this.resetStates()};
_.S.computeisTapOnOfferInfoContainerEnabled=function(){var g;return((g=this.data)==null?void 0:g.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.S.onExpandBtnClick=function(){var g,r=_.n((g=this.data)==null?void 0:g.showMoreButtonRenderer,A5m);r&&_.MJ(_.pW(),r.trackingParams);this.isExpanded=!this.isExpanded};
_.S.onOfferInfoClick=function(g){this.isTapOnOfferInfoContainerEnabled&&(_.Zy(_.Z1(g)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.yY(_.Z1(g)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.S.onBottomBarClick=function(){this.executeTapCommand()};
_.S.executeTapCommand=function(){var g,r=(g=this.data)==null?void 0:g.tapCommand;r&&this.ytComponentBehavior.resolveCommand(r)};
_.S.resetStates=function(){this.isExpanded=!1};
_.hx.Object.defineProperties($x.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var g=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),r,E,B;return((r=this.data)==null?void 0:r.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&g&&!!((E=this.data)==null?0:(B=E.benefits)==null?0:B.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return((r=_.n((g=this.data)==null?void 0:g.showMoreButtonRenderer,A5m))==null?void 0:r.showMoreButtonTitle)||((E=this.data)==null?void 0:E.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return((r=_.n((g=this.data)==null?void 0:g.showMoreButtonRenderer,A5m))==null?void 0:r.showLessButtonTitle)||((E=this.data)==null?void 0:E.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var g;return(g=this.showLessButtonTitle)!=null?g:""}var r;return(r=this.showMoreButtonTitle)!=null?r:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return((g=this.data)==null?void 0:g.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((r=this.data)==null?0:r.footerTitle)||((E=this.data)==null?0:E.footerSubtitle))}}});
$x.prototype.dataChanged=$x.prototype.dataChanged;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],$x.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],$x.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],$x.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",String)],$x.prototype,"thumbnailObjectFit",void 0);
_.m([_.K(),_.L("design:type",String)],$x.prototype,"thumbnailObjectPosition",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.L("design:type",Boolean)],$x.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.m([_.K(),_.L("design:type",Object)],$x.prototype,"isExpanded",void 0);_.m([_.K(),_.L("design:type",Object)],$x.prototype,"data",void 0);_.m([_.K({computed:"computeIcon_(data.footerIcon)"}),_.L("design:type",String)],$x.prototype,"icon",void 0);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],$x.prototype,"dataChanged",null);_.m([_.W("data.thumbnail"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],$x.prototype,"hasThumbnail",null);_.m([_.W("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],$x.prototype,"enableExpandButton",null);
_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],$x.prototype,"enableOfferContentIcon",null);_.m([_.W("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.L("design:type",Object),_.L("design:paramtypes",[])],$x.prototype,"showMoreButtonTitle",null);_.m([_.W("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.L("design:type",Object),_.L("design:paramtypes",[])],$x.prototype,"showLessButtonTitle",null);
_.m([_.W("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.L("design:type",String),_.L("design:paramtypes",[])],$x.prototype,"expandedBtnText",null);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],$x.prototype,"enableBottomBar",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],$x);
_.I($x,"ytd-offer-card-renderer",function(){if(w0L!==void 0)return w0L;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return w0L=g},{mode:1});var S6v;var jZ=function(){return _.a.apply(this,arguments)||this};
_.f(jZ,_.a);jZ.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"}}}};
jZ.prototype.onClick=function(g){if(!_.Zy(g.composedPath()||[],this.hostElement,["A".toString()])){var r,E;if((g=(E=_.n((r=this.data)==null?void 0:r.actionButton,_.Fd))==null?void 0:E.command)&&!this.ytComponentBehavior.resolveCommand(g)){var B;(B=_.pW())==null||B.clickCommand(g);_.rM().resolve(_.Er).resolveCommand(g,{form:{element:this.hostElement}})}}};
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],jZ.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],jZ.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],jZ.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],jZ.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],jZ);
_.I(jZ,"ytd-offer-content-renderer",function(){if(S6v!==void 0)return S6v;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return S6v=g},{mode:1});var OaD;var Az=function(){return _.a.apply(this,arguments)||this};
_.f(Az,_.a);Az.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.hx.Object.defineProperties(Az.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var g,r;return!((g=this.data)==null||!g.title)||!((r=this.data)==null||!r.description)}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Az.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Az.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Az.prototype,"data",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],Az.prototype,"hasHeaderData",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],Az);
_.I(Az,"ytd-offer-section-renderer",function(){if(OaD!==void 0)return OaD;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return OaD=g},{mode:1});var UXF;var br=function(){return _.a.apply(this,arguments)||this};
_.f(br,_.a);
br.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"}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],br.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],br.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],br.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],br);
_.I(br,"ytd-offer-selection-step-renderer",function(){if(UXF!==void 0)return UXF;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return UXF=g},{mode:1});var MSz;var Jz=function(){return _.a.apply(this,arguments)||this};
_.f(Jz,_.a);Jz.prototype.computeStyle=function(g){return g};
Jz.prototype.computeImageWidth=function(g){return g==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.m([_.K({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.L("design:type",String)],Jz.prototype,"containerStyle",void 0);_.m([_.K({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.L("design:type",String)],Jz.prototype,"imageWidth",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Jz.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Jz.prototype,"data",void 0);
_.m([_.N({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],Jz);
_.I(Jz,"ytd-confirmation-masthead-renderer",function(){if(MSz!==void 0)return MSz;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return MSz=g},{mode:1});var q6m;var PW=function(){return _.a.apply(this,arguments)||this};
_.f(PW,_.a);PW.prototype.computeStyle=function(g){return g};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],PW.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],PW.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.L("design:type",String)],PW.prototype,"containerStyle",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],PW);
_.I(PW,"ytd-purchase-complete-detail-renderer",function(){if(q6m!==void 0)return q6m;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return q6m=g},{mode:1});var uSD;var tz=function(){var g=_.a.apply(this,arguments)||this;g.scriptsAppended=!1;return g};
_.f(tz,_.a);tz.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"}}}};
tz.prototype.onDataChanged=function(){var g=this.get("data.gtmId");g&&(_.fB(g,_.Ca("GL","")),this.setupConversionTracking())};
tz.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var g=document.createElement("noscript");g.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(g);this.scriptsAppended=!0}};
tz.prototype.onDataChanged=tz.prototype.onDataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],tz.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],tz.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],tz.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],tz.prototype,"scriptsAppended",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],tz.prototype,"onDataChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],tz);
_.I(tz,"ytd-purchase-complete-step-renderer",function(){if(uSD!==void 0)return uSD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return uSD=g},{mode:1});var lnD;var FJ=function(){var g=_.a.apply(this,arguments)||this;g.darkerDarkTheme=_.Y("web_darker_dark_theme");return g};
_.f(FJ,_.a);FJ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],FJ.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],FJ.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],FJ.prototype,"darkerDarkTheme",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],FJ);
_.I(FJ,"ytd-ypc-transaction-error-message-renderer",function(){if(lnD!==void 0)return lnD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return lnD=g},{mode:1});var DXt;var oFF;var eZ=function(){var g=_.a.apply(this,arguments)||this;g.handlePhoneVerificationSuccess=function(r){if(g.isValidPhoneVerificationCompletionMessageEvent(r)){var E;((E=g.data)==null?0:E.nextStepCommand)&&g.ytComponentBehavior.resolveCommand(g.data.nextStepCommand)}};
return g};
_.f(eZ,_.a);eZ.prototype.isValidPhoneVerificationCompletionMessageEvent=function(g){if(g.data!=="yt-phone-verification-complete")return!1;g=_.Zn(g.origin);return g!==null&&g.includes("youtube.com")};
eZ.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
eZ.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],eZ.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],eZ.prototype,"data",void 0);_.m([_.e3({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],eZ);
_.I(eZ,"yt-feature-enablement-soft-entry-renderer",function(){if(oFF===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;DXt===void 0&&(DXt=document.createElement("template"));var B=DXt;E.call(r,B.content.cloneNode(!0),g.content.firstChild);oFF=g}g=oFF;return g},{mode:1});var GU4;var Qam;var z7v;var kU8;var Ham=function(){return _.a.apply(this,arguments)||this};
_.f(Ham,_.a);_.m([_.K(),_.L("design:type",Object)],Ham.prototype,"data",void 0);_.m([_.e3({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],Ham);
_.I(Ham,"yt-benefits-item-renderer",function(){if(kU8===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;z7v===void 0&&(z7v=document.createElement("template"));var B=z7v;E.call(r,B.content.cloneNode(!0),g.content.firstChild);kU8=g}g=kU8;return g},{mode:2});var p0L;var Y6t;var WW=function(){return _.a.apply(this,arguments)||this};
_.f(WW,_.a);WW.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
WW.prototype.computeisWithoutPadding=function(){var g;return((g=this.data)==null?void 0:g.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],WW.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],WW.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.L("design:type",Boolean)],WW.prototype,"isWithoutPadding",void 0);_.m([_.e3({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],WW);
_.I(WW,"yt-benefits-section-renderer",function(){if(Y6t===void 0){var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;p0L===void 0&&(p0L=document.createElement("template"));var B=p0L;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Y6t=g}g=Y6t;return g},{mode:2});var CG=function(){return _.a.apply(this,arguments)||this};
_.f(CG,_.a);CG.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
CG.prototype.computeisUsingLargeWidth=function(){var g;return((g=this.data)==null?void 0:g.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],CG.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],CG.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.L("design:type",Boolean)],CG.prototype,"isUsingLargeWidth",void 0);_.m([_.e3({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],CG);
_.I(CG,"yt-benefits-flow-step-renderer",function(){if(Qam===void 0){var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;GU4===void 0&&(GU4=document.createElement("template"));var B=GU4;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Qam=g}g=Qam;return g},{mode:2});var R7v;var nF6;var KG=function(){return _.a.apply(this,arguments)||this};
_.f(KG,_.a);KG.prototype.checkIsUsingLargeWidth=function(){var g;return((g=this.data)==null?void 0:g.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.m([_.K(),_.L("design:type",Object)],KG.prototype,"data",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],KG.prototype,"ytRendererBehavior",void 0);_.m([_.K({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.L("design:type",Boolean)],KG.prototype,"isUsingLargeWidth",void 0);_.m([_.e3({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],KG);
_.I(KG,"yt-confirmation-flow-step-renderer",function(){if(nF6===void 0){var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;R7v===void 0&&(R7v=document.createElement("template"));var B=R7v;E.call(r,B.content.cloneNode(!0),g.content.firstChild);nF6=g}g=nF6;return g},{mode:2});var sa8;var fn5;var $X4=function(){return _.a.apply(this,arguments)||this};
_.f($X4,_.a);_.m([_.K(),_.L("design:type",Object)],$X4.prototype,"data",void 0);_.m([_.e3({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],$X4);
_.I($X4,"yt-info-flow-step-renderer",function(){if(fn5===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;sa8===void 0&&(sa8=document.createElement("template"));var B=sa8;E.call(r,B.content.cloneNode(!0),g.content.firstChild);fn5=g}g=fn5;return g},{mode:2});var ja4;var Akz;var ba6=function(){return _.a.apply(this,arguments)||this};
_.f(ba6,_.a);_.m([_.K(),_.L("design:type",Object)],ba6.prototype,"data",void 0);_.m([_.e3({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],ba6);
_.I(ba6,"yt-info-list-flow-step-renderer",function(){if(Akz===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;ja4===void 0&&(ja4=document.createElement("template"));var B=ja4;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Akz=g}g=Akz;return g},{mode:2});var JkA=_.dG(function(g){var r=g.data;return _.G("styled-text-view-model",{class:_.QY("ytStyledTextViewModelHost",function(){return iNm(r().fontAttributes)},function(){return cLM(r().color)})},_.G(_.hf,{text:function(){return r().text},
ariaLabel:function(){var E,B,w;return(w=(E=r().accessibility)==null?void 0:(B=E.accessibilityData)==null?void 0:B.label)!=null?w:""}}))},"kf");
JkA.idomCompat=!0;var PuA=_.dG(function(g){var r=function(){var w,O,M,u;return(u=(M=(w=g.alt)==null?void 0:w.call(g))!=null?M:(O=g.data().accessibilityData)==null?void 0:O.label)!=null?u:""},E=function(){return g.data().imageWidth},B=function(){return g.data().imageHeight};
return _.G("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.G(_.p,{cond:function(){var w=g.data();if(w){var O,M,u;var l=((O=_.rM().resolve(_.gM(_.Vy)))==null?0:O())?(M=w.imageDark)!=null?M:w.imageLight:(u=w.imageLight)!=null?u:w.imageDark}else l=void 0;return l},
then:function(w){return _.G(_.vw,Object.assign({},g,{data:w,alt:r,targetWidth:E,targetHeight:B,preserveHeight:!0,preserveWidth:!0}))}}))},"lf");
PuA.idomCompat=!0;var xx=_.dG(function(g){var r=g.data;g=_.Zo(function(){return r().slots},[]);
var E=_.Zo(function(){return r().layoutProperties},{}),B=_.rM().resolve(_.Zh);
return _.G("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:ab6(E,B)},_.G(_.Ra,{each:g,keyBy:"INDEX"},function(w){return _.G("div",{class:"ytContainerLayoutViewModelSlot",style:ab6(function(){return w().layoutProperties},B)},_.G(_.Af,{data:function(){return w().contents}},{containerLayoutViewModel:xx,
badgeViewModel:_.ZL,buttonViewModel:_.MV,styledTextViewModel:JkA,contentPreviewImageViewModel:function(O){return _.G(_.ye,{data:O.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(O){return _.G(PuA,{data:O.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"mf");
xx.idomCompat=!0;var tSt=_.dG(function(g){var r=g.data;var E=g.stateFns;var B=function(){var Q=r(),z=Q.productId;return!(!Q.clearGroupId&&!z)},w=function(){var Q=r(),z=Q.clearGroupId;
return(Q=Q.productId)?E().isProductSelected(Q):z?E().getSelectedProductByGroupId(z)==null:!1},O=function(){var Q=r(),z=Q.clearGroupId;
if(Q=Q.productId)E().onProductSelected(Q);else if(z)E().onClearGroupSelected(z)},M=function(){var Q=r(),z=Q.clearGroupId;
if(Q=Q.productId){var k;return"group:"+(((k=E().getProductById(Q))==null?void 0:k.groupId)||"")}return z?"group:"+z:""},u=_.Zo(function(){return r().header},[]),l=_.Zo(function(){return r().body},[]);
return _.G("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.G(_.p,{cond:function(){return u().length>0||B()},
then:function(){return _.G("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.G("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.G(_.Af,{data:u},{containerLayoutViewModel:function(Q){return _.G("div",{class:"ytPdpCardSectionViewModelContentItem"},_.G(xx,{data:Q.data}))},
styledTextViewModel:function(Q){return _.G("div",{class:"ytPdpCardSectionViewModelContentItem"},_.G(JkA,{data:Q.data}))}})),_.G(_.p,{cond:B,
then:function(){return _.G("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.G(_.sv,{checked:w,name:M,onChange:O}))}}))}}),_.G(_.p,{cond:function(){return l().length>0},
then:function(){return _.G("div",null,_.G(_.Af,{data:l},{containerLayoutViewModel:function(Q){return _.G("div",{class:"ytPdpCardSectionViewModelContentItem"},_.G(xx,{data:Q.data}))}}))}}))},"nf");
tSt.idomCompat=!0;var FRM=_.dG(function(g){var r=g.data;var E=g.stateFns;return _.G("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.G(_.p,{cond:function(){return r().banner},
then:function(B){return _.G("div",{class:"ytPdpCardViewModelBanner"},_.G(_.hf,{text:B}))}}),_.G(_.Af,{data:function(){return r().sections}},{pdpCardSectionViewModel:function(B){B=B.data;
var w={};return _.G("div",{class:_.QY("ytPdpCardViewModelSectionContainer",(w.ytPdpCardViewModelShowDividers=function(){return r().showDividers},w))},_.G(tSt,{data:B,
stateFns:E}))}}))},"of");
FRM.idomCompat=!0;var e7L=_.dG(function(g){var r=g.data;var E=g.isOverlay;g={};return _.G("pdp-masthead-view-model",{class:_.QY("ytPdpMastheadViewModelHost",(g.ytPdpMastheadViewModelIsOverlay=E,g))},_.G(_.Af,{data:function(){return r().image}},{contentPreviewImageViewModel:_.ye,
themedImageViewModel:function(B){return _.G(PuA,{data:B.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.G(_.p,{cond:function(){return r().title},
then:function(B){return _.G("h1",{class:"ytPdpMastheadViewModelHeading"},_.G(_.hf,{text:B,isOverlay:E}))}}),_.G(_.Ra,{each:function(){var B;
return(B=r().finePrint)!=null?B:[]}},function(B){return _.G("div",{class:"ytPdpMastheadViewModelFinePrint"},_.G(_.hf,{text:B,
isOverlay:E}))}))},"pf");
e7L.idomCompat=!0;var WRm=_.dG(function(g){var r=g.data;var E=g.stateFns;var B=function(){return"pdp-pricing-group-selector-"+r().pricingGroupAttributeIds},w=_.Zo(function(){return r().pricingGroupSelectorSectionHeader});
return _.G("pdp-pricing-group-selector-view-model",null,_.G(_.p,{cond:function(){return!!w()},
then:function(){return _.G(_.Af,{data:w},{sectionHeaderViewModel:function(O){O=O.data;var M={};return _.G("div",{class:_.QY("ytPdpPricingGroupSelectorViewModelSectionHeader",(M.ytPdpPricingGroupSelectorViewModelFullBleed=!0,M.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,M))},_.G(_.rm,{data:O}))}})}}),_.G("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.G(_.Ra,{each:function(){var O=E().getSelectedProductByGroupId(r().groupId);
if(!O)return _.FR(Error("Oj`"+r().groupId)),[];var M,u=(M=r().pricingGroupAttributeIds)!=null?M:[],l;if((l=O.pricingGroups)==null||!l.length||!u.length)return[];M=O.pricingGroups.filter(function(H){return u.length?H.pricingGroupAttributes.every(function(R){return u.includes(R)}):!1});
O=[];if(u.length>0){M=[].concat(_.jW(M));l=_.U(u);for(var Q=l.next(),z={};!Q.done;z={targetAttrId:void 0},Q=l.next())z.targetAttrId=Q.value,Q=M.findIndex(function(H){return function(R){return R.pricingGroupAttributes.includes(H.targetAttrId)}}(z)),Q!==-1&&(O.push(M[Q]),M.splice(Q,1))}var k=E().getSelectedPricingGroupAttributesByGroupId(r().groupId);
return O.map(function(H){var R=!1;k&&H.pricingGroupAttributes&&(R=OI(H.pricingGroupAttributes,k));return{pricingGroup:H,isSelected:R}})},
keyBy:function(O){return O.pricingGroup.pricingGroupId}},function(O){return _.G("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.G("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.G(_.Af,{data:function(){return O().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:xx})),_.G("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.G(_.sv,{checked:function(){return O().isSelected},
name:B,onClick:function(){E().onPricingGroupSelected(O().pricingGroup.pricingGroupId)}})))})))},"qf");
WRm.idomCompat=!0;var CuM=_.dG(function(g){var r=g.data;var E=g.stateFns;var B=function(){var M=E().getSelectedPricingOptions().map(function(Q){return Q.pricingOptionId}),u=E().getSelectedProductByGroupId(r().groupId);
if(!u)return _.FR(Error("Pj`"+r().groupId)),[];var l=E().getSelectedPricingGroupAttributesByGroupId(r().groupId);return ZNv(u.pricingOptions,l,M)},w=_.Zo(function(){return r().pricingOptionSelectorSectionHeader}),O=function(){return B().length>1};
return _.G("pdp-pricing-option-selector-view-model",null,_.G(_.p,{cond:function(){return!!w()&&O()},
then:function(){return _.G(_.Af,{data:w},{sectionHeaderViewModel:function(M){M=M.data;var u={};return _.G("div",{class:_.QY("ytPdpPricingOptionSelectorViewModelSectionHeader",(u.ytPdpPricingOptionSelectorViewModelFullBleed=!0,u.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,u))},_.G(_.rm,{data:M}))}})}}),_.G(_.p,{cond:O,
then:function(){return _.G("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.G(_.Ra,{each:B,keyBy:"INDEX"},function(M){return _.G("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.G("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.G(_.Af,{data:function(){return M().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:xx})),_.G("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.G(_.sv,{checked:function(){return M().isSelected},
onClick:function(){E().onPricingOptionSelected(M().pricingOption.pricingOptionId);var u=M().pricingOption.onSelectPricingOption;if(u=_.xP(u)){var l;(l=_.rM().resolve(_.Er))==null||l.resolveCommand(u)}}})))}))}}))},"rf");
CuM.idomCompat=!0;var KRA=_.dG(function(g){var r=g.data;var E=g.stateFns;return _.G("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.G(_.Af,{data:function(){var B,w;return(w=(B=E().getSelectedPricingOptions()[0])==null?void 0:B.primaryButton)!=null?w:r().emptyStateButton}},{buttonViewModel:_.MV}))},"sf");
KRA.idomCompat=!0;var xXA=_.dG(function(g){var r=g.stateFns;return _.G("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.G(_.Af,{data:function(){return r().getSelectedPricingOptions().flatMap(function(E){return E.summaryLines}).filter(function(E){return!!E})}},{containerLayoutViewModel:function(E){return _.G("div",{class:"ytPdpSummaryViewModelLineItem"},_.G(xx,{data:E.data}))}}))},"tf");
xXA.idomCompat=!0;var anM=_.dG(function(g){function r(e){var C=M();_.hC(_.C0("pdpStateEntity",C,{key:C,selectedPricingOptions:e}))}
var E=g.data;var B=g.internalScrolling;var w=g.stateFnsForTesting;var O=_.Zo(function(){return E().allProducts},[]),M=_.Zo(function(){return E().pdpStateEntityKey},""),u=_.QU(yL4,M),l=_.kB(function(){_.t5(!0);
var e;return(e=w==null?void 0:w())!=null?e:d0L(u,O,r)},void 0,"pjJzrd"),Q=_.Zo(function(){return E().body},[]),z=_.Zo(function(){return E().columnBreakHints},[]),k=function(){return E().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},H=function(){return k()||E().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},R=_.kB(function(){var e=_.iL(E().background),C;
if(e==null?0:(C=e.sources)==null?0:C.length){var X=X===void 0?!0:X;e=_.HvQ(void 0,e.sources,void 0,X,X?1E3:void 0,X?void 0:1E3)}else e=null;return e},void 0,"GO4GAe");
g=_.Rl({"--pdp-view-model-background":function(){return R()?"url("+R()+")":void 0}});
var A={};B=_.QY("ytPdpViewModelHost",(A.ytPdpViewModelHasBackground=function(){return H()||!!R()},A.ytPdpViewModelHasDarkBackground=H,A.ytPdpViewModelHasScrim=k,A.ytPdpViewModelInternalScrolling=_.Zo(B,!1),A));
var J=function(e){var C={};return _.QY("ytPdpViewModelItem",(C.ytPdpViewModelFullBleed=function(){return _.dgD(e())==="dividerViewModel"||_.dgD(e())==="sectionHeaderViewModel"},C.ytPdpViewModelNoVerticalPadding=function(){return _.dgD(e())==="sectionHeaderViewModel"},C))};
_.Jk(function(){var e=E().onStartCommand;if(e&&(e=_.xP(e))){var C;(C=_.rM().resolve(_.Er))==null||C.resolveCommand(e)}});
return _.G("pdp-view-model",{class:B,style:g},_.G("div",{class:"ytPdpViewModelColumnContainer"},_.G(_.Ra,{each:function(){return TFg(Q(),z())},
keyBy:"INDEX"},function(e){return _.G("div",{class:"ytPdpViewModelColumn"},_.G(_.Af,{data:e},{containerLayoutViewModel:function(C,X){C=C.data;return _.G("div",{class:J(function(){return e()[X()]})},_.G(xx,{data:C}))},
dividerViewModel:function(C,X){C=C.data;return _.G("div",{class:J(function(){return e()[X()]})},_.G(_.Yyz,{data:C}))},
pdpCardViewModel:function(C,X){C=C.data;return _.G("div",{class:J(function(){return e()[X()]})},_.G(FRM,{data:C,
stateFns:l}))},
pdpMastheadViewModel:function(C,X){C=C.data;return _.G("div",{class:J(function(){return e()[X()]})},_.G(e7L,{data:C,
isOverlay:H}))},
pdpPricingGroupSelectorViewModel:function(C,X){C=C.data;return _.G("div",{class:J(function(){return e()[X()]})},_.G(WRm,{data:C,
stateFns:l}))},
pdpPricingOptionSelectorViewModel:function(C,X){C=C.data;return _.G("div",{class:J(function(){return e()[X()]})},_.G(CuM,{data:C,
stateFns:l}))},
pdpPrimaryButtonViewModel:function(C,X){C=C.data;return _.G("div",{class:J(function(){return e()[X()]})},_.G(KRA,{data:C,
stateFns:l}))},
pdpSummaryViewModel:function(C,X){C=C.data;return _.G("div",{class:J(function(){return e()[X()]})},_.G(xXA,{data:C,
stateFns:l}))},
sectionHeaderViewModel:function(C,X){C=C.data;return _.G("div",{class:J(function(){return e()[X()]})},_.G(_.rm,{data:C}))}}))})))},"uf");
anM.idomCompat=!0;_.BK(anM,"pdp-view-model",{props:{data:_.cP,stateFnsForTesting:_.EB,internalScrolling:_.EB}});var X0D=_.dG(function(g){var r=g.data;var E=g.className;var B=_.QU(_.d0,function(){return r().flowStateEntityKey});
return _.G("ytm-premium-purchase-button-renderer",{class:_.QY("yt-premium-purchase-button-renderer",E)},_.G(_.Af,{data:function(){var w;return(w=_.n(B(),ryA))==null?void 0:w.primaryButtonOverride}},{buttonRenderer:function(w){return _.G(_.X9,{data:w.data,
className:E})},
buttonViewModel:function(w){return _.G(_.MV,{data:w.data,className:E})}}))},"vf");
X0D.idomCompat=!0;var NW$=_.dG(function(g){var r=g.data;g=g.className;var E=function(){return grA(r().style)},B=_.QY("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",E),w=_.QY("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",E);
return _.G("yt-flow-bottom-bar-renderer",{class:_.QY("yt-flow-bottom-bar-renderer",g,E)},_.G(_.Af,{data:function(){return r().secondaryButton}},{buttonRenderer:function(O){return _.G(_.X9,{data:O.data,
className:w})},
buttonViewModel:function(O){return _.G(_.MV,{data:O.data,className:w})},
premiumPurchaseButtonRenderer:function(O){return _.G(X0D,{data:O.data,className:w})}}),_.G(_.Af,{data:function(){return r().primaryButton}},{buttonRenderer:function(O){return _.G(_.X9,{data:O.data,
className:B})},
buttonViewModel:function(O){return _.G(_.MV,{data:O.data,className:B})},
premiumPurchaseButtonRenderer:function(O){return _.G(X0D,{data:O.data,className:B})}}))},"wf");
NW$.idomCompat=!0;_.BK(NW$,"yt-flow-bottom-bar-renderer",{props:{data:_.cP,className:_.cP}});var InA=_.dG(function(g){var r=_.QY(g.className,"ytOfferSummaryRendererHost");return _.G("yt-offer-summary-renderer",{class:r},_.G("div",{class:"ytOfferSummaryRendererTextContainer"},_.G("div",{class:"ytOfferSummaryRendererEyebrowText"},_.G(_.hf,{text:function(){return g.data().eyebrowText}})),_.G("div",{class:"ytOfferSummaryRendererTitle"},_.G(_.hf,{text:function(){return g.data().title}})),_.G("div",{class:"ytOfferSummaryRendererSubtitle"},_.G(_.hf,{text:function(){return g.data().subtitle}})),
_.G("div",{class:"ytOfferSummaryRendererFeatureListData"},_.G(_.Ra,{each:function(){var E;
return(E=g.data().featureListData)!=null?E:[]}},function(E){var B;
return _.G("div",{class:"ytOfferSummaryRendererFeatureList"},_.G(_.nh,{icon:(B=E.icon)==null?void 0:B.iconType,active:function(){return E.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(E.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.G("div",{class:"ytOfferSummaryRendererFeatureListText"},_.G(_.hf,{text:E.text,
className:function(){return E.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.G("div",{class:"ytOfferSummaryRendererDescription"},_.G(_.hf,{text:function(){return g.data().description}}))))},"xf");_.BK(_.dG(function(g){var r={};r=_.QY("ytOfferSummaryFlowStepRendererHost",(r.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=g.shouldDisableHeaderTopMargin,r));return _.G("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:r},_.G("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.G("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.G(_.hf,{text:function(){return g.data().header}})),_.G("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.G(_.hf,{text:function(){return g.data().subtitle}}))),_.G("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.G(_.Af,{data:function(){return g.data().offerSummary}},{offerSummaryRenderer:function(E){return _.G(InA,{data:E.data,
className:g.flowClassName})}})))},"yf"),"yt-offer-summary-flow-step-renderer",{props:{data:_.EB,
flowClassName:_.EB,flowStateEntityKey:_.EB,shouldDisableHeaderTopMargin:_.EB}});var mXL=_.dG(function(g){var r=g.data;var E=g.className;var B=g.flowStateEntityKey;var w=g.selectionStepStyle;g=_.HK(function(l){var Q=r(),z=B==null?void 0:B();l.target&&(l.stopPropagation(),l=z||"",z=_.d0(_.V7().getState(),l),Q=Object.assign({},z,{premiumPurchaseFlowState:{selectedOptionId:Q.optionId,primaryButtonOverride:Q.primaryButtonOverride}}),_.V7().dispatch(_.za("flowStateEntity",l,Q)));return!1});
var O=function(){return(B==null?void 0:B())||""},M=_.QU(_.d0,O);
_.Jk(function(){var l=r(),Q=O(),z=M();l.defaultSelected&&Q!==""&&l.primaryButtonOverride&&Er8(l.optionId||"",Q,l.primaryButtonOverride,z)});
var u={};return _.G("ytm-option-item-renderer",{"on:click":g,class:_.QY(E,"ytm-option-item-renderer",(u["ytm-option-item-renderer--lp2-style"]=function(){return(w==null?void 0:w())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},u))},_.G("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.G("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var l=r(),Q=O(),z=M();z=_.n(z,ryA);return(z?(z==null?void 0:z.selectedOptionId)||"":l.defaultSelected&&Q!==""?(l==null?void 0:l.optionId)||"":"")===r().optionId},
name:("input"+_.jY(_.Yh)).toString()})),_.G("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.G(_.p,{cond:function(){return r().eyebrowText},
then:function(){return _.G("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.G(_.hf,{text:function(){return r().eyebrowText}}))}}),_.G("div",{class:"ytm-option-item-renderer__option-item-title"},_.G(_.hf,{text:function(){return r().title}})),_.G("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.G(_.hf,{text:function(){return r().subtitle}})),_.G(_.p,{cond:function(){return r().featureListData},
then:function(){return _.G("div",{class:"ytm-option-item-renderer__feature-list-data"},_.G(_.Ra,{each:function(){return r().featureListData||[]}},function(l){var Q,z=(Q=l.icon)==null?void 0:Q.iconType;
a:switch(l.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":Q="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":Q="ytm-option-item-renderer__feature-list-icon-small";break a;default:Q="ytm-option-item-renderer__feature-list-icon-default"}return _.G("div",{class:"ytm-option-item-renderer__feature-list"},_.G(_.nh,{icon:z,className:Q,active:function(){return l.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.G("div",{class:"ytm-option-item-renderer__feature-list-text"},_.G(_.hf,{text:l.text,
className:function(){return l.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.G("div",{class:"ytm-option-item-renderer__option-item-description"},_.G(_.hf,{text:function(){return r().description}}))))},"zf");var ck5=_.dG(function(g){var r=g.data;var E=g.flowClassName;var B=g.flowStateEntityKey;var w=g.selectionStepStyle;return _.G("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.G("div",{class:"yt-option-section-renderer__option-section-header-section"},_.G("div",{class:"yt-option-section-renderer__option-section-header"},_.G(_.hf,{text:function(){return r().title}}),_.G(_.Af,{data:function(){return r().titleBadge}},{badgeViewModel:function(O){return _.G(_.ZL,
{data:O.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.G(_.p,{cond:function(){return r().subtitle},
then:function(){return _.G("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.G(_.hf,{text:function(){return r().subtitle}}))}}),_.G(_.p,{cond:function(){return r().featureListData},
then:function(O){return _.G("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.G(_.Ra,{each:O},function(M){var u;return _.G("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.G(_.nh,{icon:(u=M.icon)==null?void 0:u.iconType,active:function(){return M.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(M.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-green";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-small";default:return"yt-option-section-renderer__option-section-feature-item-icon-default"}}}),_.G("div",{class:"yt-option-section-renderer__option-section-feature-item-text"},_.G(_.hf,{text:M.text,
className:function(){return M.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"yt-option-section-renderer__option-section-feature-item-text-secondary":""}})))}))}}),_.G(_.p,{cond:function(){return r().secondaryTitle},
then:function(){return _.G("div",{class:"yt-option-section-renderer__option-section-secondary-title"},_.G(_.hf,{text:function(){return r().secondaryTitle}}))}}),_.G(_.Ra,{each:function(){return r().sectionDisclaimers||[]}},function(O){return _.G("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.G(_.hf,{text:O}))})),_.G(_.Af,{data:function(){return r().optionItems}},{optionItemRenderer:function(O){return _.G("div",{class:"yt-option-section-renderer__option-item"},_.G(mXL,{data:O.data,
className:E,flowStateEntityKey:B,selectionStepStyle:w}))}}),_.G(_.p,{cond:function(){return r().offerText},
then:function(){return _.G("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.G(_.hf,{text:function(){return r().offerText}}))}}))},"Af");
ck5.idomCompat=!0;var iag=_.dG(function(g){var r=g.data;var E=g.flowClassName;var B=g.flowStateEntityKey;g=g.isDesktop;var w=function(){var Q;return(Q=r().flowStateEntityKey)!=null?Q:B==null?void 0:B()},O=function(){return(w==null?void 0:w())||""},M=function(){return r().style},u=_.QU(_.d0,O);
_.Jk(function(){var Q=r(),z=O(),k=u();!_.n(k,ryA)&&Q.noPreselect&&z!==""&&Q.defaultButtonOverride&&Er8("default",z,Q.defaultButtonOverride,k)});
var l={};return _.G("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.QY("ytm-option-selection-flow-step-renderer",(l["ytm-option-selection-flow-step-renderer--desktop"]=g,l["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return r().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},l))},_.G("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"},
_.G("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.G(_.hf,{text:function(){return r().header}})),_.G("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.G(_.hf,{text:function(){return r().subtitle}}))),_.G(_.Af,{data:function(){return r().optionItems||[]}},{optionItemRenderer:function(Q){return _.G("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.G(mXL,{data:Q.data,
className:E,flowStateEntityKey:w,selectionStepStyle:M}))},
optionSectionRenderer:function(Q){return _.G("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.G(ck5,{data:Q.data,flowClassName:E,flowStateEntityKey:w,selectionStepStyle:M}))}}))},"Bf");
iag.idomCompat=!0;_.BK(iag,"yt-option-selection-flow-step-renderer",{props:{data:_.cP,flowClassName:_.cP,flowStateEntityKey:_.cP,isDesktop:_.cP}});var BYM,wTm;_.aD=_.dG(function(g){var r=_.y7(g,{type:1,disablePadding:!1,disablePrimaryButton:!1}),E=r.data,B=r.type;g=r.disablePadding;var w=r.disablePrimaryButton,O=r.onClickPrimaryButton,M=function(){return E().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},u=function(){return{disabled:w(),
state:w()?"disabled":"active"}},l=function(){return E().leadingLabel||E().trailingLabel};
r={};return _.G("yt-panel-footer-view-model",{class:_.QY("yt-panel-footer-view-model-wiz",(r["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return E().shouldHideDivider},r["yt-panel-footer-view-model-wiz--disable-padding"]=g,r))},_.G(_.p,{cond:l,
then:function(){var Q={},z={};return _.G("div",{class:_.QY("yt-panel-footer-view-model-wiz__text-row",(Q["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var k=E();return!(!k.leadingLabel&&!k.trailingLabel||!k.primaryButton&&!k.secondaryButton)},Q))},_.G(_.hf,{text:function(){return E().leadingLabel},
className:_.QY((z["yt-panel-footer-view-model-wiz--text-padding"]=l,z))}),_.G(_.hf,{text:function(){return E().trailingLabel}}))}}),_.G(_.p,{cond:M,
then:function(){var Q={};return _.G("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.G("div",{class:_.QY("yt-panel-footer-view-model-wiz__primary-button",(Q["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return E().secondaryButton},Q))},_.G(_.Af,{data:function(){return E().primaryButton}},{buttonViewModel:function(z){return _.G(_.MV,{data:z.data,
buttonOverrides:u,onClick:O})}})),_.G(_.Af,{data:function(){return E().secondaryButton}},{buttonViewModel:_.MV}))}}),_.G(_.p,{cond:function(){return!M()},
then:function(){var Q={},z={},k={};return _.G("div",{class:_.QY("yt-panel-footer-view-model-wiz__button-row",(Q["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===B()},Q))},_.G("div",{class:_.QY("yt-panel-footer-view-model-wiz__button-row--left-button",(z["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===B()},z["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!E().secondaryButton||0===B()},z["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===B()},z))},_.G(_.Af,{data:function(){return E().secondaryButton}},{buttonViewModel:_.MV})),_.G("div",{class:_.QY("yt-panel-footer-view-model-wiz__primary-button",(k["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===B()||1===B()},k["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===B()},k))},_.G(_.Af,{data:function(){return E().primaryButton}},{buttonViewModel:function(H){return _.G(_.MV,{data:H.data,
buttonOverrides:u,onClick:O})}})))}}))},"Cf");
_.aD.idomCompat=!0;_.LRt=_.dG(function(g){g=_.y7(g,{disablePadding:!1});var r=g.data,E=g.disablePadding;g=_.MLL(function(){return r().formId});
var B=g.onSubmit,w=g.isValid,O=g.isSubmitting;return _.G("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.G(_.Af,{data:function(){return r().panelFooter}},{panelFooterViewModel:function(M){return _.G(_.aD,{data:M.data,
onClickPrimaryButton:function(){B()},
disablePrimaryButton:function(){return!w()||O()},
disablePadding:E})}}))},"Df");_.BK(_.LRt,"yt-form-footer-view-model",{props:{data:_.cP,disablePadding:_.cP}});_.BK(_.dG(function(g){return _.G("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.G("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.G(_.p,{cond:function(){var r;return(r=g.data())==null?void 0:r.image},
then:function(r){return _.G(_.vw,{data:r,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.G("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.G(_.hf,{text:function(){var r;
return(r=g.data())==null?void 0:r.title}})),_.G("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.G(_.hf,{text:function(){var r;
return(r=g.data())==null?void 0:r.subtitle}})),_.G("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.G(_.Af,{data:function(){var r;
return(r=g.data())==null?void 0:r.viewTipsButton}},{buttonViewModel:_.MV}))))},"Ef"),"yt-contributor-zero-state-view-model",{props:{data:_.cP}});var VS$=_.dG(function(g){var r=_.QU(qRg,_.Zo(function(){var O;return(O=g.data())==null?void 0:O.noteFeedEntityKey},"")),E=_.QU(nYA,_.Zo(function(){var O;
return(O=g.data())==null?void 0:O.userRatingEntityKey},"")),B=_.Y("enable_user_rating_web"),w=function(){var O,M,u;
return((O=r())==null?0:O.contributorNote)?(M=r())==null?void 0:M.contributorNote:(u=g.data())==null?void 0:u.existingNote};
return B?_.G("yt-note-view-model",{class:"ytNoteViewModelHost"},_.G("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.G("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.G(_.p,{cond:function(){var O,M;return(O=g.data())==null?void 0:(M=O.noteData)==null?void 0:M.isPinned},
then:function(){return _.G(_.nh,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.G(_.p,{cond:function(){var O,M;return(O=g.data())==null?void 0:(M=O.noteData)==null?void 0:M.isPublished},
then:function(){return _.G(_.nh,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.G(_.Af,{data:function(){var O;
return(O=g.data())==null?void 0:O.metadata}},{contentMetadataViewModel:_.v4}),_.G("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var O,M;
return(M=_.n((O=g.data())==null?void 0:O.metadata,_.IcD))==null?void 0:M.delimiter}),_.G(_.hf,{text:function(){var O;
return(O=w())==null?void 0:O.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.G(_.Af,{data:function(){var O,M,u;return lqD((O=g.data())==null?void 0:O.noteData,(M=r())==null?void 0:(u=M.contributorNote)==null?void 0:u.deleteAction)}},{buttonViewModel:function(O){return _.G(_.MV,{data:O.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.G("div",{class:"ytNoteViewModelNoteContent"},_.G(_.hf,{text:function(){var O;
return(O=w())==null?void 0:O.text}})),_.G(_.p,{cond:function(){var O,M;
return!((O=g.data())==null?0:(M=O.noteData)==null?0:M.isPinned)},
then:function(){return _.G(_.p,{cond:function(){var O,M;return!!E()&&!!ur5((O=E())==null?void 0:O.helpfulnessValue,(M=g.data())==null?void 0:M.noteData)},
then:function(){return _.G("div",{class:"ytNoteViewModelUserRatingContainer"},_.G(_.hf,{text:function(){var O,M;return ur5((O=E())==null?void 0:O.helpfulnessValue,(M=g.data())==null?void 0:M.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.G(_.Af,{data:function(){var O;return(O=g.data())==null?void 0:O.userRatingButton}},{buttonViewModel:function(O){return _.G(_.MV,{data:O.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}})):_.G("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.G("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.G("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.G(_.p,{cond:function(){var O,M;return(O=g.data())==null?void 0:(M=O.noteData)==null?void 0:M.isPinned},
then:function(){return _.G(_.nh,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.G(_.p,{cond:function(){var O,M;return(O=g.data())==null?void 0:(M=O.noteData)==null?void 0:M.isPublished},
then:function(){return _.G(_.nh,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.G(_.p,{cond:function(){return B},
then:function(){return _.G(_.Af,{data:function(){var O;return(O=g.data())==null?void 0:O.metadata}},{contentMetadataViewModel:function(O){return _.G(_.v4,{data:O.data})}})}}),_.G(_.hf,{text:function(){var O,M;
return(O=g.data())==null?void 0:(M=O.noteData)==null?void 0:M.headerText}}),_.G("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.G(_.hf,{text:function(){var O,M;
return(O=g.data())==null?void 0:(M=O.noteData)==null?void 0:M.delimiter}})),_.G(_.hf,{text:function(){var O,M;
return(O=r())==null?void 0:(M=O.contributorNote)==null?void 0:M.publishedTimeText}})),_.G(_.Af,{data:function(){var O,M,u;
return lqD((O=g.data())==null?void 0:O.noteData,(M=r())==null?void 0:(u=M.contributorNote)==null?void 0:u.deleteAction)}},{buttonViewModel:function(O){return _.G(_.MV,{data:O.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.G("div",{class:"ytNoteViewModelNoteContent"},_.G(_.hf,{text:function(){var O,M;
return(O=r())==null?void 0:(M=O.contributorNote)==null?void 0:M.text}})))},"Ff");
VS$.idomCompat=!0;_.BK(VS$,"yt-note-view-model",{props:{data:_.cP}});var XJ=_.dG(function(g){var r=_.y7(g,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),E=r.label,B=r.text,w=r.placeholder,O=r.hint;g=r.rows;var M=r.overflowStyle,u=r.outline,l=r.disabled,Q=r.disableNewLines,z=r.characterLimit,k=r.validation,H=r.onInput,R=_.VI("textarea");r=_.U(_.Y3(function(){return B()}));
var A=r.next().value,J=r.next().value;r=_.U(_.Dk(!1,void 0,"fXvinf"));var e=r.next().value,C=r.next().value,X=function(){C(!0)},Z=function(){C(!1)};
_.Jk(function(){var XY=R.value,xc=M(),rg=A();xc==="expand-vertically"&&rg&&Dd6(XY);R.value.addEventListener("focusin",X);R.value.addEventListener("focusout",Z)});
_.J5(function(){R.value.removeEventListener("focusin",X);R.value.removeEventListener("focusout",Z)});
var c=function(){var XY;return(XY=k())==null?void 0:XY.validate(A())},h=function(){return z()&&!c()&&A().length>z().maxChars},y=function(){return!!c()||h()};
r=_.HK(function(XY){if(!XY.currentTarget)return!1;XY=XY.currentTarget;J(XY.value);M()==="expand-vertically"&&Dd6(XY);H==null||H(XY.value);return!0});
var OD=_.HK(function(XY){Q()&&XY.key==="Enter"&&XY.preventDefault();return!1}),uB=_.HK(function(){R.value.focus()}),zS=function(){return w()||E()},jV={},PJ={},At={};
return _.G("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.G("div",{class:_.QY("ytStandardsTextareaShapeTextareaContainer",(jV.ytStandardsTextareaShapeTextareaContainerOutline=u,jV.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=l,jV.ytStandardsTextareaShapeTextareaContainerOutlineError=y,jV)),"on:click":uB},_.G("label",{class:_.QY("ytStandardsTextareaShapeLabel",(PJ.ytStandardsTextareaShapeLabelFocused=e,PJ.ytStandardsTextareaShapeLabelDisabled=l,PJ.ytStandardsTextareaShapeLabelError=
function(){return y()&&!l()},PJ.ytStandardsTextareaShapeLabelHidden=function(){return!e()&&!A()&&!!zS()},PJ))},E),_.G("div",{class:_.QY("ytStandardsTextareaShapePlaceholder",(At.ytStandardsTextareaShapePlaceholderVisible=function(){return!e()&&!A()},At)),
"aria-hidden":"true"},zS),_.G("textarea",{el:R,class:"ytStandardsTextareaShapeTextarea",rows:g,disabled:l,placeholder:zS,"on:input":r,"on:keydown":OD},A)),_.G(_.p,{cond:function(){return O()&&!y()},
then:function(){var XY={};return _.G("div",{class:_.QY("ytStandardsTextareaShapeHint",(XY.ytStandardsTextareaShapeHintDisabled=l,XY))},_.G("div",{class:"ytStandardsTextareaShapeHintHintMessage"},O))}}),_.G(_.p,{cond:c,
then:function(){return _.G(h7t,{disabled:l},_.G("div",{class:"ytStandardsTextareaShapeErrorMessage"},c))}}),_.G(_.p,{cond:z,
then:function(XY){return _.G(_.p,{cond:h,then:function(){return _.G(h7t,{disabled:l},_.G("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return XY().errorMessage}),_.G("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return A().length+"/"+XY().maxChars}))}})}}))},"Gf");
XJ.idomCompat={callbacks:{onInput:!0}};var h7t=_.dG(function(g){var r={};return _.G("div",{class:_.QY("ytStandardsTextareaShapeError",(r.ytStandardsTextareaShapeErrorDisabled=g.disabled,r)),role:"alert"},_.G(_.nh,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),g.children)},"Hf");_.Zag=_.dG(function(g){var r=g.data;return _.G("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.G(XJ,{text:g.text,label:function(){var E;return(E=r().contentProperties)==null?void 0:E.labelText},
placeholder:function(){var E;return(E=r().contentProperties)==null?void 0:E.placeholderText},
hint:function(){var E;return(E=r().contentProperties)==null?void 0:E.hintText},
outline:function(){var E;return!((E=r().displayProperties)==null?0:E.hideBorder)},
overflowStyle:function(){var E;return((E=r().displayProperties)==null?0:E.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:g.disabled,disableNewLines:function(){var E;return(E=r().displayProperties)==null?void 0:E.disableNewLines},
onInput:g.onInput,characterLimit:g.characterLimit,validation:g.validation,rows:function(){var E;return(E=r().displayProperties)==null?void 0:E.rows}}))},"If");_.ykg=_.dG(function(g){var r=g.data;return _.G("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.G(XJ,{text:g.text,label:function(){var E;return(E=r().contentProperties)==null?void 0:E.labelText},
placeholder:function(){var E;return(E=r().contentProperties)==null?void 0:E.placeholderText},
hint:function(){var E;return(E=r().contentProperties)==null?void 0:E.hintText},
outline:function(){var E;return!((E=r().displayProperties)==null?0:E.hideBorder)},
overflowStyle:function(){var E;return((E=r().displayProperties)==null?0:E.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var E;return(E=r().displayProperties)==null?void 0:E.disableNewLines},
onInput:g.onInput,characterLimit:g.characterLimit,validation:g.validation,rows:function(){var E;return(E=r().displayProperties)==null?void 0:E.rows}}))},"Jf");var vFz=_.dG(function(g){var r=_.U(_.Y3(function(){var zS,jV;return((zS=g.data().structuredContextNoteFormSchema)==null?0:(jV=zS.initialValues)==null?0:jV.noteBody)?g.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),E=r.next().value,B=r.next().value;
r=_.U(_.Y3(function(){g.data();return!1}));
var w=r.next().value,O=r.next().value;r=_.U(_.Y3(function(){g.data();return!1}));
var M=r.next().value,u=r.next().value;r=_.U(_.Y3(function(){var zS,jV;return((zS=g.data().structuredContextNoteFormSchema)==null?0:(jV=zS.initialValues)==null?0:jV.timestamp)?g.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var l=r.next().value,Q=r.next().value;r=_.U(_.Y3(function(){g.data();return!1}));
var z=r.next().value,k=r.next().value;r=_.U(_.Y3(function(){var zS,jV;return((zS=g.data().structuredContextNoteFormSchema)==null?0:(jV=zS.initialValues)==null?0:jV.sources)?[g.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var H=r.next().value,R=r.next().value;r=_.U(_.Y3(function(){g.data();return!1}));
var A=r.next().value,J=r.next().value;r=_.U(_.Y3(function(){return!1}));
var e=r.next().value,C=r.next().value;_.Jk(function(){var zS;_.UdA((zS=g.data().structuredContextNoteFormSchema)==null?void 0:zS.id,{isSubmitting:e,onSubmit:function(){C(!0);var jV=RFz(E(),l(),H(),g.data()),PJ=_.rM().resolve(_.Er);jV&&PJ&&PJ.resolveCommand(jV,{commandController:{onSuccess:function(){C(!1)}}})},
isValid:function(){return w()&&!M()&&!z()&&!A()}})});
var X=function(zS){if(zS!==void 0&&(B(zS),!w()&&zS.length>0&&O(!0),w())){var jV=QOm(g.data());if(jV){var PJ=jV.minLength;jV=jV.maxLength;PJ&&zS.length<PJ?u(!0):jV&&zS.length>jV?u(!0):u(!1)}}},Z=function(zS){if(zS!==void 0){Q(zS);
if(zS.length>0){var jV,PJ,At,XY,xc=kPg((jV=g.data())==null?void 0:(PJ=jV.structuredContextNoteFormSchema)==null?void 0:(At=PJ.fieldSchemas)==null?void 0:(XY=At.timestamp)==null?void 0:XY.validationSchema);if(xc&&(jV=xc.regex)&&!(new RegExp(jV)).test(zS)){k(!0);return}}k(!1)}},c=function(zS){if(zS!==void 0){var jV=zS.split(/[ \n]/).map(function(PJ){return PJ.trim()});
R(jV);if(zS.length>0)for(zS=_.U(jV),jV=zS.next();!jV.done;jV=zS.next())if(!YRM(jV.value)){J(!0);return}J(!1)}},h=function(){return{validate:function(zS){if(w()){var jV=QOm(g.data());
if(jV){var PJ=jV.minLength;jV=jV.translations;if(PJ&&zS.length<PJ)return jV==null?void 0:jV.minLengthErrorMessage}}}}},y=function(){var zS=QOm(g.data()),jV=zS==null?void 0:zS.maxLength,PJ;
zS=zS==null?void 0:(PJ=zS.translations)==null?void 0:PJ.maxLengthErrorMessage;if(jV&&zS)return{maxChars:jV,errorMessage:zS}},OD=function(){return{validate:function(zS){if(zS){var jV,PJ,At,XY,xc=kPg((jV=g.data())==null?void 0:(PJ=jV.structuredContextNoteFormSchema)==null?void 0:(At=PJ.fieldSchemas)==null?void 0:(XY=At.timestamp)==null?void 0:XY.validationSchema);
if(xc&&(jV=xc.regex,xc=xc.translations,jV&&!(new RegExp(jV)).test(zS)))return xc==null?void 0:xc.regexErrorMessage}}}},uB=function(){return{validate:function(zS){if(zS){var jV,PJ,At,XY,xc=pT$((jV=g.data())==null?void 0:(PJ=jV.structuredContextNoteFormSchema)==null?void 0:(At=PJ.fieldSchemas)==null?void 0:(XY=At.sources)==null?void 0:XY.validationSchema);
if(xc&&(jV=xc.translations,jV==null?0:jV.selectedErrorMessage))for(zS=zS.split(/[ \n]/).map(function(rg){return rg.trim()}),zS=_.U(zS),PJ=zS.next();!PJ.done;PJ=zS.next())if(!YRM(PJ.value))return zS=void 0,(zS=jV)==null?void 0:zS.selectedErrorMessage}}}};
return _.G("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.G("div",{class:"ytStructuredContextNoteViewModelTextField"},_.G(_.Af,{data:function(){var zS;return(zS=g.data())==null?void 0:zS.noteContents}},{textFormFieldViewModel:function(zS){return _.G(_.ykg,{data:zS.data,
onInput:X,validation:h,characterLimit:y})},
textFieldViewModel:function(zS){return _.G(_.Zag,{data:zS.data,onInput:X,validation:h,characterLimit:y})}})),_.G("div",{class:"ytStructuredContextNoteViewModelTextField"},_.G(_.Af,{data:function(){var zS;
return(zS=g.data())==null?void 0:zS.noteTimestamp}},{textFormFieldViewModel:function(zS){return _.G(_.ykg,{data:zS.data,
onInput:Z,validation:OD})},
textFieldViewModel:function(zS){return _.G(_.Zag,{data:zS.data,onInput:Z,validation:OD})}})),_.G("div",{class:"ytStructuredContextNoteViewModelTextField"},_.G(_.Af,{data:function(){var zS;
return(zS=g.data())==null?void 0:zS.noteSources}},{textFormFieldViewModel:function(zS){return _.G(_.ykg,{data:zS.data,
onInput:c,validation:uB})},
textFieldViewModel:function(zS){return _.G(_.Zag,{data:zS.data,onInput:c,validation:uB})}})))},"Kf");
vFz.idomCompat=!0;_.BK(vFz,"yt-structured-context-note-view-model",{props:{data:_.cP}});var dXz=_.dG(function(g){var r=_.U(_.Y3(function(){var O;if((O=g.controlled)==null?0:O.call(g))return[];var M;return(((M=g.data())==null?void 0:M.chips)||[]).map(function(u){u=_.n(u,_.KY);if(u==null?0:u.selected)return nrA(u.chipValue)}).filter(function(u){return u!==void 0})})),E=r.next().value,B=r.next().value,w=function(O){var M=nrA(O.chipValue);
if(M!==void 0){var u;if((u=g.controlled)==null?0:u.call(g))return void g.controlled().onTap(M);O=E().includes(M)?[].concat(_.jW(E().filter(function(Q){return Q!==M}))):[].concat(_.jW(E()),[M]);
B(O);var l;if((l=g.uncontrolled)==null?0:l.call(g))g.uncontrolled().onUpdate(O)}};
return _.G("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.G(_.Ra,{each:function(){return g.data().chips||[]}},function(O){return _.G("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.G(_.Rk,{data:function(){return _.n(O,_.KY)},
selected:function(){var M;if(M=_.n(O,_.KY)){var u=nrA(M.chipValue);if(u!==void 0){var l;M=((l=g.controlled)==null?0:l.call(g))?g.controlled().selectedValues.includes(u):E().includes(u)}else M=void 0}else M=!1;return M},
callback:w}))}))},"Lf");var TWt=_.dG(function(g){var r=g.data;var E=function(){var u;return((u=r())==null?void 0:u.flowStateKey)||""},B=_.QU(_.d0,E),w=function(){var u;
return(u=_.n(B(),GWL))==null?void 0:u.chips},O=function(u){if(u!==void 0){var l=w()||[];
l=l.find(function(Q){return Q===u})?l.filter(function(Q){return Q!==u}):[].concat(_.jW(l),[u]);
l=Object.assign({},B(),{feedbackFormFlowState:Object.assign({},_.n(B(),GWL),{chips:l})});_.hC(_.za("flowStateEntity",E(),l))}},M=function(){var u;
return _.n((u=r())==null?void 0:u.inputBox,QBg)};
g=_.QW(function(u){var l=M();l=!(l==null?0:l.maxChars)||u.length<=l.maxChars;u=Object.assign({},B(),{feedbackFormFlowState:Object.assign({},_.n(B(),GWL),{detail:u}),abuseReportFlowState:Object.assign({},_.n(B(),qx),{navigationEnabled:l})});_.hC(_.za("flowStateEntity",E(),u))},150);
return _.G("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.G("div",{class:"ytFeedbackFormViewModelChips"},_.G(_.Af,{data:function(){var u;return(u=r())==null?void 0:u.chipSelection}},{chipSelectionFormFieldViewModel:function(u){return _.G(dXz,{data:u.data,
controlled:function(){return{selectedValues:w()||[],onTap:O}}})}})),_.G("div",{class:"ytFeedbackFormViewModelInputBox"},_.G(XJ,{text:function(){var u;
return(u=_.n(B(),GWL))==null?void 0:u.detail},
placeholder:function(){var u;return((u=M())==null?void 0:u.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var u=M();if(u&&u.maxChars)return{maxChars:u.maxChars,errorMessage:u.maxCharsExceededErrorMessage||""}},
onInput:g})),_.G("div",{class:"ytFeedbackFormViewModelFooterText"},_.G(_.hf,{text:function(){return r().footerText}})))},"Mf");
TWt.idomCompat=!0;_.BK(TWt,"yt-feedback-form-view-model",{props:{data:_.cP}});var gAM=_.dG(function(g){var r=g.data;var E=function(){return r().flowStateKey||""},B=_.QU(RE8,E),w=function(){return _.n(B(),qx)},O=function(){if(_.Y("enable_gff_accessibility_fix")){var M=!0,u;
if((u=w())==null?0:u.navigationEnabled){var l;_.I3((l=w())==null?void 0:l.navigationCommand);M=!1}u=Object.assign({},B(),{abuseReportFlowState:Object.assign({},w(),{isReportFormDirty:M})});_.hC(_.za("flowStateEntity",E(),u))}else _.I3((M=w())==null?void 0:M.navigationCommand)};
return _.G("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.G("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.G(_.Af,{data:function(){return r().cancelButton}},{buttonViewModel:function(M){return _.G(_.MV,{data:M.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:O})}}),_.G(_.Af,{data:function(){var M;
if(r().navButton){var u=Object;var l=u.assign,Q=_.n(r().navButton,_.nm),z=((M=w())==null?0:M.navigationEnabled)||_.Y("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",k,H;M=_.n((k=w())==null?void 0:k.navigationCommand,_.KW);k=(H=_.n(M,_.II))==null?void 0:H.url;u={buttonViewModel:l.call(u,{},Q,{state:z,iconName:k?"OPEN_IN_NEW":""})}}else u=void 0;return u}},{buttonViewModel:function(M){return _.G(_.MV,{data:M.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:O})}})))},"Nf");
gAM.idomCompat=!0;_.BK(gAM,"yt-report-form-bottom-bar-view-model",{props:{data:_.cP}});var rsM=_.dG(function(g){var r=g.nextStep;return _.G("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.G("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.G(_.nh,{icon:function(){return r().iconName||""}})),_.G("div",null,_.G(_.hf,{text:function(){return r().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Of"),EAA=_.dG(function(g){var r=g.data;
var E,B=(E=_.rM().resolve(_.gM(_.Vy)))==null?void 0:E(),w=_.QU(_.d0,function(){return r().flowStateKey||""});
return _.G("yt-report-form-confirmation-page-view-model",{class:function(){var O;return((O=_.n(w(),qx))==null?void 0:O.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.G("div",{class:function(){var O;
return((O=_.n(w(),qx))==null?void 0:O.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.G(_.vw,{data:function(){return B&&r().imageDark?r().imageDark:r().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.G("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.G("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return r().confirmationHeader}),_.G("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.G(_.hf,{text:function(){return r().confirmationText}})),_.G("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.G(_.hf,{text:function(){return r().lawEnforcementText}})),
_.G("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return r().whatToExpectHeader}),_.G(_.p,{cond:function(){return r().nextSteps},
then:function(O){return _.G("div",null,_.G(_.Ra,{each:O},function(M){return _.G(rsM,{nextStep:M})}))}}),_.G(_.p,{cond:function(){return r().legalReportText},
then:function(O){return _.G("div",null,_.G(_.hf,{text:O,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Pf");
EAA.idomCompat=!0;_.BK(EAA,"yt-report-form-confirmation-page-view-model",{props:{data:_.cP}});var BMF=_.dG(function(g){var r=g.data;var E=function(){var O;return((O=_.n(r().inputBox,QBg))==null?void 0:O.maxChars)||500},B=function(){return r().flowStateKey||""},w=_.QU(_.d0,B);
g=_.QW(function(O){O=Object.assign({},w(),{flowFormState:{isValid:O.length<=E()},abuseReportFlowState:{userComments:O,navigationEnabled:!(O.length>E()),isReportFormDirty:!0}});_.V7().dispatch(_.C0("flowStateEntity",B(),O))},150);
_.Jk(function(){var O=Object.assign({},w(),{flowFormState:{isValid:!0}});_.V7().dispatch(_.C0("flowStateEntity",B(),O))});
return _.G("yt-report-form-details-page-view-model",{class:function(){var O;return((O=_.n(w(),qx))==null?void 0:O.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.G("h1",{class:function(){var O;
return((O=_.n(w(),qx))==null?void 0:O.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return r().detailsPageHeader}),_.G("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.G(_.hf,{text:function(){return r().bodyText}})),_.G("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.G(XJ,{label:function(){var O;
return((O=_.n(r().inputBox,QBg))==null?void 0:O.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var O;return{errorMessage:((O=_.n(r().inputBox,QBg))==null?void 0:O.maxCharsExceededErrorMessage)||"",maxChars:E()}},
onInput:g})))},"Qf");
BMF.idomCompat=!0;_.BK(BMF,"yt-report-form-details-page-view-model",{props:{data:_.cP}});var wNt=_.dG(function(g){var r=g.data;var E=g.selectedKey;var B=g.onSelected;var w=g.groupName;var O=function(){return r().text},M=function(){return r().attributedText},u=function(){return r().subtext},l=function(){return r().attributedSubtext},Q=_.G("div",{class:"ytRadioButtonItemViewModelLabel"},_.G(_.p,{cond:O,
then:function(){return _.G("div",null,O)}}),_.G(_.p,{cond:M,
then:function(){return _.G(_.hf,{text:M})}}),_.G(_.p,{cond:u,
then:function(){return _.G("div",{class:"ytRadioButtonItemViewModelSubText"},u)}}),_.G(_.p,{cond:l,
then:function(){return _.G("div",{class:"ytRadioButtonItemViewModelSubText"},_.G(_.hf,{text:l}))}})),z=function(){if(M()){var H;
return(H=M())==null?void 0:H.content}return O()},k=function(){if(l()){var H;
return(H=l())==null?void 0:H.content}return u()};
g={};return _.G("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.G(_.sv,{name:w,checked:function(){return!(E==null||!E()||r().key!==(E==null?void 0:E()))},
onChange:function(H){B==null||B(H.target,r(),w==null?void 0:w())},
labelRenderable:function(){return Q},
ariaLabel:function(){return k()?z()+", "+k():z()},
className:_.QY((g.ytRadioButtonItemViewModelSubTitle=function(){return!!r().subtext},g))}))},"Rf");_.Sr6=_.dG(function(g){var r=g.data;var E=g.onSelected;var B=g.selectedKey;var w=g.groupName;var O=function(){return(w==null?void 0:w())||r().key};
return _.G("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost",tabindex:0},_.G("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.G(_.Af,{data:function(){return r().radioButtons}},{radioButtonItemViewModel:function(M){return _.G(wNt,{data:M.data,
onSelected:E,selectedKey:B,groupName:O})}})))},"Sf");var O3z=_.dG(function(g){var r=g.data;var E=_.hn("div"),B=function(){return r().flowStateKey||""},w=_.QU(_.d0,B),O=function(){return _.n(w(),qx)};
_.bQ(function(){var M,u;if(((M=O())==null?0:M.isReportFormDirty)&&((u=O())==null||!u.navigationEnabled)&&_.Y("enable_gff_accessibility_fix")){var l;if(((l=O())==null?void 0:l.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var Q;(Q=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||Q.scrollIntoView()}else{var z;(z=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||z.scrollIntoView()}}},"VvP2Ne");
return _.G("yt-report-form-reason-select-page-view-model",{class:function(){var M;return((M=O())==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.G("h1",{class:function(){var M;
return((M=O())==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return r().pageHeader}),_.G("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.G(_.hf,{text:function(){return r().bodyText}})),_.G("div",{class:function(){var M;
return((M=O())==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.G(_.p,{cond:function(){var M,u;
return((M=O())==null?void 0:M.isReportFormDirty)&&!((u=O())==null?0:u.navigationEnabled)&&_.Y("enable_gff_accessibility_fix")},
then:function(){return _.G("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:E},_.G(_.nh,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.G("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return r().emptyReasonSelectErrorMessage}))}}),_.G(_.Sr6,{data:function(){return _.n(r().radioButtonGroup,_.sBm)},
onSelected:function(M,u){M=Object.assign({},w(),{abuseReportFlowState:Object.assign({},O(),{reasonKey:u.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:u.command})});_.hC(_.za("flowStateEntity",B(),M))},
selectedKey:function(){var M;return(M=O())==null?void 0:M.reasonKey},
groupName:"report-form-reason-select-page"})))},"Tf");
O3z.idomCompat=!0;_.BK(O3z,"yt-report-form-reason-select-page-view-model",{props:{data:_.cP}});var Ue5=_.dG(function(g){var r=g.data;var E,B=(E=_.rM().resolve(_.gM(_.Vy)))==null?void 0:E();return _.G("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.G("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.G(_.vw,{data:function(){return B&&r().imageDark?r().imageDark:r().image},
alt:""})),_.G("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.G("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return r().header}),_.G(_.hf,{text:function(){return r().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"Uf");
Ue5.idomCompat=!0;_.BK(Ue5,"yt-report-form-sign-in-page-view-model",{props:{data:_.cP}});_.BK(_.dG(function(g){var r=g.data;var E=function(){return r().titleSuperscript},B=function(){return r().answersShelf},w=function(){return r().videoShelf},O=function(){var J;
return(J=r().textInputPlaceholder)==null?void 0:J.content},M=function(){return r().showOpenTextInput&&!_.Y("web_hide_explore_hub_until_user_navigates_back_to_home")},u=function(){var J;
return(J=r().textInputValue)==null?void 0:J.content},l=_.hn("input");
_.jS(function(){M()&&u()&&l.value&&(l.value.value=u())});
var Q=function(J){J=J.target.value.trim();var e=r().onUpdateText;e&&_.I3(e,{form:{userQuery:J}});r().userQuery=J},z=_.QW(function(J){Q(J)},150),k=_.HK(function(J){z(J);
return!1}),H=_.HK(function(J){J.key==="Enter"&&(Q(J),(J=r().onNextStepCommand)&&_.I3(J,{forceClickLogging:!0}));
return!1}),R=_.VI("yt-talk-to-recs-view-model"),A=function(){if(_.Y("web_hide_explore_hub_until_user_navigates_back_to_home")){var J,e,C;
(C=(e=(J=R.value)==null?void 0:J.closest("ytd-flow-step-renderer"))==null?void 0:e.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||C.click()}};
return _.G("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:R},_.G("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.G(_.Af,{data:function(){return r().topCornerButton}},{buttonViewModel:_.MV})),_.G("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.G("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.G(_.hf,{text:function(){return r().title}}),_.G(_.p,{cond:E,
then:function(){return _.G("sup",{class:"ytwTalkToRecsSuperScript"},_.G(_.hf,{text:E}))}})),_.G("div",{class:"ytwTalkToRecsSubtitle"},_.G(_.hf,{text:function(){return r().subtitle}})),_.G("div",{class:"ytwTalkToRecsResultsShelf"},_.G(_.p,{cond:B,
then:function(){return _.G(_.Af,{data:B},{chipsShelfViewModel:function(J){return _.G("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.G(_.bAm,{data:J.data,callback:A,enableSingleChipSelection:!0}))}})}}),_.G(_.p,{cond:w,
then:function(){return _.G(_.Af,{data:w},{horizontalShelfViewModel:function(J){return _.G("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.G(_.jM,{data:J.data}))}})}})),_.G(_.p,{cond:M,
then:function(){return _.G("div",{class:"ytwTalkToRecsUserInputBox"},_.G("input",{el:l,type:"text",class:"ytwTalkToRecsTextInput",placeholder:O,value:function(){return r().userQuery},
"on:input":k,"on:keyup":H,maxlength:200}))}})))},"Vf"),"yt-talk-to-recs-view-model",{props:{data:_.cP}});var sOz={sources:[{clientResource:{imageName:"CHECK"}}]};_.Mgz=_.dG(function(g){var r=_.VI("div");g=_.y7(g,{error:void 0});var E=g.data,B=g.error,w=g.onSelected;g=_.U(_.Y3(function(){return jO8(E())}));
var O=g.next().value,M=g.next().value;PDM(E,function(H){M(H);var R,A,J=$dt((R=E().options)==null?void 0:(A=R[H])==null?void 0:A.value,E().type);w==null||w(J);r.value.focus()});
g=_.HK(function(){if(!E().disabled){var H=E(),R=O(),A=r.value;H.options&&(H=fqM(H.options,R,H.label),_.rM().resolve(_.Hh).openSheet({viewModel:H},A))}});
var u=_.IrS(),l=function(){return!!B()},Q=function(){return!!E().disabled},z={};
z=_.QY("ytDropdownViewModelDropdownContainer",(z.ytDropdownViewModelDropdownContainerErrorBorder=l,z.ytDropdownViewModelDropdownContainerDisabled=Q,z));var k={};return _.G("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.G("div",{class:z,"on:click":g,el:r,role:"combobox",tabindex:0,"on:keydown":u,"aria-invalid":l,"aria-disabled":Q,"aria-describedby":function(){return l()?"dropdown-view-model-error":void 0}},_.G("div",{class:"ytDropdownViewModelText"},AyF(E,l,O),b5D(E,O)),_.G("div",{class:_.QY("ytDropdownViewModelChevronDown",
(k.ytDropdownViewModelChevronDownDisabled=Q,k))},_.G(_.nh,{icon:"CHEVRON_DOWN"}))),JyM(E,B))},"Wf");_.BK(_.dG(function(g){var r=g.data;var E=function(w){var O=FKA(r());O.videoMetadata||(O.videoMetadata={});O.videoMetadata.sponsorshipsMetadata||(O.videoMetadata.sponsorshipsMetadata={});O.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(w)},B=function(w){var O=FKA(r());
O.scheduledRedirectMetadata||(O.scheduledRedirectMetadata={});O.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(w)};
return _.G("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.G("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.G("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.G(_.hf,{text:function(){return r().title}}),_.G(_.nh,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.G(_.hf,{text:function(){return r().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.G(_.Af,{data:function(){return r().tierChoices}},{dropdownViewModel:function(w){return _.G("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.G(_.Mgz,{data:w.data,
onSelected:E}))}}),_.G(_.Af,{data:function(){return r().startTimeChoices}},{dropdownViewModel:function(w){return _.G("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.G(_.Mgz,{data:w.data,
onSelected:B}))}}),_.G(_.hf,{text:function(){return r().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.G("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.G(_.Af,{data:function(){return r().scheduleButton}},{panelFooterViewModel:_.aD})))},"Xf"),"ytfz-schedule-fanzone-view-model",{props:{data:_.cP}});_.BK(_.dG(function(g){var r=g.data;g=g.className===void 0?"":g.className;var E=_.QU(RE8,function(){return r().flowStateEntityKey||""}),B={};
B=_.QY("ytFlowBottomBarViewModelFlowBottomBarButtons",(B.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return r().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||r().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},B));
var w={},O=_.QY("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",B,(w.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return r().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},w.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return r().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},w));
w={};var M=_.QY("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",B,(w.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return r().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},w.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return r().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},w));
B={};B=_.QY("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(B.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return r().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},B.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return r().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},B.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return r().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
B));
g=_.QY("ytFlowBottomBarViewModelHost",g);return _.G("yt-flow-bottom-bar-view-model",{class:g},_.G(_.p,{cond:function(){var u;return(u=r())==null?void 0:u.textSection},
then:function(u){return _.G("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.G(_.hf,{text:u}))}}),_.G("div",{class:B},_.G(_.Af,{data:function(){return r().secondaryButton}},{buttonViewModel:function(u){return _.G(_.MV,{data:u.data,
className:M})}}),_.G(_.Af,{data:function(){return r().primaryButton}},{buttonViewModel:function(u){return _.G(_.MV,{data:u.data,
className:O,buttonOverrides:function(){var l;return{disabled:!((l=E())==null||!l.primaryButtonDisabled)}}})}})))},"Yf"),"yt-flow-bottom-bar-view-model",{props:{data:_.cP,
className:_.EB}});var qrM="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),Nx=function(){var g=_.a.apply(this,arguments)||this;g.enableScrollingFix=!0;g.bottomBar=!1;g.hideBottomBar=!1;g.fitContent=!1;return g};
_.f(Nx,_.a);_.S=Nx.prototype;_.S.ready=function(){_.Y("enable_pdp_icon_prefetch")&&_.oBg(_.rM().resolve(_.UE),0,qrM)};
_.S.focus=function(g){this.topBar?_.hp(this.topBar,g):this.paperDialog.focus(g)};
_.S.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$17025_scroller&&(this.JSC$17025_scroller.dialogElement=this.paperDialog,this.JSC$17025_scroller.attached&&typeof this.JSC$17025_scroller.attached==="function"&&this.JSC$17025_scroller.attached())};
_.S.onDataChanged=function(){var g;this.fitContent=!((g=this.data)==null||!g.fitContent);var r;this.bottomBar=!((r=this.data)==null||!r.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.S.onProgressChanged=function(){var g,r,E=((r=(g=this.data)==null?void 0:g.progress)!=null?r:0)*100;this.progressElement.style.width=E+"%"};
_.S.isProgressHidden=function(){var g;return!((g=this.data)==null?0:g.progress)};
_.S.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",
pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",
structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",
shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(g){return _.Y("enable_wiz_next_lp2_msof")&&g&&!g.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.hx.Object.defineProperties(Nx.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var g;return _.Y("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.n((g=this.data)==null?void 0:g.content,Yxg)}}});
Nx.prototype.onProgressChanged=Nx.prototype.onProgressChanged;Nx.prototype.onDataChanged=Nx.prototype.onDataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Nx.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Nx.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Nx.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Nx.prototype,"enableScrollingFix",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Nx.prototype,"bottomBar",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Nx.prototype,"hideBottomBar",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],Nx.prototype,"containsExploreHub",null);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Nx.prototype,"fitContent",void 0);_.m([_.zb("#progress"),_.L("design:type",HTMLElement)],Nx.prototype,"progressElement",void 0);
_.m([_.zb("#scroller"),_.L("design:type",Object)],Nx.prototype,"JSC$17025_scroller",void 0);_.m([_.zb("ytd-flow-top-bar-renderer"),_.L("design:type",HTMLElement)],Nx.prototype,"topBar",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Nx.prototype,"onDataChanged",null);_.m([_.Gb("data.progress"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Nx.prototype,"onProgressChanged",null);
_.m([_.N({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],Nx);
_.I(Nx,"ytd-flow-step-renderer",function(){if(il8!==void 0)return il8;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return il8=g},{mode:1});var u1g=function(g){this.resolveCommand=g;this.steps={}},lx5=function(g,r){r=_.U(r||[]);
for(var E=r.next();!E.done;E=r.next()){E=E.value;var B=Object.values(E)[0],w=void 0;if((w=B)==null?0:w.stepId)g.steps[B.stepId]=E}},GZm=function(g,r){var E,B,w,O,M;
return _.q(function(u){if((E=g.state)==null||!E.currentStepId)return u.return(void 0);B=DeL(g);if(!B)return u.return(oAD(g));if(w=_.n(B,_.pp6)){var l;((l=w.screenLoggingData)==null?0:l.screenVeType)&&_.wT(_.pW(),w.screenLoggingData.screenVeType);((O=w)==null?0:O.onStepStartCommand)&&g.resolveCommand((M=w)==null?void 0:M.onStepStartCommand,{})}if(w&&r){l=w;var Q,z,k,H;((Q=r.flowLoggingData)==null?0:Q.eventNamespace)&&((z=l.flowEventData)==null?0:z.eventType)&&((k=l.flowEventData)==null?0:k.eventMetadata)&&
((H=r.flowLoggingData)==null?0:H.flowType)&&(Q=_.lF(r.flowLoggingData.eventNamespace,l.flowEventData.eventType,l.flowEventData.eventMetadata),_.D1(_.oJ(),Q,r.flowLoggingData.flowType));r.steps&&!r.steps.includes(B)&&r.steps.push(B)}return u.return(B)})};
u1g.prototype.back=function(){var g;(g=this.state)!=null&&g.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
u1g.prototype.handleUpdateFlowCommand=function(g){g.steps&&lx5(this,g.steps);g.entityUpdateCommand&&this.resolveCommand(g.entityUpdateCommand,{});g.flowContinuationCommand&&(g=g.flowContinuationCommand)&&(this.getFlowContinuationCommand=g);this.awaitFlowContinuation&&(this.awaitFlowContinuation(DeL(this)),this.awaitFlowContinuation=void 0)};
u1g.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var oAD=function(g){return _.q(function(r){return g.getFlowContinuationCommand?r.return(new Promise(function(E){g.awaitFlowContinuation=E;g.getFlowContinuationCommand&&g.resolveCommand(g.getFlowContinuationCommand,{flow_state:g.state})})):r.return(Promise.resolve(void 0))})},DeL=function(g){var r;
if((r=g.state)!=null&&r.currentStepId)return g.steps[g.state.currentStepId]};var ID=function(){var g=_.a.apply(this,arguments)||this;g.flowState=new u1g(function(r,E){E=E===void 0?{}:E;_.G$.instance.resolveCommand(r,{form:{form:E,element:g.hostElement}})});
g.initialState=!0;g.isLoading=!1;g.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};return g};
_.f(ID,_.a);_.S=ID.prototype;_.S.onPopupClosed=function(g){g&&this.hostElement!==g.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.S.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.S.focus=function(g){var r=this;_.N1(function(){var E=_.S3(r.hostElement).querySelector("ytd-flow-step-renderer");(E==null?0:E.topBar)?E.focus(g):r.topBar&&_.hp(r.topBar,g)},1)};
_.S.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.S.computeTopBarHidden=function(g){var r;return!((r=_.n(g,_.pp6))==null||!r.topBarOverride)};
_.S.dataChanged=function(){var g=this,r,E;return _.q(function(B){if(B.nextAddress==1){((r=g.data)==null?0:r.steps)&&lx5(g.flowState,g.data.steps);if((E=g.data)==null?0:E.flowContinuationCommand){var w=g.flowState,O=g.data.flowContinuationCommand;O&&(w.getFlowContinuationCommand=O)}return _.D(B,GZm(g.flowState,g.data),2)}g.currentFlowStep=B.yieldResult;_.Q3(B)})};
_.S.flowChanged=function(){var g=this,r;return _.q(function(E){if(E.nextAddress==1){if(!g.flow)return E.return();g.flowState.state=g.flow;g.isLoading=!0;return _.D(E,GZm(g.flowState,g.data),2)}r=E.yieldResult;if(!r||g.flow.isLoading)return E.return();g.currentFlowStep=r;g.initialState=!1;g.isLoading=!1;g.autofocusAndRefit();_.Q3(E)})};
_.S.autofocusAndRefit=function(){var g=this,r=_.rM().resolve(_.gM(_.wN)),E=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),B=document.querySelector("yt-report-form-confirmation-page-view-model"),w=document.querySelector("yt-report-form-details-page-view-model"),O=document.querySelector("yt-report-form-reason-select-page-view-model"),M=document.querySelector("yt-contributor-zero-state-view-model"),
u=document.querySelector("yt-structured-context-note-view-model"),l=document.querySelector("yt-note-view-model");(!E&&r&&r.isKeyBoardInUse()||B||!E&&w||!E&&O||M||u||l)&&_.ZH(this.hostElement);_.Lk(this,function(){_.Sh(g.hostElement,"yt-refit")})};
_.S.handleUpdateFlowCommand=function(g){this.data&&(g=_.n(g,HlA),g.targetId===this.data.targetId&&(g.flowContinuationCommand&&(this.data.flowContinuationCommand=g.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(g),this.autofocusAndRefit()))};
_.S.handleFlowNextStepCommand=function(g){this.data&&this.flow&&this.flow.key&&(g=_.n(g,zov),g.targetId===this.data.targetId&&(g=g.stepId||"",this.ytdReduxBehavior.dispatch(_.C0("flowStateEntity",this.flow.key,{currentStepId:g,stepIdStack:(this.flow.stepIdStack||[]).concat(g)}))))};
_.S.handleFlowPrevStepCommand=function(g){if(this.data&&this.flow&&this.flow.key&&(g=_.n(g,kW4),g.targetId===this.data.targetId)){var r=[].concat(_.jW(this.flow.stepIdStack||[]));r.length>1?(r.pop(),this.ytdReduxBehavior.dispatch(_.C0("flowStateEntity",this.flow.key,{currentStepId:r[r.length-1],stepIdStack:r}))):g.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(g.onFirstStepCommand)}};
_.S.handleYpcCancelRecurrenceCommand=function(g){if(this.data&&this.flow&&this.flow.key&&(g=_.n(g,fkM),g.targetId===this.data.targetId&&g.endpointCommand)){var r=_.n(this.flow,$D4);r&&_.n(g.endpointCommand,_.KYn)&&(_.n(g.endpointCommand,_.KYn).feedbackData=r.surveyFeedback);this.ytComponentBehavior.resolveCommand(g.endpointCommand)}};
_.S.handlePartialUpdateFlowStateEntity=function(g){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.C0("flowStateEntity",this.flow.key,g,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
ID.prototype.flowChanged=ID.prototype.flowChanged;ID.prototype.dataChanged=ID.prototype.dataChanged;ID.prototype.onPopupClosed=ID.prototype.onPopupClosed;_.m([_.P(_.Ai),_.L("design:type",Object)],ID.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ID.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],ID.prototype,"ytComponentBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],ID.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],ID.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],ID.prototype,"initialState",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],ID.prototype,"isLoading",void 0);_.m([_.K(),_.L("design:type",Object)],ID.prototype,"data",void 0);
_.m([_.K(),_.L("design:type",Object)],ID.prototype,"currentFlowStep",void 0);_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],ID.prototype,"onPopupClosed",null);_.m([_.K({selectorArgs:["data.flowStateEntityKey"],selector:RE8}),_.L("design:type",Object)],ID.prototype,"flow",void 0);_.m([_.zb("ytd-flow-top-bar-renderer"),_.L("design:type",HTMLElement)],ID.prototype,"topBar",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype",Promise)],ID.prototype,"dataChanged",null);_.m([_.Yk("flow"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype",Promise)],ID.prototype,"flowChanged",null);_.m([_.N({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],ID);
_.QjF=_.U2()(ID,"ytd-flow-root-renderer",function(){if(c5F!==void 0)return c5F;var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return c5F=g},{mode:_.My("kevlar_poly_si_batch_j025")?1:2});var zf8;var UI=null;_.BK(_.dG(function(g){return _.G("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.G("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.G(_.hf,{text:function(){return g.data().text}}),_.G("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Zf"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.cP}});var kZ5=_.dG(function(g){var r=g.playerControlsProps;var E=g.isShortsPage;return _.G("yt-bigboard",null,_.G(_.p,{cond:function(){return r().isDragging},
then:function(){return _.G("div",{class:"ytBigboardStoryboardHost"},_.G(_.ds5,{progressBarProps:r,isShortsPage:E}))}}))},"$f");
kZ5.idomCompat=!0;_.mk={ACCOUNT_LABEL:Mx("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:Mx("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:Mx("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:Mx("AD_BADGE_HINT"),AD_BADGE_TEXT:Mx("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:Mx("ALL_CHANNELS_LABEL"),AMBIENT_MODE:Mx("AMBIENT_MODE"),AMBIENT_MODE_OFF:Mx("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:Mx("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:Mx("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:Mx("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:Mx("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:Mx("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:Mx("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:Mx("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:Mx("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:Mx("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:Mx("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:Mx("AUTO_ZOOM","Auto zoom"),BACK:Mx("BACK"),CANCEL:Mx("CANCEL"),CHANNEL_SWITCHER_LABEL:Mx("CHANNEL_SWITCHER_LABEL"),CLOSE:Mx("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:Mx("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:Mx("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:Mx("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:Mx("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:Mx("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:Mx("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:Mx("COMMENT_MODAL_CONTENT"),CONFIRM_OK:Mx("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:Mx("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:Mx("COPIED_TO_CLIPBOARD"),COPY:Mx("COPY"),COPY_DEBUG_INFO:Mx("COPY_DEBUG_INFO"),COPY_EMBED_CODE:Mx("COPY_EMBED_CODE"),
COPY_LINK_LABEL:Mx("COPY_LINK_LABEL"),COPY_VIDEO_URL:Mx("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:Mx("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:Mx("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:Mx("DELETE_FROM_DOWNLOADS"),DIALOG:Mx("DIALOG"),DONE:Mx("DONE"),DOWNLOAD:Mx("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:Mx("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:Mx("FLAG_CONFIRM"),FLAG_CONTENT:Mx("FLAG_CONTENT"),FLAG_LABEL:Mx("FLAG_LABEL"),FLAG_TITLE:Mx("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:Mx("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:Mx("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:Mx("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:Mx("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:Mx("HIDE_SEARCH_FILTERS_LABEL"),HOME:Mx("HOME","Home"),INVALID_RESPONSE_RECEIVED:Mx("INVALID_RESPONSE_RECEIVED"),LIBRARY:Mx("LIBRARY","Library"),LISTENING:Mx("LISTENING"),LOADING:Mx("LOADING"),LONG_PRESS_MIC_TO_SPEAK:Mx("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:Mx("LOOP"),MENU_DESKTOP:Mx("MENU_DESKTOP"),
MENU_EXIT:Mx("MENU_EXIT"),MENU_FEEDBACK:Mx("MENU_FEEDBACK"),MENU_HELP:Mx("MENU_HELP"),MENU_IMPRESSUM:Mx("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:Mx("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:Mx("MENU_SETTINGS"),MENU_SIGN_IN:Mx("MENU_SIGN_IN"),MENU_TITLE:Mx("MENU_TITLE"),MENU_YOUR_DATA:Mx("MENU_YOUR_DATA"),MORE_INFO:Mx("MORE_INFO"),MORE_OPTIONS:Mx("MORE_OPTIONS"),MUTE_VOLUME:Mx("MUTE_VOLUME"),NEW_PLAYLIST:Mx("NEW_PLAYLIST"),NEXT_VIDEO:Mx("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:Mx("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:Mx("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:Mx("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:Mx("NOT_FOUND_TITLE"),NO_DOWNLOADS:Mx("NO_DOWNLOADS"),NO_MIC_INPUT:Mx("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:Mx("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:Mx("OOPS_MESSAGE"),OPEN_APP:Mx("OPEN_APP"),OPEN_YOUTUBE:Mx("OPEN_YOUTUBE"),PAUSE:Mx("PAUSE"),PLAY:Mx("PLAY"),PLAYER_CAPTION:Mx("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:Mx("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:Mx("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:Mx("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:Mx("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:Mx("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:Mx("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:Mx("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:Mx("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:Mx("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:Mx("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:Mx("PLAYER_MINIMIZE"),PLAYER_NEXT:Mx("PLAYER_NEXT"),PLAYER_PAUSE:Mx("PLAYER_PAUSE"),PLAYER_PLAY:Mx("PLAYER_PLAY"),
PLAYER_PREVIOUS:Mx("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:Mx("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:Mx("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:Mx("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:Mx("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:Mx("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:Mx("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:Mx("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:Mx("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:Mx("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:Mx("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:Mx("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:Mx("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:Mx("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:Mx("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:Mx("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:Mx("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:Mx("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:Mx("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:Mx("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:Mx("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:Mx("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:Mx("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:Mx("PLAY_ALL"),PLEASE_FIX_ERRORS:Mx("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:Mx("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:Mx("PREVIOUS_VIDEO"),PRIVACY_POLICY:Mx("PRIVACY_POLICY"),RELOAD:Mx("RELOAD"),REQUIRED_LABEL:Mx("REQUIRED_LABEL"),SAVE_PLAYLIST:Mx("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:Mx("SCRUB_SLIDE_USER_EDU"),SEARCH:Mx("SEARCH","Search"),
SEARCH_APPEND_LABEL:Mx("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:Mx("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:Mx("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:Mx("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:Mx("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:Mx("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:Mx("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:Mx("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:Mx("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:Mx("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:Mx("SEEK_SLIDER"),SETTINGS_LABEL:Mx("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:Mx("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:Mx("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:Mx("SHOW_LESS"),SHOW_MORE:Mx("SHOW_MORE"),SHOW_PLAYER_CONTROLS:Mx("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:Mx("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:Mx("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:Mx("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:Mx("SIGN_IN_ON_WEB"),STABLE_VOLUME:Mx("STABLE_VOLUME"),STABLE_VOLUME_OFF:Mx("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:Mx("STABLE_VOLUME_ON"),STATS_FOR_NERDS:Mx("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:Mx("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:Mx("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:Mx("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:Mx("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:Mx("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:Mx("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:Mx("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:Mx("TIMESTAMP_SECONDS"),TOGGLE_OFF:Mx("TOGGLE_OFF"),TOGGLE_ON:Mx("TOGGLE_ON"),TRENDING:Mx("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:Mx("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:Mx("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:Mx("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:Mx("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:Mx("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:Mx("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:Mx("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:Mx("VIDEO_LINK_LABEL")};var H3A=_.dG(function(g){var r=g.playerApi;g=_.VI("button",function(B){_.CP(B,36843)});
var E=Mx("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.G("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.G("button",{el:g,class:"ytPlayerControlsJumpForwardButtonButton",title:E,"aria-label":E,"on:click":_.HK(function(){_.KP(36843);r&&r().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.G("span",null,_.G(_.nh,{icon:"FAST_FORWARD"}))))},"ag");var pND=_.dG(function(g){var r=g.appApi;g=_.VI("button",function(B){_.CP(B,62946)});
var E=Mx("OPEN_IN_MINIPLAYER");return _.G("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.G("button",{el:g,class:"ytMiniplayerButtonButton",title:E,"aria-label":E,"on:click":_.HK(function(){_.KP(62946);var B,w;(w=(B=r()).openInMiniplayer)==null||w.call(B);return!1})},_.G(_.nh,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"bg");var Yrg=_.dG(function(g){var r=g.playerApi;g=_.VI("button",function(O){_.CP(O,142812)});
var E=_.U(_.Dk(!1,void 0,"I3VCyb")),B=E.next().value,w=E.next().value;E=function(){return Mx("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(B()?1:2)})};
return _.G("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.G("button",{el:g,class:"ytPlaybackSpeedButtonButton",title:E,"aria-label":E,"on:click":_.HK(function(){_.KP(142812);if(r){var O=r(),M=B();O.setPlaybackRate(M?1:2);w(!B())}return!1})},_.G("span",null,_.G(_.nh,{icon:function(){return B()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"cg");var RfA=_.dG(function(g){var r=g.title;var E=g.ariaLabel;var B=g.icon;var w=g.command;var O=g.veType;g=_.VI("button",function(M){O&&_.CP(M,O())});
return _.G("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.G("button",{el:g,class:"ytdThumbnailOverlayButtonButton",title:r,"aria-label":E,"on:click":_.HK(function(){O&&_.KP(O());w&&_.rM().resolve(_.Er).resolveCommand(w())})},_.G(_.nh,{icon:B})))},"dg");var Tl="";var nAm=_.dG(function(g){var r=g.playerControlsProps,E=g.onClickFn;g=_.kB(function(){var O=r(),M=-1;O.captionsAvailable&&(M=O.captionsEnabled?1:0);return M},void 0,"WecR8e");
var B=_.kB(function(){var O=r();return O.captionsAvailable?_.zn(O.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.zn("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),w=_.kB(function(){var O=r();
O=O.captionsAvailable?O.captionsEnabled:void 0;return O},void 0,"Q17ly");
return _.G("yt-closed-captions-toggle-button",null,_.G(_.i$6,{captionIconType:g,ariaLabel:B,ariaPressed:w,onClick:function(O){var M=r();if(M.captionsAvailable){var u=M.playerApi;if(u){var l=M.playerApi;if(l){var Q=Tl;if(Q){l=l.getOption("captions","track");var z;Tl=(z=l?l.displayName:null)!=null?z:Q}else _.WQ(l)?(Q=_.FBV(l),Tl=Q.length?(z=sQz(Q))?z.displayName:Q[0].displayName:""):Tl=""}fbM(u);_.Y("mweb_disable_set_state_captions_killswitch")&&M.setState({captionsEnabled:!M.captionsEnabled})}}var k,
H;(H=(k=M.appApi).showCaptionsToggleToast)==null||H.call(k,M);E==null||E(O)},
isOverlay:!0}))},"eg");var sj6=_.dG(function(g){var r=g.data;return _.G("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.G(_.AH,{data:function(){return{type:16,text:_.S$Y(r().label)}}}))},"fg");var fx$=_.dG(function(g){var r=_.QY("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return g.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return g.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return g.size()==="small"?g.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
g.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.G("animated-seek-arrows",{class:_.QY("ytPlayerControlsAnimatedSeekArrowsHost")},_.G("span",{class:r}),_.G("span",{class:r}),_.G("span",{class:r}))},"gg");
fx$.idomCompat=!0;var $ev=_.dG(function(){var g=_.zn("PLAYER_SECONDS",{seconds_placeholder:"30"}),r=_.U(_.Dk(!1,void 0,"Yj8msb")),E=r.next().value,B=r.next().value,w=_.U(_.Dk(!1,void 0,"r9Z50e"));r=w.next().value;var O=w.next().value;w={};var M=_.QY("jumpForwardOverlayOverlay",(w.jumpForwardOverlayOverlayHidden=r,w));_.Jk(function(){var u=null,l=null,Q=function(){u!==null&&_.s8().cancelJob(u);l!==null&&_.s8().cancelJob(l);O(!0);B(!0);_.Mh(_.s8(),function(){O(!1)});
u=_.Mh(_.s8(),function(){O(!0);l=_.Mh(_.s8(),function(){B(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",Q);_.J5(function(){window.removeEventListener("jump-forward-clicked",Q)})});
return _.G("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.G(_.p,{cond:E,then:function(){return _.G("div",{class:M},_.G(fx$,{direction:1,size:"large"}),_.G("div",null,g))}}))},"hg");var jjm=_.mk.MUTE_VOLUME,Asv=_.mk.UNMUTE_VOLUME,b3z=_.dG(function(g){var r=g.muteIconType;var E=g.onClick;var B=g.useOutlineIcon;var w=g.useDelhiIcons;g=_.VI("button",function(u){_.CP(u,28662)});
var O=function(){var u=r(),l=B==null?void 0:B(),Q=w==null?void 0:w(),z="",k="";switch(u){case -1:case 0:z=l?"VOLUME_OFF":Q?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";k=Asv;break;case 1:z=l?"VOLUME_UP_OUTLINE":Q?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";k=jjm;break;case 2:z=l?"VOLUME_DOWN_OUTLINE":Q?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";k=jjm;break;default:_.MM(u)}return{iconName:z,ariaLabel:k}},M=function(){return O().ariaLabel};
return _.G("ytm-mute-button",{class:"ytmMuteButtonHost"},_.G("button",{el:g,class:"ytmMuteButtonButton",title:M,"aria-label":M,"on:click":_.HK(function(u){_.KP(28662);E==null||E(u);return!1})},_.G("span",null,_.G(_.nh,{icon:function(){return O().iconName}}))))},"ig");var Js5=_.dG(function(g){var r=g.volumeProps;var E=g.onClickFn;var B=g.useOutlineIcon;var w=g.useDelhiIcons;return _.G("yt-mute-toggle-button",null,_.G(b3z,{muteIconType:function(){var O=r();return O.volumeMuted||O.volume===0?0:O.volume>50?1:2},
onClick:function(O){var M=r().playerApi;M&&(M.isMuted()?M.unMute():M.mute(!1));E==null||E(O)},
useOutlineIcon:function(){return!(B==null||!B())},
useDelhiIcons:function(){return!(w==null||!w())}}))},"jg");
Js5.idomCompat=!0;var Pcg=_.dG(function(g){var r=g.data;var E=_.VI("ytm-paid-content-overlay-renderer");return _.G("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:E,"on:animationend":_.HK(function(){E.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.G(_.NQ,{command:function(){return r().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.G(_.p,{cond:function(){var B;return(B=r().icon)==null?void 0:B.iconType},
then:function(){return _.G("span",null,_.G(_.nh,{icon:function(){var B;return(B=r().icon)==null?void 0:B.iconType}}))}}),_.G("div",{class:"ytmPaidContentOverlayText"},_.G(_.hf,{text:function(){return r().text}})),_.G(_.p,{cond:function(){return r().navigationEndpoint},
then:function(){return _.G(_.nh,{icon:"CHEVRON_RIGHT"})}})))},"kg");
Pcg.idomCompat=!0;var hF5=[].concat(_.jW([{register:function(g){var r=wp4(g),E;(E=g().playerApi)==null||E.addEventListener("onVolumeChange",r);return function(){}}},
{register:function(g){var r=SxM(g);g=g().playerApi;g==null||g.addEventListener("captionschanged",r);g==null||g.addEventListener("captionssettingschanged",r);g==null||g.addEventListener("onCaptionsTrackListChanged",r);return function(){}}},
{register:function(g){if(!_.Y("mweb_screenreader_accessible_player"))return function(){};
var r=Olz(g),E=document.querySelector("video");E==null||E.addEventListener("touchend",r);return function(){E==null||E.removeEventListener("touchend",r)}}},
{register:function(g){if(!_.Y("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var r=Olz(g),E=document.querySelector("video");E==null||E.addEventListener("focus",r);return function(){E==null||E.removeEventListener("focus",r)}}}]),[{register:function(g){var r=gBg(g),E;
(E=g().playerApi)==null||E.addEventListener("onStateChange",r);return function(){}}},
{register:function(g){var r=r5m(g),E;(E=g().playerApi)==null||E.addEventListener("onPlaybackRateChange",r);return function(){}}},
{register:function(g){var r=EBA(g),E;(E=g().playerApi)==null||E.addEventListener("onVideoDataChange",r);return function(){}}},
{register:function(g){var r=BBD(g),E,B;(E=g())==null||(B=E.playerApi)==null||B.addEventListener("onVideoProgress",r);return function(){}}}]);var tg$=_.dG(function(g){var r=g.data;var E=function(){return _.zn("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+r().playbackRate})};
return _.G(_.p,{cond:function(){return r().playbackRate&&r().playbackRate!==1},
then:function(){return _.G("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.G("div",{class:"ytPlaybackRateOverlayOverlay"},_.G(fx$,{direction:1,size:"small"}),_.G("div",{class:"ytPlaybackRateOverlayLabel"},E)))}})},"lg");var F0z=_.dG(function(g){var r=g.data;return _.G("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.G(_.p,{cond:function(){var E,B=(E=r())==null?void 0:E.playerResponse,w;return B==null?void 0:(w=B.paidContentOverlay)==null?void 0:w.paidContentOverlayRenderer},
then:function(E){return _.G(Pcg,{data:E})}}))},"ng"),ef8=_.dG(function(g){var r=g.props;
var E=g.data;var B=g.options;var w=function(){var Q,z,k,H;return(Q=E())==null?void 0:(z=Q.playerResponse)==null?void 0:(k=z.playerConfig)==null?void 0:(H=k.inlinePlaybackConfig)==null?void 0:H.showAudioControls},O=function(){var Q,z;
if(w()&&((Q=B())==null?void 0:(z=Q.additionalButton)==null?void 0:z.button)!==void 0){var k,H,R;Q=(k=E())==null?void 0:(H=k.playerApi)==null?void 0:(R=H.getSize())==null?void 0:R.height;if(!(Q===void 0||Q<180)){var A,J;return(A=B())==null?void 0:(J=A.additionalButton)==null?void 0:J.button}}},M=function(){var Q,z;
return(Q=B())==null?void 0:(z=Q.additionalButton)==null?void 0:z.thumbnailOverlayButtonRenderers},u=function(){var Q,z;
return(Q=B())==null?void 0:(z=Q.additionalButton)==null?void 0:z.thumbnailOverlayButtonViewModels},l=function(){var Q=[_.G(Js5,{volumeProps:r}),
_.G(nAm,{playerControlsProps:r})];O()===1&&Q.push(_.G(H3A,{playerApi:function(){return r().playerApi}}));
O()===2&&Q.push(_.G(pND,{appApi:function(){return r().appApi}}));
O()===3&&Q.push(_.G(Yrg,{playerApi:function(){return r().playerApi}}));
var z=M();if(O()===4&&z){z=_.U(z);for(var k=z.next(),H={};!k.done;H={tooltip$jscomp$2:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$53:void 0,command$jscomp$576:void 0},k=z.next()){k=k.value;H.tooltip$jscomp$2=k.tooltip;var R=void 0,A=void 0;H.ariaLabel$jscomp$21=((R=k.accessibility)==null?void 0:(A=R.accessibilityData)==null?void 0:A.label)||H.tooltip$jscomp$2;R=void 0;H.icon$jscomp$53=(R=k.icon)==null?void 0:R.iconType;H.command$jscomp$576=k.command;H.tooltip$jscomp$2&&H.ariaLabel$jscomp$21&&H.icon$jscomp$53&&
Q.push(_.G(RfA,{title:function(J){return function(){return J.tooltip$jscomp$2}}(H),
ariaLabel:function(J){return function(){return J.ariaLabel$jscomp$21}}(H),
icon:function(J){return function(){return J.icon$jscomp$53}}(H),
command:function(J){return function(){return J.command$jscomp$576}}(H)}))}}z=u();
if(O()===4&&z)for(z=_.U(z),k=z.next(),H={};!k.done;H={tooltip$jscomp$3:void 0,ariaLabel$jscomp$22:void 0,icon$jscomp$54:void 0,command$jscomp$577:void 0},k=z.next())k=k.value,H.tooltip$jscomp$3=k.title,H.ariaLabel$jscomp$22=k.accessibilityText||H.tooltip$jscomp$3,H.icon$jscomp$54=k.iconName,H.command$jscomp$577=_.xP(k.onTap),H.tooltip$jscomp$3&&H.ariaLabel$jscomp$22&&H.icon$jscomp$54&&Q.push(_.G(RfA,{title:function(J){return function(){return J.tooltip$jscomp$3}}(H),
ariaLabel:function(J){return function(){return J.ariaLabel$jscomp$22}}(H),
icon:function(J){return function(){return J.icon$jscomp$54}}(H),
command:function(J){return function(){return J.command$jscomp$577}}(H)}));
return Q};
return _.G(_.p,{cond:w,then:function(){return _.G("div",{class:"ytInlinePlayerControlsTopRightControls"},_.G(_.Ra,{each:l},function(Q){return _.G("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.G("div",{class:"ytInlinePlayerControlsButtonIcon"},Q))}))}})},"og"),K0g=_.dG(function(g){var r=g.props;
var E=g.data;var B=g.options;g={};g=_.QY("ytInlinePlayerControlsBottomRightControls",(g.ytInlinePlayerControlsBottomRightControlsHidden=function(){var w;return M1L(E(),B())&&((w=B())==null?void 0:w.insetProgressBar)&&(r().isHovering||r().isDragging)},g));
return _.G("div",{class:g},_.G(W04,{data:E}),_.G(_.p,{cond:function(){var w;return!((w=B())==null?0:w.hideTimeDisplay)},
then:function(){return _.G(Cc$,{props:r,data:E})}}))},"pg"),W04=_.dG(function(g){var r=g.data;
return _.G(_.Af,{data:function(){var E;return i5$((E=r())==null?void 0:E.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:sj6})},"qg"),Cc$=_.dG(function(g){var r=g.props;
var E=g.data;return _.G(_.p,{cond:function(){return r().isLive},
then:function(){return _.G(xeg,null)},
else:function(){return _.G(ax5,{props:r,data:E})}})},"rg"),ax5=_.dG(function(g){var r=g.props;
var E=g.data;var B=_.kB(function(){var w;return VLz((w=E())==null?void 0:w.thumbnailOverlays)},void 0,"kUmuA");
return _.G("div",{class:_.QY("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.mk.PLAYER_TIME_ELAPSED+" "+_.mTX(r().playedTime)}},_.G(_.AH,{data:function(){var w=_.mTX(r().videoDuration-r().playedTime);
return Object.assign({},{type:16,text:w},B())}}))},"sg"),xeg=_.dG(function(){var g=_.QY("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.G("div",{class:g},_.G(_.AH,{data:{type:17,text:_.mk.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"tg"),XN8=_.dG(function(g){var r=g.props;
var E=g.data;var B=g.options;return _.G(_.wum,{progressBarProps:r,config:function(){var w,O=_.n((w=E())==null?void 0:w.multiMarkersPlayerBar,_.Mpm),M;w=((M=B())==null?0:M.insetProgressBar)?2:1;var u;M=(u=B())==null?void 0:u.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:w,chapterData:O,isInlinePlayback:!0,doSeekOnClick:M,playheadDotBehavior:M?1:0}}})},"ug");_.BK(_.dG(function(g){var r=g.data;var E=g.appApi;var B=g.options;var w=TY8(r,UDt(E));g={};E={};return _.G("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.G("div",{class:_.QY("ytInlinePlayerControlsDarkenedOverlay",(g.ytInlinePlayerControlsDarkenedOverlayShow=function(){return w().isHovering},g))}),_.G($ev,null),_.G(tg$,{data:w}),_.G(F0z,{data:r}),_.G(kZ5,{playerControlsProps:w,
isShortsPage:!1}),_.G("div",{class:_.QY((E.ytInlinePlayerControlsControlsHidden=function(){return w().isDragging},E))},_.G(ef8,{props:w,
data:r,options:B}),_.G(K0g,{props:w,data:r,options:B})),_.G(_.p,{cond:function(){return M1L(r(),B())},
then:function(){return _.G(XN8,{props:w,data:r,options:B})}}))},"mg"),"yt-inline-player-controls",{props:{data:_.cP,
appApi:_.EB,options:_.cP}});var cW=function(){var g=_.a.apply(this,arguments)||this;g.opts=null;g.playerControlsData=null;g.playerControlsAppApi={openInMiniplayer:function(){g.openInMiniplayer()}};
g.playerControlsOptions={};g.noAnimation=!1;g.playbackIntentTriggered=!1;g.positionData=null;g.hidden=!0;g.active=!1;g.playing=!1;g.videoPreviewDataIndex=0;g.JSC$17081_playerPromise=null;g.player=null;g.enableAudioControls=!1;g.hasBeenUnmuted=!1;g.captionsHaveBeenTurnedOff=!1;g.JSC$17081_playerEvents=new Map;g.videoPreviewFetchRequest=null;g.scheduledPreviewEndJobId=null;g.JSC$17081_preventProgressSaveTimer=null;g.watchEndpointStartTimeUpdaterInterval=null;g.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};g.windowOnBlurFn=function(){g.deactivate()};
return g};
_.f(cW,_.a);_.S=cW.prototype;
_.S.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.Y("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.S.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$17081_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$17081_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$17081_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$17081_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.Do(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.Do(this,this.onScroll))};
_.S.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.Do(this,this.onScroll))};
_.S.onPageTypeChange=function(){this.deactivate()};
_.S.onWindowResized=function(){this.deactivate()};
_.S.onCaptionsChanged=function(g){g=!!g.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!g);this.setCaptionSize()};
_.S.setCaptionSize=function(){var g;if(this.active&&!this.captionsHaveBeenTurnedOff&&((g=this.player)==null?0:g.getCaptionWindowContainerId())){var r;(r=this.player)==null||r.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.S.currentPageAllowed=function(){return!this.isWatchPage};
_.S.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var g=this.positionData,r=g.initialTopPosition,E=g.initialHorizontalPosition;_.ua(this.hostElement,{"--ytd-video-preview-translate-left":g.finalHorizontalPosition-E+"px","--ytd-video-preview-translate-top":g.finalTopPosition-r+"px","--ytd-video-preview-original-top-position":r+"px","--ytd-video-preview-original-horizontal-position":E+"px",
"--ytd-video-preview-initial-scale":"scale("+g.initialScale+")","--ytd-video-preview-width":g.videoPreviewWidth+"px","--ytd-video-preview-height":g.videoPreviewHeight+"px"});return!0};
_.S.handleOpenVideoPreviewAction=function(g){var r=this,E;return _.q(function(B){if(!r.currentPageAllowed())return B.return(0);r.opts=g;return(E=r.alignVideoPreviewForAnimation(g.thumbnail))?B.return(r.activate()):B.return(0)})};
_.S.onMouseLeave=function(g){this.shouldDeactivateOnMouseLeave(g)&&this.deactivate()};
_.S.onScroll=function(){var g,r;((g=this.opts)==null?0:g.isAutoplay)&&((r=this.opts)==null?0:r.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.S.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.F6.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.S.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.S.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",cW.JSC$17080_DEFAULT_CLICK_LOCATION_BEHAVIOR,cW.JSC$17080_CLICK_LOCATION_ID_MAP)};
_.S.shouldDeactivateOnMouseLeave=function(g){g=g.relatedTarget;if(!g)return!0;var r;return(r=this.opts)!=null&&r.mediaRenderer?!_.ON(this.opts.mediaRenderer).contains(g):!0};
_.S.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.S.onPlaybackStart=function(){var g=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$17081_preventProgressSaveTimer=
_.Mh(_.F6,function(){g.resetPreventProgressSaveTimer()},1E4);
var r;if((r=this.opts)==null?0:r.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.Mh(_.F6,function(){g.hasMultipleVideoPreviews()?g.startPlaybackForNextVideo():g.deactivate()},this.opts.videoPreviewDurationMs);
var E;this.player.setGlobalCrop(((E=this.opts)==null?0:E.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.S.getRoundedCornersSize=function(){var g;if((g=this.opts)==null?0:g.roundedCornersSize){var r;return(r=this.opts)==null?void 0:r.roundedCornersSize}var E;if((E=this.opts)==null?0:E.enableRounding){var B;if(((B=this.opts)==null?void 0:B.thumbnailSize)==="small")return 1;var w;if(((w=this.opts)==null?void 0:w.thumbnailSize)==="medium")return 2;var O;if(((O=this.opts)==null?void 0:O.thumbnailSize)==="large")return 3}return _.Y("web_imp_inset_progress_bar")?3:0};
_.S.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.S.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.S.onMediaContainerClick=function(g){this.isShortcutClick(g)||(this.navigateToWatch(g),g.preventDefault(),g.stopPropagation())};
_.S.activate=function(){var g=this,r,E,B,w,O,M,u,l,Q;return _.q(function(z){switch(z.nextAddress){case 1:if(!g.currentPageAllowed())return z.return(0);E=(r=g.videoPreviewData)==null?void 0:r.inlinePlaybackEndpoint;B=_.Il.instance;if(!E||!B)return z.return(0);g.playbackIntentTriggered=!0;((w=g.opts)==null?0:w.mediaRenderer)&&((O=g.opts)==null||!O.isAutoplay)&&mdM(g.opts.mediaRenderer,function(){g.deactivate()});
_.Lk(g,function(){g.revealPreviewUi()});
M={};_.Y("enable_unknown_lact_fix_on_html5")&&(_.rM().resolve(_.PK),M.lact=_.Eq());g.videoPreviewFetchRequest=KKD(B,g.getInlinePlaybackRequestData(g.videoPreviewData),M);_.qN(z,2);return _.D(z,g.videoPreviewFetchRequest,4);case 4:u=z.yieldResult;if(((l=u)==null?void 0:(Q=l.playabilityStatus)==null?void 0:Q.status)==="OK")return z.return(g.handlePlayerResponse(u));throw Error("Rj");case 2:_.G2(z),g.deactivate();case 3:return z.return(1)}})};
_.S.getInlinePlaybackRequestData=function(g){var r,E=_.Y("web_imp_player_mute_params")?((r=this.opts)==null?void 0:r.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:g.inlinePlaybackEndpoint,startPlaybackInMutedState:E}};
_.S.handlePlayerResponse=function(g){var r=this,E,B,w,O,M,u,l,Q,z,k;return _.q(function(H){if(H.nextAddress==1){E=r.getInlinePlaybackVideoId();if(!(((B=g)==null?0:(w=B.videoDetails)==null?0:w.videoId)&&r.currentPageAllowed()&&r.playbackIntentTriggered&&r.opts&&E))return r.deactivate(),H.return(0);if(g.videoDetails.videoId!==E)return H.return(0);r.enableAudioControls=!!((O=g.playerConfig)==null?0:(M=O.inlinePlaybackConfig)==null?0:M.showAudioControls);g.trackingParams=r.getInlinePlaybackTrackingParams();
if(!r.inlinePlayer)return H.return(0);u={};if(Q=_.n((l=r.videoPreviewData)==null?void 0:l.inlinePlaybackEndpoint,_.LM))u.watch_endpoint=Q;if(r.videoPreviewData){var R,A=(R=_.n(r.videoPreviewData.inlinePlaybackEndpoint,_.LM))==null?void 0:R.startTimeSeconds;A!==void 0&&(g.playerConfig||(g.playerConfig={}),g.playerConfig.playbackStartConfig||(g.playerConfig.playbackStartConfig={}),g.playerConfig.playbackStartConfig.startPosition||(g.playerConfig.playbackStartConfig.startPosition={}),g.playerConfig.playbackStartConfig.startSeconds=
A,g.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(A*1E3))}r.inlinePlayer.loadVideoWithPlayerResponse(g,u);if(r.JSC$17081_playerPromise)return H.jumpTo(2);r.JSC$17081_playerPromise=r.inlinePlayer.getPlayerPromise();return _.D(H,r.JSC$17081_playerPromise,3)}H.nextAddress!=2&&(z=H.yieldResult,z.setInlinePreview(!0),z.setSizeStyle(!1,!0),r.ytPlayerListenerBehavior.listenToPlayerEvents(z,r.JSC$17081_playerEvents),r.player=z,_.Sh(r.hostElement,"player-api-ready"));((k=r.opts)==
null?0:k.showPlayerControls)&&r.videoPreviewData&&r.player&&(r.playerControlsData={playerResponse:g,isInlinePlayback:!0,thumbnailOverlays:r.videoPreviewData.thumbnailOverlays,playerApi:r.player},r.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!r.unroundCornersForPlayback,additionalButton:r.getAdditionalButtonType(r.videoPreviewData.thumbnailOverlays)});return H.return(2)})};
_.S.revealPreviewUi=function(){var g=this;this.playbackIntentTriggered&&_.F7o(this,function(){g.hasThumbnailPositionChangedSinceTriggered()||(g.updateActiveState(!0),g.noAnimation=!1)})};
_.S.hasThumbnailPositionChangedSinceTriggered=function(){var g=this.positionData,r=this.getThumbnailPositionData();return(g==null?void 0:g.initialTopPosition)!==(r==null?void 0:r.initialTopPosition)||(g==null?void 0:g.initialHorizontalPosition)!==(r==null?void 0:r.initialHorizontalPosition)};
_.S.getThumbnailPositionData=function(){var g,r;if((r=this.opts)==null||!r.thumbnail)return null;r=this.opts.thumbnail;var E=((g=this.opts)==null?0:g.cropPlayerToFillThumbnailHorizontally)?!1:!0;var B=r.getBoundingClientRect();g=B.width;r=B.height;var w=B.top+window.scrollY;B=B.left+window.scrollX;var O=E?Math.ceil(g):g;E=E?Math.ceil(r):r;var M=g/O;g={initialScale:M,initialTopPosition:w-12*M,finalTopPosition:w-12-(E-r)/2,initialHorizontalPosition:B-(12+(O-g)/2),finalHorizontalPosition:B-12-(O-g)/
2,videoPreviewWidth:O,videoPreviewHeight:E};return g};
_.S.updateActiveState=function(g){this.active=g;this.ytdReduxBehavior.dispatch(_.Bs({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:g}))};
_.S.stopPlayer=function(g){g=g.resetWatchEndpointStartTime===void 0?!1:g.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(g)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.F6.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.S.deactivate=function(g){g=g===void 0?{}:g;g=g.resetWatchEndpointStartTime===void 0?!1:g.resetWatchEndpointStartTime;UI&&(UI.disconnect(),UI=null);this.stopPlayer({resetWatchEndpointStartTime:g});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.S.isValidThumbnailOverlayButton=function(g,r){g=g.thumbnailOverlayButtonRenderer;var E;return!!g&&!!g.tooltip&&!((E=g.icon)==null||!E.iconType)&&r.includes(g.icon.iconType)};
_.S.isValidThumbnailOverlayButtonViewModel=function(g,r){var E;g=_.n((E=g.thumbnailOverlayButtonViewModel)==null?void 0:E.overlayButton,_.nm);return!!g&&!!g.title&&!!g.iconName&&r.includes(g.iconName)};
_.S.getAdditionalButtonType=function(g){var r=this;if(_.Y("web_imp_fastforward_button"))return{button:1};if(_.Y("web_imp_miniplayer_button"))return{button:2};if(_.Y("web_imp_playback_speed_button"))return{button:3};var E=["BOX_STACK_3"],B=(g||[]).filter(function(O){return r.isValidThumbnailOverlayButton(O,E)}).map(function(O){return O.thumbnailOverlayButtonRenderer});
if(B.length)return{button:4,thumbnailOverlayButtonRenderers:B};var w=["BOX_STACK_3"];g=(g||[]).filter(function(O){return r.isValidThumbnailOverlayButtonViewModel(O,w)}).map(function(O){return _.n(O.thumbnailOverlayButtonViewModel.overlayButton,_.nm)});
if(g.length)return{button:4,thumbnailOverlayButtonViewModels:g}};
_.S.allowCaptions=function(){var g;return!((g=this.opts)==null?0:g.forceCaptionsOff)};
_.S.allowUnmuting=function(){var g;return this.enableAudioControls&&!((g=this.opts)==null?0:g.forceMutedVolume)};
_.S.beginStartTimeUpdater=function(){var g=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.qe(function(){g.updateWatchEndpointStartTime()},1E3)};
_.S.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.S.resetPreventProgressSaveTimer=function(){this.JSC$17081_preventProgressSaveTimer!==null&&(_.F6.cancelJob(this.JSC$17081_preventProgressSaveTimer),this.JSC$17081_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.S.updateWatchEndpointStartTime=function(g){var r=this.videoPreviewData;if(this.player&&r!=null&&r.inlinePlaybackEndpoint&&!this.JSC$17081_preventProgressSaveTimer){g=g?0:Math.floor(this.player.getCurrentTime());var E=_.n(r.navigationEndpoint,_.LM);E&&(E.startTimeSeconds=g);if(r=_.n(r.inlinePlaybackEndpoint,_.LM))r.startTimeSeconds=g}};
_.S.isShortcutClick=function(g){return!!g&&(g.ctrlKey||g.shiftKey||g.metaKey)};
_.S.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.S.openInMiniplayer=function(){var g=this,r,E;return _.q(function(B){if(B.nextAddress==1){E=(r=g.videoPreviewData)==null?void 0:r.navigationEndpoint;if(!E)return B.return();_.Di().lockupActivation=!0;return _.D(B,_.uH4(_.rM().resolve(_.ea),E),2)}_.Di().userActivation=!0;_.Q3(B)})};
_.S.navigateToWatch=function(g){var r,E=(r=this.videoPreviewData)==null?void 0:r.navigationEndpoint;if(E){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(E,g,!0);else{if(_.Y("web_thumbnail_to_watch_transition")){var B,w;(B=this.opts)==null||(w=B.onNavigateToWatchCallback)==null||w.call(B)}_.Sh(this.hostElement,"yt-navigate",{endpoint:E})}this.deactivate()}};
_.S.getInlinePlaybackVideoId=function(){var g,r;return(r=_.n((g=this.videoPreviewData)==null?void 0:g.inlinePlaybackEndpoint,_.LM))==null?void 0:r.videoId};
_.S.getInlinePlaybackTrackingParams=function(){var g,r;return(g=this.videoPreviewData)==null?void 0:(r=g.inlinePlaybackEndpoint)==null?void 0:r.clickTrackingParams};
_.S.hasMultipleVideoPreviews=function(){var g;return!!(((g=this.opts)==null?0:g.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.S.startPlaybackForNextVideo=function(){var g;(g=this.opts)!=null&&g.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())};
_.hx.Object.defineProperties(cW.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.opts)==null?0:g.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.opts)==null||!g.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 g;if(Array.isArray((g=this.opts)==null?void 0:g.videoPreviewData)){var r;return(r=this.opts)==null?void 0:r.videoPreviewData[this.videoPreviewDataIndex]}var E;return(E=this.opts)==null?void 0:E.videoPreviewData}}});
cW.prototype.onIsAdsVideoChange=cW.prototype.onIsAdsVideoChange;cW.prototype.onInlinePreviewIsEnabledChange=cW.prototype.onInlinePreviewIsEnabledChange;cW.prototype.optsChanged=cW.prototype.optsChanged;cW.prototype.onMouseLeave=cW.prototype.onMouseLeave;cW.JSC$17080_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);cW.JSC$17080_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"}];
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],cW.prototype,"actionHandlerBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],cW.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.a9.YtPlayerListenerBehavior),_.L("design:type",_.X0)],cW.prototype,"ytPlayerListenerBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],cW.prototype,"componentBehavior",void 0);
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],cW.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],cW.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.hi.YtSparklesClickLocationBehavior),_.L("design:type",Object)],cW.prototype,"ytSparklesClickLocationBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],cW.prototype,"opts",void 0);_.m([_.K(),_.L("design:type",Object)],cW.prototype,"playerControlsData",void 0);
_.m([_.K(),_.L("design:type",Object)],cW.prototype,"playerControlsAppApi",void 0);_.m([_.K(),_.L("design:type",Object)],cW.prototype,"playerControlsOptions",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],cW.prototype,"noAnimation",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],cW.prototype,"hidden",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],cW.prototype,"active",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],cW.prototype,"playing",void 0);_.m([_.K({selector:_.kiD}),_.L("design:type",Boolean)],cW.prototype,"inlinePreviewIsEnabled",void 0);_.m([_.K(),_.L("design:type",String)],cW.prototype,"pagePath",void 0);_.m([_.K({selector:_.Fc}),_.L("design:type",Boolean)],cW.prototype,"isWatchPage",void 0);_.m([_.W("videoPreviewData"),_.L("design:type",Object),_.L("design:paramtypes",[])],cW.prototype,"thumbnailData",null);
_.m([_.W("opts","active"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],cW.prototype,"hidePlayerControls",null);_.m([_.W("opts"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],cW.prototype,"isAdsVideo",null);_.m([_.W("opts"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],cW.prototype,"roundedCornersSmall",null);
_.m([_.W("opts"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],cW.prototype,"roundedCornersMedium",null);_.m([_.W("opts"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],cW.prototype,"roundedCornersLarge",null);_.m([_.W("opts"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],cW.prototype,"unroundCornersForPlayback",null);
_.m([_.W("opts","videoPreviewDataIndex"),_.L("design:type",Object),_.L("design:paramtypes",[])],cW.prototype,"videoPreviewData",null);_.m([_.K(),_.L("design:type",Object)],cW.prototype,"videoPreviewDataIndex",void 0);_.m([_.zb("#inline-player"),_.L("design:type",Object)],cW.prototype,"inlinePlayer",void 0);_.m([_.ob("mouseleave"),_.L("design:type",Function),_.L("design:paramtypes",[MouseEvent]),_.L("design:returntype")],cW.prototype,"onMouseLeave",null);
_.m([_.Yk("opts"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],cW.prototype,"optsChanged",null);_.m([_.Yk("inlinePreviewIsEnabled"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],cW.prototype,"onInlinePreviewIsEnabledChange",null);_.m([_.Gb("isAdsVideo"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],cW.prototype,"onIsAdsVideoChange",null);
_.m([_.N({is:"ytd-video-preview",disableElementRegistration:!0})],cW);
_.I(cW,"ytd-video-preview",function(){if(zf8!==void 0)return zf8;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return zf8=g},{mode:2});
}catch(e){_._DumpException(e)}
try{
var LUg,Vqz,hm6;LUg=function(g){return _.Y("kevlar_watch_cinematics_invisible")||g.fullscreen&&_.Y("kevlar_watch_cinematics_invisible_in_fullscreen")||g.theater&&!g.fullscreen&&_.Y("kevlar_watch_cinematics_invisible_in_theater")};
Vqz=function(){var g=document.createElement("canvas"),r=g.getContext("2d");if(!r)throw Error("dm");_.Pg(g,{position:"absolute",width:"100%",height:"100%"});return{element:g,context:r}};
hm6=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.Y("kevlar_watch_cinematics_css_blur")};
_.ZJM=function(g,r,E){return Math.abs(g-r)<=(E||1E-6)};
_.yr$=function(g,r){return g==r?!0:g&&r?g.width==r.width&&g.height==r.height:!1};_.veM=new _.V("notificationActionRenderer");var dwD=function(g){var r=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.uF;this.element.addEventListener("load",function(){r.loaded=!0;r.resolver.resolve(r.element)});
this.element.addEventListener("error",function(){r.failed=!0});
this.element.src=g};var To8=function(g,r){this.image=g;this.frame=r};
To8.prototype.drawToCanvas=function(g,r){var E=this.frame.width/this.frame.columns,B=this.frame.height/this.frame.rows,w=r.offsetX,O=r.offsetY;LUg(r)?(g.fillStyle=r.fullscreen?"#000":"#0f0f0f",g.fillRect(w,O,(r==null?void 0:r.width)||E,(r==null?void 0:r.height)||B)):g.drawImage(this.image,this.frame.column*E,this.frame.row*B,E,B,w,O,(r==null?void 0:r.width)||E,(r==null?void 0:r.height)||B)};
var gXv=function(g){this.color=g};
gXv.prototype.drawToCanvas=function(g,r){var E=r.offsetX,B=r.offsetY,w=r.width,O=r.height;g.fillStyle=LUg(r)?r.fullscreen?"#000":"#0f0f0f":this.color;g.fillRect(E,B,w,O)};var ri=function(g,r){_.ZF.call(this);this.playerApi=r;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.oQ(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();rct(this,g);EX$(this);this.update()};
_.f(ri,_.ZF);ri.prototype.addEventListeners=function(){var g=this,r=function(){g.update()},E=function(w){g.paused||(w.type==="newdata"&&(g.mosaics.clear(),BaM(g),EK(g)),EX$(g),g.update())},B=function(){g.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",r);this.playerApi.addEventListener("onVideoDataChange",E);this.playerApi.addEventListener("onStateChange",B);this.addOnDisposeCallback(function(){g.playerApi.removeEventListener("onVideoProgress",r);g.playerApi.removeEventListener("onVideoDataChange",E);g.playerApi.removeEventListener("onStateChange",B)})};
var rct=function(g,r){g.cinematicContainerRenderer!==r&&(g.cinematicContainerRenderer=r,BaM(g),EK(g),g.colorStoreUpdateJobId=_.F6.addLowPriorityJob(function(){var E;if((E=g.cinematicContainerRenderer.colorStore)!=null&&E.sampledColors){E=Infinity;for(var B=_.U(g.cinematicContainerRenderer.colorStore.sampledColors),w=B.next();!w.done;w=B.next()){w=w.value;var O=Number(w.key);O!==0&&O<E&&(E=O);O=_.XT(w.value);g.colorStore.set(w.key,O)}g.colorStoreTimeInterval=E}}))},BaM=function(g){g.colorStoreUpdateJobId&&
(_.F6.cancelJob(g.colorStoreUpdateJobId),g.colorStoreUpdateJobId=void 0);
g.colorStore.clear();g.currentStoryboardColor=void 0},w7g=function(g,r){var E;
return(E=g.getStoryboardFrame(r))==null?void 0:E.url};
ri.prototype.onPlayerStateChange=function(){this.update()};
ri.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var EX$=function(g){var r=g.getStoryboardFrame(0);r&&(r=new _.oQ(r.width/r.columns,r.height/r.rows),_.yr$(g.currentStoryboardSize,r)||(g.currentStoryboardSize=r,g.publish("STORYBOARD_SIZE_CHANGED",g.currentStoryboardSize)))},S4A=function(g,r){g.currentStoryboardIndex=r;
g.pendingStoryboardIndex=NaN;r=g.getStoryboardFrame(g.currentStoryboardIndex);g.currentStoryboard=new To8(g.mosaics.get(r.url).element,r);g.publish("STORYBOARD_CHANGED",g.currentStoryboard);g.lastUpdateTime=(0,_.g2)()};
ri.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var EK=function(g){g.currentStoryboardIndex=NaN;g.pendingStoryboardIndex=NaN;g.currentStoryboard&&(g.currentStoryboard=void 0,g.publish("STORYBOARD_CHANGED",void 0));g.lastUpdateTime=NaN};
ri.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)EK(this);else{var g=this.playerApi.getPlayerState(1);if(g===-1||g===5||g===0)EK(this);else if(isNaN(this.lastUpdateTime)||!((0,_.g2)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(g=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){g=""+Math.round(g*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var r=this.colorStore.get(g);r?r!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=r,this.currentStoryboard=new gXv(r),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.g2)()):(_.el(new _.Rj("Could not find color for timestamp: "+g,this.cinematicContainerRenderer)),EK(this))}else EK(this);else O18(this,g)}};
var O18=function(g,r){var E=g.getStoryboardFrameIndex(r);if(E!==g.currentStoryboardIndex&&E!==g.pendingStoryboardIndex){r=w7g(g,E);var B=g.mosaics.get(r);B?B.loaded&&S4A(g,E):(g.pendingStoryboardIndex=E,E=new dwD(r),g.mosaics.set(r,E),E.resolver.promise.then(function(){if(!g.isDisposed()&&!g.paused&&!isNaN(g.pendingStoryboardIndex)){var w=w7g(g,g.pendingStoryboardIndex);if(w){var O;(O=g.mosaics.get(w))!=null&&O.loaded&&S4A(g,g.pendingStoryboardIndex)}else EK(g)}}))}};
ri.prototype.getStoryboardFrameIndex=function(g){var r=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(g,r)};
ri.prototype.getStoryboardFrame=function(g){var r=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,E,B;return((B=(E=this.playerApi).getStoryboardFrame)==null?void 0:B.call(E,g,r))||null};
ri.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var wi=function(g,r,E,B){B=B===void 0?!1:B;_.f5.call(this);this.cinematicContainerRenderer=r;this.playerApi=E;this.theater=this.fullscreen=!1;var w;this.ambientLightThemeEnabled=!B&&!!(r==null?0:(w=r.config)==null?0:w.enableInLightTheme);this.ambientFullscreenEnabled=B&&_.Y("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=B&&_.Y("web_cinematic_theater_mode");this.container=document.createElement("div");g.appendChild(this.container);var O;if(_.Y("web_cinematic_theater_mode")||_.Y("web_cinematic_fullscreen")||
(r==null?0:(O=r.config)==null?0:O.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);UA$(this);g=this.ambientV2Container||this.container;this.backCanvas=Vqz();this.frontCanvas=Vqz();g.appendChild(this.backCanvas.element);g.appendChild(this.frontCanvas.element);this.storyboardManager=new ri(r,this.playerApi);_.oO(this,this.storyboardManager);this.addEventListeners();MD5(this)?q4g(this,100+BZ(this)*3*2,100+BZ(this)*3*2):uvz(this);
l3t(this,this.storyboardManager.currentStoryboard)};
_.f(wi,_.f5);var UA$=function(g){g.ambientV2Container?DA4(g):(_.Pg(g.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+oX$(g)+", "+GN$(g)+")"}),hm6()&&_.Pg(g.container,"filter","blur("+_.wM("cinematic_watch_css_filter_blur_strength",40)+"px)"))},DA4=function(g){if(g.ambientV2Container){var r=g.playerApi.getVideoAspectRatio();
_.Pg(g.container,{"aspect-ratio":""+r,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.Pg(g.ambientV2Container,{"aspect-ratio":""+r,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+oX$(g)+", "+GN$(g)+")"});hm6()&&_.Pg(g.ambientV2Container,"filter","blur("+_.wM("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
wi.prototype.setFullscreen=function(g,r){this.fullscreen=g;this.theater=!!r;UA$(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),g=this.storyboardManager.currentStoryboard,Q7t(this),g&&zVM(this,g)};
wi.prototype.addEventListeners=function(){var g=this,r=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(w){l3t(g,w)}),E=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){uvz(g)});
this.addOnDisposeCallback(function(){g.storyboardManager.unsubscribeByKey(r);g.storyboardManager.unsubscribeByKey(E)});
if(this.ambientV2Container){var B=function(){DA4(g)};
this.playerApi.addEventListener("onVideoDataChange",B);this.addOnDisposeCallback(function(){g.playerApi.removeEventListener("onVideoDataChange",B)})}};
var uvz=function(g){if(!MD5(g)){var r=g.storyboardManager.currentStoryboardSize;isNaN(r.width)||isNaN(r.height)||q4g(g,Number(r.width)+BZ(g)*3*2,Number(r.height)+BZ(g)*3*2)}},q4g=function(g,r,E){g.backCanvas.element.width=r;
g.backCanvas.element.height=E;g.frontCanvas.element.width=r;g.frontCanvas.element.height=E},MD5=function(g){return g.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},l3t=function(g,r,E){E=E===void 0?!1:E;
var B=g.frontCanvas.element.getAnimations()[0];B?(B.pause(),g.backCanvas.context.globalAlpha=Number(getComputedStyle(g.frontCanvas.element).opacity),g.frontCanvas.element.style.opacity="0",B.finish()):g.backCanvas.context.globalAlpha=1;g.backCanvas.context.drawImage(g.frontCanvas.element,0,0,g.backCanvas.element.width,g.backCanvas.element.height);Q7t(g);r&&zVM(g,r);r=r?g.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.wM("cinematic_watch_fade_out_duration",500);B=_.wM("cinematic_watch_transition_frame_rate")/
1E3;var w={};B&&(w={easing:"steps("+Math.round(r*B)+")"});(E===void 0?0:E)||g.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:r,iterations:1},w));g.frontCanvas.element.style.opacity="1"},Q7t=function(g){var r=g.ambientLightThemeEnabled||g.ambientTheaterModeEnabled,E=g.ambientLightThemeEnabled||g.ambientFullscreenEnabled;
g.frontCanvas.context.fillStyle=g.theater&&r||g.fullscreen&&E?"#000":"#0f0f0f";hm6()||(g.frontCanvas.context.filter="blur(0)");g.frontCanvas.context.fillRect(0,0,g.frontCanvas.element.width,g.frontCanvas.element.height)},zVM=function(g,r){hm6()||(g.frontCanvas.context.filter="blur("+BZ(g)+"px)");
g.frontCanvas.context.globalAlpha=g.ambientFullscreenEnabled||g.ambientTheaterModeEnabled?_.wM("cinematic_watch_effect_letterbox_opacity",.8):_.wM("cinematic_watch_effect_opacity",.4);var E={offsetX:BZ(g)*3,offsetY:BZ(g)*3,theater:g.theater,fullscreen:g.fullscreen};MD5(g)&&(E.width=100,E.height=100);r.drawToCanvas(g.frontCanvas.context,E);g.frontCanvas.context.globalAlpha=1},BZ=function(g){var r;
return(r=g.cinematicContainerRenderer.config.blurStrength)!=null?r:5},oX$=function(g){var r,E;
if((g.fullscreen||g.theater)&&((r=g.cinematicContainerRenderer.config)==null?0:(E=r.watchFullscreenConfig)==null?0:E.colorSourceWidthMultiplier))return g.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var B;return(B=g.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?B:g.cinematicContainerRenderer.config.colorSourceSizeMultiplier},GN$=function(g){var r,E;
if((g.fullscreen||g.theater)&&((r=g.cinematicContainerRenderer.config)==null?0:(E=r.watchFullscreenConfig)==null?0:E.colorSourceHeightMultiplier))return g.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var B;return(B=g.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?B:g.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
wi.prototype.disposeInternal=function(){_.f5.prototype.disposeInternal.call(this);this.container.remove()};
wi.prototype.clear=function(){l3t(this,void 0,!0)};
wi.prototype.pause=function(){this.storyboardManager.pause()};var kN5;kN5=_.Gk(function(){var g,r,E=!((r=(g=document.createElement("canvas")).getContext)==null||!r.call(g,"2d")),B;g=!((B=CSS)==null||!B.supports("filter: blur(0)"));B=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var w;return E&&g&&B&&!((w=CSS)==null||!w.supports("aspect-ratio: 1 / 1"))});
_.Sc=function(g,r){_.ZF.call(this);this.container=g;this.playerApi=r;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=H1A(this);this.update()};
_.f(_.Sc,_.ZF);_.p7t=function(g){var r=document.documentElement.hasAttribute("dark");g.isDarkModeEnabled=r;g.update()};
_.Y4A=function(g,r){g.settingEnabled=r;g.update()};
_.Sc.prototype.setFullscreen=function(g,r){this.fullscreen=g;this.theater=!!r;this.update()};
_.RV6=function(g,r){g.cinematicContainerRenderer=r;g.cinematicContainerRenderer&&(g.cinematicsVe=_.bW(g.isShorts()?227858:159022),_.Sp(_.pW(),g.cinematicsVe),g.loggingClientData={watchCinematicContainerData:{presentationStyle:g.cinematicContainerRenderer.presentationStyle}});g.update()};
_.Sc.prototype.isShorts=function(){var g,r;return((g=this.cinematicContainerRenderer)==null?void 0:(r=g.config)==null?void 0:r.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.Sc.prototype.isAllowed=function(){var g;if(g=kN5()){var r,E,B;g=((E=this.cinematicContainerRenderer)==null?void 0:E.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((B=this.cinematicContainerRenderer)==null||!B.colorStore)||((r=this.cinematicContainerRenderer)==null?void 0:r.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(g)if(_.Y("web_cinematics_pausing")){var w,O;g=this.isDarkModeEnabled||!!((w=this.cinematicContainerRenderer)==
null?0:(O=w.config)==null?0:O.enableInLightTheme)}else{var M,u;w=!!((M=this.cinematicContainerRenderer)==null?0:(u=M.config)==null?0:u.enableInLightTheme)&&(_.Ca("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);g=this.isDarkModeEnabled||w}if(M=g){var l,Q;M=!((Q=(l=this.prefersReducedMotionQuery)==null?void 0:l.matches)!=null&&Q)}return M};
_.nXA=function(g){(g=g.currentCinematicEffect)!=null&&(g=g.storyboardManager,g.paused=!1,EX$(g),g.update())};
_.Sc.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var H1A=function(g){if(!_.Y("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var r=window.matchMedia("(prefers-reduced-motion: reduce)"),E=function(){g.update()};
r.addListener(E);g.addOnDisposeCallback(function(){r.removeListener(E)});
return r}};
_.Sc.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var g=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new wi(this.container,g,this.playerApi,this.isDarkModeEnabled),_.oO(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var r=this.currentCinematicEffect;r.cinematicContainerRenderer!==
g&&(r.cinematicContainerRenderer=g,rct(r.storyboardManager,g),UA$(r));g=_.pu();_.Yg(0,194,!0);g.save();g=_.PE();this.cinematicsVe&&g&&_.ck(g,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(g=_.PE(),this.cinematicsVe&&g&&_.iq(g,[this.cinematicsVe],!1,this.loggingClientData),_.TM(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.hx.Object.defineProperties(_.Sc.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var Rm5;var ne6;_.ba({_template:function(){if(ne6!==void 0)return ne6;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=
g.content,E=r.insertBefore;Rm5===void 0&&(Rm5=document.createElement("template"));var B=Rm5;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return ne6=g},
is:"tp-yt-iron-pages",behaviors:[_.f7,_.ci],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var zem;_.kc$=function(){if(_.Y("kevlar_home_skeleton")&&!zem){var g=document.querySelector("#home-page-skeleton");g&&(_.F4("hgcr"),_.p5(g),zem=!0)}};
zem=!1;_.sf=new _.V("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var OGm,MZ4,qIM,uJg,lF5,Dx6,ox$,GT6,zlg,kTL,HGD,Rl8,sD8,fFM,nxM,pWz,YI4,Az6;_.SIF=function(g,r,E){r=r===void 0?5:r;if(r!==0){var B=typeof g==="function"?g():document.querySelector(g);B?(E==null?0:E.enableSmartFocus)?_.Zlt(B):B.focus():setTimeout(function(){_.SIF(g,r-1,E)},500)}};
OGm=function(g){return String.raw.apply(String,[{raw:g}].concat(_.jW(_.fI.apply(1,arguments).map(function(r){return r instanceof Array?r.join(""):r}))))};
MZ4=function(g){var r=_.fI.apply(1,arguments);if(!Array.isArray(g)||!Array.isArray(g.raw)||g.length!==g.raw.length||!_.YoX&&g===g.raw||!(_.YoX&&!_.RsB||_.li(g))||r.length+1!==g.length)throw new TypeError("ea");return new Ux5(Object.freeze({strings:Object.freeze(g),args:Object.freeze(r)}))};
qIM=function(g){return _.EiJ(_.riS(g&16777215))<.5};
uJg=function(g,r,E){var B=E.minimumRowsOfVideosBetweenSections===void 0?1:E.minimumRowsOfVideosBetweenSections;return g<(E.minimumRowsOfVideosAtStart===void 0?2:E.minimumRowsOfVideosAtStart)||r!==null&&g-r<=B?!1:!0};
lF5=function(g,r){var E=0,B=0;g=_.U(g);for(var w=g.next();!w.done;w=g.next()){var O=w.value;if(O.richItemRenderer)O.richItemRenderer.rowIndex=B,O.richItemRenderer.colIndex=E++,E===r&&(E=0,B++);else if(O.richGroupRenderer&&O.richGroupRenderer.numColumns!==void 0)O.richGroupRenderer.rowIndex=B,O.richGroupRenderer.colIndex=E,E+=O.richGroupRenderer.numColumns,E===r&&(E=0,B++);else if(O.richSectionRenderer){var M=w=void 0;if(O=_.n((w=O)==null?void 0:(M=w.richSectionRenderer)==null?void 0:M.content,_.$fD))O.rowIndex=
B++}}};
Dx6=function(g,r){var E=r.contentElement;r=r.rendererToTagNameMap;if(E&&r&&r.size!==0){for(var B=new Map,w=_.U(E.children),O=w.next();!O.done;O=w.next()){O=O.value;var M=O.tagName.toLowerCase(),u=B.get(M);u||(u=[],B.set(M,u));u.push(O)}if(B.size!==0)for(w=Math.min(g.length,E.children.length),O=new Map,M=0;M<w;M++){u=Object.keys(g[M])[0];u=r.get(u);if(!u)break;var l=O.get(u);l===void 0&&(l=0,O.set(u,l));var Q=B.get(u);if(!Q||l>=Q.length)break;O.set(u,l+1);u=Q[l];l=E.children[M];l!==u&&(_.dUl=!0,_.Tml.set(u,
!0),E.insertBefore(u,l),_.Tml.delete(u),_.dUl=!1)}}};
ox$=function(g,r,E,B,w,O,M){B=B===void 0?{}:B;if(!g||!g.length)return[];g=g.slice();var u=[],l=[];w=null;for(var Q=0,z=function(C){l.sort(function(c,h){return h.skippedOnRow-c.skippedOnRow});
for(var X,Z=(X=l.shift())==null?void 0:X.content;Z;)!Z.richSectionRenderer&&C||u.push(Z),X=void 0,Z=(X=l.shift())==null?void 0:X.content},k=void 0;g.length>0||l.length>0;){for(var H=[],R=r;R>0;){var A=void 0,J=void 0,e=(J=l[0]&&l[0].skippedOnRow<Q?(A=l.shift())==null?void 0:A.content:void 0)!=null?J:g.shift();
if(!e)break;if(e.richItemRenderer)A=e.richItemRenderer.targetId,J=void 0,A&&((J=M)==null?0:J.has(A))&&(A=M.get(A),!k||A&&A.timestamp>k.timestamp)&&(k=A),H.push(e),R--;else if(e.richGroupRenderer&&e.richGroupRenderer.numColumns!==void 0)e.richGroupRenderer.numColumns<=R?(H.push(e),R-=e.richGroupRenderer.numColumns):R===r&&e.richGroupRenderer.numColumns>r?(H.push({richGroupRenderer:Object.assign({},e.richGroupRenderer,{numColumns:r})}),R=0):l.push({content:e,skippedOnRow:Q});else if(e.richSectionRenderer)if(uJg(Q,
w,B)&&R===r){u.push(e);w=Q;Q++;continue}else l.push({content:e,skippedOnRow:Q});else if(e.continuationItemRenderer){z(!0);u.push(e);R=0;break}if(R===0)u.push.apply(u,_.jW(H));else if(!E&&g.length===0){z(!1);u.push.apply(u,_.jW(H));R=0;break}}Q++;k&&(u.push(k.content),Q++);k=void 0}lF5(u,r);O&&Dx6(u,O);return u};
GT6=function(){return _.fI.apply(0,arguments).flat().filter(function(g){return g}).join(";")};
zlg=function(){return MZ4(QD6,GT6.apply(null,_.jW(_.fI.apply(0,arguments))))};
kTL=function(g){switch(g){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
HGD=function(g){return g.talkToRecs};
Rl8=function(g,r){if(r){var E=_.Zz().getState().entities.flowStateEntity,B=pWz(g),w=[r];B&&B!==r&&w.push(B);var O=!0,M;if(E&&g.flowStateEntityKey&&((M=E[g.flowStateEntityKey])==null?void 0:M.primaryButtonDisabled)!==void 0){var u;O=!((u=E[g.flowStateEntityKey])==null||!u.primaryButtonDisabled)}YI4(g,B!=null?B:r,w,O)}};
sD8=function(g){return _.Gm(_.Zz(),function(r){return r.entities.flowStateEntity},function(r,E){if(g.flowStateEntityKey){var B,w=r==null?void 0:(B=r[g.flowStateEntityKey])==null?void 0:B.currentStepId,O;
E=E==null?void 0:(O=E[g.flowStateEntityKey])==null?void 0:O.currentStepId;O=_.Zz().getState().talkToRecs;if(w&&w!==E){var M;r=(r==null?void 0:(M=r[g.flowStateEntityKey])==null?void 0:M.stepIdStack)||Object.keys(O.stepStates);M=!nxM(O==null?void 0:O.stepStates[w]);YI4(g,w,r,M)}}})};
fFM=function(g){return _.Gm(_.Zz(),HGD,function(r){var E=pWz(g);if(E){var B=Object.keys(r.stepStates);r=!nxM(r==null?void 0:r.stepStates[E]);YI4(g,E,B,r)}})};
nxM=function(g){var r=Object.keys((g==null?void 0:g.selectionStates)||{}).reduce(function(O,M){return O||(g==null?void 0:g.selectionStates[M].isSelected)},!1),E,B,w=!!(g==null?0:(E=g.userQuery)==null?0:(B=E.userQuery)==null?0:B.trim());
return r||w};
pWz=function(g){if(g.flowStateEntityKey){var r,E,B=(r=_.Zz().getState().entities.flowStateEntity)==null?void 0:(E=r[g.flowStateEntityKey])==null?void 0:E.currentStepId;if(B)return B}};
YI4=function(g,r,E,B){_.Zz().dispatch(_.za("flowStateEntity",g.flowStateEntityKey,{currentStepId:r,stepIdStack:E,key:g.flowStateEntityKey,primaryButtonDisabled:B}))};
_.$x$=function(g,r){return _.u1(g.entities,"youchatPendingResponseEntity",r)};
_.jDt=function(g){return function(r){_.hC(_.za("youchatPendingResponseEntity",g,{entityKey:g,isPendingResponse:r}))}};
Az6=function(g){g==null||g.addEventListener("DOMLoaded",function(){g.goToAndPlay(g.totalFrames-48,!0)})};
_.gW=function(g){this.__isSoyCss=!0;this.css=OGm.apply(null,[g.strings].concat(_.jW(g.args)))};
_.gW.prototype.toString=function(){return this.css};
var Ux5=function(){_.gW.apply(this,arguments)};
_.f(Ux5,_.gW);var QD6=_.me(["",""]);var bGA;var JzA;_.ba({_template:function(){if(JzA!==void 0)return JzA;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);
var r=g.content,E=r.insertBefore;bGA===void 0&&(bGA=document.createElement("template"));var B=bGA;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return JzA=g},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var Pr8=new _.V("talkToRecsFlowRenderer");var tZz=new _.V("flowRootRenderer");var Fk5=new _.V("learningJourneyQuizViewModel");var el5=new _.V("chipsShelfViewModel");var WkD=new _.V("responsiveContainerConfiguration");var CrL=new _.V("horizontalShelfViewModel");_.Kk8=new _.V("engagementPanelSectionListRenderer");var xx5=new _.V("conversationResourceViewModel");var aFL=function(){this.horizontal=!1},XW5=function(g,r){g.horizontal=r};
aFL.prototype.position=function(g,r,E,B){B=B===void 0?1:B;g=this.delta(g)*B+r;B=Math.max(r,E);return g>=Math.min(r,E)&&g<=B?g:E};
aFL.prototype.axis=function(g){g=this.direction(g);return g==="up"||g==="down"?"Y":"X"};var u3=function(g,r,E){r=r===void 0?_.Rf():r;this.target=g;this.manager=r;this.touchAction=E;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
u3.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(_.jW(this.events)));for(var g=_.U(this.events),r=g.next();!r.done;r=g.next())this.listen(r.value)}};
u3.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.jW(this.events)));for(var g=_.U(this.events),r=g.next();!r.done;r=g.next())this.unlisten(r.value)}};
u3.prototype.listen=function(g){this.eventMap[g]&&this.target.addEventListener(g,this.eventMap[g])};
u3.prototype.unlisten=function(g){this.eventMap[g]&&this.target.removeEventListener(g,this.eventMap[g])};var l3=function(){aFL.apply(this,arguments)};
_.f(l3,aFL);l3.prototype.direction=function(g){var r=g.detail;g=r.deltaY;r=r.deltaX;return g&&!this.horizontal?g>0?"down":"up":r&&this.horizontal?r>0?"right":"left":"none"};
l3.prototype.distance=function(g){return Math.abs(this.delta(g))};
l3.prototype.delta=function(g){var r=this.direction(g),E=g.detail;g=E.deltaX;E=E.deltaY;return r==="up"||r==="down"?E||0:g||0};
l3.prototype.velocity=function(g){var r=this.direction(g),E=g.detail;g=E.velocityX;E=E.velocityY;return Math.abs(r==="up"||r==="down"?E||0:g||0)};_.D_=function(g,r,E,B,w,O){w=w===void 0?new l3:w;O=O===void 0?_.Rf():O;u3.call(this,r,O,B);var M=this;this.element=g;this.target=r;this.config=E;this.input=w;this.manager=O;this.events=["panstart","panmove","panend"];this.onPanStart=function(){M.config.draggingClass&&M.element.classList.add(M.config.draggingClass);M.config.startAction&&M.config.startAction()};
this.onPanMove=function(u){var l=NQ8(M,u);if(l){M.move(u,l);l.fade&&M.fade(u,l);var Q=M.input.direction(u);l.moveAction&&l.moveAction(IFM(M,u,l),Q)}};
this.onPanEnd=function(u){var l,Q,z,k,H,R;return _.q(function(A){if(A.nextAddress==1){M.animationRequestId&&cancelAnimationFrame(M.animationRequestId);M.animationRequestId=void 0;l=NQ8(M,u);if(!l)return A.return();Q=l;z=Q.triggerAction;k=Q.fade;H=Q.disableFinish;R=Q.translateBack;var J=M.input.velocity(u),e=M.input.distance(u),C=M.threshold(l);return J>.3&&e>10||e>C?H?A.jumpTo(6):k?_.D(A,mx5(M,u),6):_.D(A,czm(M,u,l),6):R?_.D(A,M.translateBack(u),3):A.jumpTo(3)}A.nextAddress!=3&&z&&z();M.config.draggingClass&&
M.element.classList.remove(M.config.draggingClass);M.reset();_.Q3(A)})};
g=Object.keys(E.triggers);this.directions=new Set(g);XW5(this.input,this.directions.has("right")||this.directions.has("left"))};
_.f(_.D_,u3);_.D_.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var NQ8=function(g,r){r=g.input.direction(r);return g.config.triggers[r]};
_.D_.prototype.move=function(g,r){var E=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var B=E.input.axis(g),w=E.input.position(g,E.config.startPosition,r.endPosition,r.moveRatio||1);E.element.style.transform="translate"+B+"("+w+"px)";E.animationRequestId=void 0}))};
var IFM=function(g,r,E){var B=E.moveRatio||1;E=Math.abs(g.config.startPosition-E.endPosition);return Math.min(g.input.distance(r)*B,E)/E};
_.D_.prototype.fade=function(g,r){var E=r.endOpacity;g=IFM(this,g,r);g>0&&(this.element.style.opacity=""+(((E||0)-1)*g+1))};
_.D_.prototype.threshold=function(g){return g.threshold?g.threshold:Math.abs(g.endPosition-this.config.startPosition)/3};
var czm=function(g,r,E){var B,w,O,M,u,l,Q;return _.q(function(z){if(z.nextAddress==1)return B=g.input.delta(r)+g.config.startPosition,w=g.input.axis(r),O=E,M=O.endPosition,u=O.transitionEndPosition,Q=(l=u)!=null?l:M,_.D(z,g.element.animate([{transform:"translate"+w+"("+B+"px)"},{transform:"translate"+w+"("+Q+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);g.element.style.transform="translate"+w+"("+Q+"px)";_.Q3(z)})};
_.D_.prototype.translateBack=function(g){var r=this,E,B;return _.q(function(w){if(w.nextAddress==1){if(!r.element.style.transform)return w.return();E=r.input.axis(g);B=r.config.startPosition;return _.D(w,r.element.animate([{transform:r.element.style.transform},{transform:"translate"+E+"("+B+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}r.element.style.transform="translate"+E+"("+B+"px)";_.Q3(w)})};
var mx5=function(g,r){var E,B,w,O;return _.q(function(M){if(M.nextAddress==1)return E=g.input.delta(r)+g.config.startPosition,B=g.input.axis(r),w=E+70,O=g.element.style.opacity===""?1:g.element.style.opacity,_.D(M,g.element.animate([{transform:"translate"+B+"("+E+"px)",opacity:O},{transform:"translate"+B+"("+w+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);g.element.style.transform="translate"+B+"("+w+"px)";g.element.style.opacity="0";_.Q3(M)})};var oK=function(){var g=_.Hi.apply(this,arguments)||this;g._noAccessors=!0;g.scrollRate=3;g.autoScrollAnimationStart=0;g.autoScrollPaused=!1;g.autoScrollRafId=0;return g};
_.f(oK,_.Hi);_.S=oK.prototype;_.S.created=function(){var g=this;this.boundAutoScrollHandler=function(r){g.autoScroll(r)}};
_.S.detached=function(){this.hostElement.removeEventListener("mouseout",_.Do(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.Do(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.Do(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.S.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.Do(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.Do(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.Do(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.Do(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.Do(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.Do(this,this.endAutoScroll)),this.endAutoScroll())};
_.S.autoScroll=function(g){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=g);var r;if(r=!this.autoScrollPaused&&this.scrollTarget)r=this.scrollTarget,r=r.scrollHeight-r.scrollTop!==r.clientHeight;r&&(r=1E3/this.scrollRate,g-=this.autoScrollAnimationStart,g>r&&(this.scrollTarget.scrollTop+=Math.ceil(g/r),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.S.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.S.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
oK.prototype.autoScrollEnabledChanged=oK.prototype.autoScrollEnabledChanged;_.m([_.K(),_.L("design:type",Object)],oK.prototype,"scrollRate",void 0);_.m([_.K(),_.L("design:type",Object)],oK.prototype,"scrollTarget",void 0);_.m([_.K(),_.L("design:type",Boolean)],oK.prototype,"autoScrollEnabled",void 0);_.m([_.Gb("autoScrollEnabled"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],oK.prototype,"autoScrollEnabledChanged",null);_.m([_.pR()],oK);_.iG5=[oK.prototype];var LkA;var Gf=function(){var g=_.a.apply(this,arguments)||this;g.buttonUpdate=_.Y("web_button_rework");g.dismissButtonOverrides=_.Y("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;g.forceDarkTheme=!1;g.forceLightTheme=!1;g.dynamicTextHeight=94;g.hasOverflowButton=!1;g.isInfeedModernization=!1;return g};
_.f(Gf,_.a);_.S=Gf.prototype;_.S.computeUrlImg=function(g){if(g)return _.Sk(g.thumbnails)};
_.S.getLogoHeight=function(g){return this.logoWithPadding(g)?"31":"24"};
_.S.getLogoClassName=function(g){return this.logoWithPadding(g)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.S.logoWithPadding=function(g){var r,E;return(g=(r=g.thumbnails)==null?void 0:(E=r[0])==null?void 0:E.height)&&g%31===0?!0:!1};
_.S.sendImpressionEndpoints=function(g){g.impressionEndpoints&&_.q2(this.hostElement,g.impressionEndpoints)};
_.S.observeBasicPalette=function(){var g,r,E=(g=this.data)==null?void 0:(r=g.colorData)==null?void 0:r.basicColorPaletteData;E?_.tR(this.hostElement,E):_.tR(this.hostElement,{})};
_.S.observeDataChanged=function(){var g;this.dynamicTextHeight=((g=this.data)==null?0:g.supplementalText)?74:94;var r;this.hasSupplementalText=!((r=this.data)==null||!r.supplementalText);if(_.Y("web_button_rework")){var E,B,w,O;g=(E=this.data)==null?void 0:(B=E.actionButton)==null?void 0:(w=B.buttonRenderer)==null?void 0:(O=w.colorData)==null?void 0:O.basicColorPaletteData;var M,u,l;if(!((M=this.data)==null?0:(u=M.actionButton)==null?0:(l=u.buttonRenderer)==null?0:l.style)&&g){this.computeIsInfeedModernization(this.data)||
(g.borderColor=g.foregroundTitleColor);var Q,z;this.set("data.actionButton.buttonRenderer",_.jn.unsafeClone((Q=this.data)==null?void 0:(z=Q.actionButton)==null?void 0:z.buttonRenderer))}}};
_.S.observeDataForCounterfactual=function(){if(_.Y("kevlar_banner_cf_extra_logging")){var g;((g=this.data)==null?0:g.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.S.computeSupplementalStyle=function(){var g;if((g=this.data)!=null&&g.supplementalText){var r,E,B;if((r=this.data)==null?0:(E=r.colorData)==null?0:(B=E.basicColorPaletteData)==null?0:B.foregroundActivatedColor)return g=_.aJ(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+g+"; --yt-endpoint-hover-color:"+g+"; --yt-endpoint-visited-color:"+g+"; --yt-formatted-string-bold-font-weight:700;"}};
_.S.computeForcedDarkTheme=function(){var g,r,E,B=(g=this.data)==null?void 0:(r=g.actionButton)==null?void 0:(E=r.buttonRenderer)==null?void 0:E.style,w,O,M;g=qIM(((w=this.data)==null?void 0:(O=w.colorData)==null?void 0:(M=O.basicColorPaletteData)==null?void 0:M.backgroundColor)||0);return B&&g};
_.S.computeForcedLightTheme=function(){var g,r,E,B=(g=this.data)==null?void 0:(r=g.actionButton)==null?void 0:(E=r.buttonRenderer)==null?void 0:E.style,w,O,M;g=!qIM(((w=this.data)==null?void 0:(O=w.colorData)==null?void 0:(M=O.basicColorPaletteData)==null?void 0:M.backgroundColor)||0);return B&&g};
_.S.computeHasOverflowButton=function(g){return!!g.overflowButton};
_.S.computeHasTitle=function(g){return!!g.title};
_.S.computeTitleMaxFontSize=function(g){return this.computeHasOverflowButton(g)?28:64};
_.S.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.S.computeIsInfeedModernization=function(){var g,r,E,B,w=(g=this.data)==null?void 0:(r=g.actionButton)==null?void 0:(E=r.buttonRenderer)==null?void 0:(B=E.colorData)==null?void 0:B.basicColorPaletteData;return(w==null?void 0:w.backgroundColor)===452984831||(w==null?void 0:w.backgroundColor)===218103808};
Gf.prototype.observeDataForCounterfactual=Gf.prototype.observeDataForCounterfactual;Gf.prototype.observeDataChanged=Gf.prototype.observeDataChanged;Gf.prototype.observeBasicPalette=Gf.prototype.observeBasicPalette;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Gf.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.Ji),_.L("design:type",Object)],Gf.prototype,"ytdDismissibleItemBehavior",void 0);
_.m([_.P(_.eb.YtdGuideStateAwareBehavior),_.L("design:type",Object)],Gf.prototype,"ytdGuideStateAwareBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Gf.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Gf.prototype,"buttonUpdate",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],Gf.prototype,"hasSupplementalText",void 0);_.m([_.K(),_.L("design:type",Object)],Gf.prototype,"dismissButtonOverrides",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.L("design:type",Boolean)],Gf.prototype,"hasTitle",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.L("design:type",Object)],Gf.prototype,"forceDarkTheme",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.L("design:type",Object)],Gf.prototype,"forceLightTheme",void 0);_.m([_.K(),_.L("design:type",Object)],Gf.prototype,"dynamicTextHeight",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.L("design:type",Object)],Gf.prototype,"hasOverflowButton",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.L("design:type",Object)],Gf.prototype,"isInfeedModernization",void 0);_.m([_.Gb("data.colorData.basicColorPaletteData"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Gf.prototype,"observeBasicPalette",null);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Gf.prototype,"observeDataChanged",null);_.m([_.Gb("data.isVisible"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Gf.prototype,"observeDataForCounterfactual",null);_.m([_.N({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],Gf);
_.I(Gf,"ytd-banner-promo-renderer",function(){if(LkA!==void 0)return LkA;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return LkA=g},{mode:1});var VZ8;var hl8;var ZGF;var Qh=function(){return _.a.apply(this,arguments)||this};
_.f(Qh,_.a);_.m([_.K(),_.L("design:type",Object)],Qh.prototype,"data",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Qh.prototype,"ytRendererBehavior",void 0);_.m([_.N({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],Qh);
_.I(Qh,"ytd-hashtag-grid-tile-renderer",function(){if(ZGF!==void 0)return ZGF;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return ZGF=g},{mode:1});var zf=function(){return _.a.apply(this,arguments)||this};
_.f(zf,_.a);zf.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
zf.prototype.updateRichGridTrendingHashtagsVisibility=function(){var g,r;if(((g=this.data)==null||!g.isExpanded)&&(r=this.data)!=null&&r.tiles){g=this.data.tiles.length;r=g>this.richGridItemsPerRow?this.richGridItemsPerRow+1:g;var E=Math.ceil(g/r);this.fullyVisibleRows=g%r===1&&E===2?1:Math.min(E,2);this.isShowMoreVisible=this.fullyVisibleRows<E}};
zf.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
zf.prototype.updateRichGridTrendingHashtagsVisibility=zf.prototype.updateRichGridTrendingHashtagsVisibility;_.m([_.K(),_.L("design:type",Object)],zf.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Number)],zf.prototype,"fullyVisibleRows",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],zf.prototype,"isShowMoreVisible",void 0);_.m([_.K({selector:_.Ps,value:0}),_.L("design:type",Number)],zf.prototype,"richGridItemsPerRow",void 0);
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],zf.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],zf.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],zf.prototype,"ytdReduxBehavior",void 0);_.m([_.Gb("data","richGridItemsPerRow"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],zf.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.m([_.N({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],zf);
_.I(zf,"ytd-hashtag-grid-shelf-renderer",function(){if(hl8!==void 0)return hl8;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return hl8=g},{mode:1});var yzL;var vxm;var kS=function(){var g=_.a.apply(this,arguments)||this;g.visibleVideos=[];g.hiddenVideos=[];g.modern=_.Y("web_modern_buttons");g.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return g};
_.f(kS,_.a);_.S=kS.prototype;_.S.attached=function(){var g=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",g);this.onDarkModeToggledAction(g)};
_.S.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.header":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},visibleVideos:{id:"visible-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},
properties:{metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{metadataColor:"[[videoMetadataColor]]"}}}},hiddenVideos:{id:"hidden-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",
metadataColor:"[[videoMetadataColor]]"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.S.dataChanged=function(){var g=this;this.requestElementsPerRow();var r,E;this.currentColorPalette=this.isDarkTheme?(r=this.data)==null?void 0:r.darkColorData:(E=this.data)==null?void 0:E.lightColorData;var B;if((B=this.currentColorPalette)==null?0:B.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.Lk(this,function(){g.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.S.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.S.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.S.computeIsFirstFeedItem=function(g){return g};
_.S.onDarkModeToggledAction=function(g){g!==this.isDarkTheme&&this.set("isDarkTheme",g);this.data&&(this.currentColorPalette=g?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.S.getCurrentLogo=function(g,r){if(g)return r?g.darkLogoImage:g.lightLogoImage};
_.S.computeTitleStyle=function(g){var r;if((r=this.data)!=null&&r.title&&g&&g.textPrimary!==void 0)return"color:"+_.aJ(g.textPrimary)+";"};
_.S.computeSubtitleStyle=function(g){var r;if((r=this.data)!=null&&r.subtitle&&g&&g.textSecondary!==void 0)return"color:"+_.aJ(g.textSecondary)+";"};
_.S.computeDismissIconStyle=function(g){if(this.data&&this.data.dismissButton&&g&&g.textPrimary!==void 0)return"--yt-button-color:"+_.aJ(g.textPrimary)+";"};
_.S.computeOverflowButtonStyle=function(g){if(this.data&&this.data.overflowButton&&g&&g.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.aJ(g.textPrimary)+";--yt-spec-icon-active-other:"+_.aJ(g.textPrimary)+";"};
_.S.computeBackgroundStyle=function(g){if(g&&this.data){var r="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var E=_.Sk((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);E&&(r+='background-image:url("'+E+'");')}g.backgroundColor!==void 0&&(r+="background-color:"+_.XT(g.backgroundColor)+";");return r}};
_.S.computeButton=function(){var g,r=Object.assign({},_.n((g=this.data)==null?void 0:g.showMoreButton,_.Fd));if(this.modern&&r){r.style="STYLE_MONO_OUTLINE";var E;if(g=(E=this.currentColorPalette)==null?void 0:E.textPrimary)r.colorData={basicColorPaletteData:{foregroundTitleColor:g,borderColor:g}}}return r};
_.S.shouldShowBottomButton=function(g,r){return!(g==null?0:g.header)&&!(g==null||!g.primaryButton)&&r<3};
_.S.checkExpanded=function(g){this.isExpanded=g&&g.content?this.hiddenVideos.length===0:!0};
_.S.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.S.getLogoHeight=function(g){return this.logoWithPadding(g)?"26":"20"};
_.S.getLogoImageId=function(g){return this.logoWithPadding(g)?"logo-image-with-padding":"logo-image"};
_.S.computeHasSectionHeader=function(g){return!!g.header};
_.S.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var g;if((g=this.data.primaryButton)==null?0:g.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 r;((r=this.data.dismissButton)==null?0:r.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var E,B;((E=this.data)==null?0:(B=E.primaryButton)==null?0:B.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.S.setVisibleVideos=function(g){if(this.data&&this.data.content)if(this.data.content.length){var r=this.data.content.length;this.data.header?g?(this.visibleVideos=this.data.content.slice(0,Math.min(r,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(r,this.slimItemsPerRow),r)):(this.visibleVideos=this.data.content.slice(0,Math.min(r,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(r,this.elementsPerRow),r)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(r,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(r,this.elementsPerRow),r)):(this.visibleVideos=this.data.content.slice(0,Math.min(r,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(r,this.elementsPerRow-1),r))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.S.setHasMovieRenderer=function(){var g;if((g=this.data)!=null&&g.content){var r;this.hasMovieRenderer=!!_.n((r=this.data)==null?void 0:r.content[0],_.wj4)}else this.hasMovieRenderer=!1};
_.S.requestElementsPerRow=function(){_.Sh(this.hostElement,"yt-request-elements-per-row")};
_.S.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var g=_.U(this.hiddenMediaRenderers),r=g.next();!r.done;r=g.next())r.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(g=_.S3(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&g.focus()}};
_.S.updateTitleSpec=function(){var g;(g=this.data)!=null&&g.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.S.logoWithPadding=function(g){var r,E,B;return(g=(r=this.getCurrentLogo(g,this.isDarkTheme))==null?void 0:(E=r.thumbnails)==null?void 0:(B=E[0])==null?void 0:B.height)&&g%31===0?!0:!1};
_.S.onUpdateElementsPerRowAction=function(g,r,E){g&&this.elementsPerRow!==g&&(this.elementsPerRow=g);E&&this.slimItemsPerRow!==E&&(this.slimItemsPerRow=E)};
kS.prototype.slimItemsPerRowChanged=kS.prototype.slimItemsPerRowChanged;kS.prototype.elementsPerRowChanged=kS.prototype.elementsPerRowChanged;kS.prototype.dataChanged=kS.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],kS.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],kS.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ji),_.L("design:type",Object)],kS.prototype,"ytdDismissibleItemBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],kS.prototype,"actionHandlerBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],kS.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],kS.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],kS.prototype,"currentColorPalette",void 0);_.m([_.K(),_.L("design:type",Array)],kS.prototype,"visibleVideos",void 0);_.m([_.K(),_.L("design:type",Array)],kS.prototype,"hiddenVideos",void 0);
_.m([_.K(),_.L("design:type",Object)],kS.prototype,"primaryButton",void 0);_.m([_.K({reflectToAttribute:!0,value:3}),_.L("design:type",Number)],kS.prototype,"elementsPerRow",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],kS.prototype,"isDarkTheme",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],kS.prototype,"isExpanded",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],kS.prototype,"largeTitle",void 0);
_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],kS.prototype,"hasMovieRenderer",void 0);_.m([_.K(),_.L("design:type",Number)],kS.prototype,"slimItemsPerRow",void 0);_.m([_.K(),_.L("design:type",Boolean)],kS.prototype,"showLightVideoMetadata",void 0);_.m([_.K(),_.L("design:type",Boolean)],kS.prototype,"showDarkVideoMetadata",void 0);_.m([_.K(),_.L("design:type",Number)],kS.prototype,"videoMetadataColor",void 0);
_.m([_.K({reflectToAttribute:!0,selector:_.Jj}),_.L("design:type",Boolean)],kS.prototype,"miniMode",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.L("design:type",Boolean)],kS.prototype,"isFirstFeedItem",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.L("design:type",Boolean)],kS.prototype,"hasSectionHeader",void 0);
_.m([_.K({reflectToAttribute:!0,value:!0}),_.L("design:type",Boolean)],kS.prototype,"roundedContainer",void 0);_.m([_.kk("#visible-video-container ytd-rich-grid-media"),_.L("design:type",Array)],kS.prototype,"visibleMediaRenderers",void 0);_.m([_.kk("#hidden-video-container ytd-rich-grid-media"),_.L("design:type",Array)],kS.prototype,"hiddenMediaRenderers",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],kS.prototype,"modern",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],kS.prototype,"dataChanged",null);_.m([_.Gb("elementsPerRow"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],kS.prototype,"elementsPerRowChanged",null);_.m([_.Gb("slimItemsPerRow"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],kS.prototype,"slimItemsPerRowChanged",null);
_.m([_.N({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],kS);
_.I(kS,"ytd-brand-video-shelf-renderer",function(){if(vxm!==void 0)return vxm;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return vxm=g},{mode:1});var dxM;var HB=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return g};
_.f(HB,_.a);_.S=HB.prototype;_.S.attached=function(){var g=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",g);this.onDarkModeToggledAction(g)};
_.S.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.S.dataChanged=function(){this.requestElementsPerRow();var g,r;this.currentColorPalette=this.isDarkTheme?(g=this.data)==null?void 0:g.darkColorData:(r=this.data)==null?void 0:r.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.S.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.S.computeIsFirstFeedItem=function(g){return g};
_.S.onDarkModeToggledAction=function(g){g!==this.isDarkTheme&&this.set("isDarkTheme",g);this.data&&(this.currentColorPalette=g?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(g),this.updateButtonPalette())};
_.S.shouldShowThumbnailInMetadata=function(g){return g<=1};
_.S.computeVideoMetadataColor=function(){if(this.data){var g;if((g=this.currentColorPalette)==null?0:g.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.S.computeTitleStyle=function(g){var r;if((r=this.data)!=null&&r.title&&g&&g.textPrimary!==void 0)return"color:"+_.aJ(g.textPrimary)+";"};
_.S.computeSubtitleStyle=function(g){var r;if((r=this.data)!=null&&r.subtitle&&g&&g.textSecondary!==void 0)return"color:"+_.aJ(g.textSecondary)+";"};
_.S.computeOverflowButtonStyle=function(g){if(this.data&&this.data.overflowButton&&g.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.aJ(g.textPrimary)+";--yt-spec-icon-active-other:"+_.aJ(g.textPrimary)+";"};
_.S.computeBackgroundStyle=function(g){if(g&&this.data){var r="";g.backgroundColor!==void 0&&(r+="background-color:"+_.XT(g.backgroundColor)+";");return r}};
_.S.computeHasOverflowButton=function(g){return!!g.overflowButton};
_.S.updateButtonPalette=function(){if(this.data){var g;if((g=this.data.primaryButton)==null?0:g.buttonRenderer){var r;if((r=this.currentColorPalette)==null?0:r.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var E;((E=this.currentColorPalette)==null?0:E.primaryButtonStyleType)?(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0):this.data.primaryButton.buttonRenderer.style="STYLE_MONO_TONAL"}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}}};
_.S.requestElementsPerRow=function(){_.Sh(this.hostElement,"yt-request-elements-per-row")};
_.S.updateTitleSpec=function(){var g;(g=this.data)!=null&&g.titleLength&&(this.titleSize=this.elementsPerRow<=3?this.data.titleLength<=10?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL":this.data.titleLength<=13?"TITLE_SIZE_LARGE":this.data.titleLength<=30?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL")};
_.S.onUpdateElementsPerRowAction=function(g){g&&this.elementsPerRow!==g&&(this.elementsPerRow=g)};
HB.prototype.elementsPerRowChanged=HB.prototype.elementsPerRowChanged;HB.prototype.dataChanged=HB.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],HB.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],HB.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ji),_.L("design:type",Object)],HB.prototype,"ytdDismissibleItemBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],HB.prototype,"actionHandlerBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],HB.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],HB.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],HB.prototype,"currentColorPalette",void 0);_.m([_.K(),_.L("design:type",Object)],HB.prototype,"primaryButton",void 0);
_.m([_.K({reflectToAttribute:!0,value:3}),_.L("design:type",Number)],HB.prototype,"elementsPerRow",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],HB.prototype,"isDarkTheme",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],HB.prototype,"titleSize",void 0);_.m([_.K(),_.L("design:type",Number)],HB.prototype,"videoMetadataColor",void 0);_.m([_.K({reflectToAttribute:!0,selector:_.Jj}),_.L("design:type",Boolean)],HB.prototype,"miniMode",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.L("design:type",Boolean)],HB.prototype,"isFirstFeedItem",void 0);_.m([_.K({reflectToAttribute:!0,value:!0}),_.L("design:type",Boolean)],HB.prototype,"roundedContainer",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.L("design:type",Boolean)],HB.prototype,"hasOverflowButton",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],HB.prototype,"dataChanged",null);_.m([_.Gb("elementsPerRow"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],HB.prototype,"elementsPerRowChanged",null);_.m([_.N({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],HB);
_.I(HB,"ytd-brand-video-singleton-renderer",function(){if(dxM!==void 0)return dxM;var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return dxM=g},{mode:_.My("kevlar_poly_si_batch_j070")?1:2});var TQz;var gs6=_.dG(function(g){var r=g.data;return _.G(_.vw,{data:function(){return r().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(r().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var E=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":E=88;break a;default:E=88}return E},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return r().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Gi"),EsF=_.dG(function(g){var r=g.metadataRow;
var E=g.delimiter;return _.G(_.Ra,{each:function(){return r().textParts||[]},
keyBy:"INDEX"},function(B,w){return _.G(_.wW,null,_.G(_.hf,{text:B,noWrap:!0,userInput:!0}),_.G(rbM,{delimiter:E,max:function(){return r().textParts.length},
index:w}))})},"Hi"),rbM=_.dG(function(g){var r=g.delimiter;
var E=g.max;var B=g.index;return _.G(_.p,{cond:function(){return(r==null?void 0:r())&&E()-1>B()},
then:function(){return _.G("span",null,r)}})},"Ii"),BP6=_.dG(function(g){var r=g.data;
g={};return _.G("yt-profile-page-header-information-view-model",{class:_.QY("profile-page-header-information-view-model-wiz",(g["profile-page-header-information-view-model-wiz--mobile"]=!1,g))},_.G(_.p,{cond:function(){return r().onTap},
then:function(){return _.G(_.NQ,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.xP(r().onTap)}},_.G(_.Af,{data:function(){return r().thumbnail}},{profilePageHeaderThumbnailViewModel:gs6}))},
else:function(){return _.G("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.G(_.Af,{data:function(){return r().thumbnail}},{profilePageHeaderThumbnailViewModel:gs6}))}}),_.G("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.G(_.p,{cond:function(){return r().onTap},
then:function(){return _.G(_.Af,{data:function(){return r().title}},{profilePageHeaderTitleViewModel:function(E){var B=E.data;
return _.G(_.NQ,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.xP(B().onTap)}},_.G(_.hf,{text:function(){return B().title}}))}})},
else:function(){return _.G(_.Af,{data:function(){return r().title}},{profilePageHeaderTitleViewModel:function(E){var B=E.data;
return _.G(_.hf,{text:function(){return B().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.G(_.Af,{data:function(){return r().metadata}},{profilePageHeaderMetadataViewModel:function(E){var B=E.data;
return _.G(_.p,{cond:function(){return B().metadataRows},
then:function(w){return _.G("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.G(_.Ra,{each:w,keyBy:"INDEX"},function(O,M){return _.G(_.wW,null,_.G(EsF,{metadataRow:O,delimiter:" \u2022 "}),_.G(rbM,{delimiter:" \u2022 ",max:function(){return w().length},
index:M}))}))}})}})))},"Ji");
BP6.idomCompat=!0;_.BK(BP6,"yt-profile-page-header-information-view-model",{props:{data:_.cP}});var pS=function(){return _.a.apply(this,arguments)||this};
_.f(pS,_.a);pS.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],pS.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],pS.prototype,"data",void 0);_.m([_.N({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],pS);
_.I(pS,"ytd-effect-pivot-header-view-model",function(){if(TQz!==void 0)return TQz;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return TQz=
g},{mode:1});var wlz;var YS=function(){return _.a.apply(this,arguments)||this};
_.f(YS,_.a);YS.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],YS.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],YS.prototype,"data",void 0);_.m([_.N({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],YS);
_.I(YS,"ytd-source-pivot-header-renderer",function(){if(wlz!==void 0)return wlz;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return wlz=g},{mode:1});_.SJF=_.dG(function(g){var r=g.data;var E=function(){var B;return _.Km((B=r())==null?void 0:B.rendererContext)};
g={};return _.G("content-list-item-view-model",{el:_.T$(_.xo(function(){return r().rendererContext})),
class:_.QY("ytContentListItemViewModelHost",(g.ytContentListItemViewModelTappable=E,g)),role:function(){return E()?"listitem":void 0},
tabindex:function(){return E()?0:void 0}},_.G("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.G("div",{class:"ytContentListItemViewModelImageContainer"},_.G(_.p,{cond:function(){return r().image},
then:function(B){return _.G(_.vw,{data:B,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.G(_.Af,{data:function(){var B;
return(B=r())==null?void 0:B.avatar}},{avatarViewModel:_.sV})),_.G("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.G("div",{class:_.QY("ytContentListItemViewModelTitle",function(){a:{switch(r().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var B="ytContentListItemViewModelProminentTitle";
break a}B=void 0}return B})},_.G(_.hf,{text:function(){return r().title}})),_.G("div",{class:"ytContentListItemViewModelMetadata"},_.G(_.Af,{data:function(){return r().metadata}},{contentMetadataViewModel:function(B){return _.G(_.v4,{data:B.data,
layout:1})}})))),_.G("div",{class:"ytContentListItemViewModelActionButton"},_.G(_.Af,{data:function(){var B;
return(B=r())==null?void 0:B.actionButton}},{buttonViewModel:_.MV,
toggleButtonViewModel:_.RY})))},"Ki");_.BK(_.dG(function(g){var r=function(){return g.data().background},E=function(){return g.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},B=function(){return g.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.G("yt-card-view-model",{class:_.QY("ytCardViewModelHost",g.className)},_.G(_.d$,{contentId:function(){return g.data().contentId}},function(){return _.G("div",{class:_.QY("ytCardViewModelCardViewModelInner",function(){return kTL(g.data().cardStyle)})},_.G(_.Af,{data:r},{cinematicContainerViewModel:function(w){return _.G(_.UTw,{data:w.data})}}),_.G("div",{class:"ytCardViewModelContentWrapper"},_.G(_.p,{cond:function(){return!E()},
then:function(){var w={};return _.G("div",{class:"ytCardViewModelTopContent"},_.G(_.Af,{data:function(){return g.data().topContent}},{contentListItemViewModel:function(O){return _.G(_.SJF,{data:O.data})}}),_.G("div",{class:_.QY("ytCardViewModelInlineTrailingAction",(w.ytCardViewModelInlineCenterTrailingAction=B,w))},_.G(_.Af,{data:function(){return g.data().trailingAction}},{buttonViewModel:function(O){return _.G(_.MV,{data:O.data})}})))}}),_.G("div",{class:"ytCardViewModelBodyContent"},_.G(_.Af,
{data:function(){return g.data().bodyContent}},{contentListItemViewModel:function(w){return _.G(_.SJF,{data:w.data})}}))),_.G(_.p,{cond:function(){return E()},
then:function(){return _.G("div",{class:"ytCardViewModelOverlayTrailingAction"},_.G(_.Af,{data:function(){return g.data().trailingAction}},{buttonViewModel:function(w){return _.G(_.MV,{data:w.data})}}))}}))}))},"Li"),"yt-card-view-model",{props:{data:_.cP,
className:_.cP}});_.BK(_.dG(function(g){var r=function(){return _.n(g.data().flowRoot,tZz)};
_.Jk(function(){var E=r(),B=function(){},w=function(){};
if(E){var O,M,u,l=((u=_.n((O=r())==null?void 0:(M=O.steps)==null?void 0:M[0],_.pp6))==null?void 0:u.stepId)||"";Rl8(E,l);B=sD8(E);w=fFM(E)}_.J5(function(){var Q=r();Q&&_.Zz().dispatch(_.za("flowStateEntity",Q.flowStateEntityKey));B();B=function(){};
w();w=function(){}})});
return _.G("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.G(_.d$,{contentId:function(){return g.data().contentId}},function(){return _.G("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.G(_.p,{cond:r,
then:function(E){return _.G(_.QjF,{data:E})}}))}))},"Mi"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.cP}});_.BK(_.dG(function(){return _.G("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.G("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.G("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.G(_.B25,null)),_.G(_.f5n,{data:{rows:1},isExploreHub:!0}))},"Ni"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.BK(_.dG(function(g){var r=g.data;var E=g.standardUnitMinWidth;g=_.VI("ytd-chips-shelf-with-video-shelf-renderer");var B=_.U((0,_.bQz)(r)),w=B.next().value,O=B.next().value,M=function(){var l,Q=(l=w())==null?void 0:l.contents;return Q==null||Q.length===0},u=function(){O(Object.assign({},w(),{contents:[]}))};
_.gH(g,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var l=_.n(r().chipsShelf,el5);if(l!=null&&l!=null&&l.autoselectChipOnVisible){var Q,z,k=_.n(l==null?void 0:(Q=l.contents)==null?void 0:Q[(z=l.autoselectedChipIndex)!=null?z:0],_.KY);k&&k.tapCommand&&_.I3(k.tapCommand)}}});
return _.G("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:g},_.G(_.d$,{contentId:function(){return r().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.G("div",null,_.G("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.G(_.Af,{data:function(){return r().header}},{sectionHeaderViewModel:function(l){return _.G(_.rm,{data:l.data,
disableHorizontalPadding:!0})}})),_.G("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.G(_.Af,{data:function(){return r().chipsShelf}},{chipsShelfViewModel:function(l){return _.G(_.bAm,{data:l.data,
callback:u,enableSingleChipSelection:!0})}})),_.G("div",null,_.G(_.p,{cond:M,
then:function(){return _.G("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.G(_.f5n,{data:{rows:1},isExploreHub:!0}))}}),_.G(_.Af,{data:function(){var l;
return(l=w())==null?void 0:l.contents}},{richShelfRenderer:function(l){return _.G(_.b66,{data:l.data,
isInnerShelf:!0,standardUnitMinWidth:E})}})))}))},"Oi"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.cP,
standardUnitMinWidth:_.cP}});var RK=function(){return _.a.apply(this,arguments)||this};
_.f(RK,_.a);
RK.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},messageRenderer:"ytd-message-renderer",
alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
RK.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.m([_.P(_.Ai),_.L("design:type",Object)],RK.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],RK.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Xe),_.L("design:type",Object)],RK.prototype,"ytContinuationHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],RK.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],RK.prototype,"data",void 0);
_.m([_.K(),_.L("design:type",Number)],RK.prototype,"standardUnitMinWidth",void 0);_.m([_.N({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],RK);
_.I(RK,"ytd-rich-section-renderer",function(){if(yzL!==void 0)return yzL;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return yzL=g},{mode:_.My("kevlar_poly_si_batch_j029")?
1:2});_.BK(_.xDF,"yt-profile-identity-info-view-model",{props:{data:_.cP,hideDivider:_.cP}});_.BK(_.zD6,"yt-page-header-view-model",{props:{data:_.cP,noPadding:_.cP,enableBanner:_.cP,cinematicContainerTopbarOffset:_.cP,allowCinematicContainerOverflow:_.cP,displayAsSidebar:_.cP,displayAsPanel:_.cP}});_.BK(_.dG(function(g){var r=g.data;var E=function(){var w;return(w=r().numColumns)!=null?w:2},B=function(){return E()>1?3:2};
g={};return _.G("ytd-rich-grid-group",{class:_.QY("ytdRichGridGroupHost",(g.ytdRichGridGroupHostFirstColumn=function(){return r().colIndex===0},g)),
style:_.Rl({"--ytd-rich-grid-group-num-columns":E,"--ytd-rich-grid-items-per-group":B})},_.G("div",{class:"ytdRichGridGroupContents"},_.G(_.Af,{data:function(){var w;return(w=r().contents)==null?void 0:w.slice(0,B())}},{richItemRenderer:function(w){return _.G(_.jG6,{data:w.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Pi"),"ytd-rich-grid-group",{props:{data:_.cP}});var nS=function(){var g=_.a.apply(this,arguments)||this;g.resizeOnObserverInit=!1;g.isInlinePreviewDisabled=_.Y("web_disable_inline_preview");g.disableStickyFilterBar=!1;g.transparentBackgroundChipsBar=!1;g.hideChipsBar=!1;g.isWatchDefaultLayout=!0;g.continuationShowButton=!1;g.rowReducedHorizontalMargin=!1;g.useCompactList=!1;g.manualDownloadsPresent=!1;g.smartDownloadsPresent=!1;g.shouldRenderDownloadsBanner=!1;g.hasOptedIntoSmartDownloads=!1;g.elementsPerRow=4;g.typographyBump=!1;g.showGnomeContents=
!1;g.showExploreHubContents=!1;g.slimItemsPerRow=1;g.pageLoadingFromNavigation=!1;g.loggingRefactor=_.Y("kevlar_rich_grid_logging_fix");g.resizeObserver=null;g.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"};g.rendererToTagNameMap=
new Map(Object.entries(g.contentMapping()).map(function(r){var E=_.U(r);r=E.next().value;E=E.next().value;return[r,E.component]}));
g.insertedContent=new Map;return g};
_.f(nS,_.a);_.S=nS.prototype;_.S.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var g=_.U(_.S3(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),r=g.next();!r.done;r=g.next())r.value.useCompactList=this.useCompactList};
_.S.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var g=_.U(_.S3(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),r=g.next();!r.done;r=g.next())r=r.value,r.sizing=this.sizing,r.typographyBump=this.typographyBump};
_.S.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.S.contentMapping=function(){return{richGroupRenderer:{component:"ytd-rich-grid-group"},richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",isSlimGrid:"[[isSlimGrid]]",isCompactGrid:"[[isCompactGrid]]",isShortsPanelGrid:"[[isShortsPanel]]",noGutterMargins:"[[noRichItemGutterMargins]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",useCompactList:"[[useCompactList]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",
isHomeGrid:"[[isHomePage]]"},params:{renderedFromRichGrid:!0}},richSectionRenderer:{component:"ytd-rich-section-renderer",properties:{standardUnitMinWidth:"[[data.minItemWidth]]"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",showButton:"[[continuationShowButton]]",continuationTriggerOffset:"[[continuationTriggerOffset]]"}}}};
_.S.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]"}},chipBarViewModel:{component:"chip-bar-view-model",params:{className:"ytd-rich-grid-renderer chip-bar"}},pageHeaderViewModel:{component:"yt-page-header-view-model",params:{displayAsPanel:!0}},profileIdentityInfoViewModel:{component:"yt-profile-identity-info-view-model"}}},
bigYoodleData:{id:"big-yoodle",mapping:{brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",statementBannerRenderer:"ytd-statement-banner-renderer"},reuseComponents:!1},mastheadData:{id:"masthead-ad",mapping:{bannerPromoRenderer:"ytd-banner-promo-renderer",adSlotRenderer:"ytd-ad-slot-renderer"},reuseComponents:!1},shownItems:{id:"contents",mapping:this.contentMapping(),reuseComponents:!1}}};
_.S.attached=function(){document.addEventListener("yt-page-type-changed",_.Do(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$19458_throttledOnResize=new _.VU(this.resizeObserved,_.wM("rich_grid_resize_delay_ms",50),this)};
_.S.detached=function(){var g;(g=this.resizeObserver)==null||g.disconnect();document.removeEventListener("yt-page-type-changed",_.Do(this,this.onPageChange))};
_.S.insertRichSection=function(g){var r=g.richItemTargetId;g=g.richSectionRendererToInsert;r&&g&&(this.insertedContent.set(r,{content:g,timestamp:Date.now()}),this.reflowContent())};
_.S.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.S.computeIsInlinePreviewEnabled=function(g,r,E){return _.Y("web_disable_inline_preview")?!1:!E&&_.qx$({miniplayerIsActive:g,miniplayerPlaybackState:r})};
_.S.computeSizing=function(){var g=_.mxl(this.data);if(g||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return g?this.useCompactList?"COMPACT":g:this.miniMode?"COMPACT":_.Y("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.S.updateItemMinAndMaxWidth=function(){var g=_.wM("rich_grid_max_item_width",500);g>0&&_.ua(this.hostElement,{"--ytd-rich-grid-item-max-width":g+"px"});var r;g=this.getRichItemMinWidth((r=this.hostElement)==null?void 0:r.clientWidth);g>0&&_.ua(this.hostElement,{"--ytd-rich-grid-item-min-width":g+"px"})};
_.S.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.S.resizeObserved=function(){_.US(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.S.navigateBackToHome=function(){_.Y("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.Y("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var g=_.rM().resolve(_.vK).isOnWatch(),r,E=((r=_.QP(location.pathname))==null?void 0:r.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(E)||g)&&this.gnomeContents&&_.Y("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);g&&this.exploreHubContents&&_.Y("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.Zz().dispatch(_.Bs({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.S.onPageChange=function(){var g=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.Y("disable_chip_select_on_nav")||_.US(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.F6.addJob(function(){g.pageLoadingFromNavigation=!1;_.Y("disable_chip_select_on_nav")&&_.Y("h5_reset_cache_and_filter_before_update_masthead")&&g.resetCacheAndIsFilteredFeed();g.setMasthead();g.maybeSetBigYoodle();g.forceRefreshAndLog();g.terminateVideoPreview();_.Y("web_hide_gnome_until_user_navigates_back_to_home")&&
(g.dataChanged(),_.Lk(g,function(){if(g.showGnomeContents){var r=Array.from(_.S3(g.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(B){B=_.S3(B).querySelector("ytd-rich-shelf-renderer");return!!B&&B.isGnomeShelf()});
if(r){r=r.offsetTop-g.contentsElement.offsetTop;var E=_.rM().resolve(_.vK).getCurrentPage();E&&E.getPageScrollingElement().scrollTo({top:r,behavior:"smooth"})}}}));
_.Y("web_hide_explore_hub_until_user_navigates_back_to_home")&&(g.dataChanged(),_.Lk(g,function(){if(g.showExploreHubContents&&!_.Y("web_explore_hub_no_scroll")){var r=Array.from(_.S3(g.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(B){return!!B.querySelector("ytd-talk-to-recs-flow-renderer")});
if(r){r=r.offsetTop-g.contentsElement.offsetTop;var E=_.rM().resolve(_.vK).getCurrentPage();E&&E.getPageScrollingElement().scrollTo({top:r,behavior:"smooth"})}}}))},8)):((_.Y("web_hide_gnome_until_user_navigates_back_to_home")||_.Y("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.S.dataChanged=function(){var g=this,r=_.wM("web_rich_grid_row_margin",0);r>0&&_.ua(this.hostElement,{"--ytd-rich-grid-row-margin":r+"px"});_.US(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.Lk(this,function(){g.updateRichItemGridPositions();g.contentsElement&&_.ua(g.hostElement,{"--ytd-rich-grid-content-offset-top":g.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.S.initResizeObserver=function(){var g=this;if(window.ResizeObserver){var r;(r=this.resizeObserver)==null||r.disconnect();var E=!1;this.resizeObserver=new ResizeObserver(function(){if(E){var B;(B=g.resizeObserver)==null||B.disconnect();var w;(w=g.JSC$19458_throttledOnResize)==null||w.fire();requestAnimationFrame(function(){var M;(M=g.JSC$19458_throttledOnResize)==null||M.fire();g.initResizeObserver()})}else if(E=!0,g.resizeOnObserverInit){var O;
(O=g.JSC$19458_throttledOnResize)==null||O.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.S.contentLengthChanged=function(){if(_.Y("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.US(this.hostElement,"ytd-rich-item-index-update-action")};
_.S.updateElementsPerRow=function(){_.US(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.Bs({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.Bs({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.S.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.S.onRichShelfRendererCollapse=function(g){if(this.shownItems){var r=g.detail;g=this.shownItems.findIndex(function(B){var w,O;return((O=_.n(B==null?void 0:(w=B.richSectionRenderer)==null?void 0:w.content,_.$fD))==null?void 0:O.trackingParams)===r});
var E=g+1;g<0||E>=this.contentsElement.children.length||!this.shownItems[E].richItemRenderer||this.contentsElement.children[E].scrollIntoView({behavior:"smooth",block:"start"})}};
_.S.onSoftReloadPage=function(){this.scrollUpToTop()};
_.S.handleRerenderDownloadsData=function(){_.Y("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.S.handlePlaylistRemoveVideosAction=function(g){var r;if(((r=_.n(g,_.ixA))==null?0:r.setVideoIds)&&this.data&&this.data.contents){g=_.n(g,_.ixA).setVideoIds;for(r=this.data.contents.length-1;r>=0;){var E=_.n(this.data.contents[r],_.s7);(E=E&&_.n(E.content,_.t9))&&E.setVideoId&&g.includes(E.setVideoId)&&this.splice("data.contents",r,1);r--}this.updateIndices()}};
_.S.updateIndices=function(){if(this.data&&this.data.contents)for(var g=0;g<this.data.contents.length;g++)this.set("data.contents."+g+".richItemRenderer.index",_.Lf(String(g+1)))};
_.S.hasTopRowInlinePlayableVideoWithEndorsement=function(g){var r;return!((r=g.slice(0,this.getItemsPerRow()))==null||!r.some(function(E){var B;E=_.n(E==null?void 0:(B=E.richItemRenderer)==null?void 0:B.content,_.Wy);var w;return(E==null?void 0:E.inlinePlaybackEndpoint)&&(E==null?void 0:(w=E.thumbnailOverlays)==null?void 0:w.some(function(O){return O.thumbnailOverlayEndorsementRenderer}))}))};
_.S.refreshGridLayoutNew=function(g,r,E,B){var w=B.postsPerRow;var O=B.slimItemsPerRow;var M=B.gameCardsPerRow;B=B.miniGameCardsPerRow;var u;if((u=this.data)==null||!u.contents||!this.containerWidth)return!1;var l;if((l=this.data.responsiveContainerConfiguration)==null?0:l.responsiveSize){var Q=_.FUl(this.data.responsiveContainerConfiguration,this.containerWidth),z;u=_.cX(Object.assign({},Q,{standardUnitMinWidth:(z=this.data)==null?void 0:z.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&Q.isCompactList)}else u=_.cX({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(Q=this.data)==null?void 0:Q.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=u.typographyBump;z=!1;if(g||this.elementsPerRow!==u.numItems||this.postsPerRow!==w||this.slimItemsPerRow!==O||this.gameCardsPerRow!==
M||this.miniGameCardsPerRow!==B||this.gutter!==u.gutter)z=this.elementsPerRow!==u.numItems,this.elementsPerRow=u.numItems,this.postsPerRow=w,this.slimItemsPerRow=O,this.gameCardsPerRow=M,this.miniGameCardsPerRow=B,this.gutter=u.gutter,this.itemWidth=u.itemWidth,this.reflowContent(r),_.ua(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":u.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(E);this.ytdReduxBehavior.dispatch(_.Bs({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:u.maxContainerWidth}));return z};
_.S.refreshGridLayout=function(g,r){var E,B=(E=this.hostElement)==null?void 0:E.clientWidth;this.containerWidth=this.adjustRichGridWidth(B,!0);var w;if((w=this.data)==null||!w.contents||!this.containerWidth)return g&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.Y("rg_pending_reflow_ks")&&(g=!0,this.pendingForceReflow=!1);E=this.getRichItemMinWidth(B);var O=this.isShortsPanel?146:194,M=this.getMiniGameCardMinWidth(),u=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
B=E=this.calcElementsPerRow(E,u);(w=E<=3&&this.miniModeAllowed())&&(E=this.calcElementsPerRow(240,4));var l=this.calcMaxSlimElementsPerRow(E,u,this.isDefaultGrid);u=this.calcElementsPerRow(O,l);var Q=this.calcElementsPerRow(this.isCompactGrid?O:154,l);O=this.calcElementsPerRow(this.isCompactGrid?O:M,l);M=!1;if(this.sizing)return this.refreshGridLayoutNew(g,r,w,{postsPerRow:B,slimItemsPerRow:u,gameCardsPerRow:Q,miniGameCardsPerRow:O});if(g||this.elementsPerRow!==E||this.postsPerRow!==B||this.slimItemsPerRow!==
u||this.gameCardsPerRow!==Q||this.miniGameCardsPerRow!==O)M=this.elementsPerRow!==E,this.elementsPerRow=E,this.postsPerRow=B,this.slimItemsPerRow=u,this.gameCardsPerRow=Q,this.miniGameCardsPerRow=O,this.reflowContent(r),this.updateElementsPerRow(),_.ua(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)&&_.ua(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(w);_.US(this.hostElement,"yt-rich-grid-layout-refreshed");return M};
_.S.getRichItemMinWidth=function(g){var r=_.wM("rich_grid_min_item_width",310);if(!_.Y("kevlar_disable_min_width_override")){var E,B;r=(B=(E=this.data)==null?void 0:E.minItemWidth)!=null?B:r}return r+_.CrS(g)};
_.S.calcMaxSlimElementsPerRow=function(g,r,E){return(E===void 0?0:E)?g===1?2:g%2===0?_.Y("web_shorts_2_by_3_reduce_items_per_row")&&g>=4?g/2*3-1:g/2*3:_.Y("web_shorts_2_by_3_reduce_items_per_row")&&g>=3?g+1:g+2:r*2};
_.S.adjustRichGridWidth=function(g,r){var E=_.Y("disable_rich_grid_guide_compensation");if(!this.isWatch&&!E){E=_.rM().resolve(_.gM(_.F0));var B=E==null?void 0:E.guideElement;if(!(!E||E.getData()||B!=null&&B.opened||E.getMiniGuideVisible()))if(E.canFitPersistentGuide(g)&&E.getGuideExpandsAutomatically()){var w,O,M=Number((w=window.getComputedStyle(this.hostElement))==null?void 0:(O=w.getPropertyValue("--app-drawer-width"))==null?void 0:O.replace("px",""));g-=M||0}else if(E.canFitMiniGuide(g)){var u;
w=Number((M=window.getComputedStyle(this.hostElement))==null?void 0:(u=M.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:u.replace("px",""));g-=w||0}}g>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(g-=r?32:48));return g};
_.S.calcElementsPerRow=function(g,r){var E=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),B=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((E+B)/(g+B))||1,r)};
_.S.reflowContent=function(g){var r=this;if(!this.isReflowing){this.isReflowing=!0;var E,B,w=!!((E=this.data)==null?0:(B=E.contents)==null?0:B.some(function(R){return _.n(R,_.gx)}));
E=this.getItemsPerRow();var O;B=(O=this.data)==null?void 0:O.reflowOptions;g&&(_.F4("rgr_s"),_.Lk(this,function(){_.F4("rgr_nrf")}));
g={};(O=_.S3(this.hostElement).querySelector("#contents"))&&(g={contentElement:O,rendererToTagNameMap:this.rendererToTagNameMap});O=(O=this.data.contents)?O.slice():[];var M=(_.Y("web_hide_gnome_behind_feed_filter_chip")||_.Y("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,u=_.Y("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,l=-1,Q=-1;if(this.isHomePage&&u){for(u=0;u<O.length;u++){var z=void 0,k=void 0;_.n((z=O[u])==null?void 0:
(k=z.richSectionRenderer)==null?void 0:k.content,Pr8)&&(Q=u)}Q>-1&&(this.exploreHubContents=O.splice(Q,1))}if(this.isHomePage&&M){for(Q=0;Q<O.length;Q++)k=z=void 0,(u=_.n((z=O[Q])==null?void 0:(k=z.richSectionRenderer)==null?void 0:k.content,_.$fD))&&M&&(k=z=void 0,u=_.n((z=u)==null?void 0:(k=z.contents)==null?void 0:k[0],_.s7),z=void 0,_.n((z=u)==null?void 0:z.content,_.jwT)&&(l=Q));l>-1&&(this.gnomeContents=O.splice(l,1))}var H=ox$(O,E,w,B,this.getRichGridStyle(),g,this.insertedContent);w=function(){r.shownItems=
H;r.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(H),_.Lk(this,w)):w()}};
_.S.getFirstRowItems=function(g){for(var r=[],E=0;E<g.length;E++){var B=void 0,w=void 0,O=void 0,M=void 0,u=void 0,l=void 0;if(((B=g[E])==null?void 0:(w=B.richItemRenderer)==null?void 0:w.rowIndex)===0||((O=g[E])==null?void 0:(M=O.richGroupRenderer)==null?void 0:M.rowIndex)===0||((u=g[E])==null?void 0:(l=u.richSectionRenderer)==null?void 0:l.rowIndex)===0)r.push(g[E]);else break}return r};
_.S.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.S.handleChipCloudChipSelectAction=function(g,r){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.Y("web_hide_gnome_behind_feed_filter_chip")&&(r?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.S.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.Y("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.S.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.Y("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.S.terminateVideoPreview=function(){_.US(this.hostElement,"yt-terminate-video-preview-action")};
_.S.updateRichItemGridPositions=function(){var g={gridData:{gridColumnCount:this.elementsPerRow}},r;if((r=this.data)==null?0:r.trackingParams)this.loggingRefactor?_.pW().stateChanged(this.data.trackingParams,g):(r=_.PE())&&_.hg(r,_.fW(this.data.trackingParams),g);_.US(this.hostElement,"ytd-rich-item-index-update-action")};
_.S.miniModeAllowed=function(){return _.Y("disable_channels_mini_mode")?!1:this.isChannelPage};
_.S.getMiniGameCardMinWidth=function(){return 154};
_.S.updateMiniMode=function(g){this.miniMode=this.miniModeAllowed()&&g;this.ytdReduxBehavior.dispatch(_.Bs({type:"SET_RICH_GRID_MINI_MODE",payload:g}))};
_.S.isCurrentPage=function(){return location.pathname===this.pagePath};
_.S.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var g=_.rM().resolve(_.vK).getCurrentPage();g&&g.setScrollTop(0)}};
_.S.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.S.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.S.maybeSetBigYoodle=function(){var g,r=(g=this.data)==null?void 0:g.bigYoodle;this.bigYoodleData!==r&&(this.bigYoodleData=r)};
_.S.setMasthead=function(){var g;((g=this.data)==null?0:g.masthead)?this.mastheadData=this.data.masthead:_.Y("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.S.getRichGridStyle=function(){var g,r;return(r=(g=this.data)==null?void 0:g.style)!=null?r:"RICH_GRID_STYLE_UNKNOWN"};
_.S.onIsShortsGridChange=function(){var g=this.ytdReduxBehavior,r=g.dispatch,E=this.getRichGridStyle();r.call(g,_.Bs({type:"SET_RICH_GRID_STYLE",payload:E}))};
_.hx.Object.defineProperties(nS.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var g;return(((g=this.data)==null?void 0:g.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var g;return(((g=this.data)==null?void 0:g.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var g=_.rM().resolve(_.vK).getCurrentPage(),r,E,B;return(((r=this.data)==null?void 0:r.targetId)==="browse-feedFEsfv_audio_pivot"||_.Y("web_enable_channel_pivot_panel")&&((E=this.data)==null?void 0:E.targetId)==="browse-feedFEsfv_channel_pivot"||_.Y("web_enable_effect_pivot_panel")&&((B=this.data)==null?void 0:B.targetId)==="browse-feedFEsfv_effect_pivot")&&(g==null?void 0:g.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.Y("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 g;return!((g=this.data)==null?0:g.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var g;return((g=_.rM().resolve(_.vK).getCurrentPage())==null?void 0:g.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var g;return((g=_.rM().resolve(_.vK).getCurrentPage())==null?void 0:g.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var g;return this.hideChipsBar||(((g=this.data)==null?void 0:g.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.Y("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var g;return(((g=this.data)==null?void 0:g.targetId)||"")==="watch-next-feed"&&!_.Y("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return((g=this.data)==null?0:g.enableContentSpecificAspectRatio)||((r=this.data)==null?0:(E=r.responsiveContainerConfiguration)==null?0:E.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.wM("web_continuation_handler_margin",0):0}}});
nS.prototype.onIsShortsGridChange=nS.prototype.onIsShortsGridChange;nS.prototype.onReloadContinuationFinish=nS.prototype.onReloadContinuationFinish;nS.prototype.reflowContent=nS.prototype.reflowContent;nS.prototype.handleRerenderDownloadsData=nS.prototype.handleRerenderDownloadsData;nS.prototype.onRichShelfRendererCollapse=nS.prototype.onRichShelfRendererCollapse;nS.prototype.onRequestElementsPerRow=nS.prototype.onRequestElementsPerRow;nS.prototype.contentLengthChanged=nS.prototype.contentLengthChanged;
nS.prototype.dataChanged=nS.prototype.dataChanged;nS.prototype.onSizingChange=nS.prototype.onSizingChange;nS.prototype.onUseCompactListChange=nS.prototype.onUseCompactListChange;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],nS.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],nS.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.f7),_.L("design:type",Object)],nS.prototype,"ironResizableBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],nS.prototype,"actionHandlerBehavior",void 0);_.m([_.P(_.Xe),_.L("design:type",Object)],nS.prototype,"ytContinuationHandlerBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],nS.prototype,"componentBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],nS.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],nS.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0,selector:_.Jj}),_.L("design:type",Boolean)],nS.prototype,"miniMode",void 0);_.m([_.K({value:[]}),_.L("design:type",Array)],nS.prototype,"shownItems",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],nS.prototype,"isReflowing",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],nS.prototype,"isFilteredFeed",void 0);_.m([_.K({selector:_.oTl}),_.L("design:type",Boolean)],nS.prototype,"guideIsExpanded",void 0);
_.m([_.K({selectorArgs:["entitySelectorType"],selector:function(g,r){if(_.Y("kevlar_modern_downloads_page")&&r&&r!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(r){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":r=g.entities;var E=_.j9(r),B=_.Aj(r),w=_.PwB(g),O=_.J9S(g),M=_.tfo(g),u=_.Byt(r),l=_.YD(E),Q=_.b1(r);return _.$wl(E,B,u,_.UCL(r),w,O,l,Q,M,_.e0X(g),_.e9(g));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return g=_.j9(g.entities),_.ArS(g);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return g=
_.gTX(g.entities),_.bJl(g);default:_.el(new _.Rj("Error: entitySelectorType defined but not matched in selector.",g,r))}}}),
_.L("design:type",Object)],nS.prototype,"entityDrivenRichGridData",void 0);_.m([_.K(),_.L("design:type",Object)],nS.prototype,"resizeOnObserverInit",void 0);_.m([_.K(),_.L("design:type",Object)],nS.prototype,"bigYoodleData",void 0);_.m([_.K(),_.L("design:type",Object)],nS.prototype,"mastheadData",void 0);_.m([_.K(),_.L("design:type",Boolean)],nS.prototype,"isInlinePreviewDisabled",void 0);_.m([_.K(),_.L("design:type",Object)],nS.prototype,"disableStickyFilterBar",void 0);
_.m([_.K(),_.L("design:type",Object)],nS.prototype,"transparentBackgroundChipsBar",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],nS.prototype,"hideChipsBar",void 0);_.m([_.K(),_.L("design:type",Object)],nS.prototype,"isWatchDefaultLayout",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],nS.prototype,"continuationShowButton",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],nS.prototype,"rowReducedHorizontalMargin",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],nS.prototype,"useCompactList",void 0);_.m([_.K({selector:function(g){return _.Aj(g.entities).length>0}}),
_.L("design:type",Object)],nS.prototype,"manualDownloadsPresent",void 0);_.m([_.K({selector:function(g){return _.j9(g.entities).length>0}}),
_.L("design:type",Object)],nS.prototype,"smartDownloadsPresent",void 0);_.m([_.K({selector:_.J9S}),_.L("design:type",Object)],nS.prototype,"shouldRenderDownloadsBanner",void 0);_.m([_.K({selector:_.PwB}),_.L("design:type",Object)],nS.prototype,"hasOptedIntoSmartDownloads",void 0);_.m([_.Gb("useCompactList"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],nS.prototype,"onUseCompactListChange",null);
_.m([_.Gb("sizing","typographyBump"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],nS.prototype,"onSizingChange",null);_.m([_.K({selector:_.HYB}),_.L("design:type",Number)],nS.prototype,"miniplayerPlaybackState",void 0);_.m([_.K({selector:_.tj}),_.L("design:type",Boolean)],nS.prototype,"miniplayerIsActive",void 0);
_.m([_.K({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.L("design:type",Boolean)],nS.prototype,"isInlinePreviewEnabled",void 0);_.m([_.K({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.L("design:type",String)],nS.prototype,"sizing",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],nS.prototype,"elementsPerRow",void 0);
_.m([_.K(),_.L("design:type",Object)],nS.prototype,"typographyBump",void 0);_.m([_.K(),_.L("design:type",Number)],nS.prototype,"itemWidth",void 0);_.m([_.zb("#header"),_.L("design:type",HTMLElement)],nS.prototype,"headerElement",void 0);_.m([_.zb("#contents"),_.L("design:type",HTMLElement)],nS.prototype,"contentsElement",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],nS.prototype,"dataChanged",null);
_.m([_.Yk("data.contents.length"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],nS.prototype,"contentLengthChanged",null);_.m([_.ob("yt-request-elements-per-row"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],nS.prototype,"onRequestElementsPerRow",null);
_.m([_.ob("yt-rich-shelf-renderer-collapse"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],nS.prototype,"onRichShelfRendererCollapse",null);_.m([_.Yk("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],nS.prototype,"handleRerenderDownloadsData",null);
_.m([_.W("data"),_.L("design:type",String),_.L("design:paramtypes",[])],nS.prototype,"entitySelectorType",null);_.m([_.K({reflectToAttribute:!0}),_.W("data.targetId"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],nS.prototype,"isSub",null);_.m([_.K({reflectToAttribute:!0}),_.W("data.targetId"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],nS.prototype,"isWatch",null);
_.m([_.K({reflectToAttribute:!0}),_.W("data.targetId"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],nS.prototype,"isShortsPanel",null);_.m([_.K({reflectToAttribute:!0}),_.W("isWatch"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],nS.prototype,"reducedTopMargin",null);_.m([_.K({reflectToAttribute:!0}),_.W("data","isWatch","isWatchDefaultLayout"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],nS.prototype,"noTopMargin",null);
_.m([_.K({reflectToAttribute:!0}),_.W("isInlinePreviewEnabled","shownItems"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],nS.prototype,"topRowEndorsement",null);_.m([_.W("data.header"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],nS.prototype,"hideHeader",null);_.m([_.ob("yt-rich-grid-reflow"),_.L("design:type",Function),_.L("design:paramtypes",[Boolean]),_.L("design:returntype")],nS.prototype,"reflowContent",null);
_.m([_.ob("yt-reload-continuation-finish"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],nS.prototype,"onReloadContinuationFinish",null);_.m([_.W("data"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],nS.prototype,"isSlimGrid",null);_.m([_.W("data"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],nS.prototype,"isShortsGrid",null);
_.m([_.W("data","isSlimGrid","isShortsGrid"),_.K(),_.L("design:type",Boolean),_.L("design:paramtypes",[])],nS.prototype,"noRichItemGutterMargins",null);_.m([_.W("data"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],nS.prototype,"isShortsGridSlim",null);_.m([_.W("data"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],nS.prototype,"isCompactGrid",null);
_.m([_.W("data"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],nS.prototype,"isDefaultGrid",null);_.m([_.W("data.targetId"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],nS.prototype,"hideChipsBarOnHome",null);_.m([_.W("data.targetId"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],nS.prototype,"hideChipsBarOnWatch",null);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],nS.prototype,"onIsShortsGridChange",null);_.m([_.W("data.enableContentSpecificAspectRatio"),_.K(),_.L("design:type",Boolean),_.L("design:paramtypes",[])],nS.prototype,"force16By9ThumbnailAspectRatio",null);_.m([_.W("data"),_.L("design:type",Number),_.L("design:paramtypes",[])],nS.prototype,"continuationTriggerOffset",null);_.m([_.N({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],nS);
_.I(nS,"ytd-rich-grid-renderer",function(){if(VZ8!==void 0)return VZ8;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return VZ8=g},{mode:2});var Ob4=_.dG(function(g){var r=g.thumbsUp,E=g.thumbsDown,B=g.rightAlignThumbs;g=_.U(_.Dk(!1,void 0,"FjNDrf"));var w=g.next().value,O=g.next().value;g=_.U(_.Dk(!1,void 0,"Tphjfb"));var M=g.next().value,u=g.next().value;g={};return _.G("div",{class:_.QY("ytwThumbsUpDownThumbs",(g.ytwThumbsUpDownRightAlign=function(){return B==null?void 0:B()},g))},_.G(_.RY,{data:r,
onToggle:function(l){O(l);M()&&u(!1)},
buttonShapeOverrides:function(){return{toggled:w()}}}),_.G(_.RY,{data:E,
onToggle:function(l){u(l);w()&&O(!1)},
buttonShapeOverrides:function(){return{toggled:M()}}}))},"Qi");
Ob4.idomCompat=!0;var MX6=_.dG(function(g){var r=function(){return g.data().pendingStateEntityKey||""},E=_.QU(_.$x$,r),B=function(){var u;
if(!(u=g.disabled())){var l;u=!((l=E())==null||!l.isPendingResponse)}return u},w=_.U(_.Dk(zlg(""),void 0,"aC8eBe")),O=w.next().value,M=w.next().value;
_.jS(function(){requestAnimationFrame(function(){var u=g.data().onShowAnimationMs||0;u=u>0?zlg("--chip-animation-duration: "+u+"ms;"):zlg("");M(u)})});
return _.G("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:O},_.G(_.Ra,{each:function(){return g.data().chipData||[]},
keyBy:"REFERENCE"},function(u){return _.G(ULt,{data:u,disabled:B,pendingStateKey:r,onError:g.onError})}))},"Ri"),ULt=_.dG(function(g){var r=_.hn("button"),E=_.U(_.Dk(!0,void 0,"NaMiCd")),B=E.next().value,w=E.next().value,O=function(){return g.data().text.content},M=_.HK(function(u){var l,Q,z,k,H,R,A,J;
return _.q(function(e){switch(e.nextAddress){case 1:u.stopPropagation();if(g.disabled())return e.return();Q=String(Math.floor(((l=_.qQ())==null?void 0:l.getCurrentTime())||0)*1E3);z="youchat-"+Date.now();k=function(){_.a3(g.data().onClick||{});var C={continuationCommand:{token:g.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},X={inputComposerFormData:{clientMessageId:z,playerOffsetMs:Q}};return new Promise(function(Z,c){_.a3(C,{form:{formData:X},commandController:{onSuccess:function(h,
y){Z(y)},
onServerError:function(h,y){c(y.error)}}})})};
H=_.jDt(g.pendingStateKey());H(!0);_.SIF("#youchat-input, ytd-engagement-panel-section-list-renderer #footer yt-chat-input-view-model textarea, ytm-engagement-panel-section-list-renderer .engagement-panel-section-list-footer-wrapper yt-chat-input-view-model button");w(!1);_.qN(e,2);return _.D(e,k(),4);case 4:_.Ne(e,3);break;case 2:R=_.G2(e),(J=(A=g).onError)==null||J.call(A,R);case 3:H(!1),_.Q3(e)}})});
return _.G(_.p,{cond:B,then:function(){return _.G("div",{class:"ytwYouChatChipsDataChipWrapper"},_.G("button",{el:r,class:"ytwYouChatChipsDataChip","data-disabled":g.disabled,"on:click":M,tabindex:0},O))}})},"Si");var qJt=_.dG(function(g){var r=g.data;return _.G("yt-conversation-resource-view-model",{class:_.QY("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.G(_.Af,{data:function(){var E,B;return((E=r().conversationResourceData)==null?void 0:(B=E.learningGuideData)==null?void 0:B.sections)||[]}},{expandableMetadataViewModel:function(E){return _.G(_.obm,{data:E.data})}}))},"Ti");
qJt.idomCompat=!0;var uqD=_.dG(function(g){var r=function(){var y;return(y=g.data().text)==null?void 0:y.content},E=function(){var y,OD;
return(y=g.data().webData)==null?void 0:(OD=y.textResult)==null?void 0:OD.content},B=_.rM().resolve(_.Zh),w=_.uL(),O=function(){return g.data().chatResponseStyle},M=function(){return!g.data().transparentBackground},u=function(){return g.data().rightAlignThumbs},l=function(){return g.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||g.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},Q=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:l()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:g.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},z=function(){var y;
return g.data().webData||((y=g.data().text)==null?void 0:y.content)||g.data().videoResultsData||g.data().conversationResourceViewModel||g.data().quiz},k=function(){return!!g.data().sectionHeader||z()},H=function(){var y;
return(y=g.data().videoResultsData)==null?void 0:y.videoShelf},R=function(){var y;
return _.n(((y=g.data().videoResultsData)==null?void 0:y.videoShelf)||{},CrL)},A=function(){var y;
return(y=g.data().webData)==null?void 0:y.sourcesShelf},J=function(){var y;
return _.n(((y=g.data().webData)==null?void 0:y.sourcesShelf)||{},CrL)},e=function(){return _.n(g.data().conversationResourceViewModel||{},xx5)},C=function(){return _.n(g.data().quiz||{},Fk5)},X=function(){return O()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||O()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:g.data().thumbsDownViewModel&&g.data().thumbsUpViewModel},Z=function(){return _.n(g.data().thumbsUpViewModel,_.sg)},c=function(){return _.n(g.data().thumbsDownViewModel,_.sg)};
_.jS(function(){requestAnimationFrame(function(){var y;(y=g.shouldAnimateIcon)!=null&&y.call(g)&&Az6(w.lottieEl)})});
var h={};return _.G("you-chat-item-view-model",{class:_.QY("ytwYouChatItemViewModelYouChatItemViewModel",(h.ytwYouChatItemViewModelColumnLayout=function(){return l()},h)),
"data-target-id":function(){return g.data().id||""}},_.G(_.p,{cond:function(){return g.data().removeIcon?!1:k()},
then:function(){var y={};return _.G("div",{"aria-hidden":"true"},_.G(_.rN,{className:_.QY("ytwYouChatItemViewModelIcon",(y.ytwYouChatItemViewModelRtl=B==="rtl",y.ytwYouChatItemViewModelHidden=function(){return!(g.data().hideIcon||O()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||O()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:k())},y)),
animationName:"YOUCHAT_ICON",data:Q,animationRef:w}))}}),_.G(_.p,{cond:k,
then:function(){var y={};return _.G("div",{class:_.QY("ytwYouChatItemViewModelHost",(y.ytwYouChatItemViewModelHostNoPadding=function(){return!!g.data().sectionHeader&&!z()},y.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return O()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},y.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return O()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},y.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return O()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
y.ytwYouChatItemViewModelGradientBackground=M,y)),
role:"alert"},_.G(_.p,{cond:r,then:function(OD){return _.G(_.b_,{text:OD})}}),_.G(_.Af,{data:function(){return g.data().sectionHeader}},{sectionHeaderViewModel:function(OD){var uB={};
return _.G(_.rm,{data:OD.data,className:_.QY("ytwYouChatItemViewModelSectionHeader",(uB.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!g.data().sectionHeader&&!z()},uB))})}}),_.G(_.p,{cond:E,
then:function(OD){return _.G(_.b_,{text:OD})}}),_.G(_.p,{cond:H,
then:function(){return _.G("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.G(_.jM,{data:R,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.G(_.p,{cond:A,
then:function(){return _.G("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.G(_.jM,{data:J,hasPeek:!0,disableArrows:!1}))}}),_.G(_.p,{cond:e,
then:function(){return _.G(qJt,{data:e})}}),_.G(_.p,{cond:C,
then:function(){return _.G(_.dkw,{data:C})}}),_.G(_.p,{cond:X,
then:function(){return _.G(Ob4,{thumbsUp:Z,thumbsDown:c,rightAlignThumbs:u})}}))}}),_.G(_.p,{cond:function(){return g.data().chipsData},
then:function(y){return _.G(MX6,{data:y,disabled:g.pending,onError:g.onError})}}))},"Ui");
uqD.idomCompat={callbacks:{onError:!0,onSend:!0}};var lvM=_.dG(function(g){var r=function(){return g.data().choiceSelectedText},E=function(){return g.data().hasGradientBackground},B={};
return _.G("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.G(_.p,{cond:r,then:function(){return _.G("div",{class:"ytYouChatUserTurnChoiceSelected"},_.G(_.hf,{text:r}))}}),_.G("div",{class:_.QY("ytYouChatUserTurnUserMessage",(B.ytYouChatUserTurnGradientBackground=E,B.ytYouChatUserTurnDefaultBackground=function(){return!E()},B))},function(){return g.data().text}))},"Vi");var DLL=_.dG(function(g){var r=_.U((0,_.t44)(g.data)).next().value;return _.G("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return g.data().targetId||""}},_.G(_.Af,{data:function(){return g.data().header}},{chipBarViewModel:_.ptb}),_.G(_.Af,{data:function(){return r().contents}},{accordionViewModel:_.rYA,
alertBannerViewModel:_.jEw,chatLoadingViewModel:_.w8A,chatUserTurnViewModel:lvM,learningJourneyLoaderViewModel:_.vNw,lockupViewModel:function(E){return _.G(_.rR,{data:E.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:g.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
youChatItemViewModel:function(E){return _.G(uqD,{data:E.data,pending:!1})}}))},"Wi");_.BK(_.dG(function(g){var r=_.U((0,_.t44)(g.data)).next().value,E=_.VI("yt-section-list-renderer"),B=_.U(_.Dk(void 0,void 0,"rQpPgc")),w=B.next().value,O=B.next().value,M=function(){var u;return _.n((u=g.data().sectionListLayoutConfiguration)==null?void 0:u.layoutConfiguration,WkD)};
_.Jk(function(){var u,l=(u=E.value)==null?void 0:u.clientWidth;if(M()){u=M();var Q=u.responsiveSize;l=l<528?"CONTAINER_SIZE_NARROW":l<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var z=_.U(u.responsiveMap||[]);for(var k=z.next();!k.done;k=z.next())if(k=k.value,k.containerSize===l){z=k.containerType;break b}z=void 0}if(z&&Q){b:{if(z==="CONTAINER_TYPE_VERTICAL_LIST")if(Q==="RESPONSIVE_SIZE_STANDARD"){if(l!=="CONTAINER_SIZE_NARROW"){k="50%";break b}}else{k=l==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}k=void 0}u={responsiveSize:Q,containerSize:l,containerType:z,force16By9ThumbnailAspectRatio:!u.enableContentSpecificAspectRatio,contentPreviewWidth:k,fullbleed:(z==="CONTAINER_TYPE_VERTICAL_LIST"||z==="CONTAINER_TYPE_GRID")&&l==="CONTAINER_SIZE_NARROW"&&!1}}else u=void 0}else u=void 0;O(u)});
return _.G("yt-section-list-renderer",{class:_.QY("ytSectionListRendererHost",g.className),el:E,"data-target-id":function(){return g.data().targetId||""}},_.G(_.Af,{data:function(){return r().contents}},{itemSectionRenderer:function(u){return _.G(DLL,{data:u.data,
containerLayoutConfig:w})}}))},"Xi"),"yt-section-list-renderer",{props:{data:_.cP,
className:_.EB}});var os8;var GcA;var QgM=function(){return _.a.apply(this,arguments)||this};
_.f(QgM,_.a);_.m([_.K(),_.L("design:type",Object)],QgM.prototype,"data",void 0);_.m([_.e3({is:"yt-alert-renderer",disableElementRegistration:!0})],QgM);
_.I(QgM,"yt-alert-renderer",function(){if(GcA===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;os8===void 0&&(os8=document.createElement("template"));var B=os8;E.call(r,B.content.cloneNode(!0),g.content.firstChild);GcA=g}g=GcA;return g},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.YmA=function(g,r){var E,B;r=r===void 0?{}:r;var w,O,M,u,l,Q,z,k,H,R,A,J;return _.q(function(e){switch(e.nextAddress){case 1:w=r;O=w.shouldWrap===void 0?!0:w.shouldWrap;M=w.skipTransitionTimeoutMs===void 0?300:w.skipTransitionTimeoutMs;u=w.beforeTransition;l=w.afterTransition;if(!O||!document.startViewTransition||document.visibilityState==="hidden")return e.return(g());E=window.innerWidth;B=window.innerHeight;Q=!1;(z=u)==null||z();_.qN(e,2);k=document.startViewTransition(g);H=setTimeout(function(){k.skipTransition();
Q=!0},M);
return _.D(e,k.ready,4);case 4:return clearTimeout(H),_.D(e,k.finished,5);case 5:clearTimeout(H);(R=l)==null||R();_.Ne(e,0);break;case 2:A=_.G2(e),(J=l)==null||J(),A&&!Q&&document.visibilityState!=="hidden"&&E===window.innerWidth&&B===window.innerHeight&&_.tn(A),_.Q3(e)}})};
_.AZ=function(){for(var g=Array(36),r=0,E,B=0;B<36;B++)B==8||B==13||B==18||B==23?g[B]="-":B==14?g[B]="4":(r<=2&&(r=33554432+Math.random()*16777216|0),E=r&15,r>>=4,g[B]=_.FcD[B==19?E&3|8:E]);return g.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 RT$=_.me(['<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>']),
nfm=_.HMw(RT$);nfm.setAttribute("style","display: none;");document.head.appendChild(nfm.content);_.bH=_.kUt(function(g){var r=_.HT("DIV");g&&(r.className=g);r.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";g=_.HT("DIV");_.p64(g,"200px","200px");r.appendChild(g);document.body.appendChild(r);g=r.offsetWidth-r.clientWidth;_.p5(r);return g});var sFz;var fDM;var JZ=function(){var g=_.a.apply(this,arguments)||this;g.icon=null;return g};
_.f(JZ,_.a);JZ.prototype.dismiss=function(){_.Sh(this.hostElement,"yt-live-chat-error-message-dismiss")};
JZ.prototype.computeIcon=function(g){return g&&g.iconType?"yt-icons:"+g.iconType.toLowerCase():"yt-icons:close"};
_.m([_.K(),_.L("design:type",Object)],JZ.prototype,"data",void 0);_.m([_.K({computed:"computeIcon(data.icon)"}),_.L("design:type",Object)],JZ.prototype,"icon",void 0);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],JZ);
_.I(JZ,"yt-live-chat-error-message-renderer",function(){if(fDM===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;sFz===void 0&&(sFz=document.createElement("template"));var B=sFz;E.call(r,B.content.cloneNode(!0),g.content.firstChild);fDM=g}g=fDM;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var RA6,n6$,suA,fM4,Pt6,tFm,FOD,eAF,WOz,Au,Ct5,KOF,bg,x5g,aMv,XIF,Nf8,IMt,m55,cdm,iFv,LOv,VF6,hAM,ZFD,ydL,v66,d5M,TfA,gGg,rUm,EGA,Ju,BZ$,wnt,S1z,MAz,q1v,unv,lT5,DI4,oGM,O6m,UIF,QGF,zY8,kHg,H6D,pnm,GHD,RYM;RA6=function(g,r){return _.u1(g.entities,"timedMarkersListSyncEntity",r)};
n6$=function(g,r){return _.u1(g.entities,"liveReactionsDataEntity",r)};
suA=function(g,r){g=_.u1(g.entities,"booleanEntity",r);return!(!g||!g.value)};
fM4=function(g,r){var E=_.PE();E&&g&&_.N2(E,_.fW(g),r)};
_.$5g=function(){_.Y("web_watch_log_theater_mode")&&_.AZJ("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.ju6=function(g,r,E){if(!g.includes("START_TIME_PLACEHOLDER")||!g.includes("END_TIME_PLACEHOLDER"))return g;var B=new Date(0),w=new Date(0);B.setUTCMilliseconds(r);w.setUTCMilliseconds(E);return g.replace("START_TIME_PLACEHOLDER",_.Ic(B,7)).replace("END_TIME_PLACEHOLDER",_.Ic(w,7))};
_.Adv=function(g){return g.watch.isWatchActive};
_.bF5=function(g){return _.Jf(g)||_.PX(g)||_.tiA(g)};
_.JdL=function(g){return!_.bF5(g)};
_.jc=function(g){return g.watch.watchScrollTop};
Pt6=function(g){return g.watch.isLiveChatCollapsed};
tFm=function(g){return g.watch.openEngagementPanels};
FOD=function(g,r){return _.u1(g.entities,"booleanEntity",r)};
eAF=function(){return function(g){_.hC(_.za("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:g}))}};
WOz=function(g){switch(g){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}};
Au=function(g,r,E){var B=_.xP(E);g&&r&&B&&g.getPlayerPromise().then(function(w){_.JNB(B)&&_.Pf();(new _.nH(w)).executeCommand(B,r);_.Y("continue_playback_on_desktop_companion_click")||w.pauseVideo()})};
Ct5=function(g){var r=_.Tw(),E;if(E=_.XS("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var B;E=(B=E())==null?void 0:B.layoutId}else E=null;Au(r,E,g)};
KOF=function(g){var r=_.Tw(),E;if(E=_.XS("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var B;E=(B=E())==null?void 0:B.layoutId}else E=null;Au(r,E,g)};
bg=function(g,r){var E=g<0?"-":"";g=Math.abs(g);var B=Math.floor(g/3600),w=Math.floor(g)%3600,O=Math.floor(w/60);w=Math.floor(w)%60;var M="";(r===void 0?0:r)&&(M="."+Math.round((g-Math.floor(g))*10));return B>0?E+B+":"+(O<10?"0"+O:""+O)+":"+(w<10?"0"+w:""+w)+M:E+O+":"+(w<10?"0"+w:""+w)+M};
x5g=function(g){var r=g.match(/[^0-9:\.]/g);if(r&&r.length>0)return null;g=g.split(":");if(g.length===0||g.length>3)return null;r=1;for(var E=0;g.length>0;){var B=g.pop();if(B===void 0)break;var w=Number(B);if(B===""||isNaN(w))return null;E+=w*r;r*=60}return E};
aMv=function(g,r,E,B){g=Math.max(E,g);r=Math.min(r,B-E);g+r>B?(E=B,g=E-r):E=g+r;return{start:g,end:E}};
XIF=function(g,r,E,B,w,O){g<E?g=E:g+w>B&&(g=B-w);r>B&&(r=B);r=Math.min(g+O,Math.max(g+w,r));return{start:g,end:r}};
Nf8=function(g,r,E,B,w,O){r>B?r=B:r-w<E&&(r=E+w);g<E&&(g=E);g=Math.min(r-w,Math.max(r-O,g));return{start:g,end:r}};
IMt=function(g){return _.Y("web_transcript_cue_id_killswitch")?String(g):"ytd-transcript-renderer_"+g};
m55=function(g){return _.Y("web_transcript_cue_id_killswitch")?!0:g.startsWith("ytd-transcript-renderer")};
cdm=function(g){var r=_.Tw(),E;if(E=_.XS("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var B;E=(B=E())==null?void 0:B.layoutId}else E=null;Au(r,E,g)};
iFv=function(g){g.style.height="auto";g.style.height=Math.min(g.scrollHeight||20,80)+"px"};
LOv=function(g,r,E){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:r,hasGradientBackground:E}}],insertByPositionInSection:{sectionTargetId:g,position:"INSERTION_POSITION_LAST"}}}]}}}};
VF6=function(g){var r=_.Tw(),E;E=(E=_.XS("yt.www.ads.eventcache.getLastCompanionData"))?(E=E())&&E.layoutId:null;Au(r,E,g)};
hAM=function(g){var r=_.Tw(),E;E=(E=_.XS("yt.www.ads.eventcache.getLastCompanionData"))?(E=E())&&E.layoutId:null;Au(r,E,g)};
ZFD=function(g,r){r=r===void 0?!1:r;if(g.simpleText)g=[{text:g.simpleText}];else{var E;g=((E=g.runs)!=null?E:[]).map(function(B){return Object.assign({},B)})}if(r)for(r=_.U(g),E=r.next();!E.done;E=r.next())E.value.bold=!0;
return g};
ydL=function(g){var r=g.startEndTimeTemplate,E=g.startTimeUtcMillis;g=g.endTimeUtcMillis;if(r&&E&&g)return _.Lf(_.ju6(_.Vp(r),Number(E),Number(g)))};
v66=function(g,r){var E,B,w=g==null?void 0:(E=g.viewCount)==null?void 0:(B=E.videoViewCountRenderer)==null?void 0:B.shortViewCount;if(!r&&w)return w;var O,M;return g==null?void 0:(O=g.viewCount)==null?void 0:(M=O.videoViewCountRenderer)==null?void 0:M.viewCount};
d5M=function(g,r){var E=g==null?void 0:g.relativeDateText;return!r&&E?[E,!0]:[g==null?void 0:g.dateText,!1]};
TfA=function(g,r,E,B,w){B=B===void 0?!0:B;w=w===void 0?"":w;var O=v66(g,r),M=_.U(d5M(g,r)),u=M.next().value;M=M.next().value;r=r?g==null?void 0:g.sponsorsOnlyFirstTimeLongText:g==null?void 0:g.sponsorsOnlyFirstTimeShortText;var l=[];E&&O&&l.push(O);!E&&M||!u||l.push(u);g=[].concat(_.jW(l),[r,g==null?void 0:g.stationName,g==null?void 0:g.rating,g?ydL(g):void 0,g==null?void 0:g.upNextProgramText,g==null?void 0:g.superTitleLink]).filter(function(Q){return!!Q});
E={runs:[]};for(O=0;O<g.length;O++)E.runs.push.apply(E.runs,_.jW(ZFD(g[O],B))),O<g.length-1&&E.runs.push({text:" "+w+" ",bold:B});return E};
gGg=function(g){if(g)return{runs:[{text:g,bold:!0}]}};
rUm=function(g){var r,E,B,w;if(g=g==null?void 0:(r=g.contents)==null?void 0:(E=r.twoColumnWatchNextResults)==null?void 0:(B=E.results)==null?void 0:(w=B.results)==null?void 0:w.contents){var O,M;return(M=(O=g.find(function(u){return!!u.videoPrimaryInfoRenderer}))==null?void 0:O.videoPrimaryInfoRenderer)==null?void 0:M.updatedMetadataEndpoint}};
EGA=function(g,r){var E;return(E=g.sourceConfigs)==null?void 0:E.find(function(B){return B.videoId===r})};
Ju=function(g){return g==="End of video"||g==="End of playlist"};
BZ$=function(g){var r,E,B,w;return(r=g.getWatchNextResponse())==null?void 0:(E=r.contents)==null?void 0:(B=E.twoColumnWatchNextResults)==null?void 0:(w=B.playlist)==null?void 0:w.playlist};
wnt=function(g){var r,E,B,w,O,M;return(r=BZ$(g))==null?void 0:(E=r.playlistButtons)==null?void 0:(B=E.menuRenderer)==null?void 0:(w=B.topLevelButtons)==null?void 0:(O=w[0])==null?void 0:(M=O.playlistLoopButtonRenderer)==null?void 0:M.playlistLoopStateEntityKey};
S1z=function(g){var r=_.rM().resolve(_.t6),E;return(r=(E=_.n(r.getAutoplayEndpoint(),_.LM))==null?void 0:E.playlistId)&&r===g};
MAz=function(g,r,E,B,w){function O(){_.F6.cancelJob(PZ);var M=O6m(r,E/g.getPlaybackRate()),u=M.hours,l=M.minutes;M=(M.seconds*1E3||6E4)/g.getPlaybackRate();g.setVideoTimeLeft(UIF(u,l));B&&g.getPlayerState()!==0&&g.setSleepTimerTimeLeft(UIF(u,l,!0));(u>0||l>0)&&!w&&(PZ=_.pm(_.F6,O,M))}
_.F6.cancelJob(PZ);PZ=_.pm(_.F6,O)};
q1v=function(g,r,E){function B(){_.F6.cancelJob(tu);var w=O6m(r,E),O=w.hours;w=w.minutes;var M=6E4/g.getPlaybackRate();if(O>0||w>0)g.setSleepTimerTimeLeft(UIF(O,w,!0)),tu=_.pm(_.F6,B,M)}
_.F6.cancelJob(tu);tu=_.pm(_.F6,B)};
unv=function(g,r){var E=g.getVolume()/(r/500),B=function(w){_.F6.cancelJob(Fl);var O=Math.floor(w-E);g.setVolume(O,!1);O>0&&(Fl=_.pm(_.F6,function(){B(O)},500))};
_.F6.cancelJob(Fl);Fl=_.pm(_.F6,function(){B(g.getVolume())})};
lT5=function(g,r){_.F6.cancelJob(Fl);r&&g.syncVolume()};
DI4=function(){var g={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.zn("SLEEP_TIMER_DISRUPTED")}}}}};_.rM().resolve(_.Er).resolveCommand(g)};
oGM=function(g){return(g.getDuration()-g.getProgressState().current)*1E3};
O6m=function(g,r){g=g+r-(0,_.g2)();if(g<=0)return{hours:0,minutes:0,seconds:0};var E=new GHD(0,0,0,0,0,0,g);g=E.getHours();r=E.getMinutes();E=E.getSeconds();E!==0&&r++;r!==0&&r%60===0&&(g++,r=0);return{hours:g,minutes:r,seconds:E}};
UIF=function(g,r,E){return g>0&&r>0?E?_.zn("TIME_LEFT_HOURS_MINUTES",{hours:g.toString(),minutes:r.toString()}):_.zn("TIME_HOURS_MINUTES",{hours:g.toString(),minutes:r.toString()}):g>0?E?_.kg("TIME_LEFT_HOURS",g):_.kg("TIME_HOURS",g):E?_.zn("TIME_LEFT_MINUTES",{minutes:r.toString()}):_.zn("TIME_MINUTES",{minutes:r.toString()})};
QGF=function(g,r){if(g.timelyActions)return g.timelyActions.find(function(E){var B;return((B=_.n(E,ec))==null?void 0:B.cueRangeId)===r})};
zY8=function(g){var r=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.BS(g);g.keyMap_.forEach(function(E,B){_.mA(r,B)||this.remove(B)},g)};
kHg=function(g,r){g.reloadContinuationItemsCommandMatcher=r};
_.WZ=function(g,r){g.insertBefore(r,g.childNodes[0]||null)};
H6D=function(g){if(g>=48&&g<=57||g>=96&&g<=106||g>=65&&g<=90||_.Uz&&g==0)return!0;switch(g){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 _.Oz;default:return!1}};
pnm=function(g){if(g.altKey&&!g.ctrlKey||g.metaKey||g.keyCode>=112&&g.keyCode<=123)return!1;if(H6D(g.keyCode))return!0;switch(g.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!_.Oz;default:return g.keyCode<166||g.keyCode>183}};
GHD=function(g,r,E,B,w,O,M){this.date=typeof g==="number"?new Date(g,r||0,E||1,B||0,w||0,O||0,M||0):new Date(g&&g.getTime?g.getTime():_.dx())};
_.rc(GHD,_.zA);_.S=GHD.prototype;_.S.getHours=function(){return this.date.getHours()};
_.S.getMinutes=function(){return this.date.getMinutes()};
_.S.getSeconds=function(){return this.date.getSeconds()};
_.S.getMilliseconds=function(){return this.date.getMilliseconds()};
_.S.getUTCDay=function(){return this.date.getUTCDay()};
_.S.getUTCHours=function(){return this.date.getUTCHours()};
_.S.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.S.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.S.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.S.setHours=function(g){this.date.setHours(g)};
_.S.setMinutes=function(g){this.date.setMinutes(g)};
_.S.setSeconds=function(g){this.date.setSeconds(g)};
_.S.setMilliseconds=function(g){this.date.setMilliseconds(g)};
_.S.setUTCHours=function(g){this.date.setUTCHours(g)};
_.S.setUTCMinutes=function(g){this.date.setUTCMinutes(g)};
_.S.setUTCSeconds=function(g){this.date.setUTCSeconds(g)};
_.S.setUTCMilliseconds=function(g){this.date.setUTCMilliseconds(g)};
_.S.add=function(g){_.zA.prototype.add.call(this,g);g.hours&&this.setUTCHours(this.date.getUTCHours()+g.hours);g.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+g.minutes);g.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+g.seconds)};
_.S.JSC$9367_toIsoString=function(g){var r=_.zA.prototype.JSC$9367_toIsoString.call(this,g);return g?r+"T"+_.dc(this.getHours(),2)+":"+_.dc(this.getMinutes(),2)+":"+_.dc(this.getSeconds(),2):r+"T"+_.dc(this.getHours(),2)+_.dc(this.getMinutes(),2)+_.dc(this.getSeconds(),2)};
_.S.equals=function(g){return this.getTime()==g.getTime()};
_.S.toString=function(){return this.JSC$9367_toIsoString()};
_.S.clone=function(){var g=new GHD(this.date);g.firstDayOfWeek_=this.firstDayOfWeek_;g.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return g};
_.Y1v=function(g){return _.Bs({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:g}})};
RYM=new _.V("imageTileRenderer");var nG6=new _.V("adGridCardCollectionViewModel");var sG8=new _.V("carouselTitleViewModel");var fTD=new _.V("ctaCarouselItemViewModel");var $Iz=new _.V("textFieldViewModel");_.jGF=new _.V("engagementPanelHeaderShowNavigationButtonCommand");var AUt=new _.V("hideEngagementPanelScrimAction");var b6F=new _.V("setActivePanelItemAction");var JUz=new _.V("showEngagementPanelScrimAction");var PED=new _.V("updateEngagementPanelAction");var tAA=new _.V("updateSearchInVideoResultsAction");var FBv=new _.V("transcriptCueGroupRenderer");var eYM=new _.V("transcriptCueRenderer");var WB5=new _.V("transcriptFooterRenderer");var CEz=new _.V("engagementPanelAdSubtitleRenderer");var KBz=new _.V("videoDescriptionFantasySectionViewModel");var xIF=new _.V("deleteClipEngagementPanelCommand");var aTt=new _.V("loopCommand");var XnA=new _.V("changeCreatorEndscreenVisibilityCommand");var NZ8=new _.V("liveChatCallForQuestionsRenderer");var ITD=new _.V("updateTimedMarkersSyncObserverCommand");var ec=new _.V("timelyActionViewModel");var mIL=new _.V("timelyActionsOverlayViewModel");var cUL=new _.V("repeatChapterCommand");var i6$=new _.V("watchPlayerOverflowMenuCommand");var LBv=new _.V("compositeVideoOverlayRenderer");var VA6=new _.V("sortFilterSubMenuRenderer");var hYF=new _.V("switchListItemViewModel");var Z65=new _.V("inputComposerViewModel");var yUL=new _.V("transcriptEditSegmentCommand");var vGv=new _.V("transcriptUpdateSegmentTextCommand");var dIm=new _.V("transcriptSearchBoxRenderer");var TZ5=new _.V("transcriptSegmentListRenderer");var gzz=new _.V("transcriptSegmentRenderer");_.rS$=new _.V("updateDateTextAction");var Ez8=new _.V("updateTitleAction");var BwA=new _.V("updateViewershipAction");var wzg=new _.V("carouselLockupRenderer");var SW$=new _.V("expandableVideoDescriptionBodyRenderer");var Os8=new _.V("videoDescriptionYouchatSectionViewModel");_.CE=_.wM("kevlar_watch_page_horizontal_margin",24);_.U3D=_.wM("kevlar_watch_page_columns_top_padding",24);_.MHF=426+_.CE*2;_.KE=_.wM("kevlar_watch_two_column_width_threshold",1E3);_.qWv=_.CE*2;_.uHz=_.wM("kevlar_watch_secondary_width",402);_.le6=_.wM("kevlar_watch_max_player_width",1280);_.D34=_.wM("kevlar_watch_flexy_metadata_height",136);_.ozz=_.qWv+310+_.CE;_.GBL=_.qWv+360+_.CE;var Q5g={PAUSE_CHAT:18};var zW4;var kB$;var xE=function(){return _.a.apply(this,arguments)||this};
_.f(xE,_.a);xE.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
xE.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var g=_.n(this.data.button,_.nm);g&&(g.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.hx.Object.defineProperties(xE,{template:{configurable:!0,enumerable:!0,get:function(){if(kB$===void 0){var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;zW4===void 0&&(zW4=document.createElement("template"));var B=zW4;E.call(r,B.content.cloneNode(!0),g.content.firstChild);kB$=g}g=kB$;return g}}});
_.m([_.P(_.WP),_.L("design:type",Object)],xE.prototype,"ytLiveChatReduxBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],xE.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K({selectorArgs:["data.enabledEntityKey"],selector:suA,observer:"onEnabledChange"}),_.L("design:type",Boolean)],xE.prototype,"enabled",void 0);_.m([_.K(),_.L("design:type",Object)],xE.prototype,"data",void 0);_.m([_.e3({is:"yt-disableable-button-view-model",noInjection:!0})],xE);var Hs$;var pz$;var YWA=["transVert01","transVert02","transVert03"],RWg="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),ap=function(){var g=_.a.apply(this,arguments)||this;g.emojiManager=_.et;g.isDarkTheme=document.documentElement.hasAttribute("dark");g.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};g.reactionBuckets=[];g.noEmojiIdentifier="NO_EMOJI";return g};
_.f(ap,_.a);_.S=ap.prototype;_.S.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.S.desktopFountainEmojiSizePxChanged=function(){_.ua(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.S.createUserReactionAnimation=function(g){this.createEmojiAnimation(g,!0)};
_.S.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var g;((g=this.data)==null?0:g.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.za("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.jW(this.emojiContainer.children)).forEach(function(r){r.remove()})};
_.S.detached=function(){this.cleanupFountain()};
_.S.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var g;this.reactionBuckets=_.jn.unsafeClone((g=this.emojiFountainData)==null?void 0:g.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.S.processEmojiBucket=function(g){var r=this;if(this.reactionBuckets&&!(g>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var E=this.reactionBuckets[g];this.generateEmojiAnimations(E);if(g<this.reactionBuckets.length-1){var B;if(E==null?0:(B=E.duration)==null?0:B.seconds)this.emojiBucketTimerId=setTimeout(function(){r.processEmojiBucket(g+1)},Number(E.duration.seconds)*1E3)}}};
_.S.generateEmojiAnimations=function(g){var r=this,E=this.getRandomEmojiIdFromBucketWithOverride(g);if(E&&E!==this.noEmojiIdentifier){var B=0;g.targetEps?(B=this.linearInterpolateBounded(1,20,100,12,g.emojiSizeIndex||0),this.createEmojiAnimation(E,!1,g.emojiAnimationMs,B),B=this.getEmojiDelayMsFromTargetEps(g.targetEps)):(this.createEmojiAnimation(E),B=this.getEmojiDelayMsFromDistribution(g.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){r.generateEmojiAnimations(g)},B)}};
_.S.getRandomEmojiIdFromBucketWithOverride=function(g){if(!(g&&g.reactionsData&&g.reactionsData.length&&g.totalReactions))return this.noEmojiIdentifier;for(var r=g.totalReactions,E=1,B=_.U(g.reactionsData),w=B.next();!w.done;w=B.next())w=w.value,(w.reactionWeightOverride||w.reactionWeightOverride===0)&&w.reactionCount&&(r-=w.reactionCount,E-=w.reactionWeightOverride);B=!0;E<0&&(B=!1,r=g.totalReactions,E=1);if(B&&E>0&&r===0)if(E===1){w=0;for(var O=_.U(g.reactionsData),M=O.next();!M.done;M=O.next())M=
M.value,M.reactionCount&&M.reactionCount>0&&w++;w=1/w;O=_.U(g.reactionsData);for(M=O.next();!M.done;M=O.next())M.value.reactionWeightOverride=w}else for(w=1/(1-E),O=_.U(g.reactionsData),M=O.next();!M.done;M=O.next())M=M.value,M.reactionWeightOverride&&(M.reactionWeightOverride*=w);w=Math.random();O=0;M=_.U(g.reactionsData);for(var u=M.next();!u.done;u=M.next())if(u=u.value,u.reactionCount&&(O=(u.reactionWeightOverride||u.reactionWeightOverride===0)&&B?O+u.reactionWeightOverride:O+E*u.reactionCount/
r,O>w&&(u.reactionCount--,g.totalReactions--,u=this.reactionItemToEmojiString(u),u!==this.noEmojiIdentifier)))return u;return this.noEmojiIdentifier};
_.S.reactionItemToEmojiString=function(g){if(g.unicodeEmojiId)return g.unicodeEmojiId;if(g.emoteId)return g.emoteId;if(g.videoReactionType)switch(g.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.S.createEmojiAnimation=function(g,r,E,B){r=r===void 0?!1:r;this.lastEmojiRequestedForTesting=g;var w=g.startsWith("yt-icons:"),O=_.t0(this.emojiManager,g);if(O||w){var M=document.createElement("emoji");M.classList.add("yt-emoji-fountain-view-model");M.classList.add(YWA[Math.floor(Math.random()*YWA.length)]);var u=document.createElement("div");u.classList.add("yt-emoji-fountain-view-model");u.classList.add("horizontal-container");u.classList.add(RWg[Math.floor(Math.random()*RWg.length)]);r?(E=document.createElement("div"),
E.classList.add("user-reaction-bubble"),E.classList.add("yt-emoji-fountain-view-model"),u.appendChild(E)):(E&&(M.style.animationDuration=E+"ms",u.style.animationDuration=E+"ms"),B&&(M.style.width=B+"px",M.style.height=B+"px"));w?(w=document.createElement("yt-icon"),w.polymerController.icon=g,B&&(w.style.width=B+"px",w.style.height=B+"px"),g=w):g=this.emojiManager.createEmoji(O,!1);g.classList.add("yt-emoji-fountain-view-model");u.appendChild(g);M.appendChild(u);this.emojiContainer.appendChild(M);
M.addEventListener("animationend",function(){M.remove()});
var l,Q;if((l=this.data)==null?0:(Q=l.loggingDirectives)==null?0:Q.trackingParams)r=r?_.bW(183501):_.bW(183500),fM4(this.data.loggingDirectives.trackingParams,r),_.KvB(r);setTimeout(function(){M&&M.remove()},2E3)}};
_.S.getEmojiDelayMsFromDistribution=function(g){return Math.random()*(g||1)*1E3};
_.S.getEmojiDelayMsFromTargetEps=function(g){return Math.random()*2*(1/g)*1E3};
_.S.linearInterpolateBounded=function(g,r,E,B,w){w=Math.min(Math.max(w,g),E);return(r*(E-w)+B*(w-g))/(E-g)};
ap.prototype.onEmojiFountainDataEntityUpdate=ap.prototype.onEmojiFountainDataEntityUpdate;ap.prototype.desktopFountainEmojiSizePxChanged=ap.prototype.desktopFountainEmojiSizePxChanged;ap.prototype.isActiveChanged=ap.prototype.isActiveChanged;_.m([_.K(),_.L("design:type",_.PY)],ap.prototype,"emojiManager",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ap.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.WP),_.L("design:type",Object)],ap.prototype,"ytLiveChatReduxBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],ap.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ap.prototype,"data",void 0);_.m([_.K({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(g,r){return _.u1(g.entities,"emojiFountainDataEntity",r)}}),
_.L("design:type",Object)],ap.prototype,"emojiFountainData",void 0);_.m([_.K(),_.L("design:type",Boolean)],ap.prototype,"isActive",void 0);_.m([_.Gb("isActive"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ap.prototype,"isActiveChanged",null);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],ap.prototype,"isDarkTheme",void 0);_.m([_.K(),_.L("design:type",String)],ap.prototype,"lastEmojiRequestedForTesting",void 0);
_.m([_.K({value:function(){return _.wM("desktop_fountain_emoji_size_px",20)}}),
_.L("design:type",Number)],ap.prototype,"desktopFountainEmojiSizePx",void 0);_.m([_.Gb("desktopFountainEmojiSizePx"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ap.prototype,"desktopFountainEmojiSizePxChanged",null);_.m([_.zb("#emoji-container"),_.L("design:type",HTMLElement)],ap.prototype,"emojiContainer",void 0);
_.m([_.Gb("emojiFountainData"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ap.prototype,"onEmojiFountainDataEntityUpdate",null);_.m([_.e3({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],ap);
_.I(ap,"yt-emoji-fountain-view-model",function(){if(pz$===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;Hs$===void 0&&(Hs$=document.createElement("template"));var B=Hs$;E.call(r,B.content.cloneNode(!0),g.content.firstChild);pz$=g}g=pz$;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var nzL;var s5v;var Xl=function(){return _.a.apply(this,arguments)||this};
_.f(Xl,_.a);Xl.prototype.onChoiceChanged=function(){this.data&&_.ua(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
Xl.prototype.onChoiceChanged=Xl.prototype.onChoiceChanged;_.m([_.K(),_.L("design:type",Object)],Xl.prototype,"data",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Xl.prototype,"onChoiceChanged",null);_.m([_.N({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],Xl);
_.I(Xl,"yt-live-chat-banner-poll-choice",function(){if(s5v===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;nzL===void 0&&(nzL=document.createElement("template"));var B=nzL;E.call(r,B.content.cloneNode(!0),g.content.firstChild);s5v=g}g=s5v;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var feL;var $3m;var NW=function(){var g=_.a.apply(this,arguments)||this;g.modern=_.Y("web_button_rework_with_live");g.small=!1;return g};
_.f(NW,_.a);NW.prototype.computeIsSmall=function(){var g;return((g=this.buttonOverrides)==null?void 0:g.size)==="S"};
NW.prototype.computeId=function(){return this.data&&this.data.targetId};
_.m([_.P(_.CB.YtLiveChatTooltipTargetingBehavior),_.L("design:type",Object)],NW.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.m([_.K({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.L("design:type",String)],NW.prototype,"id",void 0);_.m([_.K(),_.L("design:type",Object)],NW.prototype,"buttonOverrides",void 0);_.m([_.K(),_.L("design:type",Object)],NW.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],NW.prototype,"modern",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.L("design:type",Object)],NW.prototype,"small",void 0);_.m([_.N({disableElementRegistration:!0,is:"yt-live-chat-button"})],NW);
_.I(NW,"yt-live-chat-button",function(){if($3m===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;feL===void 0&&(feL=document.createElement("template"));var B=feL;E.call(r,B.content.cloneNode(!0),g.content.firstChild);$3m=g}g=$3m;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var j5M;var ASm;var Ip=function(){var g=_.a.apply(this,arguments)||this;g.inCollapsedBanner=!1;g.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};g.questionButtonOverrides={style:"mono",type:"filled"};return g};
_.f(Ip,_.a);_.S=Ip.prototype;_.S.configureRendererStamper=function(){return{"data.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"},properties:{overrides:"[[buttonOverrides]]"}}}},"data.askQuestionButton":{id:"ask-question",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"ask-question-button"},properties:{overrides:"[[questionButtonOverrides]]"}}}}}};
_.S.onContextMenuButtonClick=function(g){this.ytLiveChatItemBehavior.showContextMenu(g)};
_.S.onYtRendererstamperFinished=function(){this.menuButton=_.S3(this.hostElement).querySelector("#menu-button")};
_.S.dataChanged=function(){var g,r;if((r=_.n((g=this.data)==null?void 0:g.overflowMenuButton,_.Fd))==null?0:r.command)this.data.contextMenuEndpoint=_.n(this.data.overflowMenuButton,_.Fd).command};
_.S.onButtonClick=function(){var g,r=_.n((g=this.data)==null?void 0:g.askQuestionButton,_.Fd);if(r){if(r.trackingParams&&(g=_.fW(r.trackingParams))){var E=_.PE();E&&_.Lu(E,g)}_.Sh(this.hostElement,"innertube-command",r.command)}};
Ip.prototype.onYtRendererstamperFinished=Ip.prototype.onYtRendererstamperFinished;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Ip.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.WP),_.L("design:type",Object)],Ip.prototype,"ytLiveChatReduxBehavior",void 0);_.m([_.P(_.WY.YtLiveChatItemBehavior),_.L("design:type",_.Co)],Ip.prototype,"ytLiveChatItemBehavior",void 0);_.m([_.K({observer:"dataChanged"}),_.L("design:type",Object)],Ip.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Ip.prototype,"inCollapsedBanner",void 0);_.m([_.K(),_.L("design:type",Object)],Ip.prototype,"buttonOverrides",void 0);_.m([_.K(),_.L("design:type",Object)],Ip.prototype,"questionButtonOverrides",void 0);_.m([_.ob("yt-rendererstamper-finished"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Ip.prototype,"onYtRendererstamperFinished",null);
_.m([_.N({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],Ip);
_.I(Ip,"yt-live-chat-call-for-questions-renderer",function(){if(ASm===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;j5M===void 0&&(j5M=document.createElement("template"));var B=j5M;E.call(r,B.content.cloneNode(!0),g.content.firstChild);ASm=g}g=ASm;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var bsD={};bsD.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 g=this;window.requestAnimationFrame(function(){g.restoreFocusNode_||(g.restoreFocusNode_=document.activeElement);var r=_.cRD(g.hostElement);r.length&&r[r.length-1].focus()})},
isAttachedChanged_:function(g,r){g?this.focusChild_():r&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(g){this.hidden||_.Z1(g).indexOf(this.hostElement)!==-1||(g.stopPropagation(),this.focusChild_())}};var JSg;var PU8;var mE=function(){return _.a.apply(this,arguments)||this};
_.f(mE,_.a);mE.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
mE.prototype.onClick=function(g){g.target!==this.confirmButton&&g.target!==this.cancelButton&&(this.hidden=!0)};
_.m([_.zb("#confirm_button"),_.L("design:type",Object)],mE.prototype,"confirmButton",void 0);_.m([_.zb("#cancel_button"),_.L("design:type",Object)],mE.prototype,"cancelButton",void 0);_.m([_.K(),_.L("design:type",tH$)],mE.prototype,"data",void 0);_.m([_.K({value:!0,reflectToAttribute:!0}),_.L("design:type",Boolean)],mE.prototype,"hidden",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],mE.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.P(bsD.YtLiveChatDialogBehavior),_.L("design:type",Object)],mE.prototype,"ytLiveChatDialogBehavior",void 0);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],mE);
var tH$=_.I(mE,"yt-live-chat-dialog-renderer",function(){if(PU8===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;JSg===void 0&&(JSg=document.createElement("template"));var B=JSg;E.call(r,B.content.cloneNode(!0),g.content.firstChild);PU8=g}g=PU8;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var Faz;var eWM,WaM=function(){if(eWM!==void 0)return eWM;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;Faz===void 0&&(Faz=document.createElement("template"));var B=Faz;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return eWM=g};var CUt;var Kat;var cZ=function(){var g=_.a.apply(this,arguments)||this;g.tooltip=null;g.data=null;g.id="";g.active=!1;g.icon="";g.disabled=!1;g.showTooltip=!1;g.useToggledActiveState=!0;g.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return g};
_.f(cZ,_.a);_.S=cZ.prototype;
_.S.dataChanged=function(){var g;((g=this.data)==null?0:g.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,_.q1)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var r;if((r=this.data)==null?0:r.disabled)this.disabled=!0};
_.S.computeId=function(g){return g};
_.S.computeIcon=function(g,r){if(!g)return"";if(this.useToggledActiveState)return"yt-icons:"+g.toLowerCase();var E,B;return r&&((E=this.data)==null?0:(B=E.toggledIcon)==null?0:B.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+g.toLowerCase()};
_.S.logPDGEntryPoint=function(){_.g8V(_.lF("FLOW_EVENT_NAMESPACE_PDG_BUY_FLOW",1,{pdgBuyFlowContext:{entryPointClickedContext:{sharedPdgBuyFlowEntryPoint:"SHARED_PDG_BUY_FLOW_ENTRY_POINT_LIVE_CHAT_MONEY_BUTTON"}}}),"FLOW_TYPE_PDG_BUY_FLOW")};
_.S.immediatelyShowTooltip=function(){var g=_.S3(this.hostElement).querySelector("#tooltip");g.animationDelay=0;g.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};g.show()};
_.S.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.S.onClick=function(g){var r;((r=this.data)==null?0:r.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(),g.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.Sh(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.S.computeShowTooltip=function(g,r){return!!(g&&g.tooltip&&r)};
_.S.maybeUpdateTooltipText=function(){var g=this,r;if((r=this.data)==null?0:r.tooltip){var E=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.q1)(g.tooltip).textContent=E},250)}};
_.S.handleLiveChatActions=function(g){var r=this;g.length&&(this.id!=="creator"&&this.id!=="product-picker"||g.forEach(function(E){(E=r.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",E))&&E.durationSec===E.fullDurationSec&&r.startBubble(r.colorFromDecimal(E.startBackgroundColor))}))};
_.S.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.S.startBubble=function(g){_.ua(this.hostElement,{"--yt-live-chat-monetization-button-glow":g});this.hostElement.setAttribute("bubble","")};
_.S.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.S.colorFromDecimal=function(g){typeof g==="string"&&(g=Number(g));return"rgba("+[g>>16&255,g>>8&255,g&255,(g>>24&255)/255].join()+")"};
cZ.prototype.onAnimationEnd=cZ.prototype.onAnimationEnd;cZ.prototype.disabledChanged=cZ.prototype.disabledChanged;cZ.prototype.dataChanged=cZ.prototype.dataChanged;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],cZ.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],cZ.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.CB.YtLiveChatTooltipTargetingBehavior),_.L("design:type",Object)],cZ.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],cZ.prototype,"data",void 0);_.m([_.K({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.L("design:type",Object)],cZ.prototype,"id",void 0);_.m([_.K({notify:!0,reflectToAttribute:!0}),_.L("design:type",Object)],cZ.prototype,"active",void 0);
_.m([_.K({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.L("design:type",Object)],cZ.prototype,"icon",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],cZ.prototype,"disabled",void 0);_.m([_.K({computed:"computeShowTooltip(data, disabled)"}),_.L("design:type",Object)],cZ.prototype,"showTooltip",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],cZ.prototype,"useToggledActiveState",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],cZ.prototype,"dataChanged",null);_.m([_.Gb("disabled"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],cZ.prototype,"disabledChanged",null);_.m([_.ob("animationend"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],cZ.prototype,"onAnimationEnd",null);
_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],cZ);
_.I(cZ,"yt-live-chat-icon-toggle-button-renderer",function(){if(Kat===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;CUt===void 0&&(CUt=document.createElement("template"));var B=CUt;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Kat=g}g=Kat;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var x3L;var ae$;var ig=function(){return _.a.apply(this,arguments)||this};
_.f(ig,_.a);ig.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.m([_.K(),_.L("design:type",Object)],ig.prototype,"data",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],ig.prototype,"ytRendererstamperBehavior",void 0);_.m([_.N({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],ig);
_.I(ig,"yt-live-chat-message-input-prompt-header-renderer",function(){if(ae$===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;x3L===void 0&&(x3L=document.createElement("template"));var B=x3L;E.call(r,B.content.cloneNode(!0),g.content.firstChild);ae$=g}g=ae$;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var Xz$;var Nw5;var IeM;var m3M;var cSt;var isF;var Lam=function(){return _.a.apply(this,arguments)||this};
_.f(Lam,_.a);_.m([_.K(),_.L("design:type",Object)],Lam.prototype,"data",void 0);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],Lam);
_.I(Lam,"yt-live-chat-message-subtext-renderer",function(){if(isF===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;cSt===void 0&&(cSt=document.createElement("template"));var B=cSt;E.call(r,B.content.cloneNode(!0),g.content.firstChild);isF=g}g=isF;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var LE=function(){var g=_.a.apply(this,arguments)||this;g.subtextOnBottom=!1;g.buttonOverrides={style:"mono",type:"tonal"};return g};
_.f(LE,_.a);LE.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"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],LE.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],LE.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],LE.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],LE.prototype,"subtextOnBottom",void 0);_.m([_.K(),_.L("design:type",Object)],LE.prototype,"buttonOverrides",void 0);
_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],LE);
_.I(LE,"yt-live-chat-message-renderer",function(){if(m3M===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;IeM===void 0&&(IeM=document.createElement("template"));var B=IeM;E.call(r,B.content.cloneNode(!0),g.content.firstChild);m3M=g}g=m3M;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var VHm;var hWL;var Vm=function(){var g=_.a.apply(this,arguments)||this;g.isRemovable=!1;g.hasPrefilledText=!1;g.isInputDirty=!1;g.overCharacterLimit=!1;g.underCharacterLimit=!1;g.showErrorMessage=!1;return g};
_.f(Vm,_.a);_.S=Vm.prototype;_.S.computeId=function(){return this.data.id};
_.S.computeInputData=function(){return this.data.inputData};
_.S.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.S.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.S.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.S.getLiveChatRichMessageInput=function(){return _.S3(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.S.clearInput=function(){_.S3(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.S.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.S.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.S.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.S.handleTextInputCharCountChanged=function(g){g=g.detail&&g.detail.characterCount;g!==void 0&&(this.characterCount=g,g!==0&&(this.isInputDirty=!0))};
_.S.onInputFocusOut=function(){this.isInputDirty=!0};
_.S.onClickCloseButton=function(){_.Sh(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
Vm.prototype.handleTextInputCharCountChanged=Vm.prototype.handleTextInputCharCountChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Vm.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Vm.prototype,"data",void 0);_.m([_.K({computed:"computeId(data.id)"}),_.L("design:type",String)],Vm.prototype,"id",void 0);_.m([_.K({computed:"computeInputData(data.inputData)"}),_.L("design:type",Object)],Vm.prototype,"inputData",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.L("design:type",Object)],Vm.prototype,"isRemovable",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.L("design:type",Object)],Vm.prototype,"hasPrefilledText",void 0);_.m([_.K({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.L("design:type",Number)],Vm.prototype,"charactersRemaining",void 0);
_.m([_.K(),_.L("design:type",Number)],Vm.prototype,"characterCount",void 0);_.m([_.K(),_.L("design:type",Object)],Vm.prototype,"isInputDirty",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.L("design:type",Object)],Vm.prototype,"overCharacterLimit",void 0);_.m([_.K({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.L("design:type",Object)],Vm.prototype,"underCharacterLimit",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.L("design:type",Object)],Vm.prototype,"showErrorMessage",void 0);_.m([_.ob("yt-live-chat-text-input-field-renderer-character-count-changed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],Vm.prototype,"handleTextInputCharCountChanged",null);
_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],Vm);
_.I(Vm,"yt-live-chat-poll-editor-input",function(){if(hWL===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;VHm===void 0&&(VHm=document.createElement("template"));var B=VHm;E.call(r,B.content.cloneNode(!0),g.content.firstChild);hWL=g}g=hWL;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var Zsg;var yS$;var vzm={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},hu=function(){var g=_.a.apply(this,arguments)||this;g.modern=_.Y("web_button_rework_with_live");g.closeButtonOverrides={iconPosition:"icon-only"};g.startButtonOverrides={style:"mono",type:"filled"};g.addOptionButtonOverrides={style:"mono",type:"text"};return g};
_.f(hu,_.a);_.S=hu.prototype;
_.S.configureRendererStamper=function(){return{"data.pollEditorInfo.addOptionButton":{id:"add-option-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[addOptionButtonOverrides]]"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[startButtonOverrides]]"}}}},pollQuestionData:{id:"poll-question",
mapping:{liveChatTextInputFieldRenderer:{component:"yt-live-chat-text-input-field-renderer",attributes:{id:"poll-question-input","is-valid-with-no-input-text":!0}}}},pollOptionsData:{id:"poll-options",mapping:{liveChatPollOptionInput:{component:"yt-live-chat-poll-editor-input"}}}}};
_.S.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var g;_.n((g=this.data)==null?void 0:g.startButton,_.Fd)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.S.computeId=function(){return this.data&&this.data.id||""};
_.S.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.S.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.S.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.S.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.S.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var g=0;g<this.pollEditorInfoWithDefaults.minPollOptions;g++)this.addPollOptionData()};
_.S.getIsValidPoll=function(){var g=this;if(!this.pollEditorInfoWithDefaults)return!1;var r=this.pollEditorInfoWithDefaults,E=r.minPollOptionChars,B=r.maxPollOptionChars,w=r.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>r.maxPollQuestionChars)return!1;r=_.S3(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(r).every(function(O,M){O=O.characterCount;!O&&w[M]&&(O=g.ytRendererBehavior.getSimpleString(w[M]).length);return O!==void 0&&O>=E&&O<=B})};
_.S.isValidPollChanged=function(){var g;_.n((g=this.data)==null?void 0:g.startButton,_.Fd)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.S.addPollOptionData=function(){var g=this.pollEditorInfoWithDefaults,r=g.maxPollOptionChars,E=g.optionPlaceholderText,B=g.customOptionPlaceholderText,w=g.pollOptionData;this.currentNumPollOptions>=g.maxPollOptions||(g={liveChatPollOptionInput:{inputData:{placeholder:B[this.currentNumPollOptions]||E,maxCharacterLimit:r},maxCharacterLimit:r,minCharacterLimit:g.minPollOptionChars,hasPrefilledText:!!B[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=g.minPollOptions}},w.charCountErrorText&&
(g.liveChatPollOptionInput.charCountErrorText=w.charCountErrorText),w.charsRemainingAltLabel&&(g.liveChatPollOptionInput.charsRemainingAltLabel=w.charsRemainingAltLabel),w.removeOptionAltText&&(g.liveChatPollOptionInput.removeOptionAltText=w.removeOptionAltText),this.push("pollOptionsData",g),w=Array.from(_.S3(_.S3(this.hostElement).querySelector("#poll-options")).children),w.forEach(function(O,M){O.polymerController.set("data.id",M)}),_.S3(w[w.length-1]).querySelector("#input").focus())};
_.S.getPollOptionInputValues=function(){var g=this,r=[],E=_.S3(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),B=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(E).forEach(function(w,O){var M=null;w=w.getLiveChatRichMessageInput();var u;(w==null?0:(u=w.textSegments)==null?0:u.length)?M=_.al(w):B[O]&&(M=g.formattedStringToLiveChatRichMessageInput(B[O]));r.push(M)});
return r};
_.S.requestCreateAndStartPoll=function(g){var r=this.getPollOptionInputValues();if(!r.some(function(B){return!B})){r={optionText:r};
var E=_.S3(_.S3(this.hostElement).querySelector("#poll-question")).firstChild;E&&E.liveChatRichMessageInput&&(r.questionText=_.al(E.liveChatRichMessageInput));_.q2(this.hostElement,[g,r])}};
_.S.selectedChanged=function(){if(this.selected){var g=_.S3(_.S3(this.hostElement).querySelector("#start-button")).firstElementChild;if(g){var r;(r=_.S3(g).querySelector("#button")||_.ON(g).querySelector("button"))==null||r.focus()}}};
_.S.handleTextInputChanged=function(g){var r;((r=g.target)==null?void 0:r.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=g.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.S.handleStartButtonAction=function(g){g.detail.actionName==="yt-service-request"&&(g.stopPropagation(),(g=g.detail.args[1])&&this.requestCreateAndStartPoll(g))};
_.S.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.S.handleServiceRequestCompleted=function(g){this.createPollRequestInFlight=!1;(g=g.detail&&g.detail.data)&&g.success&&(_.Sh(this.hostElement,"picker-cancelled"),_.OS(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.S.onCloseClick=function(){_.Sh(this.hostElement,"picker-cancelled");_.OS(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.S.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.S.handlePollEditorInputClosed=function(g){var r=this.pollOptionsData.findIndex(function(E){return E.liveChatPollOptionInput.id===g.detail.id});
this.splice("pollOptionsData",r,1);this.isValidPoll=this.getIsValidPoll()};
_.S.onPickerCancelled=function(){this.reset()};
_.S.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var g=_.S3(_.S3(this.hostElement).querySelector("#poll-question")).firstChild;g&&g.setLiveChatRichMessageInput(null);if(g=_.S3(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){g=_.U(Array.from(g));for(var r=g.next();!r.done;r=g.next())r.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.S.formattedStringToLiveChatRichMessageInput=function(g){return g.simpleText?{text_segments:[g.simpleText]}:{text_segments:g.runs}};
_.hx.Object.defineProperties(hu.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(vzm,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
hu.prototype.onPickerCancelled=hu.prototype.onPickerCancelled;hu.prototype.handlePollEditorInputClosed=hu.prototype.handlePollEditorInputClosed;hu.prototype.handleServiceRequestCompleted=hu.prototype.handleServiceRequestCompleted;hu.prototype.handleServiceRequestSent=hu.prototype.handleServiceRequestSent;hu.prototype.handleTextInputChanged=hu.prototype.handleTextInputChanged;hu.prototype.selectedChanged=hu.prototype.selectedChanged;hu.prototype.isValidPollChanged=hu.prototype.isValidPollChanged;
hu.prototype.shouldInitializePollChanged=hu.prototype.shouldInitializePollChanged;hu.prototype.dataChanged=hu.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],hu.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],hu.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],hu.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],hu.prototype,"modern",void 0);
_.m([_.K(),_.L("design:type",Object)],hu.prototype,"closeButtonOverrides",void 0);_.m([_.K(),_.L("design:type",Object)],hu.prototype,"startButtonOverrides",void 0);_.m([_.K(),_.L("design:type",Object)],hu.prototype,"addOptionButtonOverrides",void 0);_.m([_.K({computed:"computeId(data.id)",reflectToAttribute:!0}),_.L("design:type",String)],hu.prototype,"id",void 0);_.m([_.K({value:function(){return[]}}),
_.L("design:type",Array)],hu.prototype,"pollOptionsData",void 0);_.m([_.W("pollEditorInfoWithDefaults"),_.L("design:type",Object),_.L("design:paramtypes",[])],hu.prototype,"pollQuestionData",null);_.m([_.K({value:0}),_.L("design:type",Number)],hu.prototype,"pollQuestionCharacterCount",void 0);_.m([_.W("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.L("design:type",Object),_.L("design:paramtypes",[])],hu.prototype,"pollQuestionCharactersRemaining",null);
_.m([_.K({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.L("design:type",Boolean)],hu.prototype,"overQuestionCharacterLimit",void 0);_.m([_.W("data.pollEditorInfo"),_.L("design:type",Object),_.L("design:paramtypes",[])],hu.prototype,"pollEditorInfoWithDefaults",null);_.m([_.K({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.L("design:type",Number)],hu.prototype,"currentNumPollOptions",void 0);
_.m([_.K({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.L("design:type",Boolean)],hu.prototype,"hasMaxNumPollOptions",void 0);_.m([_.W("pollEditorInfoWithDefaults","pollOptionsData"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],hu.prototype,"shouldInitializePoll",null);_.m([_.K(),_.L("design:type",Object)],hu.prototype,"isValidPoll",void 0);
_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],hu.prototype,"createPollRequestInFlight",void 0);_.m([_.K(),_.L("design:type",Object)],hu.prototype,"selected",void 0);_.m([_.K({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.L("design:type",Boolean)],hu.prototype,"showQuestionErrorMessage",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],hu.prototype,"dataChanged",null);_.m([_.Gb("shouldInitializePoll"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],hu.prototype,"shouldInitializePollChanged",null);_.m([_.Gb("isValidPoll"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],hu.prototype,"isValidPollChanged",null);
_.m([_.Gb("selected"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],hu.prototype,"selectedChanged",null);_.m([_.ob("yt-live-chat-text-input-field-renderer-character-count-changed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],hu.prototype,"handleTextInputChanged",null);
_.m([_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],hu.prototype,"handleServiceRequestSent",null);_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],hu.prototype,"handleServiceRequestCompleted",null);
_.m([_.ob("yt-live-chat-poll-editor-input-closed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],hu.prototype,"handlePollEditorInputClosed",null);_.m([_.ob("picker-cancelled"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],hu.prototype,"onPickerCancelled",null);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],hu);
_.I(hu,"yt-live-chat-poll-editor-panel-renderer",function(){if(yS$===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;Zsg===void 0&&(Zsg=document.createElement("template"));var B=Zsg;E.call(r,B.content.cloneNode(!0),g.content.firstChild);yS$=g}g=yS$;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var d35;var TwM;var ZZ=function(){return _.a.apply(this,arguments)||this};
_.f(ZZ,_.a);ZZ.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
ZZ.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.hx.Object.defineProperties(ZZ.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var g,r;return(g=this.data)==null?void 0:(r=g.title)==null?void 0:r.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var g;return _.xP((g=this.data)==null?void 0:g.onTapCommand)}}});
_.m([_.P(_.DW.YtEndpointBehavior),_.L("design:type",Object)],ZZ.prototype,"ytEndpointBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ZZ.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ZZ.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],ZZ.prototype,"itemId",null);
_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],ZZ.prototype,"hasPromotion",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],ZZ.prototype,"innertubeCommand",null);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],ZZ);
_.I(ZZ,"yt-live-chat-product-picker-panel-item-view-model",function(){if(TwM===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;d35===void 0&&(d35=document.createElement("template"));var B=d35;E.call(r,B.content.cloneNode(!0),g.content.firstChild);TwM=g}g=TwM;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var gNg;var rW6;var ym=function(){var g=_.a.apply(this,arguments)||this;g.id="product-picker";g.selected=!1;g.closeButtonId="close-button";g.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return g};
_.f(ym,_.a);_.S=ym.prototype;_.S.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.S.observeSelected=function(){this.selected&&this.hostElement.focus();var g=_.S3(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");g.length&&g[0].focus()};
_.S.onCloseBuyFlow=function(){_.Sh(this.hostElement,"picker-cancelled")};
_.S.onCloseClick=function(){_.Sh(this.hostElement,"picker-cancelled");var g;((g=this.data)==null?0:g.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.n(this.data.closeButton,_.nm))};
_.S.onCloseEngageWithAudienceEditorPanels=function(){_.Sh(this.hostElement,"picker-cancelled")};
ym.prototype.observeSelected=ym.prototype.observeSelected;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],ym.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ym.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],ym.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ym.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],ym.prototype,"id",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],ym.prototype,"selected",void 0);_.m([_.K(),_.L("design:type",Object)],ym.prototype,"closeButtonId",void 0);_.m([_.Gb("selected"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ym.prototype,"observeSelected",null);
_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],ym);
_.I(ym,"yt-live-chat-product-picker-panel-view-model",function(){if(rW6===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;gNg===void 0&&(gNg=document.createElement("template"));var B=gNg;E.call(r,B.content.cloneNode(!0),g.content.firstChild);rW6=g}g=rW6;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var ENm;var BvD;var vZ=function(){var g=_.a.apply(this,arguments)||this;g.iconId="";g.icon="";g.disabled=!1;g.systemIcons=_.Y("kevlar_system_icons");return g};
_.f(vZ,_.a);_.S=vZ.prototype;_.S.attached=function(){_.Y("live_chat_compute_product_button_aria_label")||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1"))};
_.S.computeIconId=function(g){return g&&g.icon&&g.icon.iconType?g.icon.iconType.toLowerCase():""};
_.S.computeIcon=function(g){return g&&g.icon&&g.icon.iconType?(g=g.icon.iconType.toLowerCase(),(g.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+g):""};
_.S.computeDisabled=function(g){return!!g};
_.S.computeCommand=function(g,r){return r?void 0:g};
_.S.computeTooltip=function(g,r){return r&&g?g:""};
_.S.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.hx.Object.defineProperties(vZ.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){if(!_.Y("live_chat_compute_product_button_aria_label"))return"";var g="",r,E,B;if((r=this.data)==null?0:(E=r.text)==null?0:(B=E.runs)==null?0:B.length)g=this.data.text.runs[0].text||"";else{var w,O;if((w=this.data)==null?0:(O=w.text)==null?0:O.simpleText)g=this.data.text.simpleText}var M,u,l;if((M=this.data)==null?0:(u=M.subtext)==null?0:(l=u.runs)==null?0:l.length)g&&(g+=". "),g+=this.data.subtext.runs[0].text||
"";else{var Q,z;if((Q=this.data)==null?0:(z=Q.subtext)==null?0:z.simpleText)g&&(g+=". "),g+=this.data.subtext.simpleText}return g}}});
_.m([_.P(_.DW.YtEndpointBehavior),_.L("design:type",Object)],vZ.prototype,"ytEndpointBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],vZ.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],vZ.prototype,"data",void 0);_.m([_.K({computed:"computeIconId(data)",reflectToAttribute:!0}),_.L("design:type",Object)],vZ.prototype,"iconId",void 0);
_.m([_.K({computed:"computeIcon(data)",reflectToAttribute:!0}),_.L("design:type",Object)],vZ.prototype,"icon",void 0);_.m([_.K({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.L("design:type",Object)],vZ.prototype,"disabled",void 0);_.m([_.K({computed:"computeCommand(data.command, disabled)"}),_.L("design:type",Object)],vZ.prototype,"command",void 0);_.m([_.K({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.L("design:type",String)],vZ.prototype,"tooltip",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],vZ.prototype,"systemIcons",void 0);_.m([_.W("data.text","data.subtext"),_.K(),_.L("design:type",String),_.L("design:paramtypes",[])],vZ.prototype,"ariaLabel",null);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],vZ);
_.I(vZ,"yt-live-chat-product-button-renderer",function(){if(BvD===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;ENm===void 0&&(ENm=document.createElement("template"));var B=ENm;E.call(r,B.content.cloneNode(!0),g.content.firstChild);BvD=g}g=BvD;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var wtL;var Syg;var di=function(){var g=_.a.apply(this,arguments)||this;g.selected=!1;g.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 g};
_.f(di,_.a);_.S=di.prototype;_.S.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}}}};
_.S.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.S.computeId=function(g){return g.id||""};
_.S.onCloseClick=function(){_.Sh(this.hostElement,"picker-cancelled")};
_.S.observeSelected=function(){this.selected&&this.hostElement.focus();var g=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");g.length&&g[0].focus()};
_.S.onCloseBuyFlow=function(){_.Sh(this.hostElement,"picker-cancelled")};
_.S.onCloseEngageWithAudienceEditorPanels=function(){_.Sh(this.hostElement,"picker-cancelled")};
di.prototype.observeSelected=di.prototype.observeSelected;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],di.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],di.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],di.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],di.prototype,"data",void 0);
_.m([_.K({computed:"computeId(data)",reflectToAttribute:!0}),_.L("design:type",String)],di.prototype,"id",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],di.prototype,"selected",void 0);_.m([_.Gb("selected"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],di.prototype,"observeSelected",null);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],di);
_.I(di,"yt-live-chat-product-picker-renderer",function(){if(Syg===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;wtL===void 0&&(wtL=document.createElement("template"));var B=wtL;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Syg=g}g=Syg;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var OA5;var Ukg;var Mev;var qy5;var T7=function(){return _.a.apply(this,arguments)||this};
_.f(T7,_.a);T7.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()};
T7.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
T7.prototype.created=function(){this.ids={background:_.AZ(),maskOne:_.AZ(),maskTwo:_.AZ(),gradient:_.AZ(),largeBackground:_.AZ(),largeGradientOne:_.AZ(),largeGradientTwo:_.AZ(),largeGradientPath:_.AZ()}};
T7.prototype.maybeLoadAnimationBackground=T7.prototype.maybeLoadAnimationBackground;_.m([_.K({value:!1}),_.L("design:type",Boolean)],T7.prototype,"useLargeBackground",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],T7.prototype,"useAnimationBackground",void 0);_.m([_.K({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.L("design:type",Boolean)],T7.prototype,"useRegularBackground",void 0);
_.m([_.K(),_.L("design:type",Object)],T7.prototype,"ids",void 0);_.m([_.K(),_.L("design:type",Object)],T7.prototype,"lottieAnimation",void 0);_.m([_.zb("#animation-background"),_.L("design:type",HTMLDivElement)],T7.prototype,"animationBackground",void 0);_.m([_.Gb("useAnimationBackground"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],T7.prototype,"maybeLoadAnimationBackground",null);
_.m([_.e3({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],T7);
_.I(T7,"yt-live-interactivity-component-background",function(){if(qy5===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;Mev===void 0&&(Mev=document.createElement("template"));var B=Mev;E.call(r,B.content.cloneNode(!0),g.content.firstChild);qy5=g}g=qy5;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var ge=function(){var g=_.a.apply(this,arguments)||this;g.characterCount=0;g.showInputErrorMessage=!1;g.startQnaRequestInFlight=!1;g.modern=_.Y("web_button_rework_with_live");g.buttonOverrides={style:"mono",type:"filled"};g.closeButtonOverrides={iconPosition:"icon-only"};g.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return g};
_.f(ge,_.a);_.S=ge.prototype;
_.S.configureRendererStamper=function(){return{"data.creatorCallForQuestions.liveChatCreatorCallForQuestionsRenderer.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.S.onCharacterCountChanged=function(g){var r,E,B,w,O=(E=_.n(this==null?void 0:(r=this.data)==null?void 0:r.creatorCallForQuestions,NZ8))==null?void 0:(B=E.inputField)==null?void 0:(w=B.liveChatTextInputFieldRenderer)==null?void 0:w.maxCharacterLimit,M,u;O!=null&&(g==null?void 0:(M=g.detail)==null?void 0:M.characterCount)!=null&&_.n(this==null?void 0:(u=this.data)==null?void 0:u.startButton,_.Fd)&&(r=g.detail.characterCount>O,this.set("data.startButton.buttonRenderer.isDisabled",g.detail.characterCount===
0||r),this.showInputErrorMessage=r)};
_.S.onCloseClick=function(){_.Sh(this.hostElement,"picker-cancelled");_.OS(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.S.onPickerCancelled=function(){var g=_.S3(this.hostElement).querySelector("#qna-creator-text-input-field");g&&g.setLiveChatRichMessageInput(null)};
_.S.handleOpenQnaStartPanel=function(){var g=_.S3(this.hostElement).querySelector("#qna-creator-text-input-field");g&&g.focus()};
_.S.handleStartButtonAction=function(g){var r=this;if(g.detail.actionName==="yt-service-request"&&(g.stopPropagation(),g=g.detail.args[1])){var E=_.S3(this.hostElement).querySelector("#qna-creator-text-input-field"),B;(E==null?0:(B=E.liveChatRichMessageInput)==null?0:B.textSegments)&&E.liveChatRichMessageInput.textSegments.length!==0&&(B={rich_message:_.al(E.liveChatRichMessageInput)},_.q2(this.hostElement,[g,B]).then(function(){_.Sh(r.hostElement,"picker-cancelled")}))}};
_.S.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.S.handleServiceRequestCompleted=function(g){var r;g=g==null?void 0:(r=g.detail)==null?void 0:r.data;(g==null?0:g.actions)&&g.actions.length>0?this.startQnaRequestInFlight=!1:_.OS(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.S.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
ge.prototype.handleServiceRequestError=ge.prototype.handleServiceRequestError;ge.prototype.handleServiceRequestCompleted=ge.prototype.handleServiceRequestCompleted;ge.prototype.handleServiceRequestSent=ge.prototype.handleServiceRequestSent;ge.prototype.onPickerCancelled=ge.prototype.onPickerCancelled;ge.prototype.onCharacterCountChanged=ge.prototype.onCharacterCountChanged;_.m([_.K(),_.L("design:type",Object)],ge.prototype,"characterCount",void 0);
_.m([_.K(),_.L("design:type",Object)],ge.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],ge.prototype,"showInputErrorMessage",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],ge.prototype,"startQnaRequestInFlight",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],ge.prototype,"modern",void 0);_.m([_.K(),_.L("design:type",Object)],ge.prototype,"buttonOverrides",void 0);
_.m([_.K(),_.L("design:type",Object)],ge.prototype,"closeButtonOverrides",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],ge.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.WP),_.L("design:type",Object)],ge.prototype,"ytLiveChatReduxBehavior",void 0);_.m([_.P(_.WY.YtLiveChatItemBehavior),_.L("design:type",_.Co)],ge.prototype,"ytLiveChatItemBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],ge.prototype,"ytActionHandlerBehavior",void 0);_.m([_.ob("yt-live-chat-text-input-field-renderer-character-count-changed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],ge.prototype,"onCharacterCountChanged",null);_.m([_.ob("picker-cancelled"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ge.prototype,"onPickerCancelled",null);
_.m([_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ge.prototype,"handleServiceRequestSent",null);_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],ge.prototype,"handleServiceRequestCompleted",null);
_.m([_.ob("yt-service-request-error"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],ge.prototype,"handleServiceRequestError",null);_.m([_.N({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],ge);
_.I(ge,"yt-live-chat-qna-start-panel-renderer",function(){if(Ukg===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;OA5===void 0&&(OA5=document.createElement("template"));var B=OA5;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Ukg=g}g=Ukg;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var utt;var lRA;var re=function(){return _.a.apply(this,arguments)||this};
_.f(re,_.a);re.prototype.dismiss=function(){_.Sh(this.hostElement,"yt-live-chat-error-message-dismiss")};
re.prototype.edit=function(){_.Sh(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.m([_.K(),_.L("design:type",Object)],re.prototype,"data",void 0);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],re);
_.I(re,"yt-live-chat-text-actions-error-message-renderer",function(){if(lRA===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;utt===void 0&&(utt=document.createElement("template"));var B=utt;E.call(r,B.content.cloneNode(!0),g.content.firstChild);lRA=g}g=lRA;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var DkF;var oNM;var GyD;var QEM;var EO=function(){var g=_.a.apply(this,arguments)||this;g.isDarkTheme=document.documentElement.hasAttribute("dark");g.newnessDotEligible=!1;return g};
_.f(EO,_.a);EO.prototype.sendReaction=function(){var g,r,E=((g=this.data)==null?void 0:g.emojiId)||((r=this.data)==null?void 0:r.emoteId),B;E&&((B=this.data)==null?0:B.shouldTriggerAnimation)&&_.OS(this.hostElement,"yt-create-user-reaction-animation",[E]);var w;(g=_.xP((w=this.data)==null?void 0:w.onTap))&&_.Qy(g,this.hostElement);this.showNewnessDot&&_.OS(this.hostElement,"yt-hide-newness-dot")};
EO.prototype.onClick=function(g){(!g||g.clientX||g.clientY)&&this.sendReaction()};
EO.prototype.onKeyDown=function(g){g.key!=="Enter"&&g.key!==" "||g.repeat||this.sendReaction()};
_.hx.Object.defineProperties(EO.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var g,r;return!!(((g=this.data)==null?0:g.emojiId)||((r=this.data)==null?0:r.emoteId))}}});
_.m([_.K(),_.L("design:type",Object)],EO.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],EO.prototype,"isDarkTheme",void 0);_.m([_.K(),_.L("design:type",Object)],EO.prototype,"newnessDotEligible",void 0);_.m([_.W("data.maybeShowNewnessDot"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],EO.prototype,"showNewnessDot",null);_.m([_.W("data.emojiId","data.emoteId"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],EO.prototype,"useYtImage",null);
_.m([_.e3({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],EO);
_.I(EO,"yt-reaction-control-panel-button-view-model",function(){if(QEM===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;GyD===void 0&&(GyD=document.createElement("template"));var B=GyD;E.call(r,B.content.cloneNode(!0),g.content.firstChild);QEM=g}g=QEM;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var zvt;var kyv;var Bq=function(){var g=_.a.apply(this,arguments)||this;g.reactionControlPanelExpanded=!1;g.isDarkTheme=document.documentElement.hasAttribute("dark");g.newnessDotEligible=!1;return g};
_.f(Bq,_.a);_.S=Bq.prototype;_.S.expandedButtonsChanged=function(){var g,r;_.ua(this.hostElement,{"--expanded-buttons-height":((r=(g=this.expandedButtonsData)==null?void 0:g.length)!=null?r:0)*36+"px"})};
_.S.configureRendererStamper=function(){return{expandedButtonsData:{id:"expanded-buttons",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0},"data.collapsedButton":{id:"collapsed-button",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.S.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.S.onMouseLeave=function(){var g=this;this.collapseTimer=setTimeout(function(){g.reactionControlPanelExpanded=!1},500)};
_.S.onFocusIn=function(){this.onMouseEnter()};
_.S.onFocusOut=function(){this.onMouseLeave()};
_.S.onCollapsedButtonFocusIn=function(){var g=this;setTimeout(function(){var r;(r=g.expandedButtons.querySelector("button"))==null||r.focus()},100)};
_.S.onCollapsedButtonFocusOut=function(g){g.stopPropagation()};
_.hx.Object.defineProperties(Bq.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var g,r;return _.jn.unsafeClone((g=this.liveReactionsData)==null?void 0:g.emojiButtonData)||((r=this.data)==null?void 0:r.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var g;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((g=this.data)==null||!g.maybeShowNewnessDot)}}});
Bq.prototype.expandedButtonsChanged=Bq.prototype.expandedButtonsChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Bq.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Bq.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.WP),_.L("design:type",Object)],Bq.prototype,"ytLiveChatReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Bq.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Bq.prototype,"reactionControlPanelExpanded",void 0);_.m([_.K({selectorArgs:["data.liveReactionsDataEntityKey"],selector:n6$}),_.L("design:type",Object)],Bq.prototype,"liveReactionsData",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Bq.prototype,"isDarkTheme",void 0);_.m([_.K(),_.L("design:type",Object)],Bq.prototype,"newnessDotEligible",void 0);
_.m([_.W("liveReactionsData","data.expandedButtons"),_.L("design:type",Object),_.L("design:paramtypes",[])],Bq.prototype,"expandedButtonsData",null);_.m([_.W("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.K({reflectToAttribute:!0}),_.L("design:type",Object),_.L("design:paramtypes",[])],Bq.prototype,"showNewnessDot",null);_.m([_.zb("#expanded-buttons"),_.L("design:type",HTMLElement)],Bq.prototype,"expandedButtons",void 0);
_.m([_.Gb("expandedButtonsData"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Bq.prototype,"expandedButtonsChanged",null);_.m([_.e3({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],Bq);
_.I(Bq,"yt-reaction-control-panel-view-model",function(){if(kyv===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;zvt===void 0&&(zvt=document.createElement("template"));var B=zvt;E.call(r,B.content.cloneNode(!0),g.content.firstChild);kyv=g}g=kyv;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var we=new _.xR("yt-live-chat"),HAD=Date.parse("2024-7-24"),Sm=function(){var g=_.a.apply(this,arguments)||this;g.emojiManager=_.et;g.newnessDotEligible=!1;g.newnessDotImpressionCounted=!1;g.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return g};
_.f(Sm,_.a);_.S=Sm.prototype;_.S.emojiCustomizationEnabledChanged=function(){var g;((g=this.data)==null?0:g.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((g=we.getCreationTime("emoji-customization-count"))&&g<HAD&&we.set("emoji-customization-count","0"),g=Number(we.get("emoji-customization-count"))||0,g<3&&(this.newnessDotEligible=!0,we.set("emoji-customization-count",(g+1).toString())),this.newnessDotImpressionCounted=!0)};
_.S.hideNewnessDot=function(){this.newnessDotEligible=!1;we.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.S.handleReactionsMute=function(g){var r=_.PE(),E=_.bW(206221),B={checkboxData:{state:g?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};r&&_.Lu(r,E,B);this.reactionsMuted=g};
_.S.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.S.configureRendererStamper=function(){return{"data.emojiFountain":{id:"emoji-fountain",mapping:{emojiFountainViewModel:{component:"yt-emoji-fountain-view-model",properties:{emojiManager:"[[emojiManager]]",isActive:"[[liveReactionsEnabled]]"}}},reuseComponents:!0},"data.reactionControlPanel":{id:"reaction-control-panel",mapping:{reactionControlPanelViewModel:{component:"yt-reaction-control-panel-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.hx.Object.defineProperties(Sm.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var g;return(!((g=this.liveReactionsData)==null||!g.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
Sm.prototype.liveReactionsSettingChanged=Sm.prototype.liveReactionsSettingChanged;Sm.prototype.emojiCustomizationEnabledChanged=Sm.prototype.emojiCustomizationEnabledChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Sm.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Sm.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.WP),_.L("design:type",Object)],Sm.prototype,"ytLiveChatReduxBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Sm.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Sm.prototype,"data",void 0);_.m([_.K(),_.L("design:type",_.PY)],Sm.prototype,"emojiManager",void 0);_.m([_.K(),_.L("design:type",Object)],Sm.prototype,"newnessDotEligible",void 0);_.m([_.K(),_.L("design:type",Object)],Sm.prototype,"newnessDotImpressionCounted",void 0);
_.m([_.K({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:suA}),_.L("design:type",Boolean)],Sm.prototype,"liveReactionsSetting",void 0);_.m([_.K({selectorArgs:["data.liveReactionsDataEntityKey"],selector:n6$}),_.L("design:type",Object)],Sm.prototype,"liveReactionsData",void 0);_.m([_.K({value:function(){var g=_.Y("enable_lwe_web_mute"),r=we.get("allow-reactions");return r===void 0?!1:!r&&g}}),
_.L("design:type",Boolean)],Sm.prototype,"reactionsMuted",void 0);_.m([_.K({reflectToAttribute:!0}),_.W("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Sm.prototype,"liveReactionsEnabled",null);_.m([_.Gb("data.emojiCustomizationEnabled"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Sm.prototype,"emojiCustomizationEnabledChanged",null);
_.m([_.Gb("liveReactionsEnabled"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Sm.prototype,"liveReactionsSettingChanged",null);_.m([_.e3({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],Sm);
_.I(Sm,"yt-reaction-control-panel-overlay-view-model",function(){if(oNM===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;DkF===void 0&&(DkF=document.createElement("template"));var B=DkF;E.call(r,B.content.cloneNode(!0),g.content.firstChild);oNM=g}g=oNM;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var ptt={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(g){var r=this.$.pickers.selected;if(r){_.S3(this.hostElement).removeAttribute(r+"-open");var E="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(E="#picker-buttons",r==="emoji"&&_.S3(this.hostElement).querySelector("#emoji-picker-button")&&(E="#emoji-picker-button"));if(E=_.S3(this.hostElement).querySelector(E).querySelector("#"+r))E.active=!1}E=g;r==g&&(E=null);r!=
g&&_.S3(this.hostElement).setAttribute(g+"-open","");this.$.pickers.selected=E;_.OS(this.hostElement,"yt-live-chat-picker-changed",[E])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var OO=function(){var g=_.a.apply(this,arguments)||this;g.numSentMessages=0;g.timeoutDurationMs=0;g.timeoutMs=0;g.lastTimeoutTimeMs=0;g.pendingMessageId="";g.hasFiredInitialFocusActions=!1;g.isBeforeFocusEnabled=!0;g.id="";g.characterCount=0;g.maxCharacterLimit=0;g.remainingCharacterCount=0;g.inputExpanded=!1;g.buttonOverrides={iconPosition:"icon-only"};g.inReplyPanel=!1;g.countdownRatio=0;g.isTooltipVisible=!1;g.tooltipTimeout=1E4;g.systemIcons=_.Y("kevlar_system_icons");g.tallerEmojiPicker=_.Y("live_chat_taller_emoji_picker");
g.sendReplyMessageInFlight=!1;g.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"};g.onResize=function(){g.maybeToggleCharacterCount()};
return g};
_.f(OO,_.a);_.S=OO.prototype;
_.S.configureRendererStamper=function(){return{"data.sendButton":{id:"send-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.pickers":{id:"pickers",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{disableIncrementalLoading:"[[disableEmojiPickerIncrementalLoading]]"}},liveChatProductPickerRenderer:"yt-live-chat-product-picker-renderer",liveChatProductPickerPanelViewModel:"yt-live-chat-product-picker-panel-view-model",liveChatPollEditorPanelRenderer:"yt-live-chat-poll-editor-panel-renderer",
liveChatQnaStartPanelRenderer:"yt-live-chat-qna-start-panel-renderer"}},"data.emojiPickerButton":{id:"emoji-picker-button",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0}}}},"data.pickerButtons":{id:"picker-buttons",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",
properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0},properties:{overrides:"[[buttonOverrides]]"}},reactionControlPanelOverlayViewModel:{component:"yt-reaction-control-panel-overlay-view-model"}}},"data.interactionMessage":{id:"interaction-message",mapping:{messageRenderer:{component:"yt-live-chat-message-renderer",params:{subtextOnBottom:!0}}}},errorMessage:{id:"error-message",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer",
liveChatTextActionsErrorMessageRenderer:"yt-live-chat-text-actions-error-message-renderer"}}}};
_.S.attached=function(){window.addEventListener("resize",this.onResize)};
_.S.detached=function(){window.removeEventListener("resize",this.onResize)};
_.S.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.S.sendMessage=function(){var g=this,r,E,B,w;return _.q(function(O){if(g.sendDisabled)return O.return();g.isTooltipVisible&&_.OS(g.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(g.data.sendButton&&g.data.sendButton.buttonRenderer){g.input.completeEmojis();r=g.data.sendButton.buttonRenderer.serviceEndpoint;if(!r)return O.return();B=((E=_.n(r,_.ZcA))==null?void 0:E.clientIdPrefix)||"";w={client_message_id:B+String(g.numSentMessages++),rich_message:_.al(g.input.liveChatRichMessageInput)};
g.pendingMessageId=w.client_message_id;g.inReplyPanel&&(g.sendReplyMessageInFlight=!0);_.q2(g.hostElement,[r,w]);g.input.setLiveChatRichMessageInput(null)}_.Q3(O)})};
_.S.handleSendButtonAction=function(g){g.detail.actionName==="yt-service-request"&&(g.stopPropagation(),this.sendMessage())};
_.S.onSendCompleted=function(g,r){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(g=this.get("timeoutDurationUsec",r.data))&&this.handleTimeout(Number(g)/1E3);this.errorMessage=this.get("errorMessage",r.data);this.pendingMessageId=""};
_.S.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.OS(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.S.handlePickerButtonToggle=function(g){g=g.detail.targetId;this.ytPickerBehavior.togglePicker_(g);if(g==="emoji")this.input.focus();else if(g==="qna-start-panel"){var r,E;(r=_.S3(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(E=r.querySelector("#qna-creator-text-input-field"))==null||E.focus()}};
_.S.onComponentReplaced=function(g){var r,E;g.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((r=g.replacement.liveChatMessageInputRenderer)==null?0:(E=r.headerRenderer)==null?0:E.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.S.onEmojiSelect=function(g){this.input.focus();this.input.insertEmoji(g.detail)};
_.S.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.S.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.OS(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.OS(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.S.onOpenPopupAction=function(g,r){var E=this;r===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.OS(E.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.S.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.S.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.S.focusChanged=function(){this.maybeToggleCharacterCount()};
_.S.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var g=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",g>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.S.computeId=function(){return this.data&&this.data.targetId||""};
_.S.computeSendDisabled=function(g,r,E,B){g=!!(!g||r&&g>r||B);(r=_.S3(this.hostElement).querySelector("#send-button"))&&r.children.length&&(r.children[0].disabled=g);return g};
_.S.handleTimeout=function(g){this.timeoutDurationMs=this.timeoutMs=g;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.S.updateTimeout=function(g){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(g-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=g,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.S.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.S.onErrorMessageEdit=function(g){this.input.setLiveChatRichMessageInput(g.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.S.errorMessageChanged=function(){var g=this;_.N1(function(){_.OS(g.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.S.computeAuthorNameColor=function(g){var r;if(_.Y("live_chat_author_name_color_usernames")&&(g==null?0:(r=g.authorName)==null?0:r.simpleText))return _.R3S(_.nwl(g.authorName.simpleText));if(_.Y("live_chat_seed_color_usernames")&&(g==null?0:g.authorSeedColorArgb))return _.R3S(_.uV(g.authorSeedColorArgb));if(_.Y("live_chat_colored_usernames"))return"#cc0000";var E;return _.Y("live_chat_simple_color_usernames")&&(g==null?0:(E=g.authorName)==null?0:E.simpleText)&&(g==null?0:g.authorUsernameColorLight)&&
(g==null?0:g.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.uV(g.authorUsernameColorDark):_.uV(g.authorUsernameColorLight):""};
_.S.onIsTooltipVisibleChanged=function(){var g=_.S3(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){g.hidden=!1;g.setAttribute("role","alert")},0):(g.hidden=!0,g.removeAttribute("role"))};
_.S.onFocusedChanged=function(g){this.inputFocused=g.detail.value};
_.hx.Object.defineProperties(OO.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 g;return!((g=this.data)==null||!g.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var g,r;return((g=this.data)==null?void 0:(r=g.pickers)==null?void 0:r.find(function(E){return E.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var g=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return g?this.ytRendererBehavior.getSimpleString(g):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
OO.prototype.onIsTooltipVisibleChanged=OO.prototype.onIsTooltipVisibleChanged;OO.prototype.errorMessageChanged=OO.prototype.errorMessageChanged;OO.prototype.onErrorMessageEdit=OO.prototype.onErrorMessageEdit;OO.prototype.onErrorMessageDismiss=OO.prototype.onErrorMessageDismiss;OO.prototype.focusChanged=OO.prototype.focusChanged;OO.prototype.characterCountChanged=OO.prototype.characterCountChanged;OO.prototype.onEmojiSelect=OO.prototype.onEmojiSelect;OO.prototype.handlePickerButtonToggle=OO.prototype.handlePickerButtonToggle;
OO.prototype.onSendError=OO.prototype.onSendError;OO.prototype.onSendCompleted=OO.prototype.onSendCompleted;OO.prototype.sendMessage=OO.prototype.sendMessage;OO.prototype.dataChanged=OO.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],OO.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],OO.prototype,"ytActionHandlerBehavior",void 0);
_.m([_.P(ptt.YtPickerBehavior),_.L("design:type",Object)],OO.prototype,"ytPickerBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],OO.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.CB.YtLiveChatTooltipTargetingBehavior),_.L("design:type",Object)],OO.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],OO.prototype,"hasFiredInitialFocusActions",void 0);
_.m([_.K(),_.L("design:type",Object)],OO.prototype,"isBeforeFocusEnabled",void 0);_.m([_.K(),_.L("design:type",Object)],OO.prototype,"data",void 0);_.m([_.K({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.L("design:type",Object)],OO.prototype,"id",void 0);_.m([_.K(),_.L("design:type",Object)],OO.prototype,"characterCount",void 0);_.m([_.K(),_.L("design:type",Object)],OO.prototype,"maxCharacterLimit",void 0);
_.m([_.K(),_.L("design:type",Object)],OO.prototype,"remainingCharacterCount",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],OO.prototype,"inputExpanded",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],OO.prototype,"inputFocused",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],OO.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.m([_.K(),_.L("design:type",_.aY)],OO.prototype,"participantsManager",void 0);
_.m([_.K(),_.L("design:type",Object)],OO.prototype,"buttonOverrides",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],OO.prototype,"inReplyPanel",void 0);_.m([_.W("characterCount, maxCharacterLimit, countdownActive"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],OO.prototype,"sendDisabled",null);_.m([_.K(),_.L("design:type",Object)],OO.prototype,"countdownRatio",void 0);
_.m([_.W("countdownRatio"),_.L("design:type",Number),_.L("design:paramtypes",[])],OO.prototype,"countdownStrokeDashOffset",null);_.m([_.W("countdownRatio"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],OO.prototype,"countdownActive",null);_.m([_.W("data.interactionMessage"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],OO.prototype,"hasInteractionMessage",null);
_.m([_.W("data.emojiPickerButton"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],OO.prototype,"hasEmojiPickerButton",null);_.m([_.W("data, characterCount"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],OO.prototype,"showAvatar",null);_.m([_.W("data.pickers"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],OO.prototype,"hasProductPickerPanelViewModel",null);
_.m([_.K(),_.L("design:type",Object)],OO.prototype,"errorMessage",void 0);_.m([_.K(),_.L("design:type",Object)],OO.prototype,"genericErrorMessage",void 0);_.m([_.K(),_.L("design:type",Object)],OO.prototype,"isTooltipVisible",void 0);_.m([_.K(),_.L("design:type",Object)],OO.prototype,"tooltipTimeout",void 0);_.m([_.W("data.onInitialFocusCommand"),_.L("design:type",String),_.L("design:paramtypes",[])],OO.prototype,"tooltipMessage",null);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],OO.prototype,"systemIcons",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],OO.prototype,"tallerEmojiPicker",void 0);_.m([_.W("data"),_.L("design:type",String),_.L("design:paramtypes",[])],OO.prototype,"authorNameColor",null);_.m([_.K(),_.L("design:type",Object)],OO.prototype,"sendReplyMessageInFlight",void 0);_.m([_.zb("#input"),_.L("design:type",_.W2w)],OO.prototype,"input",void 0);
_.m([_.zb("#count"),_.L("design:type",HTMLElement)],OO.prototype,"count",void 0);_.m([_.zb("#input-container"),_.L("design:type",HTMLElement)],OO.prototype,"inputContainer",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],OO.prototype,"dataChanged",null);_.m([_.ob("yt-live-chat-send-message"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype",Promise)],OO.prototype,"sendMessage",null);
_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[Event,_.hR]),_.L("design:returntype")],OO.prototype,"onSendCompleted",null);_.m([_.ob("yt-service-request-error"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],OO.prototype,"onSendError",null);
_.m([_.ob("yt-live-chat-icon-toggle-button-renderer-toggle"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],OO.prototype,"handlePickerButtonToggle",null);_.m([_.ob("yt-emoji-select"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],OO.prototype,"onEmojiSelect",null);
_.m([_.Gb("characterCount"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],OO.prototype,"characterCountChanged",null);_.m([_.Gb("inputFocused"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],OO.prototype,"focusChanged",null);_.m([_.ob("yt-live-chat-error-message-dismiss"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],OO.prototype,"onErrorMessageDismiss",null);
_.m([_.ob("yt-live-chat-error-message-edit"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],OO.prototype,"onErrorMessageEdit",null);_.m([_.Gb("errorMessage"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],OO.prototype,"errorMessageChanged",null);_.m([_.Gb("isTooltipVisible"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],OO.prototype,"onIsTooltipVisibleChanged",null);
_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],OO);
_.I(OO,"yt-live-chat-message-input-renderer",function(){if(Nw5===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;Xz$===void 0&&(Xz$=document.createElement("template"));var B=Xz$;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Nw5=g}g=Nw5;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var YyM;var RvF;var UO=function(){var g=_.a.apply(this,arguments)||this;g.systemIcons=_.Y("kevlar_system_icons");g.firedOnClickCommand=!1;g.inReplyPanel=!1;return g};
_.f(UO,_.a);
UO.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"}}}};
UO.prototype.onButtonToggle=function(g){g.target.disabled||this.ytPickerBehavior.togglePicker_(g.detail.targetId)};
UO.prototype.onClick=function(){var g=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.OS(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return g.firedOnClickCommand=!1},5E3))};
_.hx.Object.defineProperties(UO.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var g,r;return((g=this.data)==null?void 0:(r=g.panels)==null?void 0:r.find(function(E){return E.liveChatProductPickerPanelViewModel}))!==void 0}}});
UO.prototype.onButtonToggle=UO.prototype.onButtonToggle;_.m([_.P(ptt.YtPickerBehavior),_.L("design:type",Object)],UO.prototype,"ytPickerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],UO.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],UO.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],UO.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],UO.prototype,"systemIcons",void 0);_.m([_.K({reflectToAttribute:!1}),_.L("design:type",Object)],UO.prototype,"firedOnClickCommand",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],UO.prototype,"inReplyPanel",void 0);_.m([_.W("data.pickers"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],UO.prototype,"hasProductPickerPanelViewModel",null);
_.m([_.ob("yt-live-chat-icon-toggle-button-renderer-toggle"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],UO.prototype,"onButtonToggle",null);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],UO);
_.I(UO,"yt-live-chat-restricted-participation-renderer",function(){if(RvF===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;YyM===void 0&&(YyM=document.createElement("template"));var B=YyM;E.call(r,B.content.cloneNode(!0),g.content.firstChild);RvF=g}g=RvF;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var Ml=function(){var g=_.a.apply(this,arguments)||this;g.genericErrorMessage=_.Lf("Error, try again.");g.inReplyPanel=!1;g.hideBorder=!1;return g};
_.f(Ml,_.a);Ml.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}}}}}};
_.hx.Object.defineProperties(Ml,{template:{configurable:!0,enumerable:!0,get:function(){return WaM()}}});
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Ml.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Ml.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],Ml.prototype,"genericErrorMessage",void 0);_.m([_.K(),_.L("design:type",Object)],Ml.prototype,"inReplyPanel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Ml.prototype,"hideBorder",void 0);
_.m([_.e3({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],Ml);_.I(Ml,"yt-live-chat-engagement-panel-input-renderer",function(){return WaM()},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var nNt,sEF;nNt=_.bW(115994);sEF=_.bW(115993);_.ql=function(g,r,E){var B=this;var w=E.dragDownAction;this.layer=0;this.JSC$20107_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return B.dragDownAction()}}}};
this.JSC$20107_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return B.dragDownAction()}}}};
this.fullscreen=!1;var O=_.pW();_.Ok(O,nNt,this.layer);_.Ok(O,sEF,this.layer);this.dragDownAction=function(){w();_.Nh(O,{visualElement:B.fullscreen?nNt:sEF})};
this.gesture=new _.D_(g,r,this.JSC$20107_watchConfig,"pandown");this.attach()};
_.ql.prototype.attach=function(){this.gesture.attach()};
_.ql.prototype.detach=function(){this.gesture.detach()};
_.ql.prototype.update=function(g){this.fullscreen=g;this.gesture.config=g?this.JSC$20107_watchFullScreenConfig:this.JSC$20107_watchConfig};var fRt={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(g){if(g&&g.length==1&&Array.isArray(g[0].loggingUrls)){g=_.jn.unsafeClone(g[0]);var r=this.macros||{},E=this.getAdModuleClient_();if(!E)return _.lq();g.loggingUrls.forEach(function(B){if(B.baseUrl){var w=B.baseUrl;var O=r;O=O===void 0?{}:O;w=E.getOptions().includes("replaceUrlMacros")?_.ybw(E,"replaceUrlMacros",{url:w,additionalMapping:O}):w;B.baseUrl=w}},this);
g=[g]}return _.q2(this.hostElement,g)},
getAdModuleClient_:function(){var g=_.Tw(this);return g?(g=g.getPlayer())?new _.nH(g):null:null}}]};var $kL;var u5=function(){var g=_.a.apply(this,arguments)||this;g.isCollapsed=!1;g.modernPanels=_.Y("kevlar_watch_modern_panels");g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return g};
_.f(u5,_.a);_.S=u5.prototype;_.S.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.S.onDonateTap=function(){var g=this.get("data.donateButton.buttonRenderer.command");if(g){var r=_.PE(),E=this.get("data.donateButton.buttonRenderer.trackingParams");r&&E&&_.Lu(r,_.fW(E));this.ytOpenPopupBehavior.openPopup(g)}};
_.S.onShowMore=function(){this.isCollapsed=!1;var g=_.PE(),r=this.get("data.expandButton.buttonRenderer.trackingParams");g&&r&&_.Lu(g,_.fW(r))};
_.S.onShowLess=function(){this.isCollapsed=!0};
_.S.dataChanged=function(){_.ua(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.S.onDarkModeToggledAction=function(g){this.isDarkTheme=g};
_.S.handleUpdate=function(g){if(g=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",g))this.set("data.startLabel",g.startLabel),this.set("data.endLabel",g.endLabel),this.set("data.progress",g.progress),this.set("data.amountRaisedLabel",g.amountRaisedLabel),this.dataChanged()};
_.S.handleOpenPopupAction=function(g){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",g)&&_.OS(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.S.computeHeaderBackgroundUrl=function(g,r){if(g)return r?g.headerBackgroundDarkUrl:g.headerBackgroundUrl};
_.S.isProgressBarVisible=function(g){return!(!g||g.progress===void 0)};
_.S.headerBackgroundClass=function(){return _.Ca("HTML_DIR")==="rtl"?"flip":""};
u5.prototype.dataChanged=u5.prototype.dataChanged;_.m([_.P(_.ls.YtOpenPopupBehavior),_.L("design:type",Object)],u5.prototype,"ytOpenPopupBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],u5.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],u5.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],u5.prototype,"ytActionHandlerBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],u5.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],u5.prototype,"isCollapsed",void 0);_.m([_.K({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.L("design:type",String)],u5.prototype,"headerBackgroundUrl",void 0);_.m([_.K(),_.L("design:type",Boolean)],u5.prototype,"isDarkTheme",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],u5.prototype,"modernPanels",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],u5.prototype,"dataChanged",null);_.m([_.N({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],u5);
_.I(u5,"ytd-donation-shelf-renderer",function(){if($kL!==void 0)return $kL;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return $kL=g},{mode:1});var jED;var AW$=function(){return _.a.apply(this,arguments)||this};
_.f(AW$,_.a);_.m([_.K(),_.L("design:type",Object)],AW$.prototype,"data",void 0);_.m([_.N({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],AW$);
_.I(AW$,"ytd-donation-unavailable-renderer",function(){if(jED!==void 0)return jED;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return jED=g},{mode:1});var bAA;var l5=function(){return _.a.apply(this,arguments)||this};
_.f(l5,_.a);l5.prototype.computeIconType=function(g){return g?"yt-icons:"+g.toLowerCase():null};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],l5.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],l5.prototype,"data",void 0);_.m([_.N({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],l5);
_.I(l5,"ytd-limited-state-message-renderer",function(){if(bAA!==void 0)return bAA;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return bAA=g},{mode:1});var JWM;var Dg=function(){return _.a.apply(this,arguments)||this};
_.f(Dg,_.a);Dg.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
Dg.prototype.onTap=function(g){var r=this.data&&this.data.endpoint;r&&!_.Zy(_.Z1(g),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.Sh(this.hostElement,"yt-navigate",{endpoint:r})};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Dg.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Dg.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Dg.prototype,"data",void 0);_.m([_.N({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],Dg);
_.I(Dg,"ytd-autotagging-metadata-renderer",function(){if(JWM!==void 0)return JWM;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return JWM=g},{mode:1});var Pft;var on=function(){return _.a.apply(this,arguments)||this};
_.f(on,_.a);on.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],on.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],on.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],on.prototype,"data",void 0);_.m([_.N({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],on);
_.I(on,"ytd-autotagging-metadata-row-renderer",function(){if(Pft!==void 0)return Pft;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return Pft=g},{mode:1});var teF;var FWF;var Gz=function(){var g=_.a.apply(this,arguments)||this;g.engagementPanelContent=!1;return g};
_.f(Gz,_.a);Gz.prototype.computeHasDividerLine=function(g,r){return g&&!r};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Gz.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Gz.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.L("design:type",Boolean)],Gz.prototype,"hasDividerLine",void 0);_.m([_.K(),_.L("design:type",Object)],Gz.prototype,"engagementPanelContent",void 0);
_.m([_.N({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],Gz);
_.I(Gz,"ytd-metadata-row-header-renderer",function(){if(FWF!==void 0)return FWF;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return FWF=g},{mode:1});var evD;var QG=function(){return _.a.apply(this,arguments)||this};
_.f(QG,_.a);QG.prototype.computeHasDividerLine=function(g){return g};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],QG.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],QG.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.L("design:type",Boolean)],QG.prototype,"hasDividerLine",void 0);_.m([_.N({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],QG);
_.I(QG,"ytd-metadata-row-renderer",function(){if(evD!==void 0)return evD;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return evD=g},{mode:1});var WWg;var zz=function(){return _.a.apply(this,arguments)||this};
_.f(zz,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],zz.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],zz.prototype,"data",void 0);_.m([_.N({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],zz);
_.I(zz,"ytd-metadata-with-image-row-renderer",function(){if(WWg!==void 0)return WWg;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return WWg=g},{mode:1});var Cf4;var kM=function(){var g=_.a.apply(this,arguments)||this;g.rounded=!0;g.fixie=!1;g.fullWidth=!1;return g};
_.f(kM,_.a);_.S=kM.prototype;_.S.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S.onDataChanged=function(){var g=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(r){g.onEndpointLinkKeyPress(r)}))};
_.S.onEndpointLinkKeyPress=function(g){g.target===this.endpointLink&&g.keyCode===13&&_.Sh(this.hostElement,"click")};
_.S.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var g;if((g=this.data)==null?0:g.endpoint)_.uq(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.S.onYtNavigate=function(g){this.endpointHref||(g.stopPropagation(),g.preventDefault())};
_.S.onInformationButtonContainerClick=function(g){g.target.id!=="information-button-container"&&(g.stopPropagation(),g.preventDefault())};
_.S.computeStyle=function(g){return g};
_.S.computeIsThumbnailStyle=function(g){return g==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.S.computeThumbnailWidth=function(g){switch(g){case "RICH_METADATA_RENDERER_STYLE_THUMBNAIL":return 178;case "RICH_METADATA_RENDERER_STYLE_BOX_ART":return 72;case "RICH_METADATA_RENDERER_STYLE_TOPIC":return 96;case "RICH_METADATA_RENDERER_STYLE_SQUARE":return 100;default:return 68}};
_.S.computeThumbnailObjectFit=function(g){switch(g){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.hx.Object.defineProperties(kM.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?0:g.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
kM.prototype.onYtNavigate=kM.prototype.onYtNavigate;kM.prototype.onClick=kM.prototype.onClick;kM.prototype.onDataChanged=kM.prototype.onDataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],kM.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],kM.prototype,"componentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],kM.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],kM.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.L("design:type",String)],kM.prototype,"componentStyle",void 0);_.m([_.K({computed:"computeIsThumbnailStyle(data.style)"}),_.L("design:type",Boolean)],kM.prototype,"isThumbnailStyle",void 0);_.m([_.K({computed:"computeThumbnailObjectFit(data.style)"}),_.L("design:type",String)],kM.prototype,"thumbnailObjectFit",void 0);
_.m([_.K({computed:"computeThumbnailWidth(data.style)"}),_.L("design:type",Number)],kM.prototype,"thumbnailWidth",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],kM.prototype,"rounded",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],kM.prototype,"fixie",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],kM.prototype,"fullWidth",void 0);_.m([_.zb("#endpoint-link"),_.L("design:type",HTMLAnchorElement)],kM.prototype,"endpointLink",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],kM.prototype,"onDataChanged",null);_.m([_.W("data.endpoint"),_.L("design:type",Object),_.L("design:paramtypes",[])],kM.prototype,"endpointHref",null);_.m([_.ob("click"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],kM.prototype,"onClick",null);
_.m([_.ob("yt-navigate"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],kM.prototype,"onYtNavigate",null);_.m([_.N({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],kM);
_.I(kM,"ytd-rich-metadata-renderer",function(){if(Cf4!==void 0)return Cf4;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Cf4=g},{mode:_.My("kevlar_poly_si_batch_j075")?1:2});var KWv;var Hq=function(){var g=_.a.apply(this,arguments)||this;g.fixie=!1;g.fullWidth=!1;return g};
_.f(Hq,_.a);Hq.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Hq.prototype.computeHasDividerLine=function(g){return g};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Hq.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Hq.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.L("design:type",Boolean)],Hq.prototype,"hasDividerLine",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Hq.prototype,"fixie",void 0);_.m([_.K(),_.L("design:type",Object)],Hq.prototype,"fullWidth",void 0);
_.m([_.N({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],Hq);
_.I(Hq,"ytd-rich-metadata-row-renderer",function(){if(KWv!==void 0)return KWv;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return KWv=g},{mode:1});var pp=function(){var g=_.a.apply(this,arguments)||this;g.engagementPanelContent=!1;g.fixie=!1;g.fullWidth=!1;return g};
_.f(pp,_.a);
pp.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"}}}};
pp.prototype.computeCollapsibleItems=function(g,r,E){return g===void 0||r===void 0||E===void 0||E?[]:g.slice(r)};
pp.prototype.computeAlwaysShownItems=function(g,r){return g&&g.length?g.slice(0,r):[]};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],pp.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],pp.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],pp.prototype,"data",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],pp.prototype,"collapsed",void 0);
_.m([_.K({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.L("design:type",Array)],pp.prototype,"alwaysShownItems",void 0);_.m([_.K({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.L("design:type",Array)],pp.prototype,"collapsibleItems",void 0);_.m([_.K(),_.L("design:type",Object)],pp.prototype,"engagementPanelContent",void 0);_.m([_.K(),_.L("design:type",Object)],pp.prototype,"fixie",void 0);
_.m([_.K(),_.L("design:type",Object)],pp.prototype,"fullWidth",void 0);_.m([_.N({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],pp);
_.I(pp,"ytd-metadata-row-container-renderer",function(){if(teF!==void 0)return teF;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return teF=g},{mode:1});var xkD;var YM=function(){var g=_.a.apply(this,arguments)||this;g.currentPageUrl="";g.baseUrl="";g.isHiddenByUser=null;g.hidden=!1;g.showAboveScrim=!1;g.watchNextGrid=_.Y("kevlar_watch_grid");g.modernButtons=_.Y("web_modern_buttons");g.roundedContainer=!0;g.noBorder=!1;g.roundBackground=!_.Y("live_chat_round_background_killswitch");g.overflowHideChat=_.Y("live_chat_overflow_hide_chat");g.forceDarkTheme=!1;g.theaterWatchWhile=!1;g.isListeningForPlayerProgress=!1;g.JSC$20143_playerEvents=new Map;g.isFrameReady=
!1;g.player=null;g.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 g};
_.f(YM,_.a);_.S=YM.prototype;_.S.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.US(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.S.created=function(){var g=this;this.handleIframeEventListener=function(r){g.handleIframeEvent(r)};
this.handleKeyboardEventListener=function(r){g.handleKeyboardEvent(r)};
this.JSC$20143_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$20143_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20143_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$20143_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$20143_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.S.attached=function(){window.addEventListener("message",this.handleIframeEventListener);window.addEventListener("keydown",this.handleKeyboardEventListener);window.addEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl=window.location.href;this.setupPlayerProgressRelay();this.collapsedChanged()};
_.S.detached=function(){window.removeEventListener("message",this.handleIframeEventListener);window.removeEventListener("keydown",this.handleKeyboardEventListener);window.removeEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl="";this.isListeningForPlayerProgress=!1;this.setPlayer(null);this.isFrameReady=!1};
_.S.computeBaseUrl=function(g){var r="/live_chat";this.isChatReplay()&&(r="/live_chat_replay");return _.d9(_.v2(_.yu(_.cT(g),r),null),"").toString()};
_.S.dataChanged=function(){_.Y("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.S.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var g=this.url;if(this.isChatReplay()&&this.player){var r=Math.floor(this.player.getProgressState().current*1E3);g=_.L5(_.cT(g),"playerOffsetMs",r.toString()).toString()}r=this.chatframe;try{var E=g==="about:blank"?_.n_l:_.nI(g),B=r.contentDocument.location,w=_.jy(E);w!==void 0&&B.replace(w)}catch(O){r.src=g}}};
_.S.collapsedChanged=function(){_.Sh(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.S.handleIframeEvent=function(g){if(g&&this.baseUrl.startsWith(g.origin)&&g.source===this.chatframe.contentWindow&&_.gA(g.data))if(g.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(g);else if(g.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(g.data["yt-show-feedback-dialog"]){var r=_.rM().resolve(_.gM(_.iEm));if(r){var E=g.ports,B;E&&E.length&&(B=function(){E[0].postMessage({})});
g=g.data["yt-show-feedback-dialog"];r.showFeedbackDialog(g.customProductData,g.feedbackContent,B,g.bucket)}}else if(g.data["yt-show-survey"])_.Sh(this.hostElement,"yt-show-survey",g.data["yt-show-survey"]);else if(g.data["yt-purchase-membership"])_.rM().resolve(_.Er).resolveCommand(g.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(g.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(g.data["yt-tunnel-out-live-service-request"]);else if(g.data["yt-user-activity"])_.ru();
else if(g.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(g.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(g.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(g.data["yt-open-popup"]);else if(g.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(g.data["yt-log-flow-logging-event-command"]);else if(g.data["yt-hide-live-chat"])this.onShowHideChat();else g.data["yt-report-moderation-state-log"]&&
this.player&&(r={cpn:this.player.getVideoData().cpn},_.Jn("liveChatBeingModerated",r))};
_.S.attachLiveChatResponseVeTrackingParams=function(g){g=_.fW(g);var r=_.PE(),E=_.XS("liveChatRenderer.trackingParams",this.data);r&&E&&_.N2(r,_.fW(E),g)};
_.S.handleBuyflowMessages=function(g){var r=g.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,E=g.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,B=g.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.VAA(_.rx(_.hO),r.replace(/-/g,"+").replace(/_/g,"/"),function(w){g.ports[0].postMessage({success:!0,buyFlowResponse:w})},void 0,function(w){g.ports[0].postMessage({success:!1,
error:w&&w.message||"Buyflow rejected without error."})},_.pu().get("hl"),void 0,function(){g.ports[0].postMessage({closed:!0})},E,B)};
_.S.setupPlayerProgressRelay=function(){var g=this;if(!this.isListeningForPlayerProgress){var r=_.gr();r!=null&&r.getPlayerPromise&&(r.getPlayerPromise().then(function(E){g.playerApiReady(E)}),this.isListeningForPlayerProgress=!0)}};
_.S.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.S.playerApiReady=function(g){this.setPlayer(g)};
_.S.playerProgressHandler=function(){if(this.player){var g=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":g.current})}};
_.S.playerAdStartHandler=function(g){this.postToContentWindow({"yt-player-ad-start":g})};
_.S.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.S.playerStateChangeHandler=function(g){this.postToContentWindow({"yt-player-state-change":g})};
_.S.setPlayer=function(g){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20143_playerEvents);g&&(this.player=g,this.ytPlayerListenerBehavior.listenToPlayerEvents(g,this.JSC$20143_playerEvents),_.Sh(this.hostElement,"player-api-ready"))};
_.S.liveChatPageUrl=function(g,r,E,B){return!E||r?"about:blank":E.liveChatRenderer?(r=_.cT(this.currentPageUrl).JSC$8122_queryData_,zY8(r),g=_.cT(g),r.add("continuation",E.liveChatRenderer.continuations[0].reloadContinuationData.continuation),E=_.bF()==="USER_INTERFACE_THEME_DARK",(B||E)&&r.add("dark_theme","true"),_.v2(g,r),B=_.cT(g.toString()),E=B.JSC$8122_queryData_,"SESSION_INDEX"in _.eS&&(E.add("authuser",_.Ca("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.eS&&E.add("pageId",_.Ca("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.eS&&E.add("sdc",_.Ca("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),B.toString()):""};
_.S.isCollapsed=function(g,r){return r!==null?r:this.isChatReplay()||g&&g.conversationBarRenderer&&g.conversationBarRenderer.availabilityMessage?!0:g?g.liveChatRenderer?g.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.Y("live_chat_hide_premiere_replay_message")||g.conversationBarRenderer&&g.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.S.isHidden=function(g,r,E){var B=r&&r.conversationBarRenderer&&r.conversationBarRenderer.availabilityMessage,w=r&&r.liveChatRenderer&&r.liveChatRenderer.showHideButton,O=r&&r.liveChatRenderer&&r.liveChatRenderer.showButton;return E&&g&&!B&&!O||!E&&g&&!B&&!w?!0:r&&r.liveChatRenderer&&r.liveChatRenderer.initialDisplayState?r.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.S.computeButtonOverride=function(g,r){if(g&&r)return{type:"outline"}};
_.S.setCollapsedState=function(g){_.n(g,_.WCI)&&(this.isHiddenByUser=!!_.n(g,_.WCI).collapsed,!this.isHiddenByUser&&_.Y("enable_teaser_framework_web_client")&&_.OS(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.S.forwardReduxActionToIframe=function(g){this.postToContentWindow({"yt-live-chat-forward-redux-action":g})};
_.S.onLoopRangeChange=function(g){this.showAboveScrim=!(g==null||!g.postId)};
_.S.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.S.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.S.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.S.sendDarkThemePostMessage=function(g){this.postToContentWindow({"yt-live-chat-set-dark-theme":g})};
_.S.onLiveChatBuyFlowCallback=function(g){this.postToContentWindow({"yt-live-chat-buy-flow-callback":g})};
_.S.handleKeyboardEvent=function(g){(0,_.jn.containsValue)(Q5g,g.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:g.type,keyCode:g.keyCode}})};
_.S.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.S.postToContentWindow=function(g){if(this.isFrameReady)try{var r=window.location.protocol+"//"+window.location.host,E;(E=this.chatframe)!=null&&E.contentWindow?this.chatframe.contentWindow.postMessage(g,r):_.el(new _.Rj("Tried posting a message to an iframe with no content window",g))}catch(B){_.tn(B)}};
_.S.shouldHideChatFrame=function(g){return g&&_.Y("hide_live_chat_button_when_collapsed")};
_.hx.Object.defineProperties(YM.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.Y("live_chat_overflow_hide_chat")||_.Y("web_watch_chat_hide_button_killswitch"))return _.Y("live_chat_overflow_hide_chat");var g,r,E,B;return!!((g=this.data)==null?0:(r=g.liveChatRenderer)==null?0:(E=r.header)==null?0:(B=E.liveChatHeaderRenderer)==null?0:B.collapseButton)}}});
YM.prototype.collapsedChanged=YM.prototype.collapsedChanged;YM.prototype.urlChanged=YM.prototype.urlChanged;YM.prototype.dataChanged=YM.prototype.dataChanged;YM.prototype.onShowHideChat=YM.prototype.onShowHideChat;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],YM.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],YM.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],YM.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.a9.YtPlayerListenerBehavior),_.L("design:type",_.X0)],YM.prototype,"ytPlayerListenerBehavior",void 0);_.m([_.P(_.ls.YtOpenPopupBehavior),_.L("design:type",Object)],YM.prototype,"ytOpenPopupBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],YM.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],YM.prototype,"currentPageUrl",void 0);
_.m([_.K({computed:"computeBaseUrl(currentPageUrl,data)"}),_.L("design:type",Object)],YM.prototype,"baseUrl",void 0);_.m([_.K({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.L("design:type",String)],YM.prototype,"url",void 0);_.m([_.K(),_.L("design:type",Object)],YM.prototype,"isHiddenByUser",void 0);_.m([_.K({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.L("design:type",Object)],YM.prototype,"hidden",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.L("design:type",Boolean)],YM.prototype,"collapsed",void 0);_.m([_.K({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.L("design:type",Boolean)],YM.prototype,"hideChatFrame",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],YM.prototype,"showAboveScrim",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],YM.prototype,"watchNextGrid",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],YM.prototype,"modernButtons",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],YM.prototype,"roundedContainer",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],YM.prototype,"noBorder",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],YM.prototype,"roundBackground",void 0);
_.m([_.K({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.L("design:type",Object)],YM.prototype,"toggleButtonOverride",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],YM.prototype,"overflowHideChat",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],YM.prototype,"forceDarkTheme",void 0);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],YM.prototype,"enableShowWithoutHideChatButton",null);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],YM.prototype,"theaterWatchWhile",void 0);_.m([_.zb("#chatframe"),_.L("design:type",HTMLIFrameElement)],YM.prototype,"chatframe",void 0);_.m([_.ob("yt-toggle-button"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],YM.prototype,"onShowHideChat",null);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],YM.prototype,"dataChanged",null);
_.m([_.Gb("url"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],YM.prototype,"urlChanged",null);_.m([_.Gb("collapsed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],YM.prototype,"collapsedChanged",null);_.m([_.N({is:"ytd-live-chat-frame",disableElementRegistration:!0})],YM);
_.I(YM,"ytd-live-chat-frame",function(){if(xkD!==void 0)return xkD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return xkD=g},{mode:1});var aR6;var Rn=function(){var g=_.a.apply(this,arguments)||this;g.modern=_.Y("web_modern_buttons");g.buttonOverrides={style:"call-to-action",type:"filled"};return g};
_.f(Rn,_.a);Rn.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=_.aJ(this.data.backgroundColor)))};
Rn.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var g=this.getFormattedStringLoggingDirectives(this.data.headline);g&&this.rendererBehavior.logExplicitClick(g)}};
Rn.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var g=this.getFormattedStringLoggingDirectives(this.data.description);g&&this.rendererBehavior.logExplicitClick(g)}};
Rn.prototype.getFormattedStringLoggingDirectives=function(g){return g&&g.runs&&g.runs.length>0&&g.runs[0]&&g.runs[0].loggingDirectives?g.runs[0].loggingDirectives:null};
Rn.prototype.dataChanged=Rn.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Rn.prototype,"rendererBehavior",void 0);_.m([_.P(fRt.YtMacroReplacementBehavior),_.L("design:type",Object)],Rn.prototype,"macroReplacementBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Rn.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],Rn.prototype,"navigationEndpoint",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Rn.prototype,"enableColors",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Rn.prototype,"modern",void 0);_.m([_.K(),_.L("design:type",Object)],Rn.prototype,"buttonOverrides",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Rn.prototype,"dataChanged",null);_.m([_.N({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],Rn);
_.I(Rn,"ytd-action-basic-immersive-content-renderer",function(){if(aR6!==void 0)return aR6;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return aR6=g},{mode:1});var Xtv;var Nv4;var np=function(){return _.a.apply(this,arguments)||this};
_.f(np,_.a);np.prototype.dataChanged=function(){var g;((g=this.data)==null?void 0:g.backgroundColor)!==void 0&&_.ua(this.hostElement,{"--bgu-color":_.aJ(this.data.backgroundColor)})};
np.prototype.onImageTileClick=function(){var g;((g=this.data)==null?0:g.navigationEndpoint)&&_.Sh(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var r;((r=this.data)==null?0:r.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.hx.Object.defineProperties(np.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var g;if(((g=this.data)==null?void 0:g.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 g;return((g=this.data)==null?void 0:g.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var g,r,E;if(((g=this.data)==null?void 0:(r=g.detailsLine)==null?void 0:r.texts)!=null&&((E=this.data)==null?void 0:E.detailsLine.texts.length)>0){var B;return(B=this.data)==null?void 0:B.detailsLine.texts.map(function(w){return w.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var g,r,E;if(((g=this.data)==null?void 0:(r=g.optionalDetailsLine)==null?void 0:r.texts)!=null&&((E=this.data)==null?void 0:E.optionalDetailsLine.texts.length)>0){var B;return(B=this.data)==null?void 0:B.optionalDetailsLine.texts.map(function(w){return w.text}).join("")}return null}}});
np.prototype.dataChanged=np.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],np.prototype,"rendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],np.prototype,"componentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],np.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.W("data.backgroundColor"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],np.prototype,"hasBackgroundColor",null);
_.m([_.W("data.objectFit"),_.L("design:type",Object),_.L("design:paramtypes",[])],np.prototype,"getObjectFit",null);_.m([_.K({reflectToAttribute:!0}),_.W("data.tileRenderingStyle"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],np.prototype,"hasTileMetadata",null);_.m([_.W("data.detailsLine"),_.L("design:type",Object),_.L("design:paramtypes",[])],np.prototype,"getSecondaryDetails",null);
_.m([_.W("data.optionalDetailsLine"),_.L("design:type",Object),_.L("design:paramtypes",[])],np.prototype,"getOptionalDetails",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],np.prototype,"dataChanged",null);_.m([_.N({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],np);
_.I(np,"ytd-image-tile-renderer",function(){if(Nv4!==void 0)return Nv4;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Nv4=g},{mode:1});var IR4;var sO=function(){return _.a.apply(this,arguments)||this};
_.f(sO,_.a);sO.prototype.getOpenLinkIcon=function(){return _.Y("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
sO.prototype.onSitelinkTap=function(){_.Sh(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.Y("kevlar_command_handler_migration_killswitch"))_.uq(this.hostElement,this.data.clickCommands,this.hostElement);else for(var g=_.U(this.data.clickCommands),r=g.next();!r.done;r=g.next())this.ytComponentBehavior.resolveCommand(r.value)};
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],sO.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],sO.prototype,"rendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],sO.prototype,"data",void 0);_.m([_.N({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],sO);
_.I(sO,"ytd-sitelink-renderer",function(){if(IR4!==void 0)return IR4;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return IR4=g},{mode:1});var fp=function(){var g=_.a.apply(this,arguments)||this;g.paddingFix=_.Y("enable_ads_web_ep_buenos_aires_and_padding_fix");return g};
_.f(fp,_.a);fp.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"}}}};
fp.prototype.dataChanged=function(){var g=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(r){r.clickTrackingParams&&delete r.clickTrackingParams;g.ytMacroReplacementBehavior.sendServiceRequestAction([r])})};
fp.prototype.shouldHideFooter=function(g){return!(g&&_.Y("use_ads_engagement_panel_desktop_footer_cta"))};
_.hx.Object.defineProperties(fp.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var g,r;return((g=this.data)==null?void 0:g.imageTileRenderers)===void 0||((r=this.data)==null?void 0:r.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(E){var B;return(B=_.n(E,RYM))==null?void 0:B.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var g,r;return((g=this.data)==null?void 0:g.imageTileRenderers)===void 0||((r=this.data)==null?void 0:r.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(E){var B;return((B=_.n(E,RYM))==null?void 0:B.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
fp.prototype.dataChanged=fp.prototype.dataChanged;_.m([_.P(fRt.YtMacroReplacementBehavior),_.L("design:type",Object)],fp.prototype,"ytMacroReplacementBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],fp.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],fp.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],fp.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],fp.prototype,"paddingFix",void 0);_.m([_.K({reflectToAttribute:!0}),_.W("data.imageTileRenderers"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],fp.prototype,"removeBorderFromImageTiles",null);_.m([_.K({reflectToAttribute:!0}),_.W("data.imageTileRenderers"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],fp.prototype,"useFooteredMetadataRenderingStyle",null);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],fp.prototype,"dataChanged",null);_.m([_.N({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],fp);
_.I(fp,"ytd-action-engagement-panel-content-renderer",function(){if(Xtv!==void 0)return Xtv;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Xtv=g},{mode:1});var mk$;var cW5=_.dG(function(g){var r=g.data;var E=g.customCommandResolver;g=_.VI("ad-grid-card-image-full-metadata-view-model");_.mz(g,function(){return r().interaction},E);
_.gH(g,{visibilityCallback:function(B){var w,O=(w=r().interaction)==null?void 0:w.onFirstVisible;B&&O&&_.I3(O)},
showOption:_.LO});return _.G("ad-grid-card-image-full-metadata-view-model",{class:function(){var B;return((B=r().interaction)==null?0:B.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:g,"aria-label":function(){var B,w;return(B=r().interaction)==null?void 0:(w=B.accessibility)==null?void 0:w.label}},_.G("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.G(_.Af,{data:function(){return r().adImage}},{adImageViewModel:function(B){return _.G(_.lh,{data:B.data,
customCommandResolver:E})}})),_.G("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.G(_.p,{cond:function(){return r().headline},
then:function(B){return _.G(_.hf,{text:B,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.G(_.p,{cond:function(){return r().detailsLine},
then:function(B){return _.G("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.G(_.Af,{data:B},{adDetailsLineViewModel:function(w){return _.G(_.gR,{data:w.data,customCommandResolver:E,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.G(_.p,{cond:function(){return r().secondaryDetailsLine},
then:function(B){return _.G("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.G(_.Af,{data:B},{adDetailsLineViewModel:function(w){return _.G(_.gR,{data:w.data,customCommandResolver:E,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"fj");var iAM=_.dG(function(g){var r=g.data;var E=g.customCommandResolver;g=_.VI("ad-grid-card-image-view-model");_.mz(g,function(){return r().interaction},E);
_.gH(g,{visibilityCallback:function(B){var w,O=(w=r().interaction)==null?void 0:w.onFirstVisible;B&&O&&_.I3(O)},
showOption:_.LO});return _.G("ad-grid-card-image-view-model",{class:function(){var B;return((B=r().interaction)==null?0:B.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:g,"aria-label":function(){var B,w;return(B=r().interaction)==null?void 0:(w=B.accessibility)==null?void 0:w.label}},_.G(_.Af,{data:function(){return r().adImage}},{adImageViewModel:function(B){return _.G(_.lh,{data:B.data,
customCommandResolver:E})}}),_.G("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.G(_.Af,{data:function(){return r().adCardBadge}},{adCardBadgeViewModel:_.HJ6})))},"gj");var LWt=_.dG(function(g){var r=g.data;var E=g.customCommandResolver;g=_.VI("ad-grid-card-text-view-model");_.mz(g,function(){return r().interaction},E);
_.gH(g,{visibilityCallback:function(B){var w,O=(w=r().interaction)==null?void 0:w.onFirstVisible;B&&O&&_.I3(O)},
showOption:_.LO});return _.G("ad-grid-card-text-view-model",{class:function(){var B;return((B=r().interaction)==null?0:B.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:g,"aria-label":function(){var B,w;return(B=r().interaction)==null?void 0:(w=B.accessibility)==null?void 0:w.label}},_.G("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.G(_.p,{cond:function(){return r().title},
then:function(B){return _.G(_.hf,{text:B,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.G("div",{class:function(){return _.Y("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.G(_.Ra,{each:function(){var B;
return((B=r())==null?void 0:B.descriptions)||[]},
keyBy:"INDEX"},function(B){return _.G(_.hf,{text:B,className:function(){return _.Y("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.G("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.G(_.Af,{data:function(){return r().moreInfoButton}},{adButtonViewModel:function(B){return _.G(_.hK,{data:B.data,
customCommandResolver:E})}})))},"hj");var VeM=_.dG(function(g){var r=g.data;var E=g.customCommandResolver;var B=g.adGridCardCollectionStyle;g=_.VI("ad-grid-card-collection-view-model");_.gH(g,{visibilityCallback:function(w){var O,M=(O=r().interaction)==null?void 0:O.onFirstVisible;w&&M&&_.I3(M)},
showOption:_.LO});return _.G("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:g,style:function(){return"grid-template-columns: repeat("+WOz(B?B():r().style)+", minmax(0, 1fr));"}},_.G(_.Af,{data:function(){var w;
return(w=r())==null?void 0:w.gridCards}},{adGridCardImageViewModel:function(w){return _.G(iAM,{data:w.data,
customCommandResolver:E})},
adGridCardImageFullMetadataViewModel:function(w){return _.G(cW5,{data:w.data,customCommandResolver:E})},
adGridCardTextViewModel:function(w){return _.G(LWt,{data:w.data,customCommandResolver:E})}}))},"ij");_.BK(_.dG(function(g){var r=g.data;g=_.VI("panel-text-icon-image-tiles-button-layout-content-view-model");_.mz(g,function(){return r().interaction},Ct5);
_.gH(g,{visibilityCallback:function(E){var B,w=(B=r().interaction)==null?void 0:B.onFirstVisible;E&&w&&_.I3(w)},
showOption:_.LO});return _.G("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:g},_.G("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.G(_.p,{cond:_.j7l("(min-width: "+((0,_.bH)()+_.KE)+"px)"),then:function(){return _.G(_.Af,{data:function(){return r().adGridCardCollection}},{adGridCardCollectionViewModel:function(E){return _.G(VeM,{data:E.data,
customCommandResolver:Ct5})}})},
else:function(){return _.G(_.Af,{data:function(){return r().adGridCardCollection}},{adGridCardCollectionViewModel:function(E){return _.G(VeM,{data:E.data,
customCommandResolver:Ct5,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.G("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.G(_.Af,{data:function(){return r().adButton}},{adButtonViewModel:function(E){return _.G(_.hK,{data:E.data,
customCommandResolver:Ct5})}})))},"jj"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.cP}});_.BK(_.dG(function(g){var r=g.data;g=_.VI("panel-text-icon-text-grid-cards-sub-layout-content-view-model");_.mz(g,function(){return r().interaction},KOF);
_.gH(g,{visibilityCallback:function(E){var B,w=(B=r().interaction)==null?void 0:B.onFirstVisible;E&&w&&_.I3(w)},
showOption:_.LO});return _.G("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:g},_.G("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.G(_.Af,{data:function(){if(_.j7l("(min-width: "+((0,_.bH)()+_.KE)+"px)")())var E=r().adGridCardCollection;else{E=Object.assign({},_.n(r().adGridCardCollection,nG6));var B;E.gridCards!==void 0&&((B=E.gridCards)==null?void 0:B.length)>1?E.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":E.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";E={adGridCardCollectionViewModel:E}}return E}},{adGridCardCollectionViewModel:function(E){return _.G(VeM,{data:E.data,
customCommandResolver:KOF})}})),_.G("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.G(_.Af,{data:function(){return r().adButton}},{adButtonViewModel:function(E){return _.G(_.hK,{data:E.data,
customCommandResolver:KOF})}})))},"kj"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.cP}});var $M=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return g};
_.f($M,_.a);_.S=$M.prototype;_.S.configureRendererStamper=function(){return{"data.contentRenderer":{id:"content",mapping:{actionEngagementPanelContentRenderer:"ytd-action-engagement-panel-content-renderer",basicImmersiveEngagementPanelContentRenderer:"ytd-action-basic-immersive-content-renderer",panelTextIconImageTilesButtonLayoutContentViewModel:"panel-text-icon-image-tiles-button-layout-content-view-model",panelTextIconTextGridCardsSubLayoutContentViewModel:"panel-text-icon-text-grid-cards-sub-layout-content-view-model"}}}};
_.S.attached=function(){this.getDataFromPlayerAndRender()};
_.S.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.S.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.S.getDataFromPlayerAndRender=function(){var g=this,r=_.Tw(this.hostElement);r&&r.getPlayerPromise().then(function(E){g.getCachedDataAndListen(E)})};
_.S.getCachedDataAndListen=function(g){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(g,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(g,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=g)};
_.S.resolveCachedActions=function(){var g=_.XS("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(g=g&&g())&&!_.jn.isEmpty(g)&&this.sendUpdateEngagementPanelAction(g);(g=(g=_.XS("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&g())&&!_.jn.isEmpty(g)&&this.sendChangeEngagementPanelVisibilityAction(g);(g=(g=_.XS("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&g())&&!_.jn.isEmpty(g)&&this.sendScrollToEngagementPanelCommand(g)};
_.S.sendUpdateEngagementPanelAction=function(g){var r;_.OS(this.hostElement,"yt-update-engagement-panel-action",[(r=_.jn.get(g,"action"))!=null?r:g])};
_.S.sendChangeEngagementPanelVisibilityAction=function(g){_.OS(this.hostElement,"yt-change-engagement-panel-visibility-action",[g])};
_.S.sendScrollToEngagementPanelCommand=function(g){_.OS(this.hostElement,"yt-scroll-to-engagement-panel-command",[g])};
_.S.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.Y("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.el(Error("nm"))};
$M.prototype.dataChanged=$M.prototype.dataChanged;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],$M.prototype,"actionHandlerBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],$M.prototype,"componentBehavior",void 0);_.m([_.P(_.a9.YtPlayerListenerBehavior),_.L("design:type",_.X0)],$M.prototype,"ytPlayerListenerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],$M.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],$M.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],$M.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],$M.prototype,"player",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],$M.prototype,"dataChanged",null);_.m([_.N({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],$M);
_.I($M,"ytd-ads-engagement-panel-content-renderer",function(){if(mk$!==void 0)return mk$;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);
return mk$=g},{mode:1});var hvg;var jm=function(){var g=_.a.apply(this,arguments)||this;g.player=null;g.JSC$20180_playerEvents=new Map;g.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return g};
_.f(jm,_.a);_.S=jm.prototype;_.S.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer",commentActionButtonsRenderer:{component:"ytd-comment-action-buttons-renderer",properties:{voteCount:"[[voteCount]]"}}}}}};
_.S.created=function(){this.player=null;this.JSC$20180_playerEvents=new Map;this.JSC$20180_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$20180_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20180_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20180_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.S.attached=function(){var g=this,r=_.Tw();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));r&&r.getPlayerPromise().then(function(E){g.setPlayer(E);g.set("isPageLoad",!1)})};
_.S.setPlayer=function(g){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20180_playerEvents);this.set("player",g);g&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(g,this.JSC$20180_playerEvents),g.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.S.onLoopRangeChange=function(g){var r=_.rM().resolve(_.gM(_.vK));if((!r||r.isOnWatch())&&this.hostElement.clientHeight){var E;!g&&((E=this.data)==null?0:E.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.S.onVideoProgress=function(g){var r,E,B=((r=this.player)==null?void 0:(E=r.getPresentingPlayerType)==null?void 0:E.call(r))===2;this.isAdPlaying!==B&&this.set("isAdPlaying",B);var w;if(!B&&(w=this.player)!=null&&w.getLoopRange()){E=this.player.getLoopRange();r=E.startTimeMs;E=E.endTimeMs;B=this.player.getProgressState(1).seekableStart;var O;r<B*1E3&&((O=this.data)==null?0:O.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
g=E<g*1E3;var M;((M=this.player)==null?0:M.getLoopRange())&&g&&this.player.seekTo(r/1E3)}};
_.S.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.S.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.S.onYtDeleteClipEngagementPanelCommand=function(g){_.n(g,xIF).command&&this.ytComponentBehavior.resolveCommand(_.n(g,xIF).command)};
_.hx.Object.defineProperties(jm.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.voteCount)||_.Lf("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],jm.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],jm.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],jm.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],jm.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.a9.YtPlayerListenerBehavior),_.L("design:type",_.X0)],jm.prototype,"ytPlayerListenerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],jm.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],jm.prototype,"isAdPlaying",void 0);_.m([_.K({reflectToAttribute:!0,value:!0}),_.L("design:type",Boolean)],jm.prototype,"isPageLoad",void 0);_.m([_.K({reflectToAttribute:!0,value:!0}),_.L("design:type",Boolean)],jm.prototype,"isDarkTheme",void 0);
_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],jm.prototype,"voteCount",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],jm.prototype,"channelEndpoint",null);_.m([_.W("channelEndpoint"),_.L("design:type",Object),_.L("design:paramtypes",[])],jm.prototype,"channelHref",null);_.m([_.N({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],jm);
_.I(jm,"ytd-clip-attribution-renderer",function(){if(hvg!==void 0)return hvg;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return hvg=g},{mode:1});var ZA$;var AV=function(){var g=_.a.apply(this,arguments)||this;g.player=null;g.JSC$20185_playerEvents=new Map;return g};
_.f(AV,_.a);_.S=AV.prototype;_.S.created=function(){this.player=null;this.JSC$20185_playerEvents=new Map;this.JSC$20185_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20185_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20185_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.S.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.S.attached=function(){var g=this,r=_.Tw();r&&r.getPlayerPromise().then(function(E){g.setPlayer(E);g.set("isPageLoad",!1)})};
_.S.setPlayer=function(g){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20185_playerEvents);this.set("player",g);if(g){this.ytPlayerListenerBehavior.listenToPlayerEvents(g,this.JSC$20185_playerEvents);var r;(g==null?void 0:(r=g.getPresentingPlayerType)==null?void 0:r.call(g))===2&&this.playerAdStartHandler()}};
_.S.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.S.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.S.onVideoProgress=function(){var g,r,E=((g=this.player)==null?void 0:(r=g.getPresentingPlayerType)==null?void 0:r.call(g))===2;this.isAdPlaying!==E&&this.set("isAdPlaying",E)};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],AV.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],AV.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.a9.YtPlayerListenerBehavior),_.L("design:type",_.X0)],AV.prototype,"ytPlayerListenerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],AV.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],AV.prototype,"isAdPlaying",void 0);
_.m([_.K({reflectToAttribute:!0,value:!0}),_.L("design:type",Boolean)],AV.prototype,"isPageLoad",void 0);_.m([_.N({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],AV);
_.I(AV,"ytd-clip-section-footer-renderer",function(){if(ZA$!==void 0)return ZA$;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return ZA$=g},{mode:1});var yWz;var vND;var b5=function(){return _.a.apply(this,arguments)||this};
_.f(b5,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],b5.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],b5.prototype,"data",void 0);_.m([_.N({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],b5);
_.I(b5,"ytd-clip-ad-state-renderer",function(){if(vND!==void 0)return vND;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return vND=g},{mode:1});var dkD;var JV=function(){var g=_.a.apply(this,arguments)||this;g.value="";g.valid=!1;g.userChangedValue=!1;g.disabled=!1;g.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return g};
_.f(JV,_.a);_.S=JV.prototype;_.S.detached=function(){this.userChangedValue=!1};
_.S.handleKeyDown=function(g){if(_.Oz)var r=13;else _.A4B&&_.Uz?r=13:r=13;g.keyCode===r&&g.preventDefault()};
_.S.handleInput=function(){var g=_.S3(this.hostElement).querySelector("#title");if(g){var r=(g.value||"").replace(/\r|\n/g," ");this.set("value",r);g.value=r;this.valid=g.validate();this.userChangedValue=!0}};
_.S.handleBlur=function(){this.valid=_.S3(this.hostElement).querySelector("#title").validate()};
_.S.onValueChanged=function(){_.Sh(this.hostElement,"title-changed",{title:this.value})};
_.S.onValidChanged=function(){_.Sh(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.S.setInput=function(g,r){var E=_.S3(this.hostElement).querySelector("#title");E&&(E.value=g,this.handleInput(),r&&(E.invalid=!1,this.valid=!0))};
_.S.onClipCreationDisable=function(){this.set("disabled",!0)};
_.S.onClipCreationEnable=function(){this.set("disabled",!1)};
_.S.onClipCreationVisibilityChange=function(g){var r=this;g.visible?requestAnimationFrame(function(){var E;((E=_.S3(r.hostElement).querySelector("#title"))==null?void 0:E.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
JV.prototype.onValidChanged=JV.prototype.onValidChanged;JV.prototype.onValueChanged=JV.prototype.onValueChanged;JV.prototype.handleBlur=JV.prototype.handleBlur;JV.prototype.handleInput=JV.prototype.handleInput;JV.prototype.handleKeyDown=JV.prototype.handleKeyDown;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],JV.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],JV.prototype,"ytActionHandlerBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],JV.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],JV.prototype,"value",void 0);_.m([_.K(),_.L("design:type",Object)],JV.prototype,"valid",void 0);_.m([_.K(),_.L("design:type",Object)],JV.prototype,"userChangedValue",void 0);_.m([_.K(),_.L("design:type",Object)],JV.prototype,"disabled",void 0);_.m([_.ob("keydown"),_.L("design:type",Function),_.L("design:paramtypes",[KeyboardEvent]),_.L("design:returntype")],JV.prototype,"handleKeyDown",null);
_.m([_.ob("input"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],JV.prototype,"handleInput",null);_.m([_.ob("blur"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],JV.prototype,"handleBlur",null);_.m([_.Gb("value"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],JV.prototype,"onValueChanged",null);
_.m([_.Gb("valid"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],JV.prototype,"onValidChanged",null);_.m([_.N({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],JV);
_.I(JV,"ytd-clip-creation-text-input-renderer",function(){if(dkD!==void 0)return dkD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return dkD=g},{mode:1});var Tvm;var gqF;var rYg;var Eq$;var B7L;var Pq=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};g.pendingStoryboardImages_={};g.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];g.tickLabelInterval=30;g.mediumTickInterval=5;g.largeTickInterval=15;g.aboveRulerHeight=32;g.rulerHeight=50;g.smallTickHeight=4;g.mediumTickHeight=8;g.largeTickHeight=16;g.mediaListeners_=
{};return g};
_.f(Pq,_.a);_.S=Pq.prototype;_.S.attached=function(){var g=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(r){r=_.U(["screen and (min-resolution: "+r+")","screen and (max-resolution: "+r+")"]);for(var E=r.next();!E.done;E=r.next()){E=E.value;var B=window.matchMedia(E);B&&(g.mediaListeners_[E]=g.updatePixelRatio_.bind(g),B.addEventListener?B.addEventListener("change",g.mediaListeners_[E]):B.addListener?B.addListener(g.mediaListeners_[E]):delete g.mediaListeners_[E])}})};
_.S.detached=function(){this.setPlayer(null);for(var g=_.U(Object.keys(this.mediaListeners_)),r=g.next();!r.done;r=g.next()){var E=r.value;r=this.mediaListeners_[E];(E=window.matchMedia(E))&&(E.removeEventListener?E.removeEventListener("change",r):E.removeListener&&E.removeListener(r))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.S.onVisibilityChangedAction_=function(g){var r=this;g.visible&&!this.player_&&(g=_.Tw())&&g.getPlayerPromise().then(function(E){r.setPlayer(E)})};
_.S.setPlayer=function(g){g&&this.set("player_",g)};
_.S.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.S.setUpCanvas_=function(){var g=this.rulerWidth,r=this.devicePixelRatio_,E=this.visible;this.set("canvasReady_",!1);if(E&&r!==0){E=this.aboveRulerHeight+this.rulerHeight;var B=_.S3(this.hostElement).querySelector("#ticks");B.width=g*r;B.height=E*r;B.style.width=g+"px";B.style.height=E+"px";B.getContext("2d").scale(r,r);this.set("canvasReady_",!0)}};
_.S.drawRuler_=function(g,r,E,B,w,O,M,u,l,Q,z,k){g&&E&&r&&(g=_.S3(this.hostElement).querySelector("#ticks"),r=g.getContext("2d"),r.clearRect(0,0,g.width,g.height),r.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),r.lineWidth=2,r.beginPath(),r.moveTo(0,this.aboveRulerHeight),r.lineTo(g.width,this.aboveRulerHeight),r.moveTo(0,g.height),r.lineTo(g.width,g.height),r.stroke(),this.drawRulerTicks_(g,O,w,B),this.drawStoryboardImages_(g,E,O,w,B),r.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
r.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(M-O,B,!1),this.rulerHeight),E=this.timeToPixels_(u-O,B,!1),r.fillRect(E,this.aboveRulerHeight,g.width-E,this.rulerHeight),this.drawSpeedLines_(g,O,k))};
_.S.drawRulerTicks_=function(g,r,E,B){var w=g.getContext("2d");w.save();w.lineWidth=1;for(var O=Math.floor(Math.max(0,r-this.tickLabelInterval));O<r+E;O++){w.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var M=(O-r)*B;w.beginPath();w.moveTo(M,g.height);var u=this.smallTickHeight;O%this.largeTickInterval===0?u=this.largeTickHeight:O%this.mediumTickInterval===0&&(u=this.mediumTickHeight);w.lineTo(M,g.height-u);w.stroke();O%this.tickLabelInterval===0&&(w.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),w.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),w.fillText(bg(O),M+4,12),w.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),w.moveTo(M,0),w.lineTo(M,this.aboveRulerHeight),w.stroke())}w.restore()};
_.S.percentToHex_=function(g){g=Math.round(g*255).toString(16);g.length<2&&(g="0"+g);return g};
_.S.drawSpeedLines_=function(g,r,E){var B=g.getContext("2d");B.save();var w=Math.min(25,Math.abs(E)-15)/25,O=g.width*.3*w,M=g.width*-.3,u=g.width*1.3,l=this.aboveRulerHeight;g=g.height;var Q=Math.round(4*w),z=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");z.length<7&&(z="#"+z.substring(1,4).repeat(2));var k=this.percentToHex_(.5+w/2);k=z+k;z+="00";if(w>0)for(w=0;w<Q;w++){var H=M+Math.random()*(u-M),R=l+Math.random()*(g-l),A=O+r%O,J=B.createLinearGradient(H,R,H+A,R);
E<0?(J.addColorStop(0,k),J.addColorStop(.4,k),J.addColorStop(.9,z)):(J.addColorStop(.1,z),J.addColorStop(.6,k),J.addColorStop(1,k));B.strokeStyle=J;B.lineWidth=1;B.beginPath();B.moveTo(H,R);B.lineTo(H+A,R);B.stroke()}B.restore()};
_.S.getStoryboardForTime_=function(g,r,E){E===void 0&&(E=r.getNumberOfStoryboardLevels()-1);g=r.getStoryboardFrameIndex(g,E);return r.getStoryboardFrame(g,E)};
_.S.drawStoryboardImages_=function(g,r,E,B,w){if(!this.disabled){g=g.getContext("2d");var O=this.getStoryboardForTime_(0,r);if(O){var M=O.width/O.columns;O=O.height/O.rows;var u=M/O,l=this.rulerHeight*u;l=this.tickLabelInterval*(u<this.tickLabelInterval*w/this.rulerHeight?1/Math.floor(this.tickLabelInterval*w/l):Math.round(l/(this.tickLabelInterval*w)));var Q=l*w,z=this.rulerHeight,k=Q/this.rulerHeight,H=Math.floor(Math.max(0,E-l));for(H-=H%l;H<E+B;H+=l){var R=this.getStoryboardForTime_(H,r),A=this.getPreloadedStoryboard_(R.url);
if(A){var J=(H-E)*w,e=this.aboveRulerHeight,C=R.column*M,X=R.row*O;if(u<k){var Z=z/(Q/u);R=M;Z*=O;X+=(O-Z)/2}else R=Q/(z*u)*M,Z=O,C+=(M-R)/2;g.drawImage(A,C,X,R,Z,J,e,Q,z)}else this.fetchStoryboardImage_(R)}}}};
_.S.getPreloadedStoryboard_=function(g){return this.storyboardImages_.find(function(r){if(r.src==g)return!0;var E=r.src.indexOf(g);return E!=-1&&E==r.src.length-g.length})};
_.S.fetchStoryboardImage_=function(g){var r=this,E=this.getPreloadedStoryboard_(g.url),B=this.pendingStoryboardImages_[g.url];E||B!==void 0||(E=new Promise(function(w){var O=new Image(g.width,g.height);O.src=g.url;O.onload=function(){w(O)};
O.onerror=function(){w(null)}}),this.pendingStoryboardImages_[g.url]=E,E.then(function(w){w&&r.push("storyboardImages_",w);
return w}).finally(function(){delete r.pendingStoryboardImages_[g.url]}))};
_.S.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.S.timeToPixels_=function(g,r,E){g*=r;return E===void 0||E?g+"px":g};
_.S.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
Pq.prototype.drawRuler_=Pq.prototype.drawRuler_;Pq.prototype.setUpCanvas_=Pq.prototype.setUpCanvas_;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Pq.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Pq.prototype,"ytRendererBehavior",void 0);_.m([_.K({value:0}),_.L("design:type",Number)],Pq.prototype,"start",void 0);_.m([_.K({value:30}),_.L("design:type",Number)],Pq.prototype,"end",void 0);
_.m([_.K({value:!1}),_.L("design:type",Boolean)],Pq.prototype,"visible",void 0);_.m([_.K(),_.L("design:type",Object)],Pq.prototype,"player_",void 0);_.m([_.K(),_.L("design:type",Number)],Pq.prototype,"tickSpacing",void 0);_.m([_.K(),_.L("design:type",Number)],Pq.prototype,"windowSizeSec",void 0);_.m([_.K({value:0}),_.L("design:type",Number)],Pq.prototype,"rulerWidth",void 0);_.m([_.K({value:0}),_.L("design:type",Number)],Pq.prototype,"rulerShift",void 0);
_.m([_.K({value:!1}),_.L("design:type",Boolean)],Pq.prototype,"canvasReady_",void 0);_.m([_.K({value:function(){return[]}}),
_.L("design:type",Array)],Pq.prototype,"storyboardImages_",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],Pq.prototype,"disabled",void 0);_.m([_.K({value:0}),_.L("design:type",Number)],Pq.prototype,"forceRender_",void 0);_.m([_.K({value:1}),_.L("design:type",Number)],Pq.prototype,"devicePixelRatio_",void 0);_.m([_.K({value:0}),_.L("design:type",Number)],Pq.prototype,"windowSpeed",void 0);
_.m([_.Gb("visible","devicePixelRatio_","rulerWidth"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Pq.prototype,"setUpCanvas_",null);
_.m([_.Gb("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.L("design:type",Function),_.L("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.L("design:returntype")],Pq.prototype,"drawRuler_",null);_.m([_.e3({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],Pq);
_.I(Pq,"yt-clip-creation-scrubber-canvas",function(){if(B7L===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);B7L=g}g=B7L;return g},
{mode:2});var wev;var SA4;var tV=function(){var g=_.a.apply(this,arguments)||this;g.start=0;g.end=30;g.visible=!1;g.draggingLeft_=!1;g.draggingRight_=!1;g.draggingRuler_=!1;g.draggingWindow_=!1;g.seekableStart=0;g.seekableEnd=0;g.rulerWidth_=0;g.rulerShift_=0;g.windowSlideSpeed=0;g.disabled=!1;g.initialized=!1;g.durationAccessibilityLabel="";g.activeLoopRange_=!1;g.rulerDragMouseStart_=0;g.rulerDragRulerStart_=0;g.rulerDragStartTime_=0;g.rulerDragEndTime_=0;g.dragMouseLastX_=0;g.scrollInterval_=null;g.scrubberVe_=null;g.boundHandlers_=
{};g.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return g};
_.f(tV,_.a);_.S=tV.prototype;
_.S.created=function(){var g=this;this.JSC$20198_playerEvents=new Map;this.JSC$20198_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$20198_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$20198_playerEvents.set("onStateChange",this.onStateChange_);var r={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(r).forEach(function(E){g.boundHandlers_[E]=r[E].bind(g)})};
_.S.attached=function(){this.activeLoopRange_=!1;_.S3(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.S3(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.bW(156731)};
_.S.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.S3(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.S3(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.S.onVisibilityChangedAction_=function(g){var r=this;g.visible&&!this.player_&&(g=_.Tw())&&g.getPlayerPromise().then(function(E){r.setPlayer(E)})};
_.S.setPlayer=function(g){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20198_playerEvents);g&&(this.set("player_",g),this.ytPlayerListenerBehavior.listenToPlayerEvents(g,this.JSC$20198_playerEvents))};
_.S.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.S.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.S.beginHandleDrag_=function(g){this.disabled||(g.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=g.clientX,g.target===_.S3(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():g.target===_.S3(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.S.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.S.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.S.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.S.beginRulerDrag_=function(g){this.disabled||(g.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=g.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.S.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.S.beginWindowScroll_=function(){var g=this;this.scrollInterval_=setInterval(function(){var r=g.windowSlideSpeed;if(r=_.ZJM(g.start,g.boundedRulerStartLimit_())?r-.1:_.ZJM(g.end,g.boundedRulerEndLimit_())?r+.1:0){var E=g.capRulerOffset_(g.rulerShift_+r);E==g.rulerShift_?r=0:(g.set("rulerShift_",E),_.Sh(g.hostElement,"set-fixed-length-range",{start:g.start+r,duration:g.end-g.start}))}g.set("windowSlideSpeed",r)},33)};
_.S.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.S.endDrag_=function(){this.logClick();var g=void 0;this.draggingRight_?g=this.end-1:this.draggingLeft_&&(g=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,g);this.removeMouseEventHandlers_();this.rulerShift_+this.windowSizeSec_<this.end+this.pixelsToTime_(16)&&this.set("rulerShift_",this.end-this.windowSizeSec_+this.pixelsToTime_(16));
this.rulerShift_>this.start-this.pixelsToTime_(16)&&this.set("rulerShift_",this.start-this.pixelsToTime_(16))};
_.S.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.S.updateRulerSize_=function(){this.set("rulerWidth_",_.S3(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.S.handleMouseDrag_=function(g){g.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(g):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(g):this.draggingWindow_&&this.handleWindowDrag_(g))};
_.S.handleRulerDrag_=function(g){g=this.pixelsToTime_(g.clientX-this.rulerDragMouseStart_);g=this.capRulerOffset_(this.rulerDragRulerStart_-g);this.set("rulerShift_",g);var r=this.rulerDragStartTime_-(this.rulerDragRulerStart_-g);_.Sh(this.hostElement,"set-fixed-length-range",{start:r,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-g)-r})};
_.S.handleWindowDrag_=function(g){var r=g.clientX-this.dragMouseLastX_;this.dragMouseLastX_=g.clientX;g=this.pixelsToTime_(r);_.Sh(this.hostElement,"set-fixed-length-range",{start:this.start+g,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.S.capRulerOffset_=function(g){var r=this.seekableStart-this.pixelsToTime_(16),E=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(r,g),E)};
_.S.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.S.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.S.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.S.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.S.handleWindowHandleDrag_=function(g){var r=g.clientX-this.dragMouseLastX_;this.dragMouseLastX_=g.clientX;g=this.pixelsToTime_(r);if(this.draggingLeft_){var E=this.start+g;var B=this.end}else this.draggingRight_&&(E=this.start,B=this.end+g);_.Sh(this.hostElement,"set-range",{start:E,end:B,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.S.onVideoProgress_=function(g){this.disabled||(g=this.timeToPixels_(g-this.rulerShift_,this.tickSpacing_),_.S3(this.hostElement).querySelector("#playhead").style.transform="translateX("+g+")")};
_.S.onClipCreationDisable_=function(){this.endDrag_()};
_.S.timeToPixels_=function(g,r,E){g*=r;return E===void 0||E?g+"px":g};
_.S.pixelsToTime_=function(g){return g/this.tickSpacing_};
_.S.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.S.centerRuler_=function(g,r,E){this.set("rulerShift_",this.capRulerOffset_(g+(r-g)/2-E/2))};
_.S.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.S.updateLoopRange_=function(g,r,E,B,w,O,M){g&&(r&&B&&!E?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(g.pauseVideo(),g.seekTo(w,!1,void 0,void 0,50)):this.draggingRight_?(g.pauseVideo(),g.seekTo(O-.1,!1,void 0,void 0,50)):(M!==void 0?g.seekTo(M,!0,void 0,void 0,50):(r=g.getCurrentTime(),r<w||r>O?g.seekTo(w,!0,void 0,void 0,50):g.seekTo(r,!0,void 0,void 0,50)),g.playVideo()),g.setLoopRange({startTimeMs:w*1E3,endTimeMs:O*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(g.getCurrentTime())):
this.activeLoopRange_&&(g.setLoopRange(null),this.activeLoopRange_=!1))};
_.S.updateHandles_=function(){_.S3(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.S3(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.S.updateRuler_=function(){var g=this.end,r=this.start,E=this.draggableStartLimit_(),B=this.draggableEndLimit_();(r<E-.001||g>B+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.S.computeDurationLabel_=function(g,r){return g?g.replace("$clip_length",parseFloat(r).toFixed(1)):""};
_.S.computeDuration_=function(g,r){return this.isValidTime_(g)&&this.isValidTime_(r)&&g<r?r-g:0};
_.S.isValidTime_=function(g){return isNaN(parseFloat(g))||g<0?!1:this.player_?g>=this.seekableStart&&g<=this.seekableEnd:!0};
_.S.computeWindowSizeSec_=function(g,r,E){return Math.min((g||12E4)/1E3,E-r)};
_.S.computeTickSpacing_=function(g,r){return r?r/g:1};
_.S.onDragStateChanged_=function(){_.Sh(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.S.centerRangeOnTime_=function(g){var r=this.duration;g=aMv(g-r/2,r,this.seekableStart,this.seekableEnd);_.Sh(this.hostElement,"set-fixed-length-range",{start:g.start,duration:g.end-g.start})};
_.S.nearlyLessThan_=function(g,r,E){return g+(E===void 0?1E-6:E)<r};
_.S.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var g=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(g,this.start)||this.nearlyLessThan_(this.end,g))&&this.centerRangeOnTime_(g)}};
_.S.onStateChange_=function(g){this.visible&&!this.disabled&&g==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.S.computeDragState_=function(g,r,E,B){return g?"left":r?"right":E?"ruler":B?"window":"none"};
_.S.logClick=function(){var g=_.PE(),r=_.JF();g&&r&&this.scrubberVe_&&(_.Y("combine_ve_grafts")?_.Sp(_.pW(),this.scrubberVe_,r):_.N2(g,r,this.scrubberVe_),_.Lu(g,this.scrubberVe_))};
tV.prototype.onDragStateChanged_=tV.prototype.onDragStateChanged_;tV.prototype.updateRuler_=tV.prototype.updateRuler_;tV.prototype.updateHandles_=tV.prototype.updateHandles_;tV.prototype.onUpdateLoopRange=tV.prototype.onUpdateLoopRange;tV.prototype.onInitializedChanged_=tV.prototype.onInitializedChanged_;tV.prototype.onVisibleChanged_=tV.prototype.onVisibleChanged_;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],tV.prototype,"ytActionHandlerBehavior",void 0);
_.m([_.P(_.a9.YtPlayerListenerBehavior),_.L("design:type",Object)],tV.prototype,"ytPlayerListenerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],tV.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],tV.prototype,"start",void 0);_.m([_.K(),_.L("design:type",Object)],tV.prototype,"end",void 0);_.m([_.K({computed:"computeDuration_(start, end)"}),_.L("design:type",Number)],tV.prototype,"duration",void 0);
_.m([_.K(),_.L("design:type",String)],tV.prototype,"lengthTemplate",void 0);_.m([_.K({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.L("design:type",String)],tV.prototype,"durationLabel",void 0);_.m([_.K(),_.L("design:type",Object)],tV.prototype,"visible",void 0);_.m([_.K(),_.L("design:type",Object)],tV.prototype,"player_",void 0);_.m([_.K(),_.L("design:type",Object)],tV.prototype,"draggingLeft_",void 0);_.m([_.K(),_.L("design:type",Object)],tV.prototype,"draggingRight_",void 0);
_.m([_.K(),_.L("design:type",Object)],tV.prototype,"draggingRuler_",void 0);_.m([_.K({value:!1}),_.L("design:type",Object)],tV.prototype,"draggingWindow_",void 0);_.m([_.K({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.L("design:type",Number)],tV.prototype,"tickSpacing_",void 0);_.m([_.K(),_.L("design:type",Object)],tV.prototype,"seekableStart",void 0);_.m([_.K(),_.L("design:type",Object)],tV.prototype,"seekableEnd",void 0);
_.m([_.K(),_.L("design:type",Number)],tV.prototype,"windowSizeMs",void 0);_.m([_.K({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.L("design:type",Number)],tV.prototype,"windowSizeSec_",void 0);_.m([_.K(),_.L("design:type",Object)],tV.prototype,"rulerWidth_",void 0);_.m([_.K(),_.L("design:type",Object)],tV.prototype,"rulerShift_",void 0);_.m([_.K(),_.L("design:type",Object)],tV.prototype,"windowSlideSpeed",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],tV.prototype,"disabled",void 0);_.m([_.K(),_.L("design:type",Object)],tV.prototype,"initialized",void 0);_.m([_.K(),_.L("design:type",Object)],tV.prototype,"durationAccessibilityLabel",void 0);_.m([_.K({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.L("design:type",String)],tV.prototype,"dragState",void 0);
_.m([_.Gb("visible"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],tV.prototype,"onVisibleChanged_",null);_.m([_.Gb("initialized"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],tV.prototype,"onInitializedChanged_",null);_.m([_.Gb("player_","visible","disabled","initialized","start","end"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],tV.prototype,"onUpdateLoopRange",null);
_.m([_.Gb("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],tV.prototype,"updateHandles_",null);_.m([_.Gb("start","end"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],tV.prototype,"updateRuler_",null);
_.m([_.Gb("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],tV.prototype,"onDragStateChanged_",null);_.m([_.e3({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],tV);
_.I(tV,"yt-clip-creation-scrubber-view",function(){if(SA4===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;wev===void 0&&(wev=document.createElement("template"));var B=wev;E.call(r,B.content.cloneNode(!0),g.content.firstChild);SA4=g}g=SA4;return g},{mode:2});var FM=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};g.startHighlightTimeout=0;g.endHighlightTimeout=0;return g};
_.f(FM,_.a);_.S=FM.prototype;_.S.attached=function(){var g=this;this.startInput.addEventListener("input",function(r){return g.handleStartInput_(r)});
this.endInput.addEventListener("input",function(r){return g.handleEndInput_(r)});
this.startInput.addEventListener("focusout",function(r){return g.handleStartBlur_(r)});
this.endInput.addEventListener("focusout",function(r){return g.handleEndBlur_(r)})};
_.S.setPlayer=function(g){this.set("player_",g)};
_.S.onSetFixedLengthRange_=function(g){var r=g.detail;g=r.start;var E=r.duration,B=r.startLimit;r=r.endLimit;B||(B=this.seekableStart_);r||(r=this.seekableEnd_);g=aMv(g,E,B,r);this.start=g.start;this.end=g.end};
_.S.onSetRange_=function(g){var r=g.detail;g=r.start;var E=r.end,B=r.startLimit;r=r.endLimit;B||(B=this.seekableStart_);r||(r=this.seekableEnd_);if(g=XIF(g,E,B,r,this.minLengthSec,this.maxLengthSec))this.start=g.start,this.end=g.end};
_.S.updateInputs_=function(){var g=this.end,r=this.start;this.startInput.focused||(this.startInput.value=bg(r,!0));this.endInput.focused||(this.endInput.value=bg(g,!0))};
_.S.handleStartInput_=function(g){g=x5g(g.target.value);if(g===null)this.set("startValid",!1);else{var r=this.end,E=XIF(g,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);E?(this.set("endWillUpdate",E.end!==r),this.set("startValid",E.start===g)):this.set("startValid",!1)}};
_.S.handleEndInput_=function(g){g=x5g(g.target.value);if(g===null)this.set("endValid",!1);else{var r=this.start,E=Nf8(this.start,g,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);E?(this.set("startWillUpdate",E.start!==r),this.set("endValid",E.end===g)):this.set("endValid",!1)}};
_.S.handleStartBlur_=function(g){g=x5g(g.target.value);g===null?this.startInput.value=bg(this.start,!0):this.forceUpdateInputs_(XIF(g,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.S.handleEndBlur_=function(g){g=x5g(g.target.value);g===null?this.endInput.value=bg(this.end,!0):this.forceUpdateInputs_(Nf8(this.start,g,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.S.forceUpdateInputs_=function(g){g&&(this.start=g.start,this.end=g.end);this.startInput.value=bg(this.start,!0);this.endInput.value=bg(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.S.initializeClipRange_=function(){var g=this.seekableEnd_,r=this.seekableStart_,E=this.visible_,B=this.player_;if(!B||!E||r===null||!g)this.set("initialized",!1);else if(!this.initialized){var w=B.getCurrentTime(),O=this.getDefaultLengthSec_();E=B.getVideoData();var M=B.getPlayerState()==1,u=E.isLive;O=Math.min(O,g-r);w=Math.max(0,w);g=u?Nf8(w-O,w,r,g,this.minLengthSec,this.maxLengthSec):M?aMv(w-O/2,O,r,g):aMv(w,O,r,g);this.start=g.start;this.end=g.end;this.set("initialized",!0);E.isLive&&B.seekTo(g.start);
this.startInput.value=bg(this.start,!0);this.endInput.value=bg(this.end,!0)}};
_.S.onStartChanged_=function(){var g=this;_.Sh(this.hostElement,"start-changed",{start:this.start});var r;isNaN((r=this.oldStart)!=null?r:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){g.set("highlightStart",!1);g.startHighlightTimeout=0;g.oldStart=g.start},3E3))};
_.S.onEndChanged_=function(){var g=this;_.Sh(this.hostElement,"end-changed",{end:this.end});var r;isNaN((r=this.oldEnd)!=null?r:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){g.set("highlightEnd",!1);g.endHighlightTimeout=0;g.oldEnd=g.end},3E3))};
_.S.onVisibilityChangedAction_=function(g){var r=this;this.set("visible_",g.visible);this.visible_&&!this.player_&&(g=_.Tw())&&g.getPlayerPromise().then(function(E){r.setPlayer(E)})};
_.S.computeMinLengthSec_=function(g){return g/1E3||5};
_.S.computeMaxLengthSec_=function(g){return g/1E3||60};
_.S.computeDefaultLengthSec_=function(g){return g/1E3};
_.S.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.S.computeSeekableStart_=function(g,r){return g&&r?g.getProgressState(1).seekableStart:0};
_.S.computeSeekableEnd_=function(g,r){return g&&r?g.getProgressState(1).seekableEnd:0};
_.S.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.S.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.S.onDragState_=function(g){this.set("highlightStart",g.detail.startChanging);this.set("highlightEnd",g.detail.endChanging)};
FM.prototype.onDragState_=FM.prototype.onDragState_;FM.prototype.onEndChanged_=FM.prototype.onEndChanged_;FM.prototype.onStartChanged_=FM.prototype.onStartChanged_;FM.prototype.initializeClipRange_=FM.prototype.initializeClipRange_;FM.prototype.updateInputs_=FM.prototype.updateInputs_;FM.prototype.onSetRange_=FM.prototype.onSetRange_;FM.prototype.onSetFixedLengthRange_=FM.prototype.onSetFixedLengthRange_;
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],FM.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],FM.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],FM.prototype,"data",void 0);_.m([_.K({value:0}),_.L("design:type",Number)],FM.prototype,"start",void 0);_.m([_.K({value:!0}),_.L("design:type",Boolean)],FM.prototype,"startValid",void 0);
_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],FM.prototype,"startWillUpdate",void 0);_.m([_.K({value:30}),_.L("design:type",Number)],FM.prototype,"end",void 0);_.m([_.K({value:!0}),_.L("design:type",Boolean)],FM.prototype,"endValid",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],FM.prototype,"endWillUpdate",void 0);_.m([_.K({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.L("design:type",Number)],FM.prototype,"minLengthSec",void 0);
_.m([_.K({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.L("design:type",Number)],FM.prototype,"maxLengthSec",void 0);_.m([_.K({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.L("design:type",Number)],FM.prototype,"defaultLengthSec",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],FM.prototype,"visible_",void 0);_.m([_.K(),_.L("design:type",Object)],FM.prototype,"player_",void 0);
_.m([_.K({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.L("design:type",Number)],FM.prototype,"seekableStart_",void 0);_.m([_.K({computed:"computeSeekableEnd_(player_, visible_)"}),_.L("design:type",Number)],FM.prototype,"seekableEnd_",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],FM.prototype,"initialized",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],FM.prototype,"disabled",void 0);
_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],FM.prototype,"highlightStart",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],FM.prototype,"highlightEnd",void 0);_.m([_.zb("#start"),_.L("design:type",HTMLInputElement)],FM.prototype,"startInput",void 0);_.m([_.zb("#end"),_.L("design:type",HTMLInputElement)],FM.prototype,"endInput",void 0);
_.m([_.ob("set-fixed-length-range"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],FM.prototype,"onSetFixedLengthRange_",null);_.m([_.ob("set-range"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],FM.prototype,"onSetRange_",null);_.m([_.Gb("start","end"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],FM.prototype,"updateInputs_",null);
_.m([_.Gb("player_","visible_","seekableStart_","seekableEnd_"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],FM.prototype,"initializeClipRange_",null);_.m([_.Gb("start"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],FM.prototype,"onStartChanged_",null);_.m([_.Gb("end"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],FM.prototype,"onEndChanged_",null);
_.m([_.ob("clips-drag-state"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],FM.prototype,"onDragState_",null);_.m([_.e3({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],FM);
_.I(FM,"yt-clip-creation-scrubber-renderer",function(){if(Eq$===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;rYg===void 0&&(rYg=document.createElement("template"));var B=rYg;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Eq$=g}g=Eq$;return g},{mode:2});var em=function(){var g=_.a.apply(this,arguments)||this;g.player_=null;g.JSC$20212_playerEvents=new Map;g.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return g};
_.f(em,_.a);_.S=em.prototype;_.S.configureRendererStamper=function(){return{submitButton_:{id:"share",mapping:{buttonRenderer:"yt-button-renderer"}},cancelButton_:{id:"cancel",mapping:{buttonRenderer:"yt-button-renderer"}},"data.titleInput":{id:"title-input",mapping:{clipCreationTextInputRenderer:"ytd-clip-creation-text-input-renderer"}},"data.scrubber":{id:"scrubber",mapping:{clipCreationScrubberRenderer:"yt-clip-creation-scrubber-renderer"}},"data.adStateOverlay":{id:"ad-state",mapping:{clipAdStateRenderer:"ytd-clip-ad-state-renderer"}}}};
_.S.created=function(){this.JSC$20212_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$20212_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$20212_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$20212_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.S.detached=function(){this.setPlayer(null)};
_.S.onVisibilityChangedAction_=function(g){var r=this,E;if((E=this.data)==null?0:E.externalVideoId){var B;this.videoId=(B=this.data)==null?void 0:B.externalVideoId}this.getPlayer().then(function(w){if(g.visible)r.returnTime=w.getCurrentTime(),r.isAtLiveHead=w.getProgressState().isAtLiveHead;else{var O=r.returnTime;r.isAtLiveHead&&(O=Number.POSITIVE_INFINITY);w.seekTo(O,void 0,void 0,void 0,51)}})};
_.S.getPlayer=function(){var g=this;if(!this.player_){var r=_.Tw();if(r)return r.getPlayerPromise().then(function(E){g.setPlayer(E);return E})}return Promise.resolve(this.player_)};
_.S.setPlayer=function(g){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20212_playerEvents);if(g){this.player_=g;var r;((r=this.data)==null?0:r.externalVideoId)||this.set("videoId",g.getVideoData().video_id||"");var E;(g==null?void 0:(E=g.getPresentingPlayerType)==null?void 0:E.call(g))===2&&(this.set("isAdPlaying",!0),_.OS(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(g,this.JSC$20212_playerEvents)}};
_.S.ready=function(){_.S3(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.S.onTitleChanged_=function(g){this.set("titleValue",g.detail.title)};
_.S.onStartChanged_=function(g){this.set("start",g.detail.start)};
_.S.onEndChanged_=function(g){this.set("end",g.detail.end)};
_.S.onTitleValidChanged_=function(g){this.set("titleValid",g.detail.valid)};
_.S.onStartValidChanged_=function(g){this.set("startValid",g.detail.valid)};
_.S.onEndValidChanged_=function(g){this.set("endValid",g.detail.valid)};
_.S.onVideoDataChange_=function(){var g;if((g=this.data)==null||!g.externalVideoId){var r;this.set("videoId",((r=this.player_)==null?void 0:r.getVideoData().video_id)||"")}};
_.S.computeFormValid_=function(g,r,E,B){return!!(g&&r&&E&&B)};
_.S.computeCancelButton_=function(g,r,E){return g&&_.n(g,_.Fd)?{buttonRenderer:Object.assign({},_.n(g,_.Fd),{isDisabled:r||E})}:null};
_.S.computeSubmitButton_=function(g,r,E){return g&&_.n(g,_.Fd)?{buttonRenderer:Object.assign({},_.n(g,_.Fd),{command:void 0,isDisabled:!this.formValid||r||E})}:null};
_.S.computeSubmitCommand_=function(g){return g||null};
_.S.onSubmit_=function(g){var r=this;g.stopPropagation();g.preventDefault();this.submitCommand_&&(g={},g.comment_text=this.titleValue,g.clip_external_video_id=this.videoId,g.clip_offset_ms=parseInt(this.start*1E3,10),g.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.q2(this.hostElement,[this.submitCommand_,g]).then(function(){r.set("isLoading_",!1)},function(){r.set("isLoading_",!1)}))};
_.S.playerAdStartHandler_=function(){_.OS(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.S.playerAdEndHandler_=function(){_.OS(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.S.onVideoProgress_=function(){var g=this;this.getPlayer().then(function(r){var E,B=(r==null?void 0:(E=r.getPresentingPlayerType)==null?void 0:E.call(r))===2;g.isAdPlaying!==B&&(B?g.playerAdStartHandler_():g.playerAdEndHandler_())})};
em.prototype.onEndValidChanged_=em.prototype.onEndValidChanged_;em.prototype.onStartValidChanged_=em.prototype.onStartValidChanged_;em.prototype.onTitleValidChanged_=em.prototype.onTitleValidChanged_;em.prototype.onEndChanged_=em.prototype.onEndChanged_;em.prototype.onStartChanged_=em.prototype.onStartChanged_;em.prototype.onTitleChanged_=em.prototype.onTitleChanged_;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],em.prototype,"ytActionHandlerBehavior",void 0);
_.m([_.P(_.a9.YtPlayerListenerBehavior),_.L("design:type",Object)],em.prototype,"ytPlayerListenerBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],em.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],em.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],em.prototype,"data",void 0);_.m([_.K({value:""}),_.L("design:type",String)],em.prototype,"titleValue",void 0);
_.m([_.K({value:!1}),_.L("design:type",Boolean)],em.prototype,"titleValid",void 0);_.m([_.K({value:0}),_.L("design:type",Number)],em.prototype,"start",void 0);_.m([_.K({value:!0}),_.L("design:type",Boolean)],em.prototype,"startValid",void 0);_.m([_.K({value:0}),_.L("design:type",Number)],em.prototype,"end",void 0);_.m([_.K({value:!0}),_.L("design:type",Boolean)],em.prototype,"endValid",void 0);_.m([_.K({value:""}),_.L("design:type",String)],em.prototype,"videoId",void 0);
_.m([_.K({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.L("design:type",Boolean)],em.prototype,"formValid",void 0);_.m([_.K({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.L("design:type",Object)],em.prototype,"submitButton_",void 0);_.m([_.K({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.L("design:type",Object)],em.prototype,"submitCommand_",void 0);
_.m([_.K({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.L("design:type",Object)],em.prototype,"cancelButton_",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],em.prototype,"isLoading_",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],em.prototype,"isAdPlaying",void 0);_.m([_.K({value:0}),_.L("design:type",Number)],em.prototype,"returnTime",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],em.prototype,"isAtLiveHead",void 0);
_.m([_.ob("title-changed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],em.prototype,"onTitleChanged_",null);_.m([_.ob("start-changed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],em.prototype,"onStartChanged_",null);_.m([_.ob("end-changed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],em.prototype,"onEndChanged_",null);
_.m([_.ob("title-valid-changed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],em.prototype,"onTitleValidChanged_",null);_.m([_.ob("start-valid-changed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],em.prototype,"onStartValidChanged_",null);_.m([_.ob("end-valid-changed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],em.prototype,"onEndValidChanged_",null);
_.m([_.e3({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],em);
_.I(em,"yt-clip-creation-renderer",function(){if(gqF===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;Tvm===void 0&&(Tvm=document.createElement("template"));var B=Tvm;E.call(r,B.content.cloneNode(!0),g.content.firstChild);gqF=g}g=gqF;return g},{mode:2});var Wq=function(){return _.a.apply(this,arguments)||this};
_.f(Wq,_.a);Wq.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"}}}};
Wq.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(g){return g.hasOwnProperty("clipCreationRenderer")})&&_.OS(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
Wq.prototype.onPanelContentVisibleChanged=Wq.prototype.onPanelContentVisibleChanged;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Wq.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Wq.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.XQ.YtVisibilityBehavior),_.L("design:type",Object)],Wq.prototype,"ytVisibilityBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],Wq.prototype,"ytdReduxBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],Wq.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Wq.prototype,"panelContentVisible",void 0);_.m([_.Gb("panelContentVisible"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Wq.prototype,"onPanelContentVisibleChanged",null);_.m([_.N({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],Wq);
_.I(Wq,"ytd-clip-section-renderer",function(){if(yWz!==void 0)return yWz;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return yWz=g},{mode:1});var O8z;var Cp=function(){return _.a.apply(this,arguments)||this};
_.f(Cp,_.a);_.S=Cp.prototype;
_.S.onKeyDown=function(g){if(this.snippetElements.length!==0&&(g=g.keyCode,g===38||g===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);g===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.bj(this.highlightedIndex,-1,this.snippetElements.length);g=this.snippetElements.length;var r=this.highlightedIndex%g;this.highlightedIndex=r*g<0?r+g:r;g=this.snippetElements[this.highlightedIndex];this.highlightSnippet(g);this.ensureVisible(g)}};
_.S.onKeyUp=function(g){var r=this;pnm(g)&&(g.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.F6.cancelJob(this.inputTimerId),this.inputTimerId=_.F6.addLowPriorityJob(function(){r.typedValue&&(r.fetchSnippets(r.typedValue),r.logInputGesture(r.data))},1E3))};
_.S.onClick=function(g){(g=_.Qm4(g.target,null,"snippet-item"))&&this.selectSnippet(g)};
_.S.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.S.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.S.ready=function(){var g=this;this.inputElement.addEventListener("focus",function(){g.snippetsWrapper.style.removeProperty("display")})};
_.S.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.S.getSourceTimelines=function(){if(!this.data)return[];var g=[];if(this.data.searchInVideoSources)for(var r=_.U(this.data.searchInVideoSources),E=r.next();!E.done;E=r.next())E=E.value,E==="SEARCH_IN_VIDEO_SOURCE_ASR"?g.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):E==="SEARCH_IN_VIDEO_SOURCE_OCR"&&g.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return g};
_.S.fetchSnippets=function(g){var r=_.OS(this.hostElement,"yt-get-current-video-id-action")[0],E=this.getSourceTimelines();g={getSearchInVideoCommand:{externalVideoId:r,query:g!=null?g:"",sourceTimelines:E},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.rM().resolve(_.Er).resolveCommand(g,{form:{element:this.hostElement}})};
_.S.filterSnippets=function(g,r){var E=this;if(r){this.filteredSnippets=(0,_.jn.unsafeClone)(g);var B=RegExp(_.XLA(r),"i");this.filteredSnippets=this.filteredSnippets.filter(function(M){return B.test(E.ytRendererBehavior.getSimpleString(M.snippet))});
g=_.U(this.filteredSnippets);for(var w=g.next();!w.done;w=g.next()){w=w.value;var O=this.ytRendererBehavior.getSimpleString(w.snippet);w.snippet={runs:[{text:O.substring(0,O.toLowerCase().indexOf(r))},{text:O.substring(O.toLowerCase().indexOf(r),O.toLowerCase().indexOf(r)+r.length),bold:!0},{text:O.substring(O.toLowerCase().indexOf(r)+r.length,O.length)}]}}}else this.filteredSnippets=g};
_.S.onUpdateSearchInVideoResults=function(g){if(!(this.snippets.length>0)){var r,E,B;if((B=(r=_.n(g,tAA))==null?void 0:(E=r.results)==null?void 0:E.length)!=null&&B){var w;this.filteredSnippets=this.snippets=((w=_.n(g,tAA))==null?void 0:w.results).map(function(O){var M,u,l;return{startMs:O==null?void 0:(M=O.searchInVideoResultRenderer)==null?void 0:M.startMs,startTimeText:O==null?void 0:(u=O.searchInVideoResultRenderer)==null?void 0:u.startTimeText,snippet:O==null?void 0:(l=O.searchInVideoResultRenderer)==
null?void 0:l.snippet}})}}};
_.S.updateSnippetElements=function(){this.snippetElements=Array.from(this.snippetsWrapper.getElementsByClassName("snippet-item"));this.highlightedIndex>=0&&this.highlightedIndex<this.snippetElements.length&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);this.highlightedIndex=-1;this.snippetsWrapper.scrollTop=0};
_.S.highlightSnippet=function(g){g.classList.add("highlighted")};
_.S.removeSnippetHighlight=function(g){g.classList.remove("highlighted")};
_.S.selectSnippet=function(g){this.typedValue=String(g.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(g);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.S.ensureVisible=function(g){var r=this.snippetsWrapper.scrollTop,E=r+this.snippetsWrapper.clientHeight,B=g.offsetTop-this.snippetsWrapper.offsetTop;g=B+g.clientHeight;B<r?this.snippetsWrapper.scrollTop-=r-B:g>E&&(this.snippetsWrapper.scrollTop+=g-E)};
_.S.seekPlayer=function(g){var r,E;return _.q(function(B){if(B.nextAddress==1){if(!g)return B.jumpTo(0);r=Number(g.dataset.startOffset);return _.D(B,_.gr().getPlayerPromise(),3)}E=B.yieldResult;E.seekTo(r/1E3,!0);E.wakeUpControls();_.Q3(B)})};
_.S.logInputGesture=function(g){var r=_.PE();r&&(g==null?0:g.trackingParams)&&_.V_(r,_.fW(g.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.S.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.x8("typed-value-changed",this.typedValue))};
_.S.updateTypedValueFromBinding=function(g){this.typedValue=g.currentTarget.value};
Cp.prototype.typedValueChangedForBinding=Cp.prototype.typedValueChangedForBinding;Cp.prototype.dataChanged=Cp.prototype.dataChanged;Cp.prototype.panelContentVisibleChanged=Cp.prototype.panelContentVisibleChanged;Cp.prototype.onClick=Cp.prototype.onClick;Cp.prototype.onKeyUp=Cp.prototype.onKeyUp;Cp.prototype.onKeyDown=Cp.prototype.onKeyDown;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Cp.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Cp.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Cp.prototype,"data",void 0);_.m([_.K({value:[]}),_.L("design:type",Array)],Cp.prototype,"snippets",void 0);_.m([_.K({value:[]}),_.L("design:type",Array)],Cp.prototype,"filteredSnippets",void 0);_.m([_.K({value:[]}),_.L("design:type",Array)],Cp.prototype,"snippetElements",void 0);
_.m([_.zb("#siv-input"),_.L("design:type",HTMLElement)],Cp.prototype,"inputElement",void 0);_.m([_.zb("#siv-snippets-wrapper"),_.L("design:type",HTMLElement)],Cp.prototype,"snippetsWrapper",void 0);_.m([_.K(),_.L("design:type",String)],Cp.prototype,"typedValue",void 0);_.m([_.K({value:-1}),_.L("design:type",Number)],Cp.prototype,"highlightedIndex",void 0);_.m([_.ob("keydown"),_.L("design:type",Function),_.L("design:paramtypes",[_.Df]),_.L("design:returntype")],Cp.prototype,"onKeyDown",null);
_.m([_.ob("keyup"),_.L("design:type",Function),_.L("design:paramtypes",[_.Df]),_.L("design:returntype")],Cp.prototype,"onKeyUp",null);_.m([_.ob("click"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],Cp.prototype,"onClick",null);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Cp.prototype,"panelContentVisible",void 0);
_.m([_.Gb("panelContentVisible"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Cp.prototype,"panelContentVisibleChanged",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Cp.prototype,"dataChanged",null);_.m([_.Gb("typedValue"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Cp.prototype,"typedValueChangedForBinding",null);
_.m([_.N({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],Cp);
_.I(Cp,"ytd-search-in-video-renderer",function(){if(O8z!==void 0)return O8z;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return O8z=g},{mode:1});var UTM;var Kp=function(){return _.a.apply(this,arguments)||this};
_.f(Kp,_.a);Kp.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
Kp.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]]"}}}}}};
Kp.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var g,r,E,B,w=(r=_.n((g=this.data)==null?void 0:g.onClickCommand,_.QA))==null?void 0:(E=r.item)==null?void 0:(B=E.notificationTextRenderer)==null?void 0:B.successResponseText;w&&_.NPc(this.hostElement,w)}};
_.hx.Object.defineProperties(Kp.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var g,r,E,B;return this.isProductPlaceholder&&((g=this.data)==null?void 0:(r=g.hiddenProductOptions)==null?void 0:r.showDropCountdown)&&!!((E=this.data)==null?0:(B=E.hiddenProductOptions)==null?0:B.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var g;return!this.isProductPlaceholder&&!((g=this.data)==null?0:g.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var g,r;return!((g=this.data)==null?0:g.priceReplacementText)&&!((r=this.data)==null||!r.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Kp.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Kp.prototype,"componentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Kp.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Kp.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.W("isProductPlaceholder"),_.L("design:type",Object),_.L("design:paramtypes",[])],Kp.prototype,"useCenterLayoutContainer",null);_.m([_.K({computed:"computeButtonOverride(data)"}),_.L("design:type",Object)],Kp.prototype,"buttonOverride",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],Kp.prototype,"isProductPlaceholder",null);
_.m([_.W("isProductPlaceholder"),_.L("design:type",Object),_.L("design:paramtypes",[])],Kp.prototype,"showDropCountdown",null);_.m([_.W("isProductPlaceholder","data"),_.L("design:type",Object),_.L("design:paramtypes",[])],Kp.prototype,"showBrandName",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],Kp.prototype,"showPriceReplacementText",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],Kp.prototype,"showPrice",null);
_.m([_.W("isProductPlaceholder"),_.L("design:type",Object),_.L("design:paramtypes",[])],Kp.prototype,"showMetadata",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],Kp);
_.I(Kp,"ytd-product-list-item-renderer",function(){if(UTM!==void 0)return UTM;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return UTM=g},{mode:1});var Mx6;var xM=function(){return _.a.apply(this,arguments)||this};
_.f(xM,_.a);xM.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
xM.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
xM.prototype.panelContentVisibleChanged=function(){var g=this,r;return _.q(function(E){if(E.nextAddress==1)return g.playerApi?E.jumpTo(2):_.D(E,_.gr().getPlayerPromise(),3);E.nextAddress!=2&&(g.playerApi=E.yieldResult);(r=g.playerApi)==null||r.productsInVideoVisibilityUpdated(!!g.panelContentVisible);_.Q3(E)})};
xM.prototype.panelContentVisibleChanged=xM.prototype.panelContentVisibleChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],xM.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],xM.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],xM.prototype,"panelContentVisible",void 0);_.m([_.K(),_.L("design:type",Object)],xM.prototype,"data",void 0);
_.m([_.Gb("panelContentVisible"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype",Promise)],xM.prototype,"panelContentVisibleChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],xM);
_.I(xM,"ytd-product-list-renderer",function(){if(Mx6!==void 0)return Mx6;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return Mx6=g},{mode:1});var qAD;var an=function(){var g=_.a.apply(this,arguments)||this;g.hideTimestamps=!!_.OC("hide-transcript-timestamps");g.currentCueIndex=-1;g.flatCues=[];g.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};g.TEST_ONLY={getFlatCues:function(){return g.flatCues}};
return g};
_.f(an,_.a);_.S=an.prototype;_.S.hideTimestampsChanged=function(){_.S2("hide-transcript-timestamps",this.hideTimestamps)};
_.S.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.S.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.S.dataChanged=function(){var g;if((g=this.data)!=null&&g.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;g=_.U(this.data.cueGroups);for(var r=g.next();!r.done;r=g.next()){r=_.U(_.n(r.value,FBv).cues);for(var E=r.next();!E.done;E=r.next())this.flatCues.push(Number(_.n(E.value,eYM).startOffsetMs))}}};
_.S.onYtPlayerTimeChanged=function(g){if(!(g<0)){for(var r=this.currentCueIndex,E=r;;){var B=E>=0?this.flatCues[E]/1E3:-1;if(g+.5<B)--E;else if(B=E+1<this.flatCues.length?this.flatCues[E+1]/1E3:Infinity,g+.5>B)E+=1;else break}E!==r&&(r>=0&&((g=this.getCueElement(r))&&g.classList.remove("active"),(r=this.getCueGroupElement(r))&&r.classList.remove("active")),(r=this.getCueElement(E))&&r.classList.add("active"),(r=this.getCueGroupElement(E))&&r.classList.add("active"),this.currentCueIndex=E,this.isHovered||
this.scrollElementToTop(E))}};
_.S.scrollElementToTop=function(g){g=this.getCueElement(g>=3?g-3:0);this.hostElement.scrollTop=Math.min(g.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.S.getCueElement=function(g){return _.S3(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[g]+'"]')};
_.S.getCueGroupElement=function(g){return(g=this.getCueElement(g))&&g.parentElement?g.parentElement.parentElement:null};
_.S.onTap=function(g){var r=_.yP(g);g.target.classList.contains("cue")&&this.seekCueElement(r)};
_.S.onKeyPress=function(g){g.keyCode==13&&(g=_.Qm4(g.target,null,"cue"))&&this.seekCueElement(g)};
_.S.seekCueElement=function(g){g=Number(g.getAttribute("start-offset"));_.OS(this.hostElement,"yt-transcript-player-seek",[g/1E3])};
_.S.onMouseEnter=function(){this.isHovered=!0};
_.S.onMouseLeave=function(){this.isHovered=!1};
an.prototype.onMouseLeave=an.prototype.onMouseLeave;an.prototype.onMouseEnter=an.prototype.onMouseEnter;an.prototype.onKeyPress=an.prototype.onKeyPress;an.prototype.onTap=an.prototype.onTap;an.prototype.dataChanged=an.prototype.dataChanged;an.prototype.hideTimestampsChanged=an.prototype.hideTimestampsChanged;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],an.prototype,"ytActionHandlerBehavior",void 0);
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],an.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],an.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],an.prototype,"hideTimestamps",void 0);_.m([_.K(),_.L("design:type",Boolean)],an.prototype,"isHovered",void 0);_.m([_.Gb("hideTimestamps"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],an.prototype,"hideTimestampsChanged",null);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],an.prototype,"dataChanged",null);_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],an.prototype,"onTap",null);_.m([_.ob("keypress"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],an.prototype,"onKeyPress",null);
_.m([_.ob("mouseenter"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],an.prototype,"onMouseEnter",null);_.m([_.ob("mouseleave"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],an.prototype,"onMouseLeave",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],an);
_.I(an,"ytd-transcript-body-renderer",function(){if(qAD!==void 0)return qAD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return qAD=g},{mode:1});var uk$;var XM=function(){var g=_.a.apply(this,arguments)||this;g.darkerPanels=_.Y("web_watch_darker_panels");return g};
_.f(XM,_.a);XM.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],XM.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],XM.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],XM.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],XM.prototype,"darkerPanels",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],XM);
_.I(XM,"ytd-transcript-footer-renderer",function(){if(uk$!==void 0)return uk$;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return uk$=g},{mode:1});var l9M;var DTt;var Nl=function(){var g=_.a.apply(this,arguments)||this;g.systemIcons=_.Y("kevlar_system_icons");g.showClearButton=!1;return g};
_.f(Nl,_.a);_.S=Nl.prototype;_.S.handleInput=function(g){var r=this;g.target.value.length?_.Ib(this,"ytdTranscriptSearchBoxSearch",function(){r.emitSearchEvent(g)},500):(_.AIP(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=g.target.value.length>0};
_.S.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.S.handleClick=function(){var g,r=(g=this.data)==null?void 0:g.trackingParams;r&&_.MJ(_.pW(),r)};
_.S.handleClear=function(){_.AIP(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var g,r,E=(r=_.n((g=this.data)==null?void 0:g.clearButton,_.Fd))==null?void 0:r.trackingParams;E&&_.MJ(_.pW(),E);this.clear()};
_.S.emitSearchEvent=function(g){_.Sh(this.hostElement,"yt-transcript-search-box-search",{query:g.target.value});var r,E;(g=(E=_.n((r=this.data)==null?void 0:r.searchButton,_.Fd))==null?void 0:E.trackingParams)&&_.MJ(_.pW(),g)};
_.S.emitClearEvent=function(){_.Sh(this.hostElement,"yt-transcript-search-box-clear")};
_.hx.Object.defineProperties(Nl.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.S3(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Nl.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Nl.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Nl.prototype,"systemIcons",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],Nl);
_.I(Nl,"ytd-transcript-search-box-renderer",function(){if(DTt!==void 0)return DTt;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return DTt=g},{mode:1});var oq4;var Gvv;var In=function(){return _.a.apply(this,arguments)||this};
_.f(In,_.a);In.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var g,r;this.sectionHeaderAriaLabel=(g=this.data)==null?void 0:(r=g.accessibility)==null?void 0:r.accessibilityData.label}};
In.prototype.fireSelectedEvent=function(g){_.Sh(this.hostElement,"ytd-transcript-section-header",{startMs:g})};
In.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
In.prototype.handleKeyPress=function(g){this.data&&g.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.hx.Object.defineProperties(In.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var g,r;return(r=(g=this.data)==null?void 0:g.enableTappableTranscriptHeader)!=null?r:!1}}});
In.prototype.dataChanged=In.prototype.dataChanged;_.m([_.K(),_.L("design:type",Object)],In.prototype,"data",void 0);_.m([_.K(),_.L("design:type",String)],In.prototype,"sectionHeaderAriaLabel",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],In.prototype,"enableTappableTranscriptHeader",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],In.prototype,"dataChanged",null);
_.m([_.N({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],In);
_.I(In,"ytd-transcript-section-header-renderer",function(){if(Gvv!==void 0)return Gvv;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Gvv=g},{mode:1});var QL8;var zDF;var m9=function(){var g=_.a.apply(this,arguments)||this;g.isEditMode=!1;g.touchCaptionsEnabled=!1;g.deleteCaptionCorrectionPopupCommand=null;g.voteCaptionCorrectionPopupCommand=null;g.roundedContainer=!0;g.mouseOver=!1;g.textChanged=!1;g.messages={suggest_correction:_.zn("suggest_correction",void 0,"Edit caption"),suggested_caption:_.zn("suggested_caption",void 0,"Suggested caption"),submit_correction:_.zn("submit_correction",void 0,"Submit for review"),cancel_correction:_.zn("cancel_correction",
void 0,"Cancel"),replay_segment:_.zn("replay_segment",void 0,"Re-play segment"),delete_correction:_.zn("delete_correction",void 0,"Delete correction")};g.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return g};
_.f(m9,_.a);_.S=m9.prototype;_.S.dataChanged=function(){this.isEditMode=!1;this.editedText=this.data?this.data.userCorrection:void 0;this.data&&this.data.deleteCaptionCorrectionPopupCommand&&(this.deleteCaptionCorrectionPopupCommand=this.data.deleteCaptionCorrectionPopupCommand);this.data&&this.data.voteCaptionCorrectionPopupCommand&&(this.voteCaptionCorrectionPopupCommand=this.data.voteCaptionCorrectionPopupCommand);this.data&&this.data.accessibility&&(this.segmentAriaLabel=this.data.accessibility.accessibilityData.label)};
_.S.handleDelete=function(g){if(this.deleteCaptionCorrectionPopupCommand){var r=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);r&&this.ytdOpenPopupBehavior.openPopup(r);g.stopPropagation()}};
_.S.handleSubmit=function(g){if(this.data&&this.data.submitCaptionCorrectionCommand&&(g.stopPropagation(),this.textChanged)){var r;g=(r=_.n(this.data.submitCaptionCorrectionCommand,_.gQw))==null?void 0:r.params;r=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:g,correctionText:String(this.ironTextAreaElement.value),originalText:_.Vp(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(r);this.isEditMode=!1}};
_.S.handleUpdateSegmentText=function(g){(g=_.n(g,vGv))&&g.targetId&&this.data&&g.targetId===this.data.targetId&&(g.userCorrection&&(this.editedText=g.userCorrection),g.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.Vp(this.data.snippet)),g.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=g.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=g.voteCaptionCorrectionPopupCommand?
g.voteCaptionCorrectionPopupCommand:null,g.accessibility&&(this.segmentAriaLabel=g.accessibility.accessibilityData.label))};
_.S.handleCancel=function(g){this.isEditMode=!1;g.stopPropagation();this.logClientVe(159409)};
_.S.handleEditSegmentCommand=function(g){(g=_.n(g,yUL))&&g.targetId&&this.data&&g.targetId===this.data.targetId&&this.handleEdit()};
_.S.handleEditButtonClick=function(g){this.data&&(this.handleEdit(),g.stopPropagation())};
_.S.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var g;(g=this.ironTextAreaElement.textarea)==null||g.focus();this.logClientVe(159407)}};
_.S.handleMouseEnter=function(){this.mouseOver=!0};
_.S.handleMouseLeave=function(){this.mouseOver=!1};
_.S.handleReplay=function(g){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),g.stopPropagation(),this.logClientVe(159408))};
_.S.handleClick=function(){this.data&&(this.voteCaptionCorrectionPopupCommand?(this.ytComponentBehavior.resolveCommand(this.voteCaptionCorrectionPopupCommand),this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs))):(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()))};
_.S.handleKeypress=function(g){this.data&&(this.isEditMode?g.stopPropagation():this.isEnterPress(g)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(g)&&this.logClientVe(138758))};
_.S.handleTextboxClick=function(g){g.stopPropagation()};
_.S.handleTextboxKeydown=function(g){this.isControlEnterPress(g)?this.handleSubmit(g):g.key==="Escape"&&this.handleCancel(g)};
_.S.handleTextboxKeyup=function(){this.textChanged=_.Vp(this.latestText)!==String(this.ironTextAreaElement.value)};
_.S.fireSelectedEvent=function(g){_.Sh(this.hostElement,"yt-transcript-segment-selected",{startMs:g})};
_.S.fireReplayEvent=function(g,r){_.Sh(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(g-100,0),endMs:r})};
_.S.fireEditEvent=function(g,r){_.Sh(this.hostElement,"yt-transcript-segment-edit",{startMs:g,endMs:r})};
_.S.isEnterPress=function(g){return g.key==="Enter"||g.code==="Enter"||g.code==="NumpadEnter"||g.keyCode===13?!0:!1};
_.S.isControlEnterPress=function(g){var r=g.key==="Enter"||g.code==="Enter"||g.code==="NumpadEnter"||g.keyCode===13;return(g.ctrlKey||g.metaKey)&&r};
_.S.isCopyPress=function(g){var r=g.ctrlKey;return g.key==="c"&&r};
_.S.logClick=function(){var g,r=(g=this.data)==null?void 0:g.trackingParams;r&&_.MJ(_.pW(),r)};
_.S.logClientVe=function(g){_.Uk(_.pW(),_.bW(g))};
_.hx.Object.defineProperties(m9.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}}});
m9.prototype.handleMouseLeave=m9.prototype.handleMouseLeave;m9.prototype.handleMouseEnter=m9.prototype.handleMouseEnter;m9.prototype.dataChanged=m9.prototype.dataChanged;_.m([_.P(_.gN.YtActionHandlerBehavior),_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],m9.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.cY),_.L("design:type",Object)],m9.prototype,"ytdOpenPopupBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],m9.prototype,"ytRendererBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],m9.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],m9.prototype,"isEditMode",void 0);_.m([_.K(),_.L("design:type",Object)],m9.prototype,"touchCaptionsEnabled",void 0);_.m([_.K(),_.L("design:type",Object)],m9.prototype,"editedText",void 0);_.m([_.K(),_.L("design:type",Object)],m9.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.m([_.K(),_.L("design:type",Object)],m9.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.m([_.K(),_.L("design:type",String)],m9.prototype,"segmentAriaLabel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],m9.prototype,"roundedContainer",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],m9.prototype,"mouseOver",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],m9.prototype,"textChanged",void 0);_.m([_.K(),_.L("design:type",Object)],m9.prototype,"messages",void 0);
_.m([_.zb("#suggestion"),_.L("design:type",Object)],m9.prototype,"ironTextAreaElement",void 0);_.m([_.W("data","editedText"),_.L("design:type",Object),_.L("design:paramtypes",[])],m9.prototype,"latestText",null);_.m([_.W("touchCaptionsEnabled","isEditMode"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],m9.prototype,"enableEditButton",null);
_.m([_.W("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],m9.prototype,"enableUndoButton",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],m9.prototype,"dataChanged",null);_.m([_.ob("mouseenter"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],m9.prototype,"handleMouseEnter",null);
_.m([_.ob("mouseleave"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],m9.prototype,"handleMouseLeave",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],m9);
_.I(m9,"ytd-transcript-segment-renderer",function(){if(zDF!==void 0)return zDF;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return zDF=g},{mode:1});var cq=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};g.isError=!1;g.darkerPanels=_.Y("web_watch_darker_panels");g.useParentMaxHeight=_.Y("web_watch_transscript_use_parent_max_height");g.segmentOffsets=[];g.segmentIndex=-1;return g};
_.f(cq,_.a);_.S=cq.prototype;_.S.configureRendererStamper=function(){return{segments:{id:"segments-container",mapping:{transcriptSegmentRenderer:{component:"ytd-transcript-segment-renderer",properties:{touchCaptionsEnabled:"[[data.touchCaptionsEnabled]]"}},transcriptSectionHeaderRenderer:{component:"ytd-transcript-section-header-renderer"}}}}};
_.S.segmentsChanged=function(){this.updateOffsets()};
_.S.onYtPlayerTimeChanged=function(g){for(var r=this.segmentIndex,E=r;;){if(E>=0){var B=this.segmentOffsets[E].start;var w=this.segmentOffsets[E].isAutoScrollable}else B=-1,w=!0;var O=g+.5;if(!w){B=E+1<this.segmentOffsets.length?this.segmentOffsets[E+1].start:Infinity;if(O>=B){E+=1;continue}E=-1;break}if(O<B)B=E-1>=0&&this.segmentOffsets[E-1].isAutoScrollable,w=E===0||B?1:2,E-=w;else if(w=E+1<this.segmentOffsets.length&&this.segmentOffsets[E+1].isAutoScrollable?1:2,B=E+w<this.segmentOffsets.length?
this.segmentOffsets[E+w].start:Infinity,O>B)E+=w;else{if(E<0)break;E<this.segmentOffsets.length&&O>this.segmentOffsets[E].end&&(E=-1);break}}if(r!==E){if(r>=0){var M;(M=this.getSegmentElement(r))==null||M.classList.remove("active")}this.segmentIndex=E;if(!(E<0)){var u;(u=this.getSegmentElement(E))==null||u.classList.add("active");this.isHovered||this.scrollElementToTop(E)}}};
_.S.handleSegmentEdit=function(g){g.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=g.target,_.OS(this.hostElement,"yt-transcript-player-edit",[g.detail.startMs/1E3,g.detail.endMs/1E3]))};
_.S.handleSegmentSelected=function(g){_.OS(this.hostElement,"yt-transcript-player-seek",[g.detail.startMs/1E3])};
_.S.handleSegmentReplay=function(g){_.OS(this.hostElement,"yt-transcript-player-replay",[g.detail.startMs/1E3,g.detail.endMs/1E3])};
_.S.handleSectionHeaderSelected=function(g){_.OS(this.hostElement,"yt-transcript-player-seek",[g.detail.startMs/1E3])};
_.S.onMouseEnter=function(){this.isHovered=!0};
_.S.onMouseLeave=function(){this.isHovered=!1};
_.S.onRetryButtonClick=function(){_.Sh(this.hostElement,"transcript-retry-button-click")};
_.S.getSegmentElement=function(g){return _.S3(this.hostElement).querySelector(":nth-child("+(g+1)+")")};
_.S.scrollElementToTop=function(g){g=this.getSegmentElement(g>=2?g-2:0);this.hostElement.scrollTop=Math.min(g.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.S.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(g){var r,E=(r=g.transcriptSegmentRenderer)!=null?r:g.transcriptSectionHeaderRenderer;return{start:Number(E.startMs)/1E3,end:Number(E.endMs)/1E3,isAutoScrollable:g.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.S.clearHighlightedSegments=function(){var g=_.S3(this.hostElement);g=_.U(g.querySelectorAll("ytd-transcript-segment-renderer"));for(var r=g.next();!r.done;r=g.next())r.value.classList.remove("active")};
_.hx.Object.defineProperties(cq.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var g,r;return((g=this.data)==null?void 0:g.searchResultSegments)||((r=this.data)==null?void 0:r.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
cq.prototype.onMouseLeave=cq.prototype.onMouseLeave;cq.prototype.onMouseEnter=cq.prototype.onMouseEnter;cq.prototype.handleSectionHeaderSelected=cq.prototype.handleSectionHeaderSelected;cq.prototype.handleSegmentReplay=cq.prototype.handleSegmentReplay;cq.prototype.handleSegmentSelected=cq.prototype.handleSegmentSelected;cq.prototype.handleSegmentEdit=cq.prototype.handleSegmentEdit;cq.prototype.segmentsChanged=cq.prototype.segmentsChanged;
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],cq.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],cq.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],cq.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],cq.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],cq.prototype,"isError",void 0);
_.m([_.K(),_.L("design:type",Object)],cq.prototype,"noResultLabel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],cq.prototype,"darkerPanels",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],cq.prototype,"useParentMaxHeight",void 0);_.m([_.W("data"),_.L("design:type",Array),_.L("design:paramtypes",[])],cq.prototype,"segments",null);
_.m([_.W("segments","noResultLabel"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],cq.prototype,"displayNoResults",null);_.m([_.Gb("segments"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],cq.prototype,"segmentsChanged",null);_.m([_.ob("yt-transcript-segment-edit"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],cq.prototype,"handleSegmentEdit",null);
_.m([_.ob("yt-transcript-segment-selected"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],cq.prototype,"handleSegmentSelected",null);_.m([_.ob("yt-transcript-segment-replay"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],cq.prototype,"handleSegmentReplay",null);
_.m([_.ob("ytd-transcript-section-header"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],cq.prototype,"handleSectionHeaderSelected",null);_.m([_.ob("mouseenter"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],cq.prototype,"onMouseEnter",null);_.m([_.ob("mouseleave"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],cq.prototype,"onMouseLeave",null);
_.m([_.N({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],cq);
_.I(cq,"ytd-transcript-segment-list-renderer",function(){if(QL8!==void 0)return QL8;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return QL8=g},{mode:1});var i5=function(){var g=_.a.apply(this,arguments)||this;g.hideTimestamps=!!_.OC("hide-transcript-timestamps");g.isLoadingTranscripts=!1;g.darkerPanels=_.Y("web_watch_darker_panels");g.isError=!1;g.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return g};
_.f(i5,_.a);_.S=i5.prototype;_.S.headerChanged=function(){var g,r;this.baseGetTranscriptsCommand=(r=_.n((g=this.data)==null?void 0:g.header,dIm))==null?void 0:r.onTextChangeCommand};
_.S.bodyChanged=function(){var g=this.getBodyRenderer();g&&(g.initialSegments&&(this.initialTranscriptsRenderer=g),g.noResultLabel&&(this.noResultLabel=g.noResultLabel),g.retryLabel&&(this.retryLabel=g.retryLabel))};
_.S.detached=function(){this.clearSearchBoxText()};
_.S.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.S.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{transcriptSearchBoxRenderer:"ytd-transcript-search-box-renderer"}},"data.body":{id:"body",mapping:{transcriptSegmentListRenderer:{component:"ytd-transcript-segment-list-renderer",properties:{noResultLabel:"[[noResultLabel]]"}}}},"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}}}};
_.S.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.S.fireSearch=function(g){var r=this;if(g){var E=g.detail.query;if(this.baseGetTranscriptsCommand){var B;g=(B=_.n(this.baseGetTranscriptsCommand,_.FFz))==null?void 0:B.params;var w;B=_.n((w=this.data)==null?void 0:w.footer,WB5);var O;if((w=(O=_.n(B==null?void 0:B.languageMenu,VA6))==null?void 0:O.subMenuItems)&&w.length>0&&(O=w.find(function(l){return l.selected}))){var M,u;
g=(M=O.continuation)==null?void 0:(u=M.reloadContinuationData)==null?void 0:u.continuation}M=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:g,searchQuery:E}});this.ytComponentBehavior.resolveCommand(M,{commandController:{onServerError:function(){r.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});kHg(this.ytContinuationHandlerBehavior,function(){return E===r.getCurrentSearchBoxText()})}}};
_.S.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.S.onRetryButtonClick=function(){this.isError=!1;var g={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:g}))};
_.S.hideTimestampsChanged=function(){_.S2("hide-transcript-timestamps",this.hideTimestamps)};
_.S.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.S.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.S.handleSignalActionCopyTranscript=function(){var g=this,r=this.getBodyRenderer();r&&(r=((r==null?void 0:r.searchResultSegments)||(r==null?void 0:r.initialSegments)||[]).map(function(E){return _.n(E,gzz)}).filter(function(E){return!!E}).map(function(E){return{snippet:E.snippet||{runs:[{text:""}]},
startTimeText:E.startTimeText||{simpleText:""}}}).map(function(E){var B=(E.snippet.runs||[]).reduce(function(w,O){return w+O.text},"");
return g.hideTimestamps?B:E.startTimeText.simpleText+" "+B}).join("\n"),this.copyToClipboard(r))};
_.S.copyToClipboard=function(g){navigator.clipboard&&navigator.clipboard.writeText(g)};
_.S.getCurrentSearchBoxText=function(){var g;return(g=this.searchBox)==null?void 0:g.value};
_.S.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.S.getBodyRenderer=function(){var g;return _.n((g=this.data)==null?void 0:g.body,TZ5)};
_.S.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.hx.Object.defineProperties(i5.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.S3(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
i5.prototype.hideTimestampsChanged=i5.prototype.hideTimestampsChanged;i5.prototype.searchCleared=i5.prototype.searchCleared;i5.prototype.fireSearch=i5.prototype.fireSearch;i5.prototype.onReloadContinuationFinish=i5.prototype.onReloadContinuationFinish;i5.prototype.bodyChanged=i5.prototype.bodyChanged;i5.prototype.headerChanged=i5.prototype.headerChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],i5.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],i5.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],i5.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Xe),_.L("design:type",Object)],i5.prototype,"ytContinuationHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],i5.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],i5.prototype,"hideTimestamps",void 0);
_.m([_.K(),_.L("design:type",Object)],i5.prototype,"isLoadingTranscripts",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],i5.prototype,"darkerPanels",void 0);_.m([_.K(),_.L("design:type",Object)],i5.prototype,"isError",void 0);_.m([_.Gb("data.header"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],i5.prototype,"headerChanged",null);
_.m([_.Yk("data.body"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],i5.prototype,"bodyChanged",null);_.m([_.ob("yt-reload-continuation-finish"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],i5.prototype,"onReloadContinuationFinish",null);_.m([_.ob("yt-transcript-search-box-search"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],i5.prototype,"fireSearch",null);
_.m([_.ob("yt-transcript-search-box-clear"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],i5.prototype,"searchCleared",null);_.m([_.Gb("hideTimestamps"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],i5.prototype,"hideTimestampsChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],i5);
_.I(i5,"ytd-transcript-search-panel-renderer",function(){if(oq4!==void 0)return oq4;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return oq4=g},{mode:1});var Lp=function(){var g=_.a.apply(this,arguments)||this;g.player=null;g.playerPollJobId=0;return g};
_.f(Lp,_.a);_.S=Lp.prototype;_.S.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.S.onLoadReloadContinuation=function(g){_.Y("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:g.target.data.continuation}}):(g={clickTrackingParams:g.target.data.clickTrackingParams,getTranscriptEndpoint:{params:g.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.rM().resolve(_.Er).resolveCommand(g,{form:{element:this.hostElement}}))};
_.S.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}},"data.body":{id:"body",mapping:{transcriptBodyRenderer:"ytd-transcript-body-renderer"}},"data.content":{id:"content",mapping:{transcriptSearchPanelRenderer:"ytd-transcript-search-panel-renderer"}}}};
_.S.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.S.attached=function(){this.updatePlayerListening()};
_.S.detached=function(){this.updatePlayerListening()};
_.S.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.S.startPlayerListening=function(){var g=this,r;return _.q(function(E){if(E.nextAddress==1)return(r=_.Tw())?_.D(E,r.getPlayerPromise(),2):E.return();g.player=E.yieldResult;g.playerPollJobId=_.F6.addLowPriorityJob(function(){g.getPlayerVideoProgress()},1E3);
g.player.addEventListener("onCueRangeEnter",function(B){g.onCueRangeEnter(B)});
g.player.addEventListener("onCueRangeExit",function(B){g.onCueRangeExit(B)});
g.player.addEventListener("onStateChange",function(B){g.onPlayerStateChange(B)});
g.player.addEventListener("SEEK_TO",function(B){g.onPlayerSeek(B)});
_.Q3(E)})};
_.S.getPlayerVideoProgress=function(){var g=this;_.F6.cancelJob(this.playerPollJobId);if(this.player){var r=this.player.getCurrentTime();_.OS(this.hostElement,"yt-player-time-changed",[r])}this.playerPollJobId=_.F6.addLowPriorityJob(function(){g.getPlayerVideoProgress()},1E3)};
_.S.stopPlayerListening=function(){this.player=null;_.F6.cancelJob(this.playerPollJobId)};
_.S.onPlayerStateChange=function(g){g===2&&this.removePendingCue()};
_.S.onPlayerSeek=function(g){var r;if(r=this.pendingReplayCueId)r=this.pendingReplayCueId,r=g===(_.Y("web_transcript_cue_id_killswitch")?Number(r):Number(r.split("_")[1]));r||this.removePendingCue()};
_.S.onCueRangeEnter=function(g){m55(g)&&(this.pendingReplayCueId=g)};
_.S.onCueRangeExit=function(g){m55(g)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.S.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.S.onYtTranscriptPlayerSeek=function(g){this.player&&this.player.seekTo(g,!0)};
_.S.onYtTranscriptPlayerReplay=function(g,r){this.player&&(this.player.addCueRange(IMt(g),g,r),this.player.seekTo(g,!0),this.player.playVideo())};
_.S.onYtTranscriptPlayerEdit=function(g,r){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(IMt(g),g,r),this.player.seekTo(g,!0))};
Lp.prototype.onLoadReloadContinuation=Lp.prototype.onLoadReloadContinuation;Lp.prototype.panelContentVisibleChanged=Lp.prototype.panelContentVisibleChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Lp.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Lp.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Lp.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Lp.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Lp.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Lp.prototype,"panelContentVisible",void 0);_.m([_.Gb("panelContentVisible"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Lp.prototype,"panelContentVisibleChanged",null);
_.m([_.ob("yt-load-reload-continuation"),_.L("design:type",Function),_.L("design:paramtypes",[Object]),_.L("design:returntype")],Lp.prototype,"onLoadReloadContinuation",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],Lp);
_.I(Lp,"ytd-transcript-renderer",function(){if(l9M!==void 0)return l9M;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return l9M=g},{mode:1});var kvz;var H8g;var VG=function(){return _.a.apply(this,arguments)||this};
_.f(VG,_.a);VG.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.Sh(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.uq(this.hostElement,[this.data.clickCommand],this.hostElement))};
VG.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.bH)()+_.KE)+"px)"};
VG.prototype.updateShouldHideFromBinding=function(g){this.shouldHide=g.detail.value};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],VG.prototype,"rendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],VG.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Boolean)],VG.prototype,"shouldHide",void 0);_.m([_.N({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],VG);
_.I(VG,"ytd-ad-engagement-panel-banner-renderer",function(){if(H8g!==void 0)return H8g;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return H8g=g},{mode:_.My("kevlar_poly_si_batch_j070")?1:2});var pev;var hV=function(){var g=_.a.apply(this,arguments)||this;g.modernPanels=_.Y("kevlar_watch_modern_panels");g.buttonUpdate=_.Y("web_modern_buttons");g.adsSemanticText=_.Y("enable_ads_web_ep_buenos_aires_and_padding_fix");return g};
_.f(hV,_.a);hV.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.m([_.K(),_.L("design:type",Object)],hV.prototype,"data",void 0);_.m([_.K({computed:"computeHideDefaultAdBadge(data)"}),_.L("design:type",Boolean)],hV.prototype,"hideDefaultAdBadge",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],hV.prototype,"modernPanels",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],hV.prototype,"buttonUpdate",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],hV.prototype,"adsSemanticText",void 0);
_.m([_.N({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],hV);
_.I(hV,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(pev!==void 0)return pev;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return pev=g},{mode:1});var YA4;var Zg=function(){var g=_.a.apply(this,arguments)||this;g.darkerPanels=_.Y("web_watch_darker_panels");g.enableSqueezebackPanels=_.Y("web_shorts_enable_squeezeback_panels");g.enableAnchoredPanel=_.Y("desktop_shorts_v2_anchored_panel");g.modernPanels=_.Y("kevlar_watch_modern_panels");g.headerClickListener=function(r){g.onHeaderClick(r)};
g.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return g};
_.f(Zg,_.a);_.S=Zg.prototype;_.S.computeAdsInfoButton=function(){if(_.Y("web_modern_buttons")){var g,r;return(r=_.n((g=this.data)==null?void 0:g.subtitleComplex,CEz))==null?void 0:r.adInfoRenderer}};
_.S.updateHeaderClickListener=function(){var g,r,E;((g=this.data)==null?0:g.navigationEndpoint)||((r=this.data)==null?0:r.onClickCommand)||_.n((E=this.data)==null?void 0:E.visibilityButton,_.ef)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.S.configureRendererStamper=function(){return{"data.visibilityButton":{id:"visibility-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer",sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.subtitleComplex":{id:"subtitle-complex",mapping:{engagementPanelAdSubtitleRenderer:"ytd-engagement-panel-ad-subtitle-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
adsInfoButton:{id:"ads-info-button",mapping:{adHoverTextButtonRenderer:{component:"ytd-ad-hover-text-button-renderer",params:{modernUpdate:!0}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.banner":{id:"banner",mapping:{adEngagementPanelBannerRenderer:"ytd-ad-engagement-panel-banner-renderer"}},"data.navigationButton":{id:"navigation-button",mapping:{buttonRenderer:"ytd-button-renderer"},reuseComponents:!1},"data.subheader":{id:"subheader",
mapping:{chipBarViewModel:{component:"chip-bar-view-model",params:{disableDeselection:!0}}}}}};
_.S.collapsedChanged=function(){var g;(g=this.data)!=null&&g.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.Y("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.S.focus=function(g){var r=this;this.titleElement&&_.F6.addJob(function(){_.hp(r.titleElement,g)},0,500)};
_.S.computeTitleAriaLabel=function(g){var r=[];if(g.title){var E,B;r.push(this.ytRendererBehavior.getSimpleString(g.title)||((E=g.title.accessibility)==null?void 0:(B=E.accessibilityData)==null?void 0:B.label))}g.contextualInfo&&r.push(this.ytRendererBehavior.getSimpleString(g.contextualInfo));return r.join(" ")};
_.S.onHeaderClick=function(g){this.shouldTriggerHeaderClick(g)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.Sh(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.uq(this.hostElement,[this.data.onClickCommand],this.hostElement)):(g=this.getVisibilityToggleButton())&&g.click())};
_.S.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var g=_.n(this.data.visibilityButton,_.Fd)||_.n(this.data.visibilityButton,_.ef);g&&this.ytRendererBehavior.logExplicitClick(g)}};
_.S.getVisibilityToggleButton=function(){var g=_.S3(this.hostElement).querySelector("#visibility-button").firstElementChild;return(g==null?void 0:g.is)==="ytd-toggle-button-renderer"?g:null};
_.S.shouldTriggerHeaderClick=function(g){return!_.Zy(_.Z1(g),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.S.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(g){g=_.n(g,_.jGF);this.targetId&&(g==null?void 0:g.targetId)===this.targetId&&(g=g.navigationButton)&&this.set("data.navigationButton",g)};
_.hx.Object.defineProperties(Zg.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.Y("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var g;return!!(((g=this.entity)==null?0:g.isActionButtonHidden)||this.hideActionButton)}}});
Zg.prototype.collapsedChanged=Zg.prototype.collapsedChanged;Zg.prototype.updateHeaderClickListener=Zg.prototype.updateHeaderClickListener;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Zg.prototype,"actionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Zg.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Zg.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.P(_.Ai),_.L("design:type",Object)],Zg.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Zg.prototype,"data",void 0);_.m([_.K(),_.L("design:type",String)],Zg.prototype,"targetId",void 0);_.m([_.K(),_.L("design:type",Boolean)],Zg.prototype,"collapsed",void 0);_.m([_.K(),_.L("design:type",Boolean)],Zg.prototype,"hideActionButton",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Zg.prototype,"shortsPanel",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Zg.prototype,"liveChatEngagementPanel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Zg.prototype,"learningChatEngagementPanel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Zg.prototype,"darkerPanels",void 0);_.m([_.zb("#title"),_.L("design:type",HTMLElement)],Zg.prototype,"titleElement",void 0);_.m([_.zb("#header"),_.L("design:type",HTMLElement)],Zg.prototype,"headerElement",void 0);
_.m([_.K({computed:"computeAdsInfoButton(data)"}),_.L("design:type",Object)],Zg.prototype,"adsInfoButton",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Zg.prototype,"enableSqueezebackPanels",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Zg.prototype,"enableAnchoredPanel",void 0);_.m([_.K({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(g,r){return _.u1(g.entities,"engagementPanelTitleHeaderEntity",r)}}),
_.L("design:type",Object)],Zg.prototype,"entity",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Zg.prototype,"modernPanels",void 0);_.m([_.K({reflectToAttribute:!0}),_.W("targetId"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Zg.prototype,"adsSemanticText",null);_.m([_.Gb("data","data.navigationEndpoint","data.onClickCommand"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Zg.prototype,"updateHeaderClickListener",null);
_.m([_.Yk("collapsed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Zg.prototype,"collapsedChanged",null);_.m([_.W("entity","hideActionButton"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Zg.prototype,"isActionButtonHidden",null);_.m([_.N({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],Zg);
_.I(Zg,"ytd-engagement-panel-title-header-renderer",function(){if(YA4!==void 0)return YA4;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return YA4=g},{mode:1});var RD5;var yG=function(){return _.a.apply(this,arguments)||this};
_.f(yG,_.a);yG.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],yG.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],yG.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],yG.prototype,"data",void 0);_.m([_.N({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],yG);
_.I(yG,"ytd-macro-markers-info-item-renderer",function(){if(RD5!==void 0)return RD5;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return RD5=g},{mode:1});var nqz;var $TL=function(g,r,E,B,w,O){_.f5.call(this);var M=this;this.JSC$20314_containerElement=g;this.hostElement=r;this.supportedSyncItems=E;this.syncEntityKey=B;this.options=w;this.renderLazyListItems=O;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;sLL(this);f98(this);this.JSC$20314_scrollAnimation=new _.PD(function(u){g.scrollTop=u});
_.oO(this,this.JSC$20314_scrollAnimation);this.addOnDisposeCallback(function(){M.exitBrowsingMode(!1);M.activeItem&&M.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.f($TL,_.f5);var sLL=function(g){var r=_.Gm(_.rM().resolve(_.e2),function(E){return E.entities.markersEngagementPanelSyncEntity||{}},function(E,B){var w;
E[g.syncEntityKey]!==B[g.syncEntityKey]&&((w=E[g.syncEntityKey])==null?void 0:w.activeItemIndex)!==void 0&&g.updatePanelActiveItem(E[g.syncEntityKey].activeItemIndex)});
g.unsubscribeFromTimedMarkersListSyncEntity=r;g.addOnDisposeCallback(r);jL5(g)},jL5=function(g){var r=_.rM().resolve(_.e2);
r=_.brP(r.getState(),g.syncEntityKey);(r==null?void 0:r.activeItemIndex)!==void 0&&(r=g.getItemByIndex(r.activeItemIndex))&&g.setActiveItem(r)},f98=function(g){var r=new _.VU(g.onScroll,50,g);
_.oO(g,r);var E=function(){r.fire()};
g.JSC$20314_containerElement.addEventListener("scroll",E);g.addOnDisposeCallback(function(){g.JSC$20314_containerElement.removeEventListener("scroll",E)})};
_.S=$TL.prototype;
_.S.updatePanelActiveItem=function(g){var r=this.getItemByIndex(g);if(r){if(this.setActiveItem(r),this.contentVisible)if(this.browsingMode){var E;((E=this.options)==null?void 0:E.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(g=AYm(this),r.offsetTop<this.JSC$20314_containerElement.clientHeight+this.JSC$20314_containerElement.scrollTop&&g&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));b8L(this)}else this.scrollToItem(r)}else _.el(new _.Rj("Could not find "+this.supportedSyncItems+
" sync child to set active.",g,this.JSC$20314_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.S.getItemByIndex=function(g){var r;(r=this.renderLazyListItems)==null||r.call(this,g);r=this.JSC$20314_containerElement.querySelectorAll(this.supportedSyncItems);if(r.length>g)return r[g]};
_.S.setActiveItem=function(g){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));g.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=g};
_.S.scrollToItem=function(g){g=this.getScrollPositionForItem(g);this.JSC$20314_containerElement.scrollTop!==g&&this.JSC$20314_scrollAnimation.start(this.JSC$20314_containerElement.scrollTop,g,300)};
_.S.getScrollPositionForItem=function(g){if(this.JSC$20314_containerElement.querySelectorAll(this.supportedSyncItems)[0]===g)return 0;var r,E=((r=this.options)==null?0:r.percentOffset)?this.JSC$20314_containerElement.clientHeight*this.options.percentOffset:0;g=_.en(g).y+this.JSC$20314_containerElement.scrollTop-(_.en(this.JSC$20314_containerElement).y+E);return Math.max(0,Math.min(g,this.JSC$20314_containerElement.scrollHeight-this.JSC$20314_containerElement.offsetHeight))};
_.S.onScroll=function(){this.activeItemBelowSyncPosition=AYm(this);if(this.activeItem&&!this.JSC$20314_scrollAnimation.isAnimating()&&Math.abs(this.JSC$20314_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var g;switch((g=this.options)==null?void 0:g.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!JYL(this));b8L(this);break;default:this.enterBrowsingMode(!0)}}};
_.S.enterBrowsingMode=function(g){var r=this,E,B;return _.q(function(w){if(w.nextAddress==1){if(r.browsingMode)return w.return();r.browsingMode=!0;g&&r.hostElement.classList.add("browsing-mode");r.playerExitBrowsingModeListener=function(){r.exitBrowsingMode(!1)};
return _.D(w,_.MQ(),2)}E=w.yieldResult;(B=E)==null||B.addEventListener("SEEK_TO",r.playerExitBrowsingModeListener);_.Q3(w)})};
_.S.exitBrowsingMode=function(g){g=g===void 0?!0:g;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),g&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.S.removePlayerSeekListener=function(){var g=this,r,E;return _.q(function(B){if(B.nextAddress==1)return g.playerExitBrowsingModeListener?_.D(B,_.MQ(),3):B.jumpTo(0);r=B.yieldResult;(E=r)==null||E.removeEventListener("SEEK_TO",g.playerExitBrowsingModeListener);g.playerExitBrowsingModeListener=void 0;_.Q3(B)})};
var b8L=function(g){var r;((r=g.options)==null?void 0:r.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(JYL(g)?g.hostElement.classList.remove("browsing-mode"):g.activeItem&&g.hostElement.classList.add("browsing-mode"))},AYm=function(g){if(!g.activeItem)return!1;
var r,E=((r=g.options)==null?0:r.percentOffset)?g.JSC$20314_containerElement.clientHeight*g.options.percentOffset:0;return g.activeItem.offsetTop>=g.JSC$20314_containerElement.scrollTop+E},JYL=function(g){if(!g.activeItem)return!1;
var r=g.activeItem.offsetTop+14<=g.JSC$20314_containerElement.scrollTop+g.JSC$20314_containerElement.clientHeight;return g.activeItem.offsetTop+g.activeItem.clientHeight-14>=g.JSC$20314_containerElement.scrollTop&&r};
$TL.prototype.panelContentVisibleChanged=function(g){(this.contentVisible=g)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var PCt=function(g,r){g.syncEntityKey=r;var E;(E=g.unsubscribeFromTimedMarkersListSyncEntity)==null||E.call(g);sLL(g)},tx5=function(g,r){g.options=r};var vq=function(){var g=_.a.apply(this,arguments)||this;g.browsingMode=!1;g.modern=_.Y("web_button_rework");g.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return g};
_.f(vq,_.a);_.S=vq.prototype;_.S.activeItemChanged=function(){if(!_.Y("synced_panel_scrolling_controller")){var g;((g=this.syncEntity)==null?void 0:g.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.S.created=function(){var g=this;_.Y("synced_panel_scrolling_controller")||(this.JSC$20318_scrollAnimation=new _.PD(function(r){g.contents.scrollTop=r}),this.boundExitBrowsingMode=function(){g.exitBrowsingMode(!1)})};
_.S.detached=function(){if(_.Y("synced_panel_scrolling_controller")){var g;(g=this.scrollController)==null||g.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.S.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"},params:{seekWithAnimationOnClick:!0}},macroMarkersInfoItemRenderer:"ytd-macro-markers-info-item-renderer",itemSectionRenderer:"ytd-item-section-renderer"}}}};
_.S.dataChanged=function(){var g=this;_.Y("synced_panel_scrolling_controller")?_.Lk(this,function(){if(g.scrollController){var r;(r=g.scrollController)==null||r.exitBrowsingMode(!1);var E,B,w;(B=g.scrollController)==null||PCt(B,(w=(E=g.data)==null?void 0:E.syncModelEntityKey)!=null?w:"default-macro-markers-list-renderer-entity-key");var O,M,u;(u=g.scrollController)==null||tx5(u,{percentOffset:(O=g.data)==null?void 0:O.selectedItemAlignmentPercentOffset,floatingPillType:(M=g.data)==null?void 0:M.floatingPillType})}else{var l,
Q,z,k;g.scrollController=new $TL(g.contents,g.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(k=(l=g.data)==null?void 0:l.syncModelEntityKey)!=null?k:"default-macro-markers-list-renderer-entity-key",{percentOffset:(Q=g.data)==null?void 0:Q.selectedItemAlignmentPercentOffset,floatingPillType:(z=g.data)==null?void 0:z.floatingPillType},function(H){g.renderLazyListItems(H)})}g.scrollController.panelContentVisibleChanged(!!g.panelContentVisible)}):this.exitBrowsingMode()};
_.S.computeButtonShape=function(){var g=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){g.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.S.computeSyncEnabled=function(g){return!(g==null||!g.syncButtonLabel)};
_.S.renderLazyListItems=function(g){for(var r=this.contents.children,E=0,B=0;B<r.length;B++){var w=void 0;(w=r[B].ytLazyListBehavior)==null||w.fillRemainingListItems();var O=void 0,M=void 0;w=_.n((O=this.data)==null?void 0:(M=O.contents)==null?void 0:M[B],_.xPb);M=O=void 0;if((O=w)==null?0:(M=O.contents)==null?0:M.length)E+=w.contents.length;if(E>=g)break}};
_.S.getItemByIndex=function(g){this.renderLazyListItems(g);var r=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(r.length>g)return r[g]};
_.S.setActiveItem=function(g){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);g.active!==void 0&&(g.active=!0);this.currentActiveItem=g};
_.S.handleSetActivePanelItemAction=function(g){if((g=_.n(g,b6F))&&this.panelTargetId===g.panelTargetId){g=g.itemIndex;if(_.Y("synced_panel_scrolling_controller")){var r,E;var B=(E=(r=this.data)==null?void 0:r.syncModelEntityKey)!=null?E:"default-macro-markers-list-renderer-entity-key"}else{var w;B=(w=this.data)==null?void 0:w.syncModelEntityKey}if(B){var O;((O=this.syncEntity)==null?void 0:O.activeItemIndex)!==g&&this.ytdReduxBehavior.dispatch(_.za("markersEngagementPanelSyncEntity",B,{key:B,activeItemIndex:g}))}else this.updatePanelActiveItem(g)}};
_.S.updatePanelActiveItem=function(g){var r=this.getItemByIndex(g);r?(this.setActiveItem(r),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(r)):_.el(new _.Rj("Could not find ytd-macro-markers-list-renderer sync child to set active.",g,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.S.scrollToItem=function(g){g=this.getScrollPositionForItem(g);this.contents.scrollTop!==g&&this.JSC$20318_scrollAnimation.start(this.contents.scrollTop,g,300)};
_.S.getScrollPositionForItem=function(g){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===g)return 0;g=_.en(g).y+this.contents.scrollTop-_.en(this.contents).y-this.getStickyHeaderHeight(g);return Math.min(g,this.contents.scrollHeight-this.contents.offsetHeight)};
_.S.getStickyHeaderHeight=function(g){if(g.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var r,E,B;return(B=(r=g.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(E=r.header)==null?void 0:E.offsetHeight)!=null?B:0}return 0};
_.S.onScroll=function(){_.Y("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$20318_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.S.enterBrowsingMode=function(){var g=this;return _.q(function(r){if(r.nextAddress==1){if(g.browsingMode)return r.return();g.browsingMode=!0;return _.D(r,_.gr().getPlayerPromise(),2)}g.player=r.yieldResult;g.player.addEventListener("SEEK_TO",g.boundExitBrowsingMode);_.Q3(r)})};
_.S.exitBrowsingMode=function(g){this.browsingMode&&(this.browsingMode=!1,(g===void 0||g)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.S.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.S.onSyncClick=function(){if(_.Y("synced_panel_scrolling_controller")){var g;(g=this.scrollController)==null||g.exitBrowsingMode()}else this.exitBrowsingMode()};
_.S.panelContentVisibleChanged=function(){if(_.Y("synced_panel_scrolling_controller")){var g;(g=this.scrollController)==null||g.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
vq.prototype.panelContentVisibleChanged=vq.prototype.panelContentVisibleChanged;vq.prototype.dataChanged=vq.prototype.dataChanged;vq.prototype.activeItemChanged=vq.prototype.activeItemChanged;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],vq.prototype,"actionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],vq.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],vq.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],vq.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],vq.prototype,"data",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],vq.prototype,"useCustomColors",void 0);_.m([_.K({computed:"computeSyncEnabled(data)"}),_.L("design:type",Boolean)],vq.prototype,"syncEnabled",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],vq.prototype,"panelTargetId",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],vq.prototype,"panelContentVisible",void 0);_.m([_.zb("#contents"),_.L("design:type",HTMLElement)],vq.prototype,"contents",void 0);_.m([_.zb("#sync-container"),_.L("design:type",HTMLElement)],vq.prototype,"syncContainer",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],vq.prototype,"browsingMode",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],vq.prototype,"modern",void 0);_.m([_.K({selectorArgs:["data.syncModelEntityKey"],selector:_.brP}),_.L("design:type",Object)],vq.prototype,"syncEntity",void 0);_.m([_.Gb("syncEntity.activeItemIndex"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],vq.prototype,"activeItemChanged",null);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],vq.prototype,"dataChanged",null);_.m([_.Gb("panelContentVisible"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],vq.prototype,"panelContentVisibleChanged",null);_.m([_.N({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],vq);
_.I(vq,"ytd-macro-markers-list-renderer",function(){if(nqz!==void 0)return nqz;var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <tp-yt-paper-button id="sync-button" disable-upgrade="[[modern]]" hidden="[[modern]]" on-click="onSyncClick" class="style-scope ytd-macro-markers-list-renderer">\n    [[getSimpleString(data.syncButtonLabel)]]\n  </tp-yt-paper-button>\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return nqz=g},{mode:1});var Fs$;var de=function(){return _.a.apply(this,arguments)||this};
_.f(de,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],de.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],de.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],de.prototype,"data",void 0);_.m([_.N({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],de);
_.I(de,"ytd-error-corrections-section-item-renderer",function(){if(Fs$!==void 0)return Fs$;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return Fs$=g},{mode:1});var eDL;var Tz=function(){return _.a.apply(this,arguments)||this};
_.f(Tz,_.a);Tz.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Tz.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Tz.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Tz.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Tz.prototype,"data",void 0);_.m([_.N({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],Tz);
_.I(Tz,"ytd-error-corrections-section-renderer",function(){if(eDL!==void 0)return eDL;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return eDL=g},{mode:1});var Ws6;var gO=function(){return _.a.apply(this,arguments)||this};
_.f(gO,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],gO.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],gO.prototype,"componentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],gO.prototype,"data",void 0);_.m([_.N({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],gO);
_.I(gO,"ytd-topic-link-renderer",function(){if(Ws6!==void 0)return Ws6;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Ws6=g},{mode:1});var CCz;var rO=function(){var g=_.a.apply(this,arguments)||this;g.modern=_.Y("kevlar_modern_sd_v2");g.modernLockupV2=_.Y("modernize_structured_description_playlist_lockups_v2");g.modernTypography=_.Y("web_modern_typography");return g};
_.f(rO,_.a);rO.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"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],rO.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],rO.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],rO.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],rO.prototype,"modern",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],rO.prototype,"modernLockupV2",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],rO.prototype,"modernTypography",void 0);_.m([_.N({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],rO);
_.I(rO,"ytd-video-description-course-section-renderer",function(){if(CCz!==void 0)return CCz;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return CCz=g},{mode:1});var KsL;var Eo=function(){var g=_.a.apply(this,arguments)||this;g.modern=_.Y("kevlar_modern_sd_v2");g.modernTypography=_.Y("web_modern_typography");return g};
_.f(Eo,_.a);Eo.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"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Eo.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Eo.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Eo.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Eo.prototype,"modern",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Eo.prototype,"modernTypography",void 0);
_.m([_.N({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],Eo);
_.I(Eo,"ytd-video-description-files-section-renderer",function(){if(KsL!==void 0)return KsL;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return KsL=g},{mode:1});var xTg;var BG=function(){return _.a.apply(this,arguments)||this};
_.f(BG,_.a);BG.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"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],BG.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],BG.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],BG.prototype,"data",void 0);_.m([_.N({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],BG);
_.I(BG,"ytd-video-description-gaming-section-renderer",function(){if(xTg!==void 0)return xTg;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return xTg=g},{mode:1});var a9g;var wO=function(){var g=_.a.apply(this,arguments)||this;g.isExpanded=!1;return g};
_.f(wO,_.a);wO.prototype.computeHasDefaultMetadataEndpoint=function(g){var r;g=g==null?void 0:(r=g.defaultMetadata)==null?void 0:r.runs;return!(!g||g.length!==1||!g[0].navigationEndpoint)};
wO.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.hx.Object.defineProperties(wO.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],wO.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],wO.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],wO.prototype,"isExpanded",void 0);_.m([_.K({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],wO.prototype,"hasDefaultMetadataEndpoint",void 0);
_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],wO.prototype,"isExpandable",null);_.m([_.W("data","isExpandable","isExpanded"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],wO.prototype,"showExpandedMetadata",null);_.m([_.N({is:"ytd-info-row-renderer",disableElementRegistration:!0})],wO);
_.I(wO,"ytd-info-row-renderer",function(){if(a9g!==void 0)return a9g;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return a9g=g},{mode:1});var Xe5;var Su=function(){var g=_.a.apply(this,arguments)||this;g.currentIndex=0;g.supportComponentResize=!0;g.modern=_.Y("kevlar_modern_sd_v2");g.JSC$20344_lastScrollContainerWidth=NaN;return g};
_.f(Su,_.a);_.S=Su.prototype;
_.S.configureRendererStamper=function(){return{videoLockups:{id:"items",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",params:{forceOneLineTitle:!0,musicMetadataVideoLockup:!0,hideThumbnail:!0}}},reuseComponents:!1},infoRows:{id:"info-rows",mapping:{infoRowRenderer:"ytd-info-row-renderer"}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.S.getItemsPath=function(){return"videoLockups"};
_.S.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.S.onIronResize=function(){this.updateVideoLockupStyles()};
_.S.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.S.updateVideoLockupStyles=function(){var g;this.JSC$20344_scrollContainer!==void 0&&(g=this.videoLockups)!=null&&g.length&&(g=this.JSC$20344_scrollContainer.clientWidth,g!==this.JSC$20344_lastScrollContainerWidth&&(this.JSC$20344_lastScrollContainerWidth=g,_.ua(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(g*.8,415)+"px"}),_.Sh(this.hostElement,"iron-resize")))};
_.hx.Object.defineProperties(Su.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var g=[],r;if((r=this.data)==null||!r.carouselLockups)return g;r=_.U(this.data.carouselLockups);for(var E=r.next();!E.done;E=r.next()){E=E.value;var B=void 0;((B=_.n(E,wzg))==null?0:B.videoLockup)&&g.push(_.n(E,wzg).videoLockup)}return g}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.videoLockups)==null||!g.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var g=[],r;if((r=this.data)==null||!r.carouselLockups)return g;var E;return(E=_.n(this.data.carouselLockups[this.scrollCount],wzg))==null?void 0:E.infoRows}}});
Su.prototype.dataChanged=Su.prototype.dataChanged;Su.prototype.onIronResize=Su.prototype.onIronResize;Su.prototype.hiddenChanged=Su.prototype.hiddenChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Su.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Su.prototype,"componentBehavior",void 0);_.m([_.P(_.yR.YtdHorizontalListBehavior),_.L("design:type",Object)],Su.prototype,"ytdHorizontalListBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Su.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Su.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Su.prototype,"inlineStructuredDescription",void 0);_.m([_.K({value:2}),_.L("design:type",Number)],Su.prototype,"initialCount",void 0);_.m([_.K(),_.L("design:type",Object)],Su.prototype,"currentIndex",void 0);
_.m([_.K(),_.L("design:type",Number)],Su.prototype,"scrollCount",void 0);_.m([_.K(),_.L("design:type",Object)],Su.prototype,"supportComponentResize",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Su.prototype,"contentHidden",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Su.prototype,"modern",void 0);_.m([_.zb("#scroll-container"),_.L("design:type",HTMLDivElement)],Su.prototype,"JSC$20344_scrollContainer",void 0);
_.m([_.Gb("contentHidden"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Su.prototype,"hiddenChanged",null);_.m([_.W("data"),_.L("design:type",Array),_.L("design:paramtypes",[])],Su.prototype,"videoLockups",null);_.m([_.W("videoLockups"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Su.prototype,"hasVideoLockups",null);
_.m([_.ob("iron-resize"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Su.prototype,"onIronResize",null);_.m([_.W("data","scrollCount"),_.L("design:type",Object),_.L("design:paramtypes",[])],Su.prototype,"infoRows",null);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Su.prototype,"dataChanged",null);_.m([_.N({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],Su);
_.I(Su,"ytd-video-description-music-section-renderer",function(){if(Xe5!==void 0)return Xe5;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return Xe5=g},{mode:_.My("kevlar_poly_si_batch_j081")?1:2});var N76;var Oo=function(){var g=_.a.apply(this,arguments)||this;g.modern=_.Y("kevlar_modern_sd_v2");g.modernTypography=_.Y("web_modern_typography");return g};
_.f(Oo,_.a);Oo.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Oo.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Oo.prototype,"ytRendererBehavior",void 0);_.m([_.K({}),_.L("design:type",Object)],Oo.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Oo.prototype,"modern",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Oo.prototype,"modernTypography",void 0);
_.m([_.N({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],Oo);
_.I(Oo,"ytd-video-description-transcript-section-renderer",function(){if(N76!==void 0)return N76;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return N76=g},{mode:1});var I9t;_.BK(_.dG(function(g){var r=_.QU(_.pQl,function(){return g.data().firstProviderLinkStatusEntityKey}),E=_.QU(_.pQl,function(){return g.data().secondProviderLinkStatusEntityKey}),B=function(){var w,O;
return((w=r())==null?void 0:w.linked)||((O=E())==null?void 0:O.linked)};
return _.G("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.G(_.hf,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return g.data().sectionTitle}}),_.G(_.hf,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return B()?g.data().connectedMessage:g.data().notConnectedMessage}}),_.G(_.p,{cond:B,
then:function(){return _.G(_.Af,{data:function(){return g.data().connectedButton}},{buttonViewModel:function(w){return _.G(_.MV,{data:w.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.G(_.p,{cond:function(){return!B()},
then:function(){return _.G(_.Af,{data:function(){return g.data().notConnectedButton}},{buttonViewModel:function(w){return _.G(_.MV,{data:w.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"lj"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.cP}});_.BK(_.dG(function(g){var r=g.data;return _.G("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.G("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.G(_.hf,{text:function(){return r().sectionTitle}})),_.G("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.G(_.hf,{text:function(){return r().bodyHeader}})),_.G("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.G(_.hf,{text:function(){return r().bodyText}})),_.G(_.p,
{cond:function(){return r().attributionText},
then:function(){return _.G("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.G(_.hf,{text:function(){return r().attributionText}}))}}))},"mj"),"how-this-was-made-section-view-model",{props:{data:_.cP}});_.BK(_.dG(function(g){return _.G("yt-video-description-youchat-section-view-model",{class:_.QY("ytVideoDescriptionYouchatSectionViewModelHost")},_.G("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.G(_.hf,{text:function(){return g.data().sectionTitle}})),_.G("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.G(_.hf,{text:function(){return g.data().subHeaderText}})),_.G("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.G(_.MV,{data:function(){return _.n(g.data().primaryButton,
_.nm)}})))},"nj"),"yt-video-description-youchat-section-view-model",{props:{data:_.cP}});var Uo=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return g};
_.f(Uo,_.a);_.S=Uo.prototype;
_.S.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{videoDescriptionHeaderRenderer:{component:"ytd-video-description-header-renderer",properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[watchWhileSdp]]",engagementPanel:"[[engagementPanel]]"}},expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{panelContentVisible:"[[panelContentVisible]]",hasDescriptionOnly:"[[hasDescriptionOnly]]",engagementPanel:"[[engagementPanel]]",
shortsPanel:"[[shortsPanel]]"}},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{engagementPanelContent:!0}},merchandiseShelfRenderer:"ytd-merch-shelf-renderer",videoDescriptionCourseSectionRenderer:"ytd-video-description-course-section-renderer",videoDescriptionFilesSectionRenderer:"ytd-video-description-files-section-renderer",
videoDescriptionTranscriptSectionRenderer:"ytd-video-description-transcript-section-renderer",videoDescriptionFantasySectionViewModel:"ytw-video-description-fantasy-section-view-model",videoDescriptionGamingSectionRenderer:"ytd-video-description-gaming-section-renderer",videoDescriptionInfocardsSectionRenderer:{component:"ytd-video-description-infocards-section-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoDescriptionMusicSectionRenderer:{component:"ytd-video-description-music-section-renderer",
properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},errorCorrectionsSectionRenderer:"ytd-error-corrections-section-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},shelfRenderer:"ytd-shelf-renderer",courseProgressViewModel:"yt-course-progress-view-model",howThisWasMadeSectionViewModel:"how-this-was-made-section-view-model",videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoDescriptionYouchatSectionViewModel:"yt-video-description-youchat-section-view-model"}},
videoSummary:{id:"video-summary",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},merchShelf:{id:"merch-shelf",mapping:{merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",params:{watchMetadataRefresh:!0,inStructuredDescription:!0}}}}}};
_.S.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.S.dataChanged=function(){var g,r;this.hasDescriptionOnly=!(((g=this.data)==null?void 0:(r=g.items)==null?void 0:r.length)!==1||!_.n(this.data.items[0],SW$))};
_.S.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.S.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.S.autoFocusDescription=function(){var g;((g=_.rM().resolve(_.gM(_.wN)))==null?0:g.isKeyBoardInUse())&&this.description&&_.ZH(this.description)};
_.S.resize=function(){if(_.Y("kevlar_disable_sd_resize"))this.JSC$20352_cardList&&_.Sh(this.JSC$20352_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.Sh(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.Sh(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.S.scrollToSection=function(g){if(g=this.getSectionElement(g))_.OS(this.hostElement,"yt-scroll-to-watch-element",[g]),g.focus()};
_.S.getSectionElement=function(g){switch(g){case "infocards-item-section":var r;return(r=this.infocardsSection)!=null?r:null;case "transcript-item-section":var E;return(E=this.transcriptSection)!=null?E:null;case "how-this-was-made-section-item-section":var B;return(B=this.howThisWasMadeSection)!=null?B:null;case "files-item-section":var w;return(w=this.filesSection)!=null?w:null;default:return null}};
_.S.handleSetActiveItemAction=function(g){var r=_.n(g,b6F),E=r&&(r==null?void 0:r.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20352_cardList;if(r&&E){g=this.currentActiveChapter;var B=this.currentActiveProblem;r=E==null?void 0:E.getItemByIndex(r.itemIndex);var w=E=!0;r&&(r.active=!0,r.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(E=g!==r,w=!1,this.currentActiveChapter=r):(r==null?void 0:r.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(E=!1,w=B!==r,this.currentActiveProblem=r));g&&E&&(g.active=!1);B&&w&&(B.active=!1)}};
_.hx.Object.defineProperties(Uo.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.Y("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
Uo.prototype.onYtExpanderMoreTapped=Uo.prototype.onYtExpanderMoreTapped;Uo.prototype.onHiddenChanged=Uo.prototype.onHiddenChanged;Uo.prototype.dataChanged=Uo.prototype.dataChanged;Uo.prototype.panelContentVisibleChanged=Uo.prototype.panelContentVisibleChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Uo.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Uo.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Uo.prototype,"actionHandlerBehavior",void 0);_.m([_.P(_.f7),_.L("design:type",Object)],Uo.prototype,"ironResizableBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Uo.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Boolean)],Uo.prototype,"panelContentVisible",void 0);_.m([_.K(),_.L("design:type",Boolean)],Uo.prototype,"hasDescriptionOnly",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Uo.prototype,"inlineStructuredDescription",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Uo.prototype,"hidden",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Uo.prototype,"shortsPanel",void 0);_.m([_.K(),_.L("design:type",Object)],Uo.prototype,"videoSummary",void 0);_.m([_.K(),_.L("design:type",Object)],Uo.prototype,"merchShelf",void 0);
_.m([_.W("videoSummary"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Uo.prototype,"showVideoSummary",null);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Uo.prototype,"engagementPanel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Uo.prototype,"watchWhileSdp",void 0);_.m([_.zb("ytd-expandable-video-description-body-renderer"),_.L("design:type",Object)],Uo.prototype,"description",void 0);
_.m([_.zb("ytd-horizontal-card-list-renderer"),_.L("design:type",Object)],Uo.prototype,"JSC$20352_cardList",void 0);_.m([_.zb("ytd-horizontal-card-list-renderer[center-items]"),_.L("design:type",Object)],Uo.prototype,"problemWalkthroughCardList",void 0);_.m([_.zb("ytd-shelf-renderer"),_.L("design:type",Object)],Uo.prototype,"shelfSection",void 0);_.m([_.zb("ytd-video-description-music-section-renderer"),_.L("design:type",Object)],Uo.prototype,"musicMetadataSection",void 0);
_.m([_.zb("ytd-video-description-infocards-section-renderer"),_.L("design:type",Object)],Uo.prototype,"infocardsSection",void 0);_.m([_.zb("ytd-video-description-transcript-section-renderer"),_.L("design:type",Object)],Uo.prototype,"transcriptSection",void 0);_.m([_.zb("how-this-was-made-section-view-model"),_.L("design:type",Object)],Uo.prototype,"howThisWasMadeSection",void 0);_.m([_.zb("ytd-video-description-files-section-renderer"),_.L("design:type",Object)],Uo.prototype,"filesSection",void 0);
_.m([_.Gb("panelContentVisible"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Uo.prototype,"panelContentVisibleChanged",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Uo.prototype,"dataChanged",null);_.m([_.Gb("hidden"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Uo.prototype,"onHiddenChanged",null);
_.m([_.ob("yt-expander-more-tapped"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Uo.prototype,"onYtExpanderMoreTapped",null);_.m([_.N({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],Uo);
_.I(Uo,"ytd-structured-description-content-renderer",function(){if(I9t!==void 0)return I9t;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return I9t=g},{mode:2});var mTA;var cYM;var Mm=function(){return _.a.apply(this,arguments)||this};
_.f(Mm,_.a);Mm.prototype.computeAriaLabel=function(g){var r,E;return(g==null?void 0:(r=g.accessibility)==null?void 0:(E=r.accessibilityData)==null?void 0:E.label)||_.zn("LOADING",void 0,"Loading")};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Mm.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Mm.prototype,"data",void 0);_.m([_.K({computed:"computeAriaLabel(data)"}),_.L("design:type",String)],Mm.prototype,"ariaLabel",void 0);_.m([_.e3({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],Mm);
_.I(Mm,"yt-content-loading-renderer",function(){if(cYM===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;mTA===void 0&&(mTA=document.createElement("template"));var B=mTA;E.call(r,B.content.cloneNode(!0),g.content.firstChild);cYM=g}g=cYM;return g},{mode:_.My("kevlar_poly_si_batch_j043")?1:2});_.BK(_.dG(function(g){var r=_.U(_.Dk(!1,void 0,"QkPiwb")),E=r.next().value,B=r.next().value;r=_.U(_.Dk(!1,void 0,"AFECB"));var w=r.next().value,O=r.next().value;_.Jk(function(){var l=_.n(g.data().collaboratePlaylistCollaborationSetting,hYF);l&&B(l.switchedOnByDefault);var Q=_.n(g.data().allowNewCollaboratorsPlaylistCollaborationSetting,hYF);Q&&O(Q.switchedOnByDefault);if(!l&&!Q||!l&&g.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")B(!0),O(!0)});
var M=function(l){B(l);O(l);var Q=g.data().playlistCollaborationEntityKey||"";var z=_.V7().getState();(z=_.u1(z.entities,"playlistCollaborationEntity",Q))&&(z==null?void 0:z.isCollaborative)===l||_.V7().dispatch(_.za("playlistCollaborationEntity",Q,Object.assign({},z,{isCollaborative:l})))},u=function(l){O(l)};
return _.G("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.G("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.G(_.Af,{data:function(){return g.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(l){return _.G(_.xkw,{data:l.data,
onSwitch:M})}})),_.G(_.p,{cond:E,
then:function(){return _.G(_.wW,null,_.G("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.G(_.Af,{data:function(){return g.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(l){return _.G(_.xkw,{data:l.data,
onSwitch:u,overrideDisabled:!1})}})),_.G(_.p,{cond:w,
then:function(){return _.G("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.G(_.Af,{data:function(){return g.data().copyLinkButton}},{buttonViewModel:_.MV}))}}),_.G("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.G(_.Af,{data:function(){return g.data().playlistCollaborators}},{contentListItemViewModel:_.SJF})))}}))},"oj"),"playlist-collaboration-view-model",{props:{data:_.cP}});var i8v=_.dG(function(g){var r=g.data;var E=g.customCommandResolver;return _.G(_.wW,null,_.G("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.G(_.Af,{data:function(){return r().adAvatar}},{adAvatarViewModel:function(B){return _.G(_.plz,{data:B.data,
customCommandResolver:E})}})),_.G("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.G(_.p,{cond:function(){return r().headline},
then:function(B){return _.G(_.hf,{text:B,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.G("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.G(_.Af,{data:function(){return r().adBadge}},{adBadgeViewModel:function(B){return _.G(_.TV,{data:B.data,
hasDot:function(){return r().primaryDetailsLine!==void 0},
customCommandResolver:E,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.G(_.Af,{data:function(){return r().primaryDetailsLine}},{adDetailsLineViewModel:function(B){return _.G(_.gR,{data:B.data,
customCommandResolver:E,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"pj"),Ls$=_.dG(function(g){var r=g.data;
var E=g.customCommandResolver;g=_.VI("ad-avatar-lockup-view-model");_.mz(g,function(){return r().interaction},E);
_.gH(g,{visibilityCallback:function(B){var w,O=(w=r().interaction)==null?void 0:w.onFirstVisible;B&&O&&_.I3(O)},
showOption:_.LO});return _.G("ad-avatar-lockup-view-model",{class:function(){var B;return((B=r().interaction)==null?0:B.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:g,"aria-label":function(){var B,w;return(B=r().interaction)==null?void 0:(w=B.accessibility)==null?void 0:w.label}},_.G(_.fa,null,_.G(_.na,{when:function(){return r().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.G(i8v,{data:r,
customCommandResolver:E})}),_.G(_.s6,null,function(){return null})))},"qj");_.BK(_.dG(function(g){var r=g.data;var E=g.panelContentVisibility;g=_.VI("panel-ad-header-image-lockup-view-model");_.mz(g,function(){return r().interaction},cdm);
_.gH(g,{visibilityCallback:function(w){var O,M=(O=r().interaction)==null?void 0:O.onFirstVisible;w&&M&&_.I3(M)},
showOption:_.LO});_.F2(function(){var w,O;if(O=_.XS("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var M;O=(M=O())==null?void 0:M.onLayoutVisibleCallback}else O=null;(w=O)==null||w()});
var B=function(){return E()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.G("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:g},_.G("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.G("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.G(_.p,{cond:_.j7l("(min-width: "+((0,_.bH)()+_.KE)+"px) or (max-width: 600px)"),then:function(){return _.G(_.Af,{data:function(){return r().adImage}},{adImageViewModel:function(w){return _.G(_.lh,{data:w.data,
targetHeight:80,customCommandResolver:cdm})}})}})),_.G("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.G("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.G(_.Af,{data:function(){return r().adAvatarLockup}},{adAvatarLockupViewModel:function(w){return _.G(Ls$,{data:w.data,
customCommandResolver:cdm})}})),_.G(_.p,{cond:B,
then:function(){return _.G(_.Af,{data:function(){return r().adButton}},{adButtonViewModel:function(w){return _.G(_.hK,{data:w.data,
customCommandResolver:cdm})}})},
else:function(){return _.G(_.Af,{data:function(){return r().menu}},{buttonViewModel:_.MV})}}),_.G("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.G(_.Af,{data:function(){var w=_.n(r().toggleButton,_.sg);
return{toggleButtonViewModel:Object.assign({},w,{isTogglingDisabled:!0,isToggled:B()})}}},{toggleButtonViewModel:_.RY})))))},"rj"),"panel-ad-header-image-lockup-view-model",{props:{data:_.cP,
panelContentVisibility:_.cP}});_.BK(_.dG(function(g){var r=function(){return _.n(g.data().inputComposerViewModel,Z65)},E=function(){var A;
return((A=r())==null?void 0:A.youchatPendingResponseEntityKey)||""},B=_.QU(_.$x$,E),w=function(){var A;
return!((A=B())==null||!A.isPendingResponse)},O=_.U(_.Dk(!0,void 0,"DR0q1d")),M=O.next().value,u=O.next().value,l=function(){return r().sectionTargetId||"youchat_messages_section"};
O=_.hn("yt-chat-input-view-model");var Q=_.VI("textarea"),z=_.QU(FOD,"chat_input_view_model_state"),k=eAF(),H=function(){var A;return!((A=z())==null||!A.value)};
_.Jk(function(){var A;if(!H()&&((A=r())==null?0:A.welcomeFeatureContinuation)){A={continuationCommand:{token:r().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var J,e=String(Math.floor(((J=_.qQ())==null?void 0:J.getCurrentTime())||0)*1E3);J={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:e}};_.a3(A,{form:{formData:J}});k(!0)}var C=l(),X;(X=_.rM().resolve(_.gM(_.pB)))==null||X.addEventListener("yt-navigate-start",function(){_.fm.remove(C);k(!1)},
{once:!0})});
var R=function(){var A=Q.value.value;Q.value.value="";iFv(Q.value);var J,e=((J=r())==null?void 0:J.enableGradientColorBg)||!1;J=LOv(l(),A,e);_.a3(J);var C=_.jDt(E()),X;_.I3(((X=r())==null?void 0:X.onSubmitCommand)||{});C(!0);var Z;X=String(Math.floor(((Z=_.qQ())==null?void 0:Z.getCurrentTime())||0)*1E3);var c;Z={continuationCommand:{token:(c=r())==null?void 0:c.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};A={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:A,
playerOffsetMs:X}};_.a3(Z,{form:{formData:A},commandController:{onSuccess:function(){C(!1)},
onServerError:function(){var h=l();_.a3({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:h}}]}}});C(!1)}}})};
return _.G("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:O},_.G("div",{class:"chatInputViewModelChatInputWrapper"},_.G("form",{class:"chatInputViewModelChatInputForm"},_.G("textarea",{class:"chatInputViewModelChatInput",el:Q,"on:keydown":_.HK(function(A){var J=w()||!1;iFv(Q.value);J||A.key!=="Enter"||A.shiftKey||(A.preventDefault(),R());return!1}),
"on:keyup":_.HK(function(){u(Q.value.value.length===0);return!1}),
placeholder:function(){var A,J;var e=_.n((J=r())==null?void 0:J.inputFormField,$Iz);return e==null?void 0:(A=e.contentProperties)==null?void 0:A.placeholderText},
rows:1}),_.G(_.MV,{data:function(){return _.n(g.data().sendButton,_.nm)},
onClick:function(A){A.preventDefault();R();u(Q.value.value.length===0)},
buttonOverrides:function(){return{disabled:M()||w()}}})),_.G(_.hf,{className:"chatInputViewModelChatDisclaimer",
text:function(){var A;return(A=_.n(g.data().disclaimer,_.a0w))==null?void 0:A.text}})))},"sj"),"yt-chat-input-view-model",{props:{data:_.cP}});var VxL=["engagement-panel-clip-create","engagement-panel-clip-view"],hD4=0,qm=function(){var g=_.a.apply(this,arguments)||this;var r;g.headerData=(r=g.data)==null?void 0:r.header;g.darkerPanels=_.Y("web_watch_darker_panels");g.matchContentTheme=_.Y("web_watch_panel_content_match_theme");g.disableAutoFill=!1;g.isFullscreen=!1;g.isTheaterMode=!1;g.modernPanels=_.Y("kevlar_watch_modern_panels");g.liveChatReplyPanel=!1;g.enableAnchoredPanel=_.Y("desktop_shorts_v2_anchored_panel");g.disableBackdropFilter=
_.Y("web_disable_backdrop_filter");g.trackEngagementPanelVisibility=_.Y("web_watch_track_engagement_panel_visibility");g.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 g};
_.f(qm,_.a);_.S=qm.prototype;
_.S.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(g){var r;return(g==null?void 0:(r=g.webComponentHint)==null?void 0:r.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"}}}};
_.S.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var g;if((g=this.hostElement.parentElement)==null?0:g.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.S.detached=function(){this.updateTheaterDisablement()};
_.S.showPanel=function(){var g=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.F6.addJob(function(){g.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.S.maybeScrollToItemSection=function(g){var r=this,E,B=g==null?void 0:(E=g.sectionListEngagementPanelExtras)==null?void 0:E.scrollToItemSectionIdentifier;B&&_.F6.addJob(function(){var w;(w=r.sectionListRendererElement)==null||w.scrollToItemSection(B)},8)};
_.S.hidePanel=function(){var g=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.F6.addJob(function(){g.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.S.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.S.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.S.updatePanel=function(g,r,E,B){var w=this;if((g=g==null?void 0:g.engagementPanelSectionListRenderer)||B){if(g){B=g.header;var O=g.content,M=g.footer;(g=g.targetId)&&this.set("data.targetId",g);B&&this.set("data.header",B);O&&this.set("data.content",O);M&&this.set("data.footer",M)}else B&&(g=B.content,O=B.secondaryHeaderContent,(B=B.targetId)&&this.set("data.targetId",B),g&&this.set("data.content",g),O&&(this.secondaryHeaderData=O));this.updateChildVisibilityProperties();if(r){var u;_.Y("kevlar_update_panel_focus_scroll_killswitch")||
(u={preventScroll:!0});this.focus(u)}_.Lk(this,function(){_.Sh(w.hostElement,"yt-refit");w.maybeScrollToItemSection(E)})}};
_.S.computeHeaderData=function(){var g,r=(0,_.jn.unsafeClone)((g=this.data)==null?void 0:g.header);if(r){g=new _.V(Object.keys(r)[0]);var E=_.n(r,g),B=_.n(this.secondaryHeaderData,g);B&&_.FI(r,g,Object.assign({},B,E))}return r};
_.S.getReloadContinuation=function(){var g,r,E,B=_.U(((g=this.data)==null?void 0:(r=g.content)==null?void 0:(E=r.sectionListRenderer)==null?void 0:E.continuations)||[]);for(g=B.next();!g.done;g=B.next())if(g=g.value,g.reloadContinuationData)return g.reloadContinuationData.continuation};
_.S.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var g;((g=this.data)==null?0:g.targetId)&&(g=this.contentElement.firstElementChild)&&g.setAttribute("panel-target-id",this.data.targetId)};
_.S.forwardPopupClosedToFlowRootRenderer=function(){var g=_.S3(this.hostElement).querySelector("ytd-flow-root-renderer");if(g)g.onPopupClosed()};
_.S.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var g;if(!VxL.includes((g=this.theaterDisablementPanelIdentifier)!=null?g:""))if(g=_.Y("web_watch_imax_theater_mode")&&this.isTheaterMode,g=_.Y("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||g,_.Y("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||g){var r;this.visibility=(r=this.data)==null?void 0:r.visibility;var E;this.trackEngagementPanelVisibility&&((E=this.data)==null?void 0:E.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var B,w,O,M;this.contentEmpty=!!(((B=this.data)==null?0:(w=B.content)==null?0:w.structuredDescriptionContentRenderer)&&Object.keys((O=this.data)==null?void 0:(M=O.content)==null?void 0:
M.structuredDescriptionContentRenderer).length===0);(r=_.rM().resolve(_.kn))&&r.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.S.isTheaterModeChanged=function(){_.Y("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.S.isFullscreenChanged=function(){_.Y("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.S.focus=function(g){if(this.header)this.header.focus(g);else{var r;(r=_.S3(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||r.focus(g)}};
_.S.visibilityChanged=function(){if(!_.Y("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var g=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",r=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",E=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",B=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",w=B||!this.lastVisibility,O,M,u=(O=this.data)==null?void 0:(M=O.identifier)==null?void 0:M.tag,
l;if(((l=this.data)==null?0:l.onShowCommands)&&g&&w)_.uq(this.hostElement,this.data.onShowCommands,this.hostElement),u&&_.Zz().dispatch(_.Bs({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:u}}));else{var Q;((Q=this.data)==null?0:Q.onHideCommands)&&r&&E&&(_.uq(this.hostElement,this.data.onHideCommands,this.hostElement),u&&_.Zz().dispatch(_.Bs({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:u}})))}g&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*hD4++));_.Y("kevlar_watch_focus_on_engagement_panels")&&
g&&B&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.S.notifyVisibilityChanged=function(g){var r;_.US(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,g,(r=this.data)==null?void 0:r.targetId])};
_.S.updateTheaterDisablement=function(){if(!_.Y("kevlar_watch_theater_disablement_killswitch")){var g=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&VxL.includes(g)&&!_.Y("watch_next_grid_ignore_disallowed_panels")){var r=_.Jf(_.Zz().getState()),E=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";g!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():E?(this.originalTheaterState===void 0&&(this.originalTheaterState=r,this.theaterDisablementPanelIdentifier=
g),r&&_.OS(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.S.clearTheaterDisablement=function(){_.OS(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.S.updateChildVisibilityProperties=function(){this.hostElement||_.Y("kevlar_panel_property_init_killswitch")||this._enableProperties();var g=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=g);var r,E=(r=this.headerElement)==null?void 0:r.firstElementChild;if(E&&!this.adHeaderImageLockupViewModel){r=g==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";E.collapsed=r;E=_.S3(E).querySelector("#visibility-button");if(!E)return;(E=E.firstElementChild)&&
E.polymerController.is==="ytd-toggle-button-renderer"&&E.polymerController.data.isToggled!==r&&E.polymerController.set("data.isToggled",r)}var B;if(r=(B=this.contentElement)==null?void 0:B.firstElementChild)if(g&&g!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")r.removeAttribute("panel-content-visible");else{r.setAttribute("panel-content-visible","");var w;(w=r.markDirty)==null||w.call(r)}};
_.S.onYtChangeEngagementPanelVisibilityAction=function(g){var r=this,E,B=(E=this.data)==null?void 0:E.targetId,w,O,M;E=((w=this.data)==null?void 0:(O=w.identifier)==null?void 0:O.tag)||((M=this.data)==null?void 0:M.panelIdentifier);var u=_.n(g,_.Nc4),l;g=B&&(u==null?void 0:u.targetId)===B||E&&(u==null?void 0:(l=u.panelIdentifier)==null?void 0:l.tag)===E;this.dialog&&g&&(u==null?void 0:u.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(B==="engagement-panel-comments-section"?_.OS(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.OS(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",E]));!_.Y("kevlar_use_engagement_panel_management_component")&&g&&(B=u.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!B?_.F6.addJob(function(){r.visibility=u.visibility},2,this.hideDelayMs):this.visibility=u.visibility,u.visibility&&this.notifyVisibilityChanged(u.visibility))};
_.S.onYtScrollToEngagementPanelCommand=function(g){var r,E=(r=this.data)==null?void 0:r.targetId,B,w,O;r=((B=this.data)==null?void 0:(w=B.identifier)==null?void 0:w.tag)||((O=this.data)==null?void 0:O.panelIdentifier);g=_.n(g,_.TcD);var M;(E&&(g==null?void 0:g.targetId)===E||r&&(g==null?void 0:(M=g.panelIdentifier)==null?void 0:M.tag)===r)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.OS(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.S.attachVEs=function(g){var r,E;(g==null?0:(r=g.content)==null?0:(E=r.productListRenderer)==null?0:E.trackingParams)&&_.pW().graftServerVe(g.content.productListRenderer.trackingParams);var B,w;(g==null?0:(B=g.content)==null?0:(w=B.transcriptRenderer)==null?0:w.trackingParams)&&_.pW().graftServerVe(g.content.transcriptRenderer.trackingParams)};
_.S.onYtUpdateEngagementPanelAction=function(g){var r,E=(r=this.data)==null?void 0:r.targetId;g=_.n(g,PED);E&&(g==null?void 0:g.targetId)===E&&(this.updatePanel({engagementPanelSectionListRenderer:{header:g==null?void 0:g.header,content:g==null?void 0:g.content}},!1),this.attachVEs(g))};
_.S.onYtShowEngagementPanelScrimAction=function(g){var r,E=(r=this.data)==null?void 0:r.targetId;g=_.n(g,JUz);E&&(g==null?void 0:g.engagementPanelTargetId)===E&&(this.scrimmed=!0)};
_.S.onYtHideEngagementPanelScrimAction=function(g){var r,E=(r=this.data)==null?void 0:r.targetId;g=_.n(g,AUt);E&&(g==null?void 0:g.engagementPanelTargetId)===E&&(this.scrimmed=!1)};
_.S.getIdentifier=function(){var g,r,E;return((g=this.data)==null?void 0:g.panelIdentifier)||((r=this.data)==null?void 0:(E=r.identifier)==null?void 0:E.tag)};
_.S.getSurface=function(){var g,r;return(g=this.data)==null?void 0:(r=g.identifier)==null?void 0:r.surface};
_.hx.Object.defineProperties(qm.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var g=this.getIdentifier();return g==="engagement-panel-youchat"||g==="PAyouchat"}}});
qm.prototype.visibilityChanged=qm.prototype.visibilityChanged;qm.prototype.isFullscreenChanged=qm.prototype.isFullscreenChanged;qm.prototype.isTheaterModeChanged=qm.prototype.isTheaterModeChanged;qm.prototype.dataChanged=qm.prototype.dataChanged;qm.prototype.forwardPopupClosedToFlowRootRenderer=qm.prototype.forwardPopupClosedToFlowRootRenderer;qm.prototype.onYtRendererstamperFinished=qm.prototype.onYtRendererstamperFinished;
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],qm.prototype,"actionHandlerBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],qm.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],qm.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],qm.prototype,"ytEventForwardingBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],qm.prototype,"data",void 0);
_.m([_.K({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.L("design:type",Object)],qm.prototype,"headerData",void 0);_.m([_.K(),_.L("design:type",Object)],qm.prototype,"secondaryHeaderData",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],qm.prototype,"visibility",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],qm.prototype,"contentEmpty",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],qm.prototype,"scrimmed",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],qm.prototype,"dialog",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],qm.prototype,"dropdown",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],qm.prototype,"darkerPanels",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],qm.prototype,"matchContentTheme",void 0);_.m([_.K(),_.L("design:type",Object)],qm.prototype,"disableAutoFill",void 0);
_.m([_.K({reflectToAttribute:!0,value:_.Y("optimal_reading_width_comments_ep")}),_.L("design:type",Boolean)],qm.prototype,"optimalReadingWidthComments",void 0);_.m([_.K(),_.L("design:type",Number)],qm.prototype,"hideDelayMs",void 0);_.m([_.K({selector:_.PX,reflectToAttribute:!0}),_.L("design:type",Object)],qm.prototype,"isFullscreen",void 0);_.m([_.K({selector:_.Jf,reflectToAttribute:!0}),_.L("design:type",Object)],qm.prototype,"isTheaterMode",void 0);
_.m([_.K(),_.L("design:type",Number)],qm.prototype,"showDelayMs",void 0);_.m([_.K({reflectToAttribute:!0}),_.W("data.targetId"),_.L("design:type",Object),_.L("design:paramtypes",[])],qm.prototype,"targetId",null);_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],qm.prototype,"webSize",null);_.m([_.K(),_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],qm.prototype,"hideFooterBorder",null);
_.m([_.K(),_.L("design:type",Object)],qm.prototype,"isWatch",void 0);_.m([_.K(),_.L("design:type",Object)],qm.prototype,"originalTheaterState",void 0);_.m([_.K(),_.L("design:type",Object)],qm.prototype,"theaterDisablementPanelIdentifier",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],qm.prototype,"modernPanels",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],qm.prototype,"isWatchWhilePanel",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],qm.prototype,"shortsPanel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],qm.prototype,"liveChatEngagementPanel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],qm.prototype,"learningChatEngagementPanel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],qm.prototype,"liveChatReplyPanel",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],qm.prototype,"enableAnchoredPanel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],qm.prototype,"disableBackdropFilter",void 0);_.m([_.K(),_.L("design:type",Object)],qm.prototype,"trackEngagementPanelVisibility",void 0);_.m([_.zb("#header"),_.L("design:type",HTMLElement)],qm.prototype,"headerElement",void 0);_.m([_.zb("#header > *"),_.L("design:type",HTMLElement)],qm.prototype,"header",void 0);
_.m([_.zb("ytd-section-list-renderer"),_.L("design:type",Object)],qm.prototype,"sectionListRendererElement",void 0);_.m([_.zb("panel-ad-header-image-lockup-view-model"),_.L("design:type",HTMLElement)],qm.prototype,"adHeaderImageLockupViewModel",void 0);_.m([_.zb("#content"),_.L("design:type",HTMLElement)],qm.prototype,"contentElement",void 0);
_.m([_.ob("yt-rendererstamper-finished"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],qm.prototype,"onYtRendererstamperFinished",null);_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],qm.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.m([_.Yk("data","isFullscreen","isTheaterMode"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],qm.prototype,"dataChanged",null);
_.m([_.Gb("isTheaterMode"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],qm.prototype,"isTheaterModeChanged",null);_.m([_.Gb("isFullscreen"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],qm.prototype,"isFullscreenChanged",null);_.m([_.Gb("visibility"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],qm.prototype,"visibilityChanged",null);
_.m([_.N({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],qm);
_.I(qm,"ytd-engagement-panel-section-list-renderer",function(){if(kvz!==void 0)return kvz;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return kvz=g},{mode:_.My("kevlar_poly_si_batch_j028")?1:2});var Z84;var uy=function(){var g=_.a.apply(this,arguments)||this;g.lastRenderedPanelIds=new Set;g.visiblePanels=[];g.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return g};
_.f(uy,_.a);_.S=uy.prototype;_.S.dataChanged=function(){if(this.data){for(var g=[],r=_.U(this.data),E=r.next();!E.done;E=r.next()){E=E.value;var B=void 0,w=void 0,O=(B=E)==null?void 0:(w=B.engagementPanelSectionListRenderer)==null?void 0:w.visibility;w=B=void 0;((B=E)==null?0:(w=B.engagementPanelSectionListRenderer)==null?0:w.targetId)&&O!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&g.push(E)}this.visiblePanels=g}else this.visiblePanels=[]};
_.S.configureRendererStamper=function(){return{visiblePanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0},properties:{hideDelayMs:"[[hideDelayMs]]",isWatchWhilePanel:"[[isWatchWhilePanel]]"}}},reuseComponents:!1}}};
_.S.withoutVisiblePanelById=function(g){return this.visiblePanels.filter(function(r){var E;return((E=r.engagementPanelSectionListRenderer)==null?void 0:E.targetId)!==g})};
_.S.onYtChangeEngagementPanelVisibilityAction=function(g){var r=this,E=_.n(g,_.Nc4);if(this.data&&(E==null?0:E.targetId)&&(E==null?0:E.visibility)){var B,w=(B=this.data.find(function(M){var u;return((u=M.engagementPanelSectionListRenderer)==null?void 0:u.targetId)===E.targetId}))==null?void 0:B.engagementPanelSectionListRenderer;
if(w){var O=this.withoutVisiblePanelById(E.targetId);E.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(g=this.data.find(function(M){var u;return((u=M.engagementPanelSectionListRenderer)==null?void 0:u.targetId)===E.targetId}))&&(O=[g].concat(_.jW(O)));
this.hideDelayMs&&E.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&O.length===0?_.F6.addJob(function(){w.visibility=E.visibility;r.visiblePanels=O},10,this.hideDelayMs):(w.visibility=E.visibility,this.visiblePanels=O);
_.US(this.hostElement,"yt-engagement-panels-visible-changed",[O])}}};
_.S.onRendererstamperFinished=function(){var g=new Set(this.visiblePanels.map(function(r){var E;return(E=r.engagementPanelSectionListRenderer)==null?void 0:E.targetId}));
this.handlePanelVisibilityChange(g,this.lastRenderedPanelIds);this.lastRenderedPanelIds=g};
_.S.handlePanelVisibilityChange=function(g,r){g=g===void 0?new Set:g;r=r===void 0?new Set:r;if(this.data)for(var E=_.U(this.data),B=E.next();!B.done;B=E.next()){B=B.value;var w=void 0,O=void 0,M=(w=B)==null?void 0:(O=w.engagementPanelSectionListRenderer)==null?void 0:O.targetId;if(M&&(w=r.has(M),O=g.has(M),M=void 0,!w&&O?(O=w=void 0,M=(w=B)==null?void 0:(O=w.engagementPanelSectionListRenderer)==null?void 0:O.onShowCommands):w&&!O&&(O=w=void 0,M=(w=B)==null?void 0:(O=w.engagementPanelSectionListRenderer)==
null?void 0:O.onHideCommands),M))for(B=_.U(M),M=B.next();!M.done;M=B.next())this.ytComponentBehavior.resolveCommand(M.value)}};
uy.prototype.onRendererstamperFinished=uy.prototype.onRendererstamperFinished;uy.prototype.dataChanged=uy.prototype.dataChanged;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],uy.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],uy.prototype,"actionHandlerBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],uy.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],uy.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],uy.prototype,"lastRenderedPanelIds",void 0);_.m([_.K(),_.L("design:type",Number)],uy.prototype,"hideDelayMs",void 0);_.m([_.K(),_.L("design:type",Array)],uy.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Array)],uy.prototype,"visiblePanels",void 0);_.m([_.K(),_.L("design:type",Boolean)],uy.prototype,"isWatchWhilePanel",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],uy.prototype,"dataChanged",null);_.m([_.ob("yt-rendererstamper-finished"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],uy.prototype,"onRendererstamperFinished",null);_.m([_.N({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],uy);
_.I(uy,"ytd-watch-engagement-panels",function(){if(Z84!==void 0)return Z84;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return Z84=g},{mode:1});var yY4;var ly=function(){return _.a.apply(this,arguments)||this};
_.f(ly,_.a);ly.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.cu(_.S3(this.hostElement).querySelector("#text"),_.JtT(_.FAw,this.data.companionLegalText))};
ly.prototype.computeAutoScrollEnabled=function(g,r){return g&&!r};
ly.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
ly.prototype.onToggleTap=function(){this.expanded=!this.expanded};
ly.prototype.expandedChanged=ly.prototype.expandedChanged;ly.prototype.dataChanged=ly.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ly.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.iG5),_.L("design:type",Object)],ly.prototype,"ytdAutoScrollBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ly.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],ly.prototype,"expanded",void 0);
_.m([_.K({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.L("design:type",Boolean)],ly.prototype,"autoScrollEnabled",void 0);_.m([_.K(),_.L("design:type",String)],ly.prototype,"expanderIcon",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ly.prototype,"dataChanged",null);
_.m([_.Gb("expanded"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ly.prototype,"expandedChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],ly);
_.I(ly,"ytd-companion-legal-text-renderer",function(){if(yY4!==void 0)return yY4;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return yY4=g},{mode:1});var vqD;var DN=function(){var g=_.a.apply(this,arguments)||this;g.buttonUpdate=_.Y("web_modern_buttons");g.kevlarWatchGrid=_.Y("kevlar_watch_grid");g.centerAlignDescription=_.Y("action_companion_center_align_description");g.truncateDomain=_.Y("action_companion_truncate_domain");return g};
_.f(DN,_.a);_.S=DN.prototype;_.S.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.S.getOnLayoutVisibleCallback=function(){var g=_.XS("yt.www.ads.eventcache.getLastCompanionData");return g?(g=g())&&g.onLayoutVisibleCallback:null};
_.S.getLayoutId=function(){var g=_.XS("yt.www.ads.eventcache.getLastCompanionData");return g?(g=g())&&g.layoutId:null};
_.S.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",DN.JSC$20399_DEFAULT_AD_BADGE_RENDERER);var g=this.getOnLayoutVisibleCallback();g&&g()}};
_.S.getButtonRenderer=function(g){return g.actionButton&&_.n(g.actionButton,_.Fd)?(delete _.n(g.actionButton,_.Fd).navigationEndpoint,_.n(g.actionButton,_.Fd)):{}};
_.S.onClick=function(g){var r=this;if((!_.Y("web_modern_buttons")||!_.Zy(_.Z1(g),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){g=_.Tw();var E=this.getLayoutId();g&&E&&_.Y("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?g.getPlayerPromise().then(function(B){(new _.nH(B)).executeCommand(r.data.navigationEndpoint,E)}):_.Y("kevlar_companion_resolve_command_killswitch")?_.Sh(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.OS(this.hostElement,"yt-companion-ad-clicked",["action-companion",E])}};
_.hx.Object.defineProperties(DN.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return((g=this.data)==null?0:(r=g.detailsLine)==null?0:(E=r.adRating)==null?0:E.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 g,r,E,B;return((g=this.data)==null?0:(r=g.detailsLine)==null?0:(E=r.adRating)==null?0:(B=E.ratingIcon)==null?0:B.iconType)?_.Dh(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var g,r,E,B;return((g=this.data)==null?0:(r=g.detailsLine)==null?0:(E=r.texts)==null?0:(B=E[0])==null?0:B.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 g,r;return((g=this.data)==null?0:(r=g.description)==null?0:r.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var g=_.XS("yt.www.ads.eventcache.getLastCompanionData");return g?(g=g())&&g.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var g=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return g?g.indexOf("/default_banner")!==-1:!0}}});
DN.prototype.onClick=DN.prototype.onClick;DN.prototype.dataChanged=DN.prototype.dataChanged;DN.JSC$20399_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.zn("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],DN.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],DN.prototype,"rendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],DN.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],DN.prototype,"buttonUpdate",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],DN.prototype,"kevlarWatchGrid",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],DN.prototype,"centerAlignDescription",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],DN.prototype,"truncateDomain",void 0);
_.m([_.K({computed:"computeButtonOverride(buttonUpdate)"}),_.L("design:type",Object)],DN.prototype,"buttonOverride",void 0);_.m([_.W("data.detailsLine.adRating.ratingText"),_.L("design:type",Object),_.L("design:paramtypes",[])],DN.prototype,"getRating",null);_.m([_.W("getRating"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],DN.prototype,"computeRatingHidden",null);
_.m([_.W("data.detailsLine.adRating.ratingIcon.iconType"),_.L("design:type",Object),_.L("design:paramtypes",[])],DN.prototype,"iconType",null);_.m([_.W("data.detailsLine.texts.0.text"),_.L("design:type",Object),_.L("design:paramtypes",[])],DN.prototype,"getDetailsLine",null);_.m([_.W("getDetailsLine"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],DN.prototype,"computeDetailsLineHidden",null);
_.m([_.W("data.description.text"),_.L("design:type",Object),_.L("design:paramtypes",[])],DN.prototype,"getDescriptionText",null);_.m([_.W("getDescriptionText"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],DN.prototype,"computeDescriptionTextHidden",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],DN.prototype,"interactionLoggingClientData",null);
_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],DN.prototype,"hideBanner",null);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],DN.prototype,"dataChanged",null);_.m([_.ob("click"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],DN.prototype,"onClick",null);_.m([_.N({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],DN);
_.I(DN,"ytd-action-companion-ad-renderer",function(){if(vqD!==void 0)return vqD;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return vqD=g},{mode:_.My("kevlar_poly_si_batch_j067")?1:2});var dTm;var T7L;var oW=function(){var g=_.a.apply(this,arguments)||this;g.buttonUpdate=_.Y("web_modern_buttons");g.hideLegacyBanner=_.Y("enable_dsa_one_click_ata_translators_infeed_elements");g.adInfoButtonStyle="mono";g.adInfoButtonType="text";g.noDotAdBadge=!0;return g};
_.f(oW,_.a);_.S=oW.prototype;_.S.getOnLayoutVisibleCallback=function(){var g=_.XS("yt.www.ads.eventcache.getLastCompanionData");return g?(g=g())&&g.onLayoutVisibleCallback:null};
_.S.getLayoutId=function(){var g=_.XS("yt.www.ads.eventcache.getLastCompanionData");return g?(g=g())&&g.layoutId:null};
_.S.dataChanged=function(){if(this.data){if(this.data.image&&this.data.image.thumbnail&&this.data.image.thumbnail.thumbnails&&this.data.image.thumbnail.thumbnails.length){var g=this.data.image.thumbnail.thumbnails[0];this.imageSrc=g.url?_.nI(g.url):void 0;this.imageWidth=g.width||0;this.imageHeight=g.height||0}this.data.clickthroughEndpoint&&_.n(this.data.clickthroughEndpoint,_.II)&&(g=_.n(this.data.clickthroughEndpoint,_.II).url,_.Y("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
g||"":g?(g=_.nI(g),this.clickThroughUrl=_.zh(g)):this.clickThroughUrl=void 0);(g=this.getOnLayoutVisibleCallback())&&g()}};
_.S.onClick=function(g){_.Zy(_.Z1(g),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(g)};
_.S.handleClick=function(){var g=this;this.data&&this.data.clickthroughEndpoint&&(_.Sh(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(r){g.macroReplacementBehavior.sendServiceRequestAction([r])}),_.OS(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.S.onLoad=function(){_.US(this.hostElement,"yt-refit-popups-action")};
_.hx.Object.defineProperties(oW.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var g=_.XS("yt.www.ads.eventcache.getLastCompanionData");return g?(g=g())&&g.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var g=_.XS("yt.www.ads.eventcache.getLastCompanionData");return g?(g=g())&&g.interactionLoggingClientData:null}}});
oW.prototype.onLoad=oW.prototype.onLoad;oW.prototype.onClick=oW.prototype.onClick;oW.prototype.dataChanged=oW.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],oW.prototype,"rendererBehavior",void 0);_.m([_.P(fRt.YtMacroReplacementBehavior),_.L("design:type",Object)],oW.prototype,"macroReplacementBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],oW.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],oW.prototype,"buttonUpdate",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],oW.prototype,"hideLegacyBanner",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],oW.prototype,"adInfoButtonStyle",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],oW.prototype,"adInfoButtonType",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],oW.prototype,"macros",null);
_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],oW.prototype,"interactionLoggingClientData",null);_.m([_.K(),_.L("design:type",String)],oW.prototype,"clickThroughUrl",void 0);_.m([_.K(),_.L("design:type",_.oC)],oW.prototype,"imageSrc",void 0);_.m([_.K(),_.L("design:type",Number)],oW.prototype,"imageWidth",void 0);_.m([_.K(),_.L("design:type",Number)],oW.prototype,"imageHeight",void 0);_.m([_.K(),_.L("design:type",Object)],oW.prototype,"noDotAdBadge",void 0);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],oW.prototype,"dataChanged",null);_.m([_.ob("click"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],oW.prototype,"onClick",null);_.m([_.ob("load"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],oW.prototype,"onLoad",null);_.m([_.N({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],oW);
_.I(oW,"ytd-image-companion-renderer",function(){if(T7L!==void 0)return T7L;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return T7L=g},{mode:_.My("kevlar_poly_si_batch_j067")?1:2});var gSM;var G1=function(){return _.a.apply(this,arguments)||this};
_.f(G1,_.a);_.S=G1.prototype;_.S.dataChanged=function(){this.set("data.adBadge",G1.JSC$20408_DEFAULT_AD_BADGE_RENDERER);if(this.data){var g=this.getOnLayoutVisibleCallback();g&&g()}};
_.S.getOnLayoutVisibleCallback=function(){var g=_.XS("yt.www.ads.eventcache.getLastCompanionData");return g?(g=g())&&g.onLayoutVisibleCallback:null};
_.S.getLayoutId=function(){var g=_.XS("yt.www.ads.eventcache.getLastCompanionData");return g?(g=g())&&g.layoutId:null};
_.S.onCompanionClicked=function(g){this.data&&(g.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.OS(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.S.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var g=_.Tw(),r=this.getLayoutId(),E=this.data.clickToAdvSiteEndpoint;g&&r&&_.Y("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?g.getPlayerPromise().then(function(B){(new _.nH(B)).executeCommand(E,r)}):_.Sh(this.hostElement,"yt-navigate",{endpoint:E})}};
_.S.sendTrackingPings=function(g){if(g&&g.length!==0&&g[0].loggingUrls&&(g=g[0].loggingUrls.map(this.getBaseUrl)))for(var r=0;r<g.length;r++)_.mS(g[r])};
_.S.getBaseUrl=function(g){return g.baseUrl||""};
_.hx.Object.defineProperties(G1.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var g=_.XS("yt.www.ads.eventcache.getLastCompanionData");return g?(g=g())&&g.interactionLoggingClientData:null}}});
G1.prototype.onCompanionClicked=G1.prototype.onCompanionClicked;G1.prototype.dataChanged=G1.prototype.dataChanged;G1.JSC$20408_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.zn("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],G1.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],G1.prototype,"data",void 0);_.m([_.zb("#title"),_.L("design:type",HTMLElement)],G1.prototype,"shopTitle",void 0);
_.m([_.Yk("data.impressionEndpoints"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],G1.prototype,"dataChanged",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],G1.prototype,"interactionLoggingClientData",null);_.m([_.ob("yt-navigate"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],G1.prototype,"onCompanionClicked",null);
_.m([_.N({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],G1);
_.I(G1,"ytd-shopping-companion-renderer",function(){if(gSM!==void 0)return gSM;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return gSM=g},{mode:1});_.BK(_.dG(function(g){var r=g.data;var E=_.VI("banner-image-layout-view-model");_.mz(E,function(){return r().interaction},VF6);
_.gH(E,{visibilityCallback:function(B){var w,O=(w=r().interaction)==null?void 0:w.onFirstVisible;B&&O&&_.I3(O)},
showOption:_.LO});_.F2(function(){var B,w;w=(w=_.XS("yt.www.ads.eventcache.getLastCompanionData"))?(w=w())&&w.onLayoutVisibleCallback:null;(B=w)==null||B()});
return _.G("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.HK(function(){_.US(E.value,"yt-refit-popups-action")}),
el:E,"aria-label":function(){var B,w;return(B=r().interaction)==null?void 0:(w=B.accessibility)==null?void 0:w.label}},_.G("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.G(_.Af,{data:function(){return r().adImage}},{adImageViewModel:function(B){return _.G(_.lh,{data:B.data,
targetHeight:80,customCommandResolver:VF6})}})),_.G("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.G("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.G(_.Af,{data:function(){return r().adBadge}},{adBadgeViewModel:function(B){return _.G(_.TV,{data:B.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.G("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.G(_.Af,{data:function(){return r().menu}},{buttonViewModel:_.MV}))))},"tj"),"banner-image-layout-view-model",{props:{data:_.cP}});_.BK(_.dG(function(g){var r=g.data;g=_.VI("top-banner-image-text-icon-buttoned-layout-view-model");_.mz(g,function(){return r().interaction},hAM);
_.gH(g,{visibilityCallback:function(E){var B,w=(B=r().interaction)==null?void 0:B.onFirstVisible;E&&w&&_.I3(w)},
showOption:_.LO});_.F2(function(){var E,B;B=(B=_.XS("yt.www.ads.eventcache.getLastCompanionData"))?(B=B())&&B.onLayoutVisibleCallback:null;(E=B)==null||E()});
return _.G("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:g},_.G("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.G(_.Af,{data:function(){return r().adImage}},{adImageViewModel:function(E){return _.G(_.lh,{data:E.data,
targetHeight:80,customCommandResolver:hAM})}})),_.G("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.G("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.G(_.Af,{data:function(){return r().adAvatarLockup}},{adAvatarLockupViewModel:function(E){return _.G(Ls$,{data:E.data,
customCommandResolver:hAM})}})),_.G(_.Af,{data:function(){return r().adButton}},{adButtonViewModel:function(E){return _.G(_.hK,{data:E.data,
customCommandResolver:hAM})}}),_.G("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.G(_.Af,{data:function(){return r().menu}},{buttonViewModel:_.MV}))))},"uj"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.cP}});var rP$={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"},Qf=function(){var g=_.a.apply(this,arguments)||this;g.updateCompanionDataJobId=0;g.contentVideoId=null;g.player=null;g.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return g};
_.f(Qf,_.a);_.S=Qf.prototype;_.S.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:rP$}}};
_.S.attached=function(){var g=this,r=_.Tw();r&&r.getPlayerPromise().then(function(E){g.getCachedDataAndListen(E)})};
_.S.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.S.updateRendererStamper=function(){var g={};if(this.data)for(var r in rP$)if(this.data[r]){g[r]=this.data[r];break}if(this.oneofRenderer!=void 0||Object.keys(g).length)this.oneofRenderer=g};
_.S.getCachedDataAndListen=function(g){var r=this.retrieveCachedCompanionData();r&&Object.keys(r).length&&this.receiveCompanionData(r);this.ytPlayerListenerBehavior.listenToPlayerEvent(g,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=g};
_.S.retrieveCachedCompanionData=function(){return _.ED.yt&&_.ED.yt.www&&_.ED.yt.www.ads&&_.ED.yt.www.ads.eventcache&&_.ED.yt.www.ads.eventcache.getLastCompanionData?_.ED.yt.www.ads.eventcache.getLastCompanionData():null};
_.S.receiveCompanionData=function(g){g&&Object.keys(g).length?(this.contentVideoId=g.contentVideoId,this.setCompanionData(g)):this.setCompanionData(g)};
_.S.setCompanionData=function(g){this.cancelPendingCompanionAdJobs();if(g){this.updateCompanionDataJobId=0;for(var r in rP$)rP$.hasOwnProperty(r)&&(this.data[r]=void 0);g.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",g.shoppingCompanionCarouselRenderer):g.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",g.imageCompanionAdRenderer):g.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",g.actionCompanionAdRenderer),_.US(this.hostElement,
"yt-hide-unlimited-offer-module"),_.US(this.hostElement,"yt-hide-tvfilm-offer-module")):g.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",g.bannerImageLayoutViewModel):g.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",g.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.S.dataChanged=function(){var g=this,r=_.Tw();r?r.getPlayerPromise().then(function(E){g.contentVideoId&&E.getVideoUrl().includes("v="+g.contentVideoId)||(g.cancelPendingCompanionAdJobs(),g.updateRendererStamper())}):_.NX(Error("om"))};
_.S.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.F6.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.S.handleCompanionAdClicked=function(g,r){this.player.onAdUxClicked(g,r);this.player.pauseVideo()};
Qf.prototype.dataChanged=Qf.prototype.dataChanged;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Qf.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Qf.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Qf.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Qf.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.P(_.a9.YtPlayerListenerBehavior),_.L("design:type",_.X0)],Qf.prototype,"ytPlayerListenerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Qf.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],Qf.prototype,"oneofRenderer",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Qf.prototype,"dataChanged",null);_.m([_.N({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],Qf);
_.I(Qf,"ytd-companion-slot-renderer",function(){if(dTm!==void 0)return dTm;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return dTm=g},{mode:_.My("kevlar_poly_si_batch_j067")?
1:2});var ES5;var z1=function(){return _.a.apply(this,arguments)||this};
_.f(z1,_.a);z1.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
z1.prototype.dataChanged=z1.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],z1.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],z1.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],z1.prototype,"companionSlotData",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],z1.prototype,"dataChanged",null);
_.m([_.N({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],z1);
_.I(z1,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(ES5!==void 0)return ES5;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return ES5=g},{mode:1});var BKA;var k_=function(){var g=_.a.apply(this,arguments)||this;g.skinnyMode=!1;g.COMPACT_EVENT_COUNT=4;g.onShelfToggleButtonTap=function(){g.logTap(g.data);g.showingMore=!g.showingMore};
g.onShelfToggleButtonFocus=function(){g.showingMore||(g.logTap(g.data),g.showingMore=!0,_.Lk(g,function(){var r=g.COMPACT_EVENT_COUNT-1,E;(E=_.S3(g.hostElement).querySelector("#event-"+r))==null||E.focus()}))};
return g};
_.f(k_,_.a);_.S=k_.prototype;_.S.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.S.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.S.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.Do(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.Do(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.Do(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.Do(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.Do(this.infoTooltip,this.infoTooltip.hide))};
_.S.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.Do(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.Do(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.Do(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.Do(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.Do(this.infoTooltip,this.infoTooltip.hide))};
_.S.dataChanged=function(){this.firstEvent=this.get("data.events.0.ticketEventRenderer");this.data&&this.data.events&&(this.canShowMore=this.data.events.length>this.COMPACT_EVENT_COUNT,this.separator.style.visibility=this.data.events.length>1?"visible":"hidden");this.showingMore=!1;this.showingMoreChanged(!1)};
_.S.onShowingMoreChanged=function(){var g;this.showingMoreChanged((g=this.showingMore)!=null?g:!1)};
_.S.showingMoreChanged=function(g){var r=this.get("data.events")||[];this.set("restEvents",r.slice(1,g?r.length:this.COMPACT_EVENT_COUNT).map(function(E){return E.ticketEventRenderer}));
r.slice(0,g?r.length:this.COMPACT_EVENT_COUNT).forEach(function(E){var B=_.PE();E=E.ticketEventRenderer.trackingParams;_.JF()&&B&&E&&(E=_.fW(E),B&&_.mZ(B,E))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.S.computeAriaLabel=function(g){return g.subtitle1+", "+g.subtitle2};
_.S.logTap=function(g){_.JF()&&this.ytRendererBehavior.logExplicitClick(g)};
_.S.isKeyboardAction=function(g){return this.get("detail.x",g)===0&&this.get("detail.y",g)===0};
_.S.onFirstEventTap=function(g){g.target&&this.handleTap(g.target,this.firstEvent,this.isKeyboardAction(g))};
_.S.onTicketLinkTap=function(g){g.target&&this.handleTap(g.target,g.model.item,this.isKeyboardAction(g))};
_.S.handleTap=function(g,r,E){if(r.buttonCommand)if(r.hasMultipleOffers)Object.assign(_.n(r.buttonCommand,_.R1),{properties:{source:E?"keyboard":"tap"}}),this.logTap(r),this.popupPositionTarget=g,_.uq(this.hostElement,[r.buttonCommand],this.hostElement);else{var B;if((B=_.n(r.buttonCommand,_.II))==null?0:B.url)this.logTap(r),_.Wu(window,_.n(r.buttonCommand,_.II).url)}};
k_.prototype.onShowingMoreChanged=k_.prototype.onShowingMoreChanged;k_.prototype.dataChanged=k_.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],k_.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],k_.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],k_.prototype,"firstEvent",void 0);_.m([_.K(),_.L("design:type",Object)],k_.prototype,"restEvents",void 0);_.m([_.K(),_.L("design:type",String)],k_.prototype,"imageUrl",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],k_.prototype,"showingMore",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],k_.prototype,"canShowMore",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],k_.prototype,"skinnyMode",void 0);_.m([_.K(),_.L("design:type",HTMLElement)],k_.prototype,"popupPositionTarget",void 0);_.m([_.zb("#banner-info-tooltip"),_.L("design:type",Object)],k_.prototype,"infoTooltip",void 0);
_.m([_.zb("#info-container"),_.L("design:type",HTMLElement)],k_.prototype,"infoContainer",void 0);_.m([_.zb("#shelf-toggler"),_.L("design:type",HTMLElement)],k_.prototype,"shelfToggleButton",void 0);_.m([_.zb("#separator"),_.L("design:type",HTMLDivElement)],k_.prototype,"separator",void 0);_.m([_.K(),_.L("design:type",String)],k_.prototype,"shelfTogglerLabelText",void 0);_.m([_.K(),_.L("design:type",String)],k_.prototype,"shelfTogglerIcon",void 0);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],k_.prototype,"dataChanged",null);_.m([_.Yk("showingMore"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],k_.prototype,"onShowingMoreChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],k_);
_.I(k_,"ytd-ticket-shelf-renderer",function(){if(BKA!==void 0)return BKA;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return BKA=g},{mode:1});var wBm;var Sf5;var HG=function(){return _.a.apply(this,arguments)||this};
_.f(HG,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],HG.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],HG.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],HG);
_.I(HG,"ytd-comments-entry-point-message-renderer",function(){if(Sf5!==void 0)return Sf5;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Sf5=g},{mode:1});var OSM;var p_=function(){return _.a.apply(this,arguments)||this};
_.f(p_,_.a);_.hx.Object.defineProperties(p_.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.teaserAvatar)}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],p_.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],p_.prototype,"data",void 0);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],p_.prototype,"hasAvatar",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],p_);
_.I(p_,"ytd-comments-entry-point-teaser-renderer",function(){if(OSM!==void 0)return OSM;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return OSM=g},{mode:1});var U$v;var Y_=function(){return _.a.apply(this,arguments)||this};
_.f(Y_,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Y_.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Y_.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],Y_);
_.I(Y_,"ytd-comments-simplebox-renderer",function(){if(U$v!==void 0)return U$v;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return U$v=g},{mode:1});var RW=function(){var g=_.a.apply(this,arguments)||this;g.fullHeight=!_.Y("comment_teaser_full_height_kill_switch")&&_.Y("kevlar_watch_grid");return g};
_.f(RW,_.a);RW.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"}}}};
RW.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
RW.prototype.onTap=function(){var g=this.tapCommand;g&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(g))};
RW.prototype.onKeyUp=function(g){if(g.keyCode===13)this.onTap()};
_.hx.Object.defineProperties(RW.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)==null?0:g.onTap)return this.data.onTap;var r,E;if(((r=this.data)==null?0:r.teaserContent)||((E=this.data)==null?0:E.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)!=null&&g.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
RW.prototype.onKeyUp=RW.prototype.onKeyUp;RW.prototype.onTap=RW.prototype.onTap;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],RW.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],RW.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],RW.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],RW.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],RW.prototype,"fullHeight",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],RW.prototype,"tapCommand",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],RW.prototype,"simpleboxPlaceholder",null);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],RW.prototype,"hasSimpleboxPlaceholder",null);
_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],RW.prototype,"simpleboxAvatar",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],RW.prototype,"teaserContent",null);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],RW.prototype,"hasTeaserContent",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],RW.prototype,"teaserAvatar",null);
_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],RW.prototype,"hasTeaserAvatar",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],RW.prototype,"messageText",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],RW.prototype,"contentRenderer",null);_.m([_.W("data"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],RW.prototype,"hasContents",null);
_.m([_.W("data"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],RW.prototype,"hasContentRenderer",null);_.m([_.ob("click"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],RW.prototype,"onTap",null);_.m([_.ob("keypress"),_.L("design:type",Function),_.L("design:paramtypes",[_.Df]),_.L("design:returntype")],RW.prototype,"onKeyUp",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],RW);
_.I(RW,"ytd-comments-entry-point-header-renderer",function(){if(wBm!==void 0)return wBm;var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return wBm=g},{mode:1});var MjF;_.Y("web_enable_sink_animated_rolling_character_and_number")?_.BK(_.c7A,"yt-animated-rolling-number",{props:{numberText:_.cP,numberValue:_.cP,heightPx:_.cP,fontSizeMultiplier:_.cP,shouldAnimate:_.cP,forceRollUp:_.cP}}):_.lW(_.RSX,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var qf6=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),ugz={numberText:"",heightPx:2*qf6,shouldAnimate:!1},n_=function(){var g=_.a.apply(this,arguments)||this;g.usingAnimatedComponents=!0;g.wasDetailed=!1;g.JSC$20445_browserSupportsAnimation=_.Y("web_supports_animations_api");g.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};g.detailed=!1;g.shouldAnimate=!1;g.viewCountProps=ugz;g.dateTextProps=
ugz;g.metadataBadgesInDescription=_.Y("web_metadata_badges_in_description");return g};
_.f(n_,_.a);_.S=n_.prototype;_.S.resetAnimationState=function(){this.shouldAnimate=!1};
_.S.updateDynamicMetadata=function(){if(this.JSC$20445_browserSupportsAnimation){if(!this.detailed){var g,r,E,B;var w=(g=this.videoPrimaryInfoRenderer)==null?void 0:(r=g.viewCount)==null?void 0:(E=r.videoViewCountRenderer)==null?void 0:(B=E.extraShortViewCount)==null?void 0:B.simpleText;var O,M,u,l;var Q=(O=this.videoPrimaryInfoRenderer)==null?void 0:(M=O.viewCount)==null?void 0:(u=M.videoViewCountRenderer)==null?void 0:(l=u.shortViewCount)==null?void 0:l.simpleText}if(!Q){var z,k,H,R;w=(z=this.videoPrimaryInfoRenderer)==
null?void 0:(k=z.viewCount)==null?void 0:(H=k.videoViewCountRenderer)==null?void 0:(R=H.unlabeledViewCountValue)==null?void 0:R.simpleText;var A,J,e,C;Q=(A=this.videoPrimaryInfoRenderer)==null?void 0:(J=A.viewCount)==null?void 0:(e=J.videoViewCountRenderer)==null?void 0:(C=e.viewCount)==null?void 0:C.simpleText}var X,Z,c;g=Number((X=this.videoPrimaryInfoRenderer)==null?void 0:(Z=X.viewCount)==null?void 0:(c=Z.videoViewCountRenderer)==null?void 0:c.originalViewCount);var h,y;X=(h=this.videoPrimaryInfoRenderer)==
null?void 0:(y=h.relativeDateText)==null?void 0:y.simpleText;var OD;h=!((OD=this.videoPrimaryInfoRenderer)==null||!OD.relativeDateText);if(w&&Q&&g&&(X||!h)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;OD=Q.split(new RegExp("("+w+")"));w=gGg(OD[0]);var uB;Q={numberText:(uB=OD[1])!=null?uB:"",numberValue:g,heightPx:2*qf6,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var zS;uB=((zS=OD[2])!=null?zS:"")+"  ";this.setViewCount(Q,w,gGg(uB));
if(!this.detailed&&h){w=X.split(/(\d+)/);zS=gGg(w[0]);var jV;uB={numberText:(jV=w[1])!=null?jV:"",heightPx:2*qf6,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var PJ;jV=((PJ=w[2])!=null?PJ:"")+"  ";this.setDateText(uB,zS,gGg(jV))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.S.setViewCount=function(g,r,E){_.Vp(r)!==_.Vp(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=r);this.viewCountProps.numberText!==(g==null?void 0:g.numberText)&&(this.viewCountProps=g||ugz);_.Vp(E)!==_.Vp(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=E)};
_.S.setDateText=function(g,r,E){_.Vp(r)!==_.Vp(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=r);this.dateTextProps.numberText!==(g==null?void 0:g.numberText)&&(this.dateTextProps=g||ugz);_.Vp(E)!==_.Vp(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=E)};
_.S.onYtUpdateViewershipAction=function(g){this.videoPrimaryInfoRenderer&&(_.n(g,BwA).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.n(g,BwA).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.n(g,BwA).viewCount)))};
_.S.onYtUpdateDateTextAction=function(g){if(this.videoPrimaryInfoRenderer){g=_.n(g,_.rS$).dateText;this.shouldAnimate=!0;var r;((r=this.videoPrimaryInfoRenderer)==null?0:r.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",g):this.set("videoPrimaryInfoRenderer.dateText",g)}};
_.hx.Object.defineProperties(n_.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return TfA(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.Vp(TfA(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Vp(this.viewCountPreNumberText),this.viewCountProps.numberText,_.Vp(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Vp(this.dateTextPreNumberText),this.dateTextProps.numberText,_.Vp(this.dateTextPostNumberText)].join("")}}});
n_.prototype.updateDynamicMetadata=n_.prototype.updateDynamicMetadata;n_.prototype.resetAnimationState=n_.prototype.resetAnimationState;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],n_.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],n_.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],n_.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],n_.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],n_.prototype,"videoPrimaryInfoRenderer",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],n_.prototype,"detailed",void 0);_.m([_.K(),_.L("design:type",Object)],n_.prototype,"shouldAnimate",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],n_.prototype,"viewCountPreNumberText",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],n_.prototype,"viewCountProps",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],n_.prototype,"viewCountPostNumberText",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],n_.prototype,"dateTextPreNumberText",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],n_.prototype,"dateTextProps",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],n_.prototype,"dateTextPostNumberText",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],n_.prototype,"metadataBadgesInDescription",void 0);_.m([_.W("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.L("design:type",Object),_.L("design:paramtypes",[])],n_.prototype,"infoText",null);
_.m([_.W("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.L("design:type",String),_.L("design:paramtypes",[])],n_.prototype,"descriptionInfoTooltipText",null);_.m([_.W("detailed"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],n_.prototype,"showDescriptionInfoTooltip",null);
_.m([_.W("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.L("design:type",String),_.L("design:paramtypes",[])],n_.prototype,"animatedViewCountAccessibilityLabel",null);_.m([_.W("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.L("design:type",String),_.L("design:paramtypes",[])],n_.prototype,"animatedDateTextAccessibilityLabel",null);
_.m([_.Gb("videoPrimaryInfoRenderer"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],n_.prototype,"resetAnimationState",null);_.m([_.Gb("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],n_.prototype,"updateDynamicMetadata",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-watch-info-text"})],n_);
_.I(n_,"ytd-watch-info-text",function(){if(MjF!==void 0)return MjF;var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return MjF=g},{mode:1});var l_F;var D$g=_.dG(function(g){var r=g.data;var E=g.setTapCommand;_.bQ(function(){var B=_.xP(r().onTap);E(B)},"X4onJd");
return _.G("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.G(_.Af,{data:function(){return r().avatar}},{avatarViewModel:_.sV}),_.G("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.G("span",null,function(){return r().simpleboxText})))},"vj");var oS$=_.dG(function(g){return _.G("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.G(_.p,{cond:function(){return _.n(g.data().avatar,_.a$)},
then:function(r){return _.G(_.sV,{data:r,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.G("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.G(_.hf,{text:function(){return g.data().teaserText}})))},"wj");var Gfv=_.dG(function(g){var r=g.data;var E=g.setTapCommand;_.bQ(function(){var B=_.xP(r().onTap);E(B)},"PmAol");
return _.G("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.G(_.Af,{data:function(){return r().teasers}},{commentsEntryPointTeaserViewModel:oS$}))},"xj");var QKm=_.dG(function(g){var r=g.data;var E=g.setTapCommand;_.bQ(function(){var B=_.xP(r().onTap);E(B)},"Nh3Hjd");
return _.G("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.G(_.hf,{text:function(){return r().messageText}}))},"yj");var zdv=_.dG(function(g){var r=g.data;var E=g.setTapCommand;var B=g.isDisabled;_.bQ(function(){var w=(B==null?0:B())?void 0:_.xP(r().onTap);E(w)},"omeiWe");
return _.G("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.G(_.nh,{icon:function(){return r().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.G(_.p,{cond:function(){return r().image},
then:function(w){return _.G(_.vw,{data:w,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.G(_.hf,{text:function(){return r().text},
className:function(){return r().image||r().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.G(_.Af,{data:function(){return r().button}},{buttonViewModel:function(w){return _.G(_.MV,{data:w.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:B==null?void 0:B()}}})}}))},"zj");var kfM=_.dG(function(g){var r=g.data;var E=g.itemIndex;var B=g.selectedIndex;var w=g.indexUpdatedCallback;var O=g.observer;g=g.title;var M=_.VI("yt-carousel-item-view-model",function(k){_.Y("web_metadata_carousel_elref_bugfix")&&O&&O().observe(k)}),u=function(k){E()===B()&&w(k)},l=_.Ch(Pt6),Q=_.Ch(tFm),z=function(){var k,H,R;
return((k=r())==null?void 0:k.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!l()||((H=r())==null?void 0:H.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&Q().includes("PAposts_by_host")||((R=r())==null?void 0:R.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&Q().includes("PAyouchat")};
_.Jk(function(){_.Y("web_metadata_carousel_elref_bugfix")||O&&O().observe(M.value)});
return _.G("yt-carousel-item-view-model",{el:M,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":g},_.G(_.Af,{data:function(){var k,H;return(H=(k=_.n(r().carouselItem,fTD))==null?void 0:k.textCarousel)!=null?H:r().carouselItem}},{textCarouselItemViewModel:function(k){return _.G(zdv,{data:k.data,
setTapCommand:u,isDisabled:z})},
commentTeaserCarouselItemViewModel:function(k){return _.G(Gfv,{data:k.data,setTapCommand:u})},
commentInputBoxCarouselItemViewModel:function(k){return _.G(D$g,{data:k.data,setTapCommand:u})},
commentsEntryPointMessageViewModel:function(k){return _.G(QKm,{data:k.data,setTapCommand:u})}}))},"Aj");var HSA=_.dG(function(g){var r=g.numDots;var E=g.activeIndex;return _.G("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.G(_.Ra,{each:function(){return Array.from({length:r()})},
keyBy:"INDEX"},function(B,w){return _.G("div",{class:function(){var O={};return _.zw("ytCarouselDotsShapeDot",(O.ytCarouselDotsShapeDotActive=w===E(),O))}})}))},"Bj");var pBm=_.dG(function(g){var r=g.data;var E=g.handleCarouselNavigation;var B=g.numItems;var w=g.selectedIndex;var O=function(){return{disabled:w()===0}},M=function(){return{disabled:w()===B()-1}};
return _.G("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.G("div",null,_.G("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return r().title}),_.G(_.p,{cond:function(){return r().subtitle},
then:function(u){return _.G("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return r().subtitleAccessibilityText}},u)}})),_.G(_.p,{cond:function(){return B()>1},
then:function(){return _.G("div",{class:"ytCarouselTitleViewModelNavigation"},_.G(HSA,{numDots:B,activeIndex:w}),_.G(_.p,{cond:function(){return r().previousButton},
then:function(u){return _.G(_.Af,{data:u},{buttonViewModel:function(l){return _.G(_.MV,{data:l.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return E(-1)},
buttonOverrides:O})}})}}),_.G(_.p,{cond:function(){return r().nextButton},
then:function(u){return _.G(_.Af,{data:u},{buttonViewModel:function(l){return _.G(_.MV,{data:l.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return E(1)},
buttonOverrides:M})}})}}))}}))},"Cj");_.BK(_.dG(function(g){var r=g.data;var E,B=_.VI("yt-video-metadata-carousel-view-model"),w=_.VI("div",function(h){if(_.Y("web_metadata_carousel_elref_bugfix")){var y=function(){var OD=h.offsetWidth*J(),uB=24*(J()-1);H(OD+uB)};
y();window.ResizeObserver&&(E=new ResizeObserver(y),E.observe(h))}}),O=_.Ca("HTML_DIR")==="rtl",M=!1,u=0,l=0;
g=_.U(_.Dk(0,void 0,"f4aYxe"));var Q=g.next().value,z=g.next().value;g=_.U(_.Dk(0,void 0,"kU9O9"));var k=g.next().value,H=g.next().value;g=_.U(_.Dk(!1,void 0,"GqphDd"));var R=g.next().value,A=g.next().value,J=function(){var h,y,OD;return(OD=(h=r())==null?void 0:(y=h.carouselTitles)==null?void 0:y.length)!=null?OD:0},e=function(){w.value&&w.value.scrollLeft!==u&&z((O?w.value.scrollLeft<u:w.value.scrollLeft>u)?Math.min(Q()+1,J()-1):Math.max(Q()-1,0))},C;
window.IntersectionObserver&&(C=new IntersectionObserver(function(h){h=_.U(h);for(var y=h.next();!y.done;y=h.next())if(y.value.isIntersecting){if(M){M=!1;break}e()}else z(l)},{threshold:.2}));
_.bQ(function(){if(w.value){var h=(O?-1:1)*(k()/J()+12)*(R()&&C?l:Q());typeof w.value.scrollTo==="function"?w.value.scrollTo({left:h,behavior:"smooth"}):w.value.scrollLeft=h;u=h;l=R()&&C?l:Q()}},"ZP1VMb");
var X,Z=function(h){X=h};
_.Jk(function(){if(!_.Y("web_metadata_carousel_elref_bugfix")){var h=function(){var OD=w.value.offsetWidth*J(),uB=24*(J()-1);H(OD+uB)};
h();if(window.ResizeObserver){var y=new ResizeObserver(h);y.observe(w.value);_.J5(function(){y.disconnect();C&&C.disconnect()})}}});
_.J5(function(){if(_.Y("web_metadata_carousel_elref_bugfix")){var h;(h=E)==null||h.disconnect();var y;(y=C)==null||y.disconnect()}});
var c=function(h){h=Q()+h;h>=0&&h<J()&&(M=!0,z(h))};
return _.G("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:B,"on:click":_.HK(function(h){if(_.WX(_.eT(h),B.value,["BUTTON".toString()])||!X)return!1;_.rM().resolve(_.Er).resolveCommand(X,{forceClickLogging:!0});return!1}),
"on:touchstart":_.HK(function(){A(!0);return!1}),
"on:touchend":_.HK(function(){C||e();A(!1);return!1}),
hidden:function(){var h,y;return!((h=r())==null?0:(y=h.carouselItems)==null?0:y.length)}},_.G("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.G(_.p,{cond:function(){return r().carouselTitles},
then:function(h){return _.G(_.Af,{data:function(){return h()[R()&&C?l:Q()]}},{carouselTitleViewModel:function(y){return _.G(pBm,{data:y.data,
handleCarouselNavigation:c,numItems:J,selectedIndex:Q})}})}})),_.G("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:w},_.G("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+k()+"px;"}},_.G(_.p,{cond:function(){return r().carouselItems},
then:function(h){return _.G(_.Ra,{each:h},function(y,OD){return _.G(_.Af,{data:function(){return y}},{carouselItemViewModel:function(uB){return _.G(kfM,{data:uB.data,
itemIndex:OD,selectedIndex:Q,indexUpdatedCallback:Z,observer:C,title:function(){a:{var zS=OD();var jV,PJ=(jV=r())==null?void 0:jV.carouselTitles;if(PJ&&(zS=PJ[zS])){var At;zS=(At=_.n(zS,sG8))==null?void 0:At.title;break a}zS=void 0}return zS}})}})})}}))))},"Dj"),"yt-video-metadata-carousel-view-model",{props:{data:_.cP}});var Yf8=_.Y("web_action_buttons_update_owner_width")?32:12,so=function(){var g=_.a.apply(this,arguments)||this;g.metadataBadgesInDescription=_.Y("web_metadata_badges_in_description");g.descriptionCollapsed=!0;g.useFadedScrimDescription=_.Y("kevlar_enable_faded_scrim_on_description");g.skinnyMode=!1;g.playlist=!1;g.isDark=document.documentElement.hasAttribute("dark");g.disableVideoOwnerOnTap=_.Y("swatchie_video_owner_on_tap_ks");g.swatcherooDelayLoad=_.Y("swatcheroo_enable_ghost_cards");g.primaryMenuWidth=
0;g.videoId="";g.titleHeadlineXs=_.Y("web_watch_typography_title_headline_xs");g.titleHeadlineS=_.Y("web_watch_typography_title_headline_s");g.titleHeadlineM=_.Y("web_watch_typography_title_headline_m");g.titleHashtagBlackLinkified=_.Y("web_title_hashtag_black_linkified");g.titleHashtagGreyLinkified=_.Y("web_title_hashtag_grey_linkified");g.actionButtonsUpdateOwnerWidth=_.Y("web_action_buttons_update_owner_width");g.shouldForceIconOnly=!1;g.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};g.isFullscreen=!1;g.isTheaterMode=!1;return g};
_.f(so,_.a);_.S=so.prototype;_.S.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.S.updateOwnerAndDescriptionPosition=function(){_.Y("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.WZ(this.bottomRowElement,this.ownerElement)):(_.WZ(this.bottomRowElement,this.descriptionElement),_.WZ(this.topRowElement,this.ownerElement)))};
_.S.titleOnTap=function(g){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.Zy(_.Z1(g)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var r;((r=window.getSelection())==null?0:r.toString().length)||this.handleExpandDescriptionCommands()}};
_.S.videoOwnerOnTap=function(g){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.Zy(_.Z1(g)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.S.detached=function(){var g=this,r;return _.q(function(E){(r=g.resizeObserver)==null||r.disconnect();_.Q3(E)})};
_.S.maybeAttachResizeObserver=function(){var g=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.VU(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){g.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.S.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var g=this.hostElement.clientWidth,r=Math.max(this.largerItemWrap?400:350,g/2-Yf8);if(_.Y("web_action_buttons_update_owner_width")){var E;r=(((E=document.getElementById("owner"))==null?void 0:E.clientWidth)||0)+Yf8}this.actionsOnSeparateLine=this.primaryMenuWidth>g-r?!0:!1}};
_.S.stripAttributedDescription=function(g){return{content:g.content.replace(/[\r\n]{2,}/g,"\n")}};
_.S.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.Y("web_modern_buttons"),forceIconButton:!_.Y("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:_.Y("web_action_buttons_minimize_subscribe")},properties:{forceIconOnly:"[[shouldForceIconOnly]]"}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},commentsEntryPointHeaderRenderer:{id:"comment-teaser",mapping:{commentsEntryPointHeaderRenderer:"ytd-comments-entry-point-header-renderer"}},videoMetadataCarousel:{id:"teaser-carousel",mapping:{videoMetadataCarouselViewModel:"yt-video-metadata-carousel-view-model"}},
infoPanelBelowMetadata:{id:"middle-row",mapping:{infoPanelContentRenderer:"ytd-info-panel-content-renderer"}}}};
_.S.videoPrimaryInfoRendererChanged=function(){var g;if((g=this.videoPrimaryInfoRenderer)==null?0:g.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.S.videoSecondaryInfoRendererChanged=function(){var g,r;(r=(g=this.descriptionInlineExpander).collapse)==null||r.call(g);this.descriptionExpandClientVe=_.bW(110509);this.descriptionCollapseClientVe=_.bW(110510);g=_.PE();r=_.JF();g&&r&&(_.Y("combine_ve_grafts")?(_.Sp(_.pW(),this.descriptionExpandClientVe,r),_.Sp(_.pW(),this.descriptionCollapseClientVe,r)):_.I6(g,r,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.S.structuredDescriptionContentRendererChanged=function(){_.Y("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.S.updateTopLevelIconsOnly=function(){var g=this;_.Y("top_level_update_killswitch")||this.menu&&_.F6.addLowPriorityJob(function(){g.menu.topLevelIconsOnly=g.skinnyMode},_.wM("swathceroo_delay_flexible_menu_update",100))};
_.S.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.Y("web_action_buttons_minimize_subscribe")};
_.S.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.S.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.S.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.S.onYtTextInlineExpanderExpandedChanged=function(){if(!_.Y("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var g,r;(r=(g=this.structuredDescriptionContentRendererElement).resize)==null||r.call(g)}};
_.S.onRenderStamperFinished=function(g){(g==null?void 0:g.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.S.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.S.onYtExpanderLessTapped=function(){var g,r=(g=this.videoSecondaryInfoRenderer)==null?void 0:g.showLessCommand;r&&this.ytComponentBehavior.resolveCommand(r)};
_.S.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.S.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.S.onDescriptionClick=function(g){if(!_.Zy(_.Z1(g)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var r;((r=window.getSelection())==null?0:r.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.Y("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.S.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.S.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.S.logCollapseClick=function(){var g=_.PE();g&&this.descriptionCollapseClientVe&&_.Lu(g,this.descriptionCollapseClientVe)};
_.S.logExpandClick=function(){var g=_.PE();g&&this.descriptionExpandClientVe&&_.Lu(g,this.descriptionExpandClientVe)};
_.S.collapseDescription=function(){this.descriptionCollapsed=!0};
_.S.scrollToTopOfContainer=function(){_.OS(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.S.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.S.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.S.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.S.resize=function(){if(this.descriptionInlineExpander){var g,r;(r=(g=this.descriptionInlineExpander).resize)==null||r.call(g)}else _.el(new _.Rj("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var E;(E=this.menu)==null||E.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.Y("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.S.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var g,r,E,B,w=_.Y("web_action_buttons_update_owner_width")?(E=(g=_.S3(this.menu).querySelector("#button-shape"))==null?void 0:g.clientWidth)!=null?E:0:(B=(r=_.S3(this.menu).querySelector("#button"))==null?void 0:r.clientWidth)!=null?B:0,O,M;g=((M=(O=_.S3(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:O.clientWidth)!=null?M:0)+8+w;var u,l;w=(l=(u=_.S3(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:u.children.length)!=null?l:2;g<=8*w||(this.primaryMenuWidth=g)}};
_.S.onYtUpdateTitleAction=function(g){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.n(g,Ez8).title)};
_.S.onYtUpdateDescriptionAction=function(g){if(g=_.n(g,_.Skw)){var r,E=!((r=this.videoSecondaryInfoRenderer)==null||!r.attributedDescription);g.isEmpty||!g.description&&!g.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):g.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",g.attributedDescription):g.description&&(E?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.e_(g.description)):this.set("videoSecondaryInfoRenderer.description",g.description))}};
_.S.onYtDarkModeToggledAction=function(g){this.isDark=g};
_.S.registerPanel=function(){if(!_.Y("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var g=_.Y("web_watch_imax_theater_mode")&&this.isTheaterMode;g=_.Y("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||g;var r=_.rM().resolve(_.kn);r&&!g&&r.registerPanel("engagement-panel-structured-description",this)}};
_.S.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.S.showPanel=function(g){this.expandDescription();var r=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;r.resize();var E,B=g==null?void 0:(E=g.sectionListEngagementPanelExtras)==null?void 0:E.scrollToItemSectionIdentifier;B?_.F6.addJob(function(){r==null||r.scrollToSection(B)},8):this.scrollToTopOfContainer()};
_.S.isVisible=function(){return!this.descriptionCollapsed};
_.S.getReloadContinuation=function(){};
_.S.hidePanel=function(){};
_.S.updatePanel=function(){};
_.hx.Object.defineProperties(so.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.structuredDescriptionContentRenderer)!=null&&g.items){var r;g=_.U((r=this.structuredDescriptionContentRenderer)==null?void 0:r.items);for(r=g.next();!r.done;r=g.next())if(r=_.n(r.value,_.E7m))return r}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.videoPrimaryInfoRenderer)==null?0:g.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return!!((g=this.videoSecondaryInfoRenderer)==null?0:(r=g.owner)==null?0:(E=r.videoOwnerRenderer)==null?0:E.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.Y("swatchie_sd_new_line_strip_ks")){var g,r;if((g=this.videoSecondaryInfoRenderer)==null?0:(r=g.attributedDescription)==null?0:r.content){var E,B;return(B=this.stripAttributedDescription((E=this.videoSecondaryInfoRenderer)==null?void 0:E.attributedDescription))!=null?B:{runs:[]}}}var w,O,M,u;return(u=(M=(w=this.videoSecondaryInfoRenderer)==null?void 0:w.description)!=null?M:(O=this.videoSecondaryInfoRenderer)==null?
void 0:O.attributedDescription)!=null?u:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var g,r;return(r=(g=this.videoSecondaryInfoRenderer)==null?void 0:g.headerRuns)!=null?r:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.commentsEntryPointHeaderRenderer)==null||!g.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.videoMetadataCarousel)==null||!g.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.wM("swatchie_desc_lines",3):this.hasTeaserCarousel?_.wM("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var g,r,E=Object.assign({},(g=this.videoSecondaryInfoRenderer)==null?void 0:(r=g.metadataRowContainer)==null?void 0:r.metadataRowContainerRenderer);if(E&&E.rows&&E.collapsedItemCount!==void 0&&!(E.rows.length<=E.collapsedItemCount))return E.rows=E.rows.slice(E.collapsedItemCount),E.collapsedItemCount=0,E}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var g,r,E=Object.assign({},(g=this.videoSecondaryInfoRenderer)==null?void 0:(r=g.metadataRowContainer)==null?void 0:r.metadataRowContainerRenderer);if(E&&E.rows&&E.collapsedItemCount!==void 0)return E.rows=E.rows.slice(0,E.collapsedItemCount),E.collapsedItemCount=E.rows.length,E}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var g,r;return!!((g=this.structuredDescriptionContentRenderer)==null?0:(r=g.items)==null?0:r.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRenderer)return null;var g;return(g=this.videoSecondaryInfoRenderer)==null?void 0:g.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return((g=this.videoSecondaryInfoRenderer)==null?0:(r=g.owner)==null?0:(E=r.videoOwnerRenderer)==null?0:E.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var g,r,E,B;return!!((g=this.videoPrimaryInfoRenderer)==null?0:(r=g.videoActions)==null?0:(E=r.menuRenderer)==null?0:(B=E.flexibleItems)==null?0:B.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.hM(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.hM(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var g=this;if(_.Y("web_title_hashtag_grey_delinkified")){var r,E=_.jn.unsafeClone((r=this.videoPrimaryInfoRenderer)==null?void 0:r.title);(r=E==null?void 0:E.runs)&&r.forEach(function(B){if(B==null?0:B.navigationEndpoint)B.textColor=4284506208,g.isDark&&(B.textColor=4289374890)});
return E}return(E=this.videoPrimaryInfoRenderer)==null?void 0:E.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.Y("web_title_hashtag_black_delinkified")||_.Y("web_title_hashtag_grey_delinkified")}}});
so.prototype.resetDescriptionState=so.prototype.resetDescriptionState;so.prototype.registerPanel=so.prototype.registerPanel;so.prototype.onYtExpanderLessTapped=so.prototype.onYtExpanderLessTapped;so.prototype.onYtExpanderMoreTapped=so.prototype.onYtExpanderMoreTapped;so.prototype.onRenderStamperFinished=so.prototype.onRenderStamperFinished;so.prototype.onYtTextInlineExpanderExpandedChanged=so.prototype.onYtTextInlineExpanderExpandedChanged;so.prototype.onYtTextInlineExpanderCollapseClicked=so.prototype.onYtTextInlineExpanderCollapseClicked;
so.prototype.onYtTextInlineExpanderExpandClicked=so.prototype.onYtTextInlineExpanderExpandClicked;so.prototype.moveActionsElement=so.prototype.moveActionsElement;so.prototype.updateShouldForceIconOnly=so.prototype.updateShouldForceIconOnly;so.prototype.updateTopLevelIconsOnly=so.prototype.updateTopLevelIconsOnly;so.prototype.structuredDescriptionContentRendererChanged=so.prototype.structuredDescriptionContentRendererChanged;so.prototype.videoSecondaryInfoRendererChanged=so.prototype.videoSecondaryInfoRendererChanged;
so.prototype.videoPrimaryInfoRendererChanged=so.prototype.videoPrimaryInfoRendererChanged;so.prototype.maybeUpdateActionsOnSeparateLine=so.prototype.maybeUpdateActionsOnSeparateLine;so.prototype.updateOwnerAndDescriptionPosition=so.prototype.updateOwnerAndDescriptionPosition;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],so.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],so.prototype,"ytComponentBehavior",void 0);
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],so.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],so.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],so.prototype,"ytdReduxBehavior",void 0);_.m([_.zb("#above-the-fold"),_.L("design:type",HTMLElement)],so.prototype,"aboveTheFoldContainer",void 0);_.m([_.zb("#menu ytd-menu-renderer"),_.L("design:type",Object)],so.prototype,"menu",void 0);
_.m([_.zb("#description-inline-expander"),_.L("design:type",Object)],so.prototype,"descriptionInlineExpander",void 0);_.m([_.zb("#faded-structured-description"),_.L("design:type",Object)],so.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.m([_.zb("#structured-description"),_.L("design:type",Object)],so.prototype,"structuredDescriptionContentRendererElement",void 0);_.m([_.zb("#title"),_.L("design:type",HTMLElement)],so.prototype,"titleElement",void 0);
_.m([_.zb("#description"),_.L("design:type",HTMLElement)],so.prototype,"descriptionElement",void 0);_.m([_.zb("#description-interaction"),_.L("design:type",Object)],so.prototype,"descriptionInteraction",void 0);_.m([_.zb("#owner"),_.L("design:type",HTMLElement)],so.prototype,"ownerElement",void 0);_.m([_.zb("#top-row"),_.L("design:type",HTMLElement)],so.prototype,"topRowElement",void 0);_.m([_.zb("#bottom-row"),_.L("design:type",HTMLElement)],so.prototype,"bottomRowElement",void 0);
_.m([_.zb("#actions"),_.L("design:type",HTMLElement)],so.prototype,"actionsElement",void 0);_.m([_.zb("#bottom-actions"),_.L("design:type",HTMLElement)],so.prototype,"bottomActionsElement",void 0);_.m([_.zb("#ytd-watch-info-text"),_.L("design:type",Object)],so.prototype,"watchInfoTextElement",void 0);_.m([_.K(),_.L("design:type",Object)],so.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],so.prototype,"videoPrimaryInfoRenderer",void 0);
_.m([_.K(),_.L("design:type",Object)],so.prototype,"videoSecondaryInfoRenderer",void 0);_.m([_.K(),_.L("design:type",Object)],so.prototype,"commentsEntryPointHeaderRenderer",void 0);_.m([_.K(),_.L("design:type",Object)],so.prototype,"videoMetadataCarousel",void 0);_.m([_.K(),_.L("design:type",Object)],so.prototype,"structuredDescriptionContentRenderer",void 0);_.m([_.K(),_.L("design:type",Object)],so.prototype,"videoSummary",void 0);
_.m([_.K(),_.L("design:type",Object)],so.prototype,"merchShelf",void 0);_.m([_.K(),_.L("design:type",Object)],so.prototype,"infoPanelBelowMetadata",void 0);_.m([_.W("structuredDescriptionContentRenderer"),_.L("design:type",Object),_.L("design:paramtypes",[])],so.prototype,"productShelf",null);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],so.prototype,"metadataBadgesInDescription",void 0);
_.m([_.W("videoPrimaryInfoRenderer"),_.L("design:type",Object),_.L("design:paramtypes",[])],so.prototype,"shouldHideBadges",null);_.m([_.W("productShelf","descriptionCollapsed"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],so.prototype,"shouldShowProductShelf",null);_.m([_.K(),_.L("design:type",Boolean)],so.prototype,"isWatchFlexy",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],so.prototype,"descriptionCollapsed",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],so.prototype,"useFadedScrimDescription",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],so.prototype,"skinnyMode",void 0);_.m([_.K({reflectToAttribute:!0}),_.W("videoSecondaryInfoRenderer"),_.L("design:type",Object),_.L("design:paramtypes",[])],so.prototype,"largerItemWrap",null);_.m([_.K(),_.L("design:type",Object)],so.prototype,"playlist",void 0);_.m([_.K(),_.L("design:type",Object)],so.prototype,"clarifyBox",void 0);
_.m([_.K(),_.L("design:type",Object)],so.prototype,"playerAds",void 0);_.m([_.K(),_.L("design:type",Boolean)],so.prototype,"isDark",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],so.prototype,"actionsOnSeparateLine",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],so.prototype,"disableVideoOwnerOnTap",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],so.prototype,"swatcherooDelayLoad",void 0);
_.m([_.K(),_.L("design:type",Boolean)],so.prototype,"suppressTopLevelMetadataRows",void 0);_.m([_.K(),_.L("design:type",Object)],so.prototype,"primaryMenuWidth",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],so.prototype,"videoId",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],so.prototype,"titleHeadlineXs",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],so.prototype,"titleHeadlineS",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],so.prototype,"titleHeadlineM",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],so.prototype,"titleHashtagBlackLinkified",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],so.prototype,"titleHashtagGreyLinkified",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],so.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.m([_.K(),_.L("design:type",Object)],so.prototype,"shouldForceIconOnly",void 0);_.m([_.Yk("skinnyMode"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],so.prototype,"updateOwnerAndDescriptionPosition",null);_.m([_.Yk("skinnyMode"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],so.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.m([_.W("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.L("design:type",Object),_.L("design:paramtypes",[])],so.prototype,"descriptionText",null);_.m([_.W("videoSecondaryInfoRenderer.headerRuns"),_.L("design:type",Array),_.L("design:paramtypes",[])],so.prototype,"headerRuns",null);_.m([_.K({value:!1}),_.W("commentsEntryPointHeaderRenderer"),_.L("design:type",Object),_.L("design:paramtypes",[])],so.prototype,"hasTeaser",null);
_.m([_.K({value:!1,reflectToAttribute:!0}),_.W("videoMetadataCarousel"),_.L("design:type",Object),_.L("design:paramtypes",[])],so.prototype,"hasTeaserCarousel",null);_.m([_.K({value:3}),_.W("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.L("design:type",Object),_.L("design:paramtypes",[])],so.prototype,"descriptionMaxLines",null);_.m([_.W("videoSecondaryInfoRenderer.metadataRowContainer"),_.L("design:type",Object),_.L("design:paramtypes",[])],so.prototype,"collapsibleMetadataRows",null);
_.m([_.W("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.L("design:type",Object),_.L("design:paramtypes",[])],so.prototype,"alwaysVisibleMetadataRows",null);_.m([_.W("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],so.prototype,"hasInlineStructuredDescription",null);
_.m([_.W("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],so.prototype,"showInlineStructuredDescription",null);_.m([_.W("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.L("design:type",Object),_.L("design:paramtypes",[])],so.prototype,"descriptionExpandCommand",null);
_.m([_.W("videoSecondaryInfoRenderer.owner"),_.L("design:type",Object),_.L("design:paramtypes",[])],so.prototype,"videoOwnerCommand",null);_.m([_.K({reflectToAttribute:!0}),_.W("videoPrimaryInfoRenderer.videoActions"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],so.prototype,"flexMenuEnabled",null);_.m([_.K({selector:_.PX,reflectToAttribute:!0}),_.L("design:type",Object)],so.prototype,"isFullscreen",void 0);
_.m([_.K({selector:_.Jf,reflectToAttribute:!0}),_.L("design:type",Object)],so.prototype,"isTheaterMode",void 0);_.m([_.W("descriptionText","useFadedScrimDescription"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],so.prototype,"showAttributedStringDescription",null);_.m([_.W("descriptionText","useFadedScrimDescription"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],so.prototype,"showFormattedStringDescription",null);
_.m([_.W("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],so.prototype,"showFadedStructuredDescription",null);_.m([_.Yk("videoPrimaryInfoRenderer"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],so.prototype,"videoPrimaryInfoRendererChanged",null);_.m([_.W("videoPrimaryInfoRenderer.title"),_.L("design:type",Object),_.L("design:paramtypes",[])],so.prototype,"videoTitle",null);
_.m([_.W("videoPrimaryInfoRenderer"),_.L("design:type",Object),_.L("design:paramtypes",[])],so.prototype,"noEndpoints",null);_.m([_.Yk("videoSecondaryInfoRenderer"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],so.prototype,"videoSecondaryInfoRendererChanged",null);
_.m([_.Gb("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],so.prototype,"structuredDescriptionContentRendererChanged",null);_.m([_.Gb("skinnyMode"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],so.prototype,"updateTopLevelIconsOnly",null);
_.m([_.Gb("skinnyMode"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],so.prototype,"updateShouldForceIconOnly",null);_.m([_.Gb("skinnyMode"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],so.prototype,"moveActionsElement",null);_.m([_.ob("yt-text-inline-expander-expand-clicked"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],so.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.m([_.ob("yt-text-inline-expander-collapse-clicked"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],so.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.m([_.ob("yt-text-inline-expander-expanded-changed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],so.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.m([_.ob("yt-rendererstamper-finished"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],so.prototype,"onRenderStamperFinished",null);_.m([_.ob("yt-expander-more-tapped"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],so.prototype,"onYtExpanderMoreTapped",null);_.m([_.ob("yt-expander-less-tapped"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],so.prototype,"onYtExpanderLessTapped",null);
_.m([_.Gb("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],so.prototype,"registerPanel",null);_.m([_.Gb("videoSecondaryInfoRenderer"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],so.prototype,"resetDescriptionState",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-watch-metadata"})],so);
_.I(so,"ytd-watch-metadata",function(){if(l_F!==void 0)return l_F;var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRenderer]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return l_F=g},{mode:2});_.bS6=function(g){_.f5.call(this);this.JSC$20467_watchApi=g;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;RdL(this);nSg(this);sK8(this);f_m(this);$$t(this);jK4(this);APt(this)};
_.f(_.bS6,_.f5);var sK8=function(g){var r=function(){_.Y("kevlar_is_pupi_enabled")||f_(g)};
g.JSC$20467_watchApi.getRoot().addEventListener("yt-player-updated",r);g.addOnDisposeCallback(function(){g.JSC$20467_watchApi.getRoot().removeEventListener("yt-player-updated",r)})},$$t=function(g){if(_.Y("kevlar_endscreen_auto_theater_mode")){var r=g.JSC$20467_watchApi.subscribeToActiveChanged(function(){JPz(g)},!1);
g.addOnDisposeCallback(r)}},RdL=function(g){var r,E,B,w,O;
_.q(function(M){if(M.nextAddress==1)return _.D(M,g.JSC$20467_watchApi.playerApi,2);r=M.yieldResult;E=function(u){u=!!u;$_(g)&&(u=u?2:1,_.h9.getInstance().setState(u,!0,!1))};
B=function(u){u&&_.JdL(_.Zz().getState())&&(_.OS(g.JSC$20467_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),g.temporaryTheaterMode=!0)};
w=function(u){_.Y("kevlar_player_update_autonav_on_new_data")&&u.type==="newdata"&&(_.Y("kevlar_is_pupi_enabled")||f_(g))};
O=function(u){g.onPlayerStateChange(u)};
_.Y("kevlar_endscreen_auto_theater_mode")&&r.addEventListener("onAutonavCancelled",B);r.addEventListener("onAutonavChangeRequest",E);r.addEventListener("onVideoDataChange",w);r.addEventListener("onStateChange",O);g.addOnDisposeCallback(function(){r.removeEventListener("onAutonavChangeRequest",E);r.removeEventListener("onVideoDataChange",w);r.removeEventListener("onStateChange",O);_.Y("kevlar_endscreen_auto_theater_mode")&&r.removeEventListener("onAutonavCancelled",B)});
_.Q3(M)})},nSg=function(g){g.JSC$20467_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){g.autonavCancelledBySignal=!0;
_.Y("kevlar_is_pupi_enabled")||f_(g)});
g.JSC$20467_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(r,E,B){E&&f_(g,B)});
g.JSC$20467_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){$_(g)&&_.h9.getInstance().setState(2,!0,!0)});
g.JSC$20467_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){$_(g)&&_.h9.getInstance().setState(1,!0,!0)});
g.addOnDisposeCallback(function(){g.JSC$20467_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");g.JSC$20467_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");g.JSC$20467_watchApi.unregisterActionHandler("yt-enable-autoplay-command");g.JSC$20467_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},f_m=function(g){var r=g.JSC$20467_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){APt(g)}),E=g.JSC$20467_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){jK4(g)});
g.addOnDisposeCallback(function(){g.JSC$20467_watchApi.unsubscribeByKey(r);g.JSC$20467_watchApi.unsubscribeByKey(E)})},APt=function(g){g.autonavCancelledBySignal=!1;
_.Y("kevlar_is_pupi_enabled")||f_(g)},jK4=function(g){var r=g.JSC$20467_watchApi.getWatchNextResponse(),E,B;
var w=(r=(B=_.n(r==null?void 0:(w=r.playerOverlays)==null?void 0:(E=w.playerOverlayRenderer)==null?void 0:E.autonavToggle,_.UJz))==null?void 0:B.enabled)?2:1;_.Y("kevlar_is_pupi_enabled")?_.h9.getInstance().setState(w,!1,!1):f_(g);_.Y("web_persist_server_autonav_state_on_client")&&typeof r==="boolean"&&_.Rqc(w===2)},$_=function(g){if(g.autonavCancelledBySignal)return!1;
var r,E,B,w;return!!((r=g.JSC$20467_watchApi.getWatchNextResponse())==null?0:(E=r.contents)==null?0:(B=E.twoColumnWatchNextResults)==null?0:(w=B.autoplay)==null?0:w.autoplay)};
_.bS6.prototype.onPlayerStateChange=function(g){if(g===0){g=!_.h9.getInstance().isAutoplaySetExplicitly();var r=this.JSC$20467_watchApi.getWatchNextResponse(),E,B,w,O;r=_.n(r==null?void 0:(E=r.contents)==null?void 0:(B=E.twoColumnWatchNextResults)==null?void 0:(w=B.autoplay)==null?void 0:(O=w.autoplay)==null?void 0:O.autoplayExplicitChoiceDialogRenderer,_.biU);$_(this)&&g&&r&&_.G$.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:r},popupType:"DIALOG"}})}else JPz(this)};
var JPz=function(g){g.temporaryTheaterMode&&(g.temporaryTheaterMode=!1,_.OS(g.JSC$20467_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},f_=function(g,r){r=r===void 0?!1:r;
var E;_.q(function(B){if(B.nextAddress==1)return _.D(B,g.JSC$20467_watchApi.playerApi,2);E=B.yieldResult;$_(g)?E.setAutonavState(_.h9.getInstance().getState(),r):E.setAutonavState(1,r);_.Q3(B)})};var P34={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"};_.Fi5=function(g){_.f5.call(this);var r=this;this.JSC$20472_watchApi=g;var E=this.JSC$20472_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){tjv(r)});
this.addOnDisposeCallback(function(){r.JSC$20472_watchApi.unsubscribeByKey(E)});
tjv(this)};
_.f(_.Fi5,_.f5);var tjv=function(g){var r=g.JSC$20472_watchApi.getPlayerResponse(),E=g.JSC$20472_watchApi.getWatchNextResponse();if(!_.cSc(r==null?void 0:r.playabilityStatus,E==null?void 0:E.playerOverlays)){var B;var w=r==null?void 0:(B=r.playabilityStatus)==null?void 0:B.errorScreen}g.JSC$20472_watchApi.provideRenderingData("ERROR_SCREEN",w)};var ed6=_.dG(function(g){var r=g.data;g=_.Y("web_watch_video_details_hide_subtitle");var E=_.Y("web_watch_video_details_single_line_title"),B=_.HK(function(){var u=r().onTap;u&&_.rM().resolve(_.Er).resolveCommand(u)}),w={},O={},M={};
return _.G("yt-player-overlay-video-details-renderer",{class:_.QY("ytPlayerOverlayVideoDetailsRendererHost",(w.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.Y("web_watch_video_details_transparent_background"),w)),"on:click":B,role:"button"},_.G("h2",{class:_.QY("ytPlayerOverlayVideoDetailsRendererTitle",(O.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return E},O))},_.G(_.hf,{text:function(){return r().title}})),_.G("div",{class:_.QY("ytPlayerOverlayVideoDetailsRendererSubtitle",
(M.ytPlayerOverlayVideoDetailsRendererHideSubtitle=g,M))},_.G(_.hf,{text:function(){return r().subtitle}})))},"Ej");var ju={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},WiF=_.dG(function(g){var r=g.data;var E=_.Ch(_.PX),B=_.Y("web_watch_action_bar_resize_buttons"),w=_.Y("delhi_modern_web_player_icons")&&!_.Y("enable_web_delhi_icons"),O=function(){return B&&!E()?{size:"M"}:void 0};
g={};return _.G("yt-player-quick-action-buttons",{class:_.QY("ytPlayerQuickActionButtonsHost",(g.ytPlayerQuickActionButtonsHostTheaterMode=function(){return!E()},g))},_.G(_.Ra,{each:function(){if(w){var M=r();
M=JSON.parse(JSON.stringify(M));for(var u=_.U(M),l=u.next();!l.done;l=u.next()){var Q=l.value,z=void 0;l=_.n((z=_.n(Q,_.A9))==null?void 0:z.toggleButtonViewModel,_.sg);var k=void 0;z=_.n((k=_.n(Q,_.jf))==null?void 0:k.toggleButtonViewModel,_.sg);k=_.n(Q,_.nm);Q=_.n(Q,_.sg);if(l)z=_.n(l.defaultButtonViewModel,_.nm),l=_.n(l.toggledButtonViewModel,_.nm),z&&z.iconName&&(z.iconName=ju[z.iconName]),l&&l.iconName&&(l.iconName=ju[l.iconName]);else if(z)l=_.n(z.defaultButtonViewModel,_.nm),z=_.n(z.toggledButtonViewModel,
_.nm),l&&l.iconName&&(l.iconName=ju[l.iconName]),z&&z.iconName&&(z.iconName=ju[z.iconName]);else if(k)k.iconName&&(k.iconName=ju[k.iconName]);else if(Q){l=_.n(Q.defaultButtonViewModel,_.nm);z=_.n(Q.toggledButtonViewModel,_.nm);Q=void 0;if((Q=l)==null?0:Q.iconName)l.iconName=ju[l.iconName];l=void 0;if((l=z)==null?0:l.iconName)z.iconName=ju[z.iconName]}}}else M=r();return M}},function(M){return _.G(_.Af,{data:function(){return M}},{buttonViewModel:function(u){return _.G(_.MV,{data:u.data,
buttonOverrides:O})},
likeButtonViewModel:function(u){return _.G(_.$n,{data:u.data,buttonShapeOverrideables:O,disableIconAnimation:!0})},
dislikeButtonViewModel:function(u){return _.G(_.fj,{data:u.data,buttonShapeOverrideables:O})},
toggleButtonViewModel:function(u){return _.G(_.RY,{data:u.data,buttonShapeOverrides:O})}})}))},"Fj");_.Ki5=function(g){_.f5.call(this);var r=this;this.JSC$20477_watchApi=g;g=_.U(_.Dk({},void 0,"ufFdVc"));this.quickActionsViewModel=g.next().value;this.setQuickActionsViewModel=g.next().value;g=_.U(_.Dk({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=g.next().value;this.setPlayerOverlayVideoDetailsRenderer=g.next().value;var E=this.JSC$20477_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){C3g(r)});
this.addOnDisposeCallback(function(){r.JSC$20477_watchApi.unsubscribeByKey(E)});
C3g(this)};
_.f(_.Ki5,_.f5);
var C3g=function(g){var r,E,B,w,O,M,u,l,Q,z,k,H,R,A;_.q(function(J){if(J.nextAddress==1)return _.D(J,g.JSC$20477_watchApi.playerApi,2);r=J.yieldResult;E=g.JSC$20477_watchApi.getWatchNextResponse();O=(B=E)==null?void 0:(w=B.playerOverlays)==null?void 0:w.playerOverlayRenderer;u=_.n((M=O)==null?void 0:M.fullscreenQuickActionsBar,_.qTn);(Q=(l=g).setQuickActionsViewModel)==null||Q.call(l,u||{});u&&x$F(g,r);H=(z=O)==null?void 0:(k=z.videoDetails)==null?void 0:k.playerOverlayVideoDetailsRenderer;(A=(R=
g).setPlayerOverlayVideoDetailsRenderer)==null||A.call(R,H||{});H&&a_5(g,r);_.Q3(J)})},x$F=function(g,r){if(!g.quickActionButtonsContainer){g.quickActionButtonsContainer=document.createElement("div");
r.setFullscreenQuickActions(g.quickActionButtonsContainer);var E=function(){return g.quickActionsViewModel().quickActionButtons||[]},B=_.$F(g.quickActionButtonsContainer,function(){return _.G(WiF,{data:E})});
g.addOnDisposeCallback(function(){r.setFullscreenQuickActions(void 0);B()})}},a_5=function(g,r){if(!g.playerOverlayVideoDetailsRendererContainer){g.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
r.setPlayerOverlayVideoDetailsRenderer(g.playerOverlayVideoDetailsRendererContainer);var E=_.$F(g.playerOverlayVideoDetailsRendererContainer,function(){return _.G(ed6,{data:g.playerOverlayVideoDetailsRenderer})});
g.addOnDisposeCallback(function(){r.setPlayerOverlayVideoDetailsRenderer(void 0);E()})}};_.Av=function(g){_.f5.call(this);var r=this;this.JSC$20482_watchApi=g;this.JSC$20482_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;g=_.Gm(_.Zz(),_.PX,function(E){r.onFullscreenChanged(E)});
this.addOnDisposeCallback(g);g=_.Gm(_.Zz(),_.jc,function(E){r.onWatchScroll(E)});
this.addOnDisposeCallback(g);_.Y("kevlar_watch_while_v2")&&(g=_.Gm(_.Zz(),_.tj,function(E){XBM(r,E)}),this.addOnDisposeCallback(g));
NKm(this);I_M(this);m$6();this.onWatchScroll(_.jc(_.Zz().getState()));_.Ka("START_IN_FULL_WINDOW_MODE")&&this.JSC$20482_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.f(_.Av,_.f5);var NKm=function(g){g.JSC$20482_watchApi.registerActionHandler("yt-fullscreen-change-action",function(r){var E=g.JSC$20482_watchApi.isActive();r&&!E||_.Zz().dispatch(_.Bs({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!r}}))});
g.addOnDisposeCallback(function(){g.JSC$20482_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},I_M=function(g){var r,E;
_.q(function(B){if(B.nextAddress==1)return _.D(B,g.JSC$20482_watchApi.playerApi,2);r=B.yieldResult;E=function(){g.onFullerscreenEduClicked()};
r.addEventListener("onFullerscreenEduClicked",E);g.addOnDisposeCallback(function(){r.removeEventListener("onFullerscreenEduClicked",E)});
_.Q3(B)})};
_.Av.prototype.onFullscreenChanged=function(g){var r=this,E;return _.q(function(B){if(B.nextAddress==1)return r.isFullscreen=!!_.Tr(),_.D(B,r.JSC$20482_watchApi.playerApi,2);E=B.yieldResult;r.JSC$20482_miniplayerActive||E.setFauxFullscreen(r.isFullscreen);if(g&&(r.JSC$20482_watchApi.focusOnPlayer(),!r.fullerscreenEduButtonShownThisPlayback)){r.fullerscreenEduButtonShownThisPlayback=!0;var w=_.OC("yt-fullerscreen-edu-button-shown-count")||0;_.S2("yt-fullerscreen-edu-button-shown-count",w+1,31536E3);
r.updateFullerscreenEduButtonSubtleModeState()}_.Q3(B)})};
var XBM=function(g,r){var E;_.q(function(B){if(B.nextAddress==1)return g.JSC$20482_miniplayerActive=r,_.D(B,g.JSC$20482_watchApi.playerApi,2);E=B.yieldResult;E.setFauxFullscreen(!g.JSC$20482_miniplayerActive&&g.isFullscreen);_.Q3(B)})};
_.Av.prototype.onWatchScroll=function(g){var r=this,E,B;return _.q(function(w){if(w.nextAddress==1)return _.Y("external_fullscreen_with_edu")?_.D(w,r.JSC$20482_watchApi.playerApi,2):w.return();E=w.yieldResult;B=g<=0;r.shouldShowFullerscreenEdu!==B&&(r.shouldShowFullerscreenEdu=B,E.updateFullerscreenEduButtonVisibility(!r.shouldShowFullerscreenEdu));_.Q3(w)})};
_.Av.prototype.onFullerscreenEduClicked=function(){this.JSC$20482_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var g=_.OC("yt-fullerscreen-edu-button-click-count")||0;_.S2("yt-fullerscreen-edu-button-click-count",g+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.Av.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var g=this,r,E,B,w,O,M;return _.q(function(u){if(u.nextAddress==1)return r=_.OC("yt-fullerscreen-edu-button-click-count")||0,E=_.OC("yt-fullerscreen-edu-button-shown-count")||0,B=_.wM("external_fullscreen_button_click_threshold"),w=_.wM("external_fullscreen_button_shown_threshold"),O=r>=B||E>=w,_.D(u,g.JSC$20482_watchApi.playerApi,2);M=u.yieldResult;M.updateFullerscreenEduButtonSubtleModeState(O);_.Q3(u)})};
_.Av.prototype.disposeInternal=function(){_.f5.prototype.disposeInternal.call(this);var g=_.Tr();_.Y("kevlar_exit_fullscreen_leaving_watch")&&g&&_.gX(g)};
var m$6=function(){if(_.Y("web_watch_add_viewport_meta_tag")){var g=document.querySelector("meta[name=viewport]"),r=document.head;r&&!g&&(g=document.createElement("meta"),g.name="viewport",g.content="width=device-width, initial-scale=1.0, viewport-fit=cover",r.appendChild(g))}};_.by=function(g){_.f5.call(this);var r=this;this.JSC$20486_watchApi=g;this.jobId=0;this.pendingRequestId=void 0;var E=this.JSC$20486_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){cPL(r)});
this.addOnDisposeCallback(function(){r.JSC$20486_watchApi.unsubscribeByKey(E)});
cPL(this)};
_.f(_.by,_.f5);var iS8=function(g){_.F6.cancelJob(g.jobId);g.pendingRequestId=void 0},cPL=function(g){iS8(g);
var r=rUm(g.JSC$20486_watchApi.getWatchNextResponse());if(r){var E=250,B,w=(B=_.n(r,_.lcA))==null?void 0:B.initialDelayMs;_.Y("web_watch_updated_metadata_server_initial_delay")&&w&&(E=w);g.jobId=_.F6.addLowPriorityJob(function(){return g.fetchUpdatedMetadata(r)},E)}};
_.by.prototype.fetchUpdatedMetadata=function(g,r){var E=this,B,w,O,M,u,l,Q,z,k,H,R,A,J,e,C;return _.q(function(X){switch(X.nextAddress){case 1:r&&(B={continuation:r});if(!_.Y("web_get_updated_metadata_fantasy_panel_continuation_params")){X.jumpTo(2);break}w=_.rM().resolve(_.kn);O="PAsports_fantasy";return _.D(X,w.isVisible(O,!0),3);case 3:X.yieldResult&&(Q=(u=(M=w).getUpdatePanelContinuationData)==null?void 0:(l=u.call(M,O))==null?void 0:l.updatePanelContinuationRequest)&&(B||(B={}),B.clientParams=
{panelContinuationParams:{panelContinuation:Q}});case 2:z=_.rM().resolve(_.Wo);if(!z)return _.tn(Error("pm")),X.return();k={};E.pendingRequestId=k;return _.D(X,_.cK(z,g,B),4);case 4:H=X.yieldResult;if(k!==E.pendingRequestId)return X.return();J=(R=H)==null?void 0:(A=R.continuation)==null?void 0:A.timedContinuationData;((e=J)==null?0:e.continuation)&&((C=J)==null?0:C.timeoutMs)&&(E.jobId=_.F6.addLowPriorityJob(function(){return E.fetchUpdatedMetadata(g,J.continuation)},J.timeoutMs));
_.Q3(X)}})};
_.by.prototype.disposeInternal=function(){_.f5.prototype.disposeInternal.call(this);iS8(this)};var Liv=_.dG(function(g){var r=_.HK(function(){var B=g.data().videoId;if(g.active())B=_.Tn(B),_.rM().resolve(_.Er).resolveCommand(B);else{var w=g.playerApi(),O=w.getAvailableAudioTracks(),M,u,l=(M=g.sourceVideoConfig().audioTracks)==null?void 0:(u=M.find(function(Q){return Q.isDefaultForSource}))==null?void 0:u.id;
if(O=O.find(function(Q){return Q.getLanguageInfo().getId()===l}))w.setAudioTrack(O,!0),w.setCompositeParam({activeVideoId:B}),g.setActiveSourceId(B)}}),E={};
return _.G("ytw-composite-source-video-overlay",{class:_.QY("ytwCompositeSourceVideoOverlayHost",(E.ytwCompositeSourceVideoOverlayActive=g.active,E.ytwCompositeSourceVideoOverlayInteracting=g.interacting,E)),style:_.Rl({left:function(){var B;return((B=g.data().topLeftCornerX)!=null?B:0)*100+"%"},
top:function(){var B;return((B=g.data().topLeftCornerY)!=null?B:0)*100+"%"},
width:function(){var B;return((B=g.data().width)!=null?B:0)*100+"%"},
height:function(){var B;return((B=g.data().height)!=null?B:0)*100+"%"}}),
"on:click":r},_.G("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Gj");var VjD=_.dG(function(g){var r=_.U(_.Y3(function(){var M,u=(M=g.data().sources)==null?void 0:M.find(function(l){return l.isActive});
if(u)return u.videoId})),E=r.next().value,B=r.next().value;
r=_.U(_.Dk(!1,void 0,"WI4BUb"));var w=r.next().value,O=r.next().value;return _.G("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.HK(function(){O(!0)}),
"on:mouseout":_.HK(function(){O(!1)})},_.G(_.p,{cond:function(){return g.data().sources},
then:function(M){return _.G(_.Ra,{each:M},function(u){return _.G(Liv,{data:u,active:function(){return u.videoId===E()},
setActiveSourceId:B,interacting:w,playerApi:g.playerApi,sourceVideoConfig:function(){return EGA(g.compositeVideoConfig(),u.videoId)}})})}}))},"Hj");_.yP5=function(g){_.f5.call(this);this.JSC$20502_watchApi=g;g=_.U(_.Dk({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=g.next().value;this.setCompositeVideoOverlayRenderer=g.next().value;g=_.U(_.Dk({},void 0,"U5hcq"));this.compositeVideoConfig=g.next().value;this.setCompositeVideoConfig=g.next().value;hd4(this);ZSL(this)};
_.f(_.yP5,_.f5);var hd4=function(g){var r=g.JSC$20502_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){ZSL(g)});
g.addOnDisposeCallback(function(){g.JSC$20502_watchApi.unsubscribeByKey(r)})},vSD=function(g){var r;
return _.q(function(E){if(E.nextAddress==1)return _.D(E,g.JSC$20502_watchApi.playerApi,2);r=E.yieldResult;r.setCompositeVideoOverlayRendererComponent(g.container);_.Q3(E)})},d$6=function(g){var r;
return _.q(function(E){if(E.nextAddress==1)return _.D(E,g.JSC$20502_watchApi.playerApi,2);r=E.yieldResult;r.setCompositeVideoOverlayRendererComponent(void 0);_.Q3(E)})},TKM=function(g){var r,E;
return _.q(function(B){if(B.nextAddress==1)return _.D(B,g.JSC$20502_watchApi.playerApi,2);r=B.yieldResult;g.container=document.createElement("div");E=_.$F(g.container,function(){return _.G(VjD,{data:g.compositeVideoOverlayRenderer,compositeVideoConfig:g.compositeVideoConfig,playerApi:r})});
g.addOnDisposeCallback(E);_.Q3(B)})},ZSL=function(g){var r,E,B,w,O,M,u,l;
_.q(function(Q){return Q.nextAddress==1?(r=g.JSC$20502_watchApi.getPlayerResponse(),O=_.n((E=r)==null?void 0:(B=E.overlay)==null?void 0:(w=B.playerControlsOverlayRenderer)==null?void 0:w.compositeVideoOverlay,LBv),l=(M=r)==null?void 0:(u=M.playerConfig)==null?void 0:u.compositeVideoConfig,O&&g.setCompositeVideoOverlayRenderer(O),l&&g.setCompositeVideoConfig(l),O&&l?g.container?Q.jumpTo(6):_.D(Q,TKM(g),6):gdD(g)?_.D(Q,d$6(g),0):Q.jumpTo(0)):gdD(g)?Q.jumpTo(0):_.D(Q,vSD(g),0)})},gdD=function(g){var r;
return!((r=g.container)==null||!r.parentElement)};
_.yP5.prototype.disposeInternal=function(){gdD(this)&&d$6(this);_.f5.prototype.disposeInternal.call(this)};_.Sjv=function(g){_.f5.call(this);var r=this;this.JSC$20508_watchApi=g;var E=this.JSC$20508_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var B=r.JSC$20508_watchApi.getPlayerResponse();if(B){var w,O;if(B=_.n((w=B.endscreen)==null?void 0:(O=w.endscreenRenderer)==null?void 0:O.hideButton,_.sg)){var M;(M=r.setEndscreenHideButton)==null||M.call(r,B);r4t(r)}}});
this.addOnDisposeCallback(function(){r.JSC$20508_watchApi.unsubscribeByKey(E)});
g=_.U(_.Dk({},void 0,"PPHRb"));this.endscreenHideButton=g.next().value;this.setEndscreenHideButton=g.next().value;Ed8(this);B1t(this);wxF(this)};
_.f(_.Sjv,_.f5);var r4t=function(g){var r,E;_.q(function(B){if(B.nextAddress==1)return g.creatorEndscreenHideButtonContainer?B.return():_.D(B,g.JSC$20508_watchApi.playerApi,2);r=B.yieldResult;g.creatorEndscreenHideButtonContainer=document.createElement("div");_.Vr(g.creatorEndscreenHideButtonContainer,!1);r.setCreatorEndscreenHideButton(g.creatorEndscreenHideButtonContainer);E=_.$F(g.creatorEndscreenHideButtonContainer,function(){return _.G(_.RY,{data:g.endscreenHideButton,useOutlinedIcon:!0})});
g.addOnDisposeCallback(function(){E();var w;(w=r)==null||w.setCreatorEndscreenHideButton(void 0)});
_.Q3(B)})},Ed8=function(g){var r,E;
_.q(function(B){if(B.nextAddress==1)return _.D(B,g.JSC$20508_watchApi.playerApi,2);r=B.yieldResult;E=function(){g.creatorEndscreenHideButtonContainer&&_.Vr(g.creatorEndscreenHideButtonContainer,!0)};
r.addEventListener("endscreenelementshown",E);g.addOnDisposeCallback(function(){var w;(w=r)==null||w.removeEventListener("endscreenelementshown",E)});
_.Q3(B)})},B1t=function(g){var r=function(){g.creatorEndscreenHideButtonContainer&&_.Vr(g.creatorEndscreenHideButtonContainer,!1)},E=g.JSC$20508_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",r),B=g.JSC$20508_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",r);
g.addOnDisposeCallback(function(){g.JSC$20508_watchApi.unsubscribeByKey(E);g.JSC$20508_watchApi.unsubscribeByKey(B)})},wxF=function(g){g.JSC$20508_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(r){var E=_.n(r,XnA);
g.JSC$20508_watchApi.playerApi.then(function(B){B==null||B.setCreatorEndscreenVisibility(!!E.hide)})});
g.addOnDisposeCallback(function(){g.JSC$20508_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.UGA=function(g){_.f5.call(this);this.JSC$20514_watchApi=g;Oz8(this)};
_.f(_.UGA,_.f5);var Oz8=function(g){var r,E;_.q(function(B){if(B.nextAddress==1)return _.D(B,g.JSC$20514_watchApi.playerApi,2);r=B.yieldResult;E=function(w){_.Zz().dispatch(_.Bs({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:w}}))};
r.addEventListener("onRetroModeChanged",E);g.addOnDisposeCallback(function(){r.removeEventListener("onRetroModeChanged",E)});
_.Q3(B)})};var tu=0,PZ=0,Fl=0;var Moz;Moz=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.Jv=function(g){_.f5.call(this);this.JSC$20527_watchApi=g;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;qj$(this)};
_.f(_.Jv,_.f5);
var qj$=function(g){var r,E,B;_.q(function(w){if(w.nextAddress==1)return _.D(w,g.JSC$20527_watchApi.playerApi,2);r=w.yieldResult;if(g.isDisposed())return w.return();g.sessionStorage=_.HD$("yt-sleep-timer");g.sessionStorage||_.el(new _.Rj("SessionStorage for Sleep Timer is undefined."));((E=g.sessionStorage)==null?void 0:E.get("yt-sleep-timer"))==="true"&&(DI4(),(B=g.sessionStorage)==null||B.remove("yt-sleep-timer"),r.syncVolume());us6(g,r);lS8(g,r);DG6(g,r);_.Q3(w)})},us6=function(g,r){var E=function(Q){g.onSleepTimerSettingsChanged(Q,
r)},B=function(Q){g.onPlayerStateChange(Q,r)},w=function(){g.onLoopChange(r)},O=function(){g.onCloseMiniplayer(r)},M=function(){MAz(r,(0,_.g2)(),oGM(r),g.selectedOption==="End of video",r.getPlayerState()!==1)},u=function(){g.onSeekComplete(r)},l=function(){_.F6.cancelJob(PZ);
var Q=r.getCurrentTime()>=r.getDuration(),z=g.selectedOption==="End of video"||g.selectedOption==="End of playlist"&&!S1z(g.playlistId);Q&&z&&odF(g,r)};
r.addEventListener("onSleepTimerSettingsChanged",E);r.addEventListener("onLoopChange",w);r.addEventListener("onLoopRangeChange",w);r.addEventListener("onStateChange",B);r.addEventListener("onCloseMiniplayer",O);r.addEventListener("onSleepTimerFeatureAvailable",M);r.addEventListener("SEEK_COMPLETE",u);r.addEventListener("onAdStart",l);g.addOnDisposeCallback(function(){r.removeEventListener("onSleepTimerSettingsChanged",E);r.removeEventListener("onLoopChange",w);r.removeEventListener("onLoopRangeChange",
w);r.removeEventListener("onStateChange",B);r.removeEventListener("onCloseMiniplayer",O);r.removeEventListener("onSleepTimerFeatureAvailable",M);r.removeEventListener("SEEK_COMPLETE",u);r.removeEventListener("onAdStart",l)})},lS8=function(g,r){var E=g.JSC$20527_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var B=r.getVideoData().video_id,w,O=(w=BZ$(g.JSC$20527_watchApi))==null?void 0:w.playlistId;
g.pauseAutonavPlayback&&(r.pauseVideo(),r.syncVolume(),g.pauseAutonavPlayback=!1);if(g.selectedOption==="End of video"&&B!==g.videoId)PG(g,r);else{if(g.selectedOption==="End of playlist"){w=S1z(g.playlistId);if(O!==g.playlistId){PG(g,r);break a}w?w&&GKD(g,r):QtL(g,r)}g.videoId=B;g.playlistId=O}}});
g.addOnDisposeCallback(function(){g.JSC$20527_watchApi.unsubscribeByKey(E)})},DG6=function(g,r){var E=_.rM().resolve(_.e2),B=_.Gm(E,_.Q1D,function(O){O&&g.selectedOption!=="Off"&&PG(g,r)}),w=g.JSC$20527_watchApi.subscribeToActiveChanged(function(O){var M,u;
return _.q(function(l){if(l.nextAddress==1)return _.D(l,_.Di().navigationFinishPromise,2);M=!_.RxT();u=_.rM().resolve(_.ea).isMiniplayerActive();O||!Ju(g.selectedOption)||u||M||PG(g,r);_.Q3(l)})},!1);
E=_.Gm(E,function(O){return O.entities.playlistLoopStateEntity||{}},function(O){O=O===void 0?{}:O;
var M=wnt(g.JSC$20527_watchApi);if(M){var u;((u=O[M])==null?void 0:u.state)==="PLAYLIST_LOOP_STATE_ALL"&&Ju(g.selectedOption)&&PG(g,r)}});
g.addOnDisposeCallback(B);g.addOnDisposeCallback(E);g.addOnDisposeCallback(w)};
_.Jv.prototype.onSleepTimerSettingsChanged=function(g,r){switch(g){case "Off":this.selectedOption!=="Off"&&PG(this,r);break;case "End of video":case "End of playlist":zum(this,g,r);break;default:zum(this,g,r,Moz.get(g))}};
_.Jv.prototype.onLoopChange=function(g){(g.getLoopVideo()||g.getLoopRange())&&Ju(this.selectedOption)&&PG(this,g)};
_.Jv.prototype.onCloseMiniplayer=function(g){Ju(this.selectedOption)&&PG(this,g)};
var zum=function(g,r,E,B){kKm(g,E);g.selectedOption=r;g.videoId=E.getVideoData().video_id;g.playlistId="";var w;(w=g.sessionStorage)==null||w.set("yt-sleep-timer","true");g.adjustmentsCount++;MAz(E,(0,_.g2)(),oGM(E),g.selectedOption==="End of video");if(g.selectedOption==="End of video")QtL(g,E),Hz8(g,E);else if(g.selectedOption==="End of playlist"){Hz8(g,E);var O,M;g.playlistId=(M=(O=BZ$(g.JSC$20527_watchApi))==null?void 0:O.playlistId)!=null?M:"";S1z(g.playlistId)||QtL(g,E)}else B&&(g.presetFadeSchedulerId=
_.pm(_.F6,function(){unv(E,15E3)},B-15E3),g.presetPauseSchedulerId=_.pm(_.F6,function(){odF(g,E)},B),q1v(E,(0,_.g2)(),B))},odF=function(g,r){if(g.JSC$20527_watchApi.isActive()){var E={dismissDialogEndpoint:{}};
var B={commandExecutorCommand:{commands:[E,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};E={buttonViewModel:{title:_.zn("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:E}}};B={buttonViewModel:{title:_.zn("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:B}}};var w={dialogHeaderViewModel:{headline:{content:_.zn("SLEEP_TIMER_ENDED_TITLE")}}},
O={basicContentViewModel:{paragraphs:[{text:{content:_.zn("SLEEP_TIMER_ENDED_TEXT")}}]}};E={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:w,content:O,footer:{panelFooterViewModel:{primaryButton:E,secondaryButton:B,shouldHideDivider:!0}}}}}}};_.rM().resolve(_.Er).resolveCommand(E,{form:{element:g}})}else DI4();pxM(g,!1);YjF(g,r);r.pauseVideo();_.h9.getInstance().getState()===2&&r.getPlayerState()===5&&(g.pauseAutonavPlayback=!0)},PG=function(g,r){pxM(g,!0);
YjF(g,r);DI4()},YjF=function(g,r){kKm(g,r);
g.selectedOption="Off";g.videoId="";g.playlistId="";g.adjustmentsCount=0;var E;(E=g.sessionStorage)==null||E.remove("yt-sleep-timer");_.F6.cancelJob(tu);r.resetSleepTimerMenuSettings()},pxM=function(g,r){r={timer_length_adjustment_times_during_session:g.adjustmentsCount-1,
is_session_cancelled:r};switch(g.selectedOption){case "Off":r.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":r.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":r.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:r.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",r.option_duration_in_minutes=Moz.get(g.selectedOption)/6E4}_.Jn("sleepTimerSessionFinishEvent",r)};
_.Jv.prototype.onPlayerStateChange=function(g,r){g===1?MAz(r,(0,_.g2)(),oGM(r),this.selectedOption==="End of video"):g===0?(_.F6.cancelJob(PZ),r.setVideoTimeLeft(UIF(0,0))):g===2&&_.F6.cancelJob(PZ);this.selectedOption==="End of video"?g===0?odF(this,r):g===2&&lT5(r):this.selectedOption!=="End of playlist"||S1z(this.playlistId)||(g===0?odF(this,r):g===2&&lT5(r))};
_.Jv.prototype.onSeekComplete=function(g){g.getPlayerState()===2&&MAz(g,(0,_.g2)(),oGM(g),this.selectedOption==="End of video",!0)};
_.Jv.prototype.onCueRangeEnter=function(g,r){g==="sleep-timer-fade-audio"&&unv(r,(r.getDuration()-r.getProgressState().current)*1E3)};
_.Jv.prototype.onCueRangeExit=function(g,r){g==="sleep-timer-fade-audio"&&r.getPlayerState()!==0&&lT5(r,!0)};
var QtL=function(g,r){r.addCueRange("sleep-timer-fade-audio",r.getDuration()-15,r.getDuration());r.addEventListener("onCueRangeEnter",function(E){g.onCueRangeEnter(E,r)});
r.addEventListener("onCueRangeExit",function(E){g.onCueRangeExit(E,r)})},GKD=function(g,r){r.removeCueRange("sleep-timer-fade-audio");
r.removeEventListener("onCueRangeEnter",function(E){g.onCueRangeEnter(E,r)});
r.removeEventListener("onCueRangeExit",function(E){g.onCueRangeExit(E,r)})},kKm=function(g,r){Ju(g.selectedOption)?GKD(g,r):(_.F6.cancelJob(g.presetPauseSchedulerId),_.F6.cancelJob(g.presetFadeSchedulerId),g.presetPauseSchedulerId=0,g.presetFadeSchedulerId=0);
lT5(r,!0)},Hz8=function(g,r){r.setLoop(!1);
r.setLoopVideo(!1);r.setLoopRange(null);(g=wnt(g.JSC$20527_watchApi))&&_.rM().resolve(_.e2).dispatch(_.za("playlistLoopStateEntity",g,{key:g,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.fS4=function(g){_.f5.call(this);this.JSC$20530_watchApi=g;RuD(this);ndz(this);stm(this);g=g.getRoot();if(g.is==="ytd-watch-flexy"||g.is==="ytd-watch-grid")g.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.$5g();_.Y("web_watch_log_theater_mode_cookie_state")&&_.zZ.get("wide","0")==="1"&&_.AZJ("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.f(_.fS4,_.f5);var RuD=function(g){var r,E;_.q(function(B){if(B.nextAddress==1)return _.D(B,g.JSC$20530_watchApi.playerApi,2);r=B.yieldResult;E=function(w){$G4(g,!!w)};
r.addEventListener("SIZE_CLICKED",E);g.addOnDisposeCallback(function(){r.removeEventListener("SIZE_CLICKED",E)});
_.Q3(B)})},ndz=function(g){g.JSC$20530_watchApi.registerActionHandler("yt-toggle-theater-mode",function(r,E){$G4(g,r,E===void 0?!0:E)});
g.addOnDisposeCallback(function(){g.JSC$20530_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.fS4.prototype.getState=function(){return _.Jf(_.Zz().getState())};
var $G4=function(g,r,E){E=E===void 0?!0:E;var B,w,O,M=_.Y("enable_player_resize_transition")&&!!g.JSC$20530_watchApi.getWatchNextResponse()&&!((B=g.JSC$20530_watchApi.getWatchNextResponse())==null?0:(w=B.contents)==null?0:(O=w.twoColumnWatchNextResults)==null?0:O.conversationBar);_.YmA(function(){_.Zz().dispatch(_.Bs({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:r}}));_.Y("theater_mode_scroll_to_top_killswitch")||g.JSC$20530_watchApi.scrollWatchTo(0,!1);_.Tr()&&_.Y("external_fullscreen")&&_.gX(document.documentElement);
stm(g);E&&_.kA("wide",r?"1":"0",-1);_.OS(g.JSC$20530_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);g.JSC$20530_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:r});r&&_.$5g()},{shouldWrap:M})},stm=function(g){var r;
_.q(function(E){if(E.nextAddress==1)return _.D(E,g.JSC$20530_watchApi.playerApi,2);r=E.yieldResult;r.setSizeStyle(!0,g.getState());_.Q3(E)})};var bzD=function(g){_.f5.call(this);var r=this;this.playerApi=g;this.timeToPanelSyncKeyMap={};var E;if(g==null?0:(E=g.isReady)==null?0:E.call(g)){E=_.Gm(_.rM().resolve(_.e2),function(w){return w.entities.timedMarkersListSyncEntity||{}},function(w,O){w=w===void 0?{}:w;
O=O===void 0?{}:O;for(var M=_.U(Object.keys(O)),u=M.next();!u.done;u=M.next())u=u.value,w[u]!==O[u]&&jtM(r,O[u]);O=_.U(Object.keys(w));for(M=O.next();!M.done;M=O.next())M=M.value,u=w[M],r.timeToPanelSyncKeyMap[M]&&A4m(r,u)});
this.addOnDisposeCallback(E);var B=function(w){r.onCueRangeEnter(w)};
g.addEventListener("onCueRangeEnter",B);this.addOnDisposeCallback(function(){var w;(w=g.removeEventListener)==null||w.call(g,"onCueRangeEnter",B)})}};
_.f(bzD,_.f5);
var A4m=function(g,r){var E,B;if((E=g.playerApi)==null?0:(B=E.isReady)==null?0:B.call(E)){var w;if((E=r==null?void 0:(w=r.timedListData)==null?void 0:w.sections)&&r!=null&&r.key)for(w=_.U(E),E=w.next();!E.done;E=w.next())if(E=E.value,E.timedSyncDataList&&E.sectionId)for(B=0;B<E.timedSyncDataList.length;B++){var O=E.timedSyncDataList[B];O.syncItemId&&g.playerApi.addCueRange(E.sectionId+"_"+r.key+"_"+O.syncItemId,Number(O.videoTimeMs)/1E3,B===E.timedSyncDataList.length-1?0x8000000000000:Number(E.timedSyncDataList[B+
1].videoTimeMs)/1E3)}}},jtM=function(g,r){var E,B;
if((E=g.playerApi)==null?0:(B=E.isReady)==null?0:B.call(E)){var w;if((E=r==null?void 0:(w=r.timedListData)==null?void 0:w.sections)&&r!=null&&r.key)for(w=_.U(E),E=w.next();!E.done;E=w.next())if(E=E.value,E.timedSyncDataList&&E.sectionId){B=_.U(E.timedSyncDataList);for(var O=B.next();!O.done;O=B.next())O=O.value,O.syncItemId&&g.playerApi.removeCueRange(E.sectionId+"_"+r.key+"_"+O.syncItemId)}}};
bzD.prototype.onCueRangeEnter=function(g){for(var r=_.U(Object.keys(this.timeToPanelSyncKeyMap)),E=r.next();!E.done;E=r.next()){E=E.value;var B=_.U(g.split("_"+E+"_")),w=B.next().value;B=B.next().value;if(w&&B){g=_.rM().resolve(_.e2);r=this.timeToPanelSyncKeyMap[E];var O=_.brP(g.getState(),r);E=J4g(E,w,B);if(E===-1)break;E={activeSyncId:B,activeItemIndex:E,activeSectionInfo:{sectionIdentifier:w}};O?g.dispatch(_.C0("markersEngagementPanelSyncEntity",r,E)):g.dispatch(_.za("markersEngagementPanelSyncEntity",
r,Object.assign({},{key:r},E)));break}}};
var J4g=function(g,r,E){var B=_.rM().resolve(_.e2),w,O;g=(w=RA6(B.getState(),g))==null?void 0:(O=w.timedListData)==null?void 0:O.sections;if(!g)return-1;w=0;O=_.U(g);for(g=O.next();!g.done;g=O.next()){g=g.value;B=g.timedSyncDataList||[];if(g.sectionId===r)return r=B.findIndex(function(M){return M.syncItemId===E}),r===-1?r:w+r;
w+=B.length}return-1};_.Fj5=function(g){_.f5.call(this);var r=this;this.JSC$20543_watchApi=g;this.unresolvedCommands=[];this.JSC$20543_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(E){PkA(r,E)});
this.addOnDisposeCallback(function(){r.JSC$20543_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
toF(this)};
_.f(_.Fj5,_.f5);var toF=function(g){var r;_.q(function(E){if(E.nextAddress==1)return _.D(E,g.JSC$20543_watchApi.playerApi,2);r=E.yieldResult;if(g.isDisposed())return E.return();g.timedSyncObserver=new bzD(r);g.unresolvedCommands.length&&(g.unresolvedCommands.forEach(function(B){return PkA(g,B)}),g.unresolvedCommands=[]);
_.oO(g,g.timedSyncObserver);_.Q3(E)})},PkA=function(g,r){if(g.timedSyncObserver){var E=_.n(r,ITD);
if(E&&E.timedSyncEntityKey&&E.panelSyncEntityKey){g=g.timedSyncObserver;r=E.timedSyncEntityKey;var B=E.panelSyncEntityKey;E=!!E.isEnabled;E=E===void 0?!0:E;var w=_.rM().resolve(_.e2);w=RA6(w.getState(),r);E?g.timeToPanelSyncKeyMap[r]||(g.timeToPanelSyncKeyMap[r]=B,A4m(g,w)):(delete g.timeToPanelSyncKeyMap[r],jtM(g,w))}}else g.unresolvedCommands.push(r)};var eut=_.dG(function(g){var r=g.data,E=g.maybeLogSmartSkipClientData,B=_.T$(_.xo(function(){return r().rendererContext},{onTap:function(z,k){k({disableClickTracking:!0})}})),w=null,O=null,M=_.Y("web_enable_auto_focus_for_timely_action_button"),u=function(){w=document.activeElement},l=function(){r().smartSkipMetadata&&(w=document.activeElement,_.SIF(function(){return O}))},Q=function(z){if(r().smartSkipMetadata&&(!z||z.key!=="Enter")){w&&w.isConnected&&(_.SIF(function(){return w}),w=null);
var k;(k=O)==null||k.blur()}};
g=_.HK(function(){E==null||E(!0,r());return!1});
_.gH(B,{visibilityCallback:function(z){if(M)z?O&&r().smartSkipMetadata&&(l(),document.addEventListener("focusin",u)):(document.removeEventListener("focusin",u),Q());else if(z){z=_.Cm(r().rendererContext);var k=Number(r().maxVisibleDurationMilliseconds),H,R=(H=_.n(r().rendererContext,_.Gi))==null?void 0:H.label;z&&k&&R&&(H={label:R,command:z,durationMs:k},_.rM().resolve(_.qp).enqueue(H))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.jS(function(){if(M){var z;if((O=(z=B.value)==null?void 0:z.querySelector("button"))&&r().smartSkipMetadata){var k;(k=B.value)==null||k.addEventListener("keydown",Q)}}});
_.J5(function(){M&&(O&&r().smartSkipMetadata&&O.removeEventListener("keydown",Q),document.removeEventListener("focusin",u),Q())});
return _.G("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:B,"on:click":g},_.G(_.Af,{data:function(){return r().content}},{buttonViewModel:_.MV}))},"Ij");var WjF=_.dG(function(g){var r=g.data,E=g.playerApi,B=_.rM().resolve(_.o_Z);g=_.U(_.Y3(function(){r()}));
var w=g.next().value,O=g.next().value,M=function(){return QGF(r(),w())},u=function(Q,z){var k,H,R=(k=_.n(z==null?void 0:z.rendererContext,_.YP))==null?void 0:(H=k.loggingDirectives)==null?void 0:H.trackingParams;
if((z=z==null?void 0:z.smartSkipMetadata)&&z.loggingData&&(H=z.loggingData,z=H.algorithmId,k=H.startMilliseconds,H=H.endMilliseconds,z&&k!==void 0&&H!==void 0)){var A,J;Q={smartSkipData:Object.assign({},{versionName:z,startMediaTimeMs:k,endMediaTimeMs:H},Q&&{userInteractionMediaTimeMs:(Math.floor(((A=_.Tw())==null?void 0:(J=A.getPlayer())==null?void 0:J.getCurrentTime())||0)*1E3).toString()})};A=_.PE();var e;R&&(e=_.fW(R));A&&e&&_.hg(A,e,Q)}},l=function(Q,z){var k=QGF(r(),Q);
if(k){var H=_.n(k,ec),R;if(R=z)R=E(),k=_.n(k,ec),R=k!=null&&k.smartSkipMetadata?!(R==null?0:R.isSameMarkerTypeVisible((k==null?void 0:k.smartSkipMetadata.markerKey)||"")):!0;if(R){var A,J;(H==null?0:(A=H.smartSkipMetadata)==null?0:(J=A.loggingData)==null?0:J.isCounterfactual)||(u(!1,H),O(Q))}else z||w()!==Q||O(void 0)}};
_.bQ(function(){var Q=r().timelyActions;if(Q){Q=_.U(Q);for(var z=Q.next();!z.done;z=Q.next()){z=_.n(z.value,ec);var k=void 0;(k=z)!=null&&k.cueRangeId&&B.timelyActionsMap.set(z.cueRangeId,l)}_.J5(function(){B.timelyActionsMap.clear()})}},"Z1Qwtc");
return _.G("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.G(_.Af,{data:M},{timelyActionViewModel:function(Q){return _.G(eut,{data:Q.data,maybeLogSmartSkipClientData:function(){u(!0,_.n(M(),ec))}})}}))},"Jj");_.KjM=function(g){_.f5.call(this);this.JSC$20555_watchApi=g;g=_.U(_.Dk({},void 0,"pLDp2"));this.timelyActionsOverlay=g.next().value;this.setTimelyActionsOverlay=g.next().value;Ckm(this)};
_.f(_.KjM,_.f5);var Ckm=function(g){var r,E,B,w;_.q(function(O){if(O.nextAddress==1)return xG5(g),aSz(g),g.timelyActionsContainer=document.createElement("div"),_.D(O,g.JSC$20555_watchApi.playerApi,2);r=O.yieldResult;(B=(E=r).insertTimelyActionUi)==null||B.call(E,g.timelyActionsContainer);w=_.$F(g.timelyActionsContainer,function(){return _.G(WjF,{data:g.timelyActionsOverlay,playerApi:r})});
g.addOnDisposeCallback(w);_.Q3(O)})},aSz=function(g){var r=g.JSC$20555_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){xG5(g)});
g.addOnDisposeCallback(function(){g.JSC$20555_watchApi.unsubscribeByKey(r)})},xG5=function(g){var r=g.JSC$20555_watchApi.getWatchNextResponse();
if(r){var E,B;if(r=_.n((E=r.playerOverlays)==null?void 0:(B=E.playerOverlayRenderer)==null?void 0:B.timelyActionsOverlayViewModel,mIL)){var w;(w=g.setTimelyActionsOverlay)==null||w.call(g,r)}}};_.N1L=function(g){_.f5.call(this);this.JSC$20559_watchApi=g;XxD(this)};
_.f(_.N1L,_.f5);var XxD=function(g){var r,E;_.q(function(B){if(B.nextAddress==1)return _.D(B,g.JSC$20559_watchApi.playerApi,2);r=B.yieldResult;E=function(w){_.G$.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.n(w,_.veM)},popupType:"TOAST"}})};
r.addEventListener("onYtShowToast",E);g.addOnDisposeCallback(function(){r.removeEventListener("onYtShowToast",E)});
_.Q3(B)})};var ISt,iz6,y4t,mGF,c4v,ZzM,Vo6,huM,vdL,dGD;ISt=!1;_.Ljv=function(g){_.f5.call(this);this.JSC$20562_watchApi=g;this.fullscreen=this.theater=!1;mGF(this);c4v(this);iz6(this)};
_.f(_.Ljv,_.f5);iz6=function(g){var r,E,B;_.q(function(w){if(w.nextAddress==1)return _.D(w,g.JSC$20562_watchApi.playerApi,2);r=w.yieldResult;if(g.isDisposed())return w.return();E=g.JSC$20562_watchApi.getElement("CINEMATICS");if(!E)return w.return();g.JSC$20562_cinematicController=new _.Sc(E,r);_.oO(g,g.JSC$20562_cinematicController);_.p7t(g.JSC$20562_cinematicController);Vo6(g,_.o8B());B=g.JSC$20562_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(O){huM(g,O)});
g.addOnDisposeCallback(function(){g.JSC$20562_watchApi.unsubscribeByKey(B)});
ZzM(g);huM(g,g.JSC$20562_cinematicController.isAllowed());_.Y("web_cinematic_manager_redux_killswitch")?_.tv(g,g.fullscreen,g.theater):y4t(g);vdL(g);_.Q3(w)})};
y4t=function(g){g.fullscreen=_.PX(_.Zz().getState());g.theater=_.Jf(_.Zz().getState());_.tv(g,g.fullscreen,g.theater);var r=_.Gm(_.Zz(),_.PX,function(B){g.fullscreen=B;_.tv(g,g.fullscreen,g.theater)}),E=_.Gm(_.Zz(),_.Jf,function(B){g.theater=B;
_.tv(g,g.fullscreen,g.theater)});
g.addOnDisposeCallback(r);g.addOnDisposeCallback(E)};
mGF=function(g){var r=g.JSC$20562_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ZzM(g)});
g.addOnDisposeCallback(function(){g.JSC$20562_watchApi.unsubscribeByKey(r)})};
c4v=function(g){var r,E;_.q(function(B){if(B.nextAddress==1)return _.D(B,g.JSC$20562_watchApi.playerApi,2);r=B.yieldResult;E=function(w){Vo6(g,w)};
r.addEventListener("cinematicSettingsToggleChange",E);g.addOnDisposeCallback(function(){r.removeEventListener("cinematicSettingsToggleChange",E)});
_.Q3(B)})};
ZzM=function(g){var r=g.JSC$20562_watchApi.getWatchNextResponse(),E;r=_.n(r==null?void 0:(E=r.pageVisualEffects)==null?void 0:E[0],_.sf);var B;(B=g.JSC$20562_cinematicController)==null||_.RV6(B,r)};
Vo6=function(g,r){var E;(E=g.JSC$20562_cinematicController)==null||_.Y4A(E,r);dGD(g)};
huM=function(g,r){var E;_.q(function(B){if(B.nextAddress==1)return _.Y("kevlar_watch_cinematics_invisible")&&(r=!1),_.D(B,g.JSC$20562_watchApi.playerApi,2);E=B.yieldResult;E.updateCinematicSettings(r);dGD(g);_.Q3(B)})};
vdL=function(g){var r=_.pu();if(_.Y("kevlar_measure_ambient_mode_idle")&&!r.getFlag(192)&&!ISt){ISt=!0;var E=_.fC(_.F6,function(){_.rM().resolve(_.zz8).start(1E4)},5E3);
g.addOnDisposeCallback(function(){_.F6.cancelJob(E);_.rM().resolve(_.zz8).stop()})}};
_.tv=function(g,r,E){g.fullscreen=r;g.theater=E;var B;(B=g.JSC$20562_cinematicController)==null||B.setFullscreen(g.fullscreen,g.theater);if(_.Y("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(g.theater||g.fullscreen){var w;(w=g.JSC$20562_cinematicController)==null||_.nXA(w)}else if((g=g.JSC$20562_cinematicController)!=null){var O;(O=g.currentCinematicEffect)==null||O.pause()}};
dGD=function(g){if(_.Y("web_cinematic_theater_mode")||_.Y("web_cinematic_fullscreen")){var r;g.JSC$20562_watchApi.getRoot().toggleCinematicsActive(!((r=g.JSC$20562_cinematicController)==null||!r.isEnabled()))}};_.EEF=function(g){_.f5.call(this);var r=this;this.JSC$20565_watchApi=g;this.commentsReady=!1;this.setCommentsJobId=0;g=_.Gm(_.Zz(),_.jc,function(){T1F(r)});
this.addOnDisposeCallback(g);var E=this.JSC$20565_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){gEM(r)}),B=this.JSC$20565_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){gEM(r)});
this.addOnDisposeCallback(function(){r.JSC$20565_watchApi.unsubscribeByKey(E);r.JSC$20565_watchApi.unsubscribeByKey(B)});
var w=function(){_.Y("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&ruM(r,"false")};
this.JSC$20565_watchApi.getRoot().addEventListener("yt-page-data-will-update",w);this.addOnDisposeCallback(function(){r.JSC$20565_watchApi.getRoot().removeEventListener("yt-page-data-will-update",w)});
gEM(this)};
_.f(_.EEF,_.f5);var gEM=function(g){g.commentsReady=!1;_.F6.cancelJob(g.setCommentsJobId);g.setCommentsJobId=_.fC(_.F6,function(){T1F(g)},1E3)},T1F=function(g){if(!g.commentsReady){_.F4("cmi");
_.F6.cancelJob(g.setCommentsJobId);var r,E,B,w,O=(r=g.JSC$20565_watchApi.getWatchNextResponse())==null?void 0:(E=r.contents)==null?void 0:(B=E.twoColumnWatchNextResults)==null?void 0:(w=B.results)==null?void 0:w.results.contents;r=void 0;if(O&&O.length)for(O=_.U(O),E=O.next();!E.done;E=O.next())if(E=E.value,w=B=void 0,((B=E)==null?void 0:(w=B.itemSectionRenderer)==null?void 0:w.sectionIdentifier)==="comment-item-section"){_.Y("web_watch_provide_undefined_comments")?r=E.itemSectionRenderer:g.JSC$20565_watchApi.provideRenderingData("COMMENTS",
E.itemSectionRenderer);ruM(g,"true");break}_.Y("web_watch_provide_undefined_comments")&&g.JSC$20565_watchApi.provideRenderingData("COMMENTS",r);g.commentsReady=!0;g.JSC$20565_watchApi.dispatchEvent("yt-watch-comments-ready")}},ruM=function(g,r){var E;
(E=g.JSC$20565_watchApi.getElement("COMMENTS"))==null||E.setAttribute("canScheduleJobs",r)};_.C_=function(g){_.f5.call(this);var r=this;this.JSC$20568_watchApi=g;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.Y("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.Y("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.Y("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.wM("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)Big(this);
else{var E=this.JSC$20568_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){FV(r);eu(r)}),B=this.JSC$20568_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){WG(r);
eu(r)});
this.JSC$20568_watchApi.getRoot().is==="ytd-watch-grid"&&_.Y("swatcheroo_pbs_load_grid")&&(wZA(this),SKA(this));this.addOnDisposeCallback(function(){r.JSC$20568_watchApi.unsubscribeByKey(E);r.JSC$20568_watchApi.unsubscribeByKey(B);_.F6.cancelJob(r.provideRichGridJobId)});
FV(this);WG(this)}};
_.f(_.C_,_.f5);var Big=function(g){var r=g.JSC$20568_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){g.providePlayerJobId=_.jT(_.F6,function(){FV(g);eu(g)},g.provideAllDataDelayMs)}),E=g.JSC$20568_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){g.provideWatchNextJobId=_.jT(_.F6,function(){WG(g);
eu(g)},g.provideAllDataDelayMs)}),B=g.JSC$20568_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){g.provideWatchNextJobId=_.jT(_.F6,function(){WG(g);
eu(g)},g.provideAllDataDelayMs)});
g.JSC$20568_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.fC(_.F6,function(){FV(g);WG(g);eu(g)},100)});
g.JSC$20568_watchApi.addPageDisposeJob(function(){_.F6.cancelJob(g.provideWatchNextJobId);_.F6.cancelJob(g.providePlayerJobId)});
g.addOnDisposeCallback(function(){g.JSC$20568_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");g.JSC$20568_watchApi.unsubscribeByKey(r);g.JSC$20568_watchApi.unsubscribeByKey(E);g.JSC$20568_watchApi.unsubscribeByKey(B);_.F6.cancelJob(g.providePlayerJobId);_.F6.cancelJob(g.provideWatchNextJobId)});
FV(g);WG(g)},FV=function(g){var r=g.JSC$20568_watchApi.getPlayerResponse(),E,B,w=(B=r==null?void 0:(E=r.playabilityStatus)==null?void 0:E.messageRenderers)!=null?B:[],O,M;
r=(M=r==null?void 0:(O=r.playabilityStatus)==null?void 0:O.messages)!=null?M:[];O=_.U(r);for(M=O.next();!M.done;M=O.next())w.push({alertRenderer:{text:_.Lf(M.value),type:"WARNING"}});g.JSC$20568_watchApi.provideRenderingData("ALERTS",w)},WG=function(g){var r=[],E,B,w,O=g.JSC$20568_watchApi.getWatchNextResponse(),M,u,l,Q,z=O==null?void 0:(M=O.contents)==null?void 0:(u=M.twoColumnWatchNextResults)==null?void 0:(l=u.results)==null?void 0:(Q=l.results)==null?void 0:Q.contents;
if(z)for(M=_.U(z),u=M.next();!u.done;u=M.next())if(u=u.value,u.videoPrimaryInfoRenderer)var k=u;else if(u.videoSecondaryInfoRenderer){var H=u;Q=l=void 0;u=Object.assign({},(l=u.videoSecondaryInfoRenderer)==null?void 0:(Q=l.metadataRowContainer)==null?void 0:Q.metadataRowContainerRenderer);if(u.rows&&u.collapsedItemCount!==void 0){u.rows=u.rows.slice(0,u.collapsedItemCount).filter(function(Lw){return!!Lw.richMetadataRowRenderer});
u.collapsedItemCount=u.rows.length;var R={metadataRowContainerRenderer:u}}}else if(u.merchandiseShelfRenderer)var A=u;else if(u.ticketShelfRenderer)var J=u;else if(u.expandableMetadataRenderer)var e=u;else if(u.itemSectionRenderer)if(l=u.itemSectionRenderer.contents,Q=void 0,g.directlyProvideComments&&((Q=u.itemSectionRenderer)==null?void 0:Q.sectionIdentifier)==="comment-item-section")_.F4("cmi"),g.JSC$20568_watchApi.provideRenderingData("COMMENTS",u.itemSectionRenderer);else if(l)for(u=_.U(l),l=
u.next();!l.done;l=u.next())if(l=l.value,l.commentsEntryPointHeaderRenderer)var C=l;else if(l.clarificationRenderer||l.infoPanelContainerRenderer||l.infoPanelContentRenderer||l.emergencyOneboxRenderer){r.push(l);var X=X||!!H}else l.limitedStateMessageRenderer?B=l:l.videoMetadataCarouselViewModel&&(w=l);if(_.Y("web_watch_merch_in_sd_when_ticket_shelf_present")&&A&&J){var Z=A;A=void 0}if(g.provideWatchNextSecondaryResults){var c,h,y;g.JSC$20568_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
O==null?void 0:(c=O.contents)==null?void 0:(h=c.twoColumnWatchNextResults)==null?void 0:(y=h.secondaryResults)==null?void 0:y.secondaryResults)}if(g.JSC$20568_watchApi.getRoot().is==="ytd-watch-grid"){var OD,uB;g.JSC$20568_watchApi.provideRenderingData("LIVE_CHAT",O==null?void 0:(OD=O.contents)==null?void 0:(uB=OD.twoColumnWatchNextResults)==null?void 0:uB.conversationBar)}var zS,jV,PJ,At;(c=O==null?void 0:(zS=O.contents)==null?void 0:(jV=zS.twoColumnWatchNextResults)==null?void 0:(PJ=jV.secondaryResults)==
null?void 0:(At=PJ.secondaryResults)==null?void 0:At.offerModule)&&(c.donationShelfRenderer||c.donationUnavailableRenderer)&&g.JSC$20568_watchApi.getRoot().is!=="ytd-watch-grid"&&(E=c);zS=g.JSC$20568_watchApi.getPlayerResponse();if(!zS||!_.cSc(zS.playabilityStatus,O==null?void 0:O.playerOverlays)){var XY;if(O==null?0:(XY=O.contents)==null?0:XY.singleColumnWatchNextResults){var xc,rg;var $t=O==null?void 0:(xc=O.contents.singleColumnWatchNextResults.results)==null?void 0:(rg=xc.results)==null?void 0:
rg.contents}else{var tD,GD,xb,zL;XY=!!(z==null?0:(tD=z[0])==null?0:(GD=tD.itemSectionRenderer)==null?0:(xb=GD.contents)==null?0:(zL=xb[0])==null?0:zL.backgroundPromoRenderer);var AD,lA;tD=!!(O==null?0:(AD=O.contents)==null?0:(lA=AD.twoColumnWatchNextResults)==null?0:lA.secondaryResults);XY&&!tD&&($t=z)}}z=r[0];AD=r[1];X&&r.length===1&&(AD=z,z=void 0);g.JSC$20568_watchApi.provideRenderingData("PRIMARY_INFO",k);g.JSC$20568_watchApi.provideRenderingData("SECONDARY_INFO",H);g.JSC$20568_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
C);g.JSC$20568_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",w);g.JSC$20568_watchApi.provideRenderingData("CLARIFICATION",z);g.JSC$20568_watchApi.provideRenderingData("RICH_METADATA",R);g.JSC$20568_watchApi.provideRenderingData("MERCH_SHELF",A);_.Y("web_watch_merch_in_sd_when_ticket_shelf_present")&&g.JSC$20568_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",Z);g.JSC$20568_watchApi.provideRenderingData("TICKET_SHELF",J);g.JSC$20568_watchApi.provideRenderingData("LIMITED_STATE",B);g.JSC$20568_watchApi.getRoot().is!==
"ytd-watch-grid"&&g.JSC$20568_watchApi.provideRenderingData("DONATION_SHELF",E);g.JSC$20568_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",$t);g.JSC$20568_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",AD);g.JSC$20568_watchApi.provideRenderingData("EXPANDABLE_METADATA",e);if(g.swatcherooProvideAllDataOnScheduledJob){var pt,Mo,un,sw,J8,Rm;k=O==null?void 0:(pt=O.contents)==null?void 0:(Mo=pt.twoColumnWatchNextResults)==null?void 0:(un=Mo.secondaryResults)==null?void 0:(sw=un.secondaryResults)==
null?void 0:(J8=sw.results)==null?void 0:(Rm=J8[0])==null?void 0:Rm.richGridRenderer;g.JSC$20568_watchApi.provideRenderingData("RICH_GRID_RENDERER",k)}};
_.C_.prototype.hasCompanionAds=function(g){var r,E;return(E=g==null?void 0:(r=g.adPlacements)==null?void 0:r.some(function(B){var w,O,M,u;return(B==null?void 0:(w=B.adPlacementRenderer)==null?void 0:(O=w.renderer)==null?void 0:O.actionCompanionAdRenderer)||(B==null?void 0:(M=B.adPlacementRenderer)==null?void 0:(u=M.renderer)==null?void 0:u.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?E:!1};
var eu=function(g){if(!_.Y("swaterdoo_ps_wn_handle_ks")){g.swatcherooProvideAllDataOnScheduledJob||SKA(g,3E3);var r=g.JSC$20568_watchApi.getPlayerResponse(),E,B,w,O,M,u=(E=g.JSC$20568_watchApi.getWatchNextResponse())==null?void 0:(B=E.contents)==null?void 0:(w=B.twoColumnWatchNextResults)==null?void 0:(O=w.secondaryResults)==null?void 0:(M=O.secondaryResults)==null?void 0:M.offerModule;r=g.hasCompanionAds(r);var l,Q;E=(u==null?void 0:(l=u.tvfilmOfferModuleRenderer)==null?void 0:l.clientShouldSuppressIfCompanionAdDisplayed)||
(u==null?void 0:(Q=u.unlimitedOfferModuleRenderer)==null?void 0:Q.suppressIfCompanionAds);l=r&&E;g.JSC$20568_watchApi.getRoot().is==="ytd-watch-grid"&&g.JSC$20568_watchApi.provideRenderingData("OFFER_MODULE",l?void 0:u)}},SKA=function(g,r){_.Y("swatcheroo_pbs_load_grid")&&(g.provideRichGridJobId&&_.F6.cancelJob(g.provideRichGridJobId),g.provideRichGridJobId=_.jT(_.F6,function(){g.provideRichGridJobId=0;
var E,B,w,O,M,u,l,Q=(E=g.JSC$20568_watchApi.getWatchNextResponse())==null?void 0:(B=E.contents)==null?void 0:(w=B.twoColumnWatchNextResults)==null?void 0:(O=w.secondaryResults)==null?void 0:(M=O.secondaryResults)==null?void 0:(u=M.results)==null?void 0:(l=u[0])==null?void 0:l.richGridRenderer;Q&&g.JSC$20568_watchApi.provideRenderingData("RICH_GRID_RENDERER",Q)},r))},wZA=function(g){var r,E;
_.q(function(B){if(B.nextAddress==1)return _.D(B,g.JSC$20568_watchApi.playerApi,2);r=B.yieldResult;E=function(){g.onPlaybackStart()};
r.addEventListener("onPlaybackStartExternal",E);g.addOnDisposeCallback(function(){r.removeEventListener("onPlaybackStartExternal",E)});
_.Q3(B)})};
_.C_.prototype.onPlaybackStart=function(){SKA(this)};_.UW$=function(g){_.f5.call(this);var r=this;this.JSC$20578_watchApi=g;g.playerApi.then(function(E){r.player=E});
this.gestures=new _.ql(this.JSC$20578_watchApi.getRoot(),g.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.Adv(_.Zz().getState())&&_.jc(_.Zz().getState())<=0)if(_.PX(_.Zz().getState())){var E;(E=r.player)==null||E.toggleFullscreen()}else _.OS(r.JSC$20578_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
OEg(this)};
_.f(_.UW$,_.f5);var OEg=function(g){var r=_.Gm(_.Zz(),_.PX,function(E){g.onFullscreenChanged(E)});
g.addOnDisposeCallback(r);r=_.Gm(_.Zz(),_.jc,function(E){g.gestures&&(E>0?g.gestures.detach():g.gestures.attach())});
g.addOnDisposeCallback(r)};
_.UW$.prototype.onFullscreenChanged=function(g){this.gestures&&this.gestures.update(g)};_.qKM=function(g){_.f5.call(this);var r=this;this.JSC$20581_watchApi=g;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(g.subscribeToActiveChanged(function(E){r.onActiveChanged(E)}));
McA(this)};
_.f(_.qKM,_.f5);var ulA=function(g){if(_.Y("swatcheroo_page_dispose_all_watch_data"))g.pageDisposalDataTypes=Object.values(P34).filter(function(E){return E!=="PLAYLIST"});
else if(_.Y("swatcheroo_page_dispose_rich_grid")){var r;(r=g.pageDisposalDataTypes)==null||r.push("RICH_GRID_RENDERER")}},McA=function(g){_.Y("swatcheroo_enable_ghost_cards")&&(ulA(g),g.JSC$20581_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.F6.cancelJob(g.clearDataJobId);
g.clearDataJobId=0}),g.runPageDisposeJob=function(){var r=_.rM().resolve(_.vK).getDestinationPageType()==="watch";
g.clearDataJobId=_.jT(_.F6,g.runClearDataJob,r?0:_.wM("web_watch_delay_page_dispose_ms",1E4))},g.runClearDataJob=function(){lZ8(g)},g.runOnYtNavigateAwayFinish=function(){g.clearDataJobId&&(_.F6.cancelJob(g.clearDataJobId),g.clearDataJobId=0,lZ8(g))},document.addEventListener("yt-navigate-finish",g.runOnYtNavigateAwayFinish),g.JSC$20581_watchApi.addPageDisposeJob(g.runPageDisposeJob),g.addOnDisposeCallback(function(){g.JSC$20581_watchApi.removePageDisposeJob(g.runPageDisposeJob);
g.JSC$20581_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",g.runOnYtNavigateAwayFinish)}))},lZ8=function(g){g.pageDisposalDataTypes.forEach(function(r){g.JSC$20581_watchApi.provideRenderingData(r,void 0)});
g.clearDataJobId=0};
_.qKM.prototype.onActiveChanged=function(g){g&&((g=document.querySelector("#watch-page-skeleton"))&&_.p5(g),DWL(this),document.body.removeAttribute("no-y-overflow"),_.Ka("IS_SHELL_LOAD")&&_.kc$())};
var DWL=function(g){_.q(function(r){if(r.nextAddress==1)return _.D(r,g.JSC$20581_watchApi.playerApi,2);_.iP();_.Q3(r)})};var oE8;oE8=_.Y("kevlar_watch_while_counterfactual")?0:.25;_.K_=function(g){_.f5.call(this);this.JSC$20584_watchApi=g;this.JSC$20584_watchWhileEnabled=_.Y("kevlar_watch_while_v2");this.pipEnabled=_.Y("web_enable_pip_on_miniplayer");G7v(this);Qpv(this);zJL(this)};
_.f(_.K_,_.f5);var G7v=function(g){g.JSC$20584_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){k7g(g)});
g.addOnDisposeCallback(function(){g.JSC$20584_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},Qpv=function(g){var r,E;
_.q(function(B){if(B.nextAddress==1)return _.D(B,g.JSC$20584_watchApi.playerApi,2);r=B.yieldResult;E=function(){k7g(g)};
r.addEventListener("onCollapseMiniplayer",E);g.addOnDisposeCallback(function(){r.removeEventListener("onCollapseMiniplayer",E)});
_.Q3(B)})},zJL=function(g){var r=g.JSC$20584_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&r&&g.JSC$20584_watchWhileEnabled&&(g.playerIntersectionObserver=new IntersectionObserver(function(E){g.handleIntersect(E)},{threshold:[oE8]}),g.playerIntersectionObserver.observe(r),g.addOnDisposeCallback(function(){var E;
(E=g.playerIntersectionObserver)==null||E.disconnect()}))},k7g=function(g){var r,E,B;
_.q(function(w){if(w.nextAddress==1){r=_.rM().resolve(_.vK);E=r.data;B=_.GvV(E.response,E.playerResponse);_.Di().miniplayerButtonActivation=!0;if(g.pipEnabled)return _.Di().watchPipActivation=!0,w.jumpTo(2);_.rM().resolve(_.ea).collapse();return _.D(w,_.Di().navigationFinishPromise,2)}if(w.nextAddress!=4)return _.Di().currentEndpoint=B.watchEndpoint||null,_.D(w,_.rM().resolve(_.ea).activate(g.JSC$20584_watchApi.getElement("PLAYER"),B,E),4);_.Di().userActivation=!0;_.Q3(w)})};
_.K_.prototype.handleIntersect=function(g){HE5(this,g[g.length-1])};
var HE5=function(g,r){g.watchWhileJobId&&_.F6.cancelJob(g.watchWhileJobId);g.watchWhileJobId=_.F6.addLowPriorityJob(function(){var E,B;return _.q(function(w){if(w.nextAddress==1)return g.watchWhileJobId=void 0,E=_.rM().resolve(_.ea),r.intersectionRatio>oE8?E.isMiniplayerActive()?_.D(w,E.deactivate(),0):w.jumpTo(0):(B=!E.isMiniplayerActive())?_.D(w,pZM(g),5):w.jumpTo(4);w.nextAddress!=4&&(B=w.yieldResult);if(!B)return w.jumpTo(0);_.Di().watchWhileActivation=!0;return _.D(w,YK5(g),0)})},100)},pZM=function(g){return _.q(function(r){return r.nextAddress==
1?_.Y("kevlar_watch_while_paused")?r.return(!0):_.D(r,g.isPlayerPlaying(),2):r.return(r.yieldResult)})};
_.K_.prototype.isPlayerPlaying=function(){var g=this,r;return _.q(function(E){if(E.nextAddress==1)return _.D(E,g.JSC$20584_watchApi.playerApi,2);r=E.yieldResult;return E.return(r.getPlayerStateObject().isPlaying)})};
var YK5=function(g){var r,E;return _.q(function(B){r=_.rM().resolve(_.vK).data;E=_.GvV(r.response,r.playerResponse);_.Di().currentEndpoint=E.watchEndpoint||null;return _.D(B,_.rM().resolve(_.ea).activate(g.JSC$20584_watchApi.getElement("PLAYER"),E,r),0)})};_.spv=function(g){_.f5.call(this);this.JSC$20588_watchApi=g;RJA(this);nEM(this)};
_.f(_.spv,_.f5);var nEM=function(g){var r,E;_.q(function(B){if(B.nextAddress==1)return _.D(B,g.JSC$20588_watchApi.playerApi,2);r=B.yieldResult;E=function(w){var O;w.sessionData&&w.sessionData.itct&&(O=w.sessionData.itct);var M=w.watchEndpoint;if(M&&w.sessionData&&w.sessionData.autonav)M=_.ieo(M,O);else{var u;M=_.Tn(w.videoId,(u=w.listId)!=null?u:void 0,O)}O={endpoint:M};w.sessionData&&(O.tempData=w.sessionData);g.JSC$20588_watchApi.dispatchEvent("yt-navigate",O)};
r.addEventListener("onPlayVideo",E);g.addOnDisposeCallback(function(){r.removeEventListener("onPlayVideo",E)});
_.Q3(B)})},RJA=function(g){var r=function(E){g.onYtNavigate(E)};
g.JSC$20588_watchApi.getRoot().addEventListener("yt-navigate",r);g.addOnDisposeCallback(function(){g.JSC$20588_watchApi.getRoot().removeEventListener("yt-navigate",r)})};
_.spv.prototype.onYtNavigate=function(g){var r=this,E,B,w,O,M,u,l,Q,z;return _.q(function(k){if(k.nextAddress==1){if(!((E=g.detail)==null?0:(B=E.endpoint)==null?0:B.watchEndpoint))return k.return();w=g.detail.endpoint.watchEndpoint;O=r.JSC$20588_watchApi.getWatchNextResponse();u=_.n((M=O)==null?void 0:M.currentVideoEndpoint,_.LM);if(!u)return k.return();if(w.videoId!==u.videoId||w.playlistId&&w.playlistId!==u.playlistId||typeof w.startTimeSeconds!=="number")return k.jumpTo(0);g.stopPropagation();
(l=_.Y("kevlar_watch_while_v2")&&!_.Y("kevlar_watch_while_counterfactual"))&&_.rM().resolve(_.ea).isMiniplayerActive()||r.JSC$20588_watchApi.scrollWatchTo(0,!0);return _.D(k,r.JSC$20588_watchApi.playerApi,3)}Q=k.yieldResult;z=w.startTimeSeconds;Q.seekTo(z,void 0,void 0,void 0,84);Q.wakeUpControls();z<Q.getDuration()&&Q.playVideo();_.Q3(k)})};_.$W4=function(g){_.f5.call(this);var r=this;this.JSC$20591_watchApi=g;var E=this.JSC$20591_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){fZL(r)});
this.addOnDisposeCallback(function(){r.JSC$20591_watchApi.unsubscribeByKey(E)});
fZL(this)};
_.f(_.$W4,_.f5);var fZL=function(g){var r=g.JSC$20591_watchApi.getWatchNextResponse();if(r){var E,B=[].concat(_.jW((E=r==null?void 0:r.engagementPanels)!=null?E:[]));B.unshift.apply(B,_.jW(jp8(r)));g.JSC$20591_watchApi.provideRenderingData("ENGAGEMENT_PANELS",B)}},Au6=function(g){var r,E,B,w=(r=g.engagementPanels)==null?void 0:(E=r.find(function(R){var A;
return((A=R.engagementPanelSectionListRenderer)==null?void 0:A.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(B=E.engagementPanelSectionListRenderer.content)==null?void 0:B.structuredDescriptionContentRenderer,O;
if(_.n(w==null?void 0:(O=w.items)==null?void 0:O.find(function(R){return!!_.n(R,Os8)}),Os8))return!0;
var M,u,l,Q;if(g=(((M=g.contents)==null?void 0:(u=M.twoColumnWatchNextResults)==null?void 0:(l=u.results)==null?void 0:(Q=l.results)==null?void 0:Q.contents)||[]).find(function(R){return R.videoPrimaryInfoRenderer})){var z,k,H;
return(((z=g.videoPrimaryInfoRenderer)==null?void 0:(k=z.videoActions)==null?void 0:(H=k.menuRenderer)==null?void 0:H.flexibleItems)||[]).some(function(R){R=_.n(R,_.Pzn);if(!R)return!1;var A,J;R=(A=R.topLevelButton)==null?void 0:(J=A.buttonViewModel)==null?void 0:J.onTap;if(!R)return!1;A=_.xP(R);if(!A)return!1;var e;return((e=_.n(A,_.ja))==null?void 0:e.panelIdentifier)==="PAyouchat"})}return!1},jp8=function(g){var r=[];
if(!_.Y("web_watch_inject_placeholder_fantasy_panel_killswitch")){var E,B,w,O=(E=g.engagementPanels)==null?void 0:(B=E.find(function(u){var l;return((l=u.engagementPanelSectionListRenderer)==null?void 0:l.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(w=B.engagementPanelSectionListRenderer.content)==null?void 0:w.structuredDescriptionContentRenderer,M;
_.n(O==null?void 0:(M=O.items)==null?void 0:M.find(function(u){return!!_.n(u,KBz)}),KBz)&&(E=_.PEL("PAsports_fantasy"),E.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",r.push(E))}Au6(g)&&(g=_.PEL("PAyouchat"),g.engagementPanelSectionListRenderer.targetId="PAyouchat",g.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",r.push(g));
return r};_.Jum=function(g){_.f5.call(this);this.JSC$20594_watchApi=g;bE4(this)};
_.f(_.Jum,_.f5);var bE4=function(g){g.JSC$20594_watchApi.registerActionHandler("yt-loop-command",function(r){Pgm(g,r)});
g.JSC$20594_watchApi.registerActionHandler("yt-repeat-chapter-command",function(r){tc8(g,r)});
g.addOnDisposeCallback(function(){g.JSC$20594_watchApi.unregisterActionHandler("yt-loop-command");g.JSC$20594_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},Pgm=function(g,r){var E;
_.q(function(B){if(B.nextAddress==1)return _.D(B,g.JSC$20594_watchApi.playerApi,2);E=B.yieldResult;_.n(r,aTt).loop?(E.setLoopRange({startTimeMs:Number(_.n(r,aTt).startTimeMs),endTimeMs:Number(_.n(r,aTt).endTimeMs),postId:_.n(r,aTt).postId,type:"clips"}),E.playVideo()):E.setLoopRange(null);_.Q3(B)})},tc8=function(g,r){var E,B;
_.q(function(w){if(w.nextAddress==1)return _.D(w,g.JSC$20594_watchApi.playerApi,2);E=w.yieldResult;B=_.n(r,cUL).repeat;B==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(E.setLoopRange({startTimeMs:Number(_.n(r,cUL).startTimeMs),endTimeMs:Number(_.n(r,cUL).endTimeMs),type:"repeatChapter"}),E.playVideo()):B==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&E.setLoopRange(null);_.Q3(w)})};_.eJ$=function(g){_.f5.call(this);this.JSC$20599_watchApi=g;FEF(this)};
_.f(_.eJ$,_.f5);var FEF=function(g){g.JSC$20599_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(r){WEM(g,r)});
g.addOnDisposeCallback(function(){g.JSC$20599_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},WEM=function(g,r){var E,B,w,O,M,u,l,Q,z,k,H;
_.q(function(R){if(R.nextAddress==1)return _.D(R,g.JSC$20599_watchApi.playerApi,2);E=R.yieldResult;if(O=(w=(B=_.n(r,i6$))==null?void 0:B.highlightedMenuItemKey)!=null?w:"")(u=(M=E).highlightSettingsMenuItem)==null||u.call(M,O);if(z=(Q=(l=_.n(r,i6$))==null?void 0:l.openMenuItemKey)!=null?Q:"")(H=(k=E).openSettingsMenuItem)==null||H.call(k,z);_.Q3(R)})};var CgD=_.qr("/youtube/app/watch/player_state","playerStateEntity");_.xWM=function(g){_.f5.call(this);this.JSC$20602_watchApi=g;KE$(this)};
_.f(_.xWM,_.f5);var aZm=function(g){switch(g){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"}},KE$=function(g){var r,E;
_.q(function(B){if(B.nextAddress==1)return _.D(B,g.JSC$20602_watchApi.playerApi,2);r=B.yieldResult;E=function(w){g.onPlayerStateChange(w)};
r.addEventListener("onStateChange",E);g.addOnDisposeCallback(function(){r.removeEventListener("onStateChange",E)});
_.Q3(B)})};
_.xWM.prototype.onPlayerStateChange=function(g){var r=this,E,B;return _.q(function(w){if(w.nextAddress==1)return _.D(w,r.JSC$20602_watchApi.playerApi,2);E=w.yieldResult;B=E.getVideoData().video_id;_.V7().dispatch(_.za("playerStateEntity",CgD,{key:CgD,playerState:aZm(g),videoId:B}));_.Q3(w)})};_.Ni6=function(g){_.f5.call(this);var r=this;this.JSC$20606_watchApi=g;this.enableExternalPlaylistPanelInPlayer=_.Y("delhi_web_player_use_external_playlist_panel");_.rM().resolve(_.t6).setPlayer(this.JSC$20606_watchApi.getElement("PLAYER"));g=this.JSC$20606_watchApi.subscribeToActiveChanged(function(E){r.onActiveChanged(E)});
this.addOnDisposeCallback(g);XZm(this)};
_.f(_.Ni6,_.f5);var XZm=function(g){var r,E;_.q(function(B){if(B.nextAddress==1)return g.enableExternalPlaylistPanelInPlayer?_.D(B,g.JSC$20606_watchApi.playerApi,2):B.return();r=B.yieldResult;E=function(){if(g.playlistPanelElement)g.playlistPanelElement.onToggleExpanded()};
r.addEventListener("onToggleExternalPlaylistPanel",E);g.addOnDisposeCallback(function(){r.removeEventListener("onToggleExternalPlaylistPanel",E)});
_.Q3(B)})};
_.Ni6.prototype.onActiveChanged=function(g){var r=this,E=_.rM().resolve(_.t6),B=function(){IZL(r)};
g?(this.playlistPanelElement=this.JSC$20606_watchApi.getElement("PLAYLIST_PANEL"))?(E.setPlaylistComponent(this.playlistPanelElement),E.addEventListener("yt-playlist-data-updated",B),this.addOnDisposeCallback(function(){E.removeEventListener("yt-playlist-data-updated",B)}),IZL(this)):_.NX(Error("qm")):(E.removeEventListener("yt-playlist-data-updated",B),E.cancelVideoSkip())};
var IZL=function(g){var r=_.rM().resolve(_.t6);g.JSC$20606_watchApi.provideRenderingData("PLAYLIST",r.getPlaylistData())};_.x_=function(g){_.f5.call(this);var r=this;this.JSC$20609_watchApi=g;this.onPageScroll=function(){r.scrollThrottle.fire();r.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.VU(this.onThrottledScroll,200,this);_.oO(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.VU(this.onMastheadThrottledScroll,50,this);_.oO(this,this.mastheadScrollThrottle);this.animation=new _.PD(function(E){r.JSC$20609_watchApi.getRoot().setScrollTop(E)});
g=_.Gm(_.Zz(),_.PX,function(){r.onFullscreenChanged()});
this.addOnDisposeCallback(g);mW5(this);cum(this);this.onThrottledScroll()};
_.f(_.x_,_.f5);
_.x_.prototype.onFullscreenChanged=function(){var g=this,r=this.JSC$20609_watchApi.getRoot();!this.pageScrollElement&&r.pageScrollElement?(this.pageScrollElement=r.pageScrollElement,r.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){g.pageScrollElement&&g.pageScrollElement.removeEventListener("scroll",g.onPageScroll)})):this.pageScrollElement&&!r.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var mW5=function(g){window.addEventListener("scroll",g.onPageScroll);g.addOnDisposeCallback(function(){window.removeEventListener("scroll",g.onPageScroll)})},cum=function(g){g.JSC$20609_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(r){a:{var E;
if(E=g.JSC$20609_watchApi.getRoot().contains(r)&&!g.animation.isAnimating()){E=r.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var B,w,O=(r==null?void 0:(B=r.parentElement)==null?void 0:(w=B.parentElement)==null?void 0:w.id)==="fixed-secondary";E=!(E&&O)}if(E){if(_.Y("kevlar_watch_scroll_manager_absolute_offset_killswitch"))B=r.offsetTop;else for(B=0,w=r;w!==null;)B+=w.offsetTop,B-=w.scrollTop,w=w.offsetParent;w=B;B=w-24;r=w+r.offsetHeight+24;w=g.JSC$20609_watchApi.getRoot().getPageScrollingElement();
E=g.JSC$20609_watchApi.getRoot().getScrollTop();O=E+w.clientHeight-56;if(B<E+56)r=B-56;else if(r>O)r-=w.clientHeight;else break a;g.scrollWatchTo(Math.max(0,r),!0)}}});
g.addOnDisposeCallback(function(){g.JSC$20609_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.x_.prototype.onThrottledScroll=function(){var g=_.Zz(),r=g.dispatch,E=this.JSC$20609_watchApi.getRoot().getScrollTop();r.call(g,_.Bs({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:E}}))};
_.x_.prototype.onMastheadThrottledScroll=function(){this.JSC$20609_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20609_watchApi.getRoot().getScrollTop())};
_.x_.prototype.scrollWatchTo=function(g,r){(r===void 0?0:r)?this.animation.start(this.JSC$20609_watchApi.getRoot().getScrollTop(),Math.max(0,g),500):this.JSC$20609_watchApi.getRoot().setScrollTop(g)};_.Vc4=function(g){_.f5.call(this);var r=this;this.JSC$20612_watchApi=g;var E=this.JSC$20612_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){iEA(r)}),B=this.JSC$20612_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){LEg(r)});
this.addOnDisposeCallback(function(){r.JSC$20612_watchApi.unsubscribeByKey(E);r.JSC$20612_watchApi.unsubscribeByKey(B)});
iEA(this);LEg(this)};
_.f(_.Vc4,_.f5);
var iEA=function(g){var r,E,B,w=(B=(r=g.JSC$20612_watchApi.getPlayerResponse())==null?void 0:(E=r.videoDetails)==null?void 0:E.title)!=null?B:"";g.JSC$20612_watchApi.dispatchEvent("yt-update-title",w)},LEg=function(g){var r,E,B,w,O,M,u,l=(u=((M=(r=g.JSC$20612_watchApi.getWatchNextResponse())==null?void 0:(E=r.contents)==null?void 0:(B=E.twoColumnWatchNextResults)==null?void 0:(w=B.results)==null?void 0:(O=w.results)==null?void 0:O.contents)!=null?M:[]).find(function(Q){return!!Q.videoPrimaryInfoRenderer}))==null?
void 0:u.videoPrimaryInfoRenderer;
(r=_.Vp(l==null?void 0:l.title))&&g.JSC$20612_watchApi.dispatchEvent("yt-update-title",r)};_.ZE4=function(g){_.f5.call(this);this.JSC$20615_watchApi=g;hJD(this)};
_.f(_.ZE4,_.f5);var hJD=function(g){var r,E;_.q(function(B){if(B.nextAddress==1)return _.D(B,g.JSC$20615_watchApi.playerApi,2);r=B.yieldResult;E=function(){g.onYpcContentRequest()};
r.addEventListener("onYpcContentRequest",E);g.addOnDisposeCallback(function(){r.removeEventListener("onYpcContentRequest",E)});
_.Q3(B)})};
_.ZE4.prototype.onYpcContentRequest=function(){var g,r,E,B,w,O=(g=this.JSC$20615_watchApi.getWatchNextResponse())==null?void 0:(r=g.contents)==null?void 0:(E=r.twoColumnWatchNextResults)==null?void 0:(B=E.secondaryResults)==null?void 0:(w=B.secondaryResults)==null?void 0:w.offerModule,M,u,l,Q;g=(Q=(l=(u=(M=O==null?void 0:O.episodeOfferModuleRenderer)!=null?M:O==null?void 0:O.movieOfferModuleRenderer)!=null?u:O==null?void 0:O.unlimitedOfferModuleRenderer)!=null?l:O==null?void 0:O.liveOfferModuleRenderer)!=
null?Q:O==null?void 0:O.tvfilmOfferModuleRenderer;var z,k,H;O=(H=O==null?void 0:(z=O.tvfilmOfferModuleRenderer)==null?void 0:(k=z.actionButtons)==null?void 0:k.length)!=null?H:0;k=Math.max(O-1,0);var R,A,J;z=(J=g==null?void 0:(R=g.offerButton)==null?void 0:R.buttonRenderer)!=null?J:g==null?void 0:(A=g.actionButtons)==null?void 0:A[k].buttonRenderer;var e,C;(R=(C=(e=z==null?void 0:z.navigationEndpoint)!=null?e:z==null?void 0:z.serviceEndpoint)!=null?C:z==null?void 0:z.command)&&_.G$.instance.resolveCommand(R)};
}catch(e){_._DumpException(e)}
try{
var hfA,i3F,mev;_.csg=function(){var g=_.jn.clone(Ixt),r;return(new _.D8(function(E,B){g.onSuccess=function(w){_.eUV(w)?E(new mev(w)):B(new _.ir("Request failed, status="+_.Ur(w),"net.badstatus",w))};
g.onError=function(w){B(new _.ir("Unknown request error","net.unknown",w))};
g.onTimeout=function(w){B(new _.ir("Request timed out","net.timeout",w))};
r=_.Dx("//googleads.g.doubleclick.net/pagead/id",g)})).thenCatch(function(E){if(E instanceof _.Iz){var B;
(B=r)==null||B.abort()}return _.bV(E)})};
_.L08=function(g){a:{var r="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(r="EMBEDDED_PLAYER_MODE_PFL");var E=g.raw_embedded_player_response;if(!E&&(g=g.embedded_player_response))try{E=JSON.parse(g)}catch(w){break a}if(E)b:for(var B in i3F)if(i3F[B]==E.embeddedPlayerMode){r=i3F[B];break b}}return r==="EMBEDDED_PLAYER_MODE_PFL"};
_.VgM=function(){if(_.Y("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("tf");if(!_.r1l())return Error("uf");var g=_.Ca("PLAYER_VARS",{});if(_.jn.get(g,"privembed",!1)=="1")return Error("vf");if(_.L08(g))return Error("wf")};
hfA=function(g){switch(g){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:_.MM(g,"unknown result type")}};
_.Z38=function(g,r,E){r=_.d9L[r];E={detected:g===0,source:r.omH,detectionResult:hfA(g),contentCpn:E};_.Jn("biscottiBasedDetection",E);_.o1T.increment(r.omH,g);r.qWF!==void 0&&_.W0("CATSTAT",_.ymo(g,r))};
_.LG=function(g,r){var E={};E.key=g;E.value=r;return _.ttD().then(function(B){return new Promise(function(w,O){try{var M=B.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(E);M.onsuccess=function(){w()};
M.onerror=function(){O()}}catch(u){O(u)}})})};
_.vA5=function(){var g=_.wM("user_engagement_experiments_rate_limit_ms"),r=ysm.get("last-user-engagement-exp-trigger-timestamp");return!r||(0,_.g2)()>=r+g?(ysm.set("last-user-engagement-exp-trigger-timestamp",(0,_.g2)()),!0):!1};
_.VL=function(g,r,E,B,w){r=r===void 0?null:r;E=E===void 0?null:E;B=B===void 0?null:B;w=w===void 0?null:w;g={youThereEventType:g};E&&(g.lactThresholdMs=E.lactThresholdMs,g.mediaPosSec=E.promptDelaySec,g.lactServerRequestMs=E.lactServerRequestMs,g.triggerReason=E.triggerReason);w!=null&&(g.renderingMediaPosSec=Math.round(w));r||(r=_.PE());r&&(g.clientScreenNonce=r);B&&(g.clientPlaybackNonce=B);_.Jn("youThere",g)};
i3F={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"};mev=function(g){this.xhr=g};
_.ir=function(g,r,E){_.gl.call(this,g+", errorCode="+r);this.errorCode=r;this.xhr=E;this.name="PromiseAjaxError"};
_.f(_.ir,_.gl);var Ixt={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var ysm=new _.xR("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.NMv=function(g){return _.Bs({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:g})};
}catch(e){_._DumpException(e)}
try{
var IW,MmA,uMF,lgL,Dlv,oM$,Qn$,snA,fgF,$l5,Gz$,qOM,pqD,Hp8,bpz;_.UlA=function(){var g=window.location.hash;g.charAt(0)==="#"&&(g=g.charAt(1)==="!"?g.substring(2):g.substring(1));return _.c0(g)};
IW=function(g,r,E){var B;return _.q(function(w){if(w.nextAddress==1)return _.D(w,r(),2);B=w.yieldResult;E(B,g);_.Q3(w)})};
MmA=function(){return _.q(function(g){return g.nextAddress==1?_.D(g,(_.VgM()!==void 0?_.bV(Error("xf")):_.csg()).then(function(){return 1},function(r){if(r.message==="Biscotti id is disabled")return 3;
_.el("Failed fetching bid");return 0}),2):g.return(g.yieldResult)})};
uMF=function(){var g=_.TC("NWV0aDM0bHl0LWhhdmVuLWVtYmVkLXBsYXllciN1ZzFldg=="),r=_.TC("N2c5bmlkdmlmcmFtZSMxaGt3aw==");return document.querySelector(r+qOM+g)?0:1};
lgL=function(){return _.KtB(_.XL)};
Dlv=function(){return _.x9l()===0?0:_.alB()};
oM$=function(){return _.cmS(_.SCV([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
Qn$=function(){return _.bBB(Gz$)};
_.zQ6=function(g){_.q(function(r){switch(r.nextAddress){case 1:return _.D(r,IW("b.f_",MmA,g),2);case 2:return _.D(r,IW("j.s_",_.jfD,g),3);case 3:return _.D(r,IW("r.s_",_.sfc,g),4);case 4:return _.D(r,IW("e.h_",Qn$,g),5);case 5:if(!_.Y("ab_det_sc_inj")){r.jumpTo(6);break}return _.D(r,IW("s.i_",_.Wtl,g),6);case 6:if(_.Y("ab_deg_unex_thr")){r.jumpTo(8);break}return _.D(r,IW("a.o_",_.FtY,g),8);case 8:if(_.Y("ks_get_o_pp")){r.jumpTo(10);break}return _.D(r,IW("g.o_",_.t2Y,g),10);case 10:if(_.Y("ks_det_gpbl")){r.jumpTo(12);
break}return _.D(r,IW("p.i_",_.PNV,g),12);case 12:return _.D(r,IW("f.i_",_.D9D,g),14);case 14:return _.D(r,IW("a.b_",_.RGV,g),15);case 15:return _.D(r,IW("p.m_",_.QfQ,g),16);case 16:if(!_.Y("ab_det_el_h_v2")){r.jumpTo(17);break}return _.D(r,IW("n.h_",oM$,g),17);case 17:return _.D(r,IW("o.p_",lgL,g),19);case 19:return _.D(r,IW("e.i_",uMF,g),20);case 20:if(_.Y("ab_det_apm"))return _.D(r,IW("o.a_",Dlv,g),0);r.jumpTo(0)}})};
_.kz8=function(g,r){g={videoId:g};r&&(g.playlistId=r);return g};
_.YOm=function(){if(_.r1l()){var g=_.Ca("PLAYER_VARS",{});if(_.jn.get(g,"privembed",!1)!="1"&&!_.L08(g)){var r=function(){Hp8=!0;"google_ad_status"in window?_.W0("DCLKSTAT",1):_.W0("DCLKSTAT",2)};
try{_.xy("//static.doubleclick.net/instream/ad_status.js",r)}catch(E){}pqD.push(_.F6.addLowPriorityJob(function(){if(!(Hp8||"google_ad_status"in window)){try{_.VwP("//static.doubleclick.net/instream/ad_status.js",r)}catch(E){}Hp8=!0;_.W0("DCLKSTAT",3)}},5E3))}}};
_.my=function(g,r,E){E=E===void 0?!1:E;var B=Math.max(g.width,_.MHF);if(_.Y("kevlar_watch_feed_big_thumbs")&&g.width>=1550-_.bH()&&g.height>=800)B-=_.GBL;else if(g.width>=_.KE){var w=_.qWv+_.uHz+_.CE;_.Y("kevlar_watch_feed_big_thumbs")&&(w=_.ozz);B-=w}else B-=_.qWv;B=Math.min(B,_.le6);w=240;E&&(w=380);r<.5624||(!_.Y("kevlar_watch_flexy_disable_small_window_sizing")&&(g.height<630&&g.width>=657||g.height>=630&&g.width>=_.KE&&g.width<1327)?w=360:!_.Y("kevlar_watch_flexy_disable_large_window_sizing")&&
g.height>=630&&g.width>=1327&&(w=480));var O=Math.min(B*r,g.height-(56+_.U3D+_.D34));O=Math.max(O,w);r<1?B=O/r:g.width>=_.KE&&(B=_.my(g,.5625,E).width);return new _.oQ(Math.round(B),Math.round(O))};
_.RQv=function(g){var r=0;g.indexOf("h")!=-1&&(g=g.split("h"),r=g[0]*60*60,g=g[1]);g.indexOf("m")!=-1&&(g=g.split("m"),r=g[0]*60+r,g=g[1]);g.indexOf("s")!=-1?(g=g.split("s"),r=g[0]*1+r):r=g*1+r;return r};
_.nMM=function(){_.wM("service_worker_push_logged_out_prompt_watches")!=-1&&_.dJ("WatchCount").then(function(g){g>=100||_.LG("WatchCount",g+1)})};
snA=function(g){var r=g.externalVideoId||"";return r?g.isShortsEligible?"https://www.youtube.com/shorts/"+r:"https://www.youtube.com/watch?v="+r:""};
fgF=function(g){var r=[];g.viewCount&&r.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:g.viewCount});g.likeCount&&r.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:g.likeCount});return r};
$l5=function(g){var r,E,B={"@context":"https://schema.org","@type":"VideoObject",description:_.Vp(g.description),duration:"PT"+(g.lengthSeconds||"0")+"S",embedUrl:g.embed?g.embed.iframeUrl:"",name:_.Vp(g.title),thumbnailUrl:((r=g.thumbnail)==null?void 0:(E=r.thumbnails)==null?void 0:E.map(function(z){return z&&z.url||""}))||[],
uploadDate:g.publishDate};_.Y("mweb_video_schema_id_killswitch")||(B["@id"]=snA(g));r=fgF(g);r.length&&(B.interactionStatistic=r);g.category&&(B.genre=g.category);g.ownerChannelName&&(B.author=g.ownerChannelName);g.liveBroadcastDetails&&(B.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:g.liveBroadcastDetails.startTimestamp,endDate:g.liveBroadcastDetails.endTimestamp}]);if(g.learningResource){g=g.learningResource;B["@type"]=["VideoObject","LearningResource"];var w;if((w=g.learningResourceType)==
null?0:w.length)B.learningResourceType=g.learningResourceType[0];var O;if((O=g.educationalAlignment)==null?0:O.length)B.educationalAlignment={"@type":"AlignmentObject",targetName:g.educationalAlignment[0]};var M;if((M=g.educationalLevel)==null?0:M.length){w=g.educationalLevel[0];var u;if((u=g.educationalLevelCountry)==null?0:u.length)w+=" ("+g.educationalLevelCountry+")";B.educationalLevel=w}var l,Q;if(((l=g.learningResourceType)==null?0:l.length)&&g.learningResourceType[0]==="Problem walkthrough"&&
((Q=g.problemDescriptions)==null?0:Q.length))for(B.hasPart=[],u=_.U(g.problemDescriptions),l=u.next();!l.done;l=u.next())w=l.value,l=w.problemDescriptionText,Q=w.startOffset,w=w.url,l&&Q!==void 0&&w&&B.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:l,text:l,startOffset:Q,url:w})}return B};
_.jng=function(g){return _.Bs({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:g}})};
Gz$=[[["dWRmYzFzc3ByaW1hcnkjaDdsbWo=",null,null],[null,["aTk3c2xhZXl0ZC10d28tY29sdW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyI2hpZ3Vm","d3ZwanVvY3N0eWxlLXNjb3BlIzZvczQw"],null],["c3FmNjVnY21hc3RoZWFkLWFkI3VqNTZx",["Y2ExNzA4eXl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjZmE3dng="],null],[null,["NzFxbmh0dnl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjdW8ydjg=","NWd2NHU3dnN0eWxlLXNjb3BlIzJ2aTAx"],null],[null,["ZDFtODZqMHl0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjdnJlcnE=","c3drdXZ5a3N0eWxlLXNjb3BlIzdyNGph"],null],[null,["aGRwZ2huYXl0ZC1hZC1zbG90LXJlbmRlcmVyIzlpazho"],
null]],[["NHV3b2J3c3BsYXllci1hZHMjZXJtdHI=",null,null]],[["OHBrODdzbmRlc2NyaXB0aW9uLWlubmVyI21pZDNu",null,null],[null,null,"aXh4aHhrcXl0ZC1tZXJjaC1zaGVsZi1yZW5kZXJlciN3cmdjeQ=="],["dmE1ZnN1Z21haW4jeDdndGo=",["NHd2aGp2NXl0ZC1tZXJjaC1zaGVsZi1yZW5kZXJlciN4MmQzYw=="],null]]];qOM="#";pqD=[];Hp8=!1;_.AVL=["engagement-panel-ads"];bpz=new _.V("updateSentimentBarStateCommand");_.JVM=new _.V("showSurveyCommand");_.cG=new _.V("changeMarkersVisibilityCommand");var tmz,F9v,K9g,C5g,W9F,iy;_.P5m=function(g,r){this.playerProvider_=g;this.actionSenderElement_=r;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.P5m.prototype.reset=function(){tmz(this);this.isUserPredictedAbsent_=!1};
tmz=function(g,r){!g.youThereData_||g.showWarningJob_||r!==void 0&&r||(_.VL("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.PE(),g.youThereData_,g.clientPlaybackNonce_),_.Pf());_.F6.cancelJob(g.showWarningJob_);g.showWarningJob_=0;_.F6.cancelJob(g.showBlockingWarningJob_);g.showBlockingWarningJob_=0;_.F6.cancelJob(g.pausePlaybackJob_);g.pausePlaybackJob_=0;g.youThereData_=null;g.clientPlaybackNonce_=void 0;g.inYouThereFlow_=!1};
_.eQ5=function(g,r){var E,B,w;_.q(function(O){if(O.nextAddress==1)return g.reset(),_.D(O,g.playerProvider_().getPlayerPromise(),2);E=O.yieldResult;g.clientPlaybackNonce_=E.getVideoData().cpn;g.youThereData_=r.configData.youThereData;if(!g.youThereData_)return O.return();if(g.youThereData_.triggerReason&&g.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.vA5())return _.VL("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.PE(),g.youThereData_,g.clientPlaybackNonce_),O.return();B=g.youThereData_.promptDelaySec;
w=E.getCurrentTime();g.showWarningJob_=_.F6.addLowPriorityJob(function(){return _.q(function(M){g.showWarningJob_=0;return _.D(M,F9v(g),0)})},Math.max(B-w,0)*1E3);
_.Q3(O)})};
F9v=function(g){var r,E,B,w,O,M;return _.q(function(u){if(u.nextAddress==1)return _.D(u,g.playerProvider_().getPlayerPromise(),2);if(u.nextAddress!=3)return r=u.yieldResult,E=r.getCurrentTime(),_.D(u,W9F(g),3);B=u.yieldResult;if(!B||!g.youThereData_)return u.return();if(_.Y("check_user_lact_at_prompt_shown_time_on_web")&&(w=parseInt(g.youThereData_.lactThresholdMs,10),_.Eq()<w))return _.VL("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.PE(),g.youThereData_,g.clientPlaybackNonce_),u.return();if(g.youThereData_.playbackPauseDelayMs<=
0)return C5g(g),u.return();!_.Y("external_fullscreen")&&(O=_.Tr())&&(g.ignoreFullscreenExitUserActivity_=!0,_.F6.addLowPriorityJob(function(){g.ignoreFullscreenExitUserActivity_=!1},2E3),_.gX(O));
g.youThereData_.showToastWarningPrompt&&(iy(g,g.youThereData_.showWarningActions),g.inYouThereFlow_=!0,_.VL("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.PE(),g.youThereData_,g.clientPlaybackNonce_,E),_.VL("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.PE(),g.youThereData_,g.clientPlaybackNonce_,E));M=0;g.youThereData_.blockingPromptDelayMs&&(M=g.youThereData_.blockingPromptDelayMs);g.showBlockingWarningJob_=_.F6.addLowPriorityJob(function(){return _.q(function(l){g.showBlockingWarningJob_=0;return _.D(l,
K9g(g),0)})},M);
_.Q3(u)})};
K9g=function(g){var r,E,B;return _.q(function(w){if(w.nextAddress==1)return _.D(w,W9F(g),2);r=w.yieldResult;if(!g.youThereData_)return w.return();r&&(g.youThereData_.showBlockingWarningAction&&(_.VL("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.PE(),g.youThereData_,g.clientPlaybackNonce_),(E=_.n(g.youThereData_.showBlockingWarningAction,_.D$))?iy(g,E.commands):iy(g,[g.youThereData_.showBlockingWarningAction]),g.inYouThereFlow_=!0),B=g.youThereData_.playbackPauseDelayMs,g.pausePlaybackJob_=
_.F6.addLowPriorityJob(function(){return _.q(function(O){g.pausePlaybackJob_=0;return _.D(O,C5g(g),0)})},B));
_.Q3(w)})};
C5g=function(g){var r;return _.q(function(E){if(E.nextAddress==1)return _.D(E,W9F(g),2);r=E.yieldResult;if(!g.youThereData_)return E.return();r&&(_.VL("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.PE(),g.youThereData_,g.clientPlaybackNonce_),iy(g,g.youThereData_.showPausedActions),g.inYouThereFlow_=!0);_.Q3(E)})};
_.P5m.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var g=_.n(this.youThereData_.userActiveDuringFlowAction,_.D$);g?iy(this,g.commands):iy(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.VL("YOU_THERE_EVENT_TYPE_LACT_RESET",_.PE(),this.youThereData_,this.clientPlaybackNonce_),_.Pf());tmz(this,!0)}_.xlz(this,!1)};
_.agt=function(g){_.VL("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.PE(),g.youThereData_,g.clientPlaybackNonce_)};
W9F=function(g){var r,E;return _.q(function(B){if(B.nextAddress==1)return _.D(B,g.playerProvider_().getPlayerPromise(),2);r=B.yieldResult;E=r.getPlayerState();return B.return(E==-1||E==1||E==3)})};
_.xlz=function(g,r){var E;_.q(function(B){if(B.nextAddress==1){if(g.isUserPredictedAbsent_==r)return B.jumpTo(0);g.isUserPredictedAbsent_=r;return _.D(B,g.playerProvider_().getPlayerPromise(),3)}E=B.yieldResult;E.setUserEngagement(r);r&&_.VL("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.PE(),g.youThereData_,g.clientPlaybackNonce_);_.Q3(B)})};
iy=function(g,r){if(_.Y("handle_service_request_actions")||_.Y("kevlar_youthere_service_endpoint_actions_killswitch"))_.uq(g.actionSenderElement_,r,g.actionSenderElement_);else{r=_.U(r);for(var E=r.next();!E.done;E=r.next())E=E.value,E.commandMetadata&&E.commandMetadata.webCommandMetadata&&E.commandMetadata.webCommandMetadata.sendPost?_.q2(g.actionSenderElement_,[E]):_.uq(g.actionSenderElement_,[E],g.actionSenderElement_)}};var Xqt;var Net;var L_=function(){var g=_.a.apply(this,arguments)||this;g.systemIcons=_.Y("kevlar_system_icons");g.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return g};
_.f(L_,_.a);L_.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var g=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(g=this.data.percentIfLiked||0,this.activated=!0):(g=this.data.percentIfIndifferent||0,this.activated=!1);_.S3(this.hostElement).querySelector("#like-bar").style.width=g+"%"}};
L_.prototype.handleUpdateSentimentBarStateCommand=function(g){this.data&&this.set("data.likeStatus",_.n(g,bpz).likeStatus)};
L_.prototype.observeLikeStatus=L_.prototype.observeLikeStatus;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],L_.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],L_.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],L_.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],L_.prototype,"activated",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],L_.prototype,"systemIcons",void 0);_.m([_.Gb("data.likeStatus"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],L_.prototype,"observeLikeStatus",null);_.m([_.N({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],L_);
_.I(L_,"ytd-sentiment-bar-renderer",function(){if(Net!==void 0)return Net;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Net=g},{mode:1});var Ig4;var Vf=function(){var g=_.a.apply(this,arguments)||this;g.small=!0;return g};
_.f(Vf,_.a);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Vf.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Vf.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Vf.prototype,"small",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],Vf);
_.I(Vf,"ytd-video-view-count-renderer",function(){if(Ig4!==void 0)return Ig4;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Ig4=g},{mode:_.My("kevlar_poly_si_batch_j080")?1:2});var hv=function(){var g=_.a.apply(this,arguments)||this;g.infoFormattedStrings=[];g.wrapVideoActions=_.Y("kevar_watch_wrap_video_actions");g.hideSentimentBar=_.Y("kevlar_watch_hide_sentiment_bar");g.actionMap={};return g};
_.f(hv,_.a);_.S=hv.prototype;_.S.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.Y("web_modern_buttons"),forceIconButton:!_.Y("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.S.dataChanged=function(){_.Y("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.S.computeInfoFormattedStrings=function(g){if(!g)return[];var r=[];g.dateText&&r.push(g.dateText);g.stationName&&r.push(g.stationName);g.rating&&r.push(g.rating);g.startEndTimeTemplate&&g.startTimeUtcMillis&&g.endTimeUtcMillis&&r.push(_.Lf(_.ju6(_.Vp(g.startEndTimeTemplate),Number(g.startTimeUtcMillis),Number(g.endTimeUtcMillis))));g.upNextProgramText&&r.push(g.upNextProgramText);return r};
_.S.scheduleInitialUpdatedMetadataRequest=function(){var g,r=(g=this.data)==null?void 0:g.updatedMetadataEndpoint;if(r){var E;g=Number((E=_.n(r,_.lcA))==null?void 0:E.initialDelayMs);E=isNaN(g)?250:g;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),E)}};
_.S.setSentimentBarWidth=function(){var g=this;_.Lk(this,function(){var r=_.S3(g.hostElement).querySelector("ytd-menu-renderer");if(r){r=r.topLevelButtons;for(var E=0,B=0;B<r.length;B++){var w=r[B],O=g.get("toggleButtonSupportedData.toggleButtonIdData.id",w.data);if(O==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||O==="TOGGLE_BUTTON_ID_TYPE_LIKE")E+=w.clientWidth+8;else break}E&&(g.sentiment.style.width=E-8+" px")}})};
_.S.fetchUpdatedMetadata=function(g){var r;g&&(r={continuation:g});var E;(g=(E=this.data)==null?void 0:E.updatedMetadataEndpoint)&&_.rM().resolve(_.Er).resolveCommand(g,{form:Object.assign({},r,{element:this.hostElement})})};
_.S.onYtServiceRequestSent=function(g,r){r.endpoint&&_.n(r.endpoint,_.Nq)&&(this.hasUpdateSentimentBarStateCommands()&&!_.Y("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.n(r.endpoint,_.Nq).status),this.setSentimentBarWidth())};
_.S.hasUpdateSentimentBarStateCommands=function(){var g,r,E,B,w=(B=(g=this.data)==null?void 0:(r=g.videoActions)==null?void 0:(E=r.menuRenderer)==null?void 0:E.topLevelButtons)!=null?B:[];g=_.U(w);for(r=g.next();!r.done;r=g.next()){r=r.value;w=B=E=void 0;var O=(E=r.toggleButtonRenderer)==null?void 0:(B=E.toggleButtonSupportedData)==null?void 0:(w=B.toggleButtonIdData)==null?void 0:w.id;if(O==="TOGGLE_BUTTON_ID_TYPE_LIKE"||O==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){B=E=void 0;r=(B=_.n((E=r.toggleButtonRenderer)==
null?void 0:E.defaultServiceEndpoint,_.D$))==null?void 0:B.commands;if(!r)break;r=_.U(r);for(E=r.next();!E.done;E=r.next())if(_.n(E.value,bpz))return!0}}return!1};
_.S.onYtServiceRequestCompleted=function(g,r){var E;(g=(E=r.data)==null?void 0:E.loggingDirectives)&&_.aRA(_.pW(),g);this.get("continuation.timedContinuationData",r.data)&&this.data&&this.data.updatedMetadataEndpoint&&(r=r.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,r.continuation),r.timeoutMs))};
_.S.computeHasDateText=function(g){return!!g&&!!g.dateText};
_.hx.Object.defineProperties(hv.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var g,r,E,B;return!((B=(g=this.data)==null?void 0:(r=g.videoActions)==null?void 0:(E=r.menuRenderer)==null?void 0:E.flexibleItems)==null||!B.length)}}});
hv.prototype.onYtServiceRequestCompleted=hv.prototype.onYtServiceRequestCompleted;hv.prototype.onYtServiceRequestSent=hv.prototype.onYtServiceRequestSent;hv.prototype.dataChanged=hv.prototype.dataChanged;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],hv.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],hv.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],hv.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Zl.YtTaskEmitterBehavior),_.L("design:type",Object)],hv.prototype,"ytTaskEmitterBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],hv.prototype,"data",void 0);_.m([_.K({computed:"computeInfoFormattedStrings(data)"}),_.L("design:type",Array)],hv.prototype,"infoFormattedStrings",void 0);
_.m([_.K({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],hv.prototype,"hasDateText",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],hv.prototype,"wrapVideoActions",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],hv.prototype,"hideSentimentBar",void 0);_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],hv.prototype,"flexMenuEnabled",null);
_.m([_.zb("#sentiment"),_.L("design:type",Object)],hv.prototype,"sentiment",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],hv.prototype,"dataChanged",null);_.m([_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.XA]),_.L("design:returntype")],hv.prototype,"onYtServiceRequestSent",null);
_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.hR]),_.L("design:returntype")],hv.prototype,"onYtServiceRequestCompleted",null);
_.I(hv,"ytd-video-primary-info-renderer",function(){if(Xqt===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);Xqt=g}g=Xqt;return g},{mode:1});var mlM;var ZN=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return g};
_.f(ZN,_.a);_.S=ZN.prototype;_.S.configureRendererStamper=function(){return{subscribeButtonData:{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",params:{withCount:!0}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.S.dataChanged=function(){var g;this.descriptionToggled=!((g=this.data)==null||!g.defaultExpanded);var r;this.collapsed=this.descriptionAlwaysCollapsed||!((r=this.data)==null?0:r.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.bW(110509);this.showLessClientVe=_.bW(110510);g=_.PE();r=_.JF();g&&r&&_.I6(g,r,[this.showMoreClientVe,this.showLessClientVe])};
_.S.onYtExpanderMoreTapped=function(){var g,r=(g=this.data)==null?void 0:g.showMoreCommand;r&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(r);(g=_.PE())&&this.showMoreClientVe&&_.Lu(g,this.showMoreClientVe)};
_.S.onYtExpanderLessTapped=function(){var g=_.PE();g&&this.showLessClientVe&&_.Lu(g,this.showLessClientVe);var r;(g=(r=this.data)==null?void 0:r.showLessCommand)&&this.componentBehavior.resolveCommand(g)};
_.S.handleUpdateDateTextAction=function(g){this.data&&this.data.dateText&&this.set("data.dateText",_.n(g,_.rS$).dateText)};
_.S.handleUpdateDescriptionAction=function(g){if(g=_.n(g,_.Skw))g.isEmpty||!g.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.e_(g.description)):this.set("data.description",g.description)};
_.S.onYtChangeEngagementPanelVisibilityAction=function(g){if(_.Y("web_structured_description_show_more")||_.Y("web_engagement_panel_open_description")){var r,E=(r=_.n(g,_.Nc4))==null?void 0:r.targetId,B;g=((B=_.n(g,_.Nc4))==null?void 0:B.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";E==="engagement-panel-structured-description"&&g&&(this.descriptionToggled=!0)}};
_.S.updateCollapsedFromBinding=function(g){this.collapsed=g.detail.value};
_.S.updateDescriptionToggledFromBinding=function(g){this.descriptionToggled=g.detail.value};
_.S.updateCanCollapseFromBinding=function(g){this.canCollapse=g.detail.value};
_.hx.Object.defineProperties(ZN.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var g,r,E=(g=this.data)==null?void 0:(r=g.metadataRowContainer)==null?void 0:r.metadataRowContainerRenderer;return!!E&&!!E.rows&&E.rows.length>E.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.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}}});
ZN.prototype.onYtExpanderLessTapped=ZN.prototype.onYtExpanderLessTapped;ZN.prototype.onYtExpanderMoreTapped=ZN.prototype.onYtExpanderMoreTapped;ZN.prototype.dataChanged=ZN.prototype.dataChanged;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],ZN.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ZN.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],ZN.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],ZN.prototype,"componentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ZN.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Boolean)],ZN.prototype,"collapsed",void 0);_.m([_.K(),_.L("design:type",Boolean)],ZN.prototype,"descriptionToggled",void 0);
_.m([_.K(),_.L("design:type",Boolean)],ZN.prototype,"canCollapse",void 0);_.m([_.K(),_.L("design:type",Object)],ZN.prototype,"subscribeButtonData",void 0);_.m([_.K(),_.L("design:type",Number)],ZN.prototype,"descriptionCollapsedHeight",void 0);_.m([_.K(),_.L("design:type",Object)],ZN.prototype,"structuredDescriptionContentRenderer",void 0);_.m([_.K({value:function(){return _.Y("web_watch_description_always_collapsed")}}),
_.L("design:type",Boolean)],ZN.prototype,"descriptionAlwaysCollapsed",void 0);_.m([_.zb("#description"),_.L("design:type",HTMLDivElement)],ZN.prototype,"description",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ZN.prototype,"dataChanged",null);_.m([_.ob("yt-expander-more-tapped"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ZN.prototype,"onYtExpanderMoreTapped",null);
_.m([_.ob("yt-expander-less-tapped"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ZN.prototype,"onYtExpanderLessTapped",null);_.m([_.W("data.metadataRowContainer"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],ZN.prototype,"metadataCollapsible",null);_.m([_.W("data","structuredDescriptionContentRenderer"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],ZN.prototype,"hasInlineStructuredDescription",null);
_.m([_.W("data.attributedDescription"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],ZN.prototype,"hasAttributedDescription",null);_.m([_.W("hasInlineStructuredDescription","collapsed"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],ZN.prototype,"loadStructuredDescription",null);_.m([_.W("data","structuredDescriptionContentRenderer","collapsed"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],ZN.prototype,"showInlineStructuredDescription",null);
_.m([_.W("data","hasInlineStructuredDescription","metadataCollapsible"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],ZN.prototype,"descriptionAlwaysCollapsible",null);
_.I(ZN,"ytd-video-secondary-info-renderer",function(){if(mlM===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);mlM=g}g=mlM;return g},{mode:2});var cVg;var yf=function(){return _.a.apply(this,arguments)||this};
_.f(yf,_.a);yf.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:_.Y("web_modern_buttons"),forceIconButton:!_.Y("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
yf.prototype.activate=function(g){g.appendTo(this.player);g.getPlayerPromise().then(function(r){r.setMinimized(!0)});
this.active=!0};
yf.prototype.deactivate=function(){var g=this.player.firstElementChild;g.getPlayerPromise().then(function(r){r.setMinimized(!1)});
this.active=!1;return g};
yf.prototype.onScrollUpTap=function(){var g=_.rM().resolve(_.vK).getCurrentPage();g&&g.setScrollTop(0)};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],yf.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],yf.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],yf.prototype,"componentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],yf.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],yf.prototype,"active",void 0);
_.m([_.K({reflectToAttribute:!0,value:function(){return _.Y("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.L("design:type",Boolean)],yf.prototype,"darkLaunch",void 0);_.m([_.zb("#player"),_.L("design:type",HTMLDivElement)],yf.prototype,"player",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],yf);
_.I(yf,"ytd-miniplayer-bar-renderer",function(){if(cVg!==void 0)return cVg;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return cVg=g},{mode:1});_.BK(_.dG(function(g){var r=_.VI("script");_.bQ(function(){var E;if(E=JSON)E=$l5(g.data()),E=_.XE(JSON.stringify(E).replace(/</g,"\\u003C"));var B=g.data(),w=_.Vp(B.title).trim().length===0,O=!B.publishDate||B.publishDate.trim().length===0,M,u,l,Q,z=!((M=B.thumbnail)==null?0:(u=M.thumbnails)==null?0:u.length)||!((l=B.thumbnail)==null?0:l.thumbnails[0].url)||((Q=B.thumbnail)==null?void 0:Q.thumbnails[0].url.trim().length)===0;r.value&&E&&!(w||O||z)&&_.IC(r.value,E)},"I9AhLd");
return _.G("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.G("script",{el:r,type:"application/ld+json"}))},"Kj"),"player-microformat-renderer",{props:{data:_.EB}});
}catch(e){_._DumpException(e)}
try{
var vE$,Be6;_.yu8=function(g){return g.watch.watchWindowSize};
vE$=function(g,r,E,B){if(g.isLockupToWatchTransitionEnabled){if(r){var w={};g.viewTransitionCoordinator.registerElement(r,(w["lockup-to-watch"]="player-lockup-to-watch",w["watch-next-appears"]="player-watch-next-loaded",w))}E&&(r={},g.viewTransitionCoordinator.registerElement(E,(r["lockup-to-watch"]="below-lockup-to-watch",r["watch-next-appears"]="below-watch-next-loaded",r)));B&&(E={},g.viewTransitionCoordinator.registerElement(B,(E["watch-next-appears"]="secondary-watch-next-loaded",E)))}};
_.dWz=function(g){return _.Bs({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:g}})};
Be6=function(g){_.f5.call(this);var r=this;this.JSC$20619_watchApi=g;g=_.Gm(_.Zz(),_.tiA,function(){Tit(r)});
this.addOnDisposeCallback(g);g=_.Gm(_.Zz(),_.yu8,function(){Tit(r)});
this.addOnDisposeCallback(g);gMm(this);rVM(this);EMz()};
_.f(Be6,_.f5);var gMm=function(g){var r=function(B){_.Zz().dispatch(_.Y1v(B.matches))},E=window.matchMedia("(max-width: "+(999+_.bH())+"px)");
E.addListener(r);g.addOnDisposeCallback(function(){E.removeListener(r)});
r(E)},rVM=function(g){g.JSC$20619_watchApi.registerActionHandler("yt-window-resized",function(){EMz()});
g.addOnDisposeCallback(function(){g.JSC$20619_watchApi.unregisterActionHandler("yt-window-resized")})},EMz=function(){var g=_.ny();
_.Zz().dispatch(_.Bs({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:g.width,height:g.height}}}))},Tit=function(g){var r;
_.q(function(E){if(E.nextAddress==1)return _.D(E,g.JSC$20619_watchApi.playerApi,2);r=E.yieldResult;r.setSize(NaN,NaN);_.Q3(E)})};var wqm=function(g){_.f5.call(this);var r=_.rM().resolve(_.HQ);vE$(r,g.getElement("PLAYER_CONTAINER"),g.getElement("BELOW_THE_PLAYER"),g.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var E=g.getElement("PLAYER_CONTAINER"),B=g.getElement("BELOW_THE_PLAYER"),w=g.getElement("SECONDARY");r.isLockupToWatchTransitionEnabled&&(E&&_.I$(r.viewTransitionCoordinator,E),B&&_.I$(r.viewTransitionCoordinator,B),w&&_.I$(r.viewTransitionCoordinator,w))})};
_.f(wqm,_.f5);_.aW=function(g){_.ZF.call(this);var r=this;this.rootElement=g;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return r.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(E){r.initOrDisposeActiveModules(E)}));
this.onAttached()};
_.f(_.aW,_.ZF);_.S=_.aW.prototype;_.S.getRoot=function(){return this.rootElement};
_.S.getElement=function(g){return this.rootElement.getElement(g)};
_.S.setPlayerResponse=function(g){this.playerResponse=g;this.publish("PLAYER_RESPONSE_UPDATED",g)};
_.S.getPlayerResponse=function(){return this.playerResponse};
_.S.setWatchNextResponse=function(g){this.watchNextResponse===g?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=g,this.publish("WATCH_NEXT_RESPONSE_UPDATED",g))};
_.S.getWatchNextResponse=function(){return this.watchNextResponse};
_.S.registerActionHandler=function(g,r){var E=this;if(_.Y("web_watch_controller_reg_multiple_handlers_killswitch")){var B={};_.cf(_.mH.getInstance(),(B[g]=r,B),this.getRoot())}else this.actionHandlers.has(g)||(this.actionHandlers.set(g,[]),B={},_.cf(_.mH.getInstance(),(B[g]=function(){var w=_.fI.apply(0,arguments);return(E.actionHandlers.get(g)||[]).map(function(O){return O.apply(null,_.jW(w))})},B),this.getRoot())),this.actionHandlers.get(g).push(r)};
_.S.unregisterActionHandler=function(g){if(_.Y("web_watch_controller_reg_multiple_handlers_killswitch")){var r={};_.i2(_.mH.getInstance(),(r[g]=!0,r),this.getRoot())}else(r=this.actionHandlers.get(g))?(r.pop(),r.length===0&&(r={},_.i2(_.mH.getInstance(),(r[g]=!0,r),this.getRoot()),this.actionHandlers.delete(g))):_.el(new _.Rj("Attempted to unregister an action handler which is not registered.",g))};
_.S.addPageDisposeJob=function(g){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.LL(this.rootElement.pageDisposeJobs,g)};
_.S.removePageDisposeJob=function(g){this.rootElement.pageDisposeJobs&&_.ht(this.rootElement.pageDisposeJobs,g)};
_.S.dispatchEvent=function(g,r){_.Sh(this.rootElement,g,r)};
_.S.provideRenderingData=function(g,r){this.rootElement.provideRenderingData(g,r)};
_.S.scrollWatchTo=function(g,r){var E;(E=this.watchScrollManager)==null||E.scrollWatchTo(g,r)};
_.S.focusOnPlayer=function(){var g=this.getElement("PLAYER");_.Lk(g,function(){if(g&&g.firstElementChild){var r=g.querySelector(".html5-video-player");r&&(_.L4(_.rM().resolve(_.PK)),r.focus())}else _.el(Error("rm"))})};
_.S.updateCinematicFullscreenConfig=function(){if(_.Y("web_cinematic_manager_redux_killswitch")){var g=!!this.rootElement.theater,r=!!this.rootElement.fullscreen,E;(E=this.watchCinematicManager)==null||_.tv(E,r,g)}};
_.S.subscribeToActiveChanged=function(g,r){r=r===void 0?!0:r;var E=_.Gm(_.Zz(),_.Adv,function(B){g(B)});
r&&g(_.Adv(_.Zz().getState()));return E};
_.S.isActive=function(){return _.Adv(_.Zz().getState())};
_.S.onAttached=function(){var g=_.Y("external_fullscreen");_.Y("use_unified_flag_accessor")&&(g=_.rM().resolve(_.h45).retriever.getFlag(_.MnZ));(g||_.Ka("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var SOt=function(g){return g.getRoot().is==="ytd-watch-flexy"||g.getRoot().is==="ytd-watch-grid"},XV=function(g){return g.getRoot().is==="ytd-watch-fixie"};
_.aW.prototype.initPersistentModules=function(){if(XV(this)||SOt(this)&&_.Y("kevlar_watch_flexy_theater_manager")){var g=new _.fS4(this);_.oO(this,g)}g=new _.qKM(this);_.oO(this,g);g=new _.Av(this);_.oO(this,g);g=new _.C_(this);_.oO(this,g);g=new _.xWM(this);_.oO(this,g);g=new _.Jv(this);_.oO(this,g);if(XV(this)||SOt(this)&&_.Y("kevlar_watch_flexy_playlist_manager"))g=new _.Ni6(this),_.oO(this,g);_.Y("web_thumbnail_to_watch_transition")&&(g=new wqm(this),_.oO(this,g))};
_.aW.prototype.initOrDisposeActiveModules=function(g){g?(this.watchScrollManager=new _.x_(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.spv(this)),this.activeModules.push(new _.bS6(this)),XV(this)&&this.activeModules.push(new Be6(this)),this.activeModules.push(new _.Vc4(this)),this.activeModules.push(new _.K_(this)),(XV(this)||_.Y("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.Fi5(this)),this.activeModules.push(new _.Jum(this)),
(XV(this)||_.Y("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.ZE4(this)),(XV(this)||_.Y("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.N1L(this)),_.Y("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.Ljv(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.Y("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.eJ$(this)),_.Y("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.UW$(this)),
g=_.Y("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.Y("kevlar_watch_flexy_comments_manager")&&!g&&this.activeModules.push(new _.EEF(this)),_.Y("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.by(this)),this.activeModules.push(new _.Fj5(this)),this.activeModules.push(new _.$W4(this)),_.Y("web_enable_timely_actions")&&this.activeModules.push(new _.KjM(this)),_.Y("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.Sjv(this)),
_.Y("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.yP5(this)),_.Y("web_fullscreen_components")&&this.activeModules.push(new _.Ki5(this)),_.Y("web_player_rtr_ctrls")&&this.activeModules.push(new _.UGA(this))):(_.gY(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.aW.prototype.disposeInternal=function(){_.ZF.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.hx.Object.defineProperties(_.aW.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var plM,$S,YJL,Re$,sgM,fv8,nsL,$LA;plM=function(){var g=_.R6();g.info||(g.info={});return g.info};
$S=function(g){return Math.round(_.$g()+g)};
YJL=function(){var g;if(_.Y("csi_use_performance_navigation_timing")){var r,E,B,w=_.fu==null?void 0:(g=_.fu.getEntriesByType)==null?void 0:(r=g.call(_.fu,"navigation"))==null?void 0:(E=r[0])==null?void 0:(B=E.toJSON)==null?void 0:B.call(E);w?(w.requestStart=$S(w.requestStart),w.responseEnd=$S(w.responseEnd),w.redirectStart=$S(w.redirectStart),w.redirectEnd=$S(w.redirectEnd),w.domainLookupEnd=$S(w.domainLookupEnd),w.connectStart=$S(w.connectStart),w.connectEnd=$S(w.connectEnd),w.responseStart=$S(w.responseStart),
w.secureConnectionStart=$S(w.secureConnectionStart),w.domainLookupStart=$S(w.domainLookupStart),w.isPerformanceNavigationTiming=!0,g=w):g=_.fu.timing}else g=_.Y("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.fu.timing)):_.fu.timing;return g};
Re$=function(){if(_.fu.getEntriesByType){var g=_.fu.getEntriesByType("paint");if(g=_.aX(g,function(E){return E.name==="first-paint"}))return $S(g.startTime)}var r;
_.Y("csi_use_performance_navigation_timing")?r=_.fu.getEntriesByType("first-paint")[0].startTime:r=_.fu.timing.msFirstPaint;return r?Math.max(0,r):0};
sgM=function(){var g=window.location.protocol,r=_.fu.getEntriesByType("resource");r=_.BL(r,function(E){return E.name.indexOf(g+"//fonts.gstatic.com/s/")===0});
(r=nsL(r,function(E,B){return B.duration>E.duration?B:E}))&&r.startTime>0&&r.responseEnd>0&&(_.jh("wffs",$S(r.startTime)),_.jh("wffe",$S(r.responseEnd)))};
fv8=function(g,r){g=document.querySelector(g);if(!g)return!1;var E="",B=g.nodeName;B==="SCRIPT"?(E=g.src,E||(E=g.getAttribute("data-timing-href"))&&(E=window.location.protocol+E)):B==="LINK"&&(E=g.href);_.xU(document)&&g.setAttribute("nonce",_.xU(document));return E?(g=_.fu.getEntriesByName(E))&&g[0]&&(g=g[0],E=_.$g(),_.jh("rsf_"+r,E+Math.round(g.fetchStart)),_.jh("rse_"+r,E+Math.round(g.responseEnd)),g.transferSize!==void 0&&g.transferSize===0)?!0:!1:!1};
_.jj=function(g,r){_.aa(function(){_.sS("").info.actionType=g;r&&_.W0("TIMING_AFT_KEYS",r);_.W0("TIMING_ACTION",g);var E=_.VYB(_.Ca("TIMING_INFO",{}));Object.keys(E).length>0&&_.Ag(E);E={isNavigation:!0,actionType:_.eqQ(_.Ca("TIMING_ACTION"))};var B=_.Ca("PREVIOUS_ACTION");B&&(E.previousAction=_.eqQ(B));if(B=_.Ca("CLIENT_PROTOCOL"))E.httpProtocol=B;if(B=_.Ca("CLIENT_TRANSPORT"))E.transportProtocol=B;(B=_.PE())&&B!=="UNDEFINED_CSN"&&(E.clientScreenNonce=B);B=_.LTS();if(B===1||B===-1)E.isVisible=!0;
B=_.$cB().loadType==="cold";var w=plM();B||(B=w.yt_lt==="cold");if(B){E.loadType="cold";B=plM();w=YJL();var O=_.$g(),M=_.Ca("CSI_START_TIMESTAMP_MILLIS",0);M>0&&!_.Y("embeds_web_enable_csi_start_override_killswitch")&&(O=M);O&&(_.jh("srt",w.responseStart),B.prerender!==1&&_.aXX(O));B=Re$();B>0&&_.jh("fpt",B);B=YJL();B.isPerformanceNavigationTiming&&_.Ag({performanceNavigationTiming:!0},void 0);_.jh("nreqs",B.requestStart,void 0);_.jh("nress",B.responseStart,void 0);_.jh("nrese",B.responseEnd,void 0);
B.redirectEnd-B.redirectStart>0&&(_.jh("nrs",B.redirectStart,void 0),_.jh("nre",B.redirectEnd,void 0));B.domainLookupEnd-B.domainLookupStart>0&&(_.jh("ndnss",B.domainLookupStart,void 0),_.jh("ndnse",B.domainLookupEnd,void 0));B.connectEnd-B.connectStart>0&&(_.jh("ntcps",B.connectStart,void 0),_.jh("ntcpe",B.connectEnd,void 0));B.secureConnectionStart>=_.$g()&&B.connectEnd-B.secureConnectionStart>0&&(_.jh("nstcps",B.secureConnectionStart,void 0),_.jh("ntcpe",B.connectEnd,void 0));_.fu&&"getEntriesByType"in
_.fu&&sgM();B=[];if(document.querySelector&&_.fu&&_.fu.getEntriesByName)for(var u in $LA)$LA.hasOwnProperty(u)&&(w=$LA[u],fv8(u,w)&&B.push(w));if(B.length>0)for(E.resourceInfo=[],u=_.U(B),B=u.next();!B.done;B=u.next())E.resourceInfo.push({resourceCache:B.value})}_.Ag(E);E=_.nu();E.preLoggedGelInfos||(E.preLoggedGelInfos=[]);u=E.preLoggedGelInfos;E=_.A1Q();B=void 0;for(w=0;w<u.length;w++)if(O=u[w],O.loadType){B=O.loadType;break}if(_.$cB().loadType==="cold"&&(E.loadType==="cold"||B==="cold")){B=_.j2J();
w=_.nu();w=w.gelTicks?w.gelTicks:w.gelTicks={};for(var l in B)if(!(l in w))if(typeof B[l]==="number")_.jh(l,_.bq(l));else if(_.Y("log_repeated_ytcsi_ticks"))for(O=_.U(B[l]),M=O.next();!M.done;M=O.next())M=M.value,_.jh(l.slice(1),M);l={};B=!1;u=_.U(u);for(w=u.next();!w.done;w=u.next())B=w.value,_.WE(E,B),_.WE(l,B),B=!0;B&&_.Ag(l)}_.v0Q(!0);l=_.Ca("TIMING_ACTION");_.XS("ytglobal.timingready_")&&l&&_.U4B()&&_.y1Y()&&_.c1X()})()};
nsL=function(g,r){return Array.prototype.reduce.call(g,r,{duration:0})};
$LA={'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 jg$={};jg$.YtVisibilityRootBehavior=[_.UBD.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.TM(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.Ca("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var g=_.Ca("INNERTUBE_CLIENT_NAME")!=="WEB";_.Y("kevlar_use_vimio_behavior")&&g&&_.wdI()}}];_.AP={};_.AP.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(g){g.detail.contextProvider=this;g.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
jg$.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.iW();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(g){var r=this;this.pageCount+=1;_.Y("kevlar_use_vimio_behavior")&&(_.Ca("INNERTUBE_CLIENT_NAME")==="WEB"?_.F6.addJob(function(){r.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(g)},
loadPage_:function(g){this.data=g},
ytPageBehaviorActiveObserver_:function(g){var r=this;_.Y("kevlar_use_vimio_behavior")&&(g?_.Ca("INNERTUBE_CLIENT_NAME")==="WEB"?_.F6.addJob(function(){r.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(g){if(!this.setScrollTopJobId_){var r=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){r.setScrollTopJobId_=0;var E=_.rM().resolve(_.gM(_.PK));E&&_.L4(E);this.getPageScrollingElement().scrollTop=g}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.Y4(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var Hb6;var fS=function(){var g=_.a.apply(this,arguments)||this;g.playerListenerConfig=null;g.actionMap={"yt-show-watch-page-survey":"openSurvey"};return g};
_.f(fS,_.a);_.S=fS.prototype;_.S.dataChanged=function(){var g=this,r=_.Tw();r&&r.getPlayerPromise().then(function(B){g.maybeRemovePlayerListeners(B)});
var E=this.data&&this.data.survey;E&&((E=(E=E.singleOptionSurveyRenderer||E.checkboxSurveyRenderer||E.multiStageSurveyRenderer)&&E.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(r,E):this.openSurvey())};
_.S.triggerWatchPageSurvey=function(g,r){var E=this,B,w,O,M,u,l,Q,z,k;return _.q(function(H){if(H.nextAddress==1)return g?_.D(H,g.getPlayerPromise(),2):H.return();E.player=H.yieldResult;if(!E.player)return H.return();B={};w=_.U(r);for(O=w.next();!O.done;O=w.next())M=O.value,u=_.U(E.createEventListenerPair(M)),l=u.next().value,Q=u.next().value,z=l,k=Q,z&&k&&(B[z]=k,E.ytPlayerListenerBehavior.listenToPlayerEvent(E.player,z,k));E.playerListenerConfig=B;_.Q3(H)})};
_.S.createEventListenerPair=function(g){var r=g.playbackEventTrigger;return r?this.handlePlaybackTrigger(r):(g=g.watchTimeTrigger)?this.handleWatchTimeTrigger(g):[void 0,void 0]};
_.S.handleWatchTimeTrigger=function(g){var r=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var E=g.videoWatchFraction,B=g.watchTimeSec;return B&&E?["onVideoProgress",function(){r.player&&r.isWatchTimeConditionMet(r.player,E,B)&&r.showSurvey()}]:[void 0,
void 0]};
_.S.isWatchTimeConditionMet=function(g,r,E){var B=g.getProgressState(),w=B.current-this.lastKnownPlaybackPosition;w<5&&(this.accumulatedMediaTime+=w);this.lastKnownPlaybackPosition=B.current;B=Math.round(this.accumulatedMediaTime/B.duration*1E3)/1E3;return g.getPresentingPlayerType&&g.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>E||B>r)};
_.S.handlePlaybackTrigger=function(g){var r=this;g=g.playbackEvent;if(g==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var E="onStateChange";var B=function(w){w===0&&r.showSurvey()}}else g==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(E="onVideoProgress",B=function(w){r.player&&r.player.getPresentingPlayerType&&r.player.getPresentingPlayerType()===1&&w&&r.showSurvey()}):g==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(E="onAdEnd",B=this.showSurvey);
return[E,B]};
_.S.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.S.openSurvey=function(){var g=this,r=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.NMv(!!r));_.F6.addJob(function(){g.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:r}})},0,0)};
_.S.maybeRemovePlayerListeners=function(g){if(this.playerListenerConfig){for(var r=_.U(Object.keys(this.playerListenerConfig)),E=r.next();!E.done;E=r.next())E=E.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(g,E,this.playerListenerConfig[E]);this.playerListenerConfig=null}};
fS.prototype.dataChanged=fS.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],fS.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.cY),_.L("design:type",Object)],fS.prototype,"ytdOpenPopupBehavior",void 0);_.m([_.P(_.a9.YtPlayerListenerBehavior),_.L("design:type",_.X0)],fS.prototype,"ytPlayerListenerBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],fS.prototype,"ytActionHandlerBehavior",void 0);
_.m([_.P(_.Ai),_.L("design:type",Object)],fS.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],fS.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],fS.prototype,"playerListenerConfig",void 0);_.m([_.K({value:0}),_.L("design:type",Number)],fS.prototype,"lastKnownPlaybackPosition",void 0);_.m([_.K({value:0}),_.L("design:type",Number)],fS.prototype,"accumulatedMediaTime",void 0);_.m([_.K(),_.L("design:type",Object)],fS.prototype,"player",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],fS.prototype,"dataChanged",null);_.m([_.N({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],fS);
_.I(fS,"ytd-survey-trigger-renderer",function(){if(Hb6!==void 0)return Hb6;var g=document.createElement("template");_.b(g,"\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");g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return Hb6=g},{mode:1});
}catch(e){_._DumpException(e)}
try{
var qsv=new _.V("promotedSparklesWebRenderer");var uUM=new _.V("relatedChipCommand");var lMv;var D5v;var kE=function(){return _.a.apply(this,arguments)||this};
_.f(kE,_.a);kE.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],kE.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],kE.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],kE.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],kE);
_.I(kE,"ytd-compact-tvfilm-entry-point-renderer",function(){if(D5v!==void 0)return D5v;var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return D5v=g},{mode:1});var o6M;var GXv;var Qu5;var HZ=function(){return _.a.apply(this,arguments)||this};
_.f(HZ,_.a);HZ.prototype.ready=function(){this.initializeDefs()};
HZ.prototype.initializeDefs=function(){var g=this.meta.byKey("yt-icons"),r=_.S3(g).querySelector("#star"),E=_.S3(g).querySelector("#star_half");g=_.S3(g).querySelector("#star_border");r&&this.defs.appendChild(r.cloneNode(!0));E&&this.defs.appendChild(E.cloneNode(!0));g&&this.defs.appendChild(g.cloneNode(!0))};
HZ.prototype.percentChanged=function(){for(var g=this.rating;g.firstChild;)g.removeChild(g.firstChild);var r=Math.round(this.percent/10);g=Math.floor(r/2);r%=2;var E=5-g-r;this.appendStars("star",g,0);this.appendStars("star_half",r,g);this.appendStars("star_border",E,g+r)};
HZ.prototype.appendStars=function(g,r,E){for(var B=0;B<r;B++){var w=(18+this.spacing)*(B+E),O=document.createElementNS("http://www.w3.org/2000/svg","use");_.YYg(O,"#"+g);O.setAttribute("x",""+w);O.setAttribute("y","0");this.rating.appendChild(O)}};
HZ.prototype.percentChanged=HZ.prototype.percentChanged;_.m([_.zb("#defs"),_.L("design:type",HTMLElement)],HZ.prototype,"defs",void 0);_.m([_.zb("#rating"),_.L("design:type",HTMLElement)],HZ.prototype,"rating",void 0);_.m([_.K(),_.L("design:type",Number)],HZ.prototype,"percent",void 0);_.m([_.K({value:6}),_.L("design:type",Number)],HZ.prototype,"spacing",void 0);_.m([_.K({value:_.Qo.create("iron-meta",{type:"iconset"})}),_.L("design:type",_.Yv)],HZ.prototype,"meta",void 0);
_.m([_.Gb("percent"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],HZ.prototype,"percentChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-ratings"})],HZ);
_.I(HZ,"ytd-ratings",function(){if(Qu5!==void 0)return Qu5;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Qu5=g},{mode:1});var pE=function(){return _.a.apply(this,arguments)||this};
_.f(pE,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],pE.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],pE.prototype,"data",void 0);_.m([_.N({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],pE);
_.I(pE,"ytd-offer-review-renderer",function(){if(GXv!==void 0)return GXv;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return GXv=g},{mode:1});var YE=function(){var g=_.a.apply(this,arguments)||this;g.badges=[{textBadge:{label:_.Lf("CC")}}];return g};
_.f(YE,_.a);_.S=YE.prototype;_.S.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.S.dataChanged=function(){var g=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(g&&g.commandMetadata&&_.n(g.commandMetadata,_.nY)&&_.n(g.commandMetadata,_.nY).fireAutomatically)_.rM().resolve(_.Er).resolveCommand(g,{form:{element:this.hostElement}});else{var r;g&&((r=_.n(g,_.nY))==null?0:r.fireAutomatically)&&_.rM().resolve(_.Er).resolveCommand(g,{form:{element:this.hostElement}})}};
_.S.isEmptyContent=function(g){return this.isStorefrontEntryPointEmpty(g)&&this.shouldHideOfferModule(g)};
_.S.isStorefrontEntryPointEmpty=function(g){return!g||!g.storefrontEntryPoint};
_.S.shouldHideOfferModule=function(g){return!!g.hideVideoDetails};
_.S.isOfferModuleNavigationInactive=function(g){return!g.navigationEndpoint&&!g.serviceEndpoint};
_.S.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.rM().resolve(_.Er).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
YE.prototype.dataChanged=YE.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],YE.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],YE.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],YE.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.L("design:type",Boolean)],YE.prototype,"hidden",void 0);
_.m([_.K(),_.L("design:type",Object)],YE.prototype,"badges",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],YE.prototype,"dataChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],YE);
_.I(YE,"ytd-movie-offer-module-renderer",function(){if(o6M!==void 0)return o6M;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return o6M=g},{mode:1});var zAt;var Rp=function(){return _.a.apply(this,arguments)||this};
_.f(Rp,_.a);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Rp.prototype,"componentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Rp.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],Rp);
_.I(Rp,"ytd-media-masthead-renderer",function(){if(zAt!==void 0)return zAt;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return zAt=g},{mode:1});var kXF;_.BK(_.l9z,"course-metadata-view-model",{props:{data:_.EB,isOverlay:_.EB}});var nE=function(){var g=_.a.apply(this,arguments)||this;g.isMetadataVisible=!1;g.modernPanels=_.Y("kevlar_watch_modern_panels");g.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return g};
_.f(nE,_.a);_.S=nE.prototype;
_.S.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.expandMetadataButton":{id:"expand-metadata-button",mapping:{toggleButtonViewModel:{component:"yt-toggle-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.masthead":{id:"masthead",mapping:{mediaMastheadRenderer:{component:"ytd-media-masthead-renderer"},channelMastheadRenderer:{component:"ytd-channel-masthead-renderer",params:{isInOfferModule:!0}}}},
"data.expandedMetadata":{id:"expanded-metadata",mapping:{courseMetadataViewModel:{component:"course-metadata-view-model"}}}}};
_.S.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.S.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.S.expanderChanged=function(){var g;if((g=this.data)==null?0:g.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.S.isExpandButtonToggled=function(){var g,r;return(r=_.n((g=this.data)==null?void 0:g.expandMetadataButton,_.sg))==null?void 0:r.isToggled};
_.S.onVisibilityButtonClick=function(){var g;if((g=this.data)==null?0:g.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.S.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
nE.prototype.expanderChanged=nE.prototype.expanderChanged;nE.prototype.dataChanged=nE.prototype.dataChanged;nE.prototype.descriptionChanged=nE.prototype.descriptionChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],nE.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],nE.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P([_.gN.YtActionHandlerBehavior]),_.L("design:type",Object)],nE.prototype,"actionHandlerBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],nE.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],nE.prototype,"isMetadataVisible",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],nE.prototype,"modernPanels",void 0);_.m([_.zb("#expander"),_.L("design:type",Object)],nE.prototype,"expander",void 0);_.m([_.Gb("data.description"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],nE.prototype,"descriptionChanged",null);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],nE.prototype,"dataChanged",null);_.m([_.Gb("isMetadataVisible"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],nE.prototype,"expanderChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],nE);
_.I(nE,"ytd-tvfilm-offer-module-renderer",function(){if(kXF!==void 0)return kXF;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return kXF=g},{mode:2});var HFF;var sK=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return g};
_.f(sK,_.a);sK.prototype.dataChanged=function(){this.hostElement.hidden=!1};
sK.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
sK.prototype.onThumbnailTap=function(g){this.data&&this.data.serviceEndpoint&&(_.rM().resolve(_.Er).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),g.stopPropagation())};
sK.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
sK.prototype.dataChanged=sK.prototype.dataChanged;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],sK.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],sK.prototype,"rendererBehaviors",void 0);_.m([_.P([_.gN.YtActionHandlerBehavior]),_.L("design:type",Object)],sK.prototype,"actionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],sK.prototype,"data",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],sK.prototype,"dataChanged",null);_.m([_.N({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],sK);
_.I(sK,"ytd-unlimited-offer-module-renderer",function(){if(HFF!==void 0)return HFF;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return HFF=g},{mode:1});var pIt;var Ysz;var fE=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return g};
_.f(fE,_.a);fE.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
fE.prototype.handleRelatedChipCommand=function(g){g=_.n(g,uUM);var r=g.contents;r?_.US(this.hostElement,"yt-item-section-replace-action",[r,g.targetSectionIdentifier]):_.US(this.hostElement,"yt-item-section-continuation-action",[g.continuationData,g.targetSectionIdentifier])};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],fE.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],fE.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],fE.prototype,"actionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],fE.prototype,"data",void 0);_.m([_.e3({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],fE);
_.I(fE,"yt-related-chip-cloud-renderer",function(){if(Ysz===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;pIt===void 0&&(pIt=document.createElement("template"));var B=pIt;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Ysz=g}g=Ysz;return g},{mode:2});var $E=function(){var g=_.a.apply(this,arguments)||this;g.isTwoColumns=!0;g.hideOfferModules=!1;g.watchFeedBigThumbs=_.Y("kevlar_watch_feed_big_thumbs");g.watchNextGridHideChips=_.Y("kevlar_watch_grid_hide_chips");g.eligibleToSwitchToGrid=_.Y("web_watch_eligible_to_switch_to_grid");g.disableShortsShelfHeightOverride=_.Y("web_shorts_wn_shelf_ratio_tuning");g.isWatchNextGrid=!1;g.reuseComponents=!_.Y("kevlar_watch_grid");g.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return g};
_.f($E,_.a);_.S=$E.prototype;
_.S.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.Y("web_watch_grid_resize_on_observer_init_killswitch")}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[showButton]]"}}}},"data.continuations":{id:"continuations",
mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]"}}},renderPriority:0}}};
_.S.getItemsPath=function(){return"data.results"};
_.S.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.S.created=function(){this.ytLazyListBehavior.initialCount=1};
_.S.ready=function(){_.ua(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%"})};
_.S.resultsChanged=function(){if(this.data&&this.data.results){for(var g=this.data.results,r=null,E=null,B=0;B<g.length;B++)g[B].relatedChipCloudRenderer?r=g[B].relatedChipCloudRenderer:g[B].itemSectionRenderer&&(E=g[B].itemSectionRenderer);if(r&&E)for(this.set("data.continuations",[]),g=_.n(r.content,_.eMA).chips,r=0;r<g.length;r++)if(B=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",g[r]),B.loadCached||!B.contents){B.contents=E.contents;break}}};
_.S.dataChanged=function(){var g=this,r;if((r=this.data)!=null&&r.results&&this.hasAllowedInstreamAd(this.playerData)){if(r=this.data.results.filter(function(u){return!!u.promotedSparklesWebRenderer})){for(var E=0;E<r.length;E++){var B=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",r[E]);
if(B)for(var w=0;w<B.length;w++)B[w]&&B[w].baseUrl&&_.mS(B[w].baseUrl)}this.set("data.results",this.data.results.filter(function(u){return!u.promotedSparklesWebRenderer}))}if(r=this.data.results.filter(function(u){return!!g.getSparklesAd(u)})){r=_.U(r);
for(w=r.next();!w.done;w=r.next())if(B=E=void 0,w=(E=this.getSparklesAd(w.value))==null?void 0:(B=E.errorCommand)==null?void 0:B.loggingUrls)for(E=_.U(w),B=E.next();!B.done;B=E.next())(B=B.value)&&B.baseUrl&&_.mS(B.baseUrl);var O,M;this.set("data.results",(O=this.data)==null?void 0:(M=O.results)==null?void 0:M.filter(function(u){return!u.adSlotRenderer}))}}};
_.S.getSparklesAd=function(g){var r,E;g=_.n((r=g.adSlotRenderer)==null?void 0:(E=r.fulfillmentContent)==null?void 0:E.fulfilledLayout,_.Xv4);return _.n(g==null?void 0:g.renderingContent,qsv)};
_.S.hasAllowedInstreamAd=function(g){g=this.get("adPlacements",g)||[];for(var r=0;r<g.length;r++){var E=this.get("adPlacementRenderer.config.adPlacementConfig",g[r]);if(E&&E.suppressDisplayAd)return!0}return!1};
_.S.computeHideUnlimitedOfferModule=function(g,r){return g&&g.offerModule&&r&&g.offerModule.unlimitedOfferModuleRenderer&&g.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(r)?!0:!1};
_.S.hideUnlimitedOfferModuleChanged=function(){var g=_.S3(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");g&&(g.hidden=this.hideUnlimitedOfferModule)};
_.S.updateLockupContainerTypes=function(g){if(this.eligibleToSwitchToGrid){var r;(r=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||r.forEach(function(E){E.containerType=g})}};
_.S.computeHideTvfilmOfferModule=function(g,r){var E,B;return!!((g==null?0:(E=g.offerModule)==null?0:(B=E.tvfilmOfferModuleRenderer)==null?0:B.clientShouldSuppressIfCompanionAdDisplayed)&&r&&this.hasCompanionAds(r))};
_.S.hideTvfilmOfferModuleChanged=function(){var g=_.S3(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");g&&(g.hidden=this.hideTvfilmOfferModule)};
_.S.hasCompanionAds=function(g){g=this.get("adPlacements",g)||[];for(var r=0;r<g.length;r++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",g[r]))return!0;var E=void 0,B=void 0,w=void 0;if(!_.Y("web_watch_top_banner_companion_check_killswitch")&&((E=g[r])==null?0:(B=E.adPlacementRenderer)==null?0:(w=B.renderer)==null?0:w.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.S.hasSuppressedResults=function(g){return g==null?!0:g.filter(function(r){return!r.continuationItemRenderer&&!r.compactPromotedVideoRenderer&&!r.promotedSparklesWebRenderer}).length===0};
_.S.computeShowButton=function(g,r){return this.isWatchNextGrid?g:g||this.hasSuppressedResults(r)};
_.S.showButtonChanged=function(){if(this.isWatchNextGrid){var g=_.S3(this.hostElement).querySelector("ytd-rich-grid-renderer");g&&this.showButton!==null&&(g.continuationShowButton=this.showButton)}else{g=_.S3(this.hostElement).querySelector("yt-next-continuation");var r=_.S3(this.hostElement).querySelector("ytd-continuation-item-renderer"),E=_.S3(this.hostElement).querySelector("ytd-item-section-renderer");g&&(g.showButton=this.showButton);r&&(r.showButton=this.showButton);E&&(E.continuationShowButton=
this.showButton)}};
_.S.continuationTap=function(g){var r;if(((r=this.data)==null?void 0:r.continuations)!=null&&g.target.tagName==="TP-YT-PAPER-BUTTON")for(g=this.data.continuations,r=0;r<g.length;r++)g[r].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(g[r].nextContinuationData||{})};
_.S.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.x8("shown-items-changed",this.shownItems))};
_.hx.Object.defineProperties($E.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.shownItems)==null||!g.some(function(r){return!!r.lockupViewModel||r.compactVideoRenderer}))}}});
$E.prototype.shownItemsChangedForBinding=$E.prototype.shownItemsChangedForBinding;$E.prototype.showButtonChanged=$E.prototype.showButtonChanged;$E.prototype.hideTvfilmOfferModuleChanged=$E.prototype.hideTvfilmOfferModuleChanged;$E.prototype.updateLockupContainerTypes=$E.prototype.updateLockupContainerTypes;$E.prototype.hideUnlimitedOfferModuleChanged=$E.prototype.hideUnlimitedOfferModuleChanged;$E.prototype.dataChanged=$E.prototype.dataChanged;$E.prototype.resultsChanged=$E.prototype.resultsChanged;
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],$E.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],$E.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Zu.YtLazyListBehavior),_.L("design:type",Object)],$E.prototype,"ytLazyListBehavior",void 0);_.m([_.P(_.Nv.YtNextContinuationBehavior),_.L("design:type",Object)],$E.prototype,"ytNextContinuationBehavior",void 0);
_.m([_.P(_.Xe),_.L("design:type",Object)],$E.prototype,"ytContinuationHandlerBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],$E.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],$E.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],$E.prototype,"playerData",void 0);_.m([_.K({value:!0}),_.L("design:type",Boolean)],$E.prototype,"autoFill",void 0);_.m([_.K({value:60}),_.L("design:type",Number)],$E.prototype,"targetFramerate",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],$E.prototype,"isTwoColumns",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],$E.prototype,"hideOfferModules",void 0);_.m([_.K(),_.L("design:type",Object)],$E.prototype,"shownItems",void 0);_.m([_.K({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.L("design:type",Boolean)],$E.prototype,"hideUnlimitedOfferModule",void 0);
_.m([_.K({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.L("design:type",Boolean)],$E.prototype,"hideTvfilmOfferModule",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],$E.prototype,"watchFeedBigThumbs",void 0);_.m([_.K(),_.L("design:type",Object)],$E.prototype,"watchNextGridHideChips",void 0);_.m([_.K(),_.L("design:type",Object)],$E.prototype,"eligibleToSwitchToGrid",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],$E.prototype,"disableShortsShelfHeightOverride",void 0);_.m([_.K({selector:_.tf,reflectToAttribute:!0}),_.L("design:type",Object)],$E.prototype,"isGridViewEnabled",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],$E.prototype,"showMoreButton",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],$E.prototype,"isWatchNextGrid",void 0);
_.m([_.K({computed:"computeShowButton(showMoreButton, data.results)"}),_.L("design:type",Boolean)],$E.prototype,"showButton",void 0);_.m([_.Yk("data.results.*"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],$E.prototype,"resultsChanged",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],$E.prototype,"dataChanged",null);
_.m([_.Gb("hideUnlimitedOfferModule"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],$E.prototype,"hideUnlimitedOfferModuleChanged",null);_.m([_.W("isGridViewEnabled","containsLockups","data"),_.K({reflectToAttribute:!0}),_.L("design:type",Number),_.L("design:paramtypes",[])],$E.prototype,"lockupContainerType",null);
_.m([_.Gb("lockupContainerType","data"),_.L("design:type",Function),_.L("design:paramtypes",[Number]),_.L("design:returntype")],$E.prototype,"updateLockupContainerTypes",null);_.m([_.Gb("hideTvfilmOfferModule"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],$E.prototype,"hideTvfilmOfferModuleChanged",null);_.m([_.Gb("showButton"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],$E.prototype,"showButtonChanged",null);
_.m([_.Gb("shownItems"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],$E.prototype,"shownItemsChangedForBinding",null);_.m([_.W("shownItems"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],$E.prototype,"containsLockups",null);
_.I($E,"ytd-watch-next-secondary-results-renderer",function(){if(lMv===void 0){var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" hidden="[[hideOfferModules]]" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);lMv=g}g=lMv;return g},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.ipg={};
_.ipg.YtdWatchBehavior=[_.T.YtRendererBehavior,_.a9.YtPlayerListenerBehavior,_.TR.YtRendererstamperBehavior,_.gN.YtActionHandlerBehavior,_.AP.YtPageBehavior,_.DW.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},
conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,
value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Ka("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.Y("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("full_bleed_single_column_default_player")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.Ka("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerUnavailableFixedVisibility:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("web_watch_error_screen_fix")}},
playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,
value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,
reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.Y("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 _.wM("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.wM("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.Y("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.Y("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.Y("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isTwoColumns_)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.Y("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.Y("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("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 _.Y("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("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 _.Y("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var g={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:_.tZ(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.tZ(["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"||_.Y("swa_prov_panels_ks")?g.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(g.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},g.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return g},
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 g=this;this.watchController=void 0;this.pageDisposeJobs=[function(){g.showMetadataPlaceholder_()},
function(){_.Y("web_watch_dont_clear_comments")||g.clearComments_()},
function(){g.clearPlayerAds_()},
function(){g.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;_.Y("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.Y("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.P5m(function(){return _.dt(g)},this.hostElement);
this.pageDisposeJobs.push(function(){g.youThereManager_.reset()});
_.Y("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){g.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.EX;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;_.Y("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));_.Y("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Do(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(g){g&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:g}),g.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(g){_.Y("kevlar_watch_flexy_theater_manager")&&(this.theater=g,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(g){!_.Y("kevlar_watch_while_v2")&&!_.Y("web_watch_pip")||g||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(g){this.active!==void 0&&(this.fullscreen=g,_.Y("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(g){this.active!==void 0&&(_.Sh(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.Y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.Y("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(g>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(g){this.initCsi_();this.updatePageData_(g)},
updatePageData_:function(g){var r=this;if(g)if(this.data===g){this.onPageLoadWithSameData_();var E;(E=this.watchController)==null||E.setWatchNextResponse(this.data)}else this.data=g;this.playlist&&_.Pk({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.F4("nw");this.loading=!1;_.fC(_.F6,function(){r.initDclkstatus_();var B,w=((B=r.player)==null?void 0:B.getVideoData().cpn)||"";_.zQ6(function(O,M){_.Z38(O,M,w)})})},
onPageLoadWithSameData_:function(){_.Y("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 g=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!g);this.set("loadingData.playlistLoading",g&&g!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),g=this.watchNextSkeletonEl_.firstElementChild;g;)g.classList.remove("hidden"),g=g.nextElementSibling;if(_.Y("kevlar_watch_frame0_loading_state")){var r,E,B;g=(r=this.loadingData)==null?void 0:(E=r.endpoint)==null?void 0:(B=E.watchEndpoint)==null?void 0:B.videoId;var w;g&&(w="https://i.ytimg.com/vi/"+g+"/frame0.jpg");_.S3(this.hostElement).querySelector("#player").style.backgroundImage=w?"url("+w+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var g=_.S3(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&g&&(g.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var r,E;(E=(r=this.watchMetadata).updateSentimentBarWidth)==
null||E.call(r);var B,w;(w=(B=this.watchMetadata).resize)==null||w.call(B)}_.Y("kevlar_watch_frame0_loading_state")&&(_.S3(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(g){var r=_.S3(this.hostElement).querySelector(g);r?_.rX(r,!1):_.el(new _.Rj("Overscroll monitor not found for component: ",g))},
removeSplitScrollMouseTrap:function(g){var r=_.S3(this.hostElement).querySelector(g);r?_.ES(r):_.el(new _.Rj("Disposal component for  overscroll monitoring not found: ",g))},
onLoadingChanged_:function(g){g?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(g){var r=this;g?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.F6.addLowPriorityJob(function(){r.onWindowResized_(_.ny(!0))})},
updateTheaterModeState_:function(g){if(!_.Y("kevlar_watch_flexy_theater_manager")){g=g||this.fullWindowMode_;if(this.theater!==void 0||g)this.theater=g;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();g&&_.$5g()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();_.Y("web_watch_error_screen_fix")&&this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var g=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.Y("external_fullscreen")&&this.fullscreen&&(g=!0);_.Y("web_watch_error_screen_fix")&&(g=this.fullBleedPlayer);g=g?_.S3(this.hostElement).querySelector("#player-full-bleed-container"):_.S3(this.hostElement).querySelector("#player-container-inner");var r=this.getPlayerContainer(),E=_.Y("kevlar_watch_while_v2")||_.Y("web_watch_pip");r.parentElement!==g&&(E&&this.isMiniplayerActive()?
this.deactivateMiniplayerAndResetPlayer():(_.dt(this).appendTo(g,r),_.Y("web_watch_error_screen_fix")||g.appendChild(_.S3(this.hostElement).querySelector("#error-screen"))))},
updateErrorScreenLocation:function(){var g=_.S3(this.hostElement).querySelector("#error-screen"),r=this.fullBleedPlayer?_.S3(this.hostElement).querySelector("#player-full-bleed-container"):_.S3(this.hostElement).querySelector("#player");g.parentElement!==r&&r.appendChild(g)},
deactivateMiniplayerAndResetPlayer:function(){var g=this;return _.q(function(r){if(r.nextAddress==1)return _.D(r,_.rM().resolve(_.ea).deactivate(),2);g.updatePlayerLocation();_.Q3(r)})},
updateCinematicsLocation:function(){var g=this.getElement("CINEMATICS");if(g){var r=this.getCinematicsLocationContainer();g.parentElement!==r&&r.appendChild(g);var E;(E=this.watchController)==null||E.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.enableFullBleedSingleColumnDefaultPlayer&&!this.isTwoColumns_)?_.S3(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.S3(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(g,r,E){var B=document.documentElement.hasAttribute("dark"),w=B&&_.Y("web_cinematic_theater_mode"),O=B&&_.Y("web_cinematic_fullscreen");B=!B&&this.cinematicLightTheme;return E||g&&w||r&&O||(r||g)&&B},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var g=this,r;(r=this.watchController)==null||r.setWatchNextResponse(this.data);_.Y("kevlar_watch_flexy_comments_manager")||this.initComments_();_.Y("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.rM().resolve(_.t6).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,_.Y("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.F6.addLowPriorityJob(function(){_.US(g.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.Y("web_watch_start_chat_in_theater_mode")){var E,B,w;if((E=this.data)==null?0:(B=E.contents)==null?0:(w=B.twoColumnWatchNextResults)==null?0:w.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var O,M;((O=this.data)==null?0:(M=O.contents)==null?0:M.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(g){var r;(r=this.watchController)==null||r.setPlayerResponse(this.playerData);g&&g.playabilityStatus&&(r=this.isVideoPlayable_(g.playabilityStatus,this.getPlayerOverlays_(this.data)),g=this.isLiveStreamOffline_(g.playabilityStatus),r&&!g||_.Lk(this,function(){_.F4("pbu")}));
this.setPlayerAds_();_.US(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(g,r){if((_.Y("kevlar_watch_while_v2")||_.Y("web_watch_pip"))&&this.playerData&&r)return this.playerData.videoDetails},
watchPageActiveChanged_:function(g){_.Zz().dispatch(_.dWz(this.active));g?this.activate_():this.deactivate_()},
attached:function(){var g=this;this.watchController=new _.aW(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);_.Y("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var r=_.dt(this);_.Y("kevlar_disable_prepare_player")||
r.preparePlayer();_.Y("kevlar_watch_flexy_playlist_manager")||_.rM().resolve(_.t6).setPlayer(r);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();r={"--ytd-watch-flexy-scrollbar-width":_.bH()+"px"};this.is==="ytd-watch-grid"&&(r["--ytd-watch-flexy-sidebar-width"]=_.uHz+"px",r["--ytd-watch-grid-horizontal-page-margins"]=_.CE+"px",r["--ytd-watch-grid-columns-top-margins"]=_.U3D+"px",r["--ytd-watch-grid-min-player-height-medium"]="360px");!_.wM("kv_pl_mx_sz_ks")&&
_.wM("kevlar_watch_max_player_width")&&(r["--ytd-watch-flexy-max-player-width-wide-screen"]=_.le6+"px");_.wM("kevlar_watch_flexy_metadata_height")&&(r["--ytd-watch-flexy-space-below-player"]=_.D34+"px");this.safeUpdateStyles(r);_.Y("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.ql(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return g.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.S3(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var g=_.bH(),r=_.KE+g,E=r;this.fixedPanels&&(r+=_.uHz);var B=657+g;g=1327+g;_.S3(this.hostElement).querySelector("#two-column-query").query="(min-width: "+r+"px)";_.S3(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(B+"px), (min-height: 630px) and (min-width: ")+(r+"px) and (max-width: ")+(g+"px)");_.S3(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(g+"px)");
_.S3(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+E+"px)"},
calculateCurrentPlayerSize_:function(){var g=_.S3(this.hostElement).querySelector("#miniplayer-bar").firstChild,r=this.squeezeback&&!_.Y("web_watch_squeezeback_player_size_killswitch");return g&&g.active||this.theater||_.Y("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||r||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.oQ(NaN,NaN):_.my(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.my(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.TM(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var g=this;this.onWindowResized_(_.ny());_.Y("browse_skeleton_removal_on_watch_killswitch")||_.Ka("IS_SHELL_LOAD")&&_.kc$();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var r=_.dt(this);r.addEventListener("yt-player-updated",_.Do(this,this.onPlayerUpdated_));r.getPlayerPromise().then(function(E){g.playerApiReady_(E)});
_.Y("kevlar_watch_flexy_playlist_manager")||(r=_.rM().resolve(_.t6),_.Y("kevlar_watch_observe_playlist_navigations_killswitch")&&r.addEventListener("yt-navigate",_.Do(this,this.onYtNavigate_)),r.setPlaylistComponent(_.S3(this.hostElement).querySelector("#playlist")),r.addEventListener("yt-playlist-data-updated",_.Do(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.F6.addLowPriorityJob(function(){_.Sh(g.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.dt(this).removeEventListener("yt-player-updated",_.Do(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.Y("kevlar_watch_flexy_playlist_manager")){var g=_.rM().resolve(_.t6);_.Y("kevlar_watch_observe_playlist_navigations_killswitch")&&g.removeEventListener("yt-navigate",_.Do(this,this.onYtNavigate_));
g.cancelVideoSkip();g.removeEventListener("yt-playlist-data-updated",_.Do(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.Y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Sh(this.hostElement,"yt-autonav-pause-player",!1);g=_.Tr();_.Y("kevlar_exit_fullscreen_leaving_watch")&&g&&_.gX(g)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(g){this.player&&this.player.updateVideoData({rvs:g.rvs})},
getPageContents:function(g){return g&&g.contents&&g.contents.twoColumnWatchNextResults&&g.contents.twoColumnWatchNextResults.results&&g.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(g){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",g)},
onRetrieveLocation_:function(g,r){r.hasComments?r.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):r.locationRetrieved("/related_ajax",void 0);g.stopPropagation()},
onSubscriptionChanged_:function(g,r){this.player&&(r?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.jj("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.S3(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.S3(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(g){this.player=g;this.setPlayerState(g.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.Y("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.Y("kevlar_unified_player")||_.Y("kevlar_player_new_bootstrap_adoption"))&&_.iP()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(g,r){r=r===void 0?!0:r;_.Tr()&&_.Y("external_fullscreen")&&_.gX(document.documentElement);this.theaterRequested_=g;r&&_.kA("wide",g?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.OS(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Sh(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(g){_.Wf(g,typeof this.player),this.player&&_.Wf(g,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var g;((g=this.player)==null?0:g.isFullscreen())?this.player.toggleFullscreen():_.OS(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(g,r){return this.loading?r:!!Object.keys(g).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(g){if(g){g=_.U(g);for(var r=g.next();!r.done;r=g.next())r=r.value,r.youThereRenderer&&_.eQ5(this.youThereManager_,r.youThereRenderer)}},
setPlaylistData_:function(g){return g||{}},
userEngagementConfigDataChanged_:function(g){if(g)if(g.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var r=this.youThereManager_;_.Eq()<g.lowEngagementThresholdMs||_.xlz(r,!0)}else g.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.OS(this.hostElement,"yt-autonav-pause-user-engagement",[g])},
isPlayerUnavailable_:function(g,r,E){return!!g&&!this.isVideoPlayable_(g,E)&&!r},
getPlayerOverlays_:function(g){return(g==null?void 0:g.playerOverlays)||null},
isVideoPlayable_:function(g,r){if(!g)return!1;var E=g.status==="OK"||g.status==="LIVE_STREAM_OFFLINE",B=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",g)||this.get("errorScreen.ypcTrailerRenderer",g);g=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",g);var w;r=r==null?void 0:(w=r.playerOverlayRenderer)==null?void 0:w.gatedActionsOverlayRenderer;return!!E||!!B||!!g||!!r},
hasWatchNextResponseErrorRenderer:function(g){var r=this.getPageContents(g),E,B,w,O,M;return!(g==null?0:(E=g.contents)==null?0:(B=E.twoColumnWatchNextResults)==null?0:B.secondaryResults)&&!!((w=r[0])==null?0:(O=w.itemSectionRenderer)==null?0:(M=O.contents[0])==null?0:M.backgroundPromoRenderer)},
isLiveStreamOffline_:function(g){return g?g.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(g,r,E){var B=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",r),w=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];w=_.Y("web_no_skip_video_on_verification_checks")?(g==null?void 0:g.status)&&w.includes(g.status):g&&g.status==="AGE_CHECK_REQUIRED";var O=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",g);O==void 0&&(O=!0);!E||this.isVideoPlayable_(g,this.getPlayerOverlays_(r))||
B||w||!O||_.rM().resolve(_.t6).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.nMM()},
onPlayerFeedbackStartRequest_:function(g){_.OS(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:g}])},
onPlayerFeedbackArticleRequest_:function(g){_.OS(this.hostElement,"yt-help-dialog-requested",[g])},
onPlayerYpcContentRequest_:function(){var g,r,E,B,w,O,M,u,l=((g=this.data)==null?NaN:(r=g.contents)==null?NaN:(E=r.twoColumnWatchNextResults)==null?NaN:(B=E.secondaryResults)==null?NaN:(w=B.secondaryResults)==null?NaN:(O=w.offerModule)==null?NaN:(M=O.tvfilmOfferModuleRenderer)==null?NaN:(u=M.actionButtons)==null?NaN:u.length)-1;g=[".offerButton.buttonRenderer.",".actionButtons."+(l>=0?l:0)+".buttonRenderer."];r=_.U(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(E=r.next();!E.done;E=r.next())for(E=E.value,B=_.U(g),w=B.next();!w.done;w=B.next())if(w="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+E+w.value,w=this.get(w+"navigationEndpoint",this.data)||this.get(w+"serviceEndpoint",this.data)||this.get(w+"command",this.data)){_.Qy(w,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(g){_.Sh(this.hostElement,"yt-autonav-pause-player",g)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(g){g()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(g){switch(g){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(g){switch(g){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Sh(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(g)},
setPlayerState:function(g){_.Zz().dispatch(_.phw(g))},
onPlayerSubscribe_:function(g){_.OS(this.hostElement,"yt-player-subscribe",[g])},
onPlayerUnsubscribe_:function(g){_.OS(this.hostElement,"yt-player-unsubscribe",[g])},
onPlayerAdYtShowToast_:function(g){_.OS(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:g.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(g){if(g)return g},
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(g){return!_.Y("web_watch_move_summary_to_sd")&&!!g},
computeWatchMetadataRefresh:function(){return _.Y("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.Y("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var g,r,E,B;this.watchNextSecondaryResults=(g=this.data)==null?void 0:(r=g.contents)==null?void 0:(E=r.twoColumnWatchNextResults)==null?void 0:(B=E.secondaryResults)==null?void 0:B.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.Y("swatcheroo_pbs_load_grid")&&!_.Y("swatcheroo_provide_all_data_on_scheduled_job")){_.F6.cancelJob(this.setRichGridJobId_);var g,r,E,B,w,O,M;this.setRichGridRendererData((g=this.data)==null?void 0:(r=g.contents)==null?void 0:(E=r.twoColumnWatchNextResults)==null?void 0:(B=E.secondaryResults)==null?void 0:(w=B.secondaryResults)==null?void 0:(O=w.results)==null?void 0:(M=O[0])==null?
void 0:M.richGridRenderer)}},
setRichGridRendererData:function(g){this.richGridRendererData=g},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var g,r=(g=this.data)==null?void 0:g.engagementPanels;if(r==null?0:r.length){g=null;r=_.U(r);for(var E=r.next();!E.done;E=r.next()){E=E.value;var B=void 0;if(((B=E.engagementPanelSectionListRenderer)==null?void 0:B.targetId)==="engagement-panel-structured-description"){g=E;break}}var w,O,M;g=(w=g)==null?void 0:(O=w.engagementPanelSectionListRenderer)==null?void 0:(M=O.content)==null?void 0:M.structuredDescriptionContentRenderer;if(g==null?0:g.items){w=
[];O=_.U(g.items);for(M=O.next();!M.done;M=O.next()){M=M.value;if(!_.Y("sd_horizontal_list_show_nav_killswitch")){var u=B=E=r=g=void 0,l=void 0,Q=(g=M.horizontalCardListRenderer)==null?void 0:(r=g.header)==null?void 0:(E=r.richListHeaderRenderer)==null?void 0:(B=E.navigationButton)==null?void 0:(u=B.buttonRenderer)==null?void 0:(l=u.command)==null?void 0:l.commandExecutorCommand;Q&&Q.commands&&(Q.commands=Q.commands.filter(function(z){return!_.n(z,_.jGF)}))}M.expandableVideoDescriptionBodyRenderer||
M.videoDescriptionHeaderRenderer||w.push(M)}return{items:w}}}},
constructWarning_:function(g){return{text:_.Lf(g),type:"WARNING"}},
isPlaShelfEnabled_:function(g){if((this.get("adPlacements",g)||[]).length)return!0;g=this.get("playerAds",g)||[];return!(!g.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",g[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var g=this;_.Sh(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.Y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var r=this.getScrollTop()>0;this.gestures_&&(r?this.gestures_.detach():this.gestures_.attach());r!==this.showFullerscreenEdu_&&_.Y("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=r,_.dt(this).getPlayerPromise().then(function(E){E.updateFullerscreenEduButtonVisibility(g.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Sh(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var g=this;this.commentsReady=!1;_.F6.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.fC(_.F6,function(){g.setComments_()},1E3)},
setComments_:function(){if(!_.Y("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.F4("cmi");_.F6.cancelJob(this.setCommentsJobId_);var g=this.getPageContents(this.data);if(g&&g.length){g=_.U(g);for(var r=g.next();!r.done;r=g.next())if(r=r.value,this.get("itemSectionRenderer.sectionIdentifier",r)==="comment-item-section"){this.comments=r.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Sh(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.Y("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.Y("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.F4("cmc")},
doRemoveComments_:function(){this.comments={};_.Y("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.F6.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.F6.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(g,r){var E=_.n(r.endpoint,_.LM);E&&(!(r=this.get("data.currentVideoEndpoint.watchEndpoint"))||E.videoId!==r.videoId||E.playlistId&&E.playlistId!==r.playlistId||E.index!==void 0&&E.index!==r.index||typeof E.startTimeSeconds!=="number"||(g.stopPropagation(),this.setScrollTop(0),_.dt(this).getPlayerPromise().then(function(B){var w=E.startTimeSeconds;B.seekTo(w);B.wakeUpControls();w<B.getDuration()&&B.playVideo()})))},
updatePlayerStartTime_:function(){var g=_.UlA();"t"in g&&(g=_.RQv(g.t),this.player.seekTo(g,!0))},
updateTitleFromWatchNext:function(g){g=this.getPageContents(g);var r,E;(g=_.Vp(g==null?void 0:(r=g[0])==null?void 0:(E=r.videoPrimaryInfoRenderer)==null?void 0:E.title))&&_.Sh(this.hostElement,"yt-update-title",g)},
updateTitle_:function(g){g=this.get("videoDetails.title",g)||"";_.Sh(this.hostElement,"yt-update-title",g)},
syncWithRemoteVideo_:function(g,r,E){if(this.active&&this.player){var B=this.player.getVideoData();if(B.video_id===E&&(E=B.list,_.Y("polymer_enable_mdx_queue")&&E&&E.startsWith("RQ")&&(E=void 0),B.video_id!==g||E!=r)){var w;_.Y("kevlar_player_watch_endpoint_navigation")?w=_.ieo(_.kz8(g,r)):w=this.buildWatchEndpoint_(g,r);_.Sh(this.hostElement,"yt-navigate",{endpoint:w,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(g,r,E){return _.Tn(g,r,E)},
initDclkstatus_:function(){_.YOm()},
attachWatchPageSkeleton_:function(){var g=document.querySelector("#watch-page-skeleton");if(g){var r=g.querySelector("#primary-info"),E=g.querySelector("#secondary-info"),B=g.querySelector("#related");r&&_.S3(this.hostElement).querySelector("#info-skeleton").appendChild(r);E&&_.S3(this.hostElement).querySelector("#meta-skeleton").appendChild(E);B&&(_.S3(this.hostElement).querySelector("#related-skeleton").appendChild(B),this.watchNextSkeletonEl_=B);_.p5(g)}},
handlePlayerUpdated_:function(){_.dt(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(g,r){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof r!=="undefined"){var E=this.watchNextSkeletonEl_.children,B=g&&g.indexSplices.length?g.indexSplices[0].index:0;g=Math.min(this.watchNextShownItems.length,E.length);r||(B=0,g=E.length);for(r=B;r<g;r++)E[r].classList.add("hidden")}},
onPlayerFullscreenChange_:function(g){_.Y("external_fullscreen")||_.OS(this.hostElement,"yt-player-fullscreen",[g.fullscreen])},
onFullscreenChange_:function(g){this.fullscreen=g;this.gestures_&&this.gestures_.update(this.fullscreen);var r=_.dt(this);r.getPlayerPromise().then(function(E){E.setFauxFullscreen(!!_.Tr())});
this.updateFullBleedElementLocations();g&&(r.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(g,r){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!r},
computeIsDonationShelfCollapsed_:function(g){return g},
computeShouldShowMerchShelf:function(g,r){return r&&!!g},
computeResponseHasComments:function(g){var r,E,B,w,O;return!!(g==null?0:(r=g.contents)==null?0:(E=r.twoColumnWatchNextResults)==null?0:(B=E.results)==null?0:(w=B.results)==null?0:(O=w.contents)==null?0:O.some(function(M){var u;return(M==null?void 0:(u=M.itemSectionRenderer)==null?void 0:u.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(g,r,E,B){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&B?!1:!!g&&!!Object.keys(g).length&&!r},
identity:_.No,onWindowResized_:function(g){this.windowSize_=g;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.Y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(g){var r=this;g&&g.type!=="dataloaded"&&g.type!=="dataupdated"||_.dt(this).getPlayerPromise().then(function(E){var B=E.getPlayerState();B!==5&&B!==0&&(E=1/E.getVideoAspectRatio(),r.videoHeightToWidthRatio_!==E&&(r.videoHeightToWidthRatio_=E))})},
schedulePlayerSizeUpdate_:function(g){var r=this,E=_.Y("kevlar_watch_while_v2")||_.Y("web_watch_pip"),B=function(){if(r.watchMetadata){var w,O;(O=(w=r.watchMetadata).resize)==null||O.call(w)}_.dt(r).getPlayerPromise().then(function(M){if(_.Y("kevlar_set_internal_player_size")){if(!E||!r.isMiniplayerActive()){var u=r.calculateCurrentPlayerSize_();M.setInternalSize(u.width,u.height)}}else M.setSize(NaN,NaN);_.Y("kevlar_watch_while")&&r.updateWatchWhileScrollThreshold_()})};
g?B():_.jT(_.F6,B)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(g){this.set("data.survey",g.detail)},
onYtShowSurveyCommand_:function(g){this.set("data.survey",_.n(g,_.JVM).survey)},
onDownloadedVideoDeleted:function(g){var r=this,E,B;return _.q(function(w){if(w.nextAddress==1){if(!r.active||(E=r.playerData)==null||!E.offlineState||r.videoId!==g)return w.return();(B=r.player)==null||B.stopVideo();_.Di().navigatingAwayFromWatchDeletedVideo=!0;_.Qy(_.DwV,r.hostElement);return _.D(w,_.Di().navigationFinishPromise,2)}_.Di().navigatingAwayFromWatchDeletedVideo=!1;_.Q3(w)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var g;this.theater?g=_.bj(.5625*this.windowSize_.width,480,this.windowSize_.height-185):g=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==g&&(this.watchWhileScrollThreshold_=g,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var g=_.S3(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&g){var r=this.windowSize_.height>=624,E=this.active?this.getScrollTop():0;!g.active&&r&&E>=this.watchWhileScrollThreshold_?(g.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):g.active&&(!r||E<this.watchWhileScrollThreshold_&&!_.Tr())&&(g.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var g=_.S3(this.hostElement).querySelector("#secondary-inner");if(g){var r=_.S3(this.hostElement).querySelector("#below"),E=_.S3(this.hostElement).querySelector("#secondary"),B=_.S3(this.hostElement).querySelector("#comments");B&&E&&r&&(this.defaultTwoColumnLayout?(g.appendChild(B),E.appendChild(g)):(r.appendChild(B),_.WZ(r,g)))}}},
isTwoColumnsChanged_:function(g,r){if(g!==!0||r!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(g=_.S3(this.hostElement).querySelector("#secondary-inner"))){r=_.S3(this.hostElement).querySelector("#below");var E=_.S3(this.hostElement).querySelector("#secondary"),B=_.S3(this.hostElement).querySelector("#comments");B&&E&&r&&(this.isTwoColumns_?(g.appendChild(B),E.appendChild(g)):(r.appendChild(B),
_.WZ(r,g)))}}else{g=!_.Y("web_watch_enable_fs_squeezeback_panels")||!(this.fullscreen||this.iMaxTheaterMode&&this.theater);r=_.S3(this.hostElement).querySelector("#panels");var w=_.S3(this.hostElement).querySelector("#alerts");E=_.S3(this.hostElement).querySelector("#playlist");B=_.S3(this.hostElement).querySelector("#related");var O=_.S3(this.hostElement).querySelector("#donation-shelf"),M=_.S3(this.hostElement).querySelector("#comments");this.isTwoColumns_?(w=_.S3(this.hostElement).querySelector("#secondary-inner"),
g&&(w.appendChild(r),w.appendChild(E)),w.appendChild(O),w.appendChild(B)):(g&&(_.$4(r,w),_.$4(E,w)),_.$4(O,w),M&&_.$4(B,M));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.Y("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.Y("web_watch_enable_fs_squeezeback_panels")&&_.Y("web_watch_theater_chat")){var g=_.S3(this.hostElement).querySelector("#chat-container"),r=this.theater&&!this.fullscreen||_.Y("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&r?(r=_.S3(this.hostElement).querySelector("#columns"),(g==null?void 0:g.parentElement)!==r&&r.append(g),this.fixedPanels=!0):(this.fixedPanels=
!1,r=_.S3(this.hostElement).querySelector("#playlist"),g&&r?_.j5(g,r):_.el(new _.Rj("Missing element when updating chat location",{"chatContainer defined":!!g,"playlist defined":!!r})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(g,r){return _.Y("sw_metadata_vis_toggle_ks")?!0:!!g||!!r},
computeForceDarkPanelTheme:function(g){return _.Y("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&g:!1},
safeUpdateStyles:function(g){try{_.ua(this.hostElement,g)}catch(r){_.el(r)}},
videoHeightToWidthRatioChanged_:function(g,r){r&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(g){this.videoHeightToWidthRatio_=1/g},
computeIsVerticalVideo_:function(g){return g>=1},
computeIsFourThreeToSixteenNineVideo_:function(g){return g<=.7501&&g>=.5624},
computeIsExtraWideVideo_:function(g){return g<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.dt(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.dt(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.agt(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(g){var r=_.OC(g)||0;_.S2(g,r+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var g=_.OC("yt-fullerscreen-edu-button-click-count")||0,r=_.OC("yt-fullerscreen-edu-button-shown-count")||0,E=_.wM("external_fullscreen_button_shown_threshold"),B=g>=_.wM("external_fullscreen_button_click_threshold")||r>=E;_.dt(this).getPlayerPromise().then(function(w){w.updateFullerscreenEduButtonSubtleModeState(B)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(g,r){return r},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.rM().resolve(_.t6).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var g=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.F6.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.F6.addLowPriorityJob(function(){g.fullHeightPanelPositionUpdateJobId=0;var r=_.S3(g.hostElement).querySelector("#secondary"),E=_.S3(g.hostElement).querySelector("#fixed-secondary");r=r.getBoundingClientRect();var B=r.width;g.swatcherooSqueezeback&&
(B+=_.CE);if(g.swatcherooSqueezeback){var w=_.S3(g.hostElement).querySelector("#squeezeback-constraining-container");w.style.width=B+"px";w.style.flex="0 0 "+B+"px"}E.style.width=B+"px";E.style.left=r.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var g=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.F6.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.F6.addLowPriorityJob(function(){g.panelMaxHeightUpdateJob_=0;var r;!g.isTwoColumns_||g.theater||g.fullscreen?r=460:r=g.calculateNormalPlayerSize_().height;var E=r+"px";_.Y("live_chat_taller_height")&&!g.theater&&(E="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.Y("live_chat_medium_height")&&!g.theater&&(E="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.Y("live_chat_scaled_height")&&!g.theater&&(E="calc(100vh - var(--ytd-toolbar-height) - 238px)");g.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":r+"px","--ytd-watch-flexy-chat-max-height":E,"--ytd-watch-flexy-structured-description-max-height":r+"px","--ytd-watch-flexy-comments-panel-max-height":r+"px","--ytd-comments-engagement-panel-content-height":r+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(g){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",g)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.uq(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(g){var r=_.S3(this.hostElement).querySelector("#engagement-panel-scrim");g?r.addEventListener("tap",_.Do(this,this.onEngagementPanelScrimClick_)):r.removeEventListener("tap",_.Do(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(g){if(this.hostElement.contains(g)&&!this.scrollToAnimation_.isAnimating()){var r=g.offsetTop-24;g=g.offsetTop+g.offsetHeight+24;var E=this.getPageScrollingElement(),B=this.getScrollTop(),w=B+E.clientHeight-56;if(r<B+56)r-=56;else if(g>w)r=g-E.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,r),500)}},
onYtSignalActionScrollToComments:function(){var g=this.hostElement.querySelector("#comments");if(g&&!this.scrollToAnimation_.isAnimating()){g=g.offsetTop-56-24;if(_.Y("kevlar_comment_teaser_scroll_to_midpoint")&&(g-=_.GM().height/3,g<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,g),500)}},
onYtEngagementPanelVisibleChanged:function(g,r,E){if(this.active&&this.trackEngagementPanelVisibility&&!_.AVL.includes(E)){if(r==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.US(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var B=_.rM().resolve(_.kn);this.visiblePanelIdentifiers_.forEach(function(w){w!==E&&B.hidePanel(w)})}this.visiblePanelIdentifiers_.add(E)}r!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&r!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(E);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(g){return g?"":"watch-active-metadata"},
computeNewMetadataClass:function(g){return g?"watch-active-metadata":""},
computeFullBleedPlayer:function(g,r,E){return _.Y("web_watch_error_screen_fix")?_.Y("external_fullscreen")&&g||r||this.enableFullBleedSingleColumnDefaultPlayer&&!E:g||r||this.enableFullBleedSingleColumnDefaultPlayer&&!E},
computeDefaultLayout:function(g){return!g},
computeDefaultTwoColumnLayout:function(g,r){return!g&&r},
updatePanelsLocation:function(){if(_.Y("web_watch_enable_fs_squeezeback_panels")&&this.isAttached){var g=_.S3(this.hostElement).querySelector("#below"),r=_.S3(this.hostElement).querySelector("#panels"),E=_.S3(this.hostElement).querySelector("#playlist"),B=_.S3(this.hostElement).querySelector("#chat-container"),w=_.S3(this.hostElement).querySelector("#panels-full-bleed-container"),O=_.S3(this.hostElement).querySelector("#secondary-inner"),M=this.fullscreen||this.theater&&this.iMaxTheaterMode,u=this.theater&&
!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;M?(w.appendChild(r),w.appendChild(B),w.appendChild(E)):this.isTwoColumns_?(u?(g=_.S3(this.hostElement).querySelector("#columns"),(B==null?void 0:B.parentElement)!==g&&g.append(B),this.fixedPanels=!0):_.WZ(O,B),_.WZ(O,r),_.WZ(O,E)):(g.appendChild(r),g.appendChild(B),g.appendChild(E))}},
swatcherooUpdatePanelsLocation:function(g,r,E,B,w,O){if(this.is==="ytd-watch-grid"){r=g&&!r;this.swatcherooSplitScroll&&(r?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));E=_.S3(this.hostElement).querySelector("#panels");var M=_.S3(this.hostElement).querySelector("#playlist"),u=_.S3(this.hostElement).querySelector("#fixed-secondary"),l=_.S3(this.hostElement).querySelector("#fixed-below"),
Q=_.S3(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),z=_.S3(this.hostElement).querySelector("#chat-container");O&&(g?u.appendChild(E):l.appendChild(E));w?g?u.appendChild(z):l.appendChild(z):_.j5(z,Q);B?g?u.appendChild(M):l.appendChild(M):_.j5(M,Q);this.swatcherooSplitScroll&&(g=_.S3(this.hostElement).querySelector("#secondary"),B=_.S3(this.hostElement).querySelector("#columns"),w=_.S3(this.hostElement).querySelector("#fixed-columns-secondary"),r?
w.appendChild(g):B.appendChild(g))}},
computeMetadataSkinnyMode:function(g,r,E){return this.is!=="ytd-watch-grid"?!1:g?E:r},
computeWatchWhilePanelsActive:function(g,r){return g||r},
computeNoBorderOnChat:function(g){return _.Y("web_watch_theater_chat_no_border")&&g},
computeLiveChatPresentAndExpanded:function(g,r){return g&&!r},
computePanelExpanded:function(g,r,E){return g||r||E},
computeSqueezeback:function(g,r,E,B){if(_.Y("web_watch_enable_fs_squeezeback_panels")){var w=this.iMaxTheaterMode&&this.theater;return(g||r||E)&&(B||w)}},
computeSwatcherooSqueezeback:function(g,r,E){return this.is!=="ytd-watch-grid"||_.Y("ww_squeezeback_killswitch")?!1:g&&r&&E},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(g){_.dt(this).getPlayerPromise().then(function(r){var E;(E=r.changeMarkerVisibility)==null||E.call(r,_.n(g,_.cG).isVisible||!1,_.n(g,_.cG).entityKeys||[],_.n(g,_.cG).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(g){this.liveChatCollapsed=g.detail;_.Zz().dispatch(_.jng(g.detail));if(!this.liveChatCollapsed&&this.squeezeback){var r=_.rM().resolve(_.kn);this.visiblePanelIdentifiers_.forEach(function(E){r.hidePanel(E)})}},
onSetPlaylistCollapsed:function(g){_.Y("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!g)},
provideRenderingData:function(g,r){switch(g){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=r;break;case "PRIMARY_INFO":_.Y("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=r);this.videoPrimaryInfoRendererValue=r==null?void 0:r.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.Y("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=r);this.videoSecondaryInfoRendererValue=r==null?void 0:r.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
r;break;case "CLARIFICATION":this.clarifyBoxValue=r;break;case "LIVE_CHAT":this.conversationBar=r;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=r;break;case "PLAYLIST":this.externalPlaylistData_=r!=null?r:{};break;case "MERCH_SHELF":this.merchShelfValue=r==null?void 0:r.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=r;break;case "TICKET_SHELF":this.ticket=r;break;case "OFFER_MODULE":this.offerModule=r;break;case "LIMITED_STATE":this.limitedStateValue=
r;break;case "DONATION_SHELF":this.donation=r;break;case "ALERTS":this.alertsValue=r;break;case "COMMENTS":this.comments=r;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=r;break;case "ENGAGEMENT_PANELS":this.engagementPanels=r;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=r;break;case "RICH_GRID_RENDERER":this.richGridRendererData=r;break;case "EXPANDABLE_METADATA":this.expandableMetadata=r;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
r}},
toggleCinematicsActive:function(g){this.cinematicsActive=g},
isMiniplayerActive:function(){return _.rM().resolve(_.ea).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var dem,gRL;_.TMA=function(g){var r=dem;if(!(0,_.ruo)(g)){var E,B;r=(B=(E=typeof r==="function"?r():r)==null?void 0:E.concat("\n"))!=null?B:"";throw Error("H`"+r+"`"+String(g));}};
_.rpD=function(g){return g.findIndex(function(r){return gRL.indexOf(r.tagName)>-1})>-1};
dem=void 0;_.ER6=function(){var g=_.rM().resolve(_.Qx);_.K$l(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(g.isFullscreenEnabled()?_.gX(document.documentElement):_.qLD(document.documentElement))};
gRL=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.yL=new Map;_.yL.set(32,59972);_.yL.set(27,50765);_.yL.set(70,60102);_.yL.set(76,60221);_.yL.set(77,60222);_.yL.set(74,60223);_.yL.set(84,60224);_.yL.set(38,61941);_.yL.set(40,61942);_.yL.set(73,62521);_.yL.set(67,62522);_.yL.set(80,63390);_.yL.set(78,63397);_.yL.set(75,59972);_.yL.set(188,63385);_.yL.set(190,63384);_.yL.set(36,63387);
_.yL.set(35,63386);_.yL.set(37,63388);_.yL.set(39,63389);_.yL.set(79,63423);_.yL.set(87,63424);_.yL.set(107,63426);_.yL.set(109,63425);_.yL.set(65,63428);_.yL.set(83,63430);_.yL.set(68,63429);_.yL.set(221,63431);_.yL.set(219,63432);_.yL.set(97,63439);_.yL.set(98,63440);_.yL.set(99,63441);_.yL.set(100,63442);_.yL.set(101,63443);_.yL.set(102,63444);_.yL.set(103,63445);_.yL.set(104,63446);_.yL.set(105,63447);_.vW=new Map;_.vW.set(80,63390);_.vW.set(78,63397);_.vW.set(188,63400);_.vW.set(190,63401);
_.vW.set(191,60765);_.vW.set(13,247917);_.dQ=new Map;_.TT=new Map;
}catch(e){_._DumpException(e)}
try{
var y_g,Th8,gYF,rLM;_.Lr4=function(g){return g.ui.guideIsVisibleButNotPersistent};
_.VWm=function(g){return g.ui.tabGesturesIsActive};
_.hT6=function(){var g=_.Sg("service_worker_scope");try{return navigator.serviceWorker.getRegistration(g)}catch(r){return Promise.reject(r)}};
_.Z$8=function(g){return!(!g||!g.pushManager)};
y_g=function(){return _.hT6().then(_.Z$8).catch(function(){return!1})};
_.vfD=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?y_g():Promise.resolve(!1)};
_.dN$=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
Th8=function(){var g,r,E;return _.q(function(B){switch(B.nextAddress){case 1:return _.D(B,_.RH.getInstance(),2);case 2:g=B.yieldResult;if(!g){r=void 0;B.jumpTo(3);break}return _.D(B,g.get("lmqf"),4);case 4:r=B.yieldResult;case 3:switch((E=r)||(E="SD"),E){case "HD":return B.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return B.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return B.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return B.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return B.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
gYF=function(g){var r,E,B;return _.q(function(w){if(w.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.Y("disable_av1_setting")){var O=window.localStorage["yt-player-av1-pref"];O=O==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":O==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else O="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(r=g===O)return w.jumpTo(2);B=E=g;return _.D(w,Th8(),3)}w.nextAddress!=2&&(r=B===w.yieldResult);return w.return(r)})};var EY4;var BFD=_.HA.IronButtonState,w$L=(0,_.GA)(HTMLElement);
_.ba({_template:function(){if(EY4!==void 0)return EY4;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;rLM===void 0&&(rLM=document.createElement("template"));var B=rLM;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return EY4=g},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[BFD,_.zt,_.p7,_.n7],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(g){var r=(0,_.z5)(this);r.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:g});r.shadowRoot.appendChild(g);return w$L.prototype._attachDom.call(this,g)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var g=this.contentElement;g&&g.selectedItem&&this._setSelectedItem(g.selectedItem)},
get contentElement(){for(var g=_.nM(this.$.content).getDistributedNodes(),r=0,E=g.length;r<E;r++)if(g[r].nodeType===Node.ELEMENT_NODE)return g[r]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(g){this._setSelectedItem(g.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(g){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g)===this&&this.open()},
_selectedItemChanged:function(g){var r="";g?r=g.label||g.getAttribute("label")||g.textContent.trim():r="";this.value=r;this._setSelectedItemLabel(r)},
_computeMenuVerticalOffset:function(g,r){return r?r:g?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var g=this.opened?"true":"false",r=this.contentElement;r&&r.setAttribute("aria-expanded",g)}});_.I_=new _.V("navigateAction");var SYM=new _.V("formRenderer");var md=function(){var g=_.Hi.apply(this,arguments)||this;g.showInput=!1;return g};
_.f(md,_.Hi);_.S=md.prototype;_.S.detached=function(){this.showInput&&window.removeEventListener("click",_.Do(this,this.closeOnOutsideClick_))};
_.S.stopPropagation_=function(g){this.showInput&&g.stopPropagation()};
_.S.closeOnOutsideClick_=function(g){this.closeOnOutsideClickCondition(g)&&(this.showInput=!1,window.removeEventListener("click",_.Do(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.S.closeOnOutsideClickCondition=function(){return!0};
_.S.closeOnOutsideClickHandler=function(){};
_.S.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.Do(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.S.openOnClickHandler=function(){};
_.S.showInputChanged=function(){};
_.S.setShowInput=function(g){this.showInput=g};
md.prototype.setShowInput=md.prototype.setShowInput;md.prototype.showInputChanged=md.prototype.showInputChanged;md.prototype.openOnClickHandler=md.prototype.openOnClickHandler;md.prototype.openOnClick_=md.prototype.openOnClick_;md.prototype.closeOnOutsideClickHandler=md.prototype.closeOnOutsideClickHandler;md.prototype.closeOnOutsideClickCondition=md.prototype.closeOnOutsideClickCondition;md.prototype.closeOnOutsideClick_=md.prototype.closeOnOutsideClick_;md.prototype.stopPropagation_=md.prototype.stopPropagation_;
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],md.prototype,"showInput",void 0);_.m([_.ob("click"),_.ob("keydown"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],md.prototype,"stopPropagation_",null);_.m([_.Gb("showInput"),_.L("design:type",Function),_.L("design:paramtypes",[Boolean]),_.L("design:returntype")],md.prototype,"showInputChanged",null);_.m([_.pR()],md);_.ONv=[md.prototype];var U0F;var Mn$;var cQ=function(){return _.a.apply(this,arguments)||this};
_.f(cQ,_.a);_.S=cQ.prototype;_.S.computePreselectedOption=function(g,r){return r===this.itemSelected_?g:void 0};
_.S.dataChanged_=function(){var g=this;this.preselectedSubreason=this.itemSelected_=-1;var r;(r=this.data)!=null&&r.key&&_.Lk(this,function(){var E,B=Number((E=g.data)==null?void 0:E.key);!Number.isNaN(B)&&(g.itemSelected_=B,E=(E=(g.data.items||[])[B])&&E.optionSelectableItemRenderer&&E.optionSelectableItemRenderer.preselectedIndex)&&(g.preselectedSubreason=E)})};
_.S.isSubReasonHidden_=function(g,r){return g!=r};
_.S.onTopItemSelected_=function(g,r){for(var E=_.S3(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),B=0,w=E.length;B<w;B++)E[B].select(0);_.OS(this.hostElement,"yt-report-form-update",[r.item.value]);g.stopPropagation()};
_.S.onItemSelected_=function(g,r){_.OS(this.hostElement,"yt-report-form-update",[r.item.value]);g.stopPropagation()};
_.S.getItem_=function(g){return g.serviceItem?g.serviceItem:g.navigationItem?g.navigationItem:g.optionSelectableItemRenderer?g.optionSelectableItemRenderer:null};
_.S.computeText_=function(g){return(g=this.getItem_(g))?this.ytRendererBehavior.getSimpleString(g.text):null};
_.S.validate=function(){return this.itemSelected_!==-1};
_.S.computeAriaLabel_=function(g){var r=_.Vp(g.text);(g=g.accessibility&&g.accessibility.accessibilityData&&g.accessibility.accessibilityData.label)&&(r+=". "+g);return r};
_.S.computeItemSelected_=function(g){return g};
_.S.preventSelection_=function(g){g.stopPropagation();this.tooltipTapped=!0};
_.S.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.S.updateItemSelectedFromBinding=function(g){this.itemSelected_=g.detail.value};
_.S.save=function(){var g;this.validate()&&(g=this.data)!=null&&g.items&&(g=this.data.items[this.itemSelected_],g!=null&&g.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(g.optionSelectableItemRenderer.submitEndpoint)||_.q2(this.hostElement,[g.optionSelectableItemRenderer.submitEndpoint])))};
cQ.prototype.onPaperRippleTransitionEnd_=cQ.prototype.onPaperRippleTransitionEnd_;cQ.prototype.dataChanged_=cQ.prototype.dataChanged_;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],cQ.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],cQ.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],cQ.prototype,"data",void 0);_.m([_.K({value:-1}),_.L("design:type",Number)],cQ.prototype,"itemSelected_",void 0);
_.m([_.K({computed:"computeItemSelected_(itemSelected_)"}),_.L("design:type",Number)],cQ.prototype,"value",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],cQ.prototype,"restoreFocusOnClose",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],cQ.prototype,"tooltipTapped",void 0);_.m([_.K({value:-1}),_.L("design:type",Number)],cQ.prototype,"preselectedSubreason",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],cQ.prototype,"dataChanged_",null);_.m([_.ob("transitionend"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],cQ.prototype,"onPaperRippleTransitionEnd_",null);_.m([_.e3({is:"yt-options-renderer",disableElementRegistration:!0})],cQ);
_.I(cQ,"yt-options-renderer",function(){if(Mn$===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;U0F===void 0&&(U0F=document.createElement("template"));var B=U0F;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Mn$=g}g=Mn$;return g},{mode:2});var qY6;var umD;var lb6;var D0g;var oYz;var GMD;var iH=function(){return _.a.apply(this,arguments)||this};
_.f(iH,_.a);iH.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
iH.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
iH.prototype.onTap=function(g){if(this.hostElement.classList.contains("selected")||_.M2(this.hostElement,"yt-share-panel-can-select-contact-action"))g&&g.detail&&(g.detail.x||g.detail.y)&&_.S3(this.hostElement).querySelector("#target").blur(),(g=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),g={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:g?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.OS(this.hostElement,"yt-share-panel-select-contact-action",[g])};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],iH.prototype,"ytRendererBehavior",void 0);_.m([_.K({observer:"onDataChanged"}),_.L("design:type",Object)],iH.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.L("design:type",String)],iH.prototype,"componentTitle",void 0);_.m([_.zb("#thumbnail"),_.L("design:type",Object)],iH.prototype,"thumbnail",void 0);_.m([_.e3({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],iH);
_.I(iH,"yt-enrolled-contact-renderer",function(){if(GMD===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;oYz===void 0&&(oYz=document.createElement("template"));var B=oYz;E.call(r,B.content.cloneNode(!0),g.content.firstChild);GMD=g}g=GMD;return g},{mode:2});var QQ8;var zEL;var LP=function(){return _.a.apply(this,arguments)||this};
_.f(LP,_.a);LP.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
LP.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
LP.prototype.onTap=function(g){if(this.hostElement.classList.contains("selected")||_.M2(this.hostElement,"yt-share-panel-can-select-contact-action"))g&&g.detail&&(g.detail.x||g.detail.y)&&_.S3(this.hostElement).querySelector("#target").blur(),(g=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),g={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:g?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.OS(this.hostElement,"yt-share-panel-select-contact-action",[g])};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],LP.prototype,"ytRendererBehavior",void 0);_.m([_.K({observer:"onDataChanged"}),_.L("design:type",Object)],LP.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.L("design:type",String)],LP.prototype,"componentTitle",void 0);_.m([_.zb("#thumbnail"),_.L("design:type",Object)],LP.prototype,"thumbnail",void 0);_.m([_.e3({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],LP);
_.I(LP,"yt-suggested-contact-renderer",function(){if(zEL===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;QQ8===void 0&&(QQ8=document.createElement("template"));var B=QQ8;E.call(r,B.content.cloneNode(!0),g.content.firstChild);zEL=g}g=zEL;return g},{mode:2});var V4=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-share-panel-reset-action":"onReset"};return g};
_.f(V4,_.a);V4.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"}}}}}};
V4.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.OS(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
V4.prototype.onReset=function(){for(var g=_.S3(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),r=g.length-1;r>=0;r--)g[r].classList.toggle("selected")};
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],V4.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],V4.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],V4.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K({observer:"onDataChanged"}),_.L("design:type",Object)],V4.prototype,"data",void 0);
_.m([_.e3({is:"yt-contact-section-renderer",disableElementRegistration:!0})],V4);
_.I(V4,"yt-contact-section-renderer",function(){if(D0g===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;lb6===void 0&&(lb6=document.createElement("template"));var B=lb6;E.call(r,B.content.cloneNode(!0),g.content.firstChild);D0g=g}g=D0g;return g},{mode:2});var hZ=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return g};
_.f(hZ,_.a);_.S=hZ.prototype;_.S.configureRendererStamper=function(){return{"data.fields":{id:"fields",mapping:{textInputFormFieldRenderer:{component:"yt-text-input-form-field-renderer",params:{required:!0},properties:{hideLabel:"[[data.hideLabels]]"}},toggleFormFieldRenderer:{component:"yt-toggle-form-field-renderer"},optionsRenderer:"yt-options-renderer",contactSectionRenderer:"yt-contact-section-renderer"}}}};
_.S.onYtRefreshFormCommand=function(g){var r;(g=_.n((r=_.n(g,_.v2m))==null?void 0:r.formRenderer,SYM))&&this.set("data",g)};
_.S.reset=function(){var g=_.S3(this.hostElement).querySelector("#fields").children;g=_.U(g);for(var r=g.next();!r.done;r=g.next())r=r.value,r.reset&&r.reset()};
_.S.getForm=function(){var g={},r=_.S3(this.hostElement).querySelector("#fields").children;r=_.U(r);for(var E=r.next();!E.done;E=r.next()){E=E.value;if(!E.validate())return null;g[E.data.key]=E.value}return g};
_.S.submitFormFields=function(){if(this.fields)for(var g=_.U(this.fields),r=g.next();!r.done;r=g.next())r=r.value,r.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?r.save():r.nodeName==="YT-OPTIONS-RENDERER"&&r.save()};
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],hZ.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],hZ.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],hZ.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],hZ.prototype,"data",void 0);_.m([_.kk("#fields > *"),_.L("design:type",Array)],hZ.prototype,"fields",void 0);
_.m([_.e3({is:"yt-form-renderer",disableElementRegistration:!0})],hZ);
_.I(hZ,"yt-form-renderer",function(){if(umD===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;qY6===void 0&&(qY6=document.createElement("template"));var B=qY6;E.call(r,B.content.cloneNode(!0),g.content.firstChild);umD=g}g=umD;return g},{mode:2});var kMz;var Zr=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return g};
_.f(Zr,_.a);Zr.prototype.onCheckboxChange=function(g){this.data&&(g=(this.checked=_.yP(g).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.rM().resolve(_.Er).resolveCommand(g,{form:{element:this.hostElement}})};
Zr.prototype.handleUpdateCheckboxCommand=function(g){(g=_.n(g,_.o4n))&&this.data&&this.data.id===g.id&&(this.set("data.disabled",g.disabled),this.set("data.title",g.title))};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Zr.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Zr.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Zr.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Boolean)],Zr.prototype,"checked",void 0);_.m([_.N({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],Zr);
_.I(Zr,"ytd-settings-checkbox-renderer",function(){if(kMz!==void 0)return kMz;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return kMz=g},{mode:1});var HNF;var y4=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return g};
_.f(y4,_.a);y4.prototype.dataChanged=function(){var g=this,r;return _.q(function(E){if(E.nextAddress==1)return g.radio.removeAttribute("checked"),!g.data||!g.data.id||g.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.dN$()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(r=g.data&&g.data.id)?_.D(E,gYF(g.data.id),4):E.jumpTo(3):(g.set("data.hidden",!0),E.jumpTo(0));E.nextAddress!=3&&(r=E.yieldResult);r&&_.OS(g.hostElement,"yt-select-settings-radio-option",[g.data.id]);_.Q3(E)})};
y4.prototype.onButtonChanged=function(g){_.yP(g).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.rM().resolve(_.Er).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.OS(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
y4.prototype.onSelectOption=function(g){this.data&&this.data.id&&(this.data.id===g?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
y4.prototype.dataChanged=y4.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],y4.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],y4.prototype,"ytActionHandlerBehavior",void 0);_.m([_.zb("#radio"),_.L("design:type",Object)],y4.prototype,"radio",void 0);_.m([_.K(),_.L("design:type",Object)],y4.prototype,"data",void 0);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype",Promise)],y4.prototype,"dataChanged",null);_.m([_.N({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],y4);
_.I(y4,"ytd-settings-radio-option-renderer",function(){if(HNF!==void 0)return HNF;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return HNF=g},{mode:1});var p$v;var vQ=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return g};
_.f(vQ,_.a);
vQ.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"}}}};
vQ.prototype.handleUpdateTextCommand=function(g){(g=_.n(g,_.Gkz))&&this.data&&this.data.id===g.id&&this.set("data",g)};
vQ.prototype.handleUpdateConnectedAppRendererCommand=function(g){if(_.n(g,_.kkw)&&this.data){var r,E;if(g=(r=_.n(g,_.kkw))==null?void 0:(E=r.newConnectedAppRenderer)==null?void 0:E.connectedAppRenderer)this.data=g}};
vQ.prototype.computeConnectedAppStyle=function(g){return g.style?g.style.toLowerCase().replace(/_/g,"-"):""};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],vQ.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],vQ.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],vQ.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],vQ.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.L("design:type",String)],vQ.prototype,"connectedAppStyle",void 0);_.m([_.N({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],vQ);
_.I(vQ,"ytd-connected-app-renderer",function(){if(p$v!==void 0)return p$v;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return p$v=g},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.ty("iuT5Oc");

_.Fr();
}catch(e){_._DumpException(e)}
try{
_.ty("L3n37");
var dlF=function(g){return g.watch.isLearningJourneyActive},TeL=_.bW(115994),g_$=_.bW(115993),rv$=function(g,r,E){var B=this;
var w=E.dragDownAction;this.layer=0;this.JSC$20684_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return B.dragDownAction()}}}};
this.JSC$20684_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return B.dragDownAction()}}}};
this.fullscreen=!1;var O=_.pW();_.Ok(O,TeL,this.layer);_.Ok(O,g_$,this.layer);this.dragDownAction=function(){w();_.Nh(O,{visualElement:B.fullscreen?TeL:g_$})};
this.gesture=new _.D_(g,r,this.JSC$20684_watchConfig,"pandown");this.attach()};
rv$.prototype.attach=function(){this.gesture.attach()};
rv$.prototype.detach=function(){this.gesture.detach()};
rv$.prototype.update=function(g){this.fullscreen=g;this.gesture.config=g?this.JSC$20684_watchFullScreenConfig:this.JSC$20684_watchConfig};var E_v=function(g){_.ZF.call(this);var r=this;this.rootElement=g;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return r.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(E){r.initOrDisposeActiveModules(E)}));
this.onAttached()};
_.f(E_v,_.ZF);_.S=E_v.prototype;_.S.getRoot=function(){return this.rootElement};
_.S.getElement=function(g){return this.rootElement.getElement(g)};
_.S.setPlayerResponse=function(g){this.playerResponse=g;this.publish("PLAYER_RESPONSE_UPDATED",g)};
_.S.getPlayerResponse=function(){return this.playerResponse};
_.S.setWatchNextResponse=function(g){this.watchNextResponse===g?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=g,this.publish("WATCH_NEXT_RESPONSE_UPDATED",g))};
_.S.getWatchNextResponse=function(){return this.watchNextResponse};
_.S.registerActionHandler=function(g,r){var E=this;if(_.Y("web_watch_controller_reg_multiple_handlers_killswitch")){var B={};_.cf(_.mH.getInstance(),(B[g]=r,B),this.getRoot())}else this.actionHandlers.has(g)||(this.actionHandlers.set(g,[]),B={},_.cf(_.mH.getInstance(),(B[g]=function(){var w=_.fI.apply(0,arguments);return(E.actionHandlers.get(g)||[]).map(function(O){return O.apply(null,_.jW(w))})},B),this.getRoot())),this.actionHandlers.get(g).push(r)};
_.S.unregisterActionHandler=function(g){if(_.Y("web_watch_controller_reg_multiple_handlers_killswitch")){var r={};_.i2(_.mH.getInstance(),(r[g]=!0,r),this.getRoot())}else(r=this.actionHandlers.get(g))?(r.pop(),r.length===0&&(r={},_.i2(_.mH.getInstance(),(r[g]=!0,r),this.getRoot()),this.actionHandlers.delete(g))):_.el(new _.Rj("Attempted to unregister an action handler which is not registered.",g))};
_.S.addPageDisposeJob=function(g){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.LL(this.rootElement.pageDisposeJobs,g)};
_.S.removePageDisposeJob=function(g){this.rootElement.pageDisposeJobs&&_.ht(this.rootElement.pageDisposeJobs,g)};
_.S.dispatchEvent=function(g,r){_.Sh(this.rootElement,g,r)};
_.S.provideRenderingData=function(g,r){this.rootElement.provideRenderingData(g,r)};
_.S.scrollWatchTo=function(g,r){var E;(E=this.watchScrollManager)==null||E.scrollWatchTo(g,r)};
_.S.focusOnPlayer=function(){var g=this.getElement("PLAYER");_.Lk(g,function(){if(g&&g.firstElementChild){var r=g.querySelector(".html5-video-player");r&&(_.L4(_.rM().resolve(_.PK)),r.focus())}else _.el(Error("rm"))})};
_.S.updateCinematicFullscreenConfig=function(){var g=!!this.rootElement.theater,r=!!this.rootElement.fullscreen,E;(E=this.watchCinematicManager)==null||_.tv(E,r,g)};
_.S.subscribeToActiveChanged=function(g,r){r=r===void 0?!0:r;var E=_.Gm(_.Zz(),dlF,function(B){g(B)});
r&&g(dlF(_.Zz().getState()));return E};
_.S.isActive=function(){return dlF(_.Zz().getState())};
_.S.onAttached=function(){var g=_.Y("external_fullscreen");_.Y("use_unified_flag_accessor")&&(g=_.rM().resolve(_.h45).retriever.getFlag(_.MnZ));(g||_.Ka("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.S.initPersistentModules=function(){if(_.Y("kevlar_watch_flexy_theater_manager")){var g=new _.fS4(this);_.oO(this,g)}g=new _.qKM(this);_.oO(this,g);g=new _.Av(this);_.oO(this,g);g=new _.C_(this);_.oO(this,g);g=new _.xWM(this);_.oO(this,g);g=new _.Jv(this);_.oO(this,g);_.Y("kevlar_watch_flexy_playlist_manager")&&(g=new _.Ni6(this),_.oO(this,g))};
_.S.initOrDisposeActiveModules=function(g){g?(this.watchScrollManager=new _.x_(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.spv(this)),this.activeModules.push(new _.bS6(this)),this.activeModules.push(new _.Vc4(this)),this.activeModules.push(new _.K_(this)),_.Y("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.Fi5(this)),this.activeModules.push(new _.Jum(this)),_.Y("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.ZE4(this)),
_.Y("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.N1L(this)),_.Y("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.Ljv(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.Y("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.eJ$(this)),_.Y("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.UW$(this)),g=_.Y("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.Y("kevlar_watch_flexy_comments_manager")&&!g&&this.activeModules.push(new _.EEF(this)),_.Y("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.by(this)),this.activeModules.push(new _.Fj5(this)),this.activeModules.push(new _.$W4(this)),_.Y("web_enable_timely_actions")&&this.activeModules.push(new _.KjM(this)),_.Y("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.Sjv(this)),_.Y("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.yP5(this)),
_.Y("web_fullscreen_components")&&this.activeModules.push(new _.Ki5(this)),_.Y("web_player_rtr_ctrls")&&this.activeModules.push(new _.UGA(this))):(_.gY(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.S.disposeInternal=function(){_.ZF.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.hx.Object.defineProperties(E_v.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var BOg={},wG4=["learning-journey-engagement-panel","PAlearning_chat"];
BOg.YtdLearningJourneyWatchBehavior=[_.T.YtRendererBehavior,_.a9.YtPlayerListenerBehavior,_.TR.YtRendererstamperBehavior,_.gN.YtActionHandlerBehavior,_.AP.YtPageBehavior,_.DW.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 _.Ka("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.Y("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 _.Ka("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 _.Y("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.Y("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 _.wM("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.wM("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.Y("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.Y("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("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 _.Y("web_watch_rounded_player_large")||_.Y("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 _.Y("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.Y("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("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 _.Y("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("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:_.tZ(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.tZ(["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 g=this;this.watchController=void 0;this.pageDisposeJobs=[function(){g.showMetadataPlaceholder_()},
function(){_.Y("web_watch_dont_clear_comments")||g.clearComments_()},
function(){g.clearPlayerAds_()},
function(){g.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;_.Y("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.Y("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.P5m(function(){return _.dt(g)},this.hostElement);
this.pageDisposeJobs.push(function(){g.youThereManager_.reset()});
_.Y("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){g.resetFullerscreenEduButtonForNewPlayback_()}));
_.Y("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.EX;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;_.Y("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.Y("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));_.Y("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Do(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(g){g&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:g}),g.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(g){_.Y("kevlar_watch_flexy_theater_manager")&&(this.theater=g,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.Y("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(g){!_.Y("kevlar_watch_while_v2")&&!_.Y("web_watch_pip")||g||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(g){this.active!==void 0&&(this.fullscreen=g,_.Y("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(g){this.active!==void 0&&(_.Sh(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.Y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.Y("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(g>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(g){this.initCsi_();this.updatePageData_(g)},
updatePageData_:function(g){var r=this;if(g)if(this.data===g){this.onPageLoadWithSameData_();var E;(E=this.watchController)==null||E.setWatchNextResponse(this.data)}else this.data=g;this.playlist&&_.Pk({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.F4("nw");this.loading=!1;_.fC(_.F6,function(){r.initDclkstatus_();var B,w=((B=r.player)==null?void 0:B.getVideoData().cpn)||"";_.zQ6(function(O,M){_.Z38(O,M,w)})})},
onPageLoadWithSameData_:function(){_.Y("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 g=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!g);this.set("loadingData.playlistLoading",g&&g!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),g=this.watchNextSkeletonEl_.firstElementChild;g;)g.classList.remove("hidden"),g=g.nextElementSibling;var r,E,B;g=(r=this.loadingData)==null?void 0:(E=r.endpoint)==null?void 0:(B=E.watchEndpoint)==null?void 0:B.videoId;var w;g&&(w="https://i.ytimg.com/vi/"+g+"/frame0.jpg");_.S3(this.hostElement).querySelector("#player").style.backgroundImage=w?"url("+w+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var g=_.S3(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&g&&(g.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var r,E;(E=(r=this.watchMetadata).updateSentimentBarWidth)==
null||E.call(r);var B,w;(w=(B=this.watchMetadata).resize)==null||w.call(B)}_.S3(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(g){var r=_.S3(this.hostElement).querySelector(g);r?_.rX(r,!1):_.el(new _.Rj("Overscroll monitor not found for component: ",g))},
removeSplitScrollMouseTrap:function(g){var r=_.S3(this.hostElement).querySelector(g);r?_.ES(r):_.el(new _.Rj("Disposal component for  overscroll monitoring not found: ",g))},
onLoadingChanged_:function(g){g?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(g){var r=this;g?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.F6.addLowPriorityJob(function(){r.onWindowResized_(_.ny(!0))})},
updateTheaterModeState_:function(g){if(!_.Y("kevlar_watch_flexy_theater_manager")){g=g||this.fullWindowMode_;if(this.theater!==void 0||g)this.theater=g;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();g&&_.$5g()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var g=this.theater;_.Y("external_fullscreen")&&this.fullscreen&&(g=!0);g=g?_.S3(this.hostElement).querySelector("#player-full-bleed-container"):_.S3(this.hostElement).querySelector("#player-container-inner");var r=this.getPlayerContainer(),E=_.Y("kevlar_watch_while_v2")||_.Y("web_watch_pip");r.parentElement!==g&&(E&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.dt(this).appendTo(g,r),g.appendChild(_.S3(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var g=this;return _.q(function(r){if(r.nextAddress==1)return _.D(r,_.rM().resolve(_.ea).deactivate(),2);g.updatePlayerLocation();_.Q3(r)})},
updateCinematicsLocation:function(){var g=this.getElement("CINEMATICS");if(g){var r=this.getCinematicsLocationContainer();g.parentElement!==r&&r.appendChild(g);var E;(E=this.watchController)==null||E.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.S3(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.S3(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(g,r){var E=document.documentElement.hasAttribute("dark"),B=E&&_.Y("web_cinematic_theater_mode"),w=E&&_.Y("web_cinematic_fullscreen");E=!E&&this.cinematicLightTheme;return g&&B||r&&w||(r||g)&&E},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var g;(g=this.watchController)==null||g.setWatchNextResponse(this.data);_.Y("kevlar_watch_flexy_comments_manager")||this.initComments_();_.Y("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.rM().resolve(_.t6).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.Y("web_watch_start_chat_in_theater_mode")){var r,
E,B;if((r=this.data)==null?0:(E=r.contents)==null?0:(B=E.twoColumnWatchNextResults)==null?0:B.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var w,O;((w=this.data)==null?0:(O=w.contents)==null?0:O.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(g){var r;(r=this.watchController)==null||r.setPlayerResponse(this.playerData);g&&g.playabilityStatus&&(r=this.isVideoPlayable_(g.playabilityStatus,this.getPlayerOverlays_(this.data)),g=this.isLiveStreamOffline_(g.playabilityStatus),r&&!g||_.Lk(this,function(){_.F4("pbu")}));
this.setPlayerAds_();_.US(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(g){_.Zz().dispatch(_.Bs({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));g?this.activate_():this.deactivate_()},
attached:function(){var g=this;this.watchController=new E_v(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.Y("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var r=_.dt(this);_.Y("kevlar_disable_prepare_player")||r.preparePlayer();_.Y("kevlar_watch_flexy_playlist_manager")||_.rM().resolve(_.t6).setPlayer(r);this.updatePageMediaQueries();r={"--ytd-watch-flexy-scrollbar-width":_.bH()+
"px"};!_.wM("kv_pl_mx_sz_ks")&&_.wM("kevlar_watch_max_player_width")&&(r["--ytd-watch-flexy-max-player-width-wide-screen"]=_.le6+"px");_.wM("kevlar_watch_flexy_metadata_height")&&(r["--ytd-watch-flexy-space-below-player"]=_.D34+"px");this.safeUpdateStyles(r);_.Y("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new rv$(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return g.onPlayerTouchPanDown_()}}));
_.Y("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.S3(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var g=_.bH(),r=_.KE+g,E=r;this.fixedPanels&&(r+=_.uHz);var B=657+g;g=1327+g;_.S3(this.hostElement).querySelector("#two-column-query").query="(min-width: "+r+"px)";_.S3(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(B+"px), (min-height: 630px) and (min-width: ")+(r+"px) and (max-width: ")+(g+"px)");_.S3(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(g+"px)");
_.S3(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+E+"px)"},
calculateCurrentPlayerSize_:function(){var g=_.S3(this.hostElement).querySelector("#miniplayer-bar").firstChild;return g&&g.active||this.theater||_.Y("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.oQ(NaN,NaN):_.my(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.my(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.TM(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var g=this;this.onWindowResized_(_.ny());_.Y("browse_skeleton_removal_on_watch_killswitch")||_.Ka("IS_SHELL_LOAD")&&_.kc$();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var r=_.dt(this);r.addEventListener("yt-player-updated",_.Do(this,this.onPlayerUpdated_));r.getPlayerPromise().then(function(E){g.playerApiReady_(E)});
_.Y("kevlar_watch_flexy_playlist_manager")||(r=_.rM().resolve(_.t6),_.Y("kevlar_watch_observe_playlist_navigations_killswitch")&&r.addEventListener("yt-navigate",_.Do(this,this.onYtNavigate_)),r.setPlaylistComponent(_.S3(this.hostElement).querySelector("#playlist")),r.addEventListener("yt-playlist-data-updated",_.Do(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.F6.addLowPriorityJob(function(){_.Sh(g.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.dt(this).removeEventListener("yt-player-updated",_.Do(this,this.onPlayerUpdated_));if(!_.Y("kevlar_watch_flexy_playlist_manager")){var g=_.rM().resolve(_.t6);_.Y("kevlar_watch_observe_playlist_navigations_killswitch")&&g.removeEventListener("yt-navigate",_.Do(this,this.onYtNavigate_));g.cancelVideoSkip();g.removeEventListener("yt-playlist-data-updated",_.Do(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.Y("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Sh(this.hostElement,"yt-autonav-pause-player",!1);g=_.Tr();_.Y("kevlar_exit_fullscreen_leaving_watch")&&g&&_.gX(g)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(g){this.player&&this.player.updateVideoData({rvs:g.rvs})},
getPageContents:function(g){return g&&g.contents&&g.contents.twoColumnWatchNextResults&&g.contents.twoColumnWatchNextResults.results&&g.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(g){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",g)},
onRetrieveLocation_:function(g,r){r.hasComments?r.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):r.locationRetrieved("/related_ajax",void 0);g.stopPropagation()},
onSubscriptionChanged_:function(g,r){this.player&&(r?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.jj("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.S3(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.S3(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(g){this.player=g;this.setPlayerState(g.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.Y("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.Y("kevlar_unified_player")||_.Y("kevlar_player_new_bootstrap_adoption"))&&_.iP()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(g,r){r=r===void 0?!0:r;_.Tr()&&_.Y("external_fullscreen")&&_.gX(document.documentElement);this.theaterRequested_=g;r&&_.kA("wide",g?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.Y("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.OS(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Sh(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(g){_.Wf(g,typeof this.player),this.player&&_.Wf(g,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var g;((g=this.player)==null?0:g.isFullscreen())?this.player.toggleFullscreen():_.OS(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(g,r){return this.loading?r:!!Object.keys(g).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(g){if(g){g=_.U(g);for(var r=g.next();!r.done;r=g.next())r=r.value,r.youThereRenderer&&_.eQ5(this.youThereManager_,r.youThereRenderer)}},
setPlaylistData_:function(g){return g||{}},
userEngagementConfigDataChanged_:function(g){if(g)if(g.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var r=this.youThereManager_;_.Eq()<g.lowEngagementThresholdMs||_.xlz(r,!0)}else g.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.OS(this.hostElement,"yt-autonav-pause-user-engagement",[g])},
isPlayerUnavailable_:function(g,r,E){return!!g&&!this.isVideoPlayable_(g,E)&&!r},
getPlayerOverlays_:function(g){return(g==null?void 0:g.playerOverlays)||null},
isVideoPlayable_:function(g,r){if(!g)return!1;var E=g.status==="OK"||g.status==="LIVE_STREAM_OFFLINE",B=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",g)||this.get("errorScreen.ypcTrailerRenderer",g);g=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",g);var w;r=r==null?void 0:(w=r.playerOverlayRenderer)==null?void 0:w.gatedActionsOverlayRenderer;return!!E||!!B||!!g||!!r},
hasWatchNextResponseErrorRenderer:function(g){var r=this.getPageContents(g),E,B,w,O,M;return!(g==null?0:(E=g.contents)==null?0:(B=E.twoColumnWatchNextResults)==null?0:B.secondaryResults)&&!!((w=r[0])==null?0:(O=w.itemSectionRenderer)==null?0:(M=O.contents[0])==null?0:M.backgroundPromoRenderer)},
isLiveStreamOffline_:function(g){return g?g.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(g,r,E){var B=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",r),w=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];w=_.Y("web_no_skip_video_on_verification_checks")?(g==null?void 0:g.status)&&w.includes(g.status):g&&g.status==="AGE_CHECK_REQUIRED";var O=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",g);O==void 0&&(O=!0);!E||this.isVideoPlayable_(g,this.getPlayerOverlays_(r))||
B||w||!O||_.rM().resolve(_.t6).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.nMM()},
onPlayerFeedbackStartRequest_:function(g){_.OS(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:g}])},
onPlayerFeedbackArticleRequest_:function(g){_.OS(this.hostElement,"yt-help-dialog-requested",[g])},
onPlayerYpcContentRequest_:function(){var g,r,E,B,w,O,M,u,l=((g=this.data)==null?NaN:(r=g.contents)==null?NaN:(E=r.twoColumnWatchNextResults)==null?NaN:(B=E.secondaryResults)==null?NaN:(w=B.secondaryResults)==null?NaN:(O=w.offerModule)==null?NaN:(M=O.tvfilmOfferModuleRenderer)==null?NaN:(u=M.actionButtons)==null?NaN:u.length)-1;g=[".offerButton.buttonRenderer.",".actionButtons."+(l>=0?l:0)+".buttonRenderer."];r=_.U(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(E=r.next();!E.done;E=r.next())for(E=E.value,B=_.U(g),w=B.next();!w.done;w=B.next())if(w="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+E+w.value,w=this.get(w+"navigationEndpoint",this.data)||this.get(w+"serviceEndpoint",this.data)||this.get(w+"command",this.data)){_.Qy(w,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(g){_.Sh(this.hostElement,"yt-autonav-pause-player",g)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(g){g()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(g){switch(g){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(g){switch(g){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Sh(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(g)},
setPlayerState:function(g){_.Zz().dispatch(_.phw(g))},
onPlayerSubscribe_:function(g){_.OS(this.hostElement,"yt-player-subscribe",[g])},
onPlayerUnsubscribe_:function(g){_.OS(this.hostElement,"yt-player-unsubscribe",[g])},
onPlayerAdYtShowToast_:function(g){_.OS(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:g.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(g){if(g)return g},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(g){return!_.Y("web_watch_move_summary_to_sd")&&!!g},
computeWatchMetadataRefresh:function(){return _.Y("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var g,r,E,B;this.watchNextSecondaryResults=(g=this.data)==null?void 0:(r=g.contents)==null?void 0:(E=r.twoColumnWatchNextResults)==null?void 0:(B=E.secondaryResults)==null?void 0:B.secondaryResults}},
setRichGridRendererData:function(g){this.richGridRendererData=g},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var g,r=(g=this.data)==null?void 0:g.engagementPanels;if(r==null?0:r.length){g=null;r=_.U(r);for(var E=r.next();!E.done;E=r.next()){E=E.value;var B=void 0;if(((B=E.engagementPanelSectionListRenderer)==null?void 0:B.targetId)==="engagement-panel-structured-description"){g=E;break}}var w,O,M;g=(w=g)==null?void 0:(O=w.engagementPanelSectionListRenderer)==null?void 0:(M=O.content)==null?void 0:M.structuredDescriptionContentRenderer;if(g==null?0:g.items){w=
[];O=_.U(g.items);for(M=O.next();!M.done;M=O.next()){M=M.value;if(!_.Y("sd_horizontal_list_show_nav_killswitch")){var u=B=E=r=g=void 0,l=void 0,Q=(g=M.horizontalCardListRenderer)==null?void 0:(r=g.header)==null?void 0:(E=r.richListHeaderRenderer)==null?void 0:(B=E.navigationButton)==null?void 0:(u=B.buttonRenderer)==null?void 0:(l=u.command)==null?void 0:l.commandExecutorCommand;Q&&Q.commands&&(Q.commands=Q.commands.filter(function(z){return!_.n(z,_.jGF)}))}M.expandableVideoDescriptionBodyRenderer||
M.videoDescriptionHeaderRenderer||w.push(M)}return{items:w}}}},
constructWarning_:function(g){return{text:_.Lf(g),type:"WARNING"}},
isPlaShelfEnabled_:function(g){if((this.get("adPlacements",g)||[]).length)return!0;g=this.get("playerAds",g)||[];return!(!g.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",g[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var g=this;_.Sh(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.Y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var r=this.getScrollTop()>0;this.gestures_&&(r?this.gestures_.detach():this.gestures_.attach());r!==this.showFullerscreenEdu_&&_.Y("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=r,_.dt(this).getPlayerPromise().then(function(E){E.updateFullerscreenEduButtonVisibility(g.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Sh(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var g=this;this.commentsReady=!1;_.F6.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.fC(_.F6,function(){g.setComments_()},1E3)},
setComments_:function(){if(!_.Y("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.F4("cmi");_.F6.cancelJob(this.setCommentsJobId_);var g=this.getPageContents(this.data);if(g&&g.length){g=_.U(g);for(var r=g.next();!r.done;r=g.next())if(r=r.value,this.get("itemSectionRenderer.sectionIdentifier",r)==="comment-item-section"){this.comments=r.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Sh(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.Y("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.Y("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.F4("cmc")},
doRemoveComments_:function(){this.comments={};_.Y("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.F6.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.F6.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(g,r){var E=_.n(r.endpoint,_.LM);E&&(!(r=this.get("data.currentVideoEndpoint.watchEndpoint"))||E.videoId!==r.videoId||E.playlistId&&E.playlistId!==r.playlistId||E.index!==void 0&&E.index!==r.index||typeof E.startTimeSeconds!=="number"||(g.stopPropagation(),this.setScrollTop(0),_.dt(this).getPlayerPromise().then(function(B){var w=E.startTimeSeconds;B.seekTo(w);B.wakeUpControls();w<B.getDuration()&&B.playVideo()})))},
updatePlayerStartTime_:function(){var g=_.UlA();"t"in g&&(g=_.RQv(g.t),this.player.seekTo(g,!0))},
updateTitleFromWatchNext:function(g){g=this.getPageContents(g);var r,E;(g=_.Vp(g==null?void 0:(r=g[0])==null?void 0:(E=r.videoPrimaryInfoRenderer)==null?void 0:E.title))&&_.Sh(this.hostElement,"yt-update-title",g)},
updateTitle_:function(g){g=this.get("videoDetails.title",g)||"";_.Sh(this.hostElement,"yt-update-title",g)},
syncWithRemoteVideo_:function(g,r,E){if(this.active&&this.player){var B=this.player.getVideoData();if(B.video_id===E&&(E=B.list,_.Y("polymer_enable_mdx_queue")&&E&&E.startsWith("RQ")&&(E=void 0),B.video_id!==g||E!=r)){var w;_.Y("kevlar_player_watch_endpoint_navigation")?w=_.ieo(_.kz8(g,r)):w=this.buildWatchEndpoint_(g,r);_.Sh(this.hostElement,"yt-navigate",{endpoint:w,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(g,r,E){return _.Tn(g,r,E)},
initDclkstatus_:function(){_.YOm()},
attachWatchPageSkeleton_:function(){var g=document.querySelector("#watch-page-skeleton");if(g){var r=g.querySelector("#primary-info"),E=g.querySelector("#secondary-info"),B=g.querySelector("#related");r&&_.S3(this.hostElement).querySelector("#info-skeleton").appendChild(r);E&&_.S3(this.hostElement).querySelector("#meta-skeleton").appendChild(E);B&&(_.S3(this.hostElement).querySelector("#related-skeleton").appendChild(B),this.watchNextSkeletonEl_=B);_.p5(g)}},
handlePlayerUpdated_:function(){_.dt(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(g,r){if(this.watchNextSkeletonEl_&&typeof r!=="undefined"){var E=this.watchNextSkeletonEl_.children,B=g&&g.indexSplices.length?g.indexSplices[0].index:0;g=Math.min(this.watchNextShownItems.length,E.length);r||(B=0,g=E.length);for(r=B;r<g;r++)E[r].classList.add("hidden")}},
onPlayerFullscreenChange_:function(g){_.Y("external_fullscreen")||_.OS(this.hostElement,"yt-player-fullscreen",[g.fullscreen])},
onFullscreenChange_:function(g){this.fullscreen=g;this.gestures_&&this.gestures_.update(this.fullscreen);var r=_.dt(this);r.getPlayerPromise().then(function(E){E.setFauxFullscreen(!!_.Tr())});
this.updateFullBleedElementLocations();g&&(r.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(g,r){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!r},
computeIsDonationShelfCollapsed_:function(g){return g},
computeShouldShowMerchShelf:function(g,r){return r&&!!g},
computeResponseHasComments:function(g){var r,E,B,w,O;return!!(g==null?0:(r=g.contents)==null?0:(E=r.twoColumnWatchNextResults)==null?0:(B=E.results)==null?0:(w=B.results)==null?0:(O=w.contents)==null?0:O.some(function(M){var u;return(M==null?void 0:(u=M.itemSectionRenderer)==null?void 0:u.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(g,r){this.responseHasComments=this.computeResponseHasComments(this.data);return!!g&&!!Object.keys(g).length&&!r},
identity:_.No,onWindowResized_:function(g){this.windowSize_=g;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.Y("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.Y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(g){var r=this;g&&g.type!=="dataloaded"&&g.type!=="dataupdated"||_.dt(this).getPlayerPromise().then(function(E){var B=E.getPlayerState();B!==5&&B!==0&&(E=1/E.getVideoAspectRatio(),r.videoHeightToWidthRatio_!==E&&(r.videoHeightToWidthRatio_=E))})},
schedulePlayerSizeUpdate_:function(g){var r=this,E=_.Y("kevlar_watch_while_v2")||_.Y("web_watch_pip"),B=function(){if(r.watchMetadata){var w,O;(O=(w=r.watchMetadata).resize)==null||O.call(w)}_.dt(r).getPlayerPromise().then(function(M){if(_.Y("kevlar_set_internal_player_size")){if(!E||!r.isMiniplayerActive()){var u=r.calculateCurrentPlayerSize_();M.setInternalSize(u.width,u.height)}}else M.setSize(NaN,NaN);_.Y("kevlar_watch_while")&&r.updateWatchWhileScrollThreshold_()})};
g?B():_.jT(_.F6,B)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(g){this.set("data.survey",g.detail)},
onYtShowSurveyCommand_:function(g){this.set("data.survey",_.n(g,_.JVM).survey)},
onDownloadedVideoDeleted:function(g){var r=this,E,B;return _.q(function(w){if(w.nextAddress==1){if(!r.active||(E=r.playerData)==null||!E.offlineState||r.videoId!==g)return w.return();(B=r.player)==null||B.stopVideo();_.Di().navigatingAwayFromWatchDeletedVideo=!0;_.Qy(_.DwV,r.hostElement);return _.D(w,_.Di().navigationFinishPromise,2)}_.Di().navigatingAwayFromWatchDeletedVideo=!1;_.Q3(w)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var g;this.theater?g=_.bj(.5625*this.windowSize_.width,480,this.windowSize_.height-185):g=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==g&&(this.watchWhileScrollThreshold_=g,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var g=_.S3(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&g){var r=this.windowSize_.height>=624,E=this.active?this.getScrollTop():0;!g.active&&r&&E>=this.watchWhileScrollThreshold_?(g.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):g.active&&(!r||E<this.watchWhileScrollThreshold_&&!_.Tr())&&(g.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(g,r){if(g!==!0||r!==void 0){g=!_.Y("live_chat_over_engagement_panels");r=_.S3(this.hostElement).querySelector("#chat-container");var E=_.S3(this.hostElement).querySelector("#plj-sidebar"),B=_.S3(this.hostElement).querySelector("#panels"),w=_.S3(this.hostElement).querySelector("#plj-panels"),O=_.S3(this.hostElement).querySelector("#plj-playlist"),M=_.S3(this.hostElement).querySelector("#alerts"),u=_.S3(this.hostElement).querySelector("#playlist"),l=_.S3(this.hostElement).querySelector("#related"),
Q=_.S3(this.hostElement).querySelector("#donation-shelf"),z=_.S3(this.hostElement).querySelector("#comments");this.isTwoColumns_?(M=_.S3(this.hostElement).querySelector("#secondary-inner"),M.appendChild(E),E.appendChild(O),O.appendChild(u),E.appendChild(w),g&&M.appendChild(B),_.Y("web_watch_theater_chat")||M.appendChild(r),g||M.appendChild(B),M.appendChild(Q),M.appendChild(l)):(g&&_.$4(B,M),_.$4(u,M),_.Y("web_watch_theater_chat")||_.$4(r,M),g||_.$4(B,M),_.$4(Q,M),z&&(w&&_.$4(w,z),_.$4(l,z)));_.Y("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.Y("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.Y("web_watch_theater_chat")){var g=_.S3(this.hostElement).querySelector("#chat-container"),r=this.theater&&!this.fullscreen||_.Y("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&r?_.Y("web_watch_theater_chat_beside_player")?(r=_.S3(this.hostElement).querySelector("#panels-full-bleed-container"),(g==null?void 0:g.parentElement)!==r&&r.append(g),this.panelsBesidePlayer=!0):_.Y("web_watch_theater_fixed_chat")&&
(r=_.S3(this.hostElement).querySelector("#columns"),(g==null?void 0:g.parentElement)!==r&&r.append(g),this.fixedPanels=!0):(_.Y("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.Y("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),r=_.S3(this.hostElement).querySelector("#playlist"),g&&r?_.j5(g,r):_.el(new _.Rj("Missing element when updating chat location",{"chatContainer defined":!!g,"playlist defined":!!r})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(g,r){return _.Y("sw_metadata_vis_toggle_ks")?!0:!!g||!!r},
computeForceDarkPanelTheme:function(g){return _.Y("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&g:!1},
safeUpdateStyles:function(g){try{_.ua(this.hostElement,g)}catch(r){_.el(r)}},
videoHeightToWidthRatioChanged_:function(g,r){r&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.Y("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(g){this.videoHeightToWidthRatio_=1/g},
computeIsVerticalVideo_:function(g){return g>=1},
computeIsFourThreeToSixteenNineVideo_:function(g){return g<=.7501&&g>=.5624},
computeIsExtraWideVideo_:function(g){return g<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.dt(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.dt(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.agt(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(g){var r=_.OC(g)||0;_.S2(g,r+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var g=_.OC("yt-fullerscreen-edu-button-click-count")||0,r=_.OC("yt-fullerscreen-edu-button-shown-count")||0,E=_.wM("external_fullscreen_button_shown_threshold"),B=g>=_.wM("external_fullscreen_button_click_threshold")||r>=E;_.dt(this).getPlayerPromise().then(function(w){w.updateFullerscreenEduButtonSubtleModeState(B)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(g,r){return r},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.rM().resolve(_.t6).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var g=this;this.panelMaxHeightUpdateJob_&&_.F6.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.F6.addLowPriorityJob(function(){g.panelMaxHeightUpdateJob_=0;var r;!g.isTwoColumns_||g.theater||g.fullscreen?r=460:r=g.calculateNormalPlayerSize_().height;var E=r+"px";_.Y("live_chat_taller_height")&&!g.theater&&(E="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.Y("live_chat_medium_height")&&
!g.theater&&(E="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.Y("live_chat_scaled_height")&&!g.theater&&(E="calc(100vh - var(--ytd-toolbar-height) - 238px)");g.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":r+"px","--ytd-watch-flexy-chat-max-height":E,"--ytd-watch-flexy-structured-description-max-height":r+"px","--ytd-watch-flexy-comments-panel-max-height":r+"px","--ytd-comments-engagement-panel-content-height":r+"px"})})},
onYtShowEngagementPanelScrimAction_:function(g){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",g)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.uq(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(g){var r=_.S3(this.hostElement).querySelector("#engagement-panel-scrim");g?r.addEventListener("tap",_.Do(this,this.onEngagementPanelScrimClick_)):r.removeEventListener("tap",_.Do(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(g){if(this.hostElement.contains(g)&&!this.scrollToAnimation_.isAnimating()){var r=g.offsetTop-24;g=g.offsetTop+g.offsetHeight+24;var E=this.getPageScrollingElement(),B=this.getScrollTop(),w=B+E.clientHeight-56;if(r<B+56)r-=56;else if(g>w)r=g-E.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,r),500)}},
onYtSignalActionScrollToComments:function(){var g=this.hostElement.querySelector("#comments");if(g&&!this.scrollToAnimation_.isAnimating()){g=g.offsetTop-56-24;if(_.Y("kevlar_comment_teaser_scroll_to_midpoint")&&(g-=_.GM().height/3,g<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,g),500)}},
onYtEngagementPanelVisibleChanged:function(g,r,E){this.active&&this.trackEngagementPanelVisibility&&!_.AVL.includes(E)&&(r==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(E),r!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&r!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(E),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(g){return g?"":"watch-active-metadata"},
computeNewMetadataClass:function(g){return g?"watch-active-metadata":""},
computeFullBleedPlayer:function(g,r){return g||r},
computeDefaultLayout:function(g){return!g},
computeDefaultTwoColumnLayout:function(g,r){return!g&&r},
computeWatchWhilePanelsActive:function(g,r){return g||r},
computeNoBorderOnChat:function(g){return _.Y("web_watch_theater_chat_no_border")&&g},
computeLiveChatPresentAndExpanded:function(g,r){return g&&!r},
computePanelExpanded:function(g,r,E){return g||r||E},
onChangeMarkersVisibility:function(g){_.dt(this).getPlayerPromise().then(function(r){var E;(E=r.changeMarkerVisibility)==null||E.call(r,_.n(g,_.cG).isVisible||!1,_.n(g,_.cG).entityKeys||[],_.n(g,_.cG).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(g){this.liveChatCollapsed=g.detail;_.Zz().dispatch(_.jng(g.detail))},
provideRenderingData:function(g,r){switch(g){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=r;break;case "PRIMARY_INFO":_.Y("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=r);this.videoPrimaryInfoRendererValue=r==null?void 0:r.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.Y("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=r);this.videoSecondaryInfoRendererValue=r==null?void 0:r.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
r;break;case "CLARIFICATION":this.clarifyBoxValue=r;break;case "LIVE_CHAT":this.conversationBar=r;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=r;break;case "PLAYLIST":this.externalPlaylistData_=r!=null?r:{};break;case "MERCH_SHELF":this.merchShelfValue=r==null?void 0:r.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=r;break;case "OFFER_MODULE":this.offerModule=r;break;case "LIMITED_STATE":this.limitedStateValue=r;break;case "DONATION_SHELF":this.donation=r;break;
case "ALERTS":this.alertsValue=r;break;case "COMMENTS":this.comments=r;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=r;break;case "ENGAGEMENT_PANELS":this.engagementPanels=r;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=r;break;case "RICH_GRID_RENDERER":this.richGridRendererData=r;break;case "EXPANDABLE_METADATA":this.expandableMetadata=r;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=r}},
toggleCinematicsActive:function(g){this.cinematicsActive=g},
isMiniplayerActive:function(){return _.rM().resolve(_.ea).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(g){return wG4.map(function(r){return g.find(function(E){var B;return(E==null?void 0:(B=E.engagementPanelSectionListRenderer)==null?void 0:B.targetId)===r})}).filter(function(r){return r!==void 0})},
getNonLearningJourneyEngagementPanels:function(g){return g.filter(function(r){var E;return!wG4.includes((r==null?void 0:(E=r.engagementPanelSectionListRenderer)==null?void 0:E.targetId)||"")})}}];var So6;var T1=function(){var g=_.a.apply(this,arguments)||this;g.flexy=!0;g.learningJourney=!0;g.roundedInfoPanel=!0;g.viewTransitionEnabled=_.Y("enable_player_resize_transition");g.smallerChatMinHeight=_.Y("live_chat_smaller_min_height");g.cinematicTheaterMode=_.Y("web_cinematic_theater_mode");g.transparentTheaterMode=_.Y("web_transparent_theater_mode");g.cinematicFullscreen=_.Y("web_cinematic_fullscreen");g.useLargerMaxPlayerValue=_.Y("kevlar_flexy_use_larger_player_value");g.cinematicFullscreenV2=_.Y("web_cinematic_fullscreen_v2");
g.isDarkTheme=document.documentElement.hasAttribute("dark");g.theaterLargerPlayer=_.Y("web_watch_theater_larger_player");g.defaultCollapsePlaylist=_.Y("web_watch_default_collapse_playlist");return g};
_.f(T1,_.a);_.S=T1.prototype;_.S.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.S.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.S.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.S.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.S.ready=function(){var g=this,r=function(){g.onColumnScroll()};
this.primary.addEventListener("scroll",r);this.secondary.addEventListener("scroll",r)};
_.S.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.S.updateIsTwoColumnsFromBinding=function(g){_.Y("web_watch_update_narrow_width_killswitch")||_.Zz().dispatch(_.Y1v(!g.detail.value));this.ytdWatchBehavior.isTwoColumns_=g.detail.value};
_.S.updateFlexySmallWindowFromBinding=function(g){this.ytdWatchBehavior.flexySmallWindow_=g.detail.value};
_.S.updateFlexyLargeWindowFromBinding=function(g){this.ytdWatchBehavior.flexyLargeWindow_=g.detail.value};
_.S.updateWatchWhileWindowSizeSufficientFromBinding=function(g){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=g.detail.value};
_.S.updateWatchNextCanShowMoreFromBinding=function(g){this.ytdWatchBehavior.watchNextCanShowMore=g.detail.value};
_.S.updateShownItemsFromBinding=function(g){g.detail.path?this.set(g.detail.path,g.detail.value):this.ytdWatchBehavior.watchNextShownItems=g.detail.value};
_.S.getElement=function(g){switch(g){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20693_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20693_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.hx.Object.defineProperties(T1.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)==null||!g.pageVisualEffects)return!1;for(var r=0;r<this.data.pageVisualEffects.length;r++)if(g=_.n(this.data.pageVisualEffects[r],_.sf))return r=void 0,(r=g.config)==null?void 0:r.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.learningJourneyEngagementPanels)==null?void 0:g.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var g,r=(g=this.learningJourneyEngagementPanels)==null?void 0:g.find(function(H){var R;return(H==null?void 0:(R=H.engagementPanelSectionListRenderer)==null?void 0:R.panelIdentifier)==="learning-journey-engagement-panel"});
if(r){var E,B,w,O,M,u,l,Q,z;if(g=(Q=((l=(M=((O=r==null?void 0:(E=r.engagementPanelSectionListRenderer)==null?void 0:(B=E.content)==null?void 0:(w=B.sectionListRenderer)==null?void 0:w.contents)!=null?O:[])[0])==null?void 0:(u=M.itemSectionRenderer)==null?void 0:u.contents)!=null?l:[])[0])==null?void 0:(z=Q.accordionViewModel)==null?void 0:z.onTitleTap){var k=_.xP(g);if(k)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.G$.instance.resolveCommand(k)}}}}}}});
_.hx.Object.defineProperties(T1,{template:{configurable:!0,enumerable:!0,get:function(){if(So6===void 0){var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n              </ytd-player>\n            </div>\n          </div>\n          <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n            <yt-button-shape data="[[backButtonData]]" hidden="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n          </yt-button-shape></div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);So6=g}g=So6;return g}}});
T1.prototype.updateMiniplayerIsActiveValue=T1.prototype.updateMiniplayerIsActiveValue;T1.prototype.updateScrollTopValue=T1.prototype.updateScrollTopValue;T1.prototype.updateFullscreenValue=T1.prototype.updateFullscreenValue;T1.prototype.updateTheaterValue=T1.prototype.updateTheaterValue;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],T1.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],T1.prototype,"ytComponentBehavior",void 0);
_.m([_.P(BOg.YtdLearningJourneyWatchBehavior),_.L("design:type",Object)],T1.prototype,"ytdWatchBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],T1.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],T1.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],T1.prototype,"playerData",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],T1.prototype,"flexy",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],T1.prototype,"learningJourney",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],T1.prototype,"roundedInfoPanel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],T1.prototype,"viewTransitionEnabled",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],T1.prototype,"smallerChatMinHeight",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],T1.prototype,"cinematicTheaterMode",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],T1.prototype,"transparentTheaterMode",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],T1.prototype,"cinematicFullscreen",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],T1.prototype,"useLargerMaxPlayerValue",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],T1.prototype,"cinematicFullscreenV2",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],T1.prototype,"isDarkTheme",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],T1.prototype,"theaterLargerPlayer",void 0);_.m([_.K(),_.L("design:type",Object)],T1.prototype,"defaultCollapsePlaylist",void 0);_.m([_.K({selector:_.Jf}),_.L("design:type",Object)],T1.prototype,"theaterValue",void 0);
_.m([_.K({selector:_.PX}),_.L("design:type",Object)],T1.prototype,"fullscreenValue",void 0);_.m([_.K({selector:_.jc}),_.L("design:type",Object)],T1.prototype,"scrollTopValue",void 0);_.m([_.K({selector:_.tj}),_.L("design:type",Object)],T1.prototype,"miniplayerIsActiveValue",void 0);_.m([_.zb("#ytd-plj-player"),_.L("design:type",HTMLElement)],T1.prototype,"ytdPlayer",void 0);_.m([_.zb("#playlist"),_.L("design:type",HTMLElement)],T1.prototype,"JSC$20693_ytdPlaylistPanelRenderer",void 0);
_.m([_.hz("ytd-comments"),_.L("design:type",HTMLElement)],T1.prototype,"ytdComments",void 0);_.m([_.zb("#primary"),_.L("design:type",HTMLElement)],T1.prototype,"primary",void 0);_.m([_.zb("#secondary"),_.L("design:type",HTMLElement)],T1.prototype,"secondary",void 0);_.m([_.zb("#player-container"),_.L("design:type",HTMLElement)],T1.prototype,"playerContainer",void 0);_.m([_.zb("#cinematics"),_.L("design:type",HTMLElement)],T1.prototype,"JSC$20693_cinematics",void 0);
_.m([_.Gb("theaterValue"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],T1.prototype,"updateTheaterValue",null);_.m([_.Gb("fullscreenValue"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],T1.prototype,"updateFullscreenValue",null);_.m([_.Gb("scrollTopValue"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],T1.prototype,"updateScrollTopValue",null);
_.m([_.Gb("miniplayerIsActiveValue"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],T1.prototype,"updateMiniplayerIsActiveValue",null);_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],T1.prototype,"cinematicLightTheme",null);_.m([_.K({reflectToAttribute:!0}),_.W("learningJourneyEngagementPanels"),_.L("design:type",Object),_.L("design:paramtypes",[])],T1.prototype,"hasLearningJourneyPanels",null);
_.m([_.W("learningJourneyEngagementPanels"),_.L("design:type",Object),_.L("design:paramtypes",[])],T1.prototype,"backButtonData",null);_.m([_.N({is:"ytd-watch-learning-journey"})],T1);_.rV.registerService(_.MjJ,T1);
_.Fr();
}catch(e){_._DumpException(e)}
try{
_.ty("Tm0L3c");
var VmD;var hQm;var ZpD=function(){return _.a.apply(this,arguments)||this};
_.f(ZpD,_.a);_.m([_.N({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],ZpD);
_.I(ZpD,"ytd-ghost-comments-renderer",function(){if(hQm===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);hQm=g}g=hQm;return g},{mode:1});var yVD;var vM6=function(){return _.a.apply(this,arguments)||this};
_.f(vM6,_.a);_.m([_.N({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],vM6);
_.I(vM6,"ytd-ghost-watch-metadata-renderer",function(){if(yVD===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);yVD=g}g=yVD;return g},{mode:1});var dO=function(){var g=_.a.apply(this,arguments)||this;g.ghostGridRenderer={rows:6};g.roundedInfoPanel=!0;g.hideOfferModules=!0;g.smallerChatMinHeight=_.Y("live_chat_smaller_min_height");g.cinematicTheaterMode=_.Y("web_cinematic_theater_mode");g.transparentTheaterMode=_.Y("web_transparent_theater_mode");g.darkerPanels=_.Y("web_watch_darker_panels");g.cinematicFullscreen=_.Y("web_cinematic_fullscreen");g.cinematicFullscreenV2=_.Y("web_cinematic_fullscreen_v2");g.isDarkTheme=document.documentElement.hasAttribute("dark");
return g};
_.f(dO,_.a);_.S=dO.prototype;_.S.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.S.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.S.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.S.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.S.ready=function(){var g=this,r=function(){g.onColumnScroll()};
this.primary.addEventListener("scroll",r);this.secondary.addEventListener("scroll",r)};
_.S.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.S.updateIsTwoColumnsFromBinding=function(g){this.ytdWatchBehavior.isTwoColumns_=g.detail.value};
_.S.updateFlexySmallWindowFromBinding=function(g){this.ytdWatchBehavior.flexySmallWindow_=g.detail.value};
_.S.updateFlexyLargeWindowFromBinding=function(g){this.ytdWatchBehavior.flexyLargeWindow_=g.detail.value};
_.S.updateWatchWhileWindowSizeSufficientFromBinding=function(g){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=g.detail.value};
_.S.updateWatchNextCanShowMoreFromBinding=function(g){this.ytdWatchBehavior.watchNextCanShowMore=g.detail.value};
_.S.updateShownItemsFromBinding=function(g){_.Y("swatcheroo_direct_use_rich_grid")||(g.detail.path?this.set(g.detail.path,g.detail.value):this.ytdWatchBehavior.watchNextShownItems=g.detail.value)};
_.S.getElement=function(g){switch(g){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20681_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20681_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.hx.Object.defineProperties(dO.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)==null||!g.pageVisualEffects)return!1;for(var r=0;r<this.data.pageVisualEffects.length;r++)if(g=_.n(this.data.pageVisualEffects[r],_.sf))return r=void 0,(r=g.config)==null?void 0:r.enableInLightTheme;return!1}}});
dO.prototype.updateMiniplayerIsActiveValue=dO.prototype.updateMiniplayerIsActiveValue;dO.prototype.updateScrollTopValue=dO.prototype.updateScrollTopValue;dO.prototype.updateFullscreenValue=dO.prototype.updateFullscreenValue;dO.prototype.updateTheaterValue=dO.prototype.updateTheaterValue;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],dO.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],dO.prototype,"ytComponentBehavior",void 0);
_.m([_.P(_.ipg.YtdWatchBehavior),_.L("design:type",Object)],dO.prototype,"ytdWatchBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],dO.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],dO.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],dO.prototype,"ghostGridRenderer",void 0);_.m([_.K(),_.L("design:type",Object)],dO.prototype,"playerData",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],dO.prototype,"roundedInfoPanel",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],dO.prototype,"hideOfferModules",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],dO.prototype,"smallerChatMinHeight",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],dO.prototype,"cinematicTheaterMode",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],dO.prototype,"transparentTheaterMode",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],dO.prototype,"darkerPanels",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],dO.prototype,"cinematicFullscreen",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],dO.prototype,"cinematicFullscreenV2",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],dO.prototype,"isDarkTheme",void 0);_.m([_.K({selector:_.Jf}),_.L("design:type",Object)],dO.prototype,"theaterValue",void 0);
_.m([_.K({selector:_.PX}),_.L("design:type",Object)],dO.prototype,"fullscreenValue",void 0);_.m([_.K({selector:_.jc}),_.L("design:type",Object)],dO.prototype,"scrollTopValue",void 0);_.m([_.K({selector:_.tj}),_.L("design:type",Object)],dO.prototype,"miniplayerIsActiveValue",void 0);_.m([_.zb("#ytd-player"),_.L("design:type",HTMLElement)],dO.prototype,"ytdPlayer",void 0);_.m([_.zb("#playlist"),_.L("design:type",HTMLElement)],dO.prototype,"JSC$20681_ytdPlaylistPanelRenderer",void 0);
_.m([_.zb("#ytd-comments"),_.L("design:type",HTMLElement)],dO.prototype,"ytdComments",void 0);_.m([_.zb("#primary"),_.L("design:type",HTMLElement)],dO.prototype,"primary",void 0);_.m([_.zb("#secondary"),_.L("design:type",HTMLElement)],dO.prototype,"secondary",void 0);_.m([_.zb("#player-container"),_.L("design:type",HTMLElement)],dO.prototype,"playerContainer",void 0);_.m([_.zb("#cinematics"),_.L("design:type",HTMLElement)],dO.prototype,"JSC$20681_cinematics",void 0);
_.m([_.Gb("theaterValue"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],dO.prototype,"updateTheaterValue",null);_.m([_.Gb("fullscreenValue"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],dO.prototype,"updateFullscreenValue",null);_.m([_.Gb("scrollTopValue"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],dO.prototype,"updateScrollTopValue",null);
_.m([_.Gb("miniplayerIsActiveValue"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],dO.prototype,"updateMiniplayerIsActiveValue",null);_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],dO.prototype,"cinematicLightTheme",null);
_.I(dO,"ytd-watch-grid",function(){if(VmD===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);VmD=g}g=VmD;return g},{mode:2});_.rV.registerService(_.U$V,dO);
_.Fr();
}catch(e){_._DumpException(e)}
try{
_.ty("CF909");
var L9m;var vG=function(){var g=_.a.apply(this,arguments)||this;g.flexy=!0;g.roundedInfoPanel=!0;g.viewTransitionEnabled=_.Y("enable_player_resize_transition");g.smallerChatMinHeight=_.Y("live_chat_smaller_min_height");g.cinematicTheaterMode=_.Y("web_cinematic_theater_mode");g.transparentTheaterMode=_.Y("web_transparent_theater_mode");g.cinematicFullscreen=_.Y("web_cinematic_fullscreen");g.useLargerMaxPlayerValue=_.Y("kevlar_flexy_use_larger_player_value");g.isDarkTheme=document.documentElement.hasAttribute("dark");
g.defaultCollapsePlaylist=_.Y("web_watch_default_collapse_playlist");g.retroModeReduxValue=!1;return g};
_.f(vG,_.a);_.S=vG.prototype;_.S.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.S.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.S.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.S.updateRetroModeReduxValue=function(){_.Y("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.S.ready=function(){var g=this,r=function(){g.onColumnScroll()};
this.primary.addEventListener("scroll",r);this.secondary.addEventListener("scroll",r)};
_.S.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.S.updateIsTwoColumnsFromBinding=function(g){_.Y("web_watch_update_narrow_width_killswitch")||_.Zz().dispatch(_.Y1v(!g.detail.value));this.ytdWatchBehavior.isTwoColumns_=g.detail.value};
_.S.updateFlexySmallWindowFromBinding=function(g){this.ytdWatchBehavior.flexySmallWindow_=g.detail.value};
_.S.updateFlexyLargeWindowFromBinding=function(g){this.ytdWatchBehavior.flexyLargeWindow_=g.detail.value};
_.S.updateWatchWhileWindowSizeSufficientFromBinding=function(g){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=g.detail.value};
_.S.updateWatchNextCanShowMoreFromBinding=function(g){this.ytdWatchBehavior.watchNextCanShowMore=g.detail.value};
_.S.updateShownItemsFromBinding=function(g){g.detail.path?this.set(g.detail.path,g.detail.value):this.ytdWatchBehavior.watchNextShownItems=g.detail.value};
_.S.getElement=function(g){switch(g){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20676_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20676_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary}};
_.hx.Object.defineProperties(vG.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)==null||!g.pageVisualEffects)return!1;for(var r=0;r<this.data.pageVisualEffects.length;r++)if(g=_.n(this.data.pageVisualEffects[r],_.sf))return r=void 0,(r=g.config)==null?void 0:r.enableInLightTheme;return!1}}});
_.hx.Object.defineProperties(vG,{template:{configurable:!0,enumerable:!0,get:function(){if(L9m===void 0){var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);L9m=g}g=L9m;return g}}});
vG.prototype.updateRetroModeReduxValue=vG.prototype.updateRetroModeReduxValue;vG.prototype.updateScrollTopValue=vG.prototype.updateScrollTopValue;vG.prototype.updateFullscreenValue=vG.prototype.updateFullscreenValue;vG.prototype.updateTheaterValue=vG.prototype.updateTheaterValue;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],vG.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],vG.prototype,"ytComponentBehavior",void 0);
_.m([_.P(_.ipg.YtdWatchBehavior),_.L("design:type",Object)],vG.prototype,"ytdWatchBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],vG.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],vG.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],vG.prototype,"playerData",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],vG.prototype,"flexy",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],vG.prototype,"roundedInfoPanel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],vG.prototype,"viewTransitionEnabled",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],vG.prototype,"smallerChatMinHeight",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],vG.prototype,"cinematicTheaterMode",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],vG.prototype,"transparentTheaterMode",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],vG.prototype,"cinematicFullscreen",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],vG.prototype,"useLargerMaxPlayerValue",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],vG.prototype,"isDarkTheme",void 0);_.m([_.K(),_.L("design:type",Object)],vG.prototype,"defaultCollapsePlaylist",void 0);
_.m([_.K({selector:_.Jf}),_.L("design:type",Object)],vG.prototype,"theaterValue",void 0);_.m([_.K({selector:_.PX}),_.L("design:type",Object)],vG.prototype,"fullscreenValue",void 0);_.m([_.K({selector:_.jc}),_.L("design:type",Object)],vG.prototype,"scrollTopValue",void 0);_.m([_.K({selector:_.tj}),_.L("design:type",Object)],vG.prototype,"miniplayerIsActive",void 0);_.m([_.K({selector:function(g){return g.watch.isWatchRetroMode}}),
_.L("design:type",Object)],vG.prototype,"retroModeReduxValue",void 0);_.m([_.hz("ytd-player"),_.L("design:type",HTMLElement)],vG.prototype,"ytdPlayer",void 0);_.m([_.zb("#playlist"),_.L("design:type",HTMLElement)],vG.prototype,"JSC$20676_ytdPlaylistPanelRenderer",void 0);_.m([_.hz("ytd-comments"),_.L("design:type",HTMLElement)],vG.prototype,"ytdComments",void 0);_.m([_.zb("#primary"),_.L("design:type",HTMLElement)],vG.prototype,"primary",void 0);
_.m([_.zb("#secondary"),_.L("design:type",HTMLElement)],vG.prototype,"secondary",void 0);_.m([_.zb("#player-container"),_.L("design:type",HTMLElement)],vG.prototype,"playerContainer",void 0);_.m([_.zb("#below"),_.L("design:type",HTMLElement)],vG.prototype,"below",void 0);_.m([_.zb("#cinematics"),_.L("design:type",HTMLElement)],vG.prototype,"JSC$20676_cinematics",void 0);
_.m([_.Gb("theaterValue"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],vG.prototype,"updateTheaterValue",null);_.m([_.Gb("fullscreenValue"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],vG.prototype,"updateFullscreenValue",null);_.m([_.Gb("scrollTopValue"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],vG.prototype,"updateScrollTopValue",null);
_.m([_.Gb("retroModeReduxValue"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],vG.prototype,"updateRetroModeReduxValue",null);_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],vG.prototype,"cinematicLightTheme",null);_.m([_.N({is:"ytd-watch-flexy"})],vG);_.rV.registerService(_.OSD,vG);
_.Fr();
}catch(e){_._DumpException(e)}
try{
_.ty("nmfa2d");
var OpM;var Nm=function(){var g=_.a.apply(this,arguments)||this;g.hidden=!1;g.errorScreen=null;g.playlistData={};return g};
_.f(Nm,_.a);_.S=Nm.prototype;_.S.getPlayer=function(){return this.ytdPlayer};
_.S.configureRendererStamper=function(){return{singleColumnContents:{id:"single-column",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},clarificationData:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",
attributes:{"class":"watch"}}}},donationShelf:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[hasChat]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},richMetadataRowContainer:{id:"rich-metadata",mapping:{metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{fixie:!0}}}},
ticketShelf:{id:"ticket-shelf",mapping:{ticketShelfRenderer:"ytd-ticket-shelf-renderer"}},"playerData.playerAds":{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.tZ(["aa","eocs"])}}};
_.S.onActiveChanged=function(){_.Zz().dispatch(_.dWz(this.ytPageBehavior.active))};
_.S.playerDataChanged=function(){var g;(g=this.watchController)==null||g.setPlayerResponse(this.playerData)};
_.S.dataChanged=function(){var g;(g=this.watchController)==null||g.setWatchNextResponse(this.data)};
_.S.sizeChanged=function(){var g,r;(r=(g=this.metadata).resize)==null||r.call(g)};
_.S.attached=function(){this.watchController=new _.aW(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.S.detached=function(){_.TM(this.watchController);this.watchController=void 0};
_.S.getPlayerContainer=function(){return this.playerContainer};
_.S.getElement=function(g){switch(g){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20628_playlistPanel}};
_.S.provideRenderingData=function(g,r){switch(g){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=r;break;case "ERROR_SCREEN":this.errorScreen=r!=null?r:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=r;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=r;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=r;break;case "RICH_METADATA":this.richMetadataRowContainer=r;break;case "CLARIFICATION":this.clarificationData=r;break;case "PLAYLIST":this.playlistData=
r!=null?r:{};break;case "MERCH_SHELF":this.merchShelf=r;break;case "TICKET_SHELF":this.ticketShelf=r;break;case "LIMITED_STATE":this.limitedState=r;break;case "DONATION_SHELF":this.donationShelf=r;break;case "ALERTS":this.alerts=r}};
_.hx.Object.defineProperties(Nm.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return!this.hidden&&!!((g=this.data)==null?0:(r=g.contents)==null?0:(E=r.twoColumnWatchNextResults)==null?0:E.conversationBar)}}});
Nm.prototype.sizeChanged=Nm.prototype.sizeChanged;Nm.prototype.dataChanged=Nm.prototype.dataChanged;Nm.prototype.playerDataChanged=Nm.prototype.playerDataChanged;Nm.prototype.onActiveChanged=Nm.prototype.onActiveChanged;_.m([_.P(_.AP.YtPageBehavior),_.L("design:type",Object)],Nm.prototype,"ytPageBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Nm.prototype,"ytComponentBehavior",void 0);
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Nm.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Nm.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],Nm.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Nm.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],Nm.prototype,"playerData",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Nm.prototype,"hidden",void 0);_.m([_.zb("#ytd-player"),_.L("design:type",HTMLElement)],Nm.prototype,"ytdPlayer",void 0);_.m([_.zb("#player-container"),_.L("design:type",HTMLElement)],Nm.prototype,"playerContainer",void 0);_.m([_.zb("#metadata"),_.L("design:type",Object)],Nm.prototype,"metadata",void 0);_.m([_.zb("#playlist"),_.L("design:type",HTMLElement)],Nm.prototype,"JSC$20628_playlistPanel",void 0);
_.m([_.K({selector:_.JdL,reflectToAttribute:!0}),_.L("design:type",Object)],Nm.prototype,"fixie",void 0);_.m([_.K({selector:_.bF5,reflectToAttribute:!0}),_.L("design:type",Object)],Nm.prototype,"singleColumn",void 0);_.m([_.K({selector:function(g){return _.Jf(g)&&!_.PX(g)},
reflectToAttribute:!0}),_.L("design:type",Object)],Nm.prototype,"theater",void 0);_.m([_.K({selector:_.PX,reflectToAttribute:!0}),_.L("design:type",Object)],Nm.prototype,"fullscreen",void 0);_.m([_.K({selector:_.yu8}),_.L("design:type",Object)],Nm.prototype,"windowSize",void 0);_.m([_.K(),_.L("design:type",Object)],Nm.prototype,"singleColumnContents",void 0);_.m([_.K(),_.L("design:type",Object)],Nm.prototype,"errorScreen",void 0);_.m([_.K(),_.L("design:type",Object)],Nm.prototype,"playlistData",void 0);
_.m([_.K(),_.L("design:type",Object)],Nm.prototype,"videoPrimaryInfoRenderer",void 0);_.m([_.K(),_.L("design:type",Object)],Nm.prototype,"videoSecondaryInfoRenderer",void 0);_.m([_.K(),_.L("design:type",Object)],Nm.prototype,"richMetadataRowContainer",void 0);_.m([_.K(),_.L("design:type",Object)],Nm.prototype,"clarificationData",void 0);_.m([_.K(),_.L("design:type",Object)],Nm.prototype,"commentsEntryPointHeaderRenderer",void 0);_.m([_.K(),_.L("design:type",Object)],Nm.prototype,"ticketShelf",void 0);
_.m([_.K(),_.L("design:type",Object)],Nm.prototype,"merchShelf",void 0);_.m([_.K(),_.L("design:type",Object)],Nm.prototype,"donationShelf",void 0);_.m([_.K(),_.L("design:type",Object)],Nm.prototype,"limitedState",void 0);_.m([_.K(),_.L("design:type",Object)],Nm.prototype,"alerts",void 0);_.m([_.W("playlistData"),_.L("design:type",Object),_.L("design:paramtypes",[])],Nm.prototype,"hasPlaylistData",null);
_.m([_.W("data","hidden"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Nm.prototype,"hasChat",null);_.m([_.Gb("active"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Nm.prototype,"onActiveChanged",null);_.m([_.Gb("playerData"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Nm.prototype,"playerDataChanged",null);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Nm.prototype,"dataChanged",null);_.m([_.Gb("windowSize","singleColumn"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Nm.prototype,"sizeChanged",null);
_.I(Nm,"ytd-watch-fixie",function(){if(OpM===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);OpM=g}g=OpM;return g},{mode:1});_.rV.registerService(_.Sfl,Nm);
_.Fr();
}catch(e){_._DumpException(e)}
try{
_.ty("xwEKAe");
var s7g=function(g){var r=_.pu();if(r.getFlag(202))r=r.getFlag(201);else{var E;r=(g==null?void 0:(E=g.config)==null?void 0:E.settingOnByDefault)!==void 0?g.config.settingOnByDefault:!_.Y("web_shorts_cinematics_disabled_by_default")}return r},f3M=function(g){var r=_.pu();
_.Yg(0,201,g);_.Yg(0,202,!0);r.save()},$AD=function(g){return(g=_.DUt(g))?_.GqP(g):0},j75=function(g){return g.shorts.isSmallScreenSqueezeback},AcF=function(g){return g.shorts.isPlaybackStarted},P0D=function(g){var r=_.sat(2),E=new Set;
_.J5(function(){return void E.forEach(function(B){return void B()})});
return function(B){var w=_.TP(r);try{var O=b1L(JcL(g),B);E.add(O);return function(){O();E.delete(O)}}finally{_.TP(w)}}},tDz=function(g){var r=g.children;
var E=g.root;_.jS(function(){var B=P0D(E)(r);_.J5(B)});
return document.createTextNode("")},b1L=function(g,r){var E=FNm(g);
g=_.U(_.kwD(r,!0));r=g.next().value;var B=g.next().value;E.append.apply(E,_.jW(r));return function(){B();E.remove()}},JcL=function(g){if(typeof g==="string")return g=document.querySelector(g),_.TMA(g),g;
if(_.O6(g)&&g.nodeType===Node.ELEMENT_NODE)return g;if(!g.__value&&!g.__optional){var r=_.vKS.USE_ELEMENT_NOT_ASSIGNED(g.__expectedTagName);g.__hasErrored=!0;throw r;}return g.value},FNm=function(g){var r=document.createElementNS(g.namespaceURI,g.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return g.appendChild(r)},eVv=function(g,r,E,B){g=r-g;
E=B-E;return Math.sqrt(g*g+E*E)},WNv=function(g,r){g&&_.rM().resolve(_.Er).resolveCommand(g,{forceClickLogging:!0,
form:{element:r}})},C0m=function(g,r,E,B){g=r-g;
E=B-E;return Math.sqrt(g*g+E*E)},KND=function(g,r){g&&_.rM().resolve(_.Er).resolveCommand(g,{forceClickLogging:!0,
form:{element:r}})},xA8=function(){return _.rM().resolve(_.Qx).dismissedIndices},a3M=function(g){return _.Bs({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:g}})},X76=function(g){return _.Bs({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:g}})},OK=function(g){return _.Bs({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:g}})};var UK=function(g,r){if(g instanceof UK)this.array_=g.array_;else{var E;if(E=_.vJ(g))a:{for(var B=E=0;B<g.length;B++){if(!_.vJ(g[B])||E>0&&g[B].length!=E){E=!1;break a}for(var w=0;w<g[B].length;w++)if(typeof g[B][w]!=="number"){E=!1;break a}E==0&&(E=g[B].length)}E=E!=0}if(E)this.array_=_.ZQ(g);else if(g instanceof _.oQ)this.array_=NaL(g.height,g.width);else if(typeof g==="number"&&typeof r==="number"&&g>0&&r>0)this.array_=NaL(g,r);else throw Error("em");}this.size_=new _.oQ(this.array_[0].length,
this.array_.length)},I3g=function(g,r,E){for(var B=0;B<g.getSize().height;B++)for(var w=0;w<g.getSize().width;w++)r.call(E,g.array_[B][w],B,w,g)},mA6=function(g,r){var E=new UK(g.getSize());
I3g(g,function(B,w,O){E.array_[w][O]=r.call(void 0,B,w,O,g)});
return E},NaL=function(g,r){for(var E=[],B=0;B<g;B++){E[B]=[];
for(var w=0;w<r;w++)E[B][w]=0}return E};
UK.prototype.add=function(g){if(!_.yr$(this.size_,g.getSize()))throw Error("fm");return mA6(this,function(r,E,B){return r+g.array_[E][B]})};
UK.prototype.equals=function(g,r){if(this.size_.width!=g.size_.width||this.size_.height!=g.size_.height)return!1;r=r||0;for(var E=0;E<this.size_.height;E++)for(var B=0;B<this.size_.width;B++)if(!_.ZJM(this.array_[E][B],g.array_[E][B],r))return!1;return!0};
UK.prototype.getSize=function(){return this.size_};
var MW=function(g,r,E){return r>=0&&r<g.size_.height&&E>=0&&E<g.size_.width?g.array_[r][E]:null};
UK.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var qW=function(g,r,E,B){if(!(r>=0&&r<g.size_.height&&E>=0&&E<g.size_.width))throw Error("gm`"+r+"`"+E+"`"+g.size_.height+"`"+g.size_.width);g.array_[r][E]=B};
UK.prototype.multiply=function(g){if(g instanceof UK){if(this.size_.width!=g.getSize().height)throw Error("hm");return ccF(this,g)}if(typeof g==="number")return i18(this,g);throw Error("im");};
var ccF=function(g,r){var E=new UK(g.size_.height,r.getSize().width);I3g(E,function(B,w,O){for(var M=B=0;M<this.size_.width;M++)B+=MW(this,w,M)*MW(r,M,O);qW(E,w,O,B)},g);
return E},i18=function(g,r){return mA6(g,function(E){return E*r})};var LNA=new _.V("inlineSurveyRenderer");var VDz=new _.V("interstitialViewModel");var hVA=new _.V("reelNavigateCommand");var Z15=new _.V("reelNonVideoContentDismissalCommand");var yct=new _.V("showReelsCommentsOverlayCommand");var vX5=new _.V("shortsSuggestedActionViewModel");var dA$=new _.V("videoInteractionPopUpRenderer");var Tam;var g6v;var rdg;var ug=function(){var g=_.a.apply(this,arguments)||this;g.ctaVisualElement=null;g.currentCsn=null;return g};
_.f(ug,_.a);_.S=ug.prototype;_.S.onDataChanged=function(){this.maybeLogShows()};
_.S.computeButtonShape=function(){var g=this;if(this.data)return{buttonText:_.Vp(this.data.text),state:"active",onTap:function(){g.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.S.maybeCreateCtaVe=function(){var g;if((g=this.data)!=null&&g.badgeInteractionLogging){var r;if(g=(r=this.data.badgeInteractionLogging)==null?void 0:r.trackingParams)this.ctaVisualElement=_.fW(g)}};
_.S.maybeLogClicks=function(){this.currentCsn=_.PE(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Lu(this.currentCsn,this.ctaVisualElement)};
_.S.maybeLogShows=function(){this.currentCsn=_.PE(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.ck(this.currentCsn,[this.ctaVisualElement])};
_.S.onTap=function(){var g;if((g=this.data)!=null&&g.onClickCommand){var r;this.ytComponentBehavior.resolveCommand((r=this.data)==null?void 0:r.onClickCommand);this.maybeLogClicks()}};
ug.prototype.onDataChanged=ug.prototype.onDataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ug.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],ug.prototype,"ytComponentBehavior",void 0);_.m([_.K({}),_.L("design:type",Object)],ug.prototype,"data",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ug.prototype,"onDataChanged",null);
_.m([_.N({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],ug);
_.I(ug,"ytd-shopping-overlay-badge-renderer",function(){if(rdg!==void 0)return rdg;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return rdg=g},{mode:1});_.BK(_.Qmz,"reel-sound-metadata-view-model",{props:{data:_.EB,overlayDensity:_.EB}});_.BK(_.Mym,"player-disclosure-view-model",{props:{data:_.cP}});_.BK(_.ssm,"pivot-button-view-model",{props:{data:_.EB,className:_.EB}});_.BK(_.fOb,"reel-action-bar-view-model",{props:{data:_.cP,buttonShapeOverrideables:_.cP}});_.BK(_.dG(function(g){function r(){var uB,zS,jV,PJ,At=(zS=_.n((uB=Z())==null?void 0:uB.command,_.QA))==null?void 0:(jV=zS.item)==null?void 0:(PJ=jV.notificationTextRenderer)==null?void 0:PJ.successResponseText;if(At)_.OS(B.value,"yt-open-popup-action",[_.vs(At),B.value]);else if(c())WNv(c(),A.value);else{var XY;WNv((XY=Z())==null?void 0:XY.command,A.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var E=g.data;var B=_.VI("yt-player-overlay-video-interactions");g=_.U(_.Dk("0px",void 0,"O1N7Ce"));var w=g.next().value,O=g.next().value;g=_.U(_.Dk("0px",void 0,"tTDBdb"));var M=g.next().value,u=g.next().value;g=_.U(_.Dk(0,void 0,"fh8Zkc"));var l=g.next().value,Q=g.next().value;g=_.U(_.Dk(0,void 0,"CUjqGd"));var z=g.next().value,k=g.next().value,H=function(){var uB;if(((uB=_.qQ())==null?void 0:uB.getPlayerState())!==-1){B.value.style.display="inherit";var zS;(zS=_.qQ())==null||zS.removeEventListener("onStateChange",
H)}R()},R=function(){var uB=document.querySelector("video");
if(uB){Q(uB.getBoundingClientRect().width);k(uB.getBoundingClientRect().height);var zS;O((uB==null?void 0:(zS=uB.style)==null?void 0:zS.left)||"0px");var jV;u((uB==null?void 0:(jV=uB.style)==null?void 0:jV.top)||"0px")}};
_.bQ(function(){var uB,zS,jV;if(((uB=_.qQ())==null?void 0:uB.getPlayerState())===-1&&Math.round(((jV=(zS=_.qQ())==null?void 0:zS.getVideoAspectRatio())!=null?jV:0)*100)!==Math.round(l()/z()*100)){B.value.style.display="none";var PJ,At;k(l()/((At=(PJ=_.qQ())==null?void 0:PJ.getVideoAspectRatio())!=null?At:1))}},"VB5m5");
_.jS(function(){var uB;(uB=_.qQ())==null||uB.addEventListener("onStateChange",H);window.addEventListener("resize",R);R();var zS,jV,PJ;if((PJ=(zS=E())==null?void 0:(jV=zS.regions)==null?void 0:jV[0])==null||!PJ.transformationMatrix)throw Error("mm");var At;if((At=E())==null?0:At.trackingParams){var XY;_.pW().graftServerVe((XY=E().trackingParams)!=null?XY:"")}_.J5(function(){var xc;(xc=_.qQ())==null||xc.removeEventListener("onStateChange",H);window.removeEventListener("resize",R)})});
var A=_.VI("svg"),J=_.U(_.Dk(!1,void 0,"TPsTce"));g=J.next().value;var e=J.next().value,C=_.U(_.Dk(!1,void 0,"Uz6CHf"));J=C.next().value;var X=C.next().value,Z=function(){var uB;return _.n((uB=E())==null?void 0:uB.popUp,dA$)},c=function(){var uB;
return(uB=E())==null?void 0:uB.command},h=function(){return _.n(c(),_.ko)!==void 0};
C=_.HK(function(){r();return!1});
var y={},OD={};return _.G("yt-player-overlay-video-interactions",{el:B},_.G("svg",{"on:mouseover":_.HK(function(){h()&&e(!0);X(!0);return!1}),
"on:mouseout":_.HK(function(){e(!1);X(!1);return!1}),
"on:keydown":_.HK(function(uB){uB.key==="Enter"&&r();return!1}),
"on:focus":_.HK(function(){h()&&e(!0);return!1}),
"on:blur":_.HK(function(){h()&&e(!1);return!1}),
el:A,tabindex:0,"aria-label":function(){var uB;return(uB=E())==null?void 0:uB.a11yString},
id:"player-overlay-video-interaction-svg",class:_.QY("yt-player-overlay-video-interactions__interactions-svg",(y["yt-player-overlay-video-interactions__interactions-svg-hover"]=g,y),(OD["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=J,OD)),role:"button",style:function(){var uB,zS,jV,PJ=(jV=(uB=E())==null?void 0:(zS=uB.regions)==null?void 0:zS[0].transformationMatrix)!=null?jV:[];uB=l();zS=z();jV=[];for(var At=0,XY=-1;At<PJ.length;At++)At%3===0&&(XY++,jV[XY]=[]),jV[XY].push(PJ[At]);
PJ=new UK(jV);jV=new UK([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);jV=PJ.multiply(jV);PJ=new UK([[0,0],[0,0],[0,0],[0,0]]);for(At=0;At<jV.getSize().width;At++){XY=MW(jV,0,At);var xc=MW(jV,1,At);if(XY===null||xc===null)throw Error("lm`"+(At+1).toString());qW(PJ,At,0,XY*uB);qW(PJ,At,1,xc*zS)}uB=MW(PJ,0,0);At=MW(PJ,1,0);zS=MW(PJ,0,1);XY=MW(PJ,1,1);if(uB===null||At===null||zS===null||XY===null)throw Error("jm");jV=eVv(uB,At,zS,XY);xc=MW(PJ,3,0);PJ=MW(PJ,3,1);if(xc===null||PJ===null)throw Error("km");PJ=eVv(uB,
xc,zS,PJ);XY=(Number((XY*-1).toFixed(2))-Number((zS*-1).toFixed(2)))/(Number(At.toFixed(2))-Number(uB.toFixed(2)));xc=Math.atan(XY)*180/Math.PI;At=XY===Number.POSITIVE_INFINITY?-90:XY===Number.NEGATIVE_INFINITY?90:Object.is(XY,-0)?180:XY===0?0:XY>0?xc*-1:uB<At?xc*-1:Math.abs(xc)+180;return"left:calc("+uB+"px + "+w()+"); top:calc("+(zS+"px + "+M()+"); width:")+(jV+"px; height:")+(PJ+"px; transform:rotate(")+(At+"deg);")},
"on:click":C}))},"aj"),"yt-player-overlay-video-interactions",{props:{data:_.cP}});_.BK(_.oU5,"yt-reel-metapanel-view-model",{props:{data:_.cP,overlayDensity:_.cP}});var E68=_.dG(function(g){var r=g.children;var E=g.region;g=_.U(_.Dk(void 0,void 0,"rwJZyc"));var B=g.next().value,w=g.next().value;g=_.U(_.Dk("0px",void 0,"H14H5c"));var O=g.next().value,M=g.next().value;g=_.U(_.Dk("0px",void 0,"Mn8Uvf"));var u=g.next().value,l=g.next().value;g=_.U(_.Dk(0,void 0,"QQCIqc"));var Q=g.next().value,z=g.next().value;g=_.U(_.Dk(0,void 0,"HyEvh"));var k=g.next().value,H=g.next().value,R=function(){var Z=B();if(Z){var c;if(((c=_.qQ())==null?void 0:c.getPlayerState())!==-1){Z.style.display=
"inherit";var h;(h=_.qQ())==null||h.removeEventListener("onStateChange",R)}J()}},A=function(){var Z=document.querySelectorAll("video");
return Array.from(Z).find(function(c){var h;return c==null?void 0:(h=c.style)==null?void 0:h.width})},J=function(){var Z=A();
if(Z){z(Z.getBoundingClientRect().width);H(Z.getBoundingClientRect().height);var c;M((Z==null?void 0:(c=Z.style)==null?void 0:c.left)||"0px");var h;l((Z==null?void 0:(h=Z.style)==null?void 0:h.top)||"0px")}};
_.bQ(function(){var Z=B();if(Z){var c,h,y;if(((c=_.qQ())==null?void 0:c.getPlayerState())===-1&&Math.round(((y=(h=_.qQ())==null?void 0:h.getVideoAspectRatio())!=null?y:0)*100)!==Math.round(Q()/k()*100)){Z.style.display="none";var OD,uB;H(Q()/((uB=(OD=_.qQ())==null?void 0:OD.getVideoAspectRatio())!=null?uB:1))}}},"RdGxIf");
var e=function(){J()},C;
_.jS(function(){J();var Z;if(!(E==null?0:(Z=E())==null?0:Z.transformationMatrix))throw Error("mm");var c;(c=_.qQ())==null||c.addEventListener("onStateChange",R);if(window.ResizeObserver){if(Z=A())C=new ResizeObserver(e),C.observe(Z)}else window.addEventListener("resize",J);_.J5(function(){var h;(h=_.qQ())==null||h.removeEventListener("onStateChange",R);C?C.disconnect():window.removeEventListener("resize",J)})});
var X=function(){var Z,c,h=(c=E==null?void 0:(Z=E())==null?void 0:Z.transformationMatrix)!=null?c:[];Z=Q();c=k();for(var y=[],OD=0,uB=-1;OD<h.length;OD++)OD%3===0&&(uB++,y[uB]=[]),y[uB].push(h[OD]);h=new UK(y);y=new UK([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);y=h.multiply(y);h=new UK([[0,0],[0,0],[0,0],[0,0]]);for(OD=0;OD<y.getSize().width;OD++){uB=MW(y,0,OD);var zS=MW(y,1,OD);if(uB===null||zS===null)throw Error("lm`"+(OD+1).toString());qW(h,OD,0,uB*Z);qW(h,OD,1,zS*c)}Z=MW(h,0,0);OD=MW(h,1,0);c=MW(h,0,1);
uB=MW(h,1,1);if(Z===null||OD===null||c===null||uB===null)throw Error("jm");y=C0m(Z,OD,c,uB);zS=MW(h,3,0);h=MW(h,3,1);if(zS===null||h===null)throw Error("km");h=C0m(Z,zS,c,h);uB=(Number((uB*-1).toFixed(2))-Number((c*-1).toFixed(2)))/(Number(OD.toFixed(2))-Number(Z.toFixed(2)));zS=Math.atan(uB)*180/Math.PI;OD=uB===Number.POSITIVE_INFINITY?-90:uB===Number.NEGATIVE_INFINITY?90:Object.is(uB,-0)?180:uB===0?0:uB>0?zS*-1:Z<OD?zS*-1:Math.abs(zS)+180;return"left:calc("+Z+"px + "+O()+"); top:calc("+(c+"px + "+
u()+"); width:")+(y+"px; height:")+(h+"px; transform:rotate(")+(OD+"deg);")};
return _.G(tDz,{root:"#sticker-layer"},function(){return _.G("yt-overlay-sticker",{el:_.T$(w),style:X,class:"ytOverlayStickerHost"},r)})},"bj");var Bft=_.dG(function(g){function r(){var R,A,J,e,C=(A=_.n((R=l())==null?void 0:R.command,_.QA))==null?void 0:(J=A.item)==null?void 0:(e=J.notificationTextRenderer)==null?void 0:e.successResponseText;if(C)_.OS(B.value,"yt-open-popup-action",[_.vs(C),B.value]);else if(Q())KND(Q(),B.value);else{var X;KND((X=l())==null?void 0:X.command,B.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var E=g.data;var B=_.VI("svg"),w=_.U(_.Dk(!1,void 0,"T9Bq7b"));g=w.next().value;var O=w.next().value,M=_.U(_.Dk(!1,void 0,"iMHq9c"));w=M.next().value;var u=M.next().value,l=function(){var R;return _.n((R=E())==null?void 0:R.popUp,dA$)},Q=function(){var R;
return(R=E())==null?void 0:R.command},z=function(){return _.n(Q(),_.ko)!==void 0};
M=_.HK(function(){r();return!1});
var k={},H={};return _.G("svg",{"on:mouseover":_.HK(function(){z()&&O(!0);u(!0);return!1}),
"on:mouseout":_.HK(function(){O(!1);u(!1);return!1}),
"on:keydown":_.HK(function(R){R.key==="Enter"&&r();return!1}),
"on:focus":_.HK(function(){z()&&O(!0);return!1}),
"on:blur":_.HK(function(){z()&&O(!1);return!1}),
el:B,tabindex:0,"aria-label":function(){var R;return(R=E())==null?void 0:R.a11yString},
id:"player-overlay-video-interaction-svg",class:_.QY("ytPlayerOverlayInteractionInteractionsSvg",(k.ytPlayerOverlayInteractionInteractionsSvgHover=g,k),(H.ytPlayerOverlayInteractionInteractionsSvgHideOutline=w,H)),role:"button","on:click":M})},"dj");_.BK(_.dG(function(g){var r=g.data;_.jS(function(){var E;if((E=r())==null?0:E.trackingParams){var B;_.pW().graftServerVe((B=r().trackingParams)!=null?B:"")}});
return _.G("yt-player-overlay-interaction",null,_.G(E68,{region:function(){var E,B;return(E=r())==null?void 0:(B=E.regions)==null?void 0:B[0]}},_.G(Bft,Object.assign({},g))))},"cj"),"yt-player-overlay-interaction",{props:{data:_.cP}});var lg=function(){var g=_.a.apply(this,arguments)||this;g.showScrubber=!1;g.isWatchWhileMode=!1;g.enableRemixButton=_.Y("web_enable_shorts_remix_handoff_ep");g.enableAnchoredPanel=_.Y("desktop_shorts_v2_anchored_panel");g.enableNewStickers=_.Y("use_shorts_sticker_overlay_web");g.anchoredPanelActive=!1;g.enableLivingroomLayout=_.Y("reels_enable_livingroom_layout");g.enablePlayerMetadataContainer=_.Y("reels_web_enable_metadata_container");g.enableSqueezebackPanels=_.Y("web_shorts_enable_squeezeback_panels");
g.useAspectRatio=_.Y("web_use_aspect_ratio");g.isSqueezebackActive=!1;g.smallScreenSqueezeback=!1;g.isPlayerStarted=!1;g.overlayDensity=0;g.isOverlay=!1;g.isImmersive=!1;g.isImmersiveHorizontal=!1;g.isFullscreen=!1;g.onWindowResized=function(){var r;g.set("isImmersive",((r=window.getComputedStyle(g.hostElement))==null?void 0:r.getPropertyValue("--immersive-mode-on"))==="1");g.set("isImmersiveHorizontal",g.isImmersive&&g.enableLivingroomLayout&&!g.isWatchWhileMode)};
return g};
_.f(lg,_.a);_.S=lg.prototype;_.S.updateIsOverlay=function(g){this.isOverlay=g.detail.value};
_.S.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.Y("web_enable_flexible_overlay")||_.Y("web_enable_format_first")||_.Y("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.S.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.S.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.S.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.S.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.S.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.S.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.S.ready=function(){this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer")||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.Sg("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.Sg("reels_action_justified_content")||"flex-start")};
_.S.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",params:{roundedContainer:!1}}},renderPriority:0}}};
_.S.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.zn("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.zn("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.zn("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.zn("SHARE_LABEL",
void 0,"Share")}}});_.Y("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.zn("REMIX_LABEL",void 0,"Remix")}}});this.set("data.menu",{menuRenderer:{items:[{menuServiceItemRenderer:{}}]}});this.set("data.pivotButton",{pivotButtonViewModel:{backgroundColor:"THEME_ATTRIBUTE_OVERLAY_BACKGROUND_MEDIUM",icon:{iconType:"WAVEFORM"}}});this.setEmptyOverlayMetadata()};
_.S.setEmptyOverlayMetadata=function(){_.Y("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}))};
_.hx.Object.defineProperties(lg.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.infoPanel)}}});
lg.prototype.onIsActiveChanged=lg.prototype.onIsActiveChanged;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],lg.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],lg.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],lg.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.eb.YtdGuideStateAwareBehavior),_.L("design:type",Object)],lg.prototype,"ytdGuideStateAwareBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],lg.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Boolean)],lg.prototype,"isActive",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],lg.prototype,"hidden",void 0);_.m([_.K({value:!0}),_.L("design:type",Boolean)],lg.prototype,"useShortsIcon",void 0);_.m([_.K({value:"left"}),_.L("design:type",String)],lg.prototype,"buttonTooltipPosition",void 0);
_.m([_.K({value:_.Y("reels_enable_livingroom_layout")?"top":"left"}),_.L("design:type",String)],lg.prototype,"likeButtonTooltipPosition",void 0);_.m([_.K({value:"none"}),_.L("design:type",String)],lg.prototype,"textTransform",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],lg.prototype,"showScrubber",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],lg.prototype,"isWatchWhileMode",void 0);
_.m([_.K({reflectToAttribute:!0}),_.W("data.infoPanel"),_.L("design:type",Object),_.L("design:paramtypes",[])],lg.prototype,"hasInfoPanel",null);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],lg.prototype,"enableRemixButton",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],lg.prototype,"enableAnchoredPanel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],lg.prototype,"enableNewStickers",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],lg.prototype,"anchoredPanelActive",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],lg.prototype,"enableLivingroomLayout",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],lg.prototype,"enablePlayerMetadataContainer",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],lg.prototype,"enableSqueezebackPanels",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],lg.prototype,"useAspectRatio",void 0);_.m([_.K({selector:_.QPA,reflectToAttribute:!0}),_.L("design:type",Object)],lg.prototype,"isSqueezebackActive",void 0);_.m([_.K({selector:j75,reflectToAttribute:!0}),_.L("design:type",Object)],lg.prototype,"smallScreenSqueezeback",void 0);_.m([_.K({selector:AcF}),_.L("design:type",Object)],lg.prototype,"isPlayerStarted",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],lg.prototype,"overlayDensity",void 0);_.m([_.K(),_.L("design:type",Object)],lg.prototype,"isOverlay",void 0);_.m([_.K({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.L("design:type",Boolean)],lg.prototype,"isShortsOverlay",void 0);_.m([_.K(),_.L("design:type",Object)],lg.prototype,"isImmersive",void 0);_.m([_.K(),_.L("design:type",Object)],lg.prototype,"isImmersiveHorizontal",void 0);
_.m([_.K({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.L("design:type",Boolean)],lg.prototype,"isShortsImmersive",void 0);_.m([_.K({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.L("design:type",Object)],lg.prototype,"buttonOverride",void 0);_.m([_.K({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.L("design:type",Object)],lg.prototype,"actionBarButtonOverride",void 0);
_.m([_.K({selector:_.qq,reflectToAttribute:!0}),_.L("design:type",Object)],lg.prototype,"isFullscreen",void 0);_.m([_.Gb("isActive"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],lg.prototype,"onIsActiveChanged",null);_.m([_.N({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],lg);
_.I(lg,"ytd-reel-player-overlay-renderer",function(){if(g6v!==void 0)return g6v;var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return g6v=g},{mode:1});var wI4;var DZ=function(){var g=_.a.apply(this,arguments)||this;g.videoDuration=0;g.playedTime=0;g.isActive=!1;g.JSC$19886_playerEvents=new Map;return g};
_.f(DZ,_.a);_.S=DZ.prototype;_.S.created=function(){this.JSC$19886_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19886_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.S.attached=function(){this.getPlayerAndInitializeListeners()};
_.S.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19886_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.Do(this,this.onPageChanged))};
_.S.getPlayerAndInitializeListeners=function(){var g=this,r;return _.q(function(E){if(E.nextAddress==1)return r=_.Tw(),r?_.D(E,r.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Do(g,g.onPageChanged)),E.jumpTo(0));g.player=E.yieldResult;g.initializePlayerListeners();_.Q3(E)})};
_.S.onPageChanged=function(g){var r=this;return _.q(function(E){if(E.nextAddress==1)return g.detail.newPageType!=="ytd-shorts"?E.return():_.D(E,_.gr().getPlayerPromise(),2);r.player=E.yieldResult;r.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Do(r,r.onPageChanged));_.Q3(E)})};
_.S.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19886_playerEvents)};
_.S.onVideoDataChange=function(g){var r=this;return _.q(function(E){if(!r.player||g.type!=="newdata")return E.return();r.videoDuration=_.Y("web_shorts_use_progress_state_for_gapless")?r.player.getProgressState(g.playertype).seekableEnd:r.player.getDuration(g.playertype);r.playedTime=0;_.Q3(E)})};
_.S.onVideoProgress=function(g){var r=this,E,B;return _.q(function(w){if(!r.player)return w.return();E=r.player.getPresentingPlayerType();B=r.player.getPlayerState();r.videoDuration=_.Y("web_shorts_use_progress_state_for_gapless")?r.player.getProgressState(E).seekableEnd:r.player.getDuration(E);r.playedTime=B===0?r.videoDuration:g;_.Q3(w)})};
_.S.getPercentPlayed=function(g,r){return g?_.bj(r/g,0,1):0};
_.hx.Object.defineProperties(DZ.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 g="";return g=this.videoDuration&&this.playedTime?g+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):g+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],DZ.prototype,"componentBehavior",void 0);_.m([_.P(_.a9.YtPlayerListenerBehavior),_.L("design:type",_.X0)],DZ.prototype,"ytPlayerListenerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],DZ.prototype,"player",void 0);_.m([_.K(),_.L("design:type",Object)],DZ.prototype,"videoDuration",void 0);_.m([_.K(),_.L("design:type",Object)],DZ.prototype,"playedTime",void 0);_.m([_.K(),_.L("design:type",Object)],DZ.prototype,"isActive",void 0);
_.m([_.W("videoDuration","playedTime"),_.L("design:type",Number),_.L("design:paramtypes",[])],DZ.prototype,"percentPlayed",null);_.m([_.W("videoDuration","playedTime"),_.L("design:type",Object),_.L("design:paramtypes",[])],DZ.prototype,"percentPlayedStyle",null);_.m([_.W("videoDuration","isActive"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],DZ.prototype,"hideProgressBar",null);
_.I(DZ,"ytd-progress-bar-line",function(){if(wI4===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);wI4=g}g=wI4;return g},{mode:_.My("kevlar_poly_si_batch_j028")?1:2});var SsF;_.BK(_.i$6,"ytm-closed-captioning-button",{props:{captionIconType:_.cP,onClick:_.EB,ariaLabel:_.cP,ariaPressed:_.cP,isOverlay:_.EB,isModern:_.EB}});_.BK(_.UO8,"desktop-shorts-volume-controls",{props:{orientation:_.cP}});var op=function(){var g=_.a.apply(this,arguments)||this;g.playerState=null;g.isMuted=!1;g.shortsModernControlsEnabled=_.Y("web_shorts_modern_controls");g.volumeControlsOrientationState=_.Y("web_shorts_modern_controls")?"vertical_down":"horizontal_right";g.isOverlay=!0;g.captionIconType=-1;g.ariaLabel="";g.overlayDensity=0;g.JSC$19889_playerEvents=new Map;g.onClosedCaptionsButtonClick=function(){g.player&&_.WQ(g.player)&&(g.player.toggleSubtitles(),g.updateCaptionIconType())};
return g};
_.f(op,_.a);_.S=op.prototype;_.S.created=function(){this.JSC$19889_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19889_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$19889_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.S.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.bW(28662);this.playPauseButtonClientVE=_.bW(36842);this.fullscreenButtonToggleOffClientVE=_.bW(222256);this.fullscreenButtonToggleOnClientVE=_.bW(222257);var g=_.PE(),r=_.JF();g&&r&&(_.Y("combine_ve_grafts")?(_.Sp(_.pW(),this.muteButtonClientVE,r),_.Sp(_.pW(),this.playPauseButtonClientVE,r)):_.I6(g,r,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.S.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19889_playerEvents),this.player=null)};
_.S.updateCaptionIconType=function(){var g=-1,r=void 0,E=_.zn("CLOSED_CAPTIONS_DISABLED");this.player&&_.WQ(this.player)&&(_.Frz(this.player)?(r=!0,E=_.zn("CLOSED_CAPTIONS_ON"),g=1):(r=!1,E=_.zn("CLOSED_CAPTIONS_OFF"),g=0));this.captionIconType=g;this.ariaPressedState=r;this.ariaLabel=E};
_.S.getPlayerAndInitializeListeners=function(){var g=this,r;return _.q(function(E){if(E.nextAddress==1)return r=_.Tw(),r?_.D(E,r.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Do(g,g.onPageChanged)),E.jumpTo(0));g.player=E.yieldResult;g.initializePlayerListeners();_.Q3(E)})};
_.S.onPageChanged=function(g){var r=this;return _.q(function(E){if(E.nextAddress==1)return g.detail.newPageType!=="ytd-shorts"?E.return():_.D(E,_.gr().getPlayerPromise(),2);r.player=E.yieldResult;r.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Do(r,r.onPageChanged));_.Q3(E)})};
_.S.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19889_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.S.onPlayerStateChange=function(g){this.playerState=g};
_.S.onPlayerVolumeChange=function(g){this.isMuted=g.muted};
_.S.onPlayPauseButtonClick=function(){var g=this,r,E;return _.q(function(B){if(B.nextAddress==1)return _.D(B,_.gr().getPlayerPromise(),2);r=B.yieldResult;(E=_.PE())&&g.playPauseButtonClientVE&&_.Lu(E,g.playPauseButtonClientVE);r.getPlayerState()!==1?r.playVideo():r.pauseVideo();_.Q3(B)})};
_.S.computePlayPauseIcon=function(g){return g===2||g===-1||g===5?_.Y("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.Y("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.Y("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.S.computeFullscreenLabel=function(g){return g?_.zn("FULLSCREEN_EXIT_LABEL"):_.zn("FULLSCREEN_ENTER_LABEL")};
_.S.computePlayPauseLabel=function(g){return g===1||g===3?_.zn("PLAYER_LABEL_PAUSE"):_.zn("PLAYER_LABEL_PLAY")};
_.S.onMuteButtonClick=function(){var g=this,r,E;return _.q(function(B){if(B.nextAddress==1)return _.D(B,_.gr().getPlayerPromise(),2);r=B.yieldResult;(E=_.PE())&&g.muteButtonClientVE&&_.Lu(E,g.muteButtonClientVE);r.isMuted()?r.unMute(!0):r.mute(!0);_.Q3(B)})};
_.S.computeMuteIcon=function(g){return g?"miniplayer:volume-off":"miniplayer:volume-up"};
_.S.computeMuteLabel=function(g){return g?_.zn("PLAYER_LABEL_UNMUTE"):_.zn("PLAYER_LABEL_MUTE")};
_.S.onFullscreenButtonClick=function(){var g=_.PE();g&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.Lu(g,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.Lu(g,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.ER6()};
_.hx.Object.defineProperties(op.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var g=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(){g.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?_.Y("web_shorts_modern_controls")?"player_full_exit_alt":_.Y("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.Y("web_shorts_modern_controls")?"player_full_enter_alt":_.Y("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],op.prototype,"componentBehavior",void 0);_.m([_.P(_.a9.YtPlayerListenerBehavior),_.L("design:type",_.X0)],op.prototype,"ytPlayerListenerBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],op.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],op.prototype,"player",void 0);_.m([_.K(),_.L("design:type",Object)],op.prototype,"playerState",void 0);_.m([_.K(),_.L("design:type",Object)],op.prototype,"isMuted",void 0);
_.m([_.K({computed:"computePlayPauseIcon(playerState)"}),_.L("design:type",String)],op.prototype,"playPauseIcon",void 0);_.m([_.K({computed:"computeMuteIcon(isMuted)"}),_.L("design:type",String)],op.prototype,"muteIcon",void 0);_.m([_.K({selector:_.qq}),_.L("design:type",Boolean)],op.prototype,"isFullscreen",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],op.prototype,"shortsModernControlsEnabled",void 0);
_.m([_.K(),_.L("design:type",Object)],op.prototype,"volumeControlsOrientationState",void 0);_.m([_.K(),_.L("design:type",Object)],op.prototype,"isOverlay",void 0);_.m([_.K(),_.L("design:type",Object)],op.prototype,"captionIconType",void 0);_.m([_.K(),_.L("design:type",Object)],op.prototype,"ariaLabel",void 0);_.m([_.K(),_.L("design:type",Object)],op.prototype,"ariaPressedState",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],op.prototype,"overlayDensity",void 0);
_.m([_.W("playerState"),_.L("design:type",Object),_.L("design:paramtypes",[])],op.prototype,"playPauseButtonData",null);_.m([_.W("isFullscreen"),_.L("design:type",Object),_.L("design:paramtypes",[])],op.prototype,"fullscreenButtonData",null);_.m([_.K(),_.L("design:type",Object)],op.prototype,"onClosedCaptionsButtonClick",void 0);_.m([_.W("isFullscreen"),_.L("design:type",String),_.L("design:paramtypes",[])],op.prototype,"fullscreenIcon",null);
_.I(op,"ytd-shorts-player-controls",function(){if(SsF===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);SsF=g}g=SsF;return g},{mode:1});var OFA;_.BK(_.dW4,"yt-interstitial-view-model",{props:{data:_.cP}});var U5F=_.dG(function(g){var r=g.data;return _.G("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.G("h1",{class:"reelWatchBreakViewModelHostTitle"},_.G(_.hf,{text:function(){return r().title}})),_.G("h2",{class:"reelWatchBreakViewModelHostBody"},_.G(_.hf,{text:function(){return r().body},
isOverlay:!0})),_.G(_.Af,{data:function(){return r().buttons}},{buttonViewModel:function(E,B){return _.G("div",{class:function(){return B()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.G(_.MV,{data:E.data}))}}))},"ej");
U5F.idomCompat=!0;_.BK(U5F,"reel-watch-break-view-model",{props:{data:_.cP}});var G7=function(){return _.a.apply(this,arguments)||this};
_.f(G7,_.a);G7.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}}};
_.hx.Object.defineProperties(G7.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var g;return!!_.n((g=this.data)==null?void 0:g.renderer,LNA)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var g;return!!_.n((g=this.data)==null?void 0:g.renderer,VDz)}}});
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],G7.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],G7.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],G7.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],G7.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.W("data.renderer"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],G7.prototype,"isSurvey",null);_.m([_.K({reflectToAttribute:!0}),_.W("data.renderer"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],G7.prototype,"isInterstitialViewModel",null);_.m([_.N({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],G7);
_.I(G7,"ytd-reel-non-video-content-renderer",function(){if(OFA!==void 0)return OFA;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);
return OFA=g},{mode:_.My("kevlar_poly_si_batch_j028")?1:2});var MFm;_.BK(_.OI5,"desktop-shorts-player-controls",{});var Qm=function(){var g=_.a.apply(this,arguments)||this;g.isPlayerPaused=!1;g.isPlayerStarted=!1;g.showPlayerControls=!1;g.showScrubber=!1;g.autoHideJobId=0;g.modern=_.Y("web_button_rework");g.overlayType=_.Sg("web_shorts_expanded_overlay_type");g.panelData=void 0;g.isWatchWhileMode=!1;g.hasError=!1;g.panelShowDelayMs=1;g.scrubberComponent={};g.isFullscreen=!1;g.shouldHideOverlay=!1;g.enableAnchoredPanel=_.Y("desktop_shorts_v2_anchored_panel");g.enablePersistentAnchoredPanel=_.Y("desktop_shorts_v2_persistent_anchored_panel");
g.hideWatchWhilePanel=_.Y("web_shorts_hide_watch_while_panel");g.useAspectRatio=_.Y("web_use_aspect_ratio");g.isPersistentPanelActive=!1;g.anchoredPanelActive=!1;g.isShortsPipActive=!1;g.smallScreenSqueezeback=!1;g.enableFlexibleOverlay=_.Y("web_enable_flexible_overlay");g.overlayDensity=0;g.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};g.onWindowResized=function(){_.Ib(g,
"calculateOverlayDensity",function(){g.calculateOverlayDensity()},100)};
return g};
_.f(Qm,_.a);_.S=Qm.prototype;_.S.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.S.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.S.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var g=_.rM().resolve(_.kn);this.isWatchWhileMode&&(_.Y("web_enable_shorts_new_carousel")?_.F6.addJob(function(){g.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):g.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.S.handleShowReelsCommentsOverlayCommand=function(g){g=_.n(g,yct);this.isActive&&(g==null?0:g.engagementPanel)&&this.data&&(this.isWatchWhileMode&&this.isWatchWhileMode&&this.activeWatchWhilePanel==="engagement-panel-comments-section"?this.updateEngagementPanelVisibility("engagement-panel-comments-section",!1):this.updateEngagementPanelVisibility("engagement-panel-comments-section",!0))};
_.S.updateEngagementPanelVisibility=function(g,r){g&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:r?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:g}})};
_.S.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.S.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.rM().resolve(_.Qx).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.S.handleWatchWhilePanelScrimClick=function(){var g=_.rM().resolve(_.kn);this.activeWatchWhilePanel&&(g.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.S.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.S.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.Y("web_enable_shorts_new_carousel")?0:void 0}}};
_.S.handlePlayerClick=function(g){var r=this,E,B;if((B=(E=window).matchMedia)!=null&&B.call(E,"(any-pointer: coarse)").matches||!g)this.showPlayerControls=!0,_.F6.cancelJob(this.autoHideJobId),this.autoHideJobId=_.fC(_.F6,function(){r.showPlayerControls=!1},4E3)};
_.S.isFirstReel=function(){return this.index===0};
_.S.handleMouseenter=function(){_.F6.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.S.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.S.handleScrubberEnter=function(){this.showScrubber=!0};
_.S.handleScrubberLeave=function(){this.showScrubber=!1};
_.S.maybeLogNonDefaultAspectRatio=function(){var g;(g=this.data)!=null&&g.thumbnail&&this.isActive&&.5625!==$AD(this.data.thumbnail)&&_.AZJ("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.S.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var g=document.querySelector("#shorts-container");if(g){g=g.offsetWidth/2-this.playerContainer.offsetWidth/2;g=g>=368?1:g>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&g===1&&(g=0);this.isPersistentPanelActive&&(g=0);window.innerWidth<=599&&(g=2);this.overlayDensity=g;var r;(r=this.onOverlayDensityChanged)==null||r.call(this,this.index,this.overlayDensity)}}};
_.S.onOverlayDensityChange=function(){var g;(g=this.onOverlayDensityChanged)==null||g.call(this,this.index,this.overlayDensity);(g=_.S3(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&g.set("overlayDensity",this.overlayDensity);if(g=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))g.overlayDensity=this.overlayDensity};
_.S.isVideoContent=function(g){_.rM().resolve(_.Qx);return!!_.n(g,_.sP)};
_.S.isNonVideoContent=function(g){_.rM().resolve(_.Qx);return!!_.n(g,_.Py)};
_.S.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.hx.Object.defineProperties(Qm.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var g,r;return _.Y("web_enable_format_first")||((g=this.data)==null?void 0:g.adsOverlay)&&_.Y("web_enable_format_first_ads_only")||((r=this.data)==null?void 0:r.reelPlayerOverlayRenderer)&&_.Y("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.Y("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var g;return!this.isActive||!this.isPlayerStarted||(g=this.data)!=null&&g.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var g;if(((g=this.data)==null?0:g.command)&&this.isVideoContent(this.data.command)){var r,E;if(((r=this.data)==null?0:r.adsOverlay)&&Object.keys((E=this.data)==null?void 0:E.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var B,w;if(((B=this.data)==null?0:B.reelPlayerOverlayRenderer)&&Object.keys((w=this.data)==null?void 0:w.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
Qm.prototype.onOverlayDensityChange=Qm.prototype.onOverlayDensityChange;Qm.prototype.calculateOverlayDensity=Qm.prototype.calculateOverlayDensity;Qm.prototype.maybeLogNonDefaultAspectRatio=Qm.prototype.maybeLogNonDefaultAspectRatio;Qm.prototype.onEngagementPanelsChanged=Qm.prototype.onEngagementPanelsChanged;Qm.prototype.onScrubberDataChange=Qm.prototype.onScrubberDataChange;Qm.prototype.updateShouldHideOverlay=Qm.prototype.updateShouldHideOverlay;
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Qm.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Qm.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.eb.YtdGuideStateAwareBehavior),_.L("design:type",Object)],Qm.prototype,"ytdGuideStateAwareBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Qm.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Number)],Qm.prototype,"index",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Qm.prototype,"isActive",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Qm.prototype,"isHiddenInDom",void 0);_.m([_.K(),_.L("design:type",Object)],Qm.prototype,"isPlayerPaused",void 0);_.m([_.K({selector:AcF}),_.L("design:type",Object)],Qm.prototype,"isPlayerStarted",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Qm.prototype,"showPlayerControls",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Qm.prototype,"showScrubber",void 0);_.m([_.K(),_.L("design:type",Object)],Qm.prototype,"autoHideJobId",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Qm.prototype,"modern",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Qm.prototype,"overlayType",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],Qm.prototype,"ytdReduxBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Qm.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Qm.prototype,"watchWhileEngagementPanels",void 0);_.m([_.K(),_.L("design:type",Object)],Qm.prototype,"panelData",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Qm.prototype,"isWatchWhileMode",void 0);_.m([_.K(),_.L("design:type",String)],Qm.prototype,"activeWatchWhilePanel",void 0);
_.m([_.K(),_.L("design:type",Object)],Qm.prototype,"hasError",void 0);_.m([_.K(),_.L("design:type",Object)],Qm.prototype,"panelShowDelayMs",void 0);_.m([_.K(),_.L("design:type",Object)],Qm.prototype,"scrubberComponent",void 0);_.m([_.K({selector:_.qq,reflectToAttribute:!0}),_.L("design:type",Object)],Qm.prototype,"isFullscreen",void 0);_.m([_.K(),_.L("design:type",Object)],Qm.prototype,"shouldHideOverlay",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Qm.prototype,"enableAnchoredPanel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Qm.prototype,"enablePersistentAnchoredPanel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Qm.prototype,"hideWatchWhilePanel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Qm.prototype,"useAspectRatio",void 0);
_.m([_.K({selector:_.QPA,reflectToAttribute:!0}),_.L("design:type",Object)],Qm.prototype,"isPersistentPanelActive",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Qm.prototype,"anchoredPanelActive",void 0);_.m([_.K({selector:_.oz,reflectToAttribute:!0}),_.L("design:type",Object)],Qm.prototype,"isShortsPipActive",void 0);_.m([_.K({selector:j75,reflectToAttribute:!0}),_.L("design:type",Object)],Qm.prototype,"smallScreenSqueezeback",void 0);
_.m([_.K({reflectToAttribute:!0}),_.W("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.L("design:type",Object),_.L("design:paramtypes",[])],Qm.prototype,"enableFormatFirst",null);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Qm.prototype,"enableFlexibleOverlay",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Qm.prototype,"overlayDensity",void 0);_.m([_.K(),_.L("design:type",Function)],Qm.prototype,"onOverlayDensityChanged",void 0);
_.m([_.K(),_.W("isActive","hasError","isPlayerStarted"),_.L("design:type",Object),_.L("design:paramtypes",[])],Qm.prototype,"shouldRenderPlayerElements",null);_.m([_.K(),_.W("isActive","isWatchWhileMode"),_.L("design:type",Object),_.L("design:paramtypes",[])],Qm.prototype,"watchWhileOrPersistentActive",null);_.m([_.Gb("isActive","hasError","showingExpandedOverlay"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Qm.prototype,"updateShouldHideOverlay",null);
_.m([_.K({reflectToAttribute:!0}),_.W("isActive","isPlayerStarted","data"),_.L("design:type",Object),_.L("design:paramtypes",[])],Qm.prototype,"shouldRenderScrubber",null);_.m([_.Gb("shouldRenderScrubber"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Qm.prototype,"onScrubberDataChange",null);_.m([_.W("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.L("design:type",Object),_.L("design:paramtypes",[])],Qm.prototype,"overlayComponent",null);
_.m([_.Gb("watchWhileEngagementPanels"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Qm.prototype,"onEngagementPanelsChanged",null);_.m([_.zb("#player-container"),_.L("design:type",HTMLElement)],Qm.prototype,"playerContainer",void 0);_.m([_.zb("#cinematic-container"),_.L("design:type",HTMLElement)],Qm.prototype,"cinematicContainer",void 0);
_.m([_.Gb("isPersistentPanelActive","data.thumbnail"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Qm.prototype,"maybeLogNonDefaultAspectRatio",null);_.m([_.Gb("isPersistentPanelActive"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Qm.prototype,"calculateOverlayDensity",null);_.m([_.Gb("overlayDensity"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Qm.prototype,"onOverlayDensityChange",null);
_.m([_.N({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],Qm);
_.I(Qm,"ytd-reel-video-renderer",function(){if(MFm!==void 0)return MFm;var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return MFm=g},{mode:_.My("kevlar_poly_si_batch_j028")?1:2});var z7=function(){var g=_.a.apply(this,arguments)||this;g.isPreviousPageShorts=!1;g.index=0;g.delayedActiveIndex=0;g.playablePreviousIndex=null;g.isPlayerPaused=!1;g.isPlayerStarted=!1;g.intersectionObserverThreshold=.6;g.fitToVisibleBounds=!1;g.pageSubtype="shorts";g.enablePreviousContinuation=_.Y("shorts_in_playlists_web");g.shortsPipEnabled=_.Y("web_shorts_pip");g.isDark=document.documentElement.hasAttribute("dark");g.shortsViewTransitions=_.Y("web_shorts_view_transitions");g.isFullscreen=!1;g.isShortsPipActive=
!1;g.buttonOverride={iconPosition:"icon-only",size:"XL"};g.anchoredPanelActive=!1;g.isActive=!1;g.smallScreenPersistentPanel=!1;g.isPersistentPanelActive=!1;g.smallScreenSqueezeBack=!1;g.enableScrollIntoViewCenter=_.Y("web_scroll_into_view_center");g.formatFirst=_.Y("web_enable_format_first")||_.Y("web_enable_format_first_ads_only")||_.Y("web_enable_format_first_organic_only");g.enableFlexibleOverlay=_.Y("web_enable_flexible_overlay");g.useAspectRatio=_.Y("web_use_aspect_ratio");g.isShortsInitialized=
!1;g.hidePreviousButtonImmediately=!1;g.showPreviousButtonImmediately=!1;g.endOfNextContinuation=!1;g.currentPlayerIndex=0;g.nextReelVe=_.bW(56921);g.prevReelVe=_.bW(56922);g.loopToggleOffVe=_.bW(198013);g.loopToggleOnVe=_.bW(198014);g.ambientModeToggleVe=_.bW(227860);g.reelPlayerPausedStateRendererVe=_.bW(141313);g.storedPlaybackSpeed=null;g.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"};g.onOverlayDensityChanged=function(r,E){var B;(B=g.getActiveReelVideo(r))==null||B.setAttribute("overlay-density",String(E))};
return g};
_.f(z7,_.a);_.S=z7.prototype;
_.S.deflateInactivePreviousSlides=function(){var g=_.wM("web_shorts_deflate_inactive_slides_aggressive_distance");if(g>0&&this.shortsProcessedSequence&&this.activeIndex){g=this.activeIndex-g;for(var r=0;r<=g;r++){var E=void 0;((E=this.shortsProcessedSequence[r].reelPlayerOverlayRenderer)==null?0:E.metapanel)&&this.set("shortsProcessedSequence."+r+".reelPlayerOverlayRenderer",{});E=void 0;((E=this.shortsProcessedSequence[r].adsOverlay)==null?0:E.adSlotMetadata)&&this.set("shortsProcessedSequence."+r+
".adsOverlay",{})}}};
_.S.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.S.onResize=function(){var g=_.Zz(),r=g.dispatch,E=this.calculateIsSmallWidth();r.call(g,_.Bs({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:E}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.S.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:_.Y("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:0}}};
_.S.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var g=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,r=g,E=0;g<250&&(r=g+this.shortsInnerContainer.clientWidth,E=24);_.ua(this.hostElement,{"--ytd-shorts-header-width":r+"px","--ytd-shorts-top-spacing":E+"px"})}};
_.S.isFirstShorts=function(g){return g?this.index===-g.length:this.index===0};
_.S.isActiveReel=function(g,r,E){E&&(r=this.calculatePrevIndex(r,E));return g===r};
_.S.onFullscreenChange=function(){if(_.Y("web_fullscreen_shorts")){var g;(g=this.getActiveReelVideo(this.activeIndex))==null||g.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.rM().resolve(_.ea).close(!0)}};
_.S.engagementPanelsChanged=function(){var g;this.watchWhileEngagementPanels=(g=this.data)==null?void 0:g.engagementPanels};
_.S.unregisterPanels=function(){var g=_.rM().resolve(_.kn);if(this.watchWhileEngagementPanels)for(var r=_.U(this.watchWhileEngagementPanels),E=r.next();!E.done;E=r.next()){var B=void 0,w=void 0;E=(B=E.value.engagementPanelSectionListRenderer)==null?void 0:(w=B.identifier)==null?void 0:w.tag;g&&E&&g.panelMap.delete(E)}};
_.S.isVideoContent=function(g){return this.isVideoContentCommand(g==null?void 0:g.command)};
_.S.getActiveReelVideo=function(g){return _.S3(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+g+'"]')};
_.S.calculatePrevIndex=function(g,r){return r?g-((r==null?void 0:r.length)||0):-1};
_.S.onKeydown=function(g){var r=_.Z1(g)||[];if(!_.rpD(r))if(g.code==="ArrowUp")g.preventDefault(),this.handlePrevButtonClick();else if(g.code==="ArrowDown")g.preventDefault(),this.handleNextButtonClick();else if(g.code==="KeyM")this.toggleMuteUnmuteVideo();else if(g.code==="KeyK"||g.code==="Space")this.togglePlayPauseVideo();else if((g.code==="KeyA"||g.code==="ArrowLeft")&&_.Y("web_shorts_keyboard_enable_seek_shortcuts")){var E;(E=this.player)==null||E.seekBy(-5)}else if((g.code==="KeyD"||g.code===
"ArrowRight")&&_.Y("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var B;(B=this.player)==null||B.seekBy(5)}};
_.S.onServiceRequestCompleted=function(g,r){g=r.data;g.continuationEndpoint&&g.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:g.entries,continuationEndpoint:g.continuationEndpoint}}):g.prevContinuationEndpoint&&g.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:g.prevEntries,prevContinuationEndpoint:g.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.S.handleEngagementPanelVisibilityChanged=function(g,r){var E=_.rM().resolve(_.kn);if(g&&E){var B,w=((B=g.identifier)==null?void 0:B.tag)||g.panelIdentifier||g.targetId;if(r==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==w){E.hidePanel(this.activePanel);var O;this.activePanel=((O=g.identifier)==null?void 0:O.tag)||g.panelIdentifier}else this.isPersistentPanelActive=!0,_.Zz().dispatch(a3M(!0)),this.anchoredPanelActive=!0,this.activePanel=w;else r==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===w&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Zz().dispatch(a3M(!1)))}};
_.S.handlePanelScrimClick=function(){var g=_.rM().resolve(_.kn);this.activePanel&&(g.hidePanel(this.activePanel),_.Zz().dispatch(a3M(!1)))};
_.S.getShortsLoopSetting=function(){var g,r,E,B,w;return _.q(function(O){switch(O.nextAddress){case 1:return _.Y("kevlar_shorts_auto_advance")?_.D(O,_.RH.getInstance(),2):O.return(!0);case 2:return(g=O.yieldResult)?_.D(O,g.get("sfvles"),3):O.return(!0);case 3:return E=(r=O.yieldResult)!=null?r:!1,_.D(O,g.get("sfvle"),4);case 4:return w=(B=O.yieldResult)!=null?B:!0,E?O.return(w):O.return(!0)}})};
_.S.handleSignalActionToggleLoopShortsOff=function(){var g=this,r,E,B;return _.q(function(w){switch(w.nextAddress){case 1:if(!g.player)return w.return();g.player.setLoopVideo(!1);r=_.pW();_.Uk(r,g.loopToggleOffVe);return _.D(w,_.RH.getInstance(),2);case 2:return(E=w.yieldResult)?_.D(w,E.set("sfvle",!1),3):w.return();case 3:return _.D(w,E.set("sfvles",!0),4);case 4:B=_.pu(),_.Yg(0,203,!1),_.Yg(0,204,!0),B.save(),_.Q3(w)}})};
_.S.handleSignalActionToggleLoopShortsOn=function(){var g=this,r,E,B;return _.q(function(w){switch(w.nextAddress){case 1:if(!g.player)return w.return();g.player.setLoopVideo(!0);r=_.pW();_.Uk(r,g.loopToggleOnVe);return _.D(w,_.RH.getInstance(),2);case 2:return(E=w.yieldResult)?_.D(w,E.set("sfvle",!0),3):w.return();case 3:return _.D(w,E.set("sfvles",!0),4);case 4:B=_.pu(),_.Yg(0,203,!0),_.Yg(0,204,!0),B.save(),_.Q3(w)}})};
_.S.handleSignalActionToggleCinematicShortsOn=function(){f3M(!0);var g;(g=this.JSC$19913_cinematicController)==null||_.Y4A(g,!0);_.Uk(_.pW(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.S.handleSignalActionToggleCinematicShortsOff=function(){f3M(!1);var g;(g=this.JSC$19913_cinematicController)==null||_.Y4A(g,!1);_.Uk(_.pW(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.S.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.S.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.S.unhideCurrentOverlay=function(){if(this.overlayContainer){var g=this.overlayContainer.querySelector("#experiment-overlay");g&&_.F6.addLowPriorityJob(function(){g.style.display="unset"},100)}};
_.S.getCurrentShort=function(){if(this.currentEndpoint){var g=this.currentEndpoint;if(this.isNonVideoContentCommand(g)){var r=_.n(g,_.Py);return{reelNonVideoContentRenderer:_.n(r==null?void 0:r.renderer,_.nCw),command:g}}if(this.data){var E;r=(E=_.n(this.currentEndpoint,_.sP))==null?void 0:E.thumbnail;var B;E=(B=this.data.overlay)==null?void 0:B.reelPlayerOverlayRenderer;_.rM().resolve(_.Qx);g=this.data;var w,O;B=(w=g.overlay)==null?void 0:(O=w.shortsAdsRenderer)==null?void 0:O.adSlots;if(B!==void 0)B.length===
0?(_.yU("Shorts ads returned no ad slots."),g=void 0):(B.length>1&&_.yU("Shorts ads has more than one ad slots."),g=_.n(B[0],_.IPb));else{var M,u;g=_.n((M=g.overlay)==null?void 0:(u=M.shortsAdsRenderer)==null?void 0:u.overlay,_.IPb)}M=g;g=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.n(this.currentEndpoint,_.sP),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:E,thumbnail:r,command:g,adsOverlay:M}}}};
_.S.created=function(){var g=this;this.scrollToVideoThrottle=new _.VU(function(r){var E;(E=g.getActiveReelVideo(r))==null||E.scrollIntoView({behavior:"smooth",block:"nearest",inline:g.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.VU(function(r){var E;(E=g.getActiveReelVideo(r))==null||E.scrollIntoView({behavior:"auto",block:"nearest",inline:g.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.S.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.S.attached=function(){var g=this;_.rM().resolve(_.Qx).registerRootElement(this);this.pageScrollElement=_.S3(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.Do(this,this.processResetAction));_.Y("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.Y("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var r=
g.getActiveReelVideo(g.activeIndex);g.maybeCreateIntersectionObserver();r==null||r.scrollIntoView({behavior:"instant",block:"nearest",inline:g.enableScrollIntoViewCenter?"center":"start"});g.shortsContainer.style.overflowY="scroll"}))};
_.S.calculateSqueezebackPanelSize=function(){var g=this,r=window.innerWidth-456-(window.innerHeight-106)*.5625;_.F6.addLowPriorityJob(function(){r<360?_.Zz().dispatch(X76(!0)):(g.hostElement.style.setProperty("--anchored-panel-width",Math.min(r,480)+"px"),_.Zz().dispatch(X76(!1)))})};
_.S.detached=function(){var g=_.rM().resolve(_.Qx);g.rootElement=void 0;var r;(r=g.unsubscribeFromStore)==null||r.call(g);g.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.Do(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.S.onResizeFinished=function(g,r){var E=this,B=new ResizeObserver(function(){E.shortsContainer.style.overflowY="hidden";_.F6.addLowPriorityJob(function(){r()},100)});
B.observe(g);return B};
_.S.resetDocumentScrollTop=function(){var g,r;if((g=document)==null?0:(r=g.scrollingElement)==null?0:r.scrollTop)document.scrollingElement.scrollTop=0};
_.S.loadPage_=function(g){var r=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),g){var E;!_.Y("web_enable_delay_shorts_sequence_call")&&((E=_.n(this.currentEndpoint,_.sP))==null?0:E.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=g;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){r.isPlayerStarted&&(r.handleOnPlaybackCommand(),r.afterPlayerStarted=function(){})};
this.registerPanel(g)}};
_.S.afterPlayerStarted=function(){};
_.S.handleOnPlaybackCommand=function(){if(_.Y("web_shorts_comment_stickers")&&this.isPlayerStarted){var g,r=(g=_.n(this.currentEndpoint,_.sP))==null?void 0:g.onPlaybackCommand;r&&this.ytComponentBehavior.resolveCommand(r)}};
_.S.maybeCreateIntersectionObserver=function(){var g=this,r=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==r){this.intersectionObserverThreshold=r;var E={rootMargin:"0px",threshold:r},B;(B=this.intersectionObserver)==null||B.disconnect();this.intersectionObserver=new IntersectionObserver(function(w){w=_.U(w);for(var O=w.next();!O.done;O=w.next())if(O=O.value,O.intersectionRatio>r){O=Number(O.target.id);if(isNaN(O))break;if(O===g.index)break;
_.B8o();g.loadVideo(O);_.Wk("r_vtc")}},E);
this.observeShorts()}};
_.S.observeShorts=function(){var g=[].concat(_.jW(_.S3(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));g=_.U(g);for(var r=g.next();!r.done;r=g.next()){r=r.value;var E=void 0;(E=this.intersectionObserver)==null||E.observe(r)}};
_.S.initCsi=function(){_.jj("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var g={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"}},r,E;if((r=this.playerData)==null?0:(E=r.cacheMetadata)==null?0:E.isCacheHit)g.isCacheHit=!0;var B;if(r=(B=_.n(this.currentEndpoint,_.sP))==null?void 0:
B.prefetchTaskId)g.prefetchInfo={taskId:r};_.Pk(g)};
_.S.isAd=function(){var g,r;return!!((g=_.n(this.currentEndpoint,_.sP))==null?0:(r=g.adClientParams)==null?0:r.isAd)};
_.S.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.S.getPlayerContainer=function(){var g;return(g=_.S3(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:g.playerContainer};
_.S.onPlayerStateChange=function(g){var r=this;this.isPlayerPaused=g===2;g!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?g===1&&this.index===0&&(this.isPlayerStarted||_.Zz().dispatch(OK(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Zz().dispatch(OK(!0)));this.player&&!this.player.getLoopVideo()&&_.F6.addLowPriorityJob(function(){r.getShortsLoopSetting().then(function(E){var B;(B=r.player)==null||B.setLoopVideo(E)})});
this.isPlayerPaused&&_.Y("web_shorts_paused_state_logging")&&_.ck(_.PE(),[this.reelPlayerPausedStateRendererVe])};
_.S.isInBackground=function(){var g=window.document.visibilityState;return!(!g||g==="visible")};
_.S.isShortPlayable=function(){if(_.Y("kevlar_playable_short_killswitch"))return!0;var g;return(g=this.playerData)!=null&&g.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.S.setNormalPlaybackSpeed=function(){var g=this,r,E;return _.q(function(B){if(B.nextAddress==1)return _.D(B,g.getPlayer().getPlayerPromise(),2);r=B.yieldResult;E=r.getPlaybackRate();E!==1&&(g.storedPlaybackSpeed=E,r.setPlaybackRate(1));_.Q3(B)})};
_.S.restorePlaybackSpeed=function(){var g=this,r;return _.q(function(E){if(E.nextAddress==1)return g.storedPlaybackSpeed===null?E.jumpTo(0):_.D(E,g.getPlayer().getPlayerPromise(),3);r=E.yieldResult;r.setPlaybackRate(g.storedPlaybackSpeed);g.storedPlaybackSpeed=null;_.Q3(E)})};
_.S.playerDataChanged=function(){var g=this,r,E,B,w,O,M,u,l,Q;return _.q(function(z){if(z.nextAddress==1){r=g.getPlayer();(E=g.intersectionObserver)==null||E.disconnect();if(g.playerData){if(((B=g.playerData.videoDetails)==null?void 0:B.videoId)!==((w=r.getPlayer())==null?void 0:w.getVideoData().video_id)){O={};if(M=_.n(g.currentEndpoint,_.sP))O.watch_endpoint=M,M.endTimeSeconds&&(O.end=M.endTimeSeconds);r.loadVideoWithPlayerResponse(g.playerData,O)}}else return z.return();return g.player?z.jumpTo(2):
_.D(z,r.getPlayerPromise(),3)}z.nextAddress!=2&&(g.player=z.yieldResult,g.JSC$19913_playerStateChangeListener=g.onPlayerStateChange.bind(g),g.player.addEventListener("onStateChange",g.JSC$19913_playerStateChangeListener),_.Y("kevlar_client_enable_shorts_player_bootstrap")&&_.iP(),g.scrollToVideoThrottle.fire(g.index),g.movePlayerToVideo(g.index),_.F6.addLowPriorityJob(function(){g.getShortsLoopSetting().then(function(k){var H;(H=g.player)==null||H.setLoopVideo(k)})}),_.uGD.resolve(g.player),g.player.syncVolume(),
g.getPlayer().focusOnPlayer());
_.F6.addLowPriorityJob(function(){g.observeShorts()},100);
u=g.player.getPlayerState(g.player.getPresentingPlayerType());u!==1||g.isPlayerStarted||_.Zz().dispatch(OK(!0));g.updateBackNavContainerWidth();l=_.n(g.currentEndpoint,_.sP);((Q=l)==null?0:Q.startTimeSeconds)&&g.player.seekTo(l.startTimeSeconds);if(g.JSC$19913_cinematicController||g.cinematicsInitializeJobId)return z.return();g.cinematicsInitializeJobId=_.F6.addLowPriorityJob(function(){g.initCinematicController();g.cinematicsInitializeJobId=void 0});
_.Q3(z)})};
_.S.onShortUndoDismiss=function(){var g=this,r=xA8().pop();r!==void 0&&(_.Lk(this,function(){g.showCardWithIndex(r)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.S.onShortsDismiss=function(g){if(g=g.detail.reelDismissalActionRenderer)(g=_.n(g.onDismissalCompletionRenderer,_.veM))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:g}}}),this.scrollAndDismissCard()};
_.S.processReelNonVideoContentDismissalCommand=function(g){var r=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);g=_.n(g,Z15);this.activeDimissalTimeout=setTimeout(function(){r.scrollAndDismissCard()},Number(g==null?void 0:g.delayMs))};
_.S.scrollAndDismissCard=function(){var g=this,r=this.index;xA8().push(r);_.Lk(this,function(){var E=g.getPlayableNextIndex();E!==null&&(E=g.getActiveReelVideo(E),g.hideCardWithIndex(r),E==null||E.scrollIntoView({behavior:"smooth",block:"nearest",inline:g.enableScrollIntoViewCenter?"center":"start"}))})};
_.S.hideCardWithIndex=function(g){if(g=this.getActiveReelVideo(g))g.hidden=!0};
_.S.showCardWithIndex=function(g){if(g=this.getActiveReelVideo(g))g.hidden=!1};
_.S.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.S.activeChanged=function(g){_.Zz().dispatch(_.Bs({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:g}}));if(g)document.addEventListener("keydown",_.Do(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var r;(r=this.player)==null||r.sendAbandonmentPing()}var E;(E=this.player)==null||E.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.Do(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.S.graftClientVisualElements=function(){if(this.data){var g=_.pW();_.MbU(g,_.lq({response:this.reelWatchSequenceResponse}));_.Sp(g,this.nextReelVe);_.Sp(g,this.prevReelVe);_.Y("kevlar_shorts_auto_advance")&&(_.Sp(g,this.loopToggleOffVe),_.Sp(g,this.loopToggleOnVe));_.Sp(g,this.ambientModeToggleVe);_.ck(_.PE(),[this.nextReelVe,this.prevReelVe]);_.Y("web_shorts_paused_state_logging")&&_.Sp(g,this.reelPlayerPausedStateRendererVe)}};
_.S.graftNvcRenderer=function(){var g,r,E,B,w=this.index<0?(g=this.shortsProcessedPrevSequence)==null?void 0:(r=g[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:r.command:(E=this.shortsProcessedSequence)==null?void 0:(B=E[this.index])==null?void 0:B.command;if(w&&this.isNonVideoContentCommand(w)){g=_.n(w,_.Py);var O,M;(g=(O=_.n(g==null?void 0:g.renderer,_.nCw))==null?void 0:(M=O.loggingDirectives)==null?void 0:M.trackingParams)&&_.pW().graftServerVe(g)}};
_.S.setActiveIndex=function(){_.rM().resolve(_.Qx).setActiveIndex(this.index)};
_.S.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.S.lazyUpdateMiniplayerData=function(){var g=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.F6.addLowPriorityJob(function(){g.updateMiniplayerData();g.updateMiniplayerDataJobId=void 0}))};
_.S.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.F6.cancelJob(this.updateMiniplayerDataJobId)};
_.S.updateMiniplayerData=function(){var g,r,E,B=_.rM().resolve(_.ea),w={shortsData:this.getCurrentShort(),previousButtonDisabled:!((g=this.prevButtonData)==null||!g.isDisabled),nextButtonDisabled:!((r=this.nextButtonData)==null||!r.isDisabled),playabilityStatus:(E=this.playerData)==null?void 0:E.playabilityStatus};_.sE(B,w)};
_.S.resetPlayerLocation=function(){var g=this.getPlayer();this.initialPlayerContainer&&g.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.S.movePlayerToVideo=function(g,r){var E=this;r=r===void 0?!0:r;var B=this.getActiveReelVideo(g),w=this.getPlayer();if(B){this.overlayContainer?B.appendChild(this.overlayContainer):(this.overlayContainer=_.S3(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,B.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||w.appendTo(this.overlayContainer.playerContainer,void 0,!0));var O;(O=this.player)==null||O.setSize(NaN,NaN);this.isActive||_.fC(_.F6,function(){E.isActive=
!0});
w.style.visibility="visible";_.Y("reels_web_disable_rtr_tick")||_.Y("reels_web_use_pbs_first_shorts")&&g===0||_.F4("r_tr");this.currentPlayerIndex=g;B.appendChild(this.errorScreenContainer);var M;(M=this.JSC$19913_cinematicController)==null||_.nXA(M)}else r?_.F6.addLowPriorityJob(function(){E.movePlayerToVideo(E.index,!1)}):Math.random()<=_.wM("web_shorts_error_logging_threshold")&&_.FR(new _.Rj("Trying to movePlayerToVideo with undefined container.",{firstAttempt:r,
index:g}))};
_.S.enableFormatFirst=function(g){return _.Y("web_enable_format_first")||g.adsOverlay&&_.Y("web_enable_format_first_ads_only")||g.reelPlayerOverlayRenderer&&_.Y("web_enable_format_first_organic_only")};
_.S.getAspectRatio=function(g){if(g!=null&&g.thumbnail&&this.enableFormatFirst(g))return"--ytd-shorts-player-ratio: "+$AD(g.thumbnail)};
_.S.getBackgroundImage=function(g){if(g!=null&&g.thumbnail)return(g=_.Sk(g.thumbnail.thumbnails))?'background-image:url("'+g+'");':"background-color:black;"};
_.S.onPersistentPanelActiveChanged=function(){var g=this.getCurrentShort();if(g&&this.enableFormatFirst(g)&&(g==null?0:g.thumbnail)&&$AD(g.thumbnail)!==.5625){var r;(r=this.player)==null||r.setSize(NaN,NaN)}};
_.S.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.S.moveCinematicsToVideo=function(){var g=_.S3(this.hostElement).querySelector("ytd-reel-video-renderer");(g==null?0:g.cinematicContainer)&&g.cinematicContainer!==this.shortsCinematicContainer.parentElement&&g.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.S.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.S.updatePrevButtonData=function(){var g=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(g){var r;this.prevButtonData=g=Object.assign({},g,{accessibility:{label:_.zn("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:g.isDisabled||this.index===-(((r=this.shortsProcessedPrevSequence)==null?void 0:r.length)||0),tooltip:this.isUpArrowHidden?"":_.zn("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=g=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.S.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.S.updateNextButtonData=function(){var g=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(g){var r;this.nextButtonData=g=Object.assign({},g,{accessibility:{label:_.zn("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:g.isDisabled||this.index===((r=this.shortsProcessedSequence)==null?void 0:r.length),tooltip:_.zn("NEXT_VIDEO_LABEL")||""})}};
_.S.getPlayablePreviousIndex=function(){for(var g,r=this.index-1;r>=-(((g=this.prevShortsSequence)==null?void 0:g.length)||0);r--)if(!xA8().includes(r))return r;return null};
_.S.getIndexInSequence=function(g,r){return g.findIndex(function(E){var B;return((B=_.n(E.command,_.sP))==null?void 0:B.videoId)===r})};
_.S.handlePrevButtonClick=function(g){var r=this,E,B;return _.q(function(w){E=r.getPlayablePreviousIndex();if(E===null)return w.return();r.gestureType=((B=g)==null?void 0:B.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";E===0&&(r.hidePreviousButtonImmediately=!0);if(r.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){r.transitionToVideoThrottle.fire(E)}),w.return();
r.scrollToVideoThrottle.fire(E);_.Q3(w)})};
_.S.getPlayableNextIndex=function(){for(var g,r=this.index+1;r<(((g=this.shortsProcessedSequence)==null?void 0:g.length)||0);r++)if(!xA8().includes(r))return r;return null};
_.S.handleNextButtonClick=function(g,r){var E=this,B,w;return _.q(function(O){B=E.getPlayableNextIndex();if(B===null)return O.return();B===1&&(E.showPreviousButtonImmediately=!0);E.gestureType=((w=g)==null?void 0:w.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";r&&(E.gestureType=r);if(E.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){E.transitionToVideoThrottle.fire(B)}),O.return();
E.scrollToVideoThrottle.fire(B);_.Q3(O)})};
_.S.handleReelNavigateCommand=function(g,r,E){(g=_.n(g,hVA))&&r&&g.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(E)};
_.S.loadVideo=function(g,r){r=r===void 0?!1:r;if(g!==this.currentPlayerIndex){_.Zz().dispatch(OK(!1));if(this.isAd()&&!r){var E;(E=this.player)==null||E.notifyShortsAdSwipeEvent()}if((r=this.JSC$19913_cinematicController)!=null){var B;(B=r.currentCinematicEffect)==null||B.pause()}if((B=this.JSC$19913_cinematicController)!=null){var w;(w=B.currentCinematicEffect)==null||w.clear()}B=g>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(B));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var O,M,u,l;w=g<0?(O=this.shortsProcessedPrevSequence)==null?void 0:(M=O[this.shortsProcessedPrevSequence.length+g])==null?void 0:M.command:(u=this.shortsProcessedSequence)==null?void 0:(l=u[g])==null?void 0:l.command;this.index=g;this.gestureType||(this.gestureType=B?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
w&&this.isVideoContentCommand(w)&&(this.ytComponentBehavior.resolveCommand(w,{form:{createScreenConfig:{clickedVisualElement:B?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(w&&this.isNonVideoContentCommand(w)){this.currentEndpoint=w;this.data=void 0;O=_.pW();M=_.n(w,_.Py);var Q,z;(M=(Q=_.n(M==null?void 0:M.renderer,_.nCw))==null?void 0:(z=Q.screenLoggingData)==null?void 0:z.screenVeType)&&_.wT(O,M);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(Q=this.getActiveReelVideo(g))&&Q.appendChild(this.overlayContainer)}var k,H;if(((k=this.reelWatchSequenceResponse)==null?0:k.continuationEndpoint)&&((H=this.reelWatchSequenceResponse)==null?0:H.entries)&&g===this.reelWatchSequenceResponse.entries.length-1){var R,A;k={contentPlaybackContext:_.jN({},(A=_.n((R=this.currentEndpoint)==null?void 0:R.commandMetadata,_.dU))==null?void 0:A.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:k})}var J,e,C;((J=this.reelWatchSequenceResponse)==null?0:J.prevContinuationEndpoint)&&g===-(((e=this.reelWatchSequenceResponse)==null?void 0:(C=e.prevEntries)==null?void 0:C.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.S.setMiniplayerPreview=function(g){g=(g===void 0?0:g)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var r,E,B=_.rM().resolve(_.ea),w={shortsData:void 0,shortsPreviewThumbnail:g?(r=this.shortsProcessedSequence)==null?void 0:(E=r[g])==null?void 0:E.thumbnail:void 0};_.sE(B,w)};
_.S.updateTitle=function(g){var r,E;g=(g==null?0:g.adSlots)?"":(E=g==null?void 0:(r=g.videoDetails)==null?void 0:r.title)!=null?E:"";_.Sh(this.hostElement,"yt-update-title",g)};
_.S.registerPanel=function(g){var r=_.rM().resolve(_.kn);if(r){g=_.U(g.engagementPanels||[]);for(var E=g.next();!E.done;E=g.next()){E=E.value;var B=E.engagementPanelSectionListRenderer,w=void 0,O=void 0,M=void 0,u=void 0,l=((w=B)==null?void 0:w.targetId)||((O=B)==null?void 0:O.panelIdentifier)||((M=B)==null?void 0:(u=M.identifier)==null?void 0:u.tag);w=B=void 0;(w=(B=r).registerPanelContent)==null||w.call(B,l,E)}}};
_.S.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;_.Zz().dispatch(OK(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;_.Zz().dispatch(a3M(!1));var g=_.rM().resolve(_.Qx);g.dismissedIndices=[];g.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&
_.rM().resolve(_.ea).close(!0)};
_.S.processAppendReelWatchSequenceContinuationEntriesAction=function(g){var r=this,E;(E=this.intersectionObserver)==null||E.disconnect();g=g.appendReelWatchSequenceContinuationEntriesAction;if(g==null?0:g.entries){var B;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.jW(((B=this.reelWatchSequenceResponse)==null?void 0:B.entries)||[]),_.jW(g.entries)),continuationEndpoint:g.continuationEndpoint})}else if(g==null?0:g.prevEntries){var w;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.jW(((w=this.reelWatchSequenceResponse)==null?void 0:w.prevEntries)||[]),_.jW(g.prevEntries)),prevContinuationEndpoint:g.prevContinuationEndpoint});_.F6.addLowPriorityJob(function(){r.movePlayerToVideo(r.index);var O;(O=r.getActiveReelVideo(r.index))==null||O.scrollIntoView({block:"nearest",inline:r.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.F6.addLowPriorityJob(function(){r.observeShorts()},100)};
_.S.processWatchSequence=function(g){var r=this;return g.map(function(E){E=E.command;if(r.isVideoContentCommand(E)){var B=_.n(E,_.sP);return{reelPlayerOverlayRenderer:_.n(B==null?void 0:B.overlay,_.s4w),thumbnail:B.thumbnail,command:E}}return r.isNonVideoContentCommand(E)?(B=_.n(E,_.Py),{reelNonVideoContentRenderer:_.n(B==null?void 0:B.renderer,_.nCw),command:E}):{command:E}})};
_.S.calculateIntersectionObserverThreshold=function(){var g=_.S3(this.hostElement).querySelector("ytd-reel-video-renderer"),r=1;(g==null?0:g.offsetHeight)&&(g==null?0:g.offsetWidth)&&(r=Math.min(g.offsetHeight,this.shortsContainer.offsetHeight)/g.offsetHeight*(Math.min(g.offsetWidth,this.shortsContainer.offsetWidth)/g.offsetWidth));return Math.round(r*.6*10)/10};
_.S.isVideoContentCommand=function(g){_.rM().resolve(_.Qx);return!!_.n(g,_.sP)};
_.S.isNonVideoContentCommand=function(g){_.rM().resolve(_.Qx);return!!_.n(g,_.Py)};
_.S.initCinematicController=function(){var g=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19913_cinematicController=new _.Sc(this.shortsCinematicContainer,this.player);var r,E=_.n((r=this.data)==null?void 0:r.background,_.sf);_.RV6(this.JSC$19913_cinematicController,E);_.Y4A(this.JSC$19913_cinematicController,s7g(E));_.p7t(this.JSC$19913_cinematicController);_.F6.addLowPriorityJob(function(){g.moveCinematicsToVideo()})}};
_.S.handleMiniplayerNavigateShorts=function(g){g==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():g==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.S.handleSignalActionToggleShortsPictureInPicture=function(){if(_.rM().resolve(_.ea).pictureInPictureSupported()){var g=_.rM().resolve(_.Qx);if(_.Y("web_shorts_pip")){var r=_.rM().resolve(_.ea);g.isShortsPipActive()?r.deactivate():r.isMiniplayerActive()||(_.Di().shortsPipActivation=!0,_.kh6(r))}}else(g=this.player)==null||g.togglePictureInPicture()};
_.hx.Object.defineProperties(z7.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.reelWatchSequenceResponse)!=null&&g.prevEntries)return this.processWatchSequence([].concat(_.jW(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var g=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!g)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var r=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.jW(this.prevShortsSequence.slice(0,r)),[g],_.jW(this.prevShortsSequence.slice(r+
1)))}r=this.index+this.shortsProcessedPrevSequence.length;g.thumbnail=this.shortsProcessedPrevSequence[r].thumbnail;return[].concat(_.jW(this.shortsProcessedPrevSequence.slice(0,r)),[g],_.jW(this.shortsProcessedPrevSequence.slice(r+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.reelWatchSequenceResponse)!=null&&g.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var g=this.getCurrentShort();if(!g||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[g];if(g==null||!g.reelNonVideoContentRenderer){var r=this.getIndexInSequence(this.shortsSequence,_.n(this.currentEndpoint,_.sP).videoId);if(this.index===0&&r!==-1)return this.currentPlayerIndex=this.index=r,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.jW(this.shortsSequence.slice(0,this.index)),[g],_.jW(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){g.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var E,B,w,O;r=((B=_.n((E=this.shortsProcessedSequence[0])==null?void 0:E.command,_.sP))==null?void 0:B.videoId)===((O=_.n((w=this.shortsSequence[0])==null?void 0:w.command,_.sP))==null?void 0:O.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.jW(this.shortsProcessedSequence.slice(0,
this.index)),[g],_.jW(this.shortsSequence.slice(r)))}return[g].concat(_.jW(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var g=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;g&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(g)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 g,r;return this.index===((g=this.reelWatchSequenceResponse)==null?void 0:(r=g.entries)==null?void 0:r.length)}var E;return!((E=this.reelWatchSequenceResponse)==null?0:E.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var g;(g=this.delayedActiveIndexUpdateDebouncer)==null||g.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return this.isShortPlayable()||((r=_.n((g=this.data)==null?void 0:g.watchStatus,_.F4D))==null?void 0:(E=r.style)==null?void 0:E.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var g=this,r=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),E;if((this.data||r)&&(((E=this.data)==null?0:E.engagementPanels)||this.isAd()||r)){r=!1;this.activePanel="shorts-comments-panel";var B;E=_.U(((B=this.data)==null?void 0:B.engagementPanels)||[]);for(B=E.next();!B.done;B=E.next()){B=B.value.engagementPanelSectionListRenderer;var w=void 0,O=void 0,M=void 0,u=void 0;if((((w=B)==null?void 0:(O=w.identifier)==
null?void 0:O.tag)||((M=B)==null?void 0:M.targetId)||((u=B)==null?void 0:u.panelIdentifier))===this.activePanel){r=!0;break}}if(this.isPersistentPanelActive){var l=_.rM().resolve(_.kn);_.fC(_.F6,function(){l.showPanel(g.activePanel,void 0,void 0,void 0,null)},100)}var Q;
E=[].concat(_.jW(Object.values(((Q=this.data)==null?void 0:Q.engagementPanels)||{})));if(_.Y("enable_preview_panel_for_shorts_search_suggested_action")){var z,k,H,R,A;((R=_.n((z=this.data)==null?void 0:(k=z.overlay)==null?void 0:(H=k.reelPlayerOverlayRenderer)==null?void 0:H.metapanel,_.RMD))==null?void 0:(A=R.metadataItems)==null?void 0:A.find(function(J){var e,C;return((e=_.n(J,vX5))==null?void 0:(C=e.icon)==null?void 0:C.iconType)==="SEARCH"}))!==void 0&&E.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}Q=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);z=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return Q===void 0&&z===void 0||(Q==null?0:Q.isDisabled)||(z==null?void 0:z.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!r?(r=E==null?void 0:E.findIndex(function(J){var e,
C;return((e=J.engagementPanelSectionListRenderer)==null?void 0:(C=e.identifier)==null?void 0:C.tag)==="shorts-comments-panel"}),r===-1||r===void 0||E!=null&&E.splice(r,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.zn("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.zn("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:_.zn("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.zn("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(_.jW(Object.values(E||
{})))):E}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.shortsProcessedSequence)==null?void 0:g[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var g=this,r,E,B;if((r=this.playerData)==null?0:(E=r.playabilityStatus)==null?0:(B=E.errorScreen)==null?0:B.playerInterstitialRenderer)return _.F6.addLowPriorityJob(function(){g.movePlayerToVideo(g.index)}),this.playerData.playabilityStatus.errorScreen;
var w,O;return((w=this.data)==null?void 0:w.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((O=this.data)==null?0:O.watchStatus)&&_.n(this.data.watchStatus,_.bcn)?(_.F6.addLowPriorityJob(function(){g.movePlayerToVideo(g.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.hx.Object.defineProperties(z7,{template:{configurable:!0,enumerable:!0,get:function(){if(Tam===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);Tam=g}g=Tam;return g}}});
z7.prototype.onNextButtonDataChange=z7.prototype.onNextButtonDataChange;z7.prototype.onPrevButtonDataChange=z7.prototype.onPrevButtonDataChange;z7.prototype.onPersistentPanelActiveChanged=z7.prototype.onPersistentPanelActiveChanged;z7.prototype.lazyUpdateMiniplayerData=z7.prototype.lazyUpdateMiniplayerData;z7.prototype.onShortsPipActiveChanged=z7.prototype.onShortsPipActiveChanged;z7.prototype.setActiveIndex=z7.prototype.setActiveIndex;z7.prototype.graftNvcRenderer=z7.prototype.graftNvcRenderer;
z7.prototype.graftClientVisualElements=z7.prototype.graftClientVisualElements;z7.prototype.onActiveChanged=z7.prototype.onActiveChanged;z7.prototype.onShortsDismiss=z7.prototype.onShortsDismiss;z7.prototype.onShortUndoDismiss=z7.prototype.onShortUndoDismiss;z7.prototype.playerDataChanged=z7.prototype.playerDataChanged;z7.prototype.afterPlayerStarted=z7.prototype.afterPlayerStarted;z7.prototype.unhideCurrentOverlay=z7.prototype.unhideCurrentOverlay;z7.prototype.onServiceRequestCompleted=z7.prototype.onServiceRequestCompleted;
z7.prototype.engagementPanelsChanged=z7.prototype.engagementPanelsChanged;z7.prototype.onFullscreenChange=z7.prototype.onFullscreenChange;z7.prototype.onResize=z7.prototype.onResize;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],z7.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.AP.YtPageBehavior),_.L("design:type",Object)],z7.prototype,"ytPageBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],z7.prototype,"ytActionHandlerBehavior",void 0);
_.m([_.P(_.f7),_.L("design:type",Object)],z7.prototype,"ironResizableBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],z7.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ji),_.L("design:type",Object)],z7.prototype,"ytdDismissibleItemBehavior",void 0);_.m([_.P(_.eb.YtdGuideStateAwareBehavior),_.L("design:type",Object)],z7.prototype,"ytdGuideStateAwareBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],z7.prototype,"ytdReduxBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],z7.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],z7.prototype,"playerData",void 0);_.m([_.K(),_.L("design:type",Object)],z7.prototype,"reelWatchSequenceResponse",void 0);_.m([_.K(),_.L("design:type",Object)],z7.prototype,"cachedReelWatchSequenceResponse",void 0);_.m([_.K(),_.L("design:type",Object)],z7.prototype,"cachedSequenceParams",void 0);_.m([_.K(),_.L("design:type",Object)],z7.prototype,"cachedSequenceProvider",void 0);
_.m([_.K(),_.L("design:type",Object)],z7.prototype,"currentEndpoint",void 0);_.m([_.K(),_.L("design:type",Object)],z7.prototype,"nextButtonData",void 0);_.m([_.K(),_.L("design:type",Object)],z7.prototype,"prevButtonData",void 0);_.m([_.K(),_.L("design:type",Object)],z7.prototype,"isPreviousPageShorts",void 0);_.m([_.K(),_.L("design:type",Object)],z7.prototype,"index",void 0);_.m([_.K(),_.L("design:type",Object)],z7.prototype,"delayedActiveIndex",void 0);
_.m([_.K(),_.L("design:type",Object)],z7.prototype,"playablePreviousIndex",void 0);_.m([_.K(),_.L("design:type",Object)],z7.prototype,"player",void 0);_.m([_.K(),_.L("design:type",Object)],z7.prototype,"isPlayerPaused",void 0);_.m([_.K({selector:AcF}),_.L("design:type",Object)],z7.prototype,"isPlayerStarted",void 0);_.m([_.K(),_.L("design:type",Object)],z7.prototype,"intersectionObserver",void 0);_.m([_.K(),_.L("design:type",Number)],z7.prototype,"cinematicsInitializeJobId",void 0);
_.m([_.K(),_.L("design:type",Number)],z7.prototype,"updateMiniplayerDataJobId",void 0);_.m([_.K(),_.L("design:type",Object)],z7.prototype,"fitToVisibleBounds",void 0);_.m([_.K(),_.L("design:type",Object)],z7.prototype,"pageSubtype",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],z7.prototype,"enablePreviousContinuation",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],z7.prototype,"shortsPipEnabled",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],z7.prototype,"isDark",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],z7.prototype,"shortsViewTransitions",void 0);_.m([_.K({selector:_.qq,reflectToAttribute:!0}),_.L("design:type",Object)],z7.prototype,"isFullscreen",void 0);_.m([_.K({selector:_.oz,reflectToAttribute:!0}),_.L("design:type",Object)],z7.prototype,"isShortsPipActive",void 0);
_.m([_.zb("#shorts-inner-container"),_.L("design:type",HTMLElement)],z7.prototype,"shortsInnerContainer",void 0);_.m([_.zb("#back-nav-button ytd-button-renderer"),_.L("design:type",_.Lo)],z7.prototype,"backNavButton",void 0);_.m([_.zb("#shorts-container"),_.L("design:type",HTMLElement)],z7.prototype,"shortsContainer",void 0);_.m([_.hz("error-screen"),_.L("design:type",HTMLElement)],z7.prototype,"errorScreenContainer",void 0);
_.m([_.hz("player"),_.L("design:type",Object)],z7.prototype,"playerElement",void 0);_.m([_.hz("shorts-cinematic-container"),_.L("design:type",HTMLElement)],z7.prototype,"shortsCinematicContainer",void 0);_.m([_.hz("initial-player-container"),_.L("design:type",HTMLElement)],z7.prototype,"initialPlayerContainer",void 0);_.m([_.K(),_.L("design:type",Object)],z7.prototype,"buttonOverride",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],z7.prototype,"anchoredPanelActive",void 0);
_.m([_.K(),_.L("design:type",String)],z7.prototype,"activePanel",void 0);_.m([_.K(),_.L("design:type",Object)],z7.prototype,"isActive",void 0);_.m([_.K({selector:j75,reflectToAttribute:!0}),_.L("design:type",Object)],z7.prototype,"smallScreenPersistentPanel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],z7.prototype,"isPersistentPanelActive",void 0);_.m([_.K(),_.L("design:type",Object)],z7.prototype,"smallScreenSqueezeBack",void 0);
_.m([_.K(),_.L("design:type",Object)],z7.prototype,"enableScrollIntoViewCenter",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],z7.prototype,"formatFirst",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],z7.prototype,"enableFlexibleOverlay",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],z7.prototype,"useAspectRatio",void 0);_.m([_.K(),_.L("design:type",Object)],z7.prototype,"panelContainer",void 0);
_.m([_.K(),_.L("design:type",Object)],z7.prototype,"overlayContainer",void 0);_.m([_.K(),_.L("design:type",Object)],z7.prototype,"isShortsInitialized",void 0);_.m([_.W("reelWatchSequenceResponse"),_.L("design:type",Object),_.L("design:paramtypes",[])],z7.prototype,"prevShortsSequence",null);_.m([_.W("data","prevShortsSequence"),_.L("design:type",Object),_.L("design:paramtypes",[])],z7.prototype,"shortsProcessedPrevSequence",null);
_.m([_.W("reelWatchSequenceResponse"),_.L("design:type",Object),_.L("design:paramtypes",[])],z7.prototype,"shortsSequence",null);_.m([_.W("data","shortsSequence"),_.L("design:type",Object),_.L("design:paramtypes",[])],z7.prototype,"shortsProcessedSequence",null);
_.m([_.K({reflectToAttribute:!0}),_.W("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],z7.prototype,"isUpArrowHidden",null);_.m([_.K({reflectToAttribute:!0}),_.W("reelWatchSequenceResponse","index","endOfNextContinuation"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],z7.prototype,"isDownArrowHidden",null);
_.m([_.K(),_.W("index"),_.L("design:type",Number),_.L("design:paramtypes",[])],z7.prototype,"activeIndex",null);_.m([_.W("isShortPlayable","data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],z7.prototype,"shouldRenderOfflineContent",null);_.m([_.ob("iron-resize"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],z7.prototype,"onResize",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],z7.prototype,"anchoredEngagementPanels",null);
_.m([_.K(),_.L("design:type",Object)],z7.prototype,"watchWhileEngagementPanels",void 0);_.m([_.Gb("isFullscreen"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],z7.prototype,"onFullscreenChange",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],z7.prototype,"engagementPanelsChanged",null);
_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.hR]),_.L("design:returntype")],z7.prototype,"onServiceRequestCompleted",null);_.m([_.W("data","shortsSequence","index"),_.L("design:type",Object),_.L("design:paramtypes",[])],z7.prototype,"activeReel",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],z7.prototype,"unhideCurrentOverlay",null);
_.m([_.Gb("isPlayerStarted"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],z7.prototype,"afterPlayerStarted",null);_.m([_.W("playerData","reelWatchSequenceResponse","data"),_.L("design:type",Object),_.L("design:paramtypes",[])],z7.prototype,"errorScreen",null);_.m([_.W("errorScreen"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],z7.prototype,"hasError",null);
_.m([_.Gb("playerData"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype",Promise)],z7.prototype,"playerDataChanged",null);_.m([_.ob("yt-dismissible-item-undo-feedback"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],z7.prototype,"onShortUndoDismiss",null);_.m([_.ob("yt-disable-lockup-interaction"),_.L("design:type",Function),_.L("design:paramtypes",[Object]),_.L("design:returntype")],z7.prototype,"onShortsDismiss",null);
_.m([_.Yk("active"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],z7.prototype,"onActiveChanged",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],z7.prototype,"graftClientVisualElements",null);_.m([_.Gb("currentPlayerIndex"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],z7.prototype,"graftNvcRenderer",null);
_.m([_.Gb("index"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],z7.prototype,"setActiveIndex",null);_.m([_.Gb("isShortsPipActive"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],z7.prototype,"onShortsPipActiveChanged",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],z7.prototype,"lazyUpdateMiniplayerData",null);
_.m([_.K(),_.L("design:type",Object)],z7.prototype,"onOverlayDensityChanged",void 0);_.m([_.Gb("isPersistentPanelActive"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],z7.prototype,"onPersistentPanelActiveChanged",null);_.m([_.Gb("index","data","isUpArrowHidden"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],z7.prototype,"onPrevButtonDataChange",null);
_.m([_.Gb("index","data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],z7.prototype,"onNextButtonDataChange",null);_.m([_.N({is:"ytd-shorts"})],z7);_.rV.registerService(_.wBB,z7);
_.Fr();
}catch(e){_._DumpException(e)}
try{
_.ty("JzFVk");
var fOt=function(g){return _.G("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},ssA(g.data.ctaButton,{buttonViewModel:{}}),_.G(_.hf,{text:g.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var $w5;var jsF;var Wx=function(){return _.a.apply(this,arguments)||this};
_.f(Wx,_.a);Wx.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Wx.prototype.computeBlueBottomLink=function(g){return g};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Wx.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Wx.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Wx.prototype,"data",void 0);_.m([_.K({computed:"computeIcon_(data.bottomIcon)"}),_.L("design:type",String)],Wx.prototype,"bottomIcon",void 0);
_.m([_.K({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.L("design:type",Boolean)],Wx.prototype,"enableBlueBottomLink",void 0);_.m([_.N({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],Wx);
_.I(Wx,"ytd-web-answer-renderer",function(){if(jsF!==void 0)return jsF;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return jsF=g},{mode:_.My("kevlar_poly_si_batch_j035")?1:2});var ArL;var Cz=function(){var g=_.a.apply(this,arguments)||this;g.hasChipBar=!1;return g};
_.f(Cz,_.a);Cz.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}}};
Cz.prototype.computeHasChipBar=function(g){return!(g==null||!g.chipBar)};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Cz.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Cz.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Cz.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.L("design:type",Object)],Cz.prototype,"hasChipBar",void 0);_.m([_.N({is:"ytd-search-header-renderer",disableElementRegistration:!0})],Cz);
_.I(Cz,"ytd-search-header-renderer",function(){if(ArL!==void 0)return ArL;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return ArL=g},{mode:1});var bJ5;var Kz=function(){return _.a.apply(this,arguments)||this};
_.f(Kz,_.a);Kz.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Kz.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Kz.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Kz.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-page-continuation"})],Kz);
_.I(Kz,"ytd-page-continuation",function(){if(bJ5!==void 0)return bJ5;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return bJ5=g},{mode:1});var JrM;var Pbv;var tqD;var xd=function(){return _.a.apply(this,arguments)||this};
_.f(xd,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],xd.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],xd.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],xd);
_.I(xd,"ytd-watch-card-one-vs-one-event",function(){if(tqD!==void 0)return tqD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return tqD=g},{mode:1});var at=function(){return _.a.apply(this,arguments)||this};
_.f(at,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],at.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],at.prototype,"data",void 0);_.m([_.N({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],at);
_.I(at,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(Pbv!==void 0)return Pbv;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Pbv=g},{mode:1});var FU5;var Xs=function(){return _.a.apply(this,arguments)||this};
_.f(Xs,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Xs.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Xs.prototype,"data",void 0);_.m([_.N({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],Xs);
_.I(Xs,"ytd-banner-and-box-hero-image-renderer",function(){if(FU5!==void 0)return FU5;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return FU5=g},{mode:1});var em6;var NG=function(){var g=_.a.apply(this,arguments)||this;g.modern=_.Y("web_modern_buttons");return g};
_.f(NG,_.a);NG.prototype.computeIcon=function(){var g,r,E=(g=this.data)==null?void 0:(r=g.icon)==null?void 0:r.iconType;if(E)return _.Dh(E)};
NG.prototype.computeButtonShape=function(){var g;return{buttonText:_.Vp((g=this.data)==null?void 0:g.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.hx.Object.defineProperties(NG.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"}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],NG.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],NG.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],NG.prototype,"modern",void 0);_.m([_.K({type:_.Y("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.W("data.style"),_.L("design:type",Object),_.L("design:paramtypes",[])],NG.prototype,"buttonColor",null);
_.m([_.N({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],NG);
_.I(NG,"ytd-call-to-action-button-renderer",function(){if(em6!==void 0)return em6;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return em6=g},{mode:1});var WUF;var It=function(){return _.a.apply(this,arguments)||this};
_.f(It,_.a);It.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.S3(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.wt(this.data.leftThumbnail.thumbnails,216)+")")};
It.prototype.onLeftThumbnailChanged=It.prototype.onLeftThumbnailChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],It.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],It.prototype,"data",void 0);_.m([_.Gb("data.leftThumbnail"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],It.prototype,"onLeftThumbnailChanged",null);_.m([_.N({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],It);
_.I(It,"ytd-collage-hero-image-renderer",function(){if(WUF!==void 0)return WUF;var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return WUF=g},{mode:1});var CbD;var mj=function(){return _.a.apply(this,arguments)||this};
_.f(mj,_.a);mj.prototype.computeStyle=function(g){return g};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],mj.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],mj.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.L("design:type",String)],mj.prototype,"componentStyle",void 0);_.m([_.N({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],mj);
_.I(mj,"ytd-single-hero-image-renderer",function(){if(CbD!==void 0)return CbD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return CbD=g},{mode:1});var KUA;var cx=function(){return _.a.apply(this,arguments)||this};
_.f(cx,_.a);_.S=cx.prototype;
_.S.configureRendererStamper=function(){return{"data.heroImage":{id:"hero-image",mapping:{bannerAndBoxHeroImageRenderer:"ytd-banner-and-box-hero-image-renderer",singleHeroImageRenderer:"ytd-single-hero-image-renderer",collageHeroImageRenderer:"ytd-collage-hero-image-renderer"}},"data.callToActionButton":{id:"call-to-action-button",mapping:{callToActionButtonRenderer:"ytd-call-to-action-button-renderer"}},"data.reminderButton":{id:"reminder-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",
buttonRenderer:"ytd-button-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:"ytd-thumbnail-overlay-side-panel-renderer",thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayToggleButtonRenderer:"ytd-thumbnail-overlay-toggle-button-renderer"},
initialRenderPriority:_.Y("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.S.computeSubtitle=function(g){if(this.data){var r;if(this.data.upcomingEventData){g=_.Vp(g.subtitle);var E=Number(this.data.upcomingEventData.startTime);isNaN(E)||(r=_.Lf(_.bL(g,E)))}else r=g.subtitle;return r}};
_.S.onHeroTap=function(g){g.preventDefault();var r=this.data&&this.data.navigationEndpoint;!r||!_.Zy(_.Z1(g),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.Zy(_.Z1(g),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.Y("kevlar_watchcard_hero_video_renderer_killswitch")?_.Sh(this.hostElement,"yt-navigate",{navigationEndpoint:r}):this.ytComponentBehavior.resolveCommand(r))};
_.S.computeHeroTabIndex=function(g){return g&&g.simpleText?-1:0};
_.S.computeHeroRole=function(g){return g&&g.simpleText?"":"link"};
_.S.computeIsReminderButtonPresent=function(g){return!(!g||!g.reminderButton)};
_.S.computeHideBottomItems=function(g){return!(this.computeIsReminderButtonPresent(g)||g.subtitle)};
_.S.dataChanged=function(){var g=this.get("data.buttons.buttonRenderer.serviceEndpoint"),r;((r=_.n(g==null?void 0:g.commandMetadata,_.nY))==null?0:r.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(g)};
cx.prototype.dataChanged=cx.prototype.dataChanged;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],cx.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],cx.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],cx.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],cx.prototype,"data",void 0);
_.m([_.K({computed:"computeSubtitle(data)"}),_.L("design:type",String)],cx.prototype,"subtitle",void 0);_.m([_.K({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],cx.prototype,"isReminderButtonPresent",void 0);_.m([_.K({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],cx.prototype,"hideBottomItems",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],cx.prototype,"dataChanged",null);_.m([_.N({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],cx);
_.I(cx,"ytd-watch-card-hero-video-renderer",function(){if(KUA!==void 0)return KUA;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return KUA=g},{mode:1});var xwt;var ik=function(){return _.a.apply(this,arguments)||this};
_.f(ik,_.a);_.S=ik.prototype;_.S.configureRendererStamper=function(){return{"data.callToActionButtons":{id:"call-to-action-buttons",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.S.computeTitleBadges=function(g){return g?[g]:[]};
_.S.computeHeaderStyle=function(g){return g?g.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.S.computeAvatarAriaLabel=function(g){if(g){var r,E,B,w;return(w=(r=g.avatar)==null?void 0:(E=r.accessibility)==null?void 0:(B=E.accessibilityData)==null?void 0:B.label)!=null?w:_.Vp(g==null?void 0:g.title)}};
_.S.computeAvatarHeight=function(g){return g==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.S.computeBadgeRowClass=function(g){return(g==null?0:g[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ik.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],ik.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ik.prototype,"data",void 0);_.m([_.K({computed:"computeTitleBadges(data.titleBadge)"}),_.L("design:type",Array)],ik.prototype,"titleBadges",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.L("design:type",String)],ik.prototype,"headerStyle",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.L("design:type",String)],ik.prototype,"badgeRowClass",void 0);_.m([_.N({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],ik);
_.I(ik,"ytd-watch-card-rich-header-renderer",function(){if(xwt!==void 0)return xwt;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return xwt=g},{mode:1});var aO4;var X9v;var Lz=function(){return _.a.apply(this,arguments)||this};
_.f(Lz,_.a);Lz.prototype.onMetadataTap=function(g){var r=this.data&&this.data.navigationEndpoint;r&&!_.Zy(_.Z1(g),this.hostElement,["A".toString()])&&_.Sh(this.hostElement,"yt-navigate",{endpoint:r})};
_.hx.Object.defineProperties(Lz.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 g;if(this.data.upcomingEventData){var r=_.Vp(this.data.subtitle),E=Number(this.data.upcomingEventData.startTime);isNaN(E)||(g=_.Lf(_.bL(r,E)))}else g=this.data.subtitle;return g}}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Lz.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Lz.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.W("data.style"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Lz.prototype,"isCondensed",null);_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],Lz.prototype,"subtitle",null);
_.m([_.N({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],Lz);
_.I(Lz,"ytd-watch-card-compact-video-renderer",function(){if(X9v!==void 0)return X9v;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return X9v=g},{mode:1});var NoA;var Va=function(){return _.a.apply(this,arguments)||this};
_.f(Va,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Va.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Va.prototype,"data",void 0);_.m([_.N({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],Va);
_.I(Va,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(NoA!==void 0)return NoA;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return NoA=g},{mode:1});var h4=function(){return _.a.apply(this,arguments)||this};
_.f(h4,_.a);h4.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}}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],h4.prototype,"ytRendererStamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],h4.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],h4.prototype,"data",void 0);_.m([_.N({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],h4);
_.I(h4,"ytd-vertical-watch-card-list-renderer",function(){if(aO4!==void 0)return aO4;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return aO4=g},{mode:1});var IOM;var ZS=function(){var g=_.a.apply(this,arguments)||this;g.ariaExpanded="false";return g};
_.f(ZS,_.a);_.S=ZS.prototype;_.S.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.S.dataChanged=function(){var g;this.currentSeasonIndex=((g=this.data)==null?void 0:g.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.S.computeEpisodesInfo=function(g,r,E){if(g!==void 0&&r.length===g.length)return g[E]};
_.S.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.S.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.S.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.S.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.S.getUppercaseSimpleString=function(g){return this.ytRendererBehavior.getSimpleString(g).toUpperCase()};
_.S.updateCurrentSeasonIndexFromBinding=function(g){this.currentSeasonIndex=g.detail.value};
ZS.prototype.onIronOverlayClosed=ZS.prototype.onIronOverlayClosed;ZS.prototype.currentSeasonIndexChanged=ZS.prototype.currentSeasonIndexChanged;ZS.prototype.dataChanged=ZS.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ZS.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],ZS.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ZS.prototype,"data",void 0);
_.m([_.K(),_.L("design:type",String)],ZS.prototype,"label",void 0);_.m([_.K({value:0}),_.L("design:type",Number)],ZS.prototype,"currentSeasonIndex",void 0);_.m([_.K({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.L("design:type",Object)],ZS.prototype,"episodesInfo",void 0);_.m([_.K({value:"false"}),_.L("design:type",Object)],ZS.prototype,"ariaExpanded",void 0);_.m([_.zb("#lists"),_.L("design:type",Object)],ZS.prototype,"lists",void 0);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ZS.prototype,"dataChanged",null);_.m([_.Yk("currentSeasonIndex"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ZS.prototype,"currentSeasonIndexChanged",null);_.m([_.ob("iron-overlay-closed"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],ZS.prototype,"onIronOverlayClosed",null);
_.m([_.N({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],ZS);
_.I(ZS,"ytd-watch-card-section-dropdown-renderer",function(){if(IOM!==void 0)return IOM;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return IOM=g},{mode:1});var mwg;var ya=function(){var g=_.a.apply(this,arguments)||this;g.isSearch=!1;return g};
_.f(ya,_.a);ya.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}}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],ya.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ya.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ya.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],ya.prototype,"isSearch",void 0);_.m([_.N({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],ya);
_.I(ya,"ytd-watch-card-section-sequence-renderer",function(){if(mwg!==void 0)return mwg;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);
return mwg=g},{mode:1});var ssA=_.R$({buttonViewModel:_.MV});_.rH(fOt);_.lW(fOt,"ytd-button-banner-view-model",{propNames:["data"]});var vx=function(){var g=_.a.apply(this,arguments)||this;g.isSearch=!1;return g};
_.f(vx,_.a);
vx.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"}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],vx.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],vx.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],vx.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,value:!0}),_.L("design:type",Boolean)],vx.prototype,"rounded",void 0);_.m([_.K(),_.L("design:type",Object)],vx.prototype,"isSearch",void 0);
_.m([_.N({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],vx);
_.I(vx,"ytd-universal-watch-card-renderer",function(){if(JrM!==void 0)return JrM;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return JrM=g},{mode:1});var cr$;_.BK(_.dG(function(g){var r=g.data;var E;g=!((E=_.rM().resolve(_.gM(_.Vy)))==null||!E());E={};return _.G("overview-message-view-model",{class:_.QY("ytwOverviewMessageViewModelHost",(E.ytwOverviewMessageViewModelDarkBackground=g,E.ytwOverviewMessageViewModelLightBackground=!g,E))},_.G(_.p,{cond:function(){return r().primaryImage},
then:function(B){return _.G(_.vw,{data:B,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.G(_.p,{cond:function(){return r().primaryText},
then:function(){return _.G("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.G(_.hf,{text:function(){return r().primaryText}}))}}),_.G(_.p,{cond:function(){return r().secondaryText},
then:function(){return _.G("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.G(_.hf,{text:function(){return r().secondaryText}}))}}))},"$i"),"overview-message-view-model",{props:{data:_.cP}});_.lW(_.RDT,"ytd-overview-answer-view-model",{propNames:["data"]});var d1=function(){return _.a.apply(this,arguments)||this};
_.f(d1,_.a);d1.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"}}}};
d1.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],d1.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],d1.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.Xe),_.L("design:type",Object)],d1.prototype,"ytContinuationHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],d1.prototype,"data",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],d1.prototype,"isSearch",void 0);
_.m([_.N({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],d1);
_.I(d1,"ytd-secondary-search-container-renderer",function(){if(cr$!==void 0)return cr$;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);
return cr$=g},{mode:1});var iJA;var TK=function(){var g=_.a.apply(this,arguments)||this;g.renderSecondarySearchContainer=!1;g.isSearch=!1;return g};
_.f(TK,_.a);_.S=TK.prototype;_.S.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.S.created=function(){var g=this;this.boundStampSecondarySearchContainerIfFits=function(){g.stampSecondarySearchContainerIfFits()};
_.W0("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.S.computeIsSearchFrictionPage=function(g){var r,E,B,w,O;g=g==null?void 0:(r=g.primaryContents)==null?void 0:(E=r.sectionListRenderer)==null?void 0:(B=E.contents)==null?void 0:(w=B[0])==null?void 0:(O=w.itemSectionRenderer)==null?void 0:O.contents;if(!g)return!1;r=_.U(g);for(E=r.next();!E.done;E=r.next())if(B=void 0,(B=E.value)==null?0:B.searchFrictionViewModel)return!0;return!1};
_.S.computeShowSecondaryColumn=function(g,r){return!!(r&&r.secondaryContents&&g)};
_.S.activeChanged=function(){var g=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.Do(this,this.debounceStampSecondarySearchContainerIfFits)),_.N1(function(){g.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.Do(this,this.debounceStampSecondarySearchContainerIfFits))};
_.S.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.S.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.S.debounceStampSecondarySearchContainerIfFits=function(){_.Ib(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.S.onRetrieveLocation=function(g,r){r.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);g.stopPropagation()};
_.S.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
TK.prototype.dataChanged=TK.prototype.dataChanged;TK.prototype.onRetrieveLocation=TK.prototype.onRetrieveLocation;TK.prototype.persistentGuideChanged=TK.prototype.persistentGuideChanged;TK.prototype.activeChanged=TK.prototype.activeChanged;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],TK.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],TK.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.eb.YtdGuideStateAwareBehavior),_.L("design:type",Object)],TK.prototype,"ytdGuideStateAwareBehavior",void 0);_.m([_.P(_.f7),_.L("design:type",Object)],TK.prototype,"ironResizableBehavior",void 0);_.m([_.K(),_.L("design:type",Boolean)],TK.prototype,"active",void 0);_.m([_.K(),_.L("design:type",Object)],TK.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,value:function(){return _.Y("enable_desktop_search_bigger_thumbs")}}),
_.L("design:type",Boolean)],TK.prototype,"useBiggerThumbs",void 0);_.m([_.K({reflectToAttribute:!0,value:function(){return _.Sg("desktop_search_bigger_thumbs_style")}}),
_.L("design:type",String)],TK.prototype,"biggerThumbsStyle",void 0);_.m([_.K(),_.L("design:type",Object)],TK.prototype,"renderSecondarySearchContainer",void 0);_.m([_.K({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.L("design:type",Boolean)],TK.prototype,"showSecondaryColumn",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.L("design:type",Boolean)],TK.prototype,"isSearchFrictionPage",void 0);
_.m([_.K(),_.L("design:type",Object)],TK.prototype,"isSearch",void 0);_.m([_.Gb("active"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],TK.prototype,"activeChanged",null);_.m([_.Gb("guidePersistentAndVisible"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],TK.prototype,"persistentGuideChanged",null);
_.m([_.ob("yt-retrieve-location"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],TK.prototype,"onRetrieveLocation",null);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],TK.prototype,"dataChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],TK);
_.I(TK,"ytd-two-column-search-results-renderer",function(){if(iJA!==void 0)return iJA;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return iJA=g},{mode:1});var gi=function(){var g=_.a.apply(this,arguments)||this;g.hasSearchHeader=!1;g.hasSecondaryContent=!1;g.hasBiggerThumbs=_.Y("enable_desktop_search_bigger_thumbs");g.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return g};
_.f(gi,_.a);_.S=gi.prototype;_.S.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{searchHeaderRenderer:{component:"ytd-search-header-renderer"}}},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:_.tZ(["aa","eocs"])}}};
_.S.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.S.loadPage_=function(g){this.initCsi();g&&(this.data=g,_.W0("REFINEMENTS_TUPLE",["FromSearchResponse",g.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.ZH(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.S.initCsi=function(){_.jj("results",["ol","cpt"])};
_.S.updateTitle=function(){var g=_.IO(window.location.href,"q");g||(g=_.IO(window.location.href,"search_query"));_.Sh(this.hostElement,"yt-update-title",g||"")};
_.S.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.S.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.Y("web_srp_data_changed_terminate_imp_killswitch")||_.OS(this.hostElement,"yt-terminate-video-preview-action")};
_.S.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.S.computeHasSearchHeader=function(g){var r;g=g==null?void 0:(r=g.header)==null?void 0:r.searchHeaderRenderer;return!!g&&(!!g.searchFilterButton||!!g.chipBar)};
_.S.computeHasSecondaryContent=function(g){var r,E;return!!(g==null?0:(r=g.contents)==null?0:(E=r.twoColumnSearchResultsRenderer)==null?0:E.secondaryContents)};
_.hx.Object.defineProperties(gi,{template:{configurable:!0,enumerable:!0,get:function(){if($w5===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);$w5=g}g=$w5;return g}}});
gi.prototype.onReloadContinuationFinish=gi.prototype.onReloadContinuationFinish;gi.prototype.dataChanged=gi.prototype.dataChanged;_.m([_.P(_.AP.YtPageBehavior),_.L("design:type",Object)],gi.prototype,"ytPageBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],gi.prototype,"actionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],gi.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],gi.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Xe),_.L("design:type",Object)],gi.prototype,"ytContinuationHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],gi.prototype,"data",void 0);_.m([_.K({value:!0}),_.L("design:type",Boolean)],gi.prototype,"monitorScroll",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],gi.prototype,"hasSearchHeader",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],gi.prototype,"hasSecondaryContent",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],gi.prototype,"hasBiggerThumbs",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],gi.prototype,"dataChanged",null);
_.m([_.ob("yt-reload-continuation-finish"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],gi.prototype,"onReloadContinuationFinish",null);_.m([_.N({is:"ytd-search"})],gi);_.rV.registerService(_.BKX,gi);
_.Fr();
}catch(e){_._DumpException(e)}
try{
_.ty("h8y2qb");
var Ab6=function(g){if(g=_.DUt(g)){var r;(r=g.sources)!=null&&r[0]?(r=_.GqP(g),r=r<1?"VERTICAL":r>1?"HORIZONTAL":"SQUARE"):r=void 0;return r}},b3=function(g){_.zg.call(this,"upload");
this.opts.query=g},Jbm=function(g,r){return _.G(bbF,{data:g,
onYtNavigate:r})},Px6=function(g,r){return _.u1(g.entities,"pageHeaderEntity",r)},FVv=function(g,r){return g.map(function(E){if(E.tabRenderer)return tXv(E.tabRenderer);
if(E.expandableTabRenderer&&r){var B=E.expandableTabRenderer;return{customTabRenderable:function(){return r(B)}}}return{}})},tXv=function(g){return{identifier:g.tabIdentifier,
aTagConfig:_.XI({innertubeCommand:g.endpoint,forceNewState:!0}),title:g.title,selected:g.selected,disabled:g.unselectable,icon:g.icon}},eeA=function(g){return _.Bs({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:g})},WVg=function(g){if(!_.rr(document,"gtm-noscript")){var r=document.createElement("noscript");
r.id="gtm-noscript";r.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+g+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(r)}};_.rc(b3,_.zg);b3.prototype.JSC$8164_setLabel=function(g){b3.superClass_.JSC$8164_setLabel.call(this,g);return this};
b3.prototype.addUploadMetadata=function(g,r){b3.superClass_.addUploadMetadata.call(this,g,r);return this};var Cxz=function(g){if(g!=="youtubebanner"&&g!=="youtube-channel-banner")throw Error("am");b3.call(this,g)};
_.f(Cxz,b3);Cxz.prototype.JSC$8164_setLabel=function(g){b3.prototype.JSC$8164_setLabel.call(this,g);return this};
Cxz.prototype.addUploadMetadata=function(g,r){b3.prototype.addUploadMetadata.call(this,g,r);return this};var KV5=[_.f7,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(g){_.nM(g).path[0]!==this&&(this.resetLayout(),g.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var g=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.g3(this._layoutDebouncer,_.AM,g);_.r3(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var g=this;requestAnimationFrame(function(){g.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(g){this.resizerShouldNotify(g)&&this._notifyDescendant(g)},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 xLD=[_.j3A,{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(g,r){var E=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[g];if(!E)throw new ReferenceError(this._getUndefinedMsg(g));g=this._boundEffect(E,r||{});g.setUp();return g},
_effectsChanged:function(g,r,E){this._tearDownEffects();g&&E&&(g.split(" ").forEach(function(B){var w;B!==""&&((w=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[B])?this._effects.push(this._boundEffect(w,r[B])):console.warn(this._getUndefinedMsg(B)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(g,r){r=r||{};var E=parseFloat(r.startsAt||0),B=parseFloat(r.endsAt||1),w=B-E,O=function(){};
B=E===0&&B===1?g.run:function(M,u){g.run.call(this,Math.max(0,(M-E)/w),u)};
return{setUp:g.setUp?g.setUp.bind(this,r):O,run:g.run?B.bind(this):O,tearDown:g.tearDown?g.tearDown.bind(this):O}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(g){g.setUp()!==!1&&this._effectsRunFn.push(g.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(g){g.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(g,r){this._effectsRunFn&&this._effectsRunFn.forEach(function(E){E(g,r)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var g=this._clampedScrollTop;this._updateScrollState(g);this.threshold>0&&this._setThresholdTriggered(g>=this.threshold)}},
_getDOMRef:function(g){console.warn("_getDOMRef","`"+g+"` is undefined")},
_getUndefinedMsg:function(g){return"Scroll effect `"+g+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+g+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("bm`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(g){var r={};g=parseFloat(g.scalar);r.background=this._getDOMRef("background");r.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");r.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");r.deltaBg=r.backgroundFrontLayer.offsetHeight-r.background.offsetHeight;r.deltaBg===0?(isNaN(g)&&(g=.8),r.deltaBg=(this._dHeight||0)*g):(isNaN(g)&&(g=
1),r.deltaBg*=g);this._fxParallaxBackground=r},
run:function(g){var r=this._fxParallaxBackground;this.transform("translate3d(0px, "+r.deltaBg*Math.min(1,g)+"px, 0px)",r.backgroundFrontLayer);r.backgroundRearLayer&&this.transform("translate3d(0px, "+r.deltaBg*Math.min(1,g)+"px, 0px)",r.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var avF;var XlM;var NPt=function(){};
_.S=NPt.prototype;_.S._scrollTargetChanged=function(){};
_.S.scroll=function(){};
_.S._isValidScrollTarget=function(){};
_.S._toggleScrollListener=function(){};
_.S.toggleScrollListener=function(){};
_.S.createEffect=function(){};
_.S._effectsChanged=function(){};
_.S._layoutIfDirty=function(){};
_.S._boundEffect=function(){};
_.S._setUpEffect=function(){};
_.S._tearDownEffects=function(){};
_.S._runEffects=function(){};
_.S._scrollHandler=function(){};
_.S._scrollStateChanged=function(){};
_.S._getUndefinedMsg=function(){};
_.S.notifyResize=function(){};
_.S.assignParentResizable=function(){};
_.S.stopResizeNotificationsFor=function(){};
_.S._subscribeIronResize=function(){};
_.S._unsubscribeIronResize=function(){};
_.S.resizerShouldNotify=function(){};
_.S._onDescendantIronResize=function(){};
_.S._fireResize=function(){};
_.S._onIronRequestResizeNotifications=function(){};
_.S._parentResizableChanged=function(){};
_.S._notifyDescendant=function(){};
_.S._requestResizeNotifications=function(){};
_.S._findParent=function(){};
_.S._appResetLayoutHandler=function(){};
_.S.resetLayout=function(){};
_.S._notifyLayoutChanged=function(){};
_.S._notifyDescendantResize=function(){};
_.S._setThresholdTriggered=function(){};
NPt=_.ba({_template:function(){if(XlM!==void 0)return XlM;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;avF===void 0&&(avF=document.createElement("template"));var B=avF;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return XlM=g},
is:"tp-yt-app-header",behaviors:[xLD,KV5],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 g=_.nM(this.$.slot).getDistributedNodes(),r=0,E;E=g[r];r++)if(E.nodeType===Node.ELEMENT_NODE)if(E.hasAttribute("sticky")){this._stickyElRef=E;break}else this._stickyElRef||(this._stickyElRef=E);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var g=this._clampedScrollTop,r=this._height===0||g===0,E=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;r||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();r?this._updateScrollState(g,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=E}},
_updateScrollState:function(g,r){if(this._height!==0){var E=0,B=this._top;var w=this._maxHeaderTop;var O=g-this._lastScrollTop,M=Math.abs(O),u=g>this._lastScrollTop,l=performance.now();this._mayMove()&&(E=this._clamp(this.reveals?B+O:g,0,w));g>=this._dHeight&&(E=this.condenses&&!this.fixed?Math.max(this._dHeight,E):E,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&M<100){if(l-this._initTimestamp>300||this._wasScrollingDown!==u)this._initScrollTop=g,this._initTimestamp=l;g>=w&&
(Math.abs(this._initScrollTop-g)>30||M>10?(u&&g>=w?E=w:!u&&g>=this._dHeight&&(E=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((E-B)/(O/(l-this._lastTimestamp)),0,300)+"ms"):E=this._top)}w=this._dHeight===0?g>0?1:0:E/this._dHeight;r||(this._lastScrollTop=g,this._top=E,this._wasScrollingDown=u,this._lastTimestamp=l);if(r||w!==this._progress||B!==E||g===0)this._progress=w,this._runEffects(w,E),this._transformHeader(E)}},
_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(g){this.translate3d(0,-g+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&g>=this._stickyElTop?Math.min(g,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(g,r,E){return Math.min(E,Math.max(r,g))},
_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),_.nM(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(g){switch(g){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.nM(this).querySelector("[main-title]");case "condensedTitle":return _.nM(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var Iv$;var mLt;_.ba({_template:function(){if(mLt!==void 0)return mLt;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;Iv$===void 0&&(Iv$=document.createElement("template"));var B=Iv$;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return mLt=g},
is:"tp-yt-app-header-layout",behaviors:[KV5],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.nM(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var g=this.header;if(this.isAttached&&g){this.$.wrapper.classList.remove("initializing");g.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)g.style.left=
"",g.style.right="";else{var r=this.getBoundingClientRect(),E=document.documentElement.clientWidth-r.right;g.style.left=r.left+"px";g.style.right=E+"px"}r=this.$.contentContainer.style;E=g.offsetHeight;g.fixed&&!g.condenses&&this.hasScrollingRegion?(r.marginTop=E+"px",r.paddingTop=""):(r.paddingTop=E+"px",r.marginTop="")}}});var cbF=new _.V("replaceFeedContentAction");var ibv=new _.V("alertCommand");var LV$=new _.V("manageLabsStateCommand");var VXt=new _.V("inlineFormRenderer");var JP=new _.V("playlistSidebarPrimaryInfoRenderer");var heA=new _.V("productDetailsThumbnailRenderer"),Zb$=new _.V("productDetailsVariantRenderer"),ybM=new _.V("productDetailsVariantOptionRenderer"),vs5=new _.V("productDetailsOffersContainerRenderer"),dL8=new _.V("productDetailsOfferRenderer");var TPv=new _.V("shoppingFlaggingRenderer");var gZg=new _.V("playlistBylineRenderer");var rJL=new _.V("insertChannelTabCommand");var PB=function(){return _.Hi.apply(this,arguments)||this};
_.f(PB,_.Hi);_.S=PB.prototype;_.S.activeChanged=function(){if(this.active){var g=_.S3(this.hostElement).querySelector("#header");g&&_.Sh(g,"iron-resize");window.addEventListener("scroll",_.Do(this,this.onScroll))}else window.removeEventListener("scroll",_.Do(this,this.onScroll)),_.Sh(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.S.guideVisibleChanged=function(){var g=_.S3(this.hostElement).querySelector("#header");g&&_.Sh(g,"iron-resize")};
_.S.onScroll=function(){var g=this;_.Ib(this,"onScroll",function(){var r=_.S3(g.hostElement).querySelector("#header");r&&r.polymerController&&(r=r.polymerController.getScrollState().progress===1?"standard":"seamed",_.Sh(g.hostElement,"yt-request-panel-mode-change",{mode:r}))},10)};
_.S.tabsChanged=function(){if(this.tabs){for(var g=null,r=0,E=this.tabs.length;r<E;++r){var B=this.tabs[r].tabRenderer;if(B&&B.selected){g=r;break}}this.selected=g}};
_.S.onTabsActivate=function(g){_.Sh(this.hostElement,"yt-navigate",{endpoint:this.tabs[g.detail.selected].tabRenderer.endpoint})};
PB.prototype.tabsChanged=PB.prototype.tabsChanged;PB.prototype.guideVisibleChanged=PB.prototype.guideVisibleChanged;PB.prototype.activeChanged=PB.prototype.activeChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],PB.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.eb.YtdGuideStateAwareBehavior),_.L("design:type",Object)],PB.prototype,"ytdGuideStateAwareBehavior",void 0);_.m([_.K(),_.L("design:type",Array)],PB.prototype,"tabs",void 0);
_.m([_.K(),_.L("design:type",Object)],PB.prototype,"selected",void 0);_.m([_.K(),_.L("design:type",Boolean)],PB.prototype,"active",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],PB.prototype,"disableHeaderFluidWidth",void 0);_.m([_.Gb("active"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],PB.prototype,"activeChanged",null);
_.m([_.Gb("guidePersistentAndVisible"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],PB.prototype,"guideVisibleChanged",null);_.m([_.Gb("tabs"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],PB.prototype,"tabsChanged",null);_.m([_.pR()],PB);var EZ5=[_.T.YtRendererBehavior,_.eb.YtdGuideStateAwareBehavior,PB.prototype];var B6$=2/3,wRz=_.bW(130749),SF4=function(g,r){var E=this;this.element=g;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){E.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:B6$,moveAction:function(B){E.moveAction(B)},
triggerAction:function(){E.element.isReloading=!0;_.Nh(_.pW(),{visualElement:wRz});_.G$.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:E.element}})}}}};
_.Ok(_.pW(),wRz,this.layer);this.gesture=new _.D_(g,r,this.refreshConfig,"pan-down");this.attach()};
_.S=SF4.prototype;_.S.attach=function(){this.gesture.attach()};
_.S.detach=function(){this.gesture.detach()};
_.S.reset=function(){this.element.close()};
_.S.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.S.moveAction=function(g){this.element.rotation=g*360};var OQA=_.bW(130750),tP=function(g,r,E,B,w){var O=this;this.element=g;this.parent=E;this.channelHeader=B;this.ytdReduxDispatch=w;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){O.tabsStartAtInPx=O.channelHeader.clientHeight-48;var M;(M=O.selectedTab)!=null&&M.title&&(M=_.rM().resolve(_.gM(_.vK)))&&(M=M.getCurrentPage(),O.lastVisitedTabScrollPosition=M.getScrollTop(),O.previousTab&&
((O.lastVisitedTabScrollPosition===void 0?0:O.lastVisitedTabScrollPosition<O.channelHeader.clientHeight-48)?O.scrollPositionForTabs.has(O.selectedTab.title)&&O.scrollPositionForTabs.delete(O.selectedTab.title):O.scrollPositionForTabs.set(O.selectedTab.title,M.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:UKm(),triggerAction:function(){O.navigate(O.previousTab)},
moveAction:function(M,u){O.moveAction(M,u)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-UKm(),triggerAction:function(){O.navigate(O.nextTab)},
moveAction:function(M,u){O.moveAction(M,u)}}}};
_.Ok(_.pW(),OQA,this.layer);this.gesture=new _.D_(g,r,this.tabConfig);this.attach()};
tP.prototype.attach=function(){this.gesture.attach()};
tP.prototype.detach=function(){this.gesture.detach()};
tP.prototype.tabsChanged=function(g){if(g){var r=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;g=_.U(g);for(var E=g.next();!E.done;E=g.next()){E=E.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=E);var B=void 0;if((B=E)==null?0:B.selected)this.previousTab=r,this.selectedTab=E;r=E}r=this.gesture;g=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}});
r.config=g;this.scrollPositionNeedsUpdate=!0}};
tP.prototype.moveAction=function(g,r){if(!this.tabsElement){var E;this.tabsElement=(E=this.parent.header)==null?void 0:E.tabsElement;r==="right"&&this.previousTab?_.OHw(_.kl.instance,this.previousTab.endpoint,{},""):r==="left"&&this.nextTab&&_.OHw(_.kl.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}E=this.tabsElement._pos;r==="right"&&(g*=-1);this.tabsElement._positionBar(E.width,E.left*1+E.width*g)};
var UKm=function(){var g,r;return(r=(g=_.rM().resolve(_.vK).getCurrentPage())==null?void 0:g.clientWidth)!=null?r:0};
tP.prototype.navigate=function(g){this.element.data=void 0;if(g=g==null?void 0:g.endpoint)this.ytdReduxDispatch(eeA(!0)),_.Nh(_.pW(),{visualElement:OQA}),_.G$.instance.resolveCommand({navigateAction:{endpoint:g}},{form:{element:this.element}})};var M46;var qFM;var Fg=function(){return _.a.apply(this,arguments)||this};
_.f(Fg,_.a);Fg.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Fg.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Fg.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Fg.prototype,"data",void 0);_.m([_.N({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],Fg);
_.I(Fg,"ytd-labs-edit-renderer",function(){if(qFM!==void 0)return qFM;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return qFM=g},{mode:1});var uC6;var ej=function(){var g=_.a.apply(this,arguments)||this;g.dark=!1;g.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";g.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return g};
_.f(ej,_.a);ej.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ej.prototype.ready=function(){var g=document.documentElement.hasAttribute("dark");this.setBackgroundImage(g);this.dark=g};
ej.prototype.onDarkModeToggledAction=function(g){this.setBackgroundImage(g);this.dark=g};
ej.prototype.setBackgroundImage=function(g){_.ua(this.hostElement,{"--yt-labs-header-background":"url("+(g?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ej.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],ej.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],ej.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ej.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],ej.prototype,"dark",void 0);
_.m([_.N({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],ej);
_.I(ej,"ytd-labs-header-renderer",function(){if(uC6!==void 0)return uC6;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return uC6=g},{mode:1});var l5v;var WB=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return g};
_.f(WB,_.a);WB.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"}}}}}};
WB.prototype.onYtToggleButton=function(g){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",g.detail.toggled)};
WB.prototype.onManageLabsState=function(g){if(g=_.n(g,LV$))g.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?g.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&g.labsItemId===this.data.labsItemId&&(g.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.OS(this.hostElement,"yt-check-labs-opted-in-state").some(function(r){return r})&&this.data.confirmationDialogCommand?_.uq(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.rM().resolve(_.Er).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&g.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.rM().resolve(_.Er).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
WB.prototype.onCheckLabsOptedInState=function(){var g=this.get("data.primaryButton.toggleButtonRenderer");return g?g.isToggled:!1};
_.hx.Object.defineProperties(WB.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
WB.prototype.onYtToggleButton=WB.prototype.onYtToggleButton;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],WB.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],WB.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],WB.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],WB.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],WB.prototype,"itemStyle",null);_.m([_.ob("yt-toggle-button"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],WB.prototype,"onYtToggleButton",null);_.m([_.N({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],WB);
_.I(WB,"ytd-labs-item-renderer",function(){if(l5v!==void 0)return l5v;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return l5v=g},{mode:1});var DK5;var oZ$;var CS=function(){return _.a.apply(this,arguments)||this};
_.f(CS,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],CS.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],CS.prototype,"data",void 0);_.m([_.N({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],CS);
_.I(CS,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(oZ$!==void 0)return oZ$;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return oZ$=g},{mode:1});var G9M;var KS=function(){return _.a.apply(this,arguments)||this};
_.f(KS,_.a);KS.prototype.observeSuperchatChip=function(){if(this.data){var g={"--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)};_.ua(this.hostElement,g)}};
KS.prototype.colorFromDecimal=function(g){return _.XT(Number(g||0))};
KS.prototype.observeSuperchatChip=KS.prototype.observeSuperchatChip;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],KS.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],KS.prototype,"data",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],KS.prototype,"observeSuperchatChip",null);_.m([_.N({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],KS);
_.I(KS,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(G9M!==void 0)return G9M;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return G9M=g},{mode:1});var xS=function(){return _.a.apply(this,arguments)||this};
_.f(xS,_.a);xS.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"}}}};
_.hx.Object.defineProperties(xS.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],xS.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],xS.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ji),_.L("design:type",Object)],xS.prototype,"ytdDismissibleItemBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],xS.prototype,"data",void 0);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],xS.prototype,"hideMessageBlock",null);
_.m([_.N({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],xS);
_.I(xS,"ytd-live-chat-history-entry-renderer",function(){if(DK5!==void 0)return DK5;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return DK5=g},{mode:1});var QP6;var aK=function(){return _.a.apply(this,arguments)||this};
_.f(aK,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],aK.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],aK.prototype,"data",void 0);_.m([_.N({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],aK);
_.I(aK,"ytd-channel-options-renderer",function(){if(QP6!==void 0)return QP6;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return QP6=g},{mode:1});var zy4;var Xg=function(){return _.a.apply(this,arguments)||this};
_.f(Xg,_.a);Xg.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Xg.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Xg.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Xg.prototype,"data",void 0);_.m([_.N({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],Xg);
_.I(Xg,"ytd-settings-email-item-renderer",function(){if(zy4!==void 0)return zy4;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return zy4=g},{mode:1});var k98;var N$=function(){return _.a.apply(this,arguments)||this};
_.f(N$,_.a);N$.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"}}}};
N$.prototype.getExpansionIcon=function(g){return g?"COLLAPSE":"EXPAND"};
N$.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.hx.Object.defineProperties(N$.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],N$.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],N$.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],N$.prototype,"data",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],N$.prototype,"expanded",void 0);_.m([_.W("expanded"),_.L("design:type",String),_.L("design:paramtypes",[])],N$.prototype,"emailListExpanded",null);
_.m([_.zb("#options"),_.L("design:type",Object)],N$.prototype,"options",void 0);_.m([_.N({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],N$);
_.I(N$,"ytd-settings-email-list-renderer",function(){if(k98!==void 0)return k98;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return k98=g},{mode:1});var HQM;var IK=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return g};
_.f(IK,_.a);IK.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"}}}};
IK.prototype.handleSignalActionSubmitForm=function(){var g,r=(g=this.formRenderer)==null?void 0:g.getForm();r&&this.data.serviceEndpoint&&_.rM().resolve(_.Er).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},r,{element:this.hostElement})})};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],IK.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],IK.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],IK.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],IK.prototype,"data",void 0);_.m([_.zb("yt-form-renderer"),_.L("design:type",Object)],IK.prototype,"formRenderer",void 0);
_.m([_.N({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],IK);
_.I(IK,"ytd-settings-gaia-link-renderer",function(){if(HQM!==void 0)return HQM;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return HQM=g},{mode:1});var pRD;var mi=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return g};
_.f(mi,_.a);mi.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.dN$()&&this.set("data.hidden",!1)};
mi.prototype.onSwitchReady=function(){var g=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.Y("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.vfD().then(function(r){r&&(Notification.permission==="default"?g.set("data.hidden",!1):Notification.permission==="granted"&&_.dJ("NotificationsDisabled").then(function(E){E||_.OS(g.hostElement,"yt-toggle-settings-switch",[g.data.id,!E]);g.set("data.hidden",!1)}).catch(function(){}))})})};
mi.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}}}}};
mi.prototype.handleUpdateOptionsCommand=function(g){(g=_.n(g,_.Qo4))&&this.data&&this.data.id===g.id&&(this.set("data.hidden",g.hidden),g.text!==void 0&&this.set("data.text",g.text),g.clearOptions&&this.set("data.options",[]))};
mi.prototype.onSwitchReady=mi.prototype.onSwitchReady;mi.prototype.dataChanged=mi.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],mi.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],mi.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],mi.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],mi.prototype,"data",void 0);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],mi.prototype,"dataChanged",null);_.m([_.ob("yt-settings-switch-ready"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],mi.prototype,"onSwitchReady",null);_.m([_.N({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],mi);
_.I(mi,"ytd-settings-options-renderer",function(){if(pRD!==void 0)return pRD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return pRD=g},{mode:1});var YFv;var cB=function(){return _.a.apply(this,arguments)||this};
_.f(cB,_.a);cB.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
cB.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
cB.prototype.onYtExpanderMoreTapped=cB.prototype.onYtExpanderMoreTapped;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],cB.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],cB.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],cB.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],cB.prototype,"data",void 0);
_.m([_.ob("yt-expander-more-tapped"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],cB.prototype,"onYtExpanderMoreTapped",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],cB);
_.I(cB,"ytd-product-details-description-renderer",function(){if(YFv!==void 0)return YFv;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return YFv=g},{mode:1});var Ry8;var i3=function(){var g=_.a.apply(this,arguments)||this;g.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";g.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";g.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";g.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return g};
_.f(i3,_.a);i3.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.hx.Object.defineProperties(i3.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var g,r;return((g=this.data)==null?void 0:(r=g.offerData)==null?void 0:r.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var g,r;return((g=this.data)==null?void 0:g.purchaseButtonRenderers)!==void 0&&((r=this.data)==null?void 0:r.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var g,r;return!((g=this.data)==null||!g.formattedFromMerchantText)&&(!((r=this.data)==null||!r.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],i3.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],i3.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],i3.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],i3.prototype,"data",void 0);
_.m([_.K({type:_.Y("kevlar_property_type_migration_killswitch")?String:void 0}),_.L("design:type",Object)],i3.prototype,"shippingIcon",void 0);_.m([_.K({type:_.Y("kevlar_property_type_migration_killswitch")?String:void 0}),_.L("design:type",Object)],i3.prototype,"shippingAddressIcon",void 0);_.m([_.K({type:_.Y("kevlar_property_type_migration_killswitch")?String:void 0}),_.L("design:type",Object)],i3.prototype,"googleGuaranteeIcon",void 0);
_.m([_.K({type:_.Y("kevlar_property_type_migration_killswitch")?String:void 0}),_.L("design:type",Object)],i3.prototype,"returnPolicyIcon",void 0);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],i3.prototype,"showAdditionalFees",null);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],i3.prototype,"showMultiPurchaseButtons",null);
_.m([_.W("data","showMultiPurchaseButtons"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],i3.prototype,"showPurchaseData",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],i3);
_.I(i3,"ytd-product-details-hero-offer-renderer",function(){if(Ry8!==void 0)return Ry8;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Ry8=g},{mode:1});var nZ$;var sPt;var LS=function(){return _.a.apply(this,arguments)||this};
_.f(LS,_.a);_.S=LS.prototype;_.S.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.S.onKeyDown=function(g){g=g.keyCode;g!==13&&g!==32||this.handleSelection()};
_.S.onMouseEnterImage=function(){var g;((g=this.data)==null?void 0:g.thumbnailDetails)!==void 0&&_.US(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.S.onMouseLeaveImage=function(){_.US(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.S.handleSelection=function(){this.data&&_.Sh(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.hx.Object.defineProperties(LS.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.isSelected)}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],LS.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],LS.prototype,"data",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],LS.prototype,"isSelected",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],LS);
_.I(LS,"ytd-product-details-thumbnail-renderer",function(){if(sPt!==void 0)return sPt;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return sPt=g},{mode:1});var Vh=function(){var g=_.a.apply(this,arguments)||this;var r={};g.actionMap=(r["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",r["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",r);g.selectedThumbnailIndex=0;g.selectItem=function(E){E.target.onKeyDown(E)};
return g};
_.f(Vh,_.a);_.S=Vh.prototype;_.S.handlePreviewImageSelect=function(g){this.hoverThumbnail=g};
_.S.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.S.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.S.onThumbnailSelected=function(g,r){this.selectedThumbnailIndex=r};
_.S.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.S.updateOffset=function(){var g=_.S3(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-g));this.ytdHorizontalListBehavior.reposition_()};
_.hx.Object.defineProperties(Vh.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)==null?0:g.imageRenderer){var r,E;return((r=this.data)==null?void 0:(E=r.imageRenderer)==null?void 0:E.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var g;if((g=this.data)==null?0:g.imageRenderer){var r;return(r=_.n(this.data.imageRenderer[this.selectedThumbnailIndex],heA))==null?void 0:r.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var g=this,r,E,B,w=(B=(r=this.data)==null?void 0:(E=r.imageRenderer)==null?void 0:E.map(function(O,M){return{productDetailsThumbnailRenderer:Object.assign({},_.n(O,heA),{index:M,isSelected:M===g.selectedThumbnailIndex})}}))!=null?B:[];
return Object.assign({},this.data,{imageRenderer:w})}}});
Vh.prototype.updateOffset=Vh.prototype.updateOffset;Vh.prototype.dataChanged=Vh.prototype.dataChanged;Vh.prototype.onThumbnailSelected=Vh.prototype.onThumbnailSelected;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Vh.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Vh.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.yR.YtdHorizontalListBehavior),_.L("design:type",Object)],Vh.prototype,"ytdHorizontalListBehavior",void 0);
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Vh.prototype,"componentBehavior",void 0);_.m([_.P([_.gN.YtActionHandlerBehavior]),_.L("design:type",Object)],Vh.prototype,"actionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Vh.prototype,"data",void 0);_.m([_.K({value:"$.items.children"}),_.L("design:type",String)],Vh.prototype,"itemsPath",void 0);_.m([_.K({value:3}),_.L("design:type",Number)],Vh.prototype,"initialCount",void 0);
_.m([_.zb("#items"),_.L("design:type",Object)],Vh.prototype,"items",void 0);_.m([_.K(),_.L("design:type",Object)],Vh.prototype,"selectedThumbnailIndex",void 0);_.m([_.K(),_.L("design:type",Object)],Vh.prototype,"hoverThumbnail",void 0);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Vh.prototype,"showThumbnails",null);
_.m([_.ob("ytd-product-details-thumbnail-renderer-selected"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Number]),_.L("design:returntype")],Vh.prototype,"onThumbnailSelected",null);_.m([_.W("data","selectedThumbnailIndex","hoverThumbnail"),_.L("design:type",Object),_.L("design:paramtypes",[])],Vh.prototype,"thumbnailDetails",null);_.m([_.W("data","selectedThumbnailIndex"),_.L("design:type",Object),_.L("design:paramtypes",[])],Vh.prototype,"populatedData",null);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Vh.prototype,"dataChanged",null);_.m([_.ob("iron-resize"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Vh.prototype,"updateOffset",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],Vh);
_.I(Vh,"ytd-product-details-image-carousel-renderer",function(){if(nZ$!==void 0)return nZ$;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return nZ$=g},{mode:_.My("kevlar_poly_si_batch_j079")?1:2});var f5m;var hP=function(){return _.a.apply(this,arguments)||this};
_.f(hP,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],hP.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],hP.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],hP.prototype,"componentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],hP.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],hP);
_.I(hP,"ytd-product-details-offer-renderer",function(){if(f5m!==void 0)return f5m;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return f5m=g},{mode:1});var $Kt;var Z_=function(){var g=_.a.apply(this,arguments)||this;g.isOffersHidden=!0;return g};
_.f(Z_,_.a);Z_.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var g,r=_.n((g=this.data)==null?void 0:g.viewOffersButton,_.Fd);r&&this.ytRendererBehavior.logExplicitClick(r)};
Z_.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.hx.Object.defineProperties(Z_.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var g,r,E,B;return(E=_.n((g=this.data)==null?void 0:(r=g.offers)==null?void 0:r[0],dL8))==null?void 0:(B=E.offerData)==null?void 0:B.vendorLogoUrl}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Z_.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Z_.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Z_.prototype,"componentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Z_.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],Z_.prototype,"isOffersHidden",void 0);
_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],Z_.prototype,"firstOfferVendorLogoUrl",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],Z_);
_.I(Z_,"ytd-product-details-offers-container-renderer",function(){if($Kt!==void 0)return $Kt;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return $Kt=g},{mode:1});var jPA;var AJ8;var yh=function(){return _.a.apply(this,arguments)||this};
_.f(yh,_.a);yh.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
yh.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.US(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
yh.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.US(this,"ytd-product-details-variant-image-unselect")};
_.hx.Object.defineProperties(yh.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 g;return((g=this.data)==null?void 0:g.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return((g=this.data)==null?void 0:g.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((r=this.data)==null?void 0:r.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((E=this.data)==null?void 0:E.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var g;if(((g=this.data)==null?void 0:g.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var g,r;return this.isUnavailable?(g=this.data)==null?void 0:g.variantOptionUnavailableAccessibilityLabel:(r=this.data)==null?void 0:r.variantOptionAccessibilityLabel}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],yh.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],yh.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],yh.prototype,"componentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],yh.prototype,"data",void 0);_.m([_.K(),_.L("design:type",String)],yh.prototype,"displayType",void 0);
_.m([_.W("displayType","data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],yh.prototype,"isImageButton",null);_.m([_.W("displayType","data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],yh.prototype,"isPillButton",null);_.m([_.W("data"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],yh.prototype,"isActive",null);
_.m([_.W("data"),_.K({reflectToAttribute:!0}),_.L("design:type",Boolean),_.L("design:paramtypes",[])],yh.prototype,"isUnavailable",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],yh.prototype,"thumbnailDetails",null);_.m([_.W("isUnavailable","data"),_.L("design:type",Object),_.L("design:paramtypes",[])],yh.prototype,"accessibilityLabel",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],yh);
_.I(yh,"ytd-product-details-variant-option-renderer",function(){if(AJ8!==void 0)return AJ8;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return AJ8=g},{mode:1});var bQM;var vB=function(){var g=_.a.apply(this,arguments)||this;g.variantsExpanded=!1;g.hideShowMoreLessVariantButton=!0;g.initialized=!1;g.computeVariantsDebouncer=null;g.computeVariants=function(r){r=r===void 0?!1:r;g.variantsExpanded||g.showOptions()||!r||(g.variantsExpanded=!0);if(g.variantsExpanded){r=_.U(g.items.children);for(var E=r.next();!E.done;E=r.next())E.value.hidden=!1}g.initialized=!0};
return g};
_.f(vB,_.a);_.S=vB.prototype;_.S.ready=function(){var g=this;setTimeout(function(){g.computeVariants(!0)})};
_.S.showOptions=function(){for(var g=_.U(this.items.children),r=g.next();!r.done;r=g.next())r.value.hidden=!0;var E=this.container.getBoundingClientRect().width,B=0,w=g=0;r=!1;for(var O=_.U(this.items.children),M=O.next();!M.done;M=O.next()){M=M.value;M.hidden=!1;var u=M.getBoundingClientRect().width;if(B+u<E)B+=u;else if(++w<2)B=u;else break;g+=1;M.hasAttribute("is-active")&&(r=!0)}for(E=g;E<this.items.children.length;E++)this.items.children[E].hidden=!0;this.hideShowMoreLessVariantButton=g===this.items.children.length;
return r};
_.S.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.g3(this.computeVariantsDebouncer,_.IM.after(100),this.computeVariants)};
_.S.onShowMoreLessVariantsButtonClick=function(){var g;(g=this.data)!=null&&g.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.S.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.hx.Object.defineProperties(vB.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var g,r,E=(g=this.data)==null?void 0:(r=g.variantOptionRenderers)==null?void 0:r.find(function(O){return _.n(O,ybM).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),B,w;
return(w=(B=_.n(E,ybM))==null?void 0:B.name)!=null?w:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.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"}}}});
vB.prototype.debouncedComputeVariants=vB.prototype.debouncedComputeVariants;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],vB.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],vB.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],vB.prototype,"componentBehavior",void 0);_.m([_.P(_.f7),_.L("design:type",Object)],vB.prototype,"ironResizableBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],vB.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],vB.prototype,"variantsExpanded",void 0);_.m([_.K(),_.L("design:type",Object)],vB.prototype,"hideShowMoreLessVariantButton",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],vB.prototype,"initialized",void 0);_.m([_.zb("#items"),_.L("design:type",HTMLDivElement)],vB.prototype,"items",void 0);_.m([_.zb("#container"),_.L("design:type",HTMLDivElement)],vB.prototype,"container",void 0);
_.m([_.zb("#more-variants-button"),_.L("design:type",HTMLElement)],vB.prototype,"moreVariantsButton",void 0);_.m([_.W("data"),_.L("design:type",String),_.L("design:paramtypes",[])],vB.prototype,"selectedOptionName",null);_.m([_.Gb("data","variantsExpanded"),_.ob("iron-resize"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],vB.prototype,"debouncedComputeVariants",null);
_.m([_.W("data"),_.L("design:type",String),_.L("design:paramtypes",[])],vB.prototype,"displayType",null);_.m([_.W("displayType"),_.L("design:type",Object),_.L("design:paramtypes",[])],vB.prototype,"variantItemsClassname",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],vB);
_.I(vB,"ytd-product-details-variant-renderer",function(){if(bQM!==void 0)return bQM;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return bQM=g},{mode:1});var dK=function(){return _.a.apply(this,arguments)||this};
_.f(dK,_.a);
dK.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"}}}};
_.hx.Object.defineProperties(dK.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var g,r,E=(r=_.n((g=this.data)==null?void 0:g.offersContainerRenderer,vs5))==null?void 0:r.offers;return E!==void 0&&(E==null?void 0:E.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 g,r,E;return((E=(g=this.data)==null?void 0:(r=g.variants)==null?void 0:r.map(function(B){var w,O;B=(O=(w=_.n(B,Zb$))==null?void 0:w.variantOptionRenderers)==null?void 0:O.find(function(u){var l;return((l=_.n(u,ybM))==null?void 0:l.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var M;return(M=_.n(B,ybM))==null?void 0:M.name}).filter(function(B){return typeof B==="string"}))!=null?E:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var g,r,E,B=(r=_.n((g=this.data)==null?void 0:g.shoppingFlaggingRenderer,TPv))==null?void 0:(E=r.reportButton)==null?void 0:E.buttonRenderer;if(B)return{text:B.text,command:B.command,icon:{iconType:"FLAG"},accessibilityData:B.accessibilityData,trackingParams:B.trackingParams,loggingDirectives:B.loggingDirectives}}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],dK.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],dK.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],dK.prototype,"componentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],dK.prototype,"data",void 0);_.m([_.zb("#image-carousel-renderer"),_.L("design:type",Object)],dK.prototype,"imageCarouselRenderer",void 0);
_.m([_.zb("#hero-offer-renderer"),_.L("design:type",Object)],dK.prototype,"productDetailsHeroOfferRenderer",void 0);_.m([_.zb("#variants"),_.L("design:type",Object)],dK.prototype,"productDetailsVariantRenderer",void 0);_.m([_.zb("#offers"),_.L("design:type",Object)],dK.prototype,"productDetailsOffersContainerRenderer",void 0);_.m([_.zb("#description-renderer"),_.L("design:type",Object)],dK.prototype,"productDetailsDescriptionRenderer",void 0);
_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],dK.prototype,"showPurchaseData",null);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],dK.prototype,"showHeroOfferRenderer",null);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],dK.prototype,"showBrandText",null);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],dK.prototype,"showOffers",null);
_.m([_.W("showOffers","showPurchaseData"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],dK.prototype,"showBuySeparator",null);_.m([_.W("showOffers","showPurchaseData"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],dK.prototype,"showBuyCard",null);_.m([_.W("data"),_.L("design:type",String),_.L("design:paramtypes",[])],dK.prototype,"selectedVariantsText",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],dK.prototype,"shoppingReportingButtonData",null);
_.m([_.N({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],dK);
_.I(dK,"ytd-product-details-renderer",function(){if(jPA!==void 0)return jPA;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return jPA=g},{mode:1});var JJ4;var PSt;var t4z;var Tf=function(){return _.a.apply(this,arguments)||this};
_.f(Tf,_.a);Tf.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.hx.Object.defineProperties(Tf.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Tf.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Tf.prototype,"data",void 0);_.m([_.K(),_.L("design:type",String)],Tf.prototype,"formattedAmount",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Tf.prototype,"ariaLabel",void 0);
_.m([_.K({reflectToAttribute:!0}),_.W("data.style"),_.L("design:type",String),_.L("design:paramtypes",[])],Tf.prototype,"vcBalanceWidgetStyle",null);_.m([_.e3({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],Tf);
_.I(Tf,"yt-vc-balance-renderer",function(){if(t4z===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;PSt===void 0&&(PSt=document.createElement("template"));var B=PSt;E.call(r,B.content.cloneNode(!0),g.content.firstChild);t4z=g}g=t4z;return g},{mode:2});_.ek("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var g1=function(){return _.a.apply(this,arguments)||this};
_.f(g1,_.a);_.hx.Object.defineProperties(g1.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:""}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],g1.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],g1.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],g1.prototype,"data",void 0);_.m([_.K({selectorArgs:["data.vcBalanceEntityKey"],selector:function(g,r){return _.u1(g.entities,"vcBalanceEntity",r)}}),
_.L("design:type",Object)],g1.prototype,"vcBalanceEntity",void 0);_.m([_.W("vcBalanceEntity"),_.L("design:type",String),_.L("design:paramtypes",[])],g1.prototype,"formattedAmount",null);_.m([_.W("vcBalanceEntity"),_.L("design:type",String),_.L("design:paramtypes",[])],g1.prototype,"vcBalanceAriaLabel",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],g1);
_.I(g1,"ytd-vc-balance-renderer",function(){if(JJ4!==void 0)return JJ4;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return JJ4=g},{mode:1});var FPF;var r1=function(){var g=_.a.apply(this,arguments)||this;g.rotation=0;g.isReloading=!1;return g};
_.f(r1,_.a);r1.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
r1.prototype.reset=function(){this.hostElement.style.opacity=""};
r1.prototype.close=function(){var g=this;return _.q(function(r){if(r.nextAddress==1)return _.D(r,g.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);g.hostElement.style.opacity="0";_.Q3(r)})};
r1.prototype.rotationChanged=r1.prototype.rotationChanged;_.m([_.K(),_.L("design:type",Object)],r1.prototype,"rotation",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],r1.prototype,"isReloading",void 0);_.m([_.zb("#icon"),_.L("design:type",HTMLElement)],r1.prototype,"icon",void 0);_.m([_.Gb("rotation"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],r1.prototype,"rotationChanged",null);
_.m([_.N({disableElementRegistration:!0,is:"ytd-refresh"})],r1);
_.I(r1,"ytd-refresh",function(){if(FPF!==void 0)return FPF;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return FPF=g},{mode:1});var ey5;var Ej=function(){return _.a.apply(this,arguments)||this};
_.f(Ej,_.a);Ej.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"}}}};
Ej.prototype.dataChanged=function(){if(this.data){var g=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var r=_.wt(this.data.banner.thumbnails,this.hostElement.clientWidth);r&&(r.indexOf("//")===0&&(r="https:"+r),this.hasBannerArt=!0,_.ua(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+r+")"}))}this.hasBannerArt!==g&&_.S3(this.hostElement).querySelector("#header").fire("iron-resize")}};
Ej.prototype.updateSelectedFromBinding=function(g){this.selected=g.detail.value};
Ej.prototype.dataChanged=Ej.prototype.dataChanged;_.m([_.P(EZ5),_.L("design:type",Object)],Ej.prototype,"ytdTabbedHeaderBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Ej.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.ti),_.L("design:type",Object)],Ej.prototype,"ytdGridStateAwareBehavior",void 0);_.m([_.P(_.eb.YtdGuideStateAwareBehavior),_.L("design:type",Object)],Ej.prototype,"ytdGuideStateAwareBehavior",void 0);
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Ej.prototype,"componentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Ej.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Number)],Ej.prototype,"selected",void 0);_.m([_.K(),_.L("design:type",Boolean)],Ej.prototype,"active",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Ej.prototype,"hasBannerArt",void 0);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Ej.prototype,"dataChanged",null);_.m([_.N({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],Ej);
_.I(Ej,"ytd-interactive-tabbed-header-renderer",function(){if(ey5!==void 0)return ey5;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return ey5=g},{mode:1});var WPA;var Bx=function(){return _.a.apply(this,arguments)||this};
_.f(Bx,_.a);Bx.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Bx.prototype.computeActionsAlignment=function(g){return(g==null?void 0:g.actionsAlignment)||""};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Bx.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Bx.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Bx.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.L("design:type",String)],Bx.prototype,"actionsAlignment",void 0);_.m([_.N({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],Bx);
_.I(Bx,"ytd-page-footer-renderer",function(){if(WPA!==void 0)return WPA;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return WPA=g},{mode:1});var CS5;var KPM;var w1=function(){var g=_.a.apply(this,arguments)||this;g.isEditing=!1;g.useSlot=!1;g.isMultiline=!1;return g};
_.f(w1,_.a);_.S=w1.prototype;_.S.onKeydown=function(g){if(g.keyCode===13&&!this.isMultiline)this.onSave();else if(g.keyCode===27)this.onCancel()};
_.S.computeComponentStyle=function(g){return(g==null?0:g.style)?g.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.S.computeisMultiline=function(g){if(this.multilineOverride!==void 0)return this.multilineOverride;var r,E;return!!(g==null?0:(r=g.formField)==null?0:(E=r.textInputFormFieldRenderer)==null?0:E.isMultiline)};
_.S.computeTextDisplayed=function(g,r){if(g)return g;if(r)return r};
_.S.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.S.onSave=function(){if(this.textForm.validate()){this.textForm.save();var g=this.textForm.value;if(g)this.set("data.textDisplayed",_.Lf(g));else{var r;((r=this.data)==null?0:r.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.x8("inline-form-changed",this.data));this.isEditing=!1}};
_.S.onCancel=function(){var g=_.Vp(this.data.textDisplayed);g===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(g);this.isEditing=!1};
w1.prototype.onKeydown=w1.prototype.onKeydown;_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],w1.prototype,"ytEventForwardingBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],w1.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],w1.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],w1.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],w1.prototype,"isEditing",void 0);_.m([_.K(),_.L("design:type",Object)],w1.prototype,"useSlot",void 0);_.m([_.K(),_.L("design:type",Boolean)],w1.prototype,"multilineOverride",void 0);_.m([_.K(),_.L("design:type",Boolean)],w1.prototype,"enableOverlayTheme",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.L("design:type",String)],w1.prototype,"componentStyle",void 0);
_.m([_.K({computed:"computeisMultiline(data)"}),_.L("design:type",Object)],w1.prototype,"isMultiline",void 0);_.m([_.zb("#text-form"),_.L("design:type",Object)],w1.prototype,"textForm",void 0);_.m([_.ob("keydown"),_.L("design:type",Function),_.L("design:paramtypes",[KeyboardEvent]),_.L("design:returntype")],w1.prototype,"onKeydown",null);_.m([_.N({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],w1);
_.I(w1,"ytd-inline-form-renderer",function(){if(KPM!==void 0)return KPM;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return KPM=g},{mode:1});var xK4;var So=function(){var g=_.a.apply(this,arguments)||this;g.previousSelectValue=void 0;g.selectedItemMessage=void 0;return g};
_.f(So,_.a);So.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
So.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var g,r,E,B,w=(g=this.data)==null?void 0:(r=g.dropdown)==null?void 0:(E=r.dropdownRenderer)==null?void 0:(B=E.entries)==null?void 0:B.map(function(u){return u.privacyDropdownItemRenderer});
g=_.U(w!=null?w:[]);for(r=g.next();!r.done;r=g.next())if((r=r.value)&&r.int32Value===this.selectedValue){this.selectedItemMessage=r.itemMessage;break}}else this.selectedItemMessage=void 0;var O;(O=this.onValueChanged)==null||O.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var M;(M=this.data)!=null&&M.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
So.prototype.onValueChangedForSelectedValue=function(g){this.selectedValue=g.detail.value};
So.prototype.selectedValueChanged=So.prototype.selectedValueChanged;_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],So.prototype,"ytEventForwardingBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],So.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],So.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],So.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],So.prototype,"data",void 0);_.m([_.K(),_.L("design:type",String)],So.prototype,"theme",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Number)],So.prototype,"selectedValue",void 0);_.m([_.K(),_.L("design:type",Function)],So.prototype,"onValueChanged",void 0);
_.m([_.Yk("selectedValue"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],So.prototype,"selectedValueChanged",null);_.m([_.N({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],So);
_.I(So,"ytd-dropdown-form-field-renderer",function(){if(xK4!==void 0)return xK4;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return xK4=g},{mode:_.My("kevlar_poly_si_batch_j025")?1:2});var a5g;var Oj=function(){return _.a.apply(this,arguments)||this};
_.f(Oj,_.a);_.hx.Object.defineProperties(Oj.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var g=[],r=_.U(this.data||[]),E=r.next();!E.done;E=r.next())(E=_.n(E.value,gZg))&&g.push(E);return g}}});
_.m([_.K(),_.L("design:type",Array)],Oj.prototype,"data",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],Oj.prototype,"byline",null);_.m([_.N({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],Oj);
_.I(Oj,"ytd-playlist-byline-renderer",function(){if(a5g!==void 0)return a5g;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return a5g=g},{mode:1});var XR6;var Uj=function(){var g=_.a.apply(this,arguments)||this;g.rtlBullet=_.Y("web_playlist_stats_rtl_bullet_icon_killswitch");g.modern=_.Y("web_modern_buttons");g.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return g};
_.f(Uj,_.a);_.S=Uj.prototype;_.S.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more"}}}},"data.playButtons":{id:"play-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"},toggleButtonRenderer:{component:"ytd-toggle-button-renderer"},compactLinkRenderer:{component:"ytd-compact-link-renderer"}}}}};
_.S.attached=function(){};
_.S.computeIsCustomThumbnail=function(g){return g?!!g.playlistCustomThumbnailRenderer:!1};
_.S.onYtNavigate=function(g,r){if(r&&r.actions&&r.actions.indexOf("shuffle")>-1){g=_.rM().resolve(_.t6);var E=r.tempData||{};E.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);r.tempData=E;g.isShuffleNextPlaylist=!0}};
_.S.onUpdatePlaylistAction=function(g){var r;g=(r=_.n(g,_.Lqm))==null?void 0:r.updatedRenderer;if(r=_.n(g,JP))this.data=r};
_.S.computeStyleType=function(g){return g?g.toLowerCase().replace(/_/g,"-"):""};
_.S.computeThumbnailWidth=function(g){return g==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.S.computeHideThumbnailAria=function(g){if(g==null?0:g.thumbnailOverlays)for(var r=0;r<g.thumbnailOverlays.length;r++){var E=void 0;if((E=g.thumbnailOverlays[r])==null?0:E.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
Uj.prototype.onYtNavigate=Uj.prototype.onYtNavigate;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Uj.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Uj.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Uj.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Uj.prototype,"ytComponentBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],Uj.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Uj.prototype,"rtlBullet",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.L("design:type",String)],Uj.prototype,"styleType",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.L("design:type",Number)],Uj.prototype,"thumbnailWidth",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Uj.prototype,"modern",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.L("design:type",Boolean)],Uj.prototype,"isCustomThumbnail",void 0);_.m([_.ob("yt-navigate"),_.L("design:type",Function),_.L("design:paramtypes",[Event,Object]),_.L("design:returntype")],Uj.prototype,"onYtNavigate",null);_.m([_.N({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],Uj);
_.I(Uj,"ytd-playlist-sidebar-primary-info-renderer",function(){if(XR6!==void 0)return XR6;var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return XR6=g},{mode:1});var N6M;var MG=function(){return _.a.apply(this,arguments)||this};
_.f(MG,_.a);MG.prototype.computeOwnerVisibility=function(g){return!(!g.videoOwner&&!g.button)};
MG.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"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],MG.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],MG.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],MG.prototype,"data",void 0);_.m([_.N({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],MG);
_.I(MG,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(N6M!==void 0)return N6M;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return N6M=g},{mode:1});var I5t;var qG=function(){var g=_.a.apply(this,arguments)||this;g.expanded=!1;g.isCompact=!1;return g};
_.f(qG,_.a);_.S=qG.prototype;_.S.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.S.dataChanged=function(){this.data&&_.cu(_.S3(this.text),_.JtT(_.FAw,_.Vp(this.data.text||null)))};
_.S.computeAutoScrollEnabled=function(g,r){return g&&!r};
_.S.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.S.toggleOnTap=function(){this.expanded=!this.expanded};
qG.prototype.expandedChanged=qG.prototype.expandedChanged;qG.prototype.dataChanged=qG.prototype.dataChanged;_.m([_.P(_.iG5),_.L("design:type",Object)],qG.prototype,"ytdAutoScrollBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],qG.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],qG.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],qG.prototype,"expanded",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],qG.prototype,"isCompact",void 0);_.m([_.K({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.L("design:type",Boolean)],qG.prototype,"autoScrollEnabled",void 0);_.m([_.zb("#text"),_.L("design:type",Object)],qG.prototype,"text",void 0);_.m([_.zb("#expander-icon"),_.L("design:type",Object)],qG.prototype,"expanderIcon",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],qG.prototype,"dataChanged",null);_.m([_.Gb("expanded"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],qG.prototype,"expandedChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],qG);
_.I(qG,"ytd-channel-legal-info-renderer",function(){if(I5t!==void 0)return I5t;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return I5t=g},{mode:1});var mKz;var cJF=_.zn("DOWNLOAD",{},"Download"),iQt=_.zn("DOWNLOADING",{},"Downloading"),LPF=_.zn("DOWNLOADED",{},"Downloaded"),uk=function(){var g=_.a.apply(this,arguments)||this;g.downloadProgress=0;g.isDownloadComplete=!1;g.transferState="TRANSFER_STATE_UNKNOWN";return g};
_.f(uk,_.a);_.S=uk.prototype;_.S.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.S.dataChanged=function(){var g;(g=this.data)!=null&&g.tooltip||(g=_.Cf(_.Zz().getState(),this.playlistId),this.updateButtonState(g))};
_.S.computePlaylistId=function(g){return g};
_.S.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.S.updateButtonState=function(g){if(this.data&&(this.data.tooltip!==iQt||!_.pf(g))){this.isDownloadComplete=!1;switch(g){case "TRANSFER_STATE_UNKNOWN":g=cJF;var r="OFFLINE_DOWNLOAD";var E="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":g=LPF;r="OFFLINE_PIN";E="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":g=iQt;r="OFFLINE_DOWNLOADING_ZERO";E="ACTION_REMOVE_WITH_PROMPT";
break;default:g=cJF,r="OFFLINE_DOWNLOAD",E="ACTION_ADD"}var B=Object.assign({},this.data);B.tooltip=g;B.accessibilityData={accessibilityData:{label:g}};B.icon={iconType:r};B.size="SIZE_DEFAULT";_.n(B.command,_.o$)&&(_.n(B.command,_.o$).action=E);this.set("data",B)}};
_.S.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var g="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?g="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?g="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?g="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?g="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?g="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(g="OFFLINE_PIN",this.isDownloadComplete=!0);var r;g!==((r=this.data.icon)==null?void 0:r.iconType)&&(r=Object.assign({},this.data),r.tooltip=iQt,r.accessibilityData={accessibilityData:{label:iQt}},r.icon={iconType:g},_.n(r.command,_.o$)&&(_.n(r.command,_.o$).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",r))}};
uk.prototype.updateProgress=uk.prototype.updateProgress;uk.prototype.onTransferStateChanged=uk.prototype.onTransferStateChanged;uk.prototype.dataChanged=uk.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],uk.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],uk.prototype,"ytdReduxBehavior",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],uk.prototype,"forceIconButton",void 0);
_.m([_.K({value:!0}),_.L("design:type",Boolean)],uk.prototype,"forceIconOnly",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],uk.prototype,"overrides",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],uk.prototype,"buttonTooltipPosition",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],uk.prototype,"styleActionButton",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],uk.prototype,"disableTextTransform",void 0);
_.m([_.K({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.L("design:type",String)],uk.prototype,"playlistId",void 0);_.m([_.K(),_.L("design:type",Object)],uk.prototype,"data",void 0);_.m([_.K({selector:_.$Ct,selectorArgs:["playlistId"]}),_.L("design:type",Object)],uk.prototype,"downloadProgress",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],uk.prototype,"isDownloadComplete",void 0);
_.m([_.K({selector:_.Cf,selectorArgs:["playlistId"]}),_.L("design:type",String)],uk.prototype,"transferState",void 0);_.m([_.K({value:!0}),_.L("design:type",Boolean)],uk.prototype,"showTooltips",void 0);_.m([_.K({value:!0}),_.L("design:type",Boolean)],uk.prototype,"sendCommandWhenDisabled",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],uk.prototype,"disabled",void 0);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],uk.prototype,"dataChanged",null);_.m([_.Yk("transferState"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],uk.prototype,"onTransferStateChanged",null);_.m([_.Yk("downloadProgress"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],uk.prototype,"updateProgress",null);
_.m([_.N({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],uk);
_.I(uk,"ytd-download-playlist-button-renderer",function(){if(mKz!==void 0)return mKz;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return mKz=g},{mode:1});var V4M;_.BK(_.vxn,"thumbnail-overlay-button-view-model",{props:{data:_.cP,lockupExperiments:_.cP}});var lk=function(){var g=_.a.apply(this,arguments)||this;g.isSquare=!1;g.isVertical=!1;return g};
_.f(lk,_.a);lk.prototype.computeIsSquare=function(g){return g!=null&&g.thumbnail?Ab6(g.thumbnail)==="SQUARE":!1};
lk.prototype.computeIsVertical=function(g){return g!=null&&g.thumbnail?Ab6(g.thumbnail)==="VERTICAL":!1};
lk.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],lk.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],lk.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.L("design:type",Object)],lk.prototype,"isSquare",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.L("design:type",Object)],lk.prototype,"isVertical",void 0);
_.m([_.K(),_.L("design:type",Object)],lk.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],lk);
_.I(lk,"ytd-hero-playlist-thumbnail-renderer",function(){if(V4M!==void 0)return V4M;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return V4M=g},{mode:1});var DS=function(){var g=_.a.apply(this,arguments)||this;g.isDarkTheme=!1;g.isUltraWide=!1;g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return g};
_.f(DS,_.a);_.S=DS.prototype;_.S.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.rM();var g;(g=_.rM().resolve(_.gM(_.Ie)))!=null&&(g.headerElement=this.hostElement)};
_.S.detached=function(){var g;(g=_.rM().resolve(_.gM(_.Ie)))!=null&&(g.headerElement=void 0)};
_.S.onUpdateHeader=function(g){(g=g.detail)&&this.set("data",g)};
_.S.computeTextDisplayed=function(g){if(g)return g.textDisplayed?g.textDisplayed:g.placeholder};
_.S.gradientColorToLinearGradientStop=function(g){var r=this.isDarkTheme?g.darkThemeColor:g.lightThemeColor;return r?_.XT(r)+" "+((g==null?void 0:g.startLocation)||0)*100+"%":"transparent"};
_.S.onWindowResize=function(){var g;((g=this.data)==null?0:g.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.S.onIronResize=function(g){this.isUltraWide=!g.detail.value};
_.S.onDarkModeToggledAction=function(g){this.isDarkTheme=g};
_.S.onUpdatePlaylistName=function(g){var r=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},g.detail.value));_.Lk(this,function(){var E;(E=r.editableTitle)==null||E.resize()})};
_.S.onUpdatePlaylistDescription=function(g){var r=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},g.detail.value));_.Lk(this,function(){var E;(E=r.editableDescriptionInlineExpander)==null||E.resize()})};
_.S.getCinematicData=function(g){return _.n(g==null?void 0:g.cinematicContainer,_.sf)};
_.hx.Object.defineProperties(DS.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 g,r=(g=this.getCinematicData(this.data))==null?void 0:g.config;return(g=this.isDarkTheme?r==null?void 0:r.darkThemeBackgroundColor:r==null?void 0:r.lightThemeBackgroundColor)?"background-color:"+_.aJ(g)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var g;return _.n((g=this.data)==null?void 0:g.descriptionForm,VXt)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var g=this,r,E,B;return"background:linear-gradient(to bottom, "+(((B=(r=this.getCinematicData(this.data))==null?void 0:(E=r.gradientColorConfig)==null?void 0:E.map(function(w){return g.gradientColorToLinearGradientStop(w)}))==null?void 0:B.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var g;return _.Vp((g=this.data)==null?void 0:g.descriptionTapText)}}});
DS.prototype.onUpdateHeader=DS.prototype.onUpdateHeader;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],DS.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],DS.prototype,"actionHandlerBehavior",void 0);_.m([_.zb("#description-inline-expander"),_.L("design:type",Object)],DS.prototype,"descriptionInlineExpander",void 0);
_.m([_.zb("#editable-description-inline-expander"),_.L("design:type",Object)],DS.prototype,"editableDescriptionInlineExpander",void 0);_.m([_.K(),_.L("design:type",Object)],DS.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],DS.prototype,"isUltraWide",void 0);_.m([_.zb("#editable-title-display"),_.L("design:type",Object)],DS.prototype,"editableTitle",void 0);_.m([_.W("isUltraWide"),_.L("design:type",Object),_.L("design:paramtypes",[])],DS.prototype,"maxDescriptionLines",null);
_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],DS.prototype,"noCinematicData",null);_.m([_.ob("yt-new-playlist-header"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],DS.prototype,"onUpdateHeader",null);_.m([_.W("data","isDarkTheme"),_.L("design:type",Object),_.L("design:paramtypes",[])],DS.prototype,"backgroundStyle",null);
_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],DS.prototype,"descriptionFormData",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],DS.prototype,"getDropdownTheme",null);_.m([_.W("data","isDarkTheme"),_.L("design:type",String),_.L("design:paramtypes",[])],DS.prototype,"gradientStyle",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],DS.prototype,"descriptionTapText",null);
_.m([_.N({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],DS);
_.I(DS,"ytd-playlist-header-renderer",function(){if(CS5!==void 0)return CS5;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return CS5=g},{mode:_.My("kevlar_poly_si_batch_j078")?1:2});var hy8;var ZQD;var ot=function(){return _.a.apply(this,arguments)||this};
_.f(ot,_.a);ot.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ot.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],ot.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ot.prototype,"data",void 0);_.m([_.N({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],ot);
_.I(ot,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(ZQD!==void 0)return ZQD;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return ZQD=g},{mode:1});var GK=function(){return _.a.apply(this,arguments)||this};
_.f(GK,_.a);
GK.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}}}}};
GK.prototype.computeUsePremiumShowStyle=function(g){if(!g||!g.items)return!1;for(var r=0;r<g.items.length;r++)if(_.n(g.items[r],JP)){var E=void 0;return((E=_.n(g.items[r],JP))==null?void 0:E.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],GK.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],GK.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],GK.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.L("design:type",Boolean)],GK.prototype,"usePremiumShowStyle",void 0);
_.m([_.N({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],GK);
_.I(GK,"ytd-playlist-sidebar-renderer",function(){if(hy8!==void 0)return hy8;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return hy8=g},{mode:1});var yJ6;var vZz;var dKL=function(g,r,E,B,w,O,M,u){this.minWidth=g;this.minHeight=r;this.recommendedWidth=E;this.recommendedHeight=B;this.JSC$19670_maxFileSize=w;this.title=O;this.bannerGalleryTitle=M;this.channelId=u;this.picker_=null;g=_.n8c("yt-banner");r=g.addView;E=(new Cxz("youtubebanner")).addUploadMetadata("silo_id","19");E.opts.ytMaxFileSize=this.JSC$19670_maxFileSize;B=this.recommendedHeight;E.opts.ytRecWidth=this.recommendedWidth;E.opts.ytRecHeight=B;r.call(g,E);g.addView(new _.pU);r=g.addView;E=new _.pU;
E.opts.type="ytbanner";r.call(g,E.JSC$8164_setLabel(this.bannerGalleryTitle));r=g.setTitle(this.title).setSize(1E3);r.urlParamMap_.set("thumbs","orig");E=this.minWidth;B=this.minHeight;if(isNaN(E)||isNaN(B))throw Error("lb`"+E+"`"+B);r.urlParamMap_.set("minSize",E+"x"+B);r.urlParamMap_.set("cropMode","ytcb");this.builder_=g};
dKL.prototype.open=function(){var g=this;return new _.D8(function(r,E){_.Hlm(g.builder_,function(B){B.action=="picked"?r(B):B.action=="cancel"&&E(Error("cm"))});
g.picker_&&g.picker_.dispose();g.picker_=g.builder_.build();g.picker_.setVisible(!0)})};
dKL.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var T64=function(g){this.channelId=g},ge$=function(g,r){var E="";
r.viewToken&&(E=r.viewToken[2].type);var B=r.docs[0];r=B.crop;g={channel_id:g.channelId,fife_url:B.thumbnails[0].url,photo_id:B.id,is_gallery_image:E=="ytbanner"};r&&(g.crop_top=r.top,g.crop_right=r.right,g.crop_bottom=r.bottom,g.crop_left=r.left);return _.juA("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:g})};var Qa=function(){var g=_.a.apply(this,arguments)||this;g.ariaLabel=null;return g};
_.f(Qa,_.a);_.S=Qa.prototype;_.S.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.S.detached=function(){this.picker&&this.picker.dispose()};
_.S.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.S.computeAriaLabel=function(g){return g};
_.S.onTap=function(){var g=this,r;if((r=this.data)==null||!r.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new dKL(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 E;(E=this.picker)==null||E.open().then(function(B){g.handleBannerPicked(B)},function(){})}};
_.S.handleBannerPicked=function(g){var r=this;this.uploader||(this.uploader=new T64(this.data.channelId||""));this.message=this.data.uploadingText;ge$(this.uploader,g).then(function(E){r.handleBannerUploadSucceeded(E)},function(E){r.handleBannerUploadFailed(E)})};
_.S.handleBannerUploadSucceeded=function(g){g&&g.errors?this.handleBannerUploadFailed(g):(_.Sh(this.hostElement,"yt-banner-updated",g),this.message=null)};
_.S.handleBannerUploadFailed=function(g){this.message=g&&g.errors&&g.errors.length?g.errors[0]:null};
Qa.prototype.dataChanged=Qa.prototype.dataChanged;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Qa.prototype,"componentBehavior",void 0);_.m([_.P(_.jP),_.L("design:type",Object)],Qa.prototype,"ironButtonState",void 0);_.m([_.K(),_.L("design:type",Object)],Qa.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.L("design:type",Object)],Qa.prototype,"ariaLabel",void 0);
_.m([_.K(),_.L("design:type",Object)],Qa.prototype,"message",void 0);_.m([_.K(),_.L("design:type",Object)],Qa.prototype,"picker",void 0);_.m([_.K(),_.L("design:type",Object)],Qa.prototype,"uploader",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Qa.prototype,"dataChanged",null);_.m([_.N({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],Qa);
_.I(Qa,"ytd-channel-banner-editor-renderer",function(){if(vZz!==void 0)return vZz;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return vZz=g},{mode:1});var rrF;var Ee8=_.me(["#"]),zK=function(){return _.a.apply(this,arguments)||this};
_.f(zK,_.a);zK.prototype.computeHrefWithDefault=function(g){return this.ytComponentBehavior.computeHref_(g,!0)||_.$U(Ee8)};
zK.prototype.dataChanged=function(){var g=this.data;g&&g.targetId&&_.npb(_.Yl(),g.targetId,this.moreIcon)};
zK.prototype.dataChanged=zK.prototype.dataChanged;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],zK.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],zK.prototype,"data",void 0);_.m([_.zb("#more-icon"),_.L("design:type",Object)],zK.prototype,"moreIcon",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],zK.prototype,"dataChanged",null);
_.m([_.N({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],zK);
_.I(zK,"ytd-channel-tagline-renderer",function(){if(rrF!==void 0)return rrF;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return rrF=g},{mode:1});var BoD;var kd=function(){return _.a.apply(this,arguments)||this};
_.f(kd,_.a);_.S=kd.prototype;_.S.ready=function(){var g=this;_.S3(this.hostElement).querySelector("#form").addEventListener("submit",function(r){g.onSubmit(r)})};
_.S.onDataChanged=function(){var g;((g=this.data)==null?0:g.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.S.onIconButtonKeydown=function(g){g.keyCode===13&&this.iconButton.click()};
_.S.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.S.openOnClickHandler=function(){this.input.focus()};
_.S.onSubmit=function(g){g.preventDefault();return!1};
_.S.submitOnEnterKeyUp=function(g){var r;if(g.keyCode===13&&((r=this.data)==null?0:r.expandedText)){g=this.data.endpoint;r=_.jn.unsafeClone(g);var E;((E=_.n(r==null?void 0:r.commandMetadata,_.dU))==null?0:E.url)?(_.n(r.commandMetadata,_.dU).url=_.KC(_.n(r.commandMetadata,_.dU).url,"query",this.data.expandedText),_.n(r,_.ka)&&(_.n(r,_.ka).query=this.data.expandedText),_.Sh(this.hostElement,"yt-navigate",{endpoint:r,tempData:{disableCache:!0}})):(E=new _.Rj("Error: Trying to navigate to an endpoint without url",
g),_.tn(E))}};
_.S.updateDataExpandedTextFromBinding=function(g){this.set("data.expandedText",g.detail.value)};
_.hx.Object.defineProperties(kd.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.Y("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
kd.prototype.onDataChanged=kd.prototype.onDataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],kd.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.ONv),_.L("design:type",Object)],kd.prototype,"ytdExpandableInputBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],kd.prototype,"data",void 0);_.m([_.zb("#input"),_.L("design:type",Object)],kd.prototype,"input",void 0);_.m([_.zb("#icon-button"),_.L("design:type",HTMLElement)],kd.prototype,"iconButton",void 0);
_.m([_.K(),_.L("design:type",String),_.L("design:paramtypes",[])],kd.prototype,"searchIcon",null);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],kd.prototype,"onDataChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],kd);
var bbF=_.U2()(kd,"ytd-expandable-tab-renderer",function(){if(BoD===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);BoD=g}g=BoD;return g},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var w95;var Hx=function(){var g=_.a.apply(this,arguments)||this;g.avatarSize=80;g.ariaLabel=_.zn("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return g};
_.f(Hx,_.a);Hx.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Hx.prototype.computeHref=function(g){var r;return((r=_.n(g,_.II))==null?0:r.url)?this.componentBehavior.computeHref_(g):null};
Hx.prototype.onTap=function(){var g,r;(g=this.data)==null||!g.editAvatarServiceEndpoint||((r=_.n(this.data.editAvatarServiceEndpoint,_.II))==null?0:r.url)||_.rM().resolve(_.Er).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.m([_.P(_.jP),_.L("design:type",Object)],Hx.prototype,"ironButtonState",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Hx.prototype,"componentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Hx.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],Hx.prototype,"avatarSize",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],Hx.prototype,"ariaLabel",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],Hx);
_.I(Hx,"ytd-channel-avatar-editor",function(){if(w95!==void 0)return w95;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return w95=g},{mode:1});var S$$=_.dG(function(g){var r=g.data;var E=g.noPadding;var B=g.enableBanner;var w=g.cinematicContainerTopbarOffset;var O=g.allowCinematicContainerOverflow;var M=g.displayAsSidebar;g=g.className;_.bQ(function(){r().tagManagerId&&(_.fB(r().tagManagerId,_.Ca("GL")),WVg(r().tagManagerId))},"xVTVTe");
var u=_.QU(Px6,function(){return r().pageHeaderEntityKey});
return _.G("yt-page-header-renderer",{class:_.QY("page-header-renderer-wiz",g)},_.G(_.Af,{data:function(){var l;return((l=u())==null?0:l.header)?u().header:(M==null?0:M())&&r().sidebarContent?r().sidebarContent:r().content}},{pageHeaderViewModel:function(l){return _.G(_.zD6,{data:l.data,
noPadding:E,enableBanner:B,cinematicContainerTopbarOffset:w,allowCinematicContainerOverflow:O,displayAsSidebar:function(){return(M==null?void 0:M())&&r().enableSidebarView}})}}))},"Yi");
S$$.idomCompat=!0;_.BK(S$$,"yt-page-header-renderer",{props:{data:_.cP,noPadding:_.cP,enableBanner:_.cP,cinematicContainerTopbarOffset:_.cP,allowCinematicContainerOverflow:_.cP,displayAsSidebar:_.cP,className:_.cP}});_.BK(_.GvU,"yt-image-banner-view-model",{props:{data:_.cP,isPositionRelative:_.cP}});_.BK(_.FsZ,"yt-tab-group-shape",{props:{shape:_.cP}});var pz=function(){var g=_.a.apply(this,arguments)||this;g.expandableCustomTabRenderable=function(r){return Jbm(r,function(){return void g.onSearchNavigate()})};
g.isRichGrid=!1;g.isConstrainedList=!1;g.richGridMiniMode=!1;g.richGridStyle="RICH_GRID_STYLE_UNKNOWN";g.isRichGridShorts=!1;g.responsiveSizing="COMPACT";g.disableGridStateAware=!1;g.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return g};
_.f(pz,_.a);_.S=pz.prototype;_.S.computeHeaderDisabled=function(g,r){return r||!g||this.tabsHidden};
_.S.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.S.computeIsRichGridShorts=function(g){return g==="RICH_GRID_STYLE_SHORTS_GRID"||g==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.S.computeImageBannerViewModel=function(){var g,r;return _.n((r=_.n((g=this.data)==null?void 0:g.content,_.c94))==null?void 0:r.banner,_.K5U)};
_.S.computeHasCinematicContainer=function(){var g,r;return!((r=_.n((g=this.data)==null?void 0:g.content,_.c94))==null||!r.background)};
_.S.handleHeaderResize=function(){var g=_.S3(this.hostElement).querySelector("#header");g&&_.Sh(g,"iron-resize")};
_.S.handleInsertTabCommand=function(g){var r=_.n(g,rJL);r&&(r.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(E){return E.tabRenderer&&E.tabRenderer.tabIdentifier===r.tabIdentifier})||this.splice("tabs",r.tabIndex||-1,0,r.tab))};
_.S.handleRefreshChannelTabAction=function(g){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===g&&_.Sh(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.S.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.ua(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.S.observerRichGridSlimItemsPerRow=function(){_.ua(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.S.updateCssVars=function(){this.richGridItemsPerRow&&_.ua(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.wM("rich_grid_max_item_width",500))+16)-16+"px"})};
_.S.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.ua(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.S.onDataChanged=function(){this.handleHeaderResize()};
_.S.onWindowResize=function(){this.handleHeaderResize()};
_.S.onFocusedChanged=function(g){(g=_.yP(g))&&g.is==="tp-yt-paper-tab"&&g.hasRipple()&&(g.getRipple().holdDown=!g.pointerDown&&g.focused)};
_.S.updateSelectedFromBinding=function(g){this.ytdTabbedHeaderBehavior.selected=g.detail.value};
_.S.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.hx.Object.defineProperties(pz.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:FVv(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.imageBannerViewModel)==null?void 0:g.style)==="IMAGE_BANNER_STYLE_INSET"}}});
pz.prototype.onDataChanged=pz.prototype.onDataChanged;pz.prototype.updateCssVarsForResponsiveGrid=pz.prototype.updateCssVarsForResponsiveGrid;pz.prototype.updateCssVars=pz.prototype.updateCssVars;pz.prototype.observerRichGridSlimItemsPerRow=pz.prototype.observerRichGridSlimItemsPerRow;pz.prototype.observerRichGridItemsPerRow=pz.prototype.observerRichGridItemsPerRow;_.m([_.P(_.ti),_.L("design:type",Object)],pz.prototype,"ytdGridStateAwareBehavior",void 0);
_.m([_.P(EZ5),_.L("design:type",Object)],pz.prototype,"ytdTabbedHeaderBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],pz.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],pz.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.eb.YtdGuideStateAwareBehavior),_.L("design:type",Object)],pz.prototype,"ytdGuideStateAwareBehavior",void 0);
_.m([_.P(_.Ai),_.L("design:type",Object)],pz.prototype,"ytdReduxBehavior",void 0);_.m([_.zb("#tabs"),_.L("design:type",Object)],pz.prototype,"tabsElement",void 0);_.m([_.K(),_.L("design:type",Array)],pz.prototype,"tabs",void 0);_.m([_.K(),_.L("design:type",Object)],pz.prototype,"expandableCustomTabRenderable",void 0);_.m([_.W("tabs.*"),_.L("design:type",Object),_.L("design:paramtypes",[])],pz.prototype,"tabGroupShape",null);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],pz.prototype,"isRichGrid",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],pz.prototype,"isConstrainedList",void 0);_.m([_.K({reflectToAttribute:!0,selector:_.Jj}),_.L("design:type",Object)],pz.prototype,"richGridMiniMode",void 0);_.m([_.K({selector:function(g){return g.ui.richGridStyle}}),
_.L("design:type",Object)],pz.prototype,"richGridStyle",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.L("design:type",Object)],pz.prototype,"isRichGridShorts",void 0);_.m([_.K({selector:_.Ps}),_.L("design:type",Number)],pz.prototype,"richGridItemsPerRow",void 0);_.m([_.K({selector:function(g){return g.ui.richGridContainerWidth}}),
_.L("design:type",Number)],pz.prototype,"richGridContainerWidth",void 0);_.m([_.K({selector:_.DCY}),_.L("design:type",Number)],pz.prototype,"richGridSlimItemsPerRow",void 0);_.m([_.K(),_.L("design:type",Object)],pz.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],pz.prototype,"responsiveSizing",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],pz.prototype,"disableGridStateAware",void 0);
_.m([_.K({computed:"computeImageBannerViewModel(data)"}),_.L("design:type",Object)],pz.prototype,"imageBannerViewModel",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.L("design:type",Boolean)],pz.prototype,"hasCinematicContainer",void 0);_.m([_.K({selector:_.Lr4,reflectToAttribute:!0}),_.L("design:type",Boolean)],pz.prototype,"guideIsVisibleButNotPersistent",void 0);
_.m([_.K({reflectToAttribute:!0}),_.W("imageBannerViewModel"),_.L("design:type",Object),_.L("design:paramtypes",[])],pz.prototype,"hasBanner",null);_.m([_.K({reflectToAttribute:!0}),_.W("imageBannerViewModel"),_.L("design:type",Object),_.L("design:paramtypes",[])],pz.prototype,"hasInsetBanner",null);_.m([_.K({computed:"computeTabsHidden(tabs)",value:!0}),_.L("design:type",Boolean)],pz.prototype,"tabsHidden",void 0);
_.m([_.Gb("richGridItemsPerRow","isRichGrid"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],pz.prototype,"observerRichGridItemsPerRow",null);_.m([_.Gb("richGridSlimItemsPerRow"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],pz.prototype,"observerRichGridSlimItemsPerRow",null);
_.m([_.Gb("richGridItemsPerRow","richGridMiniMode"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],pz.prototype,"updateCssVars",null);_.m([_.Gb("richGridContainerWidth"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],pz.prototype,"updateCssVarsForResponsiveGrid",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],pz.prototype,"onDataChanged",null);
_.m([_.N({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],pz);
_.I(pz,"ytd-tabbed-page-header",function(){if(yJ6!==void 0)return yJ6;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return yJ6=g},{mode:1});var OJt;var Yd=function(){return _.a.apply(this,arguments)||this};
_.f(Yd,_.a);Yd.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.ua(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.hx.Object.defineProperties(Yd.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var g,r;return this.componentBehavior.computeIcon_(((r=_.n((g=this.data)==null?void 0:g.badge,_.joD))==null?void 0:r.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var g,r;return(r=_.n((g=this.data)==null?void 0:g.badge,_.joD))==null?void 0:r.label}}});
Yd.prototype.observerRichGridItemsPerRow=Yd.prototype.observerRichGridItemsPerRow;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Yd.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Yd.prototype,"componentBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],Yd.prototype,"ytdReduxBehavior",void 0);_.m([_.K({reflectToAttribute:!0,selector:_.Jj}),_.L("design:type",Boolean)],Yd.prototype,"richGridMiniMode",void 0);
_.m([_.K({selector:_.Ps}),_.L("design:type",Number)],Yd.prototype,"richGridItemsPerRow",void 0);_.m([_.K(),_.L("design:type",Object)],Yd.prototype,"data",void 0);_.m([_.Gb("richGridItemsPerRow"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Yd.prototype,"observerRichGridItemsPerRow",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],Yd.prototype,"badgeIconName",null);
_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],Yd.prototype,"badgeLabel",null);_.m([_.N({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],Yd);
_.I(Yd,"ytd-member-hub-profile-renderer",function(){if(OJt!==void 0)return OJt;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return OJt=g},{mode:1});var UwL;var Rt=function(){return _.a.apply(this,arguments)||this};
_.f(Rt,_.a);Rt.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Rt.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Rt.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Rt.prototype,"data",void 0);_.m([_.N({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],Rt);
_.I(Rt,"ytd-settings-sidebar-renderer",function(){if(UwL!==void 0)return UwL;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return UwL=g},{mode:1});var Mqz;var nz=function(){var g=_.a.apply(this,arguments)||this;g.expandableCustomTabRenderable=function(r){return Jbm(r,function(){return void g.onSearchNavigate()})};
return g};
_.f(nz,_.a);nz.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
nz.prototype.onSearchNavigate=function(){this.selected=void 0};
nz.prototype.onTabsChange=function(){var g,r=(g=this.tabs)==null?void 0:g.findIndex(function(E){var B;return E==null?void 0:(B=E.tabRenderer)==null?void 0:B.selected});
r!==void 0&&(this.selected=r)};
nz.prototype.onTabsActive=function(g){if(this.tabs!==void 0){var r,E;(g=(r=this.tabs[g.detail.selected])==null?void 0:(E=r.tabRenderer)==null?void 0:E.endpoint)&&_.Sh(this.hostElement,"yt-navigate",{endpoint:g})}};
_.hx.Object.defineProperties(nz.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:FVv(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
nz.prototype.onTabsChange=nz.prototype.onTabsChange;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],nz.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.ti),_.L("design:type",Object)],nz.prototype,"ytdGridStateAwareBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],nz.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.eb.YtdGuideStateAwareBehavior),_.L("design:type",Object)],nz.prototype,"ytdGuideStateAwareBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],nz.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Array)],nz.prototype,"tabs",void 0);_.m([_.K(),_.L("design:type",Number)],nz.prototype,"selected",void 0);_.m([_.W("tabs.*"),_.L("design:type",Object),_.L("design:paramtypes",[])],nz.prototype,"tabGroupShape",null);_.m([_.K(),_.L("design:type",Object)],nz.prototype,"expandableCustomTabRenderable",void 0);
_.m([_.W("tabs"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],nz.prototype,"tabsEnabled",null);_.m([_.Yk("tabs"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],nz.prototype,"onTabsChange",null);_.m([_.N({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],nz);
_.I(nz,"ytd-topic-channel-details-renderer",function(){if(Mqz!==void 0)return Mqz;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Mqz=g},{mode:1});var q$t;var sj=function(){var g=_.a.apply(this,arguments)||this;g.disableGridStateAware=!1;return g};
_.f(sj,_.a);sj.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]]"}}}}}};
sj.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
sj.prototype.updateCssVars=function(){_.ua(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.wM("rich_grid_max_item_width",500))+16)-16+"px"})};
sj.prototype.updateCssVars=sj.prototype.updateCssVars;sj.prototype.activeChanged=sj.prototype.activeChanged;_.m([_.P(_.eb.YtdGuideStateAwareBehavior),_.L("design:type",Object)],sj.prototype,"ytdGuideStateAwareBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],sj.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],sj.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],sj.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],sj.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Array)],sj.prototype,"tabs",void 0);_.m([_.K(),_.L("design:type",Boolean)],sj.prototype,"active",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],sj.prototype,"disableGridStateAware",void 0);
_.m([_.K({selector:_.Ps}),_.L("design:type",Number)],sj.prototype,"richGridItemsPerRow",void 0);_.m([_.K({selector:_.Jj}),_.L("design:type",Boolean)],sj.prototype,"richGridMiniMode",void 0);_.m([_.zb("ytd-carousel-item-renderer"),_.L("design:type",Object)],sj.prototype,"carousel",void 0);_.m([_.Gb("active"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],sj.prototype,"activeChanged",null);
_.m([_.Gb("richGridItemsPerRow","richGridMiniMode"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],sj.prototype,"updateCssVars",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],sj);
_.I(sj,"ytd-carousel-header-renderer",function(){if(q$t!==void 0)return q$t;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return q$t=g},{mode:1});var uDm;var lOz=_.me(["https://www.google-analytics.com/analytics.js"]),fz=function(){var g=_.a.apply(this,arguments)||this;g.scriptAnalyticsAdded=!1;return g};
_.f(fz,_.a);fz.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var g,r=(g=this.data)==null?void 0:g.tagManagerId;r&&(_.fB(r,_.Ca("GL")),WVg(r))};
fz.prototype.sendGoogleAnalyticsPageview=function(g){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var E=_.fI.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(E)};
var r=window.ga;r("set","page",window.location.pathname);r.l=+new Date;r("set","forceSSL",!0);r("create",g,"'auto'");r("send","pageview")};
fz.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var g=_.HT("SCRIPT");g.name="ga-analytics";var r=_.wF(lOz);_.mg(g,r);g.async=!0;_.S3(this.hostElement).appendChild(g)};
fz.prototype.dataChanged=fz.prototype.dataChanged;_.m([_.K(),_.L("design:type",Object)],fz.prototype,"data",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],fz.prototype,"dataChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],fz);
_.I(fz,"ytd-channel-metadata-renderer",function(){if(uDm!==void 0)return uDm;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return uDm=g},{mode:1});var Dwv;var oeD;var $d=function(){return _.a.apply(this,arguments)||this};
_.f($d,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],$d.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],$d.prototype,"data",void 0);_.m([_.N({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],$d);
_.I($d,"ytd-sub-feed-option-renderer",function(){if(oeD!==void 0)return oeD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return oeD=g},{mode:1});var GdF;var jo=function(){return _.a.apply(this,arguments)||this};
_.f(jo,_.a);jo.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],jo.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],jo.prototype,"ytRendererStamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],jo.prototype,"data",void 0);_.m([_.N({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],jo);
_.I(jo,"ytd-sub-feed-selector-renderer",function(){if(GdF!==void 0)return GdF;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return GdF=g},{mode:1});var A4=function(){return _.a.apply(this,arguments)||this};
_.f(A4,_.a);
A4.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}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],A4.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],A4.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],A4.prototype,"data",void 0);_.m([_.N({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],A4);
_.I(A4,"ytd-browse-feed-actions-renderer",function(){if(Dwv!==void 0)return Dwv;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return Dwv=g},{mode:1});var Qs6;var zmg;var bk=function(){return _.a.apply(this,arguments)||this};
_.f(bk,_.a);bk.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],bk.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],bk.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],bk.prototype,"data",void 0);_.m([_.N({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],bk);
_.I(bk,"ytd-mini-channel-renderer",function(){if(zmg!==void 0)return zmg;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return zmg=g},{mode:1});var kdv;var J4=function(){return _.a.apply(this,arguments)||this};
_.f(J4,_.a);J4.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],J4.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],J4.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],J4.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],J4);
_.I(J4,"ytd-vertical-channel-section-renderer",function(){if(kdv!==void 0)return kdv;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return kdv=g},{mode:1});var Px=function(){return _.a.apply(this,arguments)||this};
_.f(Px,_.a);Px.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Px.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Px.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Px.prototype,"data",void 0);_.m([_.N({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Px);
_.I(Px,"ytd-browse-secondary-contents-renderer",function(){if(Qs6!==void 0)return Qs6;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);
return Qs6=g},{mode:1});var HJF;var t4=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};g.notActive=!1;g.isConstrainedList=!1;return g};
_.f(t4,_.a);_.S=t4.prototype;
_.S.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"},matcher:function(g){var r;return(g==null?void 0:(r=g.webComponentHint)==null?void 0:r.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":
"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.S.getPath=function(g,r){var E="data.tabs.#"+r+".";g.tabs[r].tabRenderer?E+="tabRenderer.":g.tabs[r].expandableTabRenderer&&(E+="expandableTabRenderer.");return E+"content.sectionListRenderer"};
_.S.computeDisplayedContent=function(g){this.unlinkPaths("content");if(g&&g.tabs)for(var r=g.tabs.length,E=0;E<r;E++){var B=g.tabs[E].tabRenderer||g.tabs[E].expandableTabRenderer;if(B.selected&&B.content)return this.linkPaths("content",this.getPath(g,E)),B.content}return null};
_.S.computeHasSecondaryColumnData=function(g){return!!g&&!!g.secondaryContents};
_.S.onRetrieveLocation=function(g,r){r.locationRetrieved(r.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);g.stopPropagation()};
_.S.onYtServiceRequestSent=function(g,r){_.Y("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(r)};
_.S.onYtServiceRequestCompleted=function(g,r){_.Y("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(r)};
_.S.onReplaceFeedContentAction=function(g){if(!_.Y("replace_feed_content_action_killswitch")&&!this.notActive){var r;(g=(r=_.n(g,cbF))==null?void 0:r.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(g)}};
_.S.handleServiceRequestActions=function(g){if(g=g.actions){g=_.U(g);for(var r=g.next();!r.done;r=g.next()){r=r.value;var E=void 0;((E=_.n(r,cbF))==null?0:E.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.n(r,cbF).items)}}};
t4.prototype.onYtServiceRequestCompleted=t4.prototype.onYtServiceRequestCompleted;t4.prototype.onYtServiceRequestSent=t4.prototype.onYtServiceRequestSent;t4.prototype.onRetrieveLocation=t4.prototype.onRetrieveLocation;_.m([_.P(_.ti),_.L("design:type",Object)],t4.prototype,"ytdGridStateAwareBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],t4.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],t4.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],t4.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],t4.prototype,"data",void 0);_.m([_.K({computed:"computeDisplayedContent(data)"}),_.L("design:type",Object)],t4.prototype,"content",void 0);
_.m([_.K({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],t4.prototype,"hasSecondaryColumnData",void 0);_.m([_.K({value:function(){return window.outerHeight>1024?3:2}}),
_.L("design:type",Number)],t4.prototype,"initialCount",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],t4.prototype,"pageSubtype",void 0);_.m([_.zb("ytd-section-list-renderer"),_.L("design:type",Object)],t4.prototype,"listRenderer",void 0);_.m([_.K(),_.L("design:type",Object)],t4.prototype,"notActive",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],t4.prototype,"isConstrainedList",void 0);
_.m([_.K(),_.L("design:type",String)],t4.prototype,"responsiveSizing",void 0);_.m([_.ob("yt-retrieve-location"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],t4.prototype,"onRetrieveLocation",null);_.m([_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.XA]),_.L("design:returntype")],t4.prototype,"onYtServiceRequestSent",null);
_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.hR]),_.L("design:returntype")],t4.prototype,"onYtServiceRequestCompleted",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],t4);
_.I(t4,"ytd-two-column-browse-results-renderer",function(){if(HJF!==void 0)return HJF;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return HJF=g},{mode:2});var p9m;var Y$A;var Fs=function(){var g=_.a.apply(this,arguments)||this;g.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"]);g.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"]);g.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return g};
_.f(Fs,_.a);_.S=Fs.prototype;_.S.attached=function(){this.requestElementsPerRow()};
_.S.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[dismissBoundButtonTap_]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[acceptBoundButtonTap_]]"}}}}}};
_.S.onUpdateElementsPerRowAction=function(g){g&&this.elementsPerRow!==g&&(this.elementsPerRow=g)};
_.S.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.S.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.S.computeAlertStyle_=function(g){return g};
_.S.observerElementsPerRow=function(){this.elementsPerRow&&_.ua(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.S.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.S.requestElementsPerRow=function(){_.Sh(this.hostElement,"yt-request-elements-per-row")};
Fs.prototype.onIsVisibleChanged_=Fs.prototype.onIsVisibleChanged_;Fs.prototype.observerElementsPerRow=Fs.prototype.observerElementsPerRow;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Fs.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Fs.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Fs.prototype,"actionHandlerBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],Fs.prototype,"data",void 0);_.m([_.K({value:6,reflectToAttribute:!0}),_.L("design:type",Number)],Fs.prototype,"elementsPerRow",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],Fs.prototype,"wrapButtons",void 0);_.m([_.K({value:_.Ca("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.L("design:type",Boolean)],Fs.prototype,"isMusic",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.L("design:type",String)],Fs.prototype,"alertStyle",void 0);_.m([_.K({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.L("design:type",Function)],Fs.prototype,"dismissBoundButtonTap_",void 0);_.m([_.K({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.L("design:type",Function)],Fs.prototype,"acceptBoundButtonTap_",void 0);_.m([_.Gb("elementsPerRow"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Fs.prototype,"observerElementsPerRow",null);_.m([_.Gb("data.isVisible"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Fs.prototype,"onIsVisibleChanged_",null);_.m([_.e3({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],Fs);
_.I(Fs,"yt-alert-with-actions-renderer",function(){if(Y$A===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;p9m===void 0&&(p9m=document.createElement("template"));var B=p9m;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Y$A=g}g=Y$A;return g},{mode:2});_.BK(_.dG(function(g){function r(H){var R={};return _.G(_.hf,{text:H,className:_.QY("ytPersonalGreetingViewModelHeadline",(R.ytPersonalGreetingViewModelHeadlineSmall=function(){return u()===48},R))})}
function E(H,R){return _.G("span",{el:H,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},r(R))}
var B=_.T$(_.xo(function(){var H;return(H=g.data())==null?void 0:H.rendererContext},void 0,void 0,void 0,!0)),w=_.VI("span"),O=_.VI("span"),M=function(){return g.data().canvasPromoData},u=function(){var H;
return(H=g.data().bannerHeight)!=null?H:56},l=_.EXY(B,{throttleMs:100}),Q=_.EXY(w,{throttleMs:100}),z=_.EXY(O,{throttleMs:100}),k=function(){return Q.width()-l.width()>1};
return _.G("yt-personal-greeting-view-model",{el:B,"aria-hidden":k,class:_.QY(g.className,"ytPersonalGreetingViewModelHost"),style:_.Rl({height:(0,_.nv)(function(){return k()?0:u()})})},_.G(_.p,{cond:function(){return g.data().avatar&&!(z.width()+(g.data().avatar?48:0)-l.width()>1)},
then:function(){return _.G(_.Af,{data:function(){return g.data().avatar}},{decoratedAvatarViewModel:function(H){return _.G(_.fO,{data:H.data,
className:_.QY("ytPersonalGreetingViewModelAvatar")})}})}}),_.G("h1",null,r(function(){var H;
return(M==null?void 0:(H=M())==null?void 0:H.headline)||(z.width()+(g.data().avatar?48:0)-l.width()>1?g.data().shorterGreeting:g.data().greeting)})),E(O,function(){return g.data().greeting}),E(w,function(){return g.data().shorterGreeting}))},"Zi"),"yt-personal-greeting-view-model",{props:{data:_.cP,
className:_.cP}});var eo=function(){var g=_.a.apply(this,arguments)||this;g.hidden=!1;g.isConstrainedList=!1;g.darkerDarkTheme=_.Y("web_darker_dark_theme");g.responsiveSizing="COMPACT";g.attachedPlayers=_.Y("kevlar_channel_trailer_multi_attach")?[]:void 0;g.player=null;g.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return g};
_.f(eo,_.a);_.S=eo.prototype;
_.S.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},
interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},
"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.S.created=function(){var g=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){g.disposeMastheadAd()}]};
_.S.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new SF4(this.refresh,this.contents))};
_.S.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.S.activeChanged=function(){var g=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=g)};
_.S.tabsChanged=function(){var g=this,r,E;if(this.pageSubtype==="channels"||_.Y("kevlar_tab_gestures_for_tabbed_header_data")&&((r=this.data)==null?0:(E=r.header)==null?0:E.carouselHeaderRenderer))this.tabGestures=new tP(this.contents,this.contents,this.hostElement,this.header,function(M){g.ytdReduxBehavior.dispatch(M)});
var B,w,O;r=(B=this.data)==null?void 0:(w=B.contents)==null?void 0:(O=w.twoColumnBrowseResultsRenderer)==null?void 0:O.tabs;this.tabGestures&&this.tabGestures.tabsChanged(r)};
_.S.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.S.engagementPanelsChanged=function(){var g=_.rM().resolve(_.kn);if(g){if(this.engagementPanels)for(var r=_.U(this.engagementPanels),E=r.next();!E.done;E=r.next()){var B=void 0;(E=(B=E.value.identifier)==null?void 0:B.tag)&&g.panelMap.delete(E)}this.engagementPanels=[];var w;r=_.U(((w=this.data)==null?void 0:w.panels)||[]);for(w=r.next();!w.done;w=r.next()){w=_.n(w.value,_.Kk8);var O=E=void 0,M=void 0,u=void 0;if(B=((E=w)==null?void 0:E.targetId)||((O=w)==null?void 0:O.panelIdentifier)||((M=w)==
null?void 0:(u=M.identifier)==null?void 0:u.tag))O=E=void 0,(O=(E=g).registerPanelContent)==null||O.call(E,B,{engagementPanelSectionListRenderer:w}),this.engagementPanels.push(w)}}};
_.S.onStampFinished=function(){var g=this;_.Lk(this,function(){if(g.tabGestures){var r=g.tabGestures;if(r.scrollPositionNeedsUpdate){var E=_.rM().resolve(_.gM(_.vK)),B;if((B=r.selectedTab)!=null&&B.title&&E&&(B=E.getCurrentPage())){if(r.scrollPositionForTabs.has(r.selectedTab.title)){var w,O;E=(O=(w=E.getCurrentPage())==null?void 0:w.clientHeight)!=null?O:0;w=r.scrollPositionForTabs.get(r.selectedTab.title);B.setScrollTop(w);E>w+100&&(r.scrollPositionNeedsUpdate=!1)}else B.setScrollTop(Math.min(r.lastVisitedTabScrollPosition!==
void 0?r.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,r.tabsStartAtInPx)),r.scrollPositionNeedsUpdate=!1;r.ytdReduxDispatch(eeA(!1))}}}})};
_.S.loadPage_=function(g){this.initCsi();g&&(this.data=g);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.S.getTitle=function(g){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",g))return this.get("microformat.microformatDataRenderer.title",g);if(this.get("header.feedTabbedHeaderRenderer.title",g))return _.Vp(this.get("header.feedTabbedHeaderRenderer.title",g));if(this.get("header.interactiveTabbedHeaderRenderer.title",g))return this.get("header.interactiveTabbedHeaderRenderer.title",g);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
g))return _.Vp(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",g));var r,E;return _.Y("enable_page_header_page_title")&&(g==null?0:(r=g.header)==null?0:(E=r.pageHeaderRenderer)==null?0:E.pageTitle)?g.header.pageHeaderRenderer.pageTitle:""};
_.S.updateTitle=function(g){_.Sh(this.hostElement,"yt-update-title",this.getTitle(g))};
_.S.initCsi=function(){_.jj(this.pageSubtype||"browse",["ol","cpt"])};
_.S.getPlayer=function(){if(_.Y("kevlar_channel_trailer_multi_attach")){for(var g=_.U(this.attachedPlayers),r=g.next();!r.done;r=g.next())if(r=r.value,r.isConnected||_.Nd(this.hostElement,r))return r;return null}return this.player};
_.S.getPlayerContainer=function(){return null};
_.S.onPlayerAttached=function(g,r){_.Y("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(r):this.player=r};
_.S.onPlayerDetached=function(g,r){_.Y("kevlar_channel_trailer_multi_attach")?(g=this.attachedPlayers.indexOf(r),g<0||this.attachedPlayers.splice(g,1)):this.player=null};
_.S.getServiceTrackingParams=function(){var g,r;return((g=this.data)==null?void 0:(r=g.responseContext)==null?void 0:r.serviceTrackingParams)||[]};
_.S.setMastheadAd=function(g){g&&g.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=g&&g.mastheadAd};
_.S.dataChanged=function(){var g=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.kc$();_.Lk(this,function(){_.US(g.hostElement,"ytd-update-grid-state-action")})};
_.S.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.S.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var g=this.data.alerts;return g&&g.find(function(r){return!!r.alertWithActionsRenderer})}};
_.S.computeGreetingData=function(){if(this.data&&this.data.alerts){var g=this.data.alerts;return g&&g.find(function(r){return!!r.personalGreetingViewModel})}};
_.S.computeHasMemberHubProfileRenderer=function(g){var r;return!!(g==null?0:(r=g.header)==null?0:r.memberHubProfileRenderer)};
_.S.handleAlertCommand=function(g){this.get("alertCommand.alert.alertWithActionsRenderer",g)&&(g=_.n(g,ibv),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",g.alert))};
_.S.handleYtPlaylistDeletionRedirect=function(g){g=this.get("playlistDeletionRedirectCommand.redirectEndpoint",g);_.Sh(this.hostElement,"yt-navigate",{endpoint:g})};
_.S.computeFluidWidth=function(g,r,E){if(r==="mini_app"||E)return!0;var B,w,O;g=g==null?void 0:(B=g.contents)==null?void 0:(w=B.twoColumnBrowseResultsRenderer)==null?void 0:(O=w.tabs)==null?void 0:O.find(function(l){var Q;return l==null?void 0:(Q=l.tabRenderer)==null?void 0:Q.selected});
if(!g)return!1;var M,u;return!!((M=g.tabRenderer)==null?0:(u=M.content)==null?0:u.richGridRenderer)&&!["channel","channels","playables"].includes(r)};
_.S.computeHeaderFluidWidth=function(g){return g==="hashtag-landing-page"};
_.S.computeHasSidebar=function(g){var r;return!!(g.sidebar||((r=g.header)==null?0:r.playlistHeaderRenderer))};
_.S.computeHasPageHeaderSidebar=function(g){var r,E;return!!((r=g.header)==null?0:(E=r.pageHeaderRenderer)==null?0:E.enableSidebarView)};
_.S.computeUseUnifiedShowPageLayout=function(g){if(!g||this.pageSubtype!=="show"||!g.sidebar||!g.sidebar.playlistSidebarRenderer)return!1;g=g.sidebar.playlistSidebarRenderer;if(!g.items)return!1;for(var r=0;r<g.items.length;r++)if(_.n(g.items[r],JP)){var E=void 0;return((E=_.n(g.items[r],JP))==null?void 0:E.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.S.computeIsConstrainedList=function(g){return _.Y("web_enable_constrained_list_subscriptions_channels")&&g==="subscriptions-channels"};
_.S.computeResponsiveSizing=function(g){return g==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.hx.Object.defineProperties(eo.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var g,r;return((g=this.data)==null?0:(r=g.header)==null?0:r.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var g,r;if(!((g=this.data)==null?0:(r=g.sidebar)==null?0:r.playlistSidebarRenderer))return!1;var E;return(E=this.data)!=null&&E.header?!1:!0}}});
_.hx.Object.defineProperties(eo,{template:{configurable:!0,enumerable:!0,get:function(){if(M46===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);M46=g}g=M46;return g}}});
eo.prototype.dataChanged=eo.prototype.dataChanged;eo.prototype.onPlayerDetached=eo.prototype.onPlayerDetached;eo.prototype.onPlayerAttached=eo.prototype.onPlayerAttached;eo.prototype.onStampFinished=eo.prototype.onStampFinished;eo.prototype.engagementPanelsChanged=eo.prototype.engagementPanelsChanged;eo.prototype.scrollAtTopChanged=eo.prototype.scrollAtTopChanged;eo.prototype.tabsChanged=eo.prototype.tabsChanged;eo.prototype.activeChanged=eo.prototype.activeChanged;
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],eo.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.cY),_.L("design:type",Object)],eo.prototype,"ytdOpenPopupBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],eo.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],eo.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.AP.YtPageBehavior),_.L("design:type",Object)],eo.prototype,"ytPageBehavior",void 0);
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],eo.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.eb.YtdGuideStateAwareBehavior),_.L("design:type",Object)],eo.prototype,"ytdGuideStateAwareBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],eo.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],eo.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],eo.prototype,"hidden",void 0);
_.m([_.K(),_.L("design:type",Object)],eo.prototype,"mastheadAdData",void 0);_.m([_.K({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.L("design:type",Object)],eo.prototype,"alertBannerData",void 0);_.m([_.K({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.L("design:type",Object)],eo.prototype,"greetingData",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],eo.prototype,"pageSubtype",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.L("design:type",Boolean)],eo.prototype,"hasMemberHubProfileRenderer",void 0);_.m([_.K({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],eo.prototype,"hasSidebar",void 0);_.m([_.K({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],eo.prototype,"hasPageHeaderSidebar",void 0);
_.m([_.K({reflectToAttribute:!0,value:!0}),_.L("design:type",Boolean)],eo.prototype,"roundedContainer",void 0);_.m([_.K({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],eo.prototype,"useUnifiedShowPageLayout",void 0);_.m([_.K({computed:"computeIsConstrainedList(pageSubtype)"}),_.L("design:type",Object)],eo.prototype,"isConstrainedList",void 0);
_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],eo.prototype,"usePlaylistHeaderRenderer",null);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],eo.prototype,"useOldPlaylistSidebarRenderer",null);_.m([_.K({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.L("design:type",Boolean)],eo.prototype,"fluidWidth",void 0);_.m([_.K({selector:function(g){return g.ui.scrollAtTop}}),
_.L("design:type",Boolean)],eo.prototype,"scrollAtTop",void 0);_.m([_.K({selector:_.VWm}),_.L("design:type",Boolean)],eo.prototype,"tabGesturesIsActive",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],eo.prototype,"darkerDarkTheme",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.L("design:type",Boolean)],eo.prototype,"disableHeaderFluidWidth",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.L("design:type",String)],eo.prototype,"responsiveSizing",void 0);_.m([_.zb("ytd-two-column-browse-results-renderer"),_.L("design:type",HTMLElement)],eo.prototype,"contents",void 0);_.m([_.zb("#header"),_.L("design:type",HTMLElement)],eo.prototype,"header",void 0);_.m([_.zb("ytd-refresh"),_.L("design:type",Object)],eo.prototype,"refresh",void 0);
_.m([_.Gb("active"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],eo.prototype,"activeChanged",null);_.m([_.Gb("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],eo.prototype,"tabsChanged",null);_.m([_.Gb("scrollAtTop"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],eo.prototype,"scrollAtTopChanged",null);
_.m([_.K(),_.L("design:type",Object)],eo.prototype,"engagementPanels",void 0);_.m([_.Gb("data.panels"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],eo.prototype,"engagementPanelsChanged",null);_.m([_.ob("yt-rendererstamper-finished"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],eo.prototype,"onStampFinished",null);
_.m([_.ob("yt-player-attached"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Element]),_.L("design:returntype")],eo.prototype,"onPlayerAttached",null);_.m([_.ob("yt-player-detached"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Element]),_.L("design:returntype")],eo.prototype,"onPlayerDetached",null);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],eo.prototype,"dataChanged",null);
_.m([_.N({is:"ytd-browse"})],eo);_.rV.registerService(_.ESl,eo);
_.Fr();
}catch(e){_._DumpException(e)}
try{
_.ty("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 gP=function(g){if(!g)return"browse";var r=g.page,E=g.url,B,w,O,M=(B=g.response)==null?void 0:(w=B.responseContext)==null?void 0:(O=w.webResponseContextExtensionData)==null?void 0:O.pageTheme;if(M)r=M.toLowerCase().replace(/_/g,"-");else if(r!=="watch"&&r!=="learning_journey_watch"){var u,l;if((r==="browse"||r==="settings")&&((u=g.response)==null?0:(l=u.sidebar)==null?0:l.settingsSidebarRenderer))r="WEB_PAGE_TYPE_SETTINGS";else{var Q,z;r==="browse"&&((Q=g.response)==null?0:(z=Q.metadata)==null?
0:z.channelMetadataRenderer)?r="channel":E&&(r=_.QP(E)||r)}}return r},Se4=function(){var g=_.XS("yt.aba.att");
return g?g:_.yE.instance!==void 0?_.yE.instance.lRh.bind(_.yE.instance):null},O95=function(g,r){var E;
return _.q(function(B){return(E=Se4())?B.return(E(g,r,6E4)):B.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},U_m=function(g,r,E,B,w){r=r===void 0?[]:r;
w=w?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:w}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.gz(g),dialogMessages:r.map(function(O){return _.gz(O)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.gz(E),serviceEndpoint:w}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.gz(B)}}}}}},MEM=function(g){var r=!!_.Kn().queueProxy;
var E,B,w;g=g==null?void 0:(E=g.response)==null?void 0:(B=E.currentVideoEndpoint)==null?void 0:(w=B.watchEndpoint)==null?void 0:w.playlistId;return!(!r&&!g)},qeM=function(g,r){var E=_.Di();
if(MEM(g))return E.playlistWatchPageActivation=!0;switch(gP(r)){case "yts-products":return E.productDetailsPageActivation=!0;case "mini_app":return E.miniAppPageActivation=!0;case "playables":return E.playablesDestPageActivation=!0;default:return!1}},u66=function(g,r,E){for(var B=typeof g==="string"?g.split(""):g,w=g.length-1;w>=0;--w)w in B&&r.call(E,B[w],w,g)},lH$=function(g,r){r=_.kSl(g,r);
r>=0&&_.Vl(g,r)},D_M=function(g){return Array.prototype.concat.apply([],arguments)},oRD=function(g){var r=0;
r=r===void 0?0:r;if(!_.kt(g))throw _.om("uint64");var E=typeof g;switch(r){case 512:switch(E){case "string":return _.uZS(g);case "bigint":return String((0,_.KD)(64,g));default:return _.MUo(g)}case 1024:switch(E){case "string":return _.lIS(g);case "bigint":return _.hD((0,_.KD)(64,g));default:return _.qwL(g)}case 0:switch(E){case "string":return _.uZS(g);case "bigint":return _.hD((0,_.KD)(64,g));default:return _.UzB(g)}default:return _.MM(r,"Unknown format requested type for int64")}},Gj4=function(g){g!=
null&&(g=g.JSC$6907_value_||"",g=typeof g==="string"?g:new Uint8Array(g));
return g},QT$=function(g){for(var r=_.fI.apply(1,arguments),E=g[0],B=0;B<g.length-1;B++)E+=String(r[B]),E+=g[B+1];
r=document.implementation.createHTMLDocument("");B=r.createElement("style");r.head.appendChild(B);r=B.sheet;r.insertRule(E,0);if(r.cssRules.length===1&&(E=r.cssRules[0],E instanceof CSSStyleRule))return new _.Vv(E.cssText.replace(/</g,"\\3C "))},zIM=function(g,r){if(/-[a-z]/.test(r))return null;
if(_.h4T&&g.dataset){if(_.MVY()&&!(r in g.dataset))return null;g=g.dataset[r];return g===void 0?null:g}return g.getAttribute("data-"+_.Gr(r))},H9A=function(){var g=kjz;
_.XS("yt.ads.biscotti.getId_")||_.vN("yt.ads.biscotti.getId_",g)},p8M=function(g){_.vN("yt.ads.biscotti.lastId_",g)},RIz=function(){var g={};
for(_.jg=new Ye8(g.handleError===void 0?_.FR:g.handleError,g.logEvent===void 0?_.Jn:g.logEvent);_.As.length>0;)switch(g=_.As.shift(),g.type){case "ERROR":_.jg.logError(g.payload);break;case "EVENT":_.jg.logEvent(g.eventType,g.payload)}},nRD=function(g,r,E){return _.xuo(function(B){return E?B.userIdentifier!==void 0&&!g.includes(B.userIdentifier)&&E.includes(B.publicName):B.userIdentifier!==void 0&&!g.includes(B.userIdentifier)},r)},sTL=function(g){var r,E;
return _.q(function(B){if(B.nextAddress==1)return r=_.p3("YtIdbMeta hasAnyMeta other"),_.D(B,_.xuo(function(w){return w.userIdentifier!==void 0&&w.userIdentifier!==r},g),2);
E=B.yieldResult;return B.return(E.length>0)})},$_z=function(g,r){fHL||(fHL=_.F6.addLowPriorityJob(function(){var E,B,w,O,M;
return _.q(function(u){switch(u.nextAddress){case 1:return _.D(u,_.dM(),2);case 2:E=u.yieldResult;if(!E)return u.return();B=!0;_.qN(u,3);return _.D(u,nRD(g,E,r),5);case 5:w=u.yieldResult;if(!w.length){B=!1;u.jumpTo(6);break}O=w[0];return _.D(u,_.Ij(O.actualName),7);case 7:return _.D(u,_.L3(O.actualName,E),6);case 6:_.Ne(u,4);break;case 3:M=_.G2(u),_.bc(M),B=!1;case 4:_.F6.cancelJob(fHL),fHL=0,B&&$_z(g,r),_.Q3(u)}})}))},jT6=function(){var g;
return _.q(function(r){return r.nextAddress==1?_.D(r,_.dM(),2):(g=r.yieldResult)?r.return(sTL(g)):r.return(!1)})},Ap5=function(g){var r=100;
r=r===void 0?500:r;var E,B,w,O,M,u;return _.q(function(l){return l.nextAddress==1?(E=_.Ca("INNERTUBE_CONTEXT_CLIENT_NAME",0),B=[E,(0,_.g2)()-2592E6],w=[E,(0,_.g2)()],O=IDBKeyRange.bound(B,w),_.D(l,_.uTt(g),2)):l.nextAddress!=3?(M=l.yieldResult,u=[],_.D(l,_.cN(M,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(Q){u.length=0;return _.r2(Q.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:O,direction:"prev"},function(z){if(z.getValue()&&u.length<r)return u.push(z.getValue()),
z.delete().then(function(){return z.continue()})})}),3)):l.return(u)})},b9t=function(){var g;
return _.q(function(r){if(r.nextAddress==1)return _.D(r,_.dM(),2);g=r.yieldResult;if(!g||!_.YA()&&!_.Y("nwl_init_require_datasync_id_killswitch")||!_.JOD())return r.jumpTo(0);_.tNl=!0;_.PFY.isNwlInitialized=_.tNl;return _.D(r,_.oKz().awaitInitialization(),0)})},rP=function(g,r){_.h8P[g]=!0;
var E=_.Bf();E&&E.publish.apply(E,arguments);_.h8P[g]=!1},PdF=function(){if(_.$rP()&&!Jpv){var g=function(E){E=E.data;
if(E.op==="serializedGelBatch"){var B=_.ZRB.get(E.key);B&&(_.vkD(E.serializedBatch,B.client,B.resolve,B.networklessOptions,B.isIsolated,B.useVSSEndpoint,B.dangerousLogToVisitorSession,B.requestsOutstanding),_.ZRB.delete(E.key))}},r=_.fzX();
r&&(r.addEventListener("message",g),r.onerror=function(){_.ZRB.clear()});
Jpv=!0}},EJ=function(){this.relativeTimeStart_=_.dx()},tEm=function(g,r){g!=null&&this.append.apply(this,arguments)},FSt=function(){return _.CM("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},eID=function(g,r,E){E=E===void 0?!1:E;
var B,w,O,M,u;return _.q(function(l){switch(l.nextAddress){case 1:_.kA("SOCS",g,34128E3,"youtube.com",!0);if(_.qE)return w=fetch(r,{method:"POST",mode:_.Iy(r),credentials:_.Nu(r),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),O=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.Iy("/upgrade_visitor_cookie?eom=1"),credentials:_.Nu("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.D(l,Promise.all([w,O]).then(function(Q){return Q[1]}),5);
fetch(r,{method:"POST",mode:_.Iy(r),credentials:_.Nu(r),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.D(l,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.Iy("/upgrade_visitor_cookie?eom=1"),credentials:_.Nu("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:B=l.yieldResult;l.jumpTo(3);break;case 5:B=M=l.yieldResult;case 3:if(!B.ok)throw Error("sf");return _.D(l,B.text(),7);case 7:u=l.yieldResult,
!u.includes('"state_switch":true')&&!E||u.includes("skip_reload_for_test")||window.location.reload(),_.Q3(l)}})},WSA=function(g){return _.q(function(r){return r.nextAddress==1?_.D(r,eID(g.socsCookie,g.savePreferenceUrl,!0),2):r.return()})},Cd5=function(g){return _.q(function(r){return r.nextAddress==1?_.D(r,eID(g.socsCookie,g.savePreferenceUrl),2):r.return()})},x_A=function(g){g=g.xhr.responseText;
if(!_.wl(g,")]}'"))throw new Bl;g=JSON.parse(g.substr(4));if((g.type||1)>1)throw new Bl;g=g.id;p8M(g);wP=_.I1(g);KS4(18E5,2);return g},X8t=function(g,r){r=new aHv(r);
p8M("");wP=_.rm4(r);g>0&&KS4(12E4,g-1);throw r;},KS4=function(g,r){_.Me(function(){_.csg().then(x_A,function(E){return X8t(r,E)}).thenCatch(_.oo)},g)},kjz=function(){var g=_.VgM();
if(g!==void 0)return _.bV(g);wP||(wP=_.csg().then(x_A).thenCatch(function(r){return X8t(2,r)}));
return wP},N26=function(){var g=document;
return _.aX(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(r){return"on"+r.toLowerCase()in g})},IH8=function(g){g.addEventListener("click",function(r){var E=r.target;
E&&E.getAttribute("href")&&(E=E.getAttribute("href"),_.Wu(window,E,"_blank"),r.preventDefault(),r.stopImmediatePropagation())})},m_8=function(g){var r,E,B,w=(B=(E=((r=g.mainDownloadsListEntity)!=null?r:{})[_.wyY])==null?void 0:E.refresh)!=null?B:"",O;
g=(O=g.refresh)==null?void 0:O[w];w=g!=null?g:{};return(w==null?0:w.refreshTime)?Number(w==null?void 0:w.refreshTime):0},cpD=function(g,r){var E=_.ff(g);
return r.every(function(B){var w;B=B==null?void 0:(w=B.playbackDataEntity)==null?void 0:w.key;if(!B)return!1;w=_.qr(_.S9(B).entityId,"mainVideoEntity");return!!E[w]})},i9m=function(g){g=_.Rc(g.entities);
return _.I0V(g).length},LS4=function(g,r){if(r){var E;
g=(E=_.u1(g.entities,"downloadQualityPickerEntity",r))!=null?E:void 0}else g=void 0;return g},Z96=function(){VEt||(_.i1=_.EQP,VEt=new hIm);
return VEt},ypL=function(g){var r=document.getElementsByTagName("ytd-enforcement-message-view-model");
r.length===0||getComputedStyle(r[0]).display==="none"?g(0,"p.h_"):g(1,"p.h_")},vRM=function(){SX=0;
var g=[_.ny(!0)];OJ&&_.US(OJ,"yt-window-resized",g)},d_z=function(){SX||(SX=_.F6.addLowPriorityJob(vRM,200))},gKD=function(){UJ=0;
T2g=_.ZLA(document);var g=[T2g];OJ&&_.US(OJ,"yt-window-scrolled",g)},rnM=function(){UJ||(UJ=_.F6.addLowPriorityJob(gKD,200))},Bu5=function(g){g=g===void 0?null:g;
EKA.push(_.Tj(window,"resize",d_z));EKA.push(_.Tj(window,"scroll",rnM));g&&(OJ=g)},Sqz=function(){var g={isWide:_.zZ.get("wide","0")==="1"},r=_.pu();
if(r=r.getFlag(165)||r.getFlag(174))g.theme=_.bF(!0);if(_.zLJ()){var E=_.AO()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";g.systemTheme=E}!r&&_.Y("parent_tools_enable_app_settings")&&_.iu(window.location.href).theme!==void 0&&(g.theme=_.bF());if((r=ML)?!_.jn.equals(r,g):g)r={currentValue:g},wft&&(r.timeSinceLastSnapshotSecs=Math.round(((0,_.g2)()-wft)/1E3)),ML&&(r.previousValue=ML),_.Jn("appSettingsCaptured",r),ML=g,wft=(0,_.g2)()},OCz=function(g){_.q(function(r){if(r.nextAddress==1)return _.D(r,
g.delete("yt-appshell-assets"),2);
_.Q3(r)})},Ub6=function(g){return _.m0((0,_.tO6)(),g)},qqF=function(){var g;
_.q(function(r){return r.nextAddress==1?_.D(r,qL.getInstance(),2):(g=r.yieldResult)?_.D(r,Ml$(g),0):r.jumpTo(0)})},l8D=function(){var g;
_.q(function(r){return r.nextAddress==1?_.D(r,ux.getInstance(),2):(g=r.yieldResult)?_.D(r,uRg(g),0):r.jumpTo(0)})},Db5=function(g){OCz(g);
qqF();l8D()},oKM=function(g){var r,E;
return _.q(function(B){if(B.nextAddress==1)return _.D(B,_.aWl(g),2);if(r=B.yieldResult){var w;a:{if(r.headers&&(w=r.headers.get("date"))&&(w=Date.parse(w),!isNaN(w))){w=Math.round((0,_.g2)()-w);break a}w=-1}E=w;if(E>-1)return B.return(E)}return B.return(-1)})},GxD=function(){var g=_.ED.caches,r=_.Ka("IS_SHELL_LOAD"),E,B;
_.q(function(w){if(w.nextAddress==1)return E=-1,r?_.D(w,oKM(g),3):(B=_.$g(),E=Math.round((0,_.g2)()-B),w.jumpTo(2));w.nextAddress!=2&&(E=w.yieldResult);E>=0&&E<2147483648&&_.Pk({appInstallDataAgeMs:E});_.Q3(w)})},QI6=function(g){var r=_.cT(_.ED.location.href),E={};
"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(B){var w=r.JSC$8122_queryData_.getValues(B);if(w==null?0:w.length)E[B]=w});
return _.Sn(g,new Map(Object.entries(E)))},zRt=function(g){g=g.match(/(.*)::.*::.*/);
if(g!==null)return g[1]},kx$=function(g){if(_.BDl()){var r=Object.keys(window.localStorage);
r=_.U(r);for(var E=r.next();!E.done;E=r.next()){E=E.value;var B=zRt(E);B===void 0||g.includes(B)||self.localStorage.removeItem(E)}}},HCt=function(){if(!_.BDl())return!1;
var g=_.p3(),r=Object.keys(window.localStorage);r=_.U(r);for(var E=r.next();!E.done;E=r.next())if(E=zRt(E.value),E!==void 0&&E!==g)return!0;return!1},pfA=function(g){return _.LG("NotificationsDisabled",g)},Yq5=function(){return Notification.permission!="granted"?Promise.resolve():_.hT6().then(function(g){return g?g.pushManager.getSubscription().then(function(r){if(r)return Promise.resolve();
r={userVisibleOnly:!0,applicationServerKey:_.Mz("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return g.pushManager.subscribe(r).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},RRg=function(g){return _.hT6().then(function(r){if(!r||!r.active)return Promise.reject(new _.Rj("serviceworker.postMessage",g,r));
try{return r.active.postMessage(g),Promise.resolve()}catch(E){return Promise.reject(E)}})},nKM=function(){RRg({type:"notifications_register",
data:_.Ca("ID_TOKEN")})},sIz=function(){if(!_.Ka("LOGGED_IN"))return Promise.resolve(!1);
var g=_.Sg("service_worker_push_force_notification_prompt_tag");return g?_.dJ("PromptTags").then(function(r){if(!r)return!0;var E=[];try{E=JSON.parse(r)}catch(B){return!1}return E&&E.indexOf(g)==-1}):Promise.resolve(!1)},f8A=function(){var g=_.wM("service_worker_push_prompt_delay_microseconds");
return g?_.dJ("PromptTime").then(function(r){return Promise.resolve(Date.now()-g>(r||0))}):Promise.resolve(!0)},$bF=function(){var g=_.wM("service_worker_push_logged_out_prompt_watches");
return g==-1?Promise.resolve(!1):_.dJ("WatchCount").then(function(r){return r>=g})},jI5=function(){var g=_.rr(document,"yt-push-prompt-modal-bg");
g&&_.p5(g)},An5=function(){return _.wM("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.dJ("PromptCount").then(function(g){g||(g=0);
return Promise.resolve(g<_.wM("service_worker_push_prompt_cap"))})},bCM=function(g){return _.Ka("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.Ka("LOGGED_IN")&&(g===void 0?0:g)?sIz().then(function(r){if(r)return!0;
r=[An5(),f8A()];_.Ka("LOGGED_IN")||r.push($bF());return Promise.all(r).then(function(E){return E.every(function(B){return B})})}):Promise.resolve(!1)},Jn6=function(){_.dJ("PromptCount").then(function(g){return _.LG("PromptCount",g+1)}).then(function(){return _.LG("PromptTime",Date.now())}).then(function(){var g=_.Sg("service_worker_push_force_notification_prompt_tag");
if(g)return _.dJ("PromptTags").then(function(r){var E=[];if(r)try{E=JSON.parse(r)}catch(B){return!1}E||(E=[]);E.push(g);return _.LG("PromptTags",JSON.stringify(E))})})},tl4=function(){P2D||jI5()},FHM=function(g){g.style.zIndex=2147483648;
g.style.pointerEvents="auto";g.style.backgroundColor="rgba(0, 0, 0, 0.6)";g.style.width="100%";g.style.height="100vh";g.style.position="absolute";g.style.top="0";g.style.left="0";g.style.border="none"},eRF=function(){var g=_.rr(document,"yt-push-prompt-modal-bg");
P2D=_.Y("service_worker_push_prompt_modal_ignore_click");g?FHM(g):(g=_.Ro("div",{id:"yt-push-prompt-modal-bg"}),FHM(g),document.body.appendChild(g),_.cOD(document,"click",tl4))},WH6=function(){var g=arguments;
_.Y("service_worker_push_prompt_modal_enable")&&eRF();return Notification.requestPermission().then(function(r){jI5();var E=document.getElementById("ticker");E&&(E.className=E.classList.remove("show"));if(r=="granted")return Yq5().then(function(){pfA(!1);nKM();return Promise.resolve(!0)});
r=="denied"&&nKM();return Promise.resolve(!1)}).catch(function(){jI5();
return Promise.reject.apply(Promise,_.jW(g))})},C24=function(g){g=g===void 0?!1:g;
var r=_.RLL().client;if(r&&r.browserVersion){var E=r.browserVersion,B=r.browserName=="CHROME"&&_.Ql(E,"50.0.0")<0;r=r.browserName=="OPERA"&&_.Ql(E,"42.0.0")<0;if(B||r)return Promise.resolve()}return _.vfD().then(function(w){if(!w)return Promise.resolve();w=Yq5().then(function(){return RRg({type:"notifications_check_registration",data:_.Ca("ID_TOKEN")})});
return Notification.permission!="default"?w.catch(function(){}):w.then(function(){return bCM(g)}).then(function(O){if(O)return Jn6(),WH6().then(function(){})}).catch(function(){})})},KH6=function(g){return _.Z$8(g)?C24():Promise.resolve()},xb5=function(g){var r=g.installing||g.waiting;
return g.active||!r?Promise.resolve(g):new Promise(function(E){var B=function(w){w=w.target;if(w.state==="activated"||w.state==="redundant")r.removeEventListener("statechange",B),E(g)};
r.addEventListener("statechange",B)})},a8t=function(){var g=new _.egQ("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.MS(g,{mainAppWeb:_.iF()});var r=_.ZHD;_.Y("service_worker_forward_exp_params")&&(r=QI6(r));try{var E=_.s9X(r).catch(function(){_.qS(g,"FAILURE");return new Promise(function(){})});
_.Y("service_worker_push_enabled")&&E.then(function(B){_.qS(g,"SUCCESS");return B}).then(xb5).then(KH6)}catch(B){if(_.qS(g,"FAILURE"),B.name!=="SecurityError")throw B;
}},Xf6=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&a8t()},NuA=function(g,r){var E={};
r&&(E.serializedYpcFamilyCreateLoggingParams=r);_.Jn(g,E);_.Pf()},I85=function(g,r){var E={};
E.serializedYpcRefundFlowLoggingParams=r;g&&(E.eventType=g);_.Jn("ypcRefundFlowEvent",E);_.Pf()},mbz=function(g){g&&_.$Fc("transactionFlowSucceeded",g)},cnt=function(g){g&&_.PQ("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",g,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},iCg=function(g){var r,E,B,w,O,M,u;
_.q(function(l){if(l.nextAddress==1)return _.D(l,_.Djc(),2);if(l.nextAddress!=3){if(!l.yieldResult)return l.return(!1);r=[];return _.D(l,_.qh.keys(),3)}E=l.yieldResult;B=_.U(E);for(w=B.next();!w.done;w=B.next())O=w.value,M=_.uyo(O),u=M.datasyncId,!u||g.includes(u)||r.push(_.qh.delete(O));return l.return(Promise.all(r).then(function(Q){return Q.some(function(z){return z})}))})},LHg=function(){var g,r,E,B,w,O,M;
return _.q(function(u){if(u.nextAddress==1)return _.D(u,_.Djc(),2);if(u.nextAddress!=3){if(!u.yieldResult)return u.return(!1);g=_.p3("cache contains other");return _.D(u,_.qh.keys(),3)}r=u.yieldResult;E=_.U(r);for(B=E.next();!B.done;B=E.next())if(w=B.value,O=_.uyo(w),(M=O.datasyncId)&&M!==g)return u.return(!0);return u.return(!1)})},Vlv=function(){var g=_.rM().resolve(_.gM(_.cw6));
return g?g.getCurrentTime():0},hR5=function(){var g,r,E,B,w,O,M,u,l,Q,z,k,H,R;
return _.q(function(A){switch(A.nextAddress){case 1:g={},r=_.qiB(),E=_.U(Object.entries(r)),B=E.next();case 4:if(B.done){A.jumpTo(3);break}w=B.value;O=_.U(w);M=O.next().value;u=O.next().value;l=M;Q=u;if(!Q){A.jumpTo(5);break}return _.D(A,Q(),8);case 8:g[l]=A.yieldResult;case 5:B=E.next();A.jumpTo(4);break;case 2:z=_.U(void 0),k=z.next();case 9:if(k.done){A.jumpTo(3);break}H=k.value;R=r[H];if(!R){A.jumpTo(10);break}return _.D(A,R(),13);case 13:g[H]=A.yieldResult;case 10:k=z.next();A.jumpTo(9);break;
case 3:return A.return(g)}})},ZCM=function(){var g;
_.q(function(r){if(r.nextAddress==1)return _.D(r,hR5(),2);g=r.yieldResult;return _.D(r,navigator.clipboard.writeText(JSON.stringify(g,null,2)),0)})},yng=function(g,r){return _.u1(g.entities,"superThanksSelectedTierEntity",r)},vKL=function(g,r){var E=_.jeB();
_.bu(function(){var B=g.value;if(B)return _.iPA(B,r),_.LdB(B,r,void 0,void 0,void 0,E)},[r])},db6=function(g){var r;
return(r=g.sharedUi)==null?void 0:r.currentPageType},Tu4=function(g,r){return{popup:{searchSuggestionReportDialog:{searchQuery:g,
title:_.zn("SBOX_INAPPROPRIATE_TITLE"),suggestions:r,categoryLabel:_.zn("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.zn("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.zn("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.zn("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.zn("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.zn("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.zn("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.zn("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.zn("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.zn("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},g5$=function(g){var r,E,B,w,O,M,u,l,Q,z,k,H,R,A,J,e,C,X,Z;
return _.q(function(c){switch(c.nextAddress){case 1:return _.D(c,_.oc(),2);case 2:return(r=c.yieldResult)?_.D(c,_.kBY(r),3):c.return();case 3:E=c.yieldResult;if(!E)return c.return();w=((B=E.offlineVideos)==null?void 0:B.length)||0;M=((O=E.offlinePlaylists)==null?void 0:O.length)||0;if(w===0&&M===0)return c.return();u=0;if(E.offlineVideos)for(l=_.U(E.offlineVideos),Q=l.next();!Q.done;Q=l.next())z=Q.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===z.videoState&&(u+=1);g.offline_videos_count=w.toString();_.Y("kevlar_log_offline_current_network_type_ks")||
(g.offline_current_network_type=(k=_.lYY())!=null?k:"CONN_INVALID");_.Y("kevlar_log_updated_time_for_smart_downloads")&&(H=_.Zz().getState().entities,R=_.b1(H),A=m_8(H),g.offline_smart_downloads_last_sync_time_ms=R.toString(),g.offline_smart_downloads_next_sync_time_ms=A.toString());g.offline_videos_playable=u.toString();g.offline_playlists_count=M.toString();if(!_.Y("woffle_used_state_report")){c.jumpTo(4);break}E.offlineVideos&&(J=E.offlineVideos.reduce(function(h,y){y.downloadedBytes&&(h+=Number(y.downloadedBytes));
return h},0).toString())&&(g.offline_used_disk_space_bytes=J);
if(!((e=navigator)==null?0:(C=e.storage)==null?0:C.estimate)){c.jumpTo(4);break}return _.D(c,navigator.storage.estimate(),6);case 6:X=c.yieldResult,g.offline_free_disk_space_bytes=(((Z=X)==null?void 0:Z.quota)||0).toString();case 4:g.offline_client_state=JSON.stringify(E),_.Q3(c)}})},rxt=function(g){g=_.U(g);
for(var r=g.next(),E={};!r.done;E={setter$jscomp$5:void 0},r=g.next()){var B=r.value;r=B.params;B=B.service;r&&B&&(E.setter$jscomp$5=_.dz8[B],E.setter$jscomp$5&&r.forEach(function(w){return function(O){var M=O.key;O=O.value;M&&O&&(0,w.setter$jscomp$5)(M,O)}}(E)))}},E5v=function(g){g=g.match(/(.*)::.*::.*/);
if(g!==null)return g[1]},BH$=function(g){if(_.$kS()){var r=Object.keys(window.sessionStorage);
r=_.U(r);for(var E=r.next();!E.done;E=r.next()){E=E.value;var B=E5v(E);B===void 0||g.includes(B)||self.sessionStorage.removeItem(E)}}},w3M=function(){if(!_.$kS())return!1;
var g=_.p3(),r=Object.keys(window.sessionStorage);r=_.U(r);for(var E=r.next();!E.done;E=r.next())if(E=E5v(E.value),E!==void 0&&E!==g)return!0;return!1},lx=function(g,r,E){(_.Y("desktop_keyboard_shortcut_usage_log")||E&&_.Y("web_shorts_keyboard_shortcut_usage_log"))&&(r?_.vW.get(g):_.yL.get(g))&&(g=r?_.TT.get(g):_.dQ.get(g))&&_.Lu(_.PE(),g)},Sb4=function(){var g,r;
return typeof CSS!=="undefined"&&((r=(g=CSS).supports)==null?void 0:r.call(g,"selector(:has(*))"))},Okv=function(g){return g.visibility!=="hidden"&&g.display!=="none"},M8M=function(g){if(Sb4()||g.tagName!=="DETAILS"?!g.matches(UHz):g.querySelector("summary")!==null)return-1;
g=g.getAttribute("tabindex")||"0";return Number(g)},qbA=function(g){return g.some(function(r){return M8M(r)>0})},u3m=function(g){if(g.textContent)return!0;
if(g instanceof HTMLInputElement){if(!g.labels)return!1;g=_.U(g.labels);for(var r=g.next();!r.done;r=g.next())if(r.value.textContent)return!0}return!1},lsD=function(g){return g.sort(function(r,E){return M8M(E)-M8M(r)})},DHD=function(g){g=Array.from(g.querySelectorAll(UHz)).filter(function(r){return(Okv(r.style)?Okv(window.getComputedStyle(r)):!1)&&u3m(r)});
return qbA(g)?lsD(g):g},o5M=function(g){g=DHD(g);
g.length>0&&g[0].focus()},G5$=function(g,r){r.stack&&(g.stack+="\n"+r.stack);
return g},k5F=function(g){var r=Dv(g,"Content-Type");
if(!r)return null;r=r.toLowerCase();if(r.startsWith("application/json"))return r.startsWith("application/json+protobuf")?new Qv8:new _.TA;if(r.startsWith("application/x-protobuf")){g=Dv(g,"Content-Transfer-Encoding");if(!g)return new og;if(g.toLowerCase()=="base64")return new zU$}return null},jvz=function(g,r,E,B){var w=new HkA(function(u,l){return p3z.has(l)?u.sentinel==="gal"&&u.event!==void 0:!1},function(u){u.event?(u=Ybt(u.event),u=!u||RU8(B,u)?!0:_.zE(g.lastEvent,Gc,2,QS)?!_.zE(u,zc,1,QS)&&
!_.zE(u,Gc,2,QS):!_.zE(u,zc,1,QS)&&!_.zE(u,Gc,3,QS)):u=!0;
return u});
E=_.Sn(g.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",n55(E)]]));if(g.nestedOrigins!==void 0)for(var O=_.U(g.nestedOrigins),M=O.next();!M.done;M=O.next())E=_.Sn(E,new Map([["origin",M.value]]));return svt(w,E,r).then(function(u){u=fsM(u.event);if(_.zE(u,zc,1,QS)){var l,Q=(l=_.PL(u,zc,1,QS))==null?void 0:_.AX(l,2);Q&&B.JSC$17299_logErrorEvent($HD(Q));l=_.PL(u,zc,1,QS);_.AX(l,2)===4?(u=_.PL(u,zc,1,QS),u={statusCode:11,statusMessage:_.jI(u,
3)}):(u=_.PL(u,zc,1,QS),u={statusCode:12,statusMessage:_.jI(u,3)});return u}_.zE(u,Gc,3,QS)?(u=_.PL(u,Gc,3,QS),u={statusCode:1,consentLanguageKeys:_.jI(u,2)}):u={statusCode:1};return u}).catch(function(u){return u.errorCode!==void 0?{statusCode:u.errorCode,
statusMessage:u.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},Pp4=function(g){var r={};
if(g===void 0||g===null)return r;g.getToken()!==void 0&&Axv(g.getToken())&&Axv(g.getToken()).length>0&&(r.scopes=new Set(Axv(g.getToken())));g.getToken()!==void 0&&bk8(g.getToken())&&bk8(g.getToken()).length>0&&(r.capabilities=new Set(bk8(g.getToken())));_.jI(g,3)!==void 0&&(r.consistencyKey=_.jI(g,3));g.getName()!==void 0&&g.getName()!==""&&(r.linkName=g.getName());_.Qt(g,JxL,4)&&(g=_.zP(g,JxL,4),g=Object.assign({},_.jI(g,1)&&{userId:_.jI(g,1)},_.jI(g,2)&&{displayName:_.jI(g,2)},_.jI(g,3)&&{email:_.jI(g,
3)},_.jI(g,5)&&{username:_.jI(g,5)},_.jI(g,4)&&{profilePicture:_.jI(g,4)}),r.profile=g);return r},t8$=function(g,r){var E=g.flowParams,B;
return{serviceId:E.serviceId,sessionId:E.sessionId,currentFlow:g.currentFlow,googleScopesString:r,linkingSessionSerialized:g.session.serialize(),consentLanguageKeys:E.consentLanguageKeys,callerState:g.callerState,dynamicUrlParameters:E.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(B=E.partnerConfigMinReadTimestamp)==null?void 0:B.serialize()}},K8M=function(g){var r=g.googleScopes!==void 0?Array.from(g.googleScopes).join(","):"";
F8v(t8$(g,r));r=eUv(g);return r===null?Promise.resolve(W8g):r.start().then(function(E){var B,w=(B=E.link)==null?void 0:B.consistencyKey;return E.statusCode===1&&g.googleScopes!==void 0&&g.googleScopes.size>0&&w!==void 0?(B=g.flowParams,Cpz(B.serviceId,B.sessionId,g.googleScopes,w,B.galService,g.config,E)):E})},xHz=function(g){var r=eUv(g);
return r===null?Promise.resolve(ks({statusCode:7,statusMessage:"Failed to create flow object"},g.callerState)):r.complete().then(function(E){var B,w=(B=E.link)==null?void 0:B.consistencyKey;return E.statusCode===1&&g.googleScopes!==void 0&&g.googleScopes.size>0&&w!==void 0?(B=g.flowParams,Cpz(B.serviceId,B.sessionId,g.googleScopes,w,B.galService,g.config,E)):ks(E,g.callerState)},function(E){return ks({statusCode:12,
statusMessage:"Failed to complete the flow: "+E.message},g.callerState)})},Cpz=function(g,r,E,B,w,O,M){return asF(w,{serviceId:g,
sessionId:r,googleScopes:E,consistencyKey:B}).then(function(){return M},function(u){return w.deleteLink({serviceId:g,
sessionId:r,accountLinkingEntryPoint:O.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+u.message}},function(l){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+l.message}})})},eUv=function(g){switch(g.currentFlow){case 1:var r=g.flowParams;
g=_.zP(g.session,X36,1);return Hl.createOAuthFlow(r,g);case 2:case 3:return r=g.flowParams,g=_.zP(g.session,NHA,6),pb.createStreamlinedFlow(r,g);default:return null}},Isg=function(g,r){g===2&&(g=3);
var E=0;Ys.indexOf(g)!==-1&&(E=Ys.indexOf(g)+1);for(g=E;g<Ys.length;g++)if(r.has(Ys[g]))return Ys[g]},ikF=function(g){var r=g.serviceId;
var E=g.sessionId;var B=g.config;var w=g.galService;var O=g.capabilities;var M=g.scopes;var u=g.loginHint;var l=g.callerState;var Q=g.consentLanguageKeys;var z=g.linkName;var k=g.dynamicUrlParameters;var H=g.partnerConfigMinReadTimestamp;g=B.dataUsageNoticeConfig?B.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return w.startLinkingSession({serviceId:r,sessionId:E,capabilities:O,scopes:M,loginHint:u,callerState:l,supportedFlows:mH4(B.supportedFlows),completionUrl:B.completionUrl,accountLinkingEntryPoint:B.accountLinkingEntryPoint,
consentLanguageKeys:Q,dataUsageNoticeConfig:g,linkName:z,dynamicUrlParameters:k,partnerConfigMinReadTimestamp:H}).then(function(R){return new cxz(r,E,B,w,R,void 0,l,Q,k,H)})},v5M=function(g,r,E){a:{var B=new L8t;
if(B.storage!==null)try{var w=B.storage.get("SAVED_SESSION");if(w===void 0){var O=null;break a}if(w.serviceId===g){O=w;break a}}catch(u){}O=null}if(O===null)return Promise.resolve({statusCode:2});V86(g);B=hUM(O.linkingSessionSerialized);w=O.googleScopesString!==""&&O.googleScopesString!==void 0?new Set(O.googleScopesString.split(",")):void 0;var M=O.partnerConfigMinReadTimestampSerialized?ZkL(O.partnerConfigMinReadTimestampSerialized):void 0;return yx$(new cxz(g,O.sessionId,r,E,B,w,O.callerState,
O.consentLanguageKeys,O.dynamicUrlParameters,M),O.currentFlow,O.consentLanguageKeys)},F8v=function(g){var r=new L8t;
r.storage!==null&&r.storage.set("SAVED_SESSION",g)},V86=function(g){var r=new L8t;
if(r.storage!==null){var E=r.storage.get("SAVED_SESSION");E!==void 0&&E.serviceId===g&&r.storage.remove("SAVED_SESSION")}},mH4=function(g){var r=new Set;
g=_.U(g);for(var E=g.next();!E.done;E=g.next())E=E.value,E!==1&&dH5.has(E)&&r.add(dH5.get(E));return r},ks=function(g,r){r!==void 0&&(g.callerState=r);
return g},TH4=function(g){switch(g){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},Eyt=function(g){return new gy4(g,new rFD(g))},SQz=function(g,r){r=r===void 0?!1:r;
var E=document.createElement("div");g&&(E.style.transform="scaleX(-1)");E.style.backgroundColor=r?"rgba(138,180,248,.24)":"#e8f0fe";E.style.height="4px";E.style.overflow="hidden";E.style.position="absolute";E.style.top="0";E.style.width="100%";E.style.zIndex="1500";E.setAttribute("aria-label","Loading");E.setAttribute("aria-live","polite");g=document.createElement("style");g.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  }";
E.appendChild(g);g=BUg();g.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";g.style.left="-145.166611%";var B=wEz(r);B.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";g.appendChild(B);E.appendChild(g);g=BUg();g.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";g.style.left="-54.888891%";r=wEz(r);r.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
g.appendChild(r);E.appendChild(g);return E},BUg=function(){var g=document.createElement("div");
g.style.height="100%";g.style.position="absolute";g.style.transformOrigin="top left";g.style.width="100%";return g},wEz=function(g){var r=document.createElement("span");
r.style.borderTop=g?"4px solid #669df6":"4px solid #4285f4";r.style.display="inline-block";r.style.position="absolute";r.style.width="100%";return r},OM5=function(g){return g==null?void 0:_.EtT(g).valueOf()},upt=function(g){var r=document.body,E=!1,B=function(){E||(E=!0,Uu$(w,O),setTimeout(function(){r.removeChild(O);
r.removeChild(w)},150))},w=MG6(g,getComputedStyle(r).direction==="rtl",B),O=qQ5(B);
Uu$(w,O);r.appendChild(O);r.appendChild(w);window.requestAnimationFrame(function(){O.style.opacity="1";w.style.opacity="1";w.style.transform="translate(-50%, -50%) scale(1)";w.children[0].focus()})},MG6=function(g,r,E){var B=document.createElement("div");
B.style.position="fixed";B.style.alignItems="center";B.style.backgroundColor=g?"rgb(32, 33, 36)":"white";B.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";B.style.display="flex";B.style.flexDirection="column";B.style.justifyContent="center";B.style.left="50%";B.style.top="50%";B.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";B.style.zIndex="2002";document.body.clientWidth>=660?(B.style.borderRadius="8px",B.style.minHeight="220px",
B.style.maxHeight="90%",B.style.maxWidth="90%",B.style.minWidth="540px"):(B.style.height="100%",B.style.width="100%");B.setAttribute("aria-label","Error");B.setAttribute("aria-modal","true");B.setAttribute("role","alertdialog");B.addEventListener("keydown",function(O){O.key==="Escape"&&E()});
r=lY$(g,r,E);B.appendChild(Du$(r));B.appendChild(r);var w=document.createElement("img");w.src=g?"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey200-36dp/2x/gm_alert_gm_grey200_36dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey600-36dp/2x/gm_alert_gm_grey600_36dp.png";w.style.height="72px";w.style.width="72px";w.style.color="#9aa0a6";w.setAttribute("alt","");B.appendChild(w);w=document.createElement("h1");w.textContent="Something went wrong.  Try again.";
w.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";w.style.lineHeight="24px";w.style.fontSize="16px";w.style.textAlign="center";w.style.letterSpacing="0.1px";w.style.color=g?"rgb(232,234,237)":"#3c4043";B.appendChild(w);B.appendChild(Du$(r));return B},lY$=function(g,r,E){var B=document.createElement("button");
B.style.backgroundColor="transparent";B.style.border="none";B.style.borderRadius="50%";B.style.cursor="pointer";B.style.outline="none";B.style.padding="12px";B.setAttribute("aria-label","Close dialog");B.style.position="absolute";B.style.top="0";r?B.style.right="0":B.style.left="0";B.addEventListener("focus",function(){B.style.backgroundColor=g?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
B.addEventListener("blur",function(){B.style.backgroundColor="transparent"});
B.addEventListener("mouseenter",function(){B.style.backgroundColor=g?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
B.addEventListener("mouseleave",function(){B.style.backgroundColor="transparent"});
B.addEventListener("click",E);B.addEventListener("keydown",function(w){w.key!=="Enter"&&w.key!=="Space"||E()});
r=document.createElement("img");r.src=g?"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";r.style.display="block";r.style.height="24px";r.style.width="24px";r.setAttribute("alt","");B.appendChild(r);return B},Du$=function(g){var r=document.createElement("div");
r.setAttribute("tabindex","0");r.setAttribute("aria-hidden","true");r.addEventListener("focus",function(){return void g.focus()});
return r},qQ5=function(g){var r=document.createElement("div");
r.style.backgroundColor="rgba(32,33,36,0.6)";r.style.bottom="0";r.style.left="0";r.style.position="fixed";r.style.right="0";r.style.top="0";r.style.transition=" opacity 150 ms linear";r.style.zIndex="2001";r.addEventListener("click",g);return r},Uu$=function(g,r){r.style.opacity="0";
g.style.opacity="0";g.style.transform="translate(-50%, -50%) scale(0.8)"},oy$=function(g,r){g.sandbox&&g.sandbox.add&&(g.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),g.sandbox.add("allow-downloads"));
g.src=r},Rg=function(g){Gr4.call(this,g)},nb=function(g,r){r=r===void 0?!1:r;
this.parsedImageUrl_=null;g instanceof Qyv||(z6M==void 0&&(z6M=new krF),g=z6M.parse(g.toString(),r));g=this.parsedImageUrl_=g;g.JSC$17511_parsedOptions_==void 0&&((r=g.getOptions())||(r=""),g.JSC$17511_parsedOptions_=(new HMD).parse(r));Gr4.call(this,g.JSC$17511_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;g=this.parsedImageUrl_;r=g.uri_.JSC$8122_port_;this.JSC$17513_domain_=g.uri_.JSC$8122_domain_+(r?":"+r:"");this.JSC$17513_query_=this.parsedImageUrl_.uri_.JSC$8122_queryData_.toString()},
pEA=function(g){this.mode=4;
this.data=g;this.parsedData=[];g=0;for(var r=this.data.length;g<r;g++){var E=[],B=this.data.charCodeAt(g);B>65536?(E[0]=240|(B&1835008)>>>18,E[1]=128|(B&258048)>>>12,E[2]=128|(B&4032)>>>6,E[3]=128|B&63):B>2048?(E[0]=224|(B&61440)>>>12,E[1]=128|(B&4032)>>>6,E[2]=128|B&63):B>128?(E[0]=192|(B&1984)>>>6,E[1]=128|B&63):E[0]=B;this.parsedData.push(E)}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))},YQ5=function(g){this.typeNumber=0;
this.errorCorrectLevel=g===void 0?2:g;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},sJ=function(g,r){if(g.length==void 0)throw Error("yk`"+g.length+"`"+r);
for(var E=0;E<g.length&&g[E]==0;)E++;this.num=Array(g.length-E+r);for(r=0;r<g.length-E;r++)this.num[r]=g[r+E]},R6m=function(g,r){this.totalCount=g;
this.dataCount=r},nyM=function(){this.buffer=[];
this.length=0},syg=function(){var g=!1;
if(_.Doc()){g=_.kc();var r="";_.QXA()?(r=/Windows (?:NT|Phone) ([0-9.]+)/,r=(g=r.exec(g))?g[1]:"0.0"):_.WJ()?(r=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,r=(g=r.exec(g))&&g[1].replace(/_/g,".")):_.GSD()?(r=/Mac OS X ([0-9_.]+)/,r=(g=r.exec(g))?g[1].replace(/_/g,"."):"10"):_.DQ(_.kc(),"KaiOS")?(r=/(?:KaiOS)\/(\S+)/i,r=(g=r.exec(g))&&g[1]):_.Doc()?(r=/Android\s+([^\);]+)(\)|;)/,r=(g=r.exec(g))&&g[1]):_.zPV()&&(r=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,r=(g=r.exec(g))&&g[1]);g=r||""}return g},JFF=function(g,
r){this.JSC$17536__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(r)for(var E in r)this.JSC$17536__htOption[E]=r[E];this.JSC$17536__htOption.useSVG&&(fY$=$u$);this.JSC$17536__android=syg();this.JSC$17536__el=g;this._oQRCode=null;this._oDrawing=new fY$(this.JSC$17536__el,this.JSC$17536__htOption);this.JSC$17536__htOption.text&&(g=this.JSC$17536__htOption.text,this._oQRCode=new YQ5(this.JSC$17536__htOption.correctLevel),jyL(this._oQRCode,g),r=this._oQRCode,AFF(r,!1,bMg(r)),this.JSC$17536__el.title=
g,this._oDrawing.draw(this._oQRCode),this.makeImage())},PGm=function(g,r,E,B,w){g.save();
var O=new Path2D;O.roundRect(r,E,B*7,B*7,B*2);O.roundRect(r+B,E+B,B*5,B*5,B*1.3);O.roundRect(r+2*B,E+2*B,B*3,B*3,B);g.clip(O,"evenodd");g.fillStyle=w;g.fillRect(0,0,g.canvas.width,g.canvas.height);g.restore()},fb=function(g,r){if(typeof g!=="function")throw Error("Bk");
return _.ED.setTimeout(function(){g()},r)},$s=function(){},Fx4=function(g,r,E,B,w){(new $s).debug("TestLoadImageWithRetries: "+w);
if(B==0)E(!1);else{var O=w||0;B--;tGD(g,r,function(M){M?E(!0):_.ED.setTimeout(function(){Fx4(g,r,E,B,O)},O)})}},tGD=function(g,r,E){var B=new $s;
B.debug("TestLoadImage: loading "+g);var w=new Image;w.onload=function(){try{B.debug("TestLoadImage: loaded"),e6M(w),E(!0)}catch(O){}};
w.onerror=function(){try{B.debug("TestLoadImage: error"),e6M(w),E(!1)}catch(O){}};
w.onabort=function(){try{B.debug("TestLoadImage: abort"),e6M(w),E(!1)}catch(O){}};
w.ontimeout=function(){try{B.debug("TestLoadImage: timeout"),e6M(w),E(!1)}catch(O){}};
_.ED.setTimeout(function(){if(w.ontimeout)w.ontimeout()},r);
w.src=g},e6M=function(g){g.onload=null;
g.onerror=null;g.onabort=null;g.ontimeout=null},Wx$=function(){this.front_=[];
this.back_=[]},CGL=function(g,r){_.f5.call(this);
this.delay_=new _.jL(this.JSC$17662_onTick_,0,this);_.oO(this,this.delay_);this.JSC$17660_interval_=5E3;this.nextTickTime_=0;if(typeof g==="function")r&&(g=(0,_.$r)(g,r));else if(g&&typeof g.handleEvent==="function")g=(0,_.$r)(g.handleEvent,g);else throw Error("Da");this.JSC$17662_listener_=g},jX=function(g,r,E,B,w,O,M,u,l,Q,z,k,H,R){E=E===void 0?!1:E;
B=B===void 0?function(){return""}:B;
w=w===void 0?!1:w;O=O===void 0?!1:O;M=M===void 0?!1:M;u=u===void 0?function(){return _.lq({})}:u;
l=l===void 0?!1:l;z=z===void 0?!1:z;k=k===void 0?!1:k;H=H===void 0?!1:H;R=R===void 0?!1:R;this.JSC$17663_pathPrefix_=g;this.defaultQueryParams_=r;this.pubsub_=new _.GZ;this.reconnectTimer_=new CGL(this.safeReconnect_,this);this.JSC$17663_channel_=null;this.JSC$17663_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17663_pendingMessages_=[];this.enableAsyncTest_=E;this.JSC$17663_getXsrfToken_=B;this.useAsyncBrowserChannelHandler_=O;this.getAuthorizationHeader_=
u;this.getAuthorizationHeaderSync_=Q;this.enableCachedUpdateAuthorizationHeader_=M;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.lq();this.enableLoungeTokenRefresh_=w;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=l;this.disableMdxAuthForNonPlaybackMessages_=z;this.disableMdxAuthForAdMessages_=k;this.enableMdxAuthForConnectionOnly_=H;this.disableMdxAuthForShortsMessages_=R;this.JSC$17663_channelOpenedCounter=new Kxv;this.JSC$17663_channelClosedCounter=new xuM;this.channelMessageSentCounter=
new aYm;this.JSC$17663_channelMessageReceivedCounter=new XEL;this.JSC$17663_channelErrorCounter=new NUv;this.pendingMapsOnClosedCounter=new IY8;this.undeliveredMapsOnClosedCounter=new muA},Ab=function(g){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;g=g||document.location.href;var r=Number(_.hk(g)[4]||null)||"";r&&(this.port=":"+r);this.domain=_.Zn(g)||"";g=_.kc();g.search("MSIE")>=0&&_.Ql(g.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},bx=function(g){g=g||{};
this.name=g.name||"";this.id=g.id||g.screenId||"";this.token=g.token||g.loungeToken||"";this.uuid=g.uuid||g.dialId||"";this.idType=g.screenIdType||"normal"},cFF=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(g){var r=Math.random()*16|0;
return(g=="x"?r:r&3|8).toString(16)})},iMm=function(g){return _.bO(g,function(r){return{key:r.id,
name:r.name}})},LxM=function(g,r){return _.aX(g,function(E){return E||r?!E!=!r?!1:E.id==r.id:!0})},Pl=function(g,r){return _.aX(g,function(E){return Jb(E,r)})},vyz=function(){var g=VG$(),r=h6m();
if(ZM5()){var E=g,B=_.RPt(E,r);B<0&&_.YDJ(E,-(B+1),0,r)}g=yFF(g);if(g.length==0)try{_.UuY("remote_sid")}catch(w){}else try{_.kA("remote_sid",g.join(","),-1)}catch(w){}},VG$=function(){var g=_.OC("yt-remote-connected-devices")||[];
g.sort(_.wA);return g},yFF=function(g){if(g.length==0)return[];
var r=g[0].indexOf("#"),E=r==-1?g[0]:g[0].substring(0,r);return _.bO(g,function(B,w){return w==0?B:B.substring(E.length)})},dum=function(g){_.S2("yt-remote-connected-devices",g,86400)},h6m=function(){if(TUv)return TUv;
var g=_.OC("yt-remote-device-id");g||(g=cFF(),_.S2("yt-remote-device-id",g,31536E3));for(var r=VG$(),E=1,B=g;_.mA(r,B);)E++,B=g+"#"+E;return TUv=B},gg4=function(){return _.OC("yt-remote-session-browser-channel")},ZM5=function(){return _.OC("yt-remote-session-screen-id")},BXD=function(g){g.length>5&&(g=g.slice(g.length-5));
var r=_.bO(rgv(),function(B){return B.loungeToken}),E=_.bO(g,function(B){return B.loungeToken});
_.giL(E,function(B){return!_.mA(r,B)})&&EgL();
_.S2("yt-remote-local-screens",g,31536E3)},rgv=function(){return _.OC("yt-remote-local-screens")||[]},EgL=function(){_.S2("yt-remote-lounge-token-expiration",!0,86400)},tb=function(g){g||(_.UC("yt-remote-session-screen-id"),_.UC("yt-remote-session-video-id"));
vyz();g=VG$();_.ht(g,h6m());dum(g)},SS$=function(){wkD();
return Fq?!!Fq.get("yt-remote-use-staging-server"):!1},wkD=function(){if(!Fq){var g=_.z6D();
g&&(Fq=new _.n3(g))}},qSM=function(g,r,E,B,w){E=E===void 0?function(){return""}:E;
var O=function(){return new jX(eX(g,"/bc"),r,!1,E,B)};
return _.Y("enable_mdx_web_channel_desktop")?new Oug(function(){return new U2M(eX(g,"/wc"),r,E)}):new MhA(O,w)},ogt=function(){var g=u4L;
l$v();Wl.push(g);D2F()},Cb=function(g,r){l$v();
var E=GnM(g,String(r));Wl.length==0?Q66(E):(D2F(),_.mR(Wl,function(B){B(E)}))},Kb=function(g){Cb("CP",g)},l$v=function(){Wl||(Wl=_.XS("yt.mdx.remote.debug.handlers_")||[],_.vN("yt.mdx.remote.debug.handlers_",Wl))},Q66=function(g){var r=(xs+1)%50;
xs=r;zwz[r]=g;kng||(kng=r==49)},D2F=function(){var g=Wl;
if(zwz[0]){var r=kng?xs:-1,E={};do E={record$jscomp$13:void 0},r=(r+1)%50,E.record$jscomp$13=zwz[r],_.mR(g,function(B){return function(w){w(B.record$jscomp$13)}}(E));
while(r!=xs);zwz=Array(50);xs=-1;kng=!1}},GnM=function(g,r){var E=(Date.now()-HuL)/1E3;
E.toFixed&&(E=E.toFixed(3));var B=[];B.push("[",E+"s","] ");B.push("[","yt.mdx.remote","] ");B.push(g+": "+r,"\n");return B.join("")},ag=function(g){_.ZF.call(this);
this.JSC$17687_logName_=g;this.screens=[]},NL=function(g){ag.call(this,"LocalScreenService");
this.JSC$17694_http_=g;this.loungeTokenRefreshTimer_=NaN;Xq(this);this.info("Initializing with "+pk$(this.screens))},Ig=function(g,r){r=r===void 0?!1:r;
ag.call(this,"ScreenService");this.JSC$17700_http_=g;this.disableAutomaticScreenCache_=r;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};YSL(this)},mV=function(g,r,E){_.ZF.call(this);
this.JSC$17704_logName_=E;this.JSC$17704_screenService_=g;this.receiver_=r;this.screen_=null},Cq$=function(g,r,E){E.disableCastApi?cl("Cannot initialize because disabled by Mdx config."):RwM()?ng$(g,E)&&(s6t(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?f$g(r):(window.__onGCastApiAvailable=function(B,w){B?f$g(r):(ix("Failed to load cast API: "+w),$28(!1),s6t(!1),_.UC("yt-remote-cast-available"),_.UC("yt-remote-cast-receiver"),j6m(),r(!1))},E.loadCastApiSetupScript?_.xy("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):
window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?AgA()>=60&&bu5():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?JgM():AgA()>=89?Pq$():(thz(),FZ4(ewD.map(WZz))))):cl("Cannot initialize because not running Chrome")},j6m=function(){cl("dispose");
var g=Lb();g&&g.dispose();_.vN("yt.mdx.remote.cloudview.instance_",null);KZM(!1);_.ZyA(x2M);x2M.length=0},a$M=function(){return!!_.OC("yt-remote-cast-installed")},XkL=function(){var g=_.OC("yt-remote-cast-receiver");
return g?g.friendlyName:null},NX$=function(){cl("clearCurrentReceiver");
_.UC("yt-remote-cast-receiver")},I$M=function(){return a$M()?Lb()?Lb().getCastSession():(ix("getCastSelector: Cast is not initialized."),null):(ix("getCastSelector: Cast API is not installed!"),null)},cg$=function(g,r){m2M()?Lb().setConnectedScreenStatus(g,r):ix("setConnectedScreenStatus called before ready.")},RwM=function(){var g=_.kc().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.uR||g},ng$=function(g,r){var E=!1;
Lb()||(g=new VS(g,r),g.subscribe("yt-remote-cast2-availability-change",function(B){_.S2("yt-remote-cast-available",B);rP("yt-remote-cast2-availability-change",B)}),g.subscribe("yt-remote-cast2-receiver-selected",function(B){cl("onReceiverSelected: "+B.friendlyName);
_.S2("yt-remote-cast-receiver",B);rP("yt-remote-cast2-receiver-selected",B)}),g.subscribe("yt-remote-cast2-receiver-resumed",function(B){cl("onReceiverResumed: "+B.friendlyName);
_.S2("yt-remote-cast-receiver",B);rP("yt-remote-cast2-receiver-resumed",B)}),g.subscribe("yt-remote-cast2-session-change",function(B){cl("onSessionChange: "+iuL(B));
B||_.UC("yt-remote-cast-receiver");rP("yt-remote-cast2-session-change",B)}),_.vN("yt.mdx.remote.cloudview.instance_",g),E=!0);
cl("cloudview.createSingleton_: "+E);return E},Lb=function(){return _.XS("yt.mdx.remote.cloudview.instance_")},f$g=function(g){$28(!0);
s6t(!1);Lb().init(!1,function(r){r?(KZM(!0),_.yOJ("yt-remote-cast2-api-ready")):(ix("Failed to initialize cast API."),$28(!1),_.UC("yt-remote-cast-available"),_.UC("yt-remote-cast-receiver"),j6m());g(r)})},cl=function(g){Cb("cloudview",g)},ix=function(g){Cb("cloudview",g)},$28=function(g){cl("setCastInstalled_ "+g);
_.S2("yt-remote-cast-installed",g)},m2M=function(){return!!_.XS("yt.mdx.remote.cloudview.apiReady_")},KZM=function(g){cl("setApiReady_ "+g);
_.vN("yt.mdx.remote.cloudview.apiReady_",g)},s6t=function(g){_.vN("yt.mdx.remote.cloudview.initializing_",g)},hb=function(g){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(g)},LZL=function(){var g,r;
return _.q(function(E){if(E.nextAddress==1)return(_.F$B()||_.Y("use_new_nwl"))&&_.byJ().isNetworkAvailable()?_.D(E,_.dM(),2):E.return();if(E.nextAddress!=3)return(g=E.yieldResult)?_.D(E,Ap5(g),3):E.return();r=E.yieldResult;if(!r.length)return E.return();r.forEach(function(B){var w={timestamp:B.timestamp};B=B.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:B.appShellAssetLoadReport,options:w}:B.clientError?{payloadName:"clientError",payload:B.clientError,options:w}:void 0;B&&
_.Jn(B.payloadName,B.payload,B.options)});
r.length===100&&_.F6.addLowPriorityJob(LZL);_.Q3(E)})},Vhv=function(g){if(g.playerResponse){if(g=g.playerResponse,g.messages&&g.messages.length>0&&(g=g.messages.find(function(r){return!(!r||!r.mealbarPromoRenderer)}))&&g.mealbarPromoRenderer)return g.mealbarPromoRenderer}else if(g.response&&(g=g.response)&&g.overlay&&g.overlay.mealbarPromoRenderer)return g.overlay.mealbarPromoRenderer},hwM=function(g){if(g.response){var r=g.response;
if(r&&r.overlay&&r.overlay.tooltipRenderer)return r.overlay.tooltipRenderer}if(g.playerResponse&&(g=g.playerResponse,g.messages&&g.messages.length>0&&(g=g.messages.find(function(E){return!(!E||!E.tooltipRenderer)}))&&g.tooltipRenderer))return g.tooltipRenderer},ygM=function(g){if(!ZuD&&(g=g||_.Ca("ZWIEBACK_PING_URLS"))&&g.length){ZuD=!0;
for(var r=0;r<g.length;r++)_.mS(g[r])}},d2$=function(g){if(_.jn.get(_.Ca("PLAYER_VARS",{}),"privembed",!1)!="1"){g&&H9A();
try{vgM().then(function(){},function(){}),_.Me(d2$,18E5)}catch(r){_.xF(r)}}},TXz=function(){var g=_.pu(),r=g.getFlag(119),E=window.devicePixelRatio>1;
document.body&&_.Kc(document.body,"exp-invert-logo")&&(E&&!_.Kc(document.body,"inverted-hdpi")?_.dL(document.body,"inverted-hdpi"):!E&&_.Kc(document.body,"inverted-hdpi")&&_.yy(document.body,"inverted-hdpi"));r!=E&&(_.Yg(0,119,E),g.save())},gDm=function(g){return g.filter(function(r){return"ypcGetCartEndpoint"in r||"ypcFixInstrumentEndpoint"in r})},rj5=function(g){return g.filter(function(r){return!_.n(r,_.ai4)})},Bz8=function(g,r){var E,B,w,O,M,u,l;
_.q(function(Q){switch(Q.nextAddress){case 1:E=_.tO.getInstance();B=_.G$.instance;w=_.Il.instance;if(!w)return ED5(g,B,r),Q.return();_.qN(Q,2);g.onLoadingCommand&&B.resolveCommand(g.onLoadingCommand);return _.D(Q,E.getCurrentPositionFromGeolocation(),4);case 4:O=Q.yieldResult;if(!g.resolveLocationCommand){Q.jumpTo(5);break}M=E.createLocationInfo(O);return _.D(Q,_.cK(w,g.resolveLocationCommand,{locationInfo:M}),6);case 6:u=Q.yieldResult;if(!u||"error"in u&&u.error||u.errorMetadata)return ED5(g,B,r),
Q.return();var z;if(u==null?0:(z=u.onResponseReceivedActions)==null?0:z.length){z=_.U(u.onResponseReceivedActions);for(var k=z.next();!k.done;k=z.next())B.resolveCommand(k.value)}(_.n(g.onSuccessCommand,_.LM)||_.n(g.onSuccessCommand,_.ka))&&_.Sh(r.hostElement,"yt-navigate",{endpoint:g.onSuccessCommand,reload:!0});case 5:_.Ne(Q,0);break;case 2:l=_.G2(Q);if(l instanceof GeolocationPositionError&&l.code===GeolocationPositionError.PERMISSION_DENIED)return g.onDeniedCommand&&B.resolveCommand(g.onDeniedCommand),
Q.return();ED5(g,B,r);_.Q3(Q)}})},ED5=function(g,r,E){g.onFailureCommand&&(r.resolveCommand(g.onFailureCommand),_.OS(E.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},S9L=function(g,r){var E=_.n(g,_.VIT);
if(E&&r){g=E.videoIds||[E.videoId];var B;r=(B=_.Sh(r,"yt-lockup-requested",{videoIds:g}).detail)==null?void 0:B.returnValue;var w;E.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?w=r?r:g.map(function(O){return{videoId:O,navigationEndpoint:E.videoCommand}}):r&&(w=r);
w&&(B=w.map(function(O){var M=Object,u=M.assign;var l=O.navigationEndpoint;if(!_.n(l,_.sP)){var Q=_.n(l,_.LM);if(Q){if(delete Q.index,delete Q.playlistId,Q=_.n(l==null?void 0:l.commandMetadata,_.dU),Q==null?0:Q.url){var z=Q.url;z=_.vE(z,"list");z=_.vE(z,"index");Q.url=z}}else l=void 0}return u.call(M,{},O,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:l})}),ws8(B,E))}},OfD=function(g){var r=_.Kn();
if(g=_.n(g,_.h$n))g.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&r.clearQueue(),g.closeMiniplayer&&_.rM().resolve(_.ea).close(!0)},M9L=function(g){UrM(_.Kn(),g)},q94=function(g){var r;
(g=(r=_.n(g,_.ixA))==null?void 0:r.setVideoIds)&&g.forEach(function(E){_.dRT(_.Kn(),E)})},lzL=function(g){ucA(_.Kn(),g)},DrF=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(g){return!1}},oDL=function(){var g,r;
return(r=(g=window).matchMedia)==null?void 0:r.call(g,"(prefers-reduced-motion: reduce)").matches},QcL=function(g){var r=_.rM().resolve(_.gM(_.HQ));
r&&GCt(r,g)},z9$=function(g,r,E){return{horizontalAlignment:g.x+E.width/2<r.width/2?"west":"east",
verticalAlignment:g.y+E.height/2<r.height/2?"north":"south"}},psg=function(g,r,E,B,w){w=w===void 0?new _.JL(0,0):w;
return kCm(Hfm(g,r,E,B),w)},Hfm=function(g,r,E,B){return new _.JL(g==="west"?16:E.width-B.width-16,r==="north"?16:E.height-B.height-16)},Y96=function(g,r){var E=0;
g&&(E+=76);r&&(E+=285);return E},R9D=function(g){var r=["h",
"m","s"],E=_.ZQ(r);E.reverse();var B={};g=(g.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(M){var u=(M.match(/[hms]/)||[""])[0];return u?(B[u]=parseInt(M.match(/\d+/)[0],10),!1):!0});
for(g.reverse();g.length&&E.length;){var w=E.shift();w in B||(B[w]=parseInt(g.shift(),10))}if(g.length||B.s>59||B.m>59||B.h>9)return null;var O="";r.forEach(function(M){B[M]&&(O+=""+B[M]+M)});
return O||null},nD5=function(g){g=g.data;
return _.G("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.G("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.G(_.vw,{data:{thumbnails:[{url:g.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.G("div",{class:"profile-badge-view-model-wiz__content"},_.G("div",{class:"profile-badge-view-model-wiz__badge-description"},g.badgeDesc),g.badgeSubtitle?_.G("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},g.badgeSubtitle):null))},sc5=function(g){g=
g.data;
var r=_.VI("yt-comment-interaction-view-model");vKL(r,g.rendererContext);return _.G("yt-comment-interaction-view-model",{el:r,class:"yt-comment-interaction-view-model-wiz"},_.G("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":g.onTapA11yLabel,"on:keydown":_.NJt(),tabindex:0},_.G("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.G("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},g.headerPrefix,' "',g.videoTitle),_.G("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.G("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.G("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},g.commentContent),_.G("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.G(_.vw,{data:{thumbnails:[{url:g.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},$rz=function(g){g=g.data;
return _.G("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},fzA(g.avatar),_.G("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},g.channelName))},jc8=function(g){g=g.data;
var r;return _.G("div",{class:"yt-profile-info-view-model-wiz__activity"},_.G("div",{class:"yt-profile-info-view-model-wiz__header"},_.G("div",{class:"yt-profile-info-view-model-wiz__section-title"},g.commentsInteractionTitle)),(r=g.comments)==null?void 0:r.map(function(E){return _.G("div",{class:"yt-profile-info-view-model-wiz__activity"},Zv(E))}))},Ajz=function(g){g=g.data;
var r=_.XI({elementsCommand:g.subscriptionsAccessButtonCommand}),E=_.VI("a");_.AbA(E,_.xP(g.subscriptionsAccessButtonCommand));var B;return _.G("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.G("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.G("a",{el:E,"on:click":_.HK(function(w){if(r==null?0:r.onclick)r.onclick(w);return!1}),
class:"yt-profile-info-view-model-wiz__another-header"},_.G("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},g.sharedSubscriptionsTitle),_.G("div",null,Zv(g.subscriptionsAccessButton)))),_.G("div",{class:"yt-profile-info-view-model-wiz__subs"},(B=g.sharedSubscriptions)==null?void 0:B.slice(0,5).map(function(w){return _.G("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",Zv(w))})))},bfm=function(g){g=g.data;
var r;return _.G("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.G("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.G("h2",{class:"yt-profile-info-view-model-wiz__section-title"},g.sharedSubscriptionsTitle)),_.G("div",{class:"yt-profile-info-view-model-wiz__subs"},(r=g.sharedSubscriptions)==null?void 0:r.slice(0,5).map(function(E){return _.G("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",Zv(E))})))},Jjt=function(g){g=g.data;
return _.G("div",{class:"yt-profile-info-view-model-wiz__activity"},[g.profileBadgeInfoYtWide,g.profileBadgeInfoChannelWide].map(function(r){var E,B,w,O,M;return r?_.G(_.wW,null,_.G("div",{class:"yt-profile-info-view-model-wiz__header"},_.G("div",{class:"yt-profile-info-view-model-wiz__section-title"},r==null?void 0:r.profileSectionTitle),_.G("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.G("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},r==null?void 0:(E=r.commentBadge)==
null?void 0:E.commentDesc),(r==null?0:(B=r.commentBadge)==null?0:B.blackHeartDesc)?_.G("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.G("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.G(_.vw,{data:{thumbnails:[{url:r==null?void 0:(w=r.commentBadge)==null?void 0:w.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.G("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},r==null?void 0:(O=
r.commentBadge)==null?void 0:O.blackHeartDesc))),_.G("div",{class:"yt-profile-info-view-model-wiz__badge"},r==null?void 0:(M=r.badges)==null?void 0:M.map(function(u){return _.G(nD5,{data:u})}))):null}))},P1m=function(g){g=g.data;
return _.G("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.G(Jjt,{data:g}),g.videosHorizontalShelf?_.G("div",{class:"yt-profile-info-view-model-wiz__videoShelfContainer"},Zv(g.videosHorizontalShelf)):null,g.comments?_.G(jc8,{data:g}):null,g.sharedSubscriptionsTitle?g.subscriptionsAccessButtonCommand?_.G(Ajz,{data:g}):_.G(bfm,{data:g}):null)},Fuz=function(g){var r=g.data;
g=r?t9$(r.profileIdentityInfo):void 0;r=r?t9$(r.profileInfo):void 0;return _.G("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},g,r)},e9D=function(g,r){var E=_.kGZ(r,{},g,!0);
return new Promise(function(B,w){E.listenOnce("n",function(){w(Error("ml`"+E.JSC$26126_getErrorDescription()))});
E.listenOnce("l",function(){var O=E.getResponseCode();if(O!==200)w(Error("nl`"+r+"`"+g.type+"`"+g.size+"`"+O));else try{B(JSON.parse(E.getResponseText()).encryptedBlobId)}catch(M){w(M)}});
E.run()})},WuF=function(g){return g.substring(g.indexOf(":")+1,g.indexOf(";"))},C1F=function(g){return new Promise(function(r,E){var B=new FileReader;
B.onloadend=function(){try{var w=new Uint8Array(B.result);w.length<8&&E(void 0);var O=w.subarray(0,8);w="";for(var M=0;M<O.length;M++)w+=("0"+O[M].toString(16)).substr(-2);w.startsWith("ffd8ff")?r("image/jpeg"):w.startsWith("47494638")?r("image/gif"):w.startsWith("89504e470d0a1a0a")?r("image/png"):w.startsWith("424d")?r("image/bmp"):r(void 0)}catch(u){E(u)}};
B.onerror=E;B.readAsArrayBuffer(g)})},Ku5=function(g){return new Promise(function(r,E){var B=new Image;
B.crossOrigin="anonymous";B.onload=function(){var w=document.createElement("canvas");w.width=B.naturalWidth;w.height=B.naturalHeight;var O=w.getContext("2d");if(!O)throw Error("ol");O.drawImage(B,0,0);O=WuF(g);w.toBlob(function(M){M?r(M):E()},O)};
B.src=g})},azA=function(g,r){var E;
if(((E=_.n(g,_.sP))==null?void 0:E.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var B;_.Sh((B=r.hostElement)!=null?B:r,"yt-shorts-reset");_.Ep4(_.rM().resolve(_.Qx),g).then(function(O){xrD(O,r,g)})}else{var w;
_.q2((w=r.hostElement)!=null?w:r,[g]).then(function(O){O&&xrD(O.data,r,g)})}},xrD=function(g,r,E){if(g){var B=_.n(g.replacementEndpoint,_.sP);
if(B){g.sequenceContinuation&&(B.sequenceParams=g.sequenceContinuation);var w;_.Sh((w=r.hostElement)!=null?w:r,"yt-navigate",{endpoint:g.replacementEndpoint})}else if((g==null?void 0:g.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(g==null?0:g.watchStatus)&&_.n(g.watchStatus,_.bcn)){var O;_.Sh((O=r.hostElement)!=null?O:r,"yt-navigate",{endpoint:E})}}},XsM=function(g){var r=_.rM().resolve(_.e2),E=db6(r.getState())||"";
r=_.jDc(r.getState())||"";E=E==="ytd-browse"&&r==="home";return _.Y("web_guide_entry_enable_cache_for_non_home_pages")?(g=(g==null?void 0:g.navigationEndpoint)&&_.zF(g.navigationEndpoint)==="home",{disableCache:E&&g}):{disableCache:E}},Nzg=function(g){if(!g)return!1;
try{if(g.host&&g.host.tagName==="YT-FORMATTED-STRING"&&g.host.id==="contenteditable-textarea"||g.nodeType===Node.ELEMENT_NODE&&g.tagName==="YTD-COMMENT-INPUT")return!0}catch(r){return!1}return Nzg(g.parentNode)},yS=function(g){return g?g.tagName==="A"&&g.href&&g.classList.contains("yt-simple-endpoint"):!1},IzL=function(g){return g?g.tagName==="IMG"&&g.classList.contains("emoji"):!1},mr5=function(g,r,E){if(!g)return null;
var B=yS(g);if(B&&E)return r=g.pathname.substring(g.pathname.indexOf("/channel/")+9),document.createTextNode("@"+r);if(B&&!E)return document.createTextNode("");if(IzL(g))return E=g.alt,g=g.dataset.emojiId,!g&&r&&(r=_.Qj(r,E))&&r.isCustomEmoji&&(g=r.emojiId),g?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+g+">"):document.createTextNode(E);B=g.cloneNode(!1);for(var w=0;w<g.childNodes.length;++w){var O=mr5(g.childNodes[w],r,E);O&&B.appendChild(O)}return B},vl=function(g){return g?yS(g)?g:vl(g.lastChild):
null},cjm=function(g){return g?yS(g)?g:cjm(g.firstChild):null},ifA=function(g){if(!g)return null;
for(var r=g.previousSibling;r;)if(r.nodeType===Node.ELEMENT_NODE&&r.nodeName==="BR")r=r.previousSibling;else if(r.nodeType===Node.TEXT_NODE&&/\s+/.test(r.textContent))r=r.previousSibling;else break;(r=vl(r))?g=r:g=(g=g.parentNode)?vl(g.previousElementSibling):null;return g},Lu4=function(g){if(!g)return null;
for(var r=g.nextSibling;r;)if(r.nodeType===Node.ELEMENT_NODE&&r.nodeName==="BR")r=r.nextSibling;else if(r.nodeType===Node.TEXT_NODE&&/\s+/.test(r.textContent))r=r.nextSibling;else break;return(r=cjm(r))?r:Lu4(g.parentNode)},V98=function(g){var r=_.kj(),E=r.JSC$9384_getStartNode();
if(!Nzg(E.parentNode))return null;r=r.JSC$9384_getStartOffset();if(E.nodeType===Node.TEXT_NODE){var B=_.CN(E,yS);if(B){if(g&&r===0||!g&&r===E.length)return B}else{if(g&&r===E.length)return!E||E.nodeName==="BR"||E.nextElementSibling&&_.Hm(E.nextElementSibling,"display")==="block"?null:cjm(E.nextElementSibling);if(!g&&r===0)return E?vl(E.previousElementSibling):null}}if(E.nodeType===Node.ELEMENT_NODE)if(g){if(0<=r&&r<E.childNodes.length)return cjm(E.childNodes[r])}else if(0<r&&r<=E.childNodes.length)return vl(E.childNodes[r-
1]);return null},h9t=function(g,r,E){if(!g)return null;
if(g.nodeType===Node.TEXT_NODE)if(E){var B=ifA(g);if(B&&!/^\s+\S/.test(g.wholeText.substr(0,r)))return B}else if((B=Lu4(g))&&!/\S\s+/.test(g.wholeText.substr(r,g.wholeText.length)))return B;return g.nodeType===Node.ELEMENT_NODE?E?ifA(g.childNodes[r]):Lu4(g.childNodes[r]):h9t(g.parentNode,r,E)},ZfM=function(g){if(g.hasChildNodes())switch(g.tagName){case "DIV":case "A":case "SPAN":var r="";
for(g=g.firstChild;g;g=g.nextSibling)r+=ZfM(g);return r;default:return""}else switch(g.nodeType){case 3:return g.textContent;default:return""}},yj5=function(g){g=g.data;
return _.G("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.G("div",null,_.G(_.hf,{text:g.title})),g.subtitle?_.G("div",{class:"ytd-menu-title-renderer__subtitle"},_.G(_.hf,{text:g.subtitle})):null)},vD4=function(g){switch(g){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"}},drz=function(g){return g.map(function(r){return{settingsRadioOptionRenderer:{title:_.E9(r.name),
asideText:_.E9(r.approximateSize),id:vD4(r.format)}}})},gat=function(g){if(g&&g.length!==0)return g.filter(Tzg()).map(function(r){return{settingsRadioOptionRenderer:{title:r.name,
asideText:r.approximateSize,id:vD4(r.formatType)}}})},dP=function(g){if(g)return g.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},rO$=function(g,r){g=new Set(g!=null?g:[]);
if(g.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(g.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(g.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(g.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(g.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(r)return"YOUTUBE_ENTITY_TYPE_DEFAULT"},EaD=function(g){var r=g.indexOf("(");
return r!==-1?g.substring(r+1,g.length-1):g},Bb$=function(g){switch(g){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},SPz=function(g,r,E,B,w,O){var M=_.jn.clone(wog);
M.locale=_.Ca("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;M.report={description:w||"<empty>"};w=_.Ca("SBOX_SETTINGS",{});r=r.join(",");var u=Date.now();g={choice_cc:B,choice_id_cc:E,choices_sc:r,gl:w.REQUEST_DOMAIN,hl:w.REQUEST_LANGUAGE,query:g,time:u};O&&(g.choice_additional_comment_cc=O);_.sxA(M,g)},OyF=function(g){var r=new Map;
r.set("authuser",_.Ca("SESSION_INDEX","0"));return _.Sn(g,r)},MNM=function(g){var r;
return _.q(function(E){switch(E.nextAddress){case 1:if(!g||!U8F(g))return E.return(null);r=null;switch(_.Ca("INNERTUBE_CLIENT_NAME")){case "WEB":return E.jumpTo(2);case "WEB_REMIX":r=g.getPlayer()}E.jumpTo(3);break;case 2:return _.D(E,g.getPlayerPromise(),4);case 4:r=E.yieldResult;E.jumpTo(3);break;case 3:return E.return(r)}})},U8F=function(g){return["ytd-player",
"ytmusic-player"].includes(String(g.tagName||"").toLowerCase())},qPM=function(g){g=Math.round(g);
return g%2?g-1:g},uT8=function(g){g=Math.round(g);
return g%2===0?g-1:g},l1t=function(g){var r,E,B;
if(g=(r=g.createPlaylistDialogFormSchema)==null?void 0:(E=r.fieldSchemas)==null?void 0:(B=E.title)==null?void 0:B.validationSchema)for(r=[g.syncStep,g.asyncStep].filter(function(w){return w!==void 0}),r=_.U(r),E=r.next();!E.done;E=r.next()){E=E.value.rules;
if(!E)break;E=_.U(E);for(E=E.next();!E.done;E=E.next())return _.n(E.value,_.GPz)}},oaD=function(g){var r,E,B;
if(g=(r=g.createPlaylistDialogFormSchema)==null?void 0:(E=r.fieldSchemas)==null?void 0:(B=E.visibility)==null?void 0:B.validationSchema)for(r=[g.syncStep,g.asyncStep].filter(function(w){return w!==void 0}),r=_.U(r),E=r.next();!E.done;E=r.next()){E=E.value.rules;
if(!E)break;E=_.U(E);for(B=E.next();!B.done;B=E.next())if(B=_.n(B.value,D8t))return r=void 0,(r=B.translations)==null?void 0:r.visibilityNotValidErrorMessage}},GFA=function(){var g,r;
return(r=(g=_.rM().resolve(_.gM(_.Vy)))==null?void 0:g())!=null?r:!1},QJM=function(g){var r=21;
if(!g)return r;r+=g.headerTitle?27:0;r+=g.headerTitle&&g.hasHeaderActionHeader?4:0;return r+=g.headerTitle&&g.headerSubtitle?16:0},z8t=function(g){var r=0;
if(!g)return r;r+=g.hasFooterPrimaryButton||g.hasFooterSecondaryButton?48:0;r+=g.footerTrailingLabel||g.footerLeadingLabel?30:0;return r+=g.hasFooterPrimaryButton||g.hasFooterSecondaryButton||!g.footerTrailingLabel&&!g.footerLeadingLabel?0:12},kFM=function(g){var r=new _.GZ,E=g;
return{subscribe:function(B){r.subscribe("changed",B)},
dispatch:function(B,w){var O=E;B==="Touch Start"?E=Object.assign({},O,{isAnimating:!1,initialY:w.event.touches[0].clientY}):B==="Touch Move"?(B=Math.min(w.fullContentWrapperHeight,w.contentHeightMap[w.contentWrapperId]+QJM(w.header)-z8t(w.footer)),E=Object.assign({},O,{currentY:Math.max(w.contentScrollable?-1*(O.initialY-24):0,w.event.touches[0].clientY-O.initialY),maxHeightForContentWrapper:Math.min(B,Math.max(0,(O.isFullScreen?B:w.contentWrapperHeight)-O.currentY))})):E=B==="Snap To Full Screen"?
Object.assign({},O,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:w.maxHeight}):B==="Snap To Neutral Position"?Object.assign({},O,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:w.maxHeight}):B==="Close Sheet"?Object.assign({},O,{isAnimating:!0,currentY:w.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:w.maxHeight}):O;r.publish("changed",E)}}},Hyv=function(g){return _.HK(function(r){g(r);
return!1})},poM=function(){_.rM().resolve(_.Hh).closeSheet()},YPz=function(g){var r,E,B,w,O,M,u,l,Q,z,k;
return{headerTitle:(r=g.headerTitle)==null?void 0:r.call(g),headerSubtitle:(E=g.headerSubtitle)==null?void 0:E.call(g),headerActionHeader:g.headerActionHeader,footerPrimaryButton:g.footerPrimaryButton,footerSecondaryButton:g.footerSecondaryButton,footerButtonType:(B=g.footerButtonType)==null?void 0:B.call(g),footerLeadingLabel:(w=g.footerLeadingLabel)==null?void 0:w.call(g),footerTrailingLabel:(O=g.footerTrailingLabel)==null?void 0:O.call(g),shouldShowIcons:(M=g.shouldShowIcons)==null?void 0:M.call(g),
skipContentClick:(u=g.skipContentClick)==null?void 0:u.call(g),additionalClassName:(l=g.additionalClassName)==null?void 0:l.call(g),onClosedCallback:g.onClosedCallback,focusOnClose:(Q=g.focusOnClose)==null?void 0:Q.call(g),isDisabled:(z=g.isDisabled)==null?void 0:z.call(g),disabledCommand:(k=g.disabledCommand)==null?void 0:k.call(g),headerFn:g.headerFn,contentFn:g.contentFn,footerFn:g.footerFn,hasHeaderFn:g.hasHeaderFn(),hasContentFn:g.hasContentFn(),hasFooterFn:g.hasFooterFn(),hasFooterPrimaryButton:g.hasFooterPrimaryButton(),
hasFooterSecondaryButton:g.hasFooterSecondaryButton(),hasHeaderActionHeader:g.hasHeaderActionHeader()}},R8A=function(g){switch(g){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""}},na5=function(g){switch(g){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""}},sJ$=function(g){switch(g){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""}},f16=function(g,r,E){r.forEach(function(B){_.MJ(_.rM().resolve(_.Y8),B)});
_.OS(g,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",E])},byF=function(g,r,E,B){var w=_.n(E,_.xT).commandLifeCycleConfig;
w&&w.onStartCommand&&_.uq(g,[w.onStartCommand],r);_.m7(r);var O=_.Il.instance;O&&_.mJ(O,E)?_.cK(O,E,B).then(function(M){if(!M||(M==null?0:M.error))return M=_.n(E,_.xT).serializedTransactionFlowLoggingParams,_.cm(r),_.bV(new Tc("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",M));_.cm(r);return{data:M}}).then(function(M){_.cm(r);
$8m(M.data);var u=M.data.command;u&&_.uq(g,[u],r);u=jJF(E,M.data);if(!u){var l=M.data;M=!1;if(l&&l.command&&_.n(l.command,_.D$)){var Q;l=((Q=_.n(l.command,_.D$))==null?void 0:Q.commands)||[];for(Q=0;Q<l.length;Q++)if(_.n(l[Q],_.RtZ)){M=!0;break}}M||_.$l('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!u&&w&&w.onSuccessCommand?_.uq(g,[w.onSuccessCommand],r):u&&w&&w.onFailureCommand&&_.uq(g,[w.onFailureCommand],r)},function(){_.cm(r);
w&&w.onFailureCommand&&_.uq(g,[w.onFailureCommand],r);AOz(E)}):_.tn(Error("Fl"),"ERROR")},JOM=function(g,r,E){var B=[r];
E&&B.push(E);return _.q2(g,B).then(function(w){var O=_.n(r,_.xT).serializedTransactionFlowLoggingParams,M=w.data,u=jJF(r,M);u?w=_.bV(new Tc(u,O)):$8m(M);return w},function(){var w=_.n(r,_.xT).serializedTransactionFlowLoggingParams;
AOz(r);return _.bV(new Tc("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",w))})},jJF=function(g,r){g=_.n(g,_.xT).serializedTransactionFlowLoggingParams;
var E=null;switch(r.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":E="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":E="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":E="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}E?_.VP(E,g):mbz(g);return E},AOz=function(g){_.VP("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.n(g,_.xT).serializedTransactionFlowLoggingParams)},
$8m=function(g){if(g.trackingParams){var r=_.PE(),E=_.JF();
r&&E&&_.N2(r,E,_.fW(g.trackingParams))}},PF$=function(g,r,E){var B=_.Il.instance,w=_.cUS(_.Ca("YPC_MB_URL")),O=(new _.ITL).init(),M=_.mIS(),u=_.n(E,_.kmT).languageCode;
u===void 0?_.tn(Error("Ji"),"ERROR"):_.pc([O,w]).then(function(){var l={ctk:payments.business.integration.ClientTokenFactory.createClientToken(u,M)};B&&_.mJ(B,E)?_.cK(B,E,l).then(function(Q){return{data:Q}}).then(function(Q){_.Sh(r,"yt-service-request-completed",Q);
Q.code!=="ERROR"&&(Q=Q.data.command)&&_.uq(g,[Q],r)}):_.tn(Error("Fl"),"ERROR")})},e8M=function(g,r,E,B){var w=_.Il.instance;
w&&_.mJ(w,E)?_.cK(w,E,B).then(function(O){return{data:O}}).then(function(O){tN5(g,r,E,O)},function(){F$m(E)}):(w=_.rM().resolve(_.gM(_.eN)))&&w.requestDataForServiceEndpoint(E,B).then(function(O){tN5(g,r,E,O)},function(){F$m(E)})},tN5=function(g,r,E,B){_.Sh(r,"yt-service-request-completed",B);
if(B.code&&B.code=="ERROR")F$m(E);else{(B=B.data.commands)&&_.uq(g,B,r);var w;(g=(w=_.n(E,_.sHZ))==null?void 0:w.serializedYpcPauseFlowLoggingParams)&&g&&_.PQ("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",g)}},F$m=function(g){var r;
(g=(r=_.n(g,_.sHZ))==null?void 0:r.serializedYpcPauseFlowLoggingParams)&&g&&_.PQ("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",g,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},K$5=function(g,r,E){var B=_.Il.instance;
B&&_.mJ(B,E)?_.cK(B,E).then(function(w){return{data:w}}).then(function(w){W$5(g,r,E,w)},function(){CFF(E)}):(B=_.rM().resolve(_.gM(_.eN)))&&B.requestDataForServiceEndpoint(E).then(function(w){W$5(g,r,E,w)},function(){CFF(E)})},W$5=function(g,r,E,B){_.Sh(r,"yt-service-request-completed",B);
B.code&&B.code=="ERROR"?CFF(E):((B=B.data.commands)&&_.uq(g,B,r),(g=_.n(E,_.fin).serializedYpcResumeFlowLoggingParams)&&g&&_.PQ("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",g))},CFF=function(g){(g=_.n(g,_.fin).serializedYpcResumeFlowLoggingParams)&&g&&_.PQ("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",g,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},x85=function(g){g=g===void 0?{}:g;
_.rM().resolve(_.iEm).showFeedbackDialog(g.customProductData,g.feedbackContent,g.onFeedbackSubmitted,g.bucket)},a1v=function(g){g=g===void 0?{}:g;
_.rM().resolve(_.iEm).showHelpDialog(g.helpContext,g.articleId,g.productData)},XoL=function(){a1v()},NbL=function(){x85()},m8D=function(g,r,E){var B,w,O,M,u,l,Q;
return _.q(function(z){switch(z.nextAddress){case 1:B=_.n(g,I18);if((w=B)==null?0:w.productId){l={productId:B.productId,bucket:B.bucket,enableAnonymousFeedback:(u=B.enableAnonymousFeedback)!=null?u:!0,allowNonLoggedInFeedback:!0};Q={feedbackChoice:E.feedbackChoice};if(!_.Y("web_collect_offline_state")){z.jumpTo(8);break}_.qN(z,9);return _.D(z,g5$(Q),11)}M={bucket:(O=B)==null?void 0:O.bucket};if(!_.Y("web_collect_offline_state")){z.jumpTo(4);break}M.customProductData={};_.qN(z,5);return _.D(z,g5$(M.customProductData),
7);case 7:_.Ne(z,4);break;case 5:_.G2(z);case 4:x85(M);z.jumpTo(0);break;case 11:_.Ne(z,8);break;case 9:_.G2(z);case 8:_.eAJ(Q),_.FOL("GFEEDBACK",Q),B.productId==="5295751"&&(Q.client_attestation=Number(_.Ca("CATSTAT",0))),B.productId==="5295751"&&(Q.client_time=Date.now()/1E3/3600),B.productId==="5295751"&&(Q.original_playback_id=_.qV6||""),_.sxA(l,Q),_.Q3(z)}})},cOM=function(g){if(g=_.n(g,_.VrA)){var r={bucket:g.bucketIdentifier};
g.additionalDatas&&(r.customProductData={},g.additionalDatas.forEach(function(E){if(E=E.userFeedbackEndpointProductSpecificValueData)r.customProductData[E.key]=E.value}));
x85(r)}},iyM=function(g){var r=_.mH.getInstance();
var E=_.zn("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var B=_.zn("DELETE",void 0,"Delete"),w=_.zn("CANCEL",void 0,"Cancel");E=U_m(E,void 0,B,w,{signal:"DELETE_ALL_DOWNLOADS"});_.Ah(r,[{openPopupAction:E}],g)},VNF=function(){return _.q(function(g){return g.nextAddress==1?_.D(g,_.rM().resolve(_.yQ),2):_.D(g,L$t(),0)})},h8z=function(g){var r,E;
return _.q(function(B){return B.nextAddress==1?(E=(r=_.n(g,_.aI))==null?void 0:r.targetId)?_.D(B,_.rM().resolve(_.yQ),3):B.jumpTo(0):_.D(B,_.rM().resolve(_.Z6).deleteVideo(E),0)})},yOF=function(g){var r,E;
return _.q(function(B){return B.nextAddress==1?(E=(r=_.n(g,_.aI))==null?void 0:r.targetId)?_.D(B,_.rM().resolve(_.yQ),3):B.jumpTo(0):_.D(B,Zy6(_.rM().resolve(_.Z6),E),0)})},d88=function(g){var r,E;
return _.q(function(B){return(E=(r=_.n(g,_.aI))==null?void 0:r.targetId)?_.D(B,vat(E),0):B.jumpTo(0)})},gkz=function(){_.Y("kevlar_woffle_refresh_dl_load_killswitch")||TbM()},EkD=function(){_.Y("kevlar_woffle")&&_.Po.instance&&rC6()},wit=function(g){var r;
if((r=_.n(g,_.DB))==null||!r.videoId)return!1;BGz(_.rM().resolve(_.Z6),_.n(g,_.DB),g.clickTrackingParams);return!0},ORv=function(g){var r;
if((r=_.n(g,_.o$))==null||!r.playlistId)return!1;SNm(_.rM().resolve(_.Z6),_.n(g,_.o$),g.clickTrackingParams);return!0},M3m=function(g){var r=_.n(g,_.oTT);
(r==null?void 0:r.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(r==null?void 0:r.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||U1M(_.rM().resolve(_.Z6),_.n(g,_.oTT))},u7D=function(g){g=_.n(g,_.N86);
var r;(g==null?0:(r=g.actions)==null?0:r.length)&&qNF(g)},okt=function(g){var r,E;
return _.q(function(B){r=_.n(g,lo5);return(E=r)!=null&&E.localWatchHistoryCommandType?_.D(B,D1D(r),0):B.return()})},Gb8=function(g){setTimeout(function(){requestAnimationFrame(g)},80)},QbM=function(g){return Object.entries(g).map(function(r){return r.join(":")}).join(";")},kbD=function(g){var r,E,B;
_.q(function(w){if(w.nextAddress==1)return _.D(w,zNL(),2);r=w.yieldResult;E=_.G$.instance;switch(r){case "granted":B=g.getLocationCommand;break;case "denied":B=g.openDeniedDialogAction;break;case "prompt":B=g.openCollectionDialogAction;break;default:B=g.openCollectionDialogAction}B&&E.resolveCommand(B);_.Q3(w)})},zNL=function(){var g,r;
return _.q(function(E){if(E.nextAddress==1)return g="prompt",navigator.permissions?_.D(E,navigator.permissions.query({name:"geolocation"}),3):E.jumpTo(2);E.nextAddress!=2&&(r=E.yieldResult,g=r.state);return E.return(g)})},piF=function(){_.q(function(g){return _.D(g,_.HRg(),0)})},YNF=function(){var g,r,E;
return _.q(function(B){if(B.nextAddress==1)return g=_.rM().resolve(_.Wo),g?_.D(B,_.cK(g,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.el(Error("Il")),B.return(void 0));if(r=B.yieldResult){if(r.errorMetadata)return _.el(Error("Jl`"+r.errorMetadata.status+"`"+r.error)),B.return(void 0);E=r.datasyncIds;_.Vmw=E.length;return B.return(E)}_.el(Error("Kl"));return B.return(void 0)})},RNL=function(){YNF().then(function(g){g&&($_z(g),iCg(g),kx$(g),BH$(g))})},nkg=function(g){_.F6.addLowPriorityJob(function(){var r,
E,B,w,O;
return _.q(function(M){switch(M.nextAddress){case 1:if(_.Y("ytidb_clear_optimizations_killswitch")){M.jumpTo(2);break}r=_.p3("clear");if(r.startsWith("V")&&r.endsWith("||")){var u=[r];$_z(u);iCg(u);kx$(u);BH$(u);return M.return()}E=HCt();B=w3M();return _.D(M,LHg(),3);case 3:return w=M.yieldResult,_.D(M,jT6(),4);case 4:if(O=M.yieldResult,!(E||B||w||O))return M.return();case 2:g.isNetworkAvailable()?RNL():g.listenOnce("publicytnetworkstatus-online",RNL),_.Q3(M)}})})},g6=function(g){g={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.Lf(g)}}}};_.G$.instance&&_.G$.instance.resolveCommand(g)},sbg=function(g){if(g){var r=_.pW();
_.wT(r,3854,void 0,{layer:0,parentLayer:4});switch(g){case 1:var E=238708;break;case 2:E=238715;break;case 3:E=238710;break;case 6:E=238709}E&&(g=_.Hw(r,{veType:E}))&&_.Uk(r,g)}},fo8=function(g){if(g){var r=_.pW();
_.wT(r,3854,void 0,{layer:0,parentLayer:4});switch(g){case 1:var E=238714;break;case 2:E=238711;break;case 8:E=238709;break;case 7:E=238713;break;case 3:case 4:case 5:E=238712}E&&(g=_.Hw(r,{veType:E}))&&_.Uk(r,g)}},$1A=function(g){switch(g.latencyType){case 0:_.tg("consent_primitive_flow");
_.F4("cpit",g.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.F4("cpist",g.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.F4("cprtif",g.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.F4("cprtli",g.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.F4("cprt",g.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.F4("cpdt",g.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.F4("cpjct",g.timestampEpochMillis,"consent_primitive_flow")}},
Cav=function(g,r){var E,B,w,O,M,u,l,Q,z,k,H,R,A,J,e,C,X,Z,c,h;
return _.q(function(y){switch(y.nextAddress){case 1:_.qN(y,2);(B=(E=_.n(g,jbt))==null?void 0:E.serializedConsentRequest)||(B=(w=_.n(g,ACv))==null?void 0:w.serializedConsentRequest);B&&(O=bRM(_.Mz(B)));if(O===void 0)return y.return();M=JC$(O);M.latencyCallback=$1A;r&&Pam(M,function(){r.then(function(OD){OD.pauseVideo();(new t3A).increment()})});
return((u=_.n(g,jbt))==null?void 0:u.consentAction)==="CONSENT_ACTION_PREWARM"||((l=_.n(g,ACv))==null?void 0:l.consentAction)==="CONSENT_ACTION_PREWARM"?_.D(y,FGm(M),5):_.D(y,eND(M),6);case 6:Q=y.yieldResult;z=_.px(Q,r6);if(z===1){if(((k=_.PL(Q,EF,1,r6))==null?void 0:_.AX(k,1))===1||((H=_.PL(Q,EF,1,r6))==null?void 0:_.AX(H,1))===2||((R=_.PL(Q,EF,1,r6))==null?void 0:_.AX(R,1))===3)_.n(g,ACv)?g6(_.zn("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
g6(_.zn("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));sbg((A=_.PL(Q,EF,1,r6))==null?void 0:_.AX(A,1),_.ER(Q,WG8,3,_.BT()))}else z===2?(((J=BR(Q))==null?void 0:_.AX(J,1))===5?_.n(g,ACv)?g6(_.zn("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):g6(_.zn("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((e=BR(Q))==null?void 0:_.AX(e,1))===1||((C=BR(Q))==null?void 0:_.AX(C,1))===4?g6(_.zn("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((X=BR(Q))==null?void 0:_.AX(X,1))===7&&((Z=O)==null?void 0:(c=_.zP(Z,w6,4))==null?void 0:_.AX(c,4))!==1&&g6(_.zn("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),fo8((h=BR(Q))==null?void 0:_.AX(h,1))):g6(_.zn("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));y.jumpTo(5);break;case 5:_.Ne(y,0);break;case 2:_.G2(y),g6(_.zn("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.Q3(y)}})},x1v=function(){if(!KGD.has("Worker")){KGD.set("Worker",
!0);
var g={api:"BROWSER_API_WEB_WORKER"};g.available="Worker"in window?!0:!1;_.Jn("apiTest",g)}},aov=function(g){return typeof g==="undefined"?"-1":String(Math.ceil(g/1048576))},m1v=function(g,r){Xi8(new NGM(_.n(r,IoL).addToken,_.n(r,IoL).commonToken)).then(function(){_.Sh(g,"yt-invoke-instrument-manager-action-completed")},function(E){_.Sh(g,"yt-invoke-instrument-manager-action-error",E)})},cC6=function(g){return _.Cx(g)},iRF=function(g){var r=1;
g=g.split(":");for(var E=[];r>0&&g.length;)E.push(g.shift()),r--;g.length&&E.push(g.join(":"));return E},LG4=function(g,r){r=g.aspectRatio()<=r.aspectRatio()?r.width/g.width:r.height/g.height;
g.scale(r)},V35=function(g,r){r=g.aspectRatio()>r.aspectRatio()?r.width/g.width:r.height/g.height;
return g.scale(r)},hND=function(g){var r=new _.B2;
return _.tX(r,11,g)},ZRm=function(g){var r={};
g=g.getAllResponseHeaders().split("\r\n");for(var E=0;E<g.length;E++)if(!_.qo(g[E])){var B=iRF(g[E]),w=B[0];B=B[1];if(typeof B==="string"){B=B.trim();var O=r[w]||[];r[w]=O;O.push(B)}}return _.jn.map(r,function(M){return M.join(", ")})},Dv=function(g,r){return g.JSC$7885_xhr_?g.JSC$7885_xhr_.getResponseHeader(r):null},yC$=function(g,r){if(g.isDisposed())throw Error("Ja");
g.e5.jJ("n");var E=_.Ae(g.e5,function(){return g.v0I([r.zp,r.ykm,r.dFB,r.sY6])},"n");
g.e5.voO(E.length);g.e5.be();return E},S4=function(g,r,E){Array.isArray(E)||(E=[String(E)]);
_.ErD(g.JSC$8122_queryData_,r,E);return g},rC6=function(){var g=_.Po.instance;
_.q(function(r){return g.deferredInstallPrompt?_.D(r,g.deferredInstallPrompt.prompt(),0):r.jumpTo(0)})},vkM=function(g,r,E){if(_.vJ(g))_.mR(g,r,E);
else for(g=_.D_w(g);;){var B=g.next();if(B.done)break;r.call(E,B.value,void 0,g)}},d1t={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}"]},hhL,ZW6,yM6,vP5,dyM,TLM,g3v,rR8,E3D,vat,Zy6,L$t,BtM,wK5,SBt,Ohg,Uh5,Mkz,SNm,BGz,qB8,uAD,lyt,TbM,U1M,Dhm,qNF,o3L,D1D,Gwv,QlM,zcz,kwM,HhM,pKg,YBM,Rc8,
n3t,slt,fyv,$h$,GCt,jlD,ARz,bh4,JR4,PW4,tk4,FJM,UrM,ws8,ec5,lS,D5,oP,G9,WJ6,CW8,KJm,xhL,ayF,XKt,Ntz,IyM,mhM,cRL;d1t={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 TG$=function(g,r){var E=[];vkM(r,function(B){try{var w=_.wU.prototype.getWrapper.call(this,B,!0)}catch(O){if(O=="Storage: Invalid value was encountered")return;throw O;}w===void 0?E.push(B):_.lHZ(w)&&E.push(B)},g);
return E},gPm=function(g,r){TG$(g,r).forEach(function(E){_.wU.prototype.remove.call(this,E)},g)},rM4=function(g){var r=_.K7;
r._minimumZ=Math.max(r._minimumZ,g)},EPA=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],BLF=function(g,r){_.TM(g.hm);g.hm=r},ww6=function(g,r,E,B){g.setState(5);
var w=!!g.vDq&&EPA.includes(_.Zn(g.vDq)||"");try{var O=new _.b8({program:r,globalName:E,dfg:{disable:!_.Y("att_web_record_metrics")||!_.Y("att_skip_metrics_for_cookieless_domains_ks")&&w,hL:"aGIf"}});O.nrh.then(function(){g.setState(6);B&&B(r)});
BLF(g,O)}catch(M){g.setState(7),M instanceof Error&&_.el(M)}},S2L=function(g,r,E,B,w,O){var M=M===void 0?"trayride":M;
E?(g.setState(2),_.xy(E,function(){if(window[M])ww6(g,B,M,w);else{g.setState(3);var u=_.hgA(E),l=document.getElementById(u);l&&(_.d8t(u),l.parentNode.removeChild(l));_.el(new _.Rj("BL:ULB",E))}},O)):r?(O=_.HT("SCRIPT"),r instanceof _.aC?_.IC(O,r):O.textContent=r,O.nonce=_.xU(document),document.head.appendChild(O),document.head.removeChild(O),window[M]?ww6(g,B,M,w):(g.setState(4),_.el(new _.Rj("BL:ULBJ")))):_.el(new _.Rj("BL:ULV"))},OWD=function(){this.state=1;
this.hm=null;this.vDq=void 0};
_.S=OWD.prototype;_.S.initialize=function(g,r,E,B){this.vDq=B;if(g.program){var w;B=(w=g.interpreterUrl)!=null?w:null;if(g.interpreterSafeScript)w=_.Y9A(g.interpreterSafeScript);else{var O;w=(O=g.interpreterScript)!=null?O:null}g.interpreterSafeUrl&&(B=_.eE(g.interpreterSafeUrl).toString());S2L(this,w,B,g.program,r,E)}else _.el(Error("qf"))};
_.S.isInitialized=function(){return!!this.hm};
_.S.getState=function(){return this.state};
_.S.isLoading=function(){return this.state===2};
_.S.invoke=function(g){g=g===void 0?{}:g;var r;this.hm?r=yC$(this.hm,{zp:g}):r=null;return r};
_.S.dispose=function(){BLF(this,null);this.setState(8)};
_.S.setState=function(g){this.state=g};
var UyL=function(g,r){return g.hm.snapshot(r)},M_M=function(g,r){var E=_.wM("botguard_async_snapshot_timeout_ms",3E3);
r=r===void 0?{}:r;E=E===void 0?3E3:E;return g.hm?new Promise(function(B,w){var O=!1,M=_.F6.addJob(function(){O=!0;w(Error("rf"))},1,E);
g.hm?UyL(g,{zp:r}).then(function(u){_.F6.cancelJob(M);O||B(u)}).catch(function(u){_.F6.cancelJob(M);
O||w(u)}):(_.F6.cancelJob(M),B(null))}):Promise.resolve(null)},q2A=["att/log"],uI$;
uI$={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var lhg={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},Dy8=function(g,r){return _.zC(g,{mode:"readwrite",enableRetries:!0},function(E){return _.j4J(E,r,"settingEntity")})},oP5=function(g,r,E){return _.zC(g,{mode:"readonly",
enableRetries:!0},function(B){return _.VbZ(B,r,E)})},G$5=function(g){if(!g.storage)return!1;
a:{if(g.storage){try{var r=g.storage.get("TLPQtimestamp")}catch(E){}g=Number(r);if(!isNaN(g))break a}g=void 0}return g?Date.now()-g<864E5:!1},Q34=function(g){if(g.storage){try{var r=g.storage.get("TLPQindex")}catch(E){}g=Number(r);
if(!isNaN(g))return g}},zh8=function(g,r){g.queueProxy&&r.forEach(function(E){if(E.videoId&&E.trackingParams&&g.queueProxy instanceof _.bT){var B=_.PE();
g.queueProxy.attributionData.set(E.videoId,{enqueueingVe:_.fW(E.trackingParams).getAsJson(),enqueueingCsn:B?B:void 0,clientEnqueueingTimeMs:Math.floor((0,_.g2)()).toString()})}})},k$L=function(g){var r=_.AKA(g);
r!=g.currentSnapState_&&(g.currentSnapState_=r,g.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},OF=function(g){this.JSC$11190_networkManager_=g;
this.partCallbacks_=[]};
OF.prototype.getCacheKeyForEndpoint=function(g){return _.MtQ(g,!1)};
OF.prototype.onPartsCallback_=function(g){this.partCallbacks_.forEach(function(r){g&&r(g)})};
var UF=function(g,r,E){OF.call(this,g);this.player_=r;this.autoplayData_=E};
_.f(UF,OF);UF.prototype.getCacheKeyForEndpoint=function(g){return _.MtQ(g,!!this.autoplayData_)};
UF.prototype.getTempData=function(g,r){r=r.timeBeforeNextVideo;g={itct:g.clickTrackingParams,lact:_.Eq(),pbis:r,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(g.autonav=1);return g};
UF.prototype.getXhrParams=function(g){return Object.assign({pbj:"prefetch"},g)};
UF.prototype.getParams=function(g){g={frags:g.fragmentsRequested.join(",")};_.Y("kevlar_droppable_prefetchable_requests")&&(g.prefetch=1);return g};
var HWD=function(g){g.playerEvents_.forEach(function(r){g.player.removeEventListener(r.eventName,r.callback)});
g.playerEvents_.length=0},MK=function(g,r,E){this.player=g;
this.JSC$11200_taskManager=r;this.prefetchDelay=E;this.completionResolver_=null;this.playerEvents_=[]};
MK.prototype.start=function(){var g=this;this.completionResolver_=_.iW();_.Y$(this.completionResolver_.promise,function(){HWD(g);g.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var pwA=function(g,r,E){g.player.addEventListener(r,E);g.playerEvents_.push({eventName:r,callback:E})},Y26={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},Rhz={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},nPv=function(g,r,E){MK.call(this,g,r,E);this.cueId_="playbackTrigger-"+Math.random()};
_.f(nPv,MK);
nPv.prototype.prepareTrigger=function(g){var r=this,E=this.player.getDuration(),B=this.player.getVideoData(),w=B.isLive&&B.hasProgressBarBoundaries;if(w&&B.progressBarEndPositionUtcTimeMillis){var O=B.progressBarEndPositionUtcTimeMillis/1E3;isNaN(O)||(E=O)}var M=0;this.prefetchDelay>=0?w?B.progressBarStartPositionUtcTimeMillis&&(B=B.progressBarStartPositionUtcTimeMillis/1E3,isNaN(B)||(M=B+this.prefetchDelay)):M=this.prefetchDelay:M=E+this.prefetchDelay;w?this.player.addUtcCueRange(this.cueId_,M,E):
this.player.addCueRange(this.cueId_,M,E);_.Y$(g.promise,function(){r.player.removeCueRange(r.cueId_)});
pwA(this,"onCueRangeEnter",function(u){u==r.cueId_&&g.resolve(E-M)})};
var s3D=function(g,r){g.fragmentConfiguration_[r].requiredKeys.every(function(E){return!!g.prefetchedData_[E]})&&(g.validatedFragments_.push(r),r=g.missingFragments_.indexOf(r),r!==-1&&g.missingFragments_.splice(r,1))},fhF=function(g){g.prefetchedFragments_.forEach(function(r){s3D(g,r)})},$y6=function(g,r,E){this.pageFragments_=g;
this.prefetchedFragments_=r;this.fragmentConfiguration_=Rhz;this.prefetchedData_=E;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;fhF(this)},j3g=function(){},AMm=function(g){this.JSC$11214_playlistManager_=g};
_.f(AMm,j3g);AMm.prototype.getPrefetchEndpoint=function(){return this.JSC$11214_playlistManager_.getAutoplayEndpoint()};
var bWF=function(g){this.autonavEndpoints_=g};
_.f(bWF,j3g);bWF.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var JMt=function(g,r,E,B,w){this.autonavEndpoints=g;this.foregroundTrigger=r;this.backgroundTrigger=E;this.pageType=B;this.isInPlaylist=w},PVM=function(g,r){if(g.webPrefetchData&&g.webPrefetchData.navigationEndpoints&&g.webPrefetchData.navigationEndpoints.length){g=g.webPrefetchData.navigationEndpoints;
var E=_.n(g[0],_.LM);if(E.watchEndpointSupportedPrefetchConfig&&E.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var B=E.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;E=B.playbackRelativeSecondsPrefetchCondition;E=typeof E==="number"&&Math.abs(E)<r.videoDuration?E:void 0;B=B.countdownUiRelativeSecondsPrefetchCondition;B=typeof B!=="number"||_.Y("prefetch_job_config_cleanup_ks")&&r.inPlaylist?void 0:B;if(typeof B==="number")return new JMt(g,r.makeUpNextTrigger(B),r.makePlaybackTrigger(B),
"watch",r.inPlaylist);if(typeof E==="number")return new JMt(g,r.makePlaybackTrigger(E),null,"watch",r.inPlaylist)}}},t_$=function(g){return g.prefetchJobConfig_.backgroundTrigger?_.aa(_.LTS)()==0?g.prefetchJobConfig_.backgroundTrigger:g.prefetchJobConfig_.foregroundTrigger:g.prefetchJobConfig_.foregroundTrigger},FcL=function(g){_.Qu(document,"visibilitychange",g.onVisibilityChange_,!1,g)},qK=function(g){OF.call(this,g)};
_.f(qK,OF);qK.prototype.getCacheKeyForEndpoint=function(g){return OF.prototype.getCacheKeyForEndpoint.call(this,g)};
qK.prototype.getTempData=function(){return{}};
qK.prototype.getXhrParams=function(g){return g};
qK.prototype.getParams=function(){return{}};
var ehM=function(g,r,E){var B=g.prefetchDelay*1E3;if(Math.abs(B)>r)E.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var w=B,O=r-B;B<0&&(w=r+B,O=Math.abs(B));var M=g.JSC$11200_taskManager.addJob(function(){E.resolve(O/1E3)},10,w);
E.promise.thenCatch(function(){g.JSC$11200_taskManager.cancelJob(M)})}},Wcg=function(g,r,E){MK.call(this,g,r,E)};
_.f(Wcg,MK);Wcg.prototype.prepareTrigger=function(g){var r=this;pwA(this,"onAutonavCoundownStarted",function(E){ehM(r,E,g)})};
var CVF=function(g){g.pendingPrefetchJob_&&(g.pendingPrefetchJob_.cancel(),g.pendingPrefetchJob_=null)},Kc$=function(g,r,E){if(!g.triggeredTargets.has(r)){var B=_.R5T(g,r);
B.action=E;_.pV4(g,r,B)}},xyA=function(g){_.U6m();
_.OdQ("cpt")&&_.el(Error("qh"));_.ED.requestAnimationFrame(function(){_.ED.setTimeout(function(){_.F4("cpt");var r=_.Cu("vpl"),E=_.Cu("cpt");r&&E&&_.F4("ol",Math.max(r,E))})});
try{_.F4("fr_s"),g()}catch(r){_.tn(r)}_.ED.requestAnimationFrame(function(){_.F4("bcp")})},aht=function(g,r){g.serviceEndpointHandlers.push(r)},Xwv=function(g,r){r=g.pendingPages_.indexOf(r);
r>-1&&g.pendingPages_.splice(r,1)},NLD=function(g,r){var E=_.Jwz.indexOf(r);
E>-1&&_.Jwz.splice(E,1);g.targetPage_==r?(g.abort(),_.tQD(g)):Xwv(g,r)},Ih6=function(g,r,E,B){r={challenge:r};
E&&(r.webResponse=E);return _.Pa(g.innertubeTransportService,r,_.yp(q2A),B)},myz=function(g,r,E){if(!r.challenge)throw Error("si");
if(r.botguardData&&r.botguardData.program){var B=new OWD;B.initialize(r.botguardData,function(){M_M(B,{atr_challenge:r.challenge}).then(function(w){if(!w)throw Error("ti");return Ih6(g,r.challenge,w,E)}).catch(function(w){_.el(w);
return Ih6(g,r.challenge,void 0,E)})},void 0)}else Ih6(g,r.challenge,void 0,E)},cM4=function(g,r,E){var B={};
r.ids&&(B.ids=[].concat(_.jW(r.ids)));r.engagementType&&(B.engagementType=r.engagementType);return _.Pa(g.innertubeTransportService,B,_.yp(_.uQZ),E).then(function(w){if(!w)throw new _.Rj("GetAttestationChallenge returned falsy");myz(g,w,E)}).thenCatch(function(w){_.tn(w)})},iW6=function(g,r,E){return new _.D8(function(B,w){var O;
return _.q(function(M){if(M.nextAddress==1){var u=r.engagementType,l=r.ids,Q={};l=_.U(l!=null?l:[]);for(var z=l.next();!z.done;z=l.next())z=z.value,z.encryptedVideoId?Q.encryptedVideoId=z.encryptedVideoId:z.externalChannelId?Q.externalChannelId=z.externalChannelId:z.commentId?Q.commentId=z.commentId:z.externalOwnerId?Q.externalOwnerId=z.externalOwnerId:z.artistId?Q.artistId=z.artistId:z.playlistId?Q.playlistId=z.playlistId:z.externalPostId?Q.externalPostId=z.externalPostId:z.shareId&&(Q.shareId=z.shareId);
return _.D(M,O95(u,Q),2)}O=M.yieldResult;if(!O.challenge)return _.el(Error("ui")),cM4(g,r,E).then(B,w),M.return();u=O;Q={challenge:u.challenge};Q.webResponse=u.webResponse;Q.engagementType=r.engagementType;Q.ids=r.ids;_.Pa(g.innertubeTransportService,Q,_.yp(q2A),E).then(B,w);_.Q3(M)})})},ucA=function(g,r){var E,B,w,O;
_.q(function(M){if(M.nextAddress==1){E=_.n(r,_.yX4);if(!(E&&E.listId&&g.response&&g.response.playingVideoId)||g.listId!==E.listId)return M.return();g.index===void 0&&(g.index=0);return _.D(M,_.JHA(g.JSC$10945_playlistNetworkManager,E.listId,g.index,g.response.playingVideoId),2)}B=M.yieldResult;if(!B)return M.return();w=B.playlistId;O=B.playlistPanelRenderer;g.setPlaylistData(w,O,B.autoplayRenderer);_.Q3(M)})},LcD=function(g,r,E){var B=g.getParams(E),w=_.PVD(r,B),O=g.getTempData(r,E);
O.endpoint=JSON.stringify(r);_.Y("enable_unknown_lact_fix_on_html5")&&(_.rM().resolve(_.PK),O.lact=_.Eq());var M={headers:{"X-YouTube-STS":_.Ca("STS"),"x-youtube-csoc":1}};_.yk(w,O);return new _.D8(function(u,l){var Q=g.getXhrParams(B),z;_.Y("kevlar_cache_on_ttl_player")&&(z=_.kl.instance);z&&_.dZI(z,r)?_.OHw(z,r,O,window.location.href).then(function(k){k?u(k):l()},l):_.$j6(g.JSC$11190_networkManager_,r,Q,g.onPartsCallback_.bind(g),M).then(function(k){k?u(k):l()},l)})},V_t=function(g,r){g.triggerPromise_=
r.start();
g.triggerPromise_.then(function(E){var B=g.prefetchEndpointProvider_.getPrefetchEndpoint();if(B){var w=Y26[g.prefetchJobConfig_.pageType].prefetchedFragments;g.prefetchRequestPromise_=LcD(g.JSC$11226_networkPrefetchRequest_,B,{fragmentsRequested:w,timeBeforeNextVideo:E});g.prefetchResponseCacheKey_=g.JSC$11226_networkPrefetchRequest_.getCacheKeyForEndpoint(B);FcL(g);g.prefetchRequestPromise_.then(function(O){g.storePrefetchedDataCallback_(g.prefetchResponseCacheKey_,O);if(_.Y("web_prefetch_preload_video")&&
w.length===1&&w[0]==="pl"&&O&&!O.playerAds&&!O.adPlacements){var M=_.n(B,_.sP),u=M!=null,l={raw_player_response:O,watch_endpoint:M};(O=_.rM().resolve(u?_.lKA:_.wr))&&B&&O.then(function(Q){u&&_.Y("web_queue_preload_video")?(l.prefer_gapless=!0,Q.queueNextVideo(l)):Q.preloadVideoByPlayerVars(l)})}})}})},uS=function(g,r,E,B){this.prefetchEndpointProvider_=g;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=r;this.prefetchJobConfig_=E;this.JSC$11226_networkPrefetchRequest_=B;this.prefetchResponseCacheKey_=null};
uS.prototype.enqueue=function(){this.triggerPromise_||(V_t(this,t_$(this)),_.j_(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
uS.prototype.resolve=function(){this.cancel()};
uS.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.");FcL(this)};
uS.prototype.onVisibilityChange_=function(){var g=this;_.aa(_.LTS)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){g.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||V_t(this,t_$(this))};
hhL=function(g,r,E,B,w){r&&(r==null?0:r.videoId)&&E&&E.entries&&_.Y("kevlar_enable_shorts_prefetch_in_sequence")&&(CVF(g),r=E.entries.map(function(O){var M;return(M=_.n(O.command,_.sP))==null?void 0:M.videoId}).indexOf(r.videoId),E=E.entries[r+1],E!=null&&E.command&&!_.n(E==null?void 0:E.command,_.Py)&&(B=new JMt([E.command],new nPv(B,_.F6,1),null,"shorts",!1),g.pendingPrefetchJob_=new uS(new bWF(B.autonavEndpoints),function(){return!1},B,new qK(w)),g.pendingPrefetchJob_.enqueue()))};
ZW6=function(g,r,E,B,w,O){var M=_.h9.getInstance();if(!_.Y("block_all_player_prefetch_requests")){CVF(g);var u=!!E.getPlaylistId(),l=E.getVideoData().isLive&&E.getVideoData().hasProgressBarBoundaries;if((M.getState()==2||u||l)&&(!E.getVideoData().isLive||l)){M={inPlaylist:u,videoDuration:E.getDuration(),makeUpNextTrigger:function(z){return new Wcg(E,_.F6,z)},
makePlaybackTrigger:function(z){return new nPv(E,_.F6,z)}};
var Q=PVM(r,M);Q&&(g.pendingPrefetchJob_=new uS(Q.isInPlaylist?new AMm(w):new bWF(Q.autonavEndpoints),function(z,k){k=new $y6(Y26[Q.pageType].pageFragments,Y26[Q.pageType].prefetchedFragments,k);return _.uem(k)?(g.prefetchCache_.set(z,k),!0):!1},Q,new UF(B,E,O,w)),g.pendingPrefetchJob_.enqueue())}}};
yM6=function(){var g=_.Kn();g.signals.parkOrScheduleJob(function(){var r=g.storage;if(r.storage)if(G$5(r)){var E=r.getPlaylistId();r=Q34(r);E=!!E&&r!==void 0}else r.clear(),E=!1;else E=!1;if(E){E=g.pageManager.isOnWatch();a:{var B=g.storage;if(B.storage&&G$5(B)&&(r=B.getPlaylistId(),B=Q34(B),r&&B!==void 0)){E={recoverPlaylistCommand:{listId:r,index:B,openMiniplayer:!E,openListPanel:E,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}E=void 0}E&&_.Ah(g.JSC$10945_actionRouter,[E],null)}},0,"ma")};
vP5=function(g,r,E,B,w,O){var M=_.bW(7111);_.Sp(g.JSC$16277_screenManager,M,O?_.fW(O):void 0);_.Uk(g.JSC$16277_screenManager,M,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:B,offlineId:r,offlineabilityFormatType:E,isDefaultFormatType:w==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:w}})};
dyM=function(g,r,E,B,w){var O,M,u,l,Q;return _.q(function(z){if(z.nextAddress==1)return _.D(z,g.JSC$16277_playerApiPromise,2);O=z.yieldResult;vP5(g,r,E,"OFFLINE_OBJECT_TYPE_PLAYLIST",B,w);if(u=_.gn6[g.entityTypeMap.listEntityType])Q={},M=(Q[u]={maximumDownloadQuality:(l=E)!=null?l:void 0},Q);return _.D(z,O.queueOfflineAction(r,g.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",M),0)})};
TLM=function(g,r){var E,B,w,O;return _.q(function(M){if(M.nextAddress==1)return _.D(M,g.JSC$16277_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3){E=M.yieldResult;if(!E)return _.el(new _.Rj("PES is undefined")),M.return();B=_.qr(r,"downloadStatusEntity");return _.D(M,oP5(E,B,"downloadStatusEntity"),3)}w=M.yieldResult;return M.return((O=w)==null?void 0:O.downloadState)})};
g3v=function(g,r,E,B,w){var O,M,u,l,Q,z;return _.q(function(k){switch(k.nextAddress){case 1:return _.D(k,g.JSC$16277_playerApiPromise,2);case 2:O=k.yieldResult;vP5(g,r,E,"OFFLINE_OBJECT_TYPE_VIDEO",B,w);if(u=_.gn6[g.entityTypeMap.singleEntityType])Q={},M=(Q[u]={maximumDownloadQuality:(l=E)!=null?l:void 0},Q);return _.D(k,TLM(g,r),3);case 3:z=k.yieldResult;if(z!=="DOWNLOAD_STATE_USER_DELETED"){k.jumpTo(4);break}return _.D(k,g.deleteVideo(r),4);case 4:return _.D(k,O.queueOfflineAction(r,g.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",M),0)}})};
rR8=function(g,r,E,B,w){return _.q(function(O){return O.nextAddress==1?_.D(O,g.deleteVideo(r,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.D(O,g3v(g,r,E,B,w),0)})};
E3D=function(g,r,E){var B,w;return _.q(function(O){if(O.nextAddress==1)return _.D(O,g.JSC$16277_playerApiPromise,2);B=O.yieldResult;w=_.qr(r,"mainVideoDownloadStateEntity");return _.D(O,B.updateDownloadState(w,E),0)})};
vat=function(g){var r=_.rM().resolve(_.Z6);return _.q(function(E){if(E.nextAddress==1)return r.previousDownloadStateForVideo[g]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&r.previousDownloadStateForVideo[g]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?E.jumpTo(2):_.D(E,r.resumeVideoDownload(g),2);if(E.nextAddress!=4)return _.D(E,E3D(r,g,r.previousDownloadStateForVideo[g]),4);delete r.previousDownloadStateForVideo[g];_.Q3(E)})};
Zy6=function(g,r){var E;return _.q(function(B){if(B.nextAddress==1)return _.D(B,g.JSC$16277_playerApiPromise,2);E=B.yieldResult;return _.D(B,E.queueOfflineAction(r,g.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
L$t=function(){var g=_.rM().resolve(_.Z6),r,E;return _.q(function(B){if(B.nextAddress==1)return _.D(B,g.JSC$16277_playerApiPromise,2);if(B.nextAddress!=3)return r=B.yieldResult,E={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.D(B,r.queueOfflineAction("!*$_ALL_ENTITIES_!*$",g.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",E),3);var w=g.JSC$16277_commandHandler,O=w.resolveCommand,M=_.zn("DELETING_ALL",void 0,"Downloads are being deleted");
O.call(w,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.gz(M)}},popupType:"TOAST"}});_.Q3(B)})};
BtM=function(g,r){var E,B,w,O,M,u;return _.q(function(l){if(l.nextAddress==1)return _.D(l,g.JSC$16277_persistentStorePromiseAccessor(),2);if(l.nextAddress!=3)return E=l.yieldResult,E?_.D(l,oP5(E,_.$D,"downloadsPageViewConfigurationEntity"),3):(_.el(new _.Rj("PES is undefined")),l.return());w=(B=l.yieldResult)!=null?B:{};u=(M=(O=w)==null?void 0:O.downloadsUpsellBannerVisibility)!=null?M:{};return u.visibleWithConnection?_.D(l,r.refreshAllStaleEntities(0),0):l.jumpTo(0)})};
wK5=function(g){var r,E;return _.q(function(B){if(B.nextAddress==1)return _.D(B,g.JSC$16277_prefStorage,2);r=B.yieldResult;return B.return((E=r)==null?void 0:E.get("sdois"))})};
SBt=function(g){var r,E,B,w,O,M;return _.q(function(u){if(u.nextAddress==1)return _.D(u,g.JSC$16277_persistentStorePromiseAccessor(),2);if(u.nextAddress!=3){r=u.yieldResult;if(!r)return _.el(new _.Rj("PES is undefined")),u.return();E=_.qr("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.D(u,oP5(r,E,"settingEntity"),3)}B=u.yieldResult;return u.return((M=(w=B)==null?void 0:(O=w.settingOptionValue)==null?void 0:O.boolValue)!=null?M:!1)})};
Ohg=function(g,r){var E,B,w,O;return _.q(function(M){switch(M.nextAddress){case 1:return((E=r)==null?void 0:E.formatType)===void 0?M.return():_.D(M,g.JSC$16277_prefStorage,2);case 2:B=M.yieldResult;if(B===void 0)return M.return();if(((w=r)==null?void 0:w.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.D(M,B.set("lmqf",r.formatType),8);if(((O=r)==null?void 0:O.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){M.jumpTo(0);break}return _.D(M,B.set("lmqf",r.formatType),
6);case 6:return _.D(M,B.set("lmqflst",Math.floor((0,_.g2)())),0);case 8:return _.D(M,B.remove("lmqflst"),0)}})};
Uh5=function(g){var r,E;return _.q(function(B){switch(B.nextAddress){case 1:return _.D(B,g.JSC$16277_prefStorage,2);case 2:r=B.yieldResult;if(!r){B.jumpTo(3);break}return _.D(B,r.get("lmqflst"),4);case 4:if(E=B.yieldResult,E!==void 0)return B.return(E);case 3:return B.return(0)}})};
Mkz=function(g){var r,E;return _.q(function(B){switch(B.nextAddress){case 1:return _.D(B,g.JSC$16277_prefStorage,2);case 2:r=B.yieldResult;if(r===void 0){B.jumpTo(3);break}return _.D(B,r.get("lmqf"),4);case 4:if(E=B.yieldResult,E!==void 0)return B.return(E);case 3:return B.return("SD")}})};
SNm=function(g,r,E){var B,w,O,M,u,l,Q,z;_.q(function(k){switch(k.nextAddress){case 1:return _.D(k,Ohg(g,(B=r)==null?void 0:B.actionParams),2);case 2:w=r.playlistId;if(!w)return k.return();if(r.action==="ACTION_ADD")return((M=r.actionParams)==null?0:M.formatType)?_.D(k,dyM(g,w,r.actionParams.formatType,(z=r.actionParams)==null?void 0:z.settingsAction,E),0):_.D(k,g.offlineWebClientEligibility,14);if(r.action==="ACTION_REMOVE_WITH_PROMPT"){var H=g.JSC$16277_commandHandler,R=H.resolveCommand,A=_.Ca("INNERTUBE_CLIENT_NAME");
var J=A==="WEB_REMIX"?_.zn("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.zn("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var e=A==="WEB_REMIX"?[_.zn("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];A=A==="WEB_REMIX"?_.zn("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.zn("DELETE",void 0,"Delete");var C=_.zn("CANCEL",void 0,"Cancel");J=U_m(J,e,A,C,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:w});R.call(H,{openPopupAction:J});
return k.return()}if(r.action==="ACTION_REMOVE")return _.D(k,Zy6(g,w),0);if(r.action!=="ACTION_SYNC"){k.jumpTo(0);break}return _.D(k,g.JSC$16277_playerApiPromise,9);case 9:return O=k.yieldResult,_.D(k,O.queueOfflineAction(w,g.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return u=k.yieldResult,_.D(k,Mkz(g),15);case 15:return l=k.yieldResult,_.D(k,Uh5(g),16);case 16:Q=k.yieldResult,r.onAddCommand&&g.JSC$16277_commandHandler.resolveCommand(r.onAddCommand,{form:{preferredFormatType:l,
offlineWebClientEligibility:u,lastOfflineQualitySettingsSavedMs:Q.toString()}}),k.jumpTo(0)}})};
BGz=function(g,r,E){var B,w,O,M,u,l,Q,z,k,H,R,A,J,e;_.q(function(C){switch(C.nextAddress){case 1:return _.D(C,Ohg(g,(B=r)==null?void 0:B.actionParams),2);case 2:w=r.videoId;if(!w)return C.return();if(r.action==="ACTION_REMOVE_WITH_PROMPT"){var X=g.JSC$16277_commandHandler,Z=X.resolveCommand,c=_.Ca("INNERTUBE_CLIENT_NAME");var h=c==="WEB_REMIX"?_.zn("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.zn("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var y=c==="WEB_REMIX"?[_.zn("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];c=c==="WEB_REMIX"?_.zn("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.zn("DELETE",void 0,"Delete");var OD=_.zn("CANCEL",void 0,"Cancel");h=U_m(h,y,c,OD,{signal:"DELETE_DOWNLOAD",targetId:w});Z.call(X,{openPopupAction:h});return C.return()}if(r.action==="ACTION_ADD")return((H=r.actionParams)==null?0:H.formatType)?_.D(C,g3v(g,w,r.actionParams.formatType,(e=r.actionParams)==null?void 0:e.settingsAction,E),0):_.D(C,g.offlineWebClientEligibility,
23);if(r.action==="ACTION_RETRY")return _.D(C,Mkz(g),19);if(r.action==="ACTION_PAUSE")return _.D(C,g.pauseVideoDownload(w),0);if(r.action==="ACTION_RESUME")return _.D(C,g.resumeVideoDownload(w),0);if(r.action!=="ACTION_REMOVE"){C.jumpTo(0);break}return _.D(C,TLM(g,w),13);case 13:return O=C.yieldResult,g.previousDownloadStateForVideo[w]=(M=O)!=null?M:"DOWNLOAD_STATE_UNKNOWN",_.D(C,E3D(g,w,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(g.previousDownloadStateForVideo[w]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
g.previousDownloadStateForVideo[w]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){C.jumpTo(15);break}return _.D(C,g.pauseVideoDownload(w),15);case 15:X=_.zn("DELETED_VIDEO",void 0,"Video deleted from downloads.");Z=_.zn("UNDO_ACTION",void 0,"Undo");h=_.zn("CLOSE",void 0,"Close");u={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.gz(X),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.gz(Z),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:w}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:X+" "+Z}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:w}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:h}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};g.JSC$16277_commandHandler.resolveCommand(u);
C.jumpTo(0);break;case 19:l=C.yieldResult;l==="UNKNOWN_FORMAT_TYPE"&&(l="SD");Q="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((z=r.actionParams)==null?0:z.formatType)l=r.actionParams.formatType,Q=(k=r.actionParams)==null?void 0:k.settingsAction;return _.D(C,rR8(g,w,l,Q,E),20);case 20:return C.return();case 23:return R=C.yieldResult,_.D(C,Mkz(g),24);case 24:return A=C.yieldResult,_.D(C,Uh5(g),25);case 25:J=C.yieldResult,r.onAddCommand&&g.JSC$16277_commandHandler.resolveCommand(r.onAddCommand,
{form:{preferredFormatType:A,offlineWebClientEligibility:R,lastOfflineQualitySettingsSavedMs:J.toString()}}),C.jumpTo(0)}})};
qB8=function(g,r){var E,B,w,O,M,u,l;return _.q(function(Q){if(Q.nextAddress==1)return _.D(Q,g.JSC$16277_persistentStorePromiseAccessor(),2);E=Q.yieldResult;if(!E)return _.el(new _.Rj("PES is undefined")),Q.return();if((B=r)==null||!B.settingItemId)return Q.return();w=r;O=w.settingItemId;M=w.boolValue;u=_.qr(O,"settingEntity");l={key:u,settingOptionValue:{boolValue:M}};return _.D(Q,Dy8(E,l),0)})};
uAD=function(g,r){var E,B,w,O,M,u,l;return _.q(function(Q){switch(Q.nextAddress){case 1:return _.D(Q,g.JSC$16277_prefStorage,2);case 2:return E=Q.yieldResult,B=_.pu(),_.D(Q,g.JSC$16277_persistentStorePromiseAccessor(),3);case 3:return w=Q.yieldResult,E?w?_.D(Q,E.get("sdois"),4):(_.el(new _.Rj("PES is undefined")),Q.return()):(_.el(new _.Rj("prefStorage is undefined")),Q.return());case 4:O=Q.yieldResult;u=(M=r)==null?void 0:M.boolValue;u===void 0||_.Y("kevlar_set_sd_enabled_flag_killswitch")||_.Yg(0,
197,!0);O===void 0&&u===void 0&&(u=!1);if(u===void 0){Q.jumpTo(0);break}return _.D(Q,E.set("sdois",u),6);case 6:return _.Y("kevlar_set_sd_enabled_flag_killswitch")||(_.Yg(0,196,u),B.save()),l={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:u},_.D(Q,qB8(g,l),0)}})};
lyt=function(g,r,E){var B,w,O,M,u;return _.q(function(l){switch(l.nextAddress){case 1:return _.D(l,wK5(g),2);case 2:return B=l.yieldResult,_.D(l,uAD(g,E),3);case 3:return _.D(l,wK5(g),4);case 4:return w=l.yieldResult,O=w!==B,_.D(l,SBt(g),5);case 5:M=l.yieldResult&&!_.Y("kevlar_modern_downloads_page");if((u=!w&&!M)||O)return _.D(l,r.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);l.jumpTo(0)}})};
TbM=function(){var g=_.rM().resolve(_.Z6),r;_.q(function(E){switch(E.nextAddress){case 1:return _.D(E,g.JSC$16277_playerApiPromise,2);case 2:r=E.yieldResult;if(!_.Y("kevlar_force_refresh_smart_downloads")){E.jumpTo(3);break}return _.D(E,r.refreshAllStaleEntities(0),4);case 4:return E.return();case 3:return _.D(E,r.refreshAllStaleEntities(),5);case 5:return _.D(E,lyt(g,r),6);case 6:if(_.Y("enable_download_pep_for_premium_countries_web"))return _.D(E,BtM(g,r),0);E.jumpTo(0)}})};
U1M=function(g,r){var E,B;_.q(function(w){switch(w.nextAddress){case 1:return _.D(w,g.JSC$16277_playerApiPromise,2);case 2:E=w.yieldResult;switch((B=r)==null?void 0:B.settingItemId){case "SMART_DOWNLOADS_ENABLED":return w.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return w.jumpTo(4)}w.jumpTo(0);break;case 3:return _.D(w,lyt(g,E,r),6);case 6:w.jumpTo(0);break;case 4:return _.D(w,qB8(g,r),7);case 7:w.jumpTo(0)}})};
Dhm=function(g,r){var E,B,w;return _.q(function(O){if(O.nextAddress==1)return _.D(O,g.JSC$16277_persistentStorePromiseAccessor(),2);if(O.nextAddress!=3){E=O.yieldResult;if(!E)return _.el(new _.Rj("PES is undefined")),O.return(!1);if(!r)return O.return(!1);B=_.qr(r,"mainVideoEntity");return _.D(O,oP5(E,B,"mainVideoEntity"),3)}w=O.yieldResult;return O.return(w!==void 0)})};
qNF=function(g){var r=_.rM().resolve(_.Z6),E,B,w,O,M,u,l,Q,z,k,H;_.q(function(R){switch(R.nextAddress){case 1:return _.D(R,r.JSC$16277_playerApiPromise,2);case 2:E=R.yieldResult;w=(B=g)==null?void 0:B.actions;if(!w)return R.return();O=_.U(w);M=O.next();case 3:if(M.done){R.jumpTo(0);break}u=M.value;Q=l=void 0;if(!(((l=u)==null?0:l.entityKey)&&((Q=u)==null?0:Q.actionType))){R.jumpTo(4);break}z=_.S9(u.entityKey);k=z.entityId;H=z.entityType;return _.D(R,E.queueOfflineAction(k,H,u.actionType),4);case 4:M=
O.next(),R.jumpTo(3)}})};
o3L=function(g,r){var E,B,w,O,M;return _.q(function(u){if(u.nextAddress==1)return _.D(u,g.JSC$16277_prefStorage,2);if(u.nextAddress!=3)return(E=u.yieldResult)?_.D(u,E.get("psi"),3):u.return();B=u.yieldResult;M={isPaused:r,lastSyncTimestamp:(O=(w=B)==null?void 0:w.lastSyncTimestamp)!=null?O:"0"};return _.D(u,E.set("psi",M),0)})};
D1D=function(g){var r=_.rM().resolve(_.Z6),E,B,w,O,M,u,l,Q;return _.q(function(z){switch(z.nextAddress){case 1:return _.D(z,r.JSC$16277_playerApiPromise,2);case 2:E=z.yieldResult;w=((B=g)==null?void 0:B.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((u=g)==null?void 0:u.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":O="!*$_ALL_ENTITIES_!*$";M="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return z.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return z.jumpTo(4)}z.jumpTo(5);break;case 3:return _.D(z,o3L(r,w),6);case 6:z.jumpTo(5);break;case 4:return _.D(z,Dhm(r,(l=g)==null?void 0:l.videoId),7);case 7:z.yieldResult&&(O=(Q=g)==null?void 0:Q.videoId,M="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");z.jumpTo(5);break;case 5:if(O&&M)return _.D(z,E.queueOfflineAction(O,"videoPlaybackPositionEntity",M),0);z.jumpTo(0)}})};
Gwv=function(g,r){var E;r!==1||((E=g.currentPersistentToast)==null?0:E.isOpened())?g.openToast():g.currentPersistentToast=void 0};
QlM=function(g,r){var E;return(E=g.transitionTasksMap.get(r))!=null?E:[]};
zcz=function(g,r){var E=[];g.elementTasksMap.forEach(function(B){(B=B.get(r))&&E.push(B)});
return E};
kwM=function(g,r,E,B){B=B===void 0?{}:B;var w=g.defaultViewTransitionOptions;return Object.assign({},w,B,{beforeTransition:function(){E.forEach(function(l){l.beforeTransition()});
var O;(O=w.beforeTransition)==null||O.call(w);var M,u;(u=(M=B).beforeTransition)==null||u.call(M);r.forEach(function(l){l.beforeTransition()})},
afterTransition:function(){E.forEach(function(l){l.afterTransition()});
var O;(O=w.afterTransition)==null||O.call(w);var M,u;(u=(M=B).afterTransition)==null||u.call(M);r.forEach(function(l){l.afterTransition()})}})};
HhM=function(g,r,E){g.transitionTasksMap.has(r)?g.transitionTasksMap.get(r).push(E):(g=new _.Rj("Transition task registered for unknown transition type",r),_.tn(g))};
pKg=function(g,r,E){if(g.transitionTasksMap.has(r)){var B=g.transitionTasksMap.get(r).filter(function(w){return w!==E});
g.transitionTasksMap.set(r,B)}};
YBM=function(g,r){var E=QlM(g,r);E=_.U(E);for(var B=E.next();!B.done;B=E.next())B=B.value,B.runOnce&&pKg(g,r,B);g.elementTasksMap.forEach(function(w,O){w.forEach(function(M,u){M.runOnce&&r===u&&(w.delete(u),w.size===0&&g.elementTasksMap.delete(O))})})};
Rc8=function(g,r,E){var B,w,O,M,u,l,Q,z,k;_.q(function(H){if(H.nextAddress==1){if(g.config.disableAllTransitions)return H.return(r());if((B=E)==null||!B.transitionType)return H.return(_.YmA(r,(w=E)==null?void 0:w.viewTransitionOptions));O=E;M=O.transitionType;u=O.viewTransitionOptions;l=g.config.transitionConfigs.get(M);if(!l)return H.return(r());Q=QlM(g,M);z=zcz(g,M);k=_.YmA(r,kwM(l,Q,z,u));return _.D(H,k,2)}YBM(g,M);_.Q3(H)})};
n3t=function(){var g,r,E,B;return _.q(function(w){if(w.nextAddress==1)return g=navigator,(r=g.storage)!=null&&r.persisted?_.D(w,(E=g.storage)==null?void 0:E.persisted(),2):w.return("PERSISTED_STATE_NOT_SUPPORTED");B=w.yieldResult;return w.return(B?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
slt=function(){var g,r,E,B;return _.q(function(w){if(w.nextAddress==1)return g=navigator,(r=g.storage)!=null&&r.persist?_.D(w,(E=g.storage)==null?void 0:E.persist(),2):w.return("PERSISTED_STATE_NOT_SUPPORTED");B=w.yieldResult;return w.return(B?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
fyv=function(){var g,r;return _.q(function(E){switch(E.nextAddress){case 1:return g="PERSISTED_STATE_NOT_SUPPORTED",_.qN(E,2),_.D(E,n3t(),4);case 4:g=E.yieldResult;if(g!=="PERSISTED_STATE_NOT_GRANTED"){E.jumpTo(5);break}return _.D(E,slt(),6);case 6:g=E.yieldResult;case 5:_.Ne(E,3);break;case 2:r=_.G2(E),r instanceof Error&&_.tn(r);case 3:return _.Jn("persistentStorageStateChecked",{persistedState:g}),E.return(g)}})};
$h$=function(g,r){var E=[],B=!1;r=_.U(r);for(var w=r.next();!w.done;w=r.next()){w=g.moduleRegistry[w.value];var O=void 0,M=void 0;((O=w)==null?0:O.isFetching)&&((M=w)==null?0:M.resolver)?(E.push(w.resolver.promise),B=!0):(w=new _.uF,w.resolve(void 0),E.push(w.promise))}return B?Promise.all(E):void 0};
GCt=function(g,r){if(g.isAnyTransitionEnabled){var E={};g.viewTransitionCoordinator.registerElement(r,(E.slide="miniplayer-page-transition",E["lockup-to-watch"]="miniplayer-page-transition",E["learning-journey"]="miniplayer-page-transition",E))}};
jlD=function(g,r,E){if(g.isAnyTransitionEnabled){var B={beforeTransition:function(){E(!0);r.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){r.style.viewTransitionName&&(r.style.viewTransitionName="",E(!1))}};
HhM(g.viewTransitionCoordinator,"slide",B);HhM(g.viewTransitionCoordinator,"lockup-to-watch",B);HhM(g.viewTransitionCoordinator,"watch-next-appears",B);HhM(g.viewTransitionCoordinator,"learning-journey",B)}};
ARz=function(g,r){g.isBrowseTransitionEnabled?Rc8(g.viewTransitionCoordinator,r,{transitionType:"slide"}):(r(),Promise.resolve())};
bh4=function(g,r){g.isLockupToWatchTransitionEnabled?Rc8(g.viewTransitionCoordinator,r,{transitionType:"lockup-to-watch"}):(r(),Promise.resolve())};
JR4=function(g,r){g.isLockupToWatchTransitionEnabled?Rc8(g.viewTransitionCoordinator,r,{transitionType:"watch-next-appears"}):(r(),Promise.resolve())};
PW4=function(g,r){g.isLearningJourneyTransitionEnabled?Rc8(g.viewTransitionCoordinator,r,{transitionType:"learning-journey"}):(r(),Promise.resolve())};
tk4=function(g,r,E){if(g.isInitialized()){var B=gP(E),w=B==="watch";B=B==="shorts";var O=gP(r)==="watch";if(w)O||(g.backgroundPageData=r),g.watchPipMode&&O||g.deactivate(E.endpoint);else if(B){if(gP(r)!=="shorts"){var M;(M=g.getPlayerElement())==null||M.pause()}}else O&&!g.watchPipMode&&(qeM(r,E)?(g.watchWhileMode&&_.nUM(g,!1),_.zj4(g,r)):g.isMiniplayerActive()&&g.watchWhileMode&&g.deactivate());O&&_.f25(g);g.shortsPipMode&&!B&&(window.focus(),g.deactivate());if(g.pictureInPictureEnabled())if(B&&
g.shortsPipEnabled||w&&g.watchPipEnabled)_.$3B(g.handleMediaSessionPipActivation);else if(!g.isMiniplayerActive()&&(g.shortsPipEnabled||g.watchPipEnabled)&&window.documentPictureInPicture&&_.tt()&&_.lQY("Chromium")>=120){g=_.feS().mediaSession;try{g.setActionHandler("enterpictureinpicture",null)}catch(u){}}}};
FJM=function(g,r){var E,B;_.q(function(w){if(w.nextAddress==1){if(!g||!g.navigationEndpoint)return w.return();_.Di().lockupActivation=!0;var O;r?O=_.Lf(_.zn("QUEUE",void 0,"Queue")):O=g.longBylineText;B=(E=O)&&g.title?{miniplayerTitle:g.title,miniplayerSubtitle:E,playlistData:null}:void 0;return _.D(w,_.uH4(_.rM().resolve(_.ea),g.navigationEndpoint,!0,B),2)}_.Di().userActivation=!0;_.Q3(w)})};
UrM=function(g,r){var E,B,w,O,M,u;_.q(function(l){if(l.nextAddress==1){E=_.n(r,_.ZxT);if(!E||!E.listId)return l.return();g.index=E.index||g.index||0;B=g.response&&g.response.playingVideoId||void 0;return _.D(l,_.JHA(g.JSC$10945_playlistNetworkManager,E.listId,g.index,B),2)}w=l.yieldResult;if(!w)return l.return();O=w.playlistId;M=w.playlistPanelRenderer;!g.queueProxy&&O&&M&&O.startsWith("TLPQ")&&(g.queueProxy=new _.bT(g.JSC$10945_playlistNetworkManager,O,g.setPlaylistData.bind(g),g.clearQueue.bind(g),
_.glY(M),g.storage));if(E.openMiniplayer&&(u=_.rmP(M))&&!g.pageManager.isOnWatch()){var Q=u,z=E.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";g.isMiniplayerActive()?g.openToast(Q):FJM(Q,z)}g.setPlaylistData(O,M,w.autoplayRenderer);_.Q3(l)})};
ws8=function(g,r){var E=_.Kn();E.index===void 0&&(E.index=0);E.temporaryItems.push.apply(E.temporaryItems,_.jW(g));if((r.videoId||r.videoIds)&&E.index!==void 0&&r.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!E.queueProxy){var B=[];if(E.response){var w=_.rM().resolve(_.ea).isMiniplayerActive();if(E.response.playlistPanelRenderer&&E.response.playlistId&&!E.response.playlistId.startsWith("TLPQ")){if(E.pageManager.isOnWatch()||w)B=_.glY(E.response.playlistPanelRenderer)}else E.response.playingVideoId&&
!r.openMiniplayer?B.push(E.response.playingVideoId):w&&E.response.playingVideoId&&r.openMiniplayer&&B.push(E.response.playingVideoId)}E.queueProxy=new _.bT(E.JSC$10945_playlistNetworkManager,"",E.setPlaylistData.bind(E),E.clearQueue.bind(E),B,E.storage);E.queueProxy.JSC$10891_setCurrentIndex(E.index)}E.queueProxy.addVideos(r.videoIds||[r.videoId],r)}zh8(E,g);E.response&&_.xQ(E,_.aH(E,E.response.autoplayRenderer));E.pageManager.isOnWatch()?E.isMiniplayerActive()&&E.openToast(g[0]):(g=g[0],r=r.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",E.isMiniplayerActive()?E.openToast(g):FJM(g,r))};
ec5=function(g){var r=_.lm(g);if(r=="object"||r=="array"){if(typeof g.clone==="function")return g.clone();if(typeof Map!=="undefined"&&g instanceof Map)return new Map(g);if(typeof Set!=="undefined"&&g instanceof Set)return new Set(g);r=r=="array"?[]:{};for(var E in g)r[E]=ec5(g[E]);return r}return g};
lS=function(g,r){return _.ZLl(_.GE(g,r,void 0,_.oU))};
D5=function(g,r){return _.fD(_.GE(g,r,void 0,_.oU))};
oP=function(g,r){return _.GDS(_.GE(g,r,void 0,_.oU))};
G9=function(g,r){return _.GE(g,r,void 0,_.oU,_.um)};
WJ6=_.iA(function(g,r,E){if(g.nextWireType_!==0)return!1;_.Lt(r,E,_.WL(g.decoder_,_.EM));return!0},_.vH,_.x2);
CW8=_.iA(function(g,r,E,B){if(g.nextWireType_!==0)return!1;_.HL(r,E,B,_.WL(g.decoder_,_.EM));return!0},_.vH,_.x2);
KJm=_.iA(function(g,r,E){if(g.nextWireType_!==1)return!1;var B=g.decoder_;g=_.Kx(B);B=_.Kx(B);g=_.TD(g,B);_.Lt(r,E,g);return!0},_.VvL,_.NiA);
xhL=_.iA(function(g,r,E){if(g.nextWireType_!==5)return!1;_.Lt(r,E,_.Kx(g.decoder_));return!0},function(g,r,E){r=_.jv(r);
r!=null&&(_.hB(g,E,5),_.yB(g.encoder_,r))},_.XZB);
ayF=_.iA(function(g,r,E){if(g.nextWireType_!==0)return!1;g=_.pZD(g.decoder_);_.Lt(r,E,g===!1?void 0:g);return!0},_.hzl,_.CgL);
XKt=_.iA(function(g,r,E){if(g.nextWireType_!==2)return!1;g=_.$WQ(g);_.Lt(r,E,g===""?void 0:g);return!0},_.y8D,_.KEY);
Ntz=_.iA(function(g,r,E){if(g.nextWireType_!==2)return!1;g=_.jpt(g);_.Lt(r,E,g===_.W6()?void 0:g);return!0},_.Tgt,_.cuB);
IyM=_.a4l(function(g,r,E){if(g.nextWireType_!==0&&g.nextWireType_!==2)return!1;r=_.AB(r,r[_.Yb]|0,E);g.nextWireType_==2?_.AuA(g,cC6,r):r.push(_.Cx(g.decoder_));return!0},function(g,r,E){r=_.xMV(_.fD,r,!0);
if(r!=null&&r.length){E=_.GLL(g,E);for(var B=0;B<r.length;B++)_.c8A(g.encoder_,r[B]);_.QAV(g,E)}},_.iEX);
mhM=_.iA(function(g,r,E){if(g.nextWireType_!==0)return!1;g=_.Cx(g.decoder_);_.Lt(r,E,g===0?void 0:g);return!0},_.guX,_.iEX);
cRL=_.iA(function(g,r,E,B){if(g.nextWireType_!==0)return!1;_.HL(r,E,B,_.Cx(g.decoder_));return!0},_.guX,_.iEX);
_.Vv=function(g){this.privateDoNotAccessOrElseWrappedStyleSheet=g};
_.Vv.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var kCm=function(g,r){return new _.JL(g.x+r.x,g.y+r.y)},ihA=function(g){return g.previousElementSibling!==void 0?g.previousElementSibling:_.Ebb(g.previousSibling,!1)},LJz=function(g,r){var E=[];
for(r=r||0;r<g.length;r+=2)_.iwn(g[r],g[r+1],E);return E.join("&")},VkM=function(g,r){var E=arguments.length==2?LJz(arguments[1],0):LJz(arguments,1);
return _.cDw(g,E)},ZkL=_.rs(_.K0),hcL=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(hcL,_.xu);hcL.prototype.getValue=function(){var g=_.GE(this,2);if(Array.isArray(g)||g instanceof _.xu)throw Error("aa");return _.k2(this,2)};
var Kxv=function(){var g=_.OP();this.JSC$8008_streamzService=g;g.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.Md("channel_type"))};
Kxv.prototype.increment=function(g){this.JSC$8008_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",g)};
var xuM=function(){var g=_.OP();this.JSC$8011_streamzService=g;g.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.Md("channel_type"))};
xuM.prototype.increment=function(g){this.JSC$8011_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",g)};
var XEL=function(){var g=_.OP();this.JSC$8014_streamzService=g;g.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.Md("channel_type"))};
XEL.prototype.increment=function(g){this.JSC$8014_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",g)};
var aYm=function(){var g=_.OP();this.JSC$8017_streamzService=g;g.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
aYm.prototype.increment=function(){this.JSC$8017_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var NUv=function(){var g=_.OP();this.JSC$8020_streamzService=g;g.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.Md("channel_type"),_.Md("error_type"))};
NUv.prototype.increment=function(g,r){this.JSC$8020_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",g,r)};
var IY8=function(){var g=_.OP();this.JSC$8023_streamzService=g;g.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
IY8.prototype.increment=function(){this.JSC$8023_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var muA=function(){var g=_.OP();this.JSC$8026_streamzService=g;g.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
muA.prototype.increment=function(){this.JSC$8026_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var t3A=function(){var g=_.OP();this.JSC$8032_streamzService=g;g.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
t3A.prototype.increment=function(){this.JSC$8032_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var ZhD=function(g){return g.getCount&&typeof g.getCount=="function"?g.getCount():_.vJ(g)||typeof g==="string"?g.length:_.jn.getCount(g)},yR4=function(g,r){if(typeof g.every=="function")return g.every(r,void 0);
if(_.vJ(g)||typeof g==="string")return Array.prototype.every.call(g,r,void 0);for(var E=_.Vnz(g),B=_.Lc(g),w=B.length,O=0;O<w;O++)if(!r.call(void 0,B[O],E&&E[O],g))return!1;return!0},v38=function(g,r,E,B){var w=new _.Vk(null);
g&&_.Vu(w,g);r&&_.he(w,r);E&&_.Zf(w,E);B&&_.yu(w,B);return w},dhF=function(){var g=_.WN&&_.Ql(_.Oaw,10)>=0,r;
if(r=_.euc)r=_.Ql(_.S6U,10)>=0;var E=_.uR&&_.Ql(_.Oaw,85)>=0;return _.Oz||g||r||E},Tt8=function(g){var r=_.fIw(g);
return r&&dhF()?-g.scrollLeft:r&&_.Xr(g,"overflowX")!="visible"?g.scrollWidth-g.clientWidth-g.scrollLeft:g.scrollLeft},go$=function(g,r){r=Math.max(r,0);
_.fIw(g)?dhF()?g.scrollLeft=-r:g.scrollLeft=g.scrollWidth-r-g.clientWidth:g.scrollLeft=r},fHL=0,Jpv=!1;
EJ.prototype.set=function(g){this.relativeTimeStart_=g};
EJ.prototype.reset=function(){this.set(_.dx())};
EJ.prototype.get=function(){return this.relativeTimeStart_};
var rfm=null,EoM=function(){rfm||(rfm=new EJ)},Br$=function(){rfm||(rfm=new EJ)};
_.rc(Br$,EoM);_.S=tEm.prototype;_.S.JSC$9393_buffer_="";_.S.set=function(g){this.JSC$9393_buffer_=""+g};
_.S.append=function(g,r,E){this.JSC$9393_buffer_+=String(g);if(r!=null)for(var B=1;B<arguments.length;B++)this.JSC$9393_buffer_+=arguments[B];return this};
_.S.clear=function(){this.JSC$9393_buffer_=""};
_.S.getLength=function(){return this.JSC$9393_buffer_.length};
_.S.toString=function(){return this.JSC$9393_buffer_};
var wXz=function(){var g={type:"unit",style:"narrow"};this.listType_=g&&g.type?g.type:"conjunction";this.listStyle_=g&&g.style?g.style:"long";this.listSymbols_=d1t;g=0;switch(this.listStyle_){case "short":g=1;break;case "narrow":g=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[g];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[g];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[g];this.listEndPattern_=
this.listSymbols_.AND_END[g];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[g];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[g];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[g];this.listEndPattern_=this.listSymbols_.OR_END[g];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[g],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[g],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[g],this.listEndPattern_=this.listSymbols_.UNIT_END[g]}};
wXz.prototype.format=function(g){return Sgt(this,g)};
var Sgt=function(g,r){var E=r.length;switch(E){case 0:return"";case 1:return String(r[0]);case 2:return g.listTwoPattern_.replace("{0}",String(r[0])).replace("{1}",String(r[1]))}for(var B=g.listStartPattern_.replace("{0}",String(r[0])).replace("{1}",String(r[1])),w=2;w<E-1;++w)B=g.listMiddlePattern_.replace("{0}",B).replace("{1}",String(r[w]));return g.listEndPattern_.replace("{0}",B).replace("{1}",String(r[E-1]))},hIm=function(){var g={style:1};
this.style_=(g==null?void 0:g.style)||0;this.durationSymbols_=_.Enb||_.cjn},Omt=function(g,r){switch(r){default:case "years":return g.durationSymbols_.YEAR;
case "months":return g.durationSymbols_.MONTH;case "weeks":return g.durationSymbols_.WEEK;case "days":return g.durationSymbols_.DAY;case "hours":return g.durationSymbols_.HOUR;case "minutes":return g.durationSymbols_.MINUTE;case "seconds":return g.durationSymbols_.SECOND}},QJ=function(g,r,E){a:{E=Omt(g,E);
switch(g.style_){case 1:if(E.LONG!=void 0){g=E.LONG;break a}case 2:if(E.NARROW!=void 0){g=E.NARROW;break a}default:g=E.SHORT;break a}g=void 0}return g?(new _.D8b("{DURATION_VALUE,plural,"+g+"}")).format({DURATION_VALUE:r}):""};
hIm.prototype.format=function(g){var r=[],E=g.years,B=g.months,w=g.weeks,O=g.days,M=g.hours,u=g.minutes;g=g.seconds;E!=null&&r.push(QJ(this,E,"years"));B!=null&&r.push(QJ(this,B,"months"));w!=null&&r.push(QJ(this,w,"weeks"));O!=null&&r.push(QJ(this,O,"days"));M!=null&&r.push(QJ(this,M,"hours"));u!=null&&r.push(QJ(this,u,"minutes"));g!=null&&r.push(QJ(this,g,"seconds"));return(new wXz).format(r)};
var UQM=!1,aHv=function(g){_.gl.call(this,g.message||g.description||g.name);this.isMissing=g instanceof Bl;this.isTimeout=g instanceof _.ir&&g.errorCode=="net.timeout";this.isCanceled=g instanceof _.Iz};
_.f(aHv,_.gl);aHv.prototype.name="BiscottiError";var Bl=function(){_.gl.call(this,"Biscotti ID is missing from server")};
_.f(Bl,_.gl);Bl.prototype.name="BiscottiMissingError";var wP=null,vgM=function(){try{var g=_.XS("yt.ads.biscotti.getId_");return g?g():kjz()}catch(r){return _.bV(r)}},VEt,MTm=function(g,r){return _.Bs({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:g,command:r}})},qgM=function(g){return _.Bs({type:"SET_GUIDE_IS_EXPANDED",
payload:g})},uXL=function(g){return _.Bs({type:"SET_ONLINE_STATUS",
payload:g})},lBg=function(g,r){return _.Bs({type:"SET_TRANSCRIPTION_STATE",
payload:{high:g,low:r}})},DQz=function(g){return _.Bs({type:"SET_OVERLAY_STATE",
payload:g})},oom=0,Gav=function(g,r,E){var B=this;
this.priority=r;this.delay=E;this.jobId=0;this.completionCallback=_.oo;this.wrappedJob=function(){g();B.completionCallback()};
this.id=++oom};
Gav.prototype.enqueue=function(g){this.completionCallback=g;this.jobId=_.F6.addJob(this.wrappedJob,this.priority,this.delay)};
var z9=function(){_.yn.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.f(z9,_.yn);z9.prototype.addJob=function(g,r,E){g=new Gav(g,r,E);this.taskIdToTask.set(g.id,g);this.isActive?Q$t(this,g):this.suspendedTasks.add(g);return g.id};
var Q$t=function(g,r){g.scheduledTasks.add(r);r.enqueue(function(){g.scheduledTasks.delete(r)})};
z9.prototype.cancelJob=function(g){(g=this.taskIdToTask.get(g))&&(this.scheduledTasks.delete(g)?_.F6.cancelJob(g.jobId):this.suspendedTasks.delete(g))};
z9.prototype.pause=function(){var g=this;this.isActive=!1;this.scheduledTasks.forEach(function(r){_.F6.cancelJob(r.jobId);g.suspendedTasks.add(r)});
this.scheduledTasks.clear()};
z9.prototype.start=function(){var g=this;this.isActive=!0;this.suspendedTasks.forEach(function(r){Q$t(g,r)});
this.suspendedTasks.clear()};
z9.prototype.reset=function(){this.scheduledTasks.forEach(function(g){_.F6.cancelJob(g.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var kZ=function(g,r){this.JSC$11074_networkService_=g;this.pageRequestPromise=r};
kZ.prototype.fetchData=function(g){z1D(this,this.JSC$11074_networkService_.fetchData(g))};
kZ.prototype.postData=function(g,r){z1D(this,this.JSC$11074_networkService_.postData(g,r))};
kZ.prototype.requestDataForServiceEndpoint=function(g,r){z1D(this,this.JSC$11074_networkService_.requestDataForServiceEndpoint(g,r))};
var z1D=function(g,r){r.then(g.pageRequestPromise.onSuccess,g.pageRequestPromise.onFailure,g.pageRequestPromise)};
kZ.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var HR=function(g){this.buildNetworkRequest_=g;this.pendingRequests_=new Set};
HR.prototype.reset=function(){this.pendingRequests_.forEach(function(g){g.cancel()});
this.pendingRequests_.clear()};
HR.prototype.fetchData=function(g){var r=ka8(this);r.fetchData(g);return r.pageRequestPromise};
HR.prototype.postData=function(g,r){var E=ka8(this);E.postData(g,r);return E.pageRequestPromise};
HR.prototype.requestDataForServiceEndpoint=function(g,r){var E=ka8(this);E.requestDataForServiceEndpoint(g,r);return E.pageRequestPromise};
var ka8=function(g){var r=g.buildNetworkRequest_();g.pendingRequests_.add(r);var E=function(){g.pendingRequests_.delete(r)};
r.pageRequestPromise.then(E,E);return r},Hm6=function(g){var r=new z9;
this.JSC$11081_networkService_=g;this.JSC$11081_taskManager_=r;this.JSC$11081_networkManager_=new HR(this.networkRequestFactory_.bind(this))};
_.S=Hm6.prototype;_.S.networkRequestFactory_=function(){return new kZ(this.JSC$11081_networkService_,new _.dT(this.JSC$11081_taskManager_))};
_.S.reset=function(){this.JSC$11081_taskManager_.reset();this.JSC$11081_networkManager_.reset()};
_.S.start=function(){this.JSC$11081_taskManager_.start()};
_.S.pause=function(){this.JSC$11081_taskManager_.pause()};
_.S.getTaskManager=function(){return this.JSC$11081_taskManager_};
_.S.getNetworkManager=function(){return this.JSC$11081_networkManager_};
var T2g=null,EKA=[],SX=0,UJ=0,OJ=null,pXg=!1,ML=null,wft=void 0,Yg5=function(){var g=(0,_.mZD)();g&&gPm(g,g.mechanism.__iterator__(!0))},ux=function(g){this.token=g};
ux.getInstance=function(){var g;return _.q(function(r){if(r.nextAddress==1)return _.D(r,_.dM(),2);g=r.yieldResult;if(!g)return r.return();ux.instance||(ux.instance=new ux(g));return r.return(ux.instance)})};
var uRg=function(g){var r;return _.q(function(E){if(E.nextAddress==1)return _.D(E,Ub6(g.token),2);r=E.yieldResult;return E.return(r.clear("resource-manifest-assets"))})},qL=function(g){this.token=g};
qL.getInstance=function(){var g;return _.q(function(r){if(r.nextAddress==1)return _.D(r,_.dM(),2);g=r.yieldResult;if(!g)return r.return();qL.instance||(qL.instance=new qL(g));return r.return(qL.instance)})};
var Ml$=function(g){var r;return _.q(function(E){if(E.nextAddress==1)return _.D(E,Ub6(g.token),2);r=E.yieldResult;return _.D(E,r.clear("auth"),0)})},P2D=!1,R1F=function(g){_.gl.call(this,g)};
_.f(R1F,_.k9D);var nog="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(" ");Sb4()&&nog.push("details:not(:has(summary))");var UHz=nog.join(",");var AgA=function(){var g=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return g?parseInt(g[1],10):0},s$t=function(g){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+g)!=-1||document.currentScript.src.indexOf("&"+g)!=-1)},fBv=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},FZ4=function(g){g.length?$Qm(g.shift(),function(){FZ4(g)}):JgM()},WZz=function(g){return"chrome-extension://"+g+"/cast_sender.js"},$Qm=function(g,
r,E){var B=document.createElement("script");
B.onerror=r;E&&(B.onload=E);_.mg(B,_.Ay(g));(document.head||document.documentElement).appendChild(B)},j$m=function(){var g=AgA(),r=[];
if(g>1){var E=g-1;r.push("//www.gstatic.com/eureka/clank/"+g+"/cast_sender.js");r.push("//www.gstatic.com/eureka/clank/"+E+"/cast_sender.js")}return r},JgM=function(){var g=fBv();
g&&g(!1,"No cast extension found")},thz=function(){if(Af6){var g=2,r=fBv(),E=function(){g--;
g==0&&r&&r(!0)};
window.__onGCastApiAvailable=E;$Qm("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",JgM,E)}},bu5=function(){thz();
var g=j$m();g.push("//www.gstatic.com/eureka/clank/cast_sender.js");FZ4(g)},Pq$=function(){thz();
var g=j$m();g.push.apply(g,_.jW(ewD.map(WZz)));g.push("//www.gstatic.com/eureka/clank/cast_sender.js");FZ4(g)},Af6=s$t("loadCastFramework")||s$t("loadCastApplicationFramework"),ewD=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var bm$=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(bm$,_.xu);var JfL=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(JfL,_.xu);var PLg=function(){var g=new JfL;return _.Fi(g,1,3)};var pQ=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(pQ,_.xu);var JxL=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(JxL,_.xu);var tTM=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(tTM,_.xu);tTM.prototype.getToken=function(){return _.jI(this,1)};
tTM.prototype.setToken=function(g){return _.Vj(this,1,g)};
var Axv=function(g){return _.nt(g,3,_.IA,_.BT())},bk8=function(g){return _.nt(g,6,_.IA,_.BT())};var YZ=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(YZ,_.xu);YZ.prototype.getToken=function(){return _.zP(this,tTM,2)};
YZ.prototype.setToken=function(g){return _.Bu(this,2,g)};
YZ.prototype.getName=function(){return _.jI(this,6)};
var Fzg=_.rs(YZ);var e1A=function(g,r,E){this.requestMessage=g;this.methodDescriptor=r;this.metadata=E};
e1A.prototype.getMetadata=function(){return this.metadata};var WzL=function(g,r){r=r===void 0?{}:r;this.responseMessage=g;this.metadata=r;this.status=null};
WzL.prototype.getMetadata=function(){return this.metadata};
WzL.prototype.getStatus=function(){return this.status};var RP=function(g,r,E,B,w){this.name=g;this.methodType="unary";this.requestType=r;this.responseType=E;this.requestSerializeFn=B;this.responseDeserializeFn=w},CLM=function(g,r,E){E=E===void 0?{}:E;
return new e1A(r,g,E)};
RP.prototype.getName=function(){return this.name};var nQ=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(nQ,_.xu);nQ.prototype.setHeader=function(g){return _.Bu(this,1,g)};
nQ.prototype.hasHeader=function(){return _.Qt(this,pQ,1)};var KzA=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(KzA,_.xu);var xQM=new RP("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",nQ,KzA,function(g){return g.serialize()},_.rs(KzA));var sF=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(sF,_.xu);sF.prototype.setHeader=function(g){return _.Bu(this,1,g)};
sF.prototype.hasHeader=function(){return _.Qt(this,pQ,1)};var aB6=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(aB6,_.xu);var XX$=new RP("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",sF,aB6,function(g){return g.serialize()},_.rs(aB6));var fQ=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(fQ,_.xu);fQ.prototype.setHeader=function(g){return _.Bu(this,1,g)};
fQ.prototype.hasHeader=function(){return _.Qt(this,pQ,1)};var Nr$=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(Nr$,_.xu);Nr$.prototype.getLink=function(){return _.zP(this,YZ,1)};var IBM=new RP("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",fQ,Nr$,function(g){return g.serialize()},_.rs(Nr$));var $Z=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f($Z,_.xu);$Z.prototype.setHeader=function(g){return _.Bu(this,1,g)};
$Z.prototype.hasHeader=function(){return _.Qt(this,pQ,1)};var mQ6=new RP("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",$Z,YZ,function(g){return g.serialize()},Fzg);var cfA=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(cfA,_.xu);var img=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(img,_.xu);img.prototype.getUrl=function(){return _.jI(this,2)};
img.prototype.setUrl=function(g){return _.Vj(this,2,g)};var LzM=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(LzM,_.xu);var VTA=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(VTA,_.xu);var h1m=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(h1m,_.xu);var NHA=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(NHA,_.xu);var X36=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(X36,_.xu);var Zm$=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(Zm$,_.xu);var hUM=_.rs(Zm$);var yfD=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(yfD,_.xu);var j4=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(j4,_.xu);j4.prototype.setHeader=function(g){return _.Bu(this,1,g)};
j4.prototype.hasHeader=function(){return _.Qt(this,pQ,1)};
j4.prototype.getCompletionUrl=function(){return _.jI(this,6)};
j4.prototype.getDeviceId=function(){return _.jI(this,11)};var vo5=new RP("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",j4,Zm$,function(g){return g.serialize()},hUM);var dQF=new Set(["SAPISIDHASH","APISIDHASH"]);var TrM=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(TrM,_.xu);TrM.prototype.getMessage=function(){return _.jI(this,2)};
var gj4=_.rs(TrM);var AJ=function(g,r){this.xhrNodeReadableStream_=g.nodeReadableStream;this.grpcResponseDeserializeFn_=r;this.JSC$17226_xhr_=g.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$17226_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&rlt(this)},Uq8=function(g,r){var E=new EjF;
_.j_(g.JSC$17226_xhr_,"complete",function(){if(g.JSC$17226_xhr_.isSuccess()){var B=g.JSC$17226_xhr_.getResponseText();var w;if(w=r)w=g.JSC$17226_xhr_,w.JSC$7885_xhr_&&w.isComplete()?(w=w.JSC$7885_xhr_.getResponseHeader("Content-Type"),w=w===null?void 0:w):w=void 0,w=w==="text/plain";if(w){if(!atob)throw Error("Sj");B=atob(B)}try{var O=g.grpcResponseDeserializeFn_(B)}catch(u){bS(g,G5$(new _.nc(13,"Error when deserializing response data; error: "+u+(", response: "+B)),E));return}B=_.Z5X(g.JSC$17226_xhr_.getStatus());
B05(g,wmg(g));B==0?S0M(g,O):bS(g,G5$(new _.nc(B,"Xhr succeeded but the status code is not 200"),E))}else{B=g.JSC$17226_xhr_.getResponseText();O=wmg(g);if(B){var M=O08(g,B);B=M.code;w=M.details;M=M.metadata}else B=2,w="Rpc failed due to xhr error. uri: "+String(g.JSC$17226_xhr_.JSC$7885_lastUri_)+", error code: "+g.JSC$17226_xhr_.JSC$7885_lastErrorCode_+", error: "+g.JSC$17226_xhr_.getLastError(),M=O;B05(g,O);bS(g,G5$(new _.nc(B,w,M),E))}})},rlt=function(g){g.xhrNodeReadableStream_.on("data",function(r){if("1"in
r){var E=r["1"];
try{var B=g.grpcResponseDeserializeFn_(E)}catch(w){bS(g,new _.nc(13,"Error when deserializing response data; error: "+w+(", response: "+E)))}B&&S0M(g,B)}if("2"in r)for(r=O08(g,r["2"]),E=0;E<g.onStatusCallbacks_.length;E++)g.onStatusCallbacks_[E](r)});
g.xhrNodeReadableStream_.on("end",function(){B05(g,wmg(g));for(var r=0;r<g.onEndCallbacks_.length;r++)g.onEndCallbacks_[r]()});
g.xhrNodeReadableStream_.on("error",function(){if(g.JSC$17226_onErrorCallbacks_.length!=0){var r=g.JSC$17226_xhr_.JSC$7885_lastErrorCode_;r!==0||g.JSC$17226_xhr_.isSuccess()||(r=6);var E=-1;switch(r){case 0:var B=2;break;case 7:B=10;break;case 8:B=4;break;case 6:E=g.JSC$17226_xhr_.getStatus();B=_.Z5X(E);break;default:B=14}B05(g,wmg(g));r=_.$O6(r)+", error: "+g.JSC$17226_xhr_.getLastError();E!=-1&&(r+=", http status code: "+E);bS(g,new _.nc(B,r))}})},wmg=function(g){var r={},E=ZRm(g.JSC$17226_xhr_);
Object.keys(E).forEach(function(B){r[B]=E[B]});
return r},O08=function(g,r){var E=2,B={};
try{var w=gj4(r);E=_.wY(w,1);var O=w.getMessage();_.ER(w,hcL,3,_.BT()).length&&(B["grpc-web-status-details-bin"]=r)}catch(M){g.JSC$17226_xhr_&&g.JSC$17226_xhr_.getStatus()===404?(E=5,O="Not Found: "+String(g.JSC$17226_xhr_.JSC$7885_lastUri_)):(E=14,O="Unable to parse RpcStatus: "+M)}return{code:E,details:O,metadata:B}};
AJ.prototype.on=function(g,r){g=="data"?this.onDataCallbacks_.push(r):g=="metadata"?this.onMetadataCallbacks_.push(r):g=="status"?this.onStatusCallbacks_.push(r):g=="end"?this.onEndCallbacks_.push(r):g=="error"&&this.JSC$17226_onErrorCallbacks_.push(r);return this};
var JJ=function(g,r){r=g.indexOf(r);r>-1&&g.splice(r,1)};
AJ.prototype.removeListener=function(g,r){g=="data"?JJ(this.onDataCallbacks_,r):g=="metadata"?JJ(this.onMetadataCallbacks_,r):g=="status"?JJ(this.onStatusCallbacks_,r):g=="end"?JJ(this.onEndCallbacks_,r):g=="error"&&JJ(this.JSC$17226_onErrorCallbacks_,r);return this};
AJ.prototype.cancel=function(){this.JSC$17226_xhr_.abort()};
var S0M=function(g,r){for(var E=0;E<g.onDataCallbacks_.length;E++)g.onDataCallbacks_[E](r)},B05=function(g,r){for(var E=0;E<g.onMetadataCallbacks_.length;E++)g.onMetadataCallbacks_[E](r)},bS=function(g,r){for(var E=0;E<g.JSC$17226_onErrorCallbacks_.length;E++)g.JSC$17226_onErrorCallbacks_[E](r)};
AJ.prototype.cancel=AJ.prototype.cancel;AJ.prototype.removeListener=AJ.prototype.removeListener;AJ.prototype.on=AJ.prototype.on;var EjF=function(){var g=Error.call(this);this.message=g.message;"stack"in g&&(this.stack=g.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.f(EjF,Error);var PR=function(g){this.JSC$17235_worker_=g.worker||null;this.JSC$17235_streamBinaryChunks_=g.streamBinaryChunks||!1;this.JSC$17235_credentialsMode_=void 0};
_.rc(PR,_.vrA);PR.prototype.createInstance=function(){var g=new tJ(this.JSC$17235_worker_,this.JSC$17235_streamBinaryChunks_);this.JSC$17235_credentialsMode_&&g.setCredentialsMode(this.JSC$17235_credentialsMode_);return g};
PR.prototype.setCredentialsMode=function(g){this.JSC$17235_credentialsMode_=g};
var tJ=function(g,r){_.ze.call(this);this.JSC$17239_worker_=g;this.JSC$17239_streamBinaryChunks_=r;this.JSC$17239_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$17239_responseHeaders_=null;this.JSC$17239_method_="GET";this.JSC$17239_url_="";this.inProgress_=!1;this.JSC$17239_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.rc(tJ,_.ze);tJ.prototype.open=function(g,r){if(this.readyState!=0)throw this.abort(),Error("Tj");this.JSC$17239_method_=g;this.JSC$17239_url_=r;this.readyState=1;FC(this)};
tJ.prototype.send=function(g){if(this.readyState!=1)throw this.abort(),Error("Uj");if(this.abortController_.signal.aborted)throw this.abort(),Error("Vj");this.inProgress_=!0;var r={headers:this.requestHeaders_,method:this.JSC$17239_method_,credentials:this.JSC$17239_credentialsMode_,cache:void 0,signal:this.abortController_.signal};g&&(r.body=g);(this.JSC$17239_worker_||_.ED).fetch(new Request(this.JSC$17239_url_,r)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
tJ.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort();this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,e4(this));this.readyState=0};
tJ.prototype.handleResponse_=function(g){if(this.inProgress_&&(this.fetchResponse_=g,this.JSC$17239_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$17239_responseHeaders_=g.headers,this.readyState=2,FC(this)),this.inProgress_&&(this.readyState=3,FC(this),this.inProgress_)))if(this.responseType==="arraybuffer")g.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.ED.ReadableStream!==
"undefined"&&"body"in g){this.currentReader_=g.body.getReader();if(this.JSC$17239_streamBinaryChunks_){if(this.responseType)throw Error("Wj");this.response=[]}else this.response=this.responseText="",this.JSC$17239_textDecoder_=new TextDecoder;M7D(this)}else g.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var M7D=function(g){g.currentReader_.read().then(g.handleDataFromStream_.bind(g)).catch(g.handleSendFailure_.bind(g))};
tJ.prototype.handleDataFromStream_=function(g){if(this.inProgress_){if(this.JSC$17239_streamBinaryChunks_&&g.value)this.response.push(g.value);else if(!this.JSC$17239_streamBinaryChunks_){var r=g.value?g.value:new Uint8Array(0);if(r=this.JSC$17239_textDecoder_.decode(r,{stream:!g.done}))this.response=this.responseText+=r}g.done?e4(this):FC(this);this.readyState==3&&M7D(this)}};
tJ.prototype.handleResponseText_=function(g){this.inProgress_&&(this.response=this.responseText=g,e4(this))};
tJ.prototype.handleResponseArrayBuffer_=function(g){this.inProgress_&&(this.response=g,e4(this))};
tJ.prototype.handleSendFailure_=function(){this.inProgress_&&e4(this)};
var e4=function(g){g.readyState=4;g.fetchResponse_=null;g.currentReader_=null;g.JSC$17239_textDecoder_=null;FC(g)};
tJ.prototype.setRequestHeader=function(g,r){this.requestHeaders_.append(g,r)};
tJ.prototype.getResponseHeader=function(g){return this.JSC$17239_responseHeaders_?this.JSC$17239_responseHeaders_.get(g.toLowerCase())||"":""};
tJ.prototype.getAllResponseHeaders=function(){if(!this.JSC$17239_responseHeaders_)return"";for(var g=[],r=this.JSC$17239_responseHeaders_.entries(),E=r.next();!E.done;)E=E.value,g.push(E[0]+": "+E[1]),E=r.next();return g.join("\r\n")};
tJ.prototype.setCredentialsMode=function(g){this.JSC$17239_credentialsMode_=g};
var FC=function(g){g.onreadystatechange&&g.onreadystatechange.call(g)};
Object.defineProperty(tJ.prototype,"withCredentials",{get:function(){return this.JSC$17239_credentialsMode_==="include"},
set:function(g){this.setCredentialsMode(g?"include":"same-origin")}});var q0L=function(g){var r="";_.jn.forEach(g,function(E,B){r+=B;r+=":";r+=E;r+="\r\n"});
return r},uuL=function(g,r,E){if(_.jn.isEmpty(E))return g;
E=q0L(E);if(typeof g==="string")return _.KV(g,_.Ia(r),E);_.L5(g,r,E);return g};var lpt=function(){this.isInputValid_=!0;this.JSC$17244_streamPos_=0;this.leftoverInput_=""};
lpt.prototype.isInputValid=function(){return this.isInputValid_};var og=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$17247_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
og.prototype.isInputValid=function(){return this.state_!=3};
var WR=function(g,r,E,B){g.state_=3;g.errorMessage_="The stream is broken @"+g.JSC$17247_streamPos_+"/"+E+". Error: "+B+". With input:\n"+r;throw Error(g.errorMessage_);};
og.prototype.acceptsBinaryInput=function(){return!0};
og.prototype.parse=function(g){function r(l){l&128&&WR(O,M,u,"invalid tag");(l&7)!=2&&WR(O,M,u,"invalid wire type");O.tag_=l>>>3;O.tag_!=1&&O.tag_!=2&&O.tag_!=15&&WR(O,M,u,"unexpected tag");O.state_=1;O.length_=0;O.countLengthBytes_=0}
function E(l){O.countLengthBytes_++;O.countLengthBytes_==5&&l&240&&WR(O,M,u,"message length too long");O.length_|=(l&127)<<(O.countLengthBytes_-1)*7;l&128||(O.state_=2,O.countMessageBytes_=0,typeof Uint8Array!=="undefined"?O.messageBuffer_=new Uint8Array(O.length_):O.messageBuffer_=Array(O.length_),O.length_==0&&w())}
function B(l){O.messageBuffer_[O.countMessageBytes_++]=l;O.countMessageBytes_==O.length_&&w()}
function w(){if(O.tag_<15){var l={};l[O.tag_]=O.messageBuffer_;O.result_.push(l)}O.state_=0}
for(var O=this,M=g instanceof Array?g:new Uint8Array(g),u=0;u<M.length;){switch(O.state_){case 3:WR(O,M,u,"stream already broken");break;case 0:r(M[u]);break;case 1:E(M[u]);break;case 2:B(M[u]);break;default:throw Error("Yj`"+O.state_);}O.JSC$17247_streamPos_++;u++}g=O.result_;O.result_=[];return g.length>0?g:null};var zU$=function(){this.errorMessage_=null;this.JSC$17250_streamPos_=0;this.base64Decoder_=new lpt;this.pbParser_=new og};
zU$.prototype.isInputValid=function(){return this.errorMessage_===null};
var DqA=function(g,r,E){g.errorMessage_="The stream is broken @"+g.JSC$17250_streamPos_+". Error: "+E+". With input:\n"+r;throw Error(g.errorMessage_);};
zU$.prototype.acceptsBinaryInput=function(){return!1};
zU$.prototype.parse=function(g){this.errorMessage_!==null&&DqA(this,g,"stream already broken");var r=null;try{var E=this.base64Decoder_;if(!E.isInputValid_)throw E.isInputValid_=!1,Error("Xj`"+E.JSC$17244_streamPos_+"`stream already broken`"+g);E.leftoverInput_+=g;var B=Math.floor(E.leftoverInput_.length/4);if(B==0)var w=null;else{try{var O=_.hAo(E.leftoverInput_.slice(0,B*4))}catch(l){var M=E.leftoverInput_,u=l.message;E.isInputValid_=!1;throw Error("Xj`"+E.JSC$17244_streamPos_+"`"+u+"`"+M);}E.JSC$17244_streamPos_+=
B*4;E.leftoverInput_=E.leftoverInput_.slice(B*4);w=O}r=w===null?null:this.pbParser_.parse(w)}catch(l){DqA(this,g,l.message)}this.JSC$17250_streamPos_+=g.length;return r};var Qv8=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$17253_streamPos_=0;this.result_=[];this.statusParsed_=!1};
Qv8.prototype.isInputValid=function(){return this.errorMessage_===null};
Qv8.prototype.acceptsBinaryInput=function(){return!1};
Qv8.prototype.parse=function(g){function r(l){O.state_=6;O.errorMessage_="The stream is broken @"+O.JSC$17253_streamPos_+"/"+M+". Error: "+l+". With input:\n";throw Error(O.errorMessage_);}
function E(){O.jsonStreamParser_=new _.TA({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function B(l){if(l)for(var Q=0;Q<l.length;Q++){var z={};z[1]=l[Q];O.result_.push(z)}}
function w(l){if(l){(O.statusParsed_||l.length>1)&&r("extra status: "+l);O.statusParsed_=!0;var Q={};Q[2]=l[0];O.result_.push(Q)}}
for(var O=this,M=0;M<g.length;){var u;if(u=O.state_!==2){a:{for(;M<g.length;){if(!_.d3(g[M])){u=!0;break a}M++;O.JSC$17253_streamPos_++}u=!1}u=!u}if(u)return null;switch(O.state_){case 6:r("stream already broken");break;case 0:g[M]==="["?(O.state_=1,M++,O.JSC$17253_streamPos_++):r("unexpected input token");break;case 1:g[M]==="["?(O.state_=2,E()):g[M]===","||g.slice(M,M+5)=="null,"?O.state_=3:g[M]==="]"?(O.state_=5,M++,O.JSC$17253_streamPos_++):r("unexpected input token");break;case 2:u=O.jsonStreamParser_.parse(g.substring(M));
B(u);O.jsonStreamParser_.done()?(O.state_=3,u=O.jsonStreamParser_.JSC$9520_buffer_,O.JSC$17253_streamPos_+=g.length-M-u.length,g=u,M=0):(O.JSC$17253_streamPos_+=g.length-M,M=g.length);break;case 3:g[M]===","||g.slice(M,M+5)=="null,"?(O.state_=4,E(),O.jsonStreamParser_.parse("["),M+=g[M]===","?1:5,O.JSC$17253_streamPos_++):g[M]==="]"&&(O.state_=5,M++,O.JSC$17253_streamPos_++);break;case 4:u=O.jsonStreamParser_.parse(g.substring(M));w(u);O.jsonStreamParser_.done()?(O.state_=5,u=O.jsonStreamParser_.JSC$9520_buffer_,
O.JSC$17253_streamPos_+=g.length-M-u.length,g=u,M=0):(O.JSC$17253_streamPos_+=g.length-M,M=g.length);break;case 5:r("extra input after stream end")}}return O.result_.length>0?(g=O.result_,O.result_=[],g):null};var ojM=function(g){this.JSC$17256_xhr_=g;this.JSC$17256_parser_=null;this.status_=this.JSC$17256_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$17256_textDecoder_=null;this.JSC$17256_eventHandler_=new _.EQ(this);this.JSC$17256_eventHandler_.listen(this.JSC$17256_xhr_,"readystatechange",this.JSC$17258_readyStateChangeHandler_)},CQ=function(g,r){g.status_!=r&&(g.status_=r,g.statusHandler_&&g.statusHandler_())},KQ=function(g){g.JSC$17256_eventHandler_.removeAll();
if(g.JSC$17256_xhr_){var r=g.JSC$17256_xhr_;g.JSC$17256_xhr_=null;r.abort();r.dispose()}};
ojM.prototype.getStatus=function(){return this.status_};
ojM.prototype.JSC$17258_readyStateChangeHandler_=function(g){g=g.target;try{if(g==this.JSC$17256_xhr_)a:{var r=_.$$(this.JSC$17256_xhr_),E=this.JSC$17256_xhr_.JSC$7885_lastErrorCode_,B=this.JSC$17256_xhr_.getStatus(),w=this.JSC$17256_xhr_.getResponseText();g=[];if(this.JSC$17256_xhr_.getResponse()instanceof Array){var O=this.JSC$17256_xhr_.getResponse();O.length>0&&O[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,g=O)}if(!(r<3||r==3&&!w&&g.length==0))if(B=B==200||B==206,r==4&&(E==8?CQ(this,
7):E==7?CQ(this,8):B||CQ(this,3)),this.JSC$17256_parser_||(this.JSC$17256_parser_=k5F(this.JSC$17256_xhr_),this.JSC$17256_parser_==null&&CQ(this,5)),this.status_>2)KQ(this);else{if(g.length>this.JSC$17256_pos_){var M=g.length;E=[];try{if(this.JSC$17256_parser_.acceptsBinaryInput())for(var u=0;u<M;u++){var l=this.JSC$17256_parser_.parse(Array.from(g[u]));l&&(E=E.concat(l))}else{l="";if(!this.JSC$17256_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Zj");this.JSC$17256_textDecoder_=new TextDecoder}for(u=
0;u<M;u++)l+=this.JSC$17256_textDecoder_.decode(g[u],{stream:r==4&&u==M-1});E=this.JSC$17256_parser_.parse(l)}g.splice(0,M);E&&this.dataHandler_(E)}catch(z){CQ(this,5);KQ(this);break a}}else if(w.length>this.JSC$17256_pos_){u=w.slice(this.JSC$17256_pos_);this.JSC$17256_pos_=w.length;try{var Q=this.JSC$17256_parser_.parse(u);Q!=null&&this.dataHandler_&&this.dataHandler_(Q)}catch(z){CQ(this,5);KQ(this);break a}}r==4?(w.length!=0||this.hasStreamingResponseData_?CQ(this,2):CQ(this,4),KQ(this)):CQ(this,
1)}}}catch(z){CQ(this,6),KQ(this)}};var GuF=function(g){g=this.xhrReader_=g;var r=(0,_.$r)(this.onData_,this);g.dataHandler_=r;g=this.xhrReader_;r=(0,_.$r)(this.onStatusChange_,this);g.statusHandler_=r;this.JSC$17260_callbackMap_={};this.callbackOnceMap_={}};
_.S=GuF.prototype;_.S.on=function(g,r){var E=this.JSC$17260_callbackMap_[g];E||(E=[],this.JSC$17260_callbackMap_[g]=E);E.push(r);return this};
_.S.addListener=function(g,r){this.on(g,r);return this};
_.S.removeListener=function(g,r){var E=this.JSC$17260_callbackMap_[g];E&&_.ht(E,r);(g=this.callbackOnceMap_[g])&&_.ht(g,r);return this};
_.S.once=function(g,r){var E=this.callbackOnceMap_[g];E||(E=[],this.callbackOnceMap_[g]=E);E.push(r);return this};
_.S.onData_=function(g){var r=this.JSC$17260_callbackMap_.data;r&&Qz4(g,r);(r=this.callbackOnceMap_.data)&&Qz4(g,r);this.callbackOnceMap_.data=[]};
var Qz4=function(g,r){for(var E={},B=0;B<g.length;E={message$jscomp$969:void 0},B++)E.message$jscomp$969=g[B],r.forEach(function(w){return function(O){try{O(w.message$jscomp$969)}catch(M){}}}(E))};
GuF.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:ziA(this,"readable");break;case 5:case 6:case 4:case 7:case 3:ziA(this,"error");break;case 8:ziA(this,"close");break;case 2:ziA(this,"end")}};
var ziA=function(g,r){var E=g.JSC$17260_callbackMap_[r];E&&E.forEach(function(B){try{B()}catch(w){}});
(E=g.callbackOnceMap_[r])&&E.forEach(function(B){B()});
g.callbackOnceMap_[r]=[]};var kum=function(){var g={format:"jspb"};g=g===void 0?{}:g;this.suppressCorsPreflight=g.suppressCorsPreflight||_.XS("suppressCorsPreflight",g)||!1;this.withCredentials=g.withCredentials||_.XS("withCredentials",g)||!1;this.streamInterceptors=g.streamInterceptors||[];this.unaryInterceptors=g.unaryInterceptors||[];this.workerScope=g.workerScope;this.chunkedServerStreaming=g.useFetchDownloadStreams||!1},Y0v=function(g,r,E,B,w,O){O=O===void 0?{}:O;
var M=r.substring(0,r.length-w.name.length),u,l=(u=O)==null?void 0:u.signal;return H08(function(Q){return new Promise(function(z,k){if(l==null?0:l.aborted){var H=new _.nc(1,"Aborted");H.cause=l.reason;k(H)}else{var R={},A=pm$(g,Q,M);A.on("error",function(J){return void k(J)});
A.on("metadata",function(J){R=J});
A.on("data",function(J){var e=R;e=e===void 0?{}:e;z(new WzL(J,e))});
l&&l.addEventListener("abort",function(){A.cancel();var J=new _.nc(1,"Aborted");J.cause=l.reason;k(J)})}})},g.unaryInterceptors).call(g,CLM(w,E,B)).then(function(Q){return Q.responseMessage})},xZ=function(g,r,E,B,w,O){O=O===void 0?{}:O;
return Y0v(g,r,E,B,w,O)};
kum.prototype.serverStreaming=function(g,r,E,B){var w=this,O=g.substring(0,g.length-B.name.length);return Riv(function(M){var u=M.methodDescriptor,l=M.getMetadata(),Q=nj4(w,!1);l=sz6(w,l,Q,O+u.getName());var z=fp8(Q,u.responseDeserializeFn,!0);M=u.requestSerializeFn(M.requestMessage);Q.send(l,"POST",M);return z},this.streamInterceptors).call(this,CLM(B,r,E))};
var pm$=function(g,r,E){var B=r.methodDescriptor,w=r.getMetadata(),O=nj4(g,!0);g=sz6(g,w,O,E+B.getName());E=fp8(O,B.responseDeserializeFn,!1);Uq8(E,w["X-Goog-Encode-Response-If-Executable"]==="base64");r=B.requestSerializeFn(r.requestMessage);O.send(g,"POST",r);return E},nj4=function(g,r){r=g.chunkedServerStreaming&&!r;
return g.workerScope||r?new _.fc(new PR({worker:g.workerScope,streamBinaryChunks:r})):new _.fc},sz6=function(g,r,E,B){r["Content-Type"]="application/json+protobuf";
r["X-User-Agent"]="grpc-web-javascript/0.1";var w=r.Authorization;if(w&&dQF.has(w.split(" ")[0])||g.withCredentials)E.JSC$7885_withCredentials_=!0;if(g.suppressCorsPreflight)B=uuL(B,"$httpHeaders",r);else for(g=_.U(Object.keys(r)),w=g.next();!w.done;w=g.next())w=w.value,E.headers.set(w,r[w]);return B},fp8=function(g,r,E){if(E){E=new ojM(g);
var B=new GuF(E)}return new AJ({xhr:g,nodeReadableStream:B},r)},Riv=function(g,r){return r.reduce(function(E,B){return function(w){return B.intercept(w,E)}},g)},H08=function(g,r){return r.reduce(function(E,B){return function(w){return B.intercept(w,E)}},g)};var $qv=function(g){this.client_=new kum;this.hostname_=g==void 0?g:g.replace(/\/+$/,"")};
_.S=$qv.prototype;_.S.JSC$17278_depositGoogleCredential=function(g,r,E){return xZ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",g,r||{},XX$,E)};
_.S.deleteLink=function(g,r,E){return xZ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",g,r||{},xQM,E)};
_.S.JSC$17278_finishOAuth=function(g,r,E){return xZ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",g,r||{},IBM,E)};
_.S.getLink=function(g,r,E){return xZ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",g,r||{},mQ6,E)};
_.S.startLinkingSession=function(g,r,E){return xZ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",g,r||{},vo5,E)};var jzF=[0,ayF,1,IyM,[0,_.mq,[0,XKt,-1]],[0,Ntz],[0,mhM,-1]];var AlF=function(){this.storage=new Map},JlA=function(g,r,E,B,w){if(!g.storage.has(r))return null;
g=_.U(g.storage.get(r));for(r=g.next();!r.done;r=g.next())if(r=r.value,!w||r.linkName===w)if(E&&r.scopes&&b0m(r.scopes,E)||B&&r.capabilities&&b0m(r.capabilities,B))return r;return null},PP4=function(g,r,E){if(!E)g.storage.delete(r);
else if(g.storage.has(r)){var B=g.storage.get(r).filter(function(w){return w.linkName!==E});
B.length>0?g.storage.set(r,B):g.storage.delete(r)}},b0m=function(g,r){r=_.U(r);
for(var E=r.next();!E.done;E=r.next())if(!g.has(E.value))return!1;return!0};var t76=function(){var g=_.Ca("LINK_GAL_DOMAIN");this.alsDomain1p=_.Ca("LINK_GAL_DOMAIN");this.alsDomain3p=g;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},F7M=function(g,r){g.apiKey=r;
return g};
t76.prototype.build=function(){var g={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("$j");g.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("ak");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("bk");g.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(g.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)g.apiKey=
this.apiKey,g.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("ck");g.oauthToken=this.oauthToken;g.alsDomain=this.alsDomain3p}g.clientXd3=this.clientXd3;g.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(g.authUser=this.authUser);this.bucket!==void 0&&(g.bucket=this.bucket);this.completionUrl!==void 0&&(g.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(g.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(g.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(g.locale=this.locale);g.loggerType=this.loggerType;g.clientEnvironment=this.clientEnvironment;g.colorScheme=this.colorScheme;g.showCloseOption=this.showCloseOption;return g};var Gc=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(Gc,_.xu);var eiD=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(eiD,_.xu);var W7v=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(W7v,_.xu);var zc=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(zc,_.xu);var CPM=function(g){return _.AX(g,1)};var K7M=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(K7M,_.xu);var fsM=_.rs(K7M),QS=[1,2,3,4,5];var Ybt=function(g){try{return fsM(g)}catch(r){return null}},xq8=function(){},RU8=function(g,r){switch(_.px(r,QS)){case 4:return(r=_.PL(r,W7v,4,QS))&&g.logStateTransition(_.AX(r,1)),!0;
case 5:return(r=_.PL(r,eiD,5,QS))&&g.logInternalEvent(_.AX(r,1)),!0}return!1},$HD=function(g){switch(g){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.MM(g)}};var HkA=function(g,r){var E=this;this.validator=g;this.messageListener=r;this.dismissCallback=function(){apm(E,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$17307_receiveMessage=function(B){B.type==="message"&&(B=B.event_,B!==null&&(new URL(E.iframe.src)).origin===B.origin&&E.validator(B.data,B.origin)&&!E.messageListener(B.data)&&(E.JSC$17307_resolveCb!==void 0&&E.JSC$17307_resolveCb(B.data),XmD(E)))}},svt=function(g,r,E){g.uiHandler!==void 0&&apm(g,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(B,w){g.JSC$17307_resolveCb=B;g.JSC$17307_rejectCb=w;g.iframe=document.createElement("iframe");_.ta(g.iframe,r);g.uiHandler=E.displayContent(g.iframe,g.dismissCallback);_.j_(window,"message",g.JSC$17307_receiveMessage,!1,g)})},apm=function(g,r){g.JSC$17307_rejectCb!==void 0&&g.JSC$17307_rejectCb(r);
XmD(g)},XmD=function(g){g.uiHandler!==void 0&&g.uiHandler.hideContent();
_.Qu(window,"message",g.JSC$17307_receiveMessage,!1,g);g.JSC$17307_resolveCb=void 0;g.JSC$17307_rejectCb=void 0;g.uiHandler=void 0;g.iframe=void 0};var N06=function(g){if(g===2){var r;g=((r=window)==null?0:r.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return g},n55=function(g){g=N06(g);
switch(g){case 0:return"light";case 1:return"dark";default:_.MM(g)}};var p3z=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),IpA=function(g,r){this.JSC$17319_linkingSession=g;this.noticeConfig=r;this.displayInfoMap=new Map;var E=new Map;if(_.Qt(this.JSC$17319_linkingSession,LzM,7))for(g=_.zP(this.JSC$17319_linkingSession,LzM,7),g=_.ER(g,img,1,_.BT()),g=_.U(g),r=g.next();!r.done;r=g.next())r=r.value,E.set(_.AX(r,1),_.DDJ(_.zP(r,_.TfX,3)));if(E.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){r=this.noticeConfig.enabledDataUsageNoticeUis;g=r.has(0)?E.get(1):void 0;r=r.has(1)?E.get(2):void 0;E=g!==void 0&&r!==void 0?E.get(3):void 0;var B=this.noticeConfig.nestedOrigins;var w=new K7M;var O=new Gc;w=_.ws(w,2,QS,O);O=new K7M;var M=new Gc;O=_.ws(O,3,QS,M);M=[];g!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:g,lastEvent:w,nestedOrigins:B}]),M.push({trustedUrl:g,lastEvent:w,nestedOrigins:B}));r!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:r,lastEvent:O,nestedOrigins:B}]),M.push({trustedUrl:r,lastEvent:O,nestedOrigins:B}));E!==void 0?this.displayInfoMap.set(3,[{trustedUrl:E,lastEvent:O,nestedOrigins:B}]):this.displayInfoMap.set(3,M)}};var mqt=function(g){var r=new AlF;this.galService=g;this.galCache=r};
mqt.prototype.getLink=function(g){var r=g.serviceId;var E=g.scopes;var B=g.capabilities;var w=g.linkName;var O=this,M;return _.q(function(u){if(B!==void 0&&E!==void 0)throw Error("dk");M=JlA(O.galCache,r,E,B,w);return M!==null?u.return(M):u.return(O.galService.getLink({serviceId:r,sessionId:Math.floor(Math.random()*2147483648),scopes:E,capabilities:B,linkName:w}).then(function(l){l=Pp4(l);var Q=O.galCache;Q.storage.has(r)?Q.storage.get(r).push(l):Q.storage.set(r,[l]);return l}))})};
mqt.prototype.deleteLink=function(g,r,E){var B=this;return _.q(function(w){PP4(B.galCache,g,E);return w.return(B.galService.deleteLink({serviceId:g,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:r,linkName:E}).then(function(){return!0}))})};var i0L=function(g,r){var E=this;this.validator=g;this.msgHandler=r;this.closedPopupTimeout=this.JSC$17341_rejectCb=this.JSC$17341_resolveCb=this.popup=null;this.JSC$17341_receiveMessage=function(B){if(B!==null&&(B=B.event_,B.source===E.popup)){var w=B.data;if(E.validator(w,B.origin)){var O;(O=E.msgHandler)!=null&&O.call(E,w)||(E.JSC$17341_resolveCb!==null&&E.JSC$17341_resolveCb(w),cl5(E))}}}};
i0L.prototype.open=function(g,r){var E=this;this.popup!==null&&L78(this);return new Promise(function(B,w){E.JSC$17341_resolveCb=B;E.JSC$17341_rejectCb=w;E.popup=_.Wu(window,g,"",r);_.j_(window,"message",E.JSC$17341_receiveMessage,!1,E);V76(E)})};
var L78=function(g,r){g.JSC$17341_rejectCb!==null&&g.JSC$17341_rejectCb(r);cl5(g)},cl5=function(g){g.closedPopupTimeout&&(g.closedPopupTimeout.cancel(),g.closedPopupTimeout=null);
g.popup&&g.popup.close();_.Qu(window,"message",g.JSC$17341_receiveMessage,!1,g);g.popup=null;g.JSC$17341_resolveCb=null;g.JSC$17341_rejectCb=null},V76=function(g){g.closedPopupTimeout=_.YUT(100).then(function(){g.popup?g.popup.closed?hig(g):V76(g):L78(g,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},hig=function(g){g.closedPopupTimeout=_.YUT(100).then(function(){L78(g,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var Z0M=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),yl8=function(g,r,E,B,w,O,M,u,l,Q){var z=this;this.serviceId=g;this.sessionId=r;this.galService=E;this.oauthDetails=B;this.galLogger=w;this.interactionMode=O;this.redirectServiceUrl=M;this.consentLanguageKeys=u;this.dynamicUrlParameters=l;this.partnerConfigMinReadTimestamp=Q;this.started=!1;this.JSC$17347_dataValidator=function(k,
H){var R=Z0M.has(H);R||z.redirectServiceUrl===void 0||(R=z.redirectServiceUrl===H);return R?k.sentinel==="gdi":!1}};
yl8.prototype.complete=function(){var g=this,r;return _.q(function(E){if(g.interactionMode!==1)return E.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));r=Hl.getRedirectStateFromUri();return r===null?E.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):E.return(vjM(g,r))})};
yl8.prototype.start=function(){var g=this,r;return _.q(function(E){if(g.started)return E.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.jI(g.oauthDetails,1))return E.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(g.interactionMode===1)return Hl.setLocation(_.jI(g.oauthDetails,1)),E.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));g.started=!0;g.galLogger.logStateTransition(5);
r=Hl.getPostMessagePopup(g.JSC$17347_dataValidator);return E.return(r.open(_.jI(g.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(B){g.started=!1;var w=g.galLogger;if((B==null?void 0:B.error)!==void 0)throw w.logInternalEvent(59),Error("ek");if((B==null?void 0:B.redirect_state)===void 0)throw w.logInternalEvent(131),Error("fk");return vjM(g,B.redirect_state)}).catch(function(B){g.started=
!1;
return B.errorCode!==void 0?{statusCode:B.errorCode,statusMessage:B.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var vjM=function(g,r){return _.q(function(E){return E.return(dqD(g.galService,{serviceId:g.serviceId,sessionId:g.sessionId,dynamicUrlParameters:g.dynamicUrlParameters,redirectState:r,consentLanguageKeys:g.consentLanguageKeys,partnerConfigMinReadTimestamp:g.partnerConfigMinReadTimestamp}).then(function(B){var w={statusCode:1,link:Pp4(B.getLink())};Gj4(_.k2(B,3))!==void 0&&(w.callerState=Gj4(_.k2(B,3)));g.galLogger.logInternalEvent(134);return w}))})},Hl={getPostMessagePopup:function(g){return new i0L(g)},
getRedirectStateFromUri:function(){var g=_.cT(Hl.getLocation()).fragment_;return(new _.gj(g)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(g){_.ha(window.location,_.nI(g))},
createOAuthFlow:function(g,r){return new yl8(g.serviceId,g.sessionId,g.galService,r,g.galLogger,g.interactionMode,g.redirectServiceUrl,g.consentLanguageKeys,g.dynamicUrlParameters,g.partnerConfigMinReadTimestamp)}};var T0v=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(T0v,_.xu);var gIt=_.rs(T0v);var rQv=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),EIM=function(g,r,E,B,w,O,M,u,l){var Q=this;this.serviceId=g;this.sessionId=r;this.galService=E;this.gsiWebFlowDetails=B;this.colorScheme=w;this.showCloseOption=O;this.galLogger=M;this.interactionMode=u;this.redirectServiceUrl=l;this.started=!1;this.JSC$17359_dataValidator=function(z,k){var H=rQv.has(k);H||Q.redirectServiceUrl===
void 0||(H=Q.redirectServiceUrl===k);return H?z.sentinel==="gal":!1};
this.logEventProcessor=function(z){return z.result?(z=Ybt(z.result))?RU8(Q.galLogger,z):!1:!1}};
EIM.prototype.complete=function(){var g=this,r,E;return _.q(function(B){if(g.interactionMode!==1)return B.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));r=pb.getRedirectStateFromUri();if(r===void 0)return g.galLogger.JSC$17299_logErrorEvent(131),B.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return E=Bxv(g,r),B.return(wv$(g,E))}catch(w){return B.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
EIM.prototype.start=function(){var g=this,r;return _.q(function(E){if(g.started)return E.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.jI(g.gsiWebFlowDetails,1))return E.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(g.interactionMode===1)return pb.setLocation(S8M(g,_.jI(g.gsiWebFlowDetails,1))),E.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
g.started=!0;r=pb.getPostMessagePopup(g.JSC$17359_dataValidator,g.logEventProcessor);return E.return(r.open(S8M(g,_.jI(g.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(B){g.started=!1;if((B==null?void 0:B.result)===void 0)throw g.galLogger.JSC$17299_logErrorEvent(131),Error("fk");B=Bxv(g,B.result);return wv$(g,B)}).catch(function(B){g.started=!1;
return B.errorCode!==void 0?{statusCode:B.errorCode,statusMessage:B.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var S8M=function(g,r){g=["result_channel",g.interactionMode===1?"2":"1","color_scheme",n55(g.colorScheme),"show_close_option",g.showCloseOption];return VkM(r,g)},wv$=function(g,r){if(r!==null&&_.Qt(r,zc,2)){var E,B=r==null?void 0:(E=_.zP(r,zc,2))==null?void 0:_.AX(E,2);
B&&g.galLogger.JSC$17299_logErrorEvent($HD(B));return CPM(_.zP(r,zc,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 g.galService.getLink({serviceId:g.serviceId,sessionId:g.sessionId,consistencyKey:_.jI(r,1)}).then(function(w){w=Pp4(w);g.galLogger.logInternalEvent(134);return{statusCode:1,link:w}})},Bxv=function(g,r){r=gIt(r);
if(!_.Qt(r,zc,2)&&_.jI(r,1)==="")throw g.galLogger.JSC$17299_logErrorEvent(5),Error("gk");return r},pb={getPostMessagePopup:function(g,r){return new i0L(g,r)},
getRedirectStateFromUri:function(){return _.iD(_.cT(pb.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(g){_.ha(window.location,_.nI(g))},
createStreamlinedFlow:function(g,r){return new EIM(g.serviceId,g.sessionId,g.galService,r,g.colorScheme,g.showCloseOption,g.galLogger,g.interactionMode,g.redirectServiceUrl)}};var L8t=function(){var g=_.krJ("GAL");this.storage=g?new _.n3(g):null};var aP=function(){};
_.f(aP,xq8);aP.prototype.logStateTransition=function(){};
aP.prototype.logInternalEvent=function(){};
aP.prototype.JSC$17299_logErrorEvent=function(){};var OZ5=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(OZ5,_.xu);OZ5.prototype.getCompletionUrl=function(){return _.jI(this,15)};var XC=function(g,r,E,B,w,O){this.serviceId=g;this.environment=r;this.sessionId=E;this.colorSchemeSelected=B;this.colorThemeDisplayed=w;this.JSC$17372_transport=O;this.currentState=1};
_.f(XC,xq8);XC.prototype.logStateTransition=function(g){var r=US$(this);r=_.B8(r,3,this.currentState);r=_.B8(r,1,g);this.currentState=g;g=hND(1);this.dispatch(r,g)};
XC.prototype.logInternalEvent=function(g){g=hND(g);this.dispatch(US$(this),g)};
XC.prototype.JSC$17299_logErrorEvent=function(g){var r=US$(this);r=_.B8(r,1,10);g=hND(g);this.dispatch(r,g)};
var US$=function(g){var r=new OZ5;r=_.B8(r,1,g.currentState);r=_.H$(r,7,g.serviceId);var E,B;var w=((E=window)==null?0:(B=E.location)==null?0:B.href)?_.cT(window.location.href).JSC$8122_domain_:"NO_PACKAGE_NAME";E=_.H$(r,8,w);E=_.B8(E,6,g.environment);E=_.H$(E,5,"100");E=_.B8(E,11,g.colorSchemeSelected);return _.B8(E,12,g.colorThemeDisplayed)};
XC.prototype.dispatch=function(g,r){r===void 0&&(r=new _.B2);var E=r;g=g.serialize();E=_.H$(E,8,g);_.nC(E,12,this.sessionId);this.JSC$17372_transport.dispatch(r)};var MaM=function(g,r){this.loggerType=g;this.sessionIndex=r!=null?r:0},q8A;
MaM.prototype.create=function(g,r,E,B,w){switch(this.loggerType){case 0:return new aP;case 1:return q8A||(q8A=(new _.Dq(555,this.sessionIndex.toString())).build()),new XC(g,r,E,B,w,q8A);default:_.MM(this.loggerType,"unknown logger type")}};var Ys=[6,2,3,1],dH5=new Map([[4,1],[1,6],[2,2],[3,3]]),W8g={statusCode:7,statusMessage:"Failed to create flow object"},cxz=function(g,r,E,B,w,O,M,u,l,Q){this.serviceId=g;this.sessionId=r;this.config=E;this.galService=B;this.JSC$17379_linkingSession=w;this.googleScopes=O;this.callerState=M;this.consentLanguageKeys=u;this.dynamicUrlParameters=l;this.partnerConfigMinReadTimestamp=Q;this.currentFlow=0;B=this.JSC$17379_linkingSession;w=new Set;_.Qt(B,X36,1)&&w.add(1);_.Qt(B,h1m,2)&&_.Qt(B,NHA,6)&&w.add(2);
_.Qt(B,VTA,3)&&_.Qt(B,NHA,6)&&w.add(3);_.Qt(B,cfA,4)&&w.add(6);this.supportedFlows=w;B=E.loggerType;w=E.clientEnvironment;a:{O=E.colorScheme;switch(O){case 0:O=1;break a;case 1:O=2;break a;case 2:O=3;break a;default:_.MM(O)}O=void 0}a:{M=E.colorScheme;M=N06(M);switch(M){case 0:M=1;break a;case 1:M=2;break a;default:_.MM(M)}M=void 0}this.galLogger=(new MaM(B,E.authUser)).create(g,w,r,O,M)},lPA=function(g){return new Promise(function(r){var E,B,w,O,M,u,l,Q,z,k;
return _.q(function(H){switch(H.nextAddress){case 1:E=Isg(g.currentFlow,g.supportedFlows),B=!1,w=new IpA(g.JSC$17379_linkingSession,g.config.dataUsageNoticeConfig);case 2:if(E===void 0){H.jumpTo(4);break}_.qN(H,5);var R=w,A=E,J=void 0;B?A===1&&(J=R.displayInfoMap.get(2)):A===2||A===3?J=R.displayInfoMap.get(1):A===1&&(J=R.displayInfoMap.get(3));O=J?J:[];M=g.consentLanguageKeys;u=_.U(O);l=u.next();case 7:if(l.done)return g.currentFlow=E,_.D(H,K8M(uav(g,M)),11);Q=l.value;return _.D(H,jvz(Q,g.config.dataUsageNoticeConfig.uiAdapter,
g.config.colorScheme,g.galLogger),10);case 10:z=H.yieldResult;if(z.statusCode!==1)return V86(g.serviceId),g.currentFlow=0,r(ks({statusCode:z.statusCode,statusMessage:z.statusMessage},g.callerState)),H.return();z.consentLanguageKeys!==void 0&&(M=z.consentLanguageKeys);l=u.next();H.jumpTo(7);break;case 11:k=H.yieldResult;if(k.statusCode!==10)return k.statusCode!==6&&(V86(g.serviceId),g.currentFlow=0),k.statusCode!==1&&g.callerState!==void 0&&(k.callerState=g.callerState),r(k),H.return();_.Ne(H,6);break;
case 5:_.G2(H);case 6:E=Isg(g.currentFlow,g.supportedFlows);B=!0;H.jumpTo(2);break;case 4:V86(g.serviceId),g.currentFlow=0,r(ks({statusCode:12,statusMessage:"Linking failed"},g.callerState)),_.Q3(H)}})})},yx$=function(g,r,E){g.currentFlow=r;
return xHz(uav(g,E)).then(function(B){return B.statusCode===10&&g.config.interactionMode===1&&Isg(g.currentFlow,g.supportedFlows)!==void 0?lPA(g):B})},uav=function(g,r){return{flowParams:{serviceId:g.serviceId,
sessionId:g.sessionId,galService:g.galService,galLogger:g.galLogger,interactionMode:g.config.interactionMode,redirectServiceUrl:g.config.redirectServiceUrl,colorScheme:g.config.colorScheme,consentLanguageKeys:r,dynamicUrlParameters:g.dynamicUrlParameters,showCloseOption:g.config.showCloseOption,partnerConfigMinReadTimestamp:g.partnerConfigMinReadTimestamp},currentFlow:g.currentFlow,config:g.config,session:g.JSC$17379_linkingSession,googleScopes:g.googleScopes,callerState:g.callerState}};var gy4=function(g,r){this.config=g;this.galService=r.getService();this.JSC$17392_galRepository=r.JSC$17410_galRepository};
gy4.prototype.getLink=function(g,r){return DSM(this,g,r)};
var DSM=function(g,r,E){return g.JSC$17392_galRepository.getLink({serviceId:r,scopes:void 0,capabilities:void 0,linkName:E}).then(function(B){return{statusCode:1,link:B}}).catch(function(B){return{statusCode:TH4(B.code),
statusMessage:B.message}})};
gy4.prototype.deleteLink=function(g,r){return this.JSC$17392_galRepository.deleteLink(g,this.config.accountLinkingEntryPoint,r).then(function(){return{statusCode:1}}).catch(function(E){return{statusCode:TH4(E.code),
statusMessage:E.message}})};
gy4.prototype.startLinkingSession=function(g){var r=g.serviceId;var E=g.sessionId;return ikF({serviceId:r,sessionId:E!==void 0?E:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:g.loginHint,callerState:g.callerState,consentLanguageKeys:g.consentLanguageKeys,linkName:g.linkName,dynamicUrlParameters:g.dynamicUrlParameters,partnerConfigMinReadTimestamp:g.partnerConfigMinReadTimestamp})};var NK=function(g,r,E,B,w,O,M){this.apiKey=r;this.authUser=E;this.oauthToken=B;this.bucket=w;this.locale=O;this.galSdkEventHandler=M;if(B===void 0){if(r===void 0)throw Error("hk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new $qv(g)};
NK.prototype.deleteLink=function(g){var r=g.serviceId;var E=g.sessionId;var B=g.accountLinkingEntryPoint;var w=g.linkName;var O=this,M;return _.q(function(u){var l=(new nQ).setHeader(IP(O,E));var Q=oIm({serviceId:r,linkName:w});l=_.Bu(l,2,Q);M=_.Fi(l,3,B);return u.return(O.makeRequest(O.galServiceClient.deleteLink,M,[1,3],[2,4]))})};
var dqD=function(g,r){var E=r.serviceId;var B=r.sessionId;var w=r.dynamicUrlParameters;var O=r.redirectState;var M=r.consentLanguageKeys;var u=r.partnerConfigMinReadTimestamp;var l;return _.q(function(Q){var z=(new fQ).setHeader(IP(g,B,w));z=_.Vj(z,2,E);l=_.Vj(z,4,O);M!==void 0&&_.Vj(l,5,M);u!==void 0&&_.Bu(l,6,u);return Q.return(g.makeRequest(g.galServiceClient.JSC$17278_finishOAuth,l,[1,3],[2,4]))})};
NK.prototype.getLink=function(g){var r=g.serviceId;var E=g.sessionId;var B=g.scopes;var w=g.capabilities;var O=g.consistencyKey;var M=g.linkName;var u=this,l;return _.q(function(Q){var z=(new $Z).setHeader(IP(u,E)),k=oIm({serviceId:r,scopes:B,capabilities:w,linkName:M});l=_.Bu(z,2,k);O!==void 0&&(z=PLg(),z=_.Vj(z,2,O),_.Bu(l,3,z));return Q.return(u.makeRequest(u.galServiceClient.getLink,l,[1,3],[2,4]))})};
var asF=function(g,r){var E=r.serviceId;var B=r.sessionId;var w=r.googleScopes;var O=r.consistencyKey;var M;return _.q(function(u){var l=(new sF).setHeader(IP(g,B));l=_.Vj(l,2,E);var Q=Array.from(w.values());l=_.$u(l,3,Q,_.aA);Q=PLg();Q=_.Vj(Q,2,O);M=_.Bu(l,4,Q);return u.return(g.makeRequest(g.galServiceClient.JSC$17278_depositGoogleCredential,M,[1,3],[2,4]))})};
NK.prototype.startLinkingSession=function(g){var r=g.serviceId;var E=g.sessionId;var B=g.scopes;var w=g.capabilities;var O=g.loginHint;var M=g.supportedFlows;var u=g.completionUrl;var l=g.usePingPong;var Q=g.twoWayLinking;var z=g.accountLinkingEntryPoint;var k=g.callerState;var H=g.consentLanguageKeys;var R=g.googleScopes;var A=g.dataUsageNoticeConfig;var J=g.linkName;var e=g.dynamicUrlParameters;var C=g.partnerConfigMinReadTimestamp;var X=this,Z,c;return _.q(function(h){if(w!==void 0&&B!==void 0)throw Error("dk");
var y=(new j4).setHeader(IP(X,E,e));Z=_.Vj(y,2,r);J!==void 0&&_.Vj(Z,14,J);if(w!==void 0){y=Z;var OD=Array.from(w.values());_.$u(y,5,OD,_.aA)}else B!==void 0&&(y=Z,OD=Array.from(B.values()),_.$u(y,3,OD,_.aA));u!==void 0&&_.Vj(Z,6,u);l!==void 0&&_.jG(Z,15,l);M!==void 0&&(y=Z,OD=Array.from(M.values()),_.$u(y,4,OD,_.HF));if(Q!==void 0){if(Q&&(!R||R.size===0))throw Error("ik");_.jG(Z,8,Q)}z!==void 0&&_.Fi(Z,9,z);O!==void 0&&_.Vj(Z,13,O);k!==void 0&&(y=Z,OD=(new TextEncoder).encode(k),_.jz(y,12,_.Cw(OD,
!1),_.W6()));H!==void 0&&_.Vj(Z,16,H);C!==void 0&&_.Bu(Z,18,C);if(A!==void 0&&A.size>0||R!==void 0&&R.size>0)c=new yfD,R!==void 0&&R.size>0&&(y=c,OD=Array.from(R.values()),_.$u(y,1,OD,_.aA)),A!==void 0&&(A.has(0)&&_.MvA(c,2,_.HF,1,_.Yt),A.has(1)&&_.MvA(c,2,_.HF,2,_.Yt)),_.Bu(Z,17,c);return h.return(X.makeRequest(X.galServiceClient.startLinkingSession,Z,[1],[2]))})};
NK.prototype.getMetadata=function(){var g=this,r,E;return _.q(function(B){r={};g.useFpa?(r["X-Goog-Api-Key"]=g.apiKey,r["X-Goog-AuthUser"]=g.authUser!==void 0?g.authUser.toString():"0",(E=_.cjB([]))&&(r.Authorization=E)):r.Authorization="Bearer "+g.oauthToken;g.locale&&(r["accept-language"]=g.locale);return B.return(r)})};
NK.prototype.makeRequest=function(g,r,E,B){var w=this,O;return _.q(function(M){if(M.nextAddress==1)return _.D(M,w.getMetadata(),2);O=M.yieldResult;GGm(w,E);return M.return(g.bind(w.galServiceClient)(r,O).finally(function(){GGm(w,B)}))})};
var GGm=function(g,r){g.galSdkEventHandler!==void 0&&r.forEach(function(E){g.galSdkEventHandler.onEvent(E)})},IP=function(g,r,E){var B=new pQ;
r=_.jz(B,2,_.sM(r),0);r=_.Fi(r,5,3);E=_.$u(r,8,E,_.aA);g.bucket!==void 0&&_.Vj(E,1,g.bucket);return E},oIm=function(g){var r=g.serviceId;
var E=g.scopes;var B=g.capabilities;g=g.linkName;if(B!==void 0&&E!==void 0)throw Error("dk");var w=new bm$;r=_.Vj(w,1,r);B!==void 0?(E=Array.from(B.values()),_.$u(r,5,E,_.aA)):E!==void 0&&(E=Array.from(E.values()),_.$u(r,3,E,_.aA));g!==void 0&&_.Vj(r,6,g);return r};var rFD=function(g){this.galService=new NK(g.alsDomain,g.apiKey,g.authUser,g.oauthToken,g.bucket,g.locale,g.galSdkEventHandler);this.JSC$17410_galRepository=new mqt(this.galService)};
rFD.prototype.getService=function(){return this.galService};var Qxz=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(Qxz,_.xu);var zH8=function(g){var r=new Qxz;return _.B8(r,1,g)};
Qxz.prototype.setErrorMessage=function(g){return _.H$(this,2,g)};var kG$=[0,_.iR,_.IU,_.iR];var mP=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(mP,_.xu);var HZ$=[0,[1,2,3],_.cL,[0,WJ6,xhL,-1],_.cL,[0,KJm,-1],_.EMP];var pvM=[0,_.Xi,1,_.iR,_.IU,-1,1,_.SOc,_.aU,_.iR,-1,HZ$];var Y8t=[0,_.iR,[0,_.SOc,_.aU,[0,_.IU]],_.NE,[0,_.iR,-1]];var w6=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(w6,_.xu);var RH8=[0,_.IU,_.iR,-2,_.Xi,_.iR,_.Xi,_.iR,-2,1,_.NE];var nIv=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(nIv,_.xu);var sxg=[0,_.Xi];var fPz=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(fPz,_.xu);var $SA=[0,_.iR,Y8t,sxg,RH8,pvM];var bRM=_.dk(fPz,$SA);var jx6=[0,jzF];var WG8=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(WG8,_.xu);var AQ8=[0,[1,3],cRL,_.iR,cRL];var EF=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(EF,_.xu);var bZM=[0,_.iR];var JQ4=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(JQ4,_.xu);var BR=function(g){return _.PL(g,Qxz,2,r6)},Pjv=function(g){var r=new JQ4;
return _.ws(r,2,r6,g)},r6=[1,
2];var taA=[0,r6,_.cL,bZM,_.cL,kG$,_.mq,AQ8,1,_.iR,jx6];var Fem=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(Fem,_.xu);var We4=function(g){var r=new Fem;return _.ws(r,3,eH$,g)},eH$=[2,
3];var cR=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(cR,_.xu);var Cjt=function(g,r){return _.Bu(g,2,r)},KeA=function(g,r){return _.Bu(g,8,r)},xSv=function(g,r){return _.Bu(g,3,r)};var aP8=[0,_.iR,taA,$SA,_.GLw,[0,[5,6],[0,_.iR,-2],[0,_.Xi,_.iR,_.IU],[0,HZ$],[0,_.IU,_.iR,-1,_.otw,_.iR],_.cL,[0,[0,_.Xi],_.iR,-1],_.cL,[0,[3,4],_.iR,-1,_.cL,[0,[0,_.iR,_.NE]],_.cL,[0,[0,[0,[1,2],_.cL,[0],_.cL,[0]]]]]],_.GLw,-1,[0,eH$,_.iR,_.cL,bZM,_.cL,kG$,_.mq,AQ8,[0,jzF]]];var Xvz=_.dk(cR,aP8),Nxm=_.T_(aP8);var IPt=function(){_.f5.call(this)};
_.f(IPt,_.f5);IPt.prototype.init=function(){};
new IPt;var mSM=_.me(["data-"]),cQ$=_.me(["aria-"]),iZm=_.me(["aria-"]),iS=function(g,r){this.isLatencyMeasurementExperiment=g===void 0?!1:g;this.enableDialogA11yFix=r===void 0?!1:r;this.JSC$17439_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.X64(_.ED.location.href)},Pam=function(g,r){g.onConsentPrimitiveShownCallback=r},Lev=function(g,r){return g.overriddenIframeLoadTimeout?g.overriddenIframeLoadTimeout:r!==void 0?r:5E3},FGm=function(g){if(g.prewarmPromise!==void 0)return g.prewarmPromise;
g.prewarmPromise=new Promise(function(r,E){LQ(g,1);Vam(g,hH6(g,!0),ZZg(g));g.iframe?g.prewarmChannel||yQ4(g,g.iframe,r):E(Error("jk"))});
g.prewarmPromise.finally(function(){g.prewarmPromise=void 0});
return g.prewarmPromise};
iS.prototype.showPrimitive=function(){var g=this;if(this.consentPromise!==void 0)return this.consentPromise;var r=Date.now();vIL(this,r);this.consentPromise=new Promise(function(E,B){LQ(g,0,r);var w=g.isDarkTheme();g.isLatencyMeasurementExperiment||g.initialLoadingStrategy===1||g.initialLoadingStrategy===2||(g.loadingBar||(g.loadingBar=SQz(getComputedStyle(document.body).direction==="rtl",w),g.loadingBar.style.position="fixed",g.loadingBar.style.zIndex="15000"),document.body.appendChild(g.loadingBar));
Vam(g,hH6(g),ZZg(g));g.iframe?g.channel||dSD(g,g.iframe,E,B):(TxD(g),B(Error("jk")))});
this.consentPromise.finally(function(){g.consentPromise=void 0});
return this.consentPromise};
var dSD=function(g,r,E,B){var w,O;_.q(function(M){switch(M.nextAddress){case 1:LQ(g,3);w=!1;setTimeout(function(){if(!w){TxD(g);g25(g);rXA(g);var u=zH8(7).setErrorMessage("Timeout connecting to iframe");E(KeA(Cjt(new cR,Pjv(u)),We4(u)))}},Lev(g,E2v(g)));
if(!g.prewarmPromise){M.jumpTo(2);break}_.qN(M,3);return _.D(M,g.prewarmPromise,5);case 5:_.Ne(M,2);break;case 3:_.G2(M),O=zH8(4).setErrorMessage("Error while prewarming."),E(KeA(Cjt(new cR,Pjv(O)),We4(O)));case 2:g.prewarmChannel&&g.prewarmChannel.send(Nxm(xSv(new cR,g.consentPrimitiveRequest))),g.channel=_.hX({destination:g.JSC$17439_win,iframe:r,origin:Bc4(g),channelName:"cpw",onEstablished:function(){w=!0;TxD(g);g.isLatencyMeasurementExperiment||(g.JSC$17439_previousBodyOverflow=document.body.style.overflow,
g.JSC$17439_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,g.JSC$17439_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",g.enableDialogA11yFix&&window.addEventListener("blur",g.focusChangeListener));var u=g.iframe;u.style.bottom="0";u.style.position="fixed";u.style.right="0";u.style.border="none";u.style.left="0";u.style.top=
"0";u.style.zIndex="5000";u.style.pointerEvents="";u.style.visibility="";g.initialLoadingStrategy===2||g.initialLoadingStrategy===3?LQ(g,4):LQ(g,6);var l;(l=g.onConsentPrimitiveShownCallback)==null||l.call(g)},
onMessage:function(u){u=Xvz(u.data);switch(_.AX(u,1)){case 1:g25(g);var l=OM5(_.zP(u,_.K0,7));l&&(g.initialLoadingStrategy!==2&&g.initialLoadingStrategy!==3||LQ(g,6,l),LQ(g,5,l));if(l=OM5(_.zP(u,_.K0,6)))LQ(g,7,l),LQ(g,8);var Q,z;((Q=_.zP(u,JQ4,2))==null?void 0:_.px(Q,r6))!==0&&((z=_.zP(u,Fem,8))==null?void 0:_.px(z,eH$))!==0||B(Error("kk"));E(u);break;case 2:rXA(g)}}}),_.Q3(M)}})},yQ4=function(g,r,E){g.prewarmChannel=_.hX({destination:g.JSC$17439_win,
iframe:r,origin:Bc4(g),channelName:"pwcp",onEstablished:function(){LQ(g,2);E()}})},Bc4=function(g){var r=_.ui(g.src).toString();
return r&&r.indexOf("://")<0&&r.indexOf("//")!==0?g.origin:_.X64(r)},hH6=function(g,r){r=r===void 0?!1:r;
var E,B=new Map([["origin",g.origin],["hl",(E=wLv(g))!=null?E:null]]);r&&B.set("pw","1");r=_.U([["cpr",g.consentPrimitiveRequest.serialize()]]);for(E=r.next();!E.done;E=r.next()){var w=_.U(E.value);E=w.next().value;w=w.next().value;B.set(E,w)}g.isDarkTheme()&&B.set("color_scheme","dark");return _.Sn(g.src,B)},TxD=function(g){g.isLatencyMeasurementExperiment||g.loadingBar&&document.body.removeChild(g.loadingBar)};
iS.prototype.getSrc=function(){var g=_.Zn(this.origin),r;var E=(r=_.zP(this.consentPrimitiveRequest,nIv,3))==null?void 0:_.wY(r,1);r="consent.google.com";E=E?"/u/"+encodeURIComponent(E.toString()):"";(g==null?0:g.endsWith("youtube.com"))?r="consent.youtube.com":(g=g==null?void 0:g.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(r="consent.google."+((g[1]?"co.":"")+encodeURIComponent(g[2])));return _.qO("https://"+r+"/signedin"+E+"/landing")};
var Vam=function(g,r,E){g.iframe||(g.iframe=document.createElement("iframe"),g.iframe.style.width="100%",g.iframe.style.height="100%",E!==112496729&&(g.iframe.style.colorScheme="auto"),g.isLatencyMeasurementExperiment&&(g.iframe.style.display="none"),_.ta(g.iframe,r),g.iframe.setAttribute("jsname","C5o1O"),Szz(g.iframe),document.body.appendChild(g.iframe))},Szz=function(g){g.style.bottom="-200vh";
g.style.position="fixed";g.style.right="-200vw";g.style.border="";g.style.left="";g.style.top="";g.style.zIndex="";g.style.pointerEvents="none";g.style.visibility="hidden"},g25=function(g){g.iframe&&(g.isLatencyMeasurementExperiment||(g.JSC$17439_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=g.JSC$17439_previousHtmlOverscroll),g.JSC$17439_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=g.JSC$17439_previousBodyOverscroll),g.JSC$17439_previousBodyOverflow!==
void 0&&(document.body.style.overflow=g.JSC$17439_previousBodyOverflow),g.enableDialogA11yFix&&OxL(g,!1)),Szz(g.iframe))};
iS.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(OxL(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var OxL=function(g,r){var E,B,w=(E=g.iframe)==null?void 0:(B=E.parentElement)==null?void 0:B.children;if(w)for(E=0;E<w.length;E++)B=w[E],B!==g.iframe&&(r?(B.hasAttribute("aria-hidden")&&_.ii([_.EY(mSM)],B,"data-old-aria-hidden",B.getAttribute("aria-hidden")),_.ii([_.EY(cQ$)],B,"aria-hidden","true")):(B.removeAttribute("aria-hidden"),B.hasAttribute("data-old-aria-hidden")&&(_.ii([_.EY(iZm)],B,"aria-hidden",B.getAttribute("data-old-aria-hidden")),B.removeAttribute("data-old-aria-hidden"))))},LQ=function(g,
r,E){var B;
(B=g.latencyCallback)==null||B.call(g,{latencyType:r,timestampEpochMillis:E!=null?E:Date.now()})};var UEM=function(g,r,E){iS.call(this,r,E===void 0?!1:E);this.consentPrimitiveRequest=g;g=wLv(this);_.TMA(g);this.src=this.getSrc();var B;this.initialLoadingStrategy=(B=_.zP(this.consentPrimitiveRequest,w6,4))==null?void 0:_.AX(B,4)},MIm;
_.f(UEM,iS);var JC$=function(g){var r=_.Y("enable_primitive_dialog_aria_hide_siblings");g={request:g,enableDialogA11yFix:r===void 0?!1:r};MIm||(MIm=new UEM(g.request,g.isLatencyMeasurementExperiment||_.AX(g.request,1)===2,g.enableDialogA11yFix));return MIm},wLv=function(g){var r;
return(r=_.zP(g.consentPrimitiveRequest,w6,4))==null?void 0:_.jI(r,1)},vIL=function(g,r){if(!_.Qt(g.consentPrimitiveRequest,mP,5)){var E=g.consentPrimitiveRequest,B=new mP;
_.Bu(E,5,B)}var w;if((w=_.zP(g.consentPrimitiveRequest,mP,5))==null||_.DzQ(_.GE(w,8))==null){var O;(O=_.zP(g.consentPrimitiveRequest,mP,5))!=null&&_.nC(O,8,r)}},ZZg=function(g){var r;
return(r=_.zP(g.consentPrimitiveRequest,mP,5))==null?void 0:_.wY(r,1)};
UEM.prototype.isDarkTheme=function(){var g;return((g=_.zP(this.consentPrimitiveRequest,w6,4))==null?void 0:_.AX(g,2))===2};
var E2v=function(g){var r;return((r=_.zP(g.consentPrimitiveRequest,w6,4))==null?void 0:_.wY(r,5))||void 0},rXA=function(g){g.channel=void 0;
g.prewarmChannel=void 0;g.iframe&&(document.body.contains(g.iframe)&&document.body.removeChild(g.iframe),g.iframe=void 0);MIm=void 0},eND=function(g){return iS.prototype.showPrimitive.call(g).then(function(r){return _.zP(r,JQ4,2)})};for(var VJ={},qz$=(VJ[64]="ma",VJ[73]="ogb",VJ[89]="cr",VJ[21]="test",VJ[0]="unkn",VJ[137]="con",VJ[155]="hl",VJ[78]="yt",VJ[171]="lp",VJ[172]="ap",VJ[177]="amo",VJ[178]="pqe",VJ[74]="gg",VJ[1]="gm",VJ[140]="am",VJ[193]="sc",VJ),ui5=_.U(Object.keys(qz$)),ltL=ui5.next();!ltL.done;ltL=ui5.next());var DEm=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(DEm,_.xu);var o25=[0,[2,3,4],_.iR,CW8,cRL,_.EMP];var GEt=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(GEt,_.xu);var QUF=_.dk(GEt,[0,mhM,_.IU,_.iR,_.IU,_.iR,o25]);var z$6=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(z$6,_.xu);z$6.prototype.getCommand=function(){return _.AX(this,1)};
var kE8=function(){var g=new z$6;return _.Fi(g,1,0)};var Hxg=_.T_([0,mhM,_.IU,[0,_.iR,_.IU,-1]]);var pL5=new _.u8("s"),YzM=new _.u8("t"),R$A=new _.u8("u"),n2M=new _.u8("v"),sU6=function(g,r,E){_.l8.call(this,pL5);this.mediaKey=g;this.photoUrl=r;this.photoSource=E};
_.f(sU6,_.l8);var ftF=function(){_.l8.call(this,YzM)};
_.f(ftF,_.l8);var $ED=function(g){g=g===void 0?!1:g;_.l8.call(this,R$A);this.isError=g};
_.f($ED,_.l8);var jUv=function(){_.l8.call(this,n2M)};
_.f(jUv,_.l8);var AXm=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,tID=function(g){if(typeof g=="string"){if(g.charAt(0)==".")return bx6(g.substr(1));if(g.charAt(0)=="["){var r=AXm.exec(g);g=g.indexOf("=")==-1?void 0:r[3];return JX6(r[1],g)}return PRL(g)}return g},bx6=function(g){return function(r){return r.getAttribute&&_.Kc(r,g)}},JX6=function(g,r){return function(E){return r!==void 0?E.getAttribute&&E.getAttribute(g)==r:E.hasAttribute&&E.hasAttribute(g)}},PRL=function(g){g=g.toUpperCase();
return function(r){return(r=r.tagName)&&r.toUpperCase()==g}},Fqz=function(){return!0};var hJ=function(g,r){this.JSC$17467_key_=g;this.JSC$17467_value_=r},Z5=function(g){throw Error("lk`"+g.JSC$17467_key_);
},e$m=function(g,r){return new TypeError("mk`"+r+"`"+g.JSC$17467_key_+"`"+g.JSC$17467_value_+"`"+typeof g.JSC$17467_value_)};
hJ.prototype.string=function(g){if(arguments.length==0)var r=Wqm(this);else{var E;r=(E=CR8(this))!=null?E:g}return r};
var Wqm=function(g){var r=CR8(g);r===null&&Z5(g);return r},CR8=function(g){var r=g.JSC$17467_value_;
if(r==null)return null;if(typeof r==="string")return r;throw e$m(g,"string");};
hJ.prototype.bool=function(g){if(arguments.length==0){var r=this.optionalBool();r===null&&Z5(this)}else{var E;r=(E=this.optionalBool())!=null?E:g}return r};
hJ.prototype.optionalBool=function(){var g=this.JSC$17467_value_;if(g==null)return null;if(typeof g==="boolean")return g;if(typeof g==="string"){g=g.toLowerCase();if(g==="true"||g==="1")return!0;if(g==="false"||g==="0")return!1}throw e$m(this,"boolean");};
hJ.prototype.number=function(g){if(arguments.length==0){var r=Kqg(this);r===null&&Z5(this)}else{var E;r=(E=Kqg(this))!=null?E:g}return r};
var Kqg=function(g){var r=g.JSC$17467_value_;if(r==null)return null;if(typeof r==="number")return r;if(typeof r==="string"){var E=Number(r);if(!isNaN(E)&&(E!==0||r.trim().length!==0))return E}throw e$m(g,"number");};
hJ.prototype.toString=function(){return Wqm(this)};
hJ.prototype.array=function(g){if(arguments.length==0){var r=xEM(this);r===null&&Z5(this);return r}r=xEM(this);return r==null?g:r};
var xEM=function(g){var r=g.JSC$17467_value_;if(r==null)return null;Array.isArray(r)||(typeof r!=="string"?r=[r]:(r=r.trim(),r=r==""?[]:r.split(",").map(function(E){return E.trim()})));
return atD(g,r)},atD=function(g,r){var E=g.JSC$17467_key_+"[";
return Array.from(r,function(B,w){return new hJ(E+w+"]",B)})};
hJ.prototype.object=function(g){var r=this.JSC$17467_value_;if(r==null)return g===void 0&&Z5(this),g;if(typeof r==="object"&&r.constructor===Object){g={};var E=this.JSC$17467_key_+".",B;for(B in r)g[B]=new hJ(E+B,r[B]);return g}throw e$m(this,"object");};var yJ=function(g){this.list_=XL6(g)},XL6=function(g){if(g instanceof yJ)g=g.list_;
else if(g[0]instanceof yJ){for(var r=new Set,E=0;E<g.length;E++)for(var B=_.U(g[E].list_),w=B.next();!w.done;w=B.next())r.add(w.value);g=r}return[].concat(_.jW(g))};
_.S=yJ.prototype;_.S.each=function(g,r,E){((E===void 0?0:E)?u66:_.mR)(this.list_,g,r);return this};
_.S.size=function(){return this.list_.length};
_.S.isEmpty=function(){return this.list_.length===0};
_.S.get=function(g){return this.list_[g]||null};
_.S.el=function(){return this.list_[0]||null};
_.S.map=function(g,r){return _.bO(this.list_,g,r)};
_.S.equals=function(g){return this===g||_.SU(this.list_,g.list_)};
_.S.first=function(){return this.list_.length==0?null:new vR(this.list_[0])};
_.S.find=function(g){var r=[];this.each(function(E){E=E.querySelectorAll(String(g));for(var B=0;B<E.length;B++)r.push(E[B])});
return new yJ(r)};
_.S.parent=function(){var g=[];this.each(function(r){(r=r.parentElement||null)&&!_.mA(g,r)&&g.push(r)});
return new yJ(g)};
_.S.children=function(){var g=[];this.each(function(r){r=_.Aq(r);for(var E=0;E<r.length;E++)g.push(r[E])});
return new yJ(g)};
_.S.filter=function(g){g=_.BL(this.list_,tID(g));return new yJ(g)};
_.S.closest=function(g){var r=[],E=tID(g),B=function(w){return _.y2(w)&&E(w)};
this.each(function(w){(w=_.CN(w,B,!0))&&!_.mA(r,w)&&r.push(w)});
return new yJ(r)};
_.S.next=function(g){return Ncz(this,_.BAU,g)};
_.S.prev=function(g){return Ncz(this,ihA,g)};
var Ncz=function(g,r,E){var B=[];var w=E?tID(E):Fqz;g.each(function(O){(O=r(O))&&w(O)&&B.push(O)});
return new yJ(B)};
yJ.prototype.setClass=function(g){return this.each(function(r){_.Cc(r,g)})};
var ItM=function(g,r){return g.each(function(E){_.dL(E,r)})},mEM=function(g,r){return g.each(function(E){_.yy(E,r)})};
yJ.prototype.toggleClass=function(g,r){return r===!0?ItM(this,g):r===!1?mEM(this,g):this.each(function(E){_.Kc(E,g)?_.yy(E,g):_.dL(E,g)})};
yJ.prototype.setText=function(g){return this.each(function(r){_.b6(r,g)})};
var cXA=function(g){g.each(function(r){r.removeAttribute("aria-hidden")})};
yJ.prototype.getStyle=function(g){if(this.list_.length>0){var r=this.list_[0],E=r.style[_.Qk(g)];return typeof E!=="undefined"?E:r.style[_.z4w(r,g)]||""}};
yJ.prototype.getData=function(g){if(this.list_.length===0)return new hJ(g,null);var r=zIM(this.list_[0],g);return new hJ(g,r)};
yJ.prototype.focus=function(g){try{g?this.el().focus(g):this.el().focus()}catch(r){}return this};
yJ.prototype.click=function(){var g=_.tL(this.el());if(g.createEvent){var r=g.createEvent("MouseEvents");r.initMouseEvent("click",!0,!0,g.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(r)}else g=g.createEventObject(),g.clientX=0,g.clientY=0,g.screenX=0,g.screenY=0,g.altKey=!1,g.ctrlKey=!1,g.shiftKey=!1,g.button=0,this.el().fireEvent("onclick",g)};
var d6=function(g,r,E,B){function w(u,l,Q){var z=l;l&&l.parentNode&&(z=l.cloneNode(!0));u(z,Q)}
B=B===void 0?!1:B;if(g.list_.length==1){var O=g.list_[0],M=function(u){return r(u,O)};
E instanceof yJ?E.each(M,void 0,B):Array.isArray(E)?(B?u66:_.mR)(E,M):M(E);return g}return g.each(function(u){E instanceof yJ?E.each(function(l){w(r,l,u)}):Array.isArray(E)?_.mR(E,function(l){w(r,l,u)}):w(r,E,u)})};
_.S=yJ.prototype;_.S.append=function(g){return d6(this,function(r,E){r&&E.appendChild(r)},g)};
_.S.appendTo=function(g){(new yJ([g])).append(this);return this};
_.S.remove=function(){return d6(this,function(g,r){_.p5(r)},null)};
_.S.empty=function(){return d6(this,function(g,r){_.fV(r)},null)};
_.S.after=function(g,r){return d6(this,function(E,B){E&&_.j5(E,B)},g,!(r===void 0||r))};
_.S.before=function(g){return d6(this,function(r,E){r&&_.$4(r,E)},g)};
_.S.replaceWith=function(g){return d6(this,function(r,E){r&&_.gbU(r,E)},g)};
_.S.toggle=function(g){return this.each(function(r){_.Vr(r,g)})};
_.S.show=function(){return this.toggle(!0)};
_.S.hide=function(){return this.toggle(!1)};
_.S.trigger=function(g,r,E,B){return ixg(this,g,r,E,B)};
var ixg=function(g,r,E,B,w){return g.each(function(O){_.p0S(_.tL(O)).triggerWizEventInternal(O,r,E,B,w)})},vR=function(g,r){g instanceof yJ&&(r=g.list_,g=null);
this.list_=XL6(g!=null?[g]:r)};
_.rc(vR,yJ);_.S=vR.prototype;_.S.children=function(){return new yJ(Array.prototype.slice.call(_.Aq(this.list_[0])))};
_.S.each=function(g,r){g.call(r,this.list_[0],0);return this};
_.S.size=function(){return 1};
_.S.el=function(){return this.list_[0]};
_.S.first=function(){return this};var T9=function(g,r){r=r===void 0?window:r;this.hostId=g;this.JSC$17478_win=r;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$17478_previousHtmlOverscroll=this.JSC$17478_previousBodyOverscroll=this.JSC$17478_previousBodyOverflow="";this.eventTarget=new _.ze;this.JSC$17478_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
h$6=function(g){var r=LqA(LqA(LqA(new VI5(78),"po"),"hppp"),"hhc");
r.authUser=Number(_.Ca("SESSION_INDEX","0"));r.colorScheme=g;return r};
T9.prototype.getOrigin=function(){return this.origin?this.origin:_.Zf(_.he(_.Vu(new _.Vk,this.JSC$17478_win.location.protocol),this.JSC$17478_win.location.hostname),this.JSC$17478_win.location.port).toString()};
T9.prototype.getTargetOrigin=function(){return _.Zf(_.he(_.Vu(new _.Vk,this.scheme),this.domain),this.port)};
T9.prototype.preloadIframe=function(g){var r=this;if(this.iframeLoadPromise===void 0){var E=document.createElement("iframe");this.iframe=E;oy$(E,g);this.iframeLoadPromise=new Promise(function(B,w){var O=!1,M=function(u){u.stopPropagation();E.removeEventListener("error",M);E.removeEventListener("securitypolicyviolation",M);w(Error("nk",{cause:u}))};
E.addEventListener("error",M);E.addEventListener("securitypolicyviolation",M);setTimeout(function(){O||w(Error("ok"))},3E4);
Zx5(r,E,function(){O=!0;E.removeEventListener("error",M);E.removeEventListener("securitypolicyviolation",M);B()})});
yXz(this);g=this.getTargetOrigin().toString();E.setAttribute("allow","camera "+g+"; display-capture "+g);this.parentElement.appendChild(E)}return this.iframeLoadPromise};
var mcg=function(g,r){var E,B;return _.q(function(w){if(w.nextAddress==1)return E=SQz(getComputedStyle(g.parentElement).direction==="rtl"),g.parentElement.appendChild(E),document.activeElement instanceof HTMLElement&&(g.elementToFocusAfterClose=document.activeElement),_.qN(w,2),_.D(w,g.preloadIframe(r),4);if(w.nextAddress!=2){g.parentElement.removeChild(E);g.JSC$17478_previousBodyOverflow=g.parentElement.style.overflow;g.JSC$17478_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
g.JSC$17478_previousBodyOverscroll=g.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";g.parentElement.style.overscrollBehavior="contain";g.parentElement.style.overflow="hidden";var O=g.iframe;O.style.bottom="0";O.style.border="none";O.style.height="100%";O.style.left="0";O.style.position=g.iframePosition;O.style.right="0";O.style.top="0";O.style.width="100%";O.style.zIndex="2202";O.setAttribute("aria-hidden","false");O.setAttribute("aria-modal","true");
g.opened=!0;v2A(g);return _.Ne(w,0)}B=_.G2(w);g.parentElement.removeChild(E);upt(g.isDarkTheme());IX4(g,!1);throw Error("pk",{cause:B});})},IX4=function(g,r){r=r===void 0?!0:r;
g.iframe!==void 0&&(c1A(g),document.documentElement.style.overscrollBehavior=g.JSC$17478_previousHtmlOverscroll,g.parentElement.style.overscrollBehavior=g.JSC$17478_previousBodyOverscroll,g.parentElement.style.overflow=g.JSC$17478_previousBodyOverflow,g.elementToFocusAfterClose!==void 0&&(g.elementToFocusAfterClose.focus(),g.elementToFocusAfterClose=void 0),r?yXz(g):(g.parentElement.removeChild(g.iframe),g.iframe=void 0,g.iframeLoadPromise=void 0,g.mainChannel=void 0),g.opened=!1)},c1A=function(g){g.backgroundElementsAriaHiddenIsNull&&
(cXA(g.backgroundElementsAriaHiddenIsNull),g.backgroundElementsAriaHiddenIsNull=void 0);
g.backgroundElementsAriaHiddenIsFalse&&(g.backgroundElementsAriaHiddenIsFalse.each(function(r){r.setAttribute("aria-hidden","false")}),g.backgroundElementsAriaHiddenIsFalse=void 0);
g.backgroundElementsWithoutInert&&(g.backgroundElementsWithoutInert.each(function(r){r.removeAttribute("inert")}),g.backgroundElementsWithoutInert=void 0)},v2A=function(g){g.backgroundElementsAriaHiddenIsNull=(new vR(g.iframe.parentElement)).children().filter(function(r){return r.getAttribute("aria-hidden")===null&&r!==g.iframe});
g.backgroundElementsAriaHiddenIsNull.each(function(r){r.setAttribute("aria-hidden","true")});
g.backgroundElementsAriaHiddenIsFalse=(new vR(g.iframe.parentElement)).children().filter(function(r){return r.getAttribute("aria-hidden")==="false"&&r!==g.iframe});
g.backgroundElementsAriaHiddenIsFalse.each(function(r){r.setAttribute("aria-hidden","true")});
g.backgroundElementsWithoutInert=(new vR(g.iframe.parentElement)).children().filter(function(r){return!r.hasAttribute("inert")&&r!==g.iframe});
g.backgroundElementsWithoutInert.each(function(r){r.setAttribute("inert","true")})},yXz=function(g){g=g.iframe;
g.style.bottom="-1000px";g.style.position="fixed";g.style.right="-1000px";g.style.border="";g.style.height="";g.style.left="";g.style.top="";g.style.width="";g.style.zIndex="";g.setAttribute("aria-hidden","true");g.setAttribute("aria-modal","false")};
T9.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var VI5=function(g,r){T9.call(this,qz$[g],r);this.options=[];this.style=""};
_.f(VI5,T9);var iUD=function(g){g.style="youtube";return g},LTL=function(g,r){g.eventTarget.listen(R$A,r);
return g},VYm=function(g,r){g.eventTarget.listen(pL5,r);
return g},LqA=function(g,r){g.options.push(r);
return g},hq$=function(g){var r=[g.getOrigin()];
g.ancestorOrigins&&r.push.apply(r,_.jW(g.ancestorOrigins));var E=new _.Vk(g.JSC$17478_win.location.href),B=g.startUrl?g.startUrl:g.options.includes("po")?"profile-picture/art":"profile-picture";r=S4(_.yu(g.getTargetOrigin(),B),"origin",r);g.startUrl&&_.L5(r,"startPath",g.startUrl);g.authUser>0&&_.L5(r,"authuser",g.authUser);g.pageId!==void 0&&_.L5(r,"pageId",g.pageId);_.L5(r,"hostId",g.hostId);g.jsMode!==void 0&&_.L5(r,"jsmode",g.jsMode);g.rectangleRatio!==void 0&&_.L5(r,"rectangleRatio",g.rectangleRatio);
g.options.length>0&&_.L5(r,"opts",g.options.join(","));try{for(var w=_.U(["utm_source","utm_medium","utm_campaign","utm_content"]),O=w.next();!O.done;O=w.next()){var M=O.value;_.iD(E,M)&&_.L5(r,M,_.iD(E,M))}var u,l=(u=g.hl)!=null?u:_.iD(E,"hl");l!==void 0&&_.L5(r,"hl",l)}catch(Q){if(!(Q instanceof URIError))throw Q;}g.colorScheme&&_.L5(r,"theme",g.colorScheme);g.style&&_.L5(r,"style",g.style);return r},ZUg=function(g,r){g.mainChannel=_.hX({destination:g.JSC$17478_win,
iframe:r,origin:g.getTargetOrigin().toString(),channelName:"ow",onMessage:function(E){E=QUF(E.data);if(r===g.iframe)switch(_.AX(E,1)){case 1:g.eventTarget.dispatchEvent(new $ED);IX4(g);break;case 2:g.eventTarget.dispatchEvent(new sU6(_.jI(E,4),_.jI(E,2),_.AX(E,5),_.zP(E,DEm,6)));break;case 0:var B;g.eventTarget.dispatchEvent(new ftF(_.jI(E,2),(B=_.AX(E,3))!=null?B:0));break;case 3:g.eventTarget.dispatchEvent(new $ED(!0));IX4(g,!1);break;case 4:g.eventTarget.dispatchEvent(new jUv)}}})},Zx5=function(g,
r,E){_.hX({destination:g.JSC$17478_win,
iframe:r,origin:_.Zf(_.he(_.Vu(new _.Vk,g.scheme),g.domain),g.port).toString(),channelName:"owi",onMessage:function(B){r===g.iframe&&(E!==void 0&&E(),ZUg(g,r),g.opened&&g.mainChannel.send(Hxg(kE8())),B.reply(),Zx5(g,r))}})};
VI5.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?T9.prototype.preloadIframe.call(this,hq$(this).toString()):this.iframeLoadPromise};
VI5.prototype.openPicker=function(g){var r=this;return _.q(function(E){if(E.nextAddress==1)return r.startUrl=g?g:r.options.includes("po")?"profile-picture/art":"profile-picture",_.D(E,mcg(r,hq$(r).toString()),2);if(r.mainChannel){var B=r.mainChannel,w=B.send;var O=kE8();O=_.H$(O,2,r.startUrl);w.call(B,Hxg(O))}_.Q3(E)})};var y1$=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(y1$,_.xu);_.S=y1$.prototype;_.S.getSize=function(){return D5(this,1)};
_.S.setSize=function(g){return _.tX(this,1,g)};
_.S.getWidth=function(){return D5(this,12)};
_.S.getHeight=function(){return D5(this,13)};
_.S.setCenterCrop=function(g){return _.qd(this,20,g)};
_.S.getHtml=function(){return _.sz(this,4)};
_.S.getToken=function(){return _.kr(this,24)};
_.S.setToken=function(g){return _.H$(this,24,g)};
_.S.getBackgroundColor=function(){return D5(this,87)};
_.S.hasBackgroundColor=function(){return _.fD(_.GE(this,87))!=null};
_.S.getStoryboardLevel=function(){return D5(this,109)};var go=function(g){this.JSC$17486_value_=void 0;this.childNodes_={};if(g){var r=_.Vnz(g);g=_.Lc(g);for(var E=0;E<r.length;E++)this.set(r[E],g[E])}};
go.prototype.set=function(g,r){v04(this,g,r,!1)};
go.prototype.add=function(g,r){v04(this,g,r,!0)};
var v04=function(g,r,E,B){for(var w=0;w<r.length;w++){var O=r.charAt(w);g.childNodes_[O]||(g.childNodes_[O]=new go);g=g.childNodes_[O]}if(B&&g.JSC$17486_value_!==void 0)throw Error("qk`"+r);g.JSC$17486_value_=E},dcD=function(g,r){for(var E=0;E<r.length;E++)if(g=g.childNodes_[r.charAt(E)],!g)return;
return g};
go.prototype.get=function(g){return(g=dcD(this,g))?g.JSC$17486_value_:void 0};
go.prototype.getValues=function(){var g=[];TjA(this,g);return g};
var TjA=function(g,r){g.JSC$17486_value_!==void 0&&r.push(g.JSC$17486_value_);for(var E in g.childNodes_)TjA(g.childNodes_[E],r)};
go.prototype.getKeys=function(g){var r=[];if(g){for(var E=this,B=0;B<g.length;B++){var w=g.charAt(B);if(!E.childNodes_[w])return[];E=E.childNodes_[w]}g7m(E,g,r)}else g7m(this,"",r);return r};
var g7m=function(g,r,E){g.JSC$17486_value_!==void 0&&E.push(r);for(var B in g.childNodes_)g7m(g.childNodes_[B],r+B,E)};
_.S=go.prototype;_.S.containsKey=function(g){return this.get(g)!==void 0};
_.S.containsValue=function(g){if(this.JSC$17486_value_===g)return!0;for(var r in this.childNodes_)if(this.childNodes_[r].containsValue(g))return!0;return!1};
_.S.clear=function(){this.childNodes_={};this.JSC$17486_value_=void 0};
_.S.remove=function(g){for(var r=this,E=[],B=0;B<g.length;B++){var w=g.charAt(B);if(!r.childNodes_[w])throw Error("rk`"+g);E.push([r,w]);r=r.childNodes_[w]}g=r.JSC$17486_value_;for(delete r.JSC$17486_value_;E.length>0;)if(B=E.pop(),r=B[0],B=B[1],r.childNodes_[B].isEmpty())delete r.childNodes_[B];else break;return g};
_.S.clone=function(){return new go(this)};
_.S.getCount=function(){return ZhD(this.getValues())};
_.S.isEmpty=function(){return this.JSC$17486_value_===void 0&&_.jn.isEmpty(this.childNodes_)};var HMD=function(){if(!rhz){var g=rhz=new go,r;for(r in E7A)g.add(r,E7A[r])}},rhz,ro=function(g,r){this.types=g;
this.setters=r},E7A={a:new ro([3,
0],[function(g,r){_.qd(g,21,r)},
function(g,r){_.tX(g,56,r)}]),
al:new ro([3],[function(g,r){_.qd(g,74,r)}]),
b:new ro([3,0],[function(g,r){_.qd(g,23,r)},
function(g,r){_.tX(g,38,r)}]),
ba:new ro([0],[function(g,r){_.tX(g,85,r)}]),
bc:new ro([0],[function(g,r){_.tX(g,87,r)}]),
br:new ro([0],[function(g,r){_.tX(g,86,r)}]),
c:new ro([3,0],[function(g,r){_.qd(g,2,r)},
function(g,r){_.tX(g,39,r)}]),
cc:new ro([3],[function(g,r){_.qd(g,51,r)}]),
ci:new ro([3],[function(g,r){_.qd(g,32,r)}]),
ckm:new ro([3],[function(g,r){_.qd(g,104,r)}]),
cp:new ro([0],[function(g,r){_.tX(g,92,r)}]),
cr:new ro([3],[function(g,r){_.qd(g,108,r)}]),
cv:new ro([0],[function(g,r){_.tX(g,94,r)}]),
d:new ro([3],[function(g,r){_.qd(g,3,r)}]),
dc:new ro([5],[function(g,r){_.H$(g,99,r)}]),
df:new ro([3],[function(g,r){_.qd(g,80,r)}]),
dv:new ro([3],[function(g,r){_.qd(g,90,r)}]),
e:new ro([0],[function(g,r){_.tX(g,15,r)}]),
em:new ro([0],[function(g,r){_.tX(g,107,r)}]),
f:new ro([4],[function(g,r){_.H$(g,16,r)}]),
fg:new ro([3],[function(g,r){_.qd(g,34,r)}]),
fh:new ro([3],[function(g,r){_.qd(g,30,r)}]),
fm:new ro([3],[function(g,r){_.qd(g,84,r)}]),
fo:new ro([2],[function(g,r){_.w2(g,79,_.qM(r))}]),
ft:new ro([3],[function(g,r){_.qd(g,50,r)}]),
fv:new ro([3],[function(g,r){_.qd(g,31,r)}]),
g:new ro([3],[function(g,r){_.qd(g,14,r)}]),
gce:new ro([4],[function(g,r){_.H$(g,112,r)}]),
gd:new ro([3],[function(g,r){_.qd(g,83,r)}]),
gm:new ro([3],[function(g,r){_.qd(g,105,r)}]),
h:new ro([3,0],[function(g,r){_.qd(g,4,r)},
function(g,r){_.tX(g,13,r)}]),
i:new ro([3],[function(g,r){_.qd(g,22,r)}]),
ic:new ro([0],[function(g,r){_.tX(g,71,r)}]),
id:new ro([3],[function(g,r){_.qd(g,70,r)}]),
il:new ro([3],[function(g,r){_.qd(g,96,r)}]),
ip:new ro([3],[function(g,r){_.qd(g,54,r)}]),
iv:new ro([0],[function(g,r){_.nC(g,75,r)}]),
j:new ro([1],[function(g,r){r=r==null?r:oRD(r);_.w2(g,29,r)}]),
k:new ro([3,0],[function(g,r){_.qd(g,17,r)},
function(g,r){_.tX(g,42,r)}]),
l:new ro([0],[function(g,r){_.tX(g,44,r)}]),
lf:new ro([3],[function(g,r){_.qd(g,65,r)}]),
lo:new ro([3],[function(g,r){_.qd(g,97,r)}]),
m:new ro([0],[function(g,r){_.tX(g,63,r)}]),
md:new ro([3],[function(g,r){_.qd(g,91,r)}]),
mm:new ro([4],[function(g,r){_.H$(g,81,r)}]),
mo:new ro([3],[function(g,r){_.qd(g,73,r)}]),
mp:new ro([0],[function(g,r){_.tX(g,115,r)}]),
mv:new ro([3],[function(g,r){_.qd(g,66,r)}]),
n:new ro([3],[function(g,r){g.setCenterCrop(r)}]),
nc:new ro([3],[function(g,r){_.qd(g,55,r)}]),
nd:new ro([3],[function(g,r){_.qd(g,53,r)}]),
ng:new ro([3],[function(g,r){_.qd(g,95,r)}]),
ngm:new ro([3],[function(g,r){_.qd(g,106,r)}]),
no:new ro([3],[function(g,r){_.qd(g,37,r)}]),
ns:new ro([3],[function(g,r){_.qd(g,40,r)}]),
nt0:new ro([4],[function(g,r){_.H$(g,36,r)}]),
ntm:new ro([3],[function(g,r){_.qd(g,114,r)}]),
nu:new ro([3],[function(g,r){_.qd(g,46,r)}]),
nw:new ro([3],[function(g,r){_.qd(g,48,r)}]),
o:new ro([1,3],[function(g,r){r=r==null?r:oRD(r);_.w2(g,7,r)},
function(g,r){_.qd(g,27,r)}]),
p:new ro([3,0],[function(g,r){_.qd(g,19,r)},
function(g,r){_.tX(g,43,r)}]),
pa:new ro([3],[function(g,r){_.qd(g,61,r)}]),
pc:new ro([0],[function(g,r){_.tX(g,88,r)}]),
pd:new ro([3],[function(g,r){_.qd(g,60,r)}]),
pf:new ro([3],[function(g,r){_.qd(g,67,r)}]),
pg:new ro([3],[function(g,r){_.qd(g,72,r)}]),
pi:new ro([2],[function(g,r){_.w2(g,76,_.qM(r))}]),
pp:new ro([3],[function(g,r){_.qd(g,52,r)}]),
pt:new ro([4],[function(g,r){_.H$(g,111,r)}]),
q:new ro([4],[function(g,r){_.H$(g,28,r)}]),
r:new ro([3,0],[function(g,r){_.qd(g,6,r)},
function(g,r){_.tX(g,26,r)}]),
ra:new ro([3],[function(g,r){_.qd(g,103,r)}]),
rf:new ro([3],[function(g,r){_.qd(g,100,r)}]),
rg:new ro([3],[function(g,r){_.qd(g,59,r)}]),
rh:new ro([3],[function(g,r){_.qd(g,49,r)}]),
rj:new ro([3],[function(g,r){_.qd(g,57,r)}]),
ro:new ro([2],[function(g,r){_.w2(g,78,_.qM(r))}]),
rp:new ro([3],[function(g,r){_.qd(g,58,r)}]),
rw:new ro([3],[function(g,r){_.qd(g,35,r)}]),
rwa:new ro([3],[function(g,r){_.qd(g,64,r)}]),
rwu:new ro([3],[function(g,r){_.qd(g,41,r)}]),
s:new ro([3,0],[function(g,r){_.qd(g,33,r)},
function(g,r){g.setSize(r)}]),
sb:new ro([0],[function(g,r){_.tX(g,110,r)}]),
sc:new ro([0],[function(g,r){_.tX(g,89,r)}]),
sg:new ro([3],[function(g,r){_.qd(g,82,r)}]),
sl:new ro([0],[function(g,r){_.tX(g,109,r)}]),
sm:new ro([3],[function(g,r){_.qd(g,93,r)}]),
t:new ro([4],[function(g,r){g.setToken(r)}]),
tm:new ro([3],[function(g,r){_.qd(g,113,r)}]),
u:new ro([3],[function(g,r){_.qd(g,18,r)}]),
ut:new ro([3],[function(g,r){_.qd(g,45,r)}]),
v:new ro([0],[function(g,r){_.tX(g,62,r)}]),
vb:new ro([0],[function(g,r){_.nC(g,68,r)}]),
vf:new ro([4],[function(g,r){_.H$(g,102,r)}]),
vl:new ro([0],[function(g,r){_.nC(g,69,r)}]),
vm:new ro([3],[function(g,r){_.qd(g,98,r)}]),
w:new ro([0],[function(g,r){_.tX(g,12,r)}]),
x:new ro([0],[function(g,r){_.tX(g,9,r)}]),
y:new ro([0],[function(g,r){_.tX(g,10,r)}]),
ya:new ro([2],[function(g,r){_.w2(g,77,_.qM(r))}]),
z:new ro([0],[function(g,r){_.tX(g,11,r)}])};
HMD.prototype.parse=function(g){var r=new y1$,E=new y1$;if(g=="")g=!0;else{g=g.split("-");for(var B=!0,w=0;w<g.length;w++){var O=g[w];if(O.length==0)B=!1;else{var M=O,u=!1;var l=M;var Q=M.charAt(0);Q!=Q.toLowerCase()&&(u=!0,l=M.charAt(0).toLowerCase()+M.substring(1));var z=rhz;for(Q=1;Q<=l.length;++Q){var k=z,H=l.substring(0,Q);if(H.length==0?k.isEmpty():!dcD(k,H))break}l=Q==1?null:(l=z.get(l.substring(0,Q-1)))?{option:M.substring(0,Q-1),value:M.substring(Q-1),signed:u,attributes:l}:null;if(l){M=
[];u=[];Q=!1;for(z=0;z<l.attributes.types.length;z++){k=l.attributes.types[z];var R=l.value;H=w;if(l.signed&&k==1)for(var A=R.length;A<12&&H<g.length-1;)R+="-"+g[H+1],A=R.length,++H;else if(k==2)for(;H<g.length-1&&g[H+1].match(/^[\d\.]/);)R+="-"+g[H+1],++H;A=l.attributes.setters[z];R=B8M(this,k)(l.option,R,r,E,A);if(R===null){Q=!0;w=H;break}else M.push(k),u.push(R)}if(!Q)for(l=0;l<u.length;l++)z=M[l],R=u[l],wjz(this,z)(O,R);B=B&&Q}else B=!1}}g=B}return new SZM(r,E,g)};
var E$=function(g,r,E,B,w,O){w(E,r);g=g.charAt(0);O=O(g==g.toUpperCase());w(B,O)};
_.S=HMD.prototype;_.S.parseAndSetIntOption_=function(g,r,E,B,w){if(r=="")return 0;isFinite(r)&&(r=String(r));r=typeof r==="string"?/^\s*-?0x/i.test(r)?parseInt(r,16):parseInt(r,10):NaN;if(isNaN(r))return 1;E$(g,r,E,B,w,Number);return null};
_.S.logIntParseError_=function(){};
_.S.parseAndSetFloatOption_=function(g,r,E,B,w){if(r=="")return 0;var O=Number(r);r=O==0&&_.qo(r)?NaN:O;if(isNaN(r))return 1;E$(g,r,E,B,w,Number);return null};
_.S.logFloatParseError_=function(){};
_.S.parseAndSetBoolOption_=function(g,r,E,B,w){if(r!="")return 2;E$(g,!0,E,B,w,Boolean);return null};
_.S.logBoolParseError_=function(){};
_.S.parseAndSetStringOption_=function(g,r,E,B,w){if(r=="")return 0;E$(g,r,E,B,w,function(O){return O?"1":""});
return null};
_.S.logStringParseError_=function(){};
_.S.parseAndSetUint64Base64Option_=function(g,r,E,B,w){if(r=="")return 0;E$(g,r,E,B,w,function(O){return O?1:0});
return null};
var B8M=function(g,r){switch(r){case 0:return(0,_.$r)(g.parseAndSetIntOption_,g);case 2:return(0,_.$r)(g.parseAndSetFloatOption_,g);case 3:return(0,_.$r)(g.parseAndSetBoolOption_,g);case 4:return(0,_.$r)(g.parseAndSetStringOption_,g);case 1:return(0,_.$r)(g.parseAndSetUint64Base64Option_,g);default:return function(){}}},wjz=function(g,r){switch(r){case 0:return(0,_.$r)(g.logIntParseError_,g);
case 2:return(0,_.$r)(g.logFloatParseError_,g);case 3:return(0,_.$r)(g.logBoolParseError_,g);case 4:case 1:return(0,_.$r)(g.logStringParseError_,g);default:return function(){}}},SZM=function(g,r,E){this.valueProto_=g;
this.signatureFlagProto_=r;this.JSC$17498_valid_=E};
SZM.prototype.isValid=function(){return this.JSC$17498_valid_};var Gr4=function(g){this.JSC$17499_parser_=null;this.JSC$17499_components_=[];this.JSC$17499_parsedOptions_=null;Od4(this,g)},U4m=function(g){g.JSC$17499_parser_==null&&(g.JSC$17499_parser_=new HMD);
return g.JSC$17499_parser_},Od4=function(g,r){g.JSC$17499_parsedOptions_=r?typeof r==="string"?U4m(g).parse(r):r:U4m(g).parse("")},B9=function(g,r){return g==r?!1:!0};
_.S=Gr4.prototype;_.S.JSC$17501_setCrop=function(g){g=g||void 0;var r=this.JSC$17499_parsedOptions_,E=r.valueProto_;B9(g,_.sz(E,2),_.sz(r.signatureFlagProto_,2))&&_.qd(E,2,g);return this};
_.S.JSC$17501_setCircleCrop=function(g){g=g||void 0;var r=this.JSC$17499_parsedOptions_,E=r.valueProto_;B9(g,lS(E,51),lS(r.signatureFlagProto_,51))&&_.qd(E,51,g);return this};
_.S.JSC$17501_setImageCrop=function(g){g=g||void 0;var r=this.JSC$17499_parsedOptions_,E=r.valueProto_;B9(g,lS(E,32),lS(r.signatureFlagProto_,32))&&_.qd(E,32,g);return this};
_.S.JSC$17501_setHeight=function(g){var r=this.JSC$17499_parsedOptions_,E=r.valueProto_;B9(g,E.getHeight(),r.signatureFlagProto_.getHeight())&&_.tX(E,13,g);return this};
_.S.setCenterCrop=function(g){g=g||void 0;var r=this.JSC$17499_parsedOptions_,E=r.valueProto_;B9(g,_.sz(E,20),_.sz(r.signatureFlagProto_,20))&&E.setCenterCrop(g);return this};
_.S.JSC$17501_setSmartCrop=function(g){g=g||void 0;var r=this.JSC$17499_parsedOptions_,E=r.valueProto_;B9(g,_.sz(E,19),_.sz(r.signatureFlagProto_,19))&&_.qd(E,19,g);return this};
_.S.JSC$17501_setPad=function(g){g=g||void 0;var r=this.JSC$17499_parsedOptions_,E=r.valueProto_;B9(g,lS(E,60),lS(r.signatureFlagProto_,60))&&_.qd(E,60,g);return this};
_.S.JSC$17501_setSmartCropUseFace=function(g){g=g||void 0;var r=this.JSC$17499_parsedOptions_,E=r.valueProto_;B9(g,_.sz(E,67),_.sz(r.signatureFlagProto_,67))&&_.qd(E,67,g);return this};
_.S.JSC$17501_setSmartCropNoClip=function(g){g=g||void 0;var r=this.JSC$17499_parsedOptions_,E=r.valueProto_;B9(g,_.sz(E,52),_.sz(r.signatureFlagProto_,52))&&_.qd(E,52,g);return this};
_.S.setSize=function(g){var r=this.JSC$17499_parsedOptions_,E=r.valueProto_;B9(g,E.getSize(),r.signatureFlagProto_.getSize())&&E.setSize(g);return this};
_.S.setToken=function(g){g=g||void 0;var r=this.JSC$17499_parsedOptions_,E=r.valueProto_;B9(g,E.getToken(),r.signatureFlagProto_.getToken())&&E.setToken(g);return this};
_.S.JSC$17501_setWidth=function(g){var r=this.JSC$17499_parsedOptions_,E=r.valueProto_;B9(g,E.getWidth(),r.signatureFlagProto_.getWidth())&&_.tX(E,12,g);return this};
_.S.clearOptions=function(){Od4(this,"");return this};
_.S.build=function(){this.JSC$17499_components_.length=0;var g=this.JSC$17499_parsedOptions_,r=g.valueProto_;g=g.signatureFlagProto_;wo(this,"s",r.getSize(),g.getSize());wo(this,"w",r.getWidth(),g.getWidth());Sq(this,"c",_.sz(r,2),_.sz(g,2));Sq(this,"d",_.sz(r,3),_.sz(g,3));wo(this,"h",r.getHeight(),g.getHeight());Sq(this,"s",lS(r,33),lS(g,33));Sq(this,"h",r.getHtml(),g.getHtml());Sq(this,"p",_.sz(r,19),_.sz(g,19));Sq(this,"pp",_.sz(r,52),_.sz(g,52));Sq(this,"pf",_.sz(r,67),_.sz(g,67));Sq(this,"n",
_.sz(r,20),_.sz(g,20));wo(this,"r",D5(r,26),D5(g,26));Sq(this,"r",_.sz(r,6),_.sz(g,6));Sq(this,"o",lS(r,27),lS(g,27));var E=_.nx(r,7,_.oU);O$(this,"o",E,_.nx(g,7,_.oU));E=_.nx(r,29,_.oU);O$(this,"j",E,_.nx(g,29,_.oU));wo(this,"x",D5(r,9),D5(g,9));wo(this,"y",D5(r,10),D5(g,10));wo(this,"z",D5(r,11),D5(g,11));Sq(this,"g",_.sz(r,14),_.sz(g,14));wo(this,"e",D5(r,15),D5(g,15));O$(this,"f",_.kr(r,16),_.kr(g,16));Sq(this,"k",lS(r,17),lS(g,17));Sq(this,"u",lS(r,18),!0);Sq(this,"ut",lS(r,45),!0);Sq(this,"i",
lS(r,22),!0);Sq(this,"a",lS(r,21),lS(g,21));Sq(this,"b",_.sz(r,23),_.sz(g,23));wo(this,"b",D5(r,38),D5(g,38));wo(this,"c",D5(r,39),D5(g,39),16,8);O$(this,"q",_.kr(r,28),_.kr(g,28));Sq(this,"fh",lS(r,30),lS(g,30));Sq(this,"fv",lS(r,31),lS(g,31));Sq(this,"fg",_.sz(r,34),_.sz(g,34));Sq(this,"ci",lS(r,32),lS(g,32));O$(this,"t",r.getToken(),g.getToken());O$(this,"nt0",_.kr(r,36),_.kr(g,36));Sq(this,"rw",_.sz(r,35),_.sz(g,35));Sq(this,"rwu",_.sz(r,41),_.sz(g,41));Sq(this,"rwa",_.sz(r,64),_.sz(g,64));Sq(this,
"nw",_.sz(r,48),_.sz(g,48));Sq(this,"rh",_.sz(r,49),_.sz(g,49));Sq(this,"no",_.sz(r,37),_.sz(g,37));Sq(this,"ns",lS(r,40),lS(g,40));wo(this,"k",D5(r,42),D5(g,42));wo(this,"p",D5(r,43),D5(g,43));wo(this,"l",D5(r,44),D5(g,44));wo(this,"v",D5(r,62),D5(g,62));Sq(this,"nu",lS(r,46),lS(g,46));Sq(this,"ft",lS(r,50),lS(g,50));Sq(this,"cc",lS(r,51),lS(g,51));Sq(this,"nd",lS(r,53),lS(g,53));Sq(this,"ip",lS(r,54),lS(g,54));Sq(this,"nc",lS(r,55),lS(g,55));wo(this,"a",D5(r,56),D5(g,56));Sq(this,"rj",lS(r,57),
lS(g,57));Sq(this,"rp",lS(r,58),lS(g,58));Sq(this,"rg",lS(r,59),lS(g,59));Sq(this,"pd",lS(r,60),lS(g,60));Sq(this,"pa",lS(r,61),lS(g,61));wo(this,"m",D5(r,63),D5(g,63));wo(this,"vb",oP(r,68),oP(g,68));wo(this,"vl",oP(r,69),oP(g,69));Sq(this,"lf",lS(r,65),lS(g,65));Sq(this,"mv",lS(r,66),lS(g,66));Sq(this,"id",lS(r,70),lS(g,70));wo(this,"ic",D5(r,71),!0);Sq(this,"pg",_.sz(r,72),_.sz(g,72));Sq(this,"mo",lS(r,73),lS(g,73));Sq(this,"al",lS(r,74),lS(g,74));wo(this,"iv",oP(r,75),oP(g,75));wo(this,"pi",G9(r,
76),G9(g,76));wo(this,"ya",G9(r,77),G9(g,77));wo(this,"ro",G9(r,78),G9(g,78));wo(this,"fo",G9(r,79),G9(g,79));Sq(this,"df",lS(r,80),lS(g,80));O$(this,"mm",_.kr(r,81),_.kr(g,81));Sq(this,"sg",lS(r,82),lS(g,82));Sq(this,"gd",lS(r,83),lS(g,83));Sq(this,"fm",lS(r,84),lS(g,84));wo(this,"ba",D5(r,85),D5(g,85));wo(this,"br",D5(r,86),D5(g,86));wo(this,"bc",r.getBackgroundColor(),g.getBackgroundColor(),16,8);wo(this,"pc",D5(r,88),D5(g,88),16,8);wo(this,"sc",D5(r,89),D5(g,89),16,8);Sq(this,"dv",lS(r,90),lS(g,
90));Sq(this,"md",lS(r,91),lS(g,91));wo(this,"cp",D5(r,92),D5(g,92));Sq(this,"sm",lS(r,93),lS(g,93));wo(this,"cv",D5(r,94),D5(g,94));Sq(this,"ng",lS(r,95),lS(g,95));Sq(this,"il",lS(r,96),lS(g,96));Sq(this,"lo",lS(r,97),lS(g,97));Sq(this,"vm",lS(r,98),lS(g,98));O$(this,"dc",_.kr(r,99),_.kr(g,99));Sq(this,"rf",lS(r,100),lS(g,100));O$(this,"vf",_.kr(r,102),_.kr(g,102));Sq(this,"ra",_.sz(r,103),_.sz(g,103));Sq(this,"ckm",lS(r,104),lS(g,104));Sq(this,"gm",lS(r,105),lS(g,105));Sq(this,"ngm",lS(r,106),lS(g,
106));wo(this,"em",D5(r,107),D5(g,107));Sq(this,"cr",lS(r,108),lS(g,108));wo(this,"sl",r.getStoryboardLevel(),g.getStoryboardLevel());wo(this,"sb",D5(r,110),D5(g,110));O$(this,"pt",_.kr(r,111),_.kr(g,111));O$(this,"gce",_.kr(r,112),_.kr(g,112));Sq(this,"tm",lS(r,113),lS(g,113));Sq(this,"ntm",lS(r,114),lS(g,114));wo(this,"mp",D5(r,115),D5(g,115));return this.JSC$17499_components_.join("-")};
var wo=function(g,r,E,B,w,O){if(E!=null){var M=w==void 0||w!=10&&w!=16?10:w;E=Number(E).toString(M);w=new tEm;w.append(M==16?"0x":"");M=w.append;O==void 0?O="":(O-=E.length,O=O<=0?"":(0,_.XGV)("0",O));M.call(w,O);w.append(E);MsA(g,r,w.toString(),!!Number(B))}},Sq=function(g,r,E,B){E&&MsA(g,r,"",!!B)},O$=function(g,r,E,B){E&&MsA(g,r,String(E),!!Number(B))},MsA=function(g,r,E,B){B&&(r=r.charAt(0).toUpperCase()+r.substring(1));
g.JSC$17499_components_.push(r+E)};_.rc(Rg,Gr4);_.S=Rg.prototype;_.S.JSC$17501_setCrop=function(g){g&&U$(this);return Rg.superClass_.JSC$17501_setCrop.call(this,g)};
_.S.JSC$17501_setHeight=function(g){g=g==null||g<0?void 0:g;g!=null&&this.setSize();return Rg.superClass_.JSC$17501_setHeight.call(this,g)};
_.S.JSC$17501_setImageCrop=function(g){g&&U$(this);return Rg.superClass_.JSC$17501_setImageCrop.call(this,g)};
_.S.JSC$17501_setCircleCrop=function(g){g&&U$(this);return Rg.superClass_.JSC$17501_setCircleCrop.call(this,g)};
_.S.setSize=function(g){_.gA(g)&&(g=Math.max(g.width,g.height));g=g==null||g<0?void 0:g;g!=null&&(this.JSC$17501_setWidth(),this.JSC$17501_setHeight());return Rg.superClass_.setSize.call(this,g)};
_.S.JSC$17501_setSmartCrop=function(g){g&&U$(this);return Rg.superClass_.JSC$17501_setSmartCrop.call(this,g)};
_.S.JSC$17501_setSmartCropNoClip=function(g){g&&U$(this);return Rg.superClass_.JSC$17501_setSmartCropNoClip.call(this,g)};
_.S.JSC$17501_setSmartCropUseFace=function(g){g&&U$(this);return Rg.superClass_.JSC$17501_setSmartCropUseFace.call(this,g)};
_.S.setCenterCrop=function(g){g&&U$(this);return Rg.superClass_.setCenterCrop.call(this,g)};
_.S.JSC$17501_setPad=function(g){g&&U$(this);return Rg.superClass_.JSC$17501_setPad.call(this,g)};
_.S.JSC$17501_setWidth=function(g){g=g==null||g<0?void 0:g;g!=null&&this.setSize();return Rg.superClass_.JSC$17501_setWidth.call(this,g)};
var qZD=function(g){g.clearOptions();var r=g.JSC$17499_parsedOptions_,E=r.valueProto_;B9(!0,_.sz(E,3),_.sz(r.signatureFlagProto_,3))&&_.qd(E,3,!0);return g},U$=function(g){g.setCenterCrop();
g.JSC$17501_setCircleCrop();g.JSC$17501_setCrop();g.JSC$17501_setImageCrop();g.JSC$17501_setPad();g.JSC$17501_setSmartCrop();g.JSC$17501_setSmartCropNoClip();g.JSC$17501_setSmartCropUseFace()};
Rg.prototype.build=function(){var g=this.JSC$17499_parsedOptions_.valueProto_;lS(g,18)||lS(g,45)?g.getSize()||this.setSize(0):(g=this.JSC$17499_parsedOptions_.valueProto_,g.getSize()||g.getWidth()||g.getHeight()||(this.setSize(),this.JSC$17501_setHeight(),this.JSC$17501_setWidth(),U$(this)));return Rg.superClass_.build.call(this)};var uNL=/^[^\/]*\/\//,Mw=function(g,r){r=r===void 0?!1:r;this.original_=g;this.originalPrefix_="";(g=this.original_.match(uNL))&&g[0]?(this.originalPrefix_=g[0],g=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):g="http://"+this.original_;this.uri_=_.cT(g,!0);this.isFreeformUrl_=r;this.JSC$17505_valid_=!0;this.obfuscated_=!1},lCv=function(g,r){g.JSC$17507_pathPrefix_=g.JSC$17507_pathPrefix_?g.JSC$17507_pathPrefix_+("/"+r):r},qw=function(g){if(g.JSC$17507_components_==
void 0){var r=g.uri_.getPath().substring(1);
g.JSC$17507_pathPrefix_=null;if(g.isFreeformUrl_){g.JSC$17507_components_=[];if((r.match(/=/g)||[]).length>1)return g.JSC$17505_valid_=!1,g.JSC$17507_components_;var E=r.indexOf("=");E!=-1?(g.JSC$17507_components_.push(r.substr(0,E)),g.JSC$17507_components_.push(r.substr(E+1))):g.JSC$17507_components_.push(r);return g.JSC$17507_components_}g.JSC$17507_components_=r.split("/");r=g.JSC$17507_components_.length;r>2&&g.JSC$17507_components_[0]=="u"&&(lCv(g,g.JSC$17507_components_[0]+"/"+g.JSC$17507_components_[1]),
g.JSC$17507_components_.shift(),g.JSC$17507_components_.shift(),r-=2);if(r==0||r==4||r>7)return g.JSC$17505_valid_=!1,g.JSC$17507_components_;if(r==2)lCv(g,g.JSC$17507_components_[0]);else if(g.JSC$17507_components_[0]=="image")lCv(g,g.JSC$17507_components_[0]);else if(r==7||r==3)return g.JSC$17505_valid_=!1,g.JSC$17507_components_;if(r<=3){g.obfuscated_=!0;r==3&&(lCv(g,g.JSC$17507_components_[1]),g.JSC$17507_components_.shift(),--r);--r;E=g.JSC$17507_components_[r];var B=E.indexOf("=");B!=-1&&(g.JSC$17507_components_[r]=
E.substr(0,B),g.JSC$17507_components_.push(E.substr(B+1)))}}return g.JSC$17507_components_};
Mw.prototype.isValid=function(){qw(this);return this.JSC$17505_valid_};
Mw.prototype.isObfuscated=function(){qw(this);return this.obfuscated_};
var D48=function(g){qw(g);return g.isFreeformUrl_},ub=function(g){qw(g);
g.JSC$17507_pathPrefix_==void 0&&(g.JSC$17507_pathPrefix_=null);return g.JSC$17507_pathPrefix_},o7$=function(g){switch(qw(g).length){case 7:return!0;
case 6:return ub(g)==null;case 5:return!1;case 3:return!0;case 2:return ub(g)==null;case 1:return!1;default:return!1}},lb=function(g,r){if(D48(g))a:{switch(r){case 7:r=0;
break;case 4:if(!o7$(g)){g=null;break a}r=1;break;default:g=null;break a}g=qw(g)[r]}else if(g.isObfuscated())a:{var E=ub(g)!=null?1:0;switch(r){case 6:r=E;break;case 4:if(!o7$(g)){g=null;break a}r=1+E;break;default:g=null;break a}g=qw(g)[r]}else a:{E=ub(g)!=null?1:0;switch(r){case 0:r=E;break;case 1:r=1+E;break;case 2:r=2+E;break;case 3:r=3+E;break;case 4:if(!o7$(g)){g=null;break a}r=4+E;break;case 5:r=o7$(g)?1:0;r=4+E+r;break;default:g=null;break a}g=qw(g)[r]}return g};
Mw.prototype.getOptions=function(){this.options_==void 0&&(this.options_=lb(this,4));return this.options_};var krF=function(){};
krF.prototype.parse=function(g,r){return new Qyv(g,r===void 0?!1:r)};
var Qyv=function(g,r){Mw.call(this,g,r===void 0?!1:r)};
_.f(Qyv,Mw);_.rc(nb,Rg);var z6M;nb.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
nb.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var g=nb.superClass_.build.call(this),r=[];ub(this.parsedImageUrl_)!=null&&r.push(ub(this.parsedImageUrl_));var E=D48(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var B=this.parsedImageUrl_;B.obfuscatedData_==void 0&&(B.obfuscatedData_=lb(B,6));r.push(B.obfuscatedData_+(g?"="+g:""))}else if(E){B=r.push;var w=this.parsedImageUrl_;w.freeformUrlPath_===void 0&&(w.freeformUrlPath_=lb(w,
7));B.call(r,w.freeformUrlPath_);g&&r.push(g)}else B=r.push,w=this.parsedImageUrl_,w.obfuscatedGaiaId_==void 0&&(w.obfuscatedGaiaId_=lb(w,0)),B.call(r,w.obfuscatedGaiaId_),B=r.push,w=this.parsedImageUrl_,w.photoId_==void 0&&(w.photoId_=lb(w,1)),B.call(r,w.photoId_),B=r.push,w=this.parsedImageUrl_,w.imageVersion_==void 0&&(w.imageVersion_=lb(w,2)),B.call(r,w.imageVersion_),B=r.push,w=this.parsedImageUrl_,w.signature_==void 0&&(w.signature_=lb(w,3)),B.call(r,w.signature_),g&&r.push(g),g=r.push,B=this.parsedImageUrl_,
B.filename_==void 0&&(B.filename_=lb(B,5)),g.call(r,B.filename_);r=E?r.join("="):r.join("/");r=_.cT(this.protocolPrefix_+this.JSC$17513_domain_+"/"+r+(this.JSC$17513_query_?"?"+this.JSC$17513_query_:"")).toString();r.startsWith("%3a//")&&(r=r.replace("%3a//","://"));return r};var Goz=_.me(["viewBox"]),QMv=_.me(["width"]),zX$=_.me(["height"]),kog=_.me(["fill"]),Hdm=_.me(["id"]),pjF=_.me(["x"]),YZ4=_.me(["y"]);pEA.prototype.getLength=function(){return this.parsedData.length};
pEA.prototype.write=function(g){for(var r=0,E=this.parsedData.length;r<E;r++)g.put(this.parsedData[r],8)};
var jyL=function(g,r){var E=new pEA(r);g.dataList.push(E);E=g.errorCorrectLevel;var B=1,w=encodeURI(r).toString().replace(/%[0-9a-fA-F]{2}/g,"a");r=w.length+(w.length!=r?3:0);w=0;for(var O=DO.length;w<=O;w++){var M=0;switch(E){case 1:M=DO[w][0];break;case 0:M=DO[w][1];break;case 3:M=DO[w][2];break;case 2:M=DO[w][3]}if(r<=M)break;else B++}if(B>DO.length)throw Error("Ak");g.typeNumber=B;g.dataCache=null};
YQ5.prototype.isDark=function(g,r){if(g<0||this.moduleCount<=g||r<0||this.moduleCount<=r)throw Error("sk`"+g+"`"+r);return this.modules[g][r]};
for(var AFF=function(g,r,E){g.moduleCount=g.typeNumber*4+17;g.modules=Array(g.moduleCount);for(var B=0;B<g.moduleCount;B++){g.modules[B]=Array(g.moduleCount);for(var w=0;w<g.moduleCount;w++)g.modules[B][w]=null}RXg(g,0,0);RXg(g,g.moduleCount-7,0);RXg(g,0,g.moduleCount-7);B=n76[g.typeNumber-1];for(w=0;w<B.length;w++)for(var O=0;O<B.length;O++){var M=B[w],u=B[O];if(g.modules[M][u]==null)for(var l=-2;l<=2;l++)for(var Q=-2;Q<=2;Q++)g.modules[M+l][u+Q]=l==-2||l==2||Q==-2||Q==2||l==0&&Q==0?!0:!1}for(B=
8;B<g.moduleCount-8;B++)g.modules[B][6]==null&&(g.modules[B][6]=B%2==0);for(B=8;B<g.moduleCount-8;B++)g.modules[6][B]==null&&(g.modules[6][B]=B%2==0);B=g.errorCorrectLevel<<3|E;for(w=B<<10;os(w)-os(1335)>=0;)w^=1335<<os(w)-os(1335);B=(B<<10|w)^21522;for(w=0;w<15;w++)O=!r&&(B>>w&1)==1,w<6?g.modules[w][8]=O:w<8?g.modules[w+1][8]=O:g.modules[g.moduleCount-15+w][8]=O;for(w=0;w<15;w++)O=!r&&(B>>w&1)==1,w<8?g.modules[8][g.moduleCount-w-1]=O:w<9?g.modules[8][15-w-1+1]=O:g.modules[8][15-w-1]=O;g.modules[g.moduleCount-
8][8]=!r;if(g.typeNumber>=7){B=g.typeNumber;for(w=B<<12;os(w)-os(7973)>=0;)w^=7973<<os(w)-os(7973);B=B<<12|w;for(w=0;w<18;w++)O=!r&&(B>>w&1)==1,g.modules[Math.floor(w/3)][w%3+g.moduleCount-8-3]=O;for(w=0;w<18;w++)O=!r&&(B>>w&1)==1,g.modules[w%3+g.moduleCount-8-3][Math.floor(w/3)]=O}if(g.dataCache==null){w=g.typeNumber;O=g.dataList;r=g.errorCorrectLevel;B=sMt(w,r);if(B==void 0)throw Error("zk`"+w+"`"+r);M=B.length/3;r=[];for(u=0;u<M;u++){l=B[u*3];Q=B[u*3+1];for(var z=B[u*3+2],k=0;k<l;k++)r.push(new R6m(Q,
z))}B=new nyM;for(M=0;M<O.length;M++)u=O[M],B.put(u.mode,4),B.put(u.getLength(),fCM(u.mode,w)),u.write(B);for(M=w=0;M<r.length;M++)w+=r[M].dataCount;if(B.length>w*8)throw Error("tk`"+B.length+"`"+w*8);for(B.length+4<=w*8&&B.put(0,4);B.length%8!=0;)$4M(B,!1);for(;!(B.length>=w*8);){B.put(236,8);if(B.length>=w*8)break;B.put(17,8)}O=w=Q=0;M=Array(r.length);u=Array(r.length);for(l=0;l<r.length;l++){k=r[l].dataCount;var H=r[l].totalCount-k;w=Math.max(w,k);O=Math.max(O,H);M[l]=Array(k);for(z=0;z<M[l].length;z++)M[l][z]=
255&B.buffer[z+Q];Q+=k;z=H;k=new sJ([1],0);for(H=0;H<z;H++)k=k.multiply(new sJ([1,jM$(H)],0));z=k;k=(new sJ(M[l],z.getLength()-1)).mod(z);u[l]=Array(z.getLength()-1);for(z=0;z<u[l].length;z++)H=z+k.getLength()-u[l].length,u[l][z]=H>=0?k.get(H):0}for(z=B=0;z<r.length;z++)B+=r[z].totalCount;B=Array(B);for(z=Q=0;z<w;z++)for(l=0;l<r.length;l++)z<M[l].length&&(B[Q++]=M[l][z]);for(z=0;z<O;z++)for(l=0;l<r.length;l++)z<u[l].length&&(B[Q++]=u[l][z]);g.dataCache=B}r=g.dataCache;B=-1;w=g.moduleCount-1;O=7;M=
0;for(u=g.moduleCount-1;u>0;u-=2)for(u==6&&u--;;){for(l=0;l<2;l++)g.modules[w][u-l]==null&&(Q=!1,M<r.length&&(Q=(r[M]>>>O&1)==1),Ah5(E,w,u-l)&&(Q=!Q),g.modules[w][u-l]=Q,O--,O==-1&&(M++,O=7));w+=B;if(w<0||g.moduleCount<=w){w-=B;B=-B;break}}},RXg=function(g,r,E){for(var B=-1;B<=7;B++)if(!(r+B<=-1||g.moduleCount<=r+B))for(var w=-1;w<=7;w++)E+w<=-1||g.moduleCount<=E+w||(g.modules[r+B][E+w]=0<=B&&B<=6&&(w==0||w==6)||0<=w&&w<=6&&(B==0||B==6)||2<=B&&B<=4&&2<=w&&w<=4?!0:!1)},bMg=function(g){for(var r=0,
E=0,B=0;B<8;B++){AFF(g,!0,B);
var w=g;for(var O=w.moduleCount,M=0,u=0;u<O;u++)for(var l=0;l<O;l++){for(var Q=0,z=w.isDark(u,l),k=-1;k<=1;k++)if(!(u+k<0||O<=u+k))for(var H=-1;H<=1;H++)l+H<0||O<=l+H||(k!=0||H!=0)&&z==w.isDark(u+k,l+H)&&Q++;Q>5&&(M+=3+Q-5)}for(u=0;u<O-1;u++)for(l=0;l<O-1;l++)if(Q=0,w.isDark(u,l)&&Q++,w.isDark(u+1,l)&&Q++,w.isDark(u,l+1)&&Q++,w.isDark(u+1,l+1)&&Q++,Q==0||Q==4)M+=3;for(u=0;u<O;u++)for(l=0;l<O-6;l++)w.isDark(u,l)&&!w.isDark(u,l+1)&&w.isDark(u,l+2)&&w.isDark(u,l+3)&&w.isDark(u,l+4)&&!w.isDark(u,l+5)&&
w.isDark(u,l+6)&&(M+=40);for(l=0;l<O;l++)for(u=0;u<O-6;u++)w.isDark(u,l)&&!w.isDark(u+1,l)&&w.isDark(u+2,l)&&w.isDark(u+3,l)&&w.isDark(u+4,l)&&!w.isDark(u+5,l)&&w.isDark(u+6,l)&&(M+=40);for(l=Q=0;l<O;l++)for(u=0;u<O;u++)w.isDark(u,l)&&Q++;w=M+=Math.abs(100*Q/O/O-50)/5*10;if(B==0||r>w)r=w,E=B}return E},n76=[[],
[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]],os=function(g){for(var r=0;g!=0;)r++,g>>>=1;return r},Ah5=function(g,r,E){switch(g){case 0:return(r+E)%2==0;
case 1:return r%2==0;case 2:return E%3==0;case 3:return(r+E)%3==0;case 4:return(Math.floor(r/2)+Math.floor(E/3))%2==0;case 5:return r*E%2+r*E%3==0;case 6:return(r*E%2+r*E%3)%2==0;case 7:return(r*E%3+(r+E)%2)%2==0;default:throw Error("uk`"+g);}},fCM=function(g,r){if(1<=r&&r<10)switch(g){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("vk`"+g);}else if(r<27)switch(g){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("vk`"+g);}else if(r<41)switch(g){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("vk`"+g);}else throw Error("wk`"+r);},Gd=function(g){if(g<1)throw Error("xk`"+g);
return bd5[g]},jM$=function(g){for(;g<0;)g+=255;
for(;g>=256;)g-=255;return QZ[g]},QZ=Array(256),bd5=Array(256),Jhg=0;Jhg<8;Jhg++)QZ[Jhg]=1<<Jhg;
for(var zd=8;zd<256;zd++)QZ[zd]=QZ[zd-4]^QZ[zd-5]^QZ[zd-6]^QZ[zd-8];for(var Pvz=0;Pvz<255;Pvz++)bd5[QZ[Pvz]]=Pvz;sJ.prototype.get=function(g){return this.num[g]};
sJ.prototype.getLength=function(){return this.num.length};
sJ.prototype.multiply=function(g){for(var r=Array(this.getLength()+g.getLength()-1),E=0;E<this.getLength();E++)for(var B=0;B<g.getLength();B++)r[E+B]^=jM$(Gd(this.get(E))+Gd(g.get(B)));return new sJ(r,0)};
sJ.prototype.mod=function(g){if(this.getLength()-g.getLength()<0)return this;for(var r=Gd(this.get(0))-Gd(g.get(0)),E=Array(this.getLength()),B=0;B<this.getLength();B++)E[B]=this.get(B);for(B=0;B<g.getLength();B++)E[B]^=jM$(Gd(g.get(B))+r);return(new sJ(E,0)).mod(g)};
var tsz=[[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]],sMt=function(g,r){switch(r){case 1:return tsz[(g-1)*4];case 0:return tsz[(g-1)*4+1];case 3:return tsz[(g-1)*4+2];case 2:return tsz[(g-1)*4+3]}};
nyM.prototype.get=function(g){return(this.buffer[Math.floor(g/8)]>>>7-g%8&1)==1};
nyM.prototype.put=function(g,r){for(var E=0;E<r;E++)$4M(this,(g>>>r-E-1&1)==1)};
var $4M=function(g,r){var E=Math.floor(g.length/8);g.buffer.length<=E&&g.buffer.push(0);r&&(g.buffer[E]|=128>>>g.length%8);g.length++},DO=[[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]],$u$=function(){var g=function(r,E){this.JSC$17533__el=r;this.JSC$17533__htOption=E};
g.prototype.draw=function(r){function E(z,k){z=document.createElementNS("http://www.w3.org/2000/svg",z);for(var H in k)k.hasOwnProperty(H)&&(H==="href"?_.YYg(z,k[H]):_.ii([_.EY(Goz),_.EY(QMv),_.EY(zX$),_.EY(kog),_.EY(Hdm),_.EY(pjF),_.EY(YZ4)],z,H,k[H]));return z}
var B=this.JSC$17533__htOption,w=this.JSC$17533__el,O=r.moduleCount;this.clear();var M=E("svg",{viewBox:"0 0 "+String(O)+" "+String(O),width:"100%",height:"100%",fill:B.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});w.appendChild(M);M.appendChild(E("rect",{fill:B.colorLight,width:"100%",height:"100%"}));M.appendChild(E("rect",{fill:B.colorDark,width:"1",height:"1",id:"template"}));for(var u=0;u<O;u++)for(var l=0;l<O;l++)if(r.isDark(u,l)){var Q=E("use",{x:String(u),y:String(l),href:"#template"});
M.appendChild(Q)}};
g.prototype.clear=function(){for(;this.JSC$17533__el.hasChildNodes();)this.JSC$17533__el.removeChild(this.JSC$17533__el.lastChild)};
return g}(),fY$=document.documentElement.tagName.toLowerCase()==="svg"?$u$:typeof CanvasRenderingContext2D!="undefined"?function(){var g=function(r,E){this._bIsPainted=!1;
syg();this.JSC$17533__htOption=E;this._elCanvas=document.createElement("canvas");this._elCanvas.width=E.width;this._elCanvas.height=E.height;r.appendChild(this._elCanvas);this.JSC$17533__el=r;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$17533__el.appendChild(this._elImage);this._bSupportDataURI=null};
g.prototype._onMakeImage=function(){var r=this._elCanvas.toDataURL("image/png");this._elImage.src=r;this._elImage.style.display="block";this._elCanvas.style.display="none"};
g.prototype._safeSetDataURI=function(r,E){var B=this;B._fFail=E;B._fSuccess=r;B._bSupportDataURI===null?(r=_.HT("IMG"),E=function(){B._bSupportDataURI=!1;B._fFail&&B._fFail.call(B)},r.onabort=E,r.onerror=E,r.onload=function(){B._bSupportDataURI=!0;
B._fSuccess&&B._fSuccess.call(B)},r.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):B._bSupportDataURI===!0&&B._fSuccess?B._fSuccess.call(B):B._bSupportDataURI===!1&&B._fFail&&B._fFail.call(B)};
g.prototype.draw=function(r){var E=this._oContext,B=this.JSC$17533__htOption,w=r.moduleCount,O=B.width/w,M=B.height/w,u=Math.round(O),l=Math.round(M);this._elImage.style.display="none";this.clear();for(var Q=0;Q<w;Q++)for(var z=0;z<w;z++){var k=r.isDark(Q,z),H=z*O,R=Q*M;E.strokeStyle=k?B.colorDark:B.colorLight;E.lineWidth=1;E.fillStyle=k?B.colorDark:B.colorLight;E.fillRect(H,R,O,M);E.strokeRect(Math.floor(H)+.5,Math.floor(R)+.5,u,l);E.strokeRect(Math.ceil(H)-.5,Math.ceil(R)-.5,u,l)}this._bIsPainted=
!0};
g.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
g.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
g.prototype.round=function(r){return r?Math.floor(r*1E3)/1E3:r};
return g}():function(){var g=function(r,E){this.JSC$17533__el=r;
this.JSC$17533__htOption=E};
g.prototype.draw=function(r){for(var E=this.JSC$17533__htOption,B=this.JSC$17533__el,w=r.moduleCount,O=Math.floor(E.width/w),M=Math.floor(E.height/w),u=['<table style="border:0;border-collapse:collapse;">'],l=0;l<w;l++){u.push("<tr>");for(var Q=0;Q<w;Q++)u.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+O+"px;height:"+M+"px;background-color:"+(r.isDark(l,Q)?E.colorDark:E.colorLight)+';"></td>');u.push("</tr>")}u.push("</table>");r=u.join("");r=_.JtT(_.tV4,r);_.cu(B,r);
r=B.childNodes[0];w=(E.width-r.offsetWidth)/2;O=(E.height-r.offsetHeight)/2;w>0&&O>0&&(r.style.margin=O+"px "+w+"px")};
g.prototype.clear=function(){this.JSC$17533__el.textContent=""};
return g}();
JFF.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17536__android||this.JSC$17536__android>=3)&&this._oDrawing.makeImage()};
JFF.prototype.clear=function(){this._oDrawing.clear()};
_.ED.QRCode=JFF;var FhM={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var ke=function(){};
ke.prototype.stringify=function(g){return _.ED.JSON.stringify(g,void 0)};
ke.prototype.parse=function(g){return _.ED.JSON.parse(g,void 0)};var eXF=function(){_.l8.call(this,"z")};
_.rc(eXF,_.l8);var WhF=function(){_.l8.call(this,"y")};
_.rc(WhF,_.l8);var Cvm=null,Kht=function(){return Cvm=Cvm||new _.ze},x45=function(g){_.l8.call(this,"serverreachability",g)};
_.rc(x45,_.l8);var H9=function(g){var r=Kht();r.dispatchEvent(new x45(r,g))},aC5=function(g){_.l8.call(this,"statevent",g)};
_.rc(aC5,_.l8);var pJ=function(g){var r=Kht();r.dispatchEvent(new aC5(r,g))},Xjm=function(g,r,E,B){_.l8.call(this,"timingevent",g);
this.size=r;this.rtt=E;this.retries=B};
_.rc(Xjm,_.l8);var N8F=function(g,r,E){var B=Kht();B.dispatchEvent(new Xjm(B,g,r,E))},Ye=function(g,r){if(typeof g!=="function")throw Error("Bk");
return _.ED.setTimeout(function(){g()},r)};var Rs=function(){this.redactEnabled_=!0};
Rs.prototype.disableRedact=function(){this.redactEnabled_=!1};
var IC$=function(g,r,E,B,w,O){g.info(function(){if(g.redactEnabled_)if(O){var M="";for(var u=O.split("&"),l=0;l<u.length;l++){var Q=u[l].split("=");if(Q.length>1){var z=Q[0];Q=Q[1];var k=z.split("_");M=k.length>=2&&k[1]=="type"?M+(z+"="+Q+"&"):M+(z+"=redacted&")}}}else M=null;else M=O;return"XMLHTTP REQ ("+B+") [attempt "+w+"]: "+r+"\n"+E+"\n"+M})},m4F=function(g,r,E,B,w,O,M){g.info(function(){return"XMLHTTP RESP ("+B+") [ attempt "+w+"]: "+r+"\n"+E+"\n"+O+" "+M})},nJ=function(g,r,E,B){g.info(function(){return"XMLHTTP TEXT ("+
r+"): "+ch8(g,E)+(B?" "+B:"")})},idD=function(g,r){g.info(function(){return"TIMEOUT: "+r})};
Rs.prototype.debug=function(){};
Rs.prototype.info=function(){};
Rs.prototype.warning=function(){};
var ch8=function(g,r){if(!g.redactEnabled_)return r;if(!r)return null;try{var E=JSON.parse(r);if(E)for(var B=0;B<E.length;B++)if(Array.isArray(E[B])){var w=E[B];if(!(w.length<2)){var O=w[1];if(Array.isArray(O)&&!(O.length<1)){var M=O[0];if(M!="noop"&&M!="stop"&&M!="close")for(var u=1;u<O.length;u++)O[u]=""}}}return(0,_.sG)(E)}catch(l){return g.debug("Exception parsing expected JS array - probably was not JS"),r}};var s$=function(g,r,E,B,w){this.JSC$17558_channel_=g;this.JSC$17558_channelDebug_=r;this.sid_=E;this.JSC$17558_rid_=B;this.JSC$17558_retryId_=w||1;this.JSC$17558_eventHandler_=new _.EQ(this);this.timeout_=45E3;this.JSC$17558_extraHeaders_=null;this.JSC$17558_successful_=!1;this.JSC$17558_postData_=this.JSC$17558_requestUri_=this.JSC$17558_baseUri_=this.JSC$17558_type_=this.JSC$17558_requestStartTime_=this.JSC$17558_watchDogTimeoutTime_=this.JSC$17558_watchDogTimerId_=null;this.JSC$17558_pendingMessages_=
[];this.JSC$17558_xmlHttp_=null;this.JSC$17558_xmlHttpChunkStart_=0;this.JSC$17558_lastError_=this.JSC$17558_verb_=null;this.JSC$17558_lastStatusCode_=-1;this.JSC$17558_cancelled_=!1;this.JSC$17558_readyStateChangeThrottleMs_=0;this.JSC$17558_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new LhD},LhD=function(){this.JSC$17560_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},VsA=function(g,r){switch(g){case 0:return"Non-200 return code ("+r+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},hXM={},Zdg={};
s$.prototype.setTimeout=function(g){this.timeout_=g};
var v7v=function(g,r,E){g.JSC$17558_type_=1;g.JSC$17558_baseUri_=_.EL(r.clone());g.JSC$17558_postData_=E;g.decodeChunks_=!0;yh8(g,null)},yh8=function(g,r){g.JSC$17558_requestStartTime_=Date.now();
d4$(g);g.JSC$17558_requestUri_=g.JSC$17558_baseUri_.clone();S4(g.JSC$17558_requestUri_,"t",g.JSC$17558_retryId_);g.JSC$17558_xmlHttpChunkStart_=0;var E=g.JSC$17558_channel_.JSC$17577_supportsCrossDomainXhrs_;g.fetchResponseState_=new LhD;g.JSC$17558_xmlHttp_=T8$(g.JSC$17558_channel_,E?r:null,!g.JSC$17558_postData_);g.JSC$17558_readyStateChangeThrottleMs_>0&&(g.JSC$17558_readyStateChangeThrottle_=new _.VU((0,_.$r)(g.JSC$17562_xmlHttpHandler_,g,g.JSC$17558_xmlHttp_),g.JSC$17558_readyStateChangeThrottleMs_));
g.JSC$17558_eventHandler_.listen(g.JSC$17558_xmlHttp_,"readystatechange",g.JSC$17562_readyStateChangeHandler_);r=g.JSC$17558_extraHeaders_?_.jn.clone(g.JSC$17558_extraHeaders_):{};g.JSC$17558_postData_?(g.JSC$17558_verb_||(g.JSC$17558_verb_="POST"),r["Content-Type"]="application/x-www-form-urlencoded",g.JSC$17558_xmlHttp_.send(g.JSC$17558_requestUri_,g.JSC$17558_verb_,g.JSC$17558_postData_,r)):(g.JSC$17558_verb_="GET",g.JSC$17558_xmlHttp_.send(g.JSC$17558_requestUri_,g.JSC$17558_verb_,null,r));H9(1);
IC$(g.JSC$17558_channelDebug_,g.JSC$17558_verb_,g.JSC$17558_requestUri_,g.JSC$17558_rid_,g.JSC$17558_retryId_,g.JSC$17558_postData_)};
s$.prototype.JSC$17562_readyStateChangeHandler_=function(g){g=g.target;var r=this.JSC$17558_readyStateChangeThrottle_;r&&_.$$(g)==3?(this.JSC$17558_channelDebug_.debug("Throttling readystatechange."),r.fire()):this.JSC$17562_xmlHttpHandler_(g)};
s$.prototype.JSC$17562_xmlHttpHandler_=function(g){try{g==this.JSC$17558_xmlHttp_?gC8(this):this.JSC$17558_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(r){this.JSC$17558_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),r2m(this)}finally{}};
var gC8=function(g){var r=_.$$(g.JSC$17558_xmlHttp_),E=g.JSC$17558_xmlHttp_.JSC$7885_lastErrorCode_,B=g.JSC$17558_xmlHttp_.getStatus();if(!(r<3||r==3&&!r2m(g))){g.JSC$17558_cancelled_||r!=4||E==7||(E==8||B<=0?H9(3):H9(2));ECm(g);var w=g.JSC$17558_xmlHttp_.getStatus();g.JSC$17558_lastStatusCode_=w;E=B3m(g);r2m(g)||g.JSC$17558_channelDebug_.debug(function(){return"No response text for uri "+g.JSC$17558_requestUri_+" status "+w});
g.JSC$17558_successful_=w==200;m4F(g.JSC$17558_channelDebug_,g.JSC$17558_verb_,g.JSC$17558_requestUri_,g.JSC$17558_rid_,g.JSC$17558_retryId_,r,w);if(g.JSC$17558_successful_){if(g.decodeInitialResponse_&&!g.initialResponseDecoded_)if(B=wUz(g))nJ(g.JSC$17558_channelDebug_,g.JSC$17558_rid_,B,"Initial handshake response via X-HTTP-Initial-Response"),g.initialResponseDecoded_=!0,STg(g,B);else{g.JSC$17558_successful_=!1;g.JSC$17558_lastError_=3;pJ(12);g.JSC$17558_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
g.JSC$17558_rid_+")");fJ(g);$e(g);return}g.decodeChunks_?Oim(g,r,E):(nJ(g.JSC$17558_channelDebug_,g.JSC$17558_rid_,E,null),STg(g,E));r==4&&fJ(g);g.JSC$17558_successful_&&!g.JSC$17558_cancelled_&&(r==4?UPF(g.JSC$17558_channel_,g):(g.JSC$17558_successful_=!1,d4$(g)))}else ZRm(g.JSC$17558_xmlHttp_),w==400&&E.indexOf("Unknown SID")>0?(g.JSC$17558_lastError_=3,pJ(12),g.JSC$17558_channelDebug_.warning("XMLHTTP Unknown SID ("+g.JSC$17558_rid_+")")):(g.JSC$17558_lastError_=0,pJ(13),g.JSC$17558_channelDebug_.warning("XMLHTTP Bad status "+
w+" ("+g.JSC$17558_rid_+")")),fJ(g),$e(g)}},wUz=function(g){return g.JSC$17558_xmlHttp_&&(g=Dv(g.JSC$17558_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.qo(g)?g:null},B3m=function(g){if(!MBM(g))return g.JSC$17558_xmlHttp_.getResponseText();
var r=g.JSC$17558_xmlHttp_.getResponse();if(r==="")return"";var E="",B=r.length,w=_.$$(g.JSC$17558_xmlHttp_)==4;if(!g.fetchResponseState_.JSC$17560_textDecoder){if(typeof TextDecoder==="undefined")return fJ(g),$e(g),"";g.fetchResponseState_.JSC$17560_textDecoder=new _.ED.TextDecoder}for(var O=0;O<B;O++)g.fetchResponseState_.responseArrivedForFetch=!0,E+=g.fetchResponseState_.JSC$17560_textDecoder.decode(r[O],{stream:!(w&&O==B-1)});r.length=0;g.fetchResponseState_.responseBuffer+=E;g.JSC$17558_xmlHttpChunkStart_=
0;return g.fetchResponseState_.responseBuffer},r2m=function(g){return g.JSC$17558_xmlHttp_?g.fetchResponseState_.responseArrivedForFetch?!0:!(!g.JSC$17558_xmlHttp_.getResponseText()&&!g.JSC$17558_xmlHttp_.getResponse()):!1},MBM=function(g){return g.JSC$17558_xmlHttp_?g.JSC$17558_verb_=="GET"&&g.JSC$17558_type_!=2&&g.JSC$17558_channel_.usesFetchStreams_:!1},Oim=function(g,r,E){for(var B=!0,w;!g.JSC$17558_cancelled_&&g.JSC$17558_xmlHttpChunkStart_<E.length;)if(w=qT6(g,E),w==Zdg){r==4&&(g.JSC$17558_lastError_=
4,pJ(14),B=!1);
nJ(g.JSC$17558_channelDebug_,g.JSC$17558_rid_,null,"[Incomplete Response]");break}else if(w==hXM){g.JSC$17558_lastError_=4;pJ(15);nJ(g.JSC$17558_channelDebug_,g.JSC$17558_rid_,E,"[Invalid Chunk]");B=!1;break}else nJ(g.JSC$17558_channelDebug_,g.JSC$17558_rid_,w,null),STg(g,w);MBM(g)&&g.JSC$17558_xmlHttpChunkStart_!=0&&(g.fetchResponseState_.responseBuffer=g.fetchResponseState_.responseBuffer.slice(g.JSC$17558_xmlHttpChunkStart_),g.JSC$17558_xmlHttpChunkStart_=0);r!=4||E.length!=0||g.fetchResponseState_.responseArrivedForFetch||
(g.JSC$17558_lastError_=1,pJ(16),B=!1);g.JSC$17558_successful_=g.JSC$17558_successful_&&B;B?E.length>0&&!g.firstByteReceived_&&(g.firstByteReceived_=!0,r=g.JSC$17558_channel_,r.JSC$17577_backChannelRequest_==g&&r.detectBufferingProxy_&&!r.bpDetectionDone_&&(r.JSC$17577_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+E.length),uPg(r),r.bpDetectionDone_=!0,pJ(11))):(nJ(g.JSC$17558_channelDebug_,g.JSC$17558_rid_,E,"[Invalid Chunked Response]"),fJ(g),$e(g))},qT6=function(g,r){var E=
g.JSC$17558_xmlHttpChunkStart_,B=r.indexOf("\n",E);
if(B==-1)return Zdg;E=Number(r.substring(E,B));if(isNaN(E))return hXM;B+=1;if(B+E>r.length)return Zdg;r=r.slice(B,B+E);g.JSC$17558_xmlHttpChunkStart_=B+E;return r};
s$.prototype.cancel=function(){this.JSC$17558_cancelled_=!0;fJ(this)};
var d4$=function(g){g.JSC$17558_watchDogTimeoutTime_=Date.now()+g.timeout_;l0$(g,g.timeout_)},l0$=function(g,r){if(g.JSC$17558_watchDogTimerId_!=null)throw Error("Ck");
g.JSC$17558_watchDogTimerId_=Ye((0,_.$r)(g.JSC$17562_onWatchDogTimeout_,g),r)},ECm=function(g){g.JSC$17558_watchDogTimerId_&&(_.ED.clearTimeout(g.JSC$17558_watchDogTimerId_),g.JSC$17558_watchDogTimerId_=null)};
s$.prototype.JSC$17562_onWatchDogTimeout_=function(){this.JSC$17558_watchDogTimerId_=null;var g=Date.now();g-this.JSC$17558_watchDogTimeoutTime_>=0?(idD(this.JSC$17558_channelDebug_,this.JSC$17558_requestUri_),this.JSC$17558_type_!=2&&(H9(3),pJ(17)),fJ(this),this.JSC$17558_lastError_=2,$e(this)):(this.JSC$17558_channelDebug_.warning("WatchDog timer called too early"),l0$(this,this.JSC$17558_watchDogTimeoutTime_-g))};
var $e=function(g){g.JSC$17558_channel_.state_==0||g.JSC$17558_cancelled_||UPF(g.JSC$17558_channel_,g)},fJ=function(g){ECm(g);
_.TM(g.JSC$17558_readyStateChangeThrottle_);g.JSC$17558_readyStateChangeThrottle_=null;g.JSC$17558_eventHandler_.removeAll();if(g.JSC$17558_xmlHttp_){var r=g.JSC$17558_xmlHttp_;g.JSC$17558_xmlHttp_=null;r.abort();r.dispose()}};
s$.prototype.getLastError=function(){return this.JSC$17558_lastError_};
var STg=function(g,r){try{var E=g.JSC$17558_channel_;if(E.state_!=0&&(E.JSC$17577_backChannelRequest_==g||DP4(E.forwardChannelRequestPool_,g)))if(!g.initialResponseDecoded_&&DP4(E.forwardChannelRequestPool_,g)&&E.state_==3){try{var B=E.wireCodec_.JSC$17572_parser_.parse(r)}catch(u){B=null}if(Array.isArray(B)&&B.length==3){r=B;if(r[0]==0)a:if(E.JSC$17577_channelDebug_.debug("Server claims our backchannel is missing."),E.JSC$17577_backChannelTimerId_)E.JSC$17577_channelDebug_.debug("But we are currently starting the request.");
else{if(E.JSC$17577_backChannelRequest_)if(E.JSC$17577_backChannelRequest_.JSC$17558_requestStartTime_+3E3<g.JSC$17558_requestStartTime_)oCt(E),GA6(E);else break a;else E.JSC$17577_channelDebug_.warning("We do not have a BackChannel established");Q4g(E);pJ(18)}else{E.JSC$17577_lastPostResponseArrayId_=r[1];var w=E.JSC$17577_lastPostResponseArrayId_-E.JSC$17577_lastArrayId_;if(0<w){var O=r[2];E.JSC$17577_channelDebug_.debug(O+" bytes (in "+w+" arrays) are outstanding on the BackChannel");O<37500&&
E.enableStreaming_&&E.JSC$17577_backChannelRetryCount_==0&&!E.JSC$17577_deadBackChannelTimerId_&&(E.JSC$17577_deadBackChannelTimerId_=Ye((0,_.$r)(E.JSC$17579_onBackChannelDead_,E),6E3))}}if(zMt(E.forwardChannelRequestPool_)<=1&&E.forwardChannelFlushedCallback_){try{E.forwardChannelFlushedCallback_()}catch(u){}E.forwardChannelFlushedCallback_=void 0}}else E.JSC$17577_channelDebug_.debug("Bad POST response data returned"),jq(E,11)}else if((g.initialResponseDecoded_||E.JSC$17577_backChannelRequest_==
g)&&oCt(E),!_.qo(r)){var M=E.wireCodec_.JSC$17572_parser_.parse(r);E.onInput_(M,g)}H9(4)}catch(u){}};var kAg=function(g,r){this.JSC$17565_mapId=g;this.map=r;this.context=null};var HiM=function(g){this.maxPoolSizeConfigured_=g||10;_.ED.PerformanceNavigationTiming?(g=_.ED.performance.getEntriesByType("navigation"),g=g.length>0&&(g[0].nextHopProtocol=="hq"||g[0].nextHopProtocol=="h2")):g=!!(_.ED.chrome&&_.ED.chrome.loadTimes&&_.ED.chrome.loadTimes()&&_.ED.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17568_maxSize_=g?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17568_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17568_request_=null;this.JSC$17568_pendingMessages_=
[]},pU5=function(g){return g.JSC$17568_request_?!0:g.requestPool_?g.requestPool_.size>=g.JSC$17568_maxSize_:!1},zMt=function(g){return g.JSC$17568_request_?1:g.requestPool_?g.requestPool_.size:0},DP4=function(g,r){return g.JSC$17568_request_?g.JSC$17568_request_==r:g.requestPool_?g.requestPool_.has(r):!1},YTv=function(g,r){g.requestPool_?g.requestPool_.add(r):g.JSC$17568_request_=r},RML=function(g,r){g.JSC$17568_request_&&g.JSC$17568_request_==r?g.JSC$17568_request_=null:g.requestPool_&&g.requestPool_.has(r)&&
g.requestPool_.delete(r)};
HiM.prototype.cancel=function(){this.JSC$17568_pendingMessages_=nCM(this);if(this.JSC$17568_request_)this.JSC$17568_request_.cancel(),this.JSC$17568_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var g=_.U(this.requestPool_.values()),r=g.next();!r.done;r=g.next())r.value.cancel();this.requestPool_.clear()}};
var nCM=function(g){if(g.JSC$17568_request_!=null)return g.JSC$17568_pendingMessages_.concat(g.JSC$17568_request_.JSC$17558_pendingMessages_);if(g.requestPool_!=null&&g.requestPool_.size!==0){var r=g.JSC$17568_pendingMessages_;g=_.U(g.requestPool_.values());for(var E=g.next();!E.done;E=g.next())r=r.concat(E.value.JSC$17558_pendingMessages_);return r}return _.ZQ(g.JSC$17568_pendingMessages_)},s4D=function(g,r){g.JSC$17568_pendingMessages_=g.JSC$17568_pendingMessages_.concat(r)};var f0z=function(g,r){var E=new Rs;E.debug("TestLoadImage: loading "+g);if(_.ED.Image){var B=new Image;B.onload=_.Hk(Ar,E,"TestLoadImage: loaded",!0,r,B);B.onerror=_.Hk(Ar,E,"TestLoadImage: error",!1,r,B);B.onabort=_.Hk(Ar,E,"TestLoadImage: abort",!1,r,B);B.ontimeout=_.Hk(Ar,E,"TestLoadImage: timeout",!1,r,B);_.ED.setTimeout(function(){if(B.ontimeout)B.ontimeout()},1E4);
B.src=g}else r(!1)},$Pg=function(g,r){var E=new Rs,B=new AbortController,w=setTimeout(function(){B.abort();
Ar(E,"TestPingServer: timeout",!1,r)},1E4);
fetch(g,{signal:B.signal}).then(function(O){clearTimeout(w);O.ok?Ar(E,"TestPingServer: ok",!0,r):Ar(E,"TestPingServer: server error",!1,r)}).catch(function(){clearTimeout(w);
Ar(E,"TestPingServer: error",!1,r)})},Ar=function(g,r,E,B,w){try{g.debug(r),w&&(w.onload=null,w.onerror=null,w.onabort=null,w.ontimeout=null),B(E)}catch(O){}};var j4F=function(){this.JSC$17572_parser_=new ke};var bb=function(g,r,E){return E&&E.internalChannelParams?E.internalChannelParams[g]||r:r},Jr=function(g){this.serverVersion_=0;
this.JSC$17577_outgoingMaps_=[];this.JSC$17577_channelDebug_=new Rs;this.JSC$17577_hostPrefix_=this.JSC$17577_backChannelUri_=this.JSC$17577_forwardChannelUri_=this.JSC$17577_path_=this.JSC$17577_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17577_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17577_extraHeaders_=null;this.JSC$17577_nextMapId_=this.JSC$17577_nextRid_=0;this.JSC$17577_failFast_=bb("failFast",!1,g);this.enableStreaming_=this.JSC$17577_deadBackChannelTimerId_=
this.JSC$17577_backChannelTimerId_=this.JSC$17577_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17577_lastPostResponseArrayId_=this.JSC$17577_lastArrayId_=-1;this.JSC$17577_backChannelAttemptId_=this.JSC$17577_backChannelRetryCount_=this.JSC$17577_forwardChannelRetryCount_=0;this.JSC$17577_baseRetryDelayMs_=bb("baseRetryDelayMs",5E3,g);this.JSC$17577_retryDelaySeedMs_=bb("retryDelaySeedMs",1E4,g);this.JSC$17577_forwardChannelMaxRetries_=
bb("forwardChannelMaxRetries",2,g);this.JSC$17577_forwardChannelRequestTimeoutMs_=bb("forwardChannelRequestTimeoutMs",2E4,g);this.JSC$17577_xmlHttpFactory_=g&&g.xmlHttpFactory||void 0;this.networkTestUrl_=g&&g.networkTestUrl||void 0;this.usesFetchStreams_=g&&g.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17577_supportsCrossDomainXhrs_=g&&g.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new HiM(g&&g.concurrentRequestLimit);this.wireCodec_=new j4F;this.fastHandshake_=
g&&g.fastHandshake||!1;this.encodeInitMessageHeaders_=g&&g.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17577_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=g&&g.blockingHandshake||!1;g&&g.disableRedact&&this.JSC$17577_channelDebug_.disableRedact();g&&g.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
g&&g.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;g&&g.longPollingTimeout&&g.longPollingTimeout>0&&(this.longPollingTimeout_=g.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
Jr.prototype.JSC$17579_channelVersion_=8;Jr.prototype.state_=1;
Jr.prototype.connect=function(g,r,E,B){this.JSC$17577_channelDebug_.debug("connect()");pJ(0);this.JSC$17577_path_=g;this.JSC$17577_extraParams_=r||{};E&&B!==void 0&&(this.JSC$17577_extraParams_.OSID=E,this.JSC$17577_extraParams_.OAID=B);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17577_channelDebug_.debug("connectChannel_()");g=A2g(this,null,this.JSC$17577_path_);this.JSC$17577_channelDebug_.debug("GetForwardChannelUri: "+g);this.JSC$17577_forwardChannelUri_=g;biv(this)};
Jr.prototype.disconnect=function(){this.JSC$17577_channelDebug_.debug("disconnect()");J2M(this);if(this.state_==3){var g=this.JSC$17577_nextRid_++,r=this.JSC$17577_forwardChannelUri_.clone();_.L5(r,"SID",this.sid_);_.L5(r,"RID",g);_.L5(r,"TYPE","terminate");P9(this,r);g=new s$(this,this.JSC$17577_channelDebug_,this.sid_,g);g.JSC$17558_type_=2;g.JSC$17558_baseUri_=_.EL(r.clone());r=!1;if(_.ED.navigator&&_.ED.navigator.sendBeacon)try{r=_.ED.navigator.sendBeacon(g.JSC$17558_baseUri_.toString(),"")}catch(E){}!r&&
_.ED.Image&&((new Image).src=g.JSC$17558_baseUri_,r=!0);r||(g.JSC$17558_xmlHttp_=T8$(g.JSC$17558_channel_,null),g.JSC$17558_xmlHttp_.send(g.JSC$17558_baseUri_));g.JSC$17558_requestStartTime_=Date.now();d4$(g)}Pz6(this)};
var GA6=function(g){g.JSC$17577_backChannelRequest_&&(uPg(g),g.JSC$17577_backChannelRequest_.cancel(),g.JSC$17577_backChannelRequest_=null)},J2M=function(g){GA6(g);
g.JSC$17577_backChannelTimerId_&&(_.ED.clearTimeout(g.JSC$17577_backChannelTimerId_),g.JSC$17577_backChannelTimerId_=null);oCt(g);g.forwardChannelRequestPool_.cancel();g.JSC$17577_forwardChannelTimerId_&&(typeof g.JSC$17577_forwardChannelTimerId_==="number"&&_.ED.clearTimeout(g.JSC$17577_forwardChannelTimerId_),g.JSC$17577_forwardChannelTimerId_=null)};
Jr.prototype.getState=function(){return this.state_};
var biv=function(g){pU5(g.forwardChannelRequestPool_)||g.JSC$17577_forwardChannelTimerId_||(g.JSC$17577_forwardChannelTimerId_=!0,_.H2(g.JSC$17579_onStartForwardChannelTimer_,g),g.JSC$17577_forwardChannelRetryCount_=0)},F4L=function(g,r){if(zMt(g.forwardChannelRequestPool_)>=g.forwardChannelRequestPool_.JSC$17568_maxSize_-(g.JSC$17577_forwardChannelTimerId_?1:0))return!1;
if(g.JSC$17577_forwardChannelTimerId_)return g.JSC$17577_channelDebug_.debug("Use the retry request that is already scheduled."),g.JSC$17577_outgoingMaps_=r.JSC$17558_pendingMessages_.concat(g.JSC$17577_outgoingMaps_),!0;if(g.state_==1||g.state_==2||g.JSC$17577_forwardChannelRetryCount_>=(g.JSC$17577_failFast_?0:g.JSC$17577_forwardChannelMaxRetries_))return!1;g.JSC$17577_channelDebug_.debug("Going to retry POST");g.JSC$17577_forwardChannelTimerId_=Ye((0,_.$r)(g.JSC$17579_onStartForwardChannelTimer_,
g,r),tBg(g,g.JSC$17577_forwardChannelRetryCount_));g.JSC$17577_forwardChannelRetryCount_++;return!0};
Jr.prototype.JSC$17579_onStartForwardChannelTimer_=function(g){if(this.JSC$17577_forwardChannelTimerId_)if(this.JSC$17577_forwardChannelTimerId_=null,this.JSC$17577_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!g){this.JSC$17577_channelDebug_.debug("open_()");this.JSC$17577_nextRid_=Math.floor(Math.random()*1E5);g=this.JSC$17577_nextRid_++;var r=new s$(this,this.JSC$17577_channelDebug_,"",g),E=this.JSC$17577_extraHeaders_;this.initHeaders_&&(E?(E=_.jn.clone(E),_.jn.extend(E,this.initHeaders_)):
E=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(r.JSC$17558_extraHeaders_=E,E=null);var B;if(this.fastHandshake_)a:{for(var w=B=0;w<this.JSC$17577_outgoingMaps_.length;w++){b:{var O=this.JSC$17577_outgoingMaps_[w];if("__data__"in O.map&&(O=O.map.__data__,typeof O==="string")){O=O.length;break b}O=void 0}if(O===void 0)break;B+=O;if(B>4096){B=w;break a}if(B===4096||w===this.JSC$17577_outgoingMaps_.length-1){B=w+1;break a}}B=1E3}else B=1E3;B=eMg(this,r,B);
w=this.JSC$17577_forwardChannelUri_.clone();_.L5(w,"RID",g);_.L5(w,"CVER",22);this.httpSessionIdParam_&&_.L5(w,"X-HTTP-Session-Id",this.httpSessionIdParam_);P9(this,w);E&&(this.encodeInitMessageHeaders_?B="headers="+_.Ia(q0L(E))+"&"+B:this.httpHeadersOverwriteParam_&&uuL(w,this.httpHeadersOverwriteParam_,E));YTv(this.forwardChannelRequestPool_,r);this.blockingHandshake_&&_.L5(w,"TYPE","init");this.fastHandshake_?(_.L5(w,"$req",B),_.L5(w,"SID","null"),r.decodeInitialResponse_=!0,v7v(r,w,null)):v7v(r,
w,B);this.state_=2}}else this.state_==3&&(g?W4v(this,g):this.JSC$17577_outgoingMaps_.length==0?this.JSC$17577_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):pU5(this.forwardChannelRequestPool_)||(W4v(this),this.JSC$17577_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var W4v=function(g,r){var E;r?E=r.JSC$17558_rid_:E=g.JSC$17577_nextRid_++;var B=g.JSC$17577_forwardChannelUri_.clone();_.L5(B,"SID",g.sid_);_.L5(B,"RID",E);_.L5(B,"AID",g.JSC$17577_lastArrayId_);P9(g,B);g.httpHeadersOverwriteParam_&&g.JSC$17577_extraHeaders_&&uuL(B,g.httpHeadersOverwriteParam_,g.JSC$17577_extraHeaders_);E=new s$(g,g.JSC$17577_channelDebug_,g.sid_,E,g.JSC$17577_forwardChannelRetryCount_+1);g.httpHeadersOverwriteParam_===null&&(E.JSC$17558_extraHeaders_=g.JSC$17577_extraHeaders_);r&&
(g.JSC$17577_outgoingMaps_=r.JSC$17558_pendingMessages_.concat(g.JSC$17577_outgoingMaps_));r=eMg(g,E,1E3);E.setTimeout(Math.round(g.JSC$17577_forwardChannelRequestTimeoutMs_*.5)+Math.round(g.JSC$17577_forwardChannelRequestTimeoutMs_*.5*Math.random()));YTv(g.forwardChannelRequestPool_,E);v7v(E,B,r)},P9=function(g,r){g.JSC$17577_extraParams_&&_.jn.forEach(g.JSC$17577_extraParams_,function(E,B){_.L5(r,B,E)});
g.handler_&&_.jn.forEach({},function(E,B){_.L5(r,B,E)})},eMg=function(g,r,E){E=Math.min(g.JSC$17577_outgoingMaps_.length,E);
var B=g.handler_?(0,_.$r)(g.handler_.JSC$17583_badMapError,g.handler_,g):null;a:{for(var w=g.JSC$17577_outgoingMaps_,O=-1;;){var M=["count="+E];O==-1?E>0?(O=w[0].JSC$17565_mapId,M.push("ofs="+O)):O=0:M.push("ofs="+O);for(var u=!0,l=0;l<E;l++){var Q=w[l].JSC$17565_mapId,z=w[l].map;Q-=O;if(Q<0)O=Math.max(0,w[l].JSC$17565_mapId-100),u=!1;else try{Q="req"+Q+"_"||"";try{var k=z instanceof Map?z:Object.entries(z);for(var H=_.U(k),R=H.next();!R.done;R=H.next()){var A=_.U(R.value),J=A.next().value,e=A.next().value,
C=e;_.gA(e)&&(C=(0,_.sG)(e));M.push(Q+J+"="+encodeURIComponent(C))}}catch(X){throw M.push(Q+"type="+encodeURIComponent("_badmap")),X;}}catch(X){B&&B(z)}}if(u){k=M.join("&");break a}}k=void 0}g=g.JSC$17577_outgoingMaps_.splice(0,E);r.JSC$17558_pendingMessages_=g;return k},CzF=function(g){g.JSC$17577_backChannelRequest_||g.JSC$17577_backChannelTimerId_||(g.JSC$17577_backChannelAttemptId_=1,_.H2(g.JSC$17579_onStartBackChannelTimer_,g),g.JSC$17577_backChannelRetryCount_=0)},Q4g=function(g){if(g.JSC$17577_backChannelRequest_||
g.JSC$17577_backChannelTimerId_||g.JSC$17577_backChannelRetryCount_>=3)return!1;
g.JSC$17577_channelDebug_.debug("Going to retry GET");g.JSC$17577_backChannelAttemptId_++;g.JSC$17577_backChannelTimerId_=Ye((0,_.$r)(g.JSC$17579_onStartBackChannelTimer_,g),tBg(g,g.JSC$17577_backChannelRetryCount_));g.JSC$17577_backChannelRetryCount_++;return!0};
Jr.prototype.JSC$17579_onStartBackChannelTimer_=function(){this.JSC$17577_backChannelTimerId_=null;K48(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17577_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17577_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17577_backChannelRequest_+" "+this.handshakeRttMs_);else{var g=4*this.handshakeRttMs_;this.JSC$17577_channelDebug_.info("BP detection timer enabled: "+g);this.bpDetectionTimerId_=Ye((0,_.$r)(this.onBpDetectionTimer_,
this),g)}};
Jr.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17577_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17577_backChannelRequest_.JSC$17558_xmlHttp_!=null){var g=this.JSC$17577_backChannelRequest_.JSC$17558_xmlHttp_.getResponseText();g&&this.JSC$17577_channelDebug_.warning("Timer should have been cancelled : "+g)}this.JSC$17577_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;pJ(10);GA6(this);K48(this)}else this.JSC$17577_channelDebug_.warning("Invalid operation.")};
var uPg=function(g){g.bpDetectionTimerId_!=null&&(g.JSC$17577_channelDebug_.debug("Cancel the BP detection timer."),_.ED.clearTimeout(g.bpDetectionTimerId_),g.bpDetectionTimerId_=null)},K48=function(g){g.JSC$17577_channelDebug_.debug("Creating new HttpRequest");
g.JSC$17577_backChannelRequest_=new s$(g,g.JSC$17577_channelDebug_,g.sid_,"rpc",g.JSC$17577_backChannelAttemptId_);g.httpHeadersOverwriteParam_===null&&(g.JSC$17577_backChannelRequest_.JSC$17558_extraHeaders_=g.JSC$17577_extraHeaders_);g.JSC$17577_backChannelRequest_.JSC$17558_readyStateChangeThrottleMs_=0;var r=g.JSC$17577_backChannelUri_.clone();_.L5(r,"RID","rpc");_.L5(r,"SID",g.sid_);_.L5(r,"AID",g.JSC$17577_lastArrayId_);_.L5(r,"CI",g.enableStreaming_?"0":"1");!g.enableStreaming_&&g.longPollingTimeout_&&
_.L5(r,"TO",g.longPollingTimeout_);_.L5(r,"TYPE","xmlhttp");P9(g,r);g.httpHeadersOverwriteParam_&&g.JSC$17577_extraHeaders_&&uuL(r,g.httpHeadersOverwriteParam_,g.JSC$17577_extraHeaders_);g.backChannelRequestTimeoutMs_&&g.JSC$17577_backChannelRequest_.setTimeout(g.backChannelRequestTimeoutMs_);var E=g.JSC$17577_backChannelRequest_,B=g.JSC$17577_hostPrefix_;E.JSC$17558_type_=1;E.JSC$17558_baseUri_=_.EL(r.clone());E.JSC$17558_postData_=null;E.decodeChunks_=!0;yh8(E,B);g.JSC$17577_channelDebug_.debug("New Request created")};
Jr.prototype.JSC$17579_onBackChannelDead_=function(){this.JSC$17577_deadBackChannelTimerId_!=null&&(this.JSC$17577_deadBackChannelTimerId_=null,GA6(this),Q4g(this),pJ(19))};
var oCt=function(g){g.JSC$17577_deadBackChannelTimerId_!=null&&(_.ED.clearTimeout(g.JSC$17577_deadBackChannelTimerId_),g.JSC$17577_deadBackChannelTimerId_=null)},UPF=function(g,r){g.JSC$17577_channelDebug_.debug("Request complete");
var E=null;if(g.JSC$17577_backChannelRequest_==r){oCt(g);uPg(g);g.JSC$17577_backChannelRequest_=null;var B=2}else if(DP4(g.forwardChannelRequestPool_,r))E=r.JSC$17558_pendingMessages_,RML(g.forwardChannelRequestPool_,r),B=1;else return;if(g.state_!=0)if(r.JSC$17558_successful_)B==1?(N8F(r.JSC$17558_postData_?r.JSC$17558_postData_.length:0,Date.now()-r.JSC$17558_requestStartTime_,g.JSC$17577_forwardChannelRetryCount_),biv(g)):CzF(g);else{var w=r.JSC$17558_lastStatusCode_,O=r.getLastError();if(O==3||
O==0&&w>0)g.JSC$17577_channelDebug_.debug("Not retrying due to error type"),w>200&&(g.errorResponseStatusCode_=r.JSC$17558_lastStatusCode_);else{g.JSC$17577_channelDebug_.debug(function(){return"Maybe retrying, last error: "+VsA(O,g.errorResponseStatusCode_)});
if(B==1&&F4L(g,r)||B==2&&Q4g(g))return;g.JSC$17577_channelDebug_.debug("Exceeded max number of retries")}E&&E.length>0&&s4D(g.forwardChannelRequestPool_,E);g.JSC$17577_channelDebug_.debug("Error: HTTP request failed");switch(O){case 1:jq(g,5);break;case 4:jq(g,10);break;case 3:jq(g,6);break;default:jq(g,2)}}},tBg=function(g,r){var E=g.JSC$17577_baseRetryDelayMs_+Math.floor(Math.random()*g.JSC$17577_retryDelaySeedMs_);
g.isActive()||(g.JSC$17577_channelDebug_.debug("Inactive channel"),E*=2);return E*r};
Jr.prototype.onInput_=function(g,r){for(var E=0;E<g.length;E++){var B=g[E];this.JSC$17577_lastArrayId_=B[0];B=B[1];if(this.state_==2)if(B[0]=="c"){this.sid_=B[1];this.JSC$17577_hostPrefix_=B[2];var w=B[3];w!=null&&(this.JSC$17579_channelVersion_=w,this.JSC$17577_channelDebug_.info("VER="+this.JSC$17579_channelVersion_));w=B[4];w!=null&&(this.serverVersion_=w,this.JSC$17577_channelDebug_.info("SVER="+this.serverVersion_));B=B[5];B!=null&&typeof B==="number"&&B>0&&(this.backChannelRequestTimeoutMs_=
B*=1.5,this.JSC$17577_channelDebug_.info("backChannelRequestTimeoutMs_="+B));if(B=r.JSC$17558_xmlHttp_){var O=Dv(B,"X-Client-Wire-Protocol");O&&(w=this.forwardChannelRequestPool_,!w.requestPool_&&(_.lB(O,"spdy")||_.lB(O,"quic")||_.lB(O,"h2"))&&(w.JSC$17568_maxSize_=w.maxPoolSizeConfigured_,w.requestPool_=new Set,w.JSC$17568_request_&&(YTv(w,w.JSC$17568_request_),w.JSC$17568_request_=null)));this.httpSessionIdParam_&&((B=Dv(B,"X-HTTP-Session-Id"))?(this.httpSessionId_=B,_.L5(this.JSC$17577_forwardChannelUri_,
this.httpSessionIdParam_,B)):this.JSC$17577_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17583_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-r.JSC$17558_requestStartTime_,this.JSC$17577_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));B=r;w=A2g(this,this.JSC$17577_supportsCrossDomainXhrs_?this.JSC$17577_hostPrefix_:null,this.JSC$17577_path_);this.JSC$17577_channelDebug_.debug("GetBackChannelUri: "+
w);this.JSC$17577_backChannelUri_=w;B.initialResponseDecoded_?(this.JSC$17577_channelDebug_.debug("Upgrade the handshake request to a backchannel."),RML(this.forwardChannelRequestPool_,B),w=B,(O=this.backChannelRequestTimeoutMs_)&&w.setTimeout(O),w.JSC$17558_watchDogTimerId_&&(ECm(w),d4$(w)),this.JSC$17577_backChannelRequest_=B):CzF(this);this.JSC$17577_outgoingMaps_.length>0&&biv(this)}else B[0]!="stop"&&B[0]!="close"||jq(this,7);else this.state_==3&&(B[0]=="stop"||B[0]=="close"?B[0]=="stop"?jq(this,
7):this.disconnect():B[0]!="noop"&&this.handler_&&this.handler_.JSC$17583_channelHandleArray(B),this.JSC$17577_backChannelRetryCount_=0)}};
var jq=function(g,r){g.JSC$17577_channelDebug_.info("Error code "+r);if(r==2){var E=(0,_.$r)(g.testNetworkCallback_,g),B=g.networkTestUrl_,w=!B;B=new _.Vk(B||"//www.google.com/images/cleardot.gif");_.ED.location&&_.ED.location.protocol=="http"||_.Vu(B,"https");_.EL(B);w?f0z(B.toString(),E):$Pg(B.toString(),E)}else pJ(2);g.onError_(r)};
Jr.prototype.testNetworkCallback_=function(g){g?(this.JSC$17577_channelDebug_.info("Successfully pinged google.com"),pJ(2)):(this.JSC$17577_channelDebug_.info("Failed to ping google.com"),pJ(1))};
Jr.prototype.onError_=function(g){this.JSC$17577_channelDebug_.debug("HttpChannel: error - "+g);this.state_=0;this.handler_&&this.handler_.JSC$17583_channelError(g);Pz6(this);J2M(this)};
var Pz6=function(g){g.state_=0;g.nonAckedMapsAtChannelClose_=[];if(g.handler_){var r=nCM(g.forwardChannelRequestPool_);if(r.length!=0||g.JSC$17577_outgoingMaps_.length!=0)g.JSC$17577_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+r.length+", outgoing: "+g.JSC$17577_outgoingMaps_.length}),_.dl(g.nonAckedMapsAtChannelClose_,r),_.dl(g.nonAckedMapsAtChannelClose_,g.JSC$17577_outgoingMaps_),g.forwardChannelRequestPool_.JSC$17568_pendingMessages_.length=0,_.ZQ(g.JSC$17577_outgoingMaps_),
g.JSC$17577_outgoingMaps_.length=0;
g.handler_.JSC$17583_channelClosed()}},xPt=function(g){if(g.state_==0)return g.nonAckedMapsAtChannelClose_;
var r=[];_.dl(r,nCM(g.forwardChannelRequestPool_));_.dl(r,g.JSC$17577_outgoingMaps_);return r},A2g=function(g,r,E){var B=_.cT(E);
B.JSC$8122_domain_!=""?(r&&_.he(B,r+"."+B.JSC$8122_domain_),_.Zf(B,B.JSC$8122_port_)):(B=_.ED.location,B=v38(B.protocol,r?r+"."+B.hostname:B.hostname,+B.port,E));r=g.httpSessionIdParam_;E=g.httpSessionId_;r&&E&&_.L5(B,r,E);_.L5(B,"VER",g.JSC$17579_channelVersion_);P9(g,B);return B},T8$=function(g,r,E){if(r&&!g.JSC$17577_supportsCrossDomainXhrs_)throw Error("Dk");
r=g.usesFetchStreams_&&!g.JSC$17577_xmlHttpFactory_?new _.fc(new PR({streamBinaryChunks:E})):new _.fc(g.JSC$17577_xmlHttpFactory_);r.JSC$7885_withCredentials_=g.JSC$17577_supportsCrossDomainXhrs_;return r};
Jr.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var a0M=function(){};
_.S=a0M.prototype;_.S.JSC$17583_channelOpened=function(){};
_.S.JSC$17583_channelHandleArray=function(){};
_.S.JSC$17583_channelError=function(){};
_.S.JSC$17583_channelClosed=function(){};
_.S.isActive=function(){return!0};
_.S.JSC$17583_badMapError=function(){};var XU6=function(){},FD=function(g,r){_.ze.call(this);
this.JSC$17586_channel_=new Jr(r);this.JSC$17586_url_=g;this.messageUrlParams_=r&&r.messageUrlParams||null;g=r&&r.messageHeaders||null;r&&r.clientProtocolHeaderRequired&&(g?_.jn.set(g,"X-Client-Protocol","webchannel"):g=_.jn.create("X-Client-Protocol","webchannel"));this.JSC$17586_channel_.JSC$17577_extraHeaders_=g;g=r&&r.initMessageHeaders||null;r&&r.messageContentType&&(g?_.jn.set(g,"X-WebChannel-Content-Type",r.messageContentType):g=_.jn.create("X-WebChannel-Content-Type",r.messageContentType));
r&&r.clientProfile&&(g?_.jn.set(g,"X-WebChannel-Client-Profile",r.clientProfile):g=_.jn.create("X-WebChannel-Client-Profile",r.clientProfile));this.JSC$17586_channel_.initHeaders_=g;(g=r&&r.httpHeadersOverwriteParam)&&!_.qo(g)&&(this.JSC$17586_channel_.httpHeadersOverwriteParam_=g);this.supportsCrossDomainXhr_=r&&r.supportsCrossDomainXhr||!1;this.sendRawJson_=r&&r.sendRawJson||!1;(r=r&&r.httpSessionIdParam)&&!_.qo(r)&&(this.JSC$17586_channel_.httpSessionIdParam_=r,_.jn.containsKey(this.messageUrlParams_,
r)&&_.jn.remove(this.messageUrlParams_,r));this.channelHandler_=new tr(this)};
_.rc(FD,_.ze);FD.prototype.open=function(){this.JSC$17586_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17586_channel_.JSC$17577_supportsCrossDomainXhrs_=!0);this.JSC$17586_channel_.connect(this.JSC$17586_url_,this.messageUrlParams_||void 0)};
FD.prototype.close=function(){this.JSC$17586_channel_.disconnect()};
FD.prototype.send=function(g){var r=this.JSC$17586_channel_;if(typeof g==="string"){var E={};E.__data__=g;g=E}else this.sendRawJson_&&(E={},E.__data__=(0,_.sG)(g),g=E);r.JSC$17577_outgoingMaps_.push(new kAg(r.JSC$17577_nextMapId_++,g));r.state_==3&&biv(r)};
FD.prototype.disposeInternal=function(){this.JSC$17586_channel_.handler_=null;delete this.channelHandler_;this.JSC$17586_channel_.disconnect();delete this.JSC$17586_channel_;FD.superClass_.disposeInternal.call(this)};
var N3A=function(g){eXF.call(this);g.__headers__&&(this.headers=g.__headers__,this.statusCode=g.__status__,delete g.__headers__,delete g.__status__);var r=g.__sm__;r?this.data=(this.metadataKey=_.jn.getAnyKey(r))?_.jn.get(r,this.metadataKey):r:this.data=g};
_.rc(N3A,eXF);var I0v=function(g){WhF.call(this);this.status=1;this.errorCode=g};
_.rc(I0v,WhF);var tr=function(g){this.JSC$17593_channel_=g};
_.rc(tr,a0M);tr.prototype.JSC$17583_channelOpened=function(){this.JSC$17593_channel_.dispatchEvent("w")};
tr.prototype.JSC$17583_channelHandleArray=function(g){this.JSC$17593_channel_.dispatchEvent(new N3A(g))};
tr.prototype.JSC$17583_channelError=function(g){this.JSC$17593_channel_.dispatchEvent(new I0v(g))};
tr.prototype.JSC$17583_channelClosed=function(){this.JSC$17593_channel_.dispatchEvent("x")};
var mPt=function(g,r){this.transportChannel_=g;this.JSC$17596_channel_=r},c2v=function(g){return xPt(g.JSC$17596_channel_).map(function(r){var E=g.transportChannel_;
r=r.map;"__data__"in r?(r=r.__data__,E=E.sendRawJson_?(0,_.f2T)(r):r):E=r;return E})};var eq=function(g){iim.dispatchEvent(new L4F(iim,g))},iim=new _.ze,L4F=function(g){_.l8.call(this,"statevent",g)};
_.f(L4F,_.l8);var W9=function(g,r,E,B,w){this.JSC$17601_channel_=g;this.JSC$17601_channelDebug_=r;this.sid_=E;this.JSC$17601_rid_=B;this.JSC$17601_retryId_=w||1;this.timeout_=45E3;this.JSC$17601_eventHandler_=new _.EQ(this);this.pollingTimer_=new _.rU;this.pollingTimer_.setInterval(250)};
_.S=W9.prototype;_.S.JSC$17603_extraHeaders_=null;_.S.JSC$17603_successful_=!1;_.S.JSC$17603_watchDogTimerId_=null;_.S.JSC$17603_watchDogTimeoutTime_=null;_.S.JSC$17603_requestStartTime_=null;_.S.JSC$17603_type_=null;_.S.JSC$17603_baseUri_=null;_.S.JSC$17603_requestUri_=null;_.S.JSC$17603_postData_=null;_.S.JSC$17603_xmlHttp_=null;_.S.JSC$17603_xmlHttpChunkStart_=0;_.S.trident_=null;_.S.JSC$17603_verb_=null;_.S.JSC$17603_lastError_=null;_.S.JSC$17603_lastStatusCode_=-1;_.S.sendClose_=!0;
_.S.JSC$17603_cancelled_=!1;_.S.JSC$17603_readyStateChangeThrottleMs_=0;_.S.JSC$17603_readyStateChangeThrottle_=null;var VB5=function(g,r){switch(g){case 0:return"Non-200 return code ("+r+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},hMM={},Zim={};
W9.prototype.setTimeout=function(g){this.timeout_=g};
var vC6=function(g,r,E){g.JSC$17603_type_=1;g.JSC$17603_baseUri_=_.EL(r.clone());g.JSC$17603_postData_=E;g.decodeChunks_=!0;y2L(g,null)},dPm=function(g,r,E,B,w){g.JSC$17603_type_=1;
g.JSC$17603_baseUri_=_.EL(r.clone());g.JSC$17603_postData_=null;g.decodeChunks_=E;w&&(g.sendClose_=!1);y2L(g,B)},y2L=function(g,r){g.JSC$17603_requestStartTime_=Date.now();
T3$(g);g.JSC$17603_requestUri_=g.JSC$17603_baseUri_.clone();S4(g.JSC$17603_requestUri_,"t",g.JSC$17601_retryId_);g.JSC$17603_xmlHttpChunkStart_=0;g.JSC$17603_xmlHttp_=g.JSC$17601_channel_.JSC$17610_createXhrIo(g.JSC$17601_channel_.JSC$17610_shouldUseSecondaryDomains()?r:null);g.JSC$17603_readyStateChangeThrottleMs_>0&&(g.JSC$17603_readyStateChangeThrottle_=new _.VU((0,_.$r)(g.JSC$17603_xmlHttpHandler_,g,g.JSC$17603_xmlHttp_),g.JSC$17603_readyStateChangeThrottleMs_));g.JSC$17601_eventHandler_.listen(g.JSC$17603_xmlHttp_,
"readystatechange",g.JSC$17603_readyStateChangeHandler_);r=g.JSC$17603_extraHeaders_?_.jn.clone(g.JSC$17603_extraHeaders_):{};g.JSC$17603_postData_?(g.JSC$17603_verb_="POST",r["Content-Type"]="application/x-www-form-urlencoded",g.JSC$17603_xmlHttp_.send(g.JSC$17603_requestUri_,g.JSC$17603_verb_,g.JSC$17603_postData_,r)):(g.JSC$17603_verb_="GET",g.sendClose_&&!_.Uz&&(r.Connection="close"),g.JSC$17603_xmlHttp_.send(g.JSC$17603_requestUri_,g.JSC$17603_verb_,null,r));g.JSC$17601_channel_.notifyServerReachabilityEvent(1);
r=g.JSC$17601_channelDebug_;var E=g.JSC$17603_postData_;if(E){var B="";E=E.split("&");for(var w=0;w<E.length;w++){var O=E[w].split("=");if(O.length>1){var M=O[0];O=O[1];var u=M.split("_");B=u.length>=2&&u[1]=="type"?B+(M+"="+O+"&"):B+(M+"=redacted&")}}}else B=null;r.info("XMLHTTP REQ ("+g.JSC$17601_rid_+") [attempt "+g.JSC$17601_retryId_+"]: "+g.JSC$17603_verb_+"\n"+g.JSC$17603_requestUri_+"\n"+B)};
W9.prototype.JSC$17603_readyStateChangeHandler_=function(g){g=g.target;var r=this.JSC$17603_readyStateChangeThrottle_;r&&_.$$(g)==3?(this.JSC$17601_channelDebug_.debug("Throttling readystatechange."),r.fire()):this.JSC$17603_xmlHttpHandler_(g)};
W9.prototype.JSC$17603_xmlHttpHandler_=function(g){try{if(g==this.JSC$17603_xmlHttp_)a:{var r=_.$$(this.JSC$17603_xmlHttp_),E=this.JSC$17603_xmlHttp_.JSC$7885_lastErrorCode_,B=this.JSC$17603_xmlHttp_.getStatus();if(_.Uz&&!_.ME("420+")){if(r<4)break a}else if(r<3||r==3&&!this.JSC$17603_xmlHttp_.getResponseText())break a;this.JSC$17603_cancelled_||r!=4||E==7||(E==8||B<=0?this.JSC$17601_channel_.notifyServerReachabilityEvent(3):this.JSC$17601_channel_.notifyServerReachabilityEvent(2));gvM(this);var w=
this.JSC$17603_xmlHttp_.getStatus();this.JSC$17603_lastStatusCode_=w;var O=this.JSC$17603_xmlHttp_.getResponseText();O||this.JSC$17601_channelDebug_.debug("No response text for uri "+this.JSC$17603_requestUri_+" status "+w);this.JSC$17603_successful_=w==200;this.JSC$17601_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17601_rid_+") [ attempt "+this.JSC$17601_retryId_+"]: "+this.JSC$17603_verb_+"\n"+this.JSC$17603_requestUri_+"\n"+r+" "+w);if(this.JSC$17603_successful_){r==4&&CJ(this);if(this.decodeChunks_){for(g=
!0;!this.JSC$17603_cancelled_&&this.JSC$17603_xmlHttpChunkStart_<O.length;){var M=rAL(this,O);if(M==Zim){r==4&&(this.JSC$17603_lastError_=4,eq(15),g=!1);KJ(this.JSC$17601_channelDebug_,this.JSC$17601_rid_,null,"[Incomplete Response]");break}else if(M==hMM){this.JSC$17603_lastError_=4;eq(16);KJ(this.JSC$17601_channelDebug_,this.JSC$17601_rid_,O,"[Invalid Chunk]");g=!1;break}else KJ(this.JSC$17601_channelDebug_,this.JSC$17601_rid_,M,null),EvA(this,M)}r==4&&O.length==0&&(this.JSC$17603_lastError_=1,
eq(17),g=!1);this.JSC$17603_successful_=this.JSC$17603_successful_&&g;g||(KJ(this.JSC$17601_channelDebug_,this.JSC$17601_rid_,O,"[Invalid Chunked Response]"),CJ(this),Bnt(this))}else KJ(this.JSC$17601_channelDebug_,this.JSC$17601_rid_,O,null),EvA(this,O);this.JSC$17603_successful_&&!this.JSC$17603_cancelled_&&(r==4?this.JSC$17601_channel_.JSC$17610_onRequestComplete(this):(this.JSC$17603_successful_=!1,T3$(this)))}else w==400&&O.indexOf("Unknown SID")>0?(this.JSC$17603_lastError_=3,eq(13),this.JSC$17601_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17601_rid_+")")):(this.JSC$17603_lastError_=0,eq(14),this.JSC$17601_channelDebug_.warning("XMLHTTP Bad status "+w+" ("+this.JSC$17601_rid_+")")),CJ(this),Bnt(this)}else this.JSC$17601_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(u){this.JSC$17601_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var rAL=function(g,r){var E=g.JSC$17603_xmlHttpChunkStart_,B=r.indexOf("\n",E);if(B==-1)return Zim;E=Number(r.substring(E,B));if(isNaN(E))return hMM;B+=1;if(B+E>r.length)return Zim;r=r.slice(B,B+E);g.JSC$17603_xmlHttpChunkStart_=B+E;return r};
W9.prototype.cancel=function(){this.JSC$17603_cancelled_=!0;CJ(this)};
var T3$=function(g){g.JSC$17603_watchDogTimeoutTime_=Date.now()+g.timeout_;wAM(g,g.timeout_)},wAM=function(g,r){if(g.JSC$17603_watchDogTimerId_!=null)throw Error("Ck");
g.JSC$17603_watchDogTimerId_=fb((0,_.$r)(g.JSC$17603_onWatchDogTimeout_,g),r)},gvM=function(g){g.JSC$17603_watchDogTimerId_&&(_.ED.clearTimeout(g.JSC$17603_watchDogTimerId_),g.JSC$17603_watchDogTimerId_=null)};
W9.prototype.JSC$17603_onWatchDogTimeout_=function(){this.JSC$17603_watchDogTimerId_=null;var g=Date.now();g-this.JSC$17603_watchDogTimeoutTime_>=0?(this.JSC$17601_channelDebug_.info("TIMEOUT: "+this.JSC$17603_requestUri_),this.JSC$17603_type_!=2&&this.JSC$17601_channel_.notifyServerReachabilityEvent(3),CJ(this),this.JSC$17603_lastError_=2,eq(18),Bnt(this)):(this.JSC$17601_channelDebug_.warning("WatchDog timer called too early"),wAM(this,this.JSC$17603_watchDogTimeoutTime_-g))};
var Bnt=function(g){g.JSC$17601_channel_.JSC$17610_isClosed()||g.JSC$17603_cancelled_||g.JSC$17601_channel_.JSC$17610_onRequestComplete(g)},CJ=function(g){gvM(g);
_.TM(g.JSC$17603_readyStateChangeThrottle_);g.JSC$17603_readyStateChangeThrottle_=null;g.pollingTimer_.stop();g.JSC$17601_eventHandler_.removeAll();if(g.JSC$17603_xmlHttp_){var r=g.JSC$17603_xmlHttp_;g.JSC$17603_xmlHttp_=null;r.abort();r.dispose()}g.trident_&&(g.trident_=null)};
W9.prototype.getLastError=function(){return this.JSC$17603_lastError_};
var EvA=function(g,r){try{g.JSC$17601_channel_.JSC$17610_onRequestData(g,r),g.JSC$17601_channel_.notifyServerReachabilityEvent(4)}catch(E){}};var KJ=function(g,r,E,B){var w=g.info;a:if(E&&E!="y2f%"){try{var O=JSON.parse(E);if(O)for(var M=0;M<O.length;M++)if(Array.isArray(O[M])){var u=O[M];if(!(u.length<2)){var l=u[1];if(Array.isArray(l)&&!(l.length<1)){var Q=l[0];if(Q!="noop"&&Q!="stop")for(var z=1;z<l.length;z++)l[z]=""}}}var k=(0,_.sG)(O);break a}catch(H){g.debug("Exception parsing expected JS array - probably was not JS");k=E;break a}k=void 0}else k=E;w.call(g,"XMLHTTP TEXT ("+r+"): "+k+(B?" "+B:""))};
$s.prototype.debug=function(g){this.info(g)};
$s.prototype.info=function(){};
$s.prototype.warning=function(){};var SXM=function(g,r){this.JSC$17608_channel_=g;this.JSC$17608_channelDebug_=r;this.JSC$17608_parser_=new ke};
_.S=SXM.prototype;_.S.JSC$17610_extraHeaders_=null;_.S.JSC$17610_request_=null;_.S.receivedIntermediateResult_=!1;_.S.JSC$17610_path_=null;_.S.state_=null;_.S.JSC$17610_lastStatusCode_=-1;_.S.JSC$17610_hostPrefix_=null;_.S.blockedPrefix_=null;
_.S.connect=function(g){this.JSC$17610_path_=g;g=O74(this.JSC$17608_channel_,this.JSC$17610_path_);eq(3);Date.now();var r=this.JSC$17608_channel_.firstTestResults_;r!=null?(this.JSC$17610_hostPrefix_=r[0],(this.blockedPrefix_=r[1])?(this.state_=1,Ua$(this)):(this.state_=2,MPM(this))):(S4(g,"MODE","init"),this.JSC$17610_request_=new W9(this,this.JSC$17608_channelDebug_),this.JSC$17610_request_.JSC$17603_extraHeaders_=this.JSC$17610_extraHeaders_,dPm(this.JSC$17610_request_,g,!1,null,!0),this.state_=
0)};
var Ua$=function(g){var r=qX6(g.JSC$17608_channel_,g.blockedPrefix_,"/mail/images/cleardot.gif");_.EL(r);Fx4(r.toString(),5E3,(0,_.$r)(g.checkBlockedCallback_,g),3,2E3);g.notifyServerReachabilityEvent(1)};
SXM.prototype.checkBlockedCallback_=function(g){if(g)this.state_=2,MPM(this);else{eq(4);var r=this.JSC$17608_channel_;r.JSC$17611_channelDebug_.debug("Test Connection Blocked");r.JSC$17615_lastStatusCode_=r.connectionTest_.JSC$17610_lastStatusCode_;xe(r,9)}g&&this.notifyServerReachabilityEvent(2)};
var MPM=function(g){g.JSC$17608_channelDebug_.debug("TestConnection: starting stage 2");var r=g.JSC$17608_channel_.secondTestResults_;r!=null?(g.JSC$17608_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+r?"Buffered":"Unbuffered"),eq(5),r?(eq(11),as(g.JSC$17608_channel_,g,!1)):(eq(12),as(g.JSC$17608_channel_,g,!0))):(g.JSC$17610_request_=new W9(g,g.JSC$17608_channelDebug_),g.JSC$17610_request_.JSC$17603_extraHeaders_=g.JSC$17610_extraHeaders_,r=uOt(g.JSC$17608_channel_,
g.JSC$17610_hostPrefix_,g.JSC$17610_path_),eq(5),S4(r,"TYPE","xmlhttp"),dPm(g.JSC$17610_request_,r,!1,g.JSC$17610_hostPrefix_,!1))};
_.S=SXM.prototype;_.S.JSC$17610_createXhrIo=function(g){return this.JSC$17608_channel_.JSC$17610_createXhrIo(g)};
_.S.abort=function(){this.JSC$17610_request_&&(this.JSC$17610_request_.cancel(),this.JSC$17610_request_=null);this.JSC$17610_lastStatusCode_=-1};
_.S.JSC$17610_isClosed=function(){return!1};
_.S.JSC$17610_onRequestData=function(g,r){this.JSC$17610_lastStatusCode_=g.JSC$17603_lastStatusCode_;if(this.state_==0)if(this.JSC$17608_channelDebug_.debug("TestConnection: Got data for stage 1"),r){try{var E=this.JSC$17608_parser_.parse(r)}catch(B){lEL(this.JSC$17608_channel_,this);return}this.JSC$17610_hostPrefix_=E[0];this.blockedPrefix_=E[1]}else this.JSC$17608_channelDebug_.debug("TestConnection: Null responseText"),lEL(this.JSC$17608_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(eq(7),Date.now()):r=="11111"?(eq(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17610_lastStatusCode_=200,this.JSC$17610_request_.cancel(),this.JSC$17608_channelDebug_.debug("Test connection succeeded; using streaming connection"),eq(12),as(this.JSC$17608_channel_,this,!0)):(eq(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.S.JSC$17610_onRequestComplete=function(){this.JSC$17610_lastStatusCode_=this.JSC$17610_request_.JSC$17603_lastStatusCode_;this.JSC$17610_request_.JSC$17603_successful_?this.state_==0?(this.JSC$17608_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,Ua$(this)):(this.state_=2,MPM(this))):this.state_==2&&(this.JSC$17608_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17608_channelDebug_.debug("Test connection succeeded; using streaming connection"),
eq(12),as(this.JSC$17608_channel_,this,!0)):(this.JSC$17608_channelDebug_.debug("Test connection failed; not using streaming"),eq(11),as(this.JSC$17608_channel_,this,!1))):(this.JSC$17608_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?eq(9):this.state_==2&&eq(10),lEL(this.JSC$17608_channel_,this,this.JSC$17610_request_.getLastError()))};
_.S.JSC$17610_shouldUseSecondaryDomains=function(){return this.JSC$17608_channel_.JSC$17610_shouldUseSecondaryDomains()};
_.S.isActive=function(){return this.JSC$17608_channel_.isActive()};
_.S.notifyServerReachabilityEvent=function(g){this.JSC$17608_channel_.notifyServerReachabilityEvent(g)};var XD=function(g,r,E){this.state_=1;this.JSC$17611_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17611_channelDebug_=new $s;this.JSC$17611_parser_=new ke;this.firstTestResults_=g||null;this.secondTestResults_=r!=null?r:null;this.asyncTest_=E||!1},Dag=function(g,r){this.JSC$17613_mapId=g;
this.map=r;this.context=null};
_.S=XD.prototype;_.S.JSC$17615_extraHeaders_=null;_.S.JSC$17615_extraParams_=null;_.S.forwardChannelRequest_=null;_.S.JSC$17615_backChannelRequest_=null;_.S.JSC$17615_path_=null;_.S.JSC$17615_forwardChannelUri_=null;_.S.JSC$17615_backChannelUri_=null;_.S.JSC$17615_hostPrefix_=null;_.S.JSC$17615_nextRid_=0;_.S.JSC$17615_nextMapId_=0;_.S.handler_=null;_.S.JSC$17615_forwardChannelTimerId_=null;_.S.JSC$17615_backChannelTimerId_=null;_.S.JSC$17615_deadBackChannelTimerId_=null;_.S.connectionTest_=null;
_.S.useChunked_=null;_.S.JSC$17615_lastArrayId_=-1;_.S.JSC$17615_lastPostResponseArrayId_=-1;_.S.JSC$17615_lastStatusCode_=-1;_.S.JSC$17615_forwardChannelRetryCount_=0;_.S.JSC$17615_backChannelRetryCount_=0;_.S.JSC$17615_channelVersion_=8;var ovD={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},GtM=function(g,r,E,B){_.l8.call(this,"timingevent",g);this.size=r;this.rtt=E;this.retries=B};
_.rc(GtM,_.l8);var Qit=function(g){_.l8.call(this,"serverreachability",g)};
_.rc(Qit,_.l8);XD.prototype.connect=function(g,r,E,B,w){this.JSC$17611_channelDebug_.debug("connect()");eq(0);this.JSC$17615_path_=r;this.JSC$17615_extraParams_=E||{};B&&w!==void 0&&(this.JSC$17615_extraParams_.OSID=B,this.JSC$17615_extraParams_.OAID=w);this.asyncTest_?(fb((0,_.$r)(this.connectTest_,this,g),100),zOM(this)):this.connectTest_(g)};
XD.prototype.disconnect=function(){this.JSC$17611_channelDebug_.debug("disconnect()");ktv(this);if(this.state_==3){var g=this.JSC$17615_nextRid_++,r=this.JSC$17615_forwardChannelUri_.clone();_.L5(r,"SID",this.sid_);_.L5(r,"RID",g);_.L5(r,"TYPE","terminate");Nw(this,r);g=new W9(this,this.JSC$17611_channelDebug_,this.sid_,g);g.JSC$17603_type_=2;g.JSC$17603_baseUri_=_.EL(r.clone());(new Image).src=g.JSC$17603_baseUri_.toString();g.JSC$17603_requestStartTime_=Date.now();T3$(g)}H75(this)};
XD.prototype.connectTest_=function(g){this.JSC$17611_channelDebug_.debug("connectTest_()");this.connectionTest_=new SXM(this,this.JSC$17611_channelDebug_);this.connectionTest_.JSC$17610_extraHeaders_=this.JSC$17615_extraHeaders_;this.connectionTest_.JSC$17608_parser_=this.JSC$17611_parser_;this.connectionTest_.connect(g)};
var zOM=function(g){g.JSC$17611_channelDebug_.debug("connectChannel_()");g.JSC$17615_ensureInState_(1,0);g.JSC$17615_forwardChannelUri_=O74(g,g.JSC$17615_path_);pAD(g)},ktv=function(g){g.connectionTest_&&(g.connectionTest_.abort(),g.connectionTest_=null);
g.JSC$17615_backChannelRequest_&&(g.JSC$17615_backChannelRequest_.cancel(),g.JSC$17615_backChannelRequest_=null);g.JSC$17615_backChannelTimerId_&&(_.ED.clearTimeout(g.JSC$17615_backChannelTimerId_),g.JSC$17615_backChannelTimerId_=null);YXz(g);g.forwardChannelRequest_&&(g.forwardChannelRequest_.cancel(),g.forwardChannelRequest_=null);g.JSC$17615_forwardChannelTimerId_&&(_.ED.clearTimeout(g.JSC$17615_forwardChannelTimerId_),g.JSC$17615_forwardChannelTimerId_=null)},RO4=function(g,r){if(g.state_==0)throw Error("Fk");
g.JSC$17611_outgoingMaps_.length==1E3&&g.JSC$17611_parser_.stringify(r);g.JSC$17611_outgoingMaps_.push(new Dag(g.JSC$17615_nextMapId_++,r));g.state_!=2&&g.state_!=3||pAD(g)};
XD.prototype.JSC$17610_isClosed=function(){return this.state_==0};
XD.prototype.getState=function(){return this.state_};
var pAD=function(g){g.forwardChannelRequest_||g.JSC$17615_forwardChannelTimerId_||(g.JSC$17615_forwardChannelTimerId_=fb((0,_.$r)(g.JSC$17615_onStartForwardChannelTimer_,g),0),g.JSC$17615_forwardChannelRetryCount_=0)};
XD.prototype.JSC$17615_onStartForwardChannelTimer_=function(g){this.JSC$17615_forwardChannelTimerId_=null;nvt(this,g)};
var nvt=function(g,r){g.JSC$17611_channelDebug_.debug("startForwardChannel_");if(g.state_==1){if(!r){g.JSC$17611_channelDebug_.debug("open_()");g.JSC$17615_nextRid_=Math.floor(Math.random()*1E5);r=g.JSC$17615_nextRid_++;var E=new W9(g,g.JSC$17611_channelDebug_,"",r);E.JSC$17603_extraHeaders_=g.JSC$17615_extraHeaders_;var B=sig(g),w=g.JSC$17615_forwardChannelUri_.clone();_.L5(w,"RID",r);_.L5(w,"CVER","1");Nw(g,w);vC6(E,w,B);g.forwardChannelRequest_=E;g.state_=2}}else g.state_==3&&(r?fE6(g,r):g.JSC$17611_outgoingMaps_.length==
0?g.JSC$17611_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):g.forwardChannelRequest_||(fE6(g),g.JSC$17611_channelDebug_.debug("startForwardChannel_ finished, sent request")))},fE6=function(g,r){if(r)if(g.JSC$17615_channelVersion_>6){g.JSC$17611_outgoingMaps_=g.pendingMaps_.concat(g.JSC$17611_outgoingMaps_);
g.pendingMaps_.length=0;var E=g.JSC$17615_nextRid_-1;r=sig(g)}else E=r.JSC$17601_rid_,r=r.JSC$17603_postData_;else E=g.JSC$17615_nextRid_++,r=sig(g);var B=g.JSC$17615_forwardChannelUri_.clone();_.L5(B,"SID",g.sid_);_.L5(B,"RID",E);_.L5(B,"AID",g.JSC$17615_lastArrayId_);Nw(g,B);E=new W9(g,g.JSC$17611_channelDebug_,g.sid_,E,g.JSC$17615_forwardChannelRetryCount_+1);E.JSC$17603_extraHeaders_=g.JSC$17615_extraHeaders_;E.setTimeout(1E4+Math.round(1E4*Math.random()));g.forwardChannelRequest_=E;vC6(E,B,r)},
Nw=function(g,r){g.handler_&&(g=g.handler_.JSC$17622_getAdditionalParams())&&_.jn.forEach(g,function(E,B){_.L5(r,B,E)})},sig=function(g){var r=Math.min(g.JSC$17611_outgoingMaps_.length,1E3),E=["count="+r];
if(g.JSC$17615_channelVersion_>6&&r>0){var B=g.JSC$17611_outgoingMaps_[0].JSC$17613_mapId;E.push("ofs="+B)}else B=0;for(var w={},O=0;O<r;w={mapId$jscomp$3:void 0},O++){w.mapId$jscomp$3=g.JSC$17611_outgoingMaps_[O].JSC$17613_mapId;var M=g.JSC$17611_outgoingMaps_[O].map;w.mapId$jscomp$3=g.JSC$17615_channelVersion_<=6?O:w.mapId$jscomp$3-B;try{_.jn.forEach(M,function(u){return function(l,Q){E.push("req"+u.mapId$jscomp$3+"_"+Q+"="+encodeURIComponent(l))}}(w))}catch(u){E.push("req"+w.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}g.pendingMaps_=g.pendingMaps_.concat(g.JSC$17611_outgoingMaps_.splice(0,r));
return E.join("&")},$ag=function(g){g.JSC$17615_backChannelRequest_||g.JSC$17615_backChannelTimerId_||(g.JSC$17615_backChannelAttemptId_=1,g.JSC$17615_backChannelTimerId_=fb((0,_.$r)(g.JSC$17615_onStartBackChannelTimer_,g),0),g.JSC$17615_backChannelRetryCount_=0)},AA6=function(g){if(g.JSC$17615_backChannelRequest_||g.JSC$17615_backChannelTimerId_||g.JSC$17615_backChannelRetryCount_>=3)return!1;
g.JSC$17611_channelDebug_.debug("Going to retry GET");g.JSC$17615_backChannelAttemptId_++;g.JSC$17615_backChannelTimerId_=fb((0,_.$r)(g.JSC$17615_onStartBackChannelTimer_,g),jiv(g,g.JSC$17615_backChannelRetryCount_));g.JSC$17615_backChannelRetryCount_++;return!0};
XD.prototype.JSC$17615_onStartBackChannelTimer_=function(){this.JSC$17615_backChannelTimerId_=null;this.JSC$17611_channelDebug_.debug("Creating new HttpRequest");this.JSC$17615_backChannelRequest_=new W9(this,this.JSC$17611_channelDebug_,this.sid_,"rpc",this.JSC$17615_backChannelAttemptId_);this.JSC$17615_backChannelRequest_.JSC$17603_extraHeaders_=this.JSC$17615_extraHeaders_;this.JSC$17615_backChannelRequest_.JSC$17603_readyStateChangeThrottleMs_=0;var g=this.JSC$17615_backChannelUri_.clone();_.L5(g,
"RID","rpc");_.L5(g,"SID",this.sid_);_.L5(g,"CI",this.useChunked_?"0":"1");_.L5(g,"AID",this.JSC$17615_lastArrayId_);Nw(this,g);_.L5(g,"TYPE","xmlhttp");dPm(this.JSC$17615_backChannelRequest_,g,!0,this.JSC$17615_hostPrefix_,!1);this.JSC$17611_channelDebug_.debug("New Request created")};
var as=function(g,r,E){g.JSC$17611_channelDebug_.debug("Test Connection Finished");g.useChunked_=g.secondTestResults_==null?E:!g.secondTestResults_;g.JSC$17615_lastStatusCode_=r.JSC$17610_lastStatusCode_;g.asyncTest_||zOM(g)},lEL=function(g,r){g.JSC$17611_channelDebug_.debug("Test Connection Failed");
g.JSC$17615_lastStatusCode_=r.JSC$17610_lastStatusCode_;xe(g,2)};
XD.prototype.JSC$17610_onRequestData=function(g,r){if(this.state_!=0&&(this.JSC$17615_backChannelRequest_==g||this.forwardChannelRequest_==g))if(this.JSC$17615_lastStatusCode_=g.JSC$17603_lastStatusCode_,this.forwardChannelRequest_==g&&this.state_==3)if(this.JSC$17615_channelVersion_>7){try{var E=this.JSC$17611_parser_.parse(r)}catch(B){E=null}if(Array.isArray(E)&&E.length==3)if(r=E,r[0]==0)a:if(this.JSC$17611_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17615_backChannelTimerId_)this.JSC$17611_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17615_backChannelRequest_)if(this.JSC$17615_backChannelRequest_.JSC$17603_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17603_requestStartTime_)YXz(this),this.JSC$17615_backChannelRequest_.cancel(),this.JSC$17615_backChannelRequest_=null;else break a;else this.JSC$17611_channelDebug_.warning("We do not have a BackChannel established");AA6(this);eq(19)}else this.JSC$17615_lastPostResponseArrayId_=r[1],g=this.JSC$17615_lastPostResponseArrayId_-this.JSC$17615_lastArrayId_,0<
g&&(r=r[2],this.JSC$17611_channelDebug_.debug(r+" bytes (in "+g+" arrays) are outstanding on the BackChannel"),r<37500&&this.useChunked_&&this.JSC$17615_backChannelRetryCount_==0&&!this.JSC$17615_deadBackChannelTimerId_&&(this.JSC$17615_deadBackChannelTimerId_=fb((0,_.$r)(this.JSC$17615_onBackChannelDead_,this),6E3)));else this.JSC$17611_channelDebug_.debug("Bad POST response data returned"),xe(this,11)}else r!="y2f%"&&(this.JSC$17611_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
xe(this,11));else this.JSC$17615_backChannelRequest_==g&&YXz(this),_.qo(r)||(g=this.JSC$17611_parser_.parse(r),this.onInput_(g))};
XD.prototype.JSC$17615_onBackChannelDead_=function(){this.JSC$17615_deadBackChannelTimerId_!=null&&(this.JSC$17615_deadBackChannelTimerId_=null,this.JSC$17615_backChannelRequest_.cancel(),this.JSC$17615_backChannelRequest_=null,AA6(this),eq(20))};
var YXz=function(g){g.JSC$17615_deadBackChannelTimerId_!=null&&(_.ED.clearTimeout(g.JSC$17615_deadBackChannelTimerId_),g.JSC$17615_deadBackChannelTimerId_=null)};
XD.prototype.JSC$17610_onRequestComplete=function(g){this.JSC$17611_channelDebug_.debug("Request complete");if(this.JSC$17615_backChannelRequest_==g){YXz(this);this.JSC$17615_backChannelRequest_=null;var r=2}else if(this.forwardChannelRequest_==g)this.forwardChannelRequest_=null,r=1;else return;this.JSC$17615_lastStatusCode_=g.JSC$17603_lastStatusCode_;if(this.state_!=0)if(g.JSC$17603_successful_)if(r==1){r=g.JSC$17603_postData_?g.JSC$17603_postData_.length:0;g=Date.now()-g.JSC$17603_requestStartTime_;
var E=iim;E.dispatchEvent(new GtM(E,r,g,this.JSC$17615_forwardChannelRetryCount_));pAD(this);this.handler_&&this.handler_.JSC$17622_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else $ag(this);else{E=g.getLastError();if(E==3||E==7||E==0&&this.JSC$17615_lastStatusCode_>0)this.JSC$17611_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17611_channelDebug_.debug("Maybe retrying, last error: "+VB5(E,this.JSC$17615_lastStatusCode_));var B;if(B=r==1)this.forwardChannelRequest_||
this.JSC$17615_forwardChannelTimerId_||this.state_==1||this.JSC$17615_forwardChannelRetryCount_>=2?B=!1:(this.JSC$17611_channelDebug_.debug("Going to retry POST"),this.JSC$17615_forwardChannelTimerId_=fb((0,_.$r)(this.JSC$17615_onStartForwardChannelTimer_,this,g),jiv(this,this.JSC$17615_forwardChannelRetryCount_)),this.JSC$17615_forwardChannelRetryCount_++,B=!0);if(B||r==2&&AA6(this))return;this.JSC$17611_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17611_channelDebug_.debug("Error: HTTP request failed");
switch(E){case 1:xe(this,5);break;case 4:xe(this,10);break;case 3:xe(this,6);break;case 7:xe(this,12);break;default:xe(this,2)}}};
var jiv=function(g,r){var E=5E3+Math.floor(Math.random()*1E4);g.isActive()||(g.JSC$17611_channelDebug_.debug("Inactive channel"),E*=2);return E*r};
XD.prototype.onInput_=function(g){for(var r=0;r<g.length;r++){var E=g[r];this.JSC$17615_lastArrayId_=E[0];E=E[1];this.state_==2?E[0]=="c"?(this.sid_=E[1],this.JSC$17615_hostPrefix_=E[2],E=E[3],E!=null?this.JSC$17615_channelVersion_=E:this.JSC$17615_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17622_channelOpened(),this.JSC$17615_backChannelUri_=uOt(this,this.JSC$17615_hostPrefix_,this.JSC$17615_path_),$ag(this)):E[0]=="stop"&&xe(this,7):this.state_==3&&(E[0]=="stop"?xe(this,7):
E[0]!="noop"&&this.handler_&&this.handler_.JSC$17622_channelHandleArray(E),this.JSC$17615_backChannelRetryCount_=0)}};
XD.prototype.JSC$17615_ensureInState_=function(g){if(!_.mA(arguments,this.state_))throw Error("Gk`"+this.state_);};
var xe=function(g,r){g.JSC$17611_channelDebug_.info("Error code "+r);if(r==2||r==9){var E=null;g.handler_&&(E=null);var B=(0,_.$r)(g.testGoogleComCallback_,g);E||(E=new _.Vk("//www.google.com/images/cleardot.gif"),_.EL(E));tGD(E.toString(),1E4,B)}else eq(2);g.onError_(r)};
XD.prototype.testGoogleComCallback_=function(g){g?(this.JSC$17611_channelDebug_.info("Successfully pinged google.com"),eq(2)):(this.JSC$17611_channelDebug_.info("Failed to ping google.com"),eq(1),this.onError_(8))};
XD.prototype.onError_=function(g){this.JSC$17611_channelDebug_.debug("HttpChannel: error - "+g);this.state_=0;this.handler_&&this.handler_.JSC$17622_channelError(g);H75(this);ktv(this)};
var H75=function(g){g.state_=0;g.JSC$17615_lastStatusCode_=-1;if(g.handler_)if(g.pendingMaps_.length==0&&g.JSC$17611_outgoingMaps_.length==0)g.handler_.JSC$17622_channelClosed();else{g.JSC$17611_channelDebug_.debug("Number of undelivered maps, pending: "+g.pendingMaps_.length+", outgoing: "+g.JSC$17611_outgoingMaps_.length);var r=_.ZQ(g.pendingMaps_),E=_.ZQ(g.JSC$17611_outgoingMaps_);g.pendingMaps_.length=0;g.JSC$17611_outgoingMaps_.length=0;g.handler_.JSC$17622_channelClosed(r,E)}},O74=function(g,
r){r=qX6(g,null,r);
g.JSC$17611_channelDebug_.debug("GetForwardChannelUri: "+r);return r},uOt=function(g,r,E){r=qX6(g,g.JSC$17610_shouldUseSecondaryDomains()?r:null,E);
g.JSC$17611_channelDebug_.debug("GetBackChannelUri: "+r);return r},qX6=function(g,r,E){var B=_.cT(E);
if(B.JSC$8122_domain_!="")r&&_.he(B,r+"."+B.JSC$8122_domain_),_.Zf(B,B.JSC$8122_port_);else{var w=window.location;B=v38(w.protocol,r?r+"."+w.hostname:w.hostname,+w.port,E)}g.JSC$17615_extraParams_&&_.jn.forEach(g.JSC$17615_extraParams_,function(O,M){_.L5(B,M,O)});
_.L5(B,"VER",g.JSC$17615_channelVersion_);Nw(g,B);return B};
XD.prototype.JSC$17610_createXhrIo=function(g){if(g)throw Error("Dk");g=new _.fc;g.JSC$7885_withCredentials_=!1;return g};
XD.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
XD.prototype.notifyServerReachabilityEvent=function(g){var r=iim;r.dispatchEvent(new Qit(r,g))};
XD.prototype.JSC$17610_shouldUseSecondaryDomains=function(){return!1};
new Br$;var b7M=function(){};
_.S=b7M.prototype;_.S.JSC$17622_channelOpened=function(){};
_.S.JSC$17622_channelHandleArray=function(){};
_.S.JSC$17622_channelSuccess=function(){};
_.S.JSC$17622_channelError=function(){};
_.S.JSC$17622_channelClosed=function(){};
_.S.JSC$17622_getAdditionalParams=function(){return{}};
_.S.isActive=function(){return!0};var JAM=function(g){g.front_.length===0&&(g.front_=g.back_,g.front_.reverse(),g.back_=[])};
_.S=Wx$.prototype;_.S.enqueue=function(g){this.back_.push(g)};
_.S.peek=function(){JAM(this);return _.KL(this.front_)};
_.S.getCount=function(){return this.front_.length+this.back_.length};
_.S.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.S.clear=function(){this.front_=[];this.back_=[]};
_.S.contains=function(g){return _.mA(this.front_,g)||_.mA(this.back_,g)};
_.S.remove=function(g){var r=this.front_;var E=Array.prototype.lastIndexOf.call(r,g,r.length-1);E>=0?(_.Vl(r,E),r=!0):r=!1;return r||_.ht(this.back_,g)};
_.S.getValues=function(){for(var g=[],r=this.front_.length-1;r>=0;--r)g.push(this.front_[r]);r=this.back_.length;for(var E=0;E<r;++E)g.push(this.back_[E]);return g};var Is=function(g){this.JSC$17626_map_=new _.EX;this.size=0;g&&this.addAll(g)},PlL=function(g){var r=typeof g;
return r=="object"&&g||r=="function"?"o"+_.Ew(g):r.charAt(0)+g};
_.S=Is.prototype;_.S.getCount=function(){return this.JSC$17626_map_.size};
_.S.add=function(g){this.JSC$17626_map_.set(PlL(g),g);this.size=this.JSC$17626_map_.size};
_.S.addAll=function(g){g=_.Lc(g);for(var r=g.length,E=0;E<r;E++)this.add(g[E]);this.size=this.JSC$17626_map_.size};
_.S.removeAll=function(g){g=_.Lc(g);for(var r=g.length,E=0;E<r;E++)this.remove(g[E]);this.size=this.JSC$17626_map_.size};
_.S.delete=function(g){g=this.JSC$17626_map_.remove(PlL(g));this.size=this.JSC$17626_map_.size;return g};
_.S.remove=function(g){return this.delete(g)};
_.S.clear=function(){this.JSC$17626_map_.clear();this.size=0};
_.S.isEmpty=function(){return this.JSC$17626_map_.size===0};
_.S.has=function(g){return this.JSC$17626_map_.containsKey(PlL(g))};
_.S.contains=function(g){return this.JSC$17626_map_.containsKey(PlL(g))};
_.S.getValues=function(){return this.JSC$17626_map_.getValues()};
_.S.values=function(){return this.JSC$17626_map_.values()};
_.S.clone=function(){return new Is(this)};
_.S.equals=function(g){return this.getCount()==ZhD(g)&&tPv(this,g)};
var tPv=function(g,r){var E=ZhD(r);if(g.getCount()>E)return!1;!(r instanceof Is)&&E>5&&(r=new Is(r));return yR4(g,function(B){var w=r;return w.contains&&typeof w.contains=="function"?w.contains(B):w.containsValue&&typeof w.containsValue=="function"?w.containsValue(B):_.vJ(w)||typeof w==="string"?_.mA(w,B):_.jn.containsValue(w,B)})};
Is.prototype.__iterator__=function(){return this.JSC$17626_map_.__iterator__(!1)};
Is.prototype[Symbol.iterator]=function(){return this.values()};var FMM={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(g){return(this._clampValue(g)-this.min)/(this.max-this.min)},
_clampValue:function(g){return Math.min(this.max,Math.max(this.min,this._calcStep(g)))},
_calcStep:function(g){g=parseFloat(g);if(!this.step)return g;g=Math.round((g-this.min)/this.step);return this.step<1?g/(1/this.step)+this.min:g*this.step+this.min},
_validateValue:function(){var g=this._clampValue(this.value);this.value=this.oldValue=isNaN(g)?this.oldValue:g;return this.value!==g},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var eOg;var WMF;_.ba({_template:function(){if(WMF!==void 0)return WMF;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;eOg===void 0&&(eOg=document.createElement("template"));var B=eOg;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return WMF=g},
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(){_.Lk(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(g){g.keyCode===27&&(g.preventDefault(),this.close())},
_track:function(g){if(!this.persistent&&!this.disableSwipe)switch(g.preventDefault(),g.detail.state){case "start":this._trackStart(g);break;case "track":this._trackMove(g);break;case "end":this._trackEnd(g)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var g=this.$.contentContainer.getBoundingClientRect();this._savedWidth=g.width;this._translateOffset=this.position==="left"?g.left:g.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(g){this._trackDetails&&(this._translateDrawer(g.detail.dx+this._translateOffset),this._trackDetails.push({dx:g.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(g){if(this._trackDetails){var r=g.detail.dx+this._translateOffset,E=this.getWidth();r=this.position==="left"?r>=0||r<=-E:r<=0||r>=E;if(!r){var B=this._trackDetails;this._trackDetails=null;this._flingDrawer(g,B);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}E/=2;g.detail.dx<-E?this.opened=this.position==="right":g.detail.dx>E&&(this.opened=this.position==="left");r?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(g,r){for(var E=Date.now(),B=E-100,w,O=0,M=r.length-1;O<=M;){var u=O+M>>1,l=r[u];l.timeStamp>=B?(w=l,M=u-1):O=u+1}return w?(g.detail.dx-w.dx)/(E-w.timeStamp||1):0},
_flingDrawer:function(g,r){r=this._calculateVelocity(g,r);if(!(Math.abs(r)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;g=g.detail.dx+this._translateOffset;var E=this.getWidth(),B=this.position==="left",w=r>0;w?(r=Math.max(r,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(r=Math.min(r,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");r=this._FLING_INITIAL_SLOPE*(!w&&B?-(g+E):w&&!B?E-g:-g)/r;this._styleTransitionDuration(r);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,r)}},
_styleTransitionDuration:function(g){this.style.transitionDuration=g+"ms";this.$.contentContainer.style.transitionDuration=g+"ms";this.$.scrim.style.transitionDuration=g+"ms"},
_styleTransitionTimingFunction:function(g){this.$.contentContainer.style.transitionTimingFunction=g;this.$.scrim.style.transitionTimingFunction=g},
_translateDrawer:function(g){var r=this.getWidth();this.position==="left"?(g=Math.max(-r,Math.min(g,0)),this.$.scrim.style.opacity=1+g/r):(g=Math.max(0,Math.min(g,r)),this.$.scrim.style.opacity=1-g/r);this.translate3d(g+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var g=this._drawerState;g===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;g!==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=""),g!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var g=_.nM(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"])');g.length>0?(this._firstTabStop=g[0],this._lastTabStop=g[g.length-1]):
this._lastTabStop=this._firstTabStop=null;(g=this.getAttribute("tabindex"))&&parseInt(g,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(g){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||g.keyCode!==9||(g.shiftKey?this._firstTabStop&&_.nM(g).localTarget===this._firstTabStop&&(g.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.nM(g).localTarget===this._lastTabStop&&(g.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(g,r){this.toggleClass("visible",g&&!r,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 Cl4;var KMM;_.ba({_template:function(){if(KMM!==void 0)return KMM;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;Cl4===void 0&&(Cl4=document.createElement("template"));var B=Cl4;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return KMM=g},
is:"tp-yt-paper-progress",behaviors:[FMM],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(g){this.toggleClass("indeterminate",g,this.$.primaryProgress)},
_transformProgress:function(g,r){g.style.transform=g.style.webkitTransform="scaleX("+r/100+")"},
_mainRatioChanged:function(g){this._transformProgress(this.$.primaryProgress,g)},
_progressChanged:function(g,r,E,B,w){g=this._clampValue(g);r=this._clampValue(r);var O=this._calcRatio(g)*100,M=this._calcRatio(r)*100;this._setSecondaryRatio(O);this._transformProgress(this.$.secondaryProgress,O);this._transformProgress(this.$.primaryProgress,M);this.secondaryProgress=g;w?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",r);this.setAttribute("aria-valuemin",E);this.setAttribute("aria-valuemax",B)},
_disabledChanged:function(g){this.setAttribute("aria-disabled",g?"true":"false")},
_hideSecondaryProgress:function(g){return g===0}});var xa8;var aEM;var XAz=function(){};
_.S=XAz.prototype;_.S.registered=function(){};
_.S.addOwnKeyBinding=function(){};
_.S.removeOwnKeyBindings=function(){};
_.S.keyboardEventMatchesKeys=function(){};
_.S._collectKeyBindings=function(){};
_.S._prepKeyBindings=function(){};
_.S._addKeyBinding=function(){};
_.S._resetKeyEventListeners=function(){};
_.S._listenKeyEventListeners=function(){};
_.S._unlistenKeyEventListeners=function(){};
_.S._onKeyBindingEvent=function(){};
_.S._triggerKeyHandler=function(){};
_.S._tapHandler=function(){};
_.S._focusChanged=function(){};
_.S._detectKeyboardFocus=function(){};
_.S._userActivate=function(){};
_.S._upHandler=function(){};
_.S._spaceKeyDownHandler=function(){};
_.S._spaceKeyUpHandler=function(){};
_.S._asyncClick=function(){};
_.S._pressedChanged=function(){};
_.S._ariaActiveAttributeChanged=function(){};
_.S._activeChanged=function(){};
_.S._controlStateChanged=function(){};
_.S._changedButtonState=function(){};
_.S._focusBlurHandler=function(){};
_.S._disabledChanged=function(){};
_.S._changedControlState=function(){};
_.S._buttonStateChanged=function(){};
_.S._downHandler=function(){};
_.S.ensureRipple=function(){};
_.S.getRipple=function(){};
_.S.hasRipple=function(){};
_.S._noinkChanged=function(){};
_.S._calcRatio=function(){};
_.S._clampValue=function(){};
_.S._calcStep=function(){};
_.S._validateValue=function(){};
_.S._update=function(){};
_.S._setImmediateValue=function(){};
_.S._setExpand=function(){};
_.S._setDragging=function(){};
_.S._setTransiting=function(){};
_.S._setMarkers=function(){};
_.S._setPressed=function(){};
_.S._setPointerDown=function(){};
_.S._setReceivedFocusFromKeyboard=function(){};
_.S._setFocused=function(){};
_.S._setRatio=function(){};
XAz=_.ba({_template:function(){if(aEM!==void 0)return aEM;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;xa8===void 0&&(xa8=document.createElement("template"));var B=xa8;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return aEM=g},
is:"tp-yt-paper-slider",behaviors:[_.QV,_.p7,_.uXD,FMM],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&&_.P3(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(g,r,E){this.setAttribute("aria-valuemin",r);this.setAttribute("aria-valuemax",E);this.setAttribute("aria-valuenow",g);this._positionKnob(this._calcRatio(g)*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(g){this._setImmediateValue(this._calcStep(this._calcKnobPosition(g)));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(g){return(this.max-this.min)*g/100+this.min},
_onTrack:function(g){g.stopPropagation();switch(g.detail.state){case "start":this._trackStart(g);break;case "track":this._trackX(g);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(g){this.dragging||this._trackStart(g);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,g.detail.dx*(this._isRTL?-1:1)));g=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(g);g=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(g+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var g=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;g.transform=g.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(g){this._expandKnob();g.preventDefault();this.focus()},
_bartrack:function(g){this._allowBarEvent(g)&&this._onTrack(g)},
_barclick:function(g){this._w=this.$.sliderBar.offsetWidth;var r=this.$.sliderBar.getBoundingClientRect();r=(g.detail.x-r.left)/this._w*100;this._isRTL&&(r=100-r);var E=this.ratio;this._setTransiting(!0);this._positionKnob(r);E===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
g.preventDefault();this.focus()},
_bardown:function(g){this._allowBarEvent(g)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(g))},
_knobTransitionEnd:function(g){g.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(g,r,E,B){B||this._setMarkers([]);r=Math.round((E-r)/this.step);r>g&&(r=g);if(r<0||!isFinite(r))r=0;this._setMarkers(Array(r))},
_mergeClasses:function(g){return Object.keys(g).filter(function(r){return g[r]}).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(g){return!this.ignoreBarTouch||g.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(g){this._isRTL?this._incrementKey(g):this._decrementKey(g)},
_rightKey:function(g){this._isRTL?this._decrementKey(g):this._incrementKey(g)},
_incrementKey:function(g){this.disabled||(g.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),g.preventDefault())},
_decrementKey:function(g){this.disabled||(g.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),g.preventDefault())},
_changeValue:function(g){this.value=g.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(g){g.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.qgw._createRipple.call(this)},
_focusedChanged:function(g){g&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=g?"":"none",this._ripple.holdDown=g)}});var Nn8;var IEz;var mU=null,mav=function(){};
_.S=mav.prototype;_.S.fit=function(){};
_.S._discoverInfo=function(){};
_.S.resetFit=function(){};
_.S.refit=function(){};
_.S.position=function(){};
_.S.constrain=function(){};
_.S._sizeDimension=function(){};
_.S.__sizeDimension=function(){};
_.S.center=function(){};
_.S.__getNormalizedRect=function(){};
_.S.__getOffscreenArea=function(){};
_.S.__getPosition=function(){};
_.S.notifyResize=function(){};
_.S.assignParentResizable=function(){};
_.S.stopResizeNotificationsFor=function(){};
_.S._subscribeIronResize=function(){};
_.S._unsubscribeIronResize=function(){};
_.S.resizerShouldNotify=function(){};
_.S._onDescendantIronResize=function(){};
_.S._fireResize=function(){};
_.S._onIronRequestResizeNotifications=function(){};
_.S._parentResizableChanged=function(){};
_.S._notifyDescendant=function(){};
_.S._requestResizeNotifications=function(){};
_.S._findParent=function(){};
_.S.toggle=function(){};
_.S.open=function(){};
_.S.close=function(){};
_.S.cancel=function(){};
_.S.invalidateTabbables=function(){};
_.S._ensureSetup=function(){};
_.S._canceledChanged=function(){};
_.S._withBackdropChanged=function(){};
_.S._prepareRenderOpened=function(){};
_.S._finishRenderOpened=function(){};
_.S._finishRenderClosed=function(){};
_.S._preparePositioning=function(){};
_.S._finishPositioning=function(){};
_.S._applyFocus=function(){};
_.S._onCaptureClick=function(){};
_.S._onCaptureFocus=function(){};
_.S._onCaptureEsc=function(){};
_.S._onCaptureTab=function(){};
_.S._onIronResize=function(){};
_.S._onNodesChange=function(){};
_.S.__ensureFirstLastFocusables=function(){};
_.S.__openedChanged=function(){};
_.S.__deraf=function(){};
_.S.__updateScrollObservers=function(){};
_.S.__addScrollListeners=function(){};
_.S.__removeScrollListeners=function(){};
_.S.__isValidScrollAction=function(){};
_.S.__onCaptureScroll=function(){};
_.S.__saveScrollPosition=function(){};
_.S.__restoreScrollPosition=function(){};
_.S._setCanceled=function(){};
mav=_.ba({_template:function(){if(IEz!==void 0)return IEz;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;Nn8===void 0&&(Nn8=document.createElement("template"));var B=Nn8;E.call(r,B.content.cloneNode(!0),g.content.firstChild);return IEz=g},
is:"tp-yt-paper-toast",behaviors:[_.ai],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(){_.Qo._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.eP.requestAvailability()},
show:function(g){typeof g=="string"&&(g={text:g});for(var r in g)r.indexOf("_")===0?_.Qo._warn('The property "'+r+'" is private and was not set.'):r in this?this[r]=g[r]:_.Qo._warn('The property "'+r+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(g){g&&g.target===this&&g.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(mU&&mU!==this&&mU.close(),mU=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):mU===this&&(mU=null);_.xv._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(g){this.positionTarget=g},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var cAv=new _.V("disablePersonalizationAction");var jbt=new _.V("showDmaConsentFlowCommand");var ACv=new _.V("showMmgNoticeCommand");var i7A=new _.V("saveConsentAction");var LMM=function(g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Sz(g)};
_.f(LMM,_.xu);var VPv=_.gs(LMM);var hOD=new _.V("updateTopbarAvatarAction");var Z7v=new _.V("channelHandleValidationResultRenderer");var yA4=new _.V("generateHandleFromNameResultRenderer");var vv8=new _.V("channelHandleInputRenderer");var daD=new _.V("copyLinkRenderer");var TnM=new _.V("timedCommand");var gTA=new _.V("clearCookieAction");var r96=new _.V("getMultiPageMenuAction");var ET5=new _.V("addToGuideSectionAction"),By8=new _.V("removeFromGuideSectionAction");var wy$=new _.V("updateNotificationsUnseenCountAction");var S75=new _.V("resetChannelUnreadCountCommand");var OY5=new _.V("resetSubscriptionsUnreadDotCommand");var UCD=new _.V("selectLanguageCommand");var I18=new _.V("sendFeedbackAction");var MfM=new _.V("uploadImageToScottyCommand");var q7L=new _.V("registerPromoCommand");var udF=new _.V("setPushNotificationsEnabledCommand");var lcg=new _.V("desktopTopbarRenderer");var DC$=new _.V("surveyFollowUpRenderer");var oT5=new _.V("handlesClaimingRadioOptionRenderer");var Giz=new _.V("hotkeyDialogRenderer");var Q1M=new _.V("modifyReportFormCommand");var z0M=new _.V("accountLinkCommand");var kiM=new _.V("accountUnlinkCommand");var HYm=new _.V("logAccountLinkingEventCommand");var pyD=new _.V("guideCollapsibleEntryRenderer");var Y7M=new _.V("guideDownloadsEntryRenderer");var c9=new _.V("guideEntryRenderer");var R0M=new _.V("getLocationCommand");var nTM=new _.V("locationCollectionCommand");var s1g=new _.V("storiesItemViewModel");var fcD=new _.V("addToRemoteQueueAction");var $C8=new _.V("insertInRemoteQueueAction");var j18=new _.V("removeFromRemoteQueueAction");var A96=new _.V("notificationRenderer");var lo5=new _.V("localWatchHistoryCommand");var bYg=new _.V("pdgBuyFlowHeaderRenderer");var J9L=new _.V("pdgColorSliderRenderer");var Pwm=new _.V("pdgCommentOptionRenderer");var tfM=new _.V("pdgCommentPreviewRenderer");var F58=new _.V("superVodSelectableItemButtonRenderer");var e0A=new _.V("switchButtonRenderer");var W54=new _.V("upsellDialogRenderer");var Cwv=new _.V("feedbackQuestionRenderer"),K5v=new _.V("feedbackOptionRenderer");var xCm=new _.V("sponsorshipsTierRenderer"),acA=new _.V("sponsorshipsPromotionChannelRenderer");var Xyv=new _.V("simpleSurveyMessageRenderer");var IoL=new _.V("invokeInstrumentManagerAction");var Ny4=new _.V("logYpcFlowDismissCommand");var Ic8=new _.V("logYpcFlowStartCommand");var mCM=new _.V("unlimitedCreateFamilyEndpoint");var c9z=new _.V("iconBadgeRenderer");var D8t=new _.V("collaborativePlaylistVisibilityValidationRule");var iYF=function(g){_.l8.call(this,"channelMessage");this.message=g};
_.f(iYF,_.l8);var L56=function(g){_.l8.call(this,"channelError");this.error=g};
_.f(L56,_.l8);var Vf8={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"},h0F={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",
GAMING:"g",UNPLUGGED:"up"},ZYA={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},y9D={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},vTF={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var ib=function(g){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 _.EX;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;g&&(this.id=g.id||g.name,this.name=g.name,this.clientName=g.clientName?g.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=g.app,this.type=g.type||"REMOTE_CONTROL",this.username=g.user||"",this.avatar=g.userAvatarUri||"",this.obfuscatedGaiaId=g.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=g.ownerObfuscatedGaiaId||"",this.castUserId=g.castUserId||"",this.theme=g.theme||"u",dCA(this,g.capabilities||""),TyM(this,
g.compatibleSenderThemes||""),gQM(this,g.experiments||""),this.remoteControllerUrl=g.remoteControllerUrl||"",this.localChannelEncryptionKey=g.localChannelEncryptionKey||"",this.deviceContext=g.deviceContext,this.brand=g.brand||"",this.model=g.model||"",this.year=g.year||0,this.os=g.os||"",this.osVersion=g.osVersion||"",this.chipset=g.chipset||"",this.mdxDialServerType=g.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=g.pairingType||"unknown",g=g.deviceInfo)&&(g=JSON.parse(g),this.brand=
g.brand||"",this.model=g.model||"",this.year=g.year||0,this.os=g.os||"",this.osVersion=g.osVersion||"",this.chipset=g.chipset||"",this.clientName=g.clientName?g.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=g.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
ib.prototype.copy=function(){var g={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&&(g.brand=this.brand);
this.model&&(g.model=this.model);this.year&&(g.year=this.year);this.os&&(g.os=this.os);this.osVersion&&(g.osVersion=this.osVersion);this.chipset&&(g.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(g.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(g.mdxDialServerType=this.mdxDialServerType);g=new ib(g);g.connected=this.connected;g.remoteControllerUrl=this.remoteControllerUrl;g.localChannelEncryptionKey=this.localChannelEncryptionKey;g.deviceContext=
this.deviceContext;g.castUserId=this.castUserId;return g};
ib.prototype.equals=function(g){return g?this.id==g.id:!1};
var dCA=function(g,r){g.capabilities.clear();_.BL(r.split(","),_.Hk(_.jn.contains,Vf8)).forEach(function(E){g.capabilities.add(E)})},TyM=function(g,r){g.compatibleSenderThemes.clear();
_.BL(r.split(","),_.Hk(_.jn.contains,h0F)).forEach(function(E){g.compatibleSenderThemes.add(E)})},gQM=function(g,r){g.experiments.clear();
r.split(",").forEach(function(E){g.experiments.add(E)})};var r6M=function(g,r){this.action=g;this.params=r||{}};_.rc(CGL,_.f5);_.S=CGL.prototype;_.S.JSC$17662_onTick_=function(){this.JSC$17660_interval_=Math.min(3E5,this.JSC$17660_interval_*2);this.JSC$17662_listener_();this.nextTickTime_&&this.start()};
_.S.start=function(){var g=this.JSC$17660_interval_+15E3*Math.random(),r=this.delay_;r.isActive()||r.start(g);this.nextTickTime_=Date.now()+g};
_.S.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.S.isActive=function(){return this.delay_.isActive()};
_.S.reset=function(){this.delay_.stop();this.JSC$17660_interval_=5E3};_.rc(jX,b7M);_.S=jX.prototype;_.S.subscribe=function(g,r,E){return this.pubsub_.subscribe(g,r,E)};
_.S.unsubscribe=function(g,r,E){return this.pubsub_.unsubscribe(g,r,E)};
_.S.unsubscribeByKey=function(g){return this.pubsub_.unsubscribeByKey(g)};
_.S.publish=function(g,r){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.S.dispose=function(){this.JSC$17663_disposed_||(this.JSC$17663_disposed_=!0,_.TM(this.pubsub_),this.disconnect(),_.TM(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17663_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.lq({})})};
_.S.isDisposed=function(){return this.JSC$17663_disposed_};
_.S.connect=function(g,r,E){var B=this,w,O,M,u;return _.q(function(l){if(l.nextAddress==1)return _.DD(l,2),B.useAsyncBrowserChannelHandler_?_.D(l,B.connectPromise_,2):l.jumpTo(2);_.uY(l);if(B.JSC$17663_disposed_||B.JSC$17663_channel_&&B.JSC$17663_channel_.getState()==2)return l.return();B.sCookie_="";B.reconnectTimer_.stop();B.connectionParams_=g||null;B.connectUi_=r||0;w=B.JSC$17663_pathPrefix_+"/test";O=B.JSC$17663_pathPrefix_+"/bind";M=new XD(E?E.firstTestResults:null,E?E.secondTestResults:null,
B.enableAsyncTest_);if(u=B.JSC$17663_channel_)u.handler_=null;M.handler_=B;B.JSC$17663_channel_=M;if(B.useAsyncBrowserChannelHandler_)return B.connectPromise_=EQz(B).then(function(){return BTD(B,w,O,u,E)}),l.return(B.connectPromise_.then(function(){B.connectPromise_=_.lq()}));
BTD(B,w,O,u,E);return _.oF(l,0)})};
var BTD=function(g,r,E,B,w){wa6(g);if(g.JSC$17663_channel_){var O=_.Ca("ID_TOKEN"),M=g.JSC$17663_channel_.JSC$17615_extraHeaders_||{};O?M["x-youtube-identity-token"]=O:delete M["x-youtube-identity-token"];g.JSC$17663_channel_.JSC$17615_extraHeaders_=M}SkD(g);B?(B.getState(),g.JSC$17663_channel_.connect(r,E,g.defaultQueryParams_,B.sid_,B.JSC$17615_lastArrayId_)):w?g.JSC$17663_channel_.connect(r,E,g.defaultQueryParams_,w.sessionId,w.arrayId):g.JSC$17663_channel_.connect(r,E,g.defaultQueryParams_)};
jX.prototype.disconnect=function(g){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.lq())}finally{this.disconnectUi_=g||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),wa6(this),this.JSC$17663_channel_&&(this.JSC$17663_channel_.getState()==3&&nvt(this.JSC$17663_channel_),this.JSC$17663_channel_.disconnect()),this.disconnectUi_=0}};
jX.prototype.sendMessage=function(g,r){var E=this,B;return _.q(function(w){switch(w.nextAddress){case 1:_.DD(w,2);if(!E.useAsyncBrowserChannelHandler_){w.jumpTo(2);break}return _.D(w,E.connectPromise_,2);case 2:_.uY(w);if(E.JSC$17663_disposed_)return w.return();B={_sc:g};r&&_.jn.extend(B,r);if(E.reconnectTimer_.isActive()||(E.JSC$17663_channel_?E.JSC$17663_channel_.getState():0)==2){E.JSC$17663_pendingMessages_.push(B);w.jumpTo(6);break}if(!E.isChannelOpened()){w.jumpTo(6);break}_.DD(w,8);if(!E.useAsyncBrowserChannelHandler_||
OnD(E,g)){w.jumpTo(8);break}return _.D(w,EQz(E),8);case 8:_.uY(w,0,0,1);E.isChannelOpened()&&(OnD(E,g)||SkD(E),wa6(E),RO4(E.JSC$17663_channel_,B));_.oF(w,6,1);break;case 6:_.oF(w,0)}})};
var OnD=function(g,r){return g.enableMdxAuthForConnectionOnly_?!0:g.disableMdxAuthForAdMessages_?Object.values(ZYA).includes(r):g.disableMdxAuthForNonPlaybackMessages_?!Object.values(y9D).includes(r):g.disableMdxAuthForShortsMessages_?Object.values(vTF).includes(r):!1};
jX.prototype.JSC$17622_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17663_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)UJM(this);else{var g=this.JSC$17663_pendingMessages_;this.JSC$17663_pendingMessages_=[];var r=g.length;SkD(this);MpA(this,g,r);qkg(this)}else qkg(this)};
var UJM=function(g){var r,E;_.q(function(B){if(B.nextAddress==1)return _.DD(B,2),_.D(B,EQz(g),2);_.uY(B);r=g.JSC$17663_pendingMessages_;g.JSC$17663_pendingMessages_=[];E=r.length;MpA(g,r,E);qkg(g);return _.oF(B,0)})},MpA=function(g,r,E){for(var B=0;B<E;++B)RO4(g.JSC$17663_channel_,r[B]);
qkg(g)},qkg=function(g){g.publish("handlerOpened");
g.JSC$17663_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.S=jX.prototype;_.S.JSC$17622_channelError=function(g){var r=g==2&&this.JSC$17663_channel_.JSC$17615_lastStatusCode_==401;g==4||r||this.reconnectTimer_.start();this.publish("handlerError",g,r);r=Object.keys(ovD).find(function(E){return ovD[E]===g});
this.JSC$17663_channelErrorCounter.increment("BROWSER_CHANNEL",r!=null?r:"UNKNOWN")};
_.S.JSC$17622_channelClosed=function(g,r){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(r)for(var E=r.length,B=0;B<E;++B){var w=r[B].map;w&&this.JSC$17663_pendingMessages_.push(w)}this.JSC$17663_channelClosedCounter.increment("BROWSER_CHANNEL");g&&this.pendingMapsOnClosedCounter.JSC$8023_streamzService.JSC$7876_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",g.length);r&&this.undeliveredMapsOnClosedCounter.JSC$8026_streamzService.JSC$7876_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
r.length)};
_.S.JSC$17622_channelSuccess=function(g,r){r!=null&&g!=null&&this.channelMessageSentCounter.increment()};
_.S.JSC$17622_getAdditionalParams=function(){var g={v:2};this.sCookie_&&(g.gsessionid=this.sCookie_);this.connectUi_!=0&&(g.ui=""+this.connectUi_);this.disconnectUi_!=0&&(g.ui=""+this.disconnectUi_);this.connectionParams_&&_.jn.extend(g,this.connectionParams_);return g};
_.S.JSC$17622_channelHandleArray=function(g){g[0]=="S"?this.sCookie_=g[1]:g[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17663_channel_.disconnect()):this.publish("handlerMessage",new r6M(g[0],g[1]));this.JSC$17663_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.S.isChannelOpened=function(){return!!this.JSC$17663_channel_&&this.JSC$17663_channel_.getState()==3};
var wa6=function(g){if(g.JSC$17663_channel_){var r=g.JSC$17663_getXsrfToken_(),E=g.JSC$17663_channel_.JSC$17615_extraHeaders_||{};r?E["x-youtube-lounge-xsrf-token"]=r:delete E["x-youtube-lounge-xsrf-token"];g.JSC$17663_channel_.JSC$17615_extraHeaders_=E}},EQz=function(g){if(g.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.lq();
if(!g.enableCachedUpdateAuthorizationHeader_)return uLt(g);g.updateAuthorizationHeaderPromise_===null&&(g.updateAuthorizationHeaderPromise_=uLt(g));return g.updateAuthorizationHeaderPromise_},uLt=function(g){return _.Y$(g.getAuthorizationHeader_().then(function(r){liF(g,r)}).thenCatch(function(){}),function(){g.updateAuthorizationHeaderPromise_=null})},liF=function(g,r){if(g.JSC$17663_channel_){var E=g.JSC$17663_channel_.JSC$17615_extraHeaders_||{};
r&&Object.keys(r).length>0?E=Object.assign({},E,r):delete E.Authorization;g.JSC$17663_channel_.JSC$17615_extraHeaders_=E}},SkD=function(g){g.getAuthorizationHeaderSync_&&!g.useAsyncBrowserChannelHandler_&&liF(g,g.getAuthorizationHeaderSync_())};
_.S=jX.prototype;_.S.setLoungeToken=function(g){(this.defaultQueryParams_.loungeIdToken=g)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17663_channel_){var r=this.JSC$17663_channel_.JSC$17615_extraHeaders_||{};g?r["X-YouTube-LoungeId-Token"]=g:delete r["X-YouTube-LoungeId-Token"];this.JSC$17663_channel_.JSC$17615_extraHeaders_=r}};
_.S.getDeviceId=function(){return this.defaultQueryParams_.id};
_.S.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.S.reconnect=function(){var g=this.reconnectTimer_;g.delay_.fire();g.start()};
_.S.safeReconnect_=function(){var g=this.JSC$17663_channel_,r=0;g.JSC$17615_backChannelRequest_&&r++;g.forwardChannelRequest_&&r++;r==0&&this.connect(this.connectionParams_,this.connectUi_)};var eX=function(g,r){var E=g.basePath;g.supportCors&&(E=g.scheme+"://"+g.domain+g.port+g.basePath);return _.Vg(E+r,{})};
Ab.prototype.sendRequest=function(g,r,E,B,w,O,M){g={format:O?"RAW":"JSON",method:g,context:this,timeout:5E3,withCredentials:!!M,onSuccess:_.Hk(this.JSC$17668_onSuccess_,B,!O),onError:_.Hk(this.onError_,w),onTimeout:_.Hk(this.JSC$17668_onTimeout_,w)};E&&(g.postParams=E,g.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.Dx(r,g)};
Ab.prototype.JSC$17668_onSuccess_=function(g,r,E,B){r?g(B):g({text:E.responseText})};
Ab.prototype.onError_=function(g,r){g(Error("Hk`"+r.status))};
Ab.prototype.JSC$17668_onTimeout_=function(g){g(Error("Ik"))};var Jb=function(g,r){return!!r&&(g.id==r||g.uuid==r)},DJM=function(g){return{name:g.name,
screenId:g.id,loungeToken:g.token,dialId:g.uuid,screenIdType:g.idType}},oQt=function(g){return new bx(g)},Gm5=function(g){return Array.isArray(g)?_.bO(g,oQt):[]},iuL=function(g){if(!g)return"null";
var r=g.token?".."+g.token.slice(-6):"-",E=g.uuid?".."+g.uuid.slice(-6):"-";return'{name:"'+g.name+'",id:'+g.id.substr(0,6)+"..,token:"+(r+",uuid:"+E+",idType:"+g.idType+"}")},pk$=function(g){return Array.isArray(g)?"["+_.bO(g,iuL).join(",")+"]":"null"};var TUv="",Fq=null;var MhA=function(g,r){_.ze.call(this);var E=this;this.handler=g();this.handler.subscribe("handlerOpened",this.JSC$17675_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(B,w){E.onError(w)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=r};
_.f(MhA,_.ze);_.S=MhA.prototype;_.S.connect=function(g,r,E){this.handler.connect(g,r,E)};
_.S.disconnect=function(g){this.handler.disconnect(g)};
_.S.reconnect=function(){this.handler.reconnect()};
_.S.getDeviceId=function(){return this.handler.getDeviceId()};
_.S.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.S.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.S.JSC$17675_onOpened=function(){this.dispatchEvent("channelOpened");var g=this.handler,r=this.currentScreenId;_.S2("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!g.JSC$17663_channel_.useChunked_,sessionId:g.JSC$17663_channel_.sid_,arrayId:g.JSC$17663_channel_.JSC$17615_lastArrayId_});_.S2("yt-remote-session-screen-id",r);g=VG$();r=h6m();_.mA(g,r)||g.push(r);dum(g);vyz()};
_.S.onClosed=function(){this.dispatchEvent("channelClosed")};
_.S.onMessage=function(g){this.dispatchEvent(new iYF(g))};
_.S.onError=function(g){this.dispatchEvent(new L56(g?1:0))};
_.S.sendMessage=function(g,r){this.handler.sendMessage(g,r)};
_.S.setLoungeToken=function(g){this.handler.setLoungeToken(g)};
_.S.dispose=function(){this.handler.dispose()};var U2M=function(g,r,E){var B=this;E=E===void 0?function(){return""}:E;
var w=w===void 0?new XU6:w;var O=O===void 0?new _.GZ:O;this.pathPrefix=g;this.defaultQueryParams=r;this.getXsrfToken=E;this.JSC$17678_pubsub=O;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new CGL(function(){var M;((M=B.channel)==null?void 0:zMt((new mPt(M,M.JSC$17586_channel_)).JSC$17596_channel_.forwardChannelRequestPool_))===0&&B.connect(B.connectionParams,B.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17678_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17678_channelOpenedCounter=new Kxv;this.JSC$17678_channelClosedCounter=new xuM;this.JSC$17678_channelMessageReceivedCounter=new XEL;this.JSC$17678_channelErrorCounter=new NUv};
U2M.prototype.connect=function(g,r){g=g===void 0?{}:g;r=r===void 0?0:r;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=g,this.connectUi=r,QH$(this),(g=_.Ca("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=g: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 FD(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,ztm(this))};
var ztm=function(g){_.j_(g.channel,"w",function(){g.channelState=3;g.reconnectTimer.reset();g.connectionParams=null;g.connectUi=0;for(var r=_.U(g.nonAckedMessagesOnChannelClosed),E=r.next();!E.done;E=r.next())E=E.value,g.channel&&g.channel.send(E);g.nonAckedMessagesOnChannelClosed=[];g.publish("webChannelOpened");g.JSC$17678_channelOpenedCounter.increment("WEB_CHANNEL")});
_.j_(g.channel,"x",function(){g.channelState=0;g.reconnectTimer.isActive()||g.publish("webChannelClosed");var r,E=(r=g.channel)==null?void 0:c2v(new mPt(r,r.JSC$17586_channel_));E&&(g.nonAckedMessagesOnChannelClosed=[].concat(_.jW(E)));g.JSC$17678_channelClosedCounter.increment("WEB_CHANNEL")});
_.j_(g.channel,"z",function(r){var E=r.data;E[0]==="gracefulReconnect"?(g.reconnectTimer.start(),g.channel&&g.channel.close()):g.publish("webChannelMessage",new r6M(E[0],E[1]));g.lastStatusCode=r.statusCode;g.JSC$17678_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.j_(g.channel,"y",function(){g.lastStatusCode===401||g.reconnectTimer.start();g.publish("webChannelError");g.JSC$17678_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.S=U2M.prototype;_.S.disconnect=function(g){this.disconnectUi=g===void 0?0:g;this.reconnectTimer.stop();QH$(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.S.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.S.reconnect=function(){var g=this.reconnectTimer;g.delay_.fire();g.start()};
_.S.sendMessage=function(g,r){this.channel&&(QH$(this),g=Object.assign({},{_sc:g},r),this.channel.send(g))};
_.S.setLoungeToken=function(g){g||this.reconnectTimer.stop();g?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=g:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var QH$=function(g){var r=g.getXsrfToken();r?g.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=r:delete g.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.S=U2M.prototype;_.S.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.S.publish=function(g){return this.JSC$17678_pubsub.publish.apply(this.JSC$17678_pubsub,[g].concat(_.jW(_.fI.apply(1,arguments))))};
_.S.subscribe=function(g,r,E){return this.JSC$17678_pubsub.subscribe(g,r,E)};
_.S.unsubscribe=function(g,r,E){return this.JSC$17678_pubsub.unsubscribe(g,r,E)};
_.S.unsubscribeByKey=function(g){return this.JSC$17678_pubsub.unsubscribeByKey(g)};
_.S.dispose=function(){this.JSC$17678_disposed||(this.JSC$17678_disposed=!0,_.TM(this.JSC$17678_pubsub),this.disconnect(),_.TM(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.S.isDisposed=function(){return this.JSC$17678_disposed};var Oug=function(g){_.ze.call(this);this.webChannelService=g();this.webChannelService.subscribe("webChannelOpened",this.JSC$17686_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.f(Oug,_.ze);_.S=Oug.prototype;_.S.connect=function(g,r){this.webChannelService.connect(g,r)};
_.S.disconnect=function(g){this.webChannelService.disconnect(g)};
_.S.reconnect=function(){this.webChannelService.reconnect()};
_.S.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.S.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.S.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.S.JSC$17686_onOpened=function(){this.dispatchEvent("channelOpened")};
_.S.onClosed=function(){this.dispatchEvent("channelClosed")};
_.S.onMessage=function(g){this.dispatchEvent(new iYF(g))};
_.S.onError=function(){this.dispatchEvent(new L56(this.webChannelService.lastStatusCode===401?1:0))};
_.S.sendMessage=function(g,r){this.webChannelService.sendMessage(g,r)};
_.S.setLoungeToken=function(g){this.webChannelService.setLoungeToken(g)};
_.S.dispose=function(){this.webChannelService.dispose()};var HuL=Date.now(),Wl=null,zwz=Array(50),xs=-1,kng=!1;_.rc(ag,_.ZF);ag.prototype.getScreens=function(){return this.screens};
ag.prototype.contains=function(g){return!!LxM(this.screens,g)};
ag.prototype.get=function(g){return g?Pl(this.screens,g):null};
var km5=function(g,r){var E=g.get(r.uuid)||g.get(r.id);if(E)return g=E.name,E.id=r.id||E.id,E.name=r.name,E.token=r.token,E.uuid=r.uuid||E.uuid,E.name!=g;g.screens.push(r);return!0},Hng=function(g,r){var E=g.screens.length!=r.length;
g.screens=_.BL(g.screens,function(O){return!!LxM(r,O)});
for(var B=r.length,w=0;w<B;w++)E=km5(g,r[w])||E;return E},paz=function(g,r){var E=g.screens.length;
g.screens=_.BL(g.screens,function(B){return!(B||r?!B!=!r?0:B.id==r.id:1)});
return g.screens.length<E};
ag.prototype.info=function(g){Cb(this.JSC$17687_logName_,g)};var Yk6=function(g,r,E,B,w){_.ZF.call(this);this.JSC$17690_http_=g;this.pairingCode_=r;this.deviceId_=E;this.friendlyName_=B;this.enableShortLivedLoungeToken_=w;this.pollIndex_=0;this.JSC$17690_xhr_=null;this.JSC$17690_timer_=NaN};
_.f(Yk6,_.ZF);_.S=Yk6.prototype;_.S.start=function(){!this.JSC$17690_xhr_&&isNaN(this.JSC$17690_timer_)&&this.poll_()};
_.S.stop=function(){this.JSC$17690_xhr_&&(this.JSC$17690_xhr_.abort(),this.JSC$17690_xhr_=null);isNaN(this.JSC$17690_timer_)||(_.uc(this.JSC$17690_timer_),this.JSC$17690_timer_=NaN)};
_.S.disposeInternal=function(){this.stop();_.ZF.prototype.disposeInternal.call(this)};
_.S.poll_=function(){this.JSC$17690_timer_=NaN;this.JSC$17690_xhr_=_.Dx(eX(this.JSC$17690_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.$r)(this.JSC$17692_onSuccess_,this),onError:(0,_.$r)(this.onError_,this),onTimeout:(0,_.$r)(this.JSC$17692_onTimeout_,this)})};
_.S.JSC$17692_onSuccess_=function(g,r){this.JSC$17690_xhr_=null;g=r.screen||{};g.dialId=this.deviceId_;g.name=this.friendlyName_;r=-1;this.enableShortLivedLoungeToken_&&g.shortLivedLoungeToken&&g.shortLivedLoungeToken.value&&g.shortLivedLoungeToken.refreshIntervalMs&&(g.screenIdType="shortLived",g.loungeToken=g.shortLivedLoungeToken.value,r=g.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new bx(g),r)};
_.S.onError_=function(g){this.JSC$17690_xhr_=null;g.status&&g.status==404?this.pollIndex_>=Rt$.length?this.publish("pairingFailed",Error("Jk")):(g=Rt$[this.pollIndex_],this.JSC$17690_timer_=_.Me((0,_.$r)(this.poll_,this),g),this.pollIndex_++):this.publish("pairingFailed",Error("Kk`"+g.status))};
_.S.JSC$17692_onTimeout_=function(){this.JSC$17690_xhr_=null;this.publish("pairingFailed",Error("Lk"))};
var Rt$=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.rc(NL,ag);_.S=NL.prototype;_.S.start=function(){Xq(this)&&this.publish("screenChange");!_.OC("yt-remote-lounge-token-expiration")&&nQM(this);_.uc(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.Me((0,_.$r)(this.start,this),1E4)};
_.S.add=function(g,r){Xq(this);km5(this,g);sH$(this,!1);this.publish("screenChange");r(g);g.token||nQM(this)};
_.S.remove=function(g,r){var E=Xq(this);paz(this,g)&&(sH$(this,!1),E=!0);r(g);E&&this.publish("screenChange")};
_.S.updateName=function(g,r,E,B){var w=Xq(this),O=this.get(g.id);O?(O.name!=r&&(O.name=r,sH$(this,!1),w=!0),E(g)):B(Error("Mk"));w&&this.publish("screenChange")};
_.S.disposeInternal=function(){_.uc(this.loungeTokenRefreshTimer_);NL.superClass_.disposeInternal.call(this)};
var nQM=function(g){if(g.screens.length){var r=_.bO(g.screens,function(B){return B.id}),E=eX(g.JSC$17694_http_,"/pairing/get_lounge_token_batch");
g.JSC$17694_http_.sendRequest("POST",E,{screen_ids:r.join(",")},(0,_.$r)(g.handleLoungeTokens_,g),(0,_.$r)(g.handleLoungeTokenError_,g))}};
NL.prototype.handleLoungeTokens_=function(g){Xq(this);var r=this.screens.length;g=g&&g.screens||[];for(var E=g.length,B=0;B<E;++B){var w=g[B],O=this.get(w.screenId);O&&(O.token=w.loungeToken,--r)}sH$(this,!r);r&&Cb(this.JSC$17687_logName_,"Missed "+r+" lounge tokens.")};
NL.prototype.handleLoungeTokenError_=function(g){Cb(this.JSC$17687_logName_,"Requesting lounge tokens failed: "+g)};
var Xq=function(g){if(_.Y("deprecate_pair_servlet_enabled"))return Hng(g,[]);var r=Gm5(rgv());r=_.BL(r,function(E){return!E.uuid});
return Hng(g,r)},sH$=function(g,r){BXD(_.bO(g.screens,DJM));
r&&EgL()};var LJ=function(g,r){_.ZF.call(this);this.getScreensToCheck_=r;r=(r=_.OC("yt-remote-online-screen-ids")||"")?r.split(","):[];for(var E={},B=this.getScreensToCheck_(),w=B.length,O=0;O<w;++O){var M=B[O].id;E[M]=_.mA(r,M)}this.screenIdSet_=E;this.JSC$17697_http_=g;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;fim("Initialized with "+(0,_.sG)(this.screenIdSet_))};
_.f(LJ,_.ZF);LJ.prototype.isOnline=function(g){return!!this.screenIdSet_[g]};
LJ.prototype.start=function(){var g=parseInt(_.OC("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.dx()-144E5<g?0:g)?$J8(this):(this.fastCheckEndTime_=_.dx()+3E5,_.S2("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
LJ.prototype.isEmpty=function(){return _.jn.isEmpty(this.screenIdSet_)};
LJ.prototype.update=function(){fim("Updating availability on schedule.");var g=this.getScreensToCheck_(),r=_.jn.filter(this.screenIdSet_,function(E,B){return E&&!!Pl(g,B)},this);
jH8(this,r)};
var A65=function(g,r,E){var B=eX(g.JSC$17697_http_,"/pairing/get_screen_availability");g.JSC$17697_http_.sendRequest("POST",B,{lounge_token:r.token},(0,_.$r)(function(w){w=w.screens||[];for(var O=w.length,M=0;M<O;++M)if(w[M].loungeToken==r.token){E(w[M].status=="online");return}E(!1)},g),(0,_.$r)(function(){E(!1)},g))};
LJ.prototype.disposeInternal=function(){_.uc(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.ZF.prototype.disposeInternal.call(this)};
var jH8=function(g,r){a:if(_.jn.getCount(r)!=_.jn.getCount(g.screenIdSet_))var E=!1;else{E=_.jn.getKeys(r);for(var B=E.length,w=0;w<B;++w)if(!g.screenIdSet_[E[w]]){E=!1;break a}E=!0}E||(fim("Updated online screens: "+(0,_.sG)(g.screenIdSet_)),g.screenIdSet_=r,g.publish("screenChange"));bnt(g)},$J8=function(g){isNaN(g.refreshTimer_)||_.uc(g.refreshTimer_);
g.refreshTimer_=_.Me((0,_.$r)(g.requestScreenAvailability_,g),g.fastCheckEndTime_>0&&g.fastCheckEndTime_<_.dx()?2E4:1E4)};
LJ.prototype.requestScreenAvailability_=function(){_.uc(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var g=J6g(this);if(_.jn.getCount(g)){var r=eX(this.JSC$17697_http_,"/pairing/get_screen_availability"),E={lounge_token:_.jn.getKeys(g).join(",")};this.currentRequest_=this.JSC$17697_http_.sendRequest("POST",r,E,(0,_.$r)(this.onScreenAvailability_,this,g),(0,_.$r)(this.onScreenAvailabilityError_,this))}else jH8(this,{}),$J8(this)};
LJ.prototype.onScreenAvailability_=function(g,r){this.currentRequest_=null;var E=_.jn.getKeys(J6g(this));if(_.SU(E,_.jn.getKeys(g))){r=r.screens||[];E={};for(var B=r.length,w=0;w<B;++w)E[g[r[w].loungeToken]]=r[w].status=="online";jH8(this,E);$J8(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
LJ.prototype.onScreenAvailabilityError_=function(g){this.warn_("Screen availability failed: "+g);this.currentRequest_=null;$J8(this)};
var fim=function(g){Cb("OnlineScreenService",g)};
LJ.prototype.warn_=function(g){Cb("OnlineScreenService",g)};
var J6g=function(g){var r={};_.mR(g.getScreensToCheck_(),function(E){E.token?r[E.token]=E.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return r},bnt=function(g){g=_.jn.getKeys(_.jn.filter(g.screenIdSet_,function(r){return r}));
g.sort(_.wA);g.length?_.S2("yt-remote-online-screen-ids",g.join(","),60):_.UC("yt-remote-online-screen-ids")};_.rc(Ig,ag);_.S=Ig.prototype;_.S.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.S.add=function(g,r,E){this.localScreenService_.add(g,r,E)};
_.S.remove=function(g,r,E){this.localScreenService_.remove(g,r,E);this.onlineScreenService_.update()};
_.S.updateName=function(g,r,E,B){this.localScreenService_.contains(g)?this.localScreenService_.updateName(g,r,E,B):(g="Updating name of unknown screen: "+g.name,Cb(this.JSC$17687_logName_,g),B(Error(g)))};
_.S.getScreens=function(g){return g?this.screens:D_M(this.screens,_.BL(this.automaticScreens_,function(r){return!this.contains(r)},this))};
_.S.JSC$17702_getOnlineScreens=function(){return _.BL(this.getScreens(!0),function(g){return this.onlineScreenService_.isOnline(g.id)},this)};
var tpL=function(g,r,E,B,w,O){g.info("getAutomaticScreenByIds "+E+" / "+r);E||(E=g.deviceToScreenId_[r]);var M=g.getScreens(),u=E?Pl(M,E):null;E&&(g.disableAutomaticScreenCache_||u)||(u=Pl(M,r));if(u){u.uuid=r;var l=VZ(g,u);A65(g.onlineScreenService_,l,function(Q){w(Q?l:null)})}else E?PTm(g,E,(0,_.$r)(function(Q){var z=VZ(this,new bx({name:B,
screenId:E,loungeToken:Q,dialId:r||""}));A65(this.onlineScreenService_,z,function(k){w(k?z:null)})},g),O):w(null)};
Ig.prototype.JSC$17702_getScreenByPollingPairingCode=function(g,r,E,B,w,O){var M=this;this.info("getDialScreenByPairingCode "+g+" / "+r);var u=new Yk6(this.JSC$17700_http_,g,r,E,B);u.subscribe("pairingComplete",function(l,Q){_.TM(u);w(VZ(M,l),Q)});
u.subscribe("pairingFailed",function(l){_.TM(u);O(l)});
u.start();return(0,_.$r)(u.stop,u)};
var FYA=function(g,r){for(var E=g.screens.length,B=0;B<E;++B)if(g.screens[B].name==r)return g.screens[B];return null};
Ig.prototype.JSC$17702_getScreenByPairingCode=function(g,r,E,B){_.Dx(eX(this.JSC$17700_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:g},timeout:5E3,onSuccess:(0,_.$r)(function(w,O){w=new bx(O.screen||{});if(!w.name||FYA(this,w.name)){a:{O=w.name;for(var M=2,u=r(O,M);FYA(this,u);){M++;if(M>20)break a;u=r(O,M)}O=u}w.name=O}E(VZ(this,w))},this),
onError:(0,_.$r)(function(w){B(Error("Nk`"+w.status))},this),
onTimeout:(0,_.$r)(function(){B(Error("Ok"))},this)})};
var ett=function(g,r,E){A65(g.onlineScreenService_,r,E)};
Ig.prototype.disposeInternal=function(){_.TM(this.localScreenService_);_.TM(this.onlineScreenService_);Ig.superClass_.disposeInternal.call(this)};
var PTm=function(g,r,E,B){g.info("requestLoungeToken_ for "+r);var w={postParams:{screen_ids:r},method:"POST",context:g,onSuccess:function(O,M){O=M&&M.screens||[];O[0]&&O[0].screenId==r?E(O[0].loungeToken):B(Error("Pk"))},
onError:function(){B(Error("Qk"))}};
_.Dx(eX(g.JSC$17700_http_,"/pairing/get_lounge_token_batch"),w)},WY$=function(g){g.screens=g.localScreenService_.getScreens();
for(var r=_.jn.transpose(g.deviceToScreenId_),E=g.screens.length,B=0;B<E;++B){var w=g.screens[B];w.uuid=r[w.id]||""}g.info("Updated manual screens: "+pk$(g.screens))};
Ig.prototype.handleScreenChange_=function(){WY$(this);this.publish("screenChange");this.onlineScreenService_.update()};
var YSL=function(g){CTM(g);g.localScreenService_=new NL(g.JSC$17700_http_);g.localScreenService_.subscribe("screenChange",(0,_.$r)(g.handleScreenChange_,g));WY$(g);g.disableAutomaticScreenCache_||(g.automaticScreens_=Gm5(_.OC("yt-remote-automatic-screen-cache")||[]));CTM(g);g.info("Initializing automatic screens: "+pk$(g.automaticScreens_));g.onlineScreenService_=new LJ(g.JSC$17700_http_,(0,_.$r)(g.getScreens,g,!0));g.onlineScreenService_.subscribe("screenChange",(0,_.$r)(function(){this.publish("onlineScreenChange")},
g))},VZ=function(g,r){var E=g.get(r.id);
E?(E.uuid=r.uuid,r=E):((E=Pl(g.automaticScreens_,r.uuid))?(E.id=r.id,E.token=r.token,r=E):g.automaticScreens_.push(r),g.disableAutomaticScreenCache_||KYm(g));CTM(g);g.deviceToScreenId_[r.uuid]=r.id;_.S2("yt-remote-device-id-map",g.deviceToScreenId_,31536E3);return r},KYm=function(g){g=_.BL(g.automaticScreens_,function(r){return r.idType!="shortLived"});
_.S2("yt-remote-automatic-screen-cache",_.bO(g,DJM))},CTM=function(g){g.deviceToScreenId_=_.OC("yt-remote-device-id-map")||{}};
Ig.prototype.dispose=Ig.prototype.dispose;_.rc(mV,_.ZF);var hr=function(g,r){g.screen_=r;g.publish("sessionScreen",g.screen_)},xJL=function(g,r){g.screen_&&(g.screen_.token=r,VZ(g.JSC$17704_screenService_,g.screen_));
g.publish("sessionScreen",g.screen_)};
mV.prototype.onSessionStopped=function(g){this.isDisposed()||(g&&(ZO(this,""+g),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
mV.prototype.info=function(g){Cb(this.JSC$17704_logName_,g)};
var ZO=function(g,r){Cb(g.JSC$17704_logName_,r)};
mV.prototype.JSC$17706_getCastSession=function(){return null};
mV.prototype.setDisplayStatus=function(g){var r=this.receiver_;g?(r.displayStatus=new chrome.cast.ReceiverDisplayStatus(g,[]),r.displayStatus.showStop=!0):r.displayStatus=null;chrome.cast.setReceiverDisplayStatus(r,(0,_.$r)(function(){this.info("Updated receiver status for "+r.friendlyName+": "+g)},this),(0,_.$r)(function(){ZO(this,"Failed to update receiver status for: "+r.friendlyName)},this))};
mV.prototype.disposeInternal=function(){this.setDisplayStatus("");mV.superClass_.disposeInternal.call(this)};var yZ=function(g,r,E){mV.call(this,g,r,"CastSession");var B=this;this.config_=E;this.JSC$17709_session_=null;this.JSC$17709_boundSessionUpdate_=(0,_.$r)(this.JSC$17711_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.$r)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.Me(function(){aiz(B,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17709_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17709_isInitLoungeToken_=!1;this.JSC$17709_lastLoungeTokenRefreshError_="unknown"};
_.f(yZ,mV);_.S=yZ.prototype;
_.S.setCastSession=function(g){if(this.JSC$17709_session_){if(this.JSC$17709_session_==g)return;ZO(this,"Overriding cast session with new session object");Xa6(this);this.JSC$17709_isInitLoungeToken_=!1;this.JSC$17709_lastLoungeTokenRefreshError_="unknown";this.JSC$17709_session_.removeUpdateListener(this.JSC$17709_boundSessionUpdate_);this.JSC$17709_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17709_session_=g;this.JSC$17709_session_.addUpdateListener(this.JSC$17709_boundSessionUpdate_);this.JSC$17709_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);NTD(this,"getMdxSessionStatus")};
_.S.launchWithParams=function(g){this.info("launchWithParams no-op for Cast: "+(0,_.sG)(g))};
_.S.stop=function(){if(this.JSC$17709_session_)this.JSC$17709_session_.stop((0,_.$r)(function(){this.onSessionStopped()},this),(0,_.$r)(function(){this.onSessionStopped(Error("Rk"))},this));
else this.onSessionStopped(Error("Sk"))};
_.S.setDisplayStatus=function(){};
_.S.disposeInternal=function(){this.info("disposeInternal");Xa6(this);this.JSC$17709_session_&&(this.JSC$17709_session_.removeUpdateListener(this.JSC$17709_boundSessionUpdate_),this.JSC$17709_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17709_session_=null;mV.prototype.disposeInternal.call(this)};
var mJL=function(g,r){_.uc(g.getLoungeTokenTimeoutKey_);g.getLoungeTokenTimeoutKey_=0;r==0?IiL(g):g.getLoungeTokenTimeoutKey_=_.Me(function(){IiL(g)},r)},IiL=function(g){NTD(g,"getLoungeToken");
_.uc(g.onLoungeTokenTimeoutKey_);g.onLoungeTokenTimeoutKey_=_.Me(function(){c6F(g,null)},3E4)},NTD=function(g,r){g.info("sendYoutubeMessage_: "+r+" "+(0,_.sG)(void 0));
var E={};E.type=r;g.JSC$17709_session_?g.JSC$17709_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",E,function(){},(0,_.$r)(function(){ZO(this,"Failed to send message: "+r+".")},g)):ZO(g,"Sending yt message without session: "+(0,_.sG)(E))};
yZ.prototype.onYoutubeMessage_=function(g,r){if(!this.isDisposed())if(r)if(r=(0,_.$y)(r),_.gA(r))switch(g=""+r.type,r=r.data||{},this.info("onYoutubeMessage_: "+g+" "+(0,_.sG)(r)),g){case "mdxSessionStatus":aiz(this,r);break;case "loungeToken":c6F(this,r);break;default:ZO(this,"Unknown youtube message: "+g)}else ZO(this,"Unable to parse message.");else ZO(this,"No data in message.")};
var inM=function(g,r){if(r)g.info("onConnectedScreenId_: Received screenId: "+r),g.screen_&&g.screen_.id==r||g.getScreen_(r,function(E){hr(g,E)},function(){return g.onSessionStopped()},5);
else g.onSessionStopped(Error("Tk"))},VpA=function(g,r,E){g.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(r));
var B=new bx(r);LYt(g,B,function(w){w?(g.JSC$17709_isInitLoungeToken_=!0,VZ(g.JSC$17704_screenService_,B),hr(g,B),g.JSC$17709_lastLoungeTokenRefreshError_="unknown",mJL(g,E)):(_.xF(Error("Uk`"+JSON.stringify(r))),g.onSessionStopped())},5)},aiz=function(g,r){_.uc(g.sessionStatusTimeoutKey_);
g.sessionStatusTimeoutKey_=0;if(r)g.config_.enableCastLoungeToken&&r.loungeToken?r.deviceId?g.screen_&&g.screen_.uuid==r.deviceId||(r.loungeTokenRefreshIntervalMs?VpA(g,{name:g.receiver_.friendlyName,screenId:r.screenId,loungeToken:r.loungeToken,dialId:r.deviceId,screenIdType:"shortLived"},r.loungeTokenRefreshIntervalMs):(_.xF(Error("Wk`"+JSON.stringify(r))),inM(g,r.screenId))):(_.xF(Error("Vk`"+JSON.stringify(r))),inM(g,r.screenId)):inM(g,r.screenId);else g.onSessionStopped(Error("Tk"))},c6F=function(g,
r){_.uc(g.onLoungeTokenTimeoutKey_);
g.onLoungeTokenTimeoutKey_=0;var E=null;if(r)if(r.loungeToken){var B;((B=g.screen_)==null?void 0:B.token)==r.loungeToken&&(E="staleLoungeToken")}else E="missingLoungeToken";else E="noLoungeTokenResponse";E?(g.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(r)+", error: "+E)),g.JSC$17709_lastLoungeTokenRefreshError_=E,mJL(g,3E4)):(xJL(g,r.loungeToken),g.JSC$17709_isInitLoungeToken_=!1,g.JSC$17709_lastLoungeTokenRefreshError_="unknown",mJL(g,r.loungeTokenRefreshIntervalMs))};
yZ.prototype.getScreen_=function(g,r,E,B){_.uc(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;tpL(this.JSC$17704_screenService_,this.receiver_.label,g,this.receiver_.friendlyName,(0,_.$r)(function(w){w?r(w):B>=0?(ZO(this,"Screen "+g+" appears to be offline. "+B+" retries left."),this.getScreenTimeoutKey_=_.Me((0,_.$r)(this.getScreen_,this,g,r,E,B-1),300)):E(Error("Xk"))},this),E)};
var LYt=function(g,r,E,B){_.uc(g.JSC$17709_checkScreenAvailabilityTimeoutKey_);g.JSC$17709_checkScreenAvailabilityTimeoutKey_=0;ett(g.JSC$17704_screenService_,r,function(w){w||B<0?E(w):g.JSC$17709_checkScreenAvailabilityTimeoutKey_=_.Me(function(){LYt(g,r,E,B-1)},300)})};
yZ.prototype.JSC$17706_getCastSession=function(){return this.JSC$17709_session_};
yZ.prototype.JSC$17711_onSessionUpdate_=function(g){this.isDisposed()||g||(ZO(this,"Cast session died."),this.onSessionStopped())};
var Xa6=function(g){_.uc(g.getScreenTimeoutKey_);g.getScreenTimeoutKey_=0;_.uc(g.JSC$17709_checkScreenAvailabilityTimeoutKey_);g.JSC$17709_checkScreenAvailabilityTimeoutKey_=0;_.uc(g.sessionStatusTimeoutKey_);g.sessionStatusTimeoutKey_=0;_.uc(g.onLoungeTokenTimeoutKey_);g.onLoungeTokenTimeoutKey_=0;_.uc(g.getLoungeTokenTimeoutKey_);g.getLoungeTokenTimeoutKey_=0};var v9=function(g,r,E,B){mV.call(this,g,r,"DialSession");this.config_=B;this.JSC$17713_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17713_theme_=E;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17713_deferredLaunchDeadlineTimer_=NaN;this.JSC$17713_boundSessionUpdate_=(0,_.$r)(this.JSC$17715_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17713_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17713_isInitLoungeToken_=!1;this.JSC$17713_lastLoungeTokenRefreshError_="unknown"};
_.f(v9,mV);v9.prototype.setCastSession=function(g){this.JSC$17713_session_=g;this.JSC$17713_session_.addUpdateListener(this.JSC$17713_boundSessionUpdate_)};
v9.prototype.launchWithParams=function(g){this.connectData_=g;this.deferredLaunch_()};
v9.prototype.stop=function(){ht8(this);if(this.JSC$17713_session_)this.JSC$17713_session_.stop((0,_.$r)(this.onSessionStopped,this,null),(0,_.$r)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
v9.prototype.disposeInternal=function(){ht8(this);this.JSC$17713_session_&&this.JSC$17713_session_.removeUpdateListener(this.JSC$17713_boundSessionUpdate_);this.JSC$17713_session_=null;mV.prototype.disposeInternal.call(this)};
var ZnM=function(g){var r;return!!(g.config_.enableDialLoungeToken&&((r=g.JSC$17713_session_)==null?0:r.getDialAppInfo))},y6F=function(g){g.cancelPolling_=g.JSC$17704_screenService_.JSC$17702_getScreenByPollingPairingCode(g.reversePairingCode_,g.receiver_.label,g.receiver_.friendlyName,ZnM(g),function(r,E){g.cancelPolling_=function(){};
g.JSC$17713_isInitLoungeToken_=!0;hr(g,r);r.idType=="shortLived"&&E>0&&Td(g,E)},function(r){g.cancelPolling_=function(){};
g.onSessionStopped(r)})};
v9.prototype.JSC$17715_onSessionUpdate_=function(g){this.isDisposed()||g||(ZO(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var vQA=function(g){var r={};r.pairingCode=g.reversePairingCode_;r.theme=g.JSC$17713_theme_;SS$()&&(r.env_useStageMdx=1);return _.oj(r)},dJv=function(g){return new Promise(function(r){g.reversePairingCode_=cFF();
if(g.connectData_){var E=new chrome.cast.DialLaunchResponse(!0,vQA(g));r(E);y6F(g)}else g.deferredLaunch_=function(){_.uc(g.JSC$17713_deferredLaunchDeadlineTimer_);g.deferredLaunch_=function(){};
g.JSC$17713_deferredLaunchDeadlineTimer_=NaN;var B=new chrome.cast.DialLaunchResponse(!0,vQA(g));r(B);y6F(g)},g.JSC$17713_deferredLaunchDeadlineTimer_=_.Me(function(){g.deferredLaunch_()},100)})},gl$=function(g,r,E){g.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(r));
var B=new bx(r);return(new Promise(function(w){TTg(g,B,function(O){O?(g.JSC$17713_isInitLoungeToken_=!0,VZ(g.JSC$17704_screenService_,B),hr(g,B),Td(g,E)):_.xF(Error("Zk`"+JSON.stringify(r)));w(O)},5)})).then(function(w){return w?new chrome.cast.DialLaunchResponse(!1):dJv(g)})},rmz=function(g,r){var E=g.launchData_.receiver.label,B=g.receiver_.friendlyName;
return(new Promise(function(w){tpL(g.JSC$17704_screenService_,E,r,B,function(O){O&&O.token&&hr(g,O);w(O)},function(O){ZO(g,"Failed to get DIAL screen: "+O);
w(null)})})).then(function(w){return w&&w.token?new chrome.cast.DialLaunchResponse(!1):dJv(g)})},TTg=function(g,r,E,B){_.uc(g.JSC$17713_checkScreenAvailabilityTimeoutKey_);
g.JSC$17713_checkScreenAvailabilityTimeoutKey_=0;ett(g.JSC$17704_screenService_,r,function(w){w||B<0?E(w):g.JSC$17713_checkScreenAvailabilityTimeoutKey_=_.Me(function(){TTg(g,r,E,B-1)},300)})},Td=function(g,r){g.info("getDialAppInfoWithTimeout_ "+r);
ZnM(g)&&(_.uc(g.getDialAppInfoTimeoutKey_),g.getDialAppInfoTimeoutKey_=0,r==0?El8(g):g.getDialAppInfoTimeoutKey_=_.Me(function(){El8(g)},r))},El8=function(g){ZnM(g)&&g.JSC$17713_session_.getDialAppInfo(function(r){g.info("getDialAppInfo dialLaunchData: "+JSON.stringify(r));
r=r.extraData||{};var E=null;if(r.loungeToken){var B;((B=g.screen_)==null?void 0:B.token)==r.loungeToken&&(E="staleLoungeToken")}else E="missingLoungeToken";E?(g.JSC$17713_lastLoungeTokenRefreshError_=E,Td(g,3E4)):(g.JSC$17713_isInitLoungeToken_=!1,g.JSC$17713_lastLoungeTokenRefreshError_="unknown",xJL(g,r.loungeToken),Td(g,r.loungeTokenRefreshIntervalMs))},function(r){g.info("getDialAppInfo error: "+r);
g.JSC$17713_lastLoungeTokenRefreshError_="noLoungeTokenResponse";Td(g,3E4)})},ht8=function(g){_.uc(g.JSC$17713_checkScreenAvailabilityTimeoutKey_);
g.JSC$17713_checkScreenAvailabilityTimeoutKey_=0;_.uc(g.getDialAppInfoTimeoutKey_);g.getDialAppInfoTimeoutKey_=0;g.cancelPolling_();g.cancelPolling_=function(){};
_.uc(g.JSC$17713_deferredLaunchDeadlineTimer_)};var ra=function(g,r){mV.call(this,g,r,"ManualSession");this.JSC$17717_deferredLaunchDeadlineTimer_=_.Me((0,_.$r)(this.launchWithParams,this,null),150)};
_.f(ra,mV);ra.prototype.stop=function(){this.onSessionStopped()};
ra.prototype.setCastSession=function(){};
ra.prototype.launchWithParams=function(){_.uc(this.JSC$17717_deferredLaunchDeadlineTimer_);this.JSC$17717_deferredLaunchDeadlineTimer_=NaN;var g=Pl(this.JSC$17704_screenService_.getScreens(),this.receiver_.label);if(g)hr(this,g);else this.onSessionStopped(Error("$k"))};
ra.prototype.disposeInternal=function(){_.uc(this.JSC$17717_deferredLaunchDeadlineTimer_);this.JSC$17717_deferredLaunchDeadlineTimer_=NaN;mV.prototype.disposeInternal.call(this)};var VS=function(g,r){_.ZF.call(this);this.config_=r;this.JSC$17720_screenService_=g;this.JSC$17720_appId_=r.appId||"233637DE";this.JSC$17720_theme_=r.theme||"cl";this.disableDial_=r.disableCastApi||!1;this.forceMirroring_=r.forceMirroring||!1;this.JSC$17720_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.$r)(this.onReceiverAction_,this)};
_.f(VS,_.ZF);
VS.prototype.init=function(g,r){chrome.cast.timeout.requestSession=3E4;var E=new chrome.cast.SessionRequest(this.JSC$17720_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.Y("desktop_enable_cast_connect")&&(E.androidReceiverCompatible=!0);this.disableDial_||(E.dialRequest=new chrome.cast.DialRequest("YouTube"));var B=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;g=g||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var w=(0,_.$r)(this.onReceiverUpdated_,
this);E=new chrome.cast.ApiConfig(E,(0,_.$r)(this.onSessionEstablished_,this),w,B,g);E.customDialLaunchCallback=(0,_.$r)(this.onDialLaunchRequested_,this);chrome.cast.initialize(E,(0,_.$r)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),ogt(),this.JSC$17720_screenService_.subscribe("onlineScreenChange",(0,_.$r)(this.JSC$17722_onScreenChange_,this)),this.customReceivers_=BVv(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.$r)(function(O){this.warn_("Failed to set initial custom receivers: "+(0,_.sG)(O))},this)),this.publish("yt-remote-cast2-availability-change",E4(this)),r(!0))},this),(0,_.$r)(function(O){this.warn_("Failed to initialize API: "+(0,_.sG)(O));
r(!1)},this))};
VS.prototype.setConnectedScreenStatus=function(g,r){B7("Setting connected screen ID: "+g+" -> "+r);if(this.JSC$17720_session_){var E=this.JSC$17720_session_.screen_;if(!g||E&&E.id!=g)B7("Unsetting old screen status: "+this.JSC$17720_session_.receiver_.friendlyName),wa(this,null)}if(g&&r){if(!this.JSC$17720_session_){g=Pl(this.JSC$17720_screenService_.getScreens(),g);if(!g){B7("setConnectedScreenStatus: Unknown screen.");return}if(g.idType=="shortLived"){B7("setConnectedScreenStatus: Screen with id type to be short lived.");
return}E=wP4(this,g);E||(B7("setConnectedScreenStatus: Connected receiver not custom..."),E=new chrome.cast.Receiver(g.uuid?g.uuid:g.id,g.name),E.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(E),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.$r)(function(B){this.warn_("Failed to set initial custom receivers: "+(0,_.sG)(B))},this)));
B7("setConnectedScreenStatus: new active receiver: "+E.friendlyName);wa(this,new ra(this.JSC$17720_screenService_,E),!0)}this.JSC$17720_session_.setDisplayStatus(r)}else B7("setConnectedScreenStatus: no screen.")};
var wP4=function(g,r){return r?_.aX(g.customReceivers_,function(E){return Jb(r,E.label)},g):null};
VS.prototype.setLaunchParams=function(g){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17720_session_?this.JSC$17720_session_.launchWithParams(g):this.warn_("Setting connection data without a session")};
VS.prototype.JSC$17722_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17720_session_?(this.JSC$17720_session_.stop(),wa(this,null)):B7("Stopping non-existing session")};
VS.prototype.requestSession=function(){chrome.cast.requestSession((0,_.$r)(this.onSessionEstablished_,this),(0,_.$r)(this.onSessionRequestFailed_,this))};
VS.prototype.disposeInternal=function(){this.JSC$17720_screenService_.unsubscribe("onlineScreenChange",(0,_.$r)(this.JSC$17722_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.ht(_.XS("yt.mdx.remote.debug.handlers_")||[],u4L);_.TM(this.JSC$17720_session_);_.ZF.prototype.disposeInternal.call(this)};
var B7=function(g){Cb("Controller",g)};
VS.prototype.warn_=function(g){Cb("Controller",g)};
var u4L=function(g){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(g)},E4=function(g){return g.hasCastReceiver_||!!g.customReceivers_.length||!!g.JSC$17720_session_},wa=function(g,r,E){r!=g.JSC$17720_session_&&(_.TM(g.JSC$17720_session_),(g.JSC$17720_session_=r)?(E?g.publish("yt-remote-cast2-receiver-resumed",r.receiver_):g.publish("yt-remote-cast2-receiver-selected",r.receiver_),r.subscribe("sessionScreen",(0,_.$r)(g.onSessionScreen_,g,r)),r.subscribe("sessionFailed",
function(){return SCv(g,r)}),r.screen_?g.publish("yt-remote-cast2-session-change",r.screen_):E&&g.JSC$17720_session_.launchWithParams(null)):g.publish("yt-remote-cast2-session-change",null))},SCv=function(g,r){g.JSC$17720_session_==r&&g.publish("yt-remote-cast2-session-failed")};
_.S=VS.prototype;_.S.onSessionScreen_=function(g,r){this.JSC$17720_session_==g&&(r||wa(this,null),this.publish("yt-remote-cast2-session-change",r))};
_.S.onReceiverAction_=function(g,r){if(!this.isDisposed())if(g)switch(g.friendlyName=chrome.cast.unescape(g.friendlyName),B7("onReceiverAction_ "+g.label+" / "+g.friendlyName+"-- "+r),r){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17720_session_)if(this.JSC$17720_session_.receiver_.label!=g.label)B7("onReceiverAction_: Stopping active receiver: "+this.JSC$17720_session_.receiver_.friendlyName),this.JSC$17720_session_.stop();else{B7("onReceiverAction_: Casting to active receiver.");this.JSC$17720_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17720_session_.screen_);break}switch(g.receiverType){case chrome.cast.ReceiverType.CUSTOM:wa(this,new ra(this.JSC$17720_screenService_,g));break;case chrome.cast.ReceiverType.DIAL:wa(this,new v9(this.JSC$17720_screenService_,g,this.JSC$17720_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:wa(this,new yZ(this.JSC$17720_screenService_,g,this.config_));break;default:this.warn_("Unknown receiver type: "+g.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17720_session_&&
this.JSC$17720_session_.receiver_.label==g.label?this.JSC$17720_session_.stop():this.warn_("Stopping receiver w/o session: "+g.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.S.onDialLaunchRequested_=function(g){if(this.isDisposed())return Promise.reject(Error("al"));var r=g.receiver;r.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+r.friendlyName),r.receiverType=chrome.cast.ReceiverType.DIAL);var E=this.JSC$17720_session_?this.JSC$17720_session_.receiver_:null;if(!E||E.label!=r.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+r.friendlyName),Promise.reject(Error("bl"));if(E&&E.label==r.label&&E.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17720_session_.screen_)return B7("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17720_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+E.receiverType+'" to "dial" for '+r.friendlyName);wa(this,new v9(this.JSC$17720_screenService_,r,this.JSC$17720_theme_,this.config_))}r=this.JSC$17720_session_;r.launchData_=g;r.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(g=r.launchData_.extraData||{},E=g.screenId||null,ZnM(r)&&g.loungeToken?g.loungeTokenRefreshIntervalMs?g=gl$(r,{name:r.receiver_.friendlyName,screenId:g.screenId,loungeToken:g.loungeToken,dialId:r.launchData_.receiver.label,screenIdType:"shortLived"},g.loungeTokenRefreshIntervalMs):(_.xF(Error("Yk`"+JSON.stringify(g))),g=rmz(r,E)):g=rmz(r,E)):g=dJv(r);return g};
_.S.onSessionEstablished_=function(g){var r=this;if(!this.isDisposed()&&!this.forceMirroring_){B7("New cast session ID: "+g.sessionId);var E=g.receiver;if(E.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17720_session_)if(E.receiverType==chrome.cast.ReceiverType.CAST)B7("Got resumed cast session before resumed mdx connection."),E.friendlyName=chrome.cast.unescape(E.friendlyName),wa(this,new yZ(this.JSC$17720_screenService_,E,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var B=this.JSC$17720_session_.receiver_,w=Pl(this.JSC$17720_screenService_.getScreens(),B.label);w&&Jb(w,E.label)&&B.receiverType!=chrome.cast.ReceiverType.CAST&&E.receiverType==chrome.cast.ReceiverType.CAST&&(B7("onSessionEstablished_: manual to cast session change "+E.friendlyName),_.TM(this.JSC$17720_session_),this.JSC$17720_session_=new yZ(this.JSC$17720_screenService_,E,this.config_),this.JSC$17720_session_.subscribe("sessionScreen",(0,_.$r)(this.onSessionScreen_,this,this.JSC$17720_session_)),
this.JSC$17720_session_.subscribe("sessionFailed",function(){return SCv(r,r.JSC$17720_session_)}),this.JSC$17720_session_.launchWithParams(null));
this.JSC$17720_session_.setCastSession(g)}}};
_.S.JSC$17722_getCastSession=function(){return this.JSC$17720_session_?this.JSC$17720_session_.JSC$17706_getCastSession():null};
_.S.onSessionRequestFailed_=function(g){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.sG)(g)),g.code!=chrome.cast.ErrorCode.CANCEL&&wa(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.S.onReceiverUpdated_=function(g){B7("Receiver availability updated: "+g);if(!this.isDisposed()){var r=E4(this);this.hasCastReceiver_=g==chrome.cast.ReceiverAvailability.AVAILABLE;E4(this)!=r&&this.publish("yt-remote-cast2-availability-change",E4(this))}};
var BVv=function(g){var r=g.JSC$17720_screenService_.JSC$17702_getOnlineScreens(),E=g.JSC$17720_session_&&g.JSC$17720_session_.receiver_;g=_.bO(r,function(B){E&&Jb(B,E.label)&&(E=null);var w=B.uuid?B.uuid:B.id,O=wP4(this,B);O?(O.label=w,O.friendlyName=B.name):(O=new chrome.cast.Receiver(w,B.name),O.receiverType=chrome.cast.ReceiverType.CUSTOM);return O},g);
E&&(E.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(E=new chrome.cast.Receiver(E.label,E.friendlyName),E.receiverType=chrome.cast.ReceiverType.CUSTOM),g.push(E));return g};
VS.prototype.JSC$17722_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=BVv(this),B7("Updating custom receivers: "+(0,_.sG)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.$r)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",E4(this)))};
VS.prototype.setLaunchParams=VS.prototype.setLaunchParams;VS.prototype.setConnectedScreenStatus=VS.prototype.setConnectedScreenStatus;VS.prototype.stopSession=VS.prototype.JSC$17722_stopSession;VS.prototype.getCastSession=VS.prototype.JSC$17722_getCastSession;VS.prototype.requestSession=VS.prototype.requestSession;VS.prototype.init=VS.prototype.init;VS.prototype.dispose=VS.prototype.dispose;var x2M=[];var OBz=function(g){g.audioTrackId=null;g.trackData=null;g.playerState=-1;g.hasPrevious=!1;g.hasNext=!1;g.playerTime_=0;g.playerTimeAt_=_.dx();g.seekableStart_=0;g.seekableEnd_=0;g.duration_=0;g.loadedTime=0;g.liveIngestionTime_=NaN;g.isLive_=!1};
_.S=hb.prototype;
_.S.reset=function(g){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;g&&(this.index=g.index,this.listId=g.listId,this.videoId=g.videoId,this.playerState=g.playerState,this.volume=g.volume,this.muted=g.muted,this.audioTrackId=g.audioTrackId,this.trackData=g.trackData,this.hasPrevious=g.hasPrevious,this.hasNext=g.hasNext,this.playerTime_=g.playerTime,this.playerTimeAt_=g.playerTimeAt,this.seekableStart_=g.seekableStart,this.seekableEnd_=g.seekableEnd,this.duration_=g.duration,this.loadedTime=
g.loadedTime,this.liveIngestionTime_=g.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.S.stopPlayer=function(){this.index=-1;this.videoId="";OBz(this)};
_.S.isPlaying=function(){return this.playerState==1};
_.S.isBuffering=function(){return this.playerState==3};
_.S.isAdPlaying=function(){return this.playerState==1081};
var SD=function(g,r){g.playerTime_=r;g.playerTimeAt_=_.dx()},U96=function(g){switch(g.playerState){case 1:case 1081:return(_.dx()-g.playerTimeAt_)/1E3+g.playerTime_;
case -1E3:return 0}return g.playerTime_};
hb.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.dx()-this.playerTimeAt_)/1E3:0):this.duration_};
var M26=function(g,r,E){var B=g.videoId;g.videoId=r;g.index=E;r!=B&&OBz(g)},qCg=function(g){var r={};
r.index=g.index;r.listId=g.listId;r.videoId=g.videoId;r.playerState=g.playerState;r.volume=g.volume;r.muted=g.muted;r.audioTrackId=g.audioTrackId;r.trackData=_.jn.unsafeClone(g.trackData);r.hasPrevious=g.hasPrevious;r.hasNext=g.hasNext;r.playerTime=g.playerTime_;r.playerTimeAt=g.playerTimeAt_;r.seekableStart=g.seekableStart_;r.seekableEnd=g.seekableEnd_;r.duration=g.duration_;r.loadedTime=g.loadedTime;r.liveIngestionTime=g.liveIngestionTime_;return r};
hb.prototype.clone=function(){return new hb(qCg(this))};var O4=function(g,r){_.ZF.call(this);var E=this;this.state_=0;this.connection_=g;this.contextSubscriptions_=[];this.actionQueue_=new Wx$;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.$r)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.$r)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.$r)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.$r)(this.onCloudviewAvailabilityChange_,this);var B=0;g?(B=g.getProxyState(),
B!=3&&(g.subscribe("proxyStateChange",this.setState_,this),uQ$(this))):B=3;B!=0&&(r?this.setState_(B):_.Me(function(){E.setState_(B)},0));
(g=I$M())&&llg(this,g);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.f(O4,_.ZF);O4.prototype.getState=function(){return this.state_};
O4.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
O4.prototype.reconnect=function(){this.connection_.reconnect()};
var U4=function(g){return new hb(g.connection_.getPlayerContextData())};
_.S=O4.prototype;_.S.play=function(){MA(this)?(this.castMedia_?this.castMedia_.play(null,_.oo,D9M(this,"play")):qA(this,"play"),olM(this,1,U96(U4(this))),this.publish("remotePlayerChange")):u0(this,this.play)};
_.S.pause=function(){MA(this)?(this.castMedia_?this.castMedia_.pause(null,_.oo,D9M(this,"pause")):qA(this,"pause"),olM(this,2,U96(U4(this))),this.publish("remotePlayerChange")):u0(this,this.pause)};
_.S.seekTo=function(g){if(MA(this)){if(this.castMedia_){var r=U4(this),E=new chrome.cast.media.SeekRequest;E.currentTime=g;r.isPlaying()||r.isBuffering()?E.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:E.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(E,_.oo,D9M(this,"seekTo",{newTime:g}))}else qA(this,"seekTo",{newTime:g});olM(this,3,g);this.publish("remotePlayerChange")}else u0(this,_.Hk(this.seekTo,g))};
_.S.stop=function(){if(MA(this)){this.castMedia_?this.castMedia_.stop(null,_.oo,D9M(this,"stopVideo")):qA(this,"stopVideo");var g=U4(this);g.stopPlayer();l0(this,g);this.publish("remotePlayerChange")}else u0(this,this.stop)};
_.S.setVolume=function(g,r){if(MA(this)){var E=U4(this);if(this.castSession_){if(E.volume!=g){var B=Math.round(g)/100;this.castSession_.setReceiverVolumeLevel(B,(0,_.$r)(function(){Kb("set receiver volume: "+B)},this),(0,_.$r)(function(){this.warn_("failed to set receiver volume.")},this))}E.muted!=r&&this.castSession_.setReceiverMuted(r,(0,_.$r)(function(){Kb("set receiver muted: "+r)},this),(0,_.$r)(function(){this.warn_("failed to set receiver muted.")},this))}else{var w={volume:g,
muted:r};E.volume!=-1&&(w.delta=g-E.volume);qA(this,"setVolume",w)}E.muted=r;E.volume=g;l0(this,E)}else u0(this,_.Hk(this.setVolume,g,r))};
_.S.setAudioTrack=function(g,r){MA(this)?(r=r.getLanguageInfo().getId(),qA(this,"setAudioTrack",{videoId:g,audioTrackId:r}),g=U4(this),g.audioTrackId=r,l0(this,g)):u0(this,_.Hk(this.setAudioTrack,g,r))};
_.S.addVideo=function(g){MA(this)?qA(this,"addVideo",{videoId:g}):u0(this,_.Hk(this.addVideo,g))};
_.S.addPlaylist=function(g){MA(this)?qA(this,"addVideos",{listId:g}):u0(this,_.Hk(this.addPlaylist,g))};
_.S.addVideos=function(g){g.length==0?this.warn_("Ignore add videos request due to empty list"):MA(this)?qA(this,"addVideos",{videoIds:g.join(",")}):u0(this,_.Hk(this.addVideos,g))};
_.S.JSC$17732_removeVideo=function(g){MA(this)?qA(this,"removeVideo",{videoId:g}):u0(this,_.Hk(this.JSC$17732_removeVideo,g))};
_.S.JSC$17732_insertVideo=function(g){MA(this)?qA(this,"insertVideo",{videoId:g}):u0(this,_.Hk(this.JSC$17732_insertVideo,g))};
_.S.playVideo=function(g,r,E,B,w,O,M){B=B===void 0?null:B;w=w===void 0?null:w;O=O===void 0?null:O;M=M===void 0?null:M;var u=U4(this),l={videoId:g};E!==void 0&&(l.currentIndex=E);M26(u,g,E||0);r!==void 0&&(SD(u,r),l.currentTime=r);B&&(l.listId=B);w&&(l.playerParams=w);O&&(l.clickTrackingParams=O);M&&(l.locationInfo=(0,_.sG)(M));qA(this,"setPlaylist",l);B||l0(this,u)};
_.S.nextVideo=function(g,r){if(MA(this)){if(g&&r){var E=U4(this);M26(E,g,r);l0(this,E)}qA(this,"next")}else u0(this,_.Hk(this.nextVideo,g,r))};
_.S.clearPlaylist=function(){if(MA(this)){qA(this,"clearPlaylist");var g=U4(this);g.reset();l0(this,g);this.publish("remotePlayerChange")}else u0(this,this.clearPlaylist)};
_.S.dispose=function(){if(this.state_!=3){var g=this.state_;this.state_=3;this.publish("proxyStateChange",g,this.state_)}_.ZF.prototype.dispose.call(this)};
_.S.disposeInternal=function(){GRA(this);this.connection_=null;this.actionQueue_.clear();llg(this,null);_.ZF.prototype.disposeInternal.call(this)};
var uQ$=function(g){_.mR("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(r){this.contextSubscriptions_.push(this.connection_.subscribe(r,_.Hk(this.onProxyEvent_,r),this))},g)},GRA=function(g){_.mR(g.contextSubscriptions_,function(r){this.connection_.unsubscribeByKey(r)},g);
g.contextSubscriptions_.length=0},MA=function(g){return g.getState()==1},u0=function(g,r){g.actionQueue_.getCount()<50&&g.actionQueue_.enqueue(r)},olM=function(g,r,E){var B=U4(g);
SD(B,E);B.playerState!=-1E3&&(B.playerState=r);l0(g,B)},qA=function(g,r,E){g.connection_.sendMessage(r,E)},l0=function(g,r){GRA(g);
g.connection_.setPlayerContextData(qCg(r));uQ$(g)};
O4.prototype.setState_=function(g){if((g!=this.state_||g==2)&&this.state_!=3&&g!=0){var r=this.state_;this.state_=g;this.publish("proxyStateChange",r,g);if(g==1)for(;!this.actionQueue_.isEmpty();)g=this.actionQueue_,JAM(g),g.front_.pop().apply(this);else g==3&&this.dispose()}};
O4.prototype.onProxyEvent_=function(g,r){this.publish(g,r)};
var llg=function(g,r){g.castSession_&&(g.castSession_.removeUpdateListener(g.boundCastStatusListener_),g.castSession_.removeMediaListener(g.boundCastMediaListener_),g.onCastMediaChange_(null));g.castSession_=r;if(g.castSession_&&(Kb("Setting cast session: "+g.castSession_.sessionId),g.castSession_.addUpdateListener(g.boundCastStatusListener_),g.castSession_.addMediaListener(g.boundCastMediaListener_),g.castSession_.media.length))g.onCastMediaChange_(g.castSession_.media[0])};
O4.prototype.onCastStatusUpdate_=function(g){if(!g)this.onCastMediaChange_(null),llg(this,null);else if(this.castSession_.receiver.volume){g=this.castSession_.receiver.volume;var r=U4(this),E=Math.round(100*g.level||0);if(r.volume!=E||r.muted!=g.muted)Kb("Cast volume update: "+g.level+(g.muted?" muted":"")),r.volume=E,r.muted=!!g.muted,l0(this,r)}};
O4.prototype.onCastMediaChange_=function(g){Kb("Cast media: "+!!g);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=g)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),Qf4(this),this.publish("remotePlayerChange")};
var Qf4=function(g){var r=g.castMedia_.media,E=g.castMedia_.customData;if(r&&E){var B=U4(g);r.contentId!=B.videoId&&Kb("Cast changing video to: "+r.contentId);B.videoId=r.contentId;B.playerState=E.playerState;SD(B,g.castMedia_.getEstimatedTime());l0(g,B)}else Kb("No cast media video. Ignoring state update.")};
O4.prototype.onCastMediaUpdate_=function(g){if(g)Qf4(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
O4.prototype.onCloudviewAvailabilityChange_=function(){var g=I$M();g&&llg(this,g)};
O4.prototype.warn_=function(g){Cb("CP",g)};
var D9M=function(g,r,E){return(0,_.$r)(function(B){this.warn_("Failed to "+r+" with cast v2 channel. Error code: "+B.code);B.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+r+" using MDx browser channel."),qA(this,r,E))},g)};var zN=function(g,r,E,B){B=B===void 0?!1:B;_.ZF.call(this);var w=this;this.connectTimerId_=NaN;this.reconnecting_=!1;this.idleDisconnectTimerId_=this.clientSetVideoTimerId_=this.playingSyncTimerId_=this.reconnectedCheckScreenTimeout_=NaN;this.listeners_=[];this.autoplayMode_=this.autoplayVideoId_=this.clientVideoId_=this.playerContext_=this.channelService=null;this.JSC$17739_http_=g;this.enableConnectWithInitialState_=B;this.listeners_.push(_.Tj(window,"beforeunload",function(){w.JSC$17742_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new hb;this.currentScreenId_=r.id;this.currentScreenIdType_=r.idType;this.channelService=qSM(this.JSC$17739_http_,E,this.JSC$17742_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){zGF(w)});
this.channelService.listen("channelClosed",function(){D3("Channel closed");isNaN(w.connectTimerId_)?tb(!0):tb();w.dispose()});
this.channelService.listen("channelError",function(O){tb();isNaN(w.getReconnectTimeout_())?(O==1&&w.currentScreenIdType_=="shortLived"&&w.publish("browserChannelAuthError",O),D3("Channel error: "+O+" without reconnection"),w.dispose()):(w.reconnecting_=!0,D3("Channel error: "+O+" with reconnection in "+w.getReconnectTimeout_()+" ms"),kR6(w,2))});
this.channelService.listen("channelMessage",function(O){HBM(w,O)});
this.channelService.setLoungeToken(r.token);this.subscribe("remoteQueueChange",function(){var O=w.playerContext_.videoId;ZM5()&&_.S2("yt-remote-session-video-id",O)})};
_.f(zN,_.ZF);
zN.prototype.connect=function(g,r){if(r){var E=r.listId,B=r.videoId,w=r.videoIds,O=r.playerParams,M=r.clickTrackingParams,u=r.index,l={videoId:B},Q=r.currentTime,z=r.locationInfo;r=r.loopMode;Q!==void 0&&(l.currentTime=Q<=5?0:Q);O&&(l.playerParams=O);z&&(l.locationInfo=z);M&&(l.clickTrackingParams=M);E&&(l.listId=E);w&&w.length>0&&(l.videoIds=w.join(","));u!==void 0&&(l.currentIndex=u);this.enableConnectWithInitialState_&&(l.loopMode=r||"LOOP_MODE_OFF");E&&(this.playerContext_.listId=E);this.playerContext_.videoId=
B;this.playerContext_.index=u||0;this.playerContext_.state=3;SD(this.playerContext_,Q);this.autoplayMode_="UNSUPPORTED";E=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";D3("Connecting with "+E+" and params: "+(0,_.sG)(l));this.channelService.connect({method:E,params:(0,_.sG)(l)},g,gg4())}else D3("Connecting without params"),this.channelService.connect({},g,gg4());pP5(this)};
zN.prototype.setLoungeToken=function(g){this.channelService.setLoungeToken(g)};
zN.prototype.dispose=function(){this.isDisposed()||(_.vN("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),kR6(this,3));_.ZF.prototype.dispose.call(this)};
zN.prototype.disposeInternal=function(){YCM(this);RGv(this);nl4(this);_.uc(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.uc(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.m8L(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.ZF.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var sft=function(g){return _.aX(g.connectedDevices_,function(r){return r.type=="LOUNGE_SCREEN"})},D3=function(g){Cb("conn",g)},kR6=function(g,r){g.publish("proxyStateChange",r)},pP5=function(g){g.connectTimerId_=_.Me(function(){D3("Connecting timeout");
g.JSC$17742_disconnect_(1)},2E4)},YCM=function(g){_.uc(g.connectTimerId_);
g.connectTimerId_=NaN},nl4=function(g){_.uc(g.reconnectedCheckScreenTimeout_);
g.reconnectedCheckScreenTimeout_=NaN},fl5=function(g){RGv(g);
g.playingSyncTimerId_=_.Me(function(){kX(g,"getNowPlaying")},2E4)},RGv=function(g){_.uc(g.playingSyncTimerId_);
g.playingSyncTimerId_=NaN},zGF=function(g){D3("Channel opened");
g.reconnecting_&&(g.reconnecting_=!1,nl4(g),g.reconnectedCheckScreenTimeout_=_.Me(function(){D3("Timing out waiting for a screen.");g.JSC$17742_disconnect_(1)},15E3))},jfM=function(g,r){var E=null;
if(r){var B=sft(g);B&&(E={clientName:B.clientName,deviceMake:B.brand,deviceModel:B.model,osVersion:B.osVersion})}_.vN("yt.mdx.remote.remoteClient_",E);r&&(YCM(g),nl4(g));E=g.channelService.isChannelOpened()&&isNaN(g.connectTimerId_);r==E?r&&(kR6(g,1),kX(g,"getSubtitlesTrack")):r?(g.getOtherConnectedRemoteId_()&&g.playerContext_.reset(),kR6(g,1),kX(g,"getNowPlaying"),$95(g)):g.JSC$17742_disconnect_(1)},AmD=function(g,r){var E=r.params.videoId;
delete r.params.videoId;E==g.playerContext_.videoId&&(_.jn.isEmpty(r.params)?g.playerContext_.trackData=null:g.playerContext_.trackData=r.params,g.publish("remotePlayerChange"))},bBm=function(g,r,E){var B=r.params.videoId||r.params.video_id,w=parseInt(r.params.currentIndex,10);
g.playerContext_.listId=r.params.listId||g.playerContext_.listId;M26(g.playerContext_,B,w);g.publish("remoteQueueChange",E)},Jmm=function(g,r){r.params=r.params||{};
bBm(g,r,"NOW_PLAYING_MAY_CHANGE");g.onStateChange_(r);g.publish("autoplayDismissed")};
zN.prototype.onStateChange_=function(g){var r=parseInt(g.params.currentTime||g.params.current_time,10);SD(this.playerContext_,isNaN(r)?0:r);r=parseInt(g.params.state,10);r=isNaN(r)?-1:r;r==-1&&this.playerContext_.playerState==-1E3&&(r=-1E3);this.playerContext_.playerState=r;r=Number(g.params.loadedTime);this.playerContext_.loadedTime=isNaN(r)?0:r;r=Number(g.params.duration);this.playerContext_.duration_=isNaN(r)?0:r;r=this.playerContext_;var E=Number(g.params.liveIngestionTime);r.liveIngestionTime_=
E;r.isLive_=isNaN(E)?!1:!0;r=this.playerContext_;E=Number(g.params.seekableStartTime);g=Number(g.params.seekableEndTime);r.seekableStart_=isNaN(E)?0:E;r.seekableEnd_=isNaN(g)?0:g;this.playerContext_.playerState==1?fl5(this):RGv(this);this.publish("remotePlayerChange")};
zN.prototype.onAdStateChange_=function(g){if(this.playerContext_.playerState!=-1E3){var r=1085;switch(parseInt(g.params.adState,10)){case 1:r=1081;break;case 2:r=1084;break;case 0:r=1083}this.playerContext_.playerState=r;g=parseInt(g.params.currentTime,10);SD(this.playerContext_,isNaN(g)?0:g);this.publish("remotePlayerChange")}};
var PNv=function(g,r){var E=r.params.muted=="true";g.playerContext_.volume=parseInt(r.params.volume,10);g.playerContext_.muted=E;g.publish("remotePlayerChange")},t2$=function(g,r){g.autoplayVideoId_=r.params.videoId;
g.publish("nowAutoplaying",parseInt(r.params.timeout,10))},Ft$=function(g,r){g.autoplayVideoId_=r.params.videoId||null;
g.publish("autoplayUpNext",g.autoplayVideoId_)},eGm=function(g,r){g.autoplayMode_=r.params.autoplayMode;
g.publish("autoplayModeChange",g.autoplayMode_);g.autoplayMode_=="DISABLED"&&g.publish("autoplayDismissed")},Wtg=function(g,r){var E=r.params.hasNext=="true";
g.playerContext_.hasPrevious=r.params.hasPrevious=="true";g.playerContext_.hasNext=E;g.publish("previousNextChange")};
zN.prototype.isCapabilitySupportedOnConnectedDevices_=function(g){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var r=_.U(this.connectedDevices_),E=r.next();!E.done;E=r.next())if(!E.value.capabilities.has(g))return!1;return!0};
var HBM=function(g,r){r=r.message;r.params?D3("Received: action="+r.action+", params="+(0,_.sG)(r.params)):D3("Received: action="+r.action+" {}");switch(r.action){case "loungeStatus":r=(0,_.$y)(r.params.devices);g.connectedDevices_=_.bO(r,function(B){return new ib(B)});
r=!!_.aX(g.connectedDevices_,function(B){return B.type=="LOUNGE_SCREEN"});
jfM(g,r);r=g.isCapabilitySupportedOnConnectedDevices_("mlm");g.publish("multiStateLoopEnabled",r);break;case "loungeScreenDisconnected":lH$(g.connectedDevices_,function(B){return B.type=="LOUNGE_SCREEN"});
jfM(g,!1);break;case "remoteConnected":var E=new ib((0,_.$y)(r.params.device));_.aX(g.connectedDevices_,function(B){return B.equals(E)})||_.LL(g.connectedDevices_,E);
break;case "remoteDisconnected":E=new ib((0,_.$y)(r.params.device));lH$(g.connectedDevices_,function(B){return B.equals(E)});
break;case "gracefulDisconnect":break;case "playlistModified":bBm(g,r,"QUEUE_MODIFIED");break;case "nowPlaying":Jmm(g,r);break;case "onStateChange":g.onStateChange_(r);break;case "onAdStateChange":g.onAdStateChange_(r);break;case "onVolumeChanged":PNv(g,r);break;case "onSubtitlesTrackChanged":AmD(g,r);break;case "nowAutoplaying":t2$(g,r);break;case "autoplayDismissed":g.publish("autoplayDismissed");break;case "autoplayUpNext":Ft$(g,r);break;case "onAutoplayModeChanged":eGm(g,r);break;case "onHasPreviousNextChanged":Wtg(g,
r);break;case "requestAssistedSignIn":g.publish("assistedSignInRequested",r.params.authCode);break;case "onLoopModeChanged":g.publish("loopModeChange",r.params.loopMode);break;default:D3("Unrecognized action: "+r.action)}};
_.S=zN.prototype;_.S.getProxyState_=function(){var g=3;this.isDisposed()||(g=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(g=1):g=2);return g};
_.S.JSC$17742_disconnect_=function(g){D3("Disconnecting with "+g);_.vN("yt.mdx.remote.remoteClient_",null);YCM(this);this.publish("beforeDisconnect",g);g==1&&tb();this.channelService.disconnect(g);this.dispose()};
_.S.getPlayerContextData_=function(){var g=this.playerContext_;this.clientVideoId_&&(g=this.playerContext_.clone(),M26(g,this.clientVideoId_,g.index));return qCg(g)};
_.S.setPlayerContextData_=function(g){var r=this,E=new hb(g);E.videoId&&E.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=E.videoId,_.uc(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.Me(function(){if(r.clientVideoId_){var w=r.clientVideoId_;r.clientVideoId_=null;r.playerContext_.videoId!=w&&kX(r,"getNowPlaying")}},5E3));
var B=[];this.playerContext_.listId==E.listId&&this.playerContext_.videoId==E.videoId&&this.playerContext_.index==E.index||B.push("remoteQueueChange");this.playerContext_.playerState==E.playerState&&this.playerContext_.volume==E.volume&&this.playerContext_.muted==E.muted&&U96(this.playerContext_)==U96(E)&&(0,_.sG)(this.playerContext_.trackData)==(0,_.sG)(E.trackData)||B.push("remotePlayerChange");this.playerContext_.reset(g);_.mR(B,function(w){this.publish(w)},this)};
_.S.getOtherConnectedRemoteId_=function(){var g=this.channelService.getDeviceId(),r=_.aX(this.connectedDevices_,function(E){return E.type=="REMOTE_CONTROL"&&E.id!=g});
return r?r.id:""};
_.S.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.S.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.S.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.S.JSC$17742_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var $95=function(g){_.uc(g.idleDisconnectTimerId_);g.idleDisconnectTimerId_=_.Me(function(){g.JSC$17742_disconnect_(1)},864E5)},kX=function(g,r,E){E?D3("Sending: action="+r+", params="+(0,_.sG)(E)):D3("Sending: action="+r);
g.channelService.sendMessage(r,E)};
zN.prototype.sendMessageWithUserAction_=function(g,r){kX(this,g,r);$95(this)};
zN.prototype.JSC$17742_getXsrfToken_=function(){var g=_.zZ.get("SAPISID","")||_.zZ.get("__Secure-1PAPISID",void 0)||"",r=_.zZ.get("__Secure-3PAPISID","")||"";if(!g&&!r)return"";g=_.gk(_.sR(g),2);r=_.gk(_.sR(r),2);return _.gk(_.sR(","+g+","+r),2)};
zN.prototype.subscribe=zN.prototype.subscribe;zN.prototype.unsubscribeByKey=zN.prototype.unsubscribeByKey;zN.prototype.getProxyState=zN.prototype.getProxyState_;zN.prototype.disconnect=zN.prototype.JSC$17742_disconnect_;zN.prototype.getPlayerContextData=zN.prototype.getPlayerContextData_;zN.prototype.setPlayerContextData=zN.prototype.setPlayerContextData_;zN.prototype.getOtherConnectedRemoteId=zN.prototype.getOtherConnectedRemoteId_;zN.prototype.getReconnectTimeout=zN.prototype.getReconnectTimeout_;
zN.prototype.getAutoplayMode=zN.prototype.getAutoplayMode_;zN.prototype.getAutoplayVideoId=zN.prototype.getAutoplayVideoId_;zN.prototype.reconnect=zN.prototype.JSC$17742_reconnect_;zN.prototype.sendMessage=zN.prototype.sendMessageWithUserAction_;zN.prototype.getXsrfToken=zN.prototype.JSC$17742_getXsrfToken_;zN.prototype.isCapabilitySupportedOnConnectedDevices=zN.prototype.isCapabilitySupportedOnConnectedDevices_;var CNm=function(g){ag.call(this,"ScreenServiceProxy");this.instance_=g;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.$r)(this.JSC$17745_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.$r)(this.onOnlineScreenChange_,this)))};
_.f(CNm,ag);_.S=CNm.prototype;_.S.getScreens=function(g){return this.instance_.$_gs(g)};
_.S.contains=function(g){return!!this.instance_.$_c(g)};
_.S.get=function(g){return this.instance_.$_g(g)};
_.S.start=function(){this.instance_.$_st()};
_.S.add=function(g,r,E){this.instance_.$_a(g,r,E)};
_.S.remove=function(g,r,E){this.instance_.$_r(g,r,E)};
_.S.updateName=function(g,r,E,B){this.instance_.$_un(g,r,E,B)};
_.S.disposeInternal=function(){for(var g=this.subscriptionKeys_.length,r=0;r<g;++r)this.instance_.$_ubk(this.subscriptionKeys_[r]);this.subscriptionKeys_.length=0;this.instance_=null;ag.prototype.disposeInternal.call(this)};
_.S.JSC$17745_onScreenChange_=function(){this.publish("screenChange")};
_.S.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
Ig.prototype.$_st=Ig.prototype.start;Ig.prototype.$_gspc=Ig.prototype.JSC$17702_getScreenByPairingCode;Ig.prototype.$_gsppc=Ig.prototype.JSC$17702_getScreenByPollingPairingCode;Ig.prototype.$_c=Ig.prototype.contains;Ig.prototype.$_g=Ig.prototype.get;Ig.prototype.$_a=Ig.prototype.add;Ig.prototype.$_un=Ig.prototype.updateName;Ig.prototype.$_r=Ig.prototype.remove;Ig.prototype.$_gs=Ig.prototype.getScreens;Ig.prototype.$_gos=Ig.prototype.JSC$17702_getOnlineScreens;Ig.prototype.$_s=Ig.prototype.subscribe;
Ig.prototype.$_ubk=Ig.prototype.unsubscribeByKey;var m9m=function(g){wkD();if(!Fq||!Fq.get("yt-remote-disable-remote-module-for-dev")){g=_.Ca("MDX_CONFIG")||g;Yg5();vyz();H7||(H7=new Ab(g?g.loungeApiHost:void 0),SS$()&&(H7.basePath="/api/loungedev"));p1||(p1=_.XS("yt.mdx.remote.deferredProxies_")||[],_.vN("yt.mdx.remote.deferredProxies_",p1));Ktm();var r=YX();if(!r){var E=new Ig(H7,g?g.disableAutomaticScreenCache||!1:!1);_.vN("yt.mdx.remote.screenService_",E);r=YX();var B={};g&&(B={appId:g.appId,disableDial:g.disableDial,theme:g.theme,loadCastApiSetupScript:g.loadCastApiSetupScript,
disableCastApi:g.disableCastApi,enableDialLoungeToken:g.enableDialLoungeToken,enableCastLoungeToken:g.enableCastLoungeToken,forceMirroring:g.forceMirroring});_.vN("yt.mdx.remote.enableConnectWithInitialState_",g?g.enableConnectWithInitialState||!1:!1);Cq$(E,function(O){O?R7()&&cg$(R7(),"YouTube TV"):E.subscribe("onlineScreenChange",function(){rP("yt-remote-receiver-availability-change")})},B)}if(g&&!_.XS("yt.mdx.remote.initialized_")){_.vN("yt.mdx.remote.initialized_",!0);
n1("Initializing: "+(0,_.sG)(g));s4.push(_.Oq("yt-remote-cast2-api-ready",function(){rP("yt-remote-api-ready")}));
s4.push(_.Oq("yt-remote-cast2-availability-change",function(){rP("yt-remote-receiver-availability-change")}));
s4.push(_.Oq("yt-remote-cast2-receiver-selected",function(){x95();rP("yt-remote-auto-connect","cast-selector-receiver")}));
s4.push(_.Oq("yt-remote-cast2-receiver-resumed",function(){rP("yt-remote-receiver-resumed","cast-selector-receiver")}));
s4.push(_.Oq("yt-remote-cast2-session-change",alm));s4.push(_.Oq("yt-remote-connection-change",function(O){O?cg$(R7(),"YouTube TV"):XP8()||(cg$(null,null),NX$())}));
s4.push(_.Oq("yt-remote-cast2-session-failed",function(){rP("yt-remote-connection-failed")}));
B=NV4();g.isAuto&&(B.id+="#dial");var w=g.capabilities||[];w.length>0&&(B.capabilities=w);B.name=g.device;B.app=g.app;(g=g.theme)&&(B.theme=g);n1(" -- with channel params: "+(0,_.sG)(B));B?(_.S2("yt-remote-session-app",B.app),_.S2("yt-remote-session-name",B.name)):(_.UC("yt-remote-session-app"),_.UC("yt-remote-session-name"));_.vN("yt.mdx.remote.channelParams_",B);r.start();R7()||Il5()}}},iB6=function(){var g=YX().instance_.$_gos();
var r=cmL();r&&f1()&&(LxM(g,r)||g.push(r));return iMm(g)},LtM=function(){var g=iB6(),r=cmL();
r||(r=XP8());return _.aX(g,function(E){return r&&Jb(r,E.key)?!0:!1})},cmL=function(){var g=R7();
if(!g)return null;var r=YX().getScreens();return Pl(r,g)},alm=function(g){n1("remote.onCastSessionChange_: "+iuL(g));
if(g){var r=cmL();r&&r.id==g.id?(cg$(r.id,"YouTube TV"),g.idType=="shortLived"&&(g=g.token)&&(r=f1())&&r.setLoungeToken(g)):(r&&V2m(),hGM(g,1))}else f1()&&V2m()},V2m=function(){m2M()?Lb().stopSession():ix("stopSession called before API ready.");
var g=f1();g&&(g.disconnect(1),ZB5(null))},ymM=function(){var g=f1();
return g&&g.getProxyState()!=3?new O4(f1(),void 0):null},n1=function(g){Cb("remote",g)},YX=function(){if(!vlg){var g=_.XS("yt.mdx.remote.screenService_");
vlg=g?new CNm(g):null}return vlg},R7=function(){return _.XS("yt.mdx.remote.currentScreenId_")},d9D=function(g){_.vN("yt.mdx.remote.currentScreenId_",g)},x95=function(){_.vN("yt.mdx.remote.connectData_",null)},f1=function(){return _.XS("yt.mdx.remote.connection_")},ZB5=function(g){var r=f1();
x95();g||d9D("");_.vN("yt.mdx.remote.connection_",g);p1&&(_.mR(p1,function(E){E(g)}),p1.length=0);
r&&!g?rP("yt-remote-connection-change",!1):!r&&g&&rP("yt-remote-connection-change",!0)},XP8=function(){var g=ZM5();
if(!g)return null;var r=YX();if(!r)return null;r=r.getScreens();return Pl(r,g)},hGM=function(g,r){d9D(g.id);
g=new zN(H7,g,NV4(),_.XS("yt.mdx.remote.enableConnectWithInitialState_")||!1);g.connect(r,_.XS("yt.mdx.remote.connectData_"));g.subscribe("beforeDisconnect",function(E){rP("yt-remote-before-disconnect",E)});
g.subscribe("beforeDispose",function(){f1()&&ZB5(null)});
g.subscribe("browserChannelAuthError",function(){var E=cmL();E&&E.idType=="shortLived"&&(m2M()?Lb().handleBrowserChannelAuthError():ix("refreshLoungeToken called before API ready."))});
ZB5(g)},Il5=function(){var g=XP8();
g?(n1("Resume connection to: "+iuL(g)),hGM(g,0)):(tb(),NX$(),n1("Skipping connecting because no session screen found."))},H7=null,p1=null,vlg=null,Ktm=function(){var g=NV4();
if(_.jn.isEmpty(g)){g=h6m();var r=_.OC("yt-remote-session-name")||"",E=_.OC("yt-remote-session-app")||"";g={device:"REMOTE_CONTROL",id:g,name:r,app:E,mdxVersion:3};g.authuser=String(_.Ca("SESSION_INDEX","0"));(r=_.Ca("DELEGATED_SESSION_ID"))&&(g.pageId=String(r));_.vN("yt.mdx.remote.channelParams_",g)}},NV4=function(){return _.XS("yt.mdx.remote.channelParams_")||{}},s4=[];var TV$=new _.xR("yt-menu"),g8v=function(){},E8L=function(g,r,E){g=r=="right-click"?E.rightClickMenuPopupHint:E.menuPopupHint;
if(!(r0t(r)>10))return r=r||"default",TV$.set(r+"-impression",r0t(r)+1),g},r0t=function(g){return parseInt(TV$.get((g||"default")+"-impression")||0,10)};
_.vv(g8v);var BNL=function(){this.contexts_=new WeakMap;this.JSC$17751_networkService_=this.activeContext_=null},wYF=function(g,r,E){var B=g.contexts_.get(r);
B||(B=new Hm6(g.JSC$17751_networkService_),g.contexts_.set(r,B));g.activeContext_=B;E&&g.activeContext_.reset();g.activeContext_.start();return g.activeContext_};var $X=function(){};
$X.prototype.enqueue=function(){var g=this,r;return _.q(function(E){if(g.isCounterfactual())return(r=g.getCounterfactualData())&&g.shouldLogCounterfactualImpression()&&g.sendImpressionEndpoints(r),E.return();g.doEnqueue();_.Q3(E)})};
$X.prototype.sendImpressionEndpoints=function(g){_.mH.getInstance().triggerOptionalAction("yt-service-request",{},g[0])};var jD=function(g,r){this.renderer=g;this.page=r};
_.f(jD,$X);jD.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
jD.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
jD.prototype.shouldLogCounterfactualImpression=function(){return!0};
jD.prototype.doEnqueue=function(){var g=_.dt(this.page);g&&g.pause();this.renderer.impressionCommand&&_.mH.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.Ah(_.mH.getInstance(),[this.renderer.promoCommand],this.page)};var S5t=function(g,r){this.renderer=g;this.resolver=_.iW();this.JSC$17763_enforcementCounter=new _.VWn;r?this.JSC$17763_playerManager=_.dt(r):this.JSC$17763_playerManager=null;_.GF(1,!0)};
_.f(S5t,$X);_.S=S5t.prototype;_.S.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var g=[];this.renderer.impressionEndpoints.forEach(function(r){(r=_.xP(r))&&g.push(r)});
return g}};
_.S.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.S.shouldLogCounterfactualImpression=function(){var g=_.IMc();g?(this.JSC$17763_enforcementCounter.increment("POPUP"),_.GF(3)):_.GF(2);return g};
_.S.cancel=function(){this.resolver.promise.cancel()};
_.S.doEnqueue=function(){var g=this;_.IMc()?(this.JSC$17763_enforcementCounter.increment("POPUP"),_.GF(3),OoA(this)):this.JSC$17763_playerManager?(this.resolver.promise.then(function(){OoA(g)}),UVA(this.resolver,this.JSC$17763_playerManager)):_.GF(2)};
var UVA=function(g,r){var E=_.iW();r.getPlayerPromise().then(function(B){E.resolve(B)});
E.promise.then(function(B){B.addEventListener("onAbnormalityDetected",g.resolve);_.Y$(g.promise,function(){B.removeEventListener("onAbnormalityDetected",g.resolve)})});
g.promise.thenCatch(function(){E.promise.cancel()})},OoA=function(g){_.GF(3);
var r={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:g.renderer}};r=_.mH.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:r},{});Promise.all(r).then(function(){Mt4();g.JSC$17763_playerManager&&g.JSC$17763_playerManager.pause()})},Mt4=function(){ypL(function(g,r){_.Z38(g,r);
g===0?_.GF(7):_.GF(4)})};var q54=function(g,r){this.renderer=g;this.page=r;this.resolver=_.iW()};
_.f(q54,$X);_.S=q54.prototype;_.S.cancel=function(){this.resolver.promise.cancel()};
_.S.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.S.isCounterfactual=function(){return!this.renderer.isVisible};
_.S.shouldLogCounterfactualImpression=function(){return!0};
_.S.doEnqueue=function(){var g=this;this.resolver.promise.then(function(){var E={popup:{mealbarPromoRenderer:g.renderer},popupType:"MEALBAR"};_.mH.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:E},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var r=_.dt(this.page);r&&uoF(this.resolver,r)}break;default:this.resolver.resolve()}};
var uoF=function(g,r){var E=_.iW();r.getPlayerPromise().then(function(B){E.resolve(B)});
E.promise.then(function(B){B.addEventListener("onAdEnd",g.resolve);_.Y$(g.promise,function(){B.removeEventListener("onAdEnd",g.resolve)})});
g.promise.thenCatch(function(){E.promise.cancel()})};var lWD=function(g,r){this.renderer=g;this.page=r};
_.f(lWD,$X);_.S=lWD.prototype;_.S.cancel=function(){this.JSC$17771_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17771_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17771_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.S.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.S.isCounterfactual=function(){return!this.renderer.isVisible};
_.S.shouldLogCounterfactualImpression=function(){return!0};
_.S.doEnqueue=function(){var g=this,r,E;((r=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(E=r.playbackUpsellDialogTriggerConditionData)==null?void 0:E.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17771_downloadedVideosCountSelectorUnsubscriber=_.Gm(_.Zz(),i9m,function(B,w){B>w&&(DVM(g),g.cancel())}):DVM(this)};
var DVM=function(g){var r={popup:{upsellDialogRenderer:g.renderer},popupType:"MODAL"};_.mH.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:r},{});(g=_.dt(g.page))&&g.pause()};var Ac={},o8m=(Ac.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",Ac.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",Ac.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",Ac.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",Ac.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",Ac.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",Ac.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",Ac),GpL=function(g,r){this.renderer=g;this.targetManager=
r};
_.f(GpL,$X);_.S=GpL.prototype;_.S.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17778_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17778_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17778_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.S.getCounterfactualData=function(){if(this.isCounterfactual()){var g;return(g=this.renderer.promoConfig)==null?void 0:g.impressionEndpoints}};
_.S.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.S.shouldLogCounterfactualImpression=function(){return!0};
_.S.doEnqueue=function(){var g=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17778_downloadedVideosCountSelectorUnsubscriber=_.Gm(_.Zz(),i9m,function(r,E){g.renderer.targetId&&r>E&&(Kc$(g.targetManager,g.renderer.targetId,QYz(g)),g.cancel())});
break;default:Kc$(this.targetManager,this.renderer.targetId,QYz(this))}};
var QYz=function(g){var r;if((r=g.renderer.suggestedPosition)==null?0:r.type)var E=o8m[g.renderer.suggestedPosition.type];E||(E="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:g.renderer},popupType:"HINT",position:E}}};var zLF=function(){this.previousPage=null},kpM;
zLF.prototype.registerPromoCommand=function(g,r){Ho6(this,void 0,void 0,_.n(g.roadblock,W54),void 0,void 0,r)};
var Ho6=function(g,r,E,B,w,O,M){g.previousPage!==M&&g.pendingTooltipPromo&&g.pendingTooltipPromo.cancel();g.previousPage=M;w?(g.pendingEnforcementPromo&&g.pendingEnforcementPromo.cancel(),g.pendingEnforcementPromo=new S5t(w,M),g.pendingEnforcementPromo.enqueue()):O?(g.pendingCommandWrapperPromo=new jD(O,M),g.pendingCommandWrapperPromo.enqueue()):B?(g.pendingRoadblockPromo&&g.pendingRoadblockPromo.cancel(),g.pendingRoadblockPromo=new lWD(B,M),g.pendingRoadblockPromo.enqueue()):r?(g.pendingMealbarPromo&&
g.pendingMealbarPromo.cancel(),g.pendingMealbarPromo=new q54(r,M),g.pendingMealbarPromo.enqueue()):E&&(g.pendingTooltipPromo&&g.pendingTooltipPromo.cancel(),g.pendingTooltipPromo=new GpL(E,_.Yl()),g.pendingTooltipPromo.enqueue())},pYF=function(){kpM||(kpM=new zLF);
return kpM};var ZuD=!1;var NGM=function(g,r){var E=_.Ca("SESSION_INDEX");this.actionToken_=g;this.commonToken_=r;this.sessionIndex_=E},Xi8=function(g){var r=_.iW(),E=_.XS("payments.business.integration.bootstrap"),B=_.XS("payments.business.integration"),w=B.Style.create().withMaterialDesignStyle(),O=B.mashupMode.popup("instrument-manager");
E.asMashupMode(O).usingUserIndex(g.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(w).inStandaloneContext(B.standaloneContextAuthId.forUserId()).instrumentManager(g.actionToken_,g.commonToken_.length>0?g.commonToken_:void 0,function(M){var u=M.instrumentId;u?r.resolve(u):(u=_.XS("payments.business.integration.scenario.InstrumentManager"),r.reject(M.errorCode&&M.errorCode===u.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(M){_.xF(M);
r.reject("instrumentManagerLoadError")});
return r.promise};var Tc=function(g,r,E){this.payloadName="transactionFlowFailed";this.payload={errorType:g,serializedTransactionFlowLoggingParams:r,isUserDismiss:E===void 0?!1:E}};
_.vN("yt.ypc.shared.YpcTransactionFlowError",Tc);var b0=function(){return _.Hi.apply(this,arguments)||this};
_.f(b0,_.Hi);b0.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
b0.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
b0.prototype.onErrorMessageDismiss=b0.prototype.onErrorMessageDismiss;_.m([_.K({readOnly:!0,observer:"errorRendererChanged"}),_.L("design:type",Object)],b0.prototype,"errorRenderer",void 0);_.m([_.ob("yt-live-chat-error-message-dismiss"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],b0.prototype,"onErrorMessageDismiss",null);_.m([_.pR()],b0);var Y5F=[b0.prototype];var RLD;var n8t;var sYv=new _.xR("yt-live-chat"),fWz=new Map;fWz.set("timestamp_toggle","show-timestamps");fWz.set("reactions_toggle","allow-reactions");var Jc=function(){return _.a.apply(this,arguments)||this};
_.f(Jc,_.a);_.S=Jc.prototype;_.S.menuItemIdentifierChanged=function(){var g;(g=this.data)!=null&&g.menuItemIdentifier&&(g=fWz.get(this.data.menuItemIdentifier))&&(_.Y("enable_lwe_web_mute")?(g=sYv.get(g),this.isToggled=!(g===void 0?!this.data.isToggled:!g)):this.isToggled=sYv.get(g))};
_.S.onFocus=function(){this.toggleButton.focus()};
_.S.onTap=function(){var g=this.data.command;g&&this.componentBehavior.resolveCommand(g)};
_.S.computeText=function(g,r,E){return this.componentBehavior.getSimpleString(g?E:r)};
_.S.computeIcon=function(g,r,E){return(g=g?E:r)&&g.iconType?_.Dh(g.iconType):""};
Jc.prototype.onTap=Jc.prototype.onTap;Jc.prototype.onFocus=Jc.prototype.onFocus;Jc.prototype.menuItemIdentifierChanged=Jc.prototype.menuItemIdentifierChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Jc.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Jc.prototype,"componentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Jc.prototype,"data",void 0);
_.m([_.K({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.L("design:type",String)],Jc.prototype,"icon",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],Jc.prototype,"isToggled",void 0);_.m([_.zb("tp-yt-paper-toggle-button"),_.L("design:type",Object)],Jc.prototype,"toggleButton",void 0);_.m([_.Gb("data.menuItemIdentifier"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Jc.prototype,"menuItemIdentifierChanged",null);
_.m([_.ob("focus"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Jc.prototype,"onFocus",null);_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Jc.prototype,"onTap",null);_.m([_.e3({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],Jc);
_.I(Jc,"yt-live-chat-toggle-renderer",function(){if(n8t===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;RLD===void 0&&(RLD=document.createElement("template"));var B=RLD;E.call(r,B.content.cloneNode(!0),g.content.firstChild);n8t=g}g=n8t;return g},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var $Vz=new _.Vn("NAVIGATION_PROGRESS_TOKEN");var jY4={},A05={},bo$=(A05[nTM.name]=!0,A05),P7=function(){var g=_.Hi.apply(this,arguments)||this;g._noAccessors=!0;g.tabGesturesIsActive=!1;g.actionRouterIsRoot=!0;g.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"};g.pageTitle="";g.titleSuffix="YouTube";g.unseenNotificationCount=
0;g.hasNavigated=!1;g.hasSetScrollTopForNavigation=!1;g.pagePreparer=null;g.zwiebackInitJobId=0;g.dataUpdatePromise=null;g.loadDepsPromise=_.lq();g.hasPendingNavigation=!1;g.pendingPlayerOnResponseReceivedActions=[];return g};
_.f(P7,_.Hi);P7.prototype.attached=function(){J0A(this);document.addEventListener("yt-navigate-cache",_.Do(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var g=tc();g.init();g.dispatchElement=this.hostElement};
var J0A=function(g,r){r=r===void 0?0:r;var E=_.rM().resolve(_.gM(_.pB));if(E)Psz(g,E);else{if(r>=5)throw Error("cl");setTimeout(function(){J0A(g,r+1)},0)}},Psz=function(g,r){r.addEventListener("yt-navigate-start",_.Do(g,g.onYtNavigateStart));
r.addEventListener("yt-navigate-finish",_.Do(g,g.onYtNavigateFinish));r.addEventListener("yt-navigate-error",_.Do(g,g.onYtNavigateError));r.addEventListener("yt-page-data-fetched",_.Do(g,g.onYtPageDataFetched))};
_.S=P7.prototype;_.S.detached=function(){var g=_.rM().resolve(_.pB);g.removeEventListener("yt-navigate-start",_.Do(this,this.onYtNavigateStart));g.removeEventListener("yt-navigate-finish",_.Do(this,this.onYtNavigateFinish));g.removeEventListener("yt-navigate-error",_.Do(this,this.onYtNavigateError));g.removeEventListener("yt-page-data-fetched",_.Do(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.Do(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.S.setPageOffset=function(g,r){g?_.OS(this.hostElement,"yt-set-page-offset",[g,r]):_.tn(Error("dl"))};
_.S.setPageOffsetForNavigation=function(g,r){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(g,r))};
_.S.onYtNavigateSetPageOffset=function(g,r){this.setPageOffsetForNavigation(r.page,r.offset)};
_.S.getPageOffset=function(){var g=_.S3(this.hostElement).querySelector("#page-manager").getCurrentPage(),r=0;g&&(r=_.OS(this.hostElement,"yt-get-page-offset",[g])[0]);return r};
_.S.onYtHistoryPop=function(g,r){if(_.Ka("DISABLE_WARM_LOADS"))g.preventDefault(),window.location.reload();else{var E=_.rM().resolve(_.pB);E.hasPendingNavigation()&&g.preventDefault();E.cancelPendingNavigation();_.US(this.hostElement,"yt-pending-navigation-cancelled");r.errorMsg&&(g=r.errorMsg.split(" - "),r=Error(g[0]),g.length==2&&g[1]&&(_.Wf(r,g[1]),_.el(r)),window.location.reload())}};
_.S.onYtHistoryLoad=function(g,r){var E=this;if(_.Ka("DISABLE_WARM_LOADS"))window.location.reload();else{(g=r.endpoint)&&Object.keys(g).length||(g=null);var B=r.historyEntry,w=_.rM().resolve(_.pB),O=_.rM().resolve(_.vK),M=null;B&&B.rootData&&(M=B.rootData);var u=M&&ttM(M);!M||u||M.filler?g?(w.navigate(g,!0),FXt(this,g)):(r.legacyBorder||u||(r.JSC$26827_savedComponentState==null&&M==null?_.el(new _.Rj("Incomplete history entry",r.forward)):_.FR(new _.Rj("Malformed history entry",r.JSC$26827_savedComponentState,
r.forward,M))),window.location.reload()):(_.B8o({isHot:!0}),_.Pk({webInfo:{navigationReason:"h"}}),_.HXc(),_.F4("srt"),_.F4("pdc"),this.cancelPendingTasks(),eL$(this,r.forward,M),M.player&&(M.player.loaded=!1),FXt(this,g),_.GIm(w,g||{},M,2,{},!1,r).then(function(){E.setPageOffset(O.getCurrentPage(),B.scrollTop||0)}))}};
_.S.initHistoryManager=function(g){if(!this.hasNavigated){this.hasNavigated=!0;var r=_.S3(this.hostElement).querySelector("#page-manager").getCurrentData();g=isNaN(g)?this.getPageOffset():g;var E=_.rM().resolve(_.pB).currentEndpoint;this.replaceState(E,r,g)}};
_.S.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.S.onYtNavigateStart=function(g,r){this.cancelPendingTasks();r.noProgressBar||(g=_.rM().resolve(_.gM($Vz)))&&g.start();g=this.hasPendingNavigation?null:this.data;var E=_.rM().resolve(_.vK),B,w,O;_.Y("kevlar_use_vimio_behavior")&&!((B=r.endpoint)==null?0:(w=B.commandMetadata)==null?0:(O=w.webCommandMetadata)==null?0:O.ignoreNavigation)&&(B=E.getCurrentPage())&&B.disconnectVisibilityRoot();E.prepareForNavigation(r.pageType,r.endpoint);_.Y("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.vP(1,
"pcl"),_.dV(this.pagePreparer,E.preparePage.bind(E,r.pageType,r.endpoint)));B=this.getPageOffset();this.initHistoryManager(B);r.reload||this.hasPendingNavigation?this.replaceState(r.endpoint,g,B):(g==null?void 0:g.page)==="watch"&&r.pageType==="watch"&&_.Y("kevlar_replace_watch_to_watch_history_state")?this.replaceState(r.endpoint,g,B):(g==null?void 0:g.page)!=="shorts"||r.pageType!=="shorts"||r.endpoint.reelWatchEndpoint.sequenceParams||_.Y("short_to_short_back_nav_killswitch")?r.type!="navigate-back"&&
r.type!="navigate-forward"&&(r.pageType==="shorts"&&_.Sh(this.hostElement,"yt-shorts-reset"),this.saveAndPush(r.url,r.endpoint,g,B)):(_.Y("web_enable_delay_shorts_sequence_call")&&(r.endpoint.reelWatchEndpoint.sequenceParams=g==null?void 0:g.cachedSequenceParams,r.endpoint.reelWatchEndpoint.sequenceProvider=g==null?void 0:g.cachedSequenceProvider),this.replaceState(r.endpoint,g,0));this.hasPendingNavigation=!0};
var WX$=function(g){g.hasPendingNavigation=!1;(g=_.rM().resolve(_.gM($Vz)))&&g.finish()};
P7.prototype.onYtNavigateError=function(g,r){WX$(this);g=this.get("endpoint.commandMetadata.webCommandMetadata.url",r);var E=_.iu(window.location.href);g&&!E.pbjreload&&(r=r.navigationErrorReason||"10",_.Y("kevlar_parent_on_pbjreload")&&(E={csn:_.PE()},this.get("data.endpoint.clickTrackingParams")&&(E.itct=this.data.endpoint.clickTrackingParams),_.yk(g,E)),_.co(_.La(g,{pbjreload:r})))};
P7.prototype.onYtNavigateCache=function(g,r){var E=this,B=r.url,w=r.endpoint,O=r.data;g=!!r.miniplayer;r=!!r.skipHistory;if(B&&w&&O){var M=this.getPageOffset(),u=this.data||null;r||this.saveAndPush(B,w,u,M);B=_.GIm(_.rM().resolve(_.pB),w,O,g?4:3,{},g);g&&B.then(function(){E.dataUpdatePromise&&E.dataUpdatePromise.then(function(){var l=_.rM().resolve(_.vK);E.setPageOffset(l.getCurrentPage(),0)})})}};
P7.prototype.onYtNavigateFinish=function(g,r){var E=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){CsA(E,r.fromHistory)})};
var CsA=function(g,r){WX$(g);if(g.pendingPlayerOnResponseReceivedActions){for(var E=_.U(g.pendingPlayerOnResponseReceivedActions),B=E.next();!B.done;B=E.next())_.Qy(B.value,g.hostElement);g.pendingPlayerOnResponseReceivedActions=[]}E=_.rM().resolve(_.vK);r||!g.hasNavigated||_.Y("web_disable_scroll_on_navigate_finish")||((r=E.getCurrentPage())?r.is==="ytd-shorts"||g.tabGesturesIsActive||g.setPageOffsetForNavigation(r,0):_.el(Error("el")));_.N1(function(){_.N1(function(){_.F4("pda")})})};
P7.prototype.onYtNavigate=function(g){if(!g.detail.endpoint){var r=new _.Rj("Error: Missing yt-navigate endpoint from target:",g.target,g.target.nodeName);_.tn(r)}if(r=_.Y("cold_missing_history"))r=tc(),r.init(!1),r=!(r.browserHistory.boundHistoryReplaceState&&r.browserHistory.boundHistoryPushState);if(r){_.W0("DISABLE_WARM_LOADS",!0);r=new _.Rj("Failed to initialize history manager",this.getDebugString());var E=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
E?_.el(r):_.tn(r)}r=g.detail.endpoint;var B,w;_.Y("debug_forward_web_query_parameters")&&((B=r.commandMetadata)==null?0:(w=B.webCommandMetadata)==null?0:w.url)&&(r=JSON.parse(JSON.stringify(r)),r.commandMetadata.webCommandMetadata.url=_.Isl(r.commandMetadata.webCommandMetadata.url,window.location.search));g={type:0,command:r,form:{params:g.detail.params,tempData:g.detail.tempData||{},requestType:g.detail.type,createScreenConfig:g.detail.createScreenConfig,reload:g.detail.reload?g.detail.reload:!1,
requestForm:g.detail}};_.Y("kevlar_yt_navigate_command_handler")?(B=_.rM().resolve(_.Er),g.form.skipDefaultElement=!0,B.resolveCommand(r,{form:g.form})):this.handleNavigate(g)};
P7.prototype.handleNavigate=function(g){this.hasSetScrollTopForNavigation=!1;var r=_.rM().resolve(_.pB),E=g.form||{};r.navigate(g.command,E.reload,E.params,E.tempData,E.requestType,E.createScreenConfig,E.ignoreConfirmation,E.requestForm)&&FXt(this,g.command,E.tempData)};
P7.prototype.onYtPageDataFetched=function(g,r){try{_.U6m().reset();this.data=r.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.rM().resolve(_.vK).updatePageData(this.data);if(!_.Y("web_service_params_response_processor")){var E=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);E&&rxt(E);var B=this.get("response.responseContext.serviceTrackingParams",
this.data);B&&rxt(B)}var w=this.get("playerResponse.onResponseReceivedActions",this.data);w&&(w=KXF(this,w));w&&_.uq(this.hostElement,w,this.hostElement);var O=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),M=this.get("response.responseContext.consistencyTokenJar",this.data);if(O||M){var u=_.Y5J(),l=(0,_.jn.getValues)(u.tokenJars);O&&u.replace(l,O);M&&u.replace(l,M)}}catch(Q){_.tn(Q)}};
var FXt=function(g,r,E){try{g.onYtEndpointChangeHandler(r,E)}catch(B){_.tn(B)}};
_.S=P7.prototype;_.S.onYtEndpointChangeHandler=function(){};
_.S.setPageTitle=function(g){g=(this.pageTitle=g)?g+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+g};
_.S.onYtUpdateTitle=function(g,r){this.setPageTitle(r)};
_.S.setUnseenNotificationCount=function(g){this.unseenNotificationCount=g;this.setPageTitle(this.pageTitle)};
_.S.handleUpdateNotificationsUnseenCountAction=function(g){_.n(g,wy$)&&((g=_.n(g,wy$).unseenCount)?this.setUnseenNotificationCount(g):this.setUnseenNotificationCount(0))};
_.S.handleClearCookieAction=function(g){var r;(g=(r=_.n(g,gTA))==null?void 0:r.cookieName)&&_.UuY(g)};
_.S.onYtUpdateUnseenNotificationCount=function(g,r){this.setUnseenNotificationCount(r)};
_.S.loadData=function(g){var r=this;this.loadDepsPromise.then(function(){var E=_.rM().resolve(_.gM(_.pB));E||_.tn(Error("fl"));if(g&&g.response){if(!g.endpoint){var B=_.Xp(window.document.location.href)||"/",w="";if(B==="/"||B.startsWith("/?"))w="WEB_PAGE_TYPE_BROWSE";g.endpoint={commandMetadata:{webCommandMetadata:{url:B,webPageType:w,rootVe:3854}}}}_.GIm(E,g.endpoint,g,5,{})}else g.endpoint?E.navigate(g.endpoint):E.navigate(_.oH);_.F6.cancelJob(r.zwiebackInitJobId);r.zwiebackInitJobId=_.F6.addLowPriorityJob(ygM)})};
var tc=function(){return _.rM().resolve(_.On)};
P7.prototype.getDebugString=function(){return tc().getDebugString()};
P7.prototype.getThirdPartyManipulationSuspected=function(){return tc().getThirdPartyManipulationSuspected()};
P7.prototype.replaceState=function(g,r,E){tc().saveAndReplace(g,r,E)};
P7.prototype.saveAndPush=function(g,r,E,B){tc().saveAndPush(g,r,E,B)};
var ttM=function(g){return _.n(g.endpoint,_.LM)||_.n(g.endpoint,_.sP)?!0:!g||isNaN(g.expirationTime)?!1:(0,_.g2)()>g.expirationTime},eL$=function(g,r,E){var B=g.get("response.trackingParams",E),w=_.JF(),O=_.PE();
if(B&&w&&O&&(B=g.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",E),!B&&E.rootVe&&(B=E.rootVe),w=r?"forwardButton":"backButton",r=g.get("playerResponse.topbar.desktopTopbarRenderer."+w+".buttonRenderer.command.clickTrackingParams",g.data),g=g.get("response.topbar.desktopTopbarRenderer."+w+".buttonRenderer.command.clickTrackingParams",g.data),r=(g=r||g)?_.fW(g):void 0,g=_.pW(),w=[_.lq(E)],_.wT(g,B,r,{dataPromises:w,csnToClone:E.csn}),E.graftedVes))for(E=
_.U(E.graftedVes),B=E.next();!B.done;B=E.next())_.Sp(g,B.value)};
P7.prototype.onStoreGraftedVeAction=function(g){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(g)):_.el(Error("gl"))};
var KXF=function(g,r){return r.filter(function(E){for(var B in E)if(bo$[B])return g.pendingPlayerOnResponseReceivedActions.push(E),!0;return!1})};
_.hx.Object.defineProperties(P7.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
P7.prototype.onStoreGraftedVeAction=P7.prototype.onStoreGraftedVeAction;P7.prototype.loadData=P7.prototype.loadData;P7.prototype.onYtUpdateUnseenNotificationCount=P7.prototype.onYtUpdateUnseenNotificationCount;P7.prototype.handleClearCookieAction=P7.prototype.handleClearCookieAction;P7.prototype.handleUpdateNotificationsUnseenCountAction=P7.prototype.handleUpdateNotificationsUnseenCountAction;P7.prototype.setUnseenNotificationCount=P7.prototype.setUnseenNotificationCount;
P7.prototype.onYtUpdateTitle=P7.prototype.onYtUpdateTitle;P7.prototype.setPageTitle=P7.prototype.setPageTitle;P7.prototype.onYtEndpointChangeHandler=P7.prototype.onYtEndpointChangeHandler;P7.prototype.onYtPageDataFetched=P7.prototype.onYtPageDataFetched;P7.prototype.handleNavigate=P7.prototype.handleNavigate;P7.prototype.onYtNavigate=P7.prototype.onYtNavigate;P7.prototype.onYtNavigateFinish=P7.prototype.onYtNavigateFinish;P7.prototype.onYtNavigateCache=P7.prototype.onYtNavigateCache;
P7.prototype.onYtNavigateError=P7.prototype.onYtNavigateError;P7.prototype.onYtNavigateStart=P7.prototype.onYtNavigateStart;P7.prototype.cancelPendingTasks=P7.prototype.cancelPendingTasks;P7.prototype.initHistoryManager=P7.prototype.initHistoryManager;P7.prototype.onYtHistoryLoad=P7.prototype.onYtHistoryLoad;P7.prototype.onYtHistoryPop=P7.prototype.onYtHistoryPop;P7.prototype.onYtNavigateSetPageOffset=P7.prototype.onYtNavigateSetPageOffset;P7.prototype.setPageOffset=P7.prototype.setPageOffset;
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],P7.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],P7.prototype,"data",void 0);_.m([_.ob("yt-navigate-set-page-offset"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],P7.prototype,"onYtNavigateSetPageOffset",null);
_.m([_.ob("yt-history-pop"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],P7.prototype,"onYtHistoryPop",null);_.m([_.ob("yt-history-load"),_.L("design:type",Function),_.L("design:paramtypes",[Event,_.Wfn]),_.L("design:returntype")],P7.prototype,"onYtHistoryLoad",null);_.m([_.ob("yt-navigate"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],P7.prototype,"onYtNavigate",null);
_.m([_.ob("yt-update-title"),_.L("design:type",Function),_.L("design:paramtypes",[Event,String]),_.L("design:returntype")],P7.prototype,"onYtUpdateTitle",null);_.m([_.ob("yt-update-unseen-notification-count"),_.L("design:type",Function),_.L("design:paramtypes",[Event,Number]),_.L("design:returntype")],P7.prototype,"onYtUpdateUnseenNotificationCount",null);_.m([_.pR()],P7);jY4.YtdAppBehavior=[_.gN.YtActionHandlerBehavior,P7.prototype];var Fv=function(){var g=_.Hi.apply(this,arguments)||this;g._noAccessors=!0;return g};
_.f(Fv,_.Hi);Fv.prototype.ready=function(){var g=this;_.S3(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){g.onChange_()})};
Fv.prototype.dataChanged_=function(){_.S3(this.hostElement).querySelector("#checkbox").checked=!1};
Fv.prototype.onChange_=function(){var g=_.S3(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.Sh(this.hostElement,"yt-dismissal-reason-"+g,this.data.feedbackToken)};
Fv.prototype.dataChanged_=Fv.prototype.dataChanged_;_.m([_.K(),_.L("design:type",Object)],Fv.prototype,"data",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Fv.prototype,"dataChanged_",null);_.m([_.pR()],Fv);var xV8=[Fv.prototype];var eD=function(){var g=_.Hi.apply(this,arguments)||this;g.timeoutJobId=0;g.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return g};
_.f(eD,_.Hi);eD.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
eD.prototype.startTimeout=function(){var g=this,r=this.data&&this.data.displayDurationSeconds;r&&!this.timeoutJobId&&(this.timeoutJobId=_.fC(_.F6,function(){_.OS(g.hostElement,"yt-close-popup-action",[g.is]);g.timeoutJobId=0},r*1E3))};
eD.prototype.cancelTimeout=function(){_.F6.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
eD.prototype.ytdHatsSurveyBehaviorDataChanged=eD.prototype.ytdHatsSurveyBehaviorDataChanged;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],eD.prototype,"ytActionHandlerBehavior",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],eD.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.m([_.pR()],eD);var aWg=[_.gN.YtActionHandlerBehavior,eD.prototype];var XY$=function(g,r){var E;return((E=g.prefixMapping)==null?0:E[r])?g.prefixMapping[r]:g.SHARED_RENDERERS_.hasOwnProperty(r)?"yt":g.prefix},W7={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}};W7.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.Y("kevlar_mealbar_above_player"),modern:_.Y("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"}};
W7.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};W7.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};W7.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
W7.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)"}};
W7.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};
W7.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};
W7.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};
W7.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};W7.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"}};
W7.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};W7.TOAST={component:null,properties:{}};var NNM=new function(g,r,E){this.supportedPopups=g;this.navigationEndpointPopupMap=r;this.popupTypeMap=E;this.supportedPopups=g;this.navigationEndpointPopupMap=r;this.popupTypeMap=E}({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:_.Y("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"}),IW4=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$17828_popupConfig=W7;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 mV6=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.f4.getInstance()},C1=function(g,r){var E=g.pageNameToElement.get(r);
if(!E){switch(r){case "watch":var B=_.Y("web_watch_force_learning_journey_for_testing")?_.yx("ytd-watch-learning-journey"):_.Y("kevlar_watch_fixie")?_.yx("ytd-watch-fixie"):_.Y("kevlar_watch_grid")?_.yx("ytd-watch-grid"):_.yx("ytd-watch-flexy");break;case "learning_journey_watch":B=_.yx("ytd-watch-learning-journey");break;case "shorts":B=_.yx("ytd-shorts");break;case "search":B=_.yx("ytd-search");break;case "channel":B=_.yx("ytd-browse");B.pageSubtype="channels";break;case "trending":B=_.yx("ytd-browse");
B.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":B=
_.yx("ytd-browse");B.pageSubtype=r;break;case "browse":B=_.yx("ytd-browse");break;default:_.el(new _.Rj("Error getting page element for type",r))}E=B;g.pageNameToElement.set(r,E)}return E};
mV6.prototype.preparePage=function(g,r,E){E&&(g=_.zF(E)||g);if(g!=="watch"&&g!=="learning_journey_watch"){var B=this.elementPoolPopulator,w=g;w!=B.targetPage_&&B.pendingPages_.indexOf(w)>-1&&(B.targetPage_&&(B.pendingPages_.unshift(B.targetPage_),B.abort()),Xwv(B,w),_.PMT(B,w))}if((B=C1(this,g))||!_.n(E,_.II)){B.isAttached||B===r||(B.hidden=!0);if(!B.data&&(g!=="watch"&&g!=="learning_journey_watch"||!_.Y("swatcheroo_page_pool_dont_provide_filler_data"))){var O;if(g=(O=_.Ca("FILLER_DATA",{})[g])==
null?void 0:O.response)B.data=g}return B}};var c0L=function(g){this.JSC$28722_clientRoot=g;this.playlistHandlerActionMap={"yt-add-to-playlist-command":S9L,"yt-end-playlist-command":OfD,"yt-recover-playlist-command":M9L,"yt-refresh-playlist-command":lzL,"yt-playlist-remove-videos-action":q94};_.cf(_.mH.getInstance(),this.playlistHandlerActionMap,this.JSC$28722_clientRoot);yM6()},ioz;var K1=function(g,r,E){this.apiKey=g;this.endpoint=r;this.confidenceThreshold=E===void 0?.5:E;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=r==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||r==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
r==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||r==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new XU6};
_.S=K1.prototype;
_.S.start=function(g){if(this.state===0)if(this.isOnline()){g.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=g.supportsHttpHeadersOverwriteParam);g.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=g.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.tg("voice_assistant");_.eh("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=g.languageCode||"en-US";this.supportsCrossDomainXhr=g.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=g.youtubeAssistantRequest||null;this.listeningHandler=g.listeningHandler||this.listeningHandler;this.audioDetectedHandler=g.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=g.stopHandler||this.stopHandler;this.completeHandler=g.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=g.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=g.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
g.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=g.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=g.accessToken;this.additionalHeaders=g.additionalHeaders||{};var r;this.prefetchResponseTimeoutMs=(r=g.prefetchResponseTimeoutMs)!=null?r:this.prefetchResponseTimeoutMs;LXg(this);this.startAudio();VtM(this)}else this.errorHandler("OFFLINE")};
_.S.stop=function(g){var r=g===void 0?{}:g;g=r.logCancel===void 0?!0:r.logCancel;var E=r.logMicClosed===void 0?!0:r.logMicClosed;var B=r.handleError===void 0?!0:r.handleError;r=r.handleStop===void 0?!0:r.handleStop;this.state!==0&&(g&&xX("voz_cx"),a7(this,{logMicClosed:E,handleStop:r}),B&&this.errorHandler("ABORTED"))};
_.S.getState=function(){return this.state};
_.S.isSupported=function(){return!0};
_.S.stopAudio=function(g){(g===void 0||g)&&xX("voz_mf")};
_.S.startAudio=function(){xX("voz_vp");return _.lq(null)};
var hLF=function(g,r){g.channelOpen&&(g.state!==2&&(g.state=2,xX("voz_ss"),g.listeningHandler()),r=new Uint8Array(r),r='{ "audioIn": "'+_.gk(r)+'" }',g.channel.send(r))},a7=function(g,r){var E=r===void 0?{}:r;
r=E.logMicClosed===void 0?!0:E.logMicClosed;E=E.handleStop===void 0?!0:E.handleStop;g.vozEndOfDataTimeout>-1&&(clearTimeout(g.vozEndOfDataTimeout),g.vozEndOfDataTimeout=-1);Zo$(g);g.stopAudio(r);g.channel&&(g.channelOpen=!1,g.manuallyClosedChannel=!0,g.channel.close(),g.channel=void 0);g.transcribedSpeechResults=[];g.state=0;E&&g.stopHandler()},LXg=function(g){var r={httpHeadersOverwriteParam:g.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},g.additionalHeaders,g.accessToken&&g.isUsingVoz?{Authorization:"Bearer "+g.accessToken}:{"x-goog-api-key":g.apiKey}),supportsCrossDomainXhr:g.supportsCrossDomainXhr};g.channel=new FD(g.endpoint,r);g.channel.open();_.j_(g.channel,"w",function(){var E=g.channel,B=E.send,w=g.isUsingVoz?"PLACEHOLDER":"example";w={config:{dialogStateIn:{languageCode:g.languageCode},deviceConfig:{deviceId:w,deviceModelId:w},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!g.isUsingVoz)w.config.requestType=4;else if(g.isUsingVoz&&g.youtubeAssistantRequest){var O=JSON.stringify(g.youtubeAssistantRequest);w.config.internalIn={youtubeAssistantS3InputJson:O}}B.call(E,w);g.channelOpen=!0;g.manuallyClosedChannel=!1});
_.j_(g.channel,"x",function(){g.manuallyClosedChannel||(g.channelOpen=!1,g.channel=void 0,a7(g))});
_.j_(g.channel,"z",function(E){if(E.data){Zo$(g);for(var B=0;B<E.data.length;B++){var w=g,O=E.data[B],M=O.speechResults;if(M)a:{var u=[];O=[];var l=!1;M=_.U(M);for(var Q=M.next();!Q.done;Q=M.next()){Q=Q.value;if(Q.noSpeech){a7(w);w.errorHandler("NO_SPEECH");break a}Q.transcript!==void 0&&Q.stability!==void 0&&(Q.stability<w.confidenceThreshold&&(l=!0),l?O.push(Q.transcript):u.push(Q.transcript))}if(u.length!==0||O.length!==0)u=u.join(" "),O=O.join(" "),w.receivedEndOfUtterance&&!w.isUsingVoz?w.isUsingVoz||
w.completeHandler([u,O]):(l=w,M=u,Q=O,xX("voz_sf"),l.transcriptionUpdateHandler(M,Q),l.transcribedSpeechResults=[M,Q]),w.receivedEndOfUtterance&&(xX("voz_eou"),w.transcriptionCompleteHandler([u,O]),w.isUsingVoz&&(w.prefetchResponseTimeoutMs===0?a7(w,{logMicClosed:!1,handleStop:!0}):w.prefetchResponseTimeoutMs>0&&y0$(w)))}else w.isUsingVoz&&(O==null?0:O.internalOut)?(O=JSON.parse(O.internalOut.youtubeAssistantS3OutputJson),O.userHasOptedInToVaa||O.vaaConsent?w.vaaConsentUpdateHandler(!!O.userHasOptedInToVaa,
!!O.vaaConsent):(v8F(w),O&&(u=w.transcribedSpeechResults,xX("voz_rqf"),w.completeHandler(u,O)))):O.eventType==="END_OF_UTTERANCE"?w.receivedEndOfUtterance=!0:(xX("voz_err"),w.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.el(Error("hl")))}}});
_.j_(g.channel,"y",function(E){a7(g);switch(E.status){case 1:E="WEBCHANNEL_NETWORK_ERROR";break;case 2:E="WEBCHANNEL_SERVER_ERROR";break;default:E="WEBCHANNEL_UNKNOWN_ERROR"}g.errorHandler(E);g.logError(Error(E))})};
K1.prototype.logError=function(g){_.tn(g)};
K1.prototype.isOnline=function(){return!0};
var y0$=function(g){v8F(g);g.prefetchResponseSetTimeoutId=setTimeout(function(){a7(g,{logMicClosed:!1,handleStop:!0})},g.prefetchResponseTimeoutMs)},v8F=function(g){g.prefetchResponseSetTimeoutId>-1&&(clearTimeout(g.prefetchResponseSetTimeoutId),g.prefetchResponseSetTimeoutId=-1)},VtM=function(g){Zo$(g);
g.noResponseReceivedTimeout=window.setTimeout(function(){a7(g);g.errorHandler("NO_SPEECH")},11E3)},Zo$=function(g){g.noResponseReceivedTimeout>-1&&(window.clearTimeout(g.noResponseReceivedTimeout),g.noResponseReceivedTimeout=-1)},xX=function(g){_.F4(g,void 0,"voice_assistant")};var Xv=function(){K1.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.f(Xv,K1);Xv.prototype.isSupported=function(){return DrF()};
Xv.prototype.startAudio=function(){var g=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.bV(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(B){dV6(g,B)};
this.processor.connect(this.audioContext.destination);var r=function(B){g.stream=B;if(!g.audioContext)return _.lq(null);B=g.audioContext.createMediaStreamSource(B);g.processor&&B.connect(g.processor);return _.lq(null)},E={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?r(this.stream):(E=navigator.mediaDevices.getUserMedia(E))?E.then(r).catch(function(B){a7(g);B.name&&B.name==="NotAllowedError"?g.errorHandler("NO_MICROPHONE_PERMISSION"):(g.errorHandler("AUDIO_ERROR"),g.logError(B));return _.bV(null)}):(a7(this),this.errorHandler("AUDIO_ERROR"),_.el(Error("il")));
return K1.prototype.startAudio.call(this)};
Xv.prototype.stopAudio=function(g){g=g===void 0?!0:g;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(r){r.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;K1.prototype.stopAudio.call(this,g)};
Xv.prototype.isOnline=function(){return navigator.onLine};
var dV6=function(g,r){if(g.audioContext)if(window.OfflineAudioContext){var E=g.audioContext.sampleRate,B=r.inputBuffer.getChannelData(0);r=new window.OfflineAudioContext(1,B.length,16E3);for(var w=r.createBuffer(1,B.length,E),O=w.getChannelData(0),M=0,u=0;u<B.length;u++)O[u]=B[u],M+=O[u]*O[u];!g.audioDetected&&Math.sqrt(M/B.length)>.01&&(g.audioDetected=!0,g.audioDetectedHandler());B=r.createBufferSource();B.buffer=w;B.connect(r.destination);B.start(0);r.oncomplete=function(l){l=l.renderedBuffer.getChannelData(0);
for(var Q=Math.floor(16384E3/E),z=new Int16Array(Q),k=0;k<Q;++k)z[k]=Math.max(-1,Math.min(1,l[k]))*32767;hLF(g,z.buffer)};
r.startRendering()}else TNA(g,r)},TNA=function(g,r){var E=g.audioContext.sampleRate,B=r.inputBuffer.getChannelData(0),w=Math.floor((E+8E3)/16E3);
E=B.length/w;r=new Float32Array(E);for(var O=0;O<E;++O)r[O]=B[O*w];B=new Int16Array(E);for(w=0;w<E;++w)B[w]=Math.max(-1,Math.min(1,r[w]))*32767;hLF(g,B.buffer)};var giD={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var riL=function(){this.JSC$17893_audioEnabled=!0;this.audioFeedbackHolder={}};
riL.prototype.isPlaying=function(g){return g.currentTime>0&&!g.paused&&!g.ended&&g.readyState>2};
var EiF=function(g){for(var r=_.U(Object.values(giD)),E=r.next();!E.done;E=r.next())E=E.value,g.audioFeedbackHolder[E]=new Audio,g.audioFeedbackHolder[E].src="/s/search/audio/"+E+".mp3",g.audioFeedbackHolder[E].load()},NA=function(g,r){if(g.JSC$17893_audioEnabled!==!1&&r in g.audioFeedbackHolder){for(var E=_.U(Object.values(g.audioFeedbackHolder)),B=E.next();!B.done;B=E.next())B=B.value,g.isPlaying(B)&&B.pause();
g.audioFeedbackHolder[r].currentTime=0;g.audioFeedbackHolder[r].play().catch(function(){})}};var BD5=function(g,r){var E=this;this.store=g;this.service=r;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){E.setState("offline");E.stop()};
this.audioPlayer=new riL;var B;(B=this.audioPlayer)==null||EiF(B)};
_.S=BD5.prototype;_.S.getService=function(){return this.service};
_.S.isEnabled=function(){return!!this.service};
_.S.isSupported=function(){var g;return(g=this.service)==null?void 0:g.isSupported()};
_.S.start=function(){var g=this,r,E,B,w,O,M,u,l,Q,z,k,H,R;return _.q(function(A){switch(A.nextAddress){case 1:g.store.dispatch(lBg("",""));if(!navigator.onLine)return g.setState("offline"),A.return();window.addEventListener("offline",g.handleOfflineEvent);g.stream=null;if(!g.permissionsSupported){A.jumpTo(2);break}_.qN(A,3);return _.D(A,wd4(g),5);case 5:r=A.yieldResult;if(!r)return(E=g.audioPlayer)==null||NA(E,"failure"),A.return();g.service.stream=g.stream;g.setState("listening");_.Ne(A,2);break;
case 3:_.G2(A),g.permissionsSupported=!1;case 2:B={context:_.GnD(_.Ee())},B.youtubeAssistantParams={searchParams:{inlineSearchResponse:g.enableInlineSearchResponse}},w=function(J,e){g.store.dispatch(DQz("transcribing"));g.store.dispatch(lBg(J,e))},O=function(){var J;
(J=g.audioPlayer)==null||NA(J,"open");g.setState("listening")},M=function(){g.setState("transcribing")},u=function(J){g.setErrorState(J)},l=function(J,e){var C;
(C=g.audioPlayer)==null||NA(C,"success");e&&(_.Y("kevlar_voice_search_inline_search")&&(g.responseProcessor=_.rM().resolve(_.zdV),g.responseProcessor&&(C=e.navigationAction,J=e.prefetchedSearchResponse,C&&J&&(C=(new _.INn).JSC$11145_getStoreKey(C),_.xI(g.responseProcessor,J,C)))),g.JSC$17911_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",e))},Q=function(){window.removeEventListener("offline",g.handleOfflineEvent)},z=_.s6c(!1),k=z.Authorization!=null,H=g.enableFirstPartyAuth||
g.enableFPAForSignedInUsers&&k?z:{"X-Goog-Visitor-Id":z["X-Goog-Visitor-Id"]},R={completeHandler:l,
errorHandler:u,listeningHandler:O,audioDetectedHandler:M,stopHandler:Q,transcriptionUpdateHandler:w,youtubeAssistantRequest:B,languageCode:S_F(),additionalHeaders:H,supportsCrossDomainXhr:g.enableFirstPartyAuth||g.enableFPAForSignedInUsers&&k,supportsHttpHeadersOverwriteParam:!g.disableHttpHeadersOverwrite},g.service.start(R),_.Q3(A)}})};
_.S.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.S.reset=function(){this.store.dispatch(_.Bs({type:"RESET_VOICE_SEARCH_STATE"}))};
_.S.setState=function(g){this.store.dispatch(DQz(g))};
_.S.setErrorState=function(g){switch(g){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var r;(r=this.audioPlayer)==null||NA(r,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)wd4(this);else{var E;(E=this.audioPlayer)==null||NA(E,"failure");this.setState("permission-denied")}break;case "ABORTED":var B;(B=this.audioPlayer)==null||NA(B,"no_input");break;default:var w;(w=this.audioPlayer)==
null||NA(w,"no_input");this.setState("timeout")}};
var wd4=function(g){var r,E;return _.q(function(B){switch(B.nextAddress){case 1:return _.D(B,navigator.permissions.query({name:"microphone"}),2);case 2:r=B.yieldResult;if(r.state==="granted")return B.return(!0);if(r.state==="denied")return g.setState("permission-denied"),B.return(!1);g.setState("permission");E={audio:{sampleSize:16,channelCount:1},video:!1};_.qN(B,3);return _.D(B,navigator.mediaDevices.getUserMedia(E),5);case 5:return g.stream=B.yieldResult,B.return(!0);case 3:return _.G2(B),g.setState("permission-denied"),
B.return(!1)}})},S_F=function(){var g=_.Ca("INNERTUBE_CONTEXT_HL"),r=_.Ca("INNERTUBE_CONTEXT_GL");
return g.indexOf("-")>-1?g:g+"-"+r};var O4A=function(g,r,E){BD5.call(this,r,E);this.JSC$17911_actionRouter=g;this.enableInlineSearchResponse=_.Y("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.Y("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.Y("kevlar_voice_search_enable_fpa_signedin_users")},UF$;
_.f(O4A,BD5);
var Mbv=function(){if(!UF$){var g="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.Y("kevlar_voice_search_auth_enabled")||_.Y("kevlar_voice_search_use_yt_endpoint")?g="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.Y("kevlar_voice_search_use_fp_endpoint")&&(g="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");UF$=
new O4A(_.mH.getInstance(),_.Zz(),new Xv(_.Ca("VOZ_API_KEY"),g,.5))}return UF$};var q_t=function(g){this.JSC$17915_clientRoot=g;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$17915_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)]]));g=_.U(this.eventListeners);for(var r=g.next();!r.done;r=g.next()){var E=_.U(r.value);r=E.next().value;E=E.next().value;E=_.U(E);for(var B=E.next();!B.done;B=E.next()){var w=
_.U(B.value);B=w.next().value;w=w.next().value;r.addEventListener(B,w)}}_.cf(_.mH.getInstance(),this.autonavPauseActionMap,this.JSC$17915_clientRoot)},u0D,lu4=function(g){return _.Y("kevlar_autonav_popup_filtering")?(g=_.yP(g))?g.hasAttribute("prevent-autonav"):!0:!0};
_.S=q_t.prototype;_.S.onIronOverlayOpened=function(g){lu4(g)&&(this.autonavPauseReasons.overlayOpen=!0,I7(this))};
_.S.onIronOverlayClosed=function(g){lu4(g)&&(this.autonavPauseReasons.overlayOpen=!1,I7(this))};
_.S.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;I7(this)};
_.S.onYtAutonavPauseBlur=function(){var g=this;_.F6.addJob(function(){g.isInBackground()||(g.autonavPauseReasons.inputBoxFocus=!1,I7(g))},8,0)};
_.S.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;I7(this)};
_.S.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;I7(this)};
_.S.onYtAutonavPauseScroll=function(){var g=_.rM().resolve(_.vK);g.isOnWatch()&&(g=g.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=g.getBoundingClientRect().top<-200,I7(this))};
_.S.onYtAutonavPauseUserEngagement=function(g){var r=this;if(_.Y("user_engagement_enable_autoplay_pause_feature")){var E=Number(g.lowEngagementThresholdMs);isNaN(E)||E<=0||g.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.VL("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.rM().resolve(_.PK),_.Eq()<E?_.fC(_.F6,function(){_.VL("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.vA5()?(this.userEngagementCsn=_.PE(),_.fC(_.F6,function(){_.VL("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
r.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,I7(this)):_.VL("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.AMB(Error("jl`"+JSON.stringify(g)))};
_.S.onYtAutonavPausePlayer=function(g){this.autonavPauseReasons.requestedByPlayer=!!g.detail;I7(this)};
_.S.onYtAutonavVisibilityChanged=function(){var g=this,r,E,B;return _.q(function(w){if(w.nextAddress==1)return(r=_.Tw())?_.D(w,r.getPlayerPromise(),2):w.return();E=w.yieldResult;B=E.isMuted()||E.getVolume()===0;g.autonavPauseReasons.backgroundAndMute=g.isInBackground()&&B;I7(g);_.Q3(w)})};
_.S.onYtAutonavPausePlayerEnded=function(){_.rM().resolve(_.PK);var g=144E5;_.Y("user_engagement_enable_autoplay_pause_feature")||_.Y("is_part_of_any_user_engagement_experiment")||(g=45E5);this.autonavPauseReasons.longIdle=_.Eq()>g;DFm(this);I7(this)};
_.S.onYtUserActivity=function(){var g=this;this.autonavPauseReasons.userEngagement&&(_.fC(_.F6,function(){_.VL("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",g.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,I7(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.fC(_.F6,function(){_.VL("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",g.userEngagementCsn);_.Pf()}),this.autonavPauseReasons.youthereLactExperiment=!1,I7(this));
this.autonavPauseReasons.longIdle&&!_.Y("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,I7(this))};
_.S.isInBackground=function(){var g=window.document.visibilityState;return!(!g||g==="visible")};
var I7=function(g){for(var r=!1,E=_.U(Object.values(g.autonavPauseReasons)),B=E.next();!B.done;B=E.next())B=B.value,r=r||B;r?_.h9.getInstance().pause(g.autonavPauseReasons):(g=_.h9.getInstance(),g.autonavState_==3?(g.setState(2,!1,!1),g.autonavPauseReason_=void 0):g.autonavState_==1&&(g.disabledAutonavPauseReason_=void 0))},DFm=function(g){var r=!1;
if(_.Y("enable_autoplay_pause_by_lact")){_.rM().resolve(_.PK);r=_.wM("autoplay_pause_by_lact_sec")*1E3;var E=_.wM("autoplay_pause_by_lact_sampling_fraction");(r=_.Eq()>=r&&Math.random()<E)&&!_.vA5()&&(_.fC(_.F6,function(){_.VL("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),r=!1)}r!==g.autonavPauseReasons.youthereLactExperiment&&(g.autonavPauseReasons.youthereLactExperiment=r)&&(g.userEngagementCsn=_.PE(),_.fC(_.F6,function(){_.VL("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",g.userEngagementCsn)}));
g.autonavPauseReasons.userEngagement&&_.fC(_.F6,function(){_.VL("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",g.userEngagementCsn)})};
q_t.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.VL("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.Pf(),this.autonavPauseReasons.youthereLactExperiment=!1,I7(this));this.autonavPauseReasons.userEngagement&&(_.VL("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,I7(this))};
q_t.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var mN=function(){var g=_.a.apply(this,arguments)||this;g.miniGuideVisible=!1;g.guideOpened=_.Y("disable_initial_guide_state_fix")?!1:g.canFitPersistentGuide(g.initialBodyClientWidth);g.guideUserStateOpened=g.getInitialGuideUserStateOpened();g.isFullscreenShorts=!1;g.miniGuideWidthThreshold=_.wM("kevlar_mini_guide_width_threshold",791);g.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");g.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
g.persistentGuideBlockedPagePathRegex=new RegExp(g.persistentGuideBlockedPagesPatterns.join("|"));g.animationTransitionDuration=0;g.lateDataResolver=_.iW();g.initialGuideDataFetchFailed=!1;g.initialLoad=!0;g.guideRenderers=new Set;g.isMouseOverGuide=!1;g.sessionUserManuallyExpandedGuideState=!1;g.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};
return g};
_.f(mN,_.a);_.S=mN.prototype;_.S.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.S.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.S.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.S.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.S.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.S.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.S.ready=function(){_.rM().addProvider({provide:_.F0,useValue:this.hostElement})};
_.S.attached=function(){var g=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.Do(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.Do(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.Do(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.Do(this,this.onYtGuideShow));_.Lk(this,function(){g.animationTransitionDuration=200})};
_.S.detached=function(){document.removeEventListener("yt-navigate-finish",_.Do(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.Do(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.Do(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.Do(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.Do(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.Do(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.Do(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.S.getData=function(){return this.data};
_.S.load=function(){var g=this,r,E,B,w;return _.q(function(O){switch(O.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=g.lateDataResolver.resolve.bind(g),O.return(g.lateDataResolver.promise);if(window.ytInitialGuideData)return r=_.iW(),r.resolve(window.ytInitialGuideData),O.return(r.promise);B=!1;_.qN(O,2);return _.D(O,g.fetchGuideData(),4);case 4:E=O.yieldResult;_.Ne(O,3);break;case 2:w=_.G2(O),w.message==="Returned error"&&(B=!0);
case 3:if(E)return O.return(E);g.onYtGuideClose();B||(g.initialGuideDataFetchFailed=!0);return O.return(g.lateDataResolver.promise)}})};
_.S.fetchGuideData=function(){var g=this,r,E,B,w,O,M,u;return _.q(function(l){if(l.nextAddress==1)return r=_.rM(),g.guidePromise||(E=r.resolve(_.Wo),g.guidePromise=_.cK(E,lhg)),_.D(l,g.guidePromise,2);if(l.nextAddress!=3)return B=l.yieldResult,w=r.resolve(_.Ng),_.D(l,w(),3);(O=l.yieldResult)&&((M=B)==null?void 0:(u=M.responseContext)==null?void 0:u.maxAgeSeconds)!==0&&O.put("service:guide:fallback",new _.En({innertubeResponse:B}));return l.return(B)})};
_.S.initializeGuideDataIfEmpty=function(){var g=this,r,E;return _.q(function(B){if(B.nextAddress==1){if(!g.initialGuideDataFetchFailed||g.data)return B.return();_.qN(B,2);return _.D(B,g.fetchGuideData(),4)}if(B.nextAddress!=2)return(r=B.yieldResult)&&g.lateDataResolver.resolve(r),_.Ne(B,0);E=_.G2(B);_.el(E);_.Q3(B)})};
_.S.initializeGuideData=function(){var g=this,r;return _.q(function(E){switch(E.nextAddress){case 1:return _.MS(FSt(),{mainAppWeb:_.iF()}),_.qN(E,2),_.D(E,g.load(),4);case 4:g.data=E.yieldResult;_.Ne(E,3);break;case 2:_.G2(E),_.qS(FSt(),"FAILURE");case 3:r=g.data&&g.data.items&&g.data.items.length>0?"SUCCESS":"FAILURE",_.qS(FSt(),r),_.Q3(E)}})};
_.S.setGuideData=function(g){var r=this,E,B;return _.q(function(w){if(w.nextAddress==1)return r.disabled?w.return():r.data?(g.data=r.data,r.guideRenderers.add(g),w.return()):_.D(w,r.initializeGuideData(),2);r.graftGuideToPage();E=_.Ka("IS_HOMEPAGE_COLD")?"eop":void 0;_.Y("disable_element_pool_populator")?r.setGuideDataAfterInit(g):(B=new _.vP(1,E),_.dV(B,r.setGuideDataAfterInit.bind(r,g)));_.Q3(w)})};
_.S.setGuideDataAfterInit=function(g){g.data=this.data;g.markDirty();this.guideRenderers.add(g);_.N1(function(){_.F4("gle")});
_.Lk(this,function(){_.F4("gpe")})};
_.S.graftGuideToPage=function(){if(this.data){var g=this.data&&this.data.trackingParams;g&&(g=_.fW(g),_.Ok(_.pW(),g))}};
_.S.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.Do(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.S.onDrawerOpenedChanged=function(g,r){!r.value&&this.guideOpened&&(this.guideOpened=!1)};
_.S.onYtGuideToggle=function(g){var r=this.guideOpened;this.guideOpened=!r;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var E=_.pu();_.Yg(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;E.save()}this.updateGuideDrawerElementState();if(this.guideElement){var B;this.guideOpened&&((B=g.detail)==null?0:B.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.Do(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.Do(this,this.onAppDrawerTransitioned))}r||this.initializeGuideDataIfEmpty()};
_.S.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Do(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.ZH(this.guideElement)};
_.S.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Do(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(qgM(this.guideOpened))};
_.S.guidePersistentAndVisibleChanged=function(){_.US(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.S.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.Bs({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.S.miniGuideVisibleChanged=function(){_.US(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.S.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(qgM(this.guideOpened)),this.initialLoad=!1);_.US(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.S.activeEndpointChanged=function(){_.US(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.S.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.S.onYtGuideShow=function(){this.forceMiniGuideClose=!1;this.guidePersistent=this.canFitPersistentGuide(this.cachedClientWidth);this.guideUserStateOpened&&this.guidePersistent?this.renderGuide=this.guideOpened=!0:this.guideOpened=!1;this.observeForMiniGuideVisible();this.updateGuideDrawerElementState()};
_.S.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var g=this.canFitPersistentGuide(this.cachedClientWidth);g?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=g}this.updateGuideDrawerElementState()};
_.S.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.S.getGuideOpened=function(){return this.guideOpened};
_.S.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.S.getActiveEndpoint=function(){return this.activeEndpoint};
_.S.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.S.updateGuideDrawerElementState=function(){this.guideElement&&(this.guidePersistent?this.disableGuideAnimation():this.guideElement.persistent?this.disableGuideAnimation():this.enableGuideAnimation(),this.guideElement.opened=this.guideOpened,this.guideElement.persistent=this.guidePersistent,this.guideOpened&&this.guidePersistent&&_.Sh(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.S.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.Y("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.S.handleGuideMouseLeave=function(){var g=this;!this.sessionUserManuallyExpandedGuideState&&_.Y("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.Ib(this,"handleGuideMouseLeave",function(){g.isMouseOverGuide||!g.guideOpened||g.miniGuideVisible||(g.guideOpened=!1,g.updateGuideDrawerElementState())},100))};
_.S.computeGuidePersistentAndVisible=function(){var g=this;_.Ib(this,"computeGuidePersistentAndVisible",function(){g.guidePersistentAndVisible=g.guideOpened&&g.guidePersistent;g.guideIsVisibleButNotPersistent=!(!g.guideOpened||g.guidePersistent)})};
_.S.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.S.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.S.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.S.startLoadingWatch=function(){this.closeGuide()};
_.S.startLoadingShorts=function(){_.Y("web_hide_guide_on_shorts")&&this.closeGuide()};
_.S.onYtNavigateFinish=function(g,r){if(!_.SI||r){this.activeEndpoint=r.endpoint;this.pageType=r.pageType;this.pageUrl=r.response.url;var E,B;g=(B=_.n((E=r.endpoint)==null?void 0:E.commandMetadata,_.dU))==null?void 0:B.url;!this.pageUrl&&g&&(this.pageUrl=g);_.Y("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.S.getVisibleGuideRenderer=function(){for(var g=_.U(this.guideRenderers),r=g.next();!r.done;r=g.next())if(r=r.value,this.miniGuideVisible&&r.is==="ytd-mini-guide-renderer"||this.guideOpened&&r.is==="ytd-guide-renderer")return r;return null};
_.S.markGuideRendererDirty=function(g){if(g){typeof g.markDirty==="function"&&g.markDirty();g=_.U([].concat(_.jW(_.S3(g).children)));for(var r=g.next();!r.done;r=g.next())this.markGuideRendererDirty(r.value)}};
_.S.persistentGuideEnabled=function(g,r){if(!r||g==="watch"||g==="settings"||g==="shorts"&&this.isFullscreenShorts||_.Y("reels_web_disable_persistent_guide_shorts")&&g==="shorts")return!1;var E=_.lc(r)||"";return _.Y("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(B){return E===B}):!this.persistentGuideBlockedPagePathRegex.test(E)};
_.S.canFitPersistentGuide=function(g){var r=_.wM("kevlar_persistent_guide_width_threshold",1312);return r===-1||_.Y("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:g>r};
_.S.canFitMiniGuide=function(g){return this.miniGuideWidthThreshold===-1?!1:g>this.miniGuideWidthThreshold};
_.S.onResize=function(){var g=this;_.Ib(this,"calculateGuideState",function(){g.onResizeDebounced()})};
_.S.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.S.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.S.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.S.getInitialGuideUserStateOpened=function(){return _.Y("web_force_mini_guide_default")?!1:!_.pu().getFlag(109)};
_.hx.Object.defineProperties(mN.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.Ca("initialBodyClientWidth")||window.innerWidth}}});
mN.prototype.onResize=mN.prototype.onResize;mN.prototype.observeForMiniGuideVisible=mN.prototype.observeForMiniGuideVisible;mN.prototype.computeGuidePersistentAndVisible=mN.prototype.computeGuidePersistentAndVisible;mN.prototype.cachedClientWidthChanged=mN.prototype.cachedClientWidthChanged;mN.prototype.resetGuide=mN.prototype.resetGuide;mN.prototype.activeEndpointChanged=mN.prototype.activeEndpointChanged;mN.prototype.guideOpenedChanged=mN.prototype.guideOpenedChanged;
mN.prototype.miniGuideVisibleChanged=mN.prototype.miniGuideVisibleChanged;mN.prototype.guideIsVisibleButNotPersistentChanged=mN.prototype.guideIsVisibleButNotPersistentChanged;mN.prototype.guidePersistentAndVisibleChanged=mN.prototype.guidePersistentAndVisibleChanged;mN.prototype.onGuideElementChanged=mN.prototype.onGuideElementChanged;mN.prototype.onGuidePersistentChanged=mN.prototype.onGuidePersistentChanged;mN.prototype.onRenderGuideChanged=mN.prototype.onRenderGuideChanged;
mN.prototype.onActiveEndpointChanged=mN.prototype.onActiveEndpointChanged;mN.prototype.onMiniGuideVisibleChanged=mN.prototype.onMiniGuideVisibleChanged;mN.prototype.onGuideIsVisibleButNotPersistentChanged=mN.prototype.onGuideIsVisibleButNotPersistentChanged;mN.prototype.onGuidePersistendAndVisibleChanged=mN.prototype.onGuidePersistendAndVisibleChanged;_.m([_.P(_.f7),_.L("design:type",Object)],mN.prototype,"ironResizableBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],mN.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],mN.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],mN.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],mN.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Boolean)],mN.prototype,"disabled",void 0);
_.m([_.K(),_.L("design:type",Boolean)],mN.prototype,"guidePersistentAndVisible",void 0);_.m([_.Gb("guidePersistentAndVisible"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],mN.prototype,"onGuidePersistendAndVisibleChanged",null);_.m([_.K(),_.L("design:type",Boolean)],mN.prototype,"guideIsVisibleButNotPersistent",void 0);
_.m([_.Gb("guideIsVisibleButNotPersistent"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],mN.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.m([_.K(),_.L("design:type",Object)],mN.prototype,"miniGuideVisible",void 0);_.m([_.Gb("miniGuideVisible"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],mN.prototype,"onMiniGuideVisibleChanged",null);_.m([_.K(),_.L("design:type",Boolean)],mN.prototype,"forceMiniGuideClose",void 0);
_.m([_.K(),_.L("design:type",Object)],mN.prototype,"activeEndpoint",void 0);_.m([_.Gb("activeEndpoint"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],mN.prototype,"onActiveEndpointChanged",null);_.m([_.K(),_.L("design:type",Boolean)],mN.prototype,"renderGuide",void 0);_.m([_.Gb("renderGuide"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],mN.prototype,"onRenderGuideChanged",null);
_.m([_.K(),_.L("design:type",Object)],mN.prototype,"guideOpened",void 0);_.m([_.K(),_.L("design:type",Boolean)],mN.prototype,"guidePersistent",void 0);_.m([_.Gb("guidePersistent"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],mN.prototype,"onGuidePersistentChanged",null);_.m([_.K(),_.L("design:type",Object)],mN.prototype,"guideUserStateOpened",void 0);_.m([_.K(),_.L("design:type",String)],mN.prototype,"pageUrl",void 0);
_.m([_.K(),_.L("design:type",String)],mN.prototype,"pageType",void 0);_.m([_.K(),_.L("design:type",Number)],mN.prototype,"cachedClientWidth",void 0);_.m([_.K(),_.L("design:type",Object)],mN.prototype,"guideElement",void 0);_.m([_.K({selector:_.qq}),_.L("design:type",Object)],mN.prototype,"isFullscreenShorts",void 0);_.m([_.Gb("guideElement"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],mN.prototype,"onGuideElementChanged",null);
_.m([_.Gb("guidePersistentAndVisible"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],mN.prototype,"guidePersistentAndVisibleChanged",null);_.m([_.Yk("guideIsVisibleButNotPersistent"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],mN.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.m([_.Gb("miniGuideVisible"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],mN.prototype,"miniGuideVisibleChanged",null);_.m([_.Yk("guideOpened"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],mN.prototype,"guideOpenedChanged",null);_.m([_.Gb("activeEndpoint"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],mN.prototype,"activeEndpointChanged",null);
_.m([_.Yk("pageUrl"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],mN.prototype,"resetGuide",null);_.m([_.Yk("cachedClientWidth"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],mN.prototype,"cachedClientWidthChanged",null);_.m([_.Gb("guideOpened","guidePersistent"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],mN.prototype,"computeGuidePersistentAndVisible",null);
_.m([_.Yk("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],mN.prototype,"observeForMiniGuideVisible",null);_.m([_.ob("iron-resize"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],mN.prototype,"onResize",null);_.m([_.N({disableElementRegistration:!0,is:"yt-guide-manager"})],mN);var oim=_.I(mN,"yt-guide-manager",void 0,{mode:_.My("kevlar_poly_si_batch_j081")?1:2});var c7=function(){var g=_.a.apply(this,arguments)||this;g.JSC$17925_keyboardInUse=!1;g.boundHandleCapturedKeydownEvent=function(r){g.handleCapturedKeydownEvent(r)};
return g};
_.f(c7,_.a);_.S=c7.prototype;_.S.attached=function(){this.listenToDocument(document)};
_.S.listenToDocument=function(g){g.addEventListener("keydown",_.Do(this,this.onKeyDownEvent));g.addEventListener("keyup",_.Do(this,this.onKeyUpEvent));g.addEventListener("mousedown",_.Do(this,this.onMouseDownEvent));_.Y("desktop_keyboard_capture_keydown_killswitch")||g.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);g.addEventListener("yt-page-data-updated",_.Do(this,this.onPageUpdate))};
_.S.detached=function(){this.unlistenFromDocument(document)};
_.S.unlistenFromDocument=function(g){g.removeEventListener("keydown",_.Do(this,this.onKeyDownEvent));g.removeEventListener("keyup",_.Do(this,this.onKeyUpEvent));g.removeEventListener("mousedown",_.Do(this,this.onMouseDownEvent));_.Y("desktop_keyboard_capture_keydown_killswitch")||g.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);g.removeEventListener("yt-page-data-updated",_.Do(this,this.onPageUpdate))};
_.S.ready=function(){_.rM().addProvider({provide:_.wN,useValue:this})};
_.S.isKeyBoardInUse=function(){return this.JSC$17925_keyboardInUse};
_.S.handleCapturedKeydownEvent=function(g){if(g.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(g)};
_.S.onMouseDownEvent=function(){this.JSC$17925_keyboardInUse=!1};
_.S.onPageUpdate=function(){if(_.Y("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.Y("web_shorts_keyboard_shortcut_usage_log")){_.dQ.clear();for(var g=_.U(_.yL),r=g.next();!r.done;r=g.next()){var E=_.U(r.value);r=E.next().value;E=E.next().value;E=_.bW(E);_.dQ.set(r,E);_.N2(_.PE(),_.JF(),E)}_.TT.clear();g=_.U(_.vW);for(r=g.next();!r.done;r=g.next())E=_.U(r.value),r=E.next().value,E=E.next().value,E=_.bW(E),_.TT.set(r,E),_.N2(_.PE(),_.JF(),E);_.I6(_.PE(),_.JF(),[].concat(_.jW(_.TT.values()),
_.jW(_.dQ.values())));_.ck(_.PE(),[].concat(_.jW(_.TT.values()),_.jW(_.dQ.values())))}};
_.S.onMiniplayerActiveChange=function(){var g;(g=_.rM().resolve(_.ea).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(g.document):this.unlistenFromDocument(g.document))};
_.S.ignoreKeyEvent=function(g){if(g.ctrlKey||g.altKey)if(_.Y("kevlar_macro_markers_keyboard_shortcut")){if(g.keyCode!==37&&g.keyCode!==39)return!0}else return!0;var r=_.Z1(g)||[];return _.rpD(r)?!0:g.defaultPrevented?(lx(g.keyCode,g.shiftKey,this.isShortsPage),!0):g.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(g):!1};
_.S.isSpacebarClick=function(g){var r=g||window.event;var E;r.composedPath&&typeof r.composedPath==="function"?E=r.composedPath():E=r.path;E&&E.length?r=E[0]:(r=r||window.event,r=r.target||r.srcElement,r.nodeType==3&&(r=r.parentNode));return r&&g.keyCode===32&&(g=r.tagName==="BUTTON"||r.tagName==="A"||r.tagName==="INPUT",r=(r=r.getAttribute("role"))&&(r==="option"||r==="button"||r.indexOf("menuitem")===0),g||r)?!0:!1};
_.S.onKeyDownEvent=function(g){if(!this.ignoreKeyEvent(g)&&(g.keyCode===191&&(g.shiftKey||g.metaKey?g.repeat!=null&&g.repeat||(this.openHotkeyDialog(),lx(g.keyCode,g.shiftKey,this.isShortsPage)):(this.focusSearchBox(),g.preventDefault())),!g.metaKey)){var r=_.rM().resolve(_.ea);switch(g.keyCode){case 9:this.JSC$17925_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(g);break;case 84:r.pipController.getWindow()&&window.focus();this.toggleTheaterMode(g.keyCode,g.shiftKey);break;case 73:r.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(g.keyCode,g.shiftKey);break;case 70:if(this.isShortsPage&&_.Y("web_fullscreen_shorts")){_.ER6();break}this.isMiniplayerActive()?r.pipController.getWindow()&&(r.close(!0),window.focus()):this.passEventToPlayer(g);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(g.keyCode,g.shiftKey):this.closeMiniplayer(g.keyCode,g.shiftKey)||this.passEventToPlayer(g);break;case 13:g.shiftKey&&_.rM().resolve(_.qp).activate(g);break;default:this.passEventToPlayer(g)}}};
_.S.onKeyUpEvent=function(g){if(!this.ignoreKeyEvent(g))if(_.Y("web_speedmaster_spacebar_control")&&g.keyCode===32)this.handlePlayerSpaceKey(g,!0);else{var r=this.getPlayerManager();r&&(r=r.getPlayer())&&r.handleGlobalKeyUp(g.keyCode,g.shiftKey,g.ctrlKey,g.altKey,g.metaKey,g.key,g.code)}};
_.S.getPlayerManager=function(){var g=_.Tw(),r=_.rM().resolve(_.gM(_.vK));return g&&r&&r.isOnWatch()?g:null};
_.S.passEventToPlayer=function(g,r){var E=this,B,w,O,M;return _.q(function(u){if(u.nextAddress==1){if(!_.Y("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&E.isMiniplayerActive())B=_.rM().resolve(_.ea).getPlayerElement();else if(E.inlinePreviewIsActive){if(w=_.US(E.hostElement,"yt-get-inline-preview-player-action"),(O=w)==null?0:O[0])B=w[0]}else B=_.Tw();return B?_.D(u,B.getPlayerPromise(),3):u.jumpTo(0)}M=u.yieldResult;r?M.handleGlobalKeyUp(g.keyCode,g.shiftKey,g.ctrlKey,g.altKey,g.metaKey,
g.key,g.code):M.handleGlobalKeyDown(g.keyCode,g.shiftKey,g.ctrlKey,g.altKey,g.metaKey,g.key,g.code,g.repeat);g.keyCode!==38&&g.keyCode!==40&&lx(g.keyCode,g.shiftKey,E.isShortsPage);_.Q3(u)})};
_.S.focusSearchBox=function(){_.Sh(this.hostElement,"yt-focus-searchbox")};
_.S.openHotkeyDialog=function(){_.Sh(this.hostElement,"yt-open-hotkey-dialog")};
_.S.isMiniplayerActive=function(){return _.rM().resolve(_.ea).isMiniplayerActive()};
_.S.closeMiniplayer=function(g,r){return this.isMiniplayerActive()?(_.rM().resolve(_.ea).close(),lx(g,r,this.isShortsPage),!0):!1};
_.S.toggleTheaterMode=function(g,r){var E=_.Jf(_.Zz().getState()),B=this.getPlayerManager(),w=_.Y("disable_theater_mode_keyboard")||_.Ka("START_IN_FULL_WINDOW_MODE");B&&!w&&(E=!E,_.Tr()&&_.Y("external_fullscreen")&&(E=!0),_.OS(this.hostElement,"yt-toggle-theater-mode",[E]),lx(g,r,this.isShortsPage))};
_.S.toggleMiniplayer=function(g,r){var E=this.getPlayerManager();if(this.isMiniplayerActive()){var B;((B=_.rM().resolve(_.gM(_.vK)))==null?0:B.isOnWatch())?_.rM().resolve(_.ea).close(!0):_.pP(_.rM().resolve(_.ea));lx(g,r,this.isShortsPage)}else E&&(_.OS(this.hostElement,"yt-activate-miniplayer-from-watch-action"),lx(g,r,this.isShortsPage))};
_.S.handlePlayerSpaceKey=function(g,r){var E=!!_.Tw()||this.isMiniplayerActive();E=_.Y("disable_space_scroll_fix")||E;_.Y("global_spacebar_pause")&&!this.isKeyBoardInUse()&&E&&(g.preventDefault(),this.passEventToPlayer(g,r))};
_.S.isPresentingTheaterMode=function(){return _.Y("web_watch_enable_tm_esc_key")?_.Jf(_.Zz().getState())&&!_.Tr():!1};
c7.prototype.onMiniplayerActiveChange=c7.prototype.onMiniplayerActiveChange;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],c7.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],c7.prototype,"ytdReduxBehavior",void 0);_.m([_.K({selector:_.z0o}),_.L("design:type",Boolean)],c7.prototype,"inlinePreviewIsActive",void 0);_.m([_.K({selector:_.G9D}),_.L("design:type",Boolean)],c7.prototype,"isShortsPage",void 0);
_.m([_.K({selector:_.tj}),_.L("design:type",Boolean)],c7.prototype,"miniplayerIsActive",void 0);_.m([_.Gb("miniplayerIsActive"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],c7.prototype,"onMiniplayerActiveChange",null);_.m([_.N({disableElementRegistration:!0,is:"yt-hotkey-manager"})],c7);_.I(c7,"yt-hotkey-manager",void 0,{mode:_.My("kevlar_poly_si_batch_j081")?1:2});var i0=function(){var g=_.a.apply(this,arguments)||this;g.loopStateEntityKey_=null;g.playlistLoopStateEntity_=null;g.isShuffleNextPlaylist=!1;g.PLAYER_EVENTS_=new Map;g.playerListenersSetup_=!1;g.videoSkipJob_=0;g.canAutoAdvance_=!1;g.playerManager_=null;g.TEST_ONLY={};return g};
_.f(i0,_.a);_.S=i0.prototype;_.S.ready=function(){_.rM().addProvider({provide:_.t6,useValue:this.hostElement})};
_.S.created=function(){this.PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.S.attached=function(){document.addEventListener("yt-navigate-start",_.Do(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.Do(this,this.onYtNavigateFinish_))};
_.S.detached=function(){document.removeEventListener("yt-navigate-start",_.Do(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.Do(this,this.onYtNavigateFinish_))};
_.S.updatePlaylistEventListeners=function(g,r){r&&!this.playerListenersSetup_?(this.playerManager_=g,this.registerPlaylistEventListeners_(g)):!r&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(g))};
_.S.setPlayer=function(g){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=g};
_.S.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.S.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.S.registerPlaylistEventListeners_=function(g){var r=this;g.getPlayerPromise().then(function(E){r.playerListenersSetup_||(r.ytPlayerListenerBehavior.listenToPlayerEvents(E,r.PLAYER_EVENTS_),r.playerListenersSetup_=!0)})};
_.S.removePlaylistEventListeners_=function(g){var r=this;g.getPlayerPromise().then(function(E){r.playerListenersSetup_&&(r.ytPlayerListenerBehavior.unlistenFromPlayerEvents(E,r.PLAYER_EVENTS_),r.playerListenersSetup_=!1)})};
_.S.setPlaylistComponent=function(g){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.Do(this,this.onPlaylistYtNavigate_)),g&&(g.data&&this.playlistComponent.data&&g.data.playlistId==this.playlistComponent.data.playlistId?(g.loopOn=this.playlistComponent.loopOn,g.shuffleOn=this.playlistComponent.shuffleOn):(g.loopOn=!1,g.shuffleOn=!1),this.isShuffleNextPlaylist&&(g.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=g;this.playlistComponent.addEventListener("yt-navigate",
_.Do(this,this.onPlaylistYtNavigate_))};
_.S.setAutoplayRenderer=function(g){this.autoplayData=g};
_.S.setPlaylistData=function(g){this.currentPlaylistData_=g;_.Sh(this.hostElement,"yt-playlist-data-updated");_.jn.isEmpty(g)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(g)};
_.S.setPlayerPlaybackControlData=function(g){this.playerManager_&&this.playerManager_.updatePlayerComponents(g.playlistPanelRenderer)};
_.S.getPlaylistData=function(){return this.currentPlaylistData_};
_.S.getTempData_=function(g,r){if(this.playlistComponent==null)return null;g={};this.playlistComponent.shuffleOn&&(g.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(g.loop_on=this.playlistComponent.loopOn);r&&(g.autonav="1",_.rM().resolve(_.PK),r=_.Eq(),r>0&&(g.lact=r),this.playerManager_&&(r=this.playerManager_.getPlayer())&&r.shouldSendVisibilityState()&&(r=r.getVisibilityState(),r!=0&&(g.vis=r)));_.Y("enable_unknown_lact_fix_on_html5")&&(_.rM().resolve(_.PK),g.lact=
_.Eq());return g};
_.S.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.S.setLoopStateEntityKey_=function(g){var r;this.loopStateEntityKey_=((r=this.getPlaylistLoopData_(g))==null?void 0:r.playlistLoopStateEntityKey)||null};
_.S.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.S.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.S.skipVideo=function(){var g=this,r=_.Y("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||r)r=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.pm(_.F6,function(){g.onPlaylistNext();g.videoSkipJob_=0},r)};
_.S.cancelVideoSkip=function(){this.videoSkipJob_&&(_.F6.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.S.isInBackground_=function(){var g=window.document.visibilityState;return!(!g||g=="visible")};
_.S.onPlaylistIndex_=function(g){this.playlistComponent&&(g=this.playlistComponent.data.contents[g].playlistPanelVideoRenderer.navigationEndpoint,_.Sh(this.hostElement,"yt-navigate",{endpoint:g,tempData:this.getTempData_(g)}))};
_.S.onPlayerStateChange_=function(g){if(g=g==0&&this.playlistComponent&&this.canAutoAdvance_)g=_.h9.getInstance(),g=!(g.autonavState_===3?g.autonavPauseReason_&&g.autonavPauseReason_.inputBoxFocus===!0:g.autonavState_===1&&g.disabledAutonavPauseReason_&&g.disabledAutonavPauseReason_.inputBoxFocus===!0);g&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.S.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.S.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.S.navigateToAutoplayWatchEndpoint_=function(g,r,E){var B=this.playlistComponent.data.currentIndex,w=this.getNumPlayableVideos_();g=="NORMAL"&&r=="autoplayVideo"&&B+1>=w&&E||!(g=this.getVideoEndpoint_(g,r))||(E=this.getTempData_(g,E),_.Sh(this.hostElement,"yt-navigate",{endpoint:g,tempData:E}))};
_.S.getNumPlayableVideos_=function(){for(var g=0,r=_.U(this.playlistComponent.data.contents||[]),E=r.next();!E.done;E=r.next())E.value.playlistPanelVideoRenderer&&(g+=1);return g};
_.S.getVideoEndpoint_=function(g,r){if(this.autoplayData&&this.autoplayData.sets)for(var E=0,B=this.autoplayData.sets.length;E<B;E++){var w=this.autoplayData.sets[E];if(w.mode==g){if(w[r])return w[r];break}}else g=new _.Rj("AutoplayData is undefined in playlist manager","Mode: "+g+" endpoint: "+r),_.el(g)};
_.S.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.S.onPlaylistYtNavigate_=function(g){if(g.detail.endpoint){g.stopPropagation();var r=g.detail;r.tempData=this.getTempData_(g.detail.endpoint);_.Sh(this.hostElement,"yt-navigate",r)}};
_.S.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.S.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.S.playlistLoopStateEntityChanged_=function(g){var r=this,E,B,w;return _.q(function(O){if(O.nextAddress==1){if(!g)return O.return();E=g.state==="PLAYLIST_LOOP_STATE_ONE";return r.playerManager_?_.D(O,r.playerManager_.getPlayerPromise(),3):O.jumpTo(2)}O.nextAddress!=2&&(B=O.yieldResult,B.setLoopVideo(E));w=g.state==="PLAYLIST_LOOP_STATE_ALL";r.playlistComponent&&(r.playlistComponent.loopOn=w);_.Q3(O)})};
_.S.getPlaylistLoopData_=function(g){var r,E;if(g=g==null?void 0:(r=g.playlistButtons)==null?void 0:(E=r.menuRenderer)==null?void 0:E.topLevelButtons)for(r=_.U(g),E=r.next();!E.done;E=r.next())if(E=E.value,E.playlistLoopButtonRenderer)return E.playlistLoopButtonRenderer};
_.S.getLoopStateCommand_=function(g){var r=this.getPlaylistData(),E;r=((E=this.getPlaylistLoopData_(r))==null?void 0:E.states)||[];var B;g=(B=_.n(r[g?1:2],_.bVz))==null?void 0:B.button;var w;return(w=_.n(g,_.Fd))==null?void 0:w.command};
_.S.onPlayerLoopChange_=function(g){this.playlistLoopStateEntity_&&(g?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(g=this.getLoopStateCommand_(g))&&this.ytComponentBehavior.resolveCommand(g)};
_.S.onSleepTimerSettingsChanged_=function(g){this.canAutoAdvance_=g!=="End of video"};
i0.prototype.onPlaylistLoopStateEntityChanged=i0.prototype.onPlaylistLoopStateEntityChanged;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],i0.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.a9.YtPlayerListenerBehavior),_.L("design:type",_.X0)],i0.prototype,"ytPlayerListenerBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],i0.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],i0.prototype,"loopStateEntityKey_",void 0);
_.m([_.K({selectorArgs:["loopStateEntityKey_"],selector:_.KfP}),_.L("design:type",Object)],i0.prototype,"playlistLoopStateEntity_",void 0);_.m([_.Gb("playlistLoopStateEntity_"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],i0.prototype,"onPlaylistLoopStateEntityChanged",null);_.m([_.N({disableElementRegistration:!0,is:"yt-playlist-manager"})],i0);_.I(i0,"yt-playlist-manager",void 0,{mode:_.My("kevlar_poly_si_batch_j081")?1:2});var GY4,Q9L=function(){if(GY4!==void 0)return GY4;var g=document.createElement("template");_.b(g,"\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");g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return GY4=g};var L1=function(){var g=_.a.apply(this,arguments)||this;g.lastCallback=null;g.getAccountLinkPromises={};g.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);g.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return g};
_.f(L1,_.a);_.S=L1.prototype;_.S.getLocation=function(){return window.location.href};
_.S.getCompletionUrl=function(){return _.ZY(this.getLocation())};
_.S.containsRedirectState=function(g){return(g=_.nZ(_.QSB(g)))?(new URLSearchParams(g)).get("redirect_state")!==null:!1};
_.S.createGalConfig=function(g,r){var E=new t76;g=E=r?this.getPopupOrRedirectSetting(E,_.Ca("LINK_API_KEY"),_.Ca("LINK_API_KEY_REDIRECT"),g):F7M(E,_.Ca("LINK_API_KEY"));g.authUser=_.Ca("SESSION_INDEX")||0;g.supportedFlows=new Set([4]);return g.build()};
_.S.getPopupOrRedirectSetting=function(g,r,E,B){this.isGalInteractionPopupMode(B)?(g.interactionMode=0,g=F7M(g,r)):(g.interactionMode=1,r=this.getCompletionUrl(),g.completionUrl=r,g=F7M(g,E));return g};
_.S.isGalInteractionPopupMode=function(g){if(this.redirectModeProviderAllowlist.has(g))switch(g){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.S.getStatusEntityKeyForProviderId=function(g){return _.qr(g+":all","accountLinkStatusEntity")};
_.S.findNestedPropValue=function(g,r){var E=!1,B=null;JSON.stringify(g,function(w,O){E||w!==r||(E=!0,B=O);return E?null:O});
return B};
_.S.findAccountLinkButtonViewModel=function(g,r){var E=null,B=!1;JSON.stringify(g,function(w,O){B||O.accountLinkStatusEntityKey!==r||O.accountLinkStatusSecondaryEntityKey||(B=!0,E=O);return B?null:O});
return E};
_.S.executeLinkingSuccessOrFailureCommands=function(g,r,E){var B=null,w;(r==null?0:(w=r.url)==null?0:w.includes("account_sharing"))?B=r==null?void 0:r.response:B=r==null?void 0:r.response;(r=this.findAccountLinkButtonViewModel(B,g))?(g=E?this.findNestedPropValue(r,"onSuccessCommand"):this.findNestedPropValue(r,"onFailureCommand"))?_.o6([g],this.hostElement):_.NX(Error("kl")):_.NX(Error("ll`"+g))};
_.S.handleInitializeRequest=function(g,r){var E=this,B=Eyt(this.createGalConfig(g,!0));this.containsRedirectState(this.getLocation())?v5M(g,B.config,B.galService).then(function(w){var O=E.getStatusEntityKeyForProviderId(g);if(w.statusCode===1)r&&E.executeLinkingSuccessOrFailureCommands(O,r,!0),w=E.getLocation().indexOf("#"),w!==-1&&window.history.pushState(null,"",E.getLocation().substring(0,w));else return r&&E.executeLinkingSuccessOrFailureCommands(O,r,!1),Promise.reject(Error(w.statusMessage))}).catch(function(w){_.el(w);
_.Jn("gamingAccountLinkStatusChanged",{serviceId:g,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(w)}):this.getAccountLinkPromises[g]=B.startLinkingSession({serviceId:g})};
_.S.handleAccountLinkCommand=function(g){_.n(g,z0M)&&this.handleLinkRequest(_.n(g,z0M))};
_.S.handleLinkRequest=function(g){var r=this,E=g.thirdPartyId;if(E)if(this.isGalInteractionPopupMode(E)){var B=function(){r.closeAndFire("ytd-gaming-account-link-setting-renderer",g.onFailureCommand)},w=function(){r.closeAndFire("ytd-gaming-account-link-setting-renderer",g.onSuccessCommand)};
this.lastCallback=w;this.getAccountLinkPromises[E].then(function(O){lPA(O).then(function(M){M.statusCode===1?w():B()})}).catch(function(){B()})}else this.getAccountLinkPromises[E].then(function(O){lPA(O).then(function(M){if(M.statusCode!==1)return Promise.reject(Error(M.statusMessage))})}).catch(function(O){_.el(O);
_.Jn("gamingAccountLinkStatusChanged",{serviceId:E,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(O)})};
_.S.closeAndFire=function(g,r){_.OS(this.hostElement,"yt-close-popup-action",[g]);r&&_.o6([r],this.hostElement)};
_.S.handleAccountUnlinkCommand=function(g){_.n(g,kiM)&&this.handleUnlinkRequest(_.n(g,kiM))};
_.S.handleUnlinkRequest=function(g){var r=this,E=g.thirdPartyId;if(E){var B=function(){r.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",g.onFailureCommand)},w=function(){r.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",g.onSuccessCommand)};
this.lastCallback=w;var O=Eyt(this.createGalConfig(E,!1));this.unlinkUserGal(O,E).then(function(M){M.statusCode===1?w():B()}).catch(function(){B()})}};
_.S.unlinkUserGal=function(g,r){return g.deleteLink(r)};
_.S.handleLogAccountLinkingEventCommand=function(g){_.Y("enable_gel_log_commands")&&_.n(g,HYm)&&(g=_.n(g,HYm).event)&&_.Jn("gamingAccountLinkStatusChanged",g)};
_.hx.Object.defineProperties(L1,{template:{configurable:!0,enumerable:!0,get:function(){return Q9L()}}});
_.m([_.P(_.ls.YtOpenPopupBehavior),_.L("design:type",Object)],L1.prototype,"ytOpenPopupBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],L1.prototype,"ytActionHandlerBehavior",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-third-party-manager"})],L1);_.I(L1,"ytd-third-party-manager",function(){return Q9L()},{mode:_.My("kevlar_poly_si_batch_j081")?1:2});var zx6,kY5=function(){if(zx6!==void 0)return zx6;var g=document.createElement("template");_.b(g,"\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");g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return zx6=g};var H4D=_.me(["\n          :root {\n            --page-manager-transition-exit-ms: ","ms;\n            --page-manager-transition-wait-ms: ","ms;\n            --page-manager-transition-enter-ms: ","ms;\n          }\n      "]),VN=function(){var g=_.a.apply(this,arguments)||this;g.currentPage=void 0;g.renderLoadingStateJobId=0;g.updatePageDataJobId=0;g.pageDisposeJobsets=new WeakMap;g.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"};g.shouldApplyLockupToWatchTransition=_.Y("web_thumbnail_to_watch_transition");g.shouldApplySlideTransition=_.Sg("web_page_transition_type")==="slide"||_.Y("enable_plj_landing_page");g.shouldApplyLearningJourneyTransition=_.Y("enable_plj_landing_page");g.TEST_ONLY=void 0;return g};
_.f(VN,_.a);_.S=VN.prototype;_.S.ready=function(){var g=_.rM();g.addProvider({provide:_.vK,useValue:this});g.addProvider({provide:_.UWZ,useValue:this})};
_.S.created=function(){this.pagePool=new mV6;this.contextSwitcher=new BNL};
_.S.attached=function(){_.Sh(this.hostElement,"attached");var g=_.rM().resolve(_.gM(_.eN));g&&(this.contextSwitcher.JSC$17751_networkService_=g);this.viewTransitionManager=_.rM().resolve(_.HQ);this.setupPageTransitionAnimation()};
_.S.getPageOffset=function(g){return g.getScrollTop()};
_.S.setPageOffset=function(g,r){try{g.setScrollTop(r)}catch(E){}};
_.S.setPageOffsetForNavigation=function(g,r){_.Sh(this.hostElement,"yt-navigate-set-page-offset",{page:g,offset:r===void 0?0:r})};
_.S.pauseActiveContext=function(){var g=this.contextSwitcher;g.activeContext_&&g.activeContext_.pause()};
_.S.getModuleNameForType=function(g){return g==="watch"?_.Y("kevlar_watch_fixie")?"watchFixie":_.Y("kevlar_watch_grid")?"watchGrid":"watchFlexy":g==="shorts"||g==="search"?g:"browse"};
_.S.attachPage=function(g){var r,E=!_.Y("pc_is_attached_ks")&&(g==null?void 0:(r=g.polymerController)==null?void 0:r.isAttached);if(!g.isAttached&&!E)try{_.S3(this.hostElement).appendChild(g)}catch(w){var B;_.el(new _.Rj("Error attaching page element for component",{origin:(B=this.currentPage)==null?void 0:B.is,component:g.is}))}};
_.S.setActivePage=function(g){var r=this,E=!1,B=function(){var w=r.isOnWatch(),O=r.currentPage;if(g)if(g!==r.currentPage){O&&(O.hidden=!0,O.active=!1,O.removeAttribute("role"));r.currentPage=g;var M,u=_.zF((M=r.data)==null?void 0:M.endpoint);O&&_.Sh(r.hostElement,"yt-page-type-changed",{oldPageType:O.is,newPageType:g.is,newPageSubtype:u});_.V7().dispatch(_.Bs({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:g.is}));_.V7().dispatch(_.Bs({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:u||""}));g.hidden=
!1;r.attachPage(g);g.active=!0;g.setAttribute("role","main");O&&r.setPageOffsetForNavigation(g,0);_.Y("kevlar_remove_page_dom_on_switch")&&!w&&O&&_.S3(r.hostElement).removeChild(O)}else E=!0;else w=new _.Rj("Unable to set active page",O?O.is:"unknown origin",(u=r.data)==null?void 0:u.endpoint),_.tn(w)};
this.shouldRunLockupToWatchTransition(this.currentPage,g)?bh4(this.viewTransitionManager,B):this.shouldRunBrowseTransition(this.currentPage,g)?ARz(this.viewTransitionManager,B):this.shouldRunLearningJourneyTransition(this.currentPage,g)?PW4(this.viewTransitionManager,B):B();return E};
_.S.shouldRunLockupToWatchTransition=function(g,r){return this.shouldApplyLockupToWatchTransition&&(g==null?void 0:g.is)==="ytd-browse"&&this.isWatchPage(r)};
_.S.shouldRunBrowseTransition=function(g,r){return this.shouldApplySlideTransition&&(g==null?void 0:g.is)==="ytd-browse"&&(r==null?void 0:r.is)==="ytd-browse"&&g!==r};
_.S.shouldRunLearningJourneyTransition=function(g,r){return this.shouldApplyLearningJourneyTransition&&(g==null?void 0:g.is)==="ytd-browse"&&((r==null?void 0:r.is)==="ytd-watch-learning-journey"||(r==null?void 0:r.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.S.shouldRunWatchNextLoadedTransition=function(g,r){return this.viewTransitionManager&&g.is==="ytd-watch-flexy"&&r};
_.S.updatePageData=function(g){var r=this,E=this.data;this.updatePageDataJobId&&_.F6.cancelJob(this.updatePageDataJobId);this.data=g;return new _.D8(function(B){var w=function(){g.filler?r.performDataUpdate(g,E):xyA(function(){r.performDataUpdate(g,E)});
var l=_.ep();_.Wa(l,"cr")||l.processSignal("cr");B()},O=function(){g&&g.page==="watch"?r.updatePageDataJobId=_.pm(_.F6,w):w()};
if(_.Y("kevlar_enable_mss_page_modules_client")&&g){var M=_.rM().resolve(_.CZ),u=r.getModuleNameForType(g.page);(M=$h$(M,[u]))?M.then(O):O()}else O()})};
_.S.isDownloadsPage=function(g){var r,E;return(g==null?void 0:(r=g.endpoint)==null?void 0:(E=r.browseEndpoint)==null?void 0:E.browseId)==="FEdownloads"};
_.S.setPlayerSyncInterval=function(g){var r;return _.q(function(E){if(E.nextAddress==1)return _.D(E,_.rM().resolve(_.wr),2);r=E.yieldResult;r.setUpPositionSyncInterval(g);_.Q3(E)})};
_.S.performDataUpdate=function(g,r){_.Y("kevlar_early_popup_close")||_.OS(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var E=!g.filler;E&&(_.F4("lps"),_.Y("config_age_report_killswitch")||GxD());var B=gP(g),w,O=!1;if(_.Y("kevlar_remove_page_dom_on_switch")){var M=r&&gP(r);B===M&&(w=this.getCurrentPage())}w||(w=C1(this.pagePool,B));E&&NLD(this.pagePool.elementPoolPopulator,B);E&&!this.renderLoadingStateJobId&&(O=this.setActivePage(w));if(w){M=B==="watch";var u=
B==="shorts",l=B==="learning_journey_watch";_.Y("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(w);if(M||u||l)w.playerData=g.playerResponse;if(u)if(_.Y("web_enable_delay_shorts_sequence_call")){g.reelWatchSequenceResponse&&(w.reelWatchSequenceResponse=g.reelWatchSequenceResponse);w.currentEndpoint=g.endpoint;var Q;w.isPreviousPageShorts=!!(r==null?0:(Q=r.endpoint)==null?0:Q.reelWatchEndpoint);var z,k;g.cachedSequenceParams=((z=g.endpoint)==null?void 0:(k=z.reelWatchEndpoint)==
null?void 0:k.sequenceParams)||g.cachedSequenceParams||(r==null?void 0:r.cachedSequenceParams);var H,R;g.cachedSequenceProvider=((H=g.endpoint)==null?void 0:(R=H.reelWatchEndpoint)==null?void 0:R.sequenceProvider)||g.cachedSequenceProvider||(r==null?void 0:r.cachedSequenceProvider);w.cachedSequenceParams=g.cachedSequenceParams;w.cachedSequenceProvider=g.cachedSequenceProvider}else{g.reelWatchSequenceResponse?w.reelWatchSequenceResponse=g.reelWatchSequenceResponse:g.cachedReelWatchSequenceResponse?
w.reelWatchSequenceResponse=g.cachedReelWatchSequenceResponse:_.Y("web_enable_cached_reel_sequence_fix")&&w.cachedReelWatchSequenceResponse&&!w.reelWatchSequenceResponse&&(w.reelWatchSequenceResponse=w.cachedReelWatchSequenceResponse);w.currentEndpoint=g.endpoint;var A;w.isPreviousPageShorts=!!(r==null?0:(A=r.endpoint)==null?0:A.reelWatchEndpoint);g.cachedReelWatchSequenceResponse=g.reelWatchSequenceResponse||g.cachedReelWatchSequenceResponse||(r==null?void 0:r.cachedReelWatchSequenceResponse);w.cachedReelWatchSequenceResponse=
g.cachedReelWatchSequenceResponse}Q=this.isDownloadsPage(g);z=this.isDownloadsPage(r);Q&&!z?this.setPlayerSyncInterval(6E5):!Q&&z&&this.setPlayerSyncInterval();_.Y("block_all_player_prefetch_requests")||this.preparePrefetchRequest(g,w,E,M,u,l);tk4(_.rM().resolve(_.ea),r,g);_.L4(_.rM().resolve(_.PK));_.Y("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(w);E?(E=typeof w.loadPage,E==="function"?(w.pageContext=wYF(this.contextSwitcher,w,w.data!==g.response),E=function(){w.loadPage(g.response)},
this.shouldApplySlideTransition&&w.is==="ytd-browse"&&O&&(B==="learning"||this.isDifferentBrowseId(g==null?void 0:g.endpoint,r==null?void 0:r.endpoint))?ARz(this.viewTransitionManager,E):this.shouldRunWatchNextLoadedTransition(w,O)?JR4(this.viewTransitionManager,E):E()):_.FR(new _.Rj("b/38014653 ",[B,
w.is,w.nodeName,E,w.isAttached,r&&gP(r),this.hostElement.children.length])),_.F4("pdl")):(w.hidden=!0,g.response.filler=!0,w.data=g.response,this.attachPage(w));_.Sh(this.hostElement,"yt-page-data-updated",{pageType:B})}_.fC(_.F6,function(){_.Y("logging_avoid_blocking_during_navigation")&&_.TGY().transition("none");var J=pYF(),e=w;if(g){var C=Vhv(g),X=hwM(g),Z;a:{if(g.playerResponse){var c=g.playerResponse,h;if((Z=c.auxiliaryUi)==null?0:(h=Z.messageRenderers)==null?0:h.upsellDialogRenderer){Z=c.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(g.response&&(Z=g.response,(c=Z.overlay)==null?0:c.upsellDialogRenderer)){Z=Z.overlay.upsellDialogRenderer;break a}Z=void 0}var y;var OD;h=(y=g.playerResponse)==null?void 0:(OD=y.auxiliaryUi)==null?void 0:OD.messageRenderers;y=(h==null?void 0:h.enforcementMessageViewModel)||(h==null?void 0:h.bkaEnforcementMessageViewModel);y=(y==null?void 0:y.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?y:void 0;var uB;a:{if(g.response&&(OD=g.response,(uB=OD.overlay)==null?0:
uB.commandWrapperPromoRenderer)){uB=OD.overlay.commandWrapperPromoRenderer;break a}uB=void 0}Ho6(J,C,X,Z,y,uB,e)}})};
_.S.preparePrefetchRequest=function(g,r,E,B,w,O){var M,u,l,Q,z,k,H,R,A,J,e,C,X,Z,c;return _.q(function(h){if(h.nextAddress==1)return!E||!(B||w||O)||_.Y("kevlar_disable_background_prefetch")&&_.aa(_.LTS)()===0?h.return():(M=_.dt(r))?_.D(h,M.getPlayerPromise(),2):h.return();u=h.yieldResult;l=_.rM().resolve(_.gM(_.eN));if(!l)return h.return();if(w)return Q=_.rx(_.HP),hhL(Q,(z=g.endpoint)==null?void 0:z.reelWatchEndpoint,r.reelWatchSequenceResponse,u,l),h.return();R=(k=g.response)==null?void 0:(H=k.responseContext)==
null?void 0:H.webResponseContextExtensionData;if(!R)return h.return();X=(A=g.response)==null?void 0:(J=A.contents)==null?void 0:(e=J.twoColumnWatchNextResults)==null?void 0:(C=e.autoplay)==null?void 0:C.autoplay;Z=_.rM().resolve(_.t6);c=_.rx(_.HP);ZW6(c,R,u,l,Z,X);_.Q3(h)})};
_.S.movePlayerToWatch=function(g){var r=this,E,B;return _.q(function(w){E=C1(r.pagePool,"watch");B=E.getPlayerContainer();g.appendTo(B);_.Q3(w)})};
_.S.movePlayerToShorts=function(g){var r=this,E,B,w;return _.q(function(O){E=C1(r.pagePool,"shorts");B=E.getPlayerContainer();(w=g)==null||w.appendTo(B,void 0,!0);_.Q3(O)})};
_.S.getPlayerFromWatch=function(){var g=C1(this.pagePool,"watch");return _.dt(g)};
_.S.getPlayerFromShorts=function(){var g=C1(this.pagePool,"shorts");return _.dt(g)};
_.S.startLoadingWatch=function(){var g=C1(this.pagePool,"watch");this.renderLoadingStateJobId?(_.F6.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(g)};
_.S.startLoadingShorts=function(){var g=C1(this.pagePool,"shorts");this.setActivePage(g)};
_.S.startLoadingLearningJourney=function(){var g=C1(this.pagePool,"learning_journey_watch");this.setActivePage(g)};
_.S.getCurrentPage=function(){return this.currentPage};
_.S.getDestinationPageType=function(){return this.destinationPageType};
_.S.getCurrentData=function(){return this.data};
_.S.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.S.isOnShorts=function(){var g;return((g=this.currentPage)==null?void 0:g.is)==="ytd-shorts"};
_.S.isWatchPage=function(g){return!!g&&(g.is==="ytd-watch-flexy"||g.is==="ytd-watch-fixie"||g.is==="ytd-watch-grid")};
_.S.preparePage=function(g,r){var E=this,B=function(){var M=E.pagePool.preparePage(g,E.currentPage,r);M&&E.attachPage(M)},w=function(M){_.Wf(M,r);
_.el(M)};
if(_.Y("kevlar_enable_mss_page_modules_client")){var O=this.getModuleNameForType(g);if(O=$h$(_.rM().resolve(_.CZ),[O])){O.then(B.bind(this)).catch(w.bind(this));return}}try{B()}catch(M){w(M)}};
_.S.lazyPrepareCriticalPages=function(g,r){g=_.zF(r)||g;_.Y("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(g).then(this.maybePrepareWatchPage.bind(this,g)):this.maybePrepareWatchPage(g)};
_.S.maybePrepareWatchPage=function(g){g!=="watch"&&_.fC(_.F6,this.preparePage.bind(this,"watch"))};
_.S.downloadPageModules=function(g){g=this.getModuleNameForType(g);var r=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);r.delete(g);var E=_.rM().resolve(_.CZ);E.JSC$16509_loadModules(g);return E.JSC$16509_loadModules.apply(E,_.jW(r))};
_.S.renderPageLoadingState=function(g,r){this.preparePage(g,r);var E=C1(this.pagePool,g);E.loadingData&&(E.loadingData.endpoint=r);E.loading=!0;this.setActivePage(E);g!=="watch"&&g!=="learning_journey_watch"||_.Sh(this.hostElement,"yt-guide-close")};
_.S.prepareForNavigation=function(g,r){var E=this;if(this.currentPage&&this.data){var B=_.zF(r)||g;this.destinationPageType=B;gP(this.data)==B&&_.Sh(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((g==="watch"||g==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.F6.cancelJob(this.renderLoadingStateJobId);_.rM().resolve(_.ea).deactivate(r);var w=this.data;this.renderLoadingStateJobId=_.jT(_.F6,function(){if(E.data!=
w){var O=C1(E.pagePool,g);E.setActivePage(O)}else E.renderPageLoadingState(g,r);E.renderLoadingStateJobId=0},150)}};
_.S.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var g=new _.vP(1);this.currentPage.pageDisposeJobs.forEach(function(r){_.dV(g,r)});
this.pageDisposeJobsets.set(this.currentPage,g)}};
_.S.flushPageDisposeJobset=function(g){var r=this.pageDisposeJobsets.get(g);r&&(r.flushJobs(),this.pageDisposeJobsets.delete(g))};
_.S.onYtStopOldPlayer=function(g,r){r=r===void 0?!1:r;var E,B=_.Or("kevlar_new_stop_old_player_logic_pages");if(_.Y("kevlar_check_current_page_on_stop_old_player")&&(B.length===0||this.currentPage&&B.includes(this.currentPage.is)))if(this.data&&(E=gP(this.data)),gP(g)===E&&this.currentPage&&gP(this.currentPage.data)!==E)var w=_.dt(this.currentPage);else E=gP(this.data),w=C1(this.pagePool,E),w=_.dt(w);else this.data&&(E=gP(this.data),w=C1(this.pagePool,E),w=_.dt(w));if(w)if(g=gP(g),B=C1(this.pagePool,
g),B=_.dt(B),w==B)r&&!_.Y("kevlar_disable_preemptive_player_reset")&&w.resetForNewPlayback();else if(r=E==="watch"&&g!=="watch",!r||g==="shorts"||_.RxT()&&!MEM(this.data)&&g!=="yts-products"&&g!="mini_app"&&g!="playables")E=_.rM().resolve(_.ea),r&&E.isMiniplayerActive()&&E.pipController.getWindow()||w.stop()};
_.S.setupPageTransitionAnimation=function(){if(this.shouldApplySlideTransition&&this.shouldApplyLockupToWatchTransition){var g=_.wM("web_page_transition_exit_ms"),r=_.wM("web_page_transition_wait_ms"),E=_.wM("web_page_transition_enter_ms");if(!isNaN(g)||!isNaN(r)||!isNaN(E))if(g=QT$(H4D,g,r,E))r=document.createElement("style"),r.textContent=_.s8l(g),document.head.appendChild(r)}};
_.S.isDifferentBrowseId=function(g,r){g=_.n(g,_.ka);r=_.n(r,_.ka);return(g==null?void 0:g.browseId)!==(r==null?void 0:r.browseId)};
_.hx.Object.defineProperties(VN,{template:{configurable:!0,enumerable:!0,get:function(){return kY5()}}});
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],VN.prototype,"ytActionHandlerBehavior",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-page-manager"})],VN);_.I(VN,"ytd-page-manager",function(){return kY5()},{mode:_.My("kevlar_poly_si_batch_j081")?1:2});var hc=function(g,r,E){E=E===void 0?!1:E;_.f5.call(this);this.draggableElement=g;this.callbacks=r;this.allowClicks=E;this.dragOccurred=!1;this.internalDragger=new _.PS(this.draggableElement);this.dragDelay=new _.dH(this.delayedDrag.bind(this));pdM(this);this.allowClicks&&(_.GUI(this.internalDragger,5),g.addEventListener("click",_.Do(this,this.validateClick),{capture:!0}))};
_.f(hc,_.f5);var pdM=function(g){_.j_(g.internalDragger,"earlycancel",function(){g.allowClicks&&(g.dragOccurred=!1)});
_.j_(g.internalDragger,"start",function(r){var E,B;(B=(E=g.callbacks).onStartDrag)==null||B.call(E,r);!r.defaultPrevented&&g.allowClicks&&(g.dragOccurred=!0)});
_.j_(g.internalDragger,"beforedrag",function(r){r.preventDefault();g.lastOffset=new _.JL(r.clientX-g.internalDragger.startX,r.clientY-g.internalDragger.startY);g.dragDelay.start()});
_.j_(g.internalDragger,"end",function(){g.dragDelay.stop();var r,E;(E=(r=g.callbacks).onEndDrag)==null||E.call(r);g.lastOffset=void 0})};
hc.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
hc.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.Do(this,this.validateClick),{capture:!0})};
hc.prototype.validateClick=function(g){this.dragOccurred&&(this.dragOccurred=!1,g.stopPropagation(),g.preventDefault())};var Z3=function(g,r){_.f5.call(this);this.JSC$17948_resizeContainer=g;this.callbacks=r;this.aspectRatio=16/9;this.JSC$17948_resizers=[];g=_.U(this.JSC$17948_resizeContainer.children);for(r=g.next();!r.done;r=g.next())Y_g(this,r.value)};
_.f(Z3,_.f5);Z3.prototype.disposeInternal=function(){for(var g=_.U(this.JSC$17948_resizers),r=g.next();!r.done;r=g.next())r.value.dispose();g=_.U(this.JSC$17948_resizeContainer.children);for(r=g.next();!r.done;r=g.next())r.value.setAttribute("disabled","");this.JSC$17948_resizers.length=0};
Z3.prototype.setSize=function(g){this.currentMiniplayerSize=g};
Z3.prototype.setAspectRatio=function(g){this.aspectRatio=g};
Z3.prototype.update=function(g,r){for(var E=_.U(this.JSC$17948_resizeContainer.children),B=E.next();!B.done;B=E.next()){B=B.value;var w=B.getAttribute("alignment");_.M1(B,"disabled",w===g||w===r)}};
var Y_g=function(g,r){var E=r.getAttribute("alignment"),B=new hc(r,{onStartDrag:function(w){if(r.hasAttribute("disabled"))w.preventDefault();else{g.dragStartSize=g.currentMiniplayerSize;var O,M;(M=(O=g.callbacks).onStartResize)==null||M.call(O)}},
onDrag:function(w){if(g.dragStartSize){E!=="north"&&E!=="west"||w.scale(-1);var O=E==="north"||E==="south";w=O?w.y:w.x;O&&g.aspectRatio>=1?w*=g.aspectRatio:!O&&g.aspectRatio<1&&(w/=g.aspectRatio);g.callbacks.onResize(g.dragStartSize+w)}}});
g.JSC$17948_resizers.push(B)};var Rx5;var niD=_.dG(function(g){var r=_.VI("yt-draggable"),E=g.onDrag,B=g.onDragStart,w=g.onDragEnd,O=_.y7(g,{allowClicks:!1,dragThreshold:5}),M=O.dragThreshold,u=O.allowClicks;g=O.children;O=O.className;var l=void 0,Q=void 0,z=new _.JL(0,0),k=!1;_.Jk(function(){l=new _.PS(r.value);Q=new _.dH(R);H(l,Q);if(u()){_.GUI(l,M());var J;(J=r.value)==null||J.addEventListener("click",A,{capture:!0})}_.J5(function(){var e;(e=l)==null||e.dispose();if(u()){var C;(C=r.value)==null||C.removeEventListener("click",A,{capture:!0})}})});
var H=function(J,e){_.j_(J,"earlycancel",function(){u()&&(k=!1)});
_.j_(J,"start",function(C){B==null||B(C);C.defaultPrevented||u()&&(k=!0)});
_.j_(J,"beforedrag",function(C){l&&Q&&(C.preventDefault(),z=new _.JL(C.clientX-l.startX,C.clientY-l.startY),Q.start())});
_.j_(J,"end",function(){e.stop();w==null||w();z=new _.JL(0,0)})},R=function(){z&&E(z)},A=function(J){k&&(k=!1,J.stopPropagation(),J.preventDefault())};
return _.G("yt-draggable",{el:r,class:_.QY("ytDraggableComponentHost",O)},g)},"xg");var s9A=_.dG(function(g){var r=_.U(_.Dk(0,void 0,"CvAwBd")),E=r.next().value,B=r.next().value;r=function(w){var O={},M={};return _.G(niD,{className:_.QY("ytdMiniplayerComponentResizer",(O.ytdMiniplayerComponentResizerDisabled=function(){return w===g.horizontalAlignment()||w===g.verticalAlignment()},O.ytdMiniplayerComponentResizerNorth=w==="north",O.ytdMiniplayerComponentResizerEast=w==="east",O.ytdMiniplayerComponentResizerSouth=w==="south",O.ytdMiniplayerComponentResizerWest=w==="west",O)),
onDragStart:function(){B(g.currentMiniplayerSize());if(g.onResizeStart)g.onResizeStart()},
onDrag:function(u){w!=="north"&&w!=="west"||u.scale(-1);var l;u=(l=w==="north"||w==="south")?u.y:u.x;var Q=g.currentAspectRatio();l&&Q>=1?u*=Q:!l&&Q<1&&(u/=Q);l=u;g.onResize(E()+l)}},_.G("div",{class:_.QY("ytdMiniplayerComponentResizerCorner",(M.ytdMiniplayerComponentResizerNorthCorner=w==="north",M.ytdMiniplayerComponentResizerEastCorner=w==="east",M.ytdMiniplayerComponentResizerSouthCorner=w==="south",M.ytdMiniplayerComponentResizerWestCorner=w==="west",M))}))};
return _.G("div",{class:"ytdMiniplayerComponentResizers"},r("north"),r("east"),r("south"),r("west"))},"yg");var fut=16/9,$Ft=_.dG(function(){var g=_.VI("ytd-miniplayer"),r=_.U(_.Dk(new _.oQ(NaN,NaN),void 0,"GNXZTe")),E=r.next().value,B=r.next().value;r=_.U(_.Dk(!1,void 0,"XqI9xc"));var w=r.next().value,O=r.next().value;r=_.U(_.Dk(!1,void 0,"k3iLGe"));var M=r.next().value,u=r.next().value;r=_.U(_.Dk(!1,void 0,"ApjQ9b"));var l=r.next().value,Q=r.next().value;r=_.U(_.Dk(!1,void 0,"PzlhGe"));var z=r.next().value,k=r.next().value;r=_.U(_.Dk(!1,void 0,"pm6fl"));var H=r.next().value,R=r.next().value;r=_.U(_.Dk(!1,
void 0,"xQrL1e"));var A=r.next().value,J=r.next().value;r=_.U(_.Dk(fut,void 0,"NcrWZb"));var e=r.next().value,C=r.next().value,X=_.U(_.Dk(!1,void 0,"e5rxBc"));r=X.next().value;var Z=X.next().value;X=_.U(_.Dk(!1,void 0,"uZtCde"));var c=X.next().value,h=X.next().value;X=_.U(_.Dk(void 0,void 0,"wKFvEe"));var y=X.next().value,OD=X.next().value;X=_.U(_.Dk(_.Ca("HTML_DIR")==="rtl"?"west":"east",void 0,"FF7oMe"));var uB=X.next().value,zS=X.next().value;X=_.U(_.Dk("south",void 0,"QXcssb"));var jV=X.next().value,
PJ=X.next().value;X=_.U(_.Dk(400,void 0,"Fr8gSb"));var At=X.next().value,XY=X.next().value,xc=_.rM().resolve(_.ea).miniplayerPropSignalMap[0],rg=xc.data,$t=xc.externalPlaylistData;X=xc.toastData;var tD=xc.playabilityStatus,GD=xc.isReadyToResume,xb=xc.isDisabled,zL=xc.watchWhile,AD=xc.playerVe,lA=xc.expandVe,pt=xc.closeVe,Mo=xc.readyToResumeVe,un=xc.readyToResumeCloseVe,sw=xc.repositionVe,J8=xc.resizeVe;xc=_.U(_.Y3(GD));var Rm=xc.next().value,Lw=xc.next().value,cb=!1,ZI=!1,Ow;_.Jk(function(){B(_.ny());
g.value.addEventListener("animationend",function(Im){Im.target===g.value&&(R(!1),J(!1))});
QcL(g.value)});
_.LC("yt-window-resized",function(Im){Im&&B(Im)});
var XZ=function(){Ow&&C(Ow.getVideoAspectRatio())},RA=function(){if(Ow){var Im=Ow.getPlayerState()===1;
Rm()&&Im&&Lw(!1)}},kb=function(){var Im=lA();
if(Im){var PF=_.PE(3);PF&&_.Lu(PF,Im)}},bn=function(){var Im=pt(),PF=un();
Im&&_.Lu(_.PE(3),Im);GD()&&PF&&_.Lu(_.PE(3),PF)};
_.LC("yt-activate-miniplayer",function(Im){var PF;return _.q(function(TL){if(TL.nextAddress==1)return w()?TL.return():_.D(TL,(PF=_.rM().resolve(_.ea).getPlayerElement())==null?void 0:PF.getPlayerPromise(),2);Ow=TL.yieldResult;if(!Ow)return TL.return();!c()&&_.Y("kevlar_watch_while_v2")&&(PJ(Im&&!_.Y("kevlar_watch_while_bottom_align")?"north":"south"),zS(_.Ca("HTML_DIR")==="rtl"?"west":"east"));var El=Ow;El.addEventListener("onVideoDataChange",XZ);El.addEventListener("onStateChange",RA);El.addEventListener("onExpandMiniplayer",
kb);El.addEventListener("onCloseMiniplayer",bn);C(Ow.getVideoAspectRatio());O(!0);oDL()||R(!0);_.Q3(TL)})});
_.LC("yt-deactivate-miniplayer",function(Im){return _.q(function(PF){if(!w())return PF.return();O(!1);Lw(!1);J(Im);k(!1);u(!1);if(Ow){var TL=Ow;TL.removeEventListener("onVideoDataChange",XZ);TL.removeEventListener("onStateChange",RA);TL.removeEventListener("onExpandMiniplayer",kb);TL.removeEventListener("onCloseMiniplayer",bn)}oDL()||R(!0);_.Q3(PF)})});
var D4=function(){return!(zL()&&_.Y("kevlar_watch_while_modern"))},UU=function(){var Im;
return!((Im=$t())==null||!Im.contents)},OM=function(){var Im=At();
var PF=E();PF=Math.min(Math.min(PF.width,PF.height)-32,720);var TL=e(),El=D4(),f9=UU()&&M(),K$=Math.min(Im,PF);Im=new _.oQ(192,El?116:192);TL=V35(new _.oQ(f9?fut:TL,1),new _.oQ(K$,El?K$-76:K$));Im.width<=TL.width&&Im.height<=TL.height||(LG4(TL,Im),TL.width=Math.min(TL.width,PF),TL.height=Math.min(TL.height,PF));return new _.oQ(TL.width,_.bj(192,TL.height+Y96(El,f9),720))},RF=function(){var Im=OM(),PF=D4(),TL=UU()&&M();
return new _.oQ(Im.width,Im.height-Y96(PF,TL))},cE=function(){var Im=function(PF){PF.target===g.value&&z()&&(k(!1),g.value.removeEventListener("transitionend",Im))};
oDL()||(g.value.addEventListener("transitionend",Im),k(!0));u(!M())};
_.bQ(function(){var Im=AD(),PF=_.PE(3),TL=_.JF(3);if(PF&&TL&&Im){_.N2(PF,TL,Im);TL=sw();var El=J8(),f9=lA(),K$=pt(),SL=un();f9&&K$&&SL&&(_.I6(PF,Im,[f9,K$,SL]),_.ck(PF,[f9,K$]));TL&&El&&_.I6(PF,Im,[TL,El])}},"Snz6Ld");
_.bQ(function(){var Im=Mo();if(Im){var PF=_.PE(0),TL=_.JF(0);PF&&TL&&(_.N2(PF,TL,Im),_.ck(PF,[Im]))}},"X1FpHd");
xc={};return _.G("ytd-miniplayer",{el:g,class:_.QY("ytdMiniplayerComponentHost",(xc.ytdMiniplayerComponentVisible=function(){return w()||H()},xc.ytdMiniplayerComponentAnimatingSnap=l,xc.ytdMiniplayerComponentAnimatingPlaylistExpand=z,xc.ytdMiniplayerComponentAnimatingFade=H,xc),function(){if(H()){var Im=jV();
var PF=w(),TL=A();Im=PF?Im==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":TL?Im==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":Im==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else Im="";return Im}),
style:_.Rl({top:function(){return jV()==="north"?"16px":""},
right:function(){return uB()==="east"?"16px":""},
bottom:function(){return jV()==="south"?"16px":""},
left:function(){return uB()==="west"?"16px":""},
width:function(){return OM().width+"px"},
height:function(){return OM().height+"px"},
transform:function(){var Im=y();return Im?"translate("+Im.x+"px, "+Im.y+"px)":""}})},_.G("div",{class:"ytdMiniplayerComponentContent"},_.G(niD,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(Im){var PF=psg(uB(),jV(),E(),OM(),y()),TL=RF();Math.abs(Im.clientY-(PF.y+TL.height))>15?(Z(!0),Im=_.PE(3),PF=sw(),cb||(cb=!0,Im&&PF&&_.ck(Im,[PF])),Im&&PF&&_.Lu(Im,PF)):Im.preventDefault()},
onDrag:function(Im){OD(Im)},
onDragEnd:function(){var Im=z9$(psg(uB(),jV(),E(),OM(),y()),E(),OM()),PF=Hfm(uB(),jV(),E(),OM()),TL=Hfm(Im.horizontalAlignment,Im.verticalAlignment,E(),OM());TL=new _.JL(TL.x-PF.x,TL.y-PF.y);var El;PF=PF.y+(((El=y())==null?void 0:El.y)||0)+OM().height/2;var f9=function(){uB()===Im.horizontalAlignment&&jV()===Im.verticalAlignment||h(!0);zS(Im.horizontalAlignment);PJ(Im.verticalAlignment);OD(void 0)},K$=function(SL){SL.target===g.value&&l()&&(Q(!1),f9(),g.value.removeEventListener("transitionend",K$))};
Z(!1);jV()==="south"&&PF>E().height?(f9(),_.rM().resolve(_.ea).close()):(g.value.addEventListener("transitionend",K$),Q(!0),OD(TL))}},_.G(_.p,{cond:w,
then:function(){return _.G(_.RKM,{isDisabled:xb,playabilityStatus:tD,size:RF})}}),_.G(_.p,{cond:D4,
then:function(){return _.G(_.pHg,{isReadyToResume:Rm,data:rg,expanded:M,onExpandClick:cE,playlistData:$t})}}),_.G(_.p,{cond:r,
then:function(){return _.G("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.G(_.p,{cond:function(){return UU()&&M()||z()},
then:function(){return _.G(_.Pgn,{className:"ytdMiniplayerComponentPlaylistPanel",data:$t,hideHeaderText:!0,withinMiniplayer:!0})}}),_.G("div",{class:"ytdMiniplayerComponentToast"},_.G(_.nu4,{toastData:X}))),_.G(s9A,{onResize:function(Im){XY(_.bj(192,Im,720))},
onResizeStart:function(){var Im=_.PE(3),PF=J8();ZI||(ZI=!0,Im&&PF&&_.ck(Im,[PF]));Im&&PF&&_.Lu(Im,PF)},
currentAspectRatio:e,currentMiniplayerSize:At,horizontalAlignment:uB,verticalAlignment:jV}))},"zg");_.Y("ytd_miniplayer_to_wiz")&&_.BK($Ft,"ytd-miniplayer",{});_.BK(_.nu4,"ytd-miniplayer-toast",{props:{toastData:_.cP}});var j9A=16/9,Aig=new _.oQ(400,400/j9A),yN=function(){var g=_.a.apply(this,arguments)||this;g.active=!1;g.hasNoData=!1;g.enabled=!1;g.expanded=!1;g.readyToResume=!1;g.isDisabled=!1;g.externalPlaylistData={};g.premiumBadges=[];g.watchWhile=!1;g.playerState=null;g.verticalAttachment="south";g.horizontalAttachment=_.Ca("HTML_DIR")==="rtl"?"west":"east";g.isAnimatingFade=!1;g.isAnimatingSnap=!1;g.isAnimatingExpand=!1;g.isDragging=!1;g.playerHidden=!1;g.hasPlaylistData=!1;g.closed=!1;g.expandedClosed=!1;
g.isForReadyToResume=!1;g.watchResponse=null;g.player=null;g.playerVe=null;g.expandVe=null;g.closeVe=null;g.readyToResumeCloseVe=null;g.disabledInitialStateIsPlaying=!1;g.PLAYER_EVENTS=new Map;g.aspectRatio=j9A;g.currentMiniplayerSize=400;g.userSetSize=!1;g.userSetPosition=!1;g.userHasDragged=!1;g.maxMiniplayerSize=720;g.transform=new _.JL(0,0);g.windowDimensions=new _.oQ(NaN,NaN);g.dimensions=Aig;g.screenLayer=3;g.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return g};
_.f(yN,_.a);_.S=yN.prototype;_.S.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerWithViewTransitionManager()};
_.S.ready=function(){this.setUpDragging();this.setUpResizing()};
_.S.attached=function(){this.onWindowResized(_.ny());this.hostElement.addEventListener("animationend",_.Do(this,this.resetFadingAnimation))};
_.S.detached=function(){this.hostElement.removeEventListener("animationend",_.Do(this,this.resetFadingAnimation))};
_.S.resetFadingAnimation=function(g){g.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.S.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.S.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.S.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var g=_.PE(this.screenLayer);this.readyToResumeCloseVe&&g&&_.ck(g,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.S.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var g=_.PE(0),r=_.JF(0);g&&r&&(_.N2(g,r,this.readyToResumeVe),_.ck(g,[this.readyToResumeVe]))}};
_.S.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var g=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=g===-1||g===1||g===3)&&this.player.pauseVideo()}};
_.S.activate=function(g,r){r=r===void 0?!1:r;var E=this,B;return _.q(function(w){if(w.nextAddress==1)return E.setInitialActivatePositioning(r),E.enabled=!0,E.active=!0,E.expanded=!1,E.closed=!1,E.expandedClosed=!1,E.watchWhileHidden||(E.isAnimatingFade=!0),_.rM().resolve(_.t6).setPlaylistComponent(E.JSC$17959_playlistPanel),g.appendTo(E.playerContainer),_.D(w,g.getPlayerPromise(),2);B=w.yieldResult;B.setSizeStyle(!1,!0);E.ytPlayerListenerBehavior.listenToPlayerEvents(B,E.PLAYER_EVENTS);E.player=B;
E.watchWhile&&_.Y("kevlar_watch_while_minimum_size")&&E.setMiniplayerSize(192);E.setAspectRatio(E.player.getVideoAspectRatio());E.onIsDisabledChanged();_.Q3(w)})};
_.S.setInitialActivatePositioning=function(g){if(!this.userSetPosition&&_.Y("kevlar_watch_while_v2")){this.verticalAttachment=g&&!_.Y("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.Ca("HTML_DIR")==="rtl"?"west":"east";var r;(r=this.JSC$17959_resizers)==null||r.update(this.horizontalAttachment,this.verticalAttachment)}};
_.S.deactivate=function(g,r){var E=this;return _.q(function(B){if(!E.active)return B.return();g||(E.expanded?E.expandedClosed=!0:E.closed=!0);E.active=!1;E.isForReadyToResume=!1;r&&_.Y("kevlar_watch_while_counterfactual")||(E.isAnimatingFade=!0);E.player&&E.ytPlayerListenerBehavior.unlistenFromPlayerEvents(E.player,E.PLAYER_EVENTS);E.player=null;_.Q3(B)})};
_.S.onMetadataTap=function(g){this.expandVe&&(g===void 0||g)&&(g=_.PE(this.screenLayer))&&_.Lu(g,this.expandVe);_.pP(_.rM().resolve(_.ea))};
_.S.onDisabledTap=function(g){g.target===_.S3(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.S.onPlaylistExpandTap=function(g){if(this.hasPlaylistData){g=_.Z1(g)||[];g=_.U(g);for(var r=g.next();!r.done;r=g.next()){r=r.value;if(r===this.hostElement)break;if(r.classList&&r.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.S.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.Do(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.S.animatedResizePlaylist=function(g){g.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.Do(this,this.animatedResizePlaylist)))};
_.S.getExpandIcon=function(g){return g?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.S.onPlayerVideoDataChange=function(){var g,r=(g=this.player)==null?void 0:g.getVideoAspectRatio();r&&r!==this.aspectRatio&&this.setAspectRatio(r)};
_.S.setAspectRatio=function(g){if(this.active){this.aspectRatio=g;this.updateDimensionsAndResize();var r;(r=this.JSC$17959_resizers)==null||r.setAspectRatio(g)}};
_.S.updateDimensionsAndResize=function(){var g=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),r=this.expanded?j9A:this.aspectRatio,E=new _.oQ(192,this.showInfoBar?116:192);g=V35(new _.oQ(r,1),new _.oQ(g,this.showInfoBar?g-76:g));E.width<=g.width&&E.height<=g.height||(LG4(g,E),g.width=Math.min(g.width,this.maxMiniplayerSize),g.height=Math.min(g.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&r<=1?Math.max(g.width,g.height)+76:Math.max(g.width,g.height)));this.dimensions=
new _.oQ(g.width,this.clamp(g.height+this.getNonPlayerHeight()));this.resize()};
_.S.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var g=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=g.height+"px";var r;(r=this.player)==null||r.setInternalSize(g.width,g.height)};
_.S.getPlayerSize=function(g){var r=Math.max(0,g.height-this.getNonPlayerHeight());return new _.oQ(g.width,r)};
_.S.getNonPlayerHeight=function(){var g=0;this.showInfoBar&&(g+=76);this.expanded&&(g+=285);return g};
_.S.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.rM().resolve(_.ea).close()};
_.S.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.S.logClosingClick=function(){this.closeVe&&_.Lu(_.PE(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.Lu(_.PE(this.screenLayer),this.readyToResumeCloseVe)};
_.S.onPlayerExpandMiniplayer=function(){if(this.expandVe){var g=_.PE(this.screenLayer);g&&_.Lu(g,this.expandVe)}};
_.S.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var g=this.playerState===1;this.continueWatching&&g&&(this.continueWatching=!1);this.premiumBadges.length&&g&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.S.getScreenLayer=function(){return this.screenLayer};
_.S.logMiniplayer=function(){var g=_.PE(this.screenLayer),r=_.JF(this.screenLayer);g&&r&&this.playerVe&&(_.N2(g,r,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.I6(g,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.ck(g,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.I6(g,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.S.computePlaylistData=function(g,r){return r};
_.S.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.S.computeExpandButtonHidden=function(g,r,E){return!g||!r||E};
_.S.computePlaylistIndexHidden=function(g,r){return!g||r};
_.S.computePlaylistPanelHidden=function(g,r){return!r&&!g};
_.S.computeExpandButtonLabel=function(g){return g?_.zn("MINIPLAYER_COLLAPSE_LABEL"):_.zn("MINIPLAYER_EXPAND_LABEL")};
_.S.computeDisabledStateCloseButtonLabel=function(){return _.zn("MINIPLAYER_CLOSE",void 0,"Close")};
_.S.onWindowResized=function(g){g&&(g=this.windowDimensions=g,this.maxMiniplayerSize=Math.min(Math.min(g.width,g.height)-32,720),this.updateDimensionsAndResize())};
_.S.setUpResizing=function(){var g=this;this.JSC$17959_resizers||(this.JSC$17959_resizers=new Z3(this.JSC$17959_resizeContainer,{onStartResize:function(){g.handleResizeStart()},
onResize:function(r){g.handleResize(r)}}),this.JSC$17959_resizers.setSize(this.currentMiniplayerSize),this.JSC$17959_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.S.handleResizeStart=function(){var g=_.PE(this.screenLayer);this.userSetSize||(this.userSetSize=!0,g&&this.resizeVe&&_.ck(g,[this.resizeVe]));g&&this.resizeVe&&_.Lu(g,this.resizeVe)};
_.S.handleResize=function(g){this.setMiniplayerSize(g);this.updateDimensionsAndResize()};
_.S.setUpDragging=function(){var g=this;this.JSC$17959_dragger||(this.JSC$17959_dragger=new hc(this.draggableContainer,{onStartDrag:function(r){!g.isSafeToDrag(r)||g.isAnimatingSnap?r.preventDefault():g.handleDragStart()},
onDrag:function(r){g.transform=r;g.setTransform(g.transform)},
onEndDrag:function(){g.handleDragEnd()}},!0))};
_.S.handleDragStart=function(){this.isDragging=!0;var g=_.PE(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,g&&this.repositionVe&&_.ck(g,[this.repositionVe]));g&&this.repositionVe&&_.Lu(g,this.repositionVe)};
_.S.handleDragEnd=function(){this.isDragging=!1;var g=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&g>this.windowDimensions.height&&_.rM().resolve(_.ea).close();this.animateSnapToCorner()};
_.S.animateSnapToCorner=function(){var g=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),r=this.getNearestAttachments();r=this.getGlobalPositionFromAttachments(r.horizontalAttachment,r.verticalAttachment);g=new _.JL(r.x-g.x,r.y-g.y);this.isAnimatingSnap=!0;this.setTransform(g);this.hostElement.addEventListener("transitionend",_.Do(this,this.endSnapAnimation))};
_.S.endSnapAnimation=function(g){g.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.Do(this,this.endSnapAnimation)),this.endDrag())};
_.S.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.S.setTransform=function(g){this.hostElement.style.transform=g?"translate("+g.x+"px, "+g.y+"px)":""};
_.S.getGlobalPositionFromAttachments=function(g,r){return new _.JL(g==="west"?16:this.windowDimensions.width-this.dimensions.width-16,r==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.S.updateAttachments=function(){var g=this.getNearestAttachments();if(this.horizontalAttachment!==g.horizontalAttachment||this.verticalAttachment!==g.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=g.horizontalAttachment;this.verticalAttachment=g.verticalAttachment;var r;(r=this.JSC$17959_resizers)==null||r.update(this.horizontalAttachment,this.verticalAttachment)};
_.S.getNearestAttachments=function(){var g=this.getCurrentGlobalPosition();return{horizontalAttachment:g.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:g.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.S.getCurrentGlobalPosition=function(){var g=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return kCm(g,this.transform)};
_.S.isSafeToDrag=function(g){var r=this.playerContainer.getBoundingClientRect();return Math.abs(g.clientY-(r.y+r.height))>15};
_.S.setMiniplayerSize=function(g){this.currentMiniplayerSize=this.clamp(g);var r;(r=this.JSC$17959_resizers)==null||r.setSize(this.currentMiniplayerSize)};
_.S.clamp=function(g){return _.bj(192,g,720)};
_.S.registerWithViewTransitionManager=function(){var g=_.rM().resolve(_.gM(_.HQ));g&&GCt(g,this.hostElement)};
_.hx.Object.defineProperties(yN.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.Y("kevlar_watch_while_modern"):!0}},
showOverlayPremiumBadges:{configurable:!0,enumerable:!0,get:function(){return!this.showInfoBar&&!!this.premiumBadges.length}},
miniplayerSubtitle:{configurable:!0,enumerable:!0,get:function(){if(this.continueWatching)return{simpleText:_.zn("CONTINUE_WATCHING",void 0,"Continue watching")};var g;if((g=this.externalPlaylistData)==null?0:g.contents)return this.externalPlaylistData.titleText;var r;return(r=this.data)==null?void 0:r.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.externalPlaylistData)==null?0:g.contents){var r;return(r=_.rmP(this.externalPlaylistData))==null?void 0:r.title}var E;return(E=this.data)==null?void 0:E.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var g,r,E,B;return((g=this.externalPlaylistData)==null?void 0:g.currentIndex)!==void 0&&((r=this.externalPlaylistData)==null?0:r.totalVideos)&&!((E=this.data)==null?0:(B=E.playlistData)==null?0:B.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.cSc(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.Y("kevlar_watch_while_counterfactual")}}});
yN.prototype.onIsDisabledChanged=yN.prototype.onIsDisabledChanged;yN.prototype.readyToResumeVeChanged=yN.prototype.readyToResumeVeChanged;yN.prototype.premiumBrandingChanged=yN.prototype.premiumBrandingChanged;yN.prototype.onPlayerVeChange=yN.prototype.onPlayerVeChange;yN.prototype.hasPlaylistDataChanged=yN.prototype.hasPlaylistDataChanged;_.m([_.P(_.a9.YtPlayerListenerBehavior),_.L("design:type",_.X0)],yN.prototype,"ytPlayerListenerBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],yN.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],yN.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],yN.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],yN.prototype,"ytdReduxBehavior",void 0);_.m([_.zb("#draggable"),_.L("design:type",HTMLDivElement)],yN.prototype,"draggableContainer",void 0);
_.m([_.zb("#resize-container"),_.L("design:type",HTMLDivElement)],yN.prototype,"JSC$17959_resizeContainer",void 0);_.m([_.zb("#video-container"),_.L("design:type",HTMLDivElement)],yN.prototype,"videoContainer",void 0);_.m([_.zb("#player-container"),_.L("design:type",HTMLDivElement)],yN.prototype,"playerContainer",void 0);_.m([_.zb("#playlist"),_.L("design:type",HTMLDivElement)],yN.prototype,"JSC$17959_playlistPanel",void 0);_.m([_.K(),_.L("design:type",Object)],yN.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],yN.prototype,"active",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],yN.prototype,"hasNoData",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],yN.prototype,"enabled",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],yN.prototype,"expanded",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],yN.prototype,"readyToResume",void 0);
_.m([_.K(),_.L("design:type",Object)],yN.prototype,"isDisabled",void 0);_.m([_.K(),_.L("design:type",Object)],yN.prototype,"externalPlaylistData",void 0);_.m([_.K(),_.L("design:type",Array)],yN.prototype,"premiumBadges",void 0);_.m([_.K(),_.L("design:type",Object)],yN.prototype,"toastData",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],yN.prototype,"watchWhile",void 0);_.m([_.K(),_.L("design:type",Boolean)],yN.prototype,"premiumBranding",void 0);
_.m([_.K(),_.L("design:type",Object)],yN.prototype,"playerState",void 0);_.m([_.K(),_.L("design:type",Boolean)],yN.prototype,"continueWatching",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],yN.prototype,"verticalAttachment",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],yN.prototype,"horizontalAttachment",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],yN.prototype,"isAnimatingFade",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],yN.prototype,"isAnimatingSnap",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],yN.prototype,"isAnimatingExpand",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],yN.prototype,"isDragging",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],yN.prototype,"playerHidden",void 0);
_.m([_.K({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.L("design:type",Object)],yN.prototype,"playlistData",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.L("design:type",Object)],yN.prototype,"hasPlaylistData",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],yN.prototype,"closed",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],yN.prototype,"expandedClosed",void 0);
_.m([_.K({selector:_.GiP}),_.L("design:type",Boolean)],yN.prototype,"isSingleOptionSurveyActive",void 0);_.m([_.K({reflectToAttribute:!0,selector:_.Fc}),_.L("design:type",Boolean)],yN.prototype,"isWatchPage",void 0);_.m([_.K({reflectToAttribute:!0}),_.W("watchWhile"),_.L("design:type",Object),_.L("design:paramtypes",[])],yN.prototype,"showInfoBar",null);_.m([_.W("premiumBadges","showInfoBar"),_.L("design:type",Object),_.L("design:paramtypes",[])],yN.prototype,"showOverlayPremiumBadges",null);
_.m([_.K(),_.L("design:type",Object)],yN.prototype,"watchResponse",void 0);_.m([_.K(),_.L("design:type",Object)],yN.prototype,"miniplayerRenderer",void 0);_.m([_.K(),_.L("design:type",Object)],yN.prototype,"playabilityStatus",void 0);_.m([_.K(),_.L("design:type",Object)],yN.prototype,"playerVe",void 0);_.m([_.K(),_.L("design:type",Object)],yN.prototype,"expandVe",void 0);_.m([_.K(),_.L("design:type",Object)],yN.prototype,"closeVe",void 0);
_.m([_.K(),_.L("design:type",Object)],yN.prototype,"readyToResumeCloseVe",void 0);_.m([_.K(),_.L("design:type",_.bG)],yN.prototype,"readyToResumeVe",void 0);_.m([_.K(),_.L("design:type",_.bG)],yN.prototype,"resizeVe",void 0);_.m([_.K(),_.L("design:type",_.bG)],yN.prototype,"repositionVe",void 0);_.m([_.Gb("hasPlaylistData"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],yN.prototype,"hasPlaylistDataChanged",null);
_.m([_.Gb("playerVe"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],yN.prototype,"onPlayerVeChange",null);_.m([_.Gb("premiumBranding"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],yN.prototype,"premiumBrandingChanged",null);_.m([_.Gb("readyToResumeVe"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],yN.prototype,"readyToResumeVeChanged",null);
_.m([_.Gb("isDisabled"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],yN.prototype,"onIsDisabledChanged",null);_.m([_.W("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.L("design:type",Object),_.L("design:paramtypes",[])],yN.prototype,"miniplayerSubtitle",null);_.m([_.W("data.miniplayerTitle","externalPlaylistData"),_.L("design:type",Object),_.L("design:paramtypes",[])],yN.prototype,"miniplayerTitle",null);
_.m([_.W("externalPlaylistData","continueWatching"),_.L("design:type",Object),_.L("design:paramtypes",[])],yN.prototype,"playlistIndexMessage",null);_.m([_.K({reflectToAttribute:!0}),_.W("playabilityStatus"),_.L("design:type",Object),_.L("design:paramtypes",[])],yN.prototype,"showErrorScreen",null);_.m([_.K({reflectToAttribute:!0}),_.W("watchWhile"),_.L("design:type",Object),_.L("design:paramtypes",[])],yN.prototype,"watchWhileHidden",null);
_.Y("ytd_miniplayer_to_wiz")||_.I(yN,"ytd-miniplayer",function(){if(Rx5===void 0){var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!isDisabled]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, isDisabled)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);Rx5=g}g=Rx5;return g},{mode:2});var b4D;var v7=function(){var g=_.a.apply(this,arguments)||this;g.useListItemStyles=_.Y("web_list_item_style_for_menu_items");g.systemIcons=_.Y("kevlar_system_icons");return g};
_.f(v7,_.a);_.S=v7.prototype;_.S.ready=function(){this.hostElement.addEventListener("tap",_.Do(this,this.onEndpointTapExtra))};
_.S.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.S.onFocus=function(){var g;(g=_.S3(this.hostElement).querySelector("tp-yt-paper-item"))==null||g.focus()};
_.S.onEndpointTapExtra=function(g){_.Sh(this.hostElement,"iron-activate");var r=this.data.navigationEndpoint;r&&_.n(r,_.VrA)&&(g.stopPropagation(),_.uq(this.hostElement,[r],this.hostElement))};
_.S.computeIcon=function(g){return g&&g.iconType?_.Dh(g.iconType):""};
_.S.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.S.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.S.forceUpdateStylesOnLegacyBrowsers=function(){_.Y("kevlar_legacy_browsers")&&_.ua(this.hostElement)};
v7.prototype.forceUpdateStylesOnLegacyBrowsers=v7.prototype.forceUpdateStylesOnLegacyBrowsers;v7.prototype.onFocus=v7.prototype.onFocus;_.m([_.P(_.cY),_.L("design:type",Object)],v7.prototype,"ytdOpenPopupBehavior",void 0);_.m([_.P(_.eJZ.YtConditionalRendererBehavior),_.L("design:type",Object)],v7.prototype,"ytConditionalRendererBehavior",void 0);_.m([_.P(_.DW.YtEndpointBehavior),_.L("design:type",Object)],v7.prototype,"ytEndpointBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],v7.prototype,"data",void 0);_.m([_.K({computed:"computeIcon(data.icon)",value:""}),_.L("design:type",String)],v7.prototype,"icon",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],v7.prototype,"useIcons",void 0);_.m([_.K({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.L("design:type",Boolean)],v7.prototype,"hasSeparator",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],v7.prototype,"useListItemStyles",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],v7.prototype,"systemIcons",void 0);_.m([_.ob("focus"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],v7.prototype,"onFocus",null);_.m([_.Gb("useIcons","hasSeparator"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],v7.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.I(v7,"ytd-menu-navigation-item-renderer",function(){if(b4D===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);b4D=g}g=b4D;return g},{mode:1});var JiF;var Pez=_.Lf(_.zn("DOWNLOAD",{},"Download")),tbF=_.Lf(_.zn("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),F1M=_.Lf(_.zn("RETRY",{},"Retry")),exm=_.Lf(_.zn("PAUSE_DOWNLOADING",{},"Pause downloading")),W18=_.Lf(_.zn("RESUME_DOWNLOAD",{},"Resume download")),da=function(){var g=_.a.apply(this,arguments)||this;g.primaryText=Pez;g.primaryIconType="OFFLINE_DOWNLOAD";g.hasSecondaryContent=!1;g.hasSeparator=!1;g.transferState="TRANSFER_STATE_UNKNOWN";g.isVideoDeletedByUser=!1;g.isHidden=!1;g.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return g};
_.f(da,_.a);_.S=da.prototype;_.S.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.S.onFocus=function(){this.primaryEntry.focus()};
_.S.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.S.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.S.getRemoveAction=function(){return"ACTION_REMOVE"};
_.S.sendOfflineAction=function(g){var r=this.data.serviceEndpoint;if(r){var E=_.n(r,_.DB);E&&g&&(E.action=g);this.ytComponentBehavior.resolveCommand(r)}};
_.S.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=Pez,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=Pez;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=F1M;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=tbF;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=W18;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=tbF;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
exm;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=tbF;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=tbF;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=Pez,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.S.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.S.isSecondaryEntryHidden=function(g,r){return g?!0:!r};
_.S.computeHasSeparator=function(){var g;return!((g=this.data)==null||!g.hasSeparator)};
da.prototype.showHideButton=da.prototype.showHideButton;da.prototype.onTransferStateChange=da.prototype.onTransferStateChange;da.prototype.onFocus=da.prototype.onFocus;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],da.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],da.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],da.prototype,"ytComponentBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],da.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],da.prototype,"primaryText",void 0);_.m([_.K(),_.L("design:type",String)],da.prototype,"primaryIconType",void 0);_.m([_.K(),_.L("design:type",String)],da.prototype,"primaryAction",void 0);_.m([_.K(),_.L("design:type",Object)],da.prototype,"secondaryText",void 0);_.m([_.K(),_.L("design:type",String)],da.prototype,"secondaryIconType",void 0);
_.m([_.K(),_.L("design:type",String)],da.prototype,"secondaryAction",void 0);_.m([_.K(),_.L("design:type",Object)],da.prototype,"hasSecondaryContent",void 0);_.m([_.K({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.L("design:type",Object)],da.prototype,"hasSeparator",void 0);_.m([_.K({selector:_.Ws,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.L("design:type",String)],da.prototype,"transferState",void 0);
_.m([_.K({selector:_.W5Q,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.L("design:type",Object)],da.prototype,"isVideoDeletedByUser",void 0);_.m([_.K(),_.L("design:type",Object)],da.prototype,"isHidden",void 0);_.m([_.K({selector:_.A9A,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.L("design:type",Object)],da.prototype,"offlineabilityState",void 0);_.m([_.zb("#primary-entry"),_.L("design:type",Object)],da.prototype,"primaryEntry",void 0);
_.m([_.ob("focus"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],da.prototype,"onFocus",null);_.m([_.Yk("transferState","isVideoDeletedByUser"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],da.prototype,"onTransferStateChange",null);_.m([_.Yk("offlineabilityState"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],da.prototype,"showHideButton",null);
_.I(da,"ytd-menu-service-item-download-renderer",function(){if(JiF===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);JiF=g}g=JiF;return g},{mode:1});var Cev;var TN=function(){var g=_.a.apply(this,arguments)||this;g.useIcons=!1;g.systemIcons=_.Y("kevlar_system_icons");g.useListItemStyles=_.Y("web_list_item_style_for_menu_items");return g};
_.f(TN,_.a);_.S=TN.prototype;_.S.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.S.onFocus=function(){var g;(g=_.S3(this.hostElement).querySelector("tp-yt-paper-item"))==null||g.focus()};
_.S.onTap=function(){_.US(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var g=this.data.serviceEndpoint,r=this.data.command;if(g){var E,B=(E=this.data)==null?void 0:E.trackingParams;E=!!_.n(g,_.Cvn);B&&E&&_.Zz().dispatch(_.Bs({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:B}}));this.ytComponentBehavior.resolveCommand(g)||_.rM().resolve(_.Er).resolveCommand(g,{form:{element:this.hostElement}})}r&&(this.ytComponentBehavior.resolveCommand(r)||_.uq(this.hostElement,
[r],this.hostElement))};
_.S.computeIcon=function(g){return g&&g.iconType?_.Dh(g.iconType):""};
_.S.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.S.computeHasSeparator=function(){var g;return!((g=this.data)==null||!g.hasSeparator)};
_.S.forceUpdateStylesOnLegacyBrowsers=function(){_.Y("kevlar_legacy_browsers")&&_.ua(this.hostElement)};
_.S.computeIsSelected=function(){var g;return!((g=this.data)==null||!g.isSelected)};
TN.prototype.forceUpdateStylesOnLegacyBrowsers=TN.prototype.forceUpdateStylesOnLegacyBrowsers;TN.prototype.onTap=TN.prototype.onTap;TN.prototype.onFocus=TN.prototype.onFocus;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],TN.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.cY),_.L("design:type",Object)],TN.prototype,"ytdOpenPopupBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],TN.prototype,"ytComponentBehavior",void 0);
_.m([_.P(_.eJZ.YtConditionalRendererBehavior),_.L("design:type",Object)],TN.prototype,"ytConditionalRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],TN.prototype,"data",void 0);_.m([_.K({computed:"computeIcon(data.icon)",value:""}),_.L("design:type",String)],TN.prototype,"icon",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],TN.prototype,"useIcons",void 0);
_.m([_.K({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.L("design:type",Boolean)],TN.prototype,"hasSeparator",void 0);_.m([_.K({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.L("design:type",Boolean)],TN.prototype,"isSelected",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],TN.prototype,"systemIcons",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],TN.prototype,"useListItemStyles",void 0);
_.m([_.ob("focus"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],TN.prototype,"onFocus",null);_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],TN.prototype,"onTap",null);_.m([_.Gb("useIcons","hasSeparator"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],TN.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.I(TN,"ytd-menu-service-item-renderer",function(){if(Cev===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);Cev=g}g=Cev;return g},{mode:2});var K1v;var gf=function(){return _.a.apply(this,arguments)||this};
_.f(gf,_.a);_.S=gf.prototype;_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.onDataChanged=function(){var g=this;_.Lk(this,function(){g.postbox.openDialog();g.focus();_.Sh(g.hostElement,"yt-refit")})};
_.S.focus=function(){this.postbox.focus()};
_.S.closePopup=function(){_.OS(this.hostElement,"yt-close-popup-action")};
_.S.onYtCommentboxDismiss=function(){this.closePopup()};
gf.prototype.onYtCommentboxDismiss=gf.prototype.onYtCommentboxDismiss;gf.prototype.onDataChanged=gf.prototype.onDataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],gf.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],gf.prototype,"data",void 0);_.m([_.K({value:function(){return _.zn("SBOX_INAPPROPRIATE_CANCEL")}}),
_.L("design:type",String)],gf.prototype,"closeButtonAriaLabel",void 0);_.m([_.zb("#postbox"),_.L("design:type",Object)],gf.prototype,"postbox",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],gf.prototype,"onDataChanged",null);_.m([_.ob("yt-commentbox-dismiss"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],gf.prototype,"onYtCommentboxDismiss",null);
_.m([_.N({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],gf);
_.I(gf,"ytd-backstage-post-dialog-popup-renderer",function(){if(K1v!==void 0)return K1v;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return K1v=g},{mode:1});var xFm;var rf=function(){return _.a.apply(this,arguments)||this};
_.f(rf,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],rf.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],rf.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],rf);
_.I(rf,"ytd-sender-id-section-renderer",function(){if(xFm!==void 0)return xFm;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);
return xFm=g},{mode:1});var auv;var Xdt;var ND6;var Es=function(){return _.a.apply(this,arguments)||this};
_.f(Es,_.a);Es.prototype.closePopup=function(){_.OS(this.hostElement,"yt-close-popup-action")};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Es.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Es.prototype,"data",void 0);_.m([_.e3({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],Es);
_.I(Es,"yt-community-post-section-renderer",function(){if(ND6===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;Xdt===void 0&&(Xdt=document.createElement("template"));var B=Xdt;E.call(r,B.content.cloneNode(!0),g.content.firstChild);ND6=g}g=ND6;return g},{mode:2});var IuA;var mFg;var civ;var i4v;var L1L;var Vb$;var BI=function(){return _.a.apply(this,arguments)||this};
_.f(BI,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],BI.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],BI.prototype,"data",void 0);_.m([_.e3({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],BI);
_.I(BI,"yt-share-start-time-with-context-renderer",function(){if(Vb$===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;L1L===void 0&&(L1L=document.createElement("template"));var B=L1L;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Vb$=g}g=Vb$;return g},{mode:2});var wf=function(){return _.a.apply(this,arguments)||this};
_.f(wf,_.a);wf.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],wf.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],wf.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],wf.prototype,"data",void 0);_.m([_.e3({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],wf);
_.I(wf,"yt-share-panel-title-v15-renderer",function(){if(i4v===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;civ===void 0&&(civ=document.createElement("template"));var B=civ;E.call(r,B.content.cloneNode(!0),g.content.firstChild);i4v=g}g=i4v;return g},{mode:2});var SF=function(){return _.a.apply(this,arguments)||this};
_.f(SF,_.a);SF.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"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],SF.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],SF.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],SF.prototype,"data",void 0);_.m([_.e3({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],SF);
_.I(SF,"yt-share-panel-header-renderer",function(){if(mFg===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;IuA===void 0&&(IuA=document.createElement("template"));var B=IuA;E.call(r,B.content.cloneNode(!0),g.content.firstChild);mFg=g}g=mFg;return g},{mode:2});var hxM;var Z4m;var Os=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-open-popup-action":"onOpen"};return g};
_.f(Os,_.a);_.S=Os.prototype;_.S.attached=function(){this.onOpen()};
_.S.updateTimeSecs=function(g){this.currentTimeSecs=g};
_.S.computeTimeString=function(g){g=g.toString();var r=Math.floor(Number(g)/3600),E=Math.floor(Number(g)%3600%60);return(r>0?r+":":"")+_.dc(Math.floor(Number(g)%3600/60),r>0?2:1)+":"+_.dc(E,2)};
_.S.computeTimeStringA11y=function(g){g=_.K5V({seconds:g});var r=g.hours===void 0?0:g.hours,E=g.minutes===void 0?0:g.minutes,B=g.seconds===void 0?0:g.seconds;g=[];if(r>0){var w=Z96().format({hours:r});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.ac)||r>9999)w=w.replace(r.toString(),_.xCB(r)),_.ac==="km"&&(w=w.replace(".",","));g.push(w)}E>0&&g.push(Z96().format({minutes:E}));B>0&&g.push(Z96().format({seconds:B}));r="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");E=_.ac==
"am"?"{0}\u1363 ":_.ac=="fa"?"{0}\u060c\u200f ":_.ac=="my"?"{0} - ":_.ac=="ne"?"{0},":_.ac=="th"?"{0} ":_.ac=="ur"?"{0}\u060c ":_.ac=="ar"||_.ac=="ar-XB"?"{0} \u0648":_.ac=="ja"||_.ac=="zh-CN"||_.ac=="zh-HK"||_.ac=="zh-TW"?"{0}\u3001":"{0}, ";B=_.ac=="am"?"\u1363 ":_.ac=="fa"?"\u060c\u200f ":_.ac=="my"?" - ":_.ac=="th"?" ":_.ac=="ur"?"\u060c ":_.ac=="ar"||_.ac=="ar-XB"?" \u0648":_.ac=="ja"||_.ac=="zh-CN"||_.ac=="zh-HK"||_.ac=="zh-TW"?"\u3001":", ";w=_.ac=="am"?" \u12a5\u1293 {0}":_.ac=="as"?" \u0986\u09f0\u09c1 {0}":
_.ac=="az"?" v\u0259 {0}":_.ac=="bn"?" \u098f\u09ac\u0982 {0}":_.ac=="cs"?" a\u00a0{0}":_.ac=="de"?" und {0}":_.ac=="el"?" \u03ba\u03b1\u03b9 {0}":_.ac=="eu"?" eta {0}":_.ac=="fa"?"\u060c \u0648 {0}":_.ac=="fil"?", at {0}":_.ac=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.ac=="hi"?", \u0914\u0930 {0}":_.ac=="hu"?" \u00e9s {0}":_.ac=="hy"?" \u0587 {0}":_.ac=="id"?", dan {0}":_.ac=="iw"?" \u05d5-{0}":_.ac=="ja"?"\u3001{0}":_.ac=="ka"?" \u10d3\u10d0 {0}":_.ac=="km"?" \u1793\u17b7\u1784 {0}":_.ac=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.ac=="ko"?" \ubc0f {0}":_.ac=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.ac=="lt"?" ir {0}":_.ac=="lv"?" un {0}":_.ac=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.ac=="mr"?" \u0906\u0923\u093f {0}":_.ac=="ms"?" dan {0}":_.ac=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.ac=="ne"?" \u0930 {0}":_.ac=="or"?", \u0b13 {0}":_.ac=="pa"?" \u0a05\u0a24\u0a47 {0}":_.ac=="ro"?" \u0219i {0}":_.ac=="si"?", \u0dc3\u0dc4 {0}":_.ac=="sk"?" a {0}":_.ac=="sl"?" in {0}":_.ac=="sq"?" dhe {0}":_.ac=="sv"?" och {0}":
_.ac=="sw"?" na {0}":_.ac=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.ac=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.ac=="th"?" \u0e41\u0e25\u0e30{0}":_.ac=="tr"?" ve {0}":_.ac=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.ac=="uz"?" va {0}":_.ac=="vi"?" v\u00e0 {0}":_.ac=="zh-HK"?"\u53ca{0}":_.ac=="zu"?", ne-{0}":_.ac=="af"||_.ac=="nl"?" en {0}":_.ac=="ar"||_.ac=="ar-XB"?" \u0648{0}":_.ac=="be"||_.ac=="uk"?" \u0456 {0}":_.ac=="en-GB"||_.ac=="en-IN"?" and {0}":_.ac=="en"||_.ac=="en-XA"?
", and {0}":_.ac=="et"||_.ac=="fi"?" ja {0}":_.ac=="fr"||_.ac=="fr-CA"?" et {0}":_.ac=="zh-CN"||_.ac=="zh-TW"?"\u548c{0}":_.ac=="da"||_.ac=="is"||_.ac=="no"?" og {0}":_.ac=="es"||_.ac=="es-419"||_.ac=="es-US"?" y {0}":_.ac=="kk"||_.ac=="lo"||_.ac=="mn"?", {0}":_.ac=="bg"||_.ac=="mk"||_.ac=="ru"||_.ac=="sr"?" \u0438 {0}":_.ac=="gl"||_.ac=="it"||_.ac=="pt-BR"||_.ac=="pt-PT"?" e {0}":" i {0}";var O=_.ac=="am"?"{0} \u12a5\u1293 {1}":_.ac=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.ac=="az"?"{0} v\u0259 {1}":
_.ac=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.ac=="de"?"{0} und {1}":_.ac=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.ac=="eu"?"{0} eta {1}":_.ac=="fa"?"{0} \u0648 {1}":_.ac=="fil"?"{0} at {1}":_.ac=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.ac=="hi"?"{0} \u0914\u0930 {1}":_.ac=="hu"?"{0} \u00e9s {1}":_.ac=="hy"?"{0} \u0587 {1}":_.ac=="iw"?"{0} \u05d5-{1}":_.ac=="ja"?"{0}\u3001{1}":_.ac=="ka"?"{0} \u10d3\u10d0 {1}":_.ac=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.ac=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.ac=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.ac=="ko"?"{0} \ubc0f {1}":_.ac=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.ac=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.ac=="lt"?"{0} ir {1}":_.ac=="lv"?"{0} un {1}":_.ac=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.ac=="mn"?"{0}, {1}":_.ac=="mr"?"{0} \u0906\u0923\u093f {1}":_.ac=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.ac=="ne"?"{0} \u0930 {1}":_.ac=="or"?"{0} \u0b13 {1}":_.ac=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.ac=="ro"?"{0} \u0219i {1}":_.ac==
"si"?"{0} \u0dc3\u0dc4 {1}":_.ac=="sl"?"{0} in {1}":_.ac=="sq"?"{0} dhe {1}":_.ac=="sv"?"{0} och {1}":_.ac=="sw"?"{0} na {1}":_.ac=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.ac=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.ac=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.ac=="tr"?"{0} ve {1}":_.ac=="ur"?"{0} \u0627\u0648\u0631 {1}":_.ac=="uz"?"{0} va {1}":_.ac=="vi"?"{0} v\u00e0 {1}":_.ac=="zh-HK"?"{0}\u53ca{1}":_.ac=="zu"?"{0} ne-{1}":_.ac=="af"||_.ac=="nl"?"{0} en {1}":_.ac=="ar"||_.ac==
"ar-XB"?"{0} \u0648{1}":_.ac=="be"||_.ac=="uk"?"{0} \u0456 {1}":_.ac=="cs"||_.ac=="sk"?"{0} a\u00a0{1}":_.ac=="et"||_.ac=="fi"?"{0} ja {1}":_.ac=="fr"||_.ac=="fr-CA"?"{0} et {1}":_.ac=="id"||_.ac=="ms"?"{0} dan {1}":_.ac=="zh-CN"||_.ac=="zh-TW"?"{0}\u548c{1}":_.ac=="da"||_.ac=="is"||_.ac=="no"?"{0} og {1}":_.ac=="es"||_.ac=="es-419"||_.ac=="es-US"?"{0} y {1}":_.ac=="bg"||_.ac=="mk"||_.ac=="ru"||_.ac=="sr"?"{0} \u0438 {1}":_.ac=="en"||_.ac=="en-GB"||_.ac=="en-IN"||_.ac=="en-XA"?"{0} and {1}":_.ac==
"gl"||_.ac=="it"||_.ac=="pt-BR"||_.ac=="pt-PT"?"{0} e {1}":"{0} i {1}";_.ac==="sq"?(w=w.replace("dhe","e"),O=O.replace("dhe","e")):_.ac==="th"?(B=B.replace("{0}"," {0}"),O=O.replace("{0}","{0} "),O=O.replace("{1}"," {1}")):_.ac==="ne"?B=",":_.ac==="zh-CN"?B="":r.includes(_.ac)&&(B=" ");return g.length<2?g.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(_.ac)?g.length===2?
O.replace("{0}",g[0]).replace("{1}",g[1]):E.replace("{0}",g[0])+g.slice(1,-1).join(B)+w.replace("{0}",g[g.length-1]):g.join(B)};
_.S.getTimeParam=function(){return R9D(this.timeString)};
_.S.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var g={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},r;_.MJ(_.pW(),(r=this.data)==null?void 0:r.trackingParams,g,7)};
_.S.onChangeStartAtTimestamp=function(){for(var g=this.startAtTimestamp.value.split(":"),r=0,E=1,B=g.length-1;B>=0;B--)r+=Number(g[B])*E,E*=60;this.updateTimeSecs(r);this.setTimestamp()};
_.S.onOpen=function(){var g=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var r=_.Tw();r?r.getPlayerPromise().then(function(E){E=E.getCurrentTime();g.updateTimeSecs(E)}):Vlv()&&this.updateTimeSecs(Vlv())};
_.S.setTimestamp=function(){var g=Math.floor(this.currentTimeSecs);_.OS(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!g,timestamp:g||""}])};
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Os.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Os.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Os.prototype,"data",void 0);_.m([_.K({value:!1,notify:!0}),_.L("design:type",Boolean)],Os.prototype,"isStartAtChecked",void 0);_.m([_.K(),_.L("design:type",Number)],Os.prototype,"currentTimeSecs",void 0);
_.m([_.K({computed:"computeTimeString(currentTimeSecs)"}),_.L("design:type",String)],Os.prototype,"timeString",void 0);_.m([_.K({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.L("design:type",String)],Os.prototype,"timeStringA11y",void 0);_.m([_.zb("#start-at-timestamp"),_.L("design:type",Object)],Os.prototype,"startAtTimestamp",void 0);_.m([_.e3({is:"yt-start-at-renderer",disableElementRegistration:!0})],Os);
_.I(Os,"yt-start-at-renderer",function(){if(Z4m===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;hxM===void 0&&(hxM=document.createElement("template"));var B=hxM;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Z4m=g}g=Z4m;return g},{mode:2});var yiD;var vig;var dF5=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"]]),TD4=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"]]),gnF=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var rH8={};rH8.YtBindingExpressionsBehavior={identity:_.No,msg:function(g,r){r=r===void 0?{}:r;return _.zn(g,r,g)},
msgPlural:function(g,r){return _.kg(g,r)},
getMusicIconFromType:function(g){if(_.Y("music_web_enable_icon_wil"))g=_.Dh(g);else if(TD4.has(g))g="yt-sys-icons:"+TD4.get(g);else{var r=dF5.get(g)||_.Dh(g).split(":")[1];r=_.e3l(r);var E;g=((E=gnF.get(g))!=null?E:"yt-sys-icons:")+r}return g}};var Ent;var BI5;var whv;var Sn5=document.head,Oj8=Sn5.appendChild,URF;if(whv===void 0){var M6v=document.createElement("template");_.b(M6v,'\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>');whv=M6v}URF=whv;Oj8.call(Sn5,URF.content);var Us=function(){var g=_.a.apply(this,arguments)||this;g.screenLayer=7;return g};
_.f(Us,_.a);Us.prototype.getScreenLayer=function(){return this.screenLayer};
Us.prototype.onTap=function(g){g&&g.detail&&(g.detail.x||g.detail.y)&&_.S3(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.q2(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(g=this.getScreenLayer(),_.Sh(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:g}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.hx.Object.defineProperties(Us.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()}}});
Us.prototype.onTap=Us.prototype.onTap;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Us.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Us.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Us.prototype,"data",void 0);_.m([_.W("data.title"),_.L("design:type",Object),_.L("design:paramtypes",[])],Us.prototype,"title",null);
_.m([_.W("data.serviceName"),_.L("design:type",String),_.L("design:paramtypes",[])],Us.prototype,"icon",null);_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],Us.prototype,"onTap",null);_.m([_.e3({is:"yt-share-target-renderer",disableElementRegistration:!0})],Us);
_.I(Us,"yt-share-target-renderer",function(){if(BI5===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;Ent===void 0&&(Ent=document.createElement("template"));var B=Ent;E.call(r,B.content.cloneNode(!0),g.content.firstChild);BI5=g}g=BI5;return g},{mode:2});var qn8;var uGL;var M5=function(){var g=_.a.apply(this,arguments)||this;g.SHARE_TARGET_WIDTH=70;g.SHARE_TARGET_MARGIN_RIGHT=8;g.PAGE_SCROLL_SPEED=9;g.actionMap={"yt-share-panel-reset-action":"onReset_"};return g};
_.f(M5,_.a);_.S=M5.prototype;_.S.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.S.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.S3(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.S3(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.S.onReset_=function(){if(_.S3(this.hostElement).querySelector("#list")){var g=_.S3(this.hostElement).querySelector("#list");var r=_.S3(this.hostElement).querySelector("#list");var E=r.offsetLeft,B=r.offsetParent;B||_.HwD(r)!="fixed"||(B=_.tL(r).documentElement);if(B){if(_.Oz&&!_.ME(58)){var w=_.jmZ(B);E+=w.left}else Number(_.c4V)>=8&&!(Number(_.c4V)>=9)&&(w=_.jmZ(B),E-=w.left);r=_.fIw(B)?B.clientWidth-(E+r.offsetWidth):E}else r=E;go$(g,r);this.updateScrollButtons_()}};
_.S.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.S.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.S.onScrollWheel_=function(g){g.stopPropagation();g.preventDefault();var r=Tt8(_.S3(this.hostElement).querySelector("#list"));g=Math.abs(g.deltaX)>Math.abs(g.deltaY)?g.deltaX:g.deltaY;go$(_.S3(this.hostElement).querySelector("#list"),r+g);this.updateScrollButtons_()};
_.S.smoothScrollByOnePage_=function(g){var r=_.S3(this.hostElement).querySelector("#list"),E=(Math.floor(r.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,B=Tt8(r),w=E*(g?1:-1),O=this.PAGE_SCROLL_SPEED,M=this.updateScrollButtons_.bind(this),u=0,l;(function z(){u+=O;l=u/E*2;go$(r,B+w*(l<1?l*l:-l*l+4*l-2));u<E?window.requestAnimationFrame(z):M()})()};
_.S.updateScrollButtons_=function(){var g=Tt8(_.S3(this.hostElement).querySelector("#list")),r=_.S3(this.hostElement).querySelector("#list").scrollWidth-_.S3(this.hostElement).querySelector("#list").clientWidth;_.S3(this.hostElement).querySelector("#scroll-button-back").hidden=g<=0;_.S3(this.hostElement).querySelector("#scroll-button-forward").hidden=g>=r};
M5.prototype.onScrollWheel_=M5.prototype.onScrollWheel_;M5.prototype.onDataChanged_=M5.prototype.onDataChanged_;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],M5.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],M5.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(rH8.YtBindingExpressionsBehavior),_.L("design:type",Object)],M5.prototype,"ytBindingExpressionsBehavior",void 0);
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],M5.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],M5.prototype,"data",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],M5.prototype,"onDataChanged_",null);_.m([_.ob("wheel"),_.L("design:type",Function),_.L("design:paramtypes",[WheelEvent]),_.L("design:returntype")],M5.prototype,"onScrollWheel_",null);
_.m([_.e3({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],M5);
_.I(M5,"yt-third-party-share-target-section-renderer",function(){if(uGL===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;qn8===void 0&&(qn8=document.createElement("template"));var B=qn8;E.call(r,B.content.cloneNode(!0),g.content.firstChild);uGL=g}g=uGL;return g},{mode:2});var q5=function(){return _.a.apply(this,arguments)||this};
_.f(q5,_.a);q5.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"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],q5.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],q5.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],q5.prototype,"data",void 0);_.m([_.e3({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],q5);
_.I(q5,"yt-third-party-network-section-renderer",function(){if(vig===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;yiD===void 0&&(yiD=document.createElement("template"));var B=yiD;E.call(r,B.content.cloneNode(!0),g.content.firstChild);vig=g}g=vig;return g},{mode:2});_.BK(_.dG(function(g){return _.G("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.G("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.G(_.Af,{data:function(){return g.data().firstPartyItems}},{listItemViewModel:_.fv})))},"Ag"),"first-party-network-section-view-model",{props:{data:_.cP}});var lKg=_.me(["data:image/svg+xml;charset=UTF-8;base64,",""]),ut=function(){var g=_.a.apply(this,arguments)||this;g.screenLayer=7;g.qrCodeEnabled=_.Y("web_enable_sharing_qr_code");g.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return g};
_.f(ut,_.a);_.S=ut.prototype;_.S.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"}}}};
_.S.attached=function(){this.JSC$18011_scroller&&(this.JSC$18011_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18011_scroller.attached&&typeof this.JSC$18011_scroller.attached==="function"&&this.JSC$18011_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.S.onDataChanged=function(){var g=this,r;(r=this.data)!=null&&r.contents&&(this.hostElement.setAttribute("links-only","true"),_.M1(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.Lk(this,function(){_.Sh(g.hostElement,"yt-refit");g.focusSharePanelHeader()}))};
_.S.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.S.handleSetTimestamp=function(g){var r=this.shortUrl();g.isSet&&(r=_.KV(r,"t",g.timestamp));this.maybeRenderQrCode(r)};
_.S.shortUrl=function(){var g,r=(g=this.data)==null?void 0:g.contents;if(r)for(g=0;g<r.length;g++){var E=void 0,B=void 0;if((E=r[g])==null?0:(B=E.thirdPartyNetworkSection)==null?0:B.copyLinkContainer){var w=B=E=void 0;return(w=_.n((E=r[g])==null?void 0:(B=E.thirdPartyNetworkSection)==null?void 0:B.copyLinkContainer,daD))==null?void 0:w.shortUrl}}};
_.S.maybeRenderQrCode=function(g){var r=this,E,B,w,O,M,u,l,Q,z;return _.q(function(k){if(k.nextAddress==1){E=_.S3(r.hostElement).querySelector("#qr-code");if(!r.qrCodeEnabled||!g)return E&&(E.style.display="none"),k.return();B=_.cEl(_.rM().resolve(_.o3),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});w=document.createElement("div");return typeof B==="function"?(B(w),k.jumpTo(2)):_.D(k,B,3)}k.nextAddress!=2&&(O=k.yieldResult,O(w));l=(M=w)==null?void 0:(u=M.firstChild)==null?void 0:u.firstChild;
Q=document.createElement("img");z=_.$U(lKg,btoa(l.outerHTML));Q.onload=function(){var H={canvas:E,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:Q},R=new YQ5;jyL(R,g);AFF(R,!1,bMg(R));var A=R.modules,J=Object.assign({},FhM,H);A=structuredClone(A);H=A.length;var e,C=(e=J.canvas)!=null?e:document.createElement("canvas");e=J.cellSize;R=J.logo;var X,Z=(X=J.logoSize)!=null?X:Math.floor(H/4);H%2!==Z%2&&Z++;var c=J.logoPadding,h=J.backgroundColor;X=H*e;var y=
J.width,OD=0;y&&(OD=J.padding,OD=Math.ceil(OD*X/(y-OD*2)),C.style.width=y+"px",C.style.height=y+"px");C.width!==X+OD*2&&(C.width=X+OD*2);C.height!==X+OD*2&&(C.height=X+OD*2);X=C.getContext("2d");J.autoClear&&X.clearRect(0,0,C.width,C.height);X.fillStyle=h;X.beginPath();X.roundRect(0,0,C.width,C.height,J.borderRadius);X.fill();X.save();X.translate(OD,OD);if(R)for(C=Math.floor(H-Z)/2-c,c=Math.floor(H+Z)/2+c,h=C;h<c;h++)for(y=C;y<c;y++)A[h][y]=!1;for(C=0;C<H;C++)for(c=0;c<H;c++)(C<7&&c<7||C<7&&c>=H-
7||C>=H-7&&c<7)&&(A[C][c]=!1);var uB;C=(uB=J.markerColor)!=null?uB:J.color;PGm(X,0,0,e,C);PGm(X,e*(H-7),0,e,C);PGm(X,0,e*(H-7),e,C);switch(J.cellStyle){case 0:uB=A;A=uB.length;C=J.cellSize;X.beginPath();for(c=0;c<A;c++)for(h=0;h<A;h++)uB[c][h]&&X.rect(c*C,h*C,C,C);X.fillStyle=J.color;X.fill();break;case 1:uB=A;A=uB.length;C=J.cellSize;c=C*J.relativeCircleSize;X.fillStyle=J.color;X.beginPath();for(J=0;J<A;J++)for(h=0;h<A;h++)uB[J][h]&&(X.beginPath(),X.ellipse((J+.5)*C,(h+.5)*C,c/2,c/2,0,0,2*Math.PI),
X.fill());X.fill();break;case 2:uB=A;A=uB.length;C=J.cellSize;X.fillStyle=J.color;J=[[1,1],[-1,1],[-1,-1],[1,-1]];X.beginPath();for(c=0;c<A;c++)for(h=0;h<A;h++)if(uB[c][h])X.roundRect(c*C,h*C,C,C,C/2),c+1<A&&uB[c+1][h]&&X.rect(c*C+C/2,h*C,C,C),h+1<A&&uB[c][h+1]&&X.rect(c*C,h*C+C/2,C,C);else{y=c*C+C/2;OD=h*C+C/2;for(var zS=0;zS<4;zS++){var jV=_.U(J[zS]),PJ=jV.next().value;jV=jV.next().value;c+PJ>=0&&c+PJ<A&&h+jV>=0&&h+jV<A&&uB[c+PJ][h]&&uB[c][h+jV]&&uB[c+PJ][h+jV]&&(PJ=zS*Math.PI/2,jV=C/2,X.moveTo(y+
jV*Math.cos(PJ),OD+jV*Math.sin(PJ)),X.arc(y,OD,C/2,PJ,PJ+Math.PI/2,!1),X.lineTo(y+jV*(Math.cos(PJ)-Math.sin(PJ)),OD+jV*(Math.cos(PJ)+Math.sin(PJ))),X.lineTo(y+jV*Math.cos(PJ),OD+jV*Math.sin(PJ)))}}X.fill()}R&&X.drawImage(R,(H-Z)*e/2,(H-Z)*e/2,Z*e,Z*e);X.restore();E.style.removeProperty("display")};
Q.src=_.zh(z);_.Q3(k)})};
_.S.hasCommunityPostRenderer=function(){var g,r,E,B;return!!((g=this.data)==null?0:(r=g.header)==null?0:(E=r.sharePanelHeaderRenderer)==null?0:(B=E.communityPost)==null?0:B.communityPostSectionRenderer)};
_.S.onTapClose=function(){_.OS(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.S.getScreenLayer=function(){return this.screenLayer};
_.S.logSharePanelPage=function(){if(!_.Y("enable_share_panel_navigation_logging_fix_on_web")){var g;if((g=this.data)!=null&&g.trackingParams){g=this.data.trackingParams;var r=this.parentClickTrackingParams;r=r?_.fW(r):void 0;var E=_.pW();_.wT(E,21760,r,{layer:7,parentLayer:0});E.graftServerVe(g,void 0,7);_.Zz().dispatch(_.Bs({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
ut.prototype.onDataChanged=ut.prototype.onDataChanged;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],ut.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ut.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],ut.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],ut.prototype,"ytActionHandlerBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],ut.prototype,"data",void 0);_.m([_.K({value:_.zn("SBOX_INAPPROPRIATE_CANCEL")}),_.L("design:type",String)],ut.prototype,"closeButtonAriaLabel",void 0);_.m([_.zb("yt-share-panel-header-renderer"),_.L("design:type",HTMLElement)],ut.prototype,"header",void 0);_.m([_.K({selector:function(g){return g.share.parentClickTrackingParams}}),
_.L("design:type",String)],ut.prototype,"parentClickTrackingParams",void 0);_.m([_.K(),_.L("design:type",Object)],ut.prototype,"qrCodeEnabled",void 0);_.m([_.zb("#scroller"),_.L("design:type",Object)],ut.prototype,"JSC$18011_scroller",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ut.prototype,"onDataChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],ut);
_.I(ut,"ytd-unified-share-panel-renderer",function(){if(auv!==void 0)return auv;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return auv=g},{mode:1});var DRF;var lt=function(){var g=_.a.apply(this,arguments)||this;g.modernModal=!0;return g};
_.f(lt,_.a);lt.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
lt.prototype.computeShouldHideOldButtons=function(){var g;return!((g=this.data)==null?0:g.button)};
_.hx.Object.defineProperties(lt.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var g,r;return(g=this.data)==null?void 0:(r=g.button)==null?void 0:r.buttonRenderer}}});
_.m([_.K(),_.L("design:type",Object)],lt.prototype,"data",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],lt.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],lt.prototype,"ytEventForwardingBehavior",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],lt.prototype,"modernModal",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],lt.prototype,"buttonRendererData",null);
_.m([_.N({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],lt);
_.I(lt,"ytd-modal-with-title-and-button-renderer",function(){if(DRF!==void 0)return DRF;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return DRF=g},{mode:1});var ong;var DM=function(){return _.a.apply(this,arguments)||this};
_.f(DM,_.a);DM.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.x8("page-changed",this.page))};
DM.prototype.pageChangedForBinding=DM.prototype.pageChangedForBinding;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],DM.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],DM.prototype,"data",void 0);_.m([_.K(),_.L("design:type",String)],DM.prototype,"page",void 0);_.m([_.Gb("page"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],DM.prototype,"pageChangedForBinding",null);
_.m([_.N({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],DM);
_.I(DM,"ytd-account-item-section-header-renderer",function(){if(ong!==void 0)return ong;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return ong=g},{mode:1});var G46;var ou=function(){return _.a.apply(this,arguments)||this};
_.f(ou,_.a);ou.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"}}}};
ou.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ou.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],ou.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Xe),_.L("design:type",Object)],ou.prototype,"ytContinuationHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ou.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!1}),_.L("design:type",Function)],ou.prototype,"onAccountItemTap",void 0);
_.m([_.N({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],ou);
_.I(ou,"ytd-account-item-section-renderer",function(){if(G46!==void 0)return G46;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return G46=g},{mode:1});var QhM;var znD;var GX=function(){return _.a.apply(this,arguments)||this};
_.f(GX,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],GX.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],GX.prototype,"data",void 0);_.m([_.N({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],GX);
_.I(GX,"ytd-accounts-dialog-header-renderer",function(){if(znD!==void 0)return znD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return znD=g},{mode:1});var k4t;var Q0=function(){return _.a.apply(this,arguments)||this};
_.f(Q0,_.a);Q0.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Q0.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Q0.prototype,"data",void 0);_.m([_.N({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],Q0);
_.I(Q0,"ytd-google-account-header-renderer",function(){if(k4t!==void 0)return k4t;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return k4t=g},{mode:1});var zX=function(){return _.a.apply(this,arguments)||this};
_.f(zX,_.a);zX.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"}}}};
zX.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.x8("page-changed",this.page))};
zX.prototype.pageChangedForBinding=zX.prototype.pageChangedForBinding;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],zX.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],zX.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],zX.prototype,"data",void 0);_.m([_.K(),_.L("design:type",String)],zX.prototype,"page",void 0);
_.m([_.Gb("page"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],zX.prototype,"pageChangedForBinding",null);_.m([_.N({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],zX);
_.U2()(zX,"ytd-account-section-list-renderer",function(){if(QhM===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);QhM=g}g=QhM;return g},{allowedProps:["data"],
mode:1});var Hj8;var k6=function(){var g=_.a.apply(this,arguments)||this;g.enableHandlesAccountMenuSwitcher=_.Y("enable_handles_account_menu_switcher");return g};
_.f(k6,_.a);k6.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
k6.prototype.dataChanged=k6.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],k6.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],k6.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],k6.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.m([_.zb("#avatar"),_.L("design:type",Object)],k6.prototype,"avatar",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],k6.prototype,"dataChanged",null);_.m([_.N({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],k6);
_.U2()(k6,"ytd-active-account-header-renderer",function(){if(Hj8===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);Hj8=g}g=Hj8;return g},{allowedProps:["data"],
mode:1});var phD;var Ynz;var HI=function(){return _.a.apply(this,arguments)||this};
_.f(HI,_.a);HI.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
HI.prototype.onBackTap=function(){_.Sh(this.hostElement,"yt-menu-back-tapped")};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],HI.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],HI.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],HI.prototype,"data",void 0);_.m([_.N({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],HI);
_.U2()(HI,"ytd-simple-menu-header-renderer",function(){if(Ynz===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);Ynz=g}g=Ynz;return g},{allowedProps:["data"],
mode:2});var Rn8;var pF=function(){return _.a.apply(this,arguments)||this};
_.f(pF,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],pF.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],pF.prototype,"data",void 0);_.m([_.N({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],pF);
_.I(pF,"ytd-comment-video-thumbnail-header-renderer",function(){if(Rn8!==void 0)return Rn8;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Rn8=g},{mode:1});var nn4;var Y6=function(){return _.a.apply(this,arguments)||this};
_.f(Y6,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Y6.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Y6.prototype,"data",void 0);_.m([_.N({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],Y6);
_.I(Y6,"ytd-abuse-type-selector-renderer",function(){if(nn4!==void 0)return nn4;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return nn4=g},{mode:1});var shF;var Ru=function(){return _.a.apply(this,arguments)||this};
_.f(Ru,_.a);Ru.prototype.attached=function(){var g=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){g.additionalContextInput.focusTextInput()})};
Ru.prototype.handleAdditionalContextChanged=function(){var g=this;_.Ib(this,"ytd-report-channel-additional-context-update",function(){g.ytdReduxBehavior.dispatch(_.Bs({type:"ADDITIONAL_CONTEXT_UPDATED",payload:g.additionalContext}))},300)};
Ru.prototype.updateAdditionalContextFromBinding=function(g){this.additionalContext=g.detail.value};
Ru.prototype.handleAdditionalContextChanged=Ru.prototype.handleAdditionalContextChanged;_.m([_.P(_.Ai),_.L("design:type",Object)],Ru.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",String)],Ru.prototype,"additionalContext",void 0);_.m([_.K({selector:function(g){return g.reportChannelAbuse.additionalContext}}),
_.L("design:type",String)],Ru.prototype,"additionalContextRedux",void 0);_.m([_.K(),_.L("design:type",Object)],Ru.prototype,"data",void 0);_.m([_.zb("yt-text-input-form-field-renderer"),_.L("design:type",Object)],Ru.prototype,"additionalContextInput",void 0);_.m([_.Gb("additionalContext"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Ru.prototype,"handleAdditionalContextChanged",null);
_.m([_.N({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],Ru);
_.I(Ru,"ytd-report-channel-modal-additional-context-renderer",function(){if(shF!==void 0)return shF;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return shF=g},{mode:1});var fKM;var nF=function(){var g=_.a.apply(this,arguments)||this;g.nextButtonDisabled=null;g.submitEndpoint=null;g.navigationEndpoint=null;g.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return g};
_.f(nF,_.a);_.S=nF.prototype;_.S.computeNextButtonData=function(g,r,E){var B={};r&&(B.navigationEndpoint=r);E&&(B.serviceEndpoint=E);g&&g.buttonRenderer&&_.jn.extend(B,g.buttonRenderer);return B};
_.S.handleReportChannelModalDisableNextButtonAction=function(g){this.setNextButtonIsDisabled(g)};
_.S.handleReportFormEndpointUpdateAction=function(g){this.setNextButtonIsDisabled(!!g.disableSubmitButton);this.resetEndpointData();g.submitEndpoint?this.submitEndpoint=g.submitEndpoint:g.submitNavigationEndpoint&&(this.navigationEndpoint=g.submitNavigationEndpoint)};
_.S.handleSignalActionSubmitForm=function(){var g,r=Object.keys(((g=this.reportChannelAbuseForm)==null?void 0:g.selectedVideoIds)||{}),E;g=((E=this.reportChannelAbuseForm)==null?void 0:E.additionalContext)||"";var B;E=((B=this.reportChannelAbuseForm)==null?void 0:B.impersonatedChannelUrl)||"";var w;if((w=this.data)==null?0:w.submitEndpoint){r={impersonated_channel_url:E,text:g,video_ids:r};var O;_.rM().resolve(_.Er).resolveCommand((O=this.data)==null?void 0:O.submitEndpoint,{form:Object.assign({},
r,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.S.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.S.onYtServiceRequestError=function(g){this.setNextButtonIsDisabled(!1);_.vX(this.hostElement,g.detail.error.message)};
_.S.setNextButtonIsDisabled=function(g){this.set("data.nextButton.buttonRenderer.isDisabled",g)};
_.S.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
nF.prototype.onYtServiceRequestError=nF.prototype.onYtServiceRequestError;nF.prototype.onYtServiceRequestCompleted=nF.prototype.onYtServiceRequestCompleted;_.m([_.K(),_.L("design:type",Object)],nF.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],nF.prototype,"nextButtonDisabled",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],nF.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],nF.prototype,"ytActionHandlerBehavior",void 0);
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],nF.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],nF.prototype,"submitEndpoint",void 0);_.m([_.K(),_.L("design:type",Object)],nF.prototype,"navigationEndpoint",void 0);_.m([_.K({selector:function(g){return g.reportChannelAbuse}}),
_.L("design:type",Object)],nF.prototype,"reportChannelAbuseForm",void 0);_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],nF.prototype,"onYtServiceRequestCompleted",null);_.m([_.ob("yt-service-request-error"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],nF.prototype,"onYtServiceRequestError",null);
_.m([_.N({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],nF);
_.I(nF,"ytd-report-channel-modal-footer-renderer",function(){if(fKM!==void 0)return fKM;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return fKM=g},{mode:1});var $R8;var ss=function(){var g=_.a.apply(this,arguments)||this;g.boundOnTapDismissButton=function(){g.closePopup()};
return g};
_.f(ss,_.a);ss.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
ss.prototype.handleDataChanged=function(){_.hp(this.hostElement)};
ss.prototype.closePopup=function(){_.OS(this.hostElement,"yt-close-popup-action")};
ss.prototype.handleDataChanged=ss.prototype.handleDataChanged;_.m([_.K(),_.L("design:type",Object)],ss.prototype,"boundOnTapDismissButton",void 0);_.m([_.K(),_.L("design:type",Object)],ss.prototype,"data",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ss.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],ss.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ss.prototype,"handleDataChanged",null);_.m([_.N({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],ss);
_.I(ss,"ytd-report-channel-modal-header-renderer",function(){if($R8!==void 0)return $R8;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return $R8=g},{mode:1});var jhz;var fF=function(){var g=_.a.apply(this,arguments)||this;g.autoValidate=!1;g.invalid=!1;g.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return g};
_.f(fF,_.a);_.S=fF.prototype;_.S.attached=function(){var g=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){g.channelUrlInput.focusTextInput()})};
_.S.disableNextButton=function(g){_.OS(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[g])};
_.S.handleImpersonatedChannelUrlChanged=function(){var g=this;this.disableNextButton(!0);this.invalid=!1;_.Ib(this,"ytd-report-channel-impersonated-channel-update",function(){var r=g.impersonatedChannelUrl.trim();g.ytdReduxBehavior.dispatch(_.Bs({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:r}));var E;((E=g.data)==null?0:E.submitEndpoint)&&r&&_.rM().resolve(_.Er).resolveCommand(g.data.submitEndpoint,{form:{impersonated_channel_url:r,element:g.hostElement}})},500)};
_.S.handleModifyReportFormCommand=function(g){this.invalid=this.get("modifyReportFormCommand.action",g)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.S.updateInvalidFromBinding=function(g){this.invalid=g.detail.value};
_.S.updateImpersonatedChannelUrlFromBinding=function(g){this.impersonatedChannelUrl=g.detail.value};
fF.prototype.handleImpersonatedChannelUrlChanged=fF.prototype.handleImpersonatedChannelUrlChanged;_.m([_.P(_.Ai),_.L("design:type",Object)],fF.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],fF.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],fF.prototype,"autoValidate",void 0);_.m([_.K(),_.L("design:type",Object)],fF.prototype,"invalid",void 0);
_.m([_.K(),_.L("design:type",String)],fF.prototype,"impersonatedChannelUrl",void 0);_.m([_.K({selector:function(g){return g.reportChannelAbuse.impersonatedChannelUrl}}),
_.L("design:type",String)],fF.prototype,"impersonatedChannelUrlRedux",void 0);_.m([_.K(),_.L("design:type",Object)],fF.prototype,"data",void 0);_.m([_.zb("#text-input"),_.L("design:type",Object)],fF.prototype,"channelUrlInput",void 0);_.m([_.Gb("impersonatedChannelUrl"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],fF.prototype,"handleImpersonatedChannelUrlChanged",null);
_.m([_.N({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],fF);
_.I(fF,"ytd-report-channel-modal-impersonation-renderer",function(){if(jhz!==void 0)return jhz;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return jhz=g},{mode:1});var AH6;var bjg;var $6=function(){return _.a.apply(this,arguments)||this};
_.f($6,_.a);$6.prototype.onCheckboxToggled=function(g){var r,E,B=(E=_.n((r=this.data)==null?void 0:r.video,_.Wy))==null?void 0:E.videoId;B&&this.ytdReduxBehavior.dispatch(g.target.checked?_.Bs({type:"VIDEO_SELECTED",payload:B}):_.Bs({type:"VIDEO_UNSELECTED",payload:B}))};
$6.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.hx.Object.defineProperties($6.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var g,r=(g=this.data)==null?void 0:g.video;if(!r)return{};var E;g=(E=_.n(r,_.Wy))==null?void 0:E.navigationEndpoint;if(!g)return r;_.n(g==null?void 0:g.commandMetadata,_.dU)&&(_.n(g.commandMetadata,_.dU).ignoreNavigation=!0);return r}}});
_.m([_.K({reflectToAttribute:!0,selector:function(g,r){return r in g.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.L("design:type",Boolean)],$6.prototype,"checked",void 0);_.m([_.K(),_.L("design:type",Object)],$6.prototype,"data",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],$6.prototype,"video",null);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],$6.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],$6.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.P(_.Ai),_.L("design:type",Object)],$6.prototype,"ytdReduxBehavior",void 0);_.m([_.N({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],$6);
_.I($6,"ytd-selectable-video-renderer",function(){if(bjg!==void 0)return bjg;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return bjg=g},{mode:1});var jF=function(){var g=_.a.apply(this,arguments)||this;g.monitorScroll=!0;return g};
_.f(jF,_.a);jF.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],jF.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],jF.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],jF.prototype,"data",void 0);_.m([_.N({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],jF);
_.I(jF,"ytd-selectable-video-list-renderer",function(){if(AH6!==void 0)return AH6;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return AH6=g},{mode:1});var JHg;_.ek("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var Ad=function(){return _.a.apply(this,arguments)||this};
_.f(Ad,_.a);Ad.prototype.onChange=function(g){if(g=_.yP(g).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.Y("kevlar_command_handler_migration_killswitch"))_.uq(this.hostElement,g,this.hostElement);else{g=_.U(g);for(var r=g.next();!r.done;r=g.next())this.ytComponentBehavior.resolveCommand(r.value)}};
Ad.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
Ad.prototype.updateDataToggledFromBinding=function(g){this.set("data.toggled",g.detail.value)};
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Ad.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Ad.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Ad.prototype,"data",void 0);_.m([_.K({computed:"isEnabled(data)"}),_.L("design:type",Boolean)],Ad.prototype,"enabled",void 0);_.m([_.N({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],Ad);
_.I(Ad,"ytd-toggle-item-renderer",function(){if(JHg!==void 0)return JHg;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return JHg=g},{mode:1});var Po$;var t6A;var FLv;var bt=function(){var g=_.a.apply(this,arguments)||this;g.setVisible=!1;g.boundOnSubmitButtonClick=function(){g.onSubmitButtonClick()};
g.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return g};
_.f(bt,_.a);bt.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}}}}}};
bt.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
bt.prototype.onSubmitButtonClick=function(){var g;((g=this.data)==null?0:g.submitEndpoint)&&!_.Y("enable_ytc_refunds_submit_form_signal_action")&&_.q2(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
bt.prototype.handleSignalActionSubmitForm=function(){var g;((g=this.data)==null?0:g.submitEndpoint)&&_.q2(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.hx.Object.defineProperties(bt.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.hiddenByDefault)&&!this.setVisible}}});
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],bt.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],bt.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],bt.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],bt.prototype,"setVisible",void 0);_.m([_.K(),_.L("design:type",Object)],bt.prototype,"data",void 0);
_.m([_.K(),_.L("design:type",Object)],bt.prototype,"surveyFeedbackData",void 0);_.m([_.K(),_.L("design:type",Object)],bt.prototype,"boundOnSubmitButtonClick",void 0);_.m([_.K({reflectToAttribute:!0}),_.W("data","setVisible"),_.L("design:type",Object),_.L("design:paramtypes",[])],bt.prototype,"visibilityHidden",null);_.m([_.e3({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],bt);
_.I(bt,"yt-flow-footer-renderer",function(){if(FLv===void 0){var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;t6A===void 0&&(t6A=document.createElement("template"));var B=t6A;E.call(r,B.content.cloneNode(!0),g.content.firstChild);FLv=g}g=FLv;return g},{mode:2});var Jd=function(){return _.a.apply(this,arguments)||this};
_.f(Jd,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Jd.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],Jd.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Jd.prototype,"data",void 0);_.m([_.K({selector:function(g){return g.ypc.surveyFeedbackData}}),
_.L("design:type",Object)],Jd.prototype,"surveyFeedbackData",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],Jd);
_.I(Jd,"ytd-flow-footer-renderer",function(){if(Po$!==void 0)return Po$;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Po$=g},{mode:_.My("kevlar_poly_si_batch_j025")?1:2});var en8;var WLg;var PI=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return g};
_.f(PI,_.a);_.S=PI.prototype;_.S.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.WK("multiPageMenuSectionItems")}}};
_.S.handleHideEnclosingAction_=function(g){if(this.data&&this.data.items)for(var r=0;r<this.data.items.length;r++){var E=this.data.items[r].notificationRenderer;if(E&&E.notificationId==g.hideEnclosingAction.notificationId){this.splice("data.items",r,1);_.OS(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.S.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.M1(this.hostElement,"hidden",!0)};
_.S.updateMenu_=function(g){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&g&&!g.doNotRefreshInbox){g=this.data.continuations;for(var r=0;r<g.length;r++)if(g[r].invalidationContinuationData){var E=void 0;var B=(E=g[r].invalidationContinuationData)==null?void 0:E.continuation;break}g=_.jn.clone(this.data.continuationUpdateEndpoint||null);g.continuation=B;g.click_tracking_params=this.data.trackingParams;_.q2(this.hostElement,[g])}};
_.S.onServiceRequestCompleted_=function(g,r){if(this.data&&(g=r.actions)){r=0;for(var E=g.length;r<E;r++){var B=_.n(g[r],_.XLn);if(!B)break;if((B.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||B.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&B.continuationItems&&this.data.items){var w=this.data.items.length-1;this.data.items[w].continuationItemRenderer&&this.splice.apply(this,["data.items",w,1].concat(B.continuationItems))}}}};
PI.prototype.onServiceRequestCompleted_=PI.prototype.onServiceRequestCompleted_;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],PI.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],PI.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],PI.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],PI.prototype,"data",void 0);
_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.hR]),_.L("design:returntype")],PI.prototype,"onServiceRequestCompleted_",null);_.m([_.e3({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],PI);
_.U2()(PI,"yt-multi-page-menu-section-renderer",function(){if(WLg===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;en8===void 0&&(en8=document.createElement("template"));var B=en8;E.call(r,B.content.cloneNode(!0),g.content.firstChild);WLg=g}g=WLg;return g},{allowedProps:["data"],
mode:2});var Co8;var KLF;var td=function(){return _.a.apply(this,arguments)||this};
_.f(td,_.a);td.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.hx.Object.defineProperties(td.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.progress)==null?0:this.data.progress*100}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],td.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],td.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],td.prototype,"data",void 0);_.m([_.W("data.progress"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],td.prototype,"showProgressBar",null);
_.m([_.W("data.progress"),_.L("design:type",Number),_.L("design:paramtypes",[])],td.prototype,"progress",null);_.m([_.e3({is:"yt-flow-header-renderer",disableElementRegistration:!0})],td);
_.I(td,"yt-flow-header-renderer",function(){if(KLF===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;Co8===void 0&&(Co8=document.createElement("template"));var B=Co8;E.call(r,B.content.cloneNode(!0),g.content.firstChild);KLF=g}g=KLF;return g},{mode:2});var xR6;var aKv;var FU=function(){return _.a.apply(this,arguments)||this};
_.f(FU,_.a);FU.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],FU.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],FU.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],FU.prototype,"data",void 0);_.m([_.e3({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],FU);
_.I(FU,"yt-post-confirmation-flow-step-renderer",function(){if(aKv===void 0){var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;xR6===void 0&&(xR6=document.createElement("template"));var B=xR6;E.call(r,B.content.cloneNode(!0),g.content.firstChild);aKv=g}g=aKv;return g},{mode:2});var Xh6;var NI5;var eF=function(){return _.a.apply(this,arguments)||this};
_.f(eF,_.a);
eF.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"}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],eF.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],eF.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],eF.prototype,"data",void 0);_.m([_.e3({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],eF);
_.I(eF,"yt-refund-confirmation-flow-step-renderer",function(){if(NI5===void 0){var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;Xh6===void 0&&(Xh6=document.createElement("template"));var B=Xh6;E.call(r,B.content.cloneNode(!0),g.content.firstChild);NI5=g}g=NI5;return g},{mode:2});_.rH(nD5);_.rH(sc5);var fzA=_.R$({avatarViewModel:_.sV});_.rH($rz);var Zv=_.R$({commentInteractionViewModel:sc5,sharedSubscriptionViewModel:$rz,buttonViewModel:_.MV,horizontalShelfViewModel:_.jM});_.rH(jc8);_.rH(Ajz);_.rH(bfm);_.rH(Jjt);_.rH(P1m);var t9$=_.R$({profileIdentityInfoViewModel:_.tng,profileInfoViewModel:P1m});_.rH(Fuz);_.lW(Fuz,"yt-profile-card-view-model",{propNames:["data"]});var WI=function(){var g=_.a.apply(this,arguments)||this;g.enableFocusFix=_.Y("music_web_enable_focus_on_setting_menu_fix")&&_.Ka("IS_MOBILE_WEB",!1);g.covered=!1;g.hideMenu=!1;g.isCommentNotificationOnProfileCard=!1;g.scrolledByTouch=!1;g.disableBackdropFilter=_.Y("web_disable_backdrop_filter");g.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return g};
_.f(WI,_.a);_.S=WI.prototype;
_.S.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{activeAccountHeaderRenderer:"ytd-active-account-header-renderer",flowHeaderRenderer:"yt-flow-header-renderer",simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer",reportChannelModalHeaderRenderer:"ytd-report-channel-modal-header-renderer"}},"data.sections":{id:"sections",mapping:{additionalContextRenderer:"ytd-report-channel-modal-additional-context-renderer",abuseTypeSelectorRenderer:"ytd-abuse-type-selector-renderer",accountSectionListRenderer:"ytd-account-section-list-renderer",
backgroundPromoRenderer:"ytd-background-promo-renderer",commentVideoThumbnailHeaderRenderer:"ytd-comment-video-thumbnail-header-renderer",impersonationScreenRenderer:"ytd-report-channel-modal-impersonation-renderer",itemSectionRenderer:"ytd-comments",messageRenderer:"ytd-message-renderer",multiPageMenuNotificationSectionRenderer:"yt-multi-page-menu-section-renderer",multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",postConfirmationFlowStepRenderer:"yt-post-confirmation-flow-step-renderer",
refundConfirmationFlowStepRenderer:"yt-refund-confirmation-flow-step-renderer",selectableVideoListRenderer:"ytd-selectable-video-list-renderer",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",toggleItemRenderer:"ytd-toggle-item-renderer",profileCardViewModel:"yt-profile-card-view-model",continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.footer":{id:"footer",mapping:{multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",reportChannelModalFooterRenderer:"ytd-report-channel-modal-footer-renderer",
flowFooterRenderer:"ytd-flow-footer-renderer"}}}};
_.S.ready=function(){var g=this;this.JSC$18120_containerElement.addEventListener("scroll",function(){g.ytRendererBehavior.markDirty()})};
_.S.attributeChanged=function(g,r){g==="menu-style"&&_.OS(this.hostElement,"yt-multi-page-menu-closed-action",[r])};
_.S.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Do(this,this.focusOnStampFinished))};
_.S.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.Do(this,this.focusOnStampFinished))};
_.S.reset=function(){this.closeJobId&&(_.F6.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.S.focusOnStampFinished=function(g){g.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Do(this,this.focusOnStampFinished)),this.doFocus())};
_.S.doFocus=function(){var g=_.cRD(this.sectionsElement);g.length&&g[0].focus()};
_.S.computeMenuStyle=function(g){return g?g.toLowerCase().replace(/_/g,"-"):""};
_.S.computeIsCommentNotificationOnProfileCard=function(g){return _.Y("enable_profile_cards_on_comments")&&g.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.S.computeHideMenu=function(g,r){return g||!(!r||!r.showLoadingSpinner)};
_.S.onPopupClosed=function(){this.isPopUpOpen=!1;_.OS(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.S.onPopupOpened=function(g,r){this.isPopUpOpen=!0;r.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.Sh(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.Bs({type:"CHANNEL_REPORT_RESET"})))};
_.S.onYtNavigate=function(g,r){this.shouldCloseOnNavigateEvent(r.endpoint)&&_.OS(this.hostElement,"yt-close-all-popups-action")};
_.S.handleEndpoint=function(g){g=_.n(g,_.bw);!this.isCommentNotificationOnProfileCard&&g&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$18120_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.S.handleActions=function(g){for(var r=0,E=g.length;r<E;r++){var B=_.n(g[r],r96);B&&this.handleGetMultiPageMenuAction(B);(B=_.n(g[r],_.XLn))&&this.handleAppendContinuationItemsAction(B)}};
_.S.onServiceRequestSentOrCompleted=function(g,r){g.detail&&g.detail.endpoint&&this.handleEndpoint(g.detail.endpoint);r.actions&&this.handleActions(r.actions)};
_.S.handleGetMultiPageMenuAction=function(g){var r=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.S3(this.submenuElement).appendChild(r);(g=g.menu.multiPageMenuRenderer)&&this.logSubmenu(g);r.data=g;r.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.S.handleAppendContinuationItemsAction=function(g){if(this.data&&g.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&g.continuationItems&&this.data.sections){var r=this.data.sections.length-1;this.data.sections[r].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),r--);if(this.data.sections[r].multiPageMenuNotificationSectionRenderer&&g.continuationItems){g=_.U(g==null?void 0:g.continuationItems);for(var E=g.next();!E.done;E=g.next())if(E=E.value,_.n(E,A96)){var B=
void 0,w=void 0,O=void 0,M=void 0,u=void 0;((B=this)==null?0:(w=B.data)==null?0:(O=w.sections)==null?0:(M=O[r])==null?0:(u=M.multiPageMenuNotificationSectionRenderer)==null?0:u.items)&&this.push("data.sections."+r+".multiPageMenuNotificationSectionRenderer.items",E)}else if(_.n(E,_.AqI)||_.n(E,_.gx))this.push("data.sections",E),r++}}};
_.S.logSubmenu=function(g){if(!_.Y("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var r=this.ytRendererBehavior.getScreenLayer(),E=_.PE(r),B=_.JF(r);if((g=g.trackingParams)&&E&&B){var w=_.fW(g);_.Y("combine_ve_grafts")?_.pW().graftServerVe(g,B,r):_.N2(E,B,w)}}};
_.S.emptySubmenuContainer=function(){for(var g=_.S3(this.submenuElement);g.firstChild;)g.removeChild(g.firstChild)};
_.S.onMenuBackTap=function(g){_.Sh(this.hostElement,"yt-submenu-closed");g.stopPropagation()};
_.S.onSubmenuClosed=function(g){_.yP(g)!==this.hostElement&&(this.covered=!1,_.Sh(this.hostElement,"yt-refit"),g.stopPropagation())};
_.S.onRetrieveLocation=function(g,r){r.hasComments&&(r.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),g.stopPropagation())};
_.S.shouldCloseOnNavigateEvent=function(g){if(!g)return!0;if(_.n(g,_.bdT)||_.n(g,_.JhA)||_.n(g,_.AhT)||_.n(g,_.II))return!1;var r;return((r=_.n(g==null?void 0:g.commandMetadata,_.dU))==null?0:r.ignoreNavigation)?!1:!0};
_.S.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.S.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.S.refitAfterRender=function(){var g=this;_.Lk(this,function(){_.Sh(g.hostElement,"yt-refit")})};
WI.prototype.refitAfterRender=WI.prototype.refitAfterRender;WI.prototype.onRetrieveLocation=WI.prototype.onRetrieveLocation;WI.prototype.onSubmenuClosed=WI.prototype.onSubmenuClosed;WI.prototype.onMenuBackTap=WI.prototype.onMenuBackTap;WI.prototype.onServiceRequestSentOrCompleted=WI.prototype.onServiceRequestSentOrCompleted;WI.prototype.onYtNavigate=WI.prototype.onYtNavigate;WI.prototype.onPopupOpened=WI.prototype.onPopupOpened;WI.prototype.onPopupClosed=WI.prototype.onPopupClosed;
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],WI.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],WI.prototype,"ytEventForwardingBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],WI.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],WI.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],WI.prototype,"data",void 0);
_.m([_.K(),_.L("design:type",Object)],WI.prototype,"enableFocusFix",void 0);_.m([_.K(),_.L("design:type",Object)],WI.prototype,"covered",void 0);_.m([_.K({computed:"computeHideMenu(covered, data)"}),_.L("design:type",Object)],WI.prototype,"hideMenu",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.L("design:type",String)],WI.prototype,"menuStyle",void 0);
_.m([_.K({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.L("design:type",Object)],WI.prototype,"isCommentNotificationOnProfileCard",void 0);_.m([_.K(),_.L("design:type",Boolean)],WI.prototype,"isPopUpOpen",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],WI.prototype,"scrolledByTouch",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],WI.prototype,"disableBackdropFilter",void 0);
_.m([_.zb("#sections"),_.L("design:type",HTMLElement)],WI.prototype,"sectionsElement",void 0);_.m([_.zb("#spinner"),_.L("design:type",HTMLElement)],WI.prototype,"spinnerElement",void 0);_.m([_.zb("#header"),_.L("design:type",HTMLElement)],WI.prototype,"headerElement",void 0);_.m([_.zb("#container"),_.L("design:type",HTMLElement)],WI.prototype,"JSC$18120_containerElement",void 0);_.m([_.zb("#submenu"),_.L("design:type",HTMLElement)],WI.prototype,"submenuElement",void 0);
_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],WI.prototype,"onPopupClosed",null);_.m([_.ob("yt-popup-opened"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],WI.prototype,"onPopupOpened",null);_.m([_.ob("yt-navigate"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],WI.prototype,"onYtNavigate",null);
_.m([_.ob("yt-service-request-completed"),_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.hR]),_.L("design:returntype")],WI.prototype,"onServiceRequestSentOrCompleted",null);_.m([_.ob("yt-menu-back-tapped"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],WI.prototype,"onMenuBackTap",null);
_.m([_.ob("yt-submenu-closed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],WI.prototype,"onSubmenuClosed",null);_.m([_.ob("yt-retrieve-location"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],WI.prototype,"onRetrieveLocation",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],WI.prototype,"refitAfterRender",null);
_.m([_.N({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],WI);
_.I(WI,"ytd-multi-page-menu-renderer",function(){if(phD!==void 0)return phD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return phD=g},{mode:1});var IKt;var CF=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return g};
_.f(CF,_.a);_.S=CF.prototype;_.S.created=function(){this.showTooltips=!0};
_.S.computeAccessibility_=function(g){return this.get("accessibility.accessibilityData",g)||null};
_.S.onTap=function(){var g=_.US(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(g&&g.length===1&&g[0])_.OS(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var r;if((r=this.data)==null?0:r.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var E;((E=this.data)==null?0:E.menuRequest)&&_.q2(this.hostElement,[this.data.menuRequest])}}};
_.S.handleTopbarMenuClosedAction=function(g){var r,E;(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(g)===((r=this.data)==null?void 0:(E=r.icon)==null?void 0:E.iconType)&&this.toggleIconState(!1)};
_.S.toggleIconState=function(g){_.Y("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=g)};
_.S.handleUpdateTopbarAvatarAction=function(g){var r;g=(r=_.n(g,hOD))==null?void 0:r.avatarUrl;var E,B;r=(E=this.data)==null?void 0:(B=E.avatar)==null?void 0:B.thumbnails;g&&r&&(E={thumbnails:[Object.assign({},r[0],{url:g})]},this.set("data.avatar",E))};
_.hx.Object.defineProperties(CF.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.S3(this.hostElement).querySelector("#button")}}});
CF.prototype.onTap=CF.prototype.onTap;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],CF.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],CF.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.cY),_.L("design:type",Object)],CF.prototype,"ytdOpenPopupBehavior",void 0);_.m([_.P(_.l7A.YtButtonBehavior),_.L("design:type",Object)],CF.prototype,"ytButtonBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],CF.prototype,"data",void 0);
_.m([_.zb("yt-icon-button#button"),_.L("design:type",Object)],CF.prototype,"iconButton",void 0);_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],CF.prototype,"onTap",null);_.m([_.N({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],CF);
_.I(CF,"ytd-topbar-menu-button-renderer",function(){if(IKt!==void 0)return IKt;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return IKt=g},{mode:1});var mRg;var KF=function(){return _.a.apply(this,arguments)||this};
_.f(KF,_.a);KF.prototype.getSelected=function(){return this.reasons.selected};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],KF.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],KF.prototype,"data",void 0);_.m([_.zb("#reasons"),_.L("design:type",Object)],KF.prototype,"reasons",void 0);_.m([_.N({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],KF);
_.I(KF,"ytd-ad-feedback-content",function(){if(mRg!==void 0)return mRg;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return mRg=g},{mode:1});var cH5;var x6=function(){return _.a.apply(this,arguments)||this};
_.f(x6,_.a);_.S=x6.prototype;_.S.onPopupOpened=function(){_.OS(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.S.computeConfirmButton=function(g){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:g.confirmLabel}};
_.S.computeCancelButton=function(g){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:g.cancelLabel}};
_.S.onConfirmTap=function(){var g=this.content.getSelected();g!==void 0&&(g=this.data.reasons[g].endpoint)&&(_.rM().resolve(_.Er).resolveCommand(g,{form:{element:this.hostElement}}),_.OS(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.S.sendFeedbackSubmitToastAction=function(){var g;(g=this.data)!=null&&g.completionMessage&&_.OS(this.hostElement,"yt-open-popup-action",[_.vs(this.data.completionMessage),this])};
_.S.onCancelTap=function(){_.OS(this.hostElement,"yt-close-popup-action")};
x6.prototype.onPopupOpened=x6.prototype.onPopupOpened;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],x6.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],x6.prototype,"data",void 0);_.m([_.zb("#content"),_.L("design:type",Object)],x6.prototype,"content",void 0);_.m([_.ob("yt-popup-opened"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],x6.prototype,"onPopupOpened",null);
_.m([_.N({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],x6);
_.I(x6,"ytd-ad-feedback-renderer",function(){if(cH5!==void 0)return cH5;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return cH5=g},{mode:1});var ijA;var au=function(){return _.a.apply(this,arguments)||this};
_.f(au,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],au.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],au.prototype,"data",void 0);_.m([_.N({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],au);
_.I(au,"ytd-ad-info-dialog-content",function(){if(ijA!==void 0)return ijA;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return ijA=g},{mode:1});var LLt;var XU=function(){return _.a.apply(this,arguments)||this};
_.f(XU,_.a);XU.prototype.computeConfirmButton=function(g){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:g.confirmLabel}};
XU.prototype.onConfirmTap=function(){_.OS(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
XU.prototype.computeShouldShowTitle=function(){var g;return!((g=this.data)==null||!g.title)};
XU.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.rM().resolve(_.Er).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
XU.prototype.onPopupClosed=XU.prototype.onPopupClosed;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],XU.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],XU.prototype,"data",void 0);_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],XU.prototype,"onPopupClosed",null);_.m([_.N({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],XU);
_.I(XU,"ytd-ad-info-dialog-renderer",function(){if(LLt!==void 0)return LLt;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return LLt=g},{mode:1});var V6g;var N5=function(){var g=_.a.apply(this,arguments)||this;g.actionButtonClass="action-button";g.dismissButtonId="dismiss-button";g.dialogDismiss=!0;return g};
_.f(N5,_.a);_.S=N5.prototype;_.S.computeInPlayer=function(g){return(g==null?void 0:g.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.S.computedLogo=function(){var g,r;return this.isDarkTheme()?(g=this.data)==null?void 0:g.logoDark:(r=this.data)==null?void 0:r.logo};
_.S.computedHeaderImage=function(){var g,r;return this.isDarkTheme()?(g=this.data)==null?void 0:g.headerImageDark:(r=this.data)==null?void 0:r.headerImage};
_.S.computeLogoIconId=function(){var g,r,E,B=(g=this.computedLogo())==null?void 0:(r=g.sources)==null?void 0:(E=r[0])==null?void 0:E.height;return B&&B%31===0?"logo-icon-with-padding":"logo-icon"};
_.S.computeLogoIconHeight=function(){var g,r,E,B=(g=this.computedLogo())==null?void 0:(r=g.sources)==null?void 0:(E=r[0])==null?void 0:E.height;return B&&B%31===0?"31":"24"};
_.S.onPopupClosed=function(){_.rM().resolve(_.r_).dispose()};
_.S.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.S.onShow=function(){this.inPlayer&&_.GF(6)};
_.S.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var g=0;g<this.data.impressionEndpoints.length;g++){var r=_.n(this.data.impressionEndpoints[g],_.KW);r&&this.ytComponentBehavior.resolveCommand(r)}};
_.S.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.OS(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.hx.Object.defineProperties(N5.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var g,r;return!((g=this.data)==null||!g.headerImageDark)&&!((r=this.data)==null||!r.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.secondaryButton)}}});
N5.prototype.onPopupClosed=N5.prototype.onPopupClosed;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],N5.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],N5.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.XQ.YtVisibilityBehavior),_.L("design:type",Object)],N5.prototype,"ytVisibilityBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],N5.prototype,"data",void 0);
_.m([_.K(),_.L("design:type",Object)],N5.prototype,"actionButtonClass",void 0);_.m([_.K(),_.L("design:type",Object)],N5.prototype,"dismissButtonId",void 0);_.m([_.K(),_.L("design:type",Object)],N5.prototype,"dialogDismiss",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],N5.prototype,"hasHeaderImage",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],N5.prototype,"hasPremiumButton",null);
_.m([_.K({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.L("design:type",Boolean)],N5.prototype,"inPlayer",void 0);_.m([_.zb("#dismiss-button"),_.L("design:type",HTMLElement)],N5.prototype,"dismissButton",void 0);_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],N5.prototype,"onPopupClosed",null);_.m([_.N({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],N5);
_.I(N5,"ytd-enforcement-message-view-model",function(){if(V6g!==void 0)return V6g;var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return V6g=g},{mode:1});var hnv;var Zj$;var Iu=function(){var g=_.a.apply(this,arguments)||this;g.TEST_ONLY={immediateValidation:function(){g.immediateValidation()},
onValidationResponse:function(r){g.onValidationResponse(r)},
onGenerateHandleFromNameResponse:function(r){g.onGenerateHandleFromNameResponse(r)}};
return g};
_.f(Iu,_.a);_.S=Iu.prototype;_.S.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.S.validate=function(){this.immediateValidation()};
_.S.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.S.setHandleInputValue=function(g){this.handleDir=this.getHandleDir(g);this.handleInput.value=g;this.validationState={status:"PENDING"};this.immediateValidation()};
_.S.getHandleDir=function(g){var r=g===""&&!1;return(r=_.F04.test.call(_.F04,g))?"rtl":"ltr"};
_.S.onDataChanged=function(){var g,r;this.handleDir=this.getHandleDir((r=(g=this.data)==null?void 0:g.handle)!=null?r:"");var E;this.validationState=((E=this.data)==null?0:E.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var B;((B=this.data)==null?0:B.validateOnInit)&&this.immediateValidation()};
_.S.stopPropagation=function(g){g.stopPropagation()};
_.S.onInput=function(){var g;this.handleDir=this.getHandleDir((g=this.handleInput.value)!=null?g:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.S.onFocusout=function(g){this.handleInput.contains(g.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.S.delayedValidation=function(){var g,r;this.debouncedValidation((r=(g=this.data)==null?void 0:g.validationDelayMs)!=null?r:1E3)};
_.S.immediateValidation=function(){this.debouncedValidation(0)};
_.S.debouncedValidation=function(g){var r=this;_.Ib(this,"debouncedValidation",function(){var E,B=r.staticValidation((E=r.handleInput.value)!=null?E:"");if(B!==void 0)r.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:B};else{var w;if((w=r.data)!=null&&w.validateChannelHandleCommand){r.validationState={status:"LOADING"};var O;r.ytComponentBehavior.resolveCommand(r.data.validateChannelHandleCommand,{form:{handle:(O=r.handleInput.value)!=null?O:""},commandController:{onSuccess:function(M,
u){r.onValidationResponse(u)},
onServerError:function(M,u){r.onValidationServerError(u)}}})}else r.handleUnexpectedValidationError(new _.Rj("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",r.data))}},g)};
_.S.staticValidation=function(g){var r;if(((r=this.data)==null?void 0:r.channelHandleStaticValidationParams)!==void 0){r=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(g)&&r.validValueRegexpErrorMessage!==void 0)return r.validValueRegexpErrorMessage;if(r.minLength!==void 0&&g.length<r.minLength&&r.minLengthErrorMessage!==void 0)return r.minLengthErrorMessage;if(r.maxLength!==void 0&&g.length>r.maxLength&&r.maxLengthErrorMessage!==void 0)return r.maxLengthErrorMessage}};
_.S.onValidationResponse=function(g){var r=_.n(g.result,Z7v);r===void 0?this.handleUnexpectedValidationError(new _.Rj("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",g)):this.handleValidationResultRenderer(r)};
_.S.onValidationServerError=function(g){this.handleUnexpectedValidationError(new _.Rj("ValidateChannelHandle request failed.",g))};
_.S.handleValidationResultRenderer=function(g){if(g.handle===void 0)this.handleUnexpectedValidationError(new _.Rj("ChannelHandleValidationResultRenderer does not contain handle.",g));else if(g.handle===this.handleInput.value)switch(g.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:g.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:g.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.Rj("Unrecognized ChannelHandleValidationResult",g));break;default:_.MM(g.result)}};
_.S.handleUnexpectedValidationError=function(g){var r;this.validationState={status:"UNKNOWN",handle:(r=this.handleInput.value)!=null?r:""};_.el(g)};
_.S.stopEventPropagation=function(g){g.stopPropagation()};
_.S.updateHandleOnChannelNameInputChange=function(g){if(!this.wasEdited){var r,E;this.debouncedGenerateHandleFromName(g,(E=(r=this.data)==null?void 0:r.validationDelayMs)!=null?E:1E3)}};
_.S.debouncedGenerateHandleFromName=function(g,r){var E=this;_.Ib(this,"debouncedGenerateHandleFromName",function(){var B;(B=E.data)!=null&&B.validateChannelHandleCommand?E.ytComponentBehavior.resolveCommand(E.data.validateChannelHandleCommand,{form:{name:g},commandController:{onSuccess:function(w,O){E.onGenerateHandleFromNameResponse(O)},
onServerError:function(w,O){_.el(new _.Rj("Error calling GenerateHandleFromName",O))}}}):_.el(new _.Rj("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",E.data))},r)};
_.S.onGenerateHandleFromNameResponse=function(g){this.wasEdited||((g=_.n(g.result,yA4))?this.setHandleInputValue(g.handle):_.el(new _.Rj("Invalid results when generate handle from name")))};
_.hx.Object.defineProperties(Iu.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var g;if(g=this.validationState)g=this.validationState,g=g.status==="OK"||g.status==="UNKNOWN";if(g)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var g;if(((g=this.validationState)==null?void 0:g.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 g,r=(g=this.channelHandleEntity)==null?void 0:g.handleEdit;this.handleDir=this.getHandleDir(r!=null?r:"");return r}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var g,r;if(((g=this.data)==null?void 0:(r=g.channelHandleStaticValidationParams)==null?void 0:r.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
Iu.prototype.stopEventPropagation=Iu.prototype.stopEventPropagation;Iu.prototype.onDataChanged=Iu.prototype.onDataChanged;Iu.prototype.applyHandleEdit=Iu.prototype.applyHandleEdit;Iu.prototype.onValueChanged=Iu.prototype.onValueChanged;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Iu.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],Iu.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Iu.prototype,"data",void 0);
_.m([_.K(),_.L("design:type",Boolean)],Iu.prototype,"wasEdited",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],Iu.prototype,"handleDir",void 0);_.m([_.zb("#handle-input"),_.L("design:type",Object)],Iu.prototype,"handleInput",void 0);_.m([_.K(),_.W("validationState"),_.L("design:type",Object),_.L("design:paramtypes",[])],Iu.prototype,"value",null);
_.m([_.Gb("value"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Iu.prototype,"onValueChanged",null);_.m([_.W("validationState"),_.L("design:type",Object),_.L("design:paramtypes",[])],Iu.prototype,"errorIndicator",null);_.m([_.K({reflectToAttribute:!0}),_.W("errorIndicator"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Iu.prototype,"borderErrorIndicator",null);
_.m([_.K({selectorArgs:["data.channelHandleEntityKey"],selector:function(g,r){return _.u1(g.entities,"channelHandle",r)}}),
_.L("design:type",Object)],Iu.prototype,"channelHandleEntity",void 0);_.m([_.W("channelHandleEntity"),_.L("design:type",Object),_.L("design:paramtypes",[])],Iu.prototype,"handleEdit",null);_.m([_.Gb("handleEdit"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Iu.prototype,"applyHandleEdit",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Iu.prototype,"onDataChanged",null);
_.m([_.W("data.channelHandleStaticValidationParams.validValueRegexp"),_.L("design:type",Object),_.L("design:paramtypes",[])],Iu.prototype,"validValueRegexp",null);_.m([_.ob("yt-service-request-sent"),_.ob("yt-service-request-completed"),_.ob("yt-service-request-error"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],Iu.prototype,"stopEventPropagation",null);_.m([_.N({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],Iu);
_.I(Iu,"ytd-channel-handle-input-renderer",function(){if(Zj$!==void 0)return Zj$;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return Zj$=g},{mode:_.My("kevlar_poly_si_batch_j025")?1:2});var mO=function(){var g=_.a.apply(this,arguments)||this;g.data=null;g.errorMessage=null;g.isLoading=!0;g.hideContainer=!1;g.enableNewChannelCreationOnIdForAll=_.Y("enable_new_channel_creation_for_id4all");g.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"};g.testOnly={setErrorMessage:function(r){g.resetErrorState();
g.setErrorState(r)}};
return g};
_.f(mO,_.a);_.S=mO.prototype;_.S.created=function(){this.logScreenVe()};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.toggleCreateChannelButton();this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.hostElement.parentElement.style.overflowY="auto")};
_.S.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var g;((g=this.zeroStepErrorMessageEntity)==null?0:g.value)&&this.set("errorMessage",_.Lf(this.zeroStepErrorMessageEntity.value))};
_.S.onCreateTap=function(){var g=this;if(this.data&&this.data.channelCreationEndpoint){var r,E;if(!((r=this.data.createChannelButton)==null?0:(E=r.buttonRenderer)==null?0:E.isDisabled)){var B;if((B=this.nameInput)!=null&&B.value){this.setLoadingState();var w,O;r=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(w=this.handleInput)==null?void 0:w.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((O=this.handleInput)==null?void 0:O.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:r,commandController:{onSuccess:function(M,u){g.onChannelCreationEndpointSuccess(u);g.obakeImageSource&&_.Jn("channelCreatedWithObakeImage",{imageSourceType:g.obakeImageSource})},
onServerError:function(){g.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.S.endpointRequiresServiceRequestAction=function(g){return!!_.n(g,_.ja)||!!_.n(g,hOD)};
_.S.isNavigateAction=function(g){var r;return!!_.n(g,_.I_)||!!_.n((r=_.n(g,TnM))==null?void 0:r.command,_.I_)};
_.S.isPlaylistAction=function(g){return!!_.n(g,_.J9)||!!_.n(g,_.CY)};
_.S.onChannelCreationEndpointSuccess=function(g){if(g.createChannelError){var r;this.setErrorState((r=g.createChannelError)==null?void 0:r.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.Y("enable_secondary_channel_creation_form")&&g.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(g.navigationEndpoint);if(g.actions){r=_.U(g.actions);for(var E=r.next();!E.done;E=r.next())if(E=E.value,this.endpointRequiresServiceRequestAction(E)&&this.ytComponentBehavior.resolveCommand(E),
this.isNavigateAction(E)){var B=void 0;E=_.n((B=_.n(E,TnM))==null?void 0:B.command,_.I_);B=void 0;this.isPlaylistAction((B=E)==null?void 0:B.endpoint)&&(_.OS(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),B=void 0,this.ytComponentBehavior.resolveCommand((B=E)==null?void 0:B.endpoint))}}g.actions&&g.actions.some(function(w){var O;return _.n(w,_.I_)||_.n((O=_.n(w,TnM))==null?void 0:O.command,_.I_)})||_.OS(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.S.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.S.onCancelTap=function(){var g,r,E;if(!((g=this.data)==null?0:(r=g.cancelButton)==null?0:(E=r.buttonRenderer)==null?0:E.isDisabled)){var B,w,O;g=(B=this.data)==null?void 0:(w=B.cancelButton)==null?void 0:(O=w.buttonRenderer)==null?void 0:O.command;if(!g||!_.n(g,_.fAL)){var M;this.nameInput&&((M=this.data)==null?0:M.name)&&(this.nameInput.value=this.data.name);var u;this.handleInput&&((u=this.data)==null?0:u.channelHandleInput)&&(this.handleInput.data=_.n(this.data.channelHandleInput,vv8));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.S.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.S.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.S.onClearProfilePhotoTap=function(){var g,r,E;((g=this.data)==null?0:(r=g.clearProfilePhotoButton)==null?0:(E=r.buttonRenderer)==null?0:E.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.S.onEditAvatarTap=function(){var g,r,E;((g=this.data)==null?0:(r=g.editAvatarButton)==null?0:(E=r.buttonRenderer)==null?0:E.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.S.setLoadingState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("errorMessage",null)};
_.S.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var g;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((g=this.data)==null?0:g.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.S.setErrorState=function(g){this.resetErrorState();if(g)this.set("errorMessage",g);else{var r;if((r=this.zeroStepErrorMessageEntity)==null?0:r.value)this.set("errorMessage",_.Lf(this.zeroStepErrorMessageEntity.value));else{var E;((E=this.data)==null?0:E.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.S.fetchImageBlobWithAlr=function(g,r){r=r===void 0?5:r;var E=this,B,w,O,M,u;return _.q(function(l){switch(l.nextAddress){case 1:return _.D(l,fetch(g,{method:"GET",mode:"cors"}),2);case 2:B=l.yieldResult;if(B.ok){l.jumpTo(3);break}if(r===0)throw Error();w=E.addJitter(Math.pow(2,5-r));return _.D(l,new Promise(function(Q){setTimeout(Q,w*1E3)}),4);
case 4:return l.return(E.fetchImageBlobWithAlr(g,r-1));case 3:if(!B.headers.get("content-type").split(";").some(function(Q){return Q.trim()==="text/plain"})){l.jumpTo(5);
break}O=E;M=O.fetchImageBlobWithAlr;return _.D(l,B.text(),6);case 6:return l.return(M.call(O,l.yieldResult,r-1));case 5:return _.D(l,B.blob(),7);case 7:return u=l.yieldResult,l.return(u)}})};
_.S.addJitter=function(g){var r=g*.3*Math.random();Math.random()>.5&&(r*=-1);return g+r};
_.S.openProfilePicturePicker=function(){var g=this,r,E,B,w,O;return _.q(function(M){if(M.nextAddress==1){r=g.data.scottyUploadUrl;if(!r)return M.return();E=document.documentElement.hasAttribute("dark");B=document.body.style.colorScheme;E&&(document.body.style.colorScheme="dark");w=LTL(VYm(iUD(h$6(E?"dark":"light")),function(u){var l,Q,z,k,H;return _.q(function(R){if(R.nextAddress==1)return l=_.KV(qZD(new nb(u.photoUrl,!1)).build(),"alr","yes"),g.obakeImageSource=g.pictureChangeSourceToObakeImageSourceType(u.photoSource),
_.qN(R,2),g.setLoadingState(),_.D(R,g.fetchImageBlobWithAlr(l),4);if(R.nextAddress!=2)return Q=R.yieldResult,z=new FileReader,z.addEventListener("load",function(){var A,J,e,C,X,Z;return _.q(function(c){if(c.nextAddress==1){if(Q.size>15728640)return g.setErrorState((A=g.data)==null?void 0:A.imageSizeErrorMessage),_.el(Error("pl")),c.return();if(!z.result)return g.setErrorState((J=g.data)==null?void 0:J.genericImageLoadErrorMessage),_.el(Error("ql")),c.return();e=z.result;_.qN(c,2);return _.D(c,e9D(Q,
r),4)}if(c.nextAddress!=2)return C=c.yieldResult,g.handleImageUpdatedAction(e,C),g.resetErrorState(),_.Ne(c,0);X=_.G2(c);g.setErrorState((Z=g.data)==null?void 0:Z.uploadErrorMessage);if(X instanceof Error)_.tn(X);else{var h=new _.Rj(JSON.stringify(X));_.tn(h)}_.Q3(c)})}),z.readAsDataURL(Q),_.Ne(R,0);
k=_.G2(R);g.setErrorState((H=g.data)==null?void 0:H.genericImageLoadErrorMessage);k instanceof Error?_.tn(k):_.FR(new _.Rj(JSON.stringify(k)));_.Q3(R)})}),function(){g.hideContainer=!1;
document.body.style.colorScheme=B});
_.qN(M,2);return _.D(M,w.openPicker(),4)}if(M.nextAddress!=2)return _.Ne(M,0);_.G2(M);g.setErrorState((O=g.data)==null?void 0:O.selectImageErrorMessage);_.Q3(M)})};
_.S.pictureChangeSourceToObakeImageSourceType=function(g){switch(g){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.S.logScreenVe=function(){_.wT(_.pW(),124448)};
_.S.graftServerVe=function(){var g=_.JF(),r,E,B=(r=this.data)==null?void 0:(E=r.loggingDirectives)==null?void 0:E.trackingParams;B&&g&&(this.channelCreationFormVe=_.pW().graftServerVe(B,g),g={visualElement:this.channelCreationFormVe},_.kP().reportShown(g))};
_.S.isNameChanged=function(g){var r;return((r=this.data)==null?void 0:r.name)!==g};
_.S.isHandleChanged=function(g){var r,E=_.n((r=this.data)==null?void 0:r.channelHandleInput,vv8);return E&&g?E.handle!==g:!1};
_.S.handleImageUpdatedAction=function(g,r){this.hideContainer=!1;this.previewDataUrl=g;this.encryptedBlobId=r};
_.S.handleImageSelectionErrorAction=function(g){this.hideContainer=!1;this.setErrorState(g)};
_.S.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.S.showContainer=function(){this.hideContainer=!1};
_.S.maybeWipeZeroStepErrorMessage=function(){var g,r=(g=this.data)==null?void 0:g.zeroStepErrorMessageEntityKey,E;r&&((E=this.zeroStepErrorMessageEntity)==null?0:E.value)&&this.ytdReduxBehavior.dispatch(_.za("stringEntity",r,{key:r,value:""}))};
_.hx.Object.defineProperties(mO.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 g;return((g=this.photoThumbnail)==null?0:g.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 g;return!((g=this.data)==null||!g.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.descriptionInfo}}});
mO.prototype.dataChanged=mO.prototype.dataChanged;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],mO.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],mO.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],mO.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],mO.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],mO.prototype,"errorMessage",void 0);
_.m([_.K(),_.L("design:type",Object)],mO.prototype,"isLoading",void 0);_.m([_.K(),_.L("design:type",String)],mO.prototype,"previewDataUrl",void 0);_.m([_.K(),_.L("design:type",Number)],mO.prototype,"obakeImageSource",void 0);_.m([_.K(),_.L("design:type",Object)],mO.prototype,"hideContainer",void 0);_.m([_.zb("#title-input"),_.L("design:type",Object)],mO.prototype,"nameInput",void 0);_.m([_.zb("#handle-input"),_.L("design:type",Object)],mO.prototype,"handleInput",void 0);
_.m([_.K(),_.L("design:type",Boolean)],mO.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.m([_.K({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.MQD}),_.L("design:type",Object)],mO.prototype,"zeroStepErrorMessageEntity",void 0);_.m([_.W("data","data.isDefaultProfilePhoto","previewDataUrl"),_.L("design:type",Object),_.L("design:paramtypes",[])],mO.prototype,"photoThumbnail",null);
_.m([_.W("data","data.isDefaultProfilePhoto","photoThumbnail"),_.L("design:type",Object),_.L("design:paramtypes",[])],mO.prototype,"userSetPhotoThumbnailUrl",null);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],mO.prototype,"hideProfilePhotoButtonLayer",null);_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],mO.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.m([_.Yk("data","zeroStepErrorMessageEntity"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],mO.prototype,"dataChanged",null);_.m([_.K({reflectToAttribute:!0}),_.W("data.descriptionInfo","zeroStepErrorMessageEntity"),_.L("design:type",Object),_.L("design:paramtypes",[])],mO.prototype,"description",null);_.m([_.N({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],mO);
_.I(mO,"ytd-channel-creation-dialog-renderer",function(){if(hnv!==void 0)return hnv;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return hnv=g},{mode:1});var yHg;var cI=function(){var g=_.a.apply(this,arguments)||this;g.isLoading=!1;g.isDisabled=!1;return g};
_.f(cI,_.a);cI.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
cI.prototype.updateDisabled=function(){var g;this.isDisabled=this.isLoading||((g=this.handleInput)==null?void 0:g.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
cI.prototype.onSaveClick=function(){var g=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var r;((r=this.data)==null?void 0:r.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 E;if((E=g.data)==null?0:E.nextEndpoint){var B;g.ytComponentBehavior.resolveCommand((B=g.data)==null?void 0:B.nextEndpoint)}else g.isLoading=
!1,g.closeDialog()},
onServerError:function(){g.isLoading=!1;g.handleInput.validate();var E;g.errorMessage=(E=g.data)==null?void 0:E.errorMessage}}}))}};
cI.prototype.closeDialog=function(){_.OS(this.hostElement,"yt-close-popup-action",[this.is])};
cI.prototype.updateDisabled=cI.prototype.updateDisabled;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],cI.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],cI.prototype,"data",void 0);_.m([_.zb("#handle-input"),_.L("design:type",Object)],cI.prototype,"handleInput",void 0);_.m([_.Gb("isLoading"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],cI.prototype,"updateDisabled",null);
_.m([_.N({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],cI);
_.I(cI,"ytd-channel-handle-edit-dialog-renderer",function(){if(yHg!==void 0)return yHg;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return yHg=g},{mode:1});var vnz;var LF=function(){return _.a.apply(this,arguments)||this};
_.f(LF,_.a);LF.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],LF.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],LF.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],LF.prototype,"data",void 0);_.m([_.N({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],LF);
_.I(LF,"ytd-channel-switcher-footer-renderer",function(){if(vnz!==void 0)return vnz;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return vnz=g},{mode:1});var dR5;var TI$;var V0=function(){return _.a.apply(this,arguments)||this};
_.f(V0,_.a);V0.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
V0.prototype.onIronChange=V0.prototype.onIronChange;_.m([_.K(),_.L("design:type",Object)],V0.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!1}),_.L("design:type",Function)],V0.prototype,"onDontAskAgainChanged",void 0);_.m([_.zb("#checkbox"),_.L("design:type",Object)],V0.prototype,"checkbox",void 0);_.m([_.ob("iron-change"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],V0.prototype,"onIronChange",null);
_.m([_.N({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],V0);
_.I(V0,"ytd-identity-prompt-footer-renderer",function(){if(TI$!==void 0)return TI$;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return TI$=g},{mode:1});var hd=function(){var g=_.a.apply(this,arguments)||this;g.dontAskAgain=!1;g.showPopup=!1;g.boundDontAskAgainChanged=function(r){g.dontAskAgainChanged(r)};
g.boundOnAccountItemTap=function(r){g.onAccountItemTap(r)};
return g};
_.f(hd,_.a);_.S=hd.prototype;
_.S.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{accountItemSectionRenderer:{component:"ytd-account-item-section-renderer",properties:{onAccountItemTap:"[[boundOnAccountItemTap]]"}}}},"data.header":{id:"header",mapping:{simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer"}},"data.footer":{id:"footer",mapping:{channelSwitcherFooterRenderer:"ytd-channel-switcher-footer-renderer",identityPromptFooterRenderer:{component:"ytd-identity-prompt-footer-renderer",properties:{onDontAskAgainChanged:"[[boundDontAskAgainChanged]]"}}}}}};
_.S.ready=function(){var g=this;_.S3(this.hostElement).querySelector("#container").addEventListener("scroll",function(){g.ytRendererBehavior.markDirty()})};
_.S.dontAskAgainChanged=function(g){this.dontAskAgain=g};
_.S.onAccountItemTap=function(g){if(g){var r={};this.dontAskAgain&&(r={dont_ask_again:this.dontAskAgain});_.co(g,r)}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.S.redirectOnlyAccount=function(g){g.sections&&g.sections.length>0&&(g=_.n(g.sections[0],_.bZw),(g==null?0:g.contents)&&(g==null?void 0:g.contents.length)<=1?(g=_.iu(window.location.href),(g==null?0:g.next)&&_.RUt(g.next)?_.co(g.next):_.co("/")):this.showPopup=!0)};
hd.prototype.dataChanged=hd.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],hd.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],hd.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],hd.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!1}),_.L("design:type",Object)],hd.prototype,"dontAskAgain",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],hd.prototype,"showPopup",void 0);_.m([_.K({reflectToAttribute:!1}),_.L("design:type",Object)],hd.prototype,"boundDontAskAgainChanged",void 0);_.m([_.K({reflectToAttribute:!1}),_.L("design:type",Object)],hd.prototype,"boundOnAccountItemTap",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],hd.prototype,"dataChanged",null);
_.m([_.N({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],hd);
_.I(hd,"ytd-channel-switcher-renderer",function(){if(dR5!==void 0)return dR5;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return dR5=g},{mode:1});var g14;var ZM=function(){return _.a.apply(this,arguments)||this};
_.f(ZM,_.a);_.hx.Object.defineProperties(ZM.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.m([_.K(),_.L("design:type",Object)],ZM.prototype,"data",void 0);_.m([_.W("data"),_.L("design:type",Array),_.L("design:paramtypes",[])],ZM.prototype,"steps",null);_.m([_.N({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],ZM);
_.I(ZM,"ytd-channel-transfer-stepper-renderer",function(){if(g14!==void 0)return g14;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return g14=g},{mode:1});var rKg;var y0=function(){var g=_.a.apply(this,arguments)||this;g.data=null;g.isError=!1;g.isLoading=!1;return g};
_.f(y0,_.a);_.S=y0.prototype;_.S.configureRendererStamper=function(){return{"data.personalAccountTile.selectButton":{id:"personal-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.brandAccountTile.selectButton":{id:"brand-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.S.computeProfileName=function(g){return g?g.givenNameValue+" "+g.familyNameValue:""};
_.S.onYtServiceRequestSent=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("isError",!1)};
_.S.onYtServiceRequestError=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.set("isLoading",!1);this.set("isError",!0)};
y0.prototype.onYtServiceRequestError=y0.prototype.onYtServiceRequestError;y0.prototype.onYtServiceRequestSent=y0.prototype.onYtServiceRequestSent;y0.prototype.dataChanged=y0.prototype.dataChanged;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],y0.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],y0.prototype,"data",void 0);
_.m([_.K({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.L("design:type",String)],y0.prototype,"profileName",void 0);_.m([_.K(),_.L("design:type",Object)],y0.prototype,"isError",void 0);_.m([_.K(),_.L("design:type",Object)],y0.prototype,"isLoading",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],y0.prototype,"dataChanged",null);
_.m([_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.XA]),_.L("design:returntype")],y0.prototype,"onYtServiceRequestSent",null);_.m([_.ob("yt-service-request-error"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.XA]),_.L("design:returntype")],y0.prototype,"onYtServiceRequestError",null);_.m([_.N({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],y0);
_.I(y0,"ytd-channel-warm-welcome-cont-renderer",function(){if(rKg!==void 0)return rKg;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return rKg=g},{mode:1});var E15;var vI=function(){var g=_.a.apply(this,arguments)||this;g.data=null;return g};
_.f(vI,_.a);vI.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
vI.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],vI.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],vI.prototype,"data",void 0);_.m([_.N({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],vI);
_.I(vI,"ytd-channel-warm-welcome-renderer",function(){if(E15!==void 0)return E15;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return E15=g},{mode:1});var B$m;var df=function(){return _.a.apply(this,arguments)||this};
_.f(df,_.a);_.hx.Object.defineProperties(df.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.authorThumbnail)||{}}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],df.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],df.prototype,"data",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],df.prototype,"thumbnailDetails",null);_.m([_.N({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],df);
_.I(df,"ytd-comment-preview-renderer",function(){if(B$m!==void 0)return B$m;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return B$m=g},{mode:1});var w4g;var TX=function(){return _.a.apply(this,arguments)||this};
_.f(TX,_.a);TX.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.hx.Object.defineProperties(TX.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.submitButton}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],TX.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],TX.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],TX.prototype,"data",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],TX.prototype,"submitButton",null);_.m([_.N({is:"ytd-notice-renderer",disableElementRegistration:!0})],TX);
_.I(TX,"ytd-notice-renderer",function(){if(w4g!==void 0)return w4g;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return w4g=g},{mode:1});var SV4;var gZ=function(){return _.a.apply(this,arguments)||this};
_.f(gZ,_.a);gZ.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],gZ.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],gZ.prototype,"data",void 0);_.m([_.N({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],gZ);
_.I(gZ,"ytd-preview-comment-dialog-content",function(){if(SV4!==void 0)return SV4;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return SV4=g},{mode:1});var OOD;var rZ=function(){return _.a.apply(this,arguments)||this};
_.f(rZ,_.a);rZ.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
rZ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],rZ.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],rZ.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],rZ.prototype,"data",void 0);_.m([_.N({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],rZ);
_.I(rZ,"ytd-preview-comment-dialog-renderer",function(){if(OOD!==void 0)return OOD;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return OOD=g},{mode:1});var UZA;var MK5=_.Y("web_button_rework")&&_.Ka("BUTTON_REWORK")||_.Y("web_button_rework_with_live"),E1=function(){var g=_.a.apply(this,arguments)||this;g.closeLabel=_.zn("CLOSE");g.selectedAmountIndex=1;g.privacyCheckboxValue=!1;g.useAmsterdamStyle=MK5;g.amountPlaceholderIndex=-1;return g};
_.f(E1,_.a);_.S=E1.prototype;_.S.onAmountClick=function(g){this.selectedAmountIndex=_.S3(this.hostElement).querySelector("#amounts").indexForElement(g.currentTarget)};
_.S.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.OS(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.S.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.OS(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.OS(this.hostElement,"yt-close-popup-action",[this.is]);var g;(g=_.Tw())==null||g.getPlayerPromise().then(function(r){r.pauseVideo()})}};
_.S.donationCallback=function(g){g.success?(this.hostElement.hasAttribute("live-chat")&&g.response&&g.response.data&&g.response.data.actions&&_.OS(this.hostElement,"yt-live-chat-open-popup",[g.response.data.actions[0]]),_.OS(this.hostElement,"yt-close-popup-action",[this.is]),_.OS(this.hostElement,"yt-live-chat-close-buy-flow")):g.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(g.errorMessageRenderer)};
_.S.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.S3(this.hostElement).querySelector("#custom-amount-input").focus()};
_.S.updateConfirmationDialogTextWithAmount=function(g){var r=this.getConfirmDialogRuns();r&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(r),"text"],this.getFormattedAmount(g))};
_.S.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.S.getAmountPlaceholderIndex=function(g){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=g.findIndex(function(r){return r.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.S.getFormattedAmount=function(g){var r;return(new _.Xc(4,((r=this.data)==null?void 0:r.currencyCode)||"")).format(g)};
_.S.isAmountValid=function(g){if(g==="")return!1;g=Number(g)*1E6;var r=this.get("minAmountMicros",this.data),E=this.get("maxAmountMicros",this.data);return r&&g<r||E&&g>E?!1:!0};
_.S.setInputError=function(){this.shouldShowValidationError?_.S3(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.S3(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.S.setInitialCheckboxValue=function(){var g;this.privacyCheckboxValue=!((g=this.data)==null||!g.privacyCheckboxInitialState)};
_.S.updateCustomAmountInputFromBinding=function(g){this.customAmountInput=g.detail.value};
_.S.updatePrivacyCheckboxValueFromBinding=function(g){this.privacyCheckboxValue=g.detail.value};
_.hx.Object.defineProperties(E1.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var g=this,r,E;return((r=this.data)==null?void 0:(E=r.suggestedAmounts)==null?void 0:E.map(function(B,w){return{buttonRenderer:{style:g.selectedAmountIndex===w?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:B.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 g;return!((g=this.data)==null||!g.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 g=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(g&&this.amountMicros!==null)return Object.assign({},g,{ypcGetCartEndpoint:Object.assign({},g.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 g=this.get("confirmLargeAmount",this.data);if(g&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),g}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var g=this.get("donateButton.buttonRenderer",this.data);if(g)return Object.assign({},g,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
E1.prototype.setInitialCheckboxValue=E1.prototype.setInitialCheckboxValue;E1.prototype.setInputError=E1.prototype.setInputError;E1.prototype.setFocusOnCustomAmountInput=E1.prototype.setFocusOnCustomAmountInput;_.m([_.P(Y5F),_.L("design:type",Object)],E1.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],E1.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],E1.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],E1.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],E1.prototype,"closeLabel",void 0);_.m([_.K(),_.L("design:type",Object)],E1.prototype,"selectedAmountIndex",void 0);_.m([_.K(),_.L("design:type",String)],E1.prototype,"customAmountInput",void 0);_.m([_.K(),_.L("design:type",Object)],E1.prototype,"privacyCheckboxValue",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],E1.prototype,"useAmsterdamStyle",void 0);_.m([_.Gb("customAmount"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],E1.prototype,"setFocusOnCustomAmountInput",null);_.m([_.W("data","selectedAmountIndex"),_.L("design:type",Array),_.L("design:paramtypes",[])],E1.prototype,"suggestedAmountButtons",null);
_.m([_.W("data","selectedAmountIndex"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],E1.prototype,"isCustomAmountSelected",null);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],E1.prototype,"showPrivacyCheckbox",null);_.m([_.W("data","selectedAmountIndex","customAmount"),_.L("design:type",Object),_.L("design:paramtypes",[])],E1.prototype,"amountMicros",null);
_.m([_.W("isCustomAmountSelected","customAmountInput"),_.L("design:type",Object),_.L("design:paramtypes",[])],E1.prototype,"customAmount",null);_.m([_.W("customAmount"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],E1.prototype,"shouldShowValidationError",null);_.m([_.W("customAmount"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],E1.prototype,"isDonateButtonEnabled",null);
_.m([_.W("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.L("design:type",Object),_.L("design:paramtypes",[])],E1.prototype,"donateCommand",null);_.m([_.W("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.L("design:type",Object),_.L("design:paramtypes",[])],E1.prototype,"donateCommandWithConfirmation",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],E1.prototype,"largeDonationThreshold",null);
_.m([_.W("customAmount","donateCommand","amountMicros"),_.L("design:type",Object),_.L("design:paramtypes",[])],E1.prototype,"confirmLargeAmountCommand",null);_.m([_.W("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.L("design:type",Object),_.L("design:paramtypes",[])],E1.prototype,"donateButtonRenderer",null);_.m([_.Gb("shouldShowValidationError"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],E1.prototype,"setInputError",null);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],E1.prototype,"setInitialCheckboxValue",null);_.m([_.N({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],E1);
_.I(E1,"ytd-donation-amount-picker-renderer",function(){if(UZA!==void 0)return UZA;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return UZA=g},{mode:1});var qVF;var Bn=function(){return _.a.apply(this,arguments)||this};
_.f(Bn,_.a);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Bn.prototype,"ytComponentBehavior",void 0);_.m([_.K({}),_.L("design:type",Object)],Bn.prototype,"data",void 0);_.m([_.N({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],Bn);
_.I(Bn,"ytd-donation-post-transaction-content",function(){if(qVF!==void 0)return qVF;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return qVF=g},{mode:1});var u9v;var wZ=function(){return _.a.apply(this,arguments)||this};
_.f(wZ,_.a);wZ.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],wZ.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);_.m([_.K({}),_.L("design:type",Object)],wZ.prototype,"data",void 0);_.m([_.N({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],wZ);
_.I(wZ,"ytd-donation-post-transaction-renderer",function(){if(u9v!==void 0)return u9v;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return u9v=g},{mode:1});var lL$;var DZA;var SA=function(){return _.a.apply(this,arguments)||this};
_.f(SA,_.a);SA.prototype.computeIsStreamingProvider=function(g){return!!g.isStreamingShelf};
SA.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],SA.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],SA.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],SA.prototype,"data",void 0);_.m([_.K({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],SA.prototype,"isStreamingProvider",void 0);
_.m([_.N({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],SA);
_.I(SA,"ytd-media-provider-renderer",function(){if(DZA!==void 0)return DZA;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return DZA=g},{mode:1});var o15;var O1=function(){return _.a.apply(this,arguments)||this};
_.f(O1,_.a);O1.prototype.observeLightsourcePalette=function(){var g,r=(g=this.data)==null?void 0:g.vibrantsourceColorPaletteData;r&&_.tR(this.hostElement,r)};
O1.prototype.observeLightsourcePalette=O1.prototype.observeLightsourcePalette;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],O1.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],O1.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],O1.prototype,"data",void 0);
_.m([_.Gb("data.vibrantsourceColorPaletteData"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],O1.prototype,"observeLightsourcePalette",null);_.m([_.N({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],O1);
_.I(O1,"ytd-streaming-pop-up-dialog",function(){if(o15!==void 0)return o15;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return o15=g},{mode:1});var U1=function(){return _.a.apply(this,arguments)||this};
_.f(U1,_.a);U1.prototype.onPopupOpened_=function(){var g;((g=this.data)==null?0:g.serviceEndpoint)&&_.rM().resolve(_.Er).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
U1.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
U1.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"}}}}};
U1.prototype.onPopupOpened_=U1.prototype.onPopupOpened_;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],U1.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],U1.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Xe),_.L("design:type",Object)],U1.prototype,"ytContinuationHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],U1.prototype,"data",void 0);
_.m([_.ob("yt-popup-opened"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],U1.prototype,"onPopupOpened_",null);_.m([_.N({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],U1);
_.I(U1,"ytd-brandconnect-popup-renderer",function(){if(lL$!==void 0)return lL$;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return lL$=g},{mode:1});var GVM;var MI=function(){return _.a.apply(this,arguments)||this};
_.f(MI,_.a);_.S=MI.prototype;_.S.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.dataChanged=function(){for(var g=0;g<this.getOptionRenderers().length;g++)this.notifyPath("data.options."+g+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+g+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.S.updateSubmitButton=function(g){this.set("data.submitButton.buttonRenderer.isDisabled",!g)};
_.S.computeAlt=function(g){return _.Vp(g)};
_.S.onDismissTap=function(){_.OS(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.rM().resolve(_.Er).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.S.getOptionRenderers=function(g){return(g=g||this.data)&&g.options?g.options.reduce(function(r,E){E.checkboxSurveyOptionRenderer&&r.push(E.checkboxSurveyOptionRenderer);return r},[]):[]};
_.S.onOptionChange=function(g){var r=this,E=!1;if(g.detail.checked)for(var B=this.getOptionRenderers().find(function(u){return u.value===g.detail.value}),w=this.getOptionRenderers(),O=0;O<w.length;O++){var M=w[O];
this.notifyPath("data.options."+O+".checkboxSurveyOptionRenderer.checked");M.checked&&((B==null?0:B.isExclusiveOption)?!M.isExclusiveOption:M.isExclusiveOption)?this.set("data.options."+O+".checkboxSurveyOptionRenderer.checked",!1):M.checked&&(E=!0)}else E=this.getOptionRenderers().some(function(u,l){r.notifyPath("data.options."+l+".checkboxSurveyOptionRenderer.checked");return u.checked});
this.updateSubmitButton(E)};
_.S.onSubmitTap=function(){var g=this.getOptionRenderers().filter(function(O){return O.checked});
if(g.length!==0){var r=g.map(function(O){return O.responseEndpoint});
g=[];for(var E=1;E<r.length;E++){var B=void 0,w=(B=_.n(r[E],_.AQ))==null?void 0:B.feedbackToken;w&&g.push(w)}r=[r[0]];g.length&&r.push({extra_feedback_tokens:g});_.q2(this.hostElement,r);_.OS(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);g=this.data&&this.data.submitActions||[];if(_.Y("kevlar_command_handler_migration_killswitch"))_.uq(this.hostElement,g,this.hostElement);else for(g=_.U(g),r=g.next();!r.done;r=g.next())this.ytComponentBehavior.resolveCommand(r.value)}};
MI.prototype.onOptionChange=MI.prototype.onOptionChange;MI.prototype.dataChanged=MI.prototype.dataChanged;_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],MI.prototype,"ytEventForwardingBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],MI.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],MI.prototype,"ytComponentBehavior",void 0);
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],MI.prototype,"ytRendererBehavior",void 0);_.m([_.P(aWg),_.L("design:type",Object)],MI.prototype,"ytdHatsSurveyBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],MI.prototype,"data",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],MI.prototype,"dataChanged",null);
_.m([_.ob("ytd-checkbox-survey-option-changed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],MI.prototype,"onOptionChange",null);_.m([_.N({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],MI);
_.I(MI,"ytd-checkbox-survey-renderer",function(){if(GVM!==void 0)return GVM;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return GVM=g},{mode:1});var QZ$;var zCM;var qI=function(){return _.a.apply(this,arguments)||this};
_.f(qI,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],qI.prototype,"ytRendererBehavior",void 0);_.m([_.P(xV8),_.L("design:type",Object)],qI.prototype,"ytdDismissalReasonBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],qI.prototype,"data",void 0);_.m([_.N({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],qI);
_.I(qI,"ytd-dismissal-reason-text-renderer",function(){if(zCM!==void 0)return zCM;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return zCM=g},{mode:1});var kV$;var uE=function(){return _.a.apply(this,arguments)||this};
_.f(uE,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],uE.prototype,"ytRendererBehavior",void 0);_.m([_.P(xV8),_.L("design:type",Object)],uE.prototype,"ytdDismissalReasonBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],uE.prototype,"data",void 0);_.m([_.N({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],uE);
_.I(uE,"ytd-dismissal-reason-video-renderer",function(){if(kV$!==void 0)return kV$;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return kV$=g},{mode:1});var lE=function(){var g=_.a.apply(this,arguments)||this;g.darkerDarkTheme=_.Y("web_darker_dark_theme");return g};
_.f(lE,_.a);_.S=lE.prototype;_.S.created=function(){this.selectedFeedbackTokens=new Is};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.S.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.S.onDismissalReasonSelected=function(g,r){_.Sh(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(r);this.hasReasonsSelected=!0};
_.S.onDismissalReasonDeselected=function(g,r){_.Sh(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(r);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.S.onCancelTap=function(){_.OS(this.hostElement,"yt-close-popup-action")};
_.S.onSubmitTap=function(){var g=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(g={feedback_tokens:g},_.rM().resolve(_.Er).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},g,{element:this.hostElement})}));_.OS(this.hostElement,"yt-close-popup-action")};
lE.prototype.onDismissalReasonDeselected=lE.prototype.onDismissalReasonDeselected;lE.prototype.onDismissalReasonSelected=lE.prototype.onDismissalReasonSelected;lE.prototype.dataChanged=lE.prototype.dataChanged;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],lE.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],lE.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],lE.prototype,"data",void 0);
_.m([_.K(),_.L("design:type",Boolean)],lE.prototype,"hasReasonsSelected",void 0);_.m([_.K(),_.L("design:type",Is)],lE.prototype,"selectedFeedbackTokens",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],lE.prototype,"darkerDarkTheme",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],lE.prototype,"dataChanged",null);
_.m([_.ob("yt-dismissal-reason-selected"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,String]),_.L("design:returntype")],lE.prototype,"onDismissalReasonSelected",null);_.m([_.ob("yt-dismissal-reason-deselected"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,String]),_.L("design:returntype")],lE.prototype,"onDismissalReasonDeselected",null);_.m([_.N({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],lE);
_.I(lE,"ytd-dismissal-follow-up-renderer",function(){if(QZ$!==void 0)return QZ$;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return QZ$=g},{mode:1});var HOg;var DT=function(){return _.a.apply(this,arguments)||this};
_.f(DT,_.a);_.S=DT.prototype;_.S.onCheckedChange=function(){this.multiselect||_.Sh(this.hostElement,"yt-feedback-single-select-changed");_.S3(this.hostElement).querySelector("#freeform").focus();_.Sh(this.hostElement,"yt-refit")};
_.S.showTextBox=function(g,r){return g&&r};
_.S.dataChanged=function(){this.data&&(this.data.resultText===void 0&&this.set("data.resultText",""),this.data.checked===void 0&&this.set("data.checked",!1),this.data.allowFreeTextInput===void 0&&this.set("data.allowFreeTextInput",!1))};
_.S.updateDataCheckedFromBinding=function(g){this.set("data.checked",g.detail.value)};
_.S.updateDataResultTextFromBinding=function(g){this.set("data.resultText",g.detail.value)};
DT.prototype.dataChanged=DT.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],DT.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],DT.prototype,"data",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],DT.prototype,"multiselect",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],DT.prototype,"dataChanged",null);
_.m([_.N({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],DT);
_.I(DT,"ytd-feedback-option-renderer",function(){if(HOg!==void 0)return HOg;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return HOg=g},{mode:1});var p48;var oG=function(){return _.a.apply(this,arguments)||this};
_.f(oG,_.a);oG.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
oG.prototype.onSingleSelectCheckedChanged=function(g){g=_.yP(g);for(var r=0;r<this.data.options.length;r++)if(g.data!==_.n(this.data.options[r],K5v)){var E="data.options."+r+".feedbackOptionRenderer.checked";this.notifyPath(E);this.set(E,!1)}};
oG.prototype.onSingleSelectCheckedChanged=oG.prototype.onSingleSelectCheckedChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],oG.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],oG.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],oG.prototype,"data",void 0);
_.m([_.ob("yt-feedback-single-select-changed"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],oG.prototype,"onSingleSelectCheckedChanged",null);_.m([_.N({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],oG);
_.I(oG,"ytd-feedback-question-renderer",function(){if(p48!==void 0)return p48;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return p48=g},{mode:1});var YV6;var GH=function(){return _.a.apply(this,arguments)||this};
_.f(GH,_.a);GH.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
GH.prototype.getSelectedFeedbackResults=function(){for(var g={},r=0;r<this.data.questions.length;r++)for(var E=_.n(this.data.questions[r],Cwv),B=0;B<E.options.length;B++){var w=_.n(E.options[B],K5v);w&&w.checked&&(g[w.optionKey]=w.resultText)}return g};
GH.prototype.onKeyUp=function(){var g=this;_.Mh(_.F6,function(){_.Sh(g.hostElement,"yt-refit")});
_.F6.start()};
GH.prototype.submitSurvey=function(){var g=this.getSelectedFeedbackResults();Object.keys(g).length>0&&this.data.submitFeedbackEndpoint&&(g={survey_results:g,is_feedback_token_unencrypted:!0},_.rM().resolve(_.Er).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},g,{element:this.hostElement})}))};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],GH.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],GH.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],GH.prototype,"data",void 0);_.m([_.N({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],GH);
_.I(GH,"ytd-feedback-survey-renderer",function(){if(YV6!==void 0)return YV6;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return YV6=g},{mode:1});var RCv;var n1F;var QD=function(){return _.a.apply(this,arguments)||this};
_.f(QD,_.a);QD.prototype.computeAlt=function(g){return _.Vp(g)};
QD.prototype.submitResponse=function(){var g,r;(g=this.data)!=null&&g.feedbackToken&&((r=this.data)==null?void 0:r.nextStageIndex)!==void 0&&(_.US(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.US(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
QD.prototype.onClick=function(){this.submitResponse()};
QD.prototype.onClick=QD.prototype.onClick;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],QD.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],QD.prototype,"vertical",void 0);_.m([_.ob("click"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],QD.prototype,"onClick",null);
_.m([_.N({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],QD);
_.I(QD,"ytd-single-select-answer-option-renderer",function(){if(n1F!==void 0)return n1F;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return n1F=g},{mode:1});var sZm;var zH=function(){var g=_.a.apply(this,arguments)||this;g.darkerDarkTheme=_.Y("web_darker_dark_theme");g.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return g};
_.f(zH,_.a);zH.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
zH.prototype.dataChanged=function(){var g,r;this.vertical=((r=(g=this.data)==null?void 0:g.answerOrientation)!=null?r:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
zH.prototype.submitFeedback=function(g){var r;((r=this.data)==null?0:r.responseEndpoint)&&g&&_.q2(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[g]}])};
zH.prototype.dataChanged=zH.prototype.dataChanged;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],zH.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],zH.prototype,"eventForwardingBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],zH.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],zH.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],zH.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],zH.prototype,"vertical",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],zH.prototype,"darkerDarkTheme",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],zH.prototype,"dataChanged",null);_.m([_.N({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],zH);
_.I(zH,"ytd-single-select-question-renderer",function(){if(sZm!==void 0)return sZm;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return sZm=g},{mode:1});var kG=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return g};
_.f(kG,_.a);_.S=kG.prototype;_.S.configureRendererStamper=function(){return{currentStage:{id:"current-stage",mapping:{singleSelectQuestionRenderer:"ytd-single-select-question-renderer",simpleMessageRenderer:"ytd-simple-message-renderer",surveyFollowUpRenderer:"ytd-survey-follow-up-renderer"}}}};
_.S.dataChanged=function(){this.jumpToStage(0)};
_.S.jumpToStage=function(g){var r,E;if((r=this.data)==null?0:(E=r.stages)==null?0:E[g])this.currentStage=this.data.stages[g],this.refitAfterRender()};
_.S.computeAlt=function(g){return _.Vp(g)};
_.S.computeSimpleMessage=function(g){var r;return(r=_.n(g,Xyv))==null?void 0:r.messageText};
_.S.computeHideDismiss=function(g){var r;return(r=_.n(g,DC$))==null?void 0:r.hideParentDismissButton};
_.S.onDismissTap=function(){_.OS(this.hostElement,"yt-close-popup-action");_.n(this.currentStage,Xyv)||this.data.dismissalEndpoint&&_.rM().resolve(_.Er).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.S.refitAfterRender=function(){var g=this;_.Lk(this,function(){_.Sh(g.hostElement,"yt-refit")})};
kG.prototype.dataChanged=kG.prototype.dataChanged;_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],kG.prototype,"eventForwardingBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],kG.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],kG.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],kG.prototype,"ytActionHandlerBehavior",void 0);
_.m([_.P(aWg),_.L("design:type",Object)],kG.prototype,"ytdHatsSurveyBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],kG.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],kG.prototype,"currentStage",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],kG.prototype,"dataChanged",null);_.m([_.N({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],kG);
_.I(kG,"ytd-multi-stage-survey-renderer",function(){if(RCv!==void 0)return RCv;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return RCv=g},{mode:1});var fLz;var Hn=function(){return _.a.apply(this,arguments)||this};
_.f(Hn,_.a);Hn.prototype.computeAlt=function(g){return _.Vp(g)};
Hn.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.rM().resolve(_.Er).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.OS(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.NMv(!1)))};
Hn.prototype.onTap=function(){this.vertical&&this.submitResponse()};
Hn.prototype.onTap=Hn.prototype.onTap;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Hn.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],Hn.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Hn.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Hn.prototype,"vertical",void 0);
_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Hn.prototype,"onTap",null);_.m([_.N({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],Hn);
_.I(Hn,"ytd-single-option-survey-option-renderer",function(){if(fLz!==void 0)return fLz;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return fLz=g},{mode:1});var $Zz;var p6=function(){return _.a.apply(this,arguments)||this};
_.f(p6,_.a);_.S=p6.prototype;_.S.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.dataChanged=function(){var g,r;this.vertical=(((g=this.data)==null?void 0:(r=g.surveyOrientation)==null?void 0:r.type)||"HORIZONTAL")==="VERTICAL"};
_.S.computeAlt=function(g){return _.Vp(g)};
_.S.onDismissTap=function(){_.OS(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.rM().resolve(_.Er).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.NMv(!1))};
p6.prototype.dataChanged=p6.prototype.dataChanged;_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],p6.prototype,"eventForwardingBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],p6.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],p6.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(aWg),_.L("design:type",Object)],p6.prototype,"ytdHatsSurveyBehavior",void 0);
_.m([_.P(_.Ai),_.L("design:type",Object)],p6.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],p6.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],p6.prototype,"vertical",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],p6.prototype,"dataChanged",null);_.m([_.N({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],p6);
_.I(p6,"ytd-single-option-survey-renderer",function(){if($Zz!==void 0)return $Zz;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return $Zz=g},{mode:1});var jZ5;var YG=function(){var g=_.a.apply(this,arguments)||this;g.darkerDarkTheme=_.Y("web_darker_dark_theme");return g};
_.f(YG,_.a);YG.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
YG.prototype.onDismissTap=function(){_.OS(this.hostElement,"yt-close-popup-action")};
YG.prototype.onNavigate=function(){_.OS(this.hostElement,"yt-close-popup-action")};
YG.prototype.onNavigate=YG.prototype.onNavigate;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],YG.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],YG.prototype,"ytEventForwardingBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],YG.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],YG.prototype,"darkerDarkTheme",void 0);
_.m([_.ob("yt-navigate"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],YG.prototype,"onNavigate",null);_.m([_.N({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],YG);
_.I(YG,"ytd-survey-follow-up-renderer",function(){if(jZ5!==void 0)return jZ5;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return jZ5=g},{mode:1});var AKg;var bOA;var JK5;var RG=function(){var g=_.a.apply(this,arguments)||this;g.polymer2="Element"in Polymer;return g};
_.f(RG,_.a);_.S=RG.prototype;_.S.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.S.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.S.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.S.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.x8("minutes-changed",this.minutes))};
_.S.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.x8("seconds-changed",this.seconds))};
_.S.updateMinutesFromBinding=function(g){this.minutes=g.detail.value};
_.S.updateSecondsFromBinding=function(g){this.seconds=g.detail.value};
RG.prototype.secondsChangedForBinding=RG.prototype.secondsChangedForBinding;RG.prototype.minutesChangedForBinding=RG.prototype.minutesChangedForBinding;RG.prototype.secondsChanged=RG.prototype.secondsChanged;_.m([_.K(),_.L("design:type",String)],RG.prototype,"minutes",void 0);_.m([_.K(),_.L("design:type",String)],RG.prototype,"seconds",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],RG.prototype,"polymer2",void 0);
_.m([_.zb("#seconds"),_.L("design:type",Object)],RG.prototype,"secondsEl",void 0);_.m([_.Gb("seconds"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],RG.prototype,"secondsChanged",null);_.m([_.Gb("minutes"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],RG.prototype,"minutesChangedForBinding",null);
_.m([_.Gb("seconds"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],RG.prototype,"secondsChangedForBinding",null);_.m([_.e3({is:"yt-timestamp-input",disableElementRegistration:!0})],RG);
_.I(RG,"yt-timestamp-input",function(){if(JK5===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;bOA===void 0&&(bOA=document.createElement("template"));var B=bOA;E.call(r,B.content.cloneNode(!0),g.content.firstChild);JK5=g}g=JK5;return g},{mode:2});var n6=function(){return _.a.apply(this,arguments)||this};
_.f(n6,_.a);_.S=n6.prototype;_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$18292_scroller.dialogElement=this.hostElement.parentNode};
_.S.dataChanged=function(){var g=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.gr().getPlayerPromise().then(function(r){r=r.getCurrentTime();g.minutes=Math.floor(r/60).toString();g.seconds=(Math.floor(r)%60).toString()})};
_.S.onTapSubmit=function(g){g.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(g={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(g.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(g.minutes=this.minutes,g.seconds=this.seconds),_.rM().resolve(_.Er).resolveCommand(this.serviceEndpoint,{form:Object.assign({},g,{element:this.hostElement})}))};
_.S.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.S.onYtServiceRequestCompleted=function(g,r){r=r.actions;if(Array.isArray(r))for(var E=0,B=r.length;E<B;E++)_.n(r[E],_.R1)&&(g.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(r[E]))};
_.S.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.S.toggleSubmitButton=function(g){this.set("submitButton.isDisabled",!g)};
_.S.handleInput=function(){var g=this.issueType,r=this.affiliation,E=this.minutes,B=this.seconds;E=!this.showTimestamp||!!E&&!!B;this.toggleSubmitButton(!!this.descriptionText&&!!g&&!!r&&E)};
_.S.computeServiceEndpoint=function(g){return this.get("submitButton.buttonRenderer.serviceEndpoint",g)};
_.S.computeSubmitButton=function(g){(g=this.get("submitButton.buttonRenderer",g))&&(g=Object.assign({},g,{serviceEndpoint:void 0}));return g};
_.S.computeShowTimestamp=function(g){return!!g};
_.S.onValueChangedForIssueType=function(g){this.issueType=g.detail.value};
_.S.onValueChangedForAffiliation=function(g){this.affiliation=g.detail.value};
_.S.updateDescriptionTextFromBinding=function(g){this.descriptionText=g.detail.value};
_.S.updateFullNameTextFromBinding=function(g){this.fullNameText=g.detail.value};
_.S.updateMinutesFromBinding=function(g){this.minutes=g.detail.value};
_.S.updateSecondsFromBinding=function(g){this.seconds=g.detail.value};
n6.prototype.handleInput=n6.prototype.handleInput;n6.prototype.onYtServiceRequestError=n6.prototype.onYtServiceRequestError;n6.prototype.onYtServiceRequestCompleted=n6.prototype.onYtServiceRequestCompleted;n6.prototype.onYtServiceRequestSent=n6.prototype.onYtServiceRequestSent;n6.prototype.dataChanged=n6.prototype.dataChanged;_.m([_.P(_.ls.YtOpenPopupBehavior),_.L("design:type",Object)],n6.prototype,"ytOpenPopupBehavior",void 0);
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],n6.prototype,"ytRendererBehavior",void 0);_.m([_.zb("#scroller"),_.L("design:type",Object)],n6.prototype,"JSC$18292_scroller",void 0);_.m([_.zb("#description"),_.L("design:type",HTMLInputElement)],n6.prototype,"description",void 0);_.m([_.zb("#full-name"),_.L("design:type",Object)],n6.prototype,"fullName",void 0);_.m([_.K(),_.L("design:type",Object)],n6.prototype,"data",void 0);
_.m([_.K({computed:"computeShowTimestamp(data.timestampLabel)"}),_.L("design:type",Boolean)],n6.prototype,"showTimestamp",void 0);_.m([_.K({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.L("design:type",Object)],n6.prototype,"serviceEndpoint",void 0);_.m([_.K({computed:"computeSubmitButton(data)"}),_.L("design:type",Object)],n6.prototype,"submitButton",void 0);_.m([_.K(),_.L("design:type",String)],n6.prototype,"descriptionText",void 0);
_.m([_.K(),_.L("design:type",Number)],n6.prototype,"issueType",void 0);_.m([_.K(),_.L("design:type",Number)],n6.prototype,"affiliation",void 0);_.m([_.K(),_.L("design:type",String)],n6.prototype,"fullNameText",void 0);_.m([_.K(),_.L("design:type",String)],n6.prototype,"minutes",void 0);_.m([_.K(),_.L("design:type",String)],n6.prototype,"seconds",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],n6.prototype,"dataChanged",null);
_.m([_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.XA]),_.L("design:returntype")],n6.prototype,"onYtServiceRequestSent",null);_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.hR]),_.L("design:returntype")],n6.prototype,"onYtServiceRequestCompleted",null);
_.m([_.ob("yt-service-request-error"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],n6.prototype,"onYtServiceRequestError",null);_.m([_.Gb("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],n6.prototype,"handleInput",null);_.m([_.N({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],n6);
_.I(n6,"ytd-legal-report-details-form-renderer",function(){if(AKg!==void 0)return AKg;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return AKg=g},{mode:1});var PIA;var s1=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return g};
_.f(s1,_.a);s1.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
s1.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var g=this.formRenderer.getForm();g&&this.data.submitEndpoint&&(_.rM().resolve(_.Er).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},g,{element:this.hostElement})}),_.OS(this.hostElement,"yt-close-popup-action"))}};
s1.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.OS(this.hostElement,"yt-close-popup-action"))};
s1.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
s1.prototype.onPopupClosed=s1.prototype.onPopupClosed;_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],s1.prototype,"ytEventForwardingBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],s1.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],s1.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],s1.prototype,"ytRendererBehavior",void 0);
_.m([_.zb("yt-form-renderer"),_.L("design:type",Object)],s1.prototype,"formRenderer",void 0);_.m([_.K(),_.L("design:type",Object)],s1.prototype,"data",void 0);_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],s1.prototype,"onPopupClosed",null);_.m([_.N({is:"ytd-form-popup-content",disableElementRegistration:!0})],s1);
_.I(s1,"ytd-form-popup-content",function(){if(PIA!==void 0)return PIA;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return PIA=g},{mode:1});var tKz;var f6=function(){return _.a.apply(this,arguments)||this};
_.f(f6,_.a);f6.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
f6.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
f6.prototype.onPopupOpened=function(){_.Sh(this.hostElement,"yt-invalidate-popup-tabbables")};
f6.prototype.onYtServiceRequestCompleted=function(g,r){r.data&&r.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.Sh(this.hostElement,"yt-invalidate-popup-tabbables"))};
f6.prototype.onYtServiceRequestCompleted=f6.prototype.onYtServiceRequestCompleted;f6.prototype.onPopupOpened=f6.prototype.onPopupOpened;_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],f6.prototype,"ytEventForwardingBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],f6.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],f6.prototype,"ytRendererBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],f6.prototype,"data",void 0);_.m([_.ob("yt-popup-opened"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],f6.prototype,"onPopupOpened",null);_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.hR]),_.L("design:returntype")],f6.prototype,"onYtServiceRequestCompleted",null);_.m([_.N({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],f6);
_.I(f6,"ytd-form-popup-renderer",function(){if(tKz!==void 0)return tKz;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return tKz=g},{mode:1});var Fom;var $G=function(){var g=_.a.apply(this,arguments)||this;g.isLoading=!1;return g};
_.f($G,_.a);_.S=$G.prototype;_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");IH8(this.hostElement)};
_.S.onYtServiceRequestSent=function(){this.isLoading=!0};
_.S.onYtServiceRequestCompleted=function(){_.OS(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.S.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.uq(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.S.closePopupHandler=function(){this.fireOnCloseActions()};
_.S.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var g=this.get("data.headerImage.thumbnails");g&&(g=_.wt(g,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+g+")")}};
_.S.onYtNavigate=function(g){(g=_.yP(g))&&g.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
$G.prototype.onYtNavigate=$G.prototype.onYtNavigate;$G.prototype.onHeaderImageChanged=$G.prototype.onHeaderImageChanged;$G.prototype.closePopupHandler=$G.prototype.closePopupHandler;$G.prototype.onYtServiceRequestCompleted=$G.prototype.onYtServiceRequestCompleted;$G.prototype.onYtServiceRequestSent=$G.prototype.onYtServiceRequestSent;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],$G.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],$G.prototype,"ytEventForwardingBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],$G.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],$G.prototype,"isLoading",void 0);_.m([_.zb("#header"),_.L("design:type",HTMLDivElement)],$G.prototype,"header",void 0);_.m([_.zb("#confirm-button"),_.L("design:type",_.k8)],$G.prototype,"confirmButton",void 0);
_.m([_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],$G.prototype,"onYtServiceRequestSent",null);_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],$G.prototype,"onYtServiceRequestCompleted",null);
_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],$G.prototype,"closePopupHandler",null);_.m([_.Gb("data.headerImage"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],$G.prototype,"onHeaderImageChanged",null);_.m([_.ob("yt-navigate"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],$G.prototype,"onYtNavigate",null);
_.m([_.N({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],$G);
_.I($G,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(Fom!==void 0)return Fom;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Fom=g},{mode:1});var eCv;var jA=function(){var g=_.a.apply(this,arguments)||this;g.isLoading=!1;return g};
_.f(jA,_.a);_.S=jA.prototype;_.S.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.linkButton":{id:"link-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);IH8(this.hostElement)};
_.S.onYtServiceRequestCompleted=function(){_.OS(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.S.onYtServiceRequestError=function(g){_.vX(this.hostElement,g.detail.error.message)};
_.S.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.S.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.OS(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.S.onDataChanged=function(){this.isLoading=!1;var g=this.get("data.headerImage.thumbnails");g&&(g=_.wt(g,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+g+")");g=_.PE();var r=_.JF(),E=this.get("data.trackingParams");E&&r&&g&&_.N2(g,r,_.fW(E))};
_.hx.Object.defineProperties(jA.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
jA.prototype.onDataChanged=jA.prototype.onDataChanged;jA.prototype.onDomChange=jA.prototype.onDomChange;jA.prototype.onYtServiceRequestError=jA.prototype.onYtServiceRequestError;jA.prototype.onYtServiceRequestCompleted=jA.prototype.onYtServiceRequestCompleted;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],jA.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],jA.prototype,"ytRendererBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],jA.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],jA.prototype,"isLoading",void 0);_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],jA.prototype,"hasDescription",null);_.m([_.zb("tp-yt-paper-dialog-scrollable"),_.L("design:type",Object)],jA.prototype,"scrollable",void 0);_.m([_.zb("#header"),_.L("design:type",HTMLElement)],jA.prototype,"header",void 0);
_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],jA.prototype,"onYtServiceRequestCompleted",null);_.m([_.ob("yt-service-request-error"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],jA.prototype,"onYtServiceRequestError",null);
_.m([_.ob("dom-change"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],jA.prototype,"onDomChange",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],jA.prototype,"onDataChanged",null);_.m([_.N({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],jA);
_.I(jA,"ytd-gaming-account-link-setting-renderer",function(){if(eCv!==void 0)return eCv;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return eCv=g},{mode:1});var Wo$;var CIF;var AU=function(){var g=_.a.apply(this,arguments)||this;g.isHeader=!1;g.getEndpointForm=function(){return XsM(g.data)};
return g};
_.f(AU,_.a);_.S=AU.prototype;_.S.triggerHintActions=function(){var g=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var r=_.US(g.hostElement,"yt-get-opened-popups-action");!(r&&r.length===1?r[0]:[]).some(function(E){E=E.openPopupAction.popupType;return E==="SURVEY"||E==="MEALBAR"||E==="HINT"})&&g.data.hintActions&&g.guideOpened&&(_.uq(g.hostElement,g.data.hintActions,g.hostElement),g.data.hintActions=void 0)})};
_.S.getBadgeIconType=function(g){return g&&g.liveBroadcasting?"live":null};
_.S.onDown=function(){this.interaction.triggerDown()};
_.S.onUp=function(){this.interaction.triggerUp()};
_.S.onTap=function(g){if(this.data.serviceEndpoint){var r;_.Y("shorts_controller_retrieve_seedless_sequence_v2")&&((r=_.n(this.data.serviceEndpoint,_.sP))==null?void 0:r.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):azA(this.data.serviceEndpoint,this);g.preventDefault()}else this.data.navigationEndpoint&&!_.Zy(_.Z1(g),this.hostElement,["A".toString()])&&_.Sh(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.S.computeActive=function(g,r){if(!g)return!1;var E=g.navigationEndpoint;g=g.serviceEndpoint;if(!E&&!g||!r)return!1;if(E){g=(g=_.zF(r))&&["subscriptions","filteredsubscriptions"].includes(g);if(_.n(E,_.ka)&&_.n(r,_.ka)&&!g){var B=_.n(E,_.ka).browseId;r=_.n(r,_.ka).browseId;return B!==void 0&&r!==void 0&&(B===r||B==="VLWL"&&r==="FEwatch_later"||B==="FEwatch_later"&&r==="VLWL")}var w;E=(w=_.n(E.commandMetadata,_.dU))==null?void 0:w.url;r=(B=_.n(r.commandMetadata,_.dU))==null?void 0:B.url;return!(!E||
!r||E!==r&&E!==_.lc(r))}return this.isActiveShortsTab(g,r)};
_.S.isActiveShortsTab=function(g,r){r=!!_.n(r,_.sP)||!!_.n(r,_.Py);return(!!_.n(g,_.sP)||!!_.n(g,_.Py))&&r};
_.S.computeIsPrimary=function(g){return!!g};
_.hx.Object.defineProperties(AU.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 g=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&g)return g}}});
AU.prototype.onTap=AU.prototype.onTap;AU.prototype.onUp=AU.prototype.onUp;AU.prototype.onDown=AU.prototype.onDown;AU.prototype.triggerHintActions=AU.prototype.triggerHintActions;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],AU.prototype,"componentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],AU.prototype,"rendererBehavior",void 0);_.m([_.P(_.Zl.YtTaskEmitterBehavior),_.L("design:type",Object)],AU.prototype,"taskEmitterBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],AU.prototype,"activeEndpoint",void 0);_.m([_.K(),_.L("design:type",Object)],AU.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Boolean)],AU.prototype,"guideOpened",void 0);_.m([_.K(),_.L("design:type",String)],AU.prototype,"type",void 0);_.m([_.zb("yt-interaction"),_.L("design:type",Object)],AU.prototype,"interaction",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],AU.prototype,"isHeader",void 0);
_.m([_.K({reflectToAttribute:!0}),_.W("data","activeEndpoint"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],AU.prototype,"active",null);_.m([_.K({reflectToAttribute:!0}),_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],AU.prototype,"isPrimary",null);_.m([_.K({reflectToAttribute:!0}),_.W("data.count","data.presentationStyle","data.badges.*"),_.L("design:type",String),_.L("design:paramtypes",[])],AU.prototype,"lineEndStyle",null);
_.m([_.W("lineEndStyle"),_.L("design:type",Object),_.L("design:paramtypes",[])],AU.prototype,"ariaLabel",null);_.m([_.Gb("data.hintActions","guideOpened"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],AU.prototype,"triggerHintActions",null);_.m([_.ob("down"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],AU.prototype,"onDown",null);
_.m([_.ob("up"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],AU.prototype,"onUp",null);_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],AU.prototype,"onTap",null);_.m([_.N({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],AU);
_.I(AU,"ytd-guide-entry-renderer",function(){if(CIF!==void 0)return CIF;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return CIF=g},{mode:1});var bE=function(){var g=_.a.apply(this,arguments)||this;g.userToggled=!1;return g};
_.f(bE,_.a);_.S=bE.prototype;_.S.getItemsPath=function(){return"data.expandableItems"};
_.S.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.S.onExpanderItemTapped=function(g){var r=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.Y("kevlar_guide_expandable_items_killswitch")&&_.Lk(this,function(){_.ZH(r.expandableItems)});
g.preventDefault()};
_.S.onCollapserItemTapped=function(g){var r=this;this._setExpanded(!1);this.userToggled=!0;g.preventDefault();this.expandableItems&&!_.Y("kevlar_guide_collapsible_items_killswitch")&&_.Lk(this,function(){_.hp(r.hostElement)})};
_.S.observeActiveEndpoint=function(){for(var g=this.activeEndpoint,r=this.data,E=this.expandableItems.children,B=0,w=E.length;B<w;B++)E[B].activeEndpoint=g;r&&r.autoExpandCommand&&g&&!this.userToggled&&(E=this.data.autoExpandCommand,r=!(!_.n(E,_.ka)||!_.n(g,_.ka)||_.n(E,_.ka).browseId!==_.n(g,_.ka).browseId),g=this.get("commandMetadata.webCommandMetadata.url",g),E=this.get("commandMetadata.webCommandMetadata.url",E),r=r||!!(g&&E&&g.includes(E)),this._setExpanded(r),r&&this.ytLazyListBehavior.fillRemainingListItems())};
bE.prototype.observeActiveEndpoint=bE.prototype.observeActiveEndpoint;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],bE.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],bE.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.Zu.YtLazyListBehavior),_.L("design:type",Object)],bE.prototype,"ytLazyListBehavior",void 0);_.m([_.zb("#expandable-items"),_.L("design:type",HTMLElement)],bE.prototype,"expandableItems",void 0);
_.m([_.K(),_.L("design:type",Object)],bE.prototype,"data",void 0);_.m([_.K({readOnly:!0,reflectToAttribute:!0}),_.L("design:type",Boolean)],bE.prototype,"expanded",void 0);_.m([_.K({value:0}),_.L("design:type",Number)],bE.prototype,"initialCount",void 0);_.m([_.K(),_.L("design:type",Object)],bE.prototype,"activeEndpoint",void 0);_.m([_.Gb("data","activeEndpoint","canShowMore"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],bE.prototype,"observeActiveEndpoint",null);
_.m([_.N({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],bE);
_.I(bE,"ytd-guide-collapsible-entry-renderer",function(){if(Wo$!==void 0)return Wo$;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Wo$=g},{mode:_.My("kevlar_poly_si_batch_j079")?1:2});var Kov;var xZ5;var JU=function(){var g=_.a.apply(this,arguments)||this;g.allVideosCount=0;g.renderGuideEntry=!1;return g};
_.f(JU,_.a);JU.prototype.observeRenderEntry=function(){var g;this.renderGuideEntry=!((g=this.data)==null||!g.alwaysShow)||!!this.allVideosCount};
JU.prototype.observeRenderEntry=JU.prototype.observeRenderEntry;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],JU.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],JU.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],JU.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],JU.prototype,"activeEndpoint",void 0);_.m([_.K({selector:_.nTD}),_.L("design:type",Object)],JU.prototype,"allVideosCount",void 0);
_.m([_.K(),_.L("design:type",Object)],JU.prototype,"renderGuideEntry",void 0);_.m([_.Yk("allVideosCount","data.alwaysShow"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],JU.prototype,"observeRenderEntry",null);_.m([_.N({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],JU);
_.I(JU,"ytd-guide-downloads-entry-renderer",function(){if(xZ5===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);xZ5=g}g=xZ5;return g},{mode:1});var Pn=function(){var g=_.a.apply(this,arguments)||this;g.youtab=_.Y("web_enable_youtab");g.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return g};
_.f(Pn,_.a);_.S=Pn.prototype;_.S.configureRendererStamper=function(){return{"data.sectionItems":{id:"section-items",mapping:{guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideEntryRenderer:{component:"ytd-guide-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideDownloadsEntryRenderer:{component:"ytd-guide-downloads-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}}}}}};
_.S.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var g=this.sectionItems.children,r=0,E=g.length;r<E;r++)g[r].activeEndpoint=this.activeEndpoint}};
_.S.handleAddToGuideSectionAction=function(g){var r=_.n(g,ET5);if(r&&this.data&&(g=r.items,r=r.handlerData,g&&r&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(r)>-1)){r=0;for(var E=g.length;r<E;r++)g[r].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,g[r])}};
_.S.handleRemoveFromGuideSectionAction=function(g){var r=_.n(g,By8);r&&this.data&&(g=r.guideEntryId,r=r.handlerData,g&&r&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(r)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(g,this.data.sectionItems),this.removeFromCollapsedSection(g,this.data.sectionItems)))};
_.S.removeFromExpandedSection=function(g,r){g=this.getEntryIndexMatchingId(g,r);g!==-1&&this.splice("data.sectionItems",g,1)};
_.S.removeFromCollapsedSection=function(g,r){var E=r.findIndex(function(B){return!!_.n(B,pyD)});
E&&E!==-1&&r[E]&&_.n(r[E],pyD)&&(r=_.n(r[E],pyD).expandableItems)&&(g=this.getEntryIndexMatchingId(g,r),g!==-1&&this.splice("data.sectionItems."+E+".guideCollapsibleEntryRenderer.expandableItems",g,1))};
_.S.getEntryIndexMatchingId=function(g,r){var E=this;return r.findIndex(function(B){return E.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",B)===g})};
Pn.prototype.activeEndpointChanged=Pn.prototype.activeEndpointChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Pn.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Pn.prototype,"actionHandlerBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Pn.prototype,"ytRendererstamperBehavior",void 0);_.m([_.zb("#section-items"),_.L("design:type",HTMLDivElement)],Pn.prototype,"sectionItems",void 0);
_.m([_.zb("#header-entry"),_.L("design:type",Object)],Pn.prototype,"headerEntry",void 0);_.m([_.K(),_.L("design:type",Object)],Pn.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],Pn.prototype,"activeEndpoint",void 0);_.m([_.K(),_.L("design:type",Object)],Pn.prototype,"youtab",void 0);_.m([_.Gb("activeEndpoint"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Pn.prototype,"activeEndpointChanged",null);
_.m([_.N({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],Pn);
_.I(Pn,"ytd-guide-collapsible-section-entry-renderer",function(){if(Kov===void 0){var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="[[youtab]]" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);Kov=g}g=Kov;return g},{mode:1});var aL6;var X4F;var tU=function(){var g=_.a.apply(this,arguments)||this;g.modernTypography=_.Y("web_modern_typography");g.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 g};
_.f(tU,_.a);_.S=tU.prototype;
_.S.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",guideOpened:"[[guideOpened]]",type:"[[type]]"},noInjection:!0},guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0},guideCollapsibleSectionEntryRenderer:{component:"ytd-guide-collapsible-section-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},
noInjection:!0}}}}};
_.S.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var g=_.US(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);g&&g.length===1&&g[0]&&_.US(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.S.handleResetChannelUnreadCountCommand=function(g){var r;(g=(r=_.n(g,S75))==null?void 0:r.channelId)&&this.data&&this.data.items&&(r=this.getPathToEntryMatchingId(g))&&(this.set(r+".guideEntryRenderer.count",0),this.set(r+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.S.handleResetSubscriptionsUnreadDotCommand=function(g){var r,E=(r=_.n(g,OY5))==null?void 0:r.targetId,B;E&&(B=this.data)!=null&&B.items&&(g=this.data.items.findIndex(function(w){var O;return((O=w.guideEntryRenderer)==null?void 0:O.targetId)===E}),g<0||this.set("data.items."+g+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.S.getPathToEntryMatchingId=function(g){if(this.data&&this.data.items){var r=this.getEntryIndexMatchingId(g,this.data.items);if(r>-1)return"data.items."+r;for(var E=0;E<this.data.items.length;E++)if(r=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[E]))if(r=this.getEntryIndexMatchingId(g,r),r>-1)return"data.items."+E+".guideCollapsibleEntryRenderer.expandableItems."+r}};
_.S.handleAddToGuideSectionAction=function(g){var r=this;if(_.n(g,ET5)){var E=_.n(g,ET5).items;g=_.n(g,ET5).handlerData;var B,w;if(E&&g&&((B=this.data)==null?void 0:(w=B.handlerDatas)==null?void 0:w.indexOf(g))>-1){E=E.filter(function(M){return(M=r.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",M))&&!r.isGuideItemPresent(M)});
var O;if(g==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((O=this.data)==null?0:O.items)&&(B=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),B>-1)){this.splice.apply(this,["data.items",B+1,0].concat(_.jW(E)));return}this.unshift.apply(this,["data.items"].concat(_.jW(E)))}}};
_.S.isGuideItemPresent=function(g){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(g,this.data.items)!==-1)return!0;var r=this.data.items.find(function(E){return!!E.guideCollapsibleEntryRenderer});
if((r==null?0:r.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(g,r.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.S.getEntryIndexMatchingId=function(g,r){var E=this;return r.findIndex(function(B){return E.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",B)===g})};
_.S.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(g,r){var E=this;return r.findIndex(function(B){return E.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",B)===g})};
_.S.handleRemoveFromGuideSectionAction=function(g){if(_.n(g,By8)){var r=_.n(g,By8).guideEntryId;g=_.n(g,By8).handlerData;var E,B;r&&g&&((E=this.data)==null?void 0:(B=E.handlerDatas)==null?void 0:B.indexOf(g))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(r,this.data.items),this.removeFromCollapsedSection(r,this.data.items))}};
_.S.removeFromExpandedSection=function(g,r){g=this.getEntryIndexMatchingId(g,r);g!==-1&&this.splice("data.items",g,1)};
_.S.removeFromCollapsedSection=function(g,r){var E=r.findIndex(function(B){return!!B.guideCollapsibleEntryRenderer});
E!==-1&&(r=r[E].guideCollapsibleEntryRenderer.expandableItems)&&(g=this.getEntryIndexMatchingId(g,r),g!==-1&&this.splice("data.items."+E+".guideCollapsibleEntryRenderer.expandableItems",g,1))};
_.S.activeEndpointChanged=function(){for(var g=_.S3(this.hostElement).querySelector("#items").children,r=0,E=g.length;r<E;r++)g[r].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.S.guideOpenedChanged=function(){for(var g=_.S3(this.hostElement).querySelector("#items").children,r=0,E=g.length;r<E;r++)g[r].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
tU.prototype.guideOpenedChanged=tU.prototype.guideOpenedChanged;tU.prototype.activeEndpointChanged=tU.prototype.activeEndpointChanged;tU.prototype.persistentGuideChanged=tU.prototype.persistentGuideChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],tU.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],tU.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],tU.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.Zu.YtLazyListBehavior),_.L("design:type",Object)],tU.prototype,"ytLazyListBehavior",void 0);_.m([_.P(_.eb.YtdGuideStateAwareBehavior),_.L("design:type",Object)],tU.prototype,"ytdGuideStateAwareBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],tU.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],tU.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],tU.prototype,"modernTypography",void 0);_.m([_.K(),_.L("design:type",String)],tU.prototype,"type",void 0);_.m([_.K({value:20}),_.L("design:type",Number)],tU.prototype,"initialCount",void 0);_.m([_.K({value:10}),_.L("design:type",Number)],tU.prototype,"targetFramerate",void 0);_.m([_.K({value:!0}),_.L("design:type",Boolean)],tU.prototype,"autoFill",void 0);_.m([_.K({value:50}),_.L("design:type",Number)],tU.prototype,"renderDelay",void 0);
_.m([_.Gb("guidePersistentAndVisible"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],tU.prototype,"persistentGuideChanged",null);_.m([_.Yk("activeEndpoint"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],tU.prototype,"activeEndpointChanged",null);_.m([_.Yk("guideOpened"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],tU.prototype,"guideOpenedChanged",null);
_.m([_.N({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],tU);
_.I(tU,"ytd-guide-section-renderer",function(){if(X4F!==void 0)return X4F;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return X4F=g},{mode:_.My("kevlar_poly_si_batch_j073")?1:2});var N$M;var Fn=function(){return _.a.apply(this,arguments)||this};
_.f(Fn,_.a);_.hx.Object.defineProperties(Fn.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Fn.prototype,"rendererBehaviors",void 0);_.m([_.K(),_.L("design:type",Object)],Fn.prototype,"data",void 0);_.m([_.K(),_.W("data.signInButton.buttonRenderer.style"),_.L("design:type",Object),_.L("design:paramtypes",[])],Fn.prototype,"alignByText",null);_.m([_.N({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],Fn);
_.I(Fn,"ytd-guide-signin-promo-renderer",function(){if(N$M===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);N$M=g}g=N$M;return g},{mode:1});var eA=function(){var g=_.a.apply(this,arguments)||this;g.showFooter=!1;return g};
_.f(eA,_.a);eA.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}}}}};
eA.prototype.attached=function(){var g=this,r;return _.q(function(E){if(E.nextAddress==1){r=_.rM().resolve(_.gM(_.F0));if(!r)return E.jumpTo(0);r.setGuideData(g.hostElement);return _.D(E,0,3)}g.ytLazyListBehavior.initialCount=2;return E.return()})};
eA.prototype.onMouseExit=function(){_.Y("web_guide_hover_expansion")&&_.US(this.hostElement,"yt-guide-mouseleaved",[])};
eA.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
eA.prototype.dataChanged=eA.prototype.dataChanged;eA.prototype.onMouseExit=eA.prototype.onMouseExit;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],eA.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],eA.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.Zu.YtLazyListBehavior),_.L("design:type",Object)],eA.prototype,"ytLazyListBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],eA.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],eA.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],eA.prototype,"showFooter",void 0);_.m([_.K({value:!0}),_.L("design:type",Boolean)],eA.prototype,"autoFill",void 0);_.m([_.ob("mouseleave"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],eA.prototype,"onMouseExit",null);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],eA.prototype,"dataChanged",null);_.m([_.N({is:"ytd-guide-renderer",disableElementRegistration:!0})],eA);
_.I(eA,"ytd-guide-renderer",function(){if(aL6!==void 0)return aL6;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return aL6=g},{mode:_.My("kevlar_poly_si_batch_j073")?1:2});var ILM;var Wn=function(){var g=_.a.apply(this,arguments)||this;g.systemIcons=_.Y("kevlar_system_icons");g.frostedGlass=_.Y("web_frosted_glass");g.getEndpointForm=function(){return XsM(g.data)};
return g};
_.f(Wn,_.a);_.S=Wn.prototype;_.S.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.S.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.Vp(this.data.formattedTitle))};
_.S.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.S.onDown=function(){this.interaction.triggerDown()};
_.S.onUp=function(){this.interaction.triggerUp()};
_.S.onTap=function(g){if(this.data.serviceEndpoint){var r;_.Y("shorts_controller_retrieve_seedless_sequence_v2")&&((r=_.n(this.data.serviceEndpoint,_.sP))==null?void 0:r.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):azA(this.data.serviceEndpoint,this);g.preventDefault()}else{var E;((E=this.data)==null?0:E.navigationEndpoint)&&!_.Zy(_.Z1(g),this.hostElement,["A".toString()])&&_.Sh(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.S.computeActive=function(g,r){if(!g)return!1;var E=g.navigationEndpoint;g=g.serviceEndpoint;if(!E&&!g||!r)return!1;if(E){g=_.n(E,_.ka);var B=_.n(r,_.ka);if(g&&B)return g.browseId===B.browseId&&g.params===B.params;var w;E=(w=_.n(E.commandMetadata,_.dU))==null?void 0:w.url;var O;r=(O=_.n(r.commandMetadata,_.dU))==null?void 0:O.url;return!(!E||!r||E!==r&&E!==_.lc(r))}return this.isActiveShortsTab(g,r)};
_.S.isActiveShortsTab=function(g,r){r=!!_.n(r,_.sP)||!!_.n(r,_.Py);return(!!_.n(g,_.sP)||!!_.n(g,_.Py))&&r};
_.S.computeTitle=function(g,r){return r?"":_.Vp(g)};
_.hx.Object.defineProperties(Wn.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
Wn.prototype.onTap=Wn.prototype.onTap;Wn.prototype.onUp=Wn.prototype.onUp;Wn.prototype.onDown=Wn.prototype.onDown;Wn.prototype.onActiveStateChange=Wn.prototype.onActiveStateChange;Wn.prototype.dataChanged=Wn.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Wn.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Wn.prototype,"ytComponentBehavior",void 0);
_.m([_.P(_.jP),_.L("design:type",Object)],Wn.prototype,"ironButtonState",void 0);_.m([_.K(),_.L("design:type",Object)],Wn.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],Wn.prototype,"activeEndpoint",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Wn.prototype,"noLabels",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.L("design:type",Boolean)],Wn.prototype,"isActive",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Wn.prototype,"systemIcons",void 0);_.m([_.zb("yt-interaction"),_.L("design:type",Object)],Wn.prototype,"interaction",void 0);_.m([_.W("isActive"),_.L("design:type",Object),_.L("design:paramtypes",[])],Wn.prototype,"ariaSelected",null);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Wn.prototype,"frostedGlass",void 0);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Wn.prototype,"dataChanged",null);_.m([_.Gb("isActive"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Wn.prototype,"onActiveStateChange",null);_.m([_.ob("down"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Wn.prototype,"onDown",null);
_.m([_.ob("up"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Wn.prototype,"onUp",null);_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],Wn.prototype,"onTap",null);_.m([_.N({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],Wn);
_.I(Wn,"ytd-mini-guide-entry-renderer",function(){if(ILM!==void 0)return ILM;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return ILM=g},{mode:_.My("kevlar_poly_si_batch_j063")?1:2});var mZL;var C6=function(){var g=_.a.apply(this,arguments)||this;g.allVideosCount=0;g.noLabels=_.Y("kevlar_mini_guide_no_labels");g.frostedGlass=_.Y("web_frosted_glass");return g};
_.f(C6,_.a);_.S=C6.prototype;_.S.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.S.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.S.onMouseEnter=function(){_.Y("web_guide_hover_expansion")&&_.US(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.S.visibleChanged=function(){if(this.visible&&!this.data){var g=_.rM().resolve(_.gM(_.F0));g&&g.setGuideData(this.hostElement)}};
_.S.dataChanged=function(){var g=[],r;if((r=this.data)!=null&&r.items){r=_.U(this.data.items);for(var E=r.next();!E.done;E=r.next()){E=E.value;var B=void 0;if((B=E.guideSectionRenderer)==null?0:B.items)for(B=void 0,E=_.U((B=E.guideSectionRenderer)==null?void 0:B.items),B=E.next();!B.done;B=E.next())if(B=B.value,B.guideEntryRenderer)B=B.guideEntryRenderer,B.isPrimary&&g.push({guideEntryRenderer:B});else if(B.guideCollapsibleSectionEntryRenderer){var w=void 0;((w=_.n(B.guideCollapsibleSectionEntryRenderer.headerEntry,
c9))==null?0:w.isPrimary)&&g.push({guideEntryRenderer:_.n(B.guideCollapsibleSectionEntryRenderer.headerEntry,c9)});if(B=B.guideCollapsibleSectionEntryRenderer.sectionItems)for(B=_.U(B),w=B.next();!w.done;w=B.next()){var O=w.value;w=_.n(O,Y7M);var M=void 0;((M=_.n(O,c9))==null?0:M.isPrimary)?g.push({guideEntryRenderer:_.n(O,c9)}):w&&(O=void 0,_.n((O=w)==null?void 0:O.entryRenderer,c9)&&(w.alwaysShow||this.allVideosCount)&&g.push({guideEntryRenderer:_.n(w.entryRenderer,c9)}))}}}}this.miniGuideItems=
g};
_.S.activeEndpointChanged=function(){for(var g=this.items.children,r=0;r<g.length;r++)g[r].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
C6.prototype.activeEndpointChanged=C6.prototype.activeEndpointChanged;C6.prototype.dataChanged=C6.prototype.dataChanged;C6.prototype.visibleChanged=C6.prototype.visibleChanged;C6.prototype.onMouseEnter=C6.prototype.onMouseEnter;_.m([_.P(_.Ai),_.L("design:type",Object)],C6.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],C6.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],C6.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.eb.YtdGuideStateAwareBehavior),_.L("design:type",Object)],C6.prototype,"ytdGuideStateAwareBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],C6.prototype,"ytComponentBehavior",void 0);_.m([_.zb("#items"),_.L("design:type",Object)],C6.prototype,"items",void 0);_.m([_.K(),_.L("design:type",Object)],C6.prototype,"data",void 0);
_.m([_.K(),_.L("design:type",Boolean)],C6.prototype,"visible",void 0);_.m([_.K(),_.L("design:type",Object)],C6.prototype,"miniGuideItems",void 0);_.m([_.K({selector:_.nTD}),_.L("design:type",Object)],C6.prototype,"allVideosCount",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],C6.prototype,"noLabels",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],C6.prototype,"frostedGlass",void 0);
_.m([_.ob("mouseenter"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],C6.prototype,"onMouseEnter",null);_.m([_.Yk("visible"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],C6.prototype,"visibleChanged",null);_.m([_.Yk("data","allVideosCount"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],C6.prototype,"dataChanged",null);
_.m([_.Yk("activeEndpoint"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],C6.prototype,"activeEndpointChanged",null);_.m([_.N({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],C6);
_.I(C6,"ytd-mini-guide-renderer",function(){if(mZL===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);mZL=g}g=mZL;return g},{mode:1});var cKz;var iO4=/^[\x00-\x7F]+$/,K6=function(){var g=_.a.apply(this,arguments)||this;g.darkerDarkTheme=_.Y("web_darker_dark_theme");return g};
_.f(K6,_.a);_.hx.Object.defineProperties(K6.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var g,r=_.Vp((g=this.data)==null?void 0:g.handle);if(r)return _.Lf("@"+r)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var g=_.Vp(this.displayHandle),r,E=_.Vp((r=this.data)==null?void 0:r.handleUrl);if(g&&E)return _.Lf(E+g)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var g=_.Vp(this.displayHandle);if(g&&!iO4.test(g)){var r;return(r=this.data)==null?void 0:r.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var g=_.Vp(this.displayHandleUrl),r,E=_.Vp((r=this.data)==null?void 0:r.urlInfoText);if(g&&E)return _.Lf(E+" "+g)}}});
_.m([_.K(),_.L("design:type",Object)],K6.prototype,"data",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],K6.prototype,"displayHandle",null);_.m([_.W("displayHandle"),_.L("design:type",Object),_.L("design:paramtypes",[])],K6.prototype,"displayHandleUrl",null);_.m([_.W("displayHandle"),_.L("design:type",Object),_.L("design:paramtypes",[])],K6.prototype,"warningText",null);
_.m([_.W("displayHandleUrl"),_.L("design:type",Object),_.L("design:paramtypes",[])],K6.prototype,"urlInfoTextWithUrl",null);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],K6.prototype,"darkerDarkTheme",void 0);_.m([_.N({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],K6);
_.I(K6,"ytd-handles-claiming-confirm-dialog-content",function(){if(cKz!==void 0)return cKz;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return cKz=g},{mode:1});var Lo6;var xG=function(){var g=_.a.apply(this,arguments)||this;g.okButtonOverride={style:"mono",type:"outline",size:"M"};return g};
_.f(xG,_.a);xG.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
xG.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],xG.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],xG.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],xG.prototype,"okButtonOverride",void 0);_.m([_.K(),_.L("design:type",Object)],xG.prototype,"data",void 0);_.m([_.N({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],xG);
_.I(xG,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(Lo6!==void 0)return Lo6;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return Lo6=g},{mode:1});var VKg;var hCm=/^[\x00-\x7F]+$/,aG=function(){var g=_.a.apply(this,arguments)||this;g.isLoading=!1;g.darkerDarkTheme=_.Y("web_darker_dark_theme");return g};
_.f(aG,_.a);aG.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var g;this.selectedHandle=(g=this.handleInput)==null?void 0:g.value;this.onSelectedHandleChanged(this.selectedHandle);_.US(this.hostElement,"yt-refit-popups-action")}};
_.hx.Object.defineProperties(aG.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var g;return(g=this.data)==null?void 0:g.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Lf("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Lf(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!hCm.test(this.selectedHandle)){var g;return(g=this.data)==null?void 0:g.warningText}}}});
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],aG.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],aG.prototype,"data",void 0);_.m([_.K(),_.L("design:type",String)],aG.prototype,"selectedHandle",void 0);_.m([_.K(),_.L("design:type",Object)],aG.prototype,"isLoading",void 0);_.m([_.K(),_.L("design:type",Function)],aG.prototype,"onSelectedHandleChanged",void 0);_.m([_.zb("#channel-handle-input"),_.L("design:type",Object)],aG.prototype,"handleInput",void 0);
_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],aG.prototype,"handleUrlPrefix",null);_.m([_.W("selectedHandle"),_.L("design:type",Object),_.L("design:paramtypes",[])],aG.prototype,"displayHandle",null);_.m([_.W("selectedHandle"),_.L("design:type",Object),_.L("design:paramtypes",[])],aG.prototype,"displayHandleUrl",null);_.m([_.W("selectedHandle"),_.L("design:type",Object),_.L("design:paramtypes",[])],aG.prototype,"warningText",null);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],aG.prototype,"darkerDarkTheme",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],aG.prototype,"ytRendererBehavior",void 0);_.m([_.N({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],aG);
_.I(aG,"ytd-handles-claiming-edit-dialog-content",function(){if(VKg!==void 0)return VKg;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return VKg=g},{mode:1});var ZO4;var Xn=function(){var g=_.a.apply(this,arguments)||this;g.actionButtonOverride={style:"mono",type:"filled",size:"M"};g.cancelButtonOverride={style:"mono",type:"text",size:"M"};g.selectButtonDisabled=!1;g.isLoading=!1;g.hasSelectedHandleEventListener=!1;g.selectedHandleChanged=function(r){g.selectedHandle=r};
return g};
_.f(Xn,_.a);_.S=Xn.prototype;_.S.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.S.onDataChanged=function(){var g,r;this.selectedHandle=(r=_.n((g=this.data)==null?void 0:g.inputField,vv8))==null?void 0:r.handle};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.onCancel=function(){this.selectedHandle="";_.OS(this.hostElement,"yt-close-popup-action",[this.is])};
_.S.onSelectHandle=function(){var g=this;if(this.selectedHandle!==void 0){var r;((r=this.data)==null?void 0:r.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(E,B){if(B.newHandleUpdateStatus!==void 0&&B.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&B.newHandleUpdateStatus.errorMessage)_.vX(g.hostElement,_.Vp(B.newHandleUpdateStatus.errorMessage)),
g.isLoading=!1;else{var w;if((w=g.data)==null?0:w.onChannelUpdateSuccess){E=g.data.onChannelUpdateSuccess;var O,M;if(B=(O=_.n(E,_.R1))==null?void 0:(M=O.popup)==null?void 0:M.handlesClaimingConfirmDialogRenderer)B.handle=_.Lf(g.selectedHandle);g.ytComponentBehavior.resolveCommand(E);_.OS(g.hostElement,"yt-close-popup-action",[g.is])}else g.isLoading=!1}},
onServerError:function(){var E;g.content&&((E=g.content)==null?0:E.handleInput)&&g.content.handleInput.validate();g.isLoading=!1;_.vX(g.hostElement,_.zn("TRY_AGAIN_LATER"))}}}))}};
_.S.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
Xn.prototype.onDataChanged=Xn.prototype.onDataChanged;Xn.prototype.onSelectedHandleChanged=Xn.prototype.onSelectedHandleChanged;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Xn.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Xn.prototype,"actionButtonOverride",void 0);_.m([_.K(),_.L("design:type",Object)],Xn.prototype,"cancelButtonOverride",void 0);_.m([_.K(),_.L("design:type",Object)],Xn.prototype,"data",void 0);
_.m([_.K(),_.L("design:type",String)],Xn.prototype,"selectedHandle",void 0);_.m([_.K(),_.L("design:type",Object)],Xn.prototype,"selectButtonDisabled",void 0);_.m([_.K(),_.L("design:type",Object)],Xn.prototype,"isLoading",void 0);_.m([_.K(),_.L("design:type",Object)],Xn.prototype,"hasSelectedHandleEventListener",void 0);_.m([_.K(),_.L("design:type",Object)],Xn.prototype,"handleInput",void 0);
_.m([_.Gb("selectedHandle"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Xn.prototype,"onSelectedHandleChanged",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Xn.prototype,"onDataChanged",null);_.m([_.zb("ytd-handles-claiming-edit-dialog-content"),_.L("design:type",Object)],Xn.prototype,"content",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Xn.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Xn.prototype,"ytRendererstamperBehavior",void 0);_.m([_.N({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],Xn);
_.I(Xn,"ytd-handles-claiming-edit-dialog-renderer",function(){if(ZO4!==void 0)return ZO4;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return ZO4=g},{mode:1});var yKA;var NI=function(){return _.a.apply(this,arguments)||this};
_.f(NI,_.a);_.hx.Object.defineProperties(NI.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)==null?0:g.handle){var r;return _.Lf("@"+_.Vp((r=this.data)==null?void 0:r.handle))}}}});
_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],NI.prototype,"formattedHandle",null);_.m([_.K(),_.L("design:type",Object)],NI.prototype,"data",void 0);_.m([_.N({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],NI);
_.I(NI,"ytd-handles-claiming-radio-option-renderer",function(){if(yKA!==void 0)return yKA;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return yKA=g},{mode:1});var v16;var dZ4=/^[\x00-\x7F]+$/,IG=function(){var g=_.a.apply(this,arguments)||this;g.initialRadioIndex="-1";g.isLoading=!1;g.darkerDarkTheme=_.Y("web_darker_dark_theme");g.maybeSubmitFeedback=function(){g.feedbackSurveyRenderer.submitSurvey()};
return g};
_.f(IG,_.a);IG.prototype.updateSelectedHandleIndexFromBinding=function(g){this.selectedRadioIndex=+g.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(g)};
IG.prototype.selectedHandleChanged=function(g){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var r;this.selectedHandle=(r=this.handleInput)==null?void 0:r.value;this.onSelectedHandleChanged(g)}};
_.hx.Object.defineProperties(IG.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var g;return(((g=this.data)==null?void 0:g.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var g;return this.ytRendererBehavior.getSimpleString((g=this.data)==null?void 0:g.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Lf("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Lf(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!dZ4.test(this.selectedHandle)){var g;return(g=this.data)==null?void 0:g.warningText}}}});
_.m([_.K(),_.L("design:type",Object)],IG.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],IG.prototype,"initialRadioIndex",void 0);_.m([_.K(),_.L("design:type",Number)],IG.prototype,"selectedRadioIndex",void 0);_.m([_.K(),_.L("design:type",String)],IG.prototype,"selectedHandle",void 0);_.m([_.K(),_.L("design:type",Object)],IG.prototype,"isLoading",void 0);_.m([_.K(),_.L("design:type",Function)],IG.prototype,"onSelectedHandleChanged",void 0);
_.m([_.K(),_.L("design:type",Function)],IG.prototype,"onSelectedRadioIndexChanged",void 0);_.m([_.zb("#channel-handle-input"),_.L("design:type",Object)],IG.prototype,"handleInput",void 0);_.m([_.zb("ytd-feedback-survey-renderer"),_.L("design:type",Object)],IG.prototype,"feedbackSurveyRenderer",void 0);_.m([_.W("data"),_.L("design:type",Number),_.L("design:paramtypes",[])],IG.prototype,"radioButtonLength",null);
_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],IG.prototype,"handleUrlPrefix",null);_.m([_.W("selectedHandle"),_.L("design:type",Object),_.L("design:paramtypes",[])],IG.prototype,"displayHandle",null);_.m([_.W("selectedHandle"),_.L("design:type",Object),_.L("design:paramtypes",[])],IG.prototype,"displayHandleUrl",null);_.m([_.W("selectedHandle"),_.L("design:type",Object),_.L("design:paramtypes",[])],IG.prototype,"warningText",null);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],IG.prototype,"darkerDarkTheme",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],IG.prototype,"ytRendererBehavior",void 0);_.m([_.N({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],IG);
_.I(IG,"ytd-handles-claiming-select-dialog-content",function(){if(v16!==void 0)return v16;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return v16=g},{mode:1});var T$L;var mB=function(){var g=_.a.apply(this,arguments)||this;g.actionButtonOverride={style:"mono",type:"filled",size:"M"};g.cancelButtonOverride={style:"mono",type:"text",size:"M"};g.initialRadioIndex="-1";g.selectButtonDisabled=!1;g.isLoading=!1;g.selectedRadioIndexChanged=function(r){g.selectedRadioIndex=Number(r.detail.value)};
g.selectedHandleChanged=function(r){g.selectedHandle=r.detail.value};
g.darkerDarkTheme=_.Y("web_darker_dark_theme");return g};
_.f(mB,_.a);_.S=mB.prototype;_.S.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.S.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.S.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.US(this.hostElement,"yt-refit-popups-action")};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.OS(this.hostElement,"yt-close-popup-action",[this.is])};
_.S.onSelectHandle=function(){var g=this;if(this.selectedHandle!==void 0){var r;((r=this.data)==null?void 0:r.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(E,B){if(B.newHandleUpdateStatus!==void 0&&B.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&B.newHandleUpdateStatus.errorMessage)_.vX(g.hostElement,_.Vp(B.newHandleUpdateStatus.errorMessage)),
g.isLoading=!1;else{var w;if((w=g.data)==null?0:w.onChannelUpdateSuccess){E=g.data.onChannelUpdateSuccess;B=_.n(E,_.R1);var O;if(B==null?0:(O=B.popup)==null?0:O.handlesClaimingConfirmDialogRenderer)B.popup.handlesClaimingConfirmDialogRenderer.handle=_.Lf(g.selectedHandle);g.ytComponentBehavior.resolveCommand(E);_.OS(g.hostElement,"yt-close-popup-action",[g.is])}else g.isLoading=!1}},
onServerError:function(){if(g.selectedRadioIndex===g.radioButtonLength){var E;g.content&&((E=g.content)==null?0:E.handleInput)&&g.content.handleInput.validate()}g.isLoading=!1;_.vX(g.hostElement,_.zn("TRY_AGAIN_LATER"))}}}))}};
_.S.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var g,r;this.selectedHandle=(g=this.content)==null?void 0:(r=g.handleInput)==null?void 0:r.value}else this.selectedRadioIndex>=0&&((g=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(g==null?void 0:g.handle):this.selectedHandle=void 0)};
_.S.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.S.getRadioItem=function(g){if(this.radioButtonLength>g&&g>=0)return _.n(this.data.radioButton[g],oT5)};
_.hx.Object.defineProperties(mB.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var g;return(((g=this.data)==null?void 0:g.radioButton)||[]).length}}});
mB.prototype.onSelectedHandleChanged=mB.prototype.onSelectedHandleChanged;mB.prototype.onSelectedHandleIndexChanged=mB.prototype.onSelectedHandleIndexChanged;mB.prototype.onDataChanged=mB.prototype.onDataChanged;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],mB.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],mB.prototype,"actionButtonOverride",void 0);_.m([_.K(),_.L("design:type",Object)],mB.prototype,"cancelButtonOverride",void 0);
_.m([_.K(),_.L("design:type",Object)],mB.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],mB.prototype,"initialRadioIndex",void 0);_.m([_.K(),_.L("design:type",Number)],mB.prototype,"selectedRadioIndex",void 0);_.m([_.K(),_.L("design:type",String)],mB.prototype,"selectedHandle",void 0);_.m([_.K(),_.L("design:type",Object)],mB.prototype,"selectButtonDisabled",void 0);_.m([_.K(),_.L("design:type",Object)],mB.prototype,"isLoading",void 0);
_.m([_.W("data"),_.L("design:type",Number),_.L("design:paramtypes",[])],mB.prototype,"radioButtonLength",null);_.m([_.zb("ytd-handles-claiming-select-dialog-content"),_.L("design:type",Object)],mB.prototype,"content",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],mB.prototype,"onDataChanged",null);
_.m([_.Gb("selectedRadioIndex"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],mB.prototype,"onSelectedHandleIndexChanged",null);_.m([_.Gb("selectedHandle"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],mB.prototype,"onSelectedHandleChanged",null);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],mB.prototype,"darkerDarkTheme",void 0);
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],mB.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],mB.prototype,"ytRendererstamperBehavior",void 0);_.m([_.N({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],mB);
_.I(mB,"ytd-handles-claiming-select-dialog-renderer",function(){if(T$L!==void 0)return T$L;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return T$L=g},{mode:1});var gpM;var rI4;var cn=function(){return _.a.apply(this,arguments)||this};
_.f(cn,_.a);cn.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],cn.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],cn.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],cn.prototype,"data",void 0);_.m([_.N({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],cn);
_.I(cn,"ytd-hotkey-dialog-section-option-renderer",function(){if(rI4!==void 0)return rI4;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return rI4=g},{mode:1});var Epz;var iE=function(){return _.a.apply(this,arguments)||this};
_.f(iE,_.a);iE.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],iE.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],iE.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],iE.prototype,"data",void 0);_.m([_.N({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],iE);
_.I(iE,"ytd-hotkey-dialog-section-renderer",function(){if(Epz!==void 0)return Epz;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return Epz=g},{mode:1});var L6=function(){var g=_.a.apply(this,arguments)||this;g.darkerDarkTheme=_.Y("web_darker_dark_theme");return g};
_.f(L6,_.a);L6.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],L6.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],L6.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],L6.prototype,"darkerDarkTheme",void 0);_.m([_.N({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],L6);
_.I(L6,"ytd-hotkey-dialog-content",function(){if(gpM!==void 0)return gpM;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return gpM=g},{mode:1});var BRM;var VD=function(){return _.a.apply(this,arguments)||this};
_.f(VD,_.a);VD.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var g=document.querySelector("ytd-hotkey-dialog-content #scrollable");g&&(g.dialogElement=this.hostElement.parentElement)};
VD.prototype.onCloseTap=function(){_.OS(this.hostElement,"yt-close-popup-action")};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],VD.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],VD.prototype,"data",void 0);_.m([_.N({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],VD);
_.I(VD,"ytd-hotkey-dialog-renderer",function(){if(BRM!==void 0)return BRM;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return BRM=g},{mode:1});var wVF;var hU=function(){return _.a.apply(this,arguments)||this};
_.f(hU,_.a);hU.prototype.onYtServiceRequestError=function(){if(this.blocked){var g;var r=(g=this.data)==null?void 0:g.defaultServiceEndpoint}else{var E;r=(E=this.data)==null?void 0:E.toggledServiceEndpoint}var B;(r=(B=_.n(r,_.P8w))==null?void 0:B.onFailureAction)&&this.ytComponentBehavior.resolveCommand(r);this.updateBlockState(!this.blocked)};
hU.prototype.onYtToggleButton=function(g){this.updateBlockState(g.detail.toggled)};
hU.prototype.updateBlockState=function(g){if(g!==this.blocked){var r=this.blockedEntityKey;r&&this.ytdReduxBehavior.dispatch(_.za("blockStateEntity",r,{key:r,blocked:g}));this.set("data.isToggled",g)}};
_.hx.Object.defineProperties(hU.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)}}});
hU.prototype.onYtToggleButton=hU.prototype.onYtToggleButton;hU.prototype.onYtServiceRequestError=hU.prototype.onYtServiceRequestError;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],hU.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],hU.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],hU.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],hU.prototype,"blockedEntityKey",void 0);
_.m([_.K({selectorArgs:["blockedEntityKey"],selector:function(g,r){return _.u1(g.entities,"blockStateEntity",r)}}),
_.L("design:type",Object)],hU.prototype,"blockStateEntity",void 0);_.m([_.W("data","blockStateEntity"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],hU.prototype,"blocked",null);_.m([_.ob("yt-service-request-error"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],hU.prototype,"onYtServiceRequestError",null);
_.m([_.ob("yt-toggle-button"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],hU.prototype,"onYtToggleButton",null);_.m([_.N({is:"ytd-block-button",disableElementRegistration:!0})],hU);
_.I(hU,"ytd-block-button",function(){if(wVF!==void 0)return wVF;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return wVF=g},
{mode:1});var Sdg;var OHM;var ZT=function(){return _.a.apply(this,arguments)||this};
_.f(ZT,_.a);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],ZT.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ZT.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ZT.prototype,"data",void 0);_.m([_.N({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],ZT);
_.I(ZT,"ytd-kids-blocklist-picker-item-renderer",function(){if(OHM!==void 0)return OHM;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return OHM=g},{mode:1});var yD=function(){return _.a.apply(this,arguments)||this};
_.f(yD,_.a);yD.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],yD.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],yD.prototype,"data",void 0);_.m([_.N({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],yD);
_.I(yD,"ytd-kids-blocklist-picker-content",function(){if(Sdg!==void 0)return Sdg;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return Sdg=
g},{mode:_.My("kevlar_poly_si_batch_j025")?1:2});var Uvt;var vn=function(){var g=_.a.apply(this,arguments)||this;g.hasAnyRequestSucceeded=!1;g.hasAnyRequestFailed=!1;g.numPendingRequests=0;return g};
_.f(vn,_.a);_.S=vn.prototype;_.S.attached=function(){this.hostElement.setAttribute("dialog","")};
_.S.onDoneButtonTap=function(){_.OS(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.S.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.S.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.S.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.S.onPopupClosed=function(g){var r,E;if(((r=g.detail)==null?void 0:(E=r.popup)==null?void 0:E.is)==="tp-yt-paper-dialog"){var B;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((B=this.data)==null?0:B.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.vs(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
vn.prototype.onPopupClosed=vn.prototype.onPopupClosed;vn.prototype.onYtServiceRequestError=vn.prototype.onYtServiceRequestError;vn.prototype.onYtServiceRequestCompleted=vn.prototype.onYtServiceRequestCompleted;vn.prototype.onYtServiceRequestSent=vn.prototype.onYtServiceRequestSent;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],vn.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],vn.prototype,"ytRendererBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],vn.prototype,"data",void 0);_.m([_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],vn.prototype,"onYtServiceRequestSent",null);_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],vn.prototype,"onYtServiceRequestCompleted",null);
_.m([_.ob("yt-service-request-error"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],vn.prototype,"onYtServiceRequestError",null);_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],vn.prototype,"onPopupClosed",null);_.m([_.N({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],vn);
_.I(vn,"ytd-kids-blocklist-picker-renderer",function(){if(Uvt!==void 0)return Uvt;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return Uvt=g},{mode:1});var MOM;var qdA;var dZ=function(){return _.a.apply(this,arguments)||this};
_.f(dZ,_.a);dZ.prototype.setTip=function(g){var r=this;this.data&&(this.tip=E8L(g8v.getInstance(),g,this.data),_.Lk(this,function(){_.Sh(r.hostElement,"yt-refit")}))};
dZ.prototype.clearTip=function(){this.tip=void 0};
dZ.prototype.computeHidden=function(g){return!g};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],dZ.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.L("design:type",Boolean)],dZ.prototype,"hidden",void 0);_.m([_.K(),_.L("design:type",Object)],dZ.prototype,"tip",void 0);_.m([_.N({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],dZ);
_.I(dZ,"ytd-menu-popup-tip-renderer",function(){if(qdA!==void 0)return qdA;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);
return qdA=g},{mode:1});var ueA;var TH=function(){var g=_.a.apply(this,arguments)||this;g.useIcons=!1;g.systemIcons=_.Y("kevlar_system_icons");g.useListItemStyles=_.Y("web_list_item_style_for_menu_items");return g};
_.f(TH,_.a);_.S=TH.prototype;_.S.onFocus=function(){var g;(g=_.S3(this.hostElement).querySelector("tp-yt-paper-item"))==null||g.focus()};
_.S.onTap=function(){var g=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(g&&_.n(g,_.D$))this.componentBehavior.resolveCommand(g),this.updateToggledStateInEntity();else if(g){this.componentBehavior.resolveCommand(g)||_.rM().resolve(_.Er).resolveCommand(g,{form:{element:this.hostElement}});var r;((r=_.n(g,_.Gn))==null?void 0:r.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.S.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.S.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.S.updateToggledStateInEntity=function(){var g=this.data.toggleMenuServiceItemEntityKey,r=!this.data.isToggled;g&&this.ytdReduxBehavior.dispatch(_.za("toggleMenuServiceItemEntity",g,{key:g,isToggled:r}))};
_.S.computeIcon=function(g,r,E){return(g=g?E:r)&&g.iconType?_.Dh(g.iconType):""};
_.S.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.S.isIconActive=function(g){return!_.Y("toggle_menu_active_icon_killswitch")&&g};
_.hx.Object.defineProperties(TH.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return((g=this.data)==null?0:g.isToggled)?(r=this.data)==null?void 0:r.toggledText:(E=this.data)==null?void 0:E.defaultText}}});
TH.prototype.toggledStateEntityChanged=TH.prototype.toggledStateEntityChanged;TH.prototype.onYtServiceRequestCompleted=TH.prototype.onYtServiceRequestCompleted;TH.prototype.onTap=TH.prototype.onTap;TH.prototype.onFocus=TH.prototype.onFocus;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],TH.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],TH.prototype,"componentBehavior",void 0);
_.m([_.P(_.Ai),_.L("design:type",Object)],TH.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],TH.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],TH.prototype,"useIcons",void 0);_.m([_.K({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.L("design:type",String)],TH.prototype,"icon",void 0);
_.m([_.K({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(g,r){return _.u1(g.entities,"toggleMenuServiceItemEntity",r)}}),
_.L("design:type",Object)],TH.prototype,"toggleMenuServiceItemEntity",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],TH.prototype,"systemIcons",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],TH.prototype,"useListItemStyles",void 0);_.m([_.ob("focus"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],TH.prototype,"onFocus",null);
_.m([_.W("data.isToggled"),_.L("design:type",Object),_.L("design:paramtypes",[])],TH.prototype,"toggleButtonText",null);_.m([_.ob("tap"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],TH.prototype,"onTap",null);_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],TH.prototype,"onYtServiceRequestCompleted",null);
_.m([_.Gb("toggleMenuServiceItemEntity.isToggled","data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],TH.prototype,"toggledStateEntityChanged",null);_.m([_.N({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],TH);
_.I(TH,"ytd-toggle-menu-service-item-renderer",function(){if(ueA!==void 0)return ueA;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return ueA=g},{mode:1});var lj$;var gw=function(){return _.a.apply(this,arguments)||this};
_.f(gw,_.a);gw.prototype.onFocus=function(){var g;(g=_.S3(this.hostElement).querySelector("tp-yt-paper-item"))==null||g.focus()};
_.hx.Object.defineProperties(gw.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.nI(this.data.iconUrl)}}});
gw.prototype.onFocus=gw.prototype.onFocus;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],gw.prototype,"rendererBehavior",void 0);_.m([_.P(_.DW.YtEndpointBehavior),_.L("design:type",Object)],gw.prototype,"ytEndpointBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],gw.prototype,"data",void 0);_.m([_.ob("focus"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],gw.prototype,"onFocus",null);
_.m([_.W("data.iconUrl"),_.L("design:type",Object),_.L("design:paramtypes",[])],gw.prototype,"imageSource",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],gw);
_.I(gw,"ytd-menu-custom-icon-item-renderer",function(){if(lj$!==void 0)return lj$;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return lj$=g},{mode:_.My("kevlar_poly_si_batch_j028")?1:2});_.BK(_.fv,"yt-list-item-view-model",{props:{data:_.cP,isMenuItem:_.cP,isCompact:_.cP,onTap:_.EB,trailingAccessory:_.EB,hideSelectionTextChevron:_.cP,disabled:_.cP,inPopup:_.cP,disableHorizontalPadding:_.cP,isOverlay:_.cP,isToggled:_.cP}});var rw=function(){var g=_.a.apply(this,arguments)||this;g.disableBackdropFilter=_.Y("web_disable_backdrop_filter");return g};
_.f(rw,_.a);_.S=rw.prototype;
_.S.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{menuNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},
toggleMenuServiceItemRenderer:{component:"ytd-toggle-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},listItemViewModel:{component:"yt-list-item-view-model",params:{isCompact:!0}},menuCustomIconItemRenderer:{component:"ytd-menu-custom-icon-item-renderer"},menuServiceItemDownloadRenderer:{component:"ytd-menu-service-item-download-renderer"},clientSideToggleMenuItemRenderer:{component:"yt-live-chat-toggle-renderer"}}},"data.footer":{id:"footer",mapping:{menuPopupTipRenderer:"ytd-menu-popup-tip-renderer"}}}};
_.S.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.S.computeAriaLabel=function(g){return g};
_.S.onPopupOpened=function(){this.items.selected=0;for(var g=_.U(_.S3(this.items).children),r=g.next();!r.done;r=g.next())r.value.popupPositionTarget=this.positionTarget;if(g=this.popupTip||void 0)g.setTip(this.source||""),this.source=void 0;this.veData&&(g=_.PE())&&_.ck(g,[this.veData])};
_.S.onPopupClosed=function(){var g=this.popupTip||void 0;g&&g.clearTip()};
_.S.onIronActivate=function(g){this.shouldPersist(g)||_.OS(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(g=_.PE())&&_.Lu(g,this.veData)};
_.S.shouldPersist=function(g){var r,E;if(((r=g.detail)==null?void 0:r.selected)===void 0||(E=this.data)==null||!E.items)return!1;var B,w;return!((w=(B=this.data.items[g.detail.selected])==null?void 0:B.toggleMenuServiceItemRenderer)==null||!w.persistentOnMenuPopup)};
_.S.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(g){return g.menuNavigationItemRenderer?!!g.menuNavigationItemRenderer.icon:g.menuServiceItemRenderer?!!g.menuServiceItemRenderer.icon:g.menuConditionalServiceItemRenderer?!!g.menuConditionalServiceItemRenderer.icon:g.menuConditionalNavigationItemRenderer?!!g.menuConditionalNavigationItemRenderer.icon:g.toggleMenuServiceItemRenderer?!!g.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
rw.prototype.onPopupClosed=rw.prototype.onPopupClosed;rw.prototype.onPopupOpened=rw.prototype.onPopupOpened;_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],rw.prototype,"ytEventForwardingBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],rw.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],rw.prototype,"ytRendererBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],rw.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],rw.prototype,"veData",void 0);_.m([_.K({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.L("design:type",String)],rw.prototype,"ariaLabel",void 0);_.m([_.K({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],rw.prototype,"useIcons",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],rw.prototype,"disableBackdropFilter",void 0);_.m([_.zb("#items"),_.L("design:type",Object)],rw.prototype,"items",void 0);_.m([_.zb("ytd-menu-popup-tip-renderer"),_.L("design:type",Object)],rw.prototype,"popupTip",void 0);_.m([_.ob("yt-popup-opened"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],rw.prototype,"onPopupOpened",null);
_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],rw.prototype,"onPopupClosed",null);_.m([_.N({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],rw);
_.I(rw,"ytd-menu-popup-renderer",function(){if(MOM!==void 0)return MOM;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return MOM=g},{mode:1});var Dv8;var opv=_.dG(function(g){g=_.y7(g,{icon:void 0});var r=g.data;g=g.icon;var E=function(){return r().iconBadgeText},B={},w=_.QY("yt-spec-icon-badge-shape",function(){a:switch(r().iconBadgeType){case "notification":var O="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":O="yt-spec-icon-badge-shape--type-cart";break a;default:O=""}return O},function(){a:switch(r().iconBadgeStyle){case "overlay":var O="yt-spec-icon-badge-shape--style-overlay";
break a;default:O=""}return O},(B["yt-spec-icon-badge-shape--text-size-small"]=function(){var O=E();
return!!((O==null?0:O.length)&&O.length>2)},B));
return _.G("yt-icon-badge-shape",null,_.G(_.p,{cond:g,then:function(O){return _.G("div",{class:w},_.G("div",{class:"yt-spec-icon-badge-shape__icon"},_.G(_.nh,{icon:O})),_.G(_.p,{cond:E,then:function(M){return _.G("div",{class:"yt-spec-icon-badge-shape__badge"},M)}}))}}))},"Bg");
opv.idomCompat=!0;_.BK(opv,"yt-icon-badge-shape",{props:{data:_.cP,icon:_.cP}});var EW=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};g.unseenCount=0;g.isOverlay=!1;return g};
_.f(EW,_.a);_.S=EW.prototype;_.S.attached=function(){var g=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(r){g.onServiceWorkerMessage(r)})};
_.S.onDataChanged=function(){this.isAttached&&!this.JSC$18423_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18423_lastData=this.data};
_.S.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.S.computeIcon=function(){var g,r;return(g=this.data)==null?void 0:(r=g.icon)==null?void 0:r.iconType};
_.S.onServiceWorkerMessage=function(g){g.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.S.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.n(this.data.updateUnseenCountEndpoint,_.Gn)&&_.n(this.data.updateUnseenCountEndpoint,_.Gn).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.S.handleUpdateNotificationsUnseenCountAction=function(g){var r=this;g=_.n(g,wy$);g!=null&&g.unseenCount&&g.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(g.unseenCount),_.F6.addLowPriorityJob(function(){r.data.updateUnseenCountEndpoint&&r.ytComponentBehavior.resolveCommand(r.data.updateUnseenCountEndpoint)},g.timeoutMs))};
_.S.onClick=function(){_.Sh(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var g=_.US(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),r=this.data.menuRequest;g&&g.length===1&&g[0]?_.OS(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):r&&this.ytComponentBehavior.resolveCommand(r)};
_.S.handleTopbarMenuClosedAction=function(g){g==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.S.toggleIconState=function(g){this.iconButton&&(this.iconButton.pressed=g)};
_.S.sendUnseenCountRequest=function(g){var r=this;_.fC(_.F6,function(){r.ytComponentBehavior.resolveCommand(g)})};
_.S.updateCountUI=function(g){this.set("unseenCount",g<9?g:"9+")};
_.hx.Object.defineProperties(EW.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
EW.prototype.handleUpdateNotificationsUnseenCountAction=EW.prototype.handleUpdateNotificationsUnseenCountAction;EW.prototype.onDataChanged=EW.prototype.onDataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],EW.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],EW.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.cY),_.L("design:type",Object)],EW.prototype,"ytdOpenPopupBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],EW.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],EW.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],EW.prototype,"unseenCount",void 0);_.m([_.K(),_.L("design:type",Object)],EW.prototype,"isOverlay",void 0);_.m([_.K({value:!0}),_.L("design:type",Boolean)],EW.prototype,"showTooltips",void 0);_.m([_.zb("yt-icon-button"),_.L("design:type",Object)],EW.prototype,"iconButton",void 0);
_.m([_.W("unseenCount"),_.L("design:type",Object),_.L("design:paramtypes",[])],EW.prototype,"showNotificationCount",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],EW.prototype,"onDataChanged",null);_.m([_.ob("yt-update-notifications-unseen-count-action"),_.L("design:type",Function),_.L("design:paramtypes",[Object]),_.L("design:returntype")],EW.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.m([_.N({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],EW);
_.I(EW,"ytd-notification-topbar-button-renderer",function(){if(Dv8!==void 0)return Dv8;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Dv8=g},{mode:_.My("kevlar_poly_si_batch_j025")?1:2});var G8$;var Bz=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return g};
_.f(Bz,_.a);Bz.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}}}}}};
Bz.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
Bz.prototype.onDarkModeToggled=function(g){this.dark=g};
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Bz.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Bz.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Bz.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Bz.prototype,"data",void 0);_.m([_.K({value:!0,reflectToAttribute:!0}),_.L("design:type",Boolean)],Bz.prototype,"dark",void 0);
_.m([_.N({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],Bz);
_.I(Bz,"yt-pdg-buy-flow-header-renderer",function(){if(G8$!==void 0)return G8$;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return G8$=g},{mode:1});var QRz;var z5t;var ww=function(){var g=_.a.apply(this,arguments)||this;g.immediateValue=0;g.isDarkTheme=!1;g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return g};
_.f(ww,_.a);_.S=ww.prototype;_.S.created=function(){_.eP.requestAvailability()};
_.S.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.S.dataChanged=function(){var g=_.S3(this.hostElement).querySelector("#color-slider");g.immediateValue&&this.updateSliderKnobAndGradientStyles(g.immediateValue);this.data.notches[0].knobColorArgb&&_.ua(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.XT(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.Ca("HTML_DIR")==="rtl"&&_.S3(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.S.onSliderImmediateChange=function(){var g=_.S3(this.hostElement).querySelector("#color-slider");g.dragging&&(g.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(g.immediateValue),this.updateSliderKnobAndGradientStyles(g.immediateValue)),this.updateSliderAria())};
_.S.onSliderChange=function(){var g=_.S3(this.hostElement).querySelector("#color-slider");g.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(g.immediateValue),this.updateSliderKnobAndGradientStyles(g.immediateValue));this.updateSliderAria()};
_.S.updateSliderAria=function(){var g=_.S3(this.hostElement).querySelector("#color-slider"),r=_.S3(this.hostElement).querySelector("#color-slider");r=_.Vp(this.data.notches[r.immediateValue].tierValue);_.FY()&&_.Sh(this.hostElement,"iron-announce",{text:r});g.setAttribute("aria-valuetext",r)};
_.S.updateSuperThanksSelectedTierEntity=function(g){if(g!==this.immediateValue){var r,E,B=this==null?void 0:(r=this.data)==null?void 0:(E=r.superThanksSelectedTierEntity)==null?void 0:E.key;B&&B.length>0&&this.ytdReduxBehavior.dispatch(_.za("superThanksSelectedTierEntity",B,{key:B,index:g}))}};
_.S.onDarkModeToggledAction=function(g){this.isDarkTheme=g};
_.S.updateSliderKnobAndGradientStyles=function(g){this.immediateValue=g;g=this.data.notches[g];if(g==null?0:g.knobColorArgb)var r={"--ytd-pdg-color-slider-knob-color":_.XT(g.knobColorArgb)};(g==null?0:g.linearGradientCssStyle)&&r!==null&&(r=Object.assign({},r,{"--ytd-pdg-color-slider-active-color":g==null?void 0:g.linearGradientCssStyle}));r!==null&&_.ua(this.hostElement,r)};
ww.prototype.onSliderChange=ww.prototype.onSliderChange;ww.prototype.onSliderImmediateChange=ww.prototype.onSliderImmediateChange;ww.prototype.dataChanged=ww.prototype.dataChanged;_.m([_.K(),_.L("design:type",Object)],ww.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],ww.prototype,"immediateValue",void 0);_.m([_.K(),_.L("design:type",Number)],ww.prototype,"maxMarkers",void 0);
_.m([_.K({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:yng}),_.L("design:type",Object)],ww.prototype,"superThanksSelectedTierEntity",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],ww.prototype,"isDarkTheme",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],ww.prototype,"ytdReduxBehavior",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ww.prototype,"dataChanged",null);
_.m([_.ob("immediate-value-change"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ww.prototype,"onSliderImmediateChange",null);_.m([_.ob("change"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ww.prototype,"onSliderChange",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],ww);
_.I(ww,"ytd-pdg-color-slider-renderer",function(){if(z5t!==void 0)return z5t;var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return z5t=g},{mode:1});var k8M;var HHL;var SH=null;
_.ba({is:"ytd-comment-input",_template:function(){if(HHL!==void 0)return HHL;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return HHL=g},
behaviors:[_.w4l.YtHostElementBehavior,_.QV,_.KB.YtComponentBehavior,_.TR.YtRendererstamperBehavior,_.IAZ.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 _.et}},
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",_.Do(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;_.SB();this.focus()},
detached:function(){document.removeEventListener("tap",_.Do(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(g){g=g.detail;g=g.isCustomEmoji?g.shortcuts[0]:g.emojiId;var r=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(r,g);this.maybeUpdateTextDirection_();_.Sh(this.hostElement,"input")},
getInputRange_:function(){var g=_.kj();if(g){g=g.getBrowserRangeObject();for(var r=g.commonAncestorContainer;r;){if(r===this.getEditableTextArea_())return g;r=r.parentNode}}g=this.getEditableTextArea_();g=_.bz(g,g.childNodes.length);g.select();return g.getBrowserRangeObject()},
insertTextWithEmojis_:function(g,r,E){(r=this.emojiManager.createDocumentFragment(r,!0,!1,E===void 0?!0:E))&&r.childNodes.length!==0&&(g.collapsed||g.deleteContents(),E=r.lastChild,g.insertNode(r),_.iuD(E).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var g=_.kj();if(g){var r=g.JSC$9384_getStartNode(),E=g.JSC$9384_getEndNode();if(Nzg(r)&&Nzg(E)){var B=g.JSC$9384_getStartOffset(),w;if(_.qE&&r.nodeType===Node.ELEMENT_NODE&&(w=_.LA6(r)))_.bz(w,0).select();else{w=yS(r)?r:_.CN(r,yS);var O=yS(E)?E:_.CN(E,yS);if(w||O)if(g.isCollapsed()){if(r.nodeType===Node.TEXT_NODE){g=!0;B===r.length&&(g=!1);if(SH==="end"||SH==="right")g=!1;r=r.parentNode;g=[].concat(_.jW(r.parentNode.childNodes)).indexOf(r)+(g?0:1);_.bz(r.parentNode,g).select()}}else w?
w.previousSibling&&w.previousSibling.length>0?_.J2(E,g.JSC$9384_getEndOffset(),w.previousSibling,w.previousSibling.length-1).select():(r=document.createTextNode("\u200b"),w.parentNode.insertBefore(r,w),_.J2(E,g.JSC$9384_getEndOffset(),r,0).select()):O&&(O.nextSibling&&O.nextSibling.length>0?_.J2(r,g.JSC$9384_getStartOffset(),O.nextSibling,1).select():(E=document.createTextNode("\u200b"),O.parentNode.insertBefore(E,O.nextSibling),_.J2(r,g.JSC$9384_getStartOffset(),E,E.length).select()));SH=null}}else SH=
null}else SH=null},
leftKeyPressed_:function(){SH="left"},
rightKeyPressed_:function(){SH="right"},
endKeyPressed_:function(){SH="end"},
maybeDeleteChip_:function(){var g=V98(!0);if(g){var r=_.kj(),E=r.JSC$9384_getStartNode();r=r.JSC$9384_getStartOffset();_.sT(E,r,g,g.childNodes.length).select()}},
maybeBackspaceChip_:function(){var g=V98(!1);if(g){var r=_.kj(),E=r.JSC$9384_getStartNode();r=r.JSC$9384_getStartOffset();_.sT(E,r,g,0).select()}},
maybeBackspaceChipWordMode_:function(g){var r=_.kj();if(r.isCollapsed()){var E=r.JSC$9384_getStartNode();r=r.JSC$9384_getStartOffset();var B=h9t(E,r,!0);B&&(_.sT(E,r,B,0).select(),document.execCommand("delete"),g.preventDefault(),g.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(g){var r=_.kj();if(r.isCollapsed()){var E=r.JSC$9384_getStartNode();r=r.JSC$9384_getStartOffset();var B=h9t(E,r,!1);B&&(_.sT(E,r,B,B.childNodes.length).select(),document.execCommand("delete"),g.preventDefault(),g.stopImmediatePropagation())}},
onContentClick:function(g){g.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(g){g.defaultPrevented||g.currentTarget.tagName==="YTD-COMMENT-INPUT"&&yS(g.target)&&g.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.S3(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.S3(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(g,r){g=mr5(g,this.emojiManager,r).cloneNode(!0);for(r=g.firstChild;r;)if(r.nodeType!==1)r=r.nextSibling;else switch(r.tagName){case "BR":var E=_.nV();_.gbU(E,r);r=E.nextSibling;break;case "DIV":(E=r.lastChild)&&r.nextSibling&&_.j5(_.nV(),E);r.previousSibling&&(r.previousSibling.nodeType===1||r.previousSibling.nodeType===3&&!r.previousSibling.textContent.endsWith("\n"))&&_.$4(_.nV(),r);E&&E.nodeName==="BR"&&_.p5(E);E=r;r.hasChildNodes()?(r=r.firstChild,
_.rD6(E)):(r=r.nextSibling,_.p5(E));break;default:r=r.nextSibling}return ZfM(g)},
setTextAreaValue:function(g){g||(g="");var r=this.getEditableFormattedString_();r.text="";this.getEditableTextArea_().innerText="";typeof g==="string"&&(g={runs:[{text:g}]});r.text=g},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();SH=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var g=this.getEditableTextArea_();g&&(_.bz(g,g.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Ca("HTML_DIR")==="rtl"){var g=this.getEditableTextArea_(),r=this.getTextAreaValue()!==""?"auto":"rtl";g.setAttribute("dir",r)}},
handleInputEvent_:function(){var g=null;if(this.isEmojiButtonDisplayed){var r=this.getInputRange_();r&&(g=this.emojiInput.retrieveTextBeforeRange(r))}this.insertText_(g,!0);this.updateCharCount_();g=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=g.scrollHeight>g.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var g=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:g})},
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(g){this.isEmojiButtonDisplayed&&(g.preventDefault(),g.stopImmediatePropagation(),g=g.clipboardData.getData("text/plain"),this.insertText_(g,!1,!1),_.Sh(this.hostElement,"input"))},
insertText_:function(g,r,E){r=r===void 0?!1:r;E=E===void 0?!0:E;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&g){var B=this.getInputRange_().cloneRange();this.emojiManager&&B&&(r&&this.emojiInput.offsetStartOfRangeBy(B,g.length),this.insertTextWithEmojis_(B,g,E),IzL(this.getEditableTextArea_().lastChild)||(B=this.getInputRange_().cloneRange()),B&&(this.emojiInput.updateSuggestions(B,g),this.updateSuggestionOffset_(B)))}},
getSimpleString:_.Vp,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(g){return g?"focused":"not-focused"},
computePlaceholderText_:function(g){return this.getSimpleString(g)},
computeEditableText_:function(g){return this.getSimpleString(g)},
onPrefilledContentDismissed_:function(g){g.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(g,r){g?this.fire("yt-autonav-pause-focus"):r!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(g){var r=this.getEditableTextArea_();[].concat(_.jW(g.dataTransfer.items)).forEach(function(E){E.kind==="string"&&E.type.match("^text/plain")&&E.getAsString(function(B){r.appendChild(document.createTextNode(B))})});
g.preventDefault()},
preventDefault_:function(g){g.preventDefault()},
onSuggestionInsert_:function(g){this.insertTextWithEmojis_(g.detail.range,g.detail.text)},
onEmojiSuggestionClick_:function(g){this.emojiInput.insertSuggestion(g.detail)},
updateSuggestionOffset_:function(g){if(this.emojiInput&&_.S3(this.emojiInput).querySelector("#dropdown")){var r=this.getEditableTextArea_().getBoundingClientRect().bottom,E=g.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(r-E)+5;r=this.getEditableTextArea_().getBoundingClientRect().left;g=g.getBoundingClientRect().left-r;_.S3(this.emojiInput).querySelector("#dropdown").style.marginLeft=g+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.xR("yt-post"));return this.localStorage}});var OW=function(){var g=_.a.apply(this,arguments)||this;g.currentCommentOptionIndex=0;g.isEmojiPickerDisplayed=!1;g.emojiManager=_.et;g.isUgcEmpty=!1;g.userGeneratedCommentChangedHandler=function(){_.Sh(g.hostElement,"ytd-pdg-user-generated-comment-changed");g.isEmojiYtdCommentInputEnabled&&(g.isUgcEmpty=!g.ytdCommentInputEl.getTextAreaValue())};
g.pasteHandler=function(r){r.preventDefault();r.stopImmediatePropagation();var E;if(r=(E=r.clipboardData)==null?void 0:E.getData("text/plain"))E=document.getSelection().getRangeAt(0),E.collapsed||E.deleteContents(),r=document.createTextNode(r),E.insertNode(r),E.selectNodeContents(r),E.collapse(!1),r=window.getSelection(),r.removeAllRanges(),r.addRange(E)};
g.onDocumentClick=function(r){if(g.isEmojiPickerDisplayed){var E,B,w;!(r.target instanceof Node)||(E=r.composedPath())!=null&&E.includes(g.editableTextEl)||(B=r.composedPath())!=null&&B.includes(g.emojiButtonEl)||(w=r.composedPath())!=null&&w.includes(g.emojiPickerEl)||(g.isEmojiPickerDisplayed=!1)}};
return g};
_.f(OW,_.a);_.S=OW.prototype;_.S.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.S.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.S.detached=function(){var g;(g=this.contentEl)==null||g.removeEventListener("input",this.userGeneratedCommentChangedHandler);var r;(r=this.contentEl)==null||r.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.S.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.S.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var g;this.contentEl.textContent=this.rendererBehavior.getSimpleString((g=this.data)==null?void 0:g.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.S.reloadEmojis=function(){this.emojiPickerEl&&_.n(this.emojiPicker,_.IfU)&&this.emojiPickerEl.updateEmojiCategories()};
_.S.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.ua(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.S.handleBackgroundColorStyling=function(){var g;if((g=this.currentCommentOption)==null?0:g.commentBackgroundColorArgb){var r;_.ua(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.XT((r=this.currentCommentOption)==null?void 0:r.commentBackgroundColorArgb)})}else _.ua(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.S.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var g;(g=this.contentEl)==null||g.focus()}};
_.S.onEditButtonClick=function(g){var r=document.getSelection();r&&this.contentEl&&(g.stopPropagation(),g.preventDefault(),r.selectAllChildren(this.contentEl),r.collapseToEnd())};
_.S.onContentDrop=function(g){var r=this;if(g.dataTransfer){g=_.U(g.dataTransfer.items);for(var E=g.next();!E.done;E=g.next())E=E.value,E.kind==="string"&&E.type.match("^text/plain")&&E.getAsString(function(B){var w;(w=r.contentEl)==null||w.appendChild(document.createTextNode(B))})}};
_.S.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.S.getUserGeneratedCommentText=function(){var g,r=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(g=this.contentEl)==null?void 0:g.textContent;return r?r.trim():""};
_.S.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.S.onEmojiSelect=function(g){this.ytdCommentInputEl.onEmojiSelect(g)};
_.hx.Object.defineProperties(OW.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.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 g;return!((g=this.currentCommentOption)==null||!g.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var g;if(_.n((g=this.currentCommentOption)==null?void 0:g.chipRenderer,_.wU4)){var r;return _.n((r=this.currentCommentOption)==null?void 0:r.chipRenderer,_.wU4)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var g,r;return((g=this.data)==null?0:g.commentOptionRenderers)?_.n((r=this.data)==null?void 0:r.commentOptionRenderers[this.superThanksSelectedTierEntity.index],Pwm):void 0}var E,B;return((E=this.data)==null?0:E.commentOptionRenderers)?_.n((B=this.data)==null?void 0:B.commentOptionRenderers[this.currentCommentOptionIndex],Pwm):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var g;return this.rendererBehavior.getSimpleString((g=this.data)==null?void 0:g.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var g;return this.rendererBehavior.getSimpleString((g=this.data)==null?void 0:g.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var g,r;return(r=_.n((g=this.data)==null?void 0:g.commentDialog,_.Fq4))==null?void 0:r.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var g,r;return(r=_.n((g=this.data)==null?void 0:g.commentDialog,_.Fq4))==null?void 0:r.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var g,r;return(r=_.n((g=this.data)==null?void 0:g.commentDialog,_.Fq4))==null?void 0:r.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var g,r,E=(r=_.n((g=this.data)==null?void 0:g.commentDialog,_.Fq4))==null?void 0:r.emojiPicker;if(!_.n(E,_.IfU)||!_.n(E,_.IfU).categories)return!1;g=function(O){return O.emojiPickerCategoryRenderer?O.emojiPickerCategoryRenderer.emojiIds&&O.emojiPickerCategoryRenderer.emojiIds.length>0:O.emojiPickerUpsellCategoryRenderer?O.emojiPickerUpsellCategoryRenderer.emojis&&O.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var B,w;return((B=_.n(E,_.IfU))==null?0:(w=B.categories)==null?0:w.find(g))?!0:!1}}});
OW.prototype.onEmojiSelect=OW.prototype.onEmojiSelect;OW.prototype.dataChanged=OW.prototype.dataChanged;OW.prototype.currentCommentOptionChanged=OW.prototype.currentCommentOptionChanged;_.m([_.P(_.Ai),_.L("design:type",Object)],OW.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],OW.prototype,"rendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],OW.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.zb("#content-dom-if"),_.L("design:type",_.Pi)],OW.prototype,"contentDomIfEl",void 0);_.m([_.zb("#content-no-emojis"),_.L("design:type",HTMLElement)],OW.prototype,"contentEl",void 0);_.m([_.zb("#container"),_.L("design:type",HTMLElement)],OW.prototype,"containerEl",void 0);_.m([_.zb("#comment-chip-container"),_.L("design:type",HTMLElement)],OW.prototype,"paidCommentChipContainerEl",void 0);_.m([_.zb("#text-input"),_.L("design:type",HTMLElement)],OW.prototype,"editableTextEl",void 0);
_.m([_.zb("#emoji-button"),_.L("design:type",HTMLElement)],OW.prototype,"emojiButtonEl",void 0);_.m([_.zb("#emoji-picker > yt-emoji-picker-renderer"),_.L("design:type",Object)],OW.prototype,"emojiPickerEl",void 0);_.m([_.zb("#text-input > ytd-comment-input"),_.L("design:type",Object)],OW.prototype,"ytdCommentInputEl",void 0);_.m([_.K(),_.L("design:type",Object)],OW.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],OW.prototype,"currentCommentOptionIndex",void 0);
_.m([_.K({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:yng}),_.L("design:type",Object)],OW.prototype,"superThanksSelectedTierEntity",void 0);_.m([_.K(),_.L("design:type",Object)],OW.prototype,"isEmojiPickerDisplayed",void 0);_.m([_.K(),_.L("design:type",Object)],OW.prototype,"emojiManager",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],OW.prototype,"isUgcEmpty",void 0);
_.m([_.Gb("currentCommentOption"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],OW.prototype,"currentCommentOptionChanged",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],OW.prototype,"dataChanged",null);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],OW.prototype,"isEmojiYtdCommentInputEnabled",null);
_.m([_.W("data.title"),_.L("design:type",Object),_.L("design:paramtypes",[])],OW.prototype,"title",null);_.m([_.W("data.authorText"),_.L("design:type",Object),_.L("design:paramtypes",[])],OW.prototype,"channelName",null);_.m([_.W("data.commentOptionRenderers","currentCommentOption"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],OW.prototype,"shouldShowPaidCommentChipRenderer",null);
_.m([_.W("data.commentOptionRenderers","currentCommentOption"),_.L("design:type",Object),_.L("design:paramtypes",[])],OW.prototype,"paidCommentChipRenderer",null);_.m([_.W("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.L("design:type",Object),_.L("design:paramtypes",[])],OW.prototype,"currentCommentOption",null);
_.m([_.W("data.defaultCommentText","superThanksSelectedTierEntity"),_.L("design:type",Object),_.L("design:paramtypes",[])],OW.prototype,"commentText",null);_.m([_.W("data.placeholderText"),_.L("design:type",Object),_.L("design:paramtypes",[])],OW.prototype,"placeholderText",null);_.m([_.W("data.commentDialog.commentDialogRenderer.editableText"),_.L("design:type",Object),_.L("design:paramtypes",[])],OW.prototype,"editableText",null);
_.m([_.W("data.commentDialog.commentDialogRenderer.emojiButton"),_.L("design:type",Object),_.L("design:paramtypes",[])],OW.prototype,"emojiButton",null);_.m([_.W("data.commentDialog.commentDialogRenderer.emojiPicker"),_.L("design:type",Object),_.L("design:paramtypes",[])],OW.prototype,"emojiPicker",null);
_.m([_.W("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],OW.prototype,"isEmojiButtonDisplayed",null);_.m([_.ob("yt-emoji-select"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],OW.prototype,"onEmojiSelect",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],OW);
_.I(OW,"ytd-pdg-comment-preview-renderer",function(){if(k8M!==void 0)return k8M;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return k8M=g},{mode:2});var pVz;var UW=function(){var g=_.a.apply(this,arguments)||this;g.selected=!1;return g};
_.f(UW,_.a);_.S=UW.prototype;_.S.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.S.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.S.dataChanged=function(){this.data&&(_.ON(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.ua(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.XT(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.XT(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.S.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.S.onClick=function(){this.logClick()};
_.S.onKeyboardSelect=function(){_.Sh(this.hostElement,"tap");this.onClick()};
_.S.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
UW.prototype.onClick=UW.prototype.onClick;UW.prototype.selectedChanged=UW.prototype.selectedChanged;UW.prototype.dataChanged=UW.prototype.dataChanged;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],UW.prototype,"componentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],UW.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.QV),_.L("design:type",Object)],UW.prototype,"ironA11yKeysBehavior",void 0);
_.m([_.P(_.ci),_.L("design:type",Object)],UW.prototype,"ironSelectableBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],UW.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],UW.prototype,"shownThumbnail",void 0);_.m([_.K(),_.L("design:type",Object)],UW.prototype,"basePriceText",void 0);_.m([_.K(),_.L("design:type",Object)],UW.prototype,"purchaseCommand",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],UW.prototype,"selected",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],UW.prototype,"dataChanged",null);_.m([_.Gb("selected"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],UW.prototype,"selectedChanged",null);_.m([_.ob("click"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],UW.prototype,"onClick",null);
_.m([_.N({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],UW);
_.I(UW,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(pVz!==void 0)return pVz;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return pVz=g},{mode:1});var M3=function(){var g=_.a.apply(this,arguments)||this;g.selectedItemIndex=0;g.buyButtonDisabled=!1;return g};
_.f(M3,_.a);_.S=M3.prototype;
_.S.configureRendererStamper=function(){return{"data.commentPreview":{id:"comment-preview",mapping:{pdgCommentPreviewRenderer:{component:"ytd-pdg-comment-preview-renderer",properties:{currentCommentOptionIndex:"[[selectedItemIndex]]"}}}},"data.selectableItemButtons":{id:"selectable-items",mapping:{buttonRenderer:{component:"ytd-button-renderer"},superVodSelectableItemButtonRenderer:{component:"ytd-pdg-super-vod-selectable-item-button-renderer"}}},"data.colorSlider":{id:"slider",mapping:{pdgColorSliderRenderer:{component:"ytd-pdg-color-slider-renderer",
properties:{immediateValue:"[[selectedItemIndex]]"}}}}}};
_.S.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var g;var r=(g=_.n(this.data.colorSlider,J9L))==null?void 0:g.notches[this.selectedItemIndex].purchaseCommand}else{var E;r=(E=_.n(this.data.selectableItemButtons[this.selectedItemIndex],F58))==null?void 0:E.purchaseCommand}if(r){g=_.n(r,_.ai4);g.productData||(g.productData={});var B;g.productData={pdgData:{commentMessageText:(B=this.commentPreviewRenderer)==null?void 0:B.getUserGeneratedCommentText()}};
_.Sh(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(r)}}};
_.S.dataChanged=function(){if(this.data){_.et.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.ksz(_.et,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.et.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var g;this.buyButtonDisabled=!((g=_.n(this.data.commentPreview,tfM))==null||!g.placeholderText);this.updatePriceSelectorStatus();var r;if((r=this.data)==null?0:r.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;g=[];this.data.preloadImages&&(g=this.data.preloadImages);
g=g.map(function(E){return _.wt(E.thumbnails,1920)});
g=_.U(g);for(r=g.next();!r.done;r=g.next())(r=r.value)&&_.CMB(r).thenCatch(function(){_.el(Error("rl"))})}};
_.S.superThanksSelectedTierEntityChanged=function(){var g;(this==null?void 0:(g=this.superThanksSelectedTierEntity)==null?void 0:g.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.S.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.S.updatePriceSelectorStatus=function(){this.isColorSlider?(_.S3(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.S3(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.S3(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.S3(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.S.closeBuyFlow=function(){_.OS(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.S.onUserGeneratedContentChanged=function(){var g;this.buyButtonDisabled=!((g=this.commentPreviewRenderer)==null?0:g.getUserGeneratedCommentText())};
_.S.updateSelectedItemIndexFromBinding=function(g){this.selectedItemIndex=g.detail.value};
_.hx.Object.defineProperties(M3.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var g;return!((g=this.data)==null||!g.disclaimerText)}}});
M3.prototype.onUserGeneratedContentChanged=M3.prototype.onUserGeneratedContentChanged;M3.prototype.closeBuyFlow=M3.prototype.closeBuyFlow;M3.prototype.selectedItemIndexChanged=M3.prototype.selectedItemIndexChanged;M3.prototype.superThanksSelectedTierEntityChanged=M3.prototype.superThanksSelectedTierEntityChanged;M3.prototype.dataChanged=M3.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],M3.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],M3.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],M3.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],M3.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],M3.prototype,"selectedItemIndex",void 0);_.m([_.K(),_.L("design:type",Boolean)],M3.prototype,"isColorSlider",void 0);
_.m([_.K(),_.L("design:type",Object)],M3.prototype,"buyButtonDisabled",void 0);_.m([_.K({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:yng}),_.L("design:type",Object)],M3.prototype,"superThanksSelectedTierEntity",void 0);_.m([_.zb("ytd-pdg-comment-preview-renderer"),_.L("design:type",Object)],M3.prototype,"commentPreviewRenderer",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],M3.prototype,"ytdReduxBehavior",void 0);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],M3.prototype,"dataChanged",null);_.m([_.Gb("superThanksSelectedTierEntity"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],M3.prototype,"superThanksSelectedTierEntityChanged",null);_.m([_.Gb("selectedItemIndex"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],M3.prototype,"selectedItemIndexChanged",null);
_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],M3.prototype,"closeBuyFlow",null);_.m([_.ob("ytd-pdg-user-generated-comment-changed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],M3.prototype,"onUserGeneratedContentChanged",null);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],M3.prototype,"isDisclaimerTextShown",null);
_.m([_.N({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],M3);
_.I(M3,"yt-super-vod-buy-flow-content-renderer",function(){if(QRz!==void 0)return QRz;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return QRz=g},{mode:1});var YdM;var q3=function(){var g=_.a.apply(this,arguments)||this;g.lottieAnimationRef={};return g};
_.f(q3,_.a);_.S=q3.prototype;_.S.created=function(){_.eP.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.Do(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.S.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.Sh(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.S.detached=function(){this.autoCloseJobId&&_.F6.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.Do(this,this.onPopupIronOverlayOpened))};
_.S.dataChanged=function(){var g=this;this.data&&this.data.autoCloseDelay&&(_.OS(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.Mh(_.F6,function(){g.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.ua(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.S.onDOMLoadedLottie=function(){var g=this,r,E,B=Number((r=this.data)==null?void 0:(E=r.autoCloseDelay)==null?void 0:E.seconds)||0;this.fadeOutJobId=_.Mh(_.F6,function(){g.lottiePlayerEl.classList.add("fadeout")},(B-.25)*1E3);
this.autoCloseJobId=_.Mh(_.F6,function(){g.closePopup()},B*1E3)};
_.S.openPopup=function(){this.ironOverlayBehavior.open()};
_.S.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.OS(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.uq(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.rM().resolve(_.Er).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.F6.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.F6.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.S.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var g,r;(g=this.lottieAnimationRef)==null||(r=g.lottieEl)==null||r.destroy();g=this.data.lottie;var E,B;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:g.url+"_"+Math.random(),path:g.url,autoplay:!0,loop:(B=(E=g.settings)==null?void 0:E.loop)!=null?B:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.hx.Object.defineProperties(q3.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var g,r;return!!((g=this.data)==null?0:(r=g.lottie)==null?0:r.url)}}});
q3.prototype.maybeInitializeLottie=q3.prototype.maybeInitializeLottie;q3.prototype.dataChanged=q3.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],q3.prototype,"rendererBehavior",void 0);_.m([_.P(_.ai),_.L("design:type",Object)],q3.prototype,"ironOverlayBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],q3.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],q3.prototype,"lottiePlayerProps",void 0);
_.m([_.K(),_.L("design:type",Object)],q3.prototype,"lottieAnimationRef",void 0);_.m([_.zb("ytd-lottie-player"),_.L("design:type",HTMLElement)],q3.prototype,"lottiePlayerEl",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],q3.prototype,"dataChanged",null);_.m([_.W("data"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],q3.prototype,"hasLottieAnimation",null);
_.m([_.Gb("data.lottie.url"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],q3.prototype,"maybeInitializeLottie",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],q3);
_.I(q3,"ytd-desktop-image-overlay-renderer",function(){if(YdM!==void 0)return YdM;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return YdM=g},{mode:1});var R55;var sW=function(){return _.a.apply(this,arguments)||this};
_.f(sW,_.a);_.S=sW.prototype;_.S.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{pdgBuyFlowHeaderRenderer:{component:"yt-pdg-buy-flow-header-renderer"}}},"data.content":{id:"content",mapping:{superVodBuyFlowContentRenderer:{component:"yt-super-vod-buy-flow-content-renderer"}}}}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("tabIndex")||this.hostElement.setAttribute("tabIndex","0");this.hostElement.addEventListener("yt-popup-closed",_.Do(this,this.closePopup))};
_.S.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Do(this,this.closePopup))};
_.S.dataChanged=function(){_.US(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.n(this.data.header,bYg)&&(this.hasBackgroundBanner=!!_.n(this.data.header,bYg).backgroundBanner)};
_.S.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Do(this,this.closePopup))};
_.S.closePopup=function(){this.data&&this.data.onCloseCommand&&_.q2(this.hostElement,[this.data.onCloseCommand])};
sW.prototype.handleBuyflowSelectionSubmitted=sW.prototype.handleBuyflowSelectionSubmitted;sW.prototype.dataChanged=sW.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],sW.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],sW.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],sW.prototype,"data",void 0);
_.m([_.K({value:!0,reflectToAttribute:!0}),_.L("design:type",Boolean)],sW.prototype,"hasBackgroundBanner",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],sW.prototype,"dataChanged",null);_.m([_.ob("yt-pdg-buy-flow-selection-submitted"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],sW.prototype,"handleBuyflowSelectionSubmitted",null);
_.m([_.N({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],sW);
_.I(sW,"ytd-pdg-buy-flow-renderer",function(){if(R55!==void 0)return R55;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return R55=g},{mode:1});var npt;var fs=function(){var g=_.a.apply(this,arguments)||this;g.isOpen=!1;g.isPlaylistCreated=!1;return g};
_.f(fs,_.a);_.S=fs.prototype;_.S.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.S.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.Sh(this.hostElement,"yt-refit")};
_.S.onCreateTap=function(){var g=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.q2(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(r,E){if(!_.Y("killswitch_ep_in_create_playlist_response")&&(E==null?0:E.actions))for(r=_.U(E.actions),E=r.next();!E.done;E=r.next())E=E.value,_.n(E,_.ja)&&g.ytComponentBehavior.resolveCommand(E)}}]),this.isPlaylistCreated=!0)};
_.S.onKeydown=function(g){if(g.keyCode===13)this.onCreateTap()};
_.S.onServiceRequestCompleted=function(g){g.stopPropagation();_.OS(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.S.computePrivacyBadge=function(g){return g?[{metadataBadgeRenderer:g}]:[]};
fs.prototype.onServiceRequestCompleted=fs.prototype.onServiceRequestCompleted;fs.prototype.onKeydown=fs.prototype.onKeydown;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],fs.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],fs.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],fs.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],fs.prototype,"isOpen",void 0);
_.m([_.K(),_.L("design:type",Object)],fs.prototype,"isPlaylistCreated",void 0);_.m([_.K({value:{REQUIRED_LABEL:_.zn("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.zn("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.L("design:type",Object)],fs.prototype,"addToStrings",void 0);_.m([_.K({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.L("design:type",Array)],fs.prototype,"privacyBadge",void 0);
_.m([_.zb("#privacy-input"),_.L("design:type",Object)],fs.prototype,"privacyInput",void 0);_.m([_.zb("#name-input"),_.L("design:type",Object)],fs.prototype,"nameInput",void 0);_.m([_.ob("keydown"),_.L("design:type",Function),_.L("design:paramtypes",[KeyboardEvent]),_.L("design:returntype")],fs.prototype,"onKeydown",null);_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],fs.prototype,"onServiceRequestCompleted",null);
_.m([_.N({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],fs);
_.I(fs,"ytd-add-to-playlist-create-renderer",function(){if(npt!==void 0)return npt;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return npt=g},{mode:1});var sRv;var fj$;var $z=function(){var g=_.a.apply(this,arguments)||this;g.transferState="TRANSFER_STATE_UNKNOWN";return g};
_.f($z,_.a);$z.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
$z.prototype.onCheckboxChange=function(g){var r=this;this.data&&_.Ib(this,"yt-playlist-checkbox-changed",function(){var E=_.yP(g).checked?r.data.addToPlaylistServiceEndpoint:r.data.removeFromPlaylistServiceEndpoint;E&&_.rM().resolve(_.Er).resolveCommand(E,{form:{element:r.hostElement}});_.Y("dl_playlist_killswitch")||r.transferState!=="TRANSFER_STATE_UNKNOWN"&&r.transferState!=="TRANSFER_STATE_FAILED"&&r.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:r.data.playlistId,action:"ACTION_SYNC"}})},
100)};
$z.prototype.computeIconType=function(g){return g?"yt-icons:"+g.toLowerCase():null};
$z.prototype.dataChanged=$z.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],$z.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],$z.prototype,"data",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],$z.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],$z.prototype,"ytComponentBehavior",void 0);_.m([_.zb("#checkbox"),_.L("design:type",HTMLInputElement)],$z.prototype,"checkbox",void 0);
_.m([_.K({selector:_.Cf,selectorArgs:["data.playlistId"]}),_.L("design:type",String)],$z.prototype,"transferState",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],$z.prototype,"dataChanged",null);_.m([_.N({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],$z);
_.I($z,"ytd-playlist-add-to-option-renderer",function(){if(fj$!==void 0)return fj$;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return fj$=g},{mode:1});_.rH(yj5);_.lW(yj5,"ytd-menu-title-renderer",{propNames:["data"]});var jH=function(){var g=_.a.apply(this,arguments)||this;g.addToStrings={ADD_TO_DROPDOWN_LABEL:_.zn("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};g.closeButtonAriaLabel=_.zn("SBOX_INAPPROPRIATE_CANCEL");g.dialog=_.Y("desktop_add_to_playlist_renderer_dialog_popup");return g};
_.f(jH,_.a);_.S=jH.prototype;_.S.configureRendererStamper=function(){return{"data.playlists":{id:"playlists",mapping:{playlistAddToOptionRenderer:"ytd-playlist-add-to-option-renderer"}},"data.actions":{id:"actions",mapping:{addToPlaylistCreateRenderer:"ytd-add-to-playlist-create-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.S.onPopupOpened=function(){_.UN(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.S.onPopupClosed=function(){_.UN(this.playlists,"scrollable",!1)};
_.S.computeAriaLabel=function(){var g;if(this==null?0:(g=this.data)==null?0:g.actions){g=_.U(this.data.actions);for(var r=g.next();!r.done;r=g.next())if(r=r.value,r.menuTitleRenderer)return _.Vp(r.menuTitleRenderer.title)}};
_.S.onTapClose=function(){_.OS(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.hx.Object.defineProperties(jH.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var g;if(this==null?0:(g=this.data)==null?0:g.actions){g=_.U(this.data.actions);for(var r=g.next();!r.done;r=g.next())if(r=r.value,r.menuTitleRenderer)return r.menuTitleRenderer}return!1}}});
jH.prototype.onPopupClosed=jH.prototype.onPopupClosed;jH.prototype.onPopupOpened=jH.prototype.onPopupOpened;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],jH.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],jH.prototype,"ytEventForwardingBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],jH.prototype,"ytRendererStamperBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],jH.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],jH.prototype,"addToStrings",void 0);_.m([_.K({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.L("design:type",String)],jH.prototype,"ariaLabel",void 0);_.m([_.K(),_.L("design:type",String)],jH.prototype,"closeButtonAriaLabel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],jH.prototype,"dialog",void 0);
_.m([_.zb("#playlists"),_.L("design:type",HTMLElement)],jH.prototype,"playlists",void 0);_.m([_.zb("ytd-add-to-playlist-create-renderer"),_.L("design:type",Object)],jH.prototype,"createRenderer",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],jH.prototype,"menuTitleRenderer",null);_.m([_.ob("yt-popup-opened"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],jH.prototype,"onPopupOpened",null);
_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],jH.prototype,"onPopupClosed",null);_.m([_.N({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],jH);
_.I(jH,"ytd-add-to-playlist-renderer",function(){if(sRv!==void 0)return sRv;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return sRv=g},{mode:1});var $v4;var AS=function(){var g=_.a.apply(this,arguments)||this;g.isPlaylistEditComplete=!1;g.isCollabEngagementDisabled=!1;g.closeButtonAriaLabel=_.zn("SBOX_INAPPROPRIATE_CANCEL");g.saveButton={title:_.zn("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"};g.onValueChanged=function(){g.updateSaveButtonState();g.computeCollabEngagementDisabled()};
return g};
_.f(AS,_.a);_.S=AS.prototype;_.S.attached=function(){this.JSC$18479_scroller&&(this.JSC$18479_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18479_scroller.attached&&typeof this.JSC$18479_scroller.attached==="function"&&this.JSC$18479_scroller.attached())};
_.S.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.S.onPopupClosed=function(){this.reset()};
_.S.close=function(){_.OS(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.S.onClickSave=function(){var g=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var r=[];this.nameInput.value!==null&&r.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&r.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var E=Number(this.privacyInput.value);isNaN(E)||r.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:E})}this.votingInput.value!==null&&(E=this.votingInput.value)&&r.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:E});if(r.length>0){var B;_.n((B=this.data)==null?void 0:B.updateSettingsEndpoint,_.J9).actions=r;var w;if((w=this.data)==null?0:w.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){g.close()}}}),this.isPlaylistEditComplete=!0}}};
_.S.computePrivacyBadge=function(g){return g?[{metadataBadgeRenderer:g}]:[]};
_.S.computeEditorData=function(g){var r,E;return g==null?void 0:(r=g.sections)==null?void 0:(E=r[0])==null?void 0:E.playlistSettingsEditorCasualSectionRenderer};
_.S.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.S.configureRendererStamper=function(){return{"editorData.thumbnail":{id:"thumbnail",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",params:{width:9999}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",params:{size:312}}}}}};
_.S.computeAriaLabel=function(){var g,r,E,B=(g=this.data)==null?void 0:(r=g.sections)==null?void 0:(E=r[0])==null?void 0:E.playlistSettingsEditorCasualSectionRenderer;return _.Vp(B==null?void 0:B.title)};
_.S.updateSaveButtonState=function(){this.isFormChanged()&&this.isFormValid()?this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"})):this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_DISABLED"}))};
_.S.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.S.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.S.isNameChanged=function(){var g,r,E;return(((g=this.editorData)==null?void 0:(r=g.name)==null?void 0:(E=r.textInputFormFieldRenderer)==null?void 0:E.value)||"")!==(this.nameInput.value||"")};
_.S.isDescriptionChanged=function(){var g,r,E;return(((g=this.editorData)==null?void 0:(r=g.description)==null?void 0:(E=r.textInputFormFieldRenderer)==null?void 0:E.value)||"")!==(this.descriptionInput.value||"")};
_.S.isPrivacyChanged=function(){var g,r,E,B,w,O,M,u;return((M=(g=this.editorData)==null?void 0:(r=g.privacy)==null?void 0:(E=r.dropdownFormFieldRenderer)==null?void 0:(B=E.dropdown)==null?void 0:(w=B.dropdownRenderer)==null?void 0:(O=w.entries)==null?void 0:O.find(function(l){var Q;return l==null?void 0:(Q=l.privacyDropdownItemRenderer)==null?void 0:Q.isSelected}))==null?void 0:(u=M.privacyDropdownItemRenderer)==null?void 0:u.int32Value)!==this.privacyInput.value};
_.S.isVotingChanged=function(){var g,r,E,B,w,O,M,u;return((M=(g=this.editorData)==null?void 0:(r=g.voting)==null?void 0:(E=r.dropdownFormFieldRenderer)==null?void 0:(B=E.dropdown)==null?void 0:(w=B.dropdownRenderer)==null?void 0:(O=w.entries)==null?void 0:O.find(function(l){var Q;return l==null?void 0:(Q=l.privacyDropdownItemRenderer)==null?void 0:Q.isSelected}))==null?void 0:(u=M.privacyDropdownItemRenderer)==null?void 0:u.int32Value)!==this.votingInput.value};
AS.prototype.onPopupClosed=AS.prototype.onPopupClosed;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],AS.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],AS.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],AS.prototype,"ytEventForwardingBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],AS.prototype,"ytRendererStamperBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],AS.prototype,"data",void 0);_.m([_.K({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.L("design:type",Array)],AS.prototype,"privacyBadge",void 0);_.m([_.K({computed:"computeEditorData(data)"}),_.L("design:type",Object)],AS.prototype,"editorData",void 0);_.m([_.K(),_.L("design:type",Object)],AS.prototype,"isPlaylistEditComplete",void 0);_.m([_.K(),_.L("design:type",Object)],AS.prototype,"isCollabEngagementDisabled",void 0);
_.m([_.K({value:{REQUIRED_LABEL:_.zn("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.zn("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.L("design:type",Object)],AS.prototype,"addToStrings",void 0);_.m([_.K({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.L("design:type",String)],AS.prototype,"ariaLabel",void 0);_.m([_.K(),_.L("design:type",String)],AS.prototype,"closeButtonAriaLabel",void 0);
_.m([_.K(),_.L("design:type",Object)],AS.prototype,"saveButton",void 0);_.m([_.zb("#name-input"),_.L("design:type",Object)],AS.prototype,"nameInput",void 0);_.m([_.zb("#description-input"),_.L("design:type",Object)],AS.prototype,"descriptionInput",void 0);_.m([_.zb("#privacy-input"),_.L("design:type",Object)],AS.prototype,"privacyInput",void 0);_.m([_.zb("#voting-input"),_.L("design:type",Object)],AS.prototype,"votingInput",void 0);
_.m([_.zb("#scroller"),_.L("design:type",Object)],AS.prototype,"JSC$18479_scroller",void 0);_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],AS.prototype,"onPopupClosed",null);_.m([_.K(),_.L("design:type",Object)],AS.prototype,"onValueChanged",void 0);_.m([_.N({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],AS);
_.I(AS,"ytd-playlist-settings-editor-renderer",function(){if($v4===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);$v4=g}g=$v4;return g},{mode:1});var jRF;_.ek("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var bU=function(){return _.a.apply(this,arguments)||this};
_.f(bU,_.a);_.S=bU.prototype;_.S.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-confirm":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",classListBinding:"[[buttonClass_]]",attributes:{"dialog-dismiss":!0}}}}}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.dataChanged=function(){switch(this.get("data.singleOptions.preselectMode")){case "SINGLE_OPTION_PRESELECT_MODE_LAST":this.selectedResponseIndex=this.get("data.singleOptions.styles").length-1;break;default:this.selectedResponseIndex=void 0}var g=this.get("data.nextButton.buttonRenderer.navigationEndpoint");g&&(this.nextNavigationEndpoint=g,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.S.onSelectedResponseIndexChange=function(){if(this.get("data.nextButton.buttonRenderer")!=null){switch(this.get("data.submissionMode")){case "SURVEY_SUBMISSION_MODE_ONE_SELECTED_OPTION":this.set("data.nextButton.buttonRenderer.isDisabled",this.selectedResponseIndex===void 0);break;default:this.set("data.nextButton.buttonRenderer.isDisabled",!1)}if(this.selectedResponseIndex!=null){var g={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",g)}}};
_.S.onPopupOpened=function(g){g.detail!==this&&g.detail!==this.hostElement||!_.Y("enable_premium_voluntary_pause")||_.OS(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.S.onNextButtonTap=function(){var g=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);g&&this.ytdOpenPopupBehavior.openPopup(g)};
_.S.updateSelectedResponseIndexFromBinding=function(g){this.selectedResponseIndex=g.detail.value};
bU.prototype.onPopupOpened=bU.prototype.onPopupOpened;bU.prototype.onSelectedResponseIndexChange=bU.prototype.onSelectedResponseIndexChange;bU.prototype.dataChanged=bU.prototype.dataChanged;_.m([_.P(_.cY),_.L("design:type",Object)],bU.prototype,"ytdOpenPopupBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],bU.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],bU.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],bU.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Number)],bU.prototype,"selectedResponseIndex",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],bU.prototype,"dataChanged",null);_.m([_.Gb("selectedResponseIndex"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],bU.prototype,"onSelectedResponseIndexChange",null);
_.m([_.ob("yt-popup-opened"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],bU.prototype,"onPopupOpened",null);_.m([_.N({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],bU);
_.I(bU,"ytd-red-cancel-survey-renderer",function(){if(jRF!==void 0)return jRF;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return jRF=g},{mode:1});var AIz;var JS=function(){var g=_.a.apply(this,arguments)||this;g.closeButtonAriaLabel=_.zn("SBOX_INAPPROPRIATE_CANCEL");return g};
_.f(JS,_.a);JS.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
JS.prototype.onClickClose=function(){_.OS(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],JS.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],JS.prototype,"rendererStamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],JS.prototype,"data",void 0);_.m([_.K(),_.L("design:type",String)],JS.prototype,"closeButtonAriaLabel",void 0);_.m([_.N({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],JS);
_.I(JS,"ytd-search-filter-options-dialog-renderer",function(){if(AIz!==void 0)return AIz;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return AIz=g},{mode:1});var bH8;var Tzg=function(){return function(g){g=g.availabilityType;return g===void 0||g==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||g==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var Pz=function(){var g=_.a.apply(this,arguments)||this;g.qualityOptions=[];g.upsellOptions=[];g.showUpsellSection=!1;g.darkerDarkTheme=_.Y("web_darker_dark_theme");g.rememberSettingsChecked=!1;return g};
_.f(Pz,_.a);_.S=Pz.prototype;_.S.configureRendererStamper=function(){return{qualityOptions:{id:"quality-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}},upsellOptions:{id:"upsell-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.S.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.S.updateQualityOptions=function(){if(this.formats===void 0)_.OS(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var g=[],r=[];this.showUpsellSection=!1;for(var E=_.U(this.formats),B=E.next();!B.done;B=E.next())(B=B.value)&&(B.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?r.push(B):g.push(B));g.length&&(this.qualityOptions=drz(g));r.length&&(this.showUpsellSection=!0,this.upsellOptions=drz(r))}};
_.S.updateRememberString=function(){if(this.downloadQualityPickerEntity)var g=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var r;g=(r=this.data)==null?void 0:r.premiumRememberSettingString}else{var E;g=(E=this.data)==null?void 0:E.rememberSettingString}g=g===void 0?_.zn("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):g;this.rememberSettingsCheckboxRenderer={title:_.gz(g),disabled:!1}};
_.S.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.hx.Object.defineProperties(Pz.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var g;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(g=this.data)==null?void 0:g.qualityFormats}}});
Pz.prototype.updateRememberString=Pz.prototype.updateRememberString;Pz.prototype.updateQualityOptions=Pz.prototype.updateQualityOptions;Pz.prototype.dataChanged=Pz.prototype.dataChanged;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Pz.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Pz.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Pz.prototype,"data",void 0);
_.m([_.P(_.Ai),_.L("design:type",Object)],Pz.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Boolean)],Pz.prototype,"selectedUpsellQuality",void 0);_.m([_.K({computed:"computeIcon_(data.premiumIcon)",value:""}),_.L("design:type",String)],Pz.prototype,"premiumIcon",void 0);_.m([_.K({selector:LS4,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.L("design:type",Object)],Pz.prototype,"downloadQualityPickerEntity",void 0);
_.m([_.K(),_.L("design:type",Array)],Pz.prototype,"qualityOptions",void 0);_.m([_.K(),_.L("design:type",Array)],Pz.prototype,"upsellOptions",void 0);_.m([_.K(),_.L("design:type",Object)],Pz.prototype,"showUpsellSection",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Pz.prototype,"darkerDarkTheme",void 0);_.m([_.K(),_.L("design:type",Object)],Pz.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.m([_.zb("#remember-settings"),_.L("design:type",HTMLInputElement)],Pz.prototype,"rememberSettingsCheckbox",void 0);_.m([_.K(),_.L("design:type",Object)],Pz.prototype,"rememberSettingsChecked",void 0);_.m([_.K(),_.L("design:type",Function)],Pz.prototype,"onRememberSettingsCheckedChanged",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Pz.prototype,"dataChanged",null);
_.m([_.Gb("downloadQualityPickerEntity"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Pz.prototype,"updateQualityOptions",null);_.m([_.Gb("selectedUpsellQuality"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Pz.prototype,"updateRememberString",null);_.m([_.N({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],Pz);
_.I(Pz,"ytd-download-quality-selector-content",function(){if(bH8!==void 0)return bH8;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return bH8=g},{mode:1});var JIL;var tS=function(){var g=_.a.apply(this,arguments)||this;g.selectedUpsellQuality=!1;g.qualityOptions=[];g.darkerDarkTheme=_.Y("web_darker_dark_theme");g.useUpsellDismissAlternate=_.Y("use_not_now_dl_upsell_dismiss_cta");g.shouldShowAlternateUpsellDimiss=!1;g.rememberSettings=!1;g.rememberSettingsChecked=!1;g.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};g.rememberSettingsCheckedChanged=function(r){g.rememberSettingsChecked=r};
return g};
_.f(tS,_.a);_.S=tS.prototype;
_.S.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.gz(_.zn("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.gz(_.zn("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.gz(_.zn("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.gz(_.zn("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.S.updateQualityOptions=function(){this.formats===void 0?_.OS(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=drz(this.formats)};
_.S.onQualityOptionsSelect=function(g){if(this.qualityOptions&&g){g!==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 r=_.U(this.qualityOptions.entries()),E=r.next();!E.done;E=
r.next()){E=_.U(E.value);var B=E.next().value;E=E.next().value;var w=void 0,O=void 0;if(((w=E)==null?void 0:(O=w.settingsRadioOptionRenderer)==null?void 0:O.id)===g){this.selectedQualityIndex=B;g=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((g=this.formats[B])==null?void 0:g.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.S.onClickSubmit=function(){var g;if((g=this.downloadButtonRenderer)==null||!g.isDisabled){var r,E;g=(E=(r=this.data)==null?void 0:r.onSubmitEndpoint)!=null?E:{};var B,w;if(this.formats&&(((B=_.n(g,_.DB))==null?0:B.videoId)||((w=_.n(g,_.o$))==null?0:w.playlistId))){var O,M,u,l,Q,z;r={formatType:(l=(O=this.formats)==null?void 0:(M=O[(u=this.selectedQualityIndex)!=null?u:0])==null?void 0:M.format)!=null?l:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(Q=this.getOfflineEndpoint(g))==null?void 0:(z=Q.actionParams)==null?void 0:z.settingsAction)};this.getOfflineEndpoint(g).actionParams=r;this.ytComponentBehavior.resolveCommand(g)}_.OS(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.S.onClickUpsell=function(){var g;if((g=this.upsellButtonRenderer)==null||!g.isDisabled){var r,E;g=(E=(r=this.data)==null?void 0:r.upsellEndpoint)!=null?E:{};this.ytComponentBehavior.resolveCommand(g);_.OS(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);r="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var B,w,O,M;r=(M=(B=this.formats)==null?void 0:(w=B[(O=this.selectedQualityIndex)!=null?O:0])==null?void 0:w.format)!=null?M:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:r}})}};
_.S.onClickClose=function(){_.OS(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.S.getOfflineSettingsAction=function(g,r){return g?r===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":r:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.S.getOfflineEndpoint=function(g){return _.n(g,_.DB)?_.n(g,_.DB):_.n(g,_.o$)};
_.hx.Object.defineProperties(tS.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.gz(_.zn("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var g;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(g=this.data)==null?void 0:g.qualityFormats}}});
tS.prototype.updateQualityOptions=tS.prototype.updateQualityOptions;tS.prototype.dataChanged=tS.prototype.dataChanged;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],tS.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],tS.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],tS.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],tS.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],tS.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Number)],tS.prototype,"selectedQualityIndex",void 0);_.m([_.K(),_.L("design:type",Object)],tS.prototype,"selectedUpsellQuality",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],tS.prototype,"ytdReduxBehavior",void 0);
_.m([_.K({selector:LS4,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.L("design:type",Object)],tS.prototype,"downloadQualityPickerEntity",void 0);_.m([_.K(),_.L("design:type",Array)],tS.prototype,"qualityOptions",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],tS.prototype,"darkerDarkTheme",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],tS.prototype,"useUpsellDismissAlternate",void 0);
_.m([_.K(),_.L("design:type",Object)],tS.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.m([_.K(),_.L("design:type",Object)],tS.prototype,"downloadButtonRenderer",void 0);_.m([_.K(),_.L("design:type",Object)],tS.prototype,"upsellButtonRenderer",void 0);_.m([_.K(),_.L("design:type",Object)],tS.prototype,"cancelButtonRenderer",void 0);_.m([_.K(),_.L("design:type",Object)],tS.prototype,"upsellCancelButtonRenderer",void 0);_.m([_.K(),_.L("design:type",Object)],tS.prototype,"rememberSettings",void 0);
_.m([_.K(),_.L("design:type",Object)],tS.prototype,"rememberSettingsChecked",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],tS.prototype,"dataChanged",null);_.m([_.Gb("downloadQualityPickerEntity"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],tS.prototype,"updateQualityOptions",null);_.m([_.N({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],tS);
_.I(tS,"ytd-download-quality-selector-renderer",function(){if(JIL!==void 0)return JIL;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return JIL=g},{mode:1});var P9v;var FH=function(){var g=_.a.apply(this,arguments)||this;g.darkerDarkTheme=_.Y("web_darker_dark_theme");return g};
_.f(FH,_.a);FH.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
FH.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"}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],FH.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],FH.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],FH.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],FH.prototype,"darkerDarkTheme",void 0);_.m([_.K({computed:"computeIcon_(data.infoIcon)"}),_.L("design:type",Object)],FH.prototype,"infoIcon",void 0);
_.m([_.K({computed:"computeIcon_(data.warningIcon)"}),_.L("design:type",Object)],FH.prototype,"warningIcon",void 0);_.m([_.N({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],FH);
_.I(FH,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(P9v!==void 0)return P9v;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return P9v=g},{mode:1});var tOF;var eH=function(){var g=_.a.apply(this,arguments)||this;g.darkerDarkTheme=_.Y("web_darker_dark_theme");return g};
_.f(eH,_.a);eH.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
eH.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"}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],eH.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],eH.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],eH.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],eH.prototype,"darkerDarkTheme",void 0);_.m([_.N({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],eH);
_.I(eH,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(tOF!==void 0)return tOF;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return tOF=g},{mode:1});var FbL;var Wz=function(){var g=_.a.apply(this,arguments)||this;g.darkerDarkTheme=_.Y("web_darker_dark_theme");return g};
_.f(Wz,_.a);Wz.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Wz.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"}}}}};
Wz.prototype.onServiceRequestSentOrCompleted=function(g,r){r&&r.actions&&r.actions.length>0&&_.OS(this.hostElement,"yt-close-popup-action",[this.is])};
Wz.prototype.onServiceRequestSentOrCompleted=Wz.prototype.onServiceRequestSentOrCompleted;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Wz.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Wz.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Wz.prototype,"darkerDarkTheme",void 0);_.m([_.K(),_.L("design:type",Object)],Wz.prototype,"data",void 0);
_.m([_.ob("yt-service-request-completed"),_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.hR]),_.L("design:returntype")],Wz.prototype,"onServiceRequestSentOrCompleted",null);_.m([_.N({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],Wz);
_.I(Wz,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(FbL!==void 0)return FbL;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return FbL=g},{mode:1});var e5A;var Cs=function(){var g=_.a.apply(this,arguments)||this;g.darkerDarkTheme=_.Y("web_darker_dark_theme");g.submitButtonDisabled=!0;return g};
_.f(Cs,_.a);_.S=Cs.prototype;_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.S.onDataChanged=function(){var g,r,E;if(((g=this.data)==null?void 0:(r=g.confirmButton)==null?void 0:(E=r.buttonRenderer)==null?void 0:E.isDisabled)!==void 0){var B,w,O;this.submitButtonDisabled=(B=this.data)==null?void 0:(w=B.confirmButton)==null?void 0:(O=w.buttonRenderer)==null?void 0:O.isDisabled}};
_.S.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.S.updateSubmitButtonDisabledFromBinding=function(g){this.submitButtonDisabled=g.detail.value};
_.S.updateSubmitButtonDisabledFromConfirmCheckbox=function(g){this.submitButtonDisabled=!g.detail.value};
Cs.prototype.onDataChanged=Cs.prototype.onDataChanged;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Cs.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Cs.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Cs.prototype,"darkerDarkTheme",void 0);
_.m([_.K(),_.L("design:type",Object)],Cs.prototype,"submitButtonDisabled",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Cs.prototype,"onDataChanged",null);_.m([_.N({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Cs);
_.I(Cs,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(e5A!==void 0)return e5A;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return e5A=g},{mode:1});var Wbz;var Ks=function(){return _.a.apply(this,arguments)||this};
_.f(Ks,_.a);_.hx.Object.defineProperties(Ks.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var g,r,E;return((g=this.data)==null?void 0:g.title)+" "+((r=this.data)==null?void 0:r.metadataPrimary)+" "+((E=this.data)==null?void 0:E.metadataSecondary)}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Ks.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Ks.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Ks.prototype,"data",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],Ks.prototype,"ariaLabel",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],Ks);
_.I(Ks,"ytd-compact-product-list-item-renderer",function(){if(Wbz!==void 0)return Wbz;var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return Wbz=g},{mode:1});var C9m;var xz=function(){return _.a.apply(this,arguments)||this};
_.f(xz,_.a);xz.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]]"}}}}}};
_.hx.Object.defineProperties(xz.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],xz.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],xz.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],xz.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],xz.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],xz);
_.I(xz,"ytd-compact-product-list-renderer",function(){if(C9m!==void 0)return C9m;var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return C9m=g},{mode:1});var KbM;var a5=function(){var g=_.a.apply(this,arguments)||this;g.darkerDarkTheme=_.Y("web_darker_dark_theme");return g};
_.f(a5,_.a);_.S=a5.prototype;_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.S.getBackgroundUrl=function(){var g=this.get("data.headerImage.thumbnails");return g?"url("+_.wt(g,this.hostElement.clientWidth)+")":""};
_.S.onDataChanged=function(){var g=this.getBackgroundUrl();g&&(this.header.style.backgroundImage=g);g=_.PE();var r=_.JF(),E=this.get("data.trackingParams");E&&r&&g&&_.N2(g,r,_.fW(E));g=_.U(this.hostElement.querySelectorAll("yt-img-shadow"));for(r=g.next();!r.done;r=g.next())r.value.onShow()};
_.S.onPopupClosed=function(g){_.yP(g).localName==="ytd-membership-post-cancel-renderer"&&_.OS(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
a5.prototype.onPopupClosed=a5.prototype.onPopupClosed;a5.prototype.onDataChanged=a5.prototype.onDataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],a5.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],a5.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],a5.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],a5.prototype,"darkerDarkTheme",void 0);
_.m([_.zb("#header"),_.L("design:type",HTMLDivElement)],a5.prototype,"header",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],a5.prototype,"onDataChanged",null);_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],a5.prototype,"onPopupClosed",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],a5);
_.I(a5,"ytd-membership-post-cancel-renderer",function(){if(KbM!==void 0)return KbM;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return KbM=g},{mode:1});var xvv;var XH=function(){var g=_.a.apply(this,arguments)||this;g.darkerDarkTheme=_.Y("web_darker_dark_theme");return g};
_.f(XH,_.a);XH.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
XH.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],XH.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],XH.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],XH.prototype,"darkerDarkTheme",void 0);_.m([_.zb("ytd-feedback-survey-renderer"),_.L("design:type",Object)],XH.prototype,"feedbackSurveyRenderer",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],XH);
_.I(XH,"ytd-sponsorship-confirm-cancel-content",function(){if(xvv!==void 0)return xvv;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return xvv=g},{mode:1});var ajz;var N3=function(){var g=_.a.apply(this,arguments)||this;g.darkerDarkTheme=_.Y("web_darker_dark_theme");g.maybeSubmitFeedback=function(){g.content&&g.content.maybeSubmitFeedback()};
return g};
_.f(N3,_.a);_.S=N3.prototype;_.S.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.S.onYtPopupOpened=function(g,r){r===this&&this.data&&this.data.onOpenCommands&&_.uq(this.hostElement,this.data.onOpenCommands,this.hostElement);_.OS(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.S.onYtPopupClosed=function(g,r){(r&&r.canceled===!0||r&&r.canceled===!1&&r.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.uq(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.S.onYtServiceRequestCompleted=function(){_.OS(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.S.onYtServiceRequestError=function(g){_.vX(this.hostElement,g.detail.error.message)};
_.S.onDataChanged=function(){if(this.isAttached){var g=this.backgroundUrl;g&&(_.S3(this.hostElement).querySelector("#header").style.backgroundImage=g)}};
_.hx.Object.defineProperties(N3.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var g=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return g?"url("+_.wt(g,this.hostElement.clientWidth)+")":""}}});
N3.prototype.onDataChanged=N3.prototype.onDataChanged;N3.prototype.onYtServiceRequestError=N3.prototype.onYtServiceRequestError;N3.prototype.onYtServiceRequestCompleted=N3.prototype.onYtServiceRequestCompleted;N3.prototype.onYtPopupClosed=N3.prototype.onYtPopupClosed;N3.prototype.onYtPopupOpened=N3.prototype.onYtPopupOpened;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],N3.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],N3.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],N3.prototype,"data",void 0);_.m([_.K({value:function(){return _.zn("SBOX_INAPPROPRIATE_CANCEL")}}),
_.L("design:type",String)],N3.prototype,"closeButtonAriaLabel",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],N3.prototype,"darkerDarkTheme",void 0);_.m([_.zb("#scrollable"),_.L("design:type",Object)],N3.prototype,"scrollable",void 0);_.m([_.zb("ytd-sponsorship-confirm-cancel-content"),_.L("design:type",Object)],N3.prototype,"content",void 0);
_.m([_.ob("yt-popup-opened"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],N3.prototype,"onYtPopupOpened",null);_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],N3.prototype,"onYtPopupClosed",null);
_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],N3.prototype,"onYtServiceRequestCompleted",null);_.m([_.ob("yt-service-request-error"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],N3.prototype,"onYtServiceRequestError",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],N3.prototype,"onDataChanged",null);
_.m([_.N({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],N3);
_.I(N3,"ytd-sponsorship-confirm-cancel-renderer",function(){if(ajz!==void 0)return ajz;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return ajz=g},{mode:_.My("kevlar_poly_si_batch_j081")?1:2});var XV4;var I5=function(){var g=_.a.apply(this,arguments)||this;g.darkerDarkTheme=_.Y("web_darker_dark_theme");return g};
_.f(I5,_.a);I5.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],I5.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],I5.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],I5.prototype,"darkerDarkTheme",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],I5);
_.I(I5,"ytd-sponsorships-celebration-content",function(){if(XV4!==void 0)return XV4;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return XV4=
g},{mode:1});var NR4;var Ij8=_.me(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),ma=function(){var g=_.a.apply(this,arguments)||this;g.scriptsAppended=!1;g.buttonOverrides={type:"tonal",style:"overlay-dark"};return g};
_.f(ma,_.a);_.S=ma.prototype;
_.S.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0},properties:{overrides:"[[buttonOverrides]]"},params:{forceModernIconButton:_.Y("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.onDataChanged=function(){var g;(g=this.header)==null||g.style.setProperty("background-color",this.backgroundColor);if(g=this.headerImageUrl){var r;(r=this.header)==null||r.style.setProperty("background-image",g)}r=_.PE(4);g=_.JF(4);var E=this.get("data.trackingParams");if(E&&g&&r){var B=_.fW(E);_.N2(r,g,B);_.Y("combine_ve_grafts")?_.pW().graftServerVe(E,g,4):_.N2(r,g,B)}r=_.U(this.hostElement.querySelectorAll("yt-img-shadow"));for(g=r.next();!g.done;g=r.next())g.value.onShow();if(r=this.get("data.gtmId"))_.fB(r,
_.Ca("GL","")),this.setupConversionTracking()};
_.S.setupConversionTracking=function(){if(!this.scriptsAppended){var g=document.createElement("script");var r=_.XE(Ij8.join(""));_.IC(g,r);document.head.appendChild(g);g=document.createElement("noscript");g.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(g);this.scriptsAppended=!0}};
_.S.onPopupClosed=function(g){if(_.yP(g).localName==="ytd-sponsorships-celebration-renderer"){_.OS(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var r;this.data&&((r=this.data)==null?0:r.dismissCommand)&&_.G$.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.hx.Object.defineProperties(ma.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var g=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.XT(g)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var g=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return g?"url("+_.wt(g,this.hostElement.getBoundingClientRect().width)+")":""}}});
ma.prototype.onPopupClosed=ma.prototype.onPopupClosed;ma.prototype.onDataChanged=ma.prototype.onDataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ma.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],ma.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],ma.prototype,"data",void 0);_.m([_.zb("#header"),_.L("design:type",HTMLElement)],ma.prototype,"header",void 0);
_.m([_.K(),_.L("design:type",Object)],ma.prototype,"scriptsAppended",void 0);_.m([_.K(),_.L("design:type",Object)],ma.prototype,"buttonOverrides",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ma.prototype,"onDataChanged",null);_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],ma.prototype,"onPopupClosed",null);
_.m([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],ma);
_.I(ma,"ytd-sponsorships-celebration-renderer",function(){if(NR4!==void 0)return NR4;var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return NR4=g},{mode:1});var mv5;var cz=function(){var g=_.a.apply(this,arguments)||this;g.isToggleChecked=!1;return g};
_.f(cz,_.a);cz.prototype.onDataChanged=function(){var g;this.isToggleChecked=((g=this.data)==null?void 0:g.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
cz.prototype.close=function(){var g;((g=this.data)==null?0:g.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
cz.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var g,r=_.n((g=this.data)==null?void 0:g.switchButton,e0A);r&&(this.isToggleChecked&&r.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(r.switchOnInnertubeCommand),!this.isToggleChecked&&r.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(r.switchOffInnertubeCommand))};
cz.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
cz.prototype.onDataChanged=cz.prototype.onDataChanged;_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],cz.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],cz.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],cz.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],cz.prototype,"isToggleChecked",void 0);_.m([_.K({value:_.zn("CLOSE")}),_.L("design:type",String)],cz.prototype,"closeButtonAriaLabel",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],cz.prototype,"onDataChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],cz);
_.I(cz,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(mv5!==void 0)return mv5;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return mv5=g},{mode:1});var cI5;var iU=function(){return _.a.apply(this,arguments)||this};
_.f(iU,_.a);_.S=iU.prototype;_.S.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.header.sponsorshipsHeaderRenderer.menuButton":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.detached=function(){this.playerElement.stop()};
_.S.onYtServiceRequestCompleted=function(){_.OS(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.S.onYtServiceRequestError=function(g){_.vX(this.hostElement,g.detail.error.message)};
_.S.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.S.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.S.getTier=function(g,r){return!g||!g.tiers||r<0?null:_.n(g.tiers[r],xCm)};
_.S.moreThanOne=function(g){return!!(g&&g.length>1)};
_.S.tierOverviewTap=function(g){var r=this;this.selectedTier=g.model.index;_.Lk(this,function(){_.Sh(r.hostElement,"yt-refit")})};
_.S.computeSelectedClass=function(g,r){return this.isSelected(g,r)?"selected":""};
_.S.computeButtonAriaPressed=function(g,r){return this.isSelected(g,r)?"true":"false"};
_.S.isSelected=function(g,r){return g===r};
_.S.onDataChanged=function(){_.S3(this.hostElement).querySelector("#header-overlay").style.visibility="";_.S3(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 g=_.U(this.hostElement.querySelectorAll("yt-img-shadow")),
r=g.next();!r.done;r=g.next())r.value.onShow();var E;this.set("selectedTier",(E=this.get("data.targetTierIndex"))!=null?E:0);var B;(g=(B=this.data)==null?void 0:B.onVisible)&&this.ytComponentBehavior.resolveCommand(g)};
_.S.initializeVe=function(g){var r=_.PE(),E=_.JF(),B=this.get("data.trackingParams");E&&r&&(this.screenLayer=4,r=_.aa(_.zXY)(void 0,69877,{clientScreenNonce:r,visualElement:E},void 0,void 0,void 0),_.Fp(r,69877,4),E=_.JF(4),B&&E&&(B=_.fW(B),_.N2(r,E,B),g&&(this.offerVideoVe=_.bW(74659),_.N2(r,B,this.offerVideoVe))))};
_.S.setHeaderBackground=function(){var g=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.S3(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.XT(g);if(g=this.getHeaderImage())g=_.wt(g,screen.width),_.S3(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+g+")"};
_.S.getHeaderImage=function(){var g=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&g?g:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.S.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.S.setupVideoPlayer=function(g){var r=this,E,B,w,O;return _.q(function(M){if(M.nextAddress==1)return E=r.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),B=r.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.Y("kevlar_player_update_killswitch")?r.playerElement.update({args:{autoplay:E,video_id:g,player_params:B}}):r.playerElement.loadVideoWithPlayerVars({autoplay:E,video_id:g,player_params:B}),
_.D(M,r.playerElement.getPlayerPromise(),2);w=M.yieldResult;w.addEventListener("onStateChange",function(u){r.onPlayerStateChange(u)});
w.setScreenLayer(r.screenLayer);(O=_.PE(4))&&r.offerVideoVe&&_.mZ(O,r.offerVideoVe);E&&(r.pauseOtherPlayers(),r.playerElement.focusOnPlayer(),r.playerElement.getPlayer().hideControls(),_.fC(_.F6,function(){r.fadeOutHeaderOverlay()},4E3));
_.Q3(M)})};
_.S.onPlayerStateChange=function(g){g===1?this.backgroundPlayerElement&&(g=this.backgroundPlayerElement.player_.getPlayerState(),g!==1&&g!==3||this.backgroundPlayerElement.pause()):g===0&&(_.S3(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.S3(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.S.fadeOutHeaderOverlay=function(){_.S3(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.S.onHeaderTap=function(){if(this.offerVideo){_.S3(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var g;((g=this.playerElement.player_)==null?void 0:g.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(g=_.PE(4))&&this.offerVideoVe&&_.Lu(g,this.offerVideoVe)}};
_.S.getBackgroundImageLayerClass=function(g){return g?"background-image-layer-with-video":""};
_.S.getHeaderClass=function(g){return g?"header-with-video":""};
_.S.getHeaderOverlayClass=function(g){return g?"header-overlay-with-video":""};
_.S.getTitleContainerClass=function(g,r){return g?"title-container-with-video":r?"title-container-without-video-flexible":"title-container-without-video"};
_.S.tierTitleDisplayStatus=function(g){return this.moreThanOne(g)?"hide":"show"};
_.S.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.rM().resolve(_.ea).getPlayerElement():this.backgroundPlayerElement=_.Tw();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var g=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=g===1||g===3;this.backgroundPlayerElement.pause()}};
_.S.isMiniplayerActive=function(){return _.rM().resolve(_.ea).isMiniplayerActive()};
_.S.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.x8("selected-tier-changed",this.selectedTier))};
iU.prototype.selectedTierChangedForBinding=iU.prototype.selectedTierChangedForBinding;iU.prototype.onDataChanged=iU.prototype.onDataChanged;iU.prototype.onYtPopupClosed=iU.prototype.onYtPopupClosed;iU.prototype.onYtPopupOpened=iU.prototype.onYtPopupOpened;iU.prototype.onYtServiceRequestError=iU.prototype.onYtServiceRequestError;iU.prototype.onYtServiceRequestCompleted=iU.prototype.onYtServiceRequestCompleted;
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],iU.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],iU.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],iU.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],iU.prototype,"data",void 0);_.m([_.K({value:0}),_.L("design:type",Number)],iU.prototype,"selectedTier",void 0);
_.m([_.K({value:""}),_.L("design:type",String)],iU.prototype,"offerVideo",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],iU.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.m([_.K({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.Ew(this)}}),
_.L("design:type",String)],iU.prototype,"playerId",void 0);_.m([_.zb("tp-yt-paper-dialog-scrollable"),_.L("design:type",Object)],iU.prototype,"scrollable",void 0);_.m([_.zb("ytd-sponsorships-tier-renderer"),_.L("design:type",Object)],iU.prototype,"tierRenderer",void 0);_.m([_.zb("#player"),_.L("design:type",Object)],iU.prototype,"playerElement",void 0);
_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],iU.prototype,"onYtServiceRequestCompleted",null);_.m([_.ob("yt-service-request-error"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],iU.prototype,"onYtServiceRequestError",null);
_.m([_.ob("yt-popup-opened"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],iU.prototype,"onYtPopupOpened",null);_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],iU.prototype,"onYtPopupClosed",null);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],iU.prototype,"onDataChanged",null);
_.m([_.Gb("selectedTier"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],iU.prototype,"selectedTierChangedForBinding",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],iU);
_.I(iU,"ytd-sponsorships-offer-renderer",function(){if(cI5!==void 0)return cI5;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return cI5=g},{mode:_.My("kevlar_poly_si_batch_j077")?1:2});var iH8;var Ls=function(){var g=_.a.apply(this,arguments)||this;g.buttonOverrides={type:"filled",style:"mono"};return g};
_.f(Ls,_.a);Ls.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}}}}}};
Ls.prototype.backgroundColorChanged=function(){var g,r,E,B=(r=_.n((g=this.data)==null?void 0:g.content,acA))==null?void 0:(E=r.backgroundColor)==null?void 0:E.backgroundColor;B&&(g=_.aJ(B),_.S3(this.hostElement).querySelector("#banner").style.backgroundColor=g,_.S3(this.hostElement).querySelector("#abstract-art").style.backgroundColor=g)};
Ls.prototype.attached=function(){this.JSC$18565_scroller&&(this.JSC$18565_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18565_scroller.attached&&typeof this.JSC$18565_scroller.attached==="function"&&this.JSC$18565_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ls.prototype.backgroundColorChanged=Ls.prototype.backgroundColorChanged;_.m([_.K(),_.L("design:type",Object)],Ls.prototype,"data",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Ls.prototype,"ytRendererstamperBehavior",void 0);_.m([_.zb("#scroller"),_.L("design:type",Object)],Ls.prototype,"JSC$18565_scroller",void 0);_.m([_.K(),_.L("design:type",Object)],Ls.prototype,"buttonOverrides",void 0);
_.m([_.Gb("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Ls.prototype,"backgroundColorChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],Ls);
_.I(Ls,"ytd-sponsorships-promotion-celebration-renderer",function(){if(iH8!==void 0)return iH8;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return iH8=g},{mode:_.My("kevlar_poly_si_batch_j077")?1:2});var LbM;var VOg;var Vi=function(){return _.a.apply(this,arguments)||this};
_.f(Vi,_.a);Vi.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
Vi.prototype.computeIsInitiallyChecked=function(g){return g===1};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Vi.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Vi.prototype,"data",void 0);_.m([_.zb("#checkbox"),_.L("design:type",Object)],Vi.prototype,"checkbox",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],Vi);
_.I(Vi,"ytd-subscription-toggle-option-renderer",function(){if(VOg!==void 0)return VOg;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return VOg=g},{mode:1});var hS=function(){var g=_.a.apply(this,arguments)||this;g.darkerDarkTheme=_.Y("web_darker_dark_theme");g.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return g};
_.f(hS,_.a);hS.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"}}}};
hS.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
hS.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var g=_.S3(this.hostElement).querySelector("#options").selected;g=this.data.options[g].subscriptionRadioOptionRenderer.serviceEndpoint;var r=_.S3(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");r&&g&&g.modifyChannelNotificationPreferenceEndpoint&&(r=r.getValue())&&(g.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[r]);_.rM().resolve(_.Er).resolveCommand(g,{form:{element:this.hostElement}});
_.OS(this.hostElement,"yt-close-popup-action")};
_.hx.Object.defineProperties(hS.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var g=this.data.options,r=0;r<g.length;r++){var E=g[r].subscriptionRadioOptionRenderer;if(E&&E.selected)return r}return null}}});
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],hS.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],hS.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],hS.prototype,"eventForwardingBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],hS.prototype,"ytRendererBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],hS.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],hS.prototype,"darkerDarkTheme",void 0);_.m([_.W("data.options"),_.L("design:type",Object),_.L("design:paramtypes",[])],hS.prototype,"initialIndex",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],hS);
_.I(hS,"ytd-subscription-notification-options-renderer",function(){if(LbM!==void 0)return LbM;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return LbM=g},{mode:1});var h55;var Ze=function(){return _.a.apply(this,arguments)||this};
_.f(Ze,_.a);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Ze.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Ze.prototype,"data",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],Ze);
_.I(Ze,"ytd-tvfilm-offer-groups-renderer",function(){if(h55!==void 0)return h55;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return h55=g},{mode:1});var ZHL;var yi=function(){var g=_.a.apply(this,arguments)||this;g.darkerDarkTheme=_.Y("web_darker_dark_theme");return g};
_.f(yi,_.a);_.S=yi.prototype;_.S.configureRendererStamper=function(){return{"data.offers":{id:"offers",mapping:{tvfilmOffersRenderer:{component:"ytd-tvfilm-offer-groups-renderer"}}},"data.coupon":{id:"coupon",mapping:{ypcCouponRenderer:"ytd-ypc-coupon-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.S.computeThumbnailClass=function(g){return g.thumbnailOverlays?g.isShow?"thumbnail-show":"thumbnail-movie":g.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.S.computeCommerceSectionClass=function(g){return g.offers&&g.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.S.computeTitleClass=function(g){return g.offers&&g.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.S.onDataChanged=function(){[].concat(_.jW(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(g){g.onShow()})};
yi.prototype.onDataChanged=yi.prototype.onDataChanged;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],yi.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],yi.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],yi.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],yi.prototype,"darkerDarkTheme",void 0);
_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],yi.prototype,"onDataChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],yi);
_.I(yi,"ytd-ypc-offers-overlay-renderer",function(){if(ZHL!==void 0)return ZHL;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return ZHL=g},{mode:_.My("kevlar_poly_si_batch_j028")?1:2});var yIg;var vp5=function(){this.usedMethods=new Set};
vp5.prototype.add=function(g){this.usedMethods.add(g)};
vp5.prototype.reset=function(){this.usedMethods.clear()};var gV$=function(g,r){this.query=g;this.previousSearchQuery=r;this.id=dvM++;if(!TRD){r=_.Ca("SBOX_SETTINGS");g="https://"+((r==null?void 0:r.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var E=r==null?void 0:r.REQUEST_LANGUAGE;E&&(g+="&hl="+E);(E=r==null?void 0:r.REQUEST_DOMAIN)&&(g+="&gl="+E);g+="&client=youtube&gs_ri=youtube";(E=r==null?void 0:r.SUGG_EXP_ID)&&(g+="&sugexp="+encodeURIComponent(E));(E=r==null?void 0:r.PSUGGEST_TOKEN)&&(g+="&tok="+E);(r=
r==null?void 0:r.SESSION_INDEX)&&(g+="&authuser="+r);_.Y("desktop_enable_visual_suggest")&&(g+="&h=180&w=320&ytvs=1");TRD=g}},r3F=function(g){var r="q="+encodeURIComponent(g.query);
g.previousSearchQuery&&(r+="&pq="+encodeURIComponent(g.previousSearchQuery));return r},EVL=function(){var g=_.Ca("SBOX_SETTINGS"),r={};
if(g==null?0:g.SEND_VISITOR_DATA)r["X-Goog-Visitor-Id"]=g==null?void 0:g.VISITOR_DATA;return r},B4v=function(g){var r=TRD;
r+="&gs_id="+g.id.toString(36);r+="&q="+encodeURIComponent(g.query);r+="&cp="+g.query.length;g.previousSearchQuery&&(r+="&pq="+encodeURIComponent(g.previousSearchQuery));(g=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(r+="&video_id="+g);return r},dvM=0,TRD="";var wcA=_.mk.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,Sum=_.mk.SEARCH_ENTITY_SUGGESTION_MOVIE,Oqm=_.mk.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,U76=_.mk.SEARCH_ENTITY_SUGGESTION_TV_SHOW,MRD=function(g,r){this.text=g;this.bold=r},qu5=function(g,r,E){this.input=r;
this.index=E;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=g[0];this.type=g[1];this.subtypes=g[2];var B;this.displayText=dP((B=g[3])==null?void 0:B.b);var w;this.ignoredPrefix=dP((w=g[3])==null?void 0:w.a);var O,M;this.hasNewVideo=((O=g[3])==null?void 0:(M=O.zam)==null?void 0:M.toString())==="true"?!0:!1;var u;this.visualSuggestUrl=(u=g[3])==null?void 0:u.zai;var l;this.entityType=dP((l=g[3])==null?void 0:l.zap);var Q;this.entityName=dP((Q=g[3])==null?void 0:Q.zao);var z;r=dP((z=
g[3])==null?void 0:z.zaf);var k;this.entityMid=(k=g[3])==null?void 0:k.zae;z=rO$(this.subtypes,this.entityMid);if(r&&z){if(r){k="";switch(z){case "YOUTUBE_ENTITY_TYPE_SONG":k=Oqm;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":k=wcA;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":k=U76;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":k=Sum}z=z==="YOUTUBE_ENTITY_TYPE_SONG"||z==="YOUTUBE_ENTITY_TYPE_ALBUM"?k+" \u2022  \u2022 "+r:r}else z="";this.entitySubtitle=z}var H;this.externalChannelId=(H=g[3])==null?void 0:H.zav;var R;
this.entityThumbnailAttributionUrl=(R=g[3])==null?void 0:R.zaq},ldL=function(g,r){var E=[],B,w=(B=g.displayText)!=null?B:g.text;
(r==null?0:r.useEntityName)&&ub8(g)&&g.entityName&&(w=g.entityName);if(g.type===33)return E.push(new MRD(w,!1)),E;if(w.length>=g.input.length&&w.substring(0,g.input.length)===g.input)E.push(new MRD(g.input,!1)),E.push(new MRD(w.substring(g.input.length),!0));else{var O=new Set(g.input.split(/\s/)),M=w.split(/\s/);E=M.map(function(u,l){return new MRD(u.trim()+(l===M.length-1?"":" "),!O.has(u))})}return E},ub8=function(g){var r=!!rO$(g.subtypes);
g=!!g.entityMid;return r||g};var D7M=function(g){this.rawResponse=["",[],{}];this.suggestions=[];try{var r=JSON.parse(EaD(g));if(typeof r==="object"&&r!==null)this.rawResponse=r;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(B){console.log("Suggest: Failed to parse SuggestResponse!");return}var E=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(B,w){return new qu5(B,E,w)})};var oVt=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new vp5;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18602_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},GQL,Q06=function(){GQL||(GQL=new oVt);
return GQL};
oVt.prototype.updateSuggestions=function(g){var r=this;this.availableSuggestions.forEach(function(E){r.previousSuggestions[E]=!0});
this.availableSuggestions=g.map(function(E){var B=E.type.toString();E.subtypes.length>0&&(B+="i"+E.subtypes.join("i"),B+="k"+E.suggestionSources.COMPLETE_SERVER.toString());return B})};
var zbg=function(g,r){var E=Date.now();g.firstEditTime<0&&(g.firstEditTime=E);r&&(g.lastQueryBuildTime=E);g.lastEditTime=E};
oVt.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18602_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var kQM=function(g){var r="";g.availableSuggestions.forEach(function(w){delete g.previousSuggestions[w]});
for(var E=_.U(Object.keys(g.previousSuggestions)),B=E.next();!B.done;B=E.next())B=B.value,g.previousSuggestions[B]&&(r+=(r?"j":"")+B);return r},Hq$=function(g,r){var E=[];
r&&(E[1]=r.toString());E[0]="youtube";E[7]=Date.now()-g.startTime;E[6]=g.sessionNumber;g.zeroPrefixSuggestionCount>=0&&(E[33]=g.zeroPrefixSuggestionCount);E[13]=g.outOfSyncResponseCount;if(g.availableSuggestions.length>0){for(var B=r="",w=0,O=_.U(g.availableSuggestions),M=O.next();!M.done;M=O.next())M=M.value,M!==B&&(w>1&&(r+="l"+w),r+=(B?"j":"")+M,w=0,B=M),w+=1;w>1&&(r+="l"+w);E[3]=r}E[35]=kQM(g);g.selectedSuggestionIndex>=0&&(E[2]=g.selectedSuggestionIndex);var u;if(r=(u=_.Ca("SBOX_SETTINGS"))==
null?void 0:u.SUGG_EXP_ID)E[19]=g.normalize(r),u=0,g.experimentTriggeredBeforeFinal&&(u|=1),g.experimentTriggeredFinal&&(u|=2),E[20]=u;E[26]=Array.from(g.inputMethodsTracker.usedMethods).join("j");if(g.JSC$18602_totalRoundTripTime>0){E[15]=g.JSC$18602_totalRoundTripTime;E[14]=g.maxRoundTripTime;u=[];for(w=r=0;w<10;w++)B=g.roundTripTimeHistogram[w],B===0?r++:(r>1?u.push(w+"-"+B):r===1?u.push("0j"+B):u.push(B.toString()),r=0);u=u.join("j");E[16]=u}g.zeroPrefixRoundTripTime>0&&(E[36]=g.zeroPrefixRoundTripTime);
g.lastQueryBuildTime>0&&(E[18]=g.lastQueryBuildTime-g.startTime);g.firstEditTime>0&&(E[4]=g.firstEditTime-g.startTime);g.lastEditTime>0&&(E[5]=g.lastEditTime-g.startTime);return E.join(".")};
oVt.prototype.normalize=function(g){return g.replaceAll(".","-")};
var pcg=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var vz=function(){var g=_.a.apply(this,arguments)||this;g.microphoneSpinnerActive=!1;g.noAnimations=!1;g.boundExitClick=function(){g.onExitButtonClick()};
g.speechOverlayClassName="";g.isLevelAnimating=!1;g.playCloseDialogAudioFeedback=!0;g.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return g};
_.f(vz,_.a);_.S=vz.prototype;_.S.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.S.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=Mbv()};
_.S.dataChanged=function(){this.logDialog()};
_.S.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var g;(g=this.manager.audioPlayer)!=null&&(g.JSC$17893_audioEnabled=!1)}this.manager.stop();(g=this.manager.audioPlayer)!=null&&(g.JSC$17893_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.S.handleSpeechQueryCompleteAction=function(g){var r=g.navigationAction;r&&(g.trackingParams&&_.pW().graftServerVe(g.trackingParams,this.dialogVe,5),_.Sh(this.hostElement,"yt-navigate",{endpoint:r,tempData:this.getNavigationParams(r),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.S.onExitButtonClick=function(){this.closeDialog()};
_.S.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var g;if((g=this.manager)!=null){var r;(r=g.audioPlayer)==null||NA(r,"failure");g.setState("microphone-off");g.stop()}}else(g=this.manager)==null||g.start()};
_.S.transcriptionChanged=function(){var g,r;(((g=this.transcription)==null?0:g.low)||((r=this.transcription)==null?0:r.high))&&this.setState("transcribing",this.transcription)};
_.S.stateChanged=function(){this.setState(this.state,this.transcription)};
_.S.logDialog=function(){var g;(g=this.data)!=null&&g.trackingParams&&(g=_.pW(),_.wT(g,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=g.graftServerVe(this.data.trackingParams,void 0,5))};
_.S.getNavigationParams=function(g){var r={};if(_.Y("web_yt_searchbox")){var E=Q06();E.inputMethodsTracker.add(6);E=Hq$(E,15);r.gs_l=E;var B;r.oq=((B=_.n(g,_.Ya))==null?void 0:B.query)||""}else if(g=window.ytvoicesearchloggingparams){if(g=g())r.oq=g.oq,r.gs_l=g.gs_l}else _.NX(Error("sl"));return r};
_.S.closeDialog=function(){_.OS(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.S.setState=function(g,r){if(this.data){var E=this.data,B={};switch(g){case "listening":B={headerText:E.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:E.microphoneButtonAriaLabel};break;case "timeout":B={headerText:E.promptHeader,microphoneState:"try-again",microphoneLabel:E.promptMicrophoneLabel,microphoneAriaLabel:E.promptMicrophoneLabel};break;case "microphone-off":B={headerText:E.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:E.promptMicrophoneLabel,
microphoneAriaLabel:E.promptMicrophoneLabel};break;case "transcribing":(r==null?0:r.low)||(r==null?0:r.high)?B={transcriptionLow:r==null?void 0:r.low,transcriptionHigh:r==null?void 0:r.high,microphoneState:"speaking",microphoneAriaLabel:E.microphoneButtonAriaLabel}:B={headerText:E.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:E.microphoneButtonAriaLabel};break;case "processing":B={headerText:E.loadingHeader,microphoneState:"processing",microphoneAriaLabel:E.microphoneButtonAriaLabel};
break;case "offline":B={headerText:E.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:E.connectionErrorMicrophoneLabel,microphoneAriaLabel:E.connectionErrorMicrophoneLabel};break;case "permission":B={headerText:E.permissionsHeader,bodyLine1:E.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:E.permissionsSubtext};break;case "permission-denied":B={headerText:E.disabledHeader,bodyLine1:E.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:E.disabledSubtext}}B.className=
g;this.speechOverlayState=B;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.S.setMicrophoneState=function(g){var r=this.isLevelAnimating;this.isLevelAnimating=g==="speaking";!r&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=g==="processing"&&!this.noAnimations};
_.S.setClass=function(g){this.speechOverlayClassName&&_.UN(this.hostElement,this.speechOverlayClassName,!1);g&&(this.speechOverlayClassName=g,_.UN(this.hostElement,g,!0))};
_.S.runLevelAnimation=function(){var g=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var r=1+Math.random()*.75,E=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+E/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+r+")");_.F6.addJob(function(){g.runLevelAnimation()},3,E)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
vz.prototype.stateChanged=vz.prototype.stateChanged;vz.prototype.transcriptionChanged=vz.prototype.transcriptionChanged;vz.prototype.onPopupClosed=vz.prototype.onPopupClosed;vz.prototype.dataChanged=vz.prototype.dataChanged;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],vz.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],vz.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],vz.prototype,"rendererStamperBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],vz.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],vz.prototype,"eventForwardingBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],vz.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],vz.prototype,"speechOverlayState",void 0);
_.m([_.K(),_.L("design:type",Object)],vz.prototype,"microphoneSpinnerActive",void 0);_.m([_.K({type:_.Y("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.L("design:type",Object)],vz.prototype,"noAnimations",void 0);_.m([_.K({selector:function(g){var r;return(r=g.voiceSearch)==null?void 0:r.transcription}}),
_.L("design:type",Object)],vz.prototype,"transcription",void 0);_.m([_.K({selector:function(g){var r;return(r=g.voiceSearch)==null?void 0:r.overlay}}),
_.L("design:type",String)],vz.prototype,"state",void 0);_.m([_.K(),_.L("design:type",Object)],vz.prototype,"boundExitClick",void 0);_.m([_.zb("#microphone-levels"),_.L("design:type",HTMLElement)],vz.prototype,"level",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],vz.prototype,"dataChanged",null);_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],vz.prototype,"onPopupClosed",null);
_.m([_.Yk("transcription"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],vz.prototype,"transcriptionChanged",null);_.m([_.Yk("state"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],vz.prototype,"stateChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],vz);
_.I(vz,"ytd-voice-search-dialog-renderer",function(){if(yIg!==void 0)return yIg;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return yIg=g},{mode:1});var Yu$;var dw=function(){var g=_.a.apply(this,arguments)||this;g.isOverlay=!1;g.hidden=!1;return g};
_.f(dw,_.a);_.S=dw.prototype;_.S.onPopupClosed=function(){this.toggleIconState(!1)};
_.S.computeIcon=function(){var g,r,E;return(r=_.n((g=this.data)==null?void 0:g.icon,c9z))==null?void 0:(E=r.icon)==null?void 0:E.iconType};
_.S.computeIconBadgeShape=function(){var g;return{iconBadgeType:"cart",iconBadgeText:(g=this.iconBadgeEntity)==null?void 0:g.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.S.onClick=function(){var g;(g=this.data)!=null&&g.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.S.computeHidden=function(g){return!g};
_.S.toggleIconState=function(g){this.iconButton&&(this.iconButton.pressed=g)};
dw.prototype.onPopupClosed=dw.prototype.onPopupClosed;_.m([_.P(_.Ai),_.L("design:type",Object)],dw.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],dw.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],dw.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],dw.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],dw.prototype,"isOverlay",void 0);
_.m([_.K({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.L("design:type",Object)],dw.prototype,"hidden",void 0);_.m([_.K({selectorArgs:["data.iconBadgeEntityKey"],selector:function(g,r){return _.u1(g.entities,"iconBadgeEntity",r)}}),
_.L("design:type",Object)],dw.prototype,"iconBadgeEntity",void 0);_.m([_.zb("yt-icon-button"),_.L("design:type",HTMLButtonElement)],dw.prototype,"iconButton",void 0);_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],dw.prototype,"onPopupClosed",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],dw);
_.I(dw,"ytd-icon-badge-topbar-button-renderer",function(){if(Yu$!==void 0)return Yu$;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return Yu$=g},{mode:1});var Rbm;var TB=function(){var g=_.a.apply(this,arguments)||this;g.premiumOptions=[];g.darkerDarkTheme=_.Y("web_darker_dark_theme");return g};
_.f(TB,_.a);TB.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.hx.Object.defineProperties(TB.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],TB.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],TB.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Array)],TB.prototype,"premiumOptions",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],TB.prototype,"darkerDarkTheme",void 0);_.m([_.W("premiumOptions"),_.L("design:type",Object),_.L("design:paramtypes",[])],TB.prototype,"hasPremiumOptions",null);
_.m([_.N({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],TB);
_.I(TB,"ytd-offline-promo-content",function(){if(Rbm!==void 0)return Rbm;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Rbm=g},{mode:1});var nVg;var gv=function(){var g=_.a.apply(this,arguments)||this;g.premiumOptions=[];return g};
_.f(gv,_.a);gv.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var g;this.premiumOptions=gat((g=this.data)==null?void 0:g.formats)};
gv.prototype.onClickSubmit=function(){_.OS(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var g;(g=_.Tw())==null||g.pause()};
gv.prototype.attached=function(){this.JSC$18622_scroller&&(this.JSC$18622_scroller.dialogElement=this.hostElement.parentNode)};
_.hx.Object.defineProperties(gv.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
gv.prototype.dataChanged=gv.prototype.dataChanged;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],gv.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],gv.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],gv.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],gv.prototype,"data",void 0);
_.m([_.K({computed:"computeIcon_(data.headersIcon)",value:""}),_.L("design:type",String)],gv.prototype,"headersIcon",void 0);_.m([_.K(),_.L("design:type",Array)],gv.prototype,"premiumOptions",void 0);_.m([_.zb("#scroller"),_.L("design:type",Object)],gv.prototype,"JSC$18622_scroller",void 0);_.m([_.W("headersIcon"),_.L("design:type",Object),_.L("design:paramtypes",[])],gv.prototype,"showIcon",null);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],gv.prototype,"dataChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],gv);
_.I(gv,"ytd-offline-promo-renderer",function(){if(nVg!==void 0)return nVg;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return nVg=g},{mode:1});var s0g;var rv=function(){var g=_.a.apply(this,arguments)||this;g.playbackPauseInterval=NaN;g.isLoading=!1;g.hasError=!1;g.dialogClass="";g.youtubeLabel=_.zn("LOGO_ALT_LABEL",{},"YouTube Home");g.logoName="yt-logos-ext:yt-logo-updated";g.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return g};
_.f(rv,_.a);_.S=rv.prototype;_.S.onDataChange=function(){var g;if(this.showEOMV1Text=!((g=this.data)==null||!g.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.S.attached=function(){this.pausePlayer()};
_.S.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.S.handleLangSelect=function(g){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[g.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.S.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.S.handleSaveConsent=function(g){var r=this;this.showLoadingSpinner();this.showLoadingSpinner();WSA(_.n(g,i7A)).catch(function(E){_.el(new _.Rj("Something went wrong when save consent "+(E.message?E.message:E)+"."));r.hideLoadingSpinner();r.showErrorMessage()})};
_.S.handleDisablePersonalization=function(g){var r=this;this.showLoadingSpinner();Cd5(_.n(g,cAv)).then(function(){r.dialog.close();r.resumePlayer()}).catch(function(E){_.el(new _.Rj("Something went wrong when disable personalization "+(E.message?E.message:E)+"."));
r.hideLoadingSpinner();r.showErrorMessage()})};
_.S.showLoadingSpinner=function(){var g=this;this.showSpinnerJobId=_.F6.addLowPriorityJob(function(){g.isLoading=!0},500)};
_.S.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.F6.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.S.showErrorMessage=function(){var g=this;this.hasError=!0;_.F6.addLowPriorityJob(function(){g.hasError=!1},2E3)};
_.S.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.qe(function(){try{var g=_.Tw();g&&g.pause()}catch(r){}},100))};
_.S.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var g=_.Tw();g&&g.play()}catch(r){}};
_.hx.Object.defineProperties(rv.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)==null||!g.eomV1Text)return[];g=[];for(var r=["SHIELD","WARNING","BAR_CHART"],E=this.data.eomV1Text.essentialCookieMsg.items,B=0;B<r.length&&B<E.length;B++)g.push({icon:r[B],text:E[B]});return g}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var g;if((g=this.data)==null||!g.eomV1Text)return[];g=[];for(var r=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],E=this.data.eomV1Text.nonEssentialCookieMsg.items,B=0;B<r.length&&B<E.length;B++)g.push({icon:r[B],text:E[B]});return g}}});
rv.prototype.onDataChange=rv.prototype.onDataChange;_.m([_.K(),_.L("design:type",Object)],rv.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Boolean)],rv.prototype,"showEOMV1Text",void 0);_.m([_.K(),_.L("design:type",Object)],rv.prototype,"isLoading",void 0);_.m([_.K(),_.L("design:type",Object)],rv.prototype,"hasError",void 0);_.m([_.K(),_.L("design:type",Number)],rv.prototype,"showSpinnerJobId",void 0);_.m([_.K(),_.L("design:type",Object)],rv.prototype,"dialogClass",void 0);
_.m([_.zb("#dialog"),_.L("design:type",Object)],rv.prototype,"dialog",void 0);_.m([_.zb("#cb-header"),_.L("design:type",HTMLElement)],rv.prototype,"header",void 0);_.m([_.zb("#lang-select"),_.L("design:type",HTMLElement)],rv.prototype,"langSelect",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],rv.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],rv.prototype,"ytComponentBehavior",void 0);
_.m([_.K(),_.L("design:type",String)],rv.prototype,"youtubeLabel",void 0);_.m([_.K(),_.L("design:type",Object)],rv.prototype,"logoName",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],rv.prototype,"onDataChange",null);_.m([_.W("data"),_.L("design:type",Array),_.L("design:paramtypes",[])],rv.prototype,"eomEssentialCookieMsgItems",null);
_.m([_.W("data"),_.L("design:type",Array),_.L("design:paramtypes",[])],rv.prototype,"eomNonEssentialCookieMsgItems",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],rv);
_.I(rv,"ytd-consent-bump-v2-lightbox",function(){if(s0g!==void 0)return s0g;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return s0g=g},{mode:1});var fdL;var Ey=function(){return _.a.apply(this,arguments)||this};
_.f(Ey,_.a);Ey.prototype.ready=function(){if(!_.HN()||UQM)var g=!0;else UQM=!0,g=!1;g||(g=document.querySelector("ytd-app"),g||(g=document.body),this.internalLightBox=_.S3(g).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.m([_.K(),_.L("design:type",Object)],Ey.prototype,"data",void 0);_.m([_.zb("#lightbox"),_.L("design:type",Object)],Ey.prototype,"lightBox",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],Ey);
_.I(Ey,"ytd-consent-bump-v2-renderer",function(){if(fdL!==void 0)return fdL;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return fdL=g},{mode:1});var $7M;var j0m;var A35;var Bt=function(){return _.a.apply(this,arguments)||this};
_.f(Bt,_.a);_.S=Bt.prototype;_.S.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&Gwv(this.toastManager,this.toastType)};
_.S.open=function(g){this.toast&&(this.ephemeralAction&&_.rM().resolve(_.qp).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=g!=null?g:0,this.toastManager.enqueue(this.toast,g)):this.toast.open())};
_.S.close=function(g){var r;(r=this.toast)==null||r.close();this.toastManager&&g===1&&Gwv(this.toastManager,g)};
_.S.refit=function(){var g;(g=this.toast)==null||g.refit()};
_.S.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var g;(g=this.toast)==null||g.close()}};
_.S.setVerticalOffset=function(g){this.toast&&(this.toast.verticalOffset=g,this.toast.fit())};
_.S.computeButtonClass_=function(g){return g?"toast-button":""};
_.S.computeText_=function(g){return _.Vp(g)};
_.S.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.x8("toast-opened-changed",this.toastOpened))};
_.S.updateToastOpenedFromBinding=function(g){this.toastOpened=g.detail.value};
_.hx.Object.defineProperties(Bt.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var g,r,E=(g=this.data)==null?void 0:(r=g.actionButton)==null?void 0:r.buttonRenderer;return(E==null?void 0:E.command)||(E==null?void 0:E.serviceEndpoint)||(E==null?void 0:E.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 g=[],r;((r=this.data)==null?0:r.responseText)&&g.push(_.Vp(this.data.responseText));var E;((E=this.data)==null?0:E.subText)&&g.push(_.Vp(this.data.subText));var B,w;if((B=this.data)==null?0:(w=B.actionButton)==null?0:w.buttonRenderer){var O,M;g.push(((O=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(M=O.accessibilityData)==null?void 0:M.label)||_.Vp(this.data.actionButton.buttonRenderer.text))}return g.filter(function(u){return u}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var g,r;return(r=(g=this.toast)==null?void 0:g.opened)!=null?r:!1}}});
Bt.prototype.toastOpenedChangedForBinding=Bt.prototype.toastOpenedChangedForBinding;Bt.prototype.toastOpenedChanged=Bt.prototype.toastOpenedChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Bt.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],Bt.prototype,"ytEventForwardingBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Bt.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],Bt.prototype,"duration",void 0);
_.m([_.K(),_.L("design:type",Number)],Bt.prototype,"toastType",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],Bt.prototype,"useCloseButton",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],Bt.prototype,"closeToastOnActionButtonClick",void 0);_.m([_.K({value:function(){return _.zn("SBOX_INAPPROPRIATE_CANCEL")}}),
_.L("design:type",String)],Bt.prototype,"closeButtonAriaLabel",void 0);_.m([_.K(),_.L("design:type",Boolean)],Bt.prototype,"toastOpened",void 0);_.m([_.K(),_.L("design:type",Boolean)],Bt.prototype,"hasOpened",void 0);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],Bt.prototype,"command",null);_.m([_.W("labelText","command","duration"),_.L("design:type",Object),_.L("design:paramtypes",[])],Bt.prototype,"ephemeralAction",null);
_.m([_.W("ephemeralAction"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Bt.prototype,"hasEphemeralAction",null);_.m([_.zb("#toast"),_.L("design:type",Object)],Bt.prototype,"toast",void 0);_.m([_.K({value:function(){return{style:"call-to-action-inverse"}}}),
_.L("design:type",Object)],Bt.prototype,"buttonOverrides",void 0);_.m([_.K({value:{style:"mono-inverse"}}),_.L("design:type",Object)],Bt.prototype,"closeButtonOverrides",void 0);_.m([_.K({value:function(){return _.rM().resolve(_.gM(_.wJ))}}),
_.L("design:type",Object)],Bt.prototype,"toastManager",void 0);_.m([_.W("data.responseText","data.subText","data.actionButton"),_.L("design:type",Object),_.L("design:paramtypes",[])],Bt.prototype,"labelText",null);_.m([_.Gb("toastOpened"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Bt.prototype,"toastOpenedChanged",null);
_.m([_.Gb("toastOpened"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Bt.prototype,"toastOpenedChangedForBinding",null);_.m([_.e3({is:"yt-notification-action-renderer",disableElementRegistration:!0})],Bt);
_.I(Bt,"yt-notification-action-renderer",function(){if(A35===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;j0m===void 0&&(j0m=document.createElement("template"));var B=j0m;E.call(r,B.content.cloneNode(!0),g.content.firstChild);A35=g}g=A35;return g},{mode:2});var wv=function(){var g=_.a.apply(this,arguments)||this;g.duration=4E3;g.downloadingCount=0;g.downloadedCount=0;g.downloadingOnlySmartDownloads=!1;g.sessionTotalDownloads=0;g.sessionDownloaded=0;g.previousSessionsDownloaded=0;g.totalDownloadPercentage=0;g.currentDownloadProgress=0;g.currentDownloadPercentage=0;g.isLeaderTab=!0;g.isFullScreen=!1;g.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};g.boundBeforeUnload=function(r){g.isLeaderTab&&g.downloadingCount>0&&(r.preventDefault(),
r.returnValue=!0)};
return g};
_.f(wv,_.a);_.S=wv.prototype;
_.S.open=function(){this.updateDownloadState();if(this.data){var g=this.sessionDownloaded+1,r=this.sessionTotalDownloads>1?_.zn("VIDEOS_DOWNLOADING_RATIO",{downloaded:g.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+g+"/"+this.sessionTotalDownloads):_.zn("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(r=this.sessionTotalDownloads>1?_.zn("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:g.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
g+"/"+this.sessionTotalDownloads):_.zn("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));g=this.isLeaderTab?_.zn("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.Vp(this.data.responseText)!==r||_.Vp(this.data.subText)!==g)this.set("data.responseText",_.Lf(r)),this.set("data.subText",_.Lf(g)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.S.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.S.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.S.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.S.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var g=this.downloadedCount-this.previousSessionsDownloaded;g<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-g);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.S.handleFullscreenChange=function(g){(this.isFullScreen=g)||this.updatePopup()};
wv.prototype.updateCurrentDownloadProgress=wv.prototype.updateCurrentDownloadProgress;wv.prototype.updatePopup=wv.prototype.updatePopup;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],wv.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],wv.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],wv.prototype,"ytEventForwardingBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],wv.prototype,"actionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],wv.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],wv.prototype,"duration",void 0);_.m([_.K({selector:function(g){return _.L4J(g.entities).length}}),
_.L("design:type",Object)],wv.prototype,"downloadingCount",void 0);_.m([_.K({selector:i9m}),_.L("design:type",Object)],wv.prototype,"downloadedCount",void 0);_.m([_.K({selector:function(g){var r=_.L4J(g.entities);return cpD(g.entities,r)}}),
_.L("design:type",Object)],wv.prototype,"downloadingOnlySmartDownloads",void 0);_.m([_.K(),_.L("design:type",Object)],wv.prototype,"sessionTotalDownloads",void 0);_.m([_.K(),_.L("design:type",Object)],wv.prototype,"sessionDownloaded",void 0);_.m([_.K(),_.L("design:type",Object)],wv.prototype,"previousSessionsDownloaded",void 0);_.m([_.K(),_.L("design:type",Object)],wv.prototype,"totalDownloadPercentage",void 0);
_.m([_.K({selector:function(g){var r;g=(r=_.L4J(g.entities))!=null?r:[];return g.length>0?_.W4V(g.slice(-1)):0}}),
_.L("design:type",Object)],wv.prototype,"currentDownloadProgress",void 0);_.m([_.K(),_.L("design:type",Object)],wv.prototype,"currentDownloadPercentage",void 0);_.m([_.K({selector:_.j1t}),_.L("design:type",Object)],wv.prototype,"isLeaderTab",void 0);_.m([_.zb("yt-notification-action-renderer"),_.L("design:type",Object)],wv.prototype,"notificationActionRenderer",void 0);
_.m([_.Yk("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],wv.prototype,"updatePopup",null);_.m([_.Yk("currentDownloadProgress"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],wv.prototype,"updateCurrentDownloadProgress",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],wv);
_.I(wv,"ytd-video-download-toast-renderer",function(){if($7M!==void 0)return $7M;var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return $7M=g},{mode:1});var bqv;var J38;var Se=function(){return _.a.apply(this,arguments)||this};
_.f(Se,_.a);Se.prototype.computeIsRedLogo=function(g,r){!g&&r&&(g=r);return g==="YOUTUBE_RED_LOGO"||g==="YOUTUBE_PREMIUM_LOGO"};
Se.prototype.computeLogoName=function(g){g=this.componentBehavior.computeIcon_(g);return g===""?"yt-logos-ext:yt-logo-updated":g};
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Se.prototype,"componentBehavior",void 0);_.m([_.K({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.L("design:type",Boolean)],Se.prototype,"isRedLogo",void 0);_.m([_.K({computed:"computeLogoName(data)"}),_.L("design:type",String)],Se.prototype,"logoName",void 0);_.m([_.K({value:{}}),_.L("design:type",Object)],Se.prototype,"data",void 0);
_.m([_.K(),_.L("design:type",Object)],Se.prototype,"logoType",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-logo"})],Se);
_.I(Se,"ytd-logo",function(){if(J38!==void 0)return J38;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return J38=g},{mode:_.My("kevlar_poly_si_batch_j074")?1:2});var Oy=function(){var g=_.a.apply(this,arguments)||this;g.animationRef={};return g};
_.f(Oy,_.a);_.S=Oy.prototype;_.S.attached=function(){document.addEventListener("yt-navigate-finish",_.Do(this,this.logYoodle))};
_.S.detached=function(){document.removeEventListener("yt-navigate-finish",_.Do(this,this.logYoodle))};
_.S.logYoodle=function(){var g,r;if((g=this.data)==null?0:(r=g.loggingDirectives)==null?0:r.trackingParams)this.ytRendererBehavior.markDirty(),_.pW().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.S.computeHideImg=function(g,r){return!!g||!!r};
_.S.computeHideYtdLogo=function(g,r){return!g||!!r};
_.S.computeHideLottie=function(g){return!g};
_.S.computeIsRedLogo=function(g){return g==="YOUTUBE_RED_LOGO"||g==="YOUTUBE_PREMIUM_LOGO"};
_.S.renderLogoEntity=function(){var g=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),r=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),E=this.getLogoTitleText(this.data),B=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==g&&(this.url=g);this.animatedUrl!==r&&(this.animatedUrl=r);this.logoTitleText!==E&&(this.logoTitleText=E);this.lottieUrl!==B&&(this.lottieUrl=B,this.lottiePlayerProps=this.computeLottiePlayerProps(B))};
_.S.getSanitizedThumbnail=function(g){return g&&g.thumbnails?_.rEA(g.thumbnails,122)||"":""};
_.S.getThumbnailUrl=function(g,r){if(!r)return"";var E,B;g=g?(E=r.darkThemeLogo)==null?void 0:E.thumbnail:(B=r.lightThemeLogo)==null?void 0:B.thumbnail;return this.getSanitizedThumbnail(g)};
_.S.getAnimatedThumbnailUrl=function(g,r){return r?this.getSanitizedThumbnail(g?r.darkThemeAnimatedLogo:r.lightThemeAnimatedLogo):""};
_.S.getLogoTitleText=function(g){if(g)return _.Vp(g.tooltipText)};
_.S.computeLogoIcon=function(g,r){if(r){var E,B;return g?(E=r.darkThemeLogo)==null?void 0:E.icon:(B=r.lightThemeLogo)==null?void 0:B.icon}};
_.S.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.S.getLottieUrl=function(g,r){var E,B,w,O;return g?r==null?void 0:(E=r.darkThemeLogo)==null?void 0:(B=E.lottieAnimation)==null?void 0:B.url:r==null?void 0:(w=r.lightThemeLogo)==null?void 0:(O=w.lottieAnimation)==null?void 0:O.url};
_.S.computeLottiePlayerProps=function(g){if(g){var r;if((r=this.animationRef)==null?0:r.lottieEl){var E;(E=this.animationRef)==null||E.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:g,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.S.onLottieError=function(){this.data&&this.lottieUrl&&_.Sh(this.hostElement,"yoodle-error")};
_.S.onImgError=function(){this.data&&!this.lottieUrl&&_.Sh(this.hostElement,"yoodle-error")};
Oy.prototype.playAnimation=Oy.prototype.playAnimation;Oy.prototype.renderLogoEntity=Oy.prototype.renderLogoEntity;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Oy.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Oy.prototype,"data",void 0);_.m([_.K({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.L("design:type",Boolean)],Oy.prototype,"hideImg",void 0);
_.m([_.K({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.L("design:type",Boolean)],Oy.prototype,"hideYtdLogo",void 0);_.m([_.K({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.L("design:type",Boolean)],Oy.prototype,"hideLottie",void 0);_.m([_.K({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.L("design:type",Boolean)],Oy.prototype,"isRedLogo",void 0);
_.m([_.K(),_.L("design:type",Boolean)],Oy.prototype,"useDarkThemeYoodle",void 0);_.m([_.K(),_.L("design:type",String)],Oy.prototype,"url",void 0);_.m([_.K(),_.L("design:type",String)],Oy.prototype,"animatedUrl",void 0);_.m([_.K(),_.L("design:type",String)],Oy.prototype,"logoTitleText",void 0);_.m([_.K({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.L("design:type",Object)],Oy.prototype,"logoIcon",void 0);_.m([_.K(),_.L("design:type",Object)],Oy.prototype,"logoType",void 0);
_.m([_.K(),_.L("design:type",String)],Oy.prototype,"lottieUrl",void 0);_.m([_.K(),_.L("design:type",Object)],Oy.prototype,"lottiePlayerProps",void 0);_.m([_.K(),_.L("design:type",Object)],Oy.prototype,"animationRef",void 0);_.m([_.Gb("data"),_.Gb("useDarkThemeYoodle"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Oy.prototype,"renderLogoEntity",null);
_.m([_.ob("click"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],Oy.prototype,"playAnimation",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],Oy);
_.I(Oy,"ytd-yoodle-renderer",function(){if(bqv!==void 0)return bqv;var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return bqv=g},{mode:_.My("kevlar_poly_si_batch_j074")?1:2});var Ph5;var tRL;var Uy=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return g};
_.f(Uy,_.a);_.S=Uy.prototype;_.S.onYoodleError=function(){_.Y("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.S.computeLogoName=function(g){g=this.componentBehavior.computeIcon_(g);return g===""?"yt-logos-ext:yt-logo-updated":g};
_.S.computeTitle=function(g,r,E){return E&&(r==null?0:r.tooltipText)?_.Vp(r.tooltipText):_.Vp(g)};
_.S.computeAriaLabel=function(g,r,E){return E&&(r==null?0:r.tooltipText)?_.Vp(g):""};
_.S.computeShowYoodle=function(g,r,E){return!g||!r&&!!E&&!_.jn.isEmpty(E)};
_.S.onNavigateHomeAction=function(){if(_.Y("kevlar_miniplayer_navigate_home_from_app_killswitch")){var g;(g=_.S3(this.hostElement).querySelector(".yt-simple-endpoint"))==null||g.click()}};
_.S.computeLogoHref=function(g,r,E){var B;(E==null?0:E.onTapCommand)?B=this.componentBehavior.computeHref_(E.onTapCommand):g&&(B=this.componentBehavior.computeHref_(g));return B?B:r};
_.S.computeCommand=function(g,r){return(r==null?void 0:r.onTapCommand)||g};
_.S.getEndpointForm=function(){if(_.Y("kevlar_topbar_disable_cache_only_home")){var g=_.rM().resolve(_.e2),r=db6(g.getState())||"";g=_.jDc(g.getState())||"";return{disableCache:r==="ytd-browse"&&g==="home"}}return{disableCache:!0}};
Uy.prototype.onYoodleError=Uy.prototype.onYoodleError;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Uy.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Uy.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Uy.prototype,"componentBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],Uy.prototype,"ytdReduxBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],Uy.prototype,"data",void 0);_.m([_.K(),_.L("design:type",String)],Uy.prototype,"countryCode",void 0);_.m([_.K({selectorArgs:["data.overrideEntityKey"],selector:function(g,r){return _.u1(g.entities,"logoEntity",r)}}),
_.L("design:type",Object)],Uy.prototype,"logoEntity",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.L("design:type",Boolean)],Uy.prototype,"showYoodle",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],Uy.prototype,"yoodleError",void 0);_.m([_.K({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.L("design:type",String)],Uy.prototype,"titleText",void 0);
_.m([_.K({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.L("design:type",String)],Uy.prototype,"ariaLabelText",void 0);_.m([_.K({value:"/"}),_.L("design:type",String)],Uy.prototype,"defaultEndpointUrl",void 0);_.m([_.K({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.L("design:type",String)],Uy.prototype,"endpointUrl",void 0);
_.m([_.K({computed:"computeCommand(data.endpoint, logoEntity)"}),_.L("design:type",String)],Uy.prototype,"command",void 0);_.m([_.K(),_.L("design:type",Object)],Uy.prototype,"logoType",void 0);_.m([_.K({}),_.L("design:type",Boolean)],Uy.prototype,"useDarkThemeYoodle",void 0);_.m([_.ob("yoodle-error"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Uy.prototype,"onYoodleError",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],Uy);
_.I(Uy,"ytd-topbar-logo-renderer",function(){if(tRL!==void 0)return tRL;var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return tRL=g},{mode:_.My("kevlar_poly_si_batch_j027")?1:2});var FI4=0;var ebg=_.mk.SEARCH_APPEND_LABEL,WIz=_.mk.SUGGESTION_NEW_VIDEOS_TEXT,Ch4=_.mk.SUGGESTION_THUMBNAIL_LABEL,KI4=_.mk.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,x7D=_.dG(function(g){function r(bn){var D4,UU;return _.q(function(OM){if(OM.nextAddress==1)return D4=new Request(bn),_.qN(OM,2),_.D(OM,fetch(D4,{credentials:"include"}),4);if(OM.nextAddress!=2)return lA(!0),_.Ne(OM,0);UU=_.G2(OM);_.el(UU);_.Q3(OM)})}
var E=g.isHighlighted;var B=g.suggestion;var w=g.onClickCallback;var O=g.onHoverUpdateCallback;var M=g.labels;var u=g.queryBuilderFunction;var l=g.onRemoveCallback;var Q=g.suggestionIndex;var z=g.generateUniqueId;var k=g.highlightedId;var H=g.useScrollMargin;var R=g.isKeyboardMode;var A=null,J=null,e=_.VI("div"),C=_.VI("span");g=_.U(_.Dk(!1,void 0,"CgAMgc"));var X=g.next().value,Z=g.next().value,c=_.hn("a",function(bn){bn&&_.Pm(237477,bn,J,function(D4){J=D4})}),h=_.hn("button",function(bn){bn&&_.Pm(237477,
bn,J,function(D4){J=D4})}),y=_.HK(function(bn){if((bn==null?void 0:bn.button)===2)return bn.preventDefault(),!1;
var D4=_.PE();D4&&A&&_.V_(D4,A,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var UU;w(bn,B().text,B().index,B().entityMid,bn==null?void 0:(UU=bn.detail)==null?void 0:UU.wasSelectedByKeyboard);return!1}),OD=function(){return B().type===35},uB=function(){return _.Y("desktop_enable_single_suggestion_highlight")},zS=function(){return _.wM("desktop_suggestions_panel_row_height")||0},jV=function(){var bn;
return _.Y("desktop_enable_new_video_metadata")&&((bn=B())==null?void 0:bn.hasNewVideo)===!0},PJ=function(){return _.Y("desktop_enable_visual_suggest")},At=function(){return _.Y("desktop_enable_entity_suggest")&&ub8(B())},XY=function(){return B().entitySubtitle},xc=function(){return uB()?(E==null?void 0:E())||un()&&!(R==null?0:R()):(E==null?void 0:E())||un()},rg=function(){var bn=_.Ca("SBOX_SETTINGS");
return OD()&&!(bn==null?0:bn.HIDE_REMOVE_LINK)},$t=function(){return ldL(B(),{useEntityName:At()})},tD,GD=!((tD=_.rM().resolve(_.gM(_.Vy)))==null||!tD()),xb=function(){return OD()?_.Y("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},zL=function(){return M==null?void 0:M().SUGGESTION_DISMISS_LABEL},AD=function(){return M==null?void 0:M().SUGGESTION_DISMISSED_LABEL};
g=_.U(_.Dk(!1,void 0,"RcUcKd"));tD=g.next().value;var lA=g.next().value;g=_.U(_.Dk(!1,void 0,"yGR7je"));var pt=g.next().value,Mo=g.next().value,un=pt,sw=_.HK(function(){u(C.value.innerText);return!1}),J8=_.HK(function(bn){bn.preventDefault();
return!1}),Rm=_.HK(function(bn){var D4=B().text,UU=_.Ca("SBOX_SETTINGS"),OM="https://"+(UU.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
OM+="&delq="+encodeURIComponent(D4);(D4=UU==null?void 0:UU.PSUGGEST_TOKEN)&&(OM+="&tok="+D4);(UU=UU==null?void 0:UU.SESSION_INDEX)&&(OM+="&authuser="+UU);r(OM);bn.preventDefault();(bn=_.PE())&&J&&_.V_(bn,J,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");l(Q==null?void 0:Q());return!1}),Lw=_.HK(function(){if(uB()&&(R==null?0:R()))return!1;
Mo(!0);O(!0);return!1}),cb=_.HK(function(){Mo(!1);
O(!1);return!1}),ZI=_.HK(function(){Z(!0);
return!1}),Ow=_.HK(function(){Z(!1);
return!1}),XZ=_.HK(function(bn){bn.preventDefault();
var D4;(bn=(D4=B().entityThumbnailAttributionUrl)!=null?D4:"")&&_.H4L(bn);return!1});
g=_.U(_.Dk("",void 0,"k9uVge"));var RA=g.next().value,kb=g.next().value;_.jS(function(){rg()&&kb(z==null?void 0:z(Q==null?void 0:Q()));e.value&&_.Pm(12453,e.value,A,function(bn){A=bn})});
return _.G(_.p,{cond:tD,then:function(){var bn={};return _.G("div",{class:_.QY("ytSuggestionComponentRemovedText",(bn.ytSuggestionComponentLargerRemovedText=function(){return PJ()},bn)),
style:function(){return zS()>0?"height: "+zS()+"px;":""},
role:"button"},AD)},
else:function(){var bn={},D4={};return _.G("div",{class:_.QY("ytSuggestionComponentSuggestion",(bn.ytSuggestionComponentSuggestionHover=function(){return!uB()},bn.ytSuggestionComponentHighlighted=xc,bn.ytSuggestionComponentPersonalizedSuggestion=OD,bn.ytSuggestionComponentMweb=!1,bn.ytSuggestionComponentLargerSuggestion=function(){return jV()||PJ()},bn.ytSuggestionComponentThumbnailSuggestion=function(){return PJ()},bn.ytSuggestionComponentRoundedSuggestion=function(){return _.Y("desktop_enable_scrollable_suggestions_panel")&&
_.Y("desktop_enable_suggestions_panel_padding")},bn.ytSuggestionComponentThumbnailPadding=function(){return PJ()&&!OD()},bn)),
style:function(){return zS()>0?"height: "+zS()+"px;":""},
role:"presentation","on:mousedown":y,"on:mouseover":Lw,"on:mouseout":cb,el:e},_.G("div",{class:_.QY("ytSuggestionComponentText",(D4.ytSuggestionComponentScrollMargin=H,D4)),"aria-label":function(){return jV()?B().text+" "+WIz:B().text},
id:function(){return z==null?void 0:z(Q==null?void 0:Q())},
"on:mousedown":y,role:"option"},_.G(_.p,{cond:function(){return B().type!==33},
then:function(){return _.G(_.nh,{icon:xb,className:"ytSuggestionComponentIcon"})}}),_.G("div",{class:"ytSuggestionComponentLeftContainer"},_.G("span",{el:C,
role:"button",tabindex:0},_.G(_.Ra,{each:$t},function(UU){return UU.bold?_.G("span",{class:"ytSuggestionComponentBold"},UU.text):_.G("span",null,UU.text)})),_.G(_.p,{cond:function(){return At()&&!!B().entitySubtitle||jV()},
then:function(){return _.G("div",{class:"ytSuggestionComponentMetadataContainer"},_.G(_.p,{cond:function(){return At()&&!!B().entitySubtitle},
then:function(){return _.G("div",{class:"ytSuggestionComponentEntitySubtitle"},XY)}}),_.G(_.p,{cond:function(){return jV()},
then:function(){return _.G("div",{class:"ytSuggestionComponentNewVideoContainer"},_.G("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.G("div",{class:"ytSuggestionComponentNewVideoText"},WIz))}}))}}))),_.G("div",{class:"ytSuggestionComponentRightContainer"},_.G(_.p,{cond:function(){return PJ()&&B().visualSuggestUrl!==void 0},
then:function(){var UU={};return _.G("div",{class:"ytSuggestionComponentThumbnailContainer"},_.G("img",{"aria-label":Ch4,class:_.QY("ytSuggestionComponentVisualSuggestThumbnail",(UU.ytSuggestionComponentCircularFrame=function(){return At()&&B().subtypes.includes(790)},UU.ytSuggestionComponentEntitySuggestThumbnail=function(){return At()},UU)),
src:function(){return B().visualSuggestUrl}}),_.G(_.p,{cond:function(){return At()&&!!B().entityThumbnailAttributionUrl},
then:function(){var OM={};return _.G("span",{title:KI4,role:"tooltip"},_.G("div",{"on:mouseover":ZI,"on:mouseout":Ow,"on:mousedown":XZ,class:_.QY("ytSuggestionComponentThumbnailOverlay",(OM.ytSuggestionComponentThumbnailOverlayHidden=function(){return!X()},OM))},_.G(_.nh,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.G(_.fa,null,_.G(_.na,{when:function(){return PJ()&&rg()}},function(){var UU={};
return _.G("button",{class:_.QY("ytSuggestionComponentRemoveLinkClearButton",(UU.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return RA()&&RA()===(k==null?void 0:k())},UU.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!xc()},UU)),
el:h,"on:mousedown":Rm,"aria-label":zL,id:function(){return RA()}},_.G(_.nh,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.G(_.na,{when:function(){return!(PJ()&&B().visualSuggestUrl!==void 0)&&rg()}},function(){var UU={};
return _.G("a",{class:_.QY("ytSuggestionComponentRemoveLink",(UU.ytSuggestionComponentRemoveLinkDark=GD,UU.ytSuggestionComponentRemoveLinkSelected=function(){return RA()&&RA()===(k==null?void 0:k())},UU)),
el:c,"on:mousedown":Rm,"aria-label":zL,tabindex:0,role:"button",id:function(){return RA()}},zL)}),_.G(_.na,{when:function(){return!1}},function(){return _.G("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":sw,"on:mousedown":J8,role:"button","aria-label":ebg},_.G(_.nh,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Cg");var ad4=_.dG(function(){return _.G("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.G("button",{class:"ytdTextInputAssistantButton","on:click":_.HK(function(){Q06().inputMethodsTracker.add(3);var g,r=(g=_.Ca("SBOX_SETTINGS"))==null?void 0:g.REQUEST_LANGUAGE;if(r)return _.xy("//www.google.com/textinputassistant/14/"+r+"_tia.js"),!1})},_.G("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Dg");var Xcz=function(){this.cache=new Map},N4$=function(g){for(var r=_.U(g.cache.entries()),E=r.next();!E.done;E=r.next()){var B=_.U(E.value);
E=B.next().value;B=B.next().value;B.suggestions.some(function(w){return w.type===35})&&g.cache.delete(E)}};var Idt=_.mk.SEARCH,m7A=_.mk.SEARCH_CLEAR_LABEL,c3$=new _.Vn("FAKE_SUGGEST_RESPONSE");_.BK(_.dG(function(g){function r(){ZI||(ZI=setTimeout(function(){XZ()},1E3))}
function E(QT,DI,nD){if(QT.trim()){cb=QT;_.W0("REFINEMENTS_TUPLE",void 0);Rm=!0;var QB;DI=Hq$(pt,DI);var Uw=(QB=g.searchEndpoint)==null?void 0:QB.call(g);QB=xb.value.value;Uw||(Uw=uI$);var Hu;(Hu=_.n(Uw.commandMetadata,_.dU))!=null&&Hu.url||(Hu=Error("tl`"+JSON.stringify(Uw)),_.tn(Hu),Uw=uI$);Hu=_.jn.unsafeClone(Uw);Uw=_.KC(_.n(Hu.commandMetadata,_.dU).url,"search_query",QT);_.IO(location.href,"sv")==="1"&&(_.n(Hu,_.Ya).params="EgOAAgE%3D",Uw=_.KC(Uw,"sv","1"));_.n(Hu,_.Ya)&&(_.n(Hu,_.Ya).query=QT);
Uw=Uw.replace(/%20/g,"+");_.n(Hu.commandMetadata,_.dU).url=Uw;nD=_.Y("desktop_enable_entity_suggest")?{entityMid:nD}:{};_.rM().resolve(_.Er).resolveCommand(Hu,{form:{tempData:Object.assign({},{gs_l:DI,oq:QB!=null?QB:QT},nD)}});XZ();xb.value.value=QT;xb.value.blur();pt.reset()}}
function B(QT){return _.q(function(DI){return DI.return(new Promise(function(nD){var QB=new XMLHttpRequest;QB.open("GET",B4v(QT),!0);QB.withCredentials=!0;var Uw=_.Ca("SBOX_SETTINGS");(Uw==null?0:Uw.SEND_VISITOR_DATA)&&QB.setRequestHeader("X-Goog-Visitor-Id",Uw==null?void 0:Uw.VISITOR_DATA);QB.onload=function(){nD(QB.responseText)};
QB.onerror=function(){_.el(Error("ul"));nD(null)};
setTimeout(function(){QB.abort()},1E4);
QB.send(null)}))})}
function w(QT){var DI,nD,QB,Uw;return _.q(function(Hu){switch(Hu.nextAddress){case 1:return DI={credentials:"include",headers:EVL()},window.AbortController&&(nD=new AbortController,setTimeout(function(){nD.abort("ytsbox-suggest-timeout")},1E4),DI.signal=nD.signal),_.qN(Hu,2),_.D(Hu,fetch(B4v(QT),DI),4);
case 4:QB=Hu.yieldResult.text();_.Ne(Hu,3);break;case 2:return Uw=_.G2(Hu),Uw!=="ytsbox-abort-last"&&Uw!=="ytsbox-suggest-timeout"&&_.el(Uw),Hu.return(null);case 3:return Hu.return(QB)}})}
function O(QT){var DI,nD,QB;return _.q(function(Uw){switch(Uw.nextAddress){case 1:if(DI=_.rM().resolve(_.gM(c3$)))return Uw.return(DI);nD=Date.now();r();return _.Y("yt_searchbox_xhr")?_.D(Uw,B(QT),5):_.D(Uw,w(QT),4);case 4:QB=Uw.yieldResult;Uw.jumpTo(3);break;case 5:QB=Uw.yieldResult;case 3:if(QB){ZI&&(clearTimeout(ZI),ZI=null);var Hu=pt,Ak=nD,Ct=QT.query.length===0;Ak=Date.now()-Ak;Ct?Hu.zeroPrefixRoundTripTime=Ak:(Hu.JSC$18602_totalRoundTripTime+=Ak,Hu.maxRoundTripTime=Math.max(Hu.maxRoundTripTime,
Ak),Ct=Math.floor(Ak/100),Ct>=pcg.length?++Hu.roundTripTimeHistogram[9]:++Hu.roundTripTimeHistogram[pcg[Ct]])}return Uw.return(QB)}})}
function M(QT){var DI,nD,QB;return _.q(function(Uw){if(Uw.nextAddress==1)return(DI=lA.cache.get(r3F(QT)))?Uw.return(DI):_.D(Uw,O(QT),2);nD=Uw.yieldResult;if(nD===null)return Uw.return(null);QB=new D7M(nD);QT.query.length===0&&QB.suggestions.length===0||lA.cache.set(r3F(QT),QB);return Uw.return(QB)})}
function u(QT){var DI,nD;return _.q(function(QB){if(QB.nextAddress==1){Lw=!1;var Uw=cb;Uw=_.heX()==="search"?(_.IO(location.href,"search_query")||_.IO(location.href,"q"))===Uw:!1;DI=new gV$(QT,Uw?cb:null);return _.D(QB,M(DI),2)}nD=QB.yieldResult;if(nD===null)return QB.return();DI.query.length===0&&(pt.zeroPrefixSuggestionCount=nD.suggestions.length);if(DI.id<=Ow)return pt.outOfSyncResponseCount++,QB.return();if(document.activeElement!==xb.value)return QB.return();Ow=DI.id;var Hu=pt,Ak=nD.rawResponse[2]||
{};Hu.experimentTriggeredBeforeFinal||(Hu.experimentTriggeredBeforeFinal=Hu.experimentTriggeredFinal);Hu.experimentTriggeredFinal=!!Ak.e;pt.updateSuggestions(nD.suggestions);e(-1);rg([]);nD.suggestions!==R()&&TU(nD.suggestions.length);A(nD.suggestions);uB(nD.suggestions.length>0&&nD.suggestions[0].type===33);AD&&(AD.hidden=nD.suggestions.length===0,OD()?(AD.style.minWidth="",Hu=AD.style,Ak=(Uw=R()[0])==null?void 0:Uw.ignoredPrefix,Hu.marginLeft=(Ak?Math.min(Ak.length*6,zL.value.offsetWidth):0).toString()+
"px"):(AD.style.minWidth=zL.value.offsetWidth+"px",AD.style.marginLeft="0"),CI());_.Q3(QB)})}
function l(){if(!Rm)return!1;var QT=_.Ca("REFINEMENTS_TUPLE");return QT?(QT=QT[1].map(function(DI,nD){return new qu5([DI,0,[71]],xb.value.value,nD)}),R()!==QT&&TU(QT.length),rg([]),A(QT),pt.updateSuggestions(QT),Rm=!1,AD.hidden=QT.length===0,Lw=QT.length>0,!0):!1}
function Q(){var QT=xb.value.value;(typeof QT==="string"||QT instanceof String)&&QT!==""?c(!0):c(!1)}
function z(){if(_.heX()==="search"){var QT=window.location.href;try{var DI=_.IO(QT,"search_query")||_.IO(QT,"q")||""}catch(nD){DI=""}DI&&(xb.value.value=DI,c(!0))}}
var k=_.U(_.Dk([],void 0,"kGFAjf")),H=k.next().value;k=k.next().value;var R=H,A=k;H=_.U(_.Dk(-1,void 0,"mLGL9e"));var J=H.next().value,e=H.next().value;H=_.U(_.Dk(-1,void 0,"u2rYdc"));var C=H.next().value,X=H.next().value;H=_.U(_.Dk(!1,void 0,"W9DFC"));var Z=H.next().value,c=H.next().value;H=_.U(_.Dk(!1,void 0,"Ip4dNc"));var h=H.next().value,y=H.next().value;k=_.U(_.Dk(!1,void 0,"ZNKSQb"));H=k.next().value;k=k.next().value;var OD=H,uB=k;k=_.U(_.Dk(!1,void 0,"JBrGLd"));H=k.next().value;var zS=k.next().value;
k=_.U(_.Dk(!1,void 0,"P2pD6e"));var jV=k.next().value,PJ=k.next().value;k=_.U(_.Dk(1,void 0,"SjP20c"));var At=k.next().value,XY=k.next().value;k=_.U(_.Dk([],void 0,"h4dRaf"));var xc=k.next().value,rg=k.next().value;k=_.U(_.Dk(!1,void 0,"TUTzaf"));var $t=k.next().value,tD=k.next().value;k=_.Y("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var GD=_.VI("yt-searchbox"),xb=_.VI("input"),zL=_.VI("div"),AD,lA=
new Xcz,pt=Q06(),Mo=_.rM().resolve(_.gM(_.Vy)),un=function(){var QT;return((QT=g.forceDarkMode)==null?void 0:QT.call(g))||!(Mo==null||!Mo())},sw=function(){return _.Y("desktop_enable_scrollable_suggestions_panel")},J8="i"+FI4++,Rm=!1,Lw=!1,cb="",ZI=null,Ow=-1,XZ=function(){rg([]);
A([]);uB(!1);AD&&(AD.hidden=!0);ZI&&(clearTimeout(ZI),ZI=null);e(-1)},RA=function(QT,DI){QT.preventDefault();
tD(!0);AD&&(AD.hidden=!1);var nD=J();QT=R();var QB=xc();DI=Bb$(DI);nD+=DI;for(nD>=QT.length?nD=-1:nD<-1&&(nD=QT.length-1);nD!==-1&&(QB.includes(nD)||nD>=QT.length||nD<0);)nD+=DI,nD>=QT.length&&(nD=-1);e(nD);J()>=0&&(xb.value.value=R()[J()].text,X(0),Q(),QT=J(),QB=C(),(QB=document.getElementById(K$[QT][QB]))&&sw()&&(QT===R().length-1?AD.scrollTop=AD.scrollHeight:QB.scrollIntoView({block:"nearest",inline:"start"})))},kb=_.HK(function(QT){if(!(QT.relatedTarget instanceof Element&&QT.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){y(!0);
var DI;(DI=g.focusCallback)==null||DI.call(g,!0);l()||(Lw?AD.hidden=!1:(_.Sh(GD.value,"yt-autonav-pause-focus",{}),u(QT.target.value)))}}),bn=_.HK(function(QT){if(!(QT.relatedTarget instanceof Element&&QT.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){y(!1);
var DI;(DI=g.focusCallback)==null||DI.call(g,!1);AD.scrollTop=0;AD.hidden=!0;_.Sh(GD.value,"yt-autonav-pause-blur",{})}}),D4=function(QT){QT=Bb$(QT);
var DI;((DI=K$[J()])==null?0:DI[C()+QT])&&X(C()+QT)},UU=_.HK(function(QT){var DI=QT.target;
switch(QT.keyCode){case 13:QT.preventDefault();var nD;if((nD=K$[J()])==null?0:nD[C()]){var QB;(QB=document.getElementById(K$[J()][C()]))==null||QB.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}QT=QT.shiftKey?4:3;nD=pt;QB=J();nD.selectedSuggestionIndex=QB;E(DI.value,QT);break;case 27:AD&&(AD.hidden=!0);break;case 40:RA(QT,40);break;case 38:RA(QT,38);break;case 39:D4(39);break;case 37:D4(37);break;case 229:pt.inputMethodsTracker.add(4);break;default:pt.inputMethodsTracker.add(1),
zbg(pt)}return!1}),OM=_.HK(function(QT){u(QT.target.value);
Q();sw()&&AD&&(AD.scrollTop=0);return!1}),RF=_.HK(function(){pt.inputMethodsTracker.add(2);
zbg(pt);return!1});
_.jS(function(){if(AD){pt.reset();if(window.ResizeObserver){var QT=new ResizeObserver(function(){OD()||(AD.style.minWidth=zL.value.offsetWidth+"px")});
QT.observe(zL.value);(new ResizeObserver(function(){CI()})).observe(AD);
_.J5(function(){QT.disconnect()})}z();
window.addEventListener("yt-navigate-finish",z);window.addEventListener("yt-focus-searchbox",function(){xb.value.focus()});
var DI;zS((DI=_.Ca("SBOX_SETTINGS"))==null?void 0:DI.HAS_ON_SCREEN_KEYBOARD)}else _.tn(new _.Rj("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var cE=_.HK(function(QT){QT.preventDefault();E(xb.value.value,12);return!1}),Im=_.HK(function(QT){QT.preventDefault();
var DI,nD;(DI=xb)==null||(nD=DI.value)==null||nD.focus();var QB,Uw;((QB=xb)==null?void 0:(Uw=QB.value)==null?void 0:Uw.value)!==""&&(xb.value.value="",xb.value.dispatchEvent(new Event("input")));return!1}),PF=_.HK(function(){var QT=Tu4(xb.value.value,R().filter(function(DI){return DI.type!==35}).map(function(DI){return{label:DI.text}}));
_.OS(GD.value,"yt-open-popup-action",[{openPopupAction:QT},document.body]);return!1}),TL=_.HK(function(){xb.value.focus();
return!1}),El=function(QT,DI,nD,QB,Uw){pt.selectedSuggestionIndex=nD;
E(DI,Uw?3:1,QB)},f9=function(QT){xb.value.value=QT;
xb.value.dispatchEvent(new Event("input"));pt.inputMethodsTracker.add(5);zbg(pt,!0)},K$=[[]],SL=function(QT){var DI="searchbox-suggestion"+_.jY(_.Yh);
K$[QT].push(DI);return DI},TU=function(QT){if(R()){K$=[[]];
for(var DI=0;DI<QT;DI++)K$.push([])}},CI=function(){if(sw()){var QT=AD,DI=QT.scrollTop;
QT=QT.scrollHeight-QT.clientHeight;PJ(DI>=QT);DI=Math.abs(QT-DI);DI<=40?XY(1-(40-DI)/40):XY(1)}},$R=function(){return"opacity: "+At()*100+"%"},sD=_.HK(function(){CI();
return!1}),CL=_.HK(function(){tD(!1);
return!1}),cJ,ln={},Sv={},PH={},oA={};
return _.G("yt-searchbox",{class:_.QY("ytSearchboxComponentHost",(ln.ytSearchboxComponentMweb=!1,ln.ytSearchboxComponentDesktop=!0,ln["yt-searchbox-filled-query"]=function(){return Z()},ln["ytd-masthead"]=function(){return!h()},ln.ytSearchboxComponentHostDark=un,ln)),
role:"search",el:GD,"client-ve-type":10349},_.G("div",{el:zL,"on:click":TL,class:_.QY("ytSearchboxComponentInputBox",(Sv.ytSearchboxComponentInputBoxDark=un,Sv.ytSearchboxComponentInputBoxHasFocus=h,Sv))},_.G("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":cE},_.G(_.p,{cond:h,then:function(){return _.G("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.G(_.nh,{icon:"SEARCH"}))}}),_.G("input",{el:xb,
class:_.QY("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":J8,"aria-expanded":!((cJ=AD)==null?0:cJ.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":bn,"on:focus":kb,"on:input":OM,"on:keydown":UU,"on:paste":RF,placeholder:g.placeholderText,"aria-activedescendant":function(){var QT;return(QT=K$[J()])==null?void 0:QT[C()]},
"aria-autocomplete":"list",role:"combobox"})),_.G(_.p,{cond:H,then:function(){return _.G("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.G(ad4,null))}}),_.G(_.p,{cond:Z,
then:function(){return _.G("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.G("button",{class:"ytSearchboxComponentClearButton","on:click":Im,"aria-label":g.clearButtonAriaLabel||m7A},_.G(_.nh,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.G(_.jk,{model:{}})))}})),_.G("button",{class:_.QY("ytSearchboxComponentSearchButton",(PH.ytSearchboxComponentSearchButtonDark=un,PH)),
"on:click":cE,"aria-label":Idt,title:g.placeholderText},_.G(_.nh,{icon:"SEARCH"})),_.G(_.p,{cond:function(){if(DrF()&&_.Y("mweb_voice_search")&&g.voiceSearchButton)return g.voiceSearchButton()},
then:function(QT){var DI={};return _.G("div",{class:_.QY("ytSearchboxComponentVoiceSearchWrapper",(DI.ytSearchboxComponentHideVoiceSearchButton=function(){return Z()},DI))},_.G(_.Af,{data:QT},{buttonRenderer:function(nD){return _.G(_.X9,{data:nD.data,
onButtonClickCallback:function(){}})}}))}}),_.G("div",{el:_.T$(function(QT){return void(AD=QT)}),
id:J8,class:_.QY("ytSearchboxComponentSuggestionsContainer",(oA.ytSearchboxComponentSuggestionsContainerDark=un,oA["yt-searchbox-suggestions-container"]=!1,oA.ytSearchboxComponentSuggestionsContainerScrollable=sw(),oA.ytSearchboxComponentSuggestionsContainerAnimated=k,oA)),"on:scroll":sD,"on:mousemove":CL,role:"listbox",hidden:!0},_.G(_.Ra,{each:R},function(QT,DI){return _.G(x7D,{suggestion:QT,isHighlighted:function(){return DI()===J()},
onClickCallback:El,onHoverUpdateCallback:function(nD){if(_.Y("desktop_enable_single_suggestion_highlight")){var QB=DI();nD&&(X(0),e(QB))}},
onRemoveCallback:function(nD){N4$(lA);nD===void 0||nD<0||xc().includes(nD)||rg([].concat(_.jW(xc()),[nD]))},
labels:g.labels,queryBuilderFunction:f9,suggestionIndex:DI,generateUniqueId:SL,highlightedId:function(){var nD;return(nD=K$[J()])==null?void 0:nD[C()]},
useScrollMargin:sw(),isKeyboardMode:$t})}),_.G(_.p,{cond:function(){return!OD()&&R().find(function(QT){return QT.type!==35})&&_.Y("searchbox_reporting")},
then:function(){return _.G("button",{class:"ytSearchboxComponentReportButton","on:mousedown":PF},_.zn("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.G(_.p,{cond:function(){return!jV()&&sw()},
then:function(){return _.G("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.G("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:$R}))}})))},"Eg"),"yt-searchbox",{props:{searchEndpoint:_.cP,
placeholderText:_.cP,labels:_.cP,voiceSearchButton:_.cP,focusCallback:_.EB,clearButtonAriaLabel:_.cP,forceDarkMode:_.cP}});var Mk=function(){var g=_.a.apply(this,arguments)||this;g.menuButtonTargetId="topbar-guide-menu";g.narrow=!1;g.menuStrings={BACK_ALT_LABEL:_.zn("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.zn("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.zn("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.zn("SBOX_PLACEHOLDER",void 0,"Search")};g.pageDarkTheme=document.documentElement.hasAttribute("dark");g.watchPageScrollTop=0;g.theater=!1;g.fullscreen=!1;g.disableFrostedGlassDuringViewTransition=
!1;g.desktopUnifiedSearchPanelMode=_.Y("desktop_enable_unified_search_panel");g.cinematicTheaterMode=_.Y("web_cinematic_theater_mode");g.ytSearchboxFocused=!1;g.searchboxLabels=_.Ca("SBOX_LABELS");g.topbarIsAboveChipbar=!1;g.isDarkThemeForced=!1;g.areGhostCardsHidden=!1;g.guideKeyboardToggle=!1;g.voiceSearchManager=Mbv();g.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};g.setYtSearchboxFocused=function(r){g.ytSearchboxFocused=
r};
g.toggleFrostedGlassDuringViewTransition=function(r){g.disableFrostedGlassDuringViewTransition=r};
return g};
_.f(Mk,_.a);_.S=Mk.prototype;_.S.computeSimpleText=function(g){return _.Vp(g)};
_.S.onDarkChanged=function(){for(var g=_.U(this.buttons||[]),r=g.next();!r.done;r=g.next())r.value.isOverlay=!!this.dark;g=_.U(this.buttonRenderers||[]);for(r=g.next();!r.done;r=g.next())r.value.overrides=this.computeButtonOverride()};
_.S.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.S.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var g=_.Wa(_.ep(),"aa");_.UN(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||g||(this.isDarkThemeForced=this.dark=!0);this.logoType?(g=this.hostElement.querySelector("#masthead-logo"))&&(_.Y("polymer_on_demand_shady_dom")?g.setAttribute("slot","masthead-logo-old"):_.p5(g)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.Do(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.Do(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.S.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.Do(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.Do(this,this.onSetTheaterModeEnabled))};
_.S.dataChanged=function(){var g=this.data;g&&(this.voiceEnabled=g.voiceSearchButton?Mbv().isSupported():!1,_.npb(_.Yl(),this.menuButtonTargetId,this.guideButton),g.onReceivedActions&&g.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.uq(this.hostElement,g.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&g&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.UN(this.hostElement,"dark",!1),_.UN(this.hostElement,"theater",!1),
(g=this.hostElement.querySelector("#masthead-logo"))&&(_.Y("polymer_on_demand_shady_dom")?g.setAttribute("slot","masthead-logo-old"):_.p5(g))))};
_.S.computeCenterHidden=function(){var g;return this.data&&!((g=this.data.searchbox)==null?0:g.fusionSearchboxRenderer)};
_.S.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.UN(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.S.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.S.onWatchScroll=function(g){this.watchPageScrollTop=g.detail||0;this.updateMastheadBackgroundOpacity()};
_.S.onFullscreenChangeAction=function(g){g||(this.watchPageScrollTop=0);this.fullscreen=g;this.updateMastheadBackgroundOpacity()};
_.S.onSetTheaterModeEnabled=function(g){this.theater=g.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.S.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.S.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.S.setBackgroundOpacity=function(g){g=this.calculateBackgroundOpacity(g);this.background.style.opacity=""+g};
_.S.calculateBackgroundOpacity=function(g){var r=this.theater&&this.cinematicTheaterMode?.6:0,E=this.hostElement.clientHeight/2;return Math.min(Math.max(g,0),E)/E*(1-r)+r};
_.S.shouldShowCinematicMastHead=function(){var g=_.Y("kevlar_watch_grid")&&!_.Y("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(g||this.pageDarkTheme)};
_.S.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.S.focusGuide=function(){this.guideButton.focus()};
_.S.onGuideToggleTap=function(){_.Sh(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.S.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.S.onGuideToggleHover=function(){_.Sh(this.hostElement,"yt-guide-hover")};
_.S.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.S.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.S.closeOnOutsideClickCondition=function(g){for(g=_.Z1(g);g[0];){var r=g.shift();if(r instanceof Element&&r.id==="kbd")return!1}return!0};
_.S.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.S.pausePlayer=function(){var g;(g=_.Tw())==null||g.pause();this.pauseMiniplayer()};
_.S.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var g;(g=_.rM().resolve(_.ea).getPlayerElement())==null||g.pause()}};
_.S.isMiniplayerActive=function(){return _.rM().resolve(_.ea).isMiniplayerActive()};
_.S.updateNarrowFromBinding=function(g){this.narrow=g.detail.value};
_.S.onYtSendFeedbackAction=function(){_.OS(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.S.registerWithViewTransitionManager=function(){jlD(_.rM().resolve(_.HQ),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.hx.Object.defineProperties(Mk.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.Y("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var g;return(g=this.data)==null?void 0:g.voiceSearchButton}}}});
Mk.prototype.narrowChanged=Mk.prototype.narrowChanged;Mk.prototype.onWatchPageChange=Mk.prototype.onWatchPageChange;Mk.prototype.onRendererStamperFinished=Mk.prototype.onRendererStamperFinished;Mk.prototype.dataChanged=Mk.prototype.dataChanged;Mk.prototype.onDarkChanged=Mk.prototype.onDarkChanged;_.m([_.P(_.f7),_.L("design:type",Object)],Mk.prototype,"ironResizableBehavior",void 0);_.m([_.P(_.ONv),_.L("design:type",Object)],Mk.prototype,"ytdExpandableInputBehavior",void 0);
_.m([_.P(_.eb.YtdGuideStateAwareBehavior),_.L("design:type",Object)],Mk.prototype,"ytdGuideStateAwareBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Mk.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Mk.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Mk.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Mk.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.Ai),_.L("design:type",Object)],Mk.prototype,"ytdReduxBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Mk.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],Mk.prototype,"narrow",void 0);_.m([_.K(),_.L("design:type",Object)],Mk.prototype,"logoType",void 0);_.m([_.K(),_.L("design:type",Boolean)],Mk.prototype,"voiceEnabled",void 0);
_.m([_.K(),_.L("design:type",Object)],Mk.prototype,"menuStrings",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],Mk.prototype,"dark",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Mk.prototype,"pageDarkTheme",void 0);_.m([_.K(),_.L("design:type",Object)],Mk.prototype,"watchPageScrollTop",void 0);_.m([_.K({reflectToAttribute:!0,selector:_.Fc}),_.L("design:type",Boolean)],Mk.prototype,"isWatchPage",void 0);
_.m([_.K({reflectToAttribute:!0,selector:_.Q1D}),_.L("design:type",Boolean)],Mk.prototype,"isShortsPage",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Mk.prototype,"theater",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Mk.prototype,"fullscreen",void 0);_.m([_.K({reflectToAttribute:!0,selector:_.pyL}),_.L("design:type",String)],Mk.prototype,"frostedGlassMode",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Mk.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.m([_.K(),_.L("design:type",Object)],Mk.prototype,"ytSearchboxFocused",void 0);_.m([_.kk("#buttons > *"),_.L("design:type",Array)],Mk.prototype,"buttons",void 0);_.m([_.kk("ytd-button-renderer"),_.L("design:type",Array)],Mk.prototype,"buttonRenderers",void 0);_.m([_.zb("#background"),_.L("design:type",HTMLDivElement)],Mk.prototype,"background",void 0);
_.m([_.zb("#guide-button"),_.L("design:type",Object)],Mk.prototype,"guideButton",void 0);_.m([_.zb("#logo"),_.L("design:type",Object)],Mk.prototype,"logo",void 0);_.m([_.K({computed:"computeButtonOverride(dark)"}),_.L("design:type",Object)],Mk.prototype,"buttonOverrides",void 0);_.m([_.Yk("dark"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Mk.prototype,"onDarkChanged",null);_.m([_.K({value:function(){return this.onVoiceTap.bind(this)}}),
_.L("design:type",Function)],Mk.prototype,"boundOnTapVoiceButton",void 0);_.m([_.K(),_.L("design:type",Object)],Mk.prototype,"topbarIsAboveChipbar",void 0);_.m([_.K(),_.L("design:type",String),_.L("design:paramtypes",[])],Mk.prototype,"guideIcon",null);_.m([_.W("voiceEnabled"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],Mk.prototype,"shouldShowVoiceSearchButton",null);_.m([_.W("data"),_.L("design:type",Object),_.L("design:paramtypes",[])],Mk.prototype,"voiceSearchButton",null);
_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Mk.prototype,"dataChanged",null);_.m([_.ob("yt-rendererstamper-finished"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Mk.prototype,"onRendererStamperFinished",null);_.m([_.Yk("isWatchPage"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Mk.prototype,"onWatchPageChange",null);
_.m([_.Yk("narrow"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Mk.prototype,"narrowChanged",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-masthead"})],Mk);
_.I(Mk,"ytd-masthead",function(){if(Ph5!==void 0)return Ph5;var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return Ph5=g},{mode:_.My("kevlar_poly_si_batch_j036")?1:2});var iqD;var LIA={},VR5={},hb5={},Zq6={},y3g=(Zq6.OFFLINE=(LIA["publicytnetworkstatus-online"]="BACK_ONLINE",LIA),Zq6.ONLINE=(VR5["publicytnetworkstatus-offline"]="OFFLINE",VR5),Zq6.BACK_ONLINE=(hb5["publicytnetworkstatus-offline"]="OFFLINE",hb5.TIMER_TRIGGER="ONLINE",hb5),Zq6),qk=function(){var g=_.a.apply(this,arguments)||this;g.currentState="ONLINE";g.scheduledJobId=0;g.bannerString="";g.bannerVe=null;g.networkStatusManagerInstance=new _.id;return g};
_.f(qk,_.a);_.S=qk.prototype;_.S.attached=function(){var g=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){g.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){g.stateChangeHandler("publicytnetworkstatus-offline")})};
_.S.detached=function(){var g=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){g.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){g.stateChangeHandler("publicytnetworkstatus-offline")})};
_.S.enterState=function(g){var r=this;this.scheduledJobId&&_.F6.cancelJob(this.scheduledJobId);g==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):g==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.zn("NO_INTERNET_CONNECTION",void 0,"No internet connection")):g==="BACK_ONLINE"&&(this.bannerString=_.zn("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.fC(_.F6,function(){r.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=g};
_.S.stateChangeHandler=function(g){(g=y3g[this.currentState][g])&&this.enterState(g)};
_.S.logVisibility=function(g){var r=_.PE();this.createBannerVe(g);r&&this.bannerVe&&(g?_.ck(r,[this.bannerVe]):_.iq(r,[this.bannerVe]))};
_.S.createBannerVe=function(g){!this.bannerVe&&g&&(this.bannerVe=_.bW(37929),_.Ok(_.pW(),this.bannerVe))};
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",String)],qk.prototype,"currentState",void 0);_.m([_.K(),_.L("design:type",Object)],qk.prototype,"scheduledJobId",void 0);_.m([_.K(),_.L("design:type",Object)],qk.prototype,"bannerString",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-network-status-banner"})],qk);
_.I(qk,"ytd-network-status-banner",function(){if(iqD!==void 0)return iqD;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return iqD=
g},{mode:1});var vVt;var uf=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};g.hidden=!0;g.frostedGlass=_.Y("web_frosted_glass");return g};
_.f(uf,_.a);uf.prototype.computeHidden=function(g){return g&&g.status?!1:!0};
uf.prototype.handleUpdatePermissionRoleCommand=function(g){if(g=_.n(g,_.Oin))if(g=_.n(g.renderer,_.STA))this.data=g};
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],uf.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],uf.prototype,"componentBehavior",void 0);_.m([_.K({value:!0,computed:"computeHidden(data)"}),_.L("design:type",Object)],uf.prototype,"hidden",void 0);_.m([_.K(),_.L("design:type",Object)],uf.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],uf.prototype,"frostedGlass",void 0);
_.m([_.N({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],uf);
_.I(uf,"ytd-permission-role-bottom-bar-renderer",function(){if(vVt!==void 0)return vVt;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return vVt=g},{mode:1});var d7m;var T4t;var wog={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var lf=function(){return _.a.apply(this,arguments)||this};
_.f(lf,_.a);_.S=lf.prototype;_.S.attached=function(){this.JSC$18705_scroller&&(this.JSC$18705_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18705_scroller.attached&&typeof this.JSC$18705_scroller.attached==="function"&&this.JSC$18705_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(E){E.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var g=_.S3(this.hostElement);g.querySelector("tp-yt-paper-radio-group").selected="";var r=g.querySelector("#reason-text");r&&(r.value="");g.querySelector("#description-text").value=""}};
_.S.canSubmit=function(g,r){_.Sh(this.hostElement,"yt-invalidate-popup-tabbables");return!(g&&r)};
_.S.onCancel=function(){_.OS(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.S.onSubmit=function(){var g=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(O){return O.active}).map(function(O){return O.innerText.trim()}),r=this.hostElement.querySelector("tp-yt-paper-radio-group"),E=r.selectedItem,B=E.name;
E=E.innerText.trim();var w=r.querySelector("#reason-text");r=void 0;w&&(r=w.value);(w=this.descriptionText.value)&&(w=w.trim());SPz(this.data.searchQuery,g,B,E,w,r);_.OS(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.S.sendFormSubmitToast=function(){var g=_.dz(_.zn("SBOX_INAPPROPRIATE_TOAST"));_.OS(this.hostElement,"yt-open-popup-action",[g,this])};
_.S.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(g){return g.active})};
_.S.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
lf.prototype.onIronSelect=lf.prototype.onIronSelect;lf.prototype.onIronChange=lf.prototype.onIronChange;lf.prototype.dataChanged=lf.prototype.dataChanged;_.m([_.K(),_.L("design:type",Object)],lf.prototype,"data",void 0);_.m([_.K({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.L("design:type",Boolean)],lf.prototype,"submitDisabled",void 0);_.m([_.K(),_.L("design:type",Boolean)],lf.prototype,"suggestionSelected",void 0);
_.m([_.K(),_.L("design:type",Boolean)],lf.prototype,"catagorySelected",void 0);_.m([_.zb("#scroller"),_.L("design:type",Object)],lf.prototype,"JSC$18705_scroller",void 0);_.m([_.zb("#description-text"),_.L("design:type",Object)],lf.prototype,"descriptionText",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],lf.prototype,"dataChanged",null);
_.m([_.ob("iron-change"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],lf.prototype,"onIronChange",null);_.m([_.ob("iron-select"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],lf.prototype,"onIronSelect",null);_.m([_.N({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],lf);
_.I(lf,"ytd-search-suggestion-report-dialog",function(){if(T4t!==void 0)return T4t;var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);return T4t=g},{mode:1});var DR=function(g){var r=g.openPopupAction;var E=g.target;var B=g.container;var w=g.popupContainerConfig;var O=g.getElement;g=g.removeWhenClosed===void 0?!1:g.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=r;this.target=E;this.container=B;this.popupContainerConfig=w;this.getElement=O;this.JSC$18711_popupConfig=this.popupContainerConfig.JSC$17828_popupConfig[this.openPopupAction.popupType];this.rendererName=(r=this.getName())?_.eho(r,XY$(this.popupContainerConfig,
r)):"";_.Y("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=g);this.createPopup()};
DR.prototype.updatePopup=function(g){this.openPopupAction=g;this.JSC$18711_popupConfig=this.popupContainerConfig.JSC$17828_popupConfig[this.openPopupAction.popupType];gwv(this);_.Y("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
DR.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var BdD=function(g,r,E){(r=r&&g.JSC$18711_popupConfig.narrowProperties?g.JSC$18711_popupConfig.narrowProperties:g.JSC$18711_popupConfig.properties)&&E!==void 0&&(r.isAriaModal=E);rT5(g,r);g.isRtl()&&rT5(g,g.JSC$18711_popupConfig.rtlProperties);EwL(g)};
DR.prototype.createPopup=function(){var g=this.JSC$18711_popupConfig.component;if(this.popupContent=wOF(this,this.rendererName)){if(g){this.popup=wOF(this,g);var r=this.popupContent;_.Y("web_enable_wrapper_for_cow_component_in_popup")&&(r=document.createElement("div"),r.appendChild(this.popupContent));_.Y("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18711_popupConfig.slotName&&r.setAttribute("slot",this.JSC$18711_popupConfig.slotName);g=this.popup;var E=this.container.tagName.toLowerCase(),
B=_.vo(r);_.Ojt(_.TF(g),_.EN(r,E,B));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.Y("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.S3(this.container).appendChild(this.popup)}};
var gwv=function(g){var r,E,B=(r=g.openPopupAction.accessibilityData)==null?void 0:(E=r.accessibilityData)==null?void 0:E.label;B&&(g.popup.ariaLabel=B);var w;((w=g.popupContent.polymerController)!=null?w:g.popupContent).data=(0,_.jn.unsafeClone)(g.openPopupAction.popup[g.getName()]);g.popupContent.duration=SHM(g);g.popupContent.positionType=g.openPopupAction.position;var O=g.openPopupAction.properties;O&&Object.keys(O).forEach(function(M){g.popupContent[M]=O[M]})},rT5=function(g,r){if(r)for(var E=
_.U(Object.keys(r)),B=E.next();!B.done;B=E.next())B=B.value,g.popup[B]=r[B]},EwL=function(g){if(g.openPopupAction.position){var r=g.JSC$18711_popupConfig.positionalProperties&&g.JSC$18711_popupConfig.positionalProperties[g.openPopupAction.position],E=g.JSC$18711_popupConfig.rtlPositionalProperties&&g.JSC$18711_popupConfig.rtlPositionalProperties[g.openPopupAction.position];
r=g.isRtl()&&E?E:r;r.shiftedHorizontalOffset&&(E=g.popup.style.display,g.popup.style.display="block",g.popupContent&&g.popup.positionTarget&&g.popupContent.clientWidth>g.popup.positionTarget.clientWidth&&(r.horizontalOffset=g.popup.positionTarget.clientWidth/2-r.shiftedHorizontalOffset),g.popup.style.display=E);rT5(g,r)}},OKD=function(g,r){if(r)for(var E=_.U(Object.keys(r)),B=E.next();!B.done;B=E.next())B=B.value,g.popup.style[B]=r[B]};
DR.prototype.getName=function(){return _.FS(this.openPopupAction.popup,"renderer")||_.FS(this.openPopupAction.popup,"dialog")||_.FS(this.openPopupAction.popup,"model")||void 0};
var SHM=function(g){g=g.openPopupAction.durationHintMs;return g===0?g:Math.max(4E3,g||4E3)};
DR.prototype.isRtl=function(){return _.Ca("HTML_DIR")==="rtl"};
var wOF=function(g,r){g=g.getElement(r,g.target);g==null&&_.el(new _.Rj("popup getElement returned null",r));return g};var UBL={};
UBL.YtPopupContainerBehavior=[_.KB.YtComponentBehavior,_.gN.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_);_.rX(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.ES(this.hostElement)},
closePopup:function(g){var r=this.createCacheKey(void 0,g);this.popups_[r]&&this.handleClosePopupAction_(void 0,g)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.F6.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.F6.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(g){g.opened&&g.keepBelowPlayer&&this.ensurePopupBelowPlayer(g)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var g in this.popups_){var r=this.popups_[g];if(r.popup.scrollAction==="refit"){var E=r.popup.positionTarget.getBoundingClientRect(),B=r.popup;E=E.top;var w=r;if(!w.naturalHeight){w.popup.hidden=!1;w.popup.style.position="fixed";w.popup.style.top="0px";w.popup.style.left="0px";var O=w.popup.getBoundingClientRect();w.naturalHeight=O.bottom-O.top;w.popup.refit()}B.hidden=!(E>=w.naturalHeight+60);r.popupContent.clientHeight===0&&r.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(g){this.popupContainerConfig=g},
handleOpenPopupAction:function(g,r){var E=g.openPopupAction,B=_.rM().resolve(_.gM(_.wJ))&&E.popupType==="TOAST";B&&!E.uniqueId&&(E.uniqueId=_.AZ());if(!_.Y("popup_container_parent_target_killswitch")){var w;r=(w=this.getParentTarget(r))!=null?w:r}var O=this.ensurePopup_(E,r);return new _.D8(function(M){O.then(function(u){if(!u)return M();this.maybeCreateNarrowMediaQuery_();var l=this.createCacheKey(u.rendererName,u.openPopupAction.uniqueId);if(E.showOncePerUniqueId){if(this.shownPopupKeys_.has(l))return M();
this.shownPopupKeys_.add(l)}l=this.popups_[l];var Q=!(!l||!l.openPopupAction.beReused);Q=!!E.reusePopup||Q;if(u.popup.opened&&!Q){B&&!u.openPopupAction.replacePopup||this.handleClosePopupAction_(u.rendererName,u.openPopupAction.uniqueId);Q=E.popupType==="DIALOG"&&!_.Y("popup_container_dialog_reopen_killswitch");if(!B&&!Q&&l&&l.target==r&&!u.openPopupAction.replacePopup)return M();_.Lk(u.popup,function(){this.completeOpenPopupAction_(E,r,u);M()}.bind(this))}else u.popup.opened?u.updatePopup(E):this.completeOpenPopupAction_(E,
r,u),M()}.bind(this))}.bind(this))},
getParentTarget:function(g){if(g&&g instanceof HTMLElement)for(var r=_.U(Object.entries(this.popups_)),E=r.next();!E.done;E=r.next())if(E=_.U(E.value),E.next(),E=E.next().value,E.popup.tagName==="TP-YT-IRON-DROPDOWN"&&g.closest(E.rendererName))return E.target},
completeOpenPopupAction_:function(g,r,E){E.updatePopup(g);g=this.narrowMediaQuery_.queryMatches;var B=this.isAriaModal;E.target=r;var w;r=((w=E.target.polymerController)!=null?w:E.target).popupPositionTarget||E.target;E.JSC$18711_popupConfig.targetContainer&&(r=E.container);E.popup.positionTarget=r;E.popupContent.positionTarget=r;EwL(E);E.JSC$18711_popupConfig.forceFocus&&(E.popupContent.style.outline="none");E.popupContent.tabIndex=-1;E.JSC$18711_popupConfig.narrowProperties&&(E.popup.style.position=
"static");E.JSC$18711_popupConfig.preventAutonav&&E.popup.setAttribute("prevent-autonav",!0);E.JSC$18711_popupConfig.forceCloseOnOutsideClick&&E.popup.setAttribute("force-close-on-outside-click",!0);BdD(E,g,B);OKD(E,E.JSC$18711_popupConfig.styles);E.isRtl()&&OKD(E,E.JSC$18711_popupConfig.rtlStyles);if(!E.openPopupAction.shouldStopParentSignal){var O;w=(O=E.target.polymerController)!=null?O:E.target;(E.popupContent.startForwardingEvents||E.popupContainerConfig.forwardingEnabledPopups.has(E.rendererName))&&
w.parentComponent!==E.popupContent&&E.popupContent!==E.target&&E.target!==document.body&&(E.popupContent.startForwardingEvents?E.popupContent.startForwardingEvents(E.popupContainerConfig.forwardedEvents,E.target):(E.JSC$18711_eventForwarder||(E.JSC$18711_eventForwarder=new _.U8(E.popupContent)),E.JSC$18711_eventForwarder.start(E.popupContainerConfig.forwardedEvents,E.target)))}E=E.popup;E.addEventListener("iron-overlay-opened",_.Do(this,this.onPopupIronOverlayOpened_));E.addEventListener("iron-overlay-closed",
_.Do(this,this.onPopupIronOverlayClosed_));E.addEventListener("iron-overlay-canceled",_.Do(this,this.onPopupIronOverlayCanceled_));E.addEventListener("yt-refit",_.Do(this,this.refitPopup_));E.addEventListener("yt-invalidate-popup-tabbables",_.Do(this,this.handleInvalidatePopupTabbables_));E.open()},
getPopupDurationMs_:function(g){return g.durationHintMs===0?g.durationHintMs:Math.max(4E3,g.durationHintMs||4E3)},
handleClosePopupAction_:function(g,r){var E=_.Y("web_popup_cache_key_killswitch")||!!r;if(g||E){var B=this.createCacheKey(g,r);g=(g=this.popups_[B])&&g.popup}else g=_.Vkw(_.K7);if(g&&g.close){if(r=_.rM().resolve(_.gM(_.wN)))g.restoreFocusOnClose=r.isKeyBoardInUse();g.close();this.removePopup_(g,B)}},
handleClosePopupCommand_:function(g){g.closePopupCommand&&g.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,g.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(g){var r={},E;for(E in this.popups_)if(r={key$jscomp$1158:r.key$jscomp$1158},r.key$jscomp$1158=E,!g||!g.some(function(O){return function(M){return M==O.key$jscomp$1158}}(r))){var B=this.popups_[r.key$jscomp$1158],w=B.popup;
_.rM().resolve(_.gM(_.wJ))&&B.openPopupAction.popupType==="TOAST"||(w&&w.close&&w.close(),this.removePopup_(w,r.key$jscomp$1158))}},
handleClosePopupsAction_:function(g){g.forEach(function(r){var E=this.popups_[r];E&&((E=E.popup)&&E.close&&E.close(),this.removePopup_(E,r))}.bind(this))},
handleGetPopupOpenedAction_:function(g,r){return(r=this.createCacheKey(g,r))&&this.popups_[r]?this.popups_[g].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var g=[],r;for(r in this.popups_){var E=this.popups_[r];E.popup.opened&&g.push(E)}return g},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(g,r){_.Y("ytpopup_disable_default_html_caching")&&g&&g.removeWhenClosed&&(_.S3(this.hostElement).removeChild(g),r&&this.popups_[r]&&delete this.popups_[r])},
shouldReusePopup_:function(g){return!(!g||!g.reusePopup)||!(!g||!g.beReused)},
ensurePopup_:function(g,r){this.maybeCreateNarrowMediaQuery_();var E=_.FS(g.popup,"renderer")||_.FS(g.popup,"dialog")||_.FS(g.popup,"model");if(!E)return _.lq();E=_.eho(E,XY$(this.popupContainerConfig,E));return _.lq(this.getAndMaybeCreatePopup_(g,E,r))},
getAndMaybeCreatePopup_:function(g,r,E){var B=this.createCacheKey(r,g.uniqueId);if(this.popups_[B])return this.popups_[B];g=new DR({openPopupAction:g,target:E,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(r)});return this.popups_[B]=g},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(g){return _.Y("ytpopup_disable_default_html_caching")?g&&g.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",_.Do(this,this.openPopupQueryMatchesChanged_)),_.S3(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(g){g=g.detail.value;for(var r in this.popups_)BdD(this.popups_[r],g)},
onPopupIronOverlayClosed_:function(g){var r=g.currentTarget,E=_.jhP(r);E=E.length>0?E[0]:r;if(E.is!=="ytd-reel-watch-while-dialog-renderer"||g.target.is!=="tp-yt-iron-dropdown"){g.detail.popup=r;g.detail.popupRenderer=E;var B,w={context:{openingElement:((B=this.popups_[(E==null?void 0:E.is)||""])==null?void 0:B.target)||void 0}};Object.assign(w,g.detail);var O;_.Sh((O=E.hostElement)!=null?O:E,"yt-popup-closed",w);r.removeEventListener("yt-refit",_.Do(this,this.refitPopup_));r.removeEventListener("yt-invalidate-popup-tabbables",
_.Do(this,this.handleInvalidatePopupTabbables_));r.removeEventListener("iron-overlay-canceled",_.Do(this,this.onPopupIronOverlayCanceled_));r.removeEventListener("iron-overlay-closed",_.Do(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(r)}},
onPopupIronOverlayCanceled_:function(g,r){var E=g.currentTarget,B=_.jhP(E);B=B.length>0?B[0]:E;if(B.is!=="ytd-reel-watch-while-dialog-renderer"||g.target.is!=="tp-yt-iron-dropdown"){var w;_.Sh((w=B.hostElement)!=null?w:B,"yt-popup-canceled",g.detail);w=r?_.Z1(r):null;(!r||["click","tap"].includes(r.type))&&!E.hasAttribute("force-close-on-outside-click")&&E.positionTarget&&w&&w.includes(E.positionTarget)&&g.preventDefault();E.restoreFocusOnClose=_.QV.keyboardEventMatchesKeys(r,"esc")}},
onPopupIronOverlayOpened_:function(g){g=g.currentTarget;var r=_.jhP(g);r=r.length>0?r[0]:g;var E,B;_.Sh((E=r.hostElement)!=null?E:r,"yt-popup-opened",(B=r.hostElement)!=null?B:r);g.keepBelowPlayer&&(this.ensurePopupBelowPlayer(g,!0),this.dynamicallyPositionedElements_.add(g));E=_.rM().resolve(_.gM(_.wN));B=!!r.querySelector("#toast");E&&E.isKeyBoardInUse()&&!B&&(typeof r.focusFirstItem==="function"?r.focusFirstItem():(r=_.cRD(g),r.length&&r[0].focus()));g.removeEventListener("iron-overlay-opened",
_.Do(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(g){g=g.currentTarget;g.refit&&g.refit()},
refitPopups_:function(){for(var g in this.popups_)this.popups_[g].refit()},
handleInvalidatePopupTabbables_:function(g){g=g.currentTarget;g.invalidateTabbables&&g.invalidateTabbables()},
createCacheKey:function(g,r){return _.Y("web_popup_cache_key_killswitch")?r?g+"#"+r:g:r?"#"+r:g},
openSheet:function(g,r){var E=g==null?void 0:g.openPopupActionCommand;!E&&(g==null?0:g.viewModel)&&(E={openPopupAction:{popup:{sheetViewModel:g.viewModel},popupType:"CONTEXTUAL_SHEET"}});E&&this.handleOpenPopupAction(E,r)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var g=this;return _.q(function(r){return r.return(g.handleGetOpenedPopupsAction_().filter(function(E){var B;return((B=E.openPopupAction)==null?void 0:B.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(g,r,E){if(_.Y("web_dialog_utils_killswitch")){var B=g==null?void 0:g.openPopupActionCommand,w=(E==null?0:E.ariaLabel)?{accessibilityData:{accessibilityData:{label:E.ariaLabel}}}:void 0;!B&&(g==null?0:g.viewModel)&&(B={openPopupAction:Object.assign({},{popup:{dialogViewModel:g.viewModel},popupType:(E==null?0:E.isModal)?"MODAL":"DIALOG"},w&&w)});B&&this.handleOpenPopupAction(B,r)}else{if(w=g==null?void 0:g.viewModel){var O=E=E===void 0?{}:E;E=O.ariaLabel;w={popup:{dialogViewModel:w},
popupType:O.isModal?"MODAL":"DIALOG"};O={accessibilityData:{label:E}};E&&(w.accessibilityData=O);w={openPopupAction:w}}else w=void 0;if(w=(B=w)!=null?B:g==null?void 0:g.openPopupActionCommand)this.isAriaModal=_.Y("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(w,r)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var g=this;return _.q(function(r){return r.return(g.handleGetOpenedPopupsAction_().filter(function(E){var B;return((B=E.openPopupAction)==null?void 0:B.popupType)==="DIALOG"}).length>0)})}}];var M04;var qH4;var uWg=_.me(["about:blank"]),oE=function(){var g=_.a.apply(this,arguments)||this;g.isMuted=!1;g.pageLoadTimeoutId=void 0;return g};
_.f(oE,_.a);_.S=oE.prototype;_.S.dataChanged=function(){var g=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var r=this.data.url,E=_.eE(r);_.Y("enable_yt_ata_iframe_authuser")?(E=_.eE(r),_.ta(this.iframe,OyF(E))):_.ta(this.iframe,E);this.pageLoadTimeoutId=_.fC(_.s8(),function(){return void g.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.hX({destination:window,iframe:this.iframe,origin:_.X64(E.toString()),channelName:"ataiframe",onMessage:_.ipl(LMM,function(B){VPv(B.data)?(B=_.nt(B.data,1,_.Yt,_.BT()),B.length!==1?_.el(Error("vl")):(B=B[0],B===3?(g.isMuted=!0,g.logStateChanged({adMuteRequested:!0})):B===1&&g.close())):_.el(Error("wl"))}),
onEstablished:function(){g.cancelPageLoadTimeout();g.logStateChanged({pageLoadSucceeded:!0})}})}};
_.S.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.s8().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.S.logStateChanged=function(g){var r;if((r=this.data)==null?0:r.trackingParams)g={adsClientData:{aboutThisAdData:g}},_.pW().stateChanged(this.data.trackingParams,g)};
_.S.close=function(){_.OS(this.hostElement,"yt-close-popup-action",[this.is])};
_.S.handlesPopupClosed=function(g,r){var E=this,B,w;return _.q(function(O){if(O.nextAddress==1)return _.Ca("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.OS(E.hostElement,"on-about-this-ad-popup-closed",[E.isMuted,r]),O.jumpTo(0)):g&&U8F(g)?_.D(O,MNM(g),4):(E.isMuted&&_.OS(E.hostElement,"yt-mute-ad-action",[E.is,E]),O.jumpTo(0));if(B=O.yieldResult){var M=w=new _.nH(B),u=E.isMuted;M.getOptions().includes("onAboutThisAdPopupClosed")?_.ybw(M,"onAboutThisAdPopupClosed",{isMuted:u,layoutId:r}):_.yU("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.Q3(O)})};
_.S.onPopupClosed=function(g){var r=this,E,B;return _.q(function(w){E=_.wF(uWg);_.ta(r.iframe,E);r.cancelPageLoadTimeout();if(!r.data)return w.jumpTo(0);r.ytRendererBehavior.markDirty();B=g.detail.context.openingElement;return _.D(w,r.handlesPopupClosed(B,r.data.layoutId),0)})};
_.S.detached=function(){this.cancelPageLoadTimeout()};
_.S.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
oE.prototype.onPopupClosed=oE.prototype.onPopupClosed;oE.prototype.dataChanged=oE.prototype.dataChanged;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],oE.prototype,"ytRendererBehavior",void 0);_.m([_.zb("#iframe"),_.L("design:type",HTMLIFrameElement)],oE.prototype,"iframe",void 0);_.m([_.K(),_.L("design:type",Object)],oE.prototype,"data",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],oE.prototype,"dataChanged",null);
_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype",Promise)],oE.prototype,"onPopupClosed",null);_.m([_.e3({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],oE);
_.I(oE,"yt-about-this-ad-renderer",function(){if(qH4===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;M04===void 0&&(M04=document.createElement("template"));var B=M04;E.call(r,B.content.cloneNode(!0),g.content.firstChild);qH4=g}g=qH4;return g},{mode:2});var lVM;var DBM;var Gy=function(g){var r=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=r.message;"stack"in r&&(this.stack=r.stack);this.maxFileSizeMB=g;Object.setPrototypeOf(this,Gy.prototype)};
_.f(Gy,Error);var ow5=function(g,r){var E=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=E.message;"stack"in E&&(this.stack=E.stack);this.minWidth=g;this.minHeight=r;Object.setPrototypeOf(this,ow5.prototype)};
_.f(ow5,Error);var GOL=function(g){this.requirements=g;this.JSC$18739_maxFileSize=g.maxFileSizeMB*1024*1024},Qr$=function(g,r){if(r.size>g.JSC$18739_maxFileSize)throw new Gy(g.requirements.maxFileSizeMB);
};var z3D=function(g,r){this.canvas=g;this.imageEditorBuilder=r};
z3D.prototype.addEventListeners=function(g){var r=function(w){kOM(g,w)};
this.JSC$18745_mouseDownEvent=r;var E=function(w){HK8(g,w)};
this.JSC$18745_mouseMoveEvent=E;var B=function(){pOM(g)};
this.JSC$18745_mouseUpEvent=B;this.canvas.addEventListener("mousedown",r);this.canvas.addEventListener("mousemove",E);document.addEventListener("mouseup",B)};
z3D.prototype.removeEventListeners=function(){this.JSC$18745_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18745_mouseDownEvent);this.JSC$18745_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18745_mouseMoveEvent);this.JSC$18745_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18745_mouseUpEvent)};
var YHM=function(g,r){g.removeEventListeners();return new Promise(function(E){var B=new Image;B.crossOrigin="anonymous";B.onload=function(){var w=g.imageEditorBuilder(g.canvas,B);g.addEventListeners(w);E(w)};
B.src=r})},QC=function(g,r,E,B,w,O,M,u){this.canvas=g;
this.image=r;this.requiredRatio=E;this.minImageCropDimension=B;this.minOutputImageResolution=w;this.component=O;this.styleFocusedCorner=u===void 0?!0:u;this.action=2;this.focusedCorner=this.resizeCorner=0;g=this.canvas.getContext("2d");if(!g)throw Error("xl");this.ctx=g;this.canvasMargin=M!=null?M:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;M=this.image;g=this.canvasInnerWidth/M.width;M.height*g>912&&(g=M.width/M.height*912/M.width);M=g;this.scaledImageWidth=this.canvas.width%2?
uT8(this.image.width*M):qPM(this.image.width*M);this.scaledImageHeight=Math.round(this.image.height*M);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18748_overlayMarginBottom=this.JSC$18748_overlayMarginTop=this.canvasMargin;this.JSC$18748_overlayMarginRight=this.JSC$18748_overlayMarginLeft=this.horizontalMargin;this.JSC$18748_overlayWidth=this.scaledImageWidth;this.JSC$18748_overlayHeight=this.scaledImageHeight;
g=this.image.width/this.image.height;g>this.requiredRatio?(this.JSC$18748_overlayWidth=this.canvas.width%2?uT8(this.scaledImageHeight*this.requiredRatio):qPM(this.scaledImageHeight*this.requiredRatio),this.JSC$18748_overlayMarginRight=this.JSC$18748_overlayMarginLeft=(this.canvas.width-this.JSC$18748_overlayWidth)/2):g<this.requiredRatio&&(this.JSC$18748_overlayHeight=this.canvas.height%2?uT8(this.scaledImageWidth/this.requiredRatio):qPM(this.scaledImageWidth/this.requiredRatio),this.JSC$18748_overlayMarginBottom=
this.JSC$18748_overlayMarginTop=(this.canvas.height-this.JSC$18748_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*M,this.scaledImageWidth);R3L(this)};
QC.prototype.getContext=function(){return this.ctx};
var kOM=function(g,r){r={x:Math.round(r.pageX-g.canvas.getBoundingClientRect().left),y:Math.round(r.pageY-g.canvas.getBoundingClientRect().top)};g.dragStart=r;nwg(g,r)!==0?(g.action=1,srt(g,r),g.resizeCorner=nwg(g,r)):r.x>g.JSC$18748_overlayMarginLeft&&r.x<g.JSC$18748_overlayMarginLeft+g.JSC$18748_overlayWidth&&r.y>g.JSC$18748_overlayMarginTop&&r.y<g.JSC$18748_overlayMarginTop+g.JSC$18748_overlayHeight&&(g.action=0)},fVz=function(g,r){switch(r){case 1:return{x:g.JSC$18748_overlayMarginLeft,
y:g.JSC$18748_overlayMarginTop};case 2:return{x:g.JSC$18748_overlayMarginLeft,y:g.JSC$18748_overlayMarginTop+g.JSC$18748_overlayHeight};case 3:return{x:g.JSC$18748_overlayMarginLeft+g.JSC$18748_overlayWidth,y:g.JSC$18748_overlayMarginTop};case 4:return{x:g.JSC$18748_overlayMarginLeft+g.JSC$18748_overlayWidth,y:g.JSC$18748_overlayMarginTop+g.JSC$18748_overlayHeight};default:throw Error("yl");}},jrt=function(g,r){if(g.focusedCorner!==0){g.dragStart=fVz(g,g.focusedCorner);
g.action=1;g.resizeCorner=g.focusedCorner;var E=g.dragStart.x,B=g.dragStart.y;switch(r){case 0:g.focusedCorner===1||g.focusedCorner===4?(E-=10,B-=10):(E-=10,B+=10);break;case 1:g.focusedCorner===1||g.focusedCorner===4?(E+=10,B+=10):(E+=10,B-=10);break;case 2:E=g.focusedCorner===1||g.focusedCorner===4?E-10:E+10;B-=10;break;case 3:E=g.focusedCorner===1||g.focusedCorner===4?E+10:E-10;B+=10;break;default:throw Error("zl");}$B8(g,{x:E,y:B});R3L(g);g.action=2;g.dragStart=void 0}},HK8=function(g,r){r={x:Math.round(r.pageX-
g.canvas.getBoundingClientRect().left),
y:Math.round(r.pageY-g.canvas.getBoundingClientRect().top)};srt(g,r);switch(g.action){case 1:$B8(g,r);break;case 0:g.dragStart&&(g.JSC$18748_overlayMarginLeft=Math.max(g.horizontalMargin,Math.min(g.JSC$18748_overlayMarginLeft-(g.dragStart.x-r.x),g.horizontalMargin+g.scaledImageWidth-g.JSC$18748_overlayWidth)),g.JSC$18748_overlayMarginRight=g.canvas.width-g.JSC$18748_overlayMarginLeft-g.JSC$18748_overlayWidth,g.JSC$18748_overlayMarginTop=Math.max(g.canvasMargin,Math.min(g.JSC$18748_overlayMarginTop-
(g.dragStart.y-r.y),g.scaledImageHeight-g.JSC$18748_overlayHeight+g.canvasMargin)),g.JSC$18748_overlayMarginBottom=g.canvas.height-(g.JSC$18748_overlayMarginTop+g.JSC$18748_overlayHeight));break;default:return}R3L(g);g.dragStart=r},pOM=function(g){g.action=2;
g.dragStart=void 0;document.body.style.cursor="auto"},srt=function(g,r){switch(nwg(g,r)){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:g.action!==1&&(document.body.style.cursor="auto")}},nwg=function(g,r){var E=g.JSC$18748_overlayMarginLeft-5,B=g.JSC$18748_overlayMarginTop-5,w=g.JSC$18748_overlayMarginLeft+g.JSC$18748_overlayWidth-5;
g=g.JSC$18748_overlayMarginTop+g.JSC$18748_overlayHeight-5;return ATF(r,{x:E,y:B})?1:ATF(r,{x:w,y:B})?3:ATF(r,{x:E,y:g})?2:ATF(r,{x:w,y:g})?4:0},ATF=function(g,r){return g.x>=r.x&&g.x<=r.x+10&&g.y>=r.y&&g.y<=r.y+10},$B8=function(g,r){if(g.dragStart)switch(g.resizeCorner){case 2:Math.abs((g.JSC$18748_overlayMarginLeft+g.JSC$18748_overlayWidth-r.x)/(r.y-g.JSC$18748_overlayMarginTop))>=g.requiredRatio?bKF(g,r.x):JTm(g,r.y);
break;case 1:Math.abs((g.JSC$18748_overlayMarginLeft+g.JSC$18748_overlayWidth-r.x)/(g.JSC$18748_overlayMarginTop+g.JSC$18748_overlayHeight-r.y))>=g.requiredRatio?PJz(g,r.x):JTm(g,r.y);break;case 4:Math.abs((r.x-g.JSC$18748_overlayMarginLeft)/(r.y-g.JSC$18748_overlayMarginTop))>=g.requiredRatio?bKF(g,r.x):t06(g,r.y);break;case 3:Math.abs((r.x-g.JSC$18748_overlayMarginLeft)/(g.JSC$18748_overlayMarginTop+g.JSC$18748_overlayHeight-r.y))>=g.requiredRatio?PJz(g,r.x):t06(g,r.y);break;default:throw Error("Al");
}},bKF=function(g,r){var E=g.JSC$18748_overlayMarginTop;
g.JSC$18748_overlayMarginBottom=FQL(g,r);g.JSC$18748_overlayHeight=g.canvas.height-g.JSC$18748_overlayMarginBottom-E;g.JSC$18748_overlayWidth=Math.round(g.JSC$18748_overlayHeight*g.requiredRatio);e3g(g)},PJz=function(g,r){var E=g.JSC$18748_overlayMarginTop+g.JSC$18748_overlayHeight;
g.JSC$18748_overlayMarginTop=FQL(g,r);g.JSC$18748_overlayHeight=E-g.JSC$18748_overlayMarginTop;g.JSC$18748_overlayWidth=Math.round(g.JSC$18748_overlayHeight*g.requiredRatio);e3g(g)},e3g=function(g){switch(g.resizeCorner){case 2:case 1:g.JSC$18748_overlayMarginLeft=g.canvas.width-g.JSC$18748_overlayMarginRight-g.JSC$18748_overlayWidth;
break;case 4:case 3:g.JSC$18748_overlayMarginRight=g.canvas.width-g.JSC$18748_overlayMarginLeft-g.JSC$18748_overlayWidth;break;default:throw Error("Al");}},JTm=function(g,r){var E=g.JSC$18748_overlayMarginLeft+g.JSC$18748_overlayWidth;
g.JSC$18748_overlayMarginLeft=WQ4(g,r);g.JSC$18748_overlayWidth=E-g.JSC$18748_overlayMarginLeft;g.JSC$18748_overlayHeight=Math.round(g.JSC$18748_overlayWidth/g.requiredRatio);CJ8(g)},t06=function(g,r){var E=g.JSC$18748_overlayMarginLeft;
g.JSC$18748_overlayMarginRight=WQ4(g,r);g.JSC$18748_overlayWidth=g.canvas.width-g.JSC$18748_overlayMarginRight-E;g.JSC$18748_overlayHeight=Math.round(g.JSC$18748_overlayWidth/g.requiredRatio);CJ8(g)},CJ8=function(g){switch(g.resizeCorner){case 2:case 4:g.JSC$18748_overlayMarginBottom=g.canvas.height-g.JSC$18748_overlayMarginTop-g.JSC$18748_overlayHeight;
break;case 1:case 3:g.JSC$18748_overlayMarginTop=g.canvas.height-g.JSC$18748_overlayMarginBottom-g.JSC$18748_overlayHeight;break;default:throw Error("Al");}},FQL=function(g,r){switch(g.resizeCorner){case 2:r=g.canvas.height-(g.JSC$18748_overlayMarginTop+KQt(g,r));
break;case 4:r=g.canvas.height-(g.JSC$18748_overlayMarginTop+xB$(g,r));break;case 1:r=g.JSC$18748_overlayMarginTop+g.JSC$18748_overlayHeight-KQt(g,r);break;case 3:r=g.JSC$18748_overlayMarginTop+g.JSC$18748_overlayHeight-xB$(g,r);break;default:throw Error("Al");}return Math.max(r,g.canvasMargin)},KQt=function(g,r){r=g.JSC$18748_overlayMarginLeft+g.JSC$18748_overlayWidth-Math.max(r,g.horizontalMargin);
r=r<0?g.JSC$18748_overlayWidth:Math.max(r,g.minOverlayWidth);return Math.round(r/g.requiredRatio)},xB$=function(g,r){r=g.canvas.width-Math.max(g.canvas.width-r,g.horizontalMargin)-g.JSC$18748_overlayMarginLeft;
r=r<0?g.JSC$18748_overlayWidth:Math.max(r,g.minOverlayWidth);return Math.round(r/g.requiredRatio)},WQ4=function(g,r){switch(g.resizeCorner){case 2:r=g.canvas.width-g.JSC$18748_overlayMarginRight-aVz(g,r);
break;case 4:r=g.canvas.width-g.JSC$18748_overlayMarginLeft-aVz(g,r);break;case 1:r=g.canvas.width-g.JSC$18748_overlayMarginRight-XOL(g,r);break;case 3:r=g.canvas.width-g.JSC$18748_overlayMarginLeft-XOL(g,r);break;default:throw Error("Al");}return Math.max(r,g.horizontalMargin)},aVz=function(g,r){r=g.canvas.height-Math.max(g.canvas.height-r,g.canvasMargin)-g.JSC$18748_overlayMarginTop;
return r<0?g.JSC$18748_overlayWidth:Math.max(Math.round(r*g.requiredRatio),g.minOverlayWidth)},XOL=function(g,r){r=g.JSC$18748_overlayMarginTop+g.JSC$18748_overlayHeight-Math.max(r,g.canvasMargin);
return r<0?g.JSC$18748_overlayWidth:Math.max(Math.round(r*g.requiredRatio),g.minOverlayWidth)},R3L=function(g){g.ctx.clearRect(0,0,g.canvas.width,g.canvas.height);
g.ctx.drawImage(g.image,0,0,g.image.width,g.image.height,g.horizontalMargin,g.canvasMargin,g.canvas.width-2*g.horizontalMargin,g.scaledImageHeight);g.ctx.fillStyle="rgba(0, 0, 0, 0.7)";g.ctx.fillRect(g.horizontalMargin,g.JSC$18748_overlayMarginTop,g.JSC$18748_overlayMarginLeft-g.horizontalMargin,g.JSC$18748_overlayHeight);g.ctx.fillRect(g.JSC$18748_overlayMarginLeft+g.JSC$18748_overlayWidth,g.JSC$18748_overlayMarginTop,g.JSC$18748_overlayMarginRight-g.horizontalMargin,g.JSC$18748_overlayHeight);g.ctx.fillRect(g.horizontalMargin,
g.canvasMargin,g.scaledImageWidth,g.JSC$18748_overlayMarginTop-g.canvasMargin);g.ctx.fillRect(g.horizontalMargin,g.JSC$18748_overlayMarginTop+g.JSC$18748_overlayHeight,g.scaledImageWidth,g.JSC$18748_overlayMarginBottom-g.canvasMargin);g.drawOverlay();g.component&&_.Sh(g.component,"image-updated")};
QC.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18748_overlayMarginLeft,this.JSC$18748_overlayMarginTop,this.JSC$18748_overlayWidth,this.JSC$18748_overlayHeight);Nd6(this)};
var Nd6=function(g){var r=g.JSC$18748_overlayMarginLeft-5,E=g.JSC$18748_overlayMarginTop-5,B=g.JSC$18748_overlayMarginLeft+g.JSC$18748_overlayWidth-5,w=g.JSC$18748_overlayMarginTop+g.JSC$18748_overlayHeight-5;g.ctx.fillStyle="#FFF";g.ctx.fillRect(r,E,10,10);g.ctx.strokeRect(r,E,10,10);g.ctx.fillRect(B,E,10,10);g.ctx.strokeRect(B,E,10,10);g.ctx.fillRect(r,w,10,10);g.ctx.strokeRect(r,w,10,10);g.ctx.fillRect(B,w,10,10);g.ctx.strokeRect(B,w,10,10);if(g.focusedCorner!==0&&g.styleFocusedCorner){g.ctx.lineWidth=
4;g.ctx.strokeStyle="#3EA6FF";switch(g.focusedCorner){case 1:--r;--E;break;case 2:--r;E=w-1;break;case 3:r=B-1;--E;break;case 4:r=B-1;E=w-1;break;default:return}g.ctx.strokeRect(r,E,12,12)}};
QC.prototype.crop=function(g,r){r=r===void 0?!0:r;var E=this.image.width/this.scaledImageWidth,B=document.createElement("canvas"),w=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],O=this.JSC$18748_overlayWidth*E,M=this.JSC$18748_overlayHeight*E;B.width=Math.max(O,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);B.height=Math.max(M,w);g&&(B.width=Math.min(B.width,B.height),B.height=Math.min(B.width,B.height));
g=B.getContext("2d");if(!g)throw Error("ol");w=(this.JSC$18748_overlayMarginLeft-this.horizontalMargin)*E;E*=this.JSC$18748_overlayMarginTop-this.canvasMargin;r||(g.fillStyle="white",g.fillRect(0,0,B.width,B.height));g.drawImage(this.image,w,E,O,M,0,0,B.width,B.height);return B};var IVM=function(g,r,E,B,w){QC.call(this,g,r,E,B,void 0,w,8,!1)};
_.f(IVM,QC);IVM.prototype.drawOverlay=function(){var g=this.getContext(),r=this.JSC$18748_overlayWidth,E=this.JSC$18748_overlayHeight,B=this.JSC$18748_overlayMarginTop,w=this.JSC$18748_overlayMarginLeft;g.lineWidth=2;g.strokeStyle="#3EA6FF";g.beginPath();g.arc(w+r/2,B+E/2,r/2,0,2*Math.PI);g.stroke();g.strokeRect(w,B,r,E);Nd6(this)};
var mBL={maxFileSizeMB:15,minWidth:98,minHeight:98},cTt=["image/png","image/jpeg","image/gif"],zy=function(){var g=_.a.apply(this,arguments)||this;g.fileSelectorFocusListener=null;g.errorMessage=null;g.isLoading=!0;g.hideContainer=!0;g.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return g};
_.f(zy,_.a);_.S=zy.prototype;_.S.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.S.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.S.computePlaylistThumbnail=function(g){return g==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.S.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.OS(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.S.setErrorState=function(g){this.resetErrorState();g&&(this.errorMessage=g)};
_.S.showPopup=function(){var g=this;this.hideContainer=!1;_.fC(_.F6,function(){_.Sh(g.hostElement,"yt-refit")});
this.isLoading=!1};
_.S.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.S.closePopup=function(){this.resetFileSelector();_.OS(this.hostElement,"yt-close-popup-action",[this.is])};
_.S.onCancelTap=function(){this.isPlaylistThumbnail||_.OS(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.S.openFileSelector=function(){var g=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.fC(_.F6,function(){setTimeout(function(){if(!g.fileSelector.files||g.fileSelector.files.length===0)g.onCancelTap();g.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(r){r instanceof Error?_.tn(r):_.FR(new _.Rj(JSON.stringify(r)))}};
_.S.handleFileSelection=function(){var g=this,r,E,B,w,O,M;return _.q(function(u){switch(u.nextAddress){case 1:_.qN(u,2);if(!g.fileSelector.files||!g.imageEditorCanvas)return g.onCancelTap(),u.return();r=g.fileSelector.files[0];Qr$(g.imageChecker,r);_.qN(u,4);return _.D(u,C1F(r),6);case 6:g.mimeType=u.yieldResult;_.Ne(u,5,2);break;case 4:_.G2(u,2),_.OS(g.hostElement,"yt-image-selection-error-action",[(E=g.data)==null?void 0:E.genericImageLoadErrorMessage]),g.onCancelTap();case 5:B=new FileReader;B.addEventListener("load",
function(){var l,Q;return _.q(function(z){if(z.nextAddress==1){if(!B.result)return _.el(Error("ql")),z.return();l=B.result;Q=new Image;Q.src=l;Q.onload=function(){try{var k=g.imageChecker;if(Q.width<k.requirements.minWidth||Q.height<k.requirements.minHeight)throw new ow5(k.requirements.minWidth,k.requirements.minHeight);}catch(R){if(R instanceof ow5){var H;_.OS(g.hostElement,"yt-image-selection-error-action",[(H=g.data)==null?void 0:H.imageDimensionErrorMessage]);g.logImageDimensionErrorVe()}else R instanceof
Error?_.tn(R):(k=new _.Rj(JSON.stringify(R)),_.tn(k));g.onCancelTap()}g.showPopup()};
Q.onerror=function(){var k;_.OS(g.hostElement,"yt-image-selection-error-action",[(k=g.data)==null?void 0:k.genericImageLoadErrorMessage]);g.onCancelTap()};
return _.D(z,YHM(g.imageEditorCanvas,l),2)}g.imageEditor=z.yieldResult;g.updatePositionOfAllCorners();g.addEventListeners(g.imageEditor);_.Q3(z)})},!1);
B.readAsDataURL(r);_.Ne(u,0);break;case 2:w=_.G2(u),w instanceof Gy?_.OS(g.hostElement,"yt-image-selection-error-action",[(O=g.data)==null?void 0:O.imageSizeErrorMessage]):(w instanceof Error?_.tn(w):_.FR(new _.Rj(JSON.stringify(w))),_.OS(g.hostElement,"yt-image-selection-error-action",[(M=g.data)==null?void 0:M.genericImageLoadErrorMessage])),g.onCancelTap(),_.Q3(u)}})};
_.S.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var g=_.Hw(_.pW(),{veType:232707,visualElement:_.bW(232707)});g&&(g={visualElement:g},_.kP().reportShown(g))}};
_.S.handleImageSelectionErrorAction=function(g){this.isPlaylistThumbnail&&_.NPc(this.hostElement,g)};
_.S.convertToImageFormatBundle=function(g){var r=this,E,B,w;return _.q(function(O){switch(O.nextAddress){case 1:return E=g.toDataURL(r.outputMimeType,1),_.D(O,Ku5(E),2);case 2:B=O.yieldResult;_.qN(O,3);Qr$(r.imageChecker,B);_.Ne(O,4);break;case 3:w=_.G2(O);if(!(w instanceof Gy))throw w;_.el(new _.Rj("Output size is bigger than input size for image",r.mimeType,r.outputMimeType,B.size));E=g.toDataURL("image/jpeg",.95);return _.D(O,Ku5(E),6);case 6:B=O.yieldResult;case 4:return O.return({dataUrl:E,imageFile:B})}})};
_.S.handleUploadImageToScottyCommand=function(g){var r=this,E,B,w,O,M,u,l,Q,z,k;return _.q(function(H){switch(H.nextAddress){case 1:if(!r.imageEditor||!_.n(g,MfM))return H.return();E=_.n(g,MfM).scottyUploadUrl;if(!E){var R=new _.Rj("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.tn(R);return H.return()}_.qN(H,2);r.setLoadingState();B=r.imageEditor.crop(!1,!1);return _.D(H,r.convertToImageFormatBundle(B),4);case 4:return w=H.yieldResult,_.D(H,e9D(w.imageFile,E),5);case 5:O=
H.yieldResult;((M=r.data)==null?0:M.onUploadEndpoint)?(u=r.buildUploadServiceEndpoint(O),r.ytComponentBehavior.resolveCommand(u),l=_.n(u,_.J9),((Q=l)==null?0:Q.params)?r.closePopup():r.resetFileSelector()):(_.OS(r.hostElement,"yt-image-updated-action",[w.dataUrl,O]),r.closePopup());_.Ne(H,0);break;case 2:z=_.G2(H),r.setErrorState((k=r.data)==null?void 0:k.uploadErrorMessage),z instanceof Error?_.tn(z):(R=new _.Rj(JSON.stringify(z)),_.tn(R)),_.Q3(H)}})};
_.S.buildUploadServiceEndpoint=function(g){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",g),this.data.onUploadEndpoint):null};
_.S.dataChanged=function(){var g=this,r;return _.q(function(E){if(E.nextAddress==1){if(!g.data||!g.canvasElement)return E.return();g.data.imageRatio&&g.data.minImageCropWidth||_.FR(new _.Rj("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));r=function(B,w){return g.data.imageType==="IMAGE_TYPE_AVATAR"?new IVM(B,w,g.data.imageRatio,[g.data.minImageCropWidth,g.data.minImageCropWidth/g.data.imageRatio],g.hostElement):new QC(B,w,g.data.imageRatio,[g.data.minImageCropWidth,
g.data.minImageCropWidth/g.data.imageRatio],void 0,g.hostElement,8,!1)};
g.imageEditorCanvas=new z3D(g.canvasElement,r);return g.data.url?_.D(E,YHM(g.imageEditorCanvas,g.data.url),3):(g.hideContainer=!0,g.openFileSelector(),E.jumpTo(0))}g.imageEditor=E.yieldResult;g.showPopup();g.addEventListeners(g.imageEditor);_.Q3(E)})};
_.S.addEventListeners=function(g){this.removeEventListeners();var r=function(w){kOM(g,w)};
this.JSC$18756_mouseDownEvent=r;var E=function(w){HK8(g,w)};
this.JSC$18756_mouseMoveEvent=E;var B=function(){pOM(g)};
this.JSC$18756_mouseUpEvent=B;this.topLeftCorner.addEventListener("mousedown",r);this.topLeftCorner.addEventListener("mousemove",E);this.topLeftCorner.addEventListener("mouseup",B);this.topRightCorner.addEventListener("mousedown",r);this.topRightCorner.addEventListener("mousemove",E);this.topRightCorner.addEventListener("mouseup",B);this.bottomLeftCorner.addEventListener("mousedown",r);this.bottomLeftCorner.addEventListener("mousemove",E);this.bottomLeftCorner.addEventListener("mouseup",B);this.bottomRightCorner.addEventListener("mousedown",
r);this.bottomRightCorner.addEventListener("mousemove",E);this.bottomRightCorner.addEventListener("mouseup",B)};
_.S.removeEventListeners=function(){this.JSC$18756_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18756_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18756_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18756_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18756_mouseDownEvent));this.JSC$18756_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18756_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18756_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18756_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18756_mouseMoveEvent));this.JSC$18756_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18756_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18756_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18756_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18756_mouseUpEvent))};
_.S.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var g=document.activeElement;g&&g.shadowRoot&&g.shadowRoot.activeElement;)g=g.shadowRoot.activeElement;switch(g){case this.topLeftCorner:this.imageEditor.focusedCorner=1;break;case this.topRightCorner:this.imageEditor.focusedCorner=3;break;case this.bottomLeftCorner:this.imageEditor.focusedCorner=2;break;case this.bottomRightCorner:this.imageEditor.focusedCorner=4;break;default:return this.imageEditor.focusedCorner=0,!1}return!0};
_.S.updatePositionOfCorner=function(g,r){var E=g.y-r.offsetHeight/2+4;r.style.left=g.x-r.offsetWidth/2+16+"px";r.style.top=E+"px"};
_.S.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var g=_.U([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),r=g.next();!r.done;r=g.next()){r=r.value;var E=fVz(this.imageEditor,r.corner);this.updatePositionOfCorner(E,r.div)}};
_.S.onLeft=function(g){this.imageEditor&&this.setFocusInImageEditor()&&(jrt(this.imageEditor,0),this.updatePositionOfAllCorners(),g.preventDefault())};
_.S.onRight=function(g){this.imageEditor&&this.setFocusInImageEditor()&&(jrt(this.imageEditor,1),this.updatePositionOfAllCorners(),g.preventDefault())};
_.S.onUp=function(g){this.imageEditor&&this.setFocusInImageEditor()&&(jrt(this.imageEditor,2),this.updatePositionOfAllCorners(),g.preventDefault())};
_.S.onDown=function(g){this.imageEditor&&this.setFocusInImageEditor()&&(jrt(this.imageEditor,3),this.updatePositionOfAllCorners(),g.preventDefault())};
_.S.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.hx.Object.defineProperties(zy.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&cTt.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var g,r,E;((r=this.data)==null?0:r.imageRatio)&&((E=this.data)==null?0:E.minImageCropWidth)?g={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:g=mBL;return new GOL(g)}}});
zy.prototype.updatePositionOfAllCorners=zy.prototype.updatePositionOfAllCorners;zy.prototype.dataChanged=zy.prototype.dataChanged;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],zy.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],zy.prototype,"ytComponentBehavior",void 0);_.m([_.P(_.QV),_.L("design:type",Object)],zy.prototype,"ironA11yKeysBehavior",void 0);
_.m([_.zb("#canvas"),_.L("design:type",HTMLCanvasElement)],zy.prototype,"canvasElement",void 0);_.m([_.zb("#file-selector"),_.L("design:type",HTMLInputElement)],zy.prototype,"fileSelector",void 0);_.m([_.zb("#top-left-corner"),_.L("design:type",HTMLDivElement)],zy.prototype,"topLeftCorner",void 0);_.m([_.zb("#top-right-corner"),_.L("design:type",HTMLDivElement)],zy.prototype,"topRightCorner",void 0);
_.m([_.zb("#bottom-left-corner"),_.L("design:type",HTMLDivElement)],zy.prototype,"bottomLeftCorner",void 0);_.m([_.zb("#bottom-right-corner"),_.L("design:type",HTMLDivElement)],zy.prototype,"bottomRightCorner",void 0);_.m([_.K(),_.L("design:type",Object)],zy.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],zy.prototype,"errorMessage",void 0);_.m([_.K(),_.L("design:type",Object)],zy.prototype,"isLoading",void 0);_.m([_.K(),_.L("design:type",Object)],zy.prototype,"hideContainer",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.L("design:type",Boolean)],zy.prototype,"isPlaylistThumbnail",void 0);_.m([_.Yk("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype",Promise)],zy.prototype,"dataChanged",null);_.m([_.ob("image-updated"),_.ob("yt-refit"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],zy.prototype,"updatePositionOfAllCorners",null);
_.m([_.e3({is:"yt-image-editor-renderer",disableElementRegistration:!0})],zy);
_.I(zy,"yt-image-editor-renderer",function(){if(DBM===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;lVM===void 0&&(lVM=document.createElement("template"));var B=lVM;E.call(r,B.content.cloneNode(!0),g.content.firstChild);DBM=g}g=DBM;return g},{mode:2});var iKv;var LQt;var kN=function(){return _.a.apply(this,arguments)||this};
_.f(kN,_.a);kN.prototype.updateMinutesFromBinding=function(g){this.handleMinutesChanged&&this.handleMinutesChanged(g)};
kN.prototype.updateSecondsFromBinding=function(g){this.handleSecondsChanged&&this.handleSecondsChanged(g)};
kN.prototype.updateDescriptionFromBinding=function(g){this.handleDescriptionChanged&&this.handleDescriptionChanged(g)};
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],kN.prototype,"ytComponentBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],kN.prototype,"data",void 0);_.m([_.K(),_.L("design:type",String)],kN.prototype,"minutes",void 0);_.m([_.K(),_.L("design:type",String)],kN.prototype,"seconds",void 0);_.m([_.K(),_.L("design:type",String)],kN.prototype,"description",void 0);_.m([_.K(),_.L("design:type",Function)],kN.prototype,"handleMinutesChanged",void 0);
_.m([_.K(),_.L("design:type",Function)],kN.prototype,"handleSecondsChanged",void 0);_.m([_.K(),_.L("design:type",Function)],kN.prototype,"handleDescriptionChanged",void 0);_.m([_.K(),_.L("design:type",Number)],kN.prototype,"characterLimit",void 0);_.m([_.K(),_.L("design:type",Number)],kN.prototype,"textNumRows",void 0);_.m([_.e3({is:"yt-report-details-form-content",disableElementRegistration:!0})],kN);
_.I(kN,"yt-report-details-form-content",function(){if(LQt===void 0){var g=document.createElement("template");_.b(g,'\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>');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;iKv===void 0&&(iKv=document.createElement("template"));var B=iKv;E.call(r,B.content.cloneNode(!0),g.content.firstChild);LQt=g}g=LQt;return g},{mode:2});var V0v;var h35;var Ht=function(){var g=_.a.apply(this,arguments)||this;g.updateMinutesFromBinding=function(r){g.minutes=r.detail.value};
g.updateSecondsFromBinding=function(r){g.seconds=r.detail.value};
g.updateDescriptionFromBinding=function(r){g.description=r.detail.value};
return g};
_.f(Ht,_.a);_.S=Ht.prototype;_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.S.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.submitButton":{id:"submit-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.S.ready=function(){_.S3(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.S.onSubmitYtAction=function(g){var r=g.detail;r.actionName==="yt-service-request"&&(r=r.args[1],r.flagEndpoint&&(g.stopPropagation(),this.refireAction(r)))};
_.S.refireAction=function(g){var r={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(r.vss_id=this.vssId);_.q2(this.hostElement,[g,r]);this.submitDisabled=!0};
_.S.dataChanged=function(){var g=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var r=_.Tw();r&&r.getPlayerPromise().then(function(E){var B=E.getOption("cc","track")||E.getOption("captions","track");B&&(g.vssId=B.vss_id);E=E.getCurrentTime();g.minutes=Math.floor(E/60).toString();g.seconds=(Math.floor(E)%60).toString()})};
_.S.updateSubmitButtonState=function(){var g;((g=this.data)==null?0:g.isFreeformReason)?this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds===""||!this.description||this.description.length<3):this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds==="")};
_.S.onYtServiceRequestCompleted=function(){_.OS(this.hostElement,"yt-close-popup-action")};
_.S.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.hx.Object.defineProperties(Ht.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var g;return((g=this.data)==null?void 0:g.textNumRows)||4}}});
Ht.prototype.onYtServiceRequestError=Ht.prototype.onYtServiceRequestError;Ht.prototype.onYtServiceRequestCompleted=Ht.prototype.onYtServiceRequestCompleted;Ht.prototype.updateSubmitButtonState=Ht.prototype.updateSubmitButtonState;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Ht.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Ht.prototype,"ytRendererBehavior",void 0);
_.m([_.K({observer:"dataChanged"}),_.L("design:type",Object)],Ht.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Boolean)],Ht.prototype,"submitDisabled",void 0);_.m([_.K(),_.L("design:type",String)],Ht.prototype,"minutes",void 0);_.m([_.K(),_.L("design:type",String)],Ht.prototype,"seconds",void 0);_.m([_.K(),_.L("design:type",String)],Ht.prototype,"description",void 0);_.m([_.K(),_.L("design:type",String)],Ht.prototype,"vssId",void 0);
_.m([_.K({value:_.Ca("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.L("design:type",Boolean)],Ht.prototype,"isMusic",void 0);_.m([_.W("data"),_.L("design:type",Number),_.L("design:paramtypes",[])],Ht.prototype,"characterLimit",null);_.m([_.W("data"),_.L("design:type",Number),_.L("design:paramtypes",[])],Ht.prototype,"textNumRows",null);
_.m([_.Yk("minutes","seconds","description","submitDisabled"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Ht.prototype,"updateSubmitButtonState",null);_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Ht.prototype,"onYtServiceRequestCompleted",null);
_.m([_.ob("yt-service-request-error"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],Ht.prototype,"onYtServiceRequestError",null);_.m([_.e3({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],Ht);
_.I(Ht,"yt-report-details-form-renderer",function(){if(h35===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;V0v===void 0&&(V0v=document.createElement("template"));var B=V0v;E.call(r,B.content.cloneNode(!0),g.content.firstChild);h35=g}g=h35;return g});var ZKF;var yTt;var vwz;var dB$;var pA=function(){return _.a.apply(this,arguments)||this};
_.f(pA,_.a);
pA.prototype.onCheckedChanged_=function(){if(this.data){var g=_.S3(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.OS(this.hostElement,"yt-additional-detail-checkbox-update",[g]):this.data.identifier==="yt-hide-user-checkbox"?_.OS(this.hostElement,"yt-hide-user-checkbox-update",[g]):g&&this.data.enableCommand?_.OS(this.hostElement,"yt-modify-report-form-command",[_.n(this.data.enableCommand,Q1M)]):!g&&this.data.disableCommand&&_.OS(this.hostElement,
"yt-modify-report-form-command",[_.n(this.data.enableCommand,Q1M)])}};
pA.prototype.onLabelTap_=function(g){g.target.tagName!="A"&&(_.S3(this.hostElement).querySelector("#checkbox").checked=!_.S3(this.hostElement).querySelector("#checkbox").checked)};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],pA.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],pA.prototype,"data",void 0);_.m([_.e3({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],pA);
_.I(pA,"yt-boolean-form-field-v2-renderer",function(){if(dB$===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;vwz===void 0&&(vwz=document.createElement("template"));var B=vwz;E.call(r,B.content.cloneNode(!0),g.content.firstChild);dB$=g}g=dB$;return g});var YN=function(){var g=_.a.apply(this,arguments)||this;g.canShowAdditionalDetailCheckbox=!1;g.canShowCheckbox=!1;g.keepDropdownFocusedAfterSelection=!0;return g};
_.f(YN,_.a);YN.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}}}}};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],YN.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],YN.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],YN.prototype,"canShowAdditionalDetailCheckbox",void 0);_.m([_.K(),_.L("design:type",Object)],YN.prototype,"canShowCheckbox",void 0);_.m([_.K(),_.L("design:type",Object)],YN.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.m([_.e3({is:"yt-report-form-modal-content",disableElementRegistration:!0})],YN);
_.I(YN,"yt-report-form-modal-content",function(){if(yTt===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;ZKF===void 0&&(ZKF=document.createElement("template"));var B=ZKF;E.call(r,B.content.cloneNode(!0),g.content.firstChild);yTt=g}g=yTt;return g},{mode:2});var Td5;var gmt;var RE=function(){var g=_.a.apply(this,arguments)||this;g.submitting=!1;g.submitButtonDisabled=!0;g.command=null;g.canShowCheckbox=!1;g.canShowAdditionalDetailCheckbox=!1;g.canShowNextButton=!1;g.additionalDetailCheckboxChecked=!1;g.refitJob=0;g.keepDropdownFocusedAfterSelection=!0;g.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 g};
_.f(RE,_.a);_.S=RE.prototype;_.S.created=function(){this.refitJob=0};
_.S.attached=function(){this.JSC$18779_scroller&&(this.JSC$18779_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18779_scroller.attached&&typeof this.JSC$18779_scroller.attached==="function"&&this.JSC$18779_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.dataChanged=function(g){g&&(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,g.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),g.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.S.onYtPopupOpened=function(){var g=_.Tw();g&&g.getPlayerPromise().then(function(r){r.pauseVideo()})};
_.S.onYtNavigate=function(g){_.n(g.detail.endpoint,_.UEw)&&(g.stopPropagation(),this.hideReportForm=!0)};
_.S.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.S.onYtServiceRequestCompleted=function(g,r){var E=r.actions;if(E){if(E.length===1&&_.n(E[0],_.D$)){var B;E=((B=_.n(E[0],_.D$))==null?void 0:B.commands)||[]}B=0;for(var w=E.length;B<w;B++)_.n(E[B],_.R1)&&(g.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(E[B]))}if(r.data&&(g=this.get("feedbackResponses",r.data)))for(r=0;r<g.length;r++)if(g[r].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.S.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.S._onDescendantIronResize=function(g){g.stopPropagation();return!1};
_.S.handleReportFormEndpointUpdateAction=function(g){if(g.submitEndpoint){var r=this.command=g.submitEndpoint;r=_.n(r,_.B9D);if(r==null?0:r.additionalDetailCheckboxChecked)r.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else g.submitNavigationEndpoint?(this.command=g.submitNavigationEndpoint,this.toggleSubmitButton(!1)):g.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:g.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;g.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",g));this.refit()};
_.S.handleConfirmDialogCloseAction=function(g){g.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.S.submitButtonDisabledChanged=function(){var g=this.hostElement.parentElement;g&&g.invalidateTabbables&&g.invalidateTabbables()};
_.S.handleModifyReportFormCommand=function(g){g=this.get("action",g);g==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:g==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:g==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:g==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:g==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:g==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.S.updateDialogStyling=function(){var g,r,E,B,w,O=((w=(g=this.data)==null?void 0:(r=g.optionsSupportedRenderers)==null?void 0:(E=r.optionsRenderer)==null?void 0:(B=E.items)==null?void 0:B.length)!=null?w:0)<=2?0:240;_.ua(this.hostElement,{"--yt-report-form-modal-renderer-min-width":O+"px"})};
_.S.toggleSubmitButton=function(g){this.submitButtonDisabled=!g;this.submitButtonDisabled=g};
_.S.computeSubmitButtonData=function(g,r){var E={};_.n(r,_.UEw)?E.navigationEndpoint=r:E.command=r||void 0;g&&g.buttonRenderer&&_.jn.extend(E,g.buttonRenderer);return E};
_.S.computeNextButtonData=function(g,r){var E={};if(!g||!g.buttonRenderer)return E;_.jn.extend(E,g.buttonRenderer);if(!r)return E;if(_.n(r,_.UEw))E.navigationEndpoint=ec5(r);else if(E.command=ec5(r),g=_.n(E.command,_.B9D))g.legalCheckboxChecked=!0;return E};
_.S.computeShowNextButton=function(g,r,E){return!!g&&r&&E};
_.S.refit=function(){var g=this;this.refitJob||(this.refitJob=_.F6.addLowPriorityJob(function(){_.Sh(g.hostElement,"yt-refit");g.refitJob=0}))};
_.S.handleAdditionalDetailCheckboxUpdateAction=function(g){this.additionalDetailCheckboxChecked=g;_.n(this.command,_.B9D).additionalDetailCheckboxChecked=g};
_.hx.Object.defineProperties(RE,{template:{configurable:!0,enumerable:!0,get:function(){if(gmt===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;Td5===void 0&&(Td5=document.createElement("template"));var B=Td5;E.call(r,B.content.cloneNode(!0),g.content.firstChild);gmt=g}g=gmt;return g}}});
RE.prototype.onYtServiceRequestError=RE.prototype.onYtServiceRequestError;RE.prototype.onYtServiceRequestCompleted=RE.prototype.onYtServiceRequestCompleted;RE.prototype.onYtServiceRequestSent=RE.prototype.onYtServiceRequestSent;RE.prototype.onYtNavigate=RE.prototype.onYtNavigate;RE.prototype.onYtPopupOpened=RE.prototype.onYtPopupOpened;_.m([_.P(_.ls.YtOpenPopupBehavior),_.L("design:type",Object)],RE.prototype,"openPopupBehavior",void 0);
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],RE.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],RE.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],RE.prototype,"eventForwardingBehavior",void 0);_.m([_.P(_.f7),_.L("design:type",Object)],RE.prototype,"ironResizableBehavior",void 0);_.m([_.K({observer:"dataChanged"}),_.L("design:type",Object)],RE.prototype,"data",void 0);
_.m([_.K(),_.L("design:type",Object)],RE.prototype,"submitting",void 0);_.m([_.K({observer:"submitButtonDisabledChanged"}),_.L("design:type",Object)],RE.prototype,"submitButtonDisabled",void 0);_.m([_.K(),_.L("design:type",Object)],RE.prototype,"command",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],RE.prototype,"hideReportForm",void 0);_.m([_.K(),_.L("design:type",Object)],RE.prototype,"canShowCheckbox",void 0);
_.m([_.K(),_.L("design:type",Object)],RE.prototype,"canShowAdditionalDetailCheckbox",void 0);_.m([_.K(),_.L("design:type",Object)],RE.prototype,"canShowNextButton",void 0);_.m([_.K(),_.L("design:type",Object)],RE.prototype,"additionalDetailCheckboxChecked",void 0);_.m([_.K(),_.L("design:type",Object)],RE.prototype,"refitJob",void 0);_.m([_.K(),_.L("design:type",Object)],RE.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.m([_.zb("#scroller"),_.L("design:type",Object)],RE.prototype,"JSC$18779_scroller",void 0);_.m([_.ob("yt-popup-opened"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],RE.prototype,"onYtPopupOpened",null);_.m([_.ob("yt-navigate"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],RE.prototype,"onYtNavigate",null);
_.m([_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.XA]),_.L("design:returntype")],RE.prototype,"onYtServiceRequestSent",null);_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.hR]),_.L("design:returntype")],RE.prototype,"onYtServiceRequestCompleted",null);
_.m([_.ob("yt-service-request-error"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],RE.prototype,"onYtServiceRequestError",null);_.m([_.e3({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],RE);var r7$;var Emm;var nA=function(){return _.a.apply(this,arguments)||this};
_.f(nA,_.a);_.S=nA.prototype;_.S.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.S.onVisible=function(){var g,r;(r=_.rM().resolve(_.gM(_.qp)))==null||r.enqueue({label:_.Vp((g=this.data)==null?void 0:g.messageTitle),elementToFocus:this.hostElement})};
_.S.onThumbnailLoaded=function(){_.Sh(this.hostElement,"yt-refit")};
_.S.onDismissTap=function(){_.OS(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.S.computeAlternateIcon=function(g){return g?g==="BACKSTAGE_ARTWORK"?"backstage:artwork":g:null};
_.S.computeFontFamily=function(g){return g==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.S.computeBackgroundStyle=function(g,r){if(g=this.computeBackgroundImage(g,r))if(g=_.Sk(g.thumbnails))return'background-image: url("'+g+'");'};
_.S.computeHasFullHeightImage=function(g){return!(!(g&&g.thumbnails&&g.thumbnails.length>0)||this.modern)};
_.S.isModernStyle=function(g){return g.style==="STYLE_MODERN"};
_.S.computeIcon=function(g,r){if(g&&g.icon)return r?g.iconDark:g.icon};
_.S.computeBackgroundImage=function(g,r){if(g&&g.backgroundImage)return r?g.backgroundImageDark:g.backgroundImage};
_.S.computeLogo=function(g,r){if(g&&g.logo)return r?g.logoDark:g.logo};
_.S.computeShouldShowModernIcon=function(g,r){return g&&!!r};
_.S.getLogoContainerClassName=function(g){return this.logoWithPadding(g)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.S.getLogoImageId=function(g){return this.logoWithPadding(g)?"mealbar-logo-with-padding":"mealbar-logo"};
_.S.logoWithPadding=function(g){var r,E,B;return(g=(r=this.computeLogo(g,this.isDarkTheme))==null?void 0:(E=r.thumbnails)==null?void 0:(B=E[0])==null?void 0:B.height)&&g%31===0?!0:!1};
nA.prototype.onThumbnailLoaded=nA.prototype.onThumbnailLoaded;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],nA.prototype,"ytRendererBehavior",void 0);_.m([_.K({}),_.L("design:type",Object)],nA.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.L("design:type",Boolean)],nA.prototype,"modern",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],nA.prototype,"isDarkTheme",void 0);
_.m([_.K({computed:"computeIcon(data, isDarkTheme)"}),_.L("design:type",Object)],nA.prototype,"icon",void 0);_.m([_.K({computed:"computeLogo(data, isDarkTheme)"}),_.L("design:type",Object)],nA.prototype,"logo",void 0);_.m([_.K({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.L("design:type",Object)],nA.prototype,"backgroundStyle",void 0);_.m([_.K({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.L("design:type",Object)],nA.prototype,"alternateIcon",void 0);
_.m([_.K({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.L("design:type",Boolean)],nA.prototype,"hasFullHeightImage",void 0);_.m([_.K({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.L("design:type",Boolean)],nA.prototype,"useYoutubeSans",void 0);_.m([_.K({computed:"computeShouldShowModernIcon(modern, icon)"}),_.L("design:type",Boolean)],nA.prototype,"shouldShowModernIcon",void 0);
_.m([_.ob("yt-img-shadow-loaded"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],nA.prototype,"onThumbnailLoaded",null);_.m([_.e3({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],nA);
_.I(nA,"yt-mealbar-promo-renderer",function(){if(Emm===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;r7$===void 0&&(r7$=document.createElement("template"));var B=r7$;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Emm=g}g=Emm;return g},{mode:2});var BS4;var w56;var sy=function(){return _.a.apply(this,arguments)||this};
_.f(sy,_.a);_.S=sy.prototype;_.S.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}},"data.acceptButton":{id:"accept-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}}}};
_.S.computeHasButtons_=function(g){return!(!g.dismissButton&&!g.acceptButton)};
_.S.computeStyle_=function(g){return g||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.S.observeImpressionEndpoints_=function(){var g=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(r){r.clickTrackingParams&&delete r.clickTrackingParams;_.q2(g.hostElement,[r])})};
_.S.onTap_=function(){_.OS(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
sy.prototype.observeImpressionEndpoints_=sy.prototype.observeImpressionEndpoints_;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],sy.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],sy.prototype,"ytEventForwardingBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],sy.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],sy.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],sy.prototype,"positionType",void 0);_.m([_.K({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.L("design:type",Boolean)],sy.prototype,"hasButtons_",void 0);_.m([_.K({value:function(){return this.onTap_.bind(this)}}),
_.L("design:type",Function)],sy.prototype,"boundOnTap_",void 0);_.m([_.K({value:{style:"mono-inverse"}}),_.L("design:type",Object)],sy.prototype,"buttonOverride",void 0);_.m([_.Gb("data.promoConfig.impressionEndpoints"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],sy.prototype,"observeImpressionEndpoints_",null);_.m([_.e3({is:"yt-tooltip-renderer",disableElementRegistration:!0})],sy);
_.I(sy,"yt-tooltip-renderer",function(){if(w56===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;BS4===void 0&&(BS4=document.createElement("template"));var B=BS4;E.call(r,B.content.cloneNode(!0),g.content.firstChild);w56=g}g=w56;return g},{mode:2});var S34;var O2D;var U6A={},Md5=(U6A.WEB_REMIX="music.youtube.com",U6A),fA=function(){var g=_.a.apply(this,arguments)||this;g.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return g};
_.f(fA,_.a);_.S=fA.prototype;_.S.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.created=function(){this.embedHost_=Md5[_.Ca("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.S.ready=function(){_.S3(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.S.computeEmbedCode_=function(g,r,E,B,w){if(!g)return"";var O=g.videoId,M=g.fullListId,u=[];g.attributionId&&u.push("si="+g.attributionId);B||u.push("controls=0");E&&Number(r)>0&&u.push("start="+r);M&&(O="videoseries",u.push("list="+M));E="https://"+(w?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+O;g.clipId&&(u.push("clip="+g.clipId),u.push("clipt="+g.clipTiming));r=u.length>0?E+"?"+u.join("&amp;"):E;g.encryptedEmbedConfig&&u.push("embed_config="+JSON.stringify({enc:g.encryptedEmbedConfig}));
u=u.length>0?E+"?"+u.join("&amp;"):E;_.Y("web_sharing_embed_preview_killswitch")?_.S3(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(u,g.previewWidth||854,g.previewHeight||480):(_.fV(this.videoPreviewContainer),_.S3(this.videoPreviewContainer).appendChild(this.buildIframeElement(u)));return this.getEmbedCode_(r,g.width||560,g.height||315)};
_.S.buildIframeElement=function(g){var r=document.createElement("iframe"),E,B;r.width=""+((B=(E=this.data)==null?void 0:E.previewWidth)!=null?B:854);var w,O;r.height=""+((O=(w=this.data)==null?void 0:w.previewHeight)!=null?O:480);_.ey(r,2,g);r.title="YouTube video player";r.frameBorder="0";r.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";r.referrerPolicy="strict-origin-when-cross-origin";r.allowFullscreen=!0;return r};
_.S.computeIsSquareAspectRatio_=function(g){return g.previewHeight&&g.previewWidth?g.previewHeight==g.previewWidth:!1};
_.S.computeShowEmbedOptions_=function(g){return!!g.enablePrivacyModeOptionLabel||!!g.showPlayerControlsOptionLabel};
_.S.getEmbedCode_=function(g,r,E){return'<iframe width="'+r+'" height="'+E+'" src="'+g+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>'};
_.S.handleSignalActionCopyShareEmbedUrl_=function(){_.S3(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.S.handleSetTimestamp_=function(g){this.startAtTimeStamp_=(this.startAtChecked_=g.isSet)?g.timestamp:0};
_.S.closePanel_=function(){_.OS(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.S.onEmbedCode_=function(){_.S3(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.S.onYtPopupClosed_=function(){_.fV(_.S3(this.hostElement).querySelector("#video-preview"))};
_.S.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.n(this.data.actionButtons[0],_.Fd)&&this.ytRendererBehavior.logExplicitClick(_.n(this.data.actionButtons[0],_.Fd))};
fA.prototype.onYtPopupClosed_=fA.prototype.onYtPopupClosed_;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],fA.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],fA.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],fA.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],fA.prototype,"data",void 0);
_.m([_.K({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.L("design:type",String)],fA.prototype,"embedCode_",void 0);_.m([_.K({value:!0}),_.L("design:type",Boolean)],fA.prototype,"isPlayerControlsOptionChecked_",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],fA.prototype,"isPrivacyModeOptionChecked_",void 0);_.m([_.K({value:!1,notify:!0}),_.L("design:type",Boolean)],fA.prototype,"startAtChecked_",void 0);
_.m([_.K({value:0}),_.L("design:type",Number)],fA.prototype,"startAtTimeStamp_",void 0);_.m([_.K({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],fA.prototype,"isSquareAspectRatio_",void 0);_.m([_.zb("#video-preview"),_.L("design:type",HTMLElement)],fA.prototype,"videoPreviewContainer",void 0);_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],fA.prototype,"onYtPopupClosed_",null);
_.m([_.e3({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],fA);
_.I(fA,"yt-sharing-embed-renderer",function(){if(O2D===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;S34===void 0&&(S34=document.createElement("template"));var B=S34;E.call(r,B.content.cloneNode(!0),g.content.firstChild);O2D=g}g=O2D;return g},{mode:2});var q3F={};
q3F.YtUnlimitedFamilyInterstitialBehavior=[_.ls.YtOpenPopupBehavior,_.gN.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(g){g=_.Qm4(_.yP(g),"yt-button-renderer");return g?g.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(g){this.dialogHistory_.push(g)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var g=this.popFromHistory();if(g){var r={openPopupAction:{popupType:"DIALOG",popup:{}}};r.openPopupAction.popup[g.renderer]=g.data;this.showingPreviousDialog_=!0;this.openPopup(r)}},
handleOpenPopupAction_:function(g){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var r=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(B){return!!g.openPopupAction.popup[B]}),E=this.getElementName_();
r&&this.data&&(this.pushToHistory({renderer:E,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(g){if(g=_.n(g,mCM))this.loading=!0,_.OS(this.hostElement,"yt-open-create-family-dialog",[g,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var g=this.hostElement.nodeName.split("-").slice(1).map(function(r){return""+r[0].toUpperCase()+r.slice(1).toLowerCase()}).join("");
return g[0].toLowerCase()+g.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var uh$;var lJt;var $N=function(){return _.a.apply(this,arguments)||this};
_.f($N,_.a);_.S=$N.prototype;_.S.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"footer-button":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0,"footer-button":!0}}}}}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.OS(this.hostElement,"yt-register-create-family-dialog");_.S3(this.hostElement).querySelector("#thumbnail").onShow()};
_.S.fireOnCloseCommand_=function(){var g;((g=this.data)==null?0:g.onCloseCommand)&&_.uq(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.S.onYtServiceRequestSent_=function(g,r){r&&r.endpoint&&_.n(r.endpoint,_.Gn)||(this.loading=!0)};
_.S.onYtServiceRequestCompleted_=function(){var g=this.hostElement.parentElement;g.close&&g.close();this.loading=!1};
_.S.openPopupHandler_=function(g){if(g.detail==this){var r;((r=this.data)==null?0:r.onOpenCommands)&&_.uq(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.S.closePopupHandler_=function(g,r){this.fireOnCloseCommand_();if(r&&r.canceled===!0||r&&r.canceled===!1&&r.confirmed===!1){var E;((E=this.data)==null?0:E.onDismissCommands)&&_.uq(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.S.dataChanged_=function(){this.loading=!1};
$N.prototype.dataChanged_=$N.prototype.dataChanged_;$N.prototype.closePopupHandler_=$N.prototype.closePopupHandler_;$N.prototype.openPopupHandler_=$N.prototype.openPopupHandler_;$N.prototype.onYtServiceRequestCompleted_=$N.prototype.onYtServiceRequestCompleted_;$N.prototype.onYtServiceRequestSent_=$N.prototype.onYtServiceRequestSent_;_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],$N.prototype,"ytEventForwardingBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],$N.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(q3F.YtUnlimitedFamilyInterstitialBehavior),_.L("design:type",Object)],$N.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],$N.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],$N.prototype,"loading",void 0);_.m([_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.XA]),_.L("design:returntype")],$N.prototype,"onYtServiceRequestSent_",null);_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.hR]),_.L("design:returntype")],$N.prototype,"onYtServiceRequestCompleted_",null);
_.m([_.ob("yt-popup-opened"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],$N.prototype,"openPopupHandler_",null);_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],$N.prototype,"closePopupHandler_",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],$N.prototype,"dataChanged_",null);
_.m([_.e3({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],$N);
_.I($N,"yt-unlimited-family-message-interstitial-renderer",function(){if(lJt===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;uh$===void 0&&(uh$=document.createElement("template"));var B=uh$;E.call(r,B.content.cloneNode(!0),g.content.firstChild);lJt=g}g=lJt;return g},{mode:2});var D6m;var omz;var je=function(){return _.a.apply(this,arguments)||this};
_.f(je,_.a);je.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"}}}};
je.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.S3(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(g){g.onShow()});
_.S3(this.hostElement).querySelector("#main-thumbnail").onShow()};
je.prototype.onButtonTap_=function(g){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(g)};
je.prototype.computeMainThumbnailWidth_=function(g){return g&&g.length!==0?72:96};
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],je.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],je.prototype,"ytRendererBehavior",void 0);_.m([_.P(q3F.YtUnlimitedFamilyInterstitialBehavior),_.L("design:type",Object)],je.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],je.prototype,"data",void 0);
_.m([_.K({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.L("design:type",Number)],je.prototype,"mainThumbnailWidth_",void 0);_.m([_.K({value:function(){return this.onButtonTap_.bind(this)}}),
_.L("design:type",Function)],je.prototype,"boundButtonTap_",void 0);_.m([_.e3({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],je);
_.I(je,"yt-unlimited-family-profile-interstitial-renderer",function(){if(omz===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;D6m===void 0&&(D6m=document.createElement("template"));var B=D6m;E.call(r,B.content.cloneNode(!0),g.content.firstChild);omz=g}g=omz;return g},{mode:2});var G6t;var QV$;var AW=function(){var g=_.a.apply(this,arguments)||this;g.sliderAriaValueText_=null;g.selectedIndex_=0;g.messages={PAUSE_SLIDER:_.zn("PAUSE_SLIDER",void 0,"Pause Duration")};return g};
_.f(AW,_.a);_.S=AW.prototype;_.S.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[onButtonTap_]]"}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},properties:{"on-tap":"[[onSecondaryTap_]]"}}}}}};
_.S.onPopupOpened_=function(g){g.detail==this&&_.Y("enable_premium_voluntary_pause")&&(_.OS(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.setDialogData=function(g){this.data=g;this.resetSlider_()};
_.S.dataChanged_=function(){this.data&&this.resetSlider_()};
_.S.onSubmitTap_=function(){if(this.data.confirmCommand){var g=this.data.confirmCommand;_.n(g,_.sHZ)&&_.q2(this.hostElement,[g,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.S.onExitButtonTap_=function(){_.OS(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.S.closePopupHandler_=function(g,r){(r&&r.canceled===!0||r.canceled===!1&&r.confirmed===!1)&&this.handleOnDismissCommands_()};
_.S.onSliderChange_=function(){this.selectedIndex_=_.S3(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.S.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.S.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.S.resetSlider_=function(){if(this.data){var g=this.data.defaultEndOptionIndex||0,r=_.S3(this.hostElement).querySelector("#id-pause-slider");if(r.immediateValue<g)for(;r.immediateValue!=g;)r.increment();else if(g<r.immediateValue)for(;r.immediateValue!=g;)r.decrement();this.selectedIndex_=g;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.S.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.uq(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.S.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.uq(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.S.onYtServiceRequestSent=function(){this.loading=!0};
_.S.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
AW.prototype.onYtServiceRequestCompleted=AW.prototype.onYtServiceRequestCompleted;AW.prototype.onYtServiceRequestSent=AW.prototype.onYtServiceRequestSent;AW.prototype.closePopupHandler_=AW.prototype.closePopupHandler_;AW.prototype.dataChanged_=AW.prototype.dataChanged_;AW.prototype.onPopupOpened_=AW.prototype.onPopupOpened_;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],AW.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],AW.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],AW.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],AW.prototype,"loading",void 0);_.m([_.K(),_.L("design:type",Number)],AW.prototype,"selectIndexMax_",void 0);_.m([_.K(),_.L("design:type",Object)],AW.prototype,"selectedData_",void 0);
_.m([_.K(),_.L("design:type",Object)],AW.prototype,"sliderAriaValueText_",void 0);_.m([_.K({value:function(){return this.onSubmitTap_.bind(this)}}),
_.L("design:type",Function)],AW.prototype,"onButtonTap_",void 0);_.m([_.K({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.L("design:type",Function)],AW.prototype,"onSecondaryTap_",void 0);_.m([_.K(),_.L("design:type",Object)],AW.prototype,"messages",void 0);_.m([_.ob("yt-popup-opened"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],AW.prototype,"onPopupOpened_",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],AW.prototype,"dataChanged_",null);
_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],AW.prototype,"closePopupHandler_",null);_.m([_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.XA]),_.L("design:returntype")],AW.prototype,"onYtServiceRequestSent",null);
_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.hR]),_.L("design:returntype")],AW.prototype,"onYtServiceRequestCompleted",null);_.m([_.e3({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],AW);
_.I(AW,"yt-unplugged-pause-membership-dialog-renderer",function(){if(QV$===void 0){var g=document.createElement("template");_.b(g,'\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>');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;G6t===void 0&&(G6t=document.createElement("template"));var B=G6t;E.call(r,B.content.cloneNode(!0),g.content.firstChild);QV$=g}g=QV$;return g},{mode:2});var zr$;var k6M;var bf=function(){return _.a.apply(this,arguments)||this};
_.f(bf,_.a);bf.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.WK("vcBalanceRenderer")}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],bf.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],bf.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],bf.prototype,"data",void 0);_.m([_.e3({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],bf);
_.I(bf,"yt-vc-offer-layout-header-renderer",function(){if(k6M===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;zr$===void 0&&(zr$=document.createElement("template"));var B=zr$;E.call(r,B.content.cloneNode(!0),g.content.firstChild);k6M=g}g=k6M;return g},{mode:2});var H2g;var p5M;var Y3A;var Rr8;var JW=function(){return _.a.apply(this,arguments)||this};
_.f(JW,_.a);JW.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.hx.Object.defineProperties(JW.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)}}});
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],JW.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],JW.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.FiT.YtTappableItemBehavior),_.L("design:type",Object)],JW.prototype,"ytTappableItemBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],JW.prototype,"data",void 0);
_.m([_.K({reflectToAttribute:!0}),_.W("data.accessibilityText"),_.L("design:type",String),_.L("design:paramtypes",[])],JW.prototype,"ariaLabel",null);_.m([_.K({reflectToAttribute:!0}),_.W("data.style"),_.L("design:type",String),_.L("design:paramtypes",[])],JW.prototype,"vcOfferStyle",null);_.m([_.W("data.style","data.titleText"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],JW.prototype,"showTitleText",null);_.m([_.e3({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],JW);
_.I(JW,"yt-vc-offer-renderer",function(){if(Rr8===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;Y3A===void 0&&(Y3A=document.createElement("template"));var B=Y3A;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Rr8=g}g=Rr8;return g},{mode:2});var Pt=function(){return _.a.apply(this,arguments)||this};
_.f(Pt,_.a);Pt.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}}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Pt.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Pt.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Pt.prototype,"data",void 0);_.m([_.e3({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],Pt);
_.I(Pt,"yt-vc-offer-layout-renderer",function(){if(p5M===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;H2g===void 0&&(H2g=document.createElement("template"));var B=H2g;E.call(r,B.content.cloneNode(!0),g.content.firstChild);p5M=g}g=p5M;return g},{mode:2});var nm$;var sVF;var fJv;var $6$;var tW=function(){return _.a.apply(this,arguments)||this};
_.f(tW,_.a);tW.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}}}}}};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],tW.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],tW.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],tW.prototype,"data",void 0);_.m([_.e3({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],tW);
_.I(tW,"yt-ypc-offers-modal-top-bar-renderer",function(){if($6$===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;fJv===void 0&&(fJv=document.createElement("template"));var B=fJv;E.call(r,B.content.cloneNode(!0),g.content.firstChild);$6$=g}g=$6$;return g},{mode:2});var Ft=function(){return _.a.apply(this,arguments)||this};
_.f(Ft,_.a);Ft.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"}}}}};
Ft.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
Ft.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var g=this.scrollable;g.attached&&typeof g.attached==="function"&&g.attached()};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Ft.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Ft.prototype,"ytRendererstamperBehavior",void 0);_.m([_.zb("#scrollable"),_.L("design:type",Object)],Ft.prototype,"scrollable",void 0);_.m([_.K(),_.L("design:type",Object)],Ft.prototype,"data",void 0);_.m([_.e3({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],Ft);
_.I(Ft,"yt-ypc-offers-modal-renderer",function(){if(sVF===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;nm$===void 0&&(nm$=document.createElement("template"));var B=nm$;E.call(r,B.content.cloneNode(!0),g.content.firstChild);sVF=g}g=sVF;return g},{mode:2});var jV4;var A7m;var ee=function(){return _.a.apply(this,arguments)||this};
_.f(ee,_.a);_.S=ee.prototype;_.S.configureRendererStamper=function(){return{"data.continueButton":{id:"continue-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[bindOnContinueTapped_]]"}}}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.S3(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.S.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.OS(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.S.onYtPopupOpened_=function(g,r){(r==null?void 0:r.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.uq(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.S.onYtPopupClosed_=function(g,r){this.continueButtonTapped||r&&(r.canceled===!0||r.canceled===!1&&r.confirmed===!1)&&this.data.onDismissCommands&&_.uq(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.S.onYtServiceRequestError_=function(g){this.set("showSpinner",!1);_.vX(this.hostElement,g.detail.error.message)};
_.S.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.Y("enable_ypc_spinners")?_.OS(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
ee.prototype.onYtServiceRequestError_=ee.prototype.onYtServiceRequestError_;ee.prototype.onYtPopupClosed_=ee.prototype.onYtPopupClosed_;ee.prototype.onYtPopupOpened_=ee.prototype.onYtPopupOpened_;ee.prototype.onYtServiceRequestCompleted_=ee.prototype.onYtServiceRequestCompleted_;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ee.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],ee.prototype,"ytRendererstamperBehavior",void 0);
_.m([_.K(),_.L("design:type",Object)],ee.prototype,"data",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],ee.prototype,"showSpinner",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],ee.prototype,"continueButtonTapped",void 0);_.m([_.K({value:function(){return this.onContinueTapped_.bind(this)}}),
_.L("design:type",Function)],ee.prototype,"bindOnContinueTapped_",void 0);_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],ee.prototype,"onYtServiceRequestCompleted_",null);_.m([_.ob("yt-popup-opened"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],ee.prototype,"onYtPopupOpened_",null);
_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],ee.prototype,"onYtPopupClosed_",null);_.m([_.ob("yt-service-request-error"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],ee.prototype,"onYtServiceRequestError_",null);_.m([_.e3({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],ee);
_.I(ee,"yt-ypc-upgrade-dialog-renderer",function(){if(A7m===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;jV4===void 0&&(jV4=document.createElement("template"));var B=jV4;E.call(r,B.content.cloneNode(!0),g.content.firstChild);A7m=g}g=A7m;return g},{mode:2});var b28;var J7M;var Wt=function(){return _.a.apply(this,arguments)||this};
_.f(Wt,_.a);Wt.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Wt.prototype.computeHasButtons_=function(g){return!(!g.dismissButton&&!g.confirmButton)};
Wt.prototype.computeStyle_=function(g){return g||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],Wt.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],Wt.prototype,"ytEventForwardingBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],Wt.prototype,"ytRendererstamperBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Wt.prototype,"data",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],Wt.prototype,"positionType",void 0);
_.m([_.K({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.L("design:type",Boolean)],Wt.prototype,"hasButtons_",void 0);_.m([_.K({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.L("design:type",Boolean)],Wt.prototype,"style_",void 0);_.m([_.e3({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],Wt);
_.I(Wt,"yt-bubble-hint-renderer",function(){if(J7M===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;b28===void 0&&(b28=document.createElement("template"));var B=b28;E.call(r,B.content.cloneNode(!0),g.content.firstChild);J7M=g}g=J7M;return g},{mode:2});var P$A;var td5;var CA=function(){var g=_.ys.apply(this,arguments)||this;g.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return g};
_.f(CA,_.ys);_.S=CA.prototype;_.S.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.S.attached=function(){var g=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){g.$.thumbnail.onShow();g.$["header-image"].onShow()})};
_.S.handleCheckBoxUpdateAction_=function(g){this.canShowCheckboxEnabledConfirmButton=g};
_.S.computeUseOverlayForSpinner_=function(g,r){return!!g&&r};
_.S.computeShowSpinner_=function(g,r){return g||!!r};
_.S.fireOnCloseActions_=function(){var g,r=_.U(((g=this.data)==null?void 0:g.onClosedActions)||[]);for(g=r.next();!g.done;g=r.next())this.ytRendererBehavior.resolveCommand(g.value)};
_.S.fireOnOpenCommands_=function(g){var r,E=(r=this.data)==null?void 0:r.onOpenCommands;if(E)for(g.stopImmediatePropagation(),g=_.U(E),r=g.next();!r.done;r=g.next())this.ytRendererBehavior.resolveCommand(r.value)};
_.S.fireOnDismissCommands_=function(g){var r,E=(r=this.data)==null?void 0:r.onDismissCommands;if(E)for(g.stopImmediatePropagation(),g=_.U(E),r=g.next();!r.done;r=g.next())this.ytRendererBehavior.resolveCommand(r.value)};
_.S.openPopupHandler_=function(g){g.detail==this&&this.fireOnOpenCommands_(g)};
_.S.closePopupHandler_=function(g,r){_.US(this,"yt-confirm-dialog-close-action",[r]);this.fireOnCloseActions_();(r&&r.canceled===!0||r&&r.canceled===!1&&r.confirmed===!1)&&this.fireOnDismissCommands_(g)};
_.S.onHeaderImageChanged_=function(){var g;((g=this.data)==null?0:g.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.S.computeHasHeaderImageWidth_=function(g){return g!=void 0};
_.S.computeHasLoadingMessage=function(g){return!!g};
_.S.onHeaderImageWidthChanged_=function(){var g,r=(g=this.data)==null?void 0:g.headerImageWidth;if(r){if(g=1.25*r*2+r,this.$.main.style.width=g+"px",r=this.$.scroller.firstElementChild)r.style.minWidth=g+"px"}else this.$.main.style.width="100%"};
_.S.onThumbnailChanged_=function(){var g;((g=this.data)==null?0:g.thumbnail)?(this.setAttribute("dialog-with-thumbnail",""),this.$.scroller.scrollTarget.style.maxHeight="139px",this.$.thumbnail.onShow()):(this.removeAttribute("dialog-with-thumbnail"),this.$.scroller.scrollTarget.style.maxHeight="none")};
_.S.onYtNavigate_=function(g){g=_.yP(g);g instanceof Node&&_.ON(this.$["confirm-button"]).contains(g)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.S.computePrimaryIsCancel_=function(g){return g};
_.S.computeIsCancelButtonHidden_=function(g){return g.skipCancelButton||!g.cancelButton};
_.S.computeIsCheckboxHidden_=function(g){return!g.checkbox};
_.S.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.S.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.S.onYtServiceRequestCompleted_=function(){var g;((g=this.data)==null?0:g.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.hx.Object.defineProperties(CA,{template:{configurable:!0,enumerable:!0,get:function(){if(td5===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;P$A===void 0&&(P$A=document.createElement("template"));var B=P$A;E.call(r,B.content.cloneNode(!0),g.content.firstChild);td5=g}g=td5;return g}}});
CA.prototype.onYtServiceRequestCompleted_=CA.prototype.onYtServiceRequestCompleted_;CA.prototype.onYtServiceRequestSent_=CA.prototype.onYtServiceRequestSent_;CA.prototype.onThumbnailLoaded_=CA.prototype.onThumbnailLoaded_;CA.prototype.onYtNavigate_=CA.prototype.onYtNavigate_;CA.prototype.onThumbnailChanged_=CA.prototype.onThumbnailChanged_;CA.prototype.onHeaderImageWidthChanged_=CA.prototype.onHeaderImageWidthChanged_;CA.prototype.onHeaderImageChanged_=CA.prototype.onHeaderImageChanged_;
CA.prototype.closePopupHandler_=CA.prototype.closePopupHandler_;CA.prototype.openPopupHandler_=CA.prototype.openPopupHandler_;_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],CA.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],CA.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],CA.prototype,"ytRendererBehavior",void 0);
_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],CA.prototype,"ytEventForwardingBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],CA.prototype,"data",void 0);_.m([_.K({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.L("design:type",Boolean)],CA.prototype,"primaryIsCancel",void 0);_.m([_.K({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.L("design:type",Boolean)],CA.prototype,"isCancelButtonHidden",void 0);
_.m([_.K({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.L("design:type",Boolean)],CA.prototype,"isCheckboxHidden",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],CA.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.m([_.K({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.L("design:type",Boolean)],CA.prototype,"useOverlayForSpinner_",void 0);
_.m([_.K({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.L("design:type",Boolean)],CA.prototype,"showSpinner_",void 0);_.m([_.K({value:!1}),_.L("design:type",Boolean)],CA.prototype,"isActionInProgress_",void 0);_.m([_.K({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.L("design:type",Boolean)],CA.prototype,"hasHeaderImageWidth_",void 0);
_.m([_.K({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.L("design:type",Boolean)],CA.prototype,"hasLoadingMessage",void 0);_.m([_.ob("yt-popup-opened"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],CA.prototype,"openPopupHandler_",null);_.m([_.ob("yt-popup-closed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],CA.prototype,"closePopupHandler_",null);
_.m([_.Gb("data.headerImage"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],CA.prototype,"onHeaderImageChanged_",null);_.m([_.Gb("data.headerImageWidth"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],CA.prototype,"onHeaderImageWidthChanged_",null);_.m([_.Gb("data.thumbnail"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],CA.prototype,"onThumbnailChanged_",null);
_.m([_.ob("yt-navigate"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],CA.prototype,"onYtNavigate_",null);_.m([_.ob("yt-img-shadow-loaded"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],CA.prototype,"onThumbnailLoaded_",null);_.m([_.ob("yt-service-request-sent"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.XA]),_.L("design:returntype")],CA.prototype,"onYtServiceRequestSent_",null);
_.m([_.ob("yt-service-request-completed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,_.hR]),_.L("design:returntype")],CA.prototype,"onYtServiceRequestCompleted_",null);_.m([_.e3({is:"yt-confirm-dialog-renderer",noInjection:!0})],CA);var F3L;var er4;var KA=function(){return _.a.apply(this,arguments)||this};
_.f(KA,_.a);KA.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.S3(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
KA.prototype.computeConfirmButton_=function(g){var r={text:g.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};g.confirmNavigationEndpoint?r.navigationEndpoint=g.confirmNavigationEndpoint:g.confirmServiceEndpoint&&(r.serviceEndpoint=g.confirmServiceEndpoint);return r};
KA.prototype.computeShowTitle_=function(g){return!(g==null||!g.title)};
_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],KA.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],KA.prototype,"data",void 0);_.m([_.K({computed:"computeShowTitle_(data)"}),_.L("design:type",Boolean)],KA.prototype,"showTitle",void 0);_.m([_.e3({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],KA);
_.I(KA,"yt-fancy-dismissible-dialog-renderer",function(){if(er4===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;F3L===void 0&&(F3L=document.createElement("template"));var B=F3L;E.call(r,B.content.cloneNode(!0),g.content.firstChild);er4=g}g=er4;return g});var W3F;var C$M;var xN=function(){var g=_.a.apply(this,arguments)||this;g.spinnerActive=!1;return g};
_.f(xN,_.a);xN.prototype.created=function(){rM4(2201)};
xN.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
xN.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
xN.prototype.onIronOverlayClosed=xN.prototype.onIronOverlayClosed;xN.prototype.onIronOverlayOpened=xN.prototype.onIronOverlayOpened;_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],xN.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.ai),_.L("design:type",Object)],xN.prototype,"tpYtIronOverlayBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],xN.prototype,"data",void 0);_.m([_.K(),_.L("design:type",Object)],xN.prototype,"spinnerActive",void 0);
_.m([_.ob("iron-overlay-opened"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],xN.prototype,"onIronOverlayOpened",null);_.m([_.ob("iron-overlay-closed"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],xN.prototype,"onIronOverlayClosed",null);_.m([_.e3({is:"yt-loading-renderer",disableElementRegistration:!0})],xN);
_.I(xN,"yt-loading-renderer",function(){if(C$M===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;W3F===void 0&&(W3F=document.createElement("template"));var B=W3F;E.call(r,B.content.cloneNode(!0),g.content.firstChild);C$M=g}g=C$M;return g},{mode:2});var K3v;var x6M;var aE=function(){var g=_.a.apply(this,arguments)||this;g.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);g.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);g.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";g.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return g};
_.f(aE,_.a);_.S=aE.prototype;_.S.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.S.onDarkModeToggledAction=function(g){this.isDarkTheme=g};
_.S.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.S.openPopupHandler_=function(g){g.detail===this.hostElement&&this.hostElement.hidden&&_.OS(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.S.onDismissButtonTap_=function(){var g;this.closeOnDismissButton_.has(((g=this.data)==null?void 0:g.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.OS(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.S.onAcceptButtonTap_=function(){var g;this.closeOnAcceptButton_.has(((g=this.data)==null?void 0:g.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.OS(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.S.computeHasHeader_=function(g){return!!g.headerBackgroundImage};
_.S.computeLayoutStyle_=function(g){return g};
_.S.computePopupSize_=function(g){return g};
_.S.computeIconType_=function(g){return g.dialogIcon&&g.dialogIcon.iconType?g.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":g.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":g.dialogIcon.iconType:""};
_.S.computeIsLogo_=function(g){return!!g.dialogIcon&&!!g.dialogIcon.iconType&&(g.dialogIcon.iconType==="YOUTUBE_LOGO"||g.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||g.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.S.computeHasCustomLogo=function(g){return!(g==null||!g.headerForegroundImage)};
_.S.computeCustomLogo=function(g,r){if(g!=null&&g.headerForegroundImage)return g.headerForegroundImageDark?r?g.headerForegroundImageDark:g.headerForegroundImage:g.headerForegroundImage};
_.S.computeHeaderBackgroundImage=function(g,r){if(g!=null&&g.headerBackgroundImage)return r&&(g==null?0:g.headerBackgroundImageDark)?g.headerBackgroundImageDark:g.headerBackgroundImage};
_.S.shouldShowIconContainer=function(g,r){return g&&!r};
_.S.shouldShowNonYouTubeIcon=function(g,r){return!g&&!r};
_.S.getLogoImageId=function(g){var r,E,B;return(g=(r=this.computeCustomLogo(g,this.isDarkTheme))==null?void 0:(E=r.thumbnails)==null?void 0:(B=E[0])==null?void 0:B.height)&&g%31===0?"custom-logo-with-padding":"custom-logo"};
aE.prototype.openPopupHandler_=aE.prototype.openPopupHandler_;aE.prototype.dataChanged_=aE.prototype.dataChanged_;_.m([_.P(_.TR.YtRendererstamperBehavior),_.L("design:type",Object)],aE.prototype,"ytRendererstamperBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],aE.prototype,"ytRendererBehavior",void 0);_.m([_.K(),_.L("design:type",Boolean)],aE.prototype,"isDarkTheme",void 0);
_.m([_.K({computed:"computeCustomLogo(data, isDarkTheme)"}),_.L("design:type",Object)],aE.prototype,"customLogo",void 0);_.m([_.K({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.L("design:type",Object)],aE.prototype,"headerBackgroundImage",void 0);_.m([_.K(),_.L("design:type",Object)],aE.prototype,"data",void 0);_.m([_.K({computed:"computeHasHeader_(data)"}),_.L("design:type",Boolean)],aE.prototype,"hasHeader",void 0);
_.m([_.K({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.L("design:type",Object)],aE.prototype,"layoutStyle",void 0);_.m([_.K({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.L("design:type",Object)],aE.prototype,"popupSize",void 0);_.m([_.K({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],aE.prototype,"hasLogo",void 0);
_.m([_.K({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.L("design:type",Boolean)],aE.prototype,"hasCustomLogo",void 0);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],aE.prototype,"dataChanged_",null);_.m([_.ob("yt-popup-opened"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],aE.prototype,"openPopupHandler_",null);
_.m([_.e3({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],aE);
_.I(aE,"yt-upsell-dialog-renderer",function(){if(x6M===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;K3v===void 0&&(K3v=document.createElement("template"));var B=K3v;E.call(r,B.content.cloneNode(!0),g.content.firstChild);x6M=g}g=x6M;return g},{mode:2});var aJM=_.dG(function(g){return _.G("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.G(_.p,{cond:g.title,then:function(r){return _.G("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},r)}}))},"Fg"),X5$=_.dG(function(g){return _.G("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.G(_.Af,{data:g.closeButton},{buttonViewModel:function(r){return _.G("div",null,_.G(_.MV,{data:r.data}))}}))},"Gg"),NSz=_.dG(function(g){var r=
g.data;
return _.G(_.wW,null,_.G("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.G("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.G(_.p,{cond:function(){return!!r().image&&!!r().title},
then:function(){return _.G(_.vw,{data:function(){return r().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.G("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.G(_.p,{cond:function(){return r().title},
then:function(E){return _.G("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},E)}}),_.G(_.p,{cond:function(){return r().primaryGenre},
then:function(E){return _.G("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},E)}}))),_.G(_.p,{cond:function(){var E=r().description;
return E&&E.length<=150},
then:function(){return _.G("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.G("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return r().description}))}}))},"Hg"),IJv=_.dG(function(g){g=g.infoRows;
var r=_.rM().resolve(_.tE),E=_.Y("enable_displaying_ppn");return _.G("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.G(_.Ra,{each:g},function(B){return _.G("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.G(_.p,{cond:function(){return B.label},
then:function(w){return _.G("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},w)}}),_.G(_.p,{cond:function(){return B.attributedLabel},
then:function(w){return _.G("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.G(_.hf,{text:w,noPreWrap:!0}))}}),_.G(_.p,{cond:function(){return B.value},
then:function(w){return _.G("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},w)}}),_.G(_.p,{cond:function(){return B.attributedValue},
then:function(w){return _.G("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.G(_.hf,{text:w,noPreWrap:!0}))}}))}),_.G(_.p,{cond:function(){return E&&r.clientData.has("post_play_nonce")},
then:function(){return _.G("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.G("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.G("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},r.getData("post_play_nonce")))}}))},"Ig"),m6M=_.dG(function(g){var r=g.data;
return _.G("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.G(aJM,{title:function(){return r().dialogTitle}}),_.G(NSz,{data:r}),_.G(_.p,{cond:function(){return r().infoRow},
then:function(E){return _.G(IJv,{infoRows:E})}}),_.G(X5$,{closeButton:function(){return r().closeButton}}))},"Jg");
m6M.idomCompat=!0;_.BK(m6M,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.cP}});_.BK(_.dG(function(g){var r=g.data;return _.G("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.G(_.vw,{data:function(){return r().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.G("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.G("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.G(_.p,{cond:function(){var E=r().ytLogo;return E?E.iconType:null},
then:function(E){return _.G(_.nh,{icon:E,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.G("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.G("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.G(_.hf,{text:function(){return r().title}})),_.G("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.G(_.hf,{text:function(){return r().body}})),_.G("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.G(_.hf,{text:function(){return r().verifyStateText}}))),
_.G("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.G("div",null,_.G(_.Af,{data:function(){return r().dismissButton}},{buttonViewModel:_.MV})),_.G("div",null,_.G(_.Af,{data:function(){return r().linkParentButton}},{buttonViewModel:_.MV})))))},"Kg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.cP}});var c7g=_.dG(function(g){var r=g.data;g=_.Zo(function(){return r().agreements},[]);
return _.G("installment-agreements-view-model",{class:_.QY("ytInstallmentAgreementsViewModelHost")},_.G(_.Ra,{each:g},function(E){return _.G("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.G("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.G(_.hf,{text:E.label})),_.G("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.G(_.Af,{data:function(){return E.openButton}},{buttonViewModel:_.MV})))}))},"Lg");
c7g.idomCompat=!0;var i2$=_.dG(function(g){return _.G("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.G("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.G(_.hf,{text:function(){return g.data().inviteMessage}})),_.G("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.G(_.hf,{text:function(){return g.data().attributedAccountSectionHeaderText}})),_.G("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.G(_.Af,{data:function(){return g.data().accountAvatar}},{avatarViewModel:_.sV}),_.G("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.G(_.hf,{text:function(){return g.data().accountName}}),_.G("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.G(_.hf,{text:function(){return g.data().handle}}))),_.G(_.Af,{data:function(){return g.data().trailingButton}},{buttonViewModel:_.MV})),_.G("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.G(_.hf,{text:function(){return g.data().termsOfService}})))},"Mg");var L3m=_.dG(function(g){var r=_.U(_.Y3(function(){var y,OD;return((y=g.data().createPlaylistDialogFormSchema)==null?0:(OD=y.initialValues)==null?0:OD.title)?g.data().createPlaylistDialogFormSchema.initialValues.title:""})),E=r.next().value,B=r.next().value;
r=_.U(_.Y3(function(){g.data();return!1}));
var w=r.next().value,O=r.next().value;r=_.U(_.Y3(function(){g.data();return!1}));
var M=r.next().value,u=r.next().value;r=_.U(_.Y3(function(){var y,OD;return(y=g.data().createPlaylistDialogFormSchema)==null?void 0:(OD=y.initialValues)==null?void 0:OD.visibility}));
var l=r.next().value,Q=r.next().value;r=_.U(_.Y3(function(){g.data();return!1}));
var z=r.next().value,k=r.next().value;r=_.U(_.Y3(function(){var y,OD;return(y=g.data().createPlaylistDialogFormSchema)==null?void 0:(OD=y.initialValues)==null?void 0:OD.isCollaborative}));
var H=r.next().value,R=r.next().value,A=_.VI("div");_.bQ(function(){var y=A.value.querySelector("textarea");y&&(y.value=E())},"OCauEe");
_.Jk(function(){var y;_.UdA((y=g.data().createPlaylistDialogFormSchema)==null?void 0:y.id,{onSubmit:function(){var OD=E();var uB=l(),zS=H(),jV=g.data();OD={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:OD,privacyStatus:uB,videoIds:jV.videoIds,sourcePlaylistId:jV.sourcePlaylistId,params:zS?jV.createPlaylistParamsCollaborationEnabled:jV.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.rM().resolve(_.Er).resolveCommand(OD)},
isValid:function(){return w()&&!M()&&!z()}})});
var J=function(y){if(y!==void 0&&(B(y),!w()&&y.length>0&&O(!0),w())){var OD=l1t(g.data());if(OD){var uB=OD.minLength;OD=OD.maxLength;uB&&y.length<uB?u(!0):OD&&y.length>OD?u(!0):u(!1)}}},e=function(){var y=!(!H()||l()!=="PRIVATE");
k(y)},C=function(y){y!==void 0&&(Q(y),e())},X=function(){if(z())return oaD(g.data())},Z=function(){R(!H());
e()},c=function(){return{validate:function(y){if(w()){var OD=l1t(g.data());
if(OD){var uB=OD.minLength;OD=OD.translations;if(uB&&y.length<uB)return OD==null?void 0:OD.minLengthErrorMessage}}}}},h=function(){var y=l1t(g.data()),OD=y==null?void 0:y.maxLength,uB;
y=y==null?void 0:(uB=y.translations)==null?void 0:uB.maxLengthErrorMessage;if(OD&&y)return{maxChars:OD,errorMessage:y}};
return _.G("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.G("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:A},_.G(_.Af,{data:function(){return g.data().playlistTitle}},{textFormFieldViewModel:function(y){return _.G(_.ykg,{data:y.data,
text:E,onInput:J,validation:c,characterLimit:h})},
textFieldViewModel:function(y){return _.G(_.Zag,{data:y.data,text:E,onInput:J,validation:c,characterLimit:h})}})),_.G("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.G(_.Af,{data:function(){return g.data().playlistVisibility}},{dropdownViewModel:function(y){return _.G(_.Mgz,{data:y.data,
onSelected:C,error:X})}})),_.G(_.p,{cond:function(){return!!g.data().playlistCollaborate},
then:function(){return _.G("div",null,_.G(_.Af,{data:function(){return g.data().playlistCollaborate}},{switchListItemViewModel:function(y){return _.G(_.xkw,{data:y.data,
onTap:Z})}}))}}))},"Ng");var VdD=_.dG(function(g){var r=g.data;return _.G("upsell-offer-table-cell-content-view-model",null,_.G("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.G(_.fa,null,_.G(_.na,{when:function(){return r().iconType}},function(){return _.G("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.G(_.nh,{icon:function(){return r().iconType.toString()}}))}),_.G(_.na,{when:function(){return r().title}},function(){return _.G(_.hf,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return r().title}})}),_.G(_.na,{when:function(){return r().subtitle}},function(){return _.G(_.hf,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return r().subtitle}})}),_.G(_.na,{when:function(){return r().infoText}},function(){return _.G(_.hf,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return r().infoText}})}),_.G(_.na,{when:function(){return r().featureDescription}},function(){return _.G(_.hf,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return r().featureDescription}})}),_.G(_.na,{when:function(){return r().note}},function(){return _.G(_.hf,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return r().note}})}))))},"Og");
VdD.idomCompat=!0;var hrt=_.dG(function(g){var r=g.data;return _.G("upsell-offer-table-cell-view-model",null,_.G("div",{class:_.QY("ytUpsellOfferTableCellViewModelCellWrapper",function(){return r().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.G(_.Af,{data:function(){return r().contents}},{upsellOfferTableCellContentViewModel:VdD})))},"Pg");
hrt.idomCompat=!0;var Z2M=_.dG(function(g){var r=g.data;var E=g.upsellTableIsFirstRow;var B=function(){return(E==null?0:E())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},w=function(){return(E==null?0:E())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.G("ytm-upsell-offer-table-row-view-model",null,_.G("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.G(_.Af,{data:function(){return r().rowHeaderCell}},{upsellOfferTableCellViewModel:function(O){return _.G("div",{class:B},_.G(hrt,{data:O.data}))}}),_.G(_.Af,{data:function(){return r().contentCells}},{upsellOfferTableCellViewModel:function(O){return _.G("div",{class:w},_.G(hrt,{data:O.data}))}})))},"Qg");
Z2M.idomCompat=!0;var y78=_.dG(function(g){var r=g.data;return _.G("ytm-upsell-offer-table-view-model",null,_.G("div",{class:"ytUpsellOfferTableViewModelHost"},_.G("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.G(_.Af,{data:function(){return r().rows}},{upsellOfferTableRowViewModel:function(E,B){return _.G(Z2M,{data:E.data,
upsellTableIsFirstRow:function(){return B()===0}})}}))))},"Rg");
y78.idomCompat=!0;var vm8=_.dG(function(g){var r=_.Zo(g.noPadding,!1),E=function(){var O,M;return(M=(O=g.data().logo.accessibilityData)==null?void 0:O.label)!=null?M:""},B=function(){return g.data().offerTable},w={};
return _.G("upsell-view-model",{class:_.QY("ytUpsellViewModelHost",(w.ytUpsellViewModelHostNoPadding=function(){return r()},w.ytUpsellViewModelHostWide=function(){return B()!==void 0},w))},_.G("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.G(_.p,{cond:function(){return _.iL(g.data().logo)},
then:function(O){return _.G(_.vw,{data:O,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:E})}})),_.G("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.G(_.hf,{text:function(){return g.data().title}})),_.G("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.G(_.Ra,{each:function(){var O;
return(O=g.data().subtitles)!=null?O:[]},
keyBy:"INDEX"},function(O){var M={};return _.G("div",{class:_.QY("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(M.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return B()!==void 0},M))},_.G(_.hf,{text:O}))})),_.G("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.G(_.Ra,{each:function(){var O;
return(O=g.data().benefitInfos)!=null?O:[]},
keyBy:"INDEX"},function(O){return _.G(_.p,{cond:function(){return O().info},
then:function(M){return _.G("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.G(_.nh,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.G(_.hf,{text:M}))}})})),_.G(_.p,{cond:function(){return B()!==void 0},
then:function(){return _.G("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.G(y78,{data:B}))}}),_.G("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.G(_.Ra,{each:function(){var O;
return(O=g.data().legalInfos)!=null?O:[]},
keyBy:"INDEX"},function(O){var M={};return _.G("div",{class:_.QY("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(M.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return B()!==void 0},M))},_.G(_.hf,{text:O}))})))},"Sg");var d6g=_.dG(function(g){var r=g.data;g={};g=(g.ytMiniAppScoreChallengeViewModelScoreRadial=!0,g.ytMiniAppScoreChallengeViewModelDarkScoreRadial=GFA(),g);return _.G("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.G("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return r().title}),_.G("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return r().subtitle}),_.G("div",{class:_.zw(g)},_.G("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return r().score})),_.G("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return r().prompt}))},"Tg");var TSM=function(){this.store=_.V7();this.formId=""};var ghF=_.dG(function(g){function r(u){if(u&&(u=_.n(u,_.HX)))return Object.assign({},u,{isSelected:O()})}
var E=_.U(_.Y3(function(){var u,l;return(l=(u=_.n(g.data().option,_.HX))==null?void 0:u.isSelected)!=null?l:!1})),B=E.next().value,w=E.next().value,O=B;
_.Jk(function(){var u;_.UdA((u=g.data().formSchema)==null?void 0:u.id,{onSubmit:function(){var l=_.rM().resolve(_.Er),Q=!!g.data().selectedCommand,z=!!g.data().unselectedCommand;if(O()){if(Q)var k=g.data().selectedCommand}else z&&(k=g.data().unselectedCommand);k=_.xP(k);r(g.data().option)&&!k?(l="",!Q&&z?l="selected ":Q&&!z&&(l="unselected "),Q=new _.Rj("No "+l+"command found for SelectionListItemFormViewModel"),_.tn(Q)):k&&l.resolveCommand(k)},
isValid:function(){return!0}})});
var M=function(){w(!O())};
_.J5(function(){var u,l,Q=(u=g.data())==null?void 0:(l=u.formSchema)==null?void 0:l.id;Q&&_.SRD()().delete(Q)});
return _.G("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.G("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.G(_.hf,{text:function(){return g.data().paragraph}})),_.G(_.p,{cond:function(){return r(g.data().option)},
then:function(u){return _.G(_.fv,{data:u,isCompact:!0,hideSelectionTextChevron:!0,onTap:M,disableHorizontalPadding:!0})}}))},"Ug");var rGt=_.dG(function(g){var r=g.data;var E=g.disablePadding;var B=g.className;var w=_.VI("yt-dialog-header-view-model"),O=function(){var u=r().imageBanner;a:switch(r().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var l="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:l="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:u,style:l,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},M=function(){return r().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.Jk(function(){var u=function(){_.OS(w.value,"yt-refit-popups-action")},l;
(l=w.value)==null||l.addEventListener("image-loaded",u);_.J5(function(){var Q;(Q=w.value)==null||Q.removeEventListener("image-loaded",u)})});
g={};return _.G("yt-dialog-header-view-model",{el:w,class:_.QY(B,(g.ytDialogHeaderViewModelHost=!0,g.ytDialogHeaderViewModelHostDisablePadding=E,g))},_.G(_.p,{cond:function(){return r().imageBanner},
then:function(){var u={};return _.G("div",{class:_.QY(B,(u.ytDialogHeaderViewModelBanner=!0,u.ytDialogHeaderViewModelBannerFullBleed=M,u)),style:_.Rl({"max-height":function(){return r().assetContainerMaxHeight!==void 0?r().assetContainerMaxHeight+"px":void 0}})},_.G(_.ye,{data:O,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.G(_.p,{cond:function(){return r().headerBlock},
then:function(){return _.G("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.G(_.Af,{data:function(){return r().headerBlock}},{contentPreviewImageViewModel:function(u){return _.G(_.ye,{data:u.data,
notifyOnLoaded:!0})}}))}}),_.G(_.p,{cond:function(){return r().customBanner},
then:function(u){return _.G("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.G(_.Af,{data:u},{avatarStackViewModel:_.$1}))}}),_.G(_.p,{cond:function(){return r().headline},
then:function(u){return _.G("h2",null,_.G(_.hf,{text:u,className:"ytDialogHeaderViewModelText"}))}}))},"Vg");
rGt.idomCompat=!0;var Ehz=_.dG(function(g){var r=_.MLL(function(){return g.data().formId}),E=r.onSubmit,B=r.isValid;
return _.G("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.G(_.Af,{data:function(){return g.data().panelFooter}},{panelFooterViewModel:function(w){return _.G(_.aD,{data:w.data,
disablePadding:!0,disablePrimaryButton:function(){return!B()},
onClickPrimaryButton:function(){E()}})}}))},"Wg");var Bm5=_.dG(function(g){var r=function(){var E,B;return(B=(E=_.n(g.data().rendererContext,_.Gi))==null?void 0:E.label)!=null?B:""};
return _.G("yt-dialog-image-content-view-model",{class:_.QY("ytDialogImageContentViewModelHost",g.className)},_.G(_.p,{cond:function(){return _.iL(g.data().image)},
then:function(E){return _.G(_.vw,{data:E,alt:r,className:"ytDialogImageContentViewModelImage",contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"})}}),_.G(_.hf,{text:function(){return g.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Xg");var Ov5=_.dG(function(g){var r=_.y7(g,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),E=r.elRefCallback;g=r.iconWiz;var B=r.assetWiz,w=r.assetType,O=r.titleWiz,M=r.leadingActionHeaderWiz,u=r.trailingActionHeaderWiz,l=r.headerPosition,Q=r.contentWiz,z=r.buttonLayout,k=r.buttonStyle,H=r.primaryButtonWiz,R=r.secondaryButtonWiz,A=r.contentAlignment,J=r.isFullscreen,e=r.width,C=r.maxHeight,X=r.isHeaderWizDefined,
Z=r.headerWiz,c=r.isFooterWizDefined,h=r.footerWiz;r=_.VI("dialog-layout",function(xc){E==null||E(xc)});
var y=B?function(){return B({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,OD=H?function(){var xc={};
return H({buttonOverrides:function(){return{style:(k==null?void 0:k())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.QY((xc["yt-spec-dialog-layout__dialog-layout-button"]=!0,xc["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(z==null?void 0:z())===0||(z==null?void 0:z())===2},xc))})}:void 0,uB=R?function(){var xc={};
return R({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.QY((xc["yt-spec-dialog-layout__dialog-layout-button"]=!0,xc["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(z==null?void 0:z())===0||(z==null?void 0:z())===2},xc))})}:void 0,zS=function(){return(!!O||!!M||!!u)&&l()===0},jV={},PJ={},At={},XY={};
return _.G("dialog-layout",{el:r,class:_.QY((jV["yt-spec-dialog-layout"]=!0,jV["yt-spec-dialog-layout--dialog-layout-fullscreen"]=J,jV["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!J()},jV["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return C()===1},jV["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(w==null?void 0:w())===1},jV)),
style:function(){return(e==null?void 0:e())!==void 0?"width: "+e+"px;":""}},g?_.G("div",{class:_.QY((PJ["yt-spec-dialog-layout__dialog-layout-icon"]=!0,PJ["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!B&&l()===1},PJ["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return A()===1},PJ))},_.G(g,null)):null,_.G(_.p,{cond:X,
then:function(){return Z?_.G("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.G(Z,null)):null},
else:function(){return _.G(_.wW,null,_.G(_.p,{cond:zS,then:function(){return _.G(wr6,{contentAlignment:A,LeadingActionHeader:M,TrailingActionHeader:u,Title:O,isAboveAsset:!!y})}}),y?_.G("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.G(y,null)):null)}}),_.G("div",{class:_.QY((At["yt-spec-dialog-layout__dialog-layout-container"]=!0,At["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(A==null?void 0:A())===1},At["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!O&&!Z||!!y&&(l==null?void 0:l())===0},At))},_.G(_.p,{cond:function(){return O&&!Z&&(l==null?void 0:l())===1},
then:function(){return _.G(wr6,{contentAlignment:A,LeadingActionHeader:M,TrailingActionHeader:u,Title:O,isAboveAsset:!1})}}),Q?_.G("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.G("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.G(Q,null))):null,_.G(_.p,{cond:c,
then:function(){return h?_.G("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.G(h,null)):null}}),OD||uB?_.G(SvF,{footerClasses:_.QY((XY["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,XY["yt-spec-dialog-layout__dialog-layout-footer"]=!0,XY["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(z==null?void 0:z())===2},XY["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(z==null?void 0:z())===1},XY)),
PrimaryButton:OD,SecondaryButton:uB}):null))},"Yg"),wr6=_.dG(function(g){var r=_.y7(g,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),E=r.contentAlignment,B=r.LeadingActionHeader;g=r.Title;var w=r.TrailingActionHeader,O=r.isAboveAsset,M=r.enableLeadingActionHeader;r={};return _.G("div",{class:_.QY((r["yt-spec-dialog-layout__dialog-header-container"]=!0,r["yt-spec-dialog-layout__dialog-header"]=!0,r["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=O,r["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(E==null?void 0:E())===1&&M()},r))},_.G(_.p,{cond:function(){return M()},
then:function(){return B?_.G("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.G(B,null)):null}}),g?_.G("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.G(g,null)):null,w?_.G("div",null,_.G(w,null)):null)},"Zg"),SvF=_.dG(function(g){var r=g.footerClasses;
var E=g.PrimaryButton;g=g.SecondaryButton;return _.G("div",{class:r},g?_.G(g,null):null,E?_.G(E,null):null)},"$g");var UUL=_.dG(function(g){var r=g.data;return _.G("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.G("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.G(_.Af,{data:function(){return r().avatar}},{avatarViewModel:_.sV})),_.G("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.G(_.hf,{text:function(){return r().title}})),_.G(_.hf,{text:function(){return r().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"ah");var MMg=_.dG(function(g){var r=g.data;return _.G("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.G("div",{class:"ytAccessConfirmationViewModelContent"},_.G(_.Af,{data:function(){var E;return(E=r().avatar)!=null?E:r().dualAvatar}},{dualAvatarViewModel:function(E){return _.G(_.HET,{data:E.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(E){return _.G(_.fO,{data:E.data})}}),_.G("h2",{class:"ytAccessConfirmationViewModelTitle"},_.G(_.hf,{text:function(){return r().title}})),_.G(_.hf,{text:function(){return r().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"bh");var qvA=_.dG(function(g){var r=g.data;var E=void 0;g=_.U(_.Y3(function(){var Q;return((Q=_.n(r().content,_.sBm))==null?void 0:Q.defaultSelectedKey)||""}));
var B=g.next().value,w=g.next().value,O,M=function(){w("");var Q;(Q=E)!=null&&Q.store.dispatch(_.Bs({type:"RESET_COMMAND_MAP"}))};
_.Jk(function(){E=new TSM;window.addEventListener("yt-popup-closed",M)});
_.bQ(function(){if(E&&O!==r().formId){var Q=E,z=r();z.formId&&(Q.formId=z.formId,Q.store.dispatch(_.Bs({type:"SET_CURRENT_FORM_ID",payload:{formId:Q.formId}})));(O=r().formId)&&B()&&(Q=E,z={key:B()},z.command&&Q.store.dispatch(MTm(O,z.command)))}},"k6b6Qe");
_.J5(function(){window.removeEventListener("yt-popup-closed",M)});
var u=function(Q,z,k){z.key&&k&&z.key!==B()&&(w(z.key),E&&z.command&&E.store.dispatch(MTm(k,z.command)))},l=function(){if(_.n(r().content,_.sBm))return!(B==null?0:B())};
return _.G("yt-dialog-view-model",{class:_.QY("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.G(Ov5,{headerWiz:function(){return _.G("span",{skip:!0},_.G(_.Af,{data:function(){return r().header}},{dialogHeaderViewModel:function(Q){return _.G(rGt,{data:Q.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!r().header},
contentWiz:function(){return _.G("span",{skip:!0},_.G(_.Af,{data:function(){return r().customContent?r().customContent:r().content}},{basicContentViewModel:_.qwD,
createPlaylistDialogFormViewModel:L3m,collaborativePlaylistInviteMessageViewModel:i2$,miniAppScoreChallengeViewModel:d6g,radioButtonGroupViewModel:function(Q){var z=Q.data;return _.G(_.Sr6,{data:z,selectedKey:B,onSelected:u,groupName:function(){return z().formId}})},
selectionListItemFormViewModel:ghF,upsellViewModel:function(Q){return _.G(vm8,{data:Q.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:UUL,installmentAgreementsViewModel:c7g,accessConfirmationViewModel:MMg,listViewModel:function(Q){return _.G(_.LWb,{data:Q.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:Bm5}))},
footerWiz:function(){return _.G("span",{skip:!0},_.G(_.Af,{data:function(){return r().footer}},{panelFooterViewModel:function(Q){return _.G(_.aD,{data:Q.data,
disablePadding:!0,disablePrimaryButton:l})},
formPanelFooterViewModel:Ehz,formFooterViewModel:function(Q){return _.G(_.LRt,{data:Q.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!r().footer}}))},"ch");
qvA.idomCompat=!0;_.BK(qvA,"yt-dialog-view-model",{props:{data:_.cP},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var ufz=_.dG(function(g){var r=g.data;g={};return _.G("yt-panel-header-view-model",{class:_.QY("yt-panel-header-view-model-wiz",(g["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!r().shouldHideDivider},g["yt-panel-header-view-model-wiz--compact"]=function(){return!!r().subtitle},g))},_.G("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.G(_.p,{cond:function(){return r().title},
then:function(E){return _.G(_.hf,{text:E,className:"yt-panel-header-view-model-wiz__title"})}}),_.G(_.p,{cond:function(){return r().subtitle},
then:function(E){return _.G(_.hf,{text:E,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.G("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.G(_.Af,{data:function(){return r().trailingButtons}},{buttonViewModel:function(E){return _.G(_.MV,{data:E.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"dh");
ufz.idomCompat=!0;var l7g=_.dG(function(g){var r=_.HK(function(O){var M;if((M=g.skipContentClick)==null?0:M.call(g))return!1;g.onContentWrapperClick(O);return!0}),E,B,w;
return _.G("div",{class:_.QY("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return g.isAnimating()?"transform: translateY("+g.currentY()+"px);transition: 0.2s":""}},(E=g.header)==null?void 0:E.call(g),_.G("div",{id:g.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.Rl({"max-height":(0,_.nv)(g.maxHeightForContentWrapper)}),"on:scroll":Hyv(g.onScroll),"on:touchmove":Hyv(function(O){return void O.stopPropagation()})},_.G("div",{el:{onRender:g.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":r},(B=g.body)==null?void 0:B.call(g))),(w=g.footer)==null?void 0:w.call(g))},"eh");
l7g.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var DU8=_.dG(function(g){var r=_.Zo(g.leadingLabel),E=_.Zo(g.trailingLabel),B=_.Zo(g.footerButtonType),w=function(){return r()||E()||g.hasPrimaryButton()||g.hasSecondaryButton()},O={},M=_.QY("yt-spec-bottom-sheet-layout__primary-button",(O["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return B()===0&&g.hasPrimaryButton()},O["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return B()===1&&g.hasPrimaryButton()},O["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return B()===2&&g.hasPrimaryButton()},O["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return B()===3&&g.hasPrimaryButton()},O));
O={};var u=_.QY("yt-spec-bottom-sheet-layout__secondary-button",(O["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return B()===1&&g.hasSecondaryButton()},O["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return B()===2&&g.hasSecondaryButton()},O["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return B()===3&&g.hasPrimaryButton()},O));
return _.G(_.p,{cond:g.hasFooterOverride,then:function(){var l;return _.G(_.wW,null,(l=g.footerOverride)==null?void 0:l.call(g))},
else:function(){return _.G(_.p,{cond:w,then:function(){return _.G("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.G(_.p,{cond:function(){return r()||E()},
then:function(){var l={};return _.G("div",{class:_.QY("yt-spec-bottom-sheet-layout__footer-label-wrapper",(l["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!g.hasPrimaryButton()},l))},_.G(_.p,{cond:r,
then:function(){return _.G("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},r)}}),_.G(_.p,{cond:E,
then:function(){return _.G("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},E)}}))}}),_.G(_.p,{cond:function(){return g.hasPrimaryButton()||g.hasSecondaryButton()},
then:function(){var l={};return _.G("div",{class:_.QY("yt-spec-bottom-sheet-layout__footer-button-wrapper",(l["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.h3T,l))},_.G(_.p,{cond:function(){return g.hasSecondaryButton()&&B()!==0},
then:function(){var Q;return _.G("div",{class:u},(Q=g.secondaryButton)==null?void 0:Q.call(g))}}),_.G(_.p,{cond:g.hasPrimaryButton,
then:function(){var Q;return _.G("div",{class:M},(Q=g.primaryButton)==null?void 0:Q.call(g))}}))}}))}})}})},"fh");
DU8.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var ohL=_.dG(function(g){var r=_.Zo(g.title),E=_.Zo(g.subtitle);return _.G("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:g.headerId,"on:touchstart":_.HK(function(B){var w;(w=g.touchstart)==null||w.call(g,B);return!1}),
"on:touchmove":_.HK(function(B){var w;(w=g.touchmove)==null||w.call(g,B);return!1}),
"on:touchend":_.HK(function(B){var w;(w=g.touchend)==null||w.call(g,B);return!1})},_.G("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.G(_.p,{cond:g.hasHeaderOverride,
then:function(){var B;return _.G(_.wW,null,(B=g.headerOverride)==null?void 0:B.call(g))},
else:function(){var B={};return _.G("div",{class:_.QY((B["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,B["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=r,B))},_.G("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.G(_.p,{cond:r,then:function(){return _.G(_.wW,null,_.G("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},r),_.G(_.p,{cond:E,then:function(){return _.G("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
E)}}))}})),_.G(_.p,{cond:function(){return r()&&g.hasActionHeader()},
then:function(){var w;return _.G("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(w=g.actionHeader)==null?void 0:w.call(g))}}))}}))},"gh");
ohL.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.dG(function(g){function r(y){if(!C&&typeof MutationObserver!=="undefined"){var OD={childList:!0};"MutationObserver"in window&&(C=new MutationObserver(E.bind(void 0,y)),C.observe(y,OD))}}
function E(y){typeof C!=="undefined"&&(X["content-wrapper"]===void 0&&(X["content-wrapper"]=y.children[0].clientHeight),R(X["content-wrapper"]),H()>A()||J(H()))}
function B(){k(window.innerHeight);H()>A()||J(H());Z.isFullScreen[0]()&&H()>A()?c().dispatch("Snap To Full Screen",{maxHeight:e()}):c().dispatch("Snap To Neutral Position",{maxHeight:A()})}
function w(y){document.body.style.overscrollBehavior="none";y.preventDefault();c().dispatch("Touch Start",{event:y})}
function O(y){y.preventDefault();c().dispatch("Touch Move",{event:y,contentScrollable:H()>A(),fullContentWrapperHeight:e(),contentWrapperHeight:A(),contentHeightMap:X,contentWrapperId:"content-wrapper",header:YPz(g),footer:YPz(g)})}
function M(){document.body.style.overscrollBehavior="";Z.isFullScreen[0]()?Z.currentY[0]()>=60?c().dispatch("Snap To Neutral Position",{maxHeight:A()}):c().dispatch("Snap To Full Screen",{maxHeight:e()}):Z.currentY[0]()>=60?u():Z.currentY[0]()<=-60&&H()>A()?c().dispatch("Snap To Full Screen",{maxHeight:e()}):c().dispatch("Snap To Neutral Position",{maxHeight:A()})}
function u(){c().dispatch("Close Sheet",{clientHeight:z(),maxHeight:0});setTimeout(function(){poM()},250)}
var l=_.U(_.Dk(window.innerHeight,void 0,"NWeFS")),Q=l.next().value;l=l.next().value;var z=Q,k=l;l=_.U(_.Dk(0,void 0,"oxfm4"));Q=l.next().value;l=l.next().value;var H=Q,R=l;l=_.U(_.Y3(function(){var y=YPz(g);return.6*z()-QJM(y)-z8t(y)}));
Q=l.next().value;l=l.next().value;var A=Q,J=l,e=function(){var y=YPz(g);return z()-QJM(y)-z8t(y)-24-24},C=null,X={},Z={initialY:_.Dk(0,void 0,"cYBE5c"),
currentY:_.Dk(0,void 0,"RndqHc"),isAnimating:_.Dk(!1,void 0,"vO9DVd"),isFullScreen:_.Dk(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.Y3(A)},c=function(){var y=null;return function(){if(!y){var OD={initialY:Z.initialY[0](),currentY:Z.currentY[0](),isAnimating:Z.isAnimating[0](),isFullScreen:Z.isFullScreen[0](),maxHeightForContentWrapper:Z.maxHeightForContentWrapper[0]()};y=kFM(OD)}return y}}();
_.Jk(function(){window.addEventListener("resize",B);c().subscribe(function(y){Z.initialY[1](y.initialY);Z.currentY[1](y.currentY);Z.isAnimating[1](y.isAnimating);Z.isFullScreen[1](y.isFullScreen);Z.maxHeightForContentWrapper[1](y.maxHeightForContentWrapper)})});
_.J5(function(){window.removeEventListener("resize",B);C&&(C.disconnect(),C=null)});
var h=_.QY({"bottom-sheet-content-without-icon":function(){var y;return!((y=g.shouldShowIcons)==null?0:y.call(g))}});
return _.G("bottom-sheet-layout",null,_.G(l7g,{contentWrapperId:"content-wrapper",isAnimating:function(){return Z.isAnimating[0]()},
currentY:function(){return Z.currentY[0]()},
maxHeightForContentWrapper:function(){return Z.maxHeightForContentWrapper[0]()},
shouldShowIcons:g.shouldShowIcons,skipContentClick:g.skipContentClick,onScroll:function(){var y=document.getElementById("header-wrapper"),OD=document.getElementById("content-wrapper");if(y&&OD){var uB={};uB=(uB["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,uB["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,uB);y.className=OD.scrollTop>1?_.zw(uB):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:poM,contentWrapperEl:function(y){r(y);requestAnimationFrame(function(){E(y)})},
header:function(){return _.G(ohL,{touchstart:w,touchmove:O,touchend:M,title:g.headerTitle,subtitle:g.headerSubtitle,headerId:"header-wrapper",headerOverride:g.headerFn,hasHeaderOverride:g.hasHeaderFn,actionHeader:g.headerActionHeader,hasActionHeader:g.hasHeaderActionHeader})},
footer:function(){return _.G(DU8,{footerButtonType:g.footerButtonType,leadingLabel:g.footerLeadingLabel,trailingLabel:g.footerTrailingLabel,primaryButton:g.footerPrimaryButton,hasPrimaryButton:g.hasFooterPrimaryButton,secondaryButton:g.footerSecondaryButton,hasSecondaryButton:g.hasFooterSecondaryButton,footerOverride:g.footerFn,hasFooterOverride:g.hasFooterFn})},
body:function(){return _.G(_.p,{cond:g.hasContentFn,then:function(){var y;return _.G("div",{class:h},(y=g.contentFn)==null?void 0:y.call(g))}})}}))},"hh").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var Gqz=_.dG(function(g){var r=_.rM().resolve(_.Hh);return _.G("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":_.HK(function(){return void r.closeSheet()})},_.G(_.p,{cond:function(){return!!g.header},
then:function(){return _.G("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},g.header())}}),_.G(_.p,{cond:function(){return!!g.content},
then:function(){return _.G("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},g.content())}}),_.G(_.p,{cond:function(){return!!g.footer},
then:function(){return _.G("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},g.footer())}}))},"ih");
Gqz.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var QkL=_.dG(function(g){g=g.data;var r=_.VI("yt-sheet-view-model",function(B){if(_.Y("web_focus_first_element_sheet")||!_.Y("sheet_focus_first_killswitch"))return B.addEventListener("focus",function(){o5M(B)}),function(){B.removeEventListener("focus",function(){o5M(B)})}}),E={};
return _.G("yt-sheet-view-model",{"on:mousedown":_.HK(function(B){_.Y("sheet_focus_first_killswitch")||B.currentTarget!==B.target&&B.preventDefault()}),
"on:focusin":_.HK(function(){_.Y("sheet_focus_first_killswitch")||o5M(r.value)}),
class:_.QY("yt-sheet-view-model-wiz",(E["yt-sheet-view-model-wiz--contextual"]=!0,E["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.Y("web_disable_backdrop_filter"),E)),el:r,tabindex:-1},_.G(_.p,{cond:g,then:function(B){return _.G(Gqz,{header:function(){return _.G(_.Af,{data:function(){return B().header}},{panelHeaderViewModel:ufz})},
content:function(){return _.G(_.Af,{data:function(){return B().content}},{listViewModel:function(w){return _.G(_.LWb,{data:w.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:vm8,miniAppScoreChallengeViewModel:d6g})},
footer:function(){return _.G(_.Af,{data:function(){return B().footer}},{panelFooterViewModel:_.aD})}})}}))},"jh");
QkL.idomCompat=!0;_.BK(QkL,"yt-sheet-view-model",{props:{data:_.cP}});var kqz=_.dG(function(g){var r=function(){var E;return(E=g.data().enableDebuggingFeatures)!=null?E:!1};
return _.G("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.G(_.Ra,{each:function(){var E;return(E=g.data().stickers)!=null?E:[]}},function(E){return _.G(zkv,{data:function(){return E},
debugMode:r})}))},"kh"),zkv=_.dG(function(g){var r=_.y7(g,{debugMode:!1}).debugMode,E=_.Zo(function(){var l;
return(l=g.data().region)==null?void 0:l.w},0),B=_.Zo(function(){var l;
return(l=g.data().region)==null?void 0:l.h},0),w=_.Zo(function(){var l;
return(l=g.data().region)==null?void 0:l.x},0),O=_.Zo(function(){var l;
return(l=g.data().region)==null?void 0:l.y},0),M=_.HK(function(){var l=g.data().onTap;
l&&_.I3(l)}),u={};
return _.G("div",{class:_.QY("ytStoriesStickerLayerViewModelSticker",(u.ytStoriesStickerLayerViewModelDebugMode=r,u)),style:_.Rl({width:function(){return 100*E()+"%"},
height:function(){return 100*B()+"%"},
left:function(){return 100*w()+"%"},
top:function(){return 100*O()+"%"},
"flex-direction":function(){return R8A(g.data().flexDirection)},
"justify-content":function(){return na5(g.data().justifyContent)},
"align-items":function(){return sJ$(g.data().alignItems)}}),
"on:click":M},_.G(_.Af,{data:function(){return g.data().button||g.data().toggleButton}},{buttonViewModel:function(l){return _.G(_.MV,{data:l.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(l){return _.G(_.RY,{data:l.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"lh");var prv=_.dG(function(g){var r=function(){return g.data()},E={},B=_.Zo(function(){return r().backgroundColor},0),w=_.Zo(function(){return r().actionButtons},[]),O=_.Zo(function(){return r().stickerLayer},{}),M=function(){var l,Q;
return{animationRef:E,animationConfig:{autoplay:!1,loop:!1,path:(Q=(l=r().foregroundAnimation)==null?void 0:l.url)!=null?Q:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){g.navigateToNextItemOnLottieComplete()}}}},u=function(){var l,Q,z,k,H,R,A,J;
return{animationConfig:{autoplay:(R=(l=r().backgroundAnimation)==null?void 0:(Q=l.settings)==null?void 0:Q.autoplay)!=null?R:!1,loop:(A=(z=r().backgroundAnimation)==null?void 0:(k=z.settings)==null?void 0:k.loop)!=null?A:!1,path:(J=(H=r().backgroundAnimation)==null?void 0:H.url)!=null?J:"",name:"stories_item_background_animation"}}};
_.bQ(function(){if(g.isVisible()){var l;(l=E.lottieEl)==null||l.play();g.animationRef()&&(g.animationRef().lottieEl=E.lottieEl)}else{var Q;(Q=E.lottieEl)==null||Q.stop()}},"Cbnkwd");
return _.G("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.Rl({"background-color":function(){return _.XT(B())+";"}})},_.G("div",{class:"ytStoriesItemViewModelAssetContent"},_.G(_.p,{cond:function(){return!!r().backgroundAnimation},
then:function(){return _.G(_.rN,{data:u,animationName:function(){return u().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.G(_.p,{cond:function(){return!!r().backgroundImage},
then:function(){return _.G(_.vw,{data:function(){return r().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.G(_.p,{cond:function(){return!!r().foregroundAnimation},
then:function(){return _.G(_.rN,{data:M,animationName:function(){return M().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.G(_.p,{cond:function(){return!!r().foregroundImage},
then:function(){return _.G(_.vw,{data:function(){return r().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.G("div",{class:"ytStoriesItemViewModelTopShadow"}),_.G(_.Af,{data:function(){return O()}},{storiesStickerLayerViewModel:kqz})),_.G("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.Rl({"background-color":function(){return _.XT(B())}})},_.G("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.G(_.Ra,{each:w},function(l){return _.G(Hv4,{data:function(){return l},
pauseAutoNavigation:g.pauseAutoNavigation})}))))},"mh"),YvD={style:"overlay",
type:"outline"},Hv4=_.dG(function(g){var r={};return _.G("div",{class:_.QY("ytStoriesItemViewModelActionButton",(r.ytStoriesItemViewModelStretchedActionButton=function(){return g.data().size==="STORIES_BUTTON_SIZE_STRETCH"},r)),
"on:click":_.HK(g.pauseAutoNavigation)},_.G(_.Af,{data:function(){return g.data().button}},{buttonViewModel:function(E){return _.G(_.MV,{data:E.data,
buttonOverrides:YvD})}}))},"nh");_.BK(_.dG(function(g){var r=function(){var OD;return(OD=g.data().startIndex)!=null?OD:0},E=_.U(_.Y3(r)),B=E.next().value,w=E.next().value;
E=_.U(_.Dk(!1,void 0,"O8yPf"));var O=E.next().value,M=E.next().value,u=function(){var OD;return(OD=g.data().storyItems)!=null?OD:[]},l={},Q=function(){return g.data().dismissButton},z=function(){var OD;
return _.n((OD=_.n(Q(),_.nm))==null?void 0:OD.onTap,_.KW)},k=_.VI("div"),H,R,A=!1,J=function(){var OD;
(OD=H)==null||OD.cancel();H=e(B()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});H.onfinish=function(){e(B()).style.width="100%";var uB=_.n(u()[B()],s1g),zS,jV;uB!=null&&uB.foregroundAnimation&&((uB==null?0:(zS=uB.foregroundAnimation)==null?0:zS.url)||(uB==null?0:(jV=uB.foregroundAnimation)==null?0:jV.payload))||(B()!==u().length-1?(w(B()+1),J()):z()&&_.a3(z()))}},e=function(OD){return k.value.children[OD].children[0]},C=function(){for(var OD=0;OD<B();OD++)e(OD).style.width=
"100%"};
E=_.HK(function(){A||(O()?M(!1):(B()===u().length-1&&z()&&_.a3(z()),e(B()).style.width="100%",B()!==u().length-1&&(w(B()+1),J())))});
var X=_.HK(function(){A||(O()?M(!1):(e(B()).style.width="0%",B()!==0?w(B()-1):w(B()),J()))}),Z=function(){M(!0)},c=function(){e(B()).style.width="100%";
B()!==u().length-1?(w(B()+1),J()):z()&&_.a3(z())},h=_.HK(function(){A=!1;
R=setTimeout(function(){M(!0);A=!0},300)}),y=_.HK(function(){clearTimeout(R);
A&&O()&&M(!1)});
_.bQ(function(){if(O()){var OD;(OD=H)==null||OD.pause();var uB;(uB=l.lottieEl)==null||uB.pause()}else{var zS;(zS=H)==null||zS.play();var jV;(jV=l.lottieEl)==null||jV.play()}},"DIHTEd");
_.bQ(function(){C();B()===r()&&J()},"ze5F8b");
_.Jk(function(){C();J()});
_.J5(function(){clearTimeout(R)});
return _.G("yt-stories-viewer-view-model",{class:_.QY("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.G("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.G("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":X,"on:mousedown":h,"on:mouseup":y,"on:mouseleave":y}),_.G("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":E,"on:mousedown":h,"on:mouseup":y,"on:mouseleave":y})),_.G("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},
_.G(_.Af,{data:u},{storiesItemViewModel:function(OD,uB){var zS=OD.data;return _.G(_.p,{cond:function(){return Math.abs(uB()-B())<=1},
then:function(){var jV={};return _.G("div",{class:_.QY("ytStoriesViewerViewModelStoryItem",(jV.ytStoriesViewerViewModelActiveStoryItem=function(){return uB()===B()},jV))},_.G(prv,{data:zS,
pauseAutoNavigation:Z,navigateToNextItemOnLottieComplete:c,isVisible:function(){return uB()===B()},
animationRef:l}))}})}})),_.G("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:k},_.G(_.Ra,{each:u},function(){return _.G("div",{class:"ytStoriesViewerViewModelProgressBar"},_.G("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.G("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.G(_.Af,{data:Q},{buttonViewModel:_.MV})))},"oh"),"yt-stories-viewer-view-model",{props:{data:_.cP}});_.BK(_.dG(function(g){var r=g.data;var E=_.VI("yt-gen-ai-feedback-form-view-model"),B=[];return _.G("yt-gen-ai-feedback-form-view-model",{el:E,class:"ytGenAiFeedbackFormViewModelHost"},_.G(_.hf,{text:function(){return r().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.G("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.G(_.Af,{data:function(){return r().feedbackChips}},{toggleButtonViewModel:function(w){var O=w.data;
return _.G(_.RY,{data:O,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(M){var u=O();u=_.n(u,_.sg);u=_.n(u==null?void 0:u.defaultButtonViewModel,_.nm).trackingParams;M?B.push(u):(M=B.indexOf(u),M>-1&&B.splice(M,1))}})}})),_.G(_.hf,{text:function(){return r().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.G("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.G(_.Af,{data:function(){return r().submitButton}},{buttonViewModel:function(w){return _.G(_.MV,{data:w.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){f16(E.value,B,r().uniqueId)}})}}),_.G(_.Af,{data:function(){return r().moreFeedbackButton}},{buttonViewModel:function(w){return _.G(_.MV,{data:w.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"ph"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.cP},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var Xt=function(){return _.a.apply(this,arguments)||this};
_.f(Xt,_.a);Xt.prototype.created=function(){rM4(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(IW4);var g=_.rM().resolve(_.Nl$);g&&(g.container=this.ytPopupContainerBehavior);if(g=_.rM().resolve(_.Hh))g.container=this.ytPopupContainerBehavior;if(g=_.rM().resolve(_.pj)){var r=this.ytPopupContainerBehavior;g.containerWasInjected?_.el(Error("ij")):g.container=r}};
Xt.prototype.ensurePopupBelowPlayer=function(g,r){var E=_.rM().resolve(_.gM(_.vK));if(!E||!E.isOnWatch()||!_.Tw())return!1;E=E.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.ny().height>E+this.getPopupHeight(g,r)?(g.style.top="auto",g.style.bottom="0px"):(g.style.top=E+"px",g.style.bottom="auto");return!0};
Xt.prototype.getPopupHeight=function(g,r){r&&(g.cachedPopupHeight=0);if(!g.cachedPopupHeight){r=0;var E=g.clientHeight,B=window.getComputedStyle(g);r+=parseInt(B.marginTop,10);r+=parseInt(B.marginBottom,10);g.cachedPopupHeight=E+r}return g.cachedPopupHeight};
Xt.prototype.getElement=function(g){return document.createElement(g)};
_.m([_.P(UBL.YtPopupContainerBehavior),_.L("design:type",Object)],Xt.prototype,"ytPopupContainerBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],Xt.prototype,"ytComponentBehavior",void 0);_.m([_.N({disableElementRegistration:!0,is:"ytd-popup-container"})],Xt);
_.I(Xt,"ytd-popup-container",function(){if(d7m!==void 0)return d7m;var g=document.createElement("template");_.b(g,"\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");g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);return d7m=g},{mode:1});var RkF;var nhv={};nhv.YtLogYpcFlowCommandsBehavior=[_.gN.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(g){_.n(g,Ic8)&&(g=_.n(g,Ic8))&&(g.serializedTransactionFlowLoggingParams?_.j9X(g.serializedTransactionFlowLoggingParams):g.serializedYpcCancelFlowLoggingParams?(g=g.serializedYpcCancelFlowLoggingParams)&&_.PQ("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",g):g.serializedYpcResumeFlowLoggingParams?(g=g.serializedYpcResumeFlowLoggingParams)&&_.PQ("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",g):g.serializedYpcPauseFlowLoggingParams?(g=g.serializedYpcPauseFlowLoggingParams)&&
_.PQ("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",g):g.serializedYpcRefundFlowLoggingParams?(g=g.serializedYpcRefundFlowLoggingParams)&&I85("YPC_EVENT_TYPE_START",g):g.serializedYpcDeactivateFlowLoggingParams?(g=g.serializedYpcDeactivateFlowLoggingParams)&&_.PQ("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",g):g.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(g=g.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.PQ("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",g))},
handleLogYpcFlowDismiss_:function(g){_.n(g,Ny4)&&(g=_.n(g,Ny4),g.serializedTransactionFlowLoggingParams?_.Ail(g.serializedTransactionFlowLoggingParams):g.serializedYpcCancelFlowLoggingParams?(g=g.serializedYpcCancelFlowLoggingParams)&&_.PQ("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",g):g.serializedYpcResumeFlowLoggingParams?(g=g.serializedYpcResumeFlowLoggingParams)&&_.PQ("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",g):g.serializedYpcPauseFlowLoggingParams?(g=
g.serializedYpcPauseFlowLoggingParams)&&_.PQ("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",g):g.serializedYpcRefundFlowLoggingParams&&(g=g.serializedYpcRefundFlowLoggingParams)&&I85("YPC_EVENT_TYPE_CANCEL",g))}}];var skM={};skM.YtCancelRecurrenceBehavior=[_.KB.YtComponentBehavior,_.aGI,{attached:function(){var g=this;aht(this,function(r,E){return g.ypcCancelRecurrenceHandler(r,E)})},
ypcCancelRecurrenceHandler:function(g,r){var E=this;if(!r||!r.ypcCancelRecurrenceEndpoint)return!1;if(!r.ypcCancelRecurrenceEndpoint.params)return _.xF(Error("Bl")),!0;_.m7(this.hostElement);var B=_.Il.instance,w=_.rM().resolve(_.gM(_.eN));B&&_.mJ(B,r)?_.cK(B,r).then(function(O){E.ypcCancelRecurrenceSuccess_(g,r,{data:O})},function(O){E.ypcCancelRecurrenceFailure_(g,r,O)}).thenCatch(function(){_.xF(Error("Cl"))}):w?w.requestDataForServiceEndpoint(r).then(function(O){E.ypcCancelRecurrenceSuccess_(g,
r,O)},function(O){E.ypcCancelRecurrenceFailure_(g,r,O)}).thenCatch(function(){_.xF(Error("Cl"))}):_.xF(Error("Dl"));
return!0},
ypcCancelRecurrenceSuccess_:function(g,r,E){_.cm(this.hostElement);E.data||(E={data:E});E.data&&E.data.actions&&_.uq(this.hostElement,E.data.actions,this.hostElement);E.data.messageRenderer?cnt(r.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(r=r.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.PQ("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",r);_.Sh(g,"yt-service-request-completed",E)},
ypcCancelRecurrenceFailure_:function(g,r,E){_.cm(this.hostElement);cnt(r.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.Sh(g,"yt-service-request-error",{error:E,params:[g,r]})}}];var f7m=function(g,r){_.gl.call(this,r)};
_.f(f7m,R1F);var $Uz={};$Uz.YtCompleteTransactionBehavior=[_.KB.YtComponentBehavior,_.aGI,{attached:function(){var g=this;aht(this,function(r,E){return g.ypcCompleteTransactionHandler(r,E)})},
completeTransaction:function(g,r){var E=this;r={payments_payload:window.btoa(r.integratorData),buybucket_params:g.data.buybucketParams,offer_params:g.data.offerParams};var B=_.rM().resolve(_.eN),w=g.data.completeTransactionEndpoint,O=this.get("ypcCompleteTransactionEndpoint.actions",w);O&&_.uq(this.hostElement,O,this.hostElement);return(O=_.Il.instance)&&_.mJ(O,w)?_.cK(O,w,r).then(function(M){return!M||(M==null?0:M.error)?(M=E.get("data.serializedTransactionFlowLoggingParams",g),_.bV(new Tc("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
M))):{data:M}}).then(function(M){return E.handleCompleteTransactionSuccess_(M,g)},function(){return E.handleCompleteTransactionFailure_(g)}):B.requestDataForServiceEndpoint(w,r).then(function(M){return E.handleCompleteTransactionSuccess_(M,g)},function(){return E.handleCompleteTransactionFailure_(g)})},
handleCompleteTransactionSuccess_:function(g,r){g.data||(g={data:g});if(g.data.messageRenderer)return _.bV(new f7m(g.data.messageRenderer));if(g.data.trackingParams){var E=_.PE(),B=_.JF();E&&B&&_.N2(E,B,_.fW(g.data.trackingParams))}r=this.get("data.serializedTransactionFlowLoggingParams",r);mbz(r);return _.lq(g)},
handleCompleteTransactionFailure_:function(g){g=this.get("data.serializedTransactionFlowLoggingParams",g);_.VP("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",g);return _.bV(new Tc("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",g))},
ypcCompleteTransactionHandler:function(g,r){var E=this;if(!r.ypcCompleteTransactionEndpoint)return!1;if(!r.ypcCompleteTransactionEndpoint.transactionParams)return _.xF(Error("El")),!0;r.ypcCompleteTransactionEndpoint&&r.ypcCompleteTransactionEndpoint.gtmData&&_.$l(r.ypcCompleteTransactionEndpoint.gtmData);var B=_.rM().resolve(_.gM(_.eN));if(B){_.m7(this.hostElement);var w=_.Il.instance;w&&_.mJ(w,r)?_.cK(w,r).then(function(O){return!O||(O==null?0:O.error)?(O=E.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
r),_.bV(new Tc("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",O))):{data:O}}).then(function(O){_.Sh(g,"yt-service-request-completed");
E.ypcCompleteTransactionSuccess_(r,O)},function(){return E.ypcCompleteTransactionFailure_(r)}):B.requestDataForServiceEndpoint(r).then(function(O){_.Sh(g,"yt-service-request-completed");
E.ypcCompleteTransactionSuccess_(r,O)},function(){return E.ypcCompleteTransactionFailure_(r)})}return!0},
ypcCompleteTransactionSuccess_:function(g,r){_.cm(this.hostElement);r.data||(r={data:r});_.OS(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);r.data.messageRenderer||r.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(g):(_.$l('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",g));r.data.actions&&(g=gDm(r.data.actions),r=rj5(r.data.actions),g.length&&_.q2(this.hostElement,
g),r.length&&_.uq(this.hostElement,r,this.hostElement))},
ypcCompleteTransactionFailure_:function(g){_.cm(this.hostElement);_.OS(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",g,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(g,r,E){if(r=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",r))r={serializedTransactionFlowLoggingParams:r},E&&(r.errorType=E),_.Jn(g,r),_.Pf()}}];var jk$={};jk$.YtEndpointHandlerWithYpcBehavior=[_.aGI,_.gN.YtActionHandlerBehavior,[{openWalletDialog:function(g,r,E,B,w,O,M){var u=this,l=_.iW();r=r.replace(/-/g,"+").replace(/_/g,"/");var Q=_.pu().get("hl");_.VAA(_.rx(_.hO),r,l.resolve,w,function(z){O&&O();l.reject(z)},Q,function(z){return u.onServerBackendAnalyticEvent_(g,E,z)},this.onDialogClose_.bind(this),B,M);
return l.promise},
openFixFlowDialog:function(g,r,E,B){g=g.replace(/-/g,"+").replace(/_/g,"/");_.rx(_.hO).openFixFlowDialog(g,r,E,B)},
onDialogClose_:function(){_.OS(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(g,r,E){_.Sh(g,"yt-commerce-action-init-done");r&&_.q2(this.hostElement,[r,{backend_analytics:E}])}}],
_.ls.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(g,r){g=this.get("data.nativeFlowEndpoint",r);r=this.get("data.fallbackEndpoint",r);g?_.q2(this.hostElement,[g]):r&&_.Sh(this.hostElement,"yt-navigate",{endpoint:r})}}],
skM.YtCancelRecurrenceBehavior,$Uz.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 g=this;aht(this,function(r,E,B){return g.handleYPCEndpoint(r,E,B)});
this.ypcRegisterActionMapJobId_=_.fC(_.F6,function(){g.registerActionMap(g.buyFlowActionMap_)})},
detached:function(){var g=this;_.F6.cancelJob(this.ypcRegisterActionMapJobId_);_.fC(_.F6,function(){g.unregisterActionMap(g.buyFlowActionMap_)})},
handleYPCEndpoint:function(g,r,E){var B=r.ypcGetCartEndpoint;if(B){_.tg("commerce_transaction");var w=B.gtmId;w&&_.fB(w);(B=B.gtmData)&&_.$l(B)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",r)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(g,r),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",r)!=null?(this.handleYPCFixInstrumentEndpoint_(g,r),!0):r.ypcPauseSubscriptionCommand?(e8M(this.hostElement,g,r,E),
!0):r.ypcResumeSubscriptionCommand?(K$5(this.hostElement,g,r),!0):r.getPaymentInstrumentsParamsCommand?(PF$(this.hostElement,g,r),!0):r.ypcHandleTransactionEndpoint?(byF(this.hostElement,g,r,E),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(g,r){var E=this;_.F4("ttcr",void 0,"commerce_transaction");r=r.ypcGetCartEndpoint;var B=r.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,w=B.encryptedPurchaseParams,O=B.serializedTransactionFlowLoggingParams,M=B.serializedPaymentsClientParams,u=this.createGetCartResponseFromParams_(B,r.offerParams,O);this.changeButtonState(g,!0);_.Y$(this.openWalletDialog(g,w,B.ypcLogWalletAnalyticDataEndpoint,O,function(){E.changeButtonState(g,!1)},function(){E.changeButtonState(g,
!1)},M).then(function(l){return E.handleBuyFlowCompleteCallback_(g,u,l)},function(){return E.handleOnLoadError(u)}).then(function(l){return void E.handlePostPurchaseSuccess_(g,u,l)},function(l){return void E.handlePostPurchaseError_(l)}),function(){E.changeButtonState(g,!1);
g instanceof Element&&_.Sh(g,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(g,r,E){var B=g.completeTransactionEndpoint,w=g.handleTransactionEndpoint;r={data:{offerParams:window.btoa(r),serializedTransactionFlowLoggingParams:E}};w?r.data.handleTransactionEndpoint=w:r.data.completeTransactionEndpoint=B;g.onCartDismissCommand&&(r.data.onCartDismissCommand=g.onCartDismissCommand);return r},
onGetCartServiceRequestCompleted_:function(g,r){var E=this,B=g.target;if(r&&r.data&&r.data.messageRenderer)_.cm(this.hostElement),this.handleMessageRenderer_(r.data.messageRenderer),this.changeButtonState(B,!1);else{var w=this.get("data.encryptedPurchaseParams",r),O=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",r),M=this.get("data.ypcLogWalletAnalyticDataEndpoint",r),u=this.get("data.serializedPaymentsClientParams",r),l=this.getLoggingParams_(r);if(l||w||O)g.stopPropagation(),_.F4("ttcr",
void 0,"commerce_transaction"),w||_.cm(this.hostElement),this.changeButtonState(B,!1),O?_.OS(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.Ca("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:O}}},this]):w&&(this.changeButtonState(B,!0),g=null,g=this.openWalletDialog(B,w,M,l,function(){_.cm(E.hostElement);E.changeButtonState(B,!1)},function(){_.cm(E.hostElement);
E.changeButtonState(B,!1)},u),_.Y$(g.then(function(Q){return E.handleBuyFlowCompleteCallback_(B,r,Q)},function(){return E.handleOnLoadError(r)}).then(function(Q){return E.handlePostPurchaseSuccess_(B,r,Q)},function(Q){return E.handlePostPurchaseError_(Q)}),function(){E.changeButtonState(B,!1);
_.Sh(B,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(g,r){r&&r.endpoint&&r.endpoint.ypcGetCartEndpoint&&!r.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",r.endpoint.ypcGetCartEndpoint)&&_.uq(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",r.endpoint.ypcGetCartEndpoint)],g.target),_.m7(this.hostElement),this.changeButtonState(g.target,!0))},
onServiceRequestError_:function(g,r){if(r&&r.params&&r.params.length){r=_.U(r.params);for(var E=r.next();!E.done;E=r.next())if((E=E.value)&&E.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",E.ypcGetCartEndpoint)&&_.uq(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",E.ypcGetCartEndpoint)],g.target);_.cm(this.hostElement);this.changeButtonState(g.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(g,r,E){var B=E.integratorData;return B==null||B===""||E.error!=null?(B=this.getLoggingParams_(r),String(E.error)==="-1"?(r.data.onCartDismissCommand&&_.uq(this.hostElement,[r.data.onCartDismissCommand],g),_.bV(new Tc("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",B,!0))):_.bV(new Tc("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",B))):r.data.handleTransactionEndpoint?JOM(this.hostElement,r.data.handleTransactionEndpoint,{payments_payload:B,funds_guarantee_callback_client_data:E.integratorClientCallbackData}):
this.completeTransaction(r,E)},
handlePostPurchaseSuccess_:function(g,r,E){r=E.data;var B=!1,w,O;if(r&&((w=r.command)==null?0:(O=w.commandExecutorCommand)==null?0:O.commands)){var M,u;w=(M=r.command)==null?void 0:(u=M.commandExecutorCommand)==null?void 0:u.commands;for(M=0;M<w.length;M++)if(_.n(w[M],_.RtZ)){B=!0;break}}B||(r&&r.gtmDatas&&r.gtmDatas.length?_.$l(r.gtmDatas[0]):_.$l('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));E.data&&E.data.actions&&(r=gDm(E.data.actions),E=rj5(E.data.actions),r.length&&
_.q2(this.hostElement,r),E.length&&_.uq(this.hostElement,E,g))},
handlePostPurchaseError_:function(g){g&&g.payload&&g.payload.isUserDismiss||_.tn(Error("Gl"))},
handleOnLoadError:function(g){g=this.getLoggingParams_(g);return _.bV(new Tc("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",g))},
getLoggingParams_:function(g){return this.get("data.serializedTransactionFlowLoggingParams",g)},
handleMessageRenderer_:function(g){var r=_.FS(g,"renderer"),E=_.Ca("openPopupConfig");r==="confirmDialogRenderer"&&E&&_.OS(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:E.popupTypeMap[r],popup:g}},this])},
handleYPCFixInstrumentEndpoint_:function(g,r){var E=this,B=r.ypcFixInstrumentEndpoint;r=B.encryptedFixInstrumentParameters;this.logFixFopEvent_(B,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(g,!0);this.openFixFlowDialog(r,function(w,O){E.onFixFlowCompleteCallback_(B,w,O)},function(){return E.changeButtonState(g,!1)},function(){E.changeButtonState(g,!1);
E.logFixFopEvent_(B,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(g,r,E){var B=_.XS("payments.business.integration.scenario.FixInstrument");if(r==B.IntegratorCallbackType.ON_COMPLETE){r="FIX_FOP_EVENT_TYPE_CANCEL";var w=null;E.error!=null?E.error!=B.OnCompleteCallbackError.USER_CANCELLED&&(_.uq(this.hostElement,[g.errorAction],this.hostElement),r="FIX_FOP_EVENT_TYPE_FAILURE",w="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.uq(this.hostElement,[g.successAction],this.hostElement),r="FIX_FOP_EVENT_TYPE_SUCCESS");_.uq(this.hostElement,[g.onFinishAction],
this.hostElement);this.logFixFopEvent_(g,r,w)}},
logFixFopEvent_:function(g,r,E){(g=g.serializedFixFopLoggingParams)?(r={eventType:r,serializedFixFopLoggingParams:g},E!=null&&(r.errorType=E),_.Jn("fixFopFlow",r),_.Pf()):_.tn(Error("Hl"))},
changeButtonState:function(g,r){_.Y("enable_ypc_spinners")&&g&&(g.is==="yt-button-renderer"||g.is==="ytd-button-renderer")&&(g.disabled=r)}}];var AG$=function(g){this.JSC$29023_clientRoot=g;this.feedbackCollectorActionMap={"yt-help-dialog-requested":a1v,"yt-feedback-dialog-requested":x85,"yt-signal-action-help":XoL,"yt-signal-action-send-feedback":NbL,"yt-send-feedback-action":m8D,"yt-user-feedback-endpoint":cOM};_.cf(_.mH.getInstance(),this.feedbackCollectorActionMap,this.JSC$29023_clientRoot)},bv5;var JGm=function(g){this.JSC$29028_clientRoot=g;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":iyM.bind(null,this.JSC$29028_clientRoot),"yt-signal-action-delete-all-downloads":VNF,"yt-signal-action-delete-download":h8z,"yt-signal-action-delete-playlist-download":yOF,"yt-signal-action-install-pwa":EkD,"yt-signal-action-refresh-downloads":gkz,"yt-offline-video-endpoint":wit,"yt-offline-playlist-endpoint":ORv,"yt-update-local-app-setting-command":M3m,"yt-offline-orchestration-action-command":u7D,
"yt-signal-action-undo-delete-download":d88,"yt-local-watch-history-command":okt};_.cf(_.mH.getInstance(),this.downloadManagerActionMap,this.JSC$29028_clientRoot);_.Po.instance=new _.Po},P_8;var Nk=function(){var g=_.a.apply(this,arguments)||this;g.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_"};g.remoteApi_=null;return g};
_.f(Nk,_.a);_.S=Nk.prototype;
_.S.ready=function(){_.Y("polymer_enable_mdx")&&(m9m({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.Y("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.Y("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.Y("enable_cast_short_lived_lounge_token")}),_.Oq("yt-remote-connection-change",this.handleConnectionChange_,this),_.Oq("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=ymM())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.S.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.S.handleConnectionChange_=function(g){(this.mdxConnected=g)?(g=LtM(),!g&&a$M()&&XkL()&&(g={key:"cast-selector-receiver",name:XkL()}),g=g.name):g=null;this.receiverName=g;_.TM(this.remoteApi_);(this.remoteApi_=ymM())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.S.handleReceiverAvailabilityChange_=function(){var g=iB6();a$M()&&_.OC("yt-remote-cast-available")&&g.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=g.length>0};
_.S.handleRemoteQueueChange_=function(){var g=this.currentVideoId_,r=this.currentListId_,E=U4(this.remoteApi_);this.currentVideoId_=E.videoId;this.currentListId_=E.listId;this.currentVideoId_&&_.OS(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.Y("polymer_enable_mdx_queue")?this.currentListId_:null,g,r])};
_.S.handleAddToQueueAction_=function(g){g=_.n(g,fcD);this.remoteApi_&&(g.videoId?this.remoteApi_.addVideo(g.videoId):g.playlistId&&this.remoteApi_.addPlaylist(g.playlistId))};
_.S.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.S.handleInsertInQueueAction_=function(g){g=_.n(g,$C8);this.remoteApi_&&g.videoId&&this.remoteApi_.JSC$17732_insertVideo(g.videoId)};
_.S.handleRemoveFromQueueAction_=function(g){g=_.n(g,j18);this.remoteApi_&&g.videoId&&this.remoteApi_.JSC$17732_removeVideo(g.videoId)};
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],Nk.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K(),_.L("design:type",Object)],Nk.prototype,"appId",void 0);_.m([_.K(),_.L("design:type",Boolean)],Nk.prototype,"mdxConnected",void 0);_.m([_.K(),_.L("design:type",Boolean)],Nk.prototype,"receiverAvailable",void 0);_.m([_.K(),_.L("design:type",Object)],Nk.prototype,"receiverName",void 0);_.m([_.K(),_.L("design:type",Object)],Nk.prototype,"currentVideoId_",void 0);
_.m([_.K(),_.L("design:type",Object)],Nk.prototype,"currentListId_",void 0);_.m([_.e3({is:"yt-mdx-manager",disableElementRegistration:!0})],Nk);_.I(Nk,"yt-mdx-manager",void 0,{mode:2});var tM$;var Fwv;var IE=function(){var g=_.a.apply(this,arguments)||this;g.APP_IDS={ytr:3,ytm:5};g.JSC$18971_timeoutId_=0;g.actionMap={"yt-open-create-family-dialog":"open"};return g};
_.f(IE,_.a);_.S=IE.prototype;_.S.created=function(){rM4(2200)};
_.S.detached=function(){this.observer_&&this.observer_.disconnect()};
_.S.open=function(g,r){var E=this,B=g.serializedYpcFamilyCreateLoggingParams;this.JSC$18971_timeoutId_=setTimeout(this.abort_.bind(this,g.postFlowErrorEndpoint,B),3E4);r&&(this.onReadyCallback_=r);var w=_.S3(this.hostElement).querySelector("#unicorn-iframe");B&&B&&NuA("ypcFamilyCreateFlowStarted",B);_.Q2t("family_creation",function(){var O=_.XS("gapi.family_creation.render");_.XS("gapi.config.update")("iframes/family_creation/url",E.getFamilyCreationUrlWithUnicornParams_());var M=3;g.appId&&g.appId in
E.APP_IDS&&(M=E.APP_IDS[g.appId]);M={authUser:_.Ca("SESSION_INDEX")||0,clientId:M,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.Ca("HL"),initialflow:[4,5,6,7],m:E.isMobile?1:0,onFlowComplete:E.onUnicornFlowComplete_.bind(E,g.postFlowSuccessEndpoint,B),onError:E.onUnicornFlowError_.bind(E,g.postFlowErrorEndpoint,B),onReady:E.onUnicornFlowReady_.bind(E,g.referencePcidParams)};O(w,M)})};
_.S.close=function(){_.S3(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.S.onUnicornFlowComplete_=function(g,r){this.close();r&&r&&NuA("ypcFamilyCreateFlowSucceeded",r);_.Sh(this.hostElement,"yt-navigate",{endpoint:g})};
_.S.onUnicornFlowError_=function(g,r){this.close();r&&NuA("ypcFamilyCreateFlowCancelled",r);_.Sh(this.hostElement,"yt-navigate",{endpoint:g})};
_.S.onUnicornFlowReady_=function(g){var r=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();g&&_.XS("gapi.family_creation.setConfig")(0,g);this.observer_=new MutationObserver(function(){_.S3(r.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.S3(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.S3(this.hostElement).querySelector("#dialog").open()};
_.S.getFamilyCreationUrlWithUnicornParams_=function(){return _.Ca("YTR_FAMILY_CREATION_URL")};
_.S.getCurrentUrl_=function(){return document.location.href};
_.S.abort_=function(g,r){this.clearTimeout_();this.onUnicornFlowError_(g,r)};
_.S.clearTimeout_=function(){clearTimeout(this.JSC$18971_timeoutId_)};
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],IE.prototype,"ytActionHandlerBehavior",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],IE.prototype,"isMobile",void 0);_.m([_.K(),_.L("design:type",Object)],IE.prototype,"onReadyCallback_",void 0);_.m([_.K(),_.L("design:type",Object)],IE.prototype,"observer_",void 0);_.m([_.e3({is:"yt-create-family-dialog",disableElementRegistration:!0})],IE);
_.I(IE,"yt-create-family-dialog",function(){if(Fwv===void 0){var g=document.createElement("template");_.b(g,'\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');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);var r=g.content,E=r.insertBefore;tM$===void 0&&(tM$=document.createElement("template"));var B=tM$;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Fwv=g}g=Fwv;return g},{mode:2});var ekD;var Ww4;var mW=function(){var g=_.a.apply(this,arguments)||this;g.STEP=1;g.BLOCK_ON=80;g.MIN_PROGESS=0;g.MAX_PROGESS=100;return g};
_.f(mW,_.a);_.S=mW.prototype;_.S.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.S.ready=function(){this.progress_=this.MIN_PROGESS;this.hostElement.hidden=!0;this.hostElement.setAttribute("aria-valuemin",String(this.MIN_PROGESS));this.hostElement.setAttribute("aria-valuemax",String(this.MAX_PROGESS));_.rM().addProvider({provide:$Vz,useValue:this})};
_.S.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.S.finish=function(){var g=this;this.progress=this.MAX_PROGESS;Gb8(function(){g.progress==g.MAX_PROGESS&&(g.hostElement.hidden=!0)})};
_.S.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.hx.Object.defineProperties(mW.prototype,{progress:{configurable:!0,enumerable:!0,set:function(g){this.progress_=g;var r="scaleX("+g/this.MAX_PROGESS+")",E=_.S3(this.hostElement).querySelector("#progress").style;E.transform=r;E.webkitTransform=r;this.hostElement.setAttribute("aria-valuenow",String(g))},
get:function(){return this.progress_}}});
_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],mW.prototype,"ytComponentBehavior",void 0);_.m([_.e3({is:"yt-page-navigation-progress",disableElementRegistration:!0})],mW);
_.I(mW,"yt-page-navigation-progress",function(){if(Ww4===void 0){var g=document.createElement("template");_.b(g,'\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');g.content.insertBefore(_.d().content.cloneNode(!0),
g.content.firstChild);var r=g.content,E=r.insertBefore;ekD===void 0&&(ekD=document.createElement("template"));var B=ekD;E.call(r,B.content.cloneNode(!0),g.content.firstChild);Ww4=g}g=Ww4;return g},{mode:2});var C_4=function(){var g=_.U(_.Dk(void 0,void 0,"Ke5SJd"));this.state=g.next().value;this.setState=g.next().value;g=_.U(_.Dk(void 0,void 0,"iQxJ0e"));g.next();g.next()};
C_4.prototype.notify=function(g,r){var E;((E=this.state())==null?void 0:E.anchor)===g&&this.setState({text:r.text,location:r.location,anchor:g,offset:r.offset})};var KwM=new C_4;_.BK(_.dG(function(){return _.G("yt-tooltip",{class:"ytTooltipContainerHost"},function(){var g;return(g=KwM.state())==null?void 0:g.text})},"qh"),"yt-tooltip");var xU5={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"},a7D={"font-size":"12px","font-style":"italic"},XrA={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.HRg=function(){return _.q(function(g){_.Q3(g)})};var NmD=_.dG(function(g){var r=function(){return g.data().subtext},E={};
return _.G("snackbar-view-model",{class:_.QY("snackbarViewModelHost",g.className)},_.G("div",{class:_.QY("snackbarViewModelEngagementBarWrapper",g.className)},_.G(_.p,{cond:function(){return g.data().image},
then:function(B){return _.G(_.vw,{data:B,alt:"",targetHeight:48,targetWidth:86,preserveHeight:!0,preserveWidth:!0,className:"snackbarViewModelImageContainer"})}}),_.G(_.p,{cond:function(){return g.data().imageContent},
then:function(){return _.G("div",{class:"snackbarViewModelAvatarContainer"},_.G(_.Af,{data:function(){return g.data().imageContent}},{decoratedAvatarViewModel:_.fO}))}}),_.G("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.G("div",{class:_.QY((E.snackbarViewModelTitle=!0,E.snackbarViewModelTitleWithSubtext=r,E))},_.G(_.hf,{text:function(){return g.data().text}})),_.G(_.p,{cond:r,
then:function(){return _.G("div",{class:"snackbarViewModelSubtext"},_.G(_.hf,{text:function(){return r()}}))}})),_.G(_.p,{cond:function(){return g.data().buttons},
then:function(){return _.G("div",{class:"snackbarViewModelButtonClassWrapper"},_.G(_.Af,{data:function(){return g.data().buttons}},{buttonViewModel:function(B){return _.G(_.MV,{data:B.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:g.target})}}))}})))},"rh");_.BK(_.dG(function(){function g(C,X,Z){R(C);J(Z);k("in");Q(!0);O=setTimeout(function(){r()},X)}
function r(C){k("out");C&&clearTimeout(O)}
function E(){r(!0)}
function B(C){if(C){var X=C.snackbarViewModel,Z=C.durationMs,c=C.target;Z||(Z=3E3);X&&(C=_.rM().resolve(_.gM(_.wJ)))&&C.enqueue({isOpened:l,open:function(){g(X,Z,c)},
close:r},0)}}
var w=_.hn("snackbar-container"),O=void 0,M=_.U(_.Dk(!1,void 0,"tzcJoc")),u=M.next().value;M=M.next().value;var l=u,Q=M;u=_.U(_.Dk("out",void 0,"ATpOud"));var z=u.next().value,k=u.next().value;u=_.U(_.Dk(void 0,void 0,"vK6Iu"));var H=u.next().value,R=u.next().value;u=_.U(_.Dk(void 0,void 0,"eOyCtc"));var A=u.next().value,J=u.next().value,e=_.HK(function(){if(z()==="out"){Q(!1);R(void 0);J(void 0);var C=_.rM().resolve(_.gM(_.wJ));C&&Gwv(C,0)}});
_.Jk(function(){var C=_.rM().resolve(_.gM(_.lNn));C&&(C.showSnackbarFn=B,C.closeSnackbarFn=E)});
return _.G("snackbar-container",{class:"ytSnackbarContainerHost",el:w},_.G(_.p,{cond:function(){return l()&&!!H()},
then:function(){var C={};return _.G("div",{class:_.QY("ytSnackbarContainerSnackbarContainer",(C.ytSnackbarContainerMobile=!1,C.ytSnackbarContainerPivotBar=function(){var X;return!((X=_.rM().resolve(_.gM(_.Dmm)))==null||!X())},C.ytSnackbarContainerOpened=function(){return l()&&z()==="in"},C.ytSnackbarContainerClosed=function(){return l()&&z()==="out"},C)),
"on:animationend":e},_.G(NmD,{data:function(){return H()},
target:function(){return A()}}))}}))},"sh"),"snackbar-container");_.BK(_.dG(function(){var g=_.Ch(_.zWQ);return _.G("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var r;return(r=g())==null?void 0:r.announcement})},"th"),"yt-ephemeral-actions");var KGD=new Map;var Ye8=function(g,r){var E=this;this.handleError=g;this.logEventInternal=r;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){E.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
Ye8.prototype.logError=function(g){this.handleError(g)};
Ye8.prototype.logEvent=function(g,r){switch(g){case "IDB_DATA_CORRUPTED":_.Y("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",r);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",r);break;case "IS_SUPPORTED_COMPLETED":_.Y("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",r);break;case "QUOTA_EXCEEDED":I7t(this,r);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",r);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":g=Object.assign({},r,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",g)}};
var I7t=function(g,r){_.Dr.getInstance().estimate().then(function(E){E=Object.assign({},r,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:aov(E==null?void 0:E.usage),deviceStorageQuotaMbytes:aov(E==null?void 0:E.quota)});g.logEventInternal("idbQuotaExceeded",E)})};var ct=function(){var g=_.a.apply(this,arguments)||this;g.tabGesturesIsActive=!1;g.deprecateFullerscreenUi=_.Y("web_watch_fullerscreen_deprecation_ui");g.hasDelegation=!1;g.darkerDarkTheme=_.Y("web_darker_dark_theme");g.isFrostedGlassInitialized=!1;g.frostedGlassExp=_.Y("web_frosted_glass");g.mastheadHiddenFocusWithinKillswitch=_.Y("web_masthead_hidden_focus_within_killswitch");g.clientOnlyWizTooltipsEnabled=_.Y("enable_client_only_wiz_tooltips");g.scrollAtTop=!0;g.guideScrollTop=0;g.isTheaterModeSession=
_.Ka("START_IN_THEATER_MODE");g.iMaxTheaterMode=_.Y("web_watch_imax_theater_mode");g.isFullWindowSession=_.Ka("START_IN_FULL_WINDOW_MODE");g.hasCreateFamilyDialog=!1;g.mastheadHeight=56;g.networkStatusManager=new _.id;g.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"};g.dynamicActionMap={"yt-run-attestation-command":function(r){var E=_.GzZ.instance,B=_.n(r,_.fP4);return B?_.Y("use_rta_manager_for_async")&&
Se4()?iW6(E,B,r.clickTrackingParams):cM4(E,B,r.clickTrackingParams):_.bV(Error("ri"))}};
g.isFrostedGlassDisabled=!1;g.isChannelOrPlaylistPage=!1;return g};
_.f(ct,_.a);_.S=ct.prototype;_.S.created=function(){var g=_.rM();_.Y("kevlar_clear_duplicate_pref_cookie")&&_.fC(_.F6,function(){var r=_.zZ.get("PREF");r&&!/f\d=/.test(r)&&(r=_.Sg("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=r?"PREF=null;domain="+r+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.Y("gzip_gel_with_worker")&&_.Jjc();_.Y("jspb_serialize_with_worker")&&PdF();_.Y("web_worker_availability_check")&&x1v();_.Y("nwl_init_killswitch")||b9t().then(function(){_.F6.addLowPriorityJob(LZL)});
this.pageManagerAttachedPromise=_.iW();this.ytdAppBehavior.loadDepsPromise=_.pc([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.VU(this.onThrottledScroll,200,this);_.Y("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);RIz();pXg=!!_.XS("ytappsettings.initialized");ML=_.XS("ytappsettings.previousValue");wft=_.XS("ytappsettings.previousSnapshotTime");pXg||(pXg=!0,Sqz());d2$();TXz();_.W0("DEFERRED_DETACH",
_.Y("kevlar_tuner_should_defer_detach"));_.W0("REUSE_COMPONENTS",!0);_.W0("STAMPER_STABLE_LIST",!0);_.W0("SCHEDULED_LAZY_LIST",!0);_.W0("openPopupConfig",NNM);_.W0("useClickHandler",!0);_.Y("kevlar_shell_cleanup")&&_.F6.addLowPriorityJob(Db5.bind(this,_.ED.caches));_.Ka("IS_SHELL_LOAD")&&_.Pk({shellStartupDurationMs:Math.round((0,_.g2)()-_.$g())});nkg(this.networkStatusManager);_.Y("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",QbM(xU5)),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!",
QbM(a7D)),console.log("%cVisit http://go/join-youtube-web to apply today.",QbM(XrA)));_.oBg(g.resolve(_.UE),1E3)};
_.S.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var g=N26();g&&!_.Y("external_fullscreen_killswitch")&&document.addEventListener(g,this.setFullscreen.bind(this));(g=window.matchMedia("(prefers-color-scheme: dark)"))&&g.addEventListener&&g.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.S.attached=function(){var g=this;_.ep().processSignal("ci");_.Y("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.agc?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.qS(_.WCQ(),"SUCCESS");this.updateIconSet();_.rX(this.guideInnerContent,!1);_.Yl().initVisibilityObserver();this.guideService.guideElement=this.guide;var r=document.createElement("ytd-miniplayer"),E=_.S3(this.hostElement).querySelector("#content");
_.S3(this.hostElement).insertBefore(r,E);_.ep().processSignal("ma");_.rM().resolve(_.ea).init(r);_.Ka("IS_SHELL_LOAD")&&(E=document.createElement("ytd-network-status-banner"),_.S3(this.hostElement).insertBefore(E,r));_.Y("kevlar_right_click_on_lockups")&&_.K7._onCaptureClick&&document.addEventListener("contextmenu",_.K7._onCaptureClick.bind(_.K7),!0);var B=function(){var w=_.yx("yt-page-navigation-progress");_.S3(g.hostElement).appendChild(w)};
setTimeout(function(){_.ep().parkOrScheduleJob(B,0,"eocs",16)},0);
_.Y("service_worker_push_enabled")&&_.fC(_.F6,Xf6);_.cf(_.mH.getInstance(),this.dynamicActionMap,this.hostElement);_.Sh(this.hostElement,"ytd-app-attached");_.ep().processSignal("aa");Bu5(this.hostElement);_.vN("gapi.load",_.Q2t);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.fC(_.F6,
function(){var w=document.createElement("ytd-video-preview");_.S3(_.S3(g.hostElement).querySelector("#video-preview")).appendChild(w)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.fC(_.F6,function(){piF();g.registerWithViewTransitionManager()});
if(_.JO()&&this.isAppDarkTheme()!==_.AO())this.onDarkModeToggledAction();else r=_.bF()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==r&&(_.Y("enable_dark_theme_only_on_shorts")?_.co(_.Y("enable_dark_theme_only_on_shorts_control")?window.location.href:_.La(window.location.href,{theme:"dark"})):_.el(new _.Rj("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(ioz=new c0L(this.hostElement)),P_8=new JGm(this.hostElement),bv5=new AG$(this.hostElement),u0D=new q_t(this.hostElement)};
_.S.getThemeSettingsToLog=function(){var g=_.bF()==="USER_INTERFACE_THEME_DARK";g=_.JO()?_.AO()?"os-dark":"os-light":g?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:g,cookiesEnabled:_.HN()}};
_.S.detached=function(){_.ES(this.guideInnerContent);_.F6.cancelJob(SX);SX=0;_.F6.cancelJob(UJ);UJ=0;_.m8L(EKA);EKA.length=0;T2g=_.OoX=null;_.Yl().dispose();_.Y("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.i2(_.mH.getInstance(),ioz.playlistHandlerActionMap,ioz.JSC$28722_clientRoot);_.i2(_.mH.getInstance(),P_8.downloadManagerActionMap,P_8.JSC$29028_clientRoot);_.i2(_.mH.getInstance(),bv5.feedbackCollectorActionMap,bv5.JSC$29023_clientRoot);
for(var g=_.U(u0D.eventListeners),r=g.next();!r.done;r=g.next()){var E=_.U(r.value);r=E.next().value;E=E.next().value;E=_.U(E);for(var B=E.next();!B.done;B=E.next()){var w=_.U(B.value);B=w.next().value;w=w.next().value;r.removeEventListener(B,w)}}_.i2(_.mH.getInstance(),u0D.autonavPauseActionMap,u0D.JSC$17915_clientRoot)};
_.S.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.pu().getFlag(186)};
_.S.computeIsInlinePreviewEnabled=function(g,r,E){return!E&&_.qx$({miniplayerIsActive:g,miniplayerPlaybackState:r})};
_.S.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.Bs({type:"SET_FROSTED_GLASS_MODE",payload:!_.Y("web_frosted_glass")||this.isFrostedGlassDisabled?"none":!this.isFrostedGlassInitialized&&this.applyFrostedGlassToChipBar?"loading-with-chipbar":this.isFrostedGlassInitialized||this.applyFrostedGlassToChipBar?this.applyFrostedGlassToChipBar?"with-chipbar":"without-chipbar":"loading-without-chipbar"}))};
_.S.computeIsFrostedGlassDisabled=function(g,r,E,B){return g||r||E||B&&_.Y("web_frosted_glass_disable_watch")};
_.S.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.Y("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.S.computeIsHomePage=function(g,r){if(!g||r==null||!r.endpoint)return!1;var E;return((E=_.n(r.endpoint,_.ka))==null?void 0:E.browseId)==="FEwhat_to_watch"};
_.S.updateIsChannelOrPlaylistPage=function(){if(_.Y("web_frosted_glass")){var g,r,E=(r=(g=_.rM().resolve(_.gM(_.vK)))==null?void 0:g.getCurrentPage())==null?void 0:r.pageSubtype;this.isChannelOrPlaylistPage=E?["channel","channels","playlist"].includes(E):!1}};
_.S.scheduleFrostedGlassInitialization=function(){var g=this;_.Y("web_frosted_glass")&&_.ep().parkOrScheduleJob(function(){g.isFrostedGlassInitialized=!0},0,_.tZ(["eocs",
"cr"]),300)};
_.S.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.k4b(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.Bs({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.Bs({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.S.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(uXL(!0))};
_.S.onYtSignalActionRequestPersistentStorage=function(){if(!_.Y("request_persistent_storage_killswitch")){var g=_.rM().resolve(_.Ebt);g.cachedPersistStatePromise||(g.cachedPersistStatePromise=fyv())}};
_.S.handleYtChannelCreationFormEndpoints=function(g){g&&this.ytComponentBehavior.resolveCommand(g)};
_.S.handleShowEngagementPanelEndpoint=function(g){g&&this.ytComponentBehavior.resolveCommand(g)};
_.S.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(uXL(!1))};
_.S.initIconDefs=function(g,r){var E=document.createElement("iron-iconset-svg");E.name=g;g=document.createElementNS("http://www.w3.org/2000/svg","svg");E.appendChild(g);g.appendChild(r);document.body.appendChild(E);return E};
_.S.onWindowResized=function(){_.OS(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var g=_.bOm.getInstance();g.documentWidth_=document.body.clientWidth;k$L(g)};
_.S.onWindowScrolled=function(){var g=_.rM().resolve(_.vK).getCurrentPage();if(g!=null&&g.getScrollTop){var r=this.ytdReduxBehavior,E=r.dispatch;g=g.getScrollTop()<=0;E.call(r,_.Bs({type:"SET_SCROLL_AT_TOP",payload:g}))}};
_.S.guideIsVisibleButNotPersistentSelectorChanged=function(){var g=_.rM().resolve(_.vK).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=g.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"),
g.setScrollTop(this.guideScrollTop));_.US(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.S.getCurrentPageScrollableElementType=function(){var g=_.rM().resolve(_.vK).getCurrentPage();if(g&&g.getPageScrollingElement())return g.getPageScrollingElement().nodeName};
_.S.observeGuideVisibility=function(){var g=_.bOm.getInstance(),r=this.miniGuideVisible;g.guidePersistentAndVisible_=this.guidePersistentAndVisible;g.miniGuideVisible_=r;k$L(g)};
_.S.handleEduDismissAction=function(g){g&&g.eduDismissAction&&(_.OS(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.sZn.getInstance(),_.VK.set(g.eduDismissAction.key+"-dismissed",!0))};
_.S.handleEduImpressionAction=function(g){if(g&&g.eduImpressionAction){var r=_.sZn.getInstance();g=g.eduImpressionAction.key;r.JSC$11046_eduDisplayedThisLoad_[_.n16[g].setKey||g]=!0;_.VK.set(g+"-impression",parseInt(_.VK.get(g+"-impression")||0,10)+1)}};
_.S.onYtSignalActionConfirmMentionsEdu=function(){_.OS(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.yK.getInstance();_.Zi.set("edu-dismissed",!0)};
_.S.onYtSignalActionRecordMentionsEduImpression=function(){_.yK.getInstance();var g=_.Zi.set,r=parseInt(_.Zi.get("edu-impressions"),10);g.call(_.Zi,"edu-impressions",(isFinite(r)?r:0)+1)};
_.S.onYtPageManagerAttached=function(g){var r;((r=_.yP(g))==null?void 0:r.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.S.onInvokeInstrumentManagerAction=function(g,r){m1v(r,g)};
_.S.updateIconSet=function(){var g=this.hostElement.querySelector("#masthead");if(g){var r=_.ON(g),E=r.querySelector("g#yt-logo-updated");E&&(g=document.createElementNS("http://www.w3.org/2000/svg","defs"),g.appendChild(E.cloneNode(!0)),(r=r.querySelector("g#yt-logo-red-updated"))&&g.appendChild(r.cloneNode(!0)),this.initIconDefs("yt-logos-ext",g))}};
_.S.updateMastheadData=function(){var g=this,r,E,B,w,O;return _.q(function(M){if(M.nextAddress==1){r=g.data;E=g.hostElement.querySelector("#masthead");if(!E)return M.return();_.Lk(g,function(){E.data=g.topbarData});
if(!g.get("response.topbar",r)||g.get("response.topbar.responseContext.maxAgeSeconds",r)===0)return M.jumpTo(0);if(B=_.rM().resolve(_.Ng))return _.D(M,B(),6);w=_.rM().resolve(_.rI);return _.D(M,w.put("service:topbar:fallback",new _.En({innertubeResponse:g.get("response.topbar",r)})),0)}return(O=M.yieldResult)?_.D(M,O.put("service:topbar:fallback",new _.En({innertubeResponse:g.get("response.topbar",r)})),0):M.jumpTo(0)})};
_.S.computeTopbarData=function(g){if(!g)return null;var r;return this.isShortsPage&&this.topbarData&&!_.n((r=g.response)==null?void 0:r.topbar,lcg)?this.topbarData:g.response&&"topbar"in g.response?_.n(g.response.topbar,lcg)||null:null};
_.S.onSetTheaterModeEnabled=function(g,r){this.isTheaterModeSession=r.enabled;this.setTheaterModeStyles(r.enabled)};
_.S.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.S.onDarkModeToggledAction=function(){var g=_.lc(window.location.href);if(!_.kpo(g)){(g=!!_.iu(window.location.href).themeRefresh)&&_.el(new _.Rj("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!g){Sqz();g={themeRefresh:1};var r=_.rM().resolve(_.vK);if(r.isOnWatch()){var E,B;r=((E=r.getPlayerFromWatch())==null?void 0:(B=E.getPlayer())==null?void 0:B.getCurrentTime())||0;r>=1&&(g.time_continue=Math.floor(r))}_.HN()||_.bF()!=="USER_INTERFACE_THEME_DARK"||(g.theme="dark");_.co(_.La(window.location.href,
g))}_.Y("web_appshell_refresh_trigger")&&_.ED.caches&&this.refreshAppShellResponse();E=_.Xp(window.location.href);_.S6(_.rM().resolve(_.On),_.vE(E,"theme"))}};
_.S.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.S.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.S.onPlayerFullscreen=function(g){_.Tr();this.playerFullscreen=g};
_.S.setRestrictedMode=function(g){var r=_.pu();_.Yg(0,58,g);r.save();_.rM().resolve(_.pB).reload()};
_.S.onPageChanged=function(g){g.detail.newPageType==="ytd-watch-flexy"||g.detail.newPageType==="ytd-watch-fixie"||g.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.fZ("WEB_PAGE_TYPE_WATCH")):g.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.fZ("WEB_PAGE_TYPE_SHORTS")):g.detail.newPageType==="ytd-browse"&&g.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.fZ("WEB_PAGE_TYPE_MINI_APP")):_.Y("web_frosted_glass")&&g.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.fZ("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.fZ("WEB_PAGE_TYPE_UNKNOWN"));g.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.S.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.S.onGuideToggleTap=function(){_.Sh(this.hostElement,"yt-guide-toggle")};
_.S.onGuideToggleHover=function(){_.Sh(this.hostElement,"yt-guide-hover")};
_.S.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.S.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.S.setMastheadTheme=function(){var g=_.ON(this.hostElement).querySelector("#masthead");g&&(g.dark=g.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),g.isDarkThemeForced=!1)};
_.S.onRequestPanelModeChange=function(g,r){this.hideHeaderShadow=r.mode!=="seamed"};
_.S.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.S.onDrawerIronSelect=function(g){_.yP(g).id==="guide"&&this.processDrawerIronSelect()};
_.S.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var g="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(g="opened"));_.Sh(this.hostElement,"yt-autonav-pause-guide-"+g)};
_.S.onAddElementToApp=function(g){_.S3(this.hostElement).appendChild(g.detail)};
_.S.onThrottledScroll=function(){var g=_.rM().resolve(_.vK).getCurrentPage();g&&(this.scrollAtTop=g.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.S.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.S.setFullscreen=function(){if(_.Y("external_fullscreen")||!this.isWatchPage){var g=_.Y("kevlar_fullerscreen_root_only_killswitch")?!!_.Tr():!!_.Tr()&&_.Tr()===document.documentElement;g=(this.isWatchPage||_.Y("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(g||this.isFullWindowSession);this.fullscreen!==g&&((this.fullscreen=g)&&_.US(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Zz().dispatch(_.UR6(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.OS(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.S.setFullscreenLoggingForShorts=function(g){var r,E,B;return _.q(function(w){if(w.nextAddress==1)return _.D(w,(r=_.Tw())==null?void 0:r.getPlayerPromise(),2);E=w.yieldResult;(B=E)==null||B.setAppFullscreen(g);_.Q3(w)})};
_.S.updateMastheadCssHeight=function(){var g=this.mastheadHeight;this.fullscreen&&(g=0);_.ua(this.hostElement,{"--ytd-masthead-height":g+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.S.updateNetworkStatusBannerDisplayStatus=function(){var g="unset";this.fullscreen&&(g="none");_.ua(this.hostElement,{"--ytd-network-status-banner-display":g})};
_.S.updateNetworkStatusBannerCssHeight=function(){var g="unset";this.fullscreen&&(g="0px");_.ua(this.hostElement,{"--ytd-network-status-banner-max-height":g})};
_.S.updateScrollAndMasthead=function(g,r,E,B){this.iMaxTheaterMode||(B=!1);var w=_.rM().resolve(_.vK).getCurrentPage();g||r||B?(document.body.classList.add("no-scroll"),w.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.Do(this,this.onScroll)),w.setScrollTop(0),_.ua(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.bH()+"px"})):E?_.Sh(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.Sh(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
w.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.Do(this,this.onScroll)));this.mastheadHidden=g||r||E;this.updateMastheadCssHeight();_.Y("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.S.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.S.onYtNavigateAction=function(g){g=this.get("navigateAction.endpoint",g);_.Sh(this.hostElement,"yt-navigate",{endpoint:g})};
_.S.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var g=document.createElement("yt-create-family-dialog");_.S3(this.hostElement).appendChild(g);this.hasCreateFamilyDialog=!0}};
_.S.onSetPushNotificationsEnabledCommand=function(g){var r=this,E=_.n(g,udF);E&&typeof E.enabled==="boolean"&&(Notification.permission!=="granted"?WH6().then(function(){Notification.permission==="granted"?(pfA(!E.enabled).then(nKM),E.successAction&&_.q2(r.hostElement,[E.successAction])):E.failureAction&&_.q2(r.hostElement,[E.failureAction])}):(pfA(!E.enabled).then(nKM),E.successAction&&_.q2(this.hostElement,[E.successAction])))};
_.S.onYtSignalActionEnableChromeNotifications=function(){C24(!0)};
_.S.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.n(this.topbarData.hotkeyDialog,Giz)}}})};
_.S.onYtSignalActionShowKeyboardShortcutDialog=function(){_.OS(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.S.onYtEndpointChangeHandler=function(g,r){var E=_.rx(_.HP);E.pendingPrefetchJob_&&(r=!(!r||r.autonav!="1"),E.pendingPrefetchJob_.resolve(g&&_.UVX(g)?_.MtQ(g,r):""),E.pendingPrefetchJob_=null);_.OS(this.hostElement,"yt-pause-active-page-context");_.OS(this.hostElement,"ytd-log-youthere-nav");_.OS(this.hostElement,"yt-prepare-page-dispose")};
_.S.handleCommandWithCommandHandler=function(g,r){_.G$.instance.resolveCommand(g,{form:{element:r}})};
_.S.onYtTimedCommand=function(g){var r=this;g=_.n(g,TnM);var E=g.command;E&&_.jT(_.F6,function(){var B=_.n(E,_.mPb);B?(_.G$.instance.resolveCommand(E),r.maybeLogGetAnswerRequestTick(B)):_.uq(r.hostElement,[E],r.hostElement)},g.timeoutMs||0)};
_.S.maybeLogGetAnswerRequestTick=function(g){g&&g.isFirstRequest&&(_.tg("search_overview_answer"),_.F4("so_rq",void 0,"search_overview_answer"))};
_.S.onYtSignalActionSkipNavigation=function(){var g=_.rM().resolve(_.vK).getCurrentPage();_.ZH(g)};
_.S.onYtSignalActionCopyDebugData=function(){ZCM()};
_.S.handleEntityUpdateCommand=function(g){_.Qp(_.n(g,_.mfn).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.S.logFlowLoggingEventCommand=function(g){if(g=_.n(g,_.dBY))if(g.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var r=g.flowEventNamespace,E=g.flowEventType,B=g.flowType;B&&r&&E&&_.g8V(_.lF(r,E,g.flowEventMetadata),B)}else{r=_.oJ();E=g.flowEventNamespace;B=g.flowEventType;var w=g.flowType;w&&E&&B&&_.D1(r,_.lF(E,B,g.flowEventMetadata),w,g.flowNonce)}};
_.S.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.S.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.S.onTouchStart=function(){var g=_.Rf();_.PE()&&_.Nh(g.JSC$11273_screenManager,{visualElement:g.ve})};
_.S.handleSelectLanguageCommand=function(g){if(g=_.n(g,UCD).hl){var r=_.pu();r.set("hl",g);r.save();_.rM().resolve(_.pB).reload()}};
_.S.handleConfirmDialogEndpoint=function(g){(g=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(g))&&this.ytOpenPopupBehavior.openPopup(g)};
_.S.handleOpenPopupNavigationEndpoints=function(g,r){_.Y("web_button_rework")&&(g=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(g))&&this.ytOpenPopupBehavior.openPopup(g,r)};
_.S.handleSaveCommandToSessionStorage=function(g){if(g=_.n(g,_.PjU)){var r=g.key;r&&g.command&&window.sessionStorage.setItem(r,JSON.stringify(g.command))}};
_.S.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(g){g&&g.active&&g.active.postMessage({type:"refresh_shell"})}).catch(function(g){g.name!=="SecurityError"&&_.tn(g)})};
_.S.onDeviceThemeChanged=function(){var g=_.AO();_.Yg(_.pu(),185,g);_.pu().save()};
_.S.handleYtRegisterPromoCommand=function(g){if(_.n(g,q7L)){var r=_.rM().resolve(_.vK).getCurrentPage()||this.hostElement;pYF().registerPromoCommand(_.n(g,q7L),r)}};
_.S.onYtNavigateHomeAction=function(){if(!_.Y("kevlar_miniplayer_navigate_home_from_app_killswitch")){var g,r,E,B,w=(B=(g=this.topbarData)==null?void 0:(r=g.logo)==null?void 0:(E=r.topbarLogoRenderer)==null?void 0:E.endpoint)!=null?B:_.oH;this.ytComponentBehavior.resolveCommand(w)}};
_.S.onYtLocationCollectionCommand=function(g){kbD(_.n(g,nTM))};
_.S.onYtGetLocationCommand=function(g){Bz8(_.n(g,R0M),this)};
_.S.updateRenderGuideFromBinding=function(g){this.renderGuide=g.detail.value};
_.S.updateGuidePersistentAndVisibleFromBinding=function(g){this.guidePersistentAndVisible=g.detail.value};
_.S.updateMiniGuideVisibleFromBinding=function(g){this.miniGuideVisible=g.detail.value};
_.S.onThemeSelected=function(g,r){var E=_.pu(),B=g||r?g:_.AO(),w=(B&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!B&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.kpo(_.lc(window.location.href));_.Yg(0,165,g);_.Yg(0,174,r);E.save();w&&_.OS(this.hostElement,"yt-dark-mode-toggled-action",[B]);_.OS(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.S.getCurrentTheme=function(){return _.JO()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.bF()};
_.S.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.S.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.S.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.S.handleShowConsentPrimitive=function(g){var r=this,E,B;return _.q(function(w){if(w.nextAddress==1){try{E=(B=_.Tw())==null?void 0:B.getPlayerPromise()}catch(O){}return _.D(w,Cav(g,E),2)}_.OS(r.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.Q3(w)})};
_.S.handleSelectActiveIdentityEndpointInternal=function(g){_.IJ();g=_.n(g,_.Mfz);if(g!=null&&g.supportedTokens){g=_.U(g.supportedTokens);for(var r=g.next();!r.done;r=g.next())r=r.value,r.accountSigninToken&&_.co(r.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.S.handleUpdatePermissionRoleCommand=function(g){if(g=_.n(g,_.Oin)){var r;this.hasDelegation=!((r=_.n(g.renderer,_.STA))==null||!r.status)}};
_.S.registerWithViewTransitionManager=function(){var g=_.rM().resolve(_.gM(_.HQ));if(g){var r,E=(r=this.guide)==null?void 0:r.querySelector("#scrim"),B;r=(B=this.guide)==null?void 0:B.querySelector("#contentContainer");E&&r&&g.isAnyTransitionEnabled&&(B={},g.viewTransitionCoordinator.registerElement(E,(B.slide="app-drawer-scrim-page-transition",B["lockup-to-watch"]="app-drawer-scrim-page-transition",B["learning-journey"]="app-drawer-scrim-page-transition",B)),E={},g.viewTransitionCoordinator.registerElement(r,
(E.slide="app-drawer-container-page-transition",E["lockup-to-watch"]="app-drawer-container-page-transition",E["learning-journey"]="app-drawer-container-page-transition",E)))}};
_.hx.Object.defineProperties(ct.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.Y("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.hx.Object.defineProperties(ct,{template:{configurable:!0,enumerable:!0,get:function(){if(RkF===void 0){var g=document.createElement("template");_.b(g,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
g.content.insertBefore(_.d().content.cloneNode(!0),g.content.firstChild);RkF=g}g=RkF;return g}}});
ct.prototype.onOpenHotkeyDialog=ct.prototype.onOpenHotkeyDialog;ct.prototype.setFullscreen=ct.prototype.setFullscreen;ct.prototype.onAddElementToApp=ct.prototype.onAddElementToApp;ct.prototype.onDrawerIronSelect=ct.prototype.onDrawerIronSelect;ct.prototype.onGuideOpenButtonHover=ct.prototype.onGuideOpenButtonHover;ct.prototype.onRequestPanelModeChange=ct.prototype.onRequestPanelModeChange;ct.prototype.onPageDataUpdated=ct.prototype.onPageDataUpdated;ct.prototype.onPageChanged=ct.prototype.onPageChanged;
ct.prototype.onSetTheaterModeEnabled=ct.prototype.onSetTheaterModeEnabled;ct.prototype.updateMastheadData=ct.prototype.updateMastheadData;ct.prototype.onYtPageManagerAttached=ct.prototype.onYtPageManagerAttached;ct.prototype.observeGuideVisibility=ct.prototype.observeGuideVisibility;ct.prototype.guideIsVisibleButNotPersistentSelectorChanged=ct.prototype.guideIsVisibleButNotPersistentSelectorChanged;ct.prototype.isInlinePreviewEnabledChanged=ct.prototype.isInlinePreviewEnabledChanged;
ct.prototype.isWatchPageChanged=ct.prototype.isWatchPageChanged;ct.prototype.dispatchFrostedGlassMode=ct.prototype.dispatchFrostedGlassMode;_.m([_.P(_.Ai),_.L("design:type",Object)],ct.prototype,"ytdReduxBehavior",void 0);_.m([_.P(_.GV.YtEventForwardingBehavior),_.L("design:type",Object)],ct.prototype,"ytEventForwardingBehavior",void 0);_.m([_.P(_.ls.YtOpenPopupBehavior),_.L("design:type",Object)],ct.prototype,"ytOpenPopupBehavior",void 0);
_.m([_.P(_.gN.YtActionHandlerBehavior),_.L("design:type",Object)],ct.prototype,"ytActionHandlerBehavior",void 0);_.m([_.P({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.mH.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.Y("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var g;((g=this.actionRouterNode.hostElement)!=null?g:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var g;((g=this.actionRouterNode.hostElement)!=null?g:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(g){this.actionRouter_.handleAction(g.detail)}}),
_.L("design:type",Object)],ct.prototype,"ytActionRouterBehavior",void 0);_.m([_.P(jY4.YtdAppBehavior),_.L("design:type",Object)],ct.prototype,"ytdAppBehavior",void 0);_.m([_.P(_.DW.YtEndpointBehavior),_.L("design:type",Object)],ct.prototype,"ytEndpointBehavior",void 0);_.m([_.P(jk$.YtEndpointHandlerWithYpcBehavior),_.L("design:type",Object)],ct.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.m([_.P(nhv.YtLogYpcFlowCommandsBehavior),_.L("design:type",Object)],ct.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.m([_.P(_.T.YtRendererBehavior),_.L("design:type",Object)],ct.prototype,"ytRendererBehavior",void 0);_.m([_.P(_.KB.YtComponentBehavior),_.L("design:type",Object)],ct.prototype,"ytComponentBehavior",void 0);_.m([_.K({selector:_.VWm}),_.L("design:type",Object)],ct.prototype,"tabGesturesIsActive",void 0);_.m([_.K(),_.L("design:type",Boolean)],ct.prototype,"renderGuide",void 0);
_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],ct.prototype,"guidePersistentAndVisible",void 0);_.m([_.K({selector:_.Lr4}),_.L("design:type",Boolean)],ct.prototype,"guideIsVisibleButNotPersistent",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],ct.prototype,"standalone",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],ct.prototype,"miniGuideVisible",void 0);
_.m([_.K({selector:_.HYB}),_.L("design:type",Number)],ct.prototype,"miniplayerPlaybackState",void 0);_.m([_.K({selector:_.tj,reflectToAttribute:!0}),_.L("design:type",Boolean)],ct.prototype,"miniplayerIsActive",void 0);_.m([_.K({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.L("design:type",Boolean)],ct.prototype,"isInlinePreviewEnabled",void 0);_.m([_.K(),_.L("design:type",Boolean)],ct.prototype,"isInlinePreviewDisabled",void 0);
_.m([_.K({reflectToAttribute:!0,value:function(){return _.Ka("START_IN_FULL_WINDOW_MODE")}}),
_.L("design:type",Boolean)],ct.prototype,"mastheadHidden",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],ct.prototype,"playerFullscreen",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],ct.prototype,"deprecateFullerscreenUi",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],ct.prototype,"fullscreen",void 0);_.m([_.K({value:!1,reflectToAttribute:!0}),_.L("design:type",Boolean)],ct.prototype,"hideHeaderShadow",void 0);
_.m([_.K({value:{GUIDE_ALT_LABEL:_.zn("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.L("design:type",Object)],ct.prototype,"menuStrings",void 0);_.m([_.K({computed:"computeTopbarData(data)"}),_.L("design:type",Object)],ct.prototype,"topbarData",void 0);_.m([_.K({selector:_.Fc}),_.L("design:type",Boolean)],ct.prototype,"isWatchPage",void 0);_.m([_.K({selector:_.Q1D,reflectToAttribute:!0}),_.L("design:type",Boolean)],ct.prototype,"isShortsPage",void 0);
_.m([_.K({selector:function(g){return g.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.L("design:type",Boolean)],ct.prototype,"isMiniAppPage",void 0);_.m([_.K({selector:function(g){return g.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.L("design:type",Boolean)],ct.prototype,"isBrowsePage",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Boolean)],ct.prototype,"scrolling",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],ct.prototype,"hasDelegation",void 0);_.m([_.K({reflectToAttribute:!0,value:!1}),_.L("design:type",Boolean)],ct.prototype,"guideScrolledByTouch",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],ct.prototype,"darkerDarkTheme",void 0);
_.m([_.K(),_.L("design:type",Object)],ct.prototype,"isFrostedGlassInitialized",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],ct.prototype,"frostedGlassExp",void 0);_.m([_.K({selector:function(g){return g.ui.chipBarIsSticky}}),
_.L("design:type",Boolean)],ct.prototype,"chipBarIsSticky",void 0);_.m([_.K({computed:"computeIsHomePage(isBrowsePage, data)"}),_.L("design:type",Boolean)],ct.prototype,"isHomePage",void 0);_.m([_.K({reflectToAttribute:!0}),_.L("design:type",Object)],ct.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.m([_.K(),_.L("design:type",Object)],ct.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.m([_.hz("guide"),_.L("design:type",Object)],ct.prototype,"guide",void 0);
_.m([_.hz("guide-service"),_.L("design:type",oim)],ct.prototype,"guideService",void 0);_.m([_.hz("guide-inner-content"),_.L("design:type",HTMLDivElement)],ct.prototype,"guideInnerContent",void 0);_.m([_.K({selector:_.pyL}),_.L("design:type",String)],ct.prototype,"frostedGlassMode",void 0);
_.m([_.Gb("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ct.prototype,"dispatchFrostedGlassMode",null);_.m([_.K({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.L("design:type",Object)],ct.prototype,"isFrostedGlassDisabled",void 0);
_.m([_.Gb("isWatchPage"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ct.prototype,"isWatchPageChanged",null);_.m([_.W("isHomePage","chipBarIsSticky"),_.L("design:type",Boolean),_.L("design:paramtypes",[])],ct.prototype,"applyFrostedGlassToChipBar",null);_.m([_.K(),_.L("design:type",Object)],ct.prototype,"isChannelOrPlaylistPage",void 0);
_.m([_.Yk("isInlinePreviewEnabled"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ct.prototype,"isInlinePreviewEnabledChanged",null);_.m([_.Gb("guideIsVisibleButNotPersistent"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ct.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.m([_.Gb("guidePersistentAndVisible","miniGuideVisible"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ct.prototype,"observeGuideVisibility",null);_.m([_.ob("attached"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],ct.prototype,"onYtPageManagerAttached",null);_.m([_.Gb("data"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype",Promise)],ct.prototype,"updateMastheadData",null);
_.m([_.ob("yt-set-theater-mode-enabled"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent,Object]),_.L("design:returntype")],ct.prototype,"onSetTheaterModeEnabled",null);_.m([_.ob("yt-page-type-changed"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],ct.prototype,"onPageChanged",null);_.m([_.ob("yt-page-data-updated"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ct.prototype,"onPageDataUpdated",null);
_.m([_.ob("yt-request-panel-mode-change"),_.L("design:type",Function),_.L("design:paramtypes",[Event,Object]),_.L("design:returntype")],ct.prototype,"onRequestPanelModeChange",null);_.m([_.ob("yt-guide-hover"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ct.prototype,"onGuideOpenButtonHover",null);_.m([_.ob("app-drawer-transitioned"),_.L("design:type",Function),_.L("design:paramtypes",[Event]),_.L("design:returntype")],ct.prototype,"onDrawerIronSelect",null);
_.m([_.ob("yt-add-element-to-app"),_.L("design:type",Function),_.L("design:paramtypes",[CustomEvent]),_.L("design:returntype")],ct.prototype,"onAddElementToApp",null);_.m([_.ob("yt-set-fullerscreen-styles"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ct.prototype,"setFullscreen",null);_.m([_.ob("yt-open-hotkey-dialog"),_.L("design:type",Function),_.L("design:paramtypes",[]),_.L("design:returntype")],ct.prototype,"onOpenHotkeyDialog",null);
_.m([_.N({is:"ytd-app"})],ct);_.ep().processSignal("eor");
_.Fr();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
